@spot-flow/checkout-inline-js 0.2.2 → 0.2.3
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.
|
@@ -1692,24 +1692,25 @@ const Fs = new Pl({
|
|
|
1692
1692
|
s.forEach((f) => f(i > 0));
|
|
1693
1693
|
}, p = (f) => (t.push(f), () => {
|
|
1694
1694
|
t = t.filter((w) => w !== f);
|
|
1695
|
-
}), m = async (f, w = n) => {
|
|
1695
|
+
}), m = async (f, w = n, A = "static") => {
|
|
1696
1696
|
if (a) return Array.isArray(f) ? f : [f];
|
|
1697
|
-
if (w === "en"
|
|
1697
|
+
if (w === "en" && A === "static")
|
|
1698
|
+
return Array.isArray(f) ? f : [f];
|
|
1698
1699
|
i += 1, c();
|
|
1699
|
-
const
|
|
1700
|
-
if (e.has(
|
|
1701
|
-
return e.get(
|
|
1700
|
+
const x = Array.isArray(f) ? `[${f.join("|")}]:${w}` : `${f}:${w}`;
|
|
1701
|
+
if (e.has(x))
|
|
1702
|
+
return e.get(x);
|
|
1702
1703
|
try {
|
|
1703
|
-
const
|
|
1704
|
+
const E = await yl({
|
|
1704
1705
|
text: f,
|
|
1705
1706
|
target: w || "en"
|
|
1706
1707
|
});
|
|
1707
1708
|
return e.set(
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
),
|
|
1711
|
-
} catch (
|
|
1712
|
-
return console.error("Translation failed:",
|
|
1709
|
+
x,
|
|
1710
|
+
E.translatedText ?? (Array.isArray(f) ? f : [f])
|
|
1711
|
+
), E.translatedText ?? (Array.isArray(f) ? f : [f]);
|
|
1712
|
+
} catch (E) {
|
|
1713
|
+
return console.error("Translation failed:", E), o("en"), a = !0, Array.isArray(f) ? f : [f];
|
|
1713
1714
|
} finally {
|
|
1714
1715
|
i -= 1, c();
|
|
1715
1716
|
}
|
|
@@ -1740,10 +1741,11 @@ const it = (n) => {
|
|
|
1740
1741
|
}, R = () => _a, Il = (n, e) => {
|
|
1741
1742
|
const t = is(n, e), i = t == null ? void 0 : t.language, s = xe.getTranslationError();
|
|
1742
1743
|
i && i !== Cn ? it(s ? "en" : Cn) : i && i === Cn ? it(i) : !Cn && !i && it("en");
|
|
1743
|
-
},
|
|
1744
|
+
}, W = async (n, e) => {
|
|
1744
1745
|
const t = await xe.translate(
|
|
1745
1746
|
n,
|
|
1746
|
-
e
|
|
1747
|
+
e,
|
|
1748
|
+
"dynamic"
|
|
1747
1749
|
);
|
|
1748
1750
|
return typeof t == "string" ? t : t[0];
|
|
1749
1751
|
};
|
|
@@ -1752,16 +1754,16 @@ const Ea = async (n) => (cn = await xe.translateRecord(
|
|
|
1752
1754
|
ts,
|
|
1753
1755
|
n
|
|
1754
1756
|
), cn);
|
|
1755
|
-
let
|
|
1757
|
+
let Z = Ca;
|
|
1756
1758
|
const Pa = async (n) => {
|
|
1757
|
-
|
|
1759
|
+
Z = await xe.translateRecord(
|
|
1758
1760
|
Ca,
|
|
1759
1761
|
n
|
|
1760
1762
|
);
|
|
1761
1763
|
};
|
|
1762
|
-
let
|
|
1764
|
+
let P = Sa;
|
|
1763
1765
|
const Ia = async (n) => {
|
|
1764
|
-
|
|
1766
|
+
P = await xe.translateRecord(
|
|
1765
1767
|
Sa,
|
|
1766
1768
|
n
|
|
1767
1769
|
);
|
|
@@ -1816,8 +1818,8 @@ const Ua = async (n) => {
|
|
|
1816
1818
|
);
|
|
1817
1819
|
};
|
|
1818
1820
|
function Ks(n) {
|
|
1819
|
-
if (n in
|
|
1820
|
-
if (n in
|
|
1821
|
+
if (n in Z) return Z[n];
|
|
1822
|
+
if (n in P) return P[n];
|
|
1821
1823
|
if (n in cn)
|
|
1822
1824
|
return cn[n];
|
|
1823
1825
|
if (n in pe) return pe[n];
|
|
@@ -1906,10 +1908,10 @@ class Gs {
|
|
|
1906
1908
|
"#enter-details-text"
|
|
1907
1909
|
), p = this.container.querySelector("#certified-text"), m = this.container.querySelector(
|
|
1908
1910
|
"#card-confirmation-text-one"
|
|
1909
|
-
),
|
|
1911
|
+
), g = this.container.querySelector(
|
|
1910
1912
|
"#card-confirmation-text-two"
|
|
1911
1913
|
);
|
|
1912
|
-
c && (c.innerHTML = pe["enter-card-details"]), p && (p.innerHTML = pe.certified), m && (m.innerHTML = pe["card-confirmation-one"]),
|
|
1914
|
+
c && (c.innerHTML = pe["enter-card-details"]), p && (p.innerHTML = pe.certified), m && (m.innerHTML = pe["card-confirmation-one"]), g && (g.innerHTML = pe["card-confirmation-two"]), t && (t.setAttribute(
|
|
1913
1915
|
"placeholder",
|
|
1914
1916
|
pe["card-number"]
|
|
1915
1917
|
), t.addEventListener(
|
|
@@ -1928,11 +1930,11 @@ class Gs {
|
|
|
1928
1930
|
"input",
|
|
1929
1931
|
(b) => this.handleInputChange(b, o)
|
|
1930
1932
|
)), l && l.addEventListener("submit", (b) => {
|
|
1931
|
-
var
|
|
1933
|
+
var y, S, f;
|
|
1932
1934
|
b.preventDefault(), this.onAction(b)({
|
|
1933
1935
|
pan: Al(this.cardDetailsValues.number),
|
|
1934
1936
|
cvv: this.cardDetailsValues.cvv,
|
|
1935
|
-
expiryMonth: (
|
|
1937
|
+
expiryMonth: (y = this.cardDetailsValues) == null ? void 0 : y.expiry.split("/")[0].trim(),
|
|
1936
1938
|
expiryYear: (S = this.cardDetailsValues) == null ? void 0 : S.expiry.split("/")[1].trim(),
|
|
1937
1939
|
...this.currency === "ZAR" && {
|
|
1938
1940
|
cardHolderName: (f = this.cardDetailsValues) == null ? void 0 : f.name
|
|
@@ -1960,26 +1962,26 @@ class Gs {
|
|
|
1960
1962
|
}
|
|
1961
1963
|
if (s === "number") {
|
|
1962
1964
|
o = Ml(a);
|
|
1963
|
-
const m = o.replace(/\s+/g, ""),
|
|
1965
|
+
const m = o.replace(/\s+/g, ""), g = this.validateCreditCard(m);
|
|
1964
1966
|
this.filterCreditCardType(a);
|
|
1965
1967
|
const b = (l = this.creditCardTypes[0]) == null ? void 0 : l.name;
|
|
1966
|
-
b && _n.map((
|
|
1967
|
-
if (
|
|
1968
|
-
if (
|
|
1968
|
+
b && _n.map((y) => {
|
|
1969
|
+
if (y.name === this.currency)
|
|
1970
|
+
if (y.cardTypes.includes(b)) {
|
|
1969
1971
|
const S = _l[b];
|
|
1970
1972
|
if (S.length > 1) {
|
|
1971
1973
|
const f = S.some(
|
|
1972
1974
|
(w) => m.length === w
|
|
1973
1975
|
);
|
|
1974
1976
|
this.checkInputValidity(
|
|
1975
|
-
|
|
1977
|
+
g,
|
|
1976
1978
|
i,
|
|
1977
1979
|
f,
|
|
1978
1980
|
"card-number-invalid"
|
|
1979
1981
|
);
|
|
1980
1982
|
} else
|
|
1981
1983
|
m.length === S[0] && this.checkInputValidity(
|
|
1982
|
-
|
|
1984
|
+
g,
|
|
1983
1985
|
i,
|
|
1984
1986
|
m.length >= 14 && m.length <= 19,
|
|
1985
1987
|
"card-number-invalid"
|
|
@@ -1995,12 +1997,12 @@ class Gs {
|
|
|
1995
1997
|
} else if (s === "expiry") {
|
|
1996
1998
|
const m = /* @__PURE__ */ new Date();
|
|
1997
1999
|
o = Ll(a);
|
|
1998
|
-
const
|
|
2000
|
+
const g = o.split("/"), b = (c = g[0]) == null ? void 0 : c.trim(), y = (p = g[1]) == null ? void 0 : p.trim(), S = (/* @__PURE__ */ new Date()).getFullYear() % 100, f = m.getMonth() + 1;
|
|
1999
2001
|
let w = !0;
|
|
2000
|
-
(parseInt(
|
|
2002
|
+
(parseInt(y) === S && parseInt(b) < f || parseInt(y) < S) && (w = !1), (y == null ? void 0 : y.length) === 2 && this.checkInputValidity(
|
|
2001
2003
|
w,
|
|
2002
2004
|
i,
|
|
2003
|
-
|
|
2005
|
+
g.join("").length === 4,
|
|
2004
2006
|
"card-expired"
|
|
2005
2007
|
);
|
|
2006
2008
|
} else s === "cvv" ? o = xl(a) : s === "name" && (o = a);
|
|
@@ -2141,7 +2143,7 @@ class Jn {
|
|
|
2141
2143
|
const e = document.querySelector("#success-amount"), t = document.querySelector(
|
|
2142
2144
|
"#payment-success-text"
|
|
2143
2145
|
), i = document.querySelector("#processed-text"), s = document.querySelector("#charge-text");
|
|
2144
|
-
t && (this.message ? t.innerHTML = this.message : t.innerHTML =
|
|
2146
|
+
t && (this.message ? t.innerHTML = this.message : t.innerHTML = P["payment-success"]), i && (i.innerHTML = P["we-processed"]), s && (s.innerHTML = P.charge), e && (e.innerHTML = `${this.currency !== "USD" ? this.localCurrency : this.currency} ${_e(this.amount)}`);
|
|
2145
2147
|
}
|
|
2146
2148
|
render() {
|
|
2147
2149
|
return Rl;
|
|
@@ -2198,7 +2200,7 @@ class nn {
|
|
|
2198
2200
|
const s = this.container.querySelector("#payment-warning-text"), a = this.container.querySelector(
|
|
2199
2201
|
"#payment-warning-desc"
|
|
2200
2202
|
), o = this.container.querySelector("#try-again");
|
|
2201
|
-
s && (s.textContent = e), a && t && (a.textContent = t), o && (i ? o.textContent = i : o.textContent =
|
|
2203
|
+
s && (s.textContent = e), a && t && (a.textContent = t), o && (i ? o.textContent = i : o.textContent = P["try-again"]), o && i && (o.textContent = i), this.attachListener();
|
|
2202
2204
|
}
|
|
2203
2205
|
hideReportIssue() {
|
|
2204
2206
|
const e = this.container.querySelector("#report-issue");
|
|
@@ -24515,15 +24517,15 @@ class Gl {
|
|
|
24515
24517
|
"input[name='address']"
|
|
24516
24518
|
), m = this.container.querySelector(
|
|
24517
24519
|
"select[name='country']"
|
|
24518
|
-
),
|
|
24520
|
+
), g = this.container.querySelector("input[name='city']"), b = this.container.querySelector(
|
|
24519
24521
|
"select[name='state']"
|
|
24520
|
-
),
|
|
24522
|
+
), y = this.container.querySelector("input[name='code']"), S = document.querySelector(
|
|
24521
24523
|
"#avs-form-button"
|
|
24522
24524
|
), f = document.querySelector("#card-avs-form");
|
|
24523
24525
|
p && p.addEventListener(
|
|
24524
24526
|
"input",
|
|
24525
24527
|
(w) => this.handleInputChange(w, S)
|
|
24526
|
-
),
|
|
24528
|
+
), g && g.addEventListener(
|
|
24527
24529
|
"input",
|
|
24528
24530
|
(w) => this.handleInputChange(w, S)
|
|
24529
24531
|
), b && b.addEventListener(
|
|
@@ -24531,7 +24533,7 @@ class Gl {
|
|
|
24531
24533
|
(w) => this.handleInputChange(w, S)
|
|
24532
24534
|
), m && m.addEventListener("change", (w) => {
|
|
24533
24535
|
b ? this.handleInputChange(w, S, b) : this.handleInputChange(w, S);
|
|
24534
|
-
}),
|
|
24536
|
+
}), y && y.addEventListener(
|
|
24535
24537
|
"input",
|
|
24536
24538
|
(w) => this.handleInputChange(w, S)
|
|
24537
24539
|
), f && f.addEventListener("submit", (w) => {
|
|
@@ -24905,7 +24907,7 @@ class Wl {
|
|
|
24905
24907
|
"#debited-select-field"
|
|
24906
24908
|
), o = this.container.querySelector(
|
|
24907
24909
|
"#debited-select-label"
|
|
24908
|
-
), l = this.container.querySelector("#type-select-field"), c = this.container.querySelector("#type-select-label"), p = this.container.querySelector("#filee"), m = this.container.querySelector("#file-label"),
|
|
24910
|
+
), l = this.container.querySelector("#type-select-field"), c = this.container.querySelector("#type-select-label"), p = this.container.querySelector("#filee"), m = this.container.querySelector("#file-label"), g = this.container.querySelector("#file-text"), b = this.container.querySelector("#file-icon"), y = this.container.querySelector("#file-button"), S = this.container.querySelector("#form-button"), f = document.querySelector(
|
|
24909
24911
|
"#transaction-issues-form"
|
|
24910
24912
|
);
|
|
24911
24913
|
e && (e.value = ((w = this.paymentResponse) == null ? void 0 : w.reference) || ""), t && t.addEventListener("input", (M) => {
|
|
@@ -24919,15 +24921,15 @@ class Wl {
|
|
|
24919
24921
|
})), p && p.addEventListener("change", (M) => {
|
|
24920
24922
|
var D;
|
|
24921
24923
|
M.preventDefault();
|
|
24922
|
-
const x = p.files,
|
|
24924
|
+
const x = p.files, E = /(\.jpg|\.jpeg|\.png|\.pdf)$/i;
|
|
24923
24925
|
if (x && x.length)
|
|
24924
|
-
if (
|
|
24926
|
+
if (E.exec(x[0].name)) {
|
|
24925
24927
|
const G = x[0];
|
|
24926
|
-
|
|
24928
|
+
y && (y.innerHTML = `<span class="bg-primary text-white text-sm font-semibold py-2 px-3 rounded-md" id="upload-btn-text">
|
|
24927
24929
|
Uploading...
|
|
24928
24930
|
</span>`), setTimeout(async () => {
|
|
24929
24931
|
var q;
|
|
24930
|
-
this.uploadRes = await this.uploadEvidenceFile(G), (q = this.uploadRes) != null && q.url && this.documents.push(this.uploadRes.url), x[0].name && (m && (m.textContent = this.uploadRes.message),
|
|
24932
|
+
this.uploadRes = await this.uploadEvidenceFile(G), (q = this.uploadRes) != null && q.url && this.documents.push(this.uploadRes.url), x[0].name && (m && (m.textContent = this.uploadRes.message), g && (g.textContent = `${x[0].name} | ${Math.floor(x[0].size / 1024)} KB . ${(/* @__PURE__ */ new Date()).toLocaleString(
|
|
24931
24933
|
"en-us",
|
|
24932
24934
|
{
|
|
24933
24935
|
day: "numeric",
|
|
@@ -24942,14 +24944,14 @@ class Wl {
|
|
|
24942
24944
|
<circle cx="16" cy="16" r="16" fill="#E7F6EC"/>
|
|
24943
24945
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M16 23.5C20.1421 23.5 23.5 20.1421 23.5 16C23.5 11.8579 20.1421 8.5 16 8.5C11.8579 8.5 8.5 11.8579 8.5 16C8.5 20.1421 11.8579 23.5 16 23.5ZM19.0628 14.9479C19.4022 14.637 19.4254 14.1099 19.1145 13.7705C18.8037 13.4311 18.2766 13.4079 17.9372 13.7188L14.8604 16.5366L14.0628 15.8062C13.7234 15.4953 13.1963 15.5185 12.8855 15.8579C12.5746 16.1973 12.5978 16.7244 12.9372 17.0352L14.2976 18.2812C14.6161 18.5729 15.1047 18.5729 15.4233 18.2812L19.0628 14.9479Z" fill="#0F973D"/>
|
|
24944
24946
|
</svg>
|
|
24945
|
-
`),
|
|
24947
|
+
`), y && (y.innerHTML = `<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
24946
24948
|
<path d="M7.9161 1.4585C7.56972 1.4585 7.25945 1.67277 7.13678 1.99671L6.94545 2.50194C6.5353 2.46096 6.15741 2.42005 5.8515 2.3857C5.62282 2.36003 5.43484 2.33807 5.30427 2.32256L5.15364 2.30448L5.10249 2.29823C4.64574 2.24167 4.22898 2.56601 4.17242 3.02275C4.11586 3.4795 4.44027 3.89562 4.89702 3.95218L4.95268 3.95899L5.10766 3.97759C5.24128 3.99346 5.43284 4.01584 5.66553 4.04196C6.1305 4.09417 6.76158 4.16157 7.4237 4.22199C8.31685 4.30351 9.29587 4.37516 9.99944 4.37516C10.703 4.37516 11.682 4.30351 12.5752 4.22199C13.2373 4.16157 13.8684 4.09417 14.3333 4.04196C14.566 4.01584 14.7576 3.99346 14.8912 3.97759L15.0462 3.95899L15.1017 3.95219C15.5585 3.89563 15.883 3.4795 15.8265 3.02275C15.7699 2.56601 15.3538 2.24159 14.897 2.29814L14.8452 2.30448L14.6946 2.32256C14.564 2.33807 14.376 2.36003 14.1474 2.3857C13.8415 2.42005 13.4636 2.46096 13.0534 2.50194L12.8621 1.99671C12.7394 1.67277 12.4292 1.4585 12.0828 1.4585H7.9161Z" fill="#98A2B3"/>
|
|
24947
24949
|
<path d="M9.1661 9.79183C9.1661 9.33159 8.79301 8.9585 8.33277 8.9585C7.87253 8.9585 7.49944 9.33159 7.49944 9.79183V13.9585C7.49944 14.4187 7.87253 14.7918 8.33277 14.7918C8.79301 14.7918 9.1661 14.4187 9.1661 13.9585V9.79183Z" fill="#98A2B3"/>
|
|
24948
24950
|
<path d="M11.6661 8.9585C12.1263 8.9585 12.4994 9.33159 12.4994 9.79183V13.9585C12.4994 14.4187 12.1263 14.7918 11.6661 14.7918C11.2059 14.7918 10.8328 14.4187 10.8328 13.9585V9.79183C10.8328 9.33159 11.2059 8.9585 11.6661 8.9585Z" fill="#98A2B3"/>
|
|
24949
24951
|
<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"/>
|
|
24950
24952
|
</svg>
|
|
24951
24953
|
`));
|
|
24952
|
-
}, 1e3),
|
|
24954
|
+
}, 1e3), y && (D = p.files) != null && D.length && y.addEventListener("click", () => {
|
|
24953
24955
|
p.value = "", p.value || (b && (b.innerHTML = `<svg width="32" height="32" viewBox="0 0 32 32" fill="none"
|
|
24954
24956
|
xmlns="http://www.w3.org/2000/svg">
|
|
24955
24957
|
<circle cx="16" cy="16" r="16" fill="#E6E6E7" />
|
|
@@ -24957,18 +24959,18 @@ class Wl {
|
|
|
24957
24959
|
d="M13.334 18.6667L16.0007 16M16.0007 16L18.6673 18.6667M16.0007 16V22M21.334 19.1619C22.1483 18.4894 22.6673 17.472 22.6673 16.3333C22.6673 14.3083 21.0257 12.6667 19.0007 12.6667C18.855 12.6667 18.7187 12.5907 18.6447 12.4652C17.7754 10.9899 16.1703 10 14.334 10C11.5726 10 9.33398 12.2386 9.33398 15C9.33398 16.3774 9.89095 17.6247 10.792 18.529"
|
|
24958
24960
|
stroke="#86838A" stroke-width="1.5" stroke-linecap="round"
|
|
24959
24961
|
stroke-linejoin="round" />
|
|
24960
|
-
</svg>`),
|
|
24962
|
+
</svg>`), y.innerHTML = `<span class="bg-primary text-white text-sm font-semibold py-2 px-3 rounded-md" id="upload-btn-text">
|
|
24961
24963
|
Upload
|
|
24962
|
-
</span>`, m && (m.textContent = "Tap to Upload"),
|
|
24964
|
+
</span>`, m && (m.textContent = "Tap to Upload"), g && (g.textContent = "PDF, PNG, JPG | 10MB max."));
|
|
24963
24965
|
});
|
|
24964
24966
|
} else
|
|
24965
24967
|
return;
|
|
24966
24968
|
}), f && f.addEventListener("submit", (M) => {
|
|
24967
|
-
var
|
|
24969
|
+
var E;
|
|
24968
24970
|
M.preventDefault();
|
|
24969
24971
|
const { reason: x } = this.formValues;
|
|
24970
24972
|
this.onAction({
|
|
24971
|
-
transactionReference: (
|
|
24973
|
+
transactionReference: (E = this.paymentResponse) == null ? void 0 : E.reference,
|
|
24972
24974
|
reportingReason: x,
|
|
24973
24975
|
disputeSource: "CUSTOMER",
|
|
24974
24976
|
supportingDocuments: this.documents
|
|
@@ -25301,9 +25303,9 @@ function bi(n, e) {
|
|
|
25301
25303
|
return `url(${p}${c}${p})`;
|
|
25302
25304
|
if (c[0] === "/")
|
|
25303
25305
|
return `url(${p}${ac(e) + c}${p})`;
|
|
25304
|
-
const m = e.split("/"),
|
|
25306
|
+
const m = e.split("/"), g = c.split("/");
|
|
25305
25307
|
m.pop();
|
|
25306
|
-
for (const b of
|
|
25308
|
+
for (const b of g)
|
|
25307
25309
|
b !== "." && (b === ".." ? m.pop() : m.push(b));
|
|
25308
25310
|
return `url(${p}${m.join("/")}${p})`;
|
|
25309
25311
|
});
|
|
@@ -25457,7 +25459,7 @@ function bc(n, e, t) {
|
|
|
25457
25459
|
});
|
|
25458
25460
|
}
|
|
25459
25461
|
function fc(n, e) {
|
|
25460
|
-
const { doc: t, mirror: i, blockClass: s, blockSelector: a, needsMask: o, inlineStylesheet: l, maskInputOptions: c = {}, maskTextFn: p, maskInputFn: m, dataURLOptions:
|
|
25462
|
+
const { doc: t, mirror: i, blockClass: s, blockSelector: a, needsMask: o, inlineStylesheet: l, maskInputOptions: c = {}, maskTextFn: p, maskInputFn: m, dataURLOptions: g = {}, inlineImages: b, recordCanvas: y, keepIframeSrcFn: S, newlyAddedElement: f = !1 } = e, w = gc(t, i);
|
|
25461
25463
|
switch (n.nodeType) {
|
|
25462
25464
|
case n.DOCUMENT_NODE:
|
|
25463
25465
|
return n.compatMode !== "CSS1Compat" ? {
|
|
@@ -25484,9 +25486,9 @@ function fc(n, e) {
|
|
|
25484
25486
|
inlineStylesheet: l,
|
|
25485
25487
|
maskInputOptions: c,
|
|
25486
25488
|
maskInputFn: m,
|
|
25487
|
-
dataURLOptions:
|
|
25489
|
+
dataURLOptions: g,
|
|
25488
25490
|
inlineImages: b,
|
|
25489
|
-
recordCanvas:
|
|
25491
|
+
recordCanvas: y,
|
|
25490
25492
|
keepIframeSrcFn: S,
|
|
25491
25493
|
newlyAddedElement: f,
|
|
25492
25494
|
rootId: w
|
|
@@ -25540,24 +25542,24 @@ function yc(n, e) {
|
|
|
25540
25542
|
};
|
|
25541
25543
|
}
|
|
25542
25544
|
function Cc(n, e) {
|
|
25543
|
-
const { doc: t, blockClass: i, blockSelector: s, inlineStylesheet: a, maskInputOptions: o = {}, maskInputFn: l, dataURLOptions: c = {}, inlineImages: p, recordCanvas: m, keepIframeSrcFn:
|
|
25545
|
+
const { doc: t, blockClass: i, blockSelector: s, inlineStylesheet: a, maskInputOptions: o = {}, maskInputFn: l, dataURLOptions: c = {}, inlineImages: p, recordCanvas: m, keepIframeSrcFn: g, newlyAddedElement: b = !1, rootId: y } = e, S = pc(n, i, s), f = sc(n);
|
|
25544
25546
|
let w = {};
|
|
25545
25547
|
const A = n.attributes.length;
|
|
25546
25548
|
for (let x = 0; x < A; x++) {
|
|
25547
|
-
const
|
|
25548
|
-
za(f,
|
|
25549
|
+
const E = n.attributes[x];
|
|
25550
|
+
za(f, E.name, E.value) || (w[E.name] = qa(t, f, Wn(E.name), E.value));
|
|
25549
25551
|
}
|
|
25550
25552
|
if (f === "link" && a) {
|
|
25551
25553
|
const x = Array.from(t.styleSheets).find((D) => D.href === n.href);
|
|
25552
|
-
let
|
|
25553
|
-
x && (
|
|
25554
|
+
let E = null;
|
|
25555
|
+
x && (E = vi(x)), E && (delete w.rel, delete w.href, w._cssText = bi(E, x.href));
|
|
25554
25556
|
}
|
|
25555
25557
|
if (f === "style" && n.sheet && !(n.innerText || n.textContent || "").trim().length) {
|
|
25556
25558
|
const x = vi(n.sheet);
|
|
25557
25559
|
x && (w._cssText = bi(x, os()));
|
|
25558
25560
|
}
|
|
25559
25561
|
if (f === "input" || f === "textarea" || f === "select") {
|
|
25560
|
-
const x = n.value,
|
|
25562
|
+
const x = n.value, E = n.checked;
|
|
25561
25563
|
w.type !== "radio" && w.type !== "checkbox" && w.type !== "submit" && w.type !== "button" && x ? w.value = ss({
|
|
25562
25564
|
element: n,
|
|
25563
25565
|
type: as(n),
|
|
@@ -25565,21 +25567,21 @@ function Cc(n, e) {
|
|
|
25565
25567
|
value: x,
|
|
25566
25568
|
maskInputOptions: o,
|
|
25567
25569
|
maskInputFn: l
|
|
25568
|
-
}) :
|
|
25570
|
+
}) : E && (w.checked = E);
|
|
25569
25571
|
}
|
|
25570
25572
|
if (f === "option" && (n.selected && !o.select ? w.selected = !0 : delete w.selected), f === "canvas" && m) {
|
|
25571
25573
|
if (n.__context === "2d")
|
|
25572
25574
|
nc(n) || (w.rr_dataURL = n.toDataURL(c.type, c.quality));
|
|
25573
25575
|
else if (!("__context" in n)) {
|
|
25574
|
-
const x = n.toDataURL(c.type, c.quality),
|
|
25575
|
-
|
|
25576
|
-
const D =
|
|
25576
|
+
const x = n.toDataURL(c.type, c.quality), E = document.createElement("canvas");
|
|
25577
|
+
E.width = n.width, E.height = n.height;
|
|
25578
|
+
const D = E.toDataURL(c.type, c.quality);
|
|
25577
25579
|
x !== D && (w.rr_dataURL = x);
|
|
25578
25580
|
}
|
|
25579
25581
|
}
|
|
25580
25582
|
if (f === "img" && p) {
|
|
25581
25583
|
nt || (nt = t.createElement("canvas"), qs = nt.getContext("2d"));
|
|
25582
|
-
const x = n,
|
|
25584
|
+
const x = n, E = x.crossOrigin;
|
|
25583
25585
|
x.crossOrigin = "anonymous";
|
|
25584
25586
|
const D = () => {
|
|
25585
25587
|
x.removeEventListener("load", D);
|
|
@@ -25588,7 +25590,7 @@ function Cc(n, e) {
|
|
|
25588
25590
|
} catch (G) {
|
|
25589
25591
|
console.warn(`Cannot inline img src=${x.currentSrc}! Error: ${G}`);
|
|
25590
25592
|
}
|
|
25591
|
-
|
|
25593
|
+
E ? w.crossOrigin = E : x.removeAttribute("crossorigin");
|
|
25592
25594
|
};
|
|
25593
25595
|
x.complete && x.naturalWidth !== 0 ? D() : x.addEventListener("load", D);
|
|
25594
25596
|
}
|
|
@@ -25597,14 +25599,14 @@ function Cc(n, e) {
|
|
|
25597
25599
|
x.rr_mediaState = n.paused ? "paused" : "played", x.rr_mediaCurrentTime = n.currentTime, x.rr_mediaPlaybackRate = n.playbackRate, x.rr_mediaMuted = n.muted, x.rr_mediaLoop = n.loop, x.rr_mediaVolume = n.volume;
|
|
25598
25600
|
}
|
|
25599
25601
|
if (b || (n.scrollLeft && (w.rr_scrollLeft = n.scrollLeft), n.scrollTop && (w.rr_scrollTop = n.scrollTop)), S) {
|
|
25600
|
-
const { width: x, height:
|
|
25602
|
+
const { width: x, height: E } = n.getBoundingClientRect();
|
|
25601
25603
|
w = {
|
|
25602
25604
|
class: w.class,
|
|
25603
25605
|
rr_width: `${x}px`,
|
|
25604
|
-
rr_height: `${
|
|
25606
|
+
rr_height: `${E}px`
|
|
25605
25607
|
};
|
|
25606
25608
|
}
|
|
25607
|
-
f === "iframe" && !
|
|
25609
|
+
f === "iframe" && !g(w.src) && (n.contentDocument || (w.rr_src = w.src), delete w.src);
|
|
25608
25610
|
let M;
|
|
25609
25611
|
try {
|
|
25610
25612
|
customElements.get(f) && (M = !0);
|
|
@@ -25617,7 +25619,7 @@ function Cc(n, e) {
|
|
|
25617
25619
|
childNodes: [],
|
|
25618
25620
|
isSVG: mc(n) || void 0,
|
|
25619
25621
|
needBlock: S,
|
|
25620
|
-
rootId:
|
|
25622
|
+
rootId: y,
|
|
25621
25623
|
isCustom: M
|
|
25622
25624
|
};
|
|
25623
25625
|
}
|
|
@@ -25650,7 +25652,7 @@ function Sc(n, e) {
|
|
|
25650
25652
|
return !1;
|
|
25651
25653
|
}
|
|
25652
25654
|
function at(n, e) {
|
|
25653
|
-
const { doc: t, mirror: i, blockClass: s, blockSelector: a, maskTextClass: o, maskTextSelector: l, skipChild: c = !1, inlineStylesheet: p = !0, maskInputOptions: m = {}, maskTextFn:
|
|
25655
|
+
const { doc: t, mirror: i, blockClass: s, blockSelector: a, maskTextClass: o, maskTextSelector: l, skipChild: c = !1, inlineStylesheet: p = !0, maskInputOptions: m = {}, maskTextFn: g, maskInputFn: b, slimDOMOptions: y, dataURLOptions: S = {}, inlineImages: f = !1, recordCanvas: w = !1, onSerialize: A, onIframeLoad: M, iframeLoadTimeout: x = 5e3, onStylesheetLoad: E, stylesheetLoadTimeout: D = 5e3, keepIframeSrcFn: G = () => !1, newlyAddedElement: q = !1 } = e;
|
|
25654
25656
|
let { needsMask: K } = e, { preserveWhiteSpace: z = !0 } = e;
|
|
25655
25657
|
!K && n.childNodes && (K = Wa(n, o, l, K === void 0));
|
|
25656
25658
|
const ce = fc(n, {
|
|
@@ -25661,7 +25663,7 @@ function at(n, e) {
|
|
|
25661
25663
|
needsMask: K,
|
|
25662
25664
|
inlineStylesheet: p,
|
|
25663
25665
|
maskInputOptions: m,
|
|
25664
|
-
maskTextFn:
|
|
25666
|
+
maskTextFn: g,
|
|
25665
25667
|
maskInputFn: b,
|
|
25666
25668
|
dataURLOptions: S,
|
|
25667
25669
|
inlineImages: f,
|
|
@@ -25672,7 +25674,7 @@ function at(n, e) {
|
|
|
25672
25674
|
if (!ce)
|
|
25673
25675
|
return console.warn(n, "not serialized"), null;
|
|
25674
25676
|
let Le;
|
|
25675
|
-
i.hasNode(n) ? Le = i.getId(n) : Sc(ce,
|
|
25677
|
+
i.hasNode(n) ? Le = i.getId(n) : Sc(ce, y) || !z && ce.type === Se.Text && !ce.isStyle && !ce.textContent.replace(/^\s+|\s+$/gm, "").length ? Le = Tt : Le = ja();
|
|
25676
25678
|
const j = Object.assign(ce, { id: Le });
|
|
25677
25679
|
if (i.add(n, j), Le === Tt)
|
|
25678
25680
|
return null;
|
|
@@ -25684,7 +25686,7 @@ function at(n, e) {
|
|
|
25684
25686
|
ve && At(ve) && (j.isShadowHost = !0);
|
|
25685
25687
|
}
|
|
25686
25688
|
if ((j.type === Se.Document || j.type === Se.Element) && Be) {
|
|
25687
|
-
|
|
25689
|
+
y.headWhitespace && j.type === Se.Element && j.tagName === "head" && (z = !1);
|
|
25688
25690
|
const ve = {
|
|
25689
25691
|
doc: t,
|
|
25690
25692
|
mirror: i,
|
|
@@ -25696,9 +25698,9 @@ function at(n, e) {
|
|
|
25696
25698
|
skipChild: c,
|
|
25697
25699
|
inlineStylesheet: p,
|
|
25698
25700
|
maskInputOptions: m,
|
|
25699
|
-
maskTextFn:
|
|
25701
|
+
maskTextFn: g,
|
|
25700
25702
|
maskInputFn: b,
|
|
25701
|
-
slimDOMOptions:
|
|
25703
|
+
slimDOMOptions: y,
|
|
25702
25704
|
dataURLOptions: S,
|
|
25703
25705
|
inlineImages: f,
|
|
25704
25706
|
recordCanvas: w,
|
|
@@ -25706,7 +25708,7 @@ function at(n, e) {
|
|
|
25706
25708
|
onSerialize: A,
|
|
25707
25709
|
onIframeLoad: M,
|
|
25708
25710
|
iframeLoadTimeout: x,
|
|
25709
|
-
onStylesheetLoad:
|
|
25711
|
+
onStylesheetLoad: E,
|
|
25710
25712
|
stylesheetLoadTimeout: D,
|
|
25711
25713
|
keepIframeSrcFn: G
|
|
25712
25714
|
};
|
|
@@ -25734,9 +25736,9 @@ function at(n, e) {
|
|
|
25734
25736
|
skipChild: !1,
|
|
25735
25737
|
inlineStylesheet: p,
|
|
25736
25738
|
maskInputOptions: m,
|
|
25737
|
-
maskTextFn:
|
|
25739
|
+
maskTextFn: g,
|
|
25738
25740
|
maskInputFn: b,
|
|
25739
|
-
slimDOMOptions:
|
|
25741
|
+
slimDOMOptions: y,
|
|
25740
25742
|
dataURLOptions: S,
|
|
25741
25743
|
inlineImages: f,
|
|
25742
25744
|
recordCanvas: w,
|
|
@@ -25744,14 +25746,14 @@ function at(n, e) {
|
|
|
25744
25746
|
onSerialize: A,
|
|
25745
25747
|
onIframeLoad: M,
|
|
25746
25748
|
iframeLoadTimeout: x,
|
|
25747
|
-
onStylesheetLoad:
|
|
25749
|
+
onStylesheetLoad: E,
|
|
25748
25750
|
stylesheetLoadTimeout: D,
|
|
25749
25751
|
keepIframeSrcFn: G
|
|
25750
25752
|
});
|
|
25751
25753
|
Ke && M(n, Ke);
|
|
25752
25754
|
}
|
|
25753
25755
|
}, x), j.type === Se.Element && j.tagName === "link" && typeof j.attributes.rel == "string" && (j.attributes.rel === "stylesheet" || j.attributes.rel === "preload" && typeof j.attributes.href == "string" && Ga(j.attributes.href) === "css") && bc(n, () => {
|
|
25754
|
-
if (
|
|
25756
|
+
if (E) {
|
|
25755
25757
|
const ve = at(n, {
|
|
25756
25758
|
doc: t,
|
|
25757
25759
|
mirror: i,
|
|
@@ -25763,9 +25765,9 @@ function at(n, e) {
|
|
|
25763
25765
|
skipChild: !1,
|
|
25764
25766
|
inlineStylesheet: p,
|
|
25765
25767
|
maskInputOptions: m,
|
|
25766
|
-
maskTextFn:
|
|
25768
|
+
maskTextFn: g,
|
|
25767
25769
|
maskInputFn: b,
|
|
25768
|
-
slimDOMOptions:
|
|
25770
|
+
slimDOMOptions: y,
|
|
25769
25771
|
dataURLOptions: S,
|
|
25770
25772
|
inlineImages: f,
|
|
25771
25773
|
recordCanvas: w,
|
|
@@ -25773,16 +25775,16 @@ function at(n, e) {
|
|
|
25773
25775
|
onSerialize: A,
|
|
25774
25776
|
onIframeLoad: M,
|
|
25775
25777
|
iframeLoadTimeout: x,
|
|
25776
|
-
onStylesheetLoad:
|
|
25778
|
+
onStylesheetLoad: E,
|
|
25777
25779
|
stylesheetLoadTimeout: D,
|
|
25778
25780
|
keepIframeSrcFn: G
|
|
25779
25781
|
});
|
|
25780
|
-
ve &&
|
|
25782
|
+
ve && E(n, ve);
|
|
25781
25783
|
}
|
|
25782
25784
|
}, D), j;
|
|
25783
25785
|
}
|
|
25784
25786
|
function wc(n, e) {
|
|
25785
|
-
const { mirror: t = new Ka(), blockClass: i = "rr-block", blockSelector: s = null, maskTextClass: a = "rr-mask", maskTextSelector: o = null, inlineStylesheet: l = !0, inlineImages: c = !1, recordCanvas: p = !1, maskAllInputs: m = !1, maskTextFn:
|
|
25787
|
+
const { mirror: t = new Ka(), blockClass: i = "rr-block", blockSelector: s = null, maskTextClass: a = "rr-mask", maskTextSelector: o = null, inlineStylesheet: l = !0, inlineImages: c = !1, recordCanvas: p = !1, maskAllInputs: m = !1, maskTextFn: g, maskInputFn: b, slimDOM: y = !1, dataURLOptions: S, preserveWhiteSpace: f, onSerialize: w, onIframeLoad: A, iframeLoadTimeout: M, onStylesheetLoad: x, stylesheetLoadTimeout: E, keepIframeSrcFn: D = () => !1 } = e || {};
|
|
25786
25788
|
return at(n, {
|
|
25787
25789
|
doc: n,
|
|
25788
25790
|
mirror: t,
|
|
@@ -25812,20 +25814,20 @@ function wc(n, e) {
|
|
|
25812
25814
|
} : m === !1 ? {
|
|
25813
25815
|
password: !0
|
|
25814
25816
|
} : m,
|
|
25815
|
-
maskTextFn:
|
|
25817
|
+
maskTextFn: g,
|
|
25816
25818
|
maskInputFn: b,
|
|
25817
|
-
slimDOMOptions:
|
|
25819
|
+
slimDOMOptions: y === !0 || y === "all" ? {
|
|
25818
25820
|
script: !0,
|
|
25819
25821
|
comment: !0,
|
|
25820
25822
|
headFavicon: !0,
|
|
25821
25823
|
headWhitespace: !0,
|
|
25822
|
-
headMetaDescKeywords:
|
|
25824
|
+
headMetaDescKeywords: y === "all",
|
|
25823
25825
|
headMetaSocial: !0,
|
|
25824
25826
|
headMetaRobots: !0,
|
|
25825
25827
|
headMetaHttpEquiv: !0,
|
|
25826
25828
|
headMetaAuthorship: !0,
|
|
25827
25829
|
headMetaVerification: !0
|
|
25828
|
-
} :
|
|
25830
|
+
} : y === !1 ? {} : y,
|
|
25829
25831
|
dataURLOptions: S,
|
|
25830
25832
|
inlineImages: c,
|
|
25831
25833
|
recordCanvas: p,
|
|
@@ -25834,7 +25836,7 @@ function wc(n, e) {
|
|
|
25834
25836
|
onIframeLoad: A,
|
|
25835
25837
|
iframeLoadTimeout: M,
|
|
25836
25838
|
onStylesheetLoad: x,
|
|
25837
|
-
stylesheetLoadTimeout:
|
|
25839
|
+
stylesheetLoadTimeout: E,
|
|
25838
25840
|
keepIframeSrcFn: D,
|
|
25839
25841
|
newlyAddedElement: !1
|
|
25840
25842
|
});
|
|
@@ -26085,7 +26087,7 @@ class _c {
|
|
|
26085
26087
|
const p = kt(c.parentNode) ? this.mirror.getId(no(c)) : this.mirror.getId(c.parentNode), m = s(c);
|
|
26086
26088
|
if (p === -1 || m === -1)
|
|
26087
26089
|
return i.addNode(c);
|
|
26088
|
-
const
|
|
26090
|
+
const g = at(c, {
|
|
26089
26091
|
doc: this.doc,
|
|
26090
26092
|
mirror: this.mirror,
|
|
26091
26093
|
blockClass: this.blockClass,
|
|
@@ -26105,18 +26107,18 @@ class _c {
|
|
|
26105
26107
|
onSerialize: (b) => {
|
|
26106
26108
|
$a(b, this.mirror) && this.iframeManager.addIframe(b), eo(b, this.mirror) && this.stylesheetManager.trackLinkElement(b), Yi(c) && this.shadowDomManager.addShadowRoot(c.shadowRoot, this.doc);
|
|
26107
26109
|
},
|
|
26108
|
-
onIframeLoad: (b,
|
|
26109
|
-
this.iframeManager.attachIframe(b,
|
|
26110
|
+
onIframeLoad: (b, y) => {
|
|
26111
|
+
this.iframeManager.attachIframe(b, y), this.shadowDomManager.observeAttachShadow(b);
|
|
26110
26112
|
},
|
|
26111
|
-
onStylesheetLoad: (b,
|
|
26112
|
-
this.stylesheetManager.attachLinkElement(b,
|
|
26113
|
+
onStylesheetLoad: (b, y) => {
|
|
26114
|
+
this.stylesheetManager.attachLinkElement(b, y);
|
|
26113
26115
|
}
|
|
26114
26116
|
});
|
|
26115
|
-
|
|
26117
|
+
g && (e.push({
|
|
26116
26118
|
parentId: p,
|
|
26117
26119
|
nextId: m,
|
|
26118
|
-
node:
|
|
26119
|
-
}), t.add(
|
|
26120
|
+
node: g
|
|
26121
|
+
}), t.add(g.id));
|
|
26120
26122
|
};
|
|
26121
26123
|
for (; this.mapRemoves.length; )
|
|
26122
26124
|
this.mirror.removeNodeFromMap(this.mapRemoves.shift());
|
|
@@ -26136,16 +26138,16 @@ class _c {
|
|
|
26136
26138
|
for (; p; ) {
|
|
26137
26139
|
const m = p;
|
|
26138
26140
|
if (p = p.previous, m) {
|
|
26139
|
-
const
|
|
26141
|
+
const g = this.mirror.getId(m.value.parentNode);
|
|
26140
26142
|
if (s(m.value) === -1)
|
|
26141
26143
|
continue;
|
|
26142
|
-
if (
|
|
26144
|
+
if (g !== -1) {
|
|
26143
26145
|
c = m;
|
|
26144
26146
|
break;
|
|
26145
26147
|
} else {
|
|
26146
|
-
const
|
|
26147
|
-
if (
|
|
26148
|
-
const S =
|
|
26148
|
+
const y = m.value;
|
|
26149
|
+
if (y.parentNode && y.parentNode.nodeType === Node.DOCUMENT_FRAGMENT_NODE) {
|
|
26150
|
+
const S = y.parentNode.host;
|
|
26149
26151
|
if (this.mirror.getId(S) !== -1) {
|
|
26150
26152
|
c = m;
|
|
26151
26153
|
break;
|
|
@@ -26173,8 +26175,8 @@ class _c {
|
|
|
26173
26175
|
attributes: this.attributes.map((c) => {
|
|
26174
26176
|
const { attributes: p } = c;
|
|
26175
26177
|
if (typeof p.style == "string") {
|
|
26176
|
-
const m = JSON.stringify(c.styleDiff),
|
|
26177
|
-
m.length < p.style.length && (m +
|
|
26178
|
+
const m = JSON.stringify(c.styleDiff), g = JSON.stringify(c._unchangedStyles);
|
|
26179
|
+
m.length < p.style.length && (m + g).split("var(").length === p.style.split("var(").length && (p.style = c.styleDiff);
|
|
26178
26180
|
}
|
|
26179
26181
|
return {
|
|
26180
26182
|
id: this.mirror.getId(c.node),
|
|
@@ -26400,17 +26402,17 @@ function Ic({ mousemoveCb: n, sampling: e, doc: t, mirror: i }) {
|
|
|
26400
26402
|
};
|
|
26401
26403
|
const s = typeof e.mousemove == "number" ? e.mousemove : 50, a = typeof e.mousemoveCallback == "number" ? e.mousemoveCallback : 500;
|
|
26402
26404
|
let o = [], l;
|
|
26403
|
-
const c = _t(Y((
|
|
26405
|
+
const c = _t(Y((g) => {
|
|
26404
26406
|
const b = Date.now() - l;
|
|
26405
|
-
n(o.map((
|
|
26406
|
-
}), a), p = Y(_t(Y((
|
|
26407
|
-
const b = It(
|
|
26407
|
+
n(o.map((y) => (y.timeOffset -= b, y)), g), o = [], l = null;
|
|
26408
|
+
}), a), p = Y(_t(Y((g) => {
|
|
26409
|
+
const b = It(g), { clientX: y, clientY: S } = Ji(g) ? g.changedTouches[0] : g;
|
|
26408
26410
|
l || (l = gi()), o.push({
|
|
26409
|
-
x:
|
|
26411
|
+
x: y,
|
|
26410
26412
|
y: S,
|
|
26411
26413
|
id: i.getId(b),
|
|
26412
26414
|
timeOffset: gi() - l
|
|
26413
|
-
}), c(typeof DragEvent < "u" &&
|
|
26415
|
+
}), c(typeof DragEvent < "u" && g instanceof DragEvent ? J.Drag : g instanceof MouseEvent ? J.MouseMove : J.TouchMove);
|
|
26414
26416
|
}), s, {
|
|
26415
26417
|
trailing: !1
|
|
26416
26418
|
})), m = [
|
|
@@ -26419,7 +26421,7 @@ function Ic({ mousemoveCb: n, sampling: e, doc: t, mirror: i }) {
|
|
|
26419
26421
|
Re("drag", p, t)
|
|
26420
26422
|
];
|
|
26421
26423
|
return Y(() => {
|
|
26422
|
-
m.forEach((
|
|
26424
|
+
m.forEach((g) => g());
|
|
26423
26425
|
});
|
|
26424
26426
|
}
|
|
26425
26427
|
function Dc({ mouseInteractionCb: n, doc: e, mirror: t, blockClass: i, blockSelector: s, sampling: a }) {
|
|
@@ -26428,46 +26430,46 @@ function Dc({ mouseInteractionCb: n, doc: e, mirror: t, blockClass: i, blockSele
|
|
|
26428
26430
|
};
|
|
26429
26431
|
const o = a.mouseInteraction === !0 || a.mouseInteraction === void 0 ? {} : a.mouseInteraction, l = [];
|
|
26430
26432
|
let c = null;
|
|
26431
|
-
const p = (m) => (
|
|
26432
|
-
const b = It(
|
|
26433
|
+
const p = (m) => (g) => {
|
|
26434
|
+
const b = It(g);
|
|
26433
26435
|
if (He(b, i, s, !0))
|
|
26434
26436
|
return;
|
|
26435
|
-
let
|
|
26436
|
-
if ("pointerType" in
|
|
26437
|
-
switch (
|
|
26437
|
+
let y = null, S = m;
|
|
26438
|
+
if ("pointerType" in g) {
|
|
26439
|
+
switch (g.pointerType) {
|
|
26438
26440
|
case "mouse":
|
|
26439
|
-
|
|
26441
|
+
y = gn.Mouse;
|
|
26440
26442
|
break;
|
|
26441
26443
|
case "touch":
|
|
26442
|
-
|
|
26444
|
+
y = gn.Touch;
|
|
26443
26445
|
break;
|
|
26444
26446
|
case "pen":
|
|
26445
|
-
|
|
26447
|
+
y = gn.Pen;
|
|
26446
26448
|
break;
|
|
26447
26449
|
}
|
|
26448
|
-
|
|
26449
|
-
} else Ji(
|
|
26450
|
-
|
|
26451
|
-
const f = Ji(
|
|
26450
|
+
y === gn.Touch ? Ue[m] === Ue.MouseDown ? S = "TouchStart" : Ue[m] === Ue.MouseUp && (S = "TouchEnd") : gn.Pen;
|
|
26451
|
+
} else Ji(g) && (y = gn.Touch);
|
|
26452
|
+
y !== null ? (c = y, (S.startsWith("Touch") && y === gn.Touch || S.startsWith("Mouse") && y === gn.Mouse) && (y = null)) : Ue[m] === Ue.Click && (y = c, c = null);
|
|
26453
|
+
const f = Ji(g) ? g.changedTouches[0] : g;
|
|
26452
26454
|
if (!f)
|
|
26453
26455
|
return;
|
|
26454
26456
|
const w = t.getId(b), { clientX: A, clientY: M } = f;
|
|
26455
|
-
Y(n)(Object.assign({ type: Ue[S], id: w, x: A, y: M },
|
|
26457
|
+
Y(n)(Object.assign({ type: Ue[S], id: w, x: A, y: M }, y !== null && { pointerType: y }));
|
|
26456
26458
|
};
|
|
26457
26459
|
return Object.keys(Ue).filter((m) => Number.isNaN(Number(m)) && !m.endsWith("_Departed") && o[m] !== !1).forEach((m) => {
|
|
26458
|
-
let
|
|
26460
|
+
let g = Wn(m);
|
|
26459
26461
|
const b = p(m);
|
|
26460
26462
|
if (window.PointerEvent)
|
|
26461
26463
|
switch (Ue[m]) {
|
|
26462
26464
|
case Ue.MouseDown:
|
|
26463
26465
|
case Ue.MouseUp:
|
|
26464
|
-
|
|
26466
|
+
g = g.replace("mouse", "pointer");
|
|
26465
26467
|
break;
|
|
26466
26468
|
case Ue.TouchStart:
|
|
26467
26469
|
case Ue.TouchEnd:
|
|
26468
26470
|
return;
|
|
26469
26471
|
}
|
|
26470
|
-
l.push(Re(
|
|
26472
|
+
l.push(Re(g, b, e));
|
|
26471
26473
|
}), Y(() => {
|
|
26472
26474
|
l.forEach((m) => m());
|
|
26473
26475
|
});
|
|
@@ -26507,9 +26509,9 @@ function Bc({ viewportResizeCb: n }, { win: e }) {
|
|
|
26507
26509
|
}
|
|
26508
26510
|
const Rc = ["INPUT", "TEXTAREA", "SELECT"], Ys = /* @__PURE__ */ new WeakMap();
|
|
26509
26511
|
function Hc({ inputCb: n, doc: e, mirror: t, blockClass: i, blockSelector: s, ignoreClass: a, ignoreSelector: o, maskInputOptions: l, maskInputFn: c, sampling: p, userTriggeredOnInput: m }) {
|
|
26510
|
-
function
|
|
26512
|
+
function g(M) {
|
|
26511
26513
|
let x = It(M);
|
|
26512
|
-
const
|
|
26514
|
+
const E = M.isTrusted, D = x && x.tagName;
|
|
26513
26515
|
if (x && D === "OPTION" && (x = x.parentElement), !x || !D || Rc.indexOf(D) < 0 || He(x, i, s, !0) || x.classList.contains(a) || o && x.matches(o))
|
|
26514
26516
|
return;
|
|
26515
26517
|
let G = x.value, q = !1;
|
|
@@ -26521,7 +26523,7 @@ function Hc({ inputCb: n, doc: e, mirror: t, blockClass: i, blockSelector: s, ig
|
|
|
26521
26523
|
type: K,
|
|
26522
26524
|
value: G,
|
|
26523
26525
|
maskInputFn: c
|
|
26524
|
-
})), b(x, m ? { text: G, isChecked: q, userTriggered:
|
|
26526
|
+
})), b(x, m ? { text: G, isChecked: q, userTriggered: E } : { text: G, isChecked: q });
|
|
26525
26527
|
const z = x.name;
|
|
26526
26528
|
K === "radio" && z && q && e.querySelectorAll(`input[type="radio"][name="${z}"]`).forEach((ce) => {
|
|
26527
26529
|
if (ce !== x) {
|
|
@@ -26531,14 +26533,14 @@ function Hc({ inputCb: n, doc: e, mirror: t, blockClass: i, blockSelector: s, ig
|
|
|
26531
26533
|
});
|
|
26532
26534
|
}
|
|
26533
26535
|
function b(M, x) {
|
|
26534
|
-
const
|
|
26535
|
-
if (!
|
|
26536
|
+
const E = Ys.get(M);
|
|
26537
|
+
if (!E || E.text !== x.text || E.isChecked !== x.isChecked) {
|
|
26536
26538
|
Ys.set(M, x);
|
|
26537
26539
|
const D = t.getId(M);
|
|
26538
26540
|
Y(n)(Object.assign(Object.assign({}, x), { id: D }));
|
|
26539
26541
|
}
|
|
26540
26542
|
}
|
|
26541
|
-
const S = (p.input === "last" ? ["change"] : ["input", "change"]).map((M) => Re(M, Y(
|
|
26543
|
+
const S = (p.input === "last" ? ["change"] : ["input", "change"]).map((M) => Re(M, Y(g), e)), f = e.defaultView;
|
|
26542
26544
|
if (!f)
|
|
26543
26545
|
return () => {
|
|
26544
26546
|
S.forEach((M) => M());
|
|
@@ -26553,7 +26555,7 @@ function Hc({ inputCb: n, doc: e, mirror: t, blockClass: i, blockSelector: s, ig
|
|
|
26553
26555
|
];
|
|
26554
26556
|
return w && w.set && S.push(...A.map((M) => Li(M[0], M[1], {
|
|
26555
26557
|
set() {
|
|
26556
|
-
Y(
|
|
26558
|
+
Y(g)({
|
|
26557
26559
|
target: this,
|
|
26558
26560
|
isTrusted: !1
|
|
26559
26561
|
});
|
|
@@ -26589,58 +26591,58 @@ function Nc({ styleSheetRuleCb: n, mirror: e, stylesheetManager: t }, { win: i }
|
|
|
26589
26591
|
};
|
|
26590
26592
|
const s = i.CSSStyleSheet.prototype.insertRule;
|
|
26591
26593
|
i.CSSStyleSheet.prototype.insertRule = new Proxy(s, {
|
|
26592
|
-
apply: Y((m,
|
|
26593
|
-
const [
|
|
26594
|
+
apply: Y((m, g, b) => {
|
|
26595
|
+
const [y, S] = b, { id: f, styleId: w } = Ln(g, e, t.styleMirror);
|
|
26594
26596
|
return (f && f !== -1 || w && w !== -1) && n({
|
|
26595
26597
|
id: f,
|
|
26596
26598
|
styleId: w,
|
|
26597
|
-
adds: [{ rule:
|
|
26598
|
-
}), m.apply(
|
|
26599
|
+
adds: [{ rule: y, index: S }]
|
|
26600
|
+
}), m.apply(g, b);
|
|
26599
26601
|
})
|
|
26600
26602
|
});
|
|
26601
26603
|
const a = i.CSSStyleSheet.prototype.deleteRule;
|
|
26602
26604
|
i.CSSStyleSheet.prototype.deleteRule = new Proxy(a, {
|
|
26603
|
-
apply: Y((m,
|
|
26604
|
-
const [
|
|
26605
|
+
apply: Y((m, g, b) => {
|
|
26606
|
+
const [y] = b, { id: S, styleId: f } = Ln(g, e, t.styleMirror);
|
|
26605
26607
|
return (S && S !== -1 || f && f !== -1) && n({
|
|
26606
26608
|
id: S,
|
|
26607
26609
|
styleId: f,
|
|
26608
|
-
removes: [{ index:
|
|
26609
|
-
}), m.apply(
|
|
26610
|
+
removes: [{ index: y }]
|
|
26611
|
+
}), m.apply(g, b);
|
|
26610
26612
|
})
|
|
26611
26613
|
});
|
|
26612
26614
|
let o;
|
|
26613
26615
|
i.CSSStyleSheet.prototype.replace && (o = i.CSSStyleSheet.prototype.replace, i.CSSStyleSheet.prototype.replace = new Proxy(o, {
|
|
26614
|
-
apply: Y((m,
|
|
26615
|
-
const [
|
|
26616
|
+
apply: Y((m, g, b) => {
|
|
26617
|
+
const [y] = b, { id: S, styleId: f } = Ln(g, e, t.styleMirror);
|
|
26616
26618
|
return (S && S !== -1 || f && f !== -1) && n({
|
|
26617
26619
|
id: S,
|
|
26618
26620
|
styleId: f,
|
|
26619
|
-
replace:
|
|
26620
|
-
}), m.apply(
|
|
26621
|
+
replace: y
|
|
26622
|
+
}), m.apply(g, b);
|
|
26621
26623
|
})
|
|
26622
26624
|
}));
|
|
26623
26625
|
let l;
|
|
26624
26626
|
i.CSSStyleSheet.prototype.replaceSync && (l = i.CSSStyleSheet.prototype.replaceSync, i.CSSStyleSheet.prototype.replaceSync = new Proxy(l, {
|
|
26625
|
-
apply: Y((m,
|
|
26626
|
-
const [
|
|
26627
|
+
apply: Y((m, g, b) => {
|
|
26628
|
+
const [y] = b, { id: S, styleId: f } = Ln(g, e, t.styleMirror);
|
|
26627
26629
|
return (S && S !== -1 || f && f !== -1) && n({
|
|
26628
26630
|
id: S,
|
|
26629
26631
|
styleId: f,
|
|
26630
|
-
replaceSync:
|
|
26631
|
-
}), m.apply(
|
|
26632
|
+
replaceSync: y
|
|
26633
|
+
}), m.apply(g, b);
|
|
26632
26634
|
})
|
|
26633
26635
|
}));
|
|
26634
26636
|
const c = {};
|
|
26635
26637
|
ai("CSSGroupingRule") ? c.CSSGroupingRule = i.CSSGroupingRule : (ai("CSSMediaRule") && (c.CSSMediaRule = i.CSSMediaRule), ai("CSSConditionRule") && (c.CSSConditionRule = i.CSSConditionRule), ai("CSSSupportsRule") && (c.CSSSupportsRule = i.CSSSupportsRule));
|
|
26636
26638
|
const p = {};
|
|
26637
|
-
return Object.entries(c).forEach(([m,
|
|
26639
|
+
return Object.entries(c).forEach(([m, g]) => {
|
|
26638
26640
|
p[m] = {
|
|
26639
|
-
insertRule:
|
|
26640
|
-
deleteRule:
|
|
26641
|
-
},
|
|
26642
|
-
apply: Y((b,
|
|
26643
|
-
const [f, w] = S, { id: A, styleId: M } = Ln(
|
|
26641
|
+
insertRule: g.prototype.insertRule,
|
|
26642
|
+
deleteRule: g.prototype.deleteRule
|
|
26643
|
+
}, g.prototype.insertRule = new Proxy(p[m].insertRule, {
|
|
26644
|
+
apply: Y((b, y, S) => {
|
|
26645
|
+
const [f, w] = S, { id: A, styleId: M } = Ln(y.parentStyleSheet, e, t.styleMirror);
|
|
26644
26646
|
return (A && A !== -1 || M && M !== -1) && n({
|
|
26645
26647
|
id: A,
|
|
26646
26648
|
styleId: M,
|
|
@@ -26648,28 +26650,28 @@ function Nc({ styleSheetRuleCb: n, mirror: e, stylesheetManager: t }, { win: i }
|
|
|
26648
26650
|
{
|
|
26649
26651
|
rule: f,
|
|
26650
26652
|
index: [
|
|
26651
|
-
...yi(
|
|
26653
|
+
...yi(y),
|
|
26652
26654
|
w || 0
|
|
26653
26655
|
]
|
|
26654
26656
|
}
|
|
26655
26657
|
]
|
|
26656
|
-
}), b.apply(
|
|
26658
|
+
}), b.apply(y, S);
|
|
26657
26659
|
})
|
|
26658
|
-
}),
|
|
26659
|
-
apply: Y((b,
|
|
26660
|
-
const [f] = S, { id: w, styleId: A } = Ln(
|
|
26660
|
+
}), g.prototype.deleteRule = new Proxy(p[m].deleteRule, {
|
|
26661
|
+
apply: Y((b, y, S) => {
|
|
26662
|
+
const [f] = S, { id: w, styleId: A } = Ln(y.parentStyleSheet, e, t.styleMirror);
|
|
26661
26663
|
return (w && w !== -1 || A && A !== -1) && n({
|
|
26662
26664
|
id: w,
|
|
26663
26665
|
styleId: A,
|
|
26664
26666
|
removes: [
|
|
26665
|
-
{ index: [...yi(
|
|
26667
|
+
{ index: [...yi(y), f] }
|
|
26666
26668
|
]
|
|
26667
|
-
}), b.apply(
|
|
26669
|
+
}), b.apply(y, S);
|
|
26668
26670
|
})
|
|
26669
26671
|
});
|
|
26670
26672
|
}), Y(() => {
|
|
26671
|
-
i.CSSStyleSheet.prototype.insertRule = s, i.CSSStyleSheet.prototype.deleteRule = a, o && (i.CSSStyleSheet.prototype.replace = o), l && (i.CSSStyleSheet.prototype.replaceSync = l), Object.entries(c).forEach(([m,
|
|
26672
|
-
|
|
26673
|
+
i.CSSStyleSheet.prototype.insertRule = s, i.CSSStyleSheet.prototype.deleteRule = a, o && (i.CSSStyleSheet.prototype.replace = o), l && (i.CSSStyleSheet.prototype.replaceSync = l), Object.entries(c).forEach(([m, g]) => {
|
|
26674
|
+
g.prototype.insertRule = p[m].insertRule, g.prototype.deleteRule = p[m].deleteRule;
|
|
26673
26675
|
});
|
|
26674
26676
|
});
|
|
26675
26677
|
}
|
|
@@ -26688,13 +26690,13 @@ function ro({ mirror: n, stylesheetManager: e }, t) {
|
|
|
26688
26690
|
},
|
|
26689
26691
|
set(p) {
|
|
26690
26692
|
var m;
|
|
26691
|
-
const
|
|
26693
|
+
const g = (m = c.set) === null || m === void 0 ? void 0 : m.call(this, p);
|
|
26692
26694
|
if (o !== null && o !== -1)
|
|
26693
26695
|
try {
|
|
26694
26696
|
e.adoptStyleSheets(p, o);
|
|
26695
26697
|
} catch {
|
|
26696
26698
|
}
|
|
26697
|
-
return
|
|
26699
|
+
return g;
|
|
26698
26700
|
}
|
|
26699
26701
|
}), Y(() => {
|
|
26700
26702
|
Object.defineProperty(t, "adoptedStyleSheets", {
|
|
@@ -26710,17 +26712,17 @@ function Oc({ styleDeclarationCb: n, mirror: e, ignoreCSSAttributes: t, styleshe
|
|
|
26710
26712
|
s.CSSStyleDeclaration.prototype.setProperty = new Proxy(a, {
|
|
26711
26713
|
apply: Y((l, c, p) => {
|
|
26712
26714
|
var m;
|
|
26713
|
-
const [
|
|
26714
|
-
if (t.has(
|
|
26715
|
-
return a.apply(c, [
|
|
26715
|
+
const [g, b, y] = p;
|
|
26716
|
+
if (t.has(g))
|
|
26717
|
+
return a.apply(c, [g, b, y]);
|
|
26716
26718
|
const { id: S, styleId: f } = Ln((m = c.parentRule) === null || m === void 0 ? void 0 : m.parentStyleSheet, e, i.styleMirror);
|
|
26717
26719
|
return (S && S !== -1 || f && f !== -1) && n({
|
|
26718
26720
|
id: S,
|
|
26719
26721
|
styleId: f,
|
|
26720
26722
|
set: {
|
|
26721
|
-
property:
|
|
26723
|
+
property: g,
|
|
26722
26724
|
value: b,
|
|
26723
|
-
priority:
|
|
26725
|
+
priority: y
|
|
26724
26726
|
},
|
|
26725
26727
|
index: yi(c.parentRule)
|
|
26726
26728
|
}), l.apply(c, p);
|
|
@@ -26730,15 +26732,15 @@ function Oc({ styleDeclarationCb: n, mirror: e, ignoreCSSAttributes: t, styleshe
|
|
|
26730
26732
|
return s.CSSStyleDeclaration.prototype.removeProperty = new Proxy(o, {
|
|
26731
26733
|
apply: Y((l, c, p) => {
|
|
26732
26734
|
var m;
|
|
26733
|
-
const [
|
|
26734
|
-
if (t.has(
|
|
26735
|
-
return o.apply(c, [
|
|
26736
|
-
const { id: b, styleId:
|
|
26737
|
-
return (b && b !== -1 ||
|
|
26735
|
+
const [g] = p;
|
|
26736
|
+
if (t.has(g))
|
|
26737
|
+
return o.apply(c, [g]);
|
|
26738
|
+
const { id: b, styleId: y } = Ln((m = c.parentRule) === null || m === void 0 ? void 0 : m.parentStyleSheet, e, i.styleMirror);
|
|
26739
|
+
return (b && b !== -1 || y && y !== -1) && n({
|
|
26738
26740
|
id: b,
|
|
26739
|
-
styleId:
|
|
26741
|
+
styleId: y,
|
|
26740
26742
|
remove: {
|
|
26741
|
-
property:
|
|
26743
|
+
property: g
|
|
26742
26744
|
},
|
|
26743
26745
|
index: yi(c.parentRule)
|
|
26744
26746
|
}), l.apply(c, p);
|
|
@@ -26752,13 +26754,13 @@ function Uc({ mediaInteractionCb: n, blockClass: e, blockSelector: t, mirror: i,
|
|
|
26752
26754
|
const m = It(p);
|
|
26753
26755
|
if (!m || He(m, e, t, !0))
|
|
26754
26756
|
return;
|
|
26755
|
-
const { currentTime:
|
|
26757
|
+
const { currentTime: g, volume: b, muted: y, playbackRate: S, loop: f } = m;
|
|
26756
26758
|
n({
|
|
26757
26759
|
type: c,
|
|
26758
26760
|
id: i.getId(m),
|
|
26759
|
-
currentTime:
|
|
26761
|
+
currentTime: g,
|
|
26760
26762
|
volume: b,
|
|
26761
|
-
muted:
|
|
26763
|
+
muted: y,
|
|
26762
26764
|
playbackRate: S,
|
|
26763
26765
|
loop: f
|
|
26764
26766
|
});
|
|
@@ -26780,13 +26782,13 @@ function Vc({ fontCb: n, doc: e }) {
|
|
|
26780
26782
|
};
|
|
26781
26783
|
const i = [], s = /* @__PURE__ */ new WeakMap(), a = t.FontFace;
|
|
26782
26784
|
t.FontFace = function(c, p, m) {
|
|
26783
|
-
const
|
|
26784
|
-
return s.set(
|
|
26785
|
+
const g = new a(c, p, m);
|
|
26786
|
+
return s.set(g, {
|
|
26785
26787
|
family: c,
|
|
26786
26788
|
buffer: typeof p != "string",
|
|
26787
26789
|
descriptors: m,
|
|
26788
26790
|
fontSource: typeof p == "string" ? p : JSON.stringify(Array.from(new Uint8Array(p)))
|
|
26789
|
-
}),
|
|
26791
|
+
}), g;
|
|
26790
26792
|
};
|
|
26791
26793
|
const o = vt(e.fonts, "add", function(l) {
|
|
26792
26794
|
return function(c) {
|
|
@@ -26811,10 +26813,10 @@ function Fc(n) {
|
|
|
26811
26813
|
return;
|
|
26812
26814
|
o = c.isCollapsed || !1;
|
|
26813
26815
|
const p = [], m = c.rangeCount || 0;
|
|
26814
|
-
for (let
|
|
26815
|
-
const b = c.getRangeAt(
|
|
26816
|
-
He(
|
|
26817
|
-
start: t.getId(
|
|
26816
|
+
for (let g = 0; g < m; g++) {
|
|
26817
|
+
const b = c.getRangeAt(g), { startContainer: y, startOffset: S, endContainer: f, endOffset: w } = b;
|
|
26818
|
+
He(y, i, s, !0) || He(f, i, s, !0) || p.push({
|
|
26819
|
+
start: t.getId(y),
|
|
26818
26820
|
startOffset: S,
|
|
26819
26821
|
end: t.getId(f),
|
|
26820
26822
|
endOffset: w
|
|
@@ -26843,7 +26845,7 @@ function Kc({ doc: n, customElementCb: e }) {
|
|
|
26843
26845
|
});
|
|
26844
26846
|
}
|
|
26845
26847
|
function Gc(n, e) {
|
|
26846
|
-
const { mutationCb: t, mousemoveCb: i, mouseInteractionCb: s, scrollCb: a, viewportResizeCb: o, inputCb: l, mediaInteractionCb: c, styleSheetRuleCb: p, styleDeclarationCb: m, canvasMutationCb:
|
|
26848
|
+
const { mutationCb: t, mousemoveCb: i, mouseInteractionCb: s, scrollCb: a, viewportResizeCb: o, inputCb: l, mediaInteractionCb: c, styleSheetRuleCb: p, styleDeclarationCb: m, canvasMutationCb: g, fontCb: b, selectionCb: y, customElementCb: S } = n;
|
|
26847
26849
|
n.mutationCb = (...f) => {
|
|
26848
26850
|
e.mutation && e.mutation(...f), t(...f);
|
|
26849
26851
|
}, n.mousemoveCb = (...f) => {
|
|
@@ -26863,11 +26865,11 @@ function Gc(n, e) {
|
|
|
26863
26865
|
}, n.styleDeclarationCb = (...f) => {
|
|
26864
26866
|
e.styleDeclaration && e.styleDeclaration(...f), m(...f);
|
|
26865
26867
|
}, n.canvasMutationCb = (...f) => {
|
|
26866
|
-
e.canvasMutation && e.canvasMutation(...f),
|
|
26868
|
+
e.canvasMutation && e.canvasMutation(...f), g(...f);
|
|
26867
26869
|
}, n.fontCb = (...f) => {
|
|
26868
26870
|
e.font && e.font(...f), b(...f);
|
|
26869
26871
|
}, n.selectionCb = (...f) => {
|
|
26870
|
-
e.selection && e.selection(...f),
|
|
26872
|
+
e.selection && e.selection(...f), y(...f);
|
|
26871
26873
|
}, n.customElementCb = (...f) => {
|
|
26872
26874
|
e.customElement && e.customElement(...f), S(...f);
|
|
26873
26875
|
};
|
|
@@ -26884,18 +26886,18 @@ function jc(n, e = {}) {
|
|
|
26884
26886
|
win: t
|
|
26885
26887
|
}), c = Hc(n), p = Uc(n);
|
|
26886
26888
|
let m = () => {
|
|
26887
|
-
}, y = () => {
|
|
26888
|
-
}, b = () => {
|
|
26889
26889
|
}, g = () => {
|
|
26890
|
+
}, b = () => {
|
|
26891
|
+
}, y = () => {
|
|
26890
26892
|
};
|
|
26891
|
-
n.recordDOM && (m = Nc(n, { win: t }),
|
|
26893
|
+
n.recordDOM && (m = Nc(n, { win: t }), g = ro(n, n.doc), b = Oc(n, {
|
|
26892
26894
|
win: t
|
|
26893
|
-
}), n.collectFonts && (
|
|
26895
|
+
}), n.collectFonts && (y = Vc(n)));
|
|
26894
26896
|
const S = Fc(n), f = Kc(n), w = [];
|
|
26895
26897
|
for (const A of n.plugins)
|
|
26896
26898
|
w.push(A.observer(A.callback, t, A.options));
|
|
26897
26899
|
return Y(() => {
|
|
26898
|
-
qn.forEach((A) => A.reset()), i == null || i.disconnect(), s(), a(), o(), l(), c(), p(), m(),
|
|
26900
|
+
qn.forEach((A) => A.reset()), i == null || i.disconnect(), s(), a(), o(), l(), c(), p(), m(), g(), b(), y(), S(), f(), w.forEach((A) => A());
|
|
26899
26901
|
});
|
|
26900
26902
|
}
|
|
26901
26903
|
function si(n) {
|
|
@@ -27156,15 +27158,15 @@ function Zc(n, e, t, i) {
|
|
|
27156
27158
|
function l(m) {
|
|
27157
27159
|
try {
|
|
27158
27160
|
p(i.next(m));
|
|
27159
|
-
} catch (
|
|
27160
|
-
o(
|
|
27161
|
+
} catch (g) {
|
|
27162
|
+
o(g);
|
|
27161
27163
|
}
|
|
27162
27164
|
}
|
|
27163
27165
|
function c(m) {
|
|
27164
27166
|
try {
|
|
27165
27167
|
p(i.throw(m));
|
|
27166
|
-
} catch (
|
|
27167
|
-
o(
|
|
27168
|
+
} catch (g) {
|
|
27169
|
+
o(g);
|
|
27168
27170
|
}
|
|
27169
27171
|
}
|
|
27170
27172
|
function p(m) {
|
|
@@ -27340,10 +27342,10 @@ function na(n, e, t, i, s, a, o) {
|
|
|
27340
27342
|
try {
|
|
27341
27343
|
if (typeof n[p] != "function")
|
|
27342
27344
|
continue;
|
|
27343
|
-
const m = vt(n, p, function(
|
|
27345
|
+
const m = vt(n, p, function(g) {
|
|
27344
27346
|
return function(...b) {
|
|
27345
|
-
const
|
|
27346
|
-
if (lo(
|
|
27347
|
+
const y = g.apply(this, b);
|
|
27348
|
+
if (lo(y, o, this), "tagName" in this.canvas && !He(this.canvas, i, s, !0)) {
|
|
27347
27349
|
const S = co(b, o, this), f = {
|
|
27348
27350
|
type: e,
|
|
27349
27351
|
property: p,
|
|
@@ -27351,12 +27353,12 @@ function na(n, e, t, i, s, a, o) {
|
|
|
27351
27353
|
};
|
|
27352
27354
|
t(this.canvas, f);
|
|
27353
27355
|
}
|
|
27354
|
-
return
|
|
27356
|
+
return y;
|
|
27355
27357
|
};
|
|
27356
27358
|
});
|
|
27357
27359
|
l.push(m);
|
|
27358
27360
|
} catch {
|
|
27359
|
-
const
|
|
27361
|
+
const g = Li(n, p, {
|
|
27360
27362
|
set(b) {
|
|
27361
27363
|
t(this.canvas, {
|
|
27362
27364
|
type: e,
|
|
@@ -27366,7 +27368,7 @@ function na(n, e, t, i, s, a, o) {
|
|
|
27366
27368
|
});
|
|
27367
27369
|
}
|
|
27368
27370
|
});
|
|
27369
|
-
l.push(
|
|
27371
|
+
l.push(g);
|
|
27370
27372
|
}
|
|
27371
27373
|
return l;
|
|
27372
27374
|
}
|
|
@@ -27414,29 +27416,29 @@ var sd = id(
|
|
|
27414
27416
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
27415
27417
|
PERFORMANCE OF THIS SOFTWARE.
|
|
27416
27418
|
***************************************************************************** */
|
|
27417
|
-
function n(p, m,
|
|
27418
|
-
function
|
|
27419
|
-
return S instanceof
|
|
27419
|
+
function n(p, m, g, b) {
|
|
27420
|
+
function y(S) {
|
|
27421
|
+
return S instanceof g ? S : new g(function(f) {
|
|
27420
27422
|
f(S);
|
|
27421
27423
|
});
|
|
27422
27424
|
}
|
|
27423
|
-
return new (
|
|
27425
|
+
return new (g || (g = Promise))(function(S, f) {
|
|
27424
27426
|
function w(x) {
|
|
27425
27427
|
try {
|
|
27426
27428
|
M(b.next(x));
|
|
27427
|
-
} catch (
|
|
27428
|
-
f(
|
|
27429
|
+
} catch (E) {
|
|
27430
|
+
f(E);
|
|
27429
27431
|
}
|
|
27430
27432
|
}
|
|
27431
27433
|
function A(x) {
|
|
27432
27434
|
try {
|
|
27433
27435
|
M(b.throw(x));
|
|
27434
|
-
} catch (
|
|
27435
|
-
f(
|
|
27436
|
+
} catch (E) {
|
|
27437
|
+
f(E);
|
|
27436
27438
|
}
|
|
27437
27439
|
}
|
|
27438
27440
|
function M(x) {
|
|
27439
|
-
x.done ? S(x.value) :
|
|
27441
|
+
x.done ? S(x.value) : y(x.value).then(w, A);
|
|
27440
27442
|
}
|
|
27441
27443
|
M((b = b.apply(p, [])).next());
|
|
27442
27444
|
});
|
|
@@ -27444,21 +27446,21 @@ var sd = id(
|
|
|
27444
27446
|
for (var e = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", t = typeof Uint8Array > "u" ? [] : new Uint8Array(256), i = 0; i < e.length; i++)
|
|
27445
27447
|
t[e.charCodeAt(i)] = i;
|
|
27446
27448
|
var s = function(p) {
|
|
27447
|
-
var m = new Uint8Array(p),
|
|
27448
|
-
for (
|
|
27449
|
-
|
|
27450
|
-
return b % 3 === 2 ?
|
|
27449
|
+
var m = new Uint8Array(p), g, b = m.length, y = "";
|
|
27450
|
+
for (g = 0; g < b; g += 3)
|
|
27451
|
+
y += e[m[g] >> 2], y += e[(m[g] & 3) << 4 | m[g + 1] >> 4], y += e[(m[g + 1] & 15) << 2 | m[g + 2] >> 6], y += e[m[g + 2] & 63];
|
|
27452
|
+
return b % 3 === 2 ? y = y.substring(0, y.length - 1) + "=" : b % 3 === 1 && (y = y.substring(0, y.length - 2) + "=="), y;
|
|
27451
27453
|
};
|
|
27452
27454
|
const a = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Map();
|
|
27453
|
-
function l(p, m,
|
|
27455
|
+
function l(p, m, g) {
|
|
27454
27456
|
return n(this, void 0, void 0, function* () {
|
|
27455
27457
|
const b = `${p}-${m}`;
|
|
27456
27458
|
if ("OffscreenCanvas" in globalThis) {
|
|
27457
27459
|
if (o.has(b))
|
|
27458
27460
|
return o.get(b);
|
|
27459
|
-
const
|
|
27460
|
-
|
|
27461
|
-
const f = yield (yield
|
|
27461
|
+
const y = new OffscreenCanvas(p, m);
|
|
27462
|
+
y.getContext("2d");
|
|
27463
|
+
const f = yield (yield y.convertToBlob(g)).arrayBuffer(), w = s(f);
|
|
27462
27464
|
return o.set(b, w), w;
|
|
27463
27465
|
} else
|
|
27464
27466
|
return "";
|
|
@@ -27468,9 +27470,9 @@ var sd = id(
|
|
|
27468
27470
|
c.onmessage = function(p) {
|
|
27469
27471
|
return n(this, void 0, void 0, function* () {
|
|
27470
27472
|
if ("OffscreenCanvas" in globalThis) {
|
|
27471
|
-
const { id: m, bitmap:
|
|
27472
|
-
w.getContext("2d").drawImage(
|
|
27473
|
-
const M = yield w.convertToBlob(S), x = M.type,
|
|
27473
|
+
const { id: m, bitmap: g, width: b, height: y, dataURLOptions: S } = p.data, f = l(b, y, S), w = new OffscreenCanvas(b, y);
|
|
27474
|
+
w.getContext("2d").drawImage(g, 0, 0), g.close();
|
|
27475
|
+
const M = yield w.convertToBlob(S), x = M.type, E = yield M.arrayBuffer(), D = s(E);
|
|
27474
27476
|
if (!a.has(m) && (yield f) === D)
|
|
27475
27477
|
return a.set(m, D), c.postMessage({ id: m });
|
|
27476
27478
|
if (a.get(m) === D)
|
|
@@ -27480,7 +27482,7 @@ var sd = id(
|
|
|
27480
27482
|
type: x,
|
|
27481
27483
|
base64: D,
|
|
27482
27484
|
width: b,
|
|
27483
|
-
height:
|
|
27485
|
+
height: y
|
|
27484
27486
|
}), a.set(m, D);
|
|
27485
27487
|
} else
|
|
27486
27488
|
return c.postMessage({ id: p.data.id });
|
|
@@ -27550,15 +27552,15 @@ class ad {
|
|
|
27550
27552
|
});
|
|
27551
27553
|
};
|
|
27552
27554
|
const p = 1e3 / e;
|
|
27553
|
-
let m = 0,
|
|
27555
|
+
let m = 0, g;
|
|
27554
27556
|
const b = () => {
|
|
27555
27557
|
const S = [];
|
|
27556
27558
|
return t.document.querySelectorAll("canvas").forEach((f) => {
|
|
27557
27559
|
He(f, i, s, !0) || S.push(f);
|
|
27558
27560
|
}), S;
|
|
27559
|
-
},
|
|
27561
|
+
}, y = (S) => {
|
|
27560
27562
|
if (m && S - m < p) {
|
|
27561
|
-
|
|
27563
|
+
g = requestAnimationFrame(y);
|
|
27562
27564
|
return;
|
|
27563
27565
|
}
|
|
27564
27566
|
m = S, b().forEach((f) => Zc(this, void 0, void 0, function* () {
|
|
@@ -27578,10 +27580,10 @@ class ad {
|
|
|
27578
27580
|
height: f.height,
|
|
27579
27581
|
dataURLOptions: a.dataURLOptions
|
|
27580
27582
|
}, [M]);
|
|
27581
|
-
})),
|
|
27583
|
+
})), g = requestAnimationFrame(y);
|
|
27582
27584
|
};
|
|
27583
|
-
|
|
27584
|
-
o(), cancelAnimationFrame(
|
|
27585
|
+
g = requestAnimationFrame(y), this.resetObservers = () => {
|
|
27586
|
+
o(), cancelAnimationFrame(g);
|
|
27585
27587
|
};
|
|
27586
27588
|
}
|
|
27587
27589
|
initCanvasMutationObserver(e, t, i) {
|
|
@@ -27690,7 +27692,7 @@ function Ce(n) {
|
|
|
27690
27692
|
let me, ui, ji, Ci = !1;
|
|
27691
27693
|
const Ye = ec();
|
|
27692
27694
|
function Dt(n = {}) {
|
|
27693
|
-
const { emit: e, checkoutEveryNms: t, checkoutEveryNth: i, blockClass: s = "rr-block", blockSelector: a = null, ignoreClass: o = "rr-ignore", ignoreSelector: l = null, maskTextClass: c = "rr-mask", maskTextSelector: p = null, inlineStylesheet: m = !0, maskAllInputs:
|
|
27695
|
+
const { emit: e, checkoutEveryNms: t, checkoutEveryNth: i, blockClass: s = "rr-block", blockSelector: a = null, ignoreClass: o = "rr-ignore", ignoreSelector: l = null, maskTextClass: c = "rr-mask", maskTextSelector: p = null, inlineStylesheet: m = !0, maskAllInputs: g, maskInputOptions: b, slimDOMOptions: y, maskInputFn: S, maskTextFn: f, hooks: w, packFn: A, sampling: M = {}, dataURLOptions: x = {}, mousemoveWait: E, recordDOM: D = !0, recordCanvas: G = !1, recordCrossOriginIframes: q = !1, recordAfter: K = n.recordAfter === "DOMContentLoaded" ? n.recordAfter : "load", userTriggeredOnInput: z = !1, collectFonts: ce = !1, inlineImages: Le = !1, plugins: j, keepIframeSrcFn: Be = () => !1, ignoreCSSAttributes: ve = /* @__PURE__ */ new Set([]), errorHandler: Ke } = n;
|
|
27694
27696
|
Ec(Ke);
|
|
27695
27697
|
const we = q ? window.parent === window : !0;
|
|
27696
27698
|
let hn = !1;
|
|
@@ -27702,8 +27704,8 @@ function Dt(n = {}) {
|
|
|
27702
27704
|
}
|
|
27703
27705
|
if (we && !e)
|
|
27704
27706
|
throw new Error("emit function is required");
|
|
27705
|
-
|
|
27706
|
-
const an =
|
|
27707
|
+
E !== void 0 && M.mousemove === void 0 && (M.mousemove = E), Ye.reset();
|
|
27708
|
+
const an = g === !0 ? {
|
|
27707
27709
|
color: !0,
|
|
27708
27710
|
date: !0,
|
|
27709
27711
|
"datetime-local": !0,
|
|
@@ -27720,7 +27722,7 @@ function Dt(n = {}) {
|
|
|
27720
27722
|
textarea: !0,
|
|
27721
27723
|
select: !0,
|
|
27722
27724
|
password: !0
|
|
27723
|
-
} : b !== void 0 ? b : { password: !0 }, mn =
|
|
27725
|
+
} : b !== void 0 ? b : { password: !0 }, mn = y === !0 || y === "all" ? {
|
|
27724
27726
|
script: !0,
|
|
27725
27727
|
comment: !0,
|
|
27726
27728
|
headFavicon: !0,
|
|
@@ -27729,9 +27731,9 @@ function Dt(n = {}) {
|
|
|
27729
27731
|
headMetaRobots: !0,
|
|
27730
27732
|
headMetaHttpEquiv: !0,
|
|
27731
27733
|
headMetaVerification: !0,
|
|
27732
|
-
headMetaAuthorship:
|
|
27733
|
-
headMetaDescKeywords:
|
|
27734
|
-
} :
|
|
27734
|
+
headMetaAuthorship: y === "all",
|
|
27735
|
+
headMetaDescKeywords: y === "all"
|
|
27736
|
+
} : y || {};
|
|
27735
27737
|
Ac();
|
|
27736
27738
|
let Un, An = 0;
|
|
27737
27739
|
const Ge = (H) => {
|
|
@@ -28260,7 +28262,7 @@ v.JSONEncode = /* @__PURE__ */ function() {
|
|
|
28260
28262
|
return typeof c == "string" ? c : "\\u" + ("0000" + l.charCodeAt(0).toString(16)).slice(-4);
|
|
28261
28263
|
}) + '"' : '"' + s + '"';
|
|
28262
28264
|
}, i = function(s, a) {
|
|
28263
|
-
var o = "", l = " ", c = 0, p = "", m = "",
|
|
28265
|
+
var o = "", l = " ", c = 0, p = "", m = "", g = 0, b = o, y = [], S = a[s];
|
|
28264
28266
|
switch (S && typeof S == "object" && typeof S.toJSON == "function" && (S = S.toJSON(s)), typeof S) {
|
|
28265
28267
|
case "string":
|
|
28266
28268
|
return t(S);
|
|
@@ -28272,17 +28274,17 @@ v.JSONEncode = /* @__PURE__ */ function() {
|
|
|
28272
28274
|
case "object":
|
|
28273
28275
|
if (!S)
|
|
28274
28276
|
return "null";
|
|
28275
|
-
if (o += l,
|
|
28276
|
-
for (
|
|
28277
|
-
|
|
28278
|
-
return m =
|
|
28279
|
-
` + o +
|
|
28277
|
+
if (o += l, y = [], Bt.apply(S) === "[object Array]") {
|
|
28278
|
+
for (g = S.length, c = 0; c < g; c += 1)
|
|
28279
|
+
y[c] = i(c, S) || "null";
|
|
28280
|
+
return m = y.length === 0 ? "[]" : o ? `[
|
|
28281
|
+
` + o + y.join(`,
|
|
28280
28282
|
` + o) + `
|
|
28281
|
-
` + b + "]" : "[" +
|
|
28283
|
+
` + b + "]" : "[" + y.join(",") + "]", o = b, m;
|
|
28282
28284
|
}
|
|
28283
28285
|
for (p in S)
|
|
28284
|
-
_i.call(S, p) && (m = i(p, S), m &&
|
|
28285
|
-
return m =
|
|
28286
|
+
_i.call(S, p) && (m = i(p, S), m && y.push(t(p) + (o ? ": " : ":") + m));
|
|
28287
|
+
return m = y.length === 0 ? "{}" : o ? "{" + y.join(",") + b + "}" : "{" + y.join(",") + "}", o = b, m;
|
|
28286
28288
|
}
|
|
28287
28289
|
};
|
|
28288
28290
|
return i("", {
|
|
@@ -28301,13 +28303,13 @@ v.JSONDecode = function() {
|
|
|
28301
28303
|
`,
|
|
28302
28304
|
r: "\r",
|
|
28303
28305
|
t: " "
|
|
28304
|
-
}, i, s = function(
|
|
28305
|
-
var S = new SyntaxError(
|
|
28306
|
+
}, i, s = function(y) {
|
|
28307
|
+
var S = new SyntaxError(y);
|
|
28306
28308
|
throw S.at = n, S.text = i, S;
|
|
28307
|
-
}, a = function(
|
|
28308
|
-
return
|
|
28309
|
+
}, a = function(y) {
|
|
28310
|
+
return y && y !== e && s("Expected '" + y + "' instead of '" + e + "'"), e = i.charAt(n), n += 1, e;
|
|
28309
28311
|
}, o = function() {
|
|
28310
|
-
var
|
|
28312
|
+
var y, S = "";
|
|
28311
28313
|
for (e === "-" && (S = "-", a("-")); e >= "0" && e <= "9"; )
|
|
28312
28314
|
S += e, a();
|
|
28313
28315
|
if (e === ".")
|
|
@@ -28316,20 +28318,20 @@ v.JSONDecode = function() {
|
|
|
28316
28318
|
if (e === "e" || e === "E")
|
|
28317
28319
|
for (S += e, a(), (e === "-" || e === "+") && (S += e, a()); e >= "0" && e <= "9"; )
|
|
28318
28320
|
S += e, a();
|
|
28319
|
-
if (
|
|
28321
|
+
if (y = +S, !isFinite(y))
|
|
28320
28322
|
s("Bad number");
|
|
28321
28323
|
else
|
|
28322
|
-
return
|
|
28324
|
+
return y;
|
|
28323
28325
|
}, l = function() {
|
|
28324
|
-
var
|
|
28326
|
+
var y, S, f = "", w;
|
|
28325
28327
|
if (e === '"')
|
|
28326
28328
|
for (; a(); ) {
|
|
28327
28329
|
if (e === '"')
|
|
28328
28330
|
return a(), f;
|
|
28329
28331
|
if (e === "\\")
|
|
28330
28332
|
if (a(), e === "u") {
|
|
28331
|
-
for (w = 0, S = 0; S < 4 && (
|
|
28332
|
-
w = w * 16 +
|
|
28333
|
+
for (w = 0, S = 0; S < 4 && (y = parseInt(a(), 16), !!isFinite(y)); S += 1)
|
|
28334
|
+
w = w * 16 + y;
|
|
28333
28335
|
f += String.fromCharCode(w);
|
|
28334
28336
|
} else if (typeof t[e] == "string")
|
|
28335
28337
|
f += t[e];
|
|
@@ -28352,25 +28354,25 @@ v.JSONDecode = function() {
|
|
|
28352
28354
|
return a("n"), a("u"), a("l"), a("l"), null;
|
|
28353
28355
|
}
|
|
28354
28356
|
s('Unexpected "' + e + '"');
|
|
28355
|
-
}, m,
|
|
28356
|
-
var
|
|
28357
|
+
}, m, g = function() {
|
|
28358
|
+
var y = [];
|
|
28357
28359
|
if (e === "[") {
|
|
28358
28360
|
if (a("["), c(), e === "]")
|
|
28359
|
-
return a("]"),
|
|
28361
|
+
return a("]"), y;
|
|
28360
28362
|
for (; e; ) {
|
|
28361
|
-
if (
|
|
28362
|
-
return a("]"),
|
|
28363
|
+
if (y.push(m()), c(), e === "]")
|
|
28364
|
+
return a("]"), y;
|
|
28363
28365
|
a(","), c();
|
|
28364
28366
|
}
|
|
28365
28367
|
}
|
|
28366
28368
|
s("Bad array");
|
|
28367
28369
|
}, b = function() {
|
|
28368
|
-
var
|
|
28370
|
+
var y, S = {};
|
|
28369
28371
|
if (e === "{") {
|
|
28370
28372
|
if (a("{"), c(), e === "}")
|
|
28371
28373
|
return a("}"), S;
|
|
28372
28374
|
for (; e; ) {
|
|
28373
|
-
if (
|
|
28375
|
+
if (y = l(), c(), a(":"), Object.hasOwnProperty.call(S, y) && s('Duplicate key "' + y + '"'), S[y] = m(), c(), e === "}")
|
|
28374
28376
|
return a("}"), S;
|
|
28375
28377
|
a(","), c();
|
|
28376
28378
|
}
|
|
@@ -28382,7 +28384,7 @@ v.JSONDecode = function() {
|
|
|
28382
28384
|
case "{":
|
|
28383
28385
|
return b();
|
|
28384
28386
|
case "[":
|
|
28385
|
-
return
|
|
28387
|
+
return g();
|
|
28386
28388
|
case '"':
|
|
28387
28389
|
return l();
|
|
28388
28390
|
case "-":
|
|
@@ -28390,20 +28392,20 @@ v.JSONDecode = function() {
|
|
|
28390
28392
|
default:
|
|
28391
28393
|
return e >= "0" && e <= "9" ? o() : p();
|
|
28392
28394
|
}
|
|
28393
|
-
}, function(
|
|
28395
|
+
}, function(y) {
|
|
28394
28396
|
var S;
|
|
28395
|
-
return i =
|
|
28397
|
+
return i = y, n = 0, e = " ", S = m(), c(), e && s("Syntax error"), S;
|
|
28396
28398
|
};
|
|
28397
28399
|
}();
|
|
28398
28400
|
v.base64Encode = function(n) {
|
|
28399
|
-
var e = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=", t, i, s, a, o, l, c, p, m = 0,
|
|
28401
|
+
var e = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=", t, i, s, a, o, l, c, p, m = 0, g = 0, b = "", y = [];
|
|
28400
28402
|
if (!n)
|
|
28401
28403
|
return n;
|
|
28402
28404
|
n = v.utf8Encode(n);
|
|
28403
28405
|
do
|
|
28404
|
-
t = n.charCodeAt(m++), i = n.charCodeAt(m++), s = n.charCodeAt(m++), p = t << 16 | i << 8 | s, a = p >> 18 & 63, o = p >> 12 & 63, l = p >> 6 & 63, c = p & 63, g
|
|
28406
|
+
t = n.charCodeAt(m++), i = n.charCodeAt(m++), s = n.charCodeAt(m++), p = t << 16 | i << 8 | s, a = p >> 18 & 63, o = p >> 12 & 63, l = p >> 6 & 63, c = p & 63, y[g++] = e.charAt(a) + e.charAt(o) + e.charAt(l) + e.charAt(c);
|
|
28405
28407
|
while (m < n.length);
|
|
28406
|
-
switch (b =
|
|
28408
|
+
switch (b = y.join(""), n.length % 3) {
|
|
28407
28409
|
case 1:
|
|
28408
28410
|
b = b.slice(0, -2) + "==";
|
|
28409
28411
|
break;
|
|
@@ -28438,9 +28440,9 @@ v.UUID = /* @__PURE__ */ function() {
|
|
|
28438
28440
|
}, t = function() {
|
|
28439
28441
|
var i = dn, s, a, o = [], l = 0;
|
|
28440
28442
|
function c(p, m) {
|
|
28441
|
-
var
|
|
28442
|
-
for (
|
|
28443
|
-
b |= o[
|
|
28443
|
+
var g, b = 0;
|
|
28444
|
+
for (g = 0; g < m.length; g++)
|
|
28445
|
+
b |= o[g] << g * 8;
|
|
28444
28446
|
return p ^ b;
|
|
28445
28447
|
}
|
|
28446
28448
|
for (s = 0; s < i.length; s++)
|
|
@@ -28532,8 +28534,8 @@ v.cookie = {
|
|
|
28532
28534
|
l = m ? "; domain=." + m : "";
|
|
28533
28535
|
}
|
|
28534
28536
|
if (t) {
|
|
28535
|
-
var
|
|
28536
|
-
|
|
28537
|
+
var g = /* @__PURE__ */ new Date();
|
|
28538
|
+
g.setTime(g.getTime() + t * 1e3), c = "; expires=" + g.toGMTString();
|
|
28537
28539
|
}
|
|
28538
28540
|
a && (s = !0, p = "; SameSite=None"), s && (p += "; secure"), ae.cookie = n + "=" + encodeURIComponent(e) + c + "; path=/" + l + p;
|
|
28539
28541
|
},
|
|
@@ -28546,8 +28548,8 @@ v.cookie = {
|
|
|
28546
28548
|
l = m ? "; domain=." + m : "";
|
|
28547
28549
|
}
|
|
28548
28550
|
if (t) {
|
|
28549
|
-
var
|
|
28550
|
-
|
|
28551
|
+
var g = /* @__PURE__ */ new Date();
|
|
28552
|
+
g.setTime(g.getTime() + t * 24 * 60 * 60 * 1e3), c = "; expires=" + g.toGMTString();
|
|
28551
28553
|
}
|
|
28552
28554
|
a && (s = !0, p = "; SameSite=None"), s && (p += "; secure");
|
|
28553
28555
|
var b = n + "=" + encodeURIComponent(e) + c + "; path=/" + l + p;
|
|
@@ -28652,9 +28654,9 @@ v.dom_query = /* @__PURE__ */ function() {
|
|
|
28652
28654
|
function i(s) {
|
|
28653
28655
|
if (!ae.getElementsByTagName)
|
|
28654
28656
|
return [];
|
|
28655
|
-
var a = s.split(" "), o, l, c, p, m,
|
|
28656
|
-
for (
|
|
28657
|
-
if (o = a[
|
|
28657
|
+
var a = s.split(" "), o, l, c, p, m, g, b, y, S, f, w = [ae];
|
|
28658
|
+
for (g = 0; g < a.length; g++) {
|
|
28659
|
+
if (o = a[g].replace(/^\s+/, "").replace(/\s+$/, ""), o.indexOf("#") > -1) {
|
|
28658
28660
|
l = o.split("#"), c = l[0];
|
|
28659
28661
|
var A = l[1], M = ae.getElementById(A);
|
|
28660
28662
|
if (!M || c && M.nodeName.toLowerCase() != c)
|
|
@@ -28666,20 +28668,20 @@ v.dom_query = /* @__PURE__ */ function() {
|
|
|
28666
28668
|
l = o.split("."), c = l[0];
|
|
28667
28669
|
var x = l[1];
|
|
28668
28670
|
for (c || (c = "*"), p = [], m = 0, b = 0; b < w.length; b++)
|
|
28669
|
-
for (c == "*" ? S = n(w[b]) : S = w[b].getElementsByTagName(c),
|
|
28670
|
-
p[m++] = S[
|
|
28671
|
+
for (c == "*" ? S = n(w[b]) : S = w[b].getElementsByTagName(c), y = 0; y < S.length; y++)
|
|
28672
|
+
p[m++] = S[y];
|
|
28671
28673
|
for (w = [], f = 0, b = 0; b < p.length; b++)
|
|
28672
28674
|
p[b].className && v.isString(p[b].className) && // some SVG elements have classNames which are not strings
|
|
28673
28675
|
t(p[b], x) && (w[f++] = p[b]);
|
|
28674
28676
|
continue;
|
|
28675
28677
|
}
|
|
28676
|
-
var
|
|
28677
|
-
if (
|
|
28678
|
-
c =
|
|
28679
|
-
var D =
|
|
28678
|
+
var E = o.match(dd);
|
|
28679
|
+
if (E) {
|
|
28680
|
+
c = E[1];
|
|
28681
|
+
var D = E[2], G = E[3], q = E[4];
|
|
28680
28682
|
for (c || (c = "*"), p = [], m = 0, b = 0; b < w.length; b++)
|
|
28681
|
-
for (c == "*" ? S = n(w[b]) : S = w[b].getElementsByTagName(c),
|
|
28682
|
-
p[m++] = S[
|
|
28683
|
+
for (c == "*" ? S = n(w[b]) : S = w[b].getElementsByTagName(c), y = 0; y < S.length; y++)
|
|
28684
|
+
p[m++] = S[y];
|
|
28683
28685
|
w = [], f = 0;
|
|
28684
28686
|
var K;
|
|
28685
28687
|
switch (G) {
|
|
@@ -28723,8 +28725,8 @@ v.dom_query = /* @__PURE__ */ function() {
|
|
|
28723
28725
|
continue;
|
|
28724
28726
|
}
|
|
28725
28727
|
for (c = o, p = [], m = 0, b = 0; b < w.length; b++)
|
|
28726
|
-
for (S = w[b].getElementsByTagName(c),
|
|
28727
|
-
p[m++] = S[
|
|
28728
|
+
for (S = w[b].getElementsByTagName(c), y = 0; y < S.length; y++)
|
|
28729
|
+
p[m++] = S[y];
|
|
28728
28730
|
w = p;
|
|
28729
28731
|
}
|
|
28730
28732
|
return w;
|
|
@@ -28978,11 +28980,11 @@ var wd = Ei("lock"), fo = function(n, e) {
|
|
|
28978
28980
|
};
|
|
28979
28981
|
fo.prototype.withLock = function(n, e, t) {
|
|
28980
28982
|
!t && typeof e != "function" && (t = e, e = null);
|
|
28981
|
-
var i = t || (/* @__PURE__ */ new Date()).getTime() + "|" + Math.random(), s = (/* @__PURE__ */ new Date()).getTime(), a = this.storageKey, o = this.pollIntervalMS, l = this.timeoutMS, c = this.storage, p = a + ":X", m = a + ":Y",
|
|
28983
|
+
var i = t || (/* @__PURE__ */ new Date()).getTime() + "|" + Math.random(), s = (/* @__PURE__ */ new Date()).getTime(), a = this.storageKey, o = this.pollIntervalMS, l = this.timeoutMS, c = this.storage, p = a + ":X", m = a + ":Y", g = a + ":Z", b = function(M) {
|
|
28982
28984
|
e && e(M);
|
|
28983
|
-
},
|
|
28985
|
+
}, y = function(M) {
|
|
28984
28986
|
if ((/* @__PURE__ */ new Date()).getTime() - s > l) {
|
|
28985
|
-
wd.error("Timeout waiting for mutex on " + a + "; clearing lock. [" + i + "]"), c.removeItem(
|
|
28987
|
+
wd.error("Timeout waiting for mutex on " + a + "; clearing lock. [" + i + "]"), c.removeItem(g), c.removeItem(m), w();
|
|
28986
28988
|
return;
|
|
28987
28989
|
}
|
|
28988
28990
|
setTimeout(function() {
|
|
@@ -28993,7 +28995,7 @@ fo.prototype.withLock = function(n, e, t) {
|
|
|
28993
28995
|
}
|
|
28994
28996
|
}, o * (Math.random() + 0.1));
|
|
28995
28997
|
}, S = function(M, x) {
|
|
28996
|
-
M() ? x() :
|
|
28998
|
+
M() ? x() : y(function() {
|
|
28997
28999
|
S(M, x);
|
|
28998
29000
|
});
|
|
28999
29001
|
}, f = function() {
|
|
@@ -29011,22 +29013,22 @@ fo.prototype.withLock = function(n, e, t) {
|
|
|
29011
29013
|
A();
|
|
29012
29014
|
return;
|
|
29013
29015
|
}
|
|
29014
|
-
|
|
29016
|
+
y(function() {
|
|
29015
29017
|
if (c.getItem(m) !== i) {
|
|
29016
29018
|
w();
|
|
29017
29019
|
return;
|
|
29018
29020
|
}
|
|
29019
29021
|
S(function() {
|
|
29020
|
-
return !c.getItem(
|
|
29022
|
+
return !c.getItem(g);
|
|
29021
29023
|
}, A);
|
|
29022
29024
|
});
|
|
29023
29025
|
});
|
|
29024
29026
|
}, A = function() {
|
|
29025
|
-
c.setItem(
|
|
29027
|
+
c.setItem(g, "1");
|
|
29026
29028
|
try {
|
|
29027
29029
|
n();
|
|
29028
29030
|
} finally {
|
|
29029
|
-
c.removeItem(
|
|
29031
|
+
c.removeItem(g), c.getItem(m) === i && c.removeItem(m), c.getItem(p) === i && c.removeItem(p);
|
|
29030
29032
|
}
|
|
29031
29033
|
};
|
|
29032
29034
|
try {
|
|
@@ -29206,21 +29208,21 @@ tn.prototype.flush = function(n) {
|
|
|
29206
29208
|
n = n || {};
|
|
29207
29209
|
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 = [], l = {};
|
|
29208
29210
|
if (v.each(s, function(m) {
|
|
29209
|
-
var
|
|
29210
|
-
if (this.beforeSendHook && !m.orphaned && (
|
|
29211
|
-
|
|
29211
|
+
var g = m.payload;
|
|
29212
|
+
if (this.beforeSendHook && !m.orphaned && (g = this.beforeSendHook(g)), g) {
|
|
29213
|
+
g.event && g.properties && (g.properties = v.extend(
|
|
29212
29214
|
{},
|
|
29213
|
-
|
|
29215
|
+
g.properties,
|
|
29214
29216
|
{ mp_sent_by_lib_version: Sn.LIB_VERSION }
|
|
29215
29217
|
));
|
|
29216
|
-
var b = !0,
|
|
29217
|
-
|
|
29218
|
+
var b = !0, y = m.id;
|
|
29219
|
+
y ? (this.itemIdsSentSuccessfully[y] || 0) > 5 && (this.reportError("[dupe] item ID sent too many times, not sending", {
|
|
29218
29220
|
item: m,
|
|
29219
29221
|
batchSize: s.length,
|
|
29220
|
-
timesSent: this.itemIdsSentSuccessfully[
|
|
29221
|
-
}), b = !1) : this.reportError("[dupe] found item with no ID", { item: m }), b && o.push(
|
|
29222
|
+
timesSent: this.itemIdsSentSuccessfully[y]
|
|
29223
|
+
}), b = !1) : this.reportError("[dupe] found item with no ID", { item: m }), b && o.push(g);
|
|
29222
29224
|
}
|
|
29223
|
-
l[m.id] =
|
|
29225
|
+
l[m.id] = g;
|
|
29224
29226
|
}, this), o.length < 1) {
|
|
29225
29227
|
this.resetFlush();
|
|
29226
29228
|
return;
|
|
@@ -29229,7 +29231,7 @@ tn.prototype.flush = function(n) {
|
|
|
29229
29231
|
var c = v.bind(function(m) {
|
|
29230
29232
|
this.requestInProgress = !1;
|
|
29231
29233
|
try {
|
|
29232
|
-
var
|
|
29234
|
+
var g = !1;
|
|
29233
29235
|
if (n.unloading)
|
|
29234
29236
|
this.queue.updatePayloads(l);
|
|
29235
29237
|
else if (v.isObject(m) && m.error === "timeout" && (/* @__PURE__ */ new Date()).getTime() - t >= e)
|
|
@@ -29239,13 +29241,13 @@ tn.prototype.flush = function(n) {
|
|
|
29239
29241
|
m.retryAfter && (b = parseInt(m.retryAfter, 10) * 1e3 || b), b = Math.min(kd, b), this.reportError("Error; retry in " + b + " ms"), this.scheduleFlush(b);
|
|
29240
29242
|
} else if (v.isObject(m) && m.httpStatusCode === 413)
|
|
29241
29243
|
if (s.length > 1) {
|
|
29242
|
-
var
|
|
29243
|
-
this.batchSize = Math.min(this.batchSize,
|
|
29244
|
+
var y = Math.max(1, Math.floor(i / 2));
|
|
29245
|
+
this.batchSize = Math.min(this.batchSize, y, s.length - 1), this.reportError("413 response; reducing batch size to " + this.batchSize), this.resetFlush();
|
|
29244
29246
|
} else
|
|
29245
|
-
this.reportError("Single-event request too large; dropping", s), this.resetBatchSize(),
|
|
29247
|
+
this.reportError("Single-event request too large; dropping", s), this.resetBatchSize(), g = !0;
|
|
29246
29248
|
else
|
|
29247
|
-
|
|
29248
|
-
|
|
29249
|
+
g = !0;
|
|
29250
|
+
g && (this.queue.removeItemsByID(
|
|
29249
29251
|
v.map(s, function(S) {
|
|
29250
29252
|
return S.id;
|
|
29251
29253
|
}),
|
|
@@ -29396,9 +29398,9 @@ sn.prototype._flushEvents = Hn(function(n, e, t) {
|
|
|
29396
29398
|
p && (l.$device_id = p);
|
|
29397
29399
|
var m = this._mixpanel.get_property("$user_id");
|
|
29398
29400
|
if (m && (l.$user_id = m), ua) {
|
|
29399
|
-
var
|
|
29400
|
-
new Response(b).blob().then(v.bind(function(
|
|
29401
|
-
l.format = "gzip", this._sendRequest(s, l,
|
|
29401
|
+
var g = new Blob([c], { type: "application/json" }).stream(), b = g.pipeThrough(new ua("gzip"));
|
|
29402
|
+
new Response(b).blob().then(v.bind(function(y) {
|
|
29403
|
+
l.format = "gzip", this._sendRequest(s, l, y, t);
|
|
29402
29404
|
}, this));
|
|
29403
29405
|
} else
|
|
29404
29406
|
l.format = "body", this._sendRequest(s, l, c, t);
|
|
@@ -29680,14 +29682,14 @@ V.prototype._flush = function(n, e, t, i, s, a, o) {
|
|
|
29680
29682
|
if (!v.isUndefined(c) && v.isArray(c) && c.length)
|
|
29681
29683
|
for (var p, m = function(w, A) {
|
|
29682
29684
|
w === 0 && l._mixpanel.persistence._add_to_people_queue(un, p), v.isUndefined(t) || t(w, A);
|
|
29683
|
-
},
|
|
29685
|
+
}, g = c.length - 1; g >= 0; g--)
|
|
29684
29686
|
c = this._mixpanel.persistence.load_queue(un), p = c.pop(), l._mixpanel.persistence.save(), v.isEmptyObject(p) || l.append(p, m);
|
|
29685
29687
|
var b = this._mixpanel.persistence.load_queue(wn);
|
|
29686
29688
|
if (!v.isUndefined(b) && v.isArray(b) && b.length)
|
|
29687
|
-
for (var
|
|
29688
|
-
w === 0 && l._mixpanel.persistence._add_to_people_queue(wn,
|
|
29689
|
+
for (var y, S = function(w, A) {
|
|
29690
|
+
w === 0 && l._mixpanel.persistence._add_to_people_queue(wn, y), v.isUndefined(o) || o(w, A);
|
|
29689
29691
|
}, f = b.length - 1; f >= 0; f--)
|
|
29690
|
-
b = this._mixpanel.persistence.load_queue(wn),
|
|
29692
|
+
b = this._mixpanel.persistence.load_queue(wn), y = b.pop(), l._mixpanel.persistence.save(), v.isEmptyObject(y) || l.remove(y, S);
|
|
29691
29693
|
};
|
|
29692
29694
|
V.prototype._is_reserved_property = function(n) {
|
|
29693
29695
|
return n === "$distinct_id" || n === "$token" || n === "$device_id" || n === "$user_id" || n === "$had_persisted_distinct_id";
|
|
@@ -29714,28 +29716,28 @@ var us = "__mps", hs = "__mpso", ms = "__mpus", ps = "__mpa", vs = "__mpap", bs
|
|
|
29714
29716
|
yo,
|
|
29715
29717
|
Mi,
|
|
29716
29718
|
Et
|
|
29717
|
-
],
|
|
29719
|
+
], Q = function(n) {
|
|
29718
29720
|
this.props = {}, this.campaign_params_saved = !1, n.persistence_name ? this.name = "mp_" + n.persistence_name : this.name = "mp_" + n.token + "_mixpanel";
|
|
29719
29721
|
var e = n.persistence;
|
|
29720
29722
|
e !== "cookie" && e !== "localStorage" && (ne.critical("Unknown persistence type " + e + "; falling back to cookie"), e = n.persistence = "cookie"), e === "localStorage" && v.localStorage.is_supported() ? this.storage = v.localStorage : this.storage = v.cookie, this.load(), this.update_config(n), this.upgrade(), this.save();
|
|
29721
29723
|
};
|
|
29722
|
-
|
|
29724
|
+
Q.prototype.properties = function() {
|
|
29723
29725
|
var n = {};
|
|
29724
29726
|
return this.load(), v.each(this.props, function(e, t) {
|
|
29725
29727
|
v.include(Td, t) || (n[t] = e);
|
|
29726
29728
|
}), n;
|
|
29727
29729
|
};
|
|
29728
|
-
|
|
29730
|
+
Q.prototype.load = function() {
|
|
29729
29731
|
if (!this.disabled) {
|
|
29730
29732
|
var n = this.storage.parse(this.name);
|
|
29731
29733
|
n && (this.props = v.extend({}, n));
|
|
29732
29734
|
}
|
|
29733
29735
|
};
|
|
29734
|
-
|
|
29736
|
+
Q.prototype.upgrade = function() {
|
|
29735
29737
|
var n, e;
|
|
29736
29738
|
this.storage === v.localStorage ? (n = v.cookie.parse(this.name), v.cookie.remove(this.name), v.cookie.remove(this.name, !0), n && this.register_once(n)) : this.storage === v.cookie && (e = v.localStorage.parse(this.name), v.localStorage.remove(this.name), e && this.register_once(e));
|
|
29737
29739
|
};
|
|
29738
|
-
|
|
29740
|
+
Q.prototype.save = function() {
|
|
29739
29741
|
this.disabled || this.storage.set(
|
|
29740
29742
|
this.name,
|
|
29741
29743
|
v.JSONEncode(this.props),
|
|
@@ -29746,79 +29748,79 @@ Z.prototype.save = function() {
|
|
|
29746
29748
|
this.cookie_domain
|
|
29747
29749
|
);
|
|
29748
29750
|
};
|
|
29749
|
-
|
|
29751
|
+
Q.prototype.load_prop = function(n) {
|
|
29750
29752
|
return this.load(), this.props[n];
|
|
29751
29753
|
};
|
|
29752
|
-
|
|
29754
|
+
Q.prototype.remove = function() {
|
|
29753
29755
|
this.storage.remove(this.name, !1, this.cookie_domain), this.storage.remove(this.name, !0, this.cookie_domain);
|
|
29754
29756
|
};
|
|
29755
|
-
|
|
29757
|
+
Q.prototype.clear = function() {
|
|
29756
29758
|
this.remove(), this.props = {};
|
|
29757
29759
|
};
|
|
29758
|
-
|
|
29760
|
+
Q.prototype.register_once = function(n, e, t) {
|
|
29759
29761
|
return v.isObject(n) ? (typeof e > "u" && (e = "None"), this.expire_days = typeof t > "u" ? this.default_expiry : t, this.load(), v.each(n, function(i, s) {
|
|
29760
29762
|
(!this.props.hasOwnProperty(s) || this.props[s] === e) && (this.props[s] = i);
|
|
29761
29763
|
}, this), this.save(), !0) : !1;
|
|
29762
29764
|
};
|
|
29763
|
-
|
|
29765
|
+
Q.prototype.register = function(n, e) {
|
|
29764
29766
|
return v.isObject(n) ? (this.expire_days = typeof e > "u" ? this.default_expiry : e, this.load(), v.extend(this.props, n), this.save(), !0) : !1;
|
|
29765
29767
|
};
|
|
29766
|
-
|
|
29768
|
+
Q.prototype.unregister = function(n) {
|
|
29767
29769
|
this.load(), n in this.props && (delete this.props[n], this.save());
|
|
29768
29770
|
};
|
|
29769
|
-
|
|
29771
|
+
Q.prototype.update_search_keyword = function(n) {
|
|
29770
29772
|
this.register(v.info.searchInfo(n));
|
|
29771
29773
|
};
|
|
29772
|
-
|
|
29774
|
+
Q.prototype.update_referrer_info = function(n) {
|
|
29773
29775
|
this.register_once({
|
|
29774
29776
|
$initial_referrer: n || "$direct",
|
|
29775
29777
|
$initial_referring_domain: v.info.referringDomain(n) || "$direct"
|
|
29776
29778
|
}, "");
|
|
29777
29779
|
};
|
|
29778
|
-
|
|
29780
|
+
Q.prototype.get_referrer_info = function() {
|
|
29779
29781
|
return v.strip_empty_properties({
|
|
29780
29782
|
$initial_referrer: this.props.$initial_referrer,
|
|
29781
29783
|
$initial_referring_domain: this.props.$initial_referring_domain
|
|
29782
29784
|
});
|
|
29783
29785
|
};
|
|
29784
|
-
|
|
29786
|
+
Q.prototype.update_config = function(n) {
|
|
29785
29787
|
this.default_expiry = this.expire_days = n.cookie_expiration, this.set_disabled(n.disable_persistence), this.set_cookie_domain(n.cookie_domain), this.set_cross_site(n.cross_site_cookie), this.set_cross_subdomain(n.cross_subdomain_cookie), this.set_secure(n.secure_cookie);
|
|
29786
29788
|
};
|
|
29787
|
-
|
|
29789
|
+
Q.prototype.set_disabled = function(n) {
|
|
29788
29790
|
this.disabled = n, this.disabled ? this.remove() : this.save();
|
|
29789
29791
|
};
|
|
29790
|
-
|
|
29792
|
+
Q.prototype.set_cookie_domain = function(n) {
|
|
29791
29793
|
n !== this.cookie_domain && (this.remove(), this.cookie_domain = n, this.save());
|
|
29792
29794
|
};
|
|
29793
|
-
|
|
29795
|
+
Q.prototype.set_cross_site = function(n) {
|
|
29794
29796
|
n !== this.cross_site && (this.cross_site = n, this.remove(), this.save());
|
|
29795
29797
|
};
|
|
29796
|
-
|
|
29798
|
+
Q.prototype.set_cross_subdomain = function(n) {
|
|
29797
29799
|
n !== this.cross_subdomain && (this.cross_subdomain = n, this.remove(), this.save());
|
|
29798
29800
|
};
|
|
29799
|
-
|
|
29801
|
+
Q.prototype.get_cross_subdomain = function() {
|
|
29800
29802
|
return this.cross_subdomain;
|
|
29801
29803
|
};
|
|
29802
|
-
|
|
29804
|
+
Q.prototype.set_secure = function(n) {
|
|
29803
29805
|
n !== this.secure && (this.secure = !!n, this.remove(), this.save());
|
|
29804
29806
|
};
|
|
29805
|
-
|
|
29807
|
+
Q.prototype._add_to_people_queue = function(n, e) {
|
|
29806
29808
|
var t = this._get_queue_key(n), i = e[n], s = this._get_or_create_queue(Rn), a = this._get_or_create_queue(ht), o = this._get_or_create_queue($e), l = this._get_or_create_queue(Zn), c = this._get_or_create_queue(Qn), p = this._get_or_create_queue(wn, []), m = this._get_or_create_queue(un, []);
|
|
29807
|
-
t === us ? (v.extend(s, i), this._pop_from_people_queue(Zn, i), this._pop_from_people_queue(Qn, i), this._pop_from_people_queue($e, i)) : t === hs ? (v.each(i, function(
|
|
29808
|
-
b in a || (a[b] =
|
|
29809
|
-
}), this._pop_from_people_queue($e, i)) : t === ms ? v.each(i, function(
|
|
29809
|
+
t === us ? (v.extend(s, i), this._pop_from_people_queue(Zn, i), this._pop_from_people_queue(Qn, i), this._pop_from_people_queue($e, i)) : t === hs ? (v.each(i, function(g, b) {
|
|
29810
|
+
b in a || (a[b] = g);
|
|
29811
|
+
}), this._pop_from_people_queue($e, i)) : t === ms ? v.each(i, function(g) {
|
|
29810
29812
|
v.each([s, a, l, c], function(b) {
|
|
29811
|
-
|
|
29813
|
+
g in b && delete b[g];
|
|
29812
29814
|
}), v.each(m, function(b) {
|
|
29813
|
-
|
|
29814
|
-
}), o[
|
|
29815
|
-
}) : t === ps ? (v.each(i, function(
|
|
29816
|
-
b in s ? s[b] +=
|
|
29817
|
-
}, this), this._pop_from_people_queue($e, i)) : t === fs ? (v.each(i, function(
|
|
29818
|
-
v.isArray(
|
|
29815
|
+
g in b && delete b[g];
|
|
29816
|
+
}), o[g] = !0;
|
|
29817
|
+
}) : t === ps ? (v.each(i, function(g, b) {
|
|
29818
|
+
b in s ? s[b] += g : (b in l || (l[b] = 0), l[b] += g);
|
|
29819
|
+
}, this), this._pop_from_people_queue($e, i)) : t === fs ? (v.each(i, function(g, b) {
|
|
29820
|
+
v.isArray(g) && (b in c || (c[b] = []), c[b] = c[b].concat(g));
|
|
29819
29821
|
}), this._pop_from_people_queue($e, i)) : t === bs ? (p.push(i), this._pop_from_people_queue(un, i)) : t === vs && (m.push(i), this._pop_from_people_queue($e, i)), ne.log("MIXPANEL PEOPLE REQUEST (QUEUED, PENDING IDENTIFY):"), ne.log(e), this.save();
|
|
29820
29822
|
};
|
|
29821
|
-
|
|
29823
|
+
Q.prototype._pop_from_people_queue = function(n, e) {
|
|
29822
29824
|
var t = this.props[this._get_queue_key(n)];
|
|
29823
29825
|
v.isUndefined(t) || v.each(e, function(i, s) {
|
|
29824
29826
|
n === un || n === wn ? v.each(t, function(a) {
|
|
@@ -29826,10 +29828,10 @@ Z.prototype._pop_from_people_queue = function(n, e) {
|
|
|
29826
29828
|
}) : delete t[s];
|
|
29827
29829
|
}, this);
|
|
29828
29830
|
};
|
|
29829
|
-
|
|
29831
|
+
Q.prototype.load_queue = function(n) {
|
|
29830
29832
|
return this.load_prop(this._get_queue_key(n));
|
|
29831
29833
|
};
|
|
29832
|
-
|
|
29834
|
+
Q.prototype._get_queue_key = function(n) {
|
|
29833
29835
|
if (n === Rn)
|
|
29834
29836
|
return us;
|
|
29835
29837
|
if (n === ht)
|
|
@@ -29846,15 +29848,15 @@ Z.prototype._get_queue_key = function(n) {
|
|
|
29846
29848
|
return fs;
|
|
29847
29849
|
ne.error("Invalid queue:", n);
|
|
29848
29850
|
};
|
|
29849
|
-
|
|
29851
|
+
Q.prototype._get_or_create_queue = function(n, e) {
|
|
29850
29852
|
var t = this._get_queue_key(n);
|
|
29851
29853
|
return e = v.isUndefined(e) ? {} : e, this.props[t] || (this.props[t] = e);
|
|
29852
29854
|
};
|
|
29853
|
-
|
|
29855
|
+
Q.prototype.set_event_timer = function(n, e) {
|
|
29854
29856
|
var t = this.load_prop(Et) || {};
|
|
29855
29857
|
t[n] = e, this.props[Et] = t, this.save();
|
|
29856
29858
|
};
|
|
29857
|
-
|
|
29859
|
+
Q.prototype.remove_event_timer = function(n) {
|
|
29858
29860
|
var e = this.load_prop(Et) || {}, t = e[n];
|
|
29859
29861
|
return v.isUndefined(t) || (delete this.props[Et][n], this.save()), t;
|
|
29860
29862
|
};
|
|
@@ -29994,7 +29996,7 @@ L.prototype._init = function(n, e, t) {
|
|
|
29994
29996
|
});
|
|
29995
29997
|
}
|
|
29996
29998
|
}
|
|
29997
|
-
this.persistence = this.cookie = new
|
|
29999
|
+
this.persistence = this.cookie = new Q(this.config), this.unpersisted_superprops = {}, this._gdpr_init();
|
|
29998
30000
|
var o = v.UUID();
|
|
29999
30001
|
this.get_distinct_id() || this.register_once({
|
|
30000
30002
|
distinct_id: ys + o,
|
|
@@ -30103,8 +30105,8 @@ L.prototype._send_request = function(n, e, t, i) {
|
|
|
30103
30105
|
e.verbose && (p = !0), this.get_config("test") && (e.test = 1), p && (e.verbose = 1), this.get_config("img") && (e.img = 1), lt || (i ? e.callback = i : (p || this.get_config("test")) && (e.callback = "(function(){})")), e.ip = this.get_config("ip") ? 1 : 0, e._ = (/* @__PURE__ */ new Date()).getTime().toString(), l && (o = "data=" + encodeURIComponent(e.data), delete e.data), n += "?" + v.HTTPBuildQuery(e);
|
|
30104
30106
|
var m = this;
|
|
30105
30107
|
if ("img" in e) {
|
|
30106
|
-
var
|
|
30107
|
-
|
|
30108
|
+
var g = ae.createElement("img");
|
|
30109
|
+
g.src = n, ae.body.appendChild(g);
|
|
30108
30110
|
} else if (c) {
|
|
30109
30111
|
try {
|
|
30110
30112
|
s = xi(n, o);
|
|
@@ -30120,8 +30122,8 @@ L.prototype._send_request = function(n, e, t, i) {
|
|
|
30120
30122
|
try {
|
|
30121
30123
|
var b = new XMLHttpRequest();
|
|
30122
30124
|
b.open(t.method, n, !0);
|
|
30123
|
-
var
|
|
30124
|
-
if (l && (
|
|
30125
|
+
var y = this.get_config("xhr_headers");
|
|
30126
|
+
if (l && (y["Content-Type"] = "application/x-www-form-urlencoded"), v.each(y, function(A, M) {
|
|
30125
30127
|
b.setRequestHeader(M, A);
|
|
30126
30128
|
}), t.timeout_ms && typeof b.timeout < "u") {
|
|
30127
30129
|
b.timeout = t.timeout_ms;
|
|
@@ -30135,8 +30137,8 @@ L.prototype._send_request = function(n, e, t, i) {
|
|
|
30135
30137
|
var A;
|
|
30136
30138
|
try {
|
|
30137
30139
|
A = v.JSONDecode(b.responseText);
|
|
30138
|
-
} catch (
|
|
30139
|
-
if (m.report_error(
|
|
30140
|
+
} catch (E) {
|
|
30141
|
+
if (m.report_error(E), t.ignore_json_errors)
|
|
30140
30142
|
A = b.responseText;
|
|
30141
30143
|
else
|
|
30142
30144
|
return;
|
|
@@ -30298,7 +30300,7 @@ L.prototype.track = Hn(function(n, e, t, i) {
|
|
|
30298
30300
|
var m = {
|
|
30299
30301
|
event: n,
|
|
30300
30302
|
properties: e
|
|
30301
|
-
},
|
|
30303
|
+
}, g = this._track_or_batch({
|
|
30302
30304
|
type: "events",
|
|
30303
30305
|
data: m,
|
|
30304
30306
|
endpoint: this.get_config("api_host") + "/" + this.get_config("api_routes").track,
|
|
@@ -30306,7 +30308,7 @@ L.prototype.track = Hn(function(n, e, t, i) {
|
|
|
30306
30308
|
should_send_immediately: a,
|
|
30307
30309
|
send_request_options: t
|
|
30308
30310
|
}, i);
|
|
30309
|
-
return
|
|
30311
|
+
return g;
|
|
30310
30312
|
});
|
|
30311
30313
|
L.prototype.set_group = Hn(function(n, e, t) {
|
|
30312
30314
|
v.isArray(e) || (e = [e]);
|
|
@@ -30571,11 +30573,11 @@ L.prototype.start_session_recording = L.prototype.start_session_recording;
|
|
|
30571
30573
|
L.prototype.stop_session_recording = L.prototype.stop_session_recording;
|
|
30572
30574
|
L.prototype.get_session_recording_properties = L.prototype.get_session_recording_properties;
|
|
30573
30575
|
L.prototype.DEFAULT_API_ROUTES = Ao;
|
|
30574
|
-
|
|
30575
|
-
|
|
30576
|
-
|
|
30577
|
-
|
|
30578
|
-
|
|
30576
|
+
Q.prototype.properties = Q.prototype.properties;
|
|
30577
|
+
Q.prototype.update_search_keyword = Q.prototype.update_search_keyword;
|
|
30578
|
+
Q.prototype.update_referrer_info = Q.prototype.update_referrer_info;
|
|
30579
|
+
Q.prototype.get_cross_subdomain = Q.prototype.get_cross_subdomain;
|
|
30580
|
+
Q.prototype.clear = Q.prototype.clear;
|
|
30579
30581
|
var rt = {}, Dd = function() {
|
|
30580
30582
|
v.each(rt, function(n, e) {
|
|
30581
30583
|
e !== Qe && (Ie[e] = n);
|
|
@@ -30667,7 +30669,7 @@ class xo {
|
|
|
30667
30669
|
), i = this.container.querySelector(
|
|
30668
30670
|
"#long-processing-text"
|
|
30669
30671
|
), s = this.container.querySelector("#confirmed-text");
|
|
30670
|
-
i && (i.innerHTML =
|
|
30672
|
+
i && (i.innerHTML = P["long-processing"]), s && (s.innerHTML = P["once-confirmed"]), t && (t.innerHTML = Z["merchant-back"]), e && e.addEventListener("click", () => {
|
|
30671
30673
|
var a;
|
|
30672
30674
|
_.track("redirect_to_merchant", {
|
|
30673
30675
|
payment_method: this.paymentMethod,
|
|
@@ -30746,7 +30748,7 @@ class Vd {
|
|
|
30746
30748
|
), t = this.container.querySelector(
|
|
30747
30749
|
"#confirming-txn-status-end-text"
|
|
30748
30750
|
), i = this.container.querySelector("#please-wait-text"), s = this.container.querySelector("#minutes-text");
|
|
30749
|
-
e && (e.innerHTML =
|
|
30751
|
+
e && (e.innerHTML = P["confirming-txn-status"]), t && (t.innerHTML = P["few-minutes"]), i && (i.innerHTML = P["please-wait-for"]), s && (s.innerHTML = P.minutes), this.initialTime = 300, this.timeLeft = this.initialTime;
|
|
30750
30752
|
const a = 3e4;
|
|
30751
30753
|
this.abortController = new AbortController(), setTimeout(() => {
|
|
30752
30754
|
this.verifyCardPayment(
|
|
@@ -31175,25 +31177,25 @@ class Lo {
|
|
|
31175
31177
|
const t = this.container.querySelectorAll(
|
|
31176
31178
|
"#test-card-tabs .tab-btn"
|
|
31177
31179
|
), 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"), l = this.container.querySelector("#city-text"), c = this.container.querySelector("#state-text"), p = this.container.querySelector("#country-text"), m = this.container.querySelector("#zip-text");
|
|
31178
|
-
i && (i.innerHTML = Xe["no-auth"]), s.forEach((
|
|
31179
|
-
|
|
31180
|
-
}), a.forEach((
|
|
31181
|
-
|
|
31180
|
+
i && (i.innerHTML = Xe["no-auth"]), s.forEach((y) => {
|
|
31181
|
+
y.innerHTML = Xe.number;
|
|
31182
|
+
}), a.forEach((y) => {
|
|
31183
|
+
y.innerHTML = Xe.expiry;
|
|
31182
31184
|
}), o && (o.innerHTML = Xe.address), l && (l.innerHTML = Xe.city), c && (c.innerHTML = Xe.state), p && (p.innerHTML = Xe.country), m && (m.innerHTML = Xe.zip);
|
|
31183
|
-
const
|
|
31184
|
-
t.forEach((
|
|
31185
|
-
|
|
31186
|
-
t.forEach((f) => f.classList.remove("active-tab")),
|
|
31187
|
-
const S =
|
|
31188
|
-
|
|
31185
|
+
const g = this.container.querySelectorAll(".tab-content");
|
|
31186
|
+
t.forEach((y) => {
|
|
31187
|
+
y.addEventListener("click", () => {
|
|
31188
|
+
t.forEach((f) => f.classList.remove("active-tab")), y.classList.add("active-tab");
|
|
31189
|
+
const S = y.getAttribute("data-target");
|
|
31190
|
+
g.forEach((f) => {
|
|
31189
31191
|
f.id === S ? f.classList.remove("hidden") : f.classList.add("hidden");
|
|
31190
31192
|
});
|
|
31191
31193
|
});
|
|
31192
|
-
}), this.container.querySelectorAll(".copy-btn").forEach((
|
|
31193
|
-
|
|
31194
|
+
}), this.container.querySelectorAll(".copy-btn").forEach((y) => {
|
|
31195
|
+
y.addEventListener("click", async (S) => {
|
|
31194
31196
|
const w = S.currentTarget.previousElementSibling.getAttribute("data-copy-value") || "";
|
|
31195
|
-
w && (await navigator.clipboard.writeText(w),
|
|
31196
|
-
|
|
31197
|
+
w && (await navigator.clipboard.writeText(w), y.innerHTML = '<svg width="15" height="15" viewBox="0 0 15 15" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M5 2V1H10V2H5ZM4.75 0C4.33579 0 4 0.335786 4 0.75V1H3.5C2.67157 1 2 1.67157 2 2.5V12.5C2 13.3284 2.67157 14 3.5 14H7V13H3.5C3.22386 13 3 12.7761 3 12.5V2.5C3 2.22386 3.22386 2 3.5 2H4V2.25C4 2.66421 4.33579 3 4.75 3H10.25C10.6642 3 11 2.66421 11 2.25V2H11.5C11.7761 2 12 2.22386 12 2.5V7H13V2.5C13 1.67157 12.3284 1 11.5 1H11V0.75C11 0.335786 10.6642 0 10.25 0H4.75ZM9 8.5C9 8.77614 8.77614 9 8.5 9C8.22386 9 8 8.77614 8 8.5C8 8.22386 8.22386 8 8.5 8C8.77614 8 9 8.22386 9 8.5ZM10.5 9C10.7761 9 11 8.77614 11 8.5C11 8.22386 10.7761 8 10.5 8C10.2239 8 10 8.22386 10 8.5C10 8.77614 10.2239 9 10.5 9ZM13 8.5C13 8.77614 12.7761 9 12.5 9C12.2239 9 12 8.77614 12 8.5C12 8.22386 12.2239 8 12.5 8C12.7761 8 13 8.22386 13 8.5ZM14.5 9C14.7761 9 15 8.77614 15 8.5C15 8.2239 14.7761 8 14.5 8C14.2239 8 14 8.22386 14 8.5C14 8.77614 14.2239 9 14.5 9ZM15 10.5C15 10.7761 14.7761 11 14.5 11C14.2239 11 14 10.7761 14 10.5C14 10.2239 14.2239 10 14.5 10C14.7761 10 15 10.2239 15 10.5ZM14.5 13C14.7761 13 15 12.7761 15 12.5C15 12.2239 14.7761 12 14.5 12C14.2239 12 14 12.2239 14 12.5C14 12.7761 14.2239 13 14.5 13ZM14.5 15C14.7761 15 15 14.7761 15 14.5C15 14.2239 14.7761 14 14.5 14C14.2239 14 14 14.2239 14 14.5C14 14.7761 14.2239 15 14.5 15ZM8.5 11C8.77614 11 9 10.7761 9 10.5C9 10.2239 8.77614 10 8.5 10C8.22386 10 8 10.2239 8 10.5C8 10.7761 8.22386 11 8.5 11ZM9 12.5C9 12.7761 8.77614 13 8.5 13C8.22386 13 8 12.7761 8 12.5C8 12.2239 8.22386 12 8.5 12C8.77614 12 9 12.2239 9 12.5ZM8.5 15C8.77614 15 9 14.7761 9 14.5C9 14.2239 8.77614 14 8.5 14C8.22386 14 8 14.2239 8 14.5C8 14.7761 8.22386 15 8.5 15ZM11 14.5C11 14.7761 10.7761 15 10.5 15C10.2239 15 10 14.7761 10 14.5C10 14.2239 10.2239 14 10.5 14C10.7761 14 11 14.2239 11 14.5ZM12.5 15C12.7761 15 13 14.7761 13 14.5C13 14.2239 12.7761 14 12.5 14C12.2239 14 12 14.2239 12 14.5C12 14.7761 12.2239 15 12.5 15Z" fill="currentColor" fill-rule="evenodd" clip-rule="evenodd"></path></svg>', setTimeout(() => {
|
|
31198
|
+
y.innerHTML = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
31197
31199
|
<path
|
|
31198
31200
|
d="M4.66667 3.99992V1.99992C4.66667 1.82311 4.7369 1.65354 4.86193 1.52851C4.98695 1.40349 5.15652 1.33325 5.33333 1.33325H13.3333C13.5101 1.33325 13.6797 1.40349 13.8047 1.52851C13.9298 1.65354 14 1.82311 14 1.99992V11.3333C14 11.5101 13.9298 11.6796 13.8047 11.8047C13.6797 11.9297 13.5101 11.9999 13.3333 11.9999H11.3333V13.9999C11.3333 14.3679 11.0333 14.6666 10.662 14.6666H2.67133C2.58342 14.6671 2.49626 14.6503 2.41488 14.617C2.3335 14.5837 2.25949 14.5347 2.19711 14.4728C2.13472 14.4108 2.0852 14.3372 2.05137 14.256C2.01754 14.1749 2.00009 14.0878 2 13.9999L2.002 4.66659C2.002 4.29859 2.302 3.99992 2.67333 3.99992H4.66667ZM3.33533 5.33325L3.33333 13.3333H10V5.33325H3.33533ZM6 3.99992H11.3333V10.6666H12.6667V2.66659H6V3.99992Z"
|
|
31199
31201
|
fill="#0D0716" />
|
|
@@ -31238,8 +31240,8 @@ class ma {
|
|
|
31238
31240
|
const e = this.container.querySelector(
|
|
31239
31241
|
"#test-cards-link"
|
|
31240
31242
|
), t = this.container.querySelector("#terms-text"), i = this.container.querySelector("#privacy-text"), s = this.container.querySelector("#contact-text"), a = this.container.querySelector("#powered-by-text");
|
|
31241
|
-
if (t && (t.innerHTML =
|
|
31242
|
-
if (e.innerHTML =
|
|
31243
|
+
if (t && (t.innerHTML = Z.terms), i && (i.innerHTML = Z.privacy), s && (s.innerHTML = Z.contact), a && (a.innerHTML = Z.powered), !!e) {
|
|
31244
|
+
if (e.innerHTML = Z["test-card"], this.keyEnvironment !== "test") {
|
|
31243
31245
|
e.classList.add("hidden");
|
|
31244
31246
|
return;
|
|
31245
31247
|
}
|
|
@@ -31291,16 +31293,16 @@ class jd {
|
|
|
31291
31293
|
currency: c,
|
|
31292
31294
|
rdtCode: p,
|
|
31293
31295
|
url: m,
|
|
31294
|
-
reference:
|
|
31296
|
+
reference: g,
|
|
31295
31297
|
onSuccess: b,
|
|
31296
|
-
callBackUrl:
|
|
31298
|
+
callBackUrl: y,
|
|
31297
31299
|
metadata: S,
|
|
31298
31300
|
localCurrency: f,
|
|
31299
31301
|
hidePaymentMethods: w,
|
|
31300
31302
|
showPaymentMethods: A,
|
|
31301
31303
|
onClose: M,
|
|
31302
31304
|
restartTransactionProcess: x,
|
|
31303
|
-
retryingPayment:
|
|
31305
|
+
retryingPayment: E,
|
|
31304
31306
|
keys: D,
|
|
31305
31307
|
testcardIsVisible: G
|
|
31306
31308
|
}) {
|
|
@@ -31351,9 +31353,9 @@ class jd {
|
|
|
31351
31353
|
d(this, "otpMessage");
|
|
31352
31354
|
d(this, "rawAvsData");
|
|
31353
31355
|
d(this, "translatedAvsData");
|
|
31354
|
-
this.currency = c, this.onSuccess = b || (() => null), this.keys = D, this.testcardIsVisible = G, this.container = i, this.encryption = a, this.token = l, this.customer = s, this.planId = o, this.amount = e, this.totalAmount = t, this.rdtCode = p, this.url = m, this.reference =
|
|
31356
|
+
this.currency = c, this.onSuccess = b || (() => null), this.keys = D, this.testcardIsVisible = G, this.container = i, this.encryption = a, this.token = l, this.customer = s, this.planId = o, this.amount = e, this.totalAmount = t, this.rdtCode = p, this.url = m, this.reference = g, this.callBackUrl = y, this.metadata = S, this.localCurrency = f, this._currentStep = 1, this.activeRef = "", this.contents = this.container.querySelector(
|
|
31355
31357
|
"#payment-content-view"
|
|
31356
|
-
), this.cardResponse = {}, this.cardResponseHeader = {}, this.hidePaymentMethods = w, this.showPaymentMethods = A, this.onClose = M, this.restartTransactionProcess = x, this.retryingPayment =
|
|
31358
|
+
), this.cardResponse = {}, this.cardResponseHeader = {}, this.hidePaymentMethods = w, this.showPaymentMethods = A, this.onClose = M, this.restartTransactionProcess = x, this.retryingPayment = E, this.isMaxRetriesReached = !1, this.isCancelledPlan = !1, this.errorText = "", this.otpMessage = "", this.renderCardContent(), this.rawAvsData = {
|
|
31357
31359
|
"billing-address": "Billing address",
|
|
31358
31360
|
address: "Address",
|
|
31359
31361
|
city: "City",
|
|
@@ -31390,7 +31392,7 @@ class jd {
|
|
|
31390
31392
|
R()
|
|
31391
31393
|
);
|
|
31392
31394
|
else if (e) {
|
|
31393
|
-
const t = await
|
|
31395
|
+
const t = await W(
|
|
31394
31396
|
e,
|
|
31395
31397
|
R()
|
|
31396
31398
|
);
|
|
@@ -31416,22 +31418,22 @@ class jd {
|
|
|
31416
31418
|
i && s && (i.classList.remove("hidden"), s.classList.add("hidden"));
|
|
31417
31419
|
const o = ft();
|
|
31418
31420
|
(() => {
|
|
31419
|
-
var c, p, m,
|
|
31421
|
+
var c, p, m, g, b;
|
|
31420
31422
|
if (this.retryingPayment) {
|
|
31421
|
-
const
|
|
31423
|
+
const y = {
|
|
31422
31424
|
channel: "card",
|
|
31423
31425
|
reference: this.reference,
|
|
31424
31426
|
encryptedCard: a
|
|
31425
31427
|
};
|
|
31426
31428
|
return mt(
|
|
31427
31429
|
this.token,
|
|
31428
|
-
|
|
31430
|
+
y,
|
|
31429
31431
|
this.rdtCode,
|
|
31430
31432
|
this.url
|
|
31431
31433
|
);
|
|
31432
31434
|
} else {
|
|
31433
|
-
const
|
|
31434
|
-
amount: ((
|
|
31435
|
+
const y = {
|
|
31436
|
+
amount: ((g = (m = (p = (c = this.merchantPlanDetail) == null ? void 0 : c.plan) == null ? void 0 : p.trial) == null ? void 0 : m.pricingList[0]) == null ? void 0 : g.amount) ?? this.amount,
|
|
31435
31437
|
// send trial amount if available
|
|
31436
31438
|
channel: "card",
|
|
31437
31439
|
applyDiscount: !0,
|
|
@@ -31451,15 +31453,15 @@ class jd {
|
|
|
31451
31453
|
};
|
|
31452
31454
|
return dl(
|
|
31453
31455
|
this.token,
|
|
31454
|
-
|
|
31456
|
+
y,
|
|
31455
31457
|
this.rdtCode,
|
|
31456
31458
|
this.url
|
|
31457
31459
|
);
|
|
31458
31460
|
}
|
|
31459
31461
|
})().then(async ({ data: c, headers: p }) => {
|
|
31460
|
-
var m,
|
|
31462
|
+
var m, g, b, y, S, f, w, A;
|
|
31461
31463
|
if (c.providerMessage) {
|
|
31462
|
-
const M = await
|
|
31464
|
+
const M = await W(
|
|
31463
31465
|
c.providerMessage,
|
|
31464
31466
|
R()
|
|
31465
31467
|
);
|
|
@@ -31471,7 +31473,7 @@ class jd {
|
|
|
31471
31473
|
verification_status: "Failed",
|
|
31472
31474
|
authentication_type: "None"
|
|
31473
31475
|
}), this.cardResponse = c, this.cardResponseHeader = p, c.providerMessage ? this.warningScreen.setPaymentError(this.errorText) : this.warningScreen.setPaymentError(
|
|
31474
|
-
|
|
31476
|
+
P["payment-failed"]
|
|
31475
31477
|
), this.warningScreen.hideReportIssue();
|
|
31476
31478
|
else if (["success", "successful"].includes(c.status))
|
|
31477
31479
|
this.currentStep = 5, this.cardResponse = c, this.cardResponseHeader = p, _.track("verify_payment", {
|
|
@@ -31485,8 +31487,8 @@ class jd {
|
|
|
31485
31487
|
this.currentStep = 2;
|
|
31486
31488
|
return;
|
|
31487
31489
|
}
|
|
31488
|
-
if (((
|
|
31489
|
-
(b = c == null ? void 0 : c.authorization) != null && b.redirectUrl && this.redirectTo3DS((
|
|
31490
|
+
if (((g = c == null ? void 0 : c.authorization) == null ? void 0 : g.mode) === "3DS") {
|
|
31491
|
+
(b = c == null ? void 0 : c.authorization) != null && b.redirectUrl && this.redirectTo3DS((y = c == null ? void 0 : c.authorization) == null ? void 0 : y.redirectUrl), (S = c == null ? void 0 : c.authorization) != null && S.embeddedHtml && this.redirectToPreciumDoc((f = c == null ? void 0 : c.authorization) == null ? void 0 : f.embeddedHtml);
|
|
31490
31492
|
return;
|
|
31491
31493
|
}
|
|
31492
31494
|
if (((w = c == null ? void 0 : c.authorization) == null ? void 0 : w.mode) === "otp") {
|
|
@@ -31506,7 +31508,7 @@ class jd {
|
|
|
31506
31508
|
}
|
|
31507
31509
|
} else
|
|
31508
31510
|
this.currentStep = 4, c.providerMessage ? this.warningScreen.setPaymentError(this.errorText) : this.warningScreen.setPaymentError(
|
|
31509
|
-
|
|
31511
|
+
P["error-with-payment"]
|
|
31510
31512
|
), this.warningScreen.hideReportIssue();
|
|
31511
31513
|
}).catch(async (c) => {
|
|
31512
31514
|
if (_.track("verify_payment", {
|
|
@@ -31517,13 +31519,13 @@ class jd {
|
|
|
31517
31519
|
this.isMaxRetriesReached = !0, this.verifyPaymentProcess(), this.currentStep = 4, _.track("max_retries_reached", {
|
|
31518
31520
|
payment_method: "Card"
|
|
31519
31521
|
}), this.warningScreen.setPaymentError(
|
|
31520
|
-
|
|
31521
|
-
|
|
31522
|
-
|
|
31522
|
+
P["maximum-retries"],
|
|
31523
|
+
P["maximum-retries-desc"],
|
|
31524
|
+
Z["merchant-back"]
|
|
31523
31525
|
);
|
|
31524
31526
|
else {
|
|
31525
31527
|
if (c.message) {
|
|
31526
|
-
const p = await
|
|
31528
|
+
const p = await W(
|
|
31527
31529
|
c.message,
|
|
31528
31530
|
R()
|
|
31529
31531
|
);
|
|
@@ -31532,11 +31534,11 @@ class jd {
|
|
|
31532
31534
|
}), this.warningScreen.setPaymentError(
|
|
31533
31535
|
this.errorText,
|
|
31534
31536
|
"",
|
|
31535
|
-
|
|
31537
|
+
Z["merchant-back"]
|
|
31536
31538
|
)) : (this.currentStep = 4, this.warningScreen.setPaymentError(this.errorText));
|
|
31537
31539
|
} else
|
|
31538
31540
|
this.currentStep = 4, this.warningScreen.setPaymentError(
|
|
31539
|
-
|
|
31541
|
+
P["payment-failed"]
|
|
31540
31542
|
);
|
|
31541
31543
|
this.warningScreen.hideReportIssue();
|
|
31542
31544
|
}
|
|
@@ -31568,9 +31570,9 @@ class jd {
|
|
|
31568
31570
|
this.rdtCode,
|
|
31569
31571
|
this.url
|
|
31570
31572
|
).then(async ({ data: o, headers: l }) => {
|
|
31571
|
-
var c, p, m,
|
|
31573
|
+
var c, p, m, g, b, y, S, f, w, A;
|
|
31572
31574
|
if (o.providerMessage) {
|
|
31573
|
-
const M = await
|
|
31575
|
+
const M = await W(
|
|
31574
31576
|
o.providerMessage,
|
|
31575
31577
|
R()
|
|
31576
31578
|
);
|
|
@@ -31582,7 +31584,7 @@ class jd {
|
|
|
31582
31584
|
verification_status: "Failed",
|
|
31583
31585
|
authentication_type: "PIN"
|
|
31584
31586
|
}), this.currentStep = 4, o.providerMessage ? this.warningScreen.setPaymentError(this.errorText) : this.warningScreen.setPaymentError(
|
|
31585
|
-
|
|
31587
|
+
P["payment-failed"]
|
|
31586
31588
|
), this.warningScreen.hideReportIssue();
|
|
31587
31589
|
else if (["success", "successful", "failed"].includes(o.status))
|
|
31588
31590
|
this.currentStep = 5, this.redirectTo(o, l, "success"), _.track("verify_payment", {
|
|
@@ -31592,7 +31594,7 @@ class jd {
|
|
|
31592
31594
|
});
|
|
31593
31595
|
else {
|
|
31594
31596
|
if (((c = o == null ? void 0 : o.authorization) == null ? void 0 : c.mode) === "3DS") {
|
|
31595
|
-
(p = o == null ? void 0 : o.authorization) != null && p.redirectUrl && this.redirectTo3DS((m = o == null ? void 0 : o.authorization) == null ? void 0 : m.redirectUrl), (
|
|
31597
|
+
(p = o == null ? void 0 : o.authorization) != null && p.redirectUrl && this.redirectTo3DS((m = o == null ? void 0 : o.authorization) == null ? void 0 : m.redirectUrl), (g = o == null ? void 0 : o.authorization) != null && g.embeddedHtml && this.redirectToPreciumDoc((b = o == null ? void 0 : o.authorization) == null ? void 0 : b.embeddedHtml), (y = o == null ? void 0 : o.authorization) != null && y.jwt && ((S = o == null ? void 0 : o.authorization) != null && S.acsUrl) && ((f = o == null ? void 0 : o.authorization) != null && f.md) && (this.cardResponse = o, this.currentStep = 11);
|
|
31596
31598
|
return;
|
|
31597
31599
|
}
|
|
31598
31600
|
if (((w = o == null ? void 0 : o.authorization) == null ? void 0 : w.mode) === "otp") {
|
|
@@ -31620,14 +31622,14 @@ class jd {
|
|
|
31620
31622
|
verification_status: "Null",
|
|
31621
31623
|
authentication_type: "PIN"
|
|
31622
31624
|
}), o.message) {
|
|
31623
|
-
const l = await
|
|
31625
|
+
const l = await W(
|
|
31624
31626
|
o.message,
|
|
31625
31627
|
R()
|
|
31626
31628
|
);
|
|
31627
31629
|
this.errorText = l, this.currentStep = 4, this.warningScreen.setPaymentError(this.errorText);
|
|
31628
31630
|
} else
|
|
31629
31631
|
this.currentStep = 4, this.warningScreen.setPaymentError(
|
|
31630
|
-
|
|
31632
|
+
P["payment-failed"]
|
|
31631
31633
|
);
|
|
31632
31634
|
this.warningScreen.hideReportIssue();
|
|
31633
31635
|
});
|
|
@@ -31658,9 +31660,9 @@ class jd {
|
|
|
31658
31660
|
this.rdtCode,
|
|
31659
31661
|
this.url
|
|
31660
31662
|
).then(async ({ data: l, headers: c }) => {
|
|
31661
|
-
var p, m,
|
|
31663
|
+
var p, m, g, b, y, S, f;
|
|
31662
31664
|
if (l.providerMessage) {
|
|
31663
|
-
const w = await
|
|
31665
|
+
const w = await W(
|
|
31664
31666
|
l.providerMessage,
|
|
31665
31667
|
R()
|
|
31666
31668
|
);
|
|
@@ -31672,7 +31674,7 @@ class jd {
|
|
|
31672
31674
|
verification_status: "Failed",
|
|
31673
31675
|
authentication_type: "AVS"
|
|
31674
31676
|
}), l.providerMessage ? this.warningScreen.setPaymentError(this.errorText) : this.warningScreen.setPaymentError(
|
|
31675
|
-
|
|
31677
|
+
P["payment-failed"]
|
|
31676
31678
|
), this.warningScreen.hideReportIssue();
|
|
31677
31679
|
else if (["success", "successful", "failed"].includes(l.status))
|
|
31678
31680
|
["success", "successful"].includes(l.status) && (this.currentStep = 5, this.redirectTo(l, c, "success"), _.track("verify_payment", {
|
|
@@ -31686,7 +31688,7 @@ class jd {
|
|
|
31686
31688
|
return;
|
|
31687
31689
|
}
|
|
31688
31690
|
if (((m = l == null ? void 0 : l.authorization) == null ? void 0 : m.mode) === "3DS") {
|
|
31689
|
-
(
|
|
31691
|
+
(g = l == null ? void 0 : l.authorization) != null && g.redirectUrl && this.redirectTo3DS((b = l == null ? void 0 : l.authorization) == null ? void 0 : b.redirectUrl), (y = l == null ? void 0 : l.authorization) != null && y.embeddedHtml && this.redirectToPreciumDoc((S = l == null ? void 0 : l.authorization) == null ? void 0 : S.embeddedHtml);
|
|
31690
31692
|
return;
|
|
31691
31693
|
}
|
|
31692
31694
|
if (((f = l == null ? void 0 : l.authorization) == null ? void 0 : f.mode) === "otp") {
|
|
@@ -31701,14 +31703,14 @@ class jd {
|
|
|
31701
31703
|
verification_status: "Null",
|
|
31702
31704
|
authentication_type: "AVS"
|
|
31703
31705
|
}), l.message) {
|
|
31704
|
-
const c = await
|
|
31706
|
+
const c = await W(
|
|
31705
31707
|
l.message,
|
|
31706
31708
|
R()
|
|
31707
31709
|
);
|
|
31708
31710
|
this.errorText = c, this.currentStep = 4, this.warningScreen.setPaymentError(this.errorText);
|
|
31709
31711
|
} else
|
|
31710
31712
|
this.currentStep = 4, this.warningScreen.setPaymentError(
|
|
31711
|
-
|
|
31713
|
+
P["payment-failed"]
|
|
31712
31714
|
);
|
|
31713
31715
|
this.warningScreen.hideReportIssue();
|
|
31714
31716
|
}).finally(() => {
|
|
@@ -31733,9 +31735,9 @@ class jd {
|
|
|
31733
31735
|
this.rdtCode,
|
|
31734
31736
|
this.url
|
|
31735
31737
|
).then(async ({ data: a, headers: o }) => {
|
|
31736
|
-
var l, c, p, m,
|
|
31738
|
+
var l, c, p, m, g, b, y;
|
|
31737
31739
|
if (a.providerMessage) {
|
|
31738
|
-
const S = await
|
|
31740
|
+
const S = await W(
|
|
31739
31741
|
a.providerMessage,
|
|
31740
31742
|
R()
|
|
31741
31743
|
);
|
|
@@ -31747,7 +31749,7 @@ class jd {
|
|
|
31747
31749
|
verification_status: "Failed",
|
|
31748
31750
|
authentication_type: "PIN+0TP"
|
|
31749
31751
|
}), a.providerMessage ? this.warningScreen.setPaymentError(this.errorText) : this.warningScreen.setPaymentError(
|
|
31750
|
-
|
|
31752
|
+
P["payment-failed"]
|
|
31751
31753
|
), this.warningScreen.hideReportIssue();
|
|
31752
31754
|
else if (["success", "successful", "failed"].includes(a.status))
|
|
31753
31755
|
["success", "successful"].includes(a.status) && (this.currentStep = 5, this.redirectTo(a, o, "success"), _.track("verify_payment", {
|
|
@@ -31761,10 +31763,10 @@ class jd {
|
|
|
31761
31763
|
return;
|
|
31762
31764
|
}
|
|
31763
31765
|
if (((c = a == null ? void 0 : a.authorization) == null ? void 0 : c.mode) === "3DS") {
|
|
31764
|
-
(p = a == null ? void 0 : a.authorization) != null && p.redirectUrl && this.redirectTo3DS((m = a == null ? void 0 : a.authorization) == null ? void 0 : m.redirectUrl), (
|
|
31766
|
+
(p = a == null ? void 0 : a.authorization) != null && p.redirectUrl && this.redirectTo3DS((m = a == null ? void 0 : a.authorization) == null ? void 0 : m.redirectUrl), (g = a == null ? void 0 : a.authorization) != null && g.embeddedHtml && this.redirectToPreciumDoc((b = a == null ? void 0 : a.authorization) == null ? void 0 : b.embeddedHtml);
|
|
31765
31767
|
return;
|
|
31766
31768
|
}
|
|
31767
|
-
if (((
|
|
31769
|
+
if (((y = a == null ? void 0 : a.authorization) == null ? void 0 : y.mode) === "avs") {
|
|
31768
31770
|
if (R() !== "en") {
|
|
31769
31771
|
this.showLoader();
|
|
31770
31772
|
const S = Object.values(this.rawAvsData);
|
|
@@ -31783,14 +31785,14 @@ class jd {
|
|
|
31783
31785
|
verification_status: "Failed",
|
|
31784
31786
|
authentication_type: "PIN+0TP"
|
|
31785
31787
|
}), a != null && a.message) {
|
|
31786
|
-
const o = await
|
|
31788
|
+
const o = await W(
|
|
31787
31789
|
a.message,
|
|
31788
31790
|
R()
|
|
31789
31791
|
);
|
|
31790
31792
|
this.errorText = o, this.currentStep = 4, this.warningScreen.setPaymentError(this.errorText);
|
|
31791
31793
|
} else
|
|
31792
31794
|
this.currentStep = 4, this.warningScreen.setPaymentError(
|
|
31793
|
-
|
|
31795
|
+
P["payment-failed"]
|
|
31794
31796
|
);
|
|
31795
31797
|
this.warningScreen.hideReportIssue();
|
|
31796
31798
|
});
|
|
@@ -31817,14 +31819,14 @@ class jd {
|
|
|
31817
31819
|
},
|
|
31818
31820
|
async ({ data: s }) => {
|
|
31819
31821
|
if (s.providerMessage) {
|
|
31820
|
-
const a = await
|
|
31822
|
+
const a = await W(
|
|
31821
31823
|
s.providerMessage,
|
|
31822
31824
|
R()
|
|
31823
31825
|
);
|
|
31824
31826
|
this.errorText = a;
|
|
31825
31827
|
}
|
|
31826
31828
|
this.currentStep = 4, s.providerMessage ? this.warningScreen.setPaymentError(this.errorText) : this.warningScreen.setPaymentError(
|
|
31827
|
-
|
|
31829
|
+
P["payment-failed"]
|
|
31828
31830
|
), this.warningScreen.hideReportIssue(), _.track("verify_payment", {
|
|
31829
31831
|
payment_method: "Card",
|
|
31830
31832
|
verification_status: "Failed",
|
|
@@ -31853,14 +31855,14 @@ class jd {
|
|
|
31853
31855
|
},
|
|
31854
31856
|
async ({ data: l }) => {
|
|
31855
31857
|
if (l.providerMessage) {
|
|
31856
|
-
const c = await
|
|
31858
|
+
const c = await W(
|
|
31857
31859
|
l.providerMessage,
|
|
31858
31860
|
R()
|
|
31859
31861
|
);
|
|
31860
31862
|
this.errorText = c;
|
|
31861
31863
|
}
|
|
31862
31864
|
this.currentStep = 4, l.providerMessage ? this.warningScreen.setPaymentError(this.errorText) : this.warningScreen.setPaymentError(
|
|
31863
|
-
|
|
31865
|
+
P["payment-failed"]
|
|
31864
31866
|
), this.warningScreen.hideReportIssue(), _.track("verify_payment", {
|
|
31865
31867
|
payment_method: "Card",
|
|
31866
31868
|
verification_status: "Failed",
|
|
@@ -31888,7 +31890,7 @@ class jd {
|
|
|
31888
31890
|
verification_status: "Null",
|
|
31889
31891
|
authentication_type: "3DS"
|
|
31890
31892
|
}), this.warningScreen.setPaymentError(
|
|
31891
|
-
|
|
31893
|
+
P["payment-failed"]
|
|
31892
31894
|
), this.warningScreen.hideReportIssue();
|
|
31893
31895
|
}
|
|
31894
31896
|
}
|
|
@@ -31918,7 +31920,7 @@ class jd {
|
|
|
31918
31920
|
authentication_type: "3DS"
|
|
31919
31921
|
}), e.then(async ({ data: t, headers: i }) => {
|
|
31920
31922
|
if (this.cardResponse = t, this.cardResponseHeader = i, t.providerMessage) {
|
|
31921
|
-
const s = await
|
|
31923
|
+
const s = await W(
|
|
31922
31924
|
t.providerMessage,
|
|
31923
31925
|
R()
|
|
31924
31926
|
);
|
|
@@ -31929,7 +31931,7 @@ class jd {
|
|
|
31929
31931
|
authentication_type: "3DS",
|
|
31930
31932
|
verification_status: "Failed"
|
|
31931
31933
|
}), t.providerMessage ? this.warningScreen.setPaymentError(this.errorText) : this.warningScreen.setPaymentError(
|
|
31932
|
-
|
|
31934
|
+
P["payment-failed"]
|
|
31933
31935
|
), this.warningScreen.hideReportIssue()) : ["success", "successful"].includes(t.status) ? (this.currentStep = 5, _.track("charge_3ds_payment", {
|
|
31934
31936
|
payment_method: "Card",
|
|
31935
31937
|
authentication_type: "3DS",
|
|
@@ -31939,7 +31941,7 @@ class jd {
|
|
|
31939
31941
|
authentication_type: "3DS",
|
|
31940
31942
|
verification_status: "Null"
|
|
31941
31943
|
}), t.providerMessage ? this.warningScreen.setPaymentError(this.errorText) : this.warningScreen.setPaymentError(
|
|
31942
|
-
|
|
31944
|
+
P["payment-failed"]
|
|
31943
31945
|
), this.warningScreen.hideReportIssue());
|
|
31944
31946
|
}).catch(async (t) => {
|
|
31945
31947
|
if (_.track("charge_3ds_payment", {
|
|
@@ -31947,14 +31949,14 @@ class jd {
|
|
|
31947
31949
|
authentication_type: "3DS",
|
|
31948
31950
|
verification_status: "Null"
|
|
31949
31951
|
}), t.message) {
|
|
31950
|
-
const i = await
|
|
31952
|
+
const i = await W(
|
|
31951
31953
|
t.message,
|
|
31952
31954
|
R()
|
|
31953
31955
|
);
|
|
31954
31956
|
this.errorText = i, this.currentStep = 4, this.warningScreen.setPaymentError(this.errorText);
|
|
31955
31957
|
} else
|
|
31956
31958
|
this.currentStep = 4, this.warningScreen.setPaymentError(
|
|
31957
|
-
|
|
31959
|
+
P["payment-failed"]
|
|
31958
31960
|
);
|
|
31959
31961
|
this.warningScreen.hideReportIssue();
|
|
31960
31962
|
});
|
|
@@ -31971,7 +31973,7 @@ class jd {
|
|
|
31971
31973
|
);
|
|
31972
31974
|
}
|
|
31973
31975
|
renderCardContent(e) {
|
|
31974
|
-
var a, o, l, c, p, m,
|
|
31976
|
+
var a, o, l, c, p, m, g, b, y, S, f;
|
|
31975
31977
|
e && (this.merchantPlanDetail = e);
|
|
31976
31978
|
const t = document.getElementById(
|
|
31977
31979
|
"test-container"
|
|
@@ -32000,7 +32002,7 @@ class jd {
|
|
|
32000
32002
|
container: this.contents,
|
|
32001
32003
|
onClose: this.onClose,
|
|
32002
32004
|
onAction: (A) => (M) => this.submitOtp.bind(this)(A, M),
|
|
32003
|
-
otpMessage: this.otpMessage ||
|
|
32005
|
+
otpMessage: this.otpMessage || P["Payment failed"]
|
|
32004
32006
|
}), this.cardOtpValidationForm.renderComponent();
|
|
32005
32007
|
break;
|
|
32006
32008
|
case 4:
|
|
@@ -32036,14 +32038,14 @@ class jd {
|
|
|
32036
32038
|
onAction: async () => {
|
|
32037
32039
|
var A, M;
|
|
32038
32040
|
if ((A = this.cardResponse) != null && A.providerMessage) {
|
|
32039
|
-
const x = await
|
|
32041
|
+
const x = await W(
|
|
32040
32042
|
(M = this.cardResponse) == null ? void 0 : M.providerMessage,
|
|
32041
32043
|
R()
|
|
32042
32044
|
);
|
|
32043
32045
|
this.errorText = x;
|
|
32044
32046
|
}
|
|
32045
32047
|
this.currentStep = 4, this.warningScreen.setPaymentError(
|
|
32046
|
-
this.errorText ||
|
|
32048
|
+
this.errorText || P["payment-failed"]
|
|
32047
32049
|
);
|
|
32048
32050
|
},
|
|
32049
32051
|
url: this.url,
|
|
@@ -32098,8 +32100,8 @@ class jd {
|
|
|
32098
32100
|
this.isw3dsForm = new jl({
|
|
32099
32101
|
container: this.contents,
|
|
32100
32102
|
threeDSecureDetails: {
|
|
32101
|
-
jwt: ((
|
|
32102
|
-
md: ((
|
|
32103
|
+
jwt: ((g = (m = this.cardResponse) == null ? void 0 : m.authorization) == null ? void 0 : g.jwt) || "",
|
|
32104
|
+
md: ((y = (b = this.cardResponse) == null ? void 0 : b.authorization) == null ? void 0 : y.md) || "",
|
|
32103
32105
|
acsUrl: ((f = (S = this.cardResponse) == null ? void 0 : S.authorization) == null ? void 0 : f.acsUrl) || ""
|
|
32104
32106
|
},
|
|
32105
32107
|
onAction: (A) => {
|
|
@@ -32130,14 +32132,14 @@ class jd {
|
|
|
32130
32132
|
}, 1800) : i === "success" && this.onSuccess(e);
|
|
32131
32133
|
}
|
|
32132
32134
|
displayButtonText(e) {
|
|
32133
|
-
var i, s, a, o, l, c, p, m,
|
|
32135
|
+
var i, s, a, o, l, c, p, m, g, b;
|
|
32134
32136
|
const t = this.container.querySelector(
|
|
32135
32137
|
"#details-form-button-text"
|
|
32136
32138
|
);
|
|
32137
32139
|
if (t) {
|
|
32138
|
-
const
|
|
32140
|
+
const y = (s = (i = this == null ? void 0 : this.merchantPlanDetail) == null ? void 0 : i.plan) == null ? void 0 : s.trial, S = (c = (l = (o = (a = this == null ? void 0 : this.merchantPlanDetail) == null ? void 0 : a.plan) == null ? void 0 : o.trial) == null ? void 0 : l.pricingList[0]) == null ? void 0 : c.amount, f = In(this.currency, this.localCurrency), w = f === "USD" ? (m = (p = this.merchantPlanDetail) == null ? void 0 : p.rate) == null ? void 0 : m.from : f;
|
|
32139
32141
|
e ? t.textContent = e : t.textContent = `${pe["continue-to"]} ${w} ${_e(
|
|
32140
|
-
|
|
32142
|
+
y && S != null ? S : this.totalAmount !== this.amount ? this.totalAmount : (this.amount || 0) * (this.currency === "USD" ? (b = (g = this.merchantPlanDetail) == null ? void 0 : g.rate) == null ? void 0 : b.rate : 1),
|
|
32141
32143
|
2
|
|
32142
32144
|
)}`;
|
|
32143
32145
|
}
|
|
@@ -32302,7 +32304,7 @@ var To = { exports: {} };
|
|
|
32302
32304
|
return f = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(M, x) {
|
|
32303
32305
|
M.__proto__ = x;
|
|
32304
32306
|
} || function(M, x) {
|
|
32305
|
-
for (var
|
|
32307
|
+
for (var E in x) x.hasOwnProperty(E) && (M[E] = x[E]);
|
|
32306
32308
|
}, f(w, A);
|
|
32307
32309
|
};
|
|
32308
32310
|
return function(w, A) {
|
|
@@ -32327,10 +32329,10 @@ var To = { exports: {} };
|
|
|
32327
32329
|
var x = w[M] << 16 | w[M + 1] << 8 | w[M + 2];
|
|
32328
32330
|
A += this._encodeByte(x >>> 3 * 6 & 63), A += this._encodeByte(x >>> 2 * 6 & 63), A += this._encodeByte(x >>> 1 * 6 & 63), A += this._encodeByte(x >>> 0 * 6 & 63);
|
|
32329
32331
|
}
|
|
32330
|
-
var
|
|
32331
|
-
if (
|
|
32332
|
-
var x = w[M] << 16 | (
|
|
32333
|
-
A += this._encodeByte(x >>> 3 * 6 & 63), A += this._encodeByte(x >>> 2 * 6 & 63),
|
|
32332
|
+
var E = w.length - M;
|
|
32333
|
+
if (E > 0) {
|
|
32334
|
+
var x = w[M] << 16 | (E === 2 ? w[M + 1] << 8 : 0);
|
|
32335
|
+
A += this._encodeByte(x >>> 3 * 6 & 63), A += this._encodeByte(x >>> 2 * 6 & 63), E === 2 ? A += this._encodeByte(x >>> 1 * 6 & 63) : A += this._paddingCharacter || "", A += this._paddingCharacter || "";
|
|
32334
32336
|
}
|
|
32335
32337
|
return A;
|
|
32336
32338
|
}, f.prototype.maxDecodedLength = function(w) {
|
|
@@ -32340,9 +32342,9 @@ var To = { exports: {} };
|
|
|
32340
32342
|
}, f.prototype.decode = function(w) {
|
|
32341
32343
|
if (w.length === 0)
|
|
32342
32344
|
return new Uint8Array(0);
|
|
32343
|
-
for (var A = this._getPaddingLength(w), M = w.length - A, x = new Uint8Array(this.maxDecodedLength(M)),
|
|
32344
|
-
q = this._decodeChar(w.charCodeAt(D + 0)), K = this._decodeChar(w.charCodeAt(D + 1)), z = this._decodeChar(w.charCodeAt(D + 2)), ce = this._decodeChar(w.charCodeAt(D + 3)), x[
|
|
32345
|
-
if (D < M - 1 && (q = this._decodeChar(w.charCodeAt(D)), K = this._decodeChar(w.charCodeAt(D + 1)), x[
|
|
32345
|
+
for (var A = this._getPaddingLength(w), M = w.length - A, x = new Uint8Array(this.maxDecodedLength(M)), E = 0, D = 0, G = 0, q = 0, K = 0, z = 0, ce = 0; D < M - 4; D += 4)
|
|
32346
|
+
q = this._decodeChar(w.charCodeAt(D + 0)), K = this._decodeChar(w.charCodeAt(D + 1)), z = this._decodeChar(w.charCodeAt(D + 2)), ce = this._decodeChar(w.charCodeAt(D + 3)), x[E++] = q << 2 | K >>> 4, x[E++] = K << 4 | z >>> 2, x[E++] = z << 6 | ce, G |= q & o, G |= K & o, G |= z & o, G |= ce & o;
|
|
32347
|
+
if (D < M - 1 && (q = this._decodeChar(w.charCodeAt(D)), K = this._decodeChar(w.charCodeAt(D + 1)), x[E++] = q << 2 | K >>> 4, G |= q & o, G |= K & o), D < M - 2 && (z = this._decodeChar(w.charCodeAt(D + 2)), x[E++] = K << 4 | z >>> 2, G |= z & o), D < M - 3 && (ce = this._decodeChar(w.charCodeAt(D + 3)), x[E++] = z << 6 | ce, G |= ce & o), G !== 0)
|
|
32346
32348
|
throw new Error("Base64Coder: incorrect characters for decoding");
|
|
32347
32349
|
return x;
|
|
32348
32350
|
}, f.prototype._encodeByte = function(w) {
|
|
@@ -32373,7 +32375,7 @@ var To = { exports: {} };
|
|
|
32373
32375
|
return c.decode(f);
|
|
32374
32376
|
}
|
|
32375
32377
|
i.decode = m;
|
|
32376
|
-
var
|
|
32378
|
+
var g = (
|
|
32377
32379
|
/** @class */
|
|
32378
32380
|
function(f) {
|
|
32379
32381
|
a(w, f);
|
|
@@ -32389,12 +32391,12 @@ var To = { exports: {} };
|
|
|
32389
32391
|
}, w;
|
|
32390
32392
|
}(l)
|
|
32391
32393
|
);
|
|
32392
|
-
i.URLSafeCoder =
|
|
32393
|
-
var b = new
|
|
32394
|
-
function
|
|
32394
|
+
i.URLSafeCoder = g;
|
|
32395
|
+
var b = new g();
|
|
32396
|
+
function y(f) {
|
|
32395
32397
|
return b.encode(f);
|
|
32396
32398
|
}
|
|
32397
|
-
i.encodeURLSafe =
|
|
32399
|
+
i.encodeURLSafe = y;
|
|
32398
32400
|
function S(f) {
|
|
32399
32401
|
return b.decode(f);
|
|
32400
32402
|
}
|
|
@@ -32412,71 +32414,71 @@ var To = { exports: {} };
|
|
|
32412
32414
|
Object.defineProperty(i, "__esModule", { value: !0 });
|
|
32413
32415
|
var a = "utf8: invalid string", o = "utf8: invalid source encoding";
|
|
32414
32416
|
function l(m) {
|
|
32415
|
-
for (var
|
|
32416
|
-
var S = m.charCodeAt(
|
|
32417
|
-
S < 128 ?
|
|
32417
|
+
for (var g = new Uint8Array(c(m)), b = 0, y = 0; y < m.length; y++) {
|
|
32418
|
+
var S = m.charCodeAt(y);
|
|
32419
|
+
S < 128 ? g[b++] = S : S < 2048 ? (g[b++] = 192 | S >> 6, g[b++] = 128 | S & 63) : S < 55296 ? (g[b++] = 224 | S >> 12, g[b++] = 128 | S >> 6 & 63, g[b++] = 128 | S & 63) : (y++, S = (S & 1023) << 10, S |= m.charCodeAt(y) & 1023, S += 65536, g[b++] = 240 | S >> 18, g[b++] = 128 | S >> 12 & 63, g[b++] = 128 | S >> 6 & 63, g[b++] = 128 | S & 63);
|
|
32418
32420
|
}
|
|
32419
|
-
return
|
|
32421
|
+
return g;
|
|
32420
32422
|
}
|
|
32421
32423
|
i.encode = l;
|
|
32422
32424
|
function c(m) {
|
|
32423
|
-
for (var
|
|
32424
|
-
var
|
|
32425
|
-
if (
|
|
32426
|
-
|
|
32427
|
-
else if (
|
|
32428
|
-
|
|
32429
|
-
else if (
|
|
32430
|
-
|
|
32431
|
-
else if (
|
|
32425
|
+
for (var g = 0, b = 0; b < m.length; b++) {
|
|
32426
|
+
var y = m.charCodeAt(b);
|
|
32427
|
+
if (y < 128)
|
|
32428
|
+
g += 1;
|
|
32429
|
+
else if (y < 2048)
|
|
32430
|
+
g += 2;
|
|
32431
|
+
else if (y < 55296)
|
|
32432
|
+
g += 3;
|
|
32433
|
+
else if (y <= 57343) {
|
|
32432
32434
|
if (b >= m.length - 1)
|
|
32433
32435
|
throw new Error(a);
|
|
32434
|
-
b++,
|
|
32436
|
+
b++, g += 4;
|
|
32435
32437
|
} else
|
|
32436
32438
|
throw new Error(a);
|
|
32437
32439
|
}
|
|
32438
|
-
return
|
|
32440
|
+
return g;
|
|
32439
32441
|
}
|
|
32440
32442
|
i.encodedLength = c;
|
|
32441
32443
|
function p(m) {
|
|
32442
|
-
for (var
|
|
32443
|
-
var
|
|
32444
|
-
if (
|
|
32444
|
+
for (var g = [], b = 0; b < m.length; b++) {
|
|
32445
|
+
var y = m[b];
|
|
32446
|
+
if (y & 128) {
|
|
32445
32447
|
var S = void 0;
|
|
32446
|
-
if (
|
|
32448
|
+
if (y < 224) {
|
|
32447
32449
|
if (b >= m.length)
|
|
32448
32450
|
throw new Error(o);
|
|
32449
32451
|
var f = m[++b];
|
|
32450
32452
|
if ((f & 192) !== 128)
|
|
32451
32453
|
throw new Error(o);
|
|
32452
|
-
|
|
32453
|
-
} else if (
|
|
32454
|
+
y = (y & 31) << 6 | f & 63, S = 128;
|
|
32455
|
+
} else if (y < 240) {
|
|
32454
32456
|
if (b >= m.length - 1)
|
|
32455
32457
|
throw new Error(o);
|
|
32456
32458
|
var f = m[++b], w = m[++b];
|
|
32457
32459
|
if ((f & 192) !== 128 || (w & 192) !== 128)
|
|
32458
32460
|
throw new Error(o);
|
|
32459
|
-
|
|
32460
|
-
} else if (
|
|
32461
|
+
y = (y & 15) << 12 | (f & 63) << 6 | w & 63, S = 2048;
|
|
32462
|
+
} else if (y < 248) {
|
|
32461
32463
|
if (b >= m.length - 2)
|
|
32462
32464
|
throw new Error(o);
|
|
32463
32465
|
var f = m[++b], w = m[++b], A = m[++b];
|
|
32464
32466
|
if ((f & 192) !== 128 || (w & 192) !== 128 || (A & 192) !== 128)
|
|
32465
32467
|
throw new Error(o);
|
|
32466
|
-
|
|
32468
|
+
y = (y & 15) << 18 | (f & 63) << 12 | (w & 63) << 6 | A & 63, S = 65536;
|
|
32467
32469
|
} else
|
|
32468
32470
|
throw new Error(o);
|
|
32469
|
-
if (
|
|
32471
|
+
if (y < S || y >= 55296 && y <= 57343)
|
|
32470
32472
|
throw new Error(o);
|
|
32471
|
-
if (
|
|
32472
|
-
if (
|
|
32473
|
+
if (y >= 65536) {
|
|
32474
|
+
if (y > 1114111)
|
|
32473
32475
|
throw new Error(o);
|
|
32474
|
-
|
|
32476
|
+
y -= 65536, g.push(String.fromCharCode(55296 | y >> 10)), y = 56320 | y & 1023;
|
|
32475
32477
|
}
|
|
32476
32478
|
}
|
|
32477
|
-
|
|
32479
|
+
g.push(String.fromCharCode(y));
|
|
32478
32480
|
}
|
|
32479
|
-
return
|
|
32481
|
+
return g.join("");
|
|
32480
32482
|
}
|
|
32481
32483
|
i.decode = p;
|
|
32482
32484
|
},
|
|
@@ -32563,7 +32565,7 @@ var To = { exports: {} };
|
|
|
32563
32565
|
return this.getRoot(u) + "/" + r + this.options.suffix + ".js";
|
|
32564
32566
|
}
|
|
32565
32567
|
}
|
|
32566
|
-
var m = new a("_pusher_dependencies", "Pusher.DependenciesReceivers"),
|
|
32568
|
+
var m = new a("_pusher_dependencies", "Pusher.DependenciesReceivers"), g = new p({
|
|
32567
32569
|
cdn_http: c.cdn_http,
|
|
32568
32570
|
cdn_https: c.cdn_https,
|
|
32569
32571
|
version: c.VERSION,
|
|
@@ -32620,7 +32622,7 @@ var To = { exports: {} };
|
|
|
32620
32622
|
super(r), Object.setPrototypeOf(this, new.target.prototype);
|
|
32621
32623
|
}
|
|
32622
32624
|
}
|
|
32623
|
-
class
|
|
32625
|
+
class E extends Error {
|
|
32624
32626
|
constructor(r) {
|
|
32625
32627
|
super(r), Object.setPrototypeOf(this, new.target.prototype);
|
|
32626
32628
|
}
|
|
@@ -33195,7 +33197,7 @@ var To = { exports: {} };
|
|
|
33195
33197
|
},
|
|
33196
33198
|
getSocket: function(h, r) {
|
|
33197
33199
|
return new window.SockJS(h, null, {
|
|
33198
|
-
js_path:
|
|
33200
|
+
js_path: g.getPath("sockjs", {
|
|
33199
33201
|
useTLS: r.useTLS
|
|
33200
33202
|
}),
|
|
33201
33203
|
ignore_null_origin: r.ignoreNullOrigin
|
|
@@ -34179,7 +34181,7 @@ var To = { exports: {} };
|
|
|
34179
34181
|
var h = this;
|
|
34180
34182
|
h.timeline.info(h.buildTimelineMessage({
|
|
34181
34183
|
transport: h.name + (h.options.useTLS ? "s" : "")
|
|
34182
|
-
})), h.hooks.isInitialized() ? h.changeState("initialized") : h.hooks.file ? (h.changeState("initializing"),
|
|
34184
|
+
})), h.hooks.isInitialized() ? h.changeState("initialized") : h.hooks.file ? (h.changeState("initializing"), g.load(h.hooks.file, { useTLS: h.options.useTLS }, function(r, u) {
|
|
34183
34185
|
h.hooks.isInitialized() ? (h.changeState("initialized"), u(!0)) : (r && h.onError(r), h.onClose(), u(!1));
|
|
34184
34186
|
})) : h.onClose();
|
|
34185
34187
|
}, or = {
|
|
@@ -34435,7 +34437,7 @@ var To = { exports: {} };
|
|
|
34435
34437
|
var r = () => {
|
|
34436
34438
|
this.onDocumentBody(h.ready);
|
|
34437
34439
|
};
|
|
34438
|
-
window.JSON ? r() :
|
|
34440
|
+
window.JSON ? r() : g.load("json2", {}, r);
|
|
34439
34441
|
},
|
|
34440
34442
|
getDocument() {
|
|
34441
34443
|
return document;
|
|
@@ -34575,7 +34577,7 @@ var To = { exports: {} };
|
|
|
34575
34577
|
}, $ = function() {
|
|
34576
34578
|
ie();
|
|
34577
34579
|
var ge;
|
|
34578
|
-
ge = Fn(k), u(new
|
|
34580
|
+
ge = Fn(k), u(new E(ge));
|
|
34579
34581
|
}, ie = function() {
|
|
34580
34582
|
k.unbind("initialized", I), k.unbind("open", B), k.unbind("error", O), k.unbind("closed", $);
|
|
34581
34583
|
};
|
|
@@ -34955,12 +34957,12 @@ class pa {
|
|
|
34955
34957
|
attachListener() {
|
|
34956
34958
|
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"), l = this.container.querySelector("#amount-tooltip"), c = this.container.querySelector("#transfer-button"), p = this.container.querySelector(
|
|
34957
34959
|
"#transfer-header-text"
|
|
34958
|
-
), m = this.container.querySelector("#bank-name-text"),
|
|
34960
|
+
), m = this.container.querySelector("#bank-name-text"), g = this.container.querySelector("#beneficiary-text"), b = this.container.querySelector("#amount-text"), y = this.container.querySelectorAll(".copy-text"), S = this.container.querySelector(
|
|
34959
34961
|
"#account-number-text"
|
|
34960
34962
|
), f = this.container.querySelector("#expiration-text");
|
|
34961
|
-
p && (p.innerHTML = Fe["transfer-header"]), b && (b.innerHTML =
|
|
34962
|
-
w.innerHTML =
|
|
34963
|
-
}), S && (S.innerHTML = Fe["account-number"]), m && (m.innerHTML = Fe["bank-name"]),
|
|
34963
|
+
p && (p.innerHTML = Fe["transfer-header"]), b && (b.innerHTML = Z.amount), y.forEach((w) => {
|
|
34964
|
+
w.innerHTML = P.copy;
|
|
34965
|
+
}), S && (S.innerHTML = Fe["account-number"]), m && (m.innerHTML = Fe["bank-name"]), g && (g.innerHTML = Fe.beneficiary), f && (f.innerHTML = Fe["expiration-text"]), i && e && i.addEventListener("click", () => {
|
|
34964
34966
|
s && (t && _.track("copy_transferBank", {
|
|
34965
34967
|
payment_method: "Transfer",
|
|
34966
34968
|
payment_process: "Payment Started",
|
|
@@ -34996,17 +34998,17 @@ class pa {
|
|
|
34996
34998
|
}
|
|
34997
34999
|
copyToClipboard(e, t) {
|
|
34998
35000
|
navigator.clipboard.writeText(e).then(() => {
|
|
34999
|
-
t.innerHTML =
|
|
35001
|
+
t.innerHTML = P.copied;
|
|
35000
35002
|
}).catch(() => {
|
|
35001
|
-
t.innerHTML =
|
|
35003
|
+
t.innerHTML = P["copy-fail"];
|
|
35002
35004
|
});
|
|
35003
35005
|
}
|
|
35004
35006
|
renderComponent(e) {
|
|
35005
|
-
var
|
|
35007
|
+
var g, b, y, S, f, w;
|
|
35006
35008
|
e && (this.payment = e), this.container.innerHTML = this.render();
|
|
35007
|
-
const t = this.container.querySelector("#transfer-amount"), i = this.container.querySelector("#transfer-bank"), s = this.container.querySelector("#account-name"), a = this.container.querySelector("#transfer-acn"), o = this.container.querySelector("#time-left"), l = ((
|
|
35009
|
+
const t = this.container.querySelector("#transfer-amount"), i = this.container.querySelector("#transfer-bank"), s = this.container.querySelector("#account-name"), a = this.container.querySelector("#transfer-acn"), o = this.container.querySelector("#time-left"), l = ((g = this.payment) == null ? void 0 : g.currency) || "USD", c = l === "USD" ? (b = this.payment) == null ? void 0 : b.localCurrency : l;
|
|
35008
35010
|
if (t && (t.innerHTML = `${c} ${_e(
|
|
35009
|
-
this.payment.totalTaxAmount ? this.payment.totalLocalAmount : l === "USD" ? (
|
|
35011
|
+
this.payment.totalTaxAmount ? this.payment.totalLocalAmount : l === "USD" ? (y = this.payment) == null ? void 0 : y.localAmount : (S = this.payment) == null ? void 0 : S.amount,
|
|
35010
35012
|
2
|
|
35011
35013
|
)}`), i && this.payment.bankDetails && (i.innerHTML = (f = this.payment.bankDetails) == null ? void 0 : f.bankName), s && this.payment.bankDetails && (s.innerHTML = (w = this.payment.bankDetails) == null ? void 0 : w.accountName), a && this.payment.bankDetails && (a.innerHTML = this.payment.bankDetails.accountNumber), o && (o.innerHTML = ct(this.initialTime)), this.startTimer("poll"), e.status === "inProgress") {
|
|
35012
35014
|
const A = "45654f3ce4c9512ea9a4", M = "us2";
|
|
@@ -35018,8 +35020,8 @@ class pa {
|
|
|
35018
35020
|
payment_method: "Transfer",
|
|
35019
35021
|
verification_status: "Success"
|
|
35020
35022
|
}), x != null && x.redirectUrl && setTimeout(() => {
|
|
35021
|
-
const
|
|
35022
|
-
|
|
35023
|
+
const E = new URL(x.redirectUrl);
|
|
35024
|
+
E.searchParams.append("status", x.status), E.searchParams.append("reference", x.reference), window.location.href = E.toString();
|
|
35023
35025
|
}, 1800)) : x.status === "failed" && (clearInterval(this.timerId || void 0), this.onFail(7, "Transfer failed"), _.track("verify_payment", {
|
|
35024
35026
|
payment_method: "Transfer",
|
|
35025
35027
|
verification_status: "Failed"
|
|
@@ -35141,8 +35143,8 @@ class Jd {
|
|
|
35141
35143
|
"#confirming-txn-status-end-text"
|
|
35142
35144
|
), i = this.container.querySelector(
|
|
35143
35145
|
"#account-details-text"
|
|
35144
|
-
), s = this.container.querySelector("#please-wait-text"), a = this.container.querySelector("#minutes-text"), o = this.container.querySelector("#bankname-text"), l = this.container.querySelector("#beneficiary-text"), c = this.container.querySelector("#transfer-bank"), p = this.container.querySelector("#transfer-acn-pr"), m = this.container.querySelector("#copy-acn-pr"),
|
|
35145
|
-
e && (e.innerHTML =
|
|
35146
|
+
), s = this.container.querySelector("#please-wait-text"), a = this.container.querySelector("#minutes-text"), o = this.container.querySelector("#bankname-text"), l = this.container.querySelector("#beneficiary-text"), c = this.container.querySelector("#transfer-bank"), p = this.container.querySelector("#transfer-acn-pr"), m = this.container.querySelector("#copy-acn-pr"), g = this.container.querySelector("#acn-tooltip-pr");
|
|
35147
|
+
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 = Fe["bank-name"]), l && (l.innerHTML = Fe.beneficiary), i && (i.innerHTML = Fe["account-details"]);
|
|
35146
35148
|
const b = this.container.querySelector("#show-acn");
|
|
35147
35149
|
b && b.addEventListener("click", () => {
|
|
35148
35150
|
this.onAction(1), clearTimeout(this.timer);
|
|
@@ -35152,11 +35154,11 @@ class Jd {
|
|
|
35152
35154
|
payment_process: "Payment Verification",
|
|
35153
35155
|
account_number: p.innerHTML,
|
|
35154
35156
|
bank_name: c == null ? void 0 : c.innerHTML
|
|
35155
|
-
}),
|
|
35157
|
+
}), g && (g.innerHTML = P.copy, this.copyToClipboard(p.innerHTML, g));
|
|
35156
35158
|
}), this.initialTime = 300, this.timeLeft = this.initialTime;
|
|
35157
|
-
const
|
|
35159
|
+
const y = 3e4;
|
|
35158
35160
|
this.abortController = new AbortController(), setTimeout(() => {
|
|
35159
|
-
this.verifyTransfer(this.token,
|
|
35161
|
+
this.verifyTransfer(this.token, y, ({ data: S, headers: f }) => {
|
|
35160
35162
|
this.onAction(6), this.redirectTo(S, f);
|
|
35161
35163
|
});
|
|
35162
35164
|
}, 5e3), this.startTimer();
|
|
@@ -35219,9 +35221,9 @@ class Jd {
|
|
|
35219
35221
|
}
|
|
35220
35222
|
copyToClipboard(e, t) {
|
|
35221
35223
|
navigator.clipboard.writeText(e).then(() => {
|
|
35222
|
-
t.innerHTML =
|
|
35224
|
+
t.innerHTML = P.copied;
|
|
35223
35225
|
}).catch(() => {
|
|
35224
|
-
t.innerHTML =
|
|
35226
|
+
t.innerHTML = P["copy-fail"];
|
|
35225
35227
|
});
|
|
35226
35228
|
}
|
|
35227
35229
|
renderComponent(e) {
|
|
@@ -35283,9 +35285,9 @@ class $d {
|
|
|
35283
35285
|
rdtCode: c,
|
|
35284
35286
|
url: p,
|
|
35285
35287
|
reference: m,
|
|
35286
|
-
callBackUrl:
|
|
35288
|
+
callBackUrl: g,
|
|
35287
35289
|
metadata: b,
|
|
35288
|
-
localCurrency:
|
|
35290
|
+
localCurrency: y,
|
|
35289
35291
|
disablePaymentMethods: S,
|
|
35290
35292
|
restartTransactionProcess: f,
|
|
35291
35293
|
hidePaymentMethods: w,
|
|
@@ -35329,7 +35331,7 @@ class $d {
|
|
|
35329
35331
|
d(this, "errorText");
|
|
35330
35332
|
this.currency = l, this.container = s, this.contents = this.container.querySelector(
|
|
35331
35333
|
"#payment-content-view"
|
|
35332
|
-
), this.closeModal = i, this.token = o, this.customer = a, this.amount = e, this.totalAmount = t, this.rdtCode = c, this.url = p, this.reference = m, this._currentStep = 1, this.callBackUrl =
|
|
35334
|
+
), this.closeModal = i, this.token = o, this.customer = a, this.amount = e, this.totalAmount = t, this.rdtCode = c, this.url = p, this.reference = m, this._currentStep = 1, this.callBackUrl = g, this.metadata = b, this.localCurrency = y, this.disablePaymentMethods = S, this.paymentResponse = {}, this.paymentResponseHeaders = {}, this.restartTransactionProcess = f, this.hidePaymentMethods = w, 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;
|
|
35333
35335
|
}
|
|
35334
35336
|
get currentStep() {
|
|
35335
35337
|
return this._currentStep;
|
|
@@ -35411,7 +35413,7 @@ class $d {
|
|
|
35411
35413
|
}
|
|
35412
35414
|
})().then(async ({ data: a, headers: o }) => {
|
|
35413
35415
|
if (this.paymentResponse = a, this.paymentResponseHeaders = o, a.providerMessage) {
|
|
35414
|
-
const l = await
|
|
35416
|
+
const l = await W(
|
|
35415
35417
|
a.providerMessage,
|
|
35416
35418
|
R()
|
|
35417
35419
|
);
|
|
@@ -35422,7 +35424,7 @@ class $d {
|
|
|
35422
35424
|
payment_method: "Transfer",
|
|
35423
35425
|
verification_status: "Failed"
|
|
35424
35426
|
}), a.providerMessage ? this.warningScreen.setPaymentError(this.errorText) : this.warningScreen.setPaymentError(
|
|
35425
|
-
|
|
35427
|
+
P["payment-failed"]
|
|
35426
35428
|
), this.warningScreen.hideReportIssue();
|
|
35427
35429
|
else if (e && t && (e.classList.add("hidden"), t.classList.remove("hidden")), this.activeRef = a.reference, this.paymentResponse = a, a.bankDetails && a.bankDetails.accountNumber)
|
|
35428
35430
|
this.transferDetails = new pa({
|
|
@@ -35432,7 +35434,7 @@ class $d {
|
|
|
35432
35434
|
},
|
|
35433
35435
|
onFail: async (l, c) => {
|
|
35434
35436
|
if (this.currentStep = l, l === 7 && c) {
|
|
35435
|
-
const p = await
|
|
35437
|
+
const p = await W(
|
|
35436
35438
|
c,
|
|
35437
35439
|
R()
|
|
35438
35440
|
);
|
|
@@ -35443,13 +35445,13 @@ class $d {
|
|
|
35443
35445
|
this.paymentResponse || a
|
|
35444
35446
|
);
|
|
35445
35447
|
else if (a.providerMessage) {
|
|
35446
|
-
const l = await
|
|
35448
|
+
const l = await W(
|
|
35447
35449
|
a.providerMessage,
|
|
35448
35450
|
R()
|
|
35449
35451
|
);
|
|
35450
35452
|
this.errorText = l, this.currentStep = 7, this.warningScreen.setPaymentError(this.errorText);
|
|
35451
35453
|
} else {
|
|
35452
|
-
const l = await
|
|
35454
|
+
const l = await W(
|
|
35453
35455
|
"Error fetching bank details",
|
|
35454
35456
|
R()
|
|
35455
35457
|
);
|
|
@@ -35463,19 +35465,19 @@ class $d {
|
|
|
35463
35465
|
this.isMaxRetriesReached = !0, this.verifyTransfer(), this.currentStep = 7, _.track("max_retries_reached", {
|
|
35464
35466
|
payment_method: "Transfer"
|
|
35465
35467
|
}), this.warningScreen.setPaymentError(
|
|
35466
|
-
|
|
35467
|
-
|
|
35468
|
-
|
|
35468
|
+
P["maximum-retries"],
|
|
35469
|
+
P["maximum-retries-desc"],
|
|
35470
|
+
Z["merchant-back"]
|
|
35469
35471
|
);
|
|
35470
35472
|
else if (a != null && a.message) {
|
|
35471
|
-
const o = await
|
|
35473
|
+
const o = await W(
|
|
35472
35474
|
a.message,
|
|
35473
35475
|
R()
|
|
35474
35476
|
);
|
|
35475
35477
|
this.errorText = o, this.currentStep = 7, this.warningScreen.setPaymentError(this.errorText);
|
|
35476
35478
|
} else
|
|
35477
35479
|
this.currentStep = 7, this.warningScreen.setPaymentError(
|
|
35478
|
-
|
|
35480
|
+
P["payment-failed"]
|
|
35479
35481
|
);
|
|
35480
35482
|
this.warningScreen.hideReportIssue();
|
|
35481
35483
|
});
|
|
@@ -35504,7 +35506,7 @@ class $d {
|
|
|
35504
35506
|
},
|
|
35505
35507
|
onFail: async (s, a) => {
|
|
35506
35508
|
if (this.currentStep = s, s === 7 && a) {
|
|
35507
|
-
const o = await
|
|
35509
|
+
const o = await W(
|
|
35508
35510
|
a,
|
|
35509
35511
|
R()
|
|
35510
35512
|
);
|
|
@@ -35523,7 +35525,7 @@ class $d {
|
|
|
35523
35525
|
container: this.contents,
|
|
35524
35526
|
onAction: async (s, a) => {
|
|
35525
35527
|
if (this.currentStep = s, s === 7 && a) {
|
|
35526
|
-
const o = await
|
|
35528
|
+
const o = await W(
|
|
35527
35529
|
a,
|
|
35528
35530
|
R()
|
|
35529
35531
|
);
|
|
@@ -35580,14 +35582,14 @@ class $d {
|
|
|
35580
35582
|
onAction: async () => {
|
|
35581
35583
|
var s, a;
|
|
35582
35584
|
if (this.currentStep = 7, (s = this.paymentResponse) != null && s.providerMessage) {
|
|
35583
|
-
const o = await
|
|
35585
|
+
const o = await W(
|
|
35584
35586
|
(a = this.paymentResponse) == null ? void 0 : a.providerMessage,
|
|
35585
35587
|
R()
|
|
35586
35588
|
);
|
|
35587
35589
|
this.errorText = o;
|
|
35588
35590
|
}
|
|
35589
35591
|
this.warningScreen.setPaymentError(
|
|
35590
|
-
this.errorText ||
|
|
35592
|
+
this.errorText || P["payment-failed"]
|
|
35591
35593
|
);
|
|
35592
35594
|
},
|
|
35593
35595
|
token: this.token,
|
|
@@ -35614,9 +35616,9 @@ class $d {
|
|
|
35614
35616
|
}
|
|
35615
35617
|
copyToClipboard(e, t) {
|
|
35616
35618
|
navigator.clipboard.writeText(e).then(() => {
|
|
35617
|
-
t.innerHTML =
|
|
35619
|
+
t.innerHTML = P.copied;
|
|
35618
35620
|
}).catch(() => {
|
|
35619
|
-
t.innerHTML =
|
|
35621
|
+
t.innerHTML = P["copy-fail"];
|
|
35620
35622
|
});
|
|
35621
35623
|
}
|
|
35622
35624
|
destroyTimer() {
|
|
@@ -36136,9 +36138,9 @@ class Eo {
|
|
|
36136
36138
|
url: m,
|
|
36137
36139
|
// closeModal,
|
|
36138
36140
|
// switchTab,
|
|
36139
|
-
callBackUrl:
|
|
36141
|
+
callBackUrl: g,
|
|
36140
36142
|
metadata: b,
|
|
36141
|
-
localCurrency:
|
|
36143
|
+
localCurrency: y,
|
|
36142
36144
|
hidePaymentMethods: S,
|
|
36143
36145
|
showPaymentMethods: f,
|
|
36144
36146
|
disablePaymentMethods: w
|
|
@@ -36175,7 +36177,7 @@ class Eo {
|
|
|
36175
36177
|
d(this, "hidePaymentMethods");
|
|
36176
36178
|
d(this, "showPaymentMethods");
|
|
36177
36179
|
d(this, "disablePaymentMethods");
|
|
36178
|
-
this.onSuccess = t || (() => null), this.container = e, this.secret = i, this.amount = s, this.totalAmount = a, this.currency = o, this.reference = c, this.customer = l, this.rdtCode = p, this.url = m, this.callBackUrl =
|
|
36180
|
+
this.onSuccess = t || (() => null), this.container = e, this.secret = i, this.amount = s, this.totalAmount = a, this.currency = o, this.reference = c, this.customer = l, this.rdtCode = p, this.url = m, this.callBackUrl = g, this.metadata = b, this.localCurrency = y, this.merchantDetails = {}, this.hidePaymentMethods = S, this.showPaymentMethods = f, this.disablePaymentMethods = w, this.contents = this.container.querySelector(
|
|
36179
36181
|
"#payment-content-view"
|
|
36180
36182
|
), this._currentStep = 1, this.paymentService = new _o({
|
|
36181
36183
|
token: this.secret,
|
|
@@ -36541,17 +36543,17 @@ class hu {
|
|
|
36541
36543
|
"#plan-name"
|
|
36542
36544
|
), c = this.container.querySelector(
|
|
36543
36545
|
"#plan-name-mob"
|
|
36544
|
-
), p = this.container.querySelector("#payment-fees"), m = this.container.querySelector("#currency-cursor"),
|
|
36546
|
+
), p = this.container.querySelector("#payment-fees"), m = this.container.querySelector("#currency-cursor"), g = this.container.querySelector(
|
|
36545
36547
|
"#currency-cursor-mob"
|
|
36546
36548
|
), b = this.container.querySelector(
|
|
36547
36549
|
"#payment-rate-display"
|
|
36548
|
-
),
|
|
36550
|
+
), y = this.container.querySelector(
|
|
36549
36551
|
"#payment-rate-display-mob"
|
|
36550
36552
|
), S = this.container.querySelector("#designated-rate"), f = this.container.querySelector(
|
|
36551
36553
|
"#designated-rate-mob"
|
|
36552
36554
|
), w = this.container.querySelector(
|
|
36553
36555
|
"#designated-rate-no-plan"
|
|
36554
|
-
), A = this.container.querySelector("#source-rate"), M = this.container.querySelector("#source-rate-mob"), x = this.container.querySelector("#tax-rate"),
|
|
36556
|
+
), A = this.container.querySelector("#source-rate"), M = this.container.querySelector("#source-rate-mob"), x = this.container.querySelector("#tax-rate"), E = this.container.querySelector("#tax-rate-mob"), D = this.container.querySelector("#tooltip-localCurrency"), G = this.container.querySelector(
|
|
36555
36557
|
"#tooltip-localCurrency-mob"
|
|
36556
36558
|
), q = this.container.querySelector(
|
|
36557
36559
|
"#select-payment-method-text"
|
|
@@ -36577,7 +36579,7 @@ class hu {
|
|
|
36577
36579
|
}
|
|
36578
36580
|
});
|
|
36579
36581
|
}
|
|
36580
|
-
if (q && (q.innerHTML =
|
|
36582
|
+
if (q && (q.innerHTML = Z.select_payment_method_text), K && (K.innerHTML = `${Z.amount}:`), Ke && (Ke.innerHTML = `${Z["to-pay"]}:`), z && (z.innerHTML = P["what-is-this"]), ce && (ce.innerHTML = P["rate-reflect-note"]), Le && (Le.innerHTML = P["rate-please-note"]), j && (j.innerHTML = P["what-is-this"]), Be && (Be.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), l) {
|
|
36581
36583
|
if ((pn = (Ge = this.merchantDetail) == null ? void 0 : Ge.plan) != null && pn.title) {
|
|
36582
36584
|
const Je = ((he = (Vn = this.merchantDetail) == null ? void 0 : Vn.plan) == null ? void 0 : he.title) || "";
|
|
36583
36585
|
l.textContent = li(Je);
|
|
@@ -36598,16 +36600,16 @@ class hu {
|
|
|
36598
36600
|
if (m && (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(
|
|
36599
36601
|
((ee = this.merchantDetail.rate) == null ? void 0 : ee.rate) || 1,
|
|
36600
36602
|
2
|
|
36601
|
-
)} `) : m.innerHTML = ""),
|
|
36603
|
+
)} `) : m.innerHTML = ""), g && (this.currency === "USD" ? y && (y.innerHTML = `1 ${((gt = (Mn = this.merchantDetail) == null ? void 0 : Mn.rate) == null ? void 0 : gt.to) || "-"} = ${((Ht = (Rt = this.merchantDetail) == null ? void 0 : Rt.rate) == null ? void 0 : Ht.from) || "-"} ${_e(
|
|
36602
36604
|
((Nt = this.merchantDetail.rate) == null ? void 0 : Nt.rate) || 1,
|
|
36603
36605
|
2
|
|
36604
|
-
)} `) :
|
|
36606
|
+
)} `) : g.innerHTML = ""), (Fn = (Ot = this.merchantDetail) == null ? void 0 : Ot.plan) != null && Fn.title || (Ut = this.metadata) != null && Ut.productName ? S && (((Vt = (oe = this.merchantDetail) == null ? void 0 : oe.plan) == null ? void 0 : Vt.trial) ? (a == null || a.classList.remove("hidden"), S.innerHTML = `${this.currency} ${_e(this.amount, 2)}`) : (S.innerHTML = `${this.currency} ${_e(this.amount, 2)}`, a == null || a.classList.add("hidden"))) : (w && (w.innerHTML = `<span> ${this.currency} ${_e(this.amount, 2)} </span>`), l && c && (l.remove(), c == null || c.remove()), this.localCurrency ? S == null || S.remove() : p && p.remove()), f) {
|
|
36605
36607
|
const Je = (Kt = (Ft = this.merchantDetail) == null ? void 0 : Ft.plan) == null ? void 0 : Kt.trial, xn = (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;
|
|
36606
36608
|
Je && o ? (o.textContent = `${this.currency} ${_e(xn, 2)}`, f.innerHTML = `${this.currency} ${_e(this.amount, 2)}`) : f.innerHTML = `${this.currency} ${_e(this.amount, 2)}`;
|
|
36607
36609
|
}
|
|
36608
36610
|
A && (this.localCurrency && this.localCurrency !== this.currency ? A.children[1].innerHTML = `${this.localCurrency} ${_e(this.amount * (((Xn = (Yn = this.merchantDetail) == null ? void 0 : Yn.rate) == null ? void 0 : Xn.rate) || 1), 2)}` : A.remove()), M && (this.localCurrency && this.localCurrency !== this.currency ? M.children[1].innerHTML = `${this.localCurrency} ${_e(this.amount * (((Zt = (Wt = this.merchantDetail) == null ? void 0 : Wt.rate) == null ? void 0 : Zt.rate) || 1), 2)}` : M.remove());
|
|
36609
36611
|
const hn = this.localCurrency !== this.currency ? this.amount * (((Jt = (Qt = this.merchantDetail) == null ? void 0 : Qt.rate) == null ? void 0 : Jt.rate) || 1) : this.amount;
|
|
36610
|
-
x && ($n = this.merchantDetail) != null && $n.taxQuoteId && (We = this.merchantDetail) != null && We.totalAmount && (x.classList.remove("hidden"), x.children[1].innerHTML = `${this.localCurrency !== this.currency ? this.localCurrency : this.currency} ${_e(((Yt = this.merchantDetail) == null ? void 0 : Yt.totalAmount) - hn, 2)}`),
|
|
36612
|
+
x && ($n = this.merchantDetail) != null && $n.taxQuoteId && (We = this.merchantDetail) != null && We.totalAmount && (x.classList.remove("hidden"), x.children[1].innerHTML = `${this.localCurrency !== this.currency ? this.localCurrency : this.currency} ${_e(((Yt = this.merchantDetail) == null ? void 0 : Yt.totalAmount) - hn, 2)}`), E && (vn = this.merchantDetail) != null && vn.taxQuoteId && (Xt = this.merchantDetail) != null && Xt.totalAmount && (E.classList.remove("hidden"), E.children[1].innerHTML = `${this.localCurrency !== this.currency ? this.localCurrency : this.currency} ${_e(((yt = this.merchantDetail) == null ? void 0 : yt.totalAmount) - hn, 2)}`);
|
|
36611
36613
|
const an = ru[this.localCurrency];
|
|
36612
36614
|
D && this.localCurrency && (D.innerHTML = an ? `${an} (${this.localCurrency})` : this.localCurrency), G && this.localCurrency && (G.innerHTML = an ? `${an} (${this.localCurrency})` : this.localCurrency), this.renderPaymentOptions(this.container), this.attachListeners();
|
|
36613
36615
|
}
|
|
@@ -36749,7 +36751,7 @@ class pu {
|
|
|
36749
36751
|
), t = this.container.querySelector(
|
|
36750
36752
|
"#confirming-txn-status-end-text"
|
|
36751
36753
|
), i = this.container.querySelector("#please-wait-text"), s = this.container.querySelector("#minutes-text");
|
|
36752
|
-
e && (e.innerHTML =
|
|
36754
|
+
e && (e.innerHTML = P["confirming-txn-status"]), t && (t.innerHTML = P["few-minutes"]), i && (i.innerHTML = P["please-wait-for"]), s && (s.innerHTML = P.minutes), this.initialTime = 300, this.timeLeft = this.initialTime;
|
|
36753
36755
|
const a = 3e4;
|
|
36754
36756
|
this.abortController = new AbortController(), setTimeout(() => {
|
|
36755
36757
|
this.verifyMobileMoney(
|
|
@@ -36951,11 +36953,11 @@ class bu {
|
|
|
36951
36953
|
), i.setAttribute(
|
|
36952
36954
|
"placeholder",
|
|
36953
36955
|
Me["enter-number"]
|
|
36954
|
-
), i.addEventListener("input", (
|
|
36955
|
-
const b =
|
|
36956
|
+
), i.addEventListener("input", (g) => {
|
|
36957
|
+
const b = g.target;
|
|
36956
36958
|
b.value = b.value.replace(/\D/g, ""), this.validateForm();
|
|
36957
|
-
const
|
|
36958
|
-
(f) => f.name === (this.countryCode ||
|
|
36959
|
+
const y = In(this.currency, this.localCurrency), S = _n.find(
|
|
36960
|
+
(f) => f.name === (this.countryCode || y)
|
|
36959
36961
|
);
|
|
36960
36962
|
_n && S && Number(S.length) === b.value.length && _.track("input_phone_number", {
|
|
36961
36963
|
payment_method: "Mobile Money",
|
|
@@ -36963,19 +36965,24 @@ class bu {
|
|
|
36963
36965
|
});
|
|
36964
36966
|
}), s.addEventListener("change", () => {
|
|
36965
36967
|
if (this.validateForm(), s.value === "orange") {
|
|
36966
|
-
const
|
|
36968
|
+
const g = this.container.querySelector("#otp-message"), b = this.container.querySelector(
|
|
36967
36969
|
"#otp-input-container"
|
|
36968
36970
|
);
|
|
36969
|
-
|
|
36970
|
-
const
|
|
36971
|
-
|
|
36972
|
-
}
|
|
36973
|
-
|
|
36974
|
-
|
|
36975
|
-
|
|
36976
|
-
(
|
|
36971
|
+
g && g.classList.remove("hidden"), b && b.classList.remove("hidden");
|
|
36972
|
+
const y = this.container.querySelector("#otp-input");
|
|
36973
|
+
y && y.addEventListener("input", () => this.validateForm());
|
|
36974
|
+
} else {
|
|
36975
|
+
const g = this.container.querySelector("#otp-message"), b = this.container.querySelector(
|
|
36976
|
+
"#otp-input-container"
|
|
36977
|
+
);
|
|
36978
|
+
g && g.classList.add("hidden"), b && b.classList.add("hidden");
|
|
36979
|
+
}
|
|
36980
|
+
})), t && t.classList.add("hidden"), !(!s || !i || !o) && e && e.addEventListener("submit", (g) => {
|
|
36981
|
+
g.preventDefault();
|
|
36982
|
+
const b = this.localCurrency !== this.currency ? this.localCurrency : this.currency, y = this.countryCode || b, f = _n.filter(
|
|
36983
|
+
(M) => M.name === y
|
|
36977
36984
|
)[0].allowsZeros ? `0${i.value}` : i.value, w = s.value, A = a ? a.value : "";
|
|
36978
|
-
this.onAction(
|
|
36985
|
+
this.onAction(g)({
|
|
36979
36986
|
code: w,
|
|
36980
36987
|
// "mtn-gh",
|
|
36981
36988
|
phoneNumber: f,
|
|
@@ -37046,7 +37053,7 @@ class bu {
|
|
|
37046
37053
|
payment_method: "Mobile Money",
|
|
37047
37054
|
error: e.message || "Unknown error"
|
|
37048
37055
|
}), e.message) {
|
|
37049
|
-
const t = await
|
|
37056
|
+
const t = await W(
|
|
37050
37057
|
e.message,
|
|
37051
37058
|
R()
|
|
37052
37059
|
);
|
|
@@ -37188,7 +37195,7 @@ class Cu {
|
|
|
37188
37195
|
), i = this.container.querySelector(
|
|
37189
37196
|
"#long-processing-text"
|
|
37190
37197
|
), s = this.container.querySelector("#confirmed-text");
|
|
37191
|
-
i && (i.innerHTML =
|
|
37198
|
+
i && (i.innerHTML = P["long-processing"]), s && (s.innerHTML = P["once-confirmed"]), t && (t.innerHTML = Z["merchant-back"]), e && e.addEventListener("click", () => {
|
|
37192
37199
|
var a;
|
|
37193
37200
|
_.track("redirect_to_merchant", {
|
|
37194
37201
|
payment_method: this.paymentMethod,
|
|
@@ -37223,16 +37230,16 @@ class Su {
|
|
|
37223
37230
|
onSuccess: c,
|
|
37224
37231
|
url: p,
|
|
37225
37232
|
customer: m,
|
|
37226
|
-
amount:
|
|
37233
|
+
amount: g,
|
|
37227
37234
|
totalAmount: b,
|
|
37228
|
-
token:
|
|
37235
|
+
token: y,
|
|
37229
37236
|
currency: S,
|
|
37230
37237
|
disablePaymentMethods: f,
|
|
37231
37238
|
hidePaymentMethods: w,
|
|
37232
37239
|
showPaymentMethods: A,
|
|
37233
37240
|
onClose: M,
|
|
37234
37241
|
restartTransactionProcess: x,
|
|
37235
|
-
retryingPayment:
|
|
37242
|
+
retryingPayment: E,
|
|
37236
37243
|
countryCode: D
|
|
37237
37244
|
}) {
|
|
37238
37245
|
d(this, "contents");
|
|
@@ -37274,9 +37281,9 @@ class Su {
|
|
|
37274
37281
|
d(this, "countryCode");
|
|
37275
37282
|
d(this, "errorText");
|
|
37276
37283
|
d(this, "otpMessage");
|
|
37277
|
-
this.container = e, this.onSuccess = c || (() => null), this.token =
|
|
37284
|
+
this.container = e, this.onSuccess = c || (() => null), this.token = y, this.currency = S, this.amount = g, this.totalAmount = b, this.contents = this.container.querySelector(
|
|
37278
37285
|
"#payment-content-view"
|
|
37279
|
-
), this._currentStep = 1, this.activeRef = "", this.token = t, this.customer = m, this.metadata = s, this.localCurrency = i, this.callBackUrl = a, this.localCurrency = i, this.rdtCode = o, this.url = p, this.reference = l, this.merchantDetails = {}, this.disablePaymentMethods = f, this.hidePaymentMethods = w, this.showPaymentMethods = A, this.onClose = M, this.paymentResponse = {}, this.paymentResponseHeaders = {}, this.restartTransactionProcess = x, this.retryingPayment =
|
|
37286
|
+
), this._currentStep = 1, this.activeRef = "", this.token = t, this.customer = m, this.metadata = s, this.localCurrency = i, this.callBackUrl = a, this.localCurrency = i, this.rdtCode = o, this.url = p, this.reference = l, this.merchantDetails = {}, this.disablePaymentMethods = f, this.hidePaymentMethods = w, this.showPaymentMethods = A, this.onClose = M, this.paymentResponse = {}, this.paymentResponseHeaders = {}, this.restartTransactionProcess = x, this.retryingPayment = E, this.isMaxRetriesReached = !1, this.countryCode = D, this.errorText = "", this.otpMessage = "", _.track("mobile_money_opens", {
|
|
37280
37287
|
payment_method: "Mobile Money"
|
|
37281
37288
|
}), this.isMobile = window.matchMedia("(max-width: 767px)").matches;
|
|
37282
37289
|
}
|
|
@@ -37355,16 +37362,24 @@ class Su {
|
|
|
37355
37362
|
})().then(async ({ data: l, headers: c }) => {
|
|
37356
37363
|
var p, m;
|
|
37357
37364
|
if (this.paymentResponse = l, this.paymentResponseHeaders = c, l.providerMessage) {
|
|
37358
|
-
const
|
|
37365
|
+
const g = await W(
|
|
37359
37366
|
l.providerMessage,
|
|
37360
37367
|
R()
|
|
37361
37368
|
);
|
|
37362
|
-
this.errorText =
|
|
37369
|
+
this.errorText = g;
|
|
37363
37370
|
}
|
|
37364
37371
|
if (l.status === "failed") {
|
|
37365
|
-
|
|
37366
|
-
|
|
37367
|
-
|
|
37372
|
+
if (l.providerMessage) {
|
|
37373
|
+
const g = await W(
|
|
37374
|
+
l.providerMessage,
|
|
37375
|
+
R()
|
|
37376
|
+
);
|
|
37377
|
+
this.currentStep = 5, this.warningScreen.setPaymentError(g), this.warningScreen.hideReportIssue();
|
|
37378
|
+
} else
|
|
37379
|
+
this.currentStep = 5, this.warningScreen.setPaymentError(
|
|
37380
|
+
P["payment-failed"]
|
|
37381
|
+
), this.warningScreen.hideReportIssue();
|
|
37382
|
+
_.track("start_payment_failed", {
|
|
37368
37383
|
payment_method: "Mobile Money",
|
|
37369
37384
|
verification_status: "Failed",
|
|
37370
37385
|
payment_error: l.providerMessage || "Payment failed"
|
|
@@ -37378,11 +37393,11 @@ class Su {
|
|
|
37378
37393
|
return;
|
|
37379
37394
|
} else if (((p = l == null ? void 0 : l.authorization) == null ? void 0 : p.mode) === "otp") {
|
|
37380
37395
|
this.activeRef = l.reference;
|
|
37381
|
-
const
|
|
37396
|
+
const g = await W(
|
|
37382
37397
|
(m = this.paymentResponse) == null ? void 0 : m.providerMessage,
|
|
37383
37398
|
R()
|
|
37384
37399
|
);
|
|
37385
|
-
this.otpMessage =
|
|
37400
|
+
this.otpMessage = g, this.currentStep = 6;
|
|
37386
37401
|
return;
|
|
37387
37402
|
} else
|
|
37388
37403
|
this.currentStep = 3;
|
|
@@ -37392,17 +37407,17 @@ class Su {
|
|
|
37392
37407
|
verification_status: "Null"
|
|
37393
37408
|
}), l.code === "payment_max_retry_attempts")
|
|
37394
37409
|
this.isMaxRetriesReached = !0, this.verifyPaymentProcess(), this.currentStep = 5, this.warningScreen.setPaymentError(
|
|
37395
|
-
|
|
37396
|
-
|
|
37397
|
-
|
|
37410
|
+
P["maximum-retries"],
|
|
37411
|
+
P["maximum-retries-desc"],
|
|
37412
|
+
Z["merchant-back"]
|
|
37398
37413
|
);
|
|
37399
37414
|
else {
|
|
37400
|
-
const c = await
|
|
37415
|
+
const c = await W(
|
|
37401
37416
|
l.message,
|
|
37402
37417
|
R()
|
|
37403
37418
|
);
|
|
37404
37419
|
this.errorText = c, l.message ? (this.currentStep = 5, this.warningScreen.setPaymentError(this.errorText)) : (this.currentStep = 5, this.warningScreen.setPaymentError(
|
|
37405
|
-
|
|
37420
|
+
P["payment-failed"]
|
|
37406
37421
|
));
|
|
37407
37422
|
}
|
|
37408
37423
|
this.warningScreen.hideReportIssue();
|
|
@@ -37442,7 +37457,7 @@ class Su {
|
|
|
37442
37457
|
const c = this.container.querySelector("#otp-error");
|
|
37443
37458
|
if (l.code === "invalid_otp") {
|
|
37444
37459
|
if (c) {
|
|
37445
|
-
const p = await
|
|
37460
|
+
const p = await W(
|
|
37446
37461
|
l.message,
|
|
37447
37462
|
R()
|
|
37448
37463
|
);
|
|
@@ -37670,9 +37685,9 @@ class ku {
|
|
|
37670
37685
|
url: c,
|
|
37671
37686
|
reference: p,
|
|
37672
37687
|
callBackUrl: m,
|
|
37673
|
-
metadata:
|
|
37688
|
+
metadata: g,
|
|
37674
37689
|
localCurrency: b,
|
|
37675
|
-
hidePaymentMethods:
|
|
37690
|
+
hidePaymentMethods: y,
|
|
37676
37691
|
showPaymentMethods: S,
|
|
37677
37692
|
restartTransactionProcess: f,
|
|
37678
37693
|
retryingPayment: w
|
|
@@ -37708,9 +37723,9 @@ class ku {
|
|
|
37708
37723
|
d(this, "paymentResponse");
|
|
37709
37724
|
d(this, "paymentResponseHeaders");
|
|
37710
37725
|
d(this, "errorText");
|
|
37711
|
-
this.currency = o, this.container = i, this.token = a, this.customer = s, this.amount = e, this.totalAmount = t, this.rdtCode = l, this.url = c, this.reference = p, this.callBackUrl = m, this.metadata =
|
|
37726
|
+
this.currency = o, this.container = i, this.token = a, this.customer = s, this.amount = e, this.totalAmount = t, this.rdtCode = l, this.url = c, this.reference = p, this.callBackUrl = m, this.metadata = g, this.localCurrency = b, this._currentStep = 1, this.contents = this.container.querySelector(
|
|
37712
37727
|
"#payment-content-view"
|
|
37713
|
-
), this.hidePaymentMethods =
|
|
37728
|
+
), this.hidePaymentMethods = y, this.showPaymentMethods = S, this.restartTransactionProcess = f, this.retryingPayment = w, this.isMaxRetriesReached = !1, this.paymentResponse = {}, this.paymentResponseHeaders = {}, this.errorText = "", this.renderEftContent(), _.track("eft_opens", {
|
|
37714
37729
|
payment_method: "EFT"
|
|
37715
37730
|
}), this.isMobile = window.matchMedia("(max-width: 767px)").matches;
|
|
37716
37731
|
}
|
|
@@ -37721,7 +37736,7 @@ class ku {
|
|
|
37721
37736
|
this._currentStep = e, this.renderEftContent();
|
|
37722
37737
|
}
|
|
37723
37738
|
showLoader() {
|
|
37724
|
-
this.pageLoader = new Ae(this.contents), this.pageLoader.mountLoader(), this.pageLoader.updateMessage(
|
|
37739
|
+
this.pageLoader = new Ae(this.contents), this.pageLoader.mountLoader(), this.pageLoader.updateMessage(P["verify-payment"]);
|
|
37725
37740
|
}
|
|
37726
37741
|
goBackToMerchant() {
|
|
37727
37742
|
De(
|
|
@@ -37775,7 +37790,7 @@ class ku {
|
|
|
37775
37790
|
})().then(async ({ data: a, headers: o }) => {
|
|
37776
37791
|
var l, c, p;
|
|
37777
37792
|
if (this.paymentResponse = a, this.paymentResponseHeaders = o, a.providerMessage) {
|
|
37778
|
-
const m = await
|
|
37793
|
+
const m = await W(
|
|
37779
37794
|
a.providerMessage,
|
|
37780
37795
|
R()
|
|
37781
37796
|
);
|
|
@@ -37783,7 +37798,7 @@ class ku {
|
|
|
37783
37798
|
}
|
|
37784
37799
|
if (a.status === "failed") {
|
|
37785
37800
|
this.currentStep = 4, a.providerMessage ? this.warningScreen.setPaymentError(this.errorText) : this.warningScreen.setPaymentError(
|
|
37786
|
-
|
|
37801
|
+
P["payment-failed"]
|
|
37787
37802
|
), _.track("start_payment", {
|
|
37788
37803
|
payment_method: "EFT",
|
|
37789
37804
|
verification_status: "Failed"
|
|
@@ -37799,19 +37814,19 @@ class ku {
|
|
|
37799
37814
|
}).catch(async (a) => {
|
|
37800
37815
|
if (a.code === "payment_max_retry_attempts")
|
|
37801
37816
|
this.isMaxRetriesReached = !0, this.verifyPaymentProcess(), this.currentStep = 4, this.warningScreen.setPaymentError(
|
|
37802
|
-
|
|
37803
|
-
|
|
37804
|
-
|
|
37817
|
+
P["maximum-retries"],
|
|
37818
|
+
P["maximum-retries-desc"],
|
|
37819
|
+
Z["merchant-back"]
|
|
37805
37820
|
);
|
|
37806
37821
|
else if (a.message) {
|
|
37807
|
-
const o = await
|
|
37822
|
+
const o = await W(
|
|
37808
37823
|
a.message,
|
|
37809
37824
|
R()
|
|
37810
37825
|
);
|
|
37811
37826
|
this.errorText = o, this.currentStep = 4, this.warningScreen.setPaymentError(this.errorText);
|
|
37812
37827
|
} else
|
|
37813
37828
|
this.currentStep = 4, this.warningScreen.setPaymentError(
|
|
37814
|
-
|
|
37829
|
+
Z["payment-failed"]
|
|
37815
37830
|
);
|
|
37816
37831
|
}).finally(() => {
|
|
37817
37832
|
e && t && (e.classList.add("hidden"), t.classList.remove("hidden"));
|
|
@@ -37852,7 +37867,7 @@ class ku {
|
|
|
37852
37867
|
);
|
|
37853
37868
|
else if (t === "failed") {
|
|
37854
37869
|
if (this.paymentResponse.providerMessage) {
|
|
37855
|
-
const i = await
|
|
37870
|
+
const i = await W(
|
|
37856
37871
|
this.paymentResponse.providerMessage,
|
|
37857
37872
|
R()
|
|
37858
37873
|
);
|
|
@@ -37862,16 +37877,16 @@ class ku {
|
|
|
37862
37877
|
payment_method: "EFT",
|
|
37863
37878
|
verification_status: "Failed"
|
|
37864
37879
|
}), this.paymentResponse.providerMessage ? this.warningScreen.setPaymentError(this.errorText) : this.warningScreen.setPaymentError(
|
|
37865
|
-
|
|
37880
|
+
Z["payment-failed"]
|
|
37866
37881
|
);
|
|
37867
37882
|
} else t === "cancelled" && (this.isMaxRetriesReached = !0, this.currentStep = 4, this.warningScreen.setPaymentError(
|
|
37868
37883
|
Dn["payment-cancelled"],
|
|
37869
37884
|
Dn["cancel-payment-desc"],
|
|
37870
|
-
|
|
37885
|
+
Z["merchant-back"]
|
|
37871
37886
|
));
|
|
37872
37887
|
} catch {
|
|
37873
37888
|
this.currentStep = 4, this.warningScreen.setPaymentError(
|
|
37874
|
-
|
|
37889
|
+
Z["payment-failed"]
|
|
37875
37890
|
);
|
|
37876
37891
|
}
|
|
37877
37892
|
}
|
|
@@ -37899,7 +37914,7 @@ class ku {
|
|
|
37899
37914
|
break;
|
|
37900
37915
|
case 3:
|
|
37901
37916
|
this.pageLoader = new Ae(this.contents), this.pageLoader.mountLoader(), this.pageLoader.updateMessage(
|
|
37902
|
-
|
|
37917
|
+
P["verify-payment"]
|
|
37903
37918
|
);
|
|
37904
37919
|
break;
|
|
37905
37920
|
case 4:
|
|
@@ -37915,14 +37930,14 @@ class ku {
|
|
|
37915
37930
|
onAction: async () => {
|
|
37916
37931
|
var s, a;
|
|
37917
37932
|
if ((s = this.paymentResponse) != null && s.providerMessage) {
|
|
37918
|
-
const o = await
|
|
37933
|
+
const o = await W(
|
|
37919
37934
|
(a = this.paymentResponse) == null ? void 0 : a.providerMessage,
|
|
37920
37935
|
R()
|
|
37921
37936
|
);
|
|
37922
37937
|
this.errorText = o;
|
|
37923
37938
|
}
|
|
37924
37939
|
this.currentStep = 4, this.warningScreen.setPaymentError(
|
|
37925
|
-
this.errorText ||
|
|
37940
|
+
this.errorText || P["payment-failed"]
|
|
37926
37941
|
);
|
|
37927
37942
|
},
|
|
37928
37943
|
url: this.url,
|
|
@@ -38060,7 +38075,7 @@ class ga {
|
|
|
38060
38075
|
});
|
|
38061
38076
|
}
|
|
38062
38077
|
attachListener() {
|
|
38063
|
-
var
|
|
38078
|
+
var g;
|
|
38064
38079
|
const e = document.querySelector(
|
|
38065
38080
|
'span[name="select-asset-text"]'
|
|
38066
38081
|
), t = document.querySelector(
|
|
@@ -38085,9 +38100,9 @@ class ga {
|
|
|
38085
38100
|
this.rdtCode,
|
|
38086
38101
|
this.url
|
|
38087
38102
|
);
|
|
38088
|
-
this.chainsList = b.map((
|
|
38089
|
-
label:
|
|
38090
|
-
value:
|
|
38103
|
+
this.chainsList = b.map((y) => ({
|
|
38104
|
+
label: y,
|
|
38105
|
+
value: y
|
|
38091
38106
|
}));
|
|
38092
38107
|
} catch (b) {
|
|
38093
38108
|
console.error("Error fetching chains:", b), this.chainsList = [];
|
|
@@ -38105,9 +38120,9 @@ class ga {
|
|
|
38105
38120
|
this.rdtCode,
|
|
38106
38121
|
this.url
|
|
38107
38122
|
);
|
|
38108
|
-
this.assetList = b.map((
|
|
38109
|
-
label:
|
|
38110
|
-
value:
|
|
38123
|
+
this.assetList = b.map((y) => ({
|
|
38124
|
+
label: y,
|
|
38125
|
+
value: y
|
|
38111
38126
|
}));
|
|
38112
38127
|
} catch (b) {
|
|
38113
38128
|
console.error("Error fetching assets:", b), this.assetList = [];
|
|
@@ -38122,11 +38137,11 @@ class ga {
|
|
|
38122
38137
|
o(), l();
|
|
38123
38138
|
const c = this.container.querySelector(
|
|
38124
38139
|
"#qr-code"
|
|
38125
|
-
), p = (
|
|
38140
|
+
), p = (g = Ve["payment-text"]) == null ? void 0 : g.replace("{amount}", `${this.amount.toString()} ${this.currency}`), m = async () => {
|
|
38126
38141
|
var S, f;
|
|
38127
|
-
const b = i.value,
|
|
38128
|
-
if (b &&
|
|
38129
|
-
i.disabled = !0, s.disabled = !0, await this.createStablecoinPayment({ chain: b, asset:
|
|
38142
|
+
const b = i.value, y = s.value;
|
|
38143
|
+
if (b && y) {
|
|
38144
|
+
i.disabled = !0, s.disabled = !0, await this.createStablecoinPayment({ chain: b, asset: y });
|
|
38130
38145
|
const w = (f = (S = this.paymentResponse) == null ? void 0 : S.stablecoin) == null ? void 0 : f.depositAddress, A = Mu(w);
|
|
38131
38146
|
c.innerHTML = `
|
|
38132
38147
|
<div>
|
|
@@ -38227,14 +38242,14 @@ class ga {
|
|
|
38227
38242
|
var p;
|
|
38228
38243
|
if (this.paymentResponse = l, l.status === "failed") {
|
|
38229
38244
|
if ((p = this.onStepChange) == null || p.call(this, 4), l.providerMessage) {
|
|
38230
|
-
const m = await
|
|
38245
|
+
const m = await W(
|
|
38231
38246
|
l.providerMessage,
|
|
38232
38247
|
wt.language
|
|
38233
38248
|
);
|
|
38234
38249
|
this.errorText = m, this.warningScreen.setPaymentError(this.errorText);
|
|
38235
38250
|
} else
|
|
38236
38251
|
this.warningScreen.setPaymentError(
|
|
38237
|
-
|
|
38252
|
+
P["payment-failed"]
|
|
38238
38253
|
);
|
|
38239
38254
|
_.track("start_payment", {
|
|
38240
38255
|
payment_method: "Stablecoins",
|
|
@@ -38255,19 +38270,19 @@ class ga {
|
|
|
38255
38270
|
verification_status: "Null"
|
|
38256
38271
|
}), l.code === "payment_max_retry_attempts")
|
|
38257
38272
|
this.isMaxRetriesReached = !0, (c = this.onStepChange) == null || c.call(this, 4), this.warningScreen.setPaymentError(
|
|
38258
|
-
|
|
38259
|
-
|
|
38260
|
-
|
|
38273
|
+
P["maximum-retries"],
|
|
38274
|
+
P["maximum-retries-desc"],
|
|
38275
|
+
Z["merchant-back"]
|
|
38261
38276
|
);
|
|
38262
38277
|
else if ((p = this.onStepChange) == null || p.call(this, 4), l.message) {
|
|
38263
|
-
const m = await
|
|
38278
|
+
const m = await W(
|
|
38264
38279
|
l.message,
|
|
38265
38280
|
wt == null ? void 0 : wt.language
|
|
38266
38281
|
);
|
|
38267
38282
|
this.errorText = m, this.warningScreen.setPaymentError(this.errorText);
|
|
38268
38283
|
} else
|
|
38269
38284
|
this.warningScreen.setPaymentError(
|
|
38270
|
-
|
|
38285
|
+
P["payment-failed"]
|
|
38271
38286
|
);
|
|
38272
38287
|
this.warningScreen.hideReportIssue();
|
|
38273
38288
|
}).finally(() => {
|
|
@@ -38345,7 +38360,7 @@ class Lu {
|
|
|
38345
38360
|
), t = this.container.querySelector(
|
|
38346
38361
|
"#confirming-txn-status-end-text"
|
|
38347
38362
|
), i = this.container.querySelector("#please-wait-text"), s = this.container.querySelector("#minutes-text");
|
|
38348
|
-
e && (e.innerHTML =
|
|
38363
|
+
e && (e.innerHTML = P["confirming-txn-status"]), t && (t.innerHTML = P["few-minutes"]), i && (i.innerHTML = P["please-wait-for"]), s && (s.innerHTML = P.minutes), this.initialTime = 300, this.timeLeft = this.initialTime;
|
|
38349
38364
|
const a = 3e4;
|
|
38350
38365
|
this.abortController = new AbortController(), setTimeout(() => {
|
|
38351
38366
|
this.verifyStablecoins(
|
|
@@ -38488,9 +38503,9 @@ class Eu {
|
|
|
38488
38503
|
reference: c,
|
|
38489
38504
|
rdtCode: p,
|
|
38490
38505
|
url: m,
|
|
38491
|
-
token:
|
|
38506
|
+
token: g,
|
|
38492
38507
|
retryingPayment: b,
|
|
38493
|
-
totalAmount:
|
|
38508
|
+
totalAmount: y,
|
|
38494
38509
|
localCurrency: S,
|
|
38495
38510
|
onSuccess: f
|
|
38496
38511
|
}) {
|
|
@@ -38522,7 +38537,7 @@ class Eu {
|
|
|
38522
38537
|
d(this, "token");
|
|
38523
38538
|
d(this, "localCurrency");
|
|
38524
38539
|
d(this, "errorText");
|
|
38525
|
-
this.token =
|
|
38540
|
+
this.token = g, this.amount = i, this.totalAmount = y, this.currency = s, this.customer = a, this.rdtCode = p, this.url = m, this.reference = c, this.callBackUrl = o, this.metadata = l, this.retryingPayment = b, this.container = e, this.restartTransactionProcess = t, this.isMaxRetriesReached = !1, this.localCurrency = S, this.paymentResponseHeaders = {}, this.paymentResponse = {}, this.contents = this.container.querySelector(
|
|
38526
38541
|
"#payment-content-view"
|
|
38527
38542
|
), this._currentStep = 1, this.onSuccess = f || (() => null), this.errorText = "";
|
|
38528
38543
|
}
|
|
@@ -38533,7 +38548,7 @@ class Eu {
|
|
|
38533
38548
|
this._currentStep = e, this.renderStablecoinsContent();
|
|
38534
38549
|
}
|
|
38535
38550
|
showLoader() {
|
|
38536
|
-
this.pageLoader = new Ae(this.contents), this.pageLoader.mountLoader(), this.pageLoader.updateMessage(
|
|
38551
|
+
this.pageLoader = new Ae(this.contents), this.pageLoader.mountLoader(), this.pageLoader.updateMessage(P["verify-payment"]);
|
|
38537
38552
|
}
|
|
38538
38553
|
setPaymentError(e) {
|
|
38539
38554
|
const t = this.container.querySelector("#payment-warning-text");
|
|
@@ -38620,7 +38635,7 @@ class Eu {
|
|
|
38620
38635
|
break;
|
|
38621
38636
|
case 3:
|
|
38622
38637
|
this.pageLoader = new Ae(this.contents), this.pageLoader.mountLoader(), this.pageLoader.updateMessage(
|
|
38623
|
-
|
|
38638
|
+
P["verify-payment"]
|
|
38624
38639
|
);
|
|
38625
38640
|
break;
|
|
38626
38641
|
case 4:
|
|
@@ -38629,9 +38644,9 @@ class Eu {
|
|
|
38629
38644
|
onAction: this.isMaxRetriesReached ? this.goBackToMerchant.bind(this) : this.restartTransactionProcess.bind(this),
|
|
38630
38645
|
onReportIssue: () => this._currentStep = 7
|
|
38631
38646
|
}), this.contents.innerHTML = this.warningScreen.render(), this.warningScreen.setPaymentError(
|
|
38632
|
-
((t = this.paymentResponse) == null ? void 0 : t.providerMessage) ||
|
|
38647
|
+
((t = this.paymentResponse) == null ? void 0 : t.providerMessage) || P["payment-failed"],
|
|
38633
38648
|
this.errorText,
|
|
38634
|
-
this.isMaxRetriesReached ?
|
|
38649
|
+
this.isMaxRetriesReached ? P["merchant-back"] : P["try-again"]
|
|
38635
38650
|
), this.warningScreen.attachListener();
|
|
38636
38651
|
break;
|
|
38637
38652
|
case 5:
|
|
@@ -38640,7 +38655,7 @@ class Eu {
|
|
|
38640
38655
|
onAction: () => {
|
|
38641
38656
|
var i;
|
|
38642
38657
|
this.currentStep = 4, this.warningScreen.setPaymentError(
|
|
38643
|
-
((i = this.paymentResponse) == null ? void 0 : i.providerMessage) ||
|
|
38658
|
+
((i = this.paymentResponse) == null ? void 0 : i.providerMessage) || P["payment-failed"]
|
|
38644
38659
|
);
|
|
38645
38660
|
},
|
|
38646
38661
|
url: this.url,
|
|
@@ -38782,9 +38797,9 @@ class Iu {
|
|
|
38782
38797
|
url: c,
|
|
38783
38798
|
reference: p,
|
|
38784
38799
|
callBackUrl: m,
|
|
38785
|
-
metadata:
|
|
38800
|
+
metadata: g,
|
|
38786
38801
|
localCurrency: b,
|
|
38787
|
-
hidePaymentMethods:
|
|
38802
|
+
hidePaymentMethods: y,
|
|
38788
38803
|
showPaymentMethods: S,
|
|
38789
38804
|
restartTransactionProcess: f,
|
|
38790
38805
|
retryingPayment: w
|
|
@@ -38822,9 +38837,9 @@ class Iu {
|
|
|
38822
38837
|
d(this, "countdownInterval");
|
|
38823
38838
|
d(this, "popupInterval");
|
|
38824
38839
|
d(this, "errorText");
|
|
38825
|
-
this.currency = o, this.container = i, this.token = a, this.customer = s, this.amount = e, this.totalAmount = t, this.rdtCode = l, this.url = c, this.reference = p, this.callBackUrl = m, this.metadata =
|
|
38840
|
+
this.currency = o, this.container = i, this.token = a, this.customer = s, this.amount = e, this.totalAmount = t, this.rdtCode = l, this.url = c, this.reference = p, this.callBackUrl = m, this.metadata = g, this.localCurrency = b, this._currentStep = 1, this.countdownInterval, this.contents = this.container.querySelector(
|
|
38826
38841
|
"#payment-content-view"
|
|
38827
|
-
), this.hidePaymentMethods =
|
|
38842
|
+
), this.hidePaymentMethods = y, this.showPaymentMethods = S, this.restartTransactionProcess = f, this.retryingPayment = w, this.isMaxRetriesReached = !1, this.paymentResponse = {}, this.paymentResponseHeaders = {}, this.errorText = "", this.renderOpayContent(), _.track("pay_with_opay_opens", {
|
|
38828
38843
|
payment_method: "OPAY"
|
|
38829
38844
|
}), this.isMobile = window.matchMedia("(max-width: 767px)").matches;
|
|
38830
38845
|
}
|
|
@@ -38835,7 +38850,7 @@ class Iu {
|
|
|
38835
38850
|
this._currentStep = e, this.renderOpayContent();
|
|
38836
38851
|
}
|
|
38837
38852
|
showLoader() {
|
|
38838
|
-
this.pageLoader = new Ae(this.contents), this.pageLoader.mountLoader(), this.pageLoader.updateMessage(
|
|
38853
|
+
this.pageLoader = new Ae(this.contents), this.pageLoader.mountLoader(), this.pageLoader.updateMessage(P["verify-payment"]);
|
|
38839
38854
|
}
|
|
38840
38855
|
goBackToMerchant() {
|
|
38841
38856
|
De(
|
|
@@ -38889,7 +38904,7 @@ class Iu {
|
|
|
38889
38904
|
})().then(async ({ data: a, headers: o }) => {
|
|
38890
38905
|
var l, c, p;
|
|
38891
38906
|
if (this.paymentResponse = a, this.paymentResponseHeaders = o, a.providerMessage) {
|
|
38892
|
-
const m = await
|
|
38907
|
+
const m = await W(
|
|
38893
38908
|
a.providerMessage,
|
|
38894
38909
|
R()
|
|
38895
38910
|
);
|
|
@@ -38897,7 +38912,7 @@ class Iu {
|
|
|
38897
38912
|
}
|
|
38898
38913
|
if (a.status === "failed") {
|
|
38899
38914
|
this.currentStep = 4, a.providerMessage ? this.warningScreen.setPaymentError(this.errorText) : this.warningScreen.setPaymentError(
|
|
38900
|
-
|
|
38915
|
+
P["payment-failed"]
|
|
38901
38916
|
), _.track("start_payment", {
|
|
38902
38917
|
payment_method: "OPAY",
|
|
38903
38918
|
verification_status: "Failed"
|
|
@@ -38913,19 +38928,19 @@ class Iu {
|
|
|
38913
38928
|
}).catch(async (a) => {
|
|
38914
38929
|
if (a.code === "payment_max_retry_attempts")
|
|
38915
38930
|
this.isMaxRetriesReached = !0, this.verifyPaymentProcess(), this.currentStep = 4, this.warningScreen.setPaymentError(
|
|
38916
|
-
|
|
38917
|
-
|
|
38918
|
-
|
|
38931
|
+
P["maximum-retries"],
|
|
38932
|
+
P["maximum-retries-desc"],
|
|
38933
|
+
Z["merchant-back"]
|
|
38919
38934
|
);
|
|
38920
38935
|
else if (a.message) {
|
|
38921
|
-
const o = await
|
|
38936
|
+
const o = await W(
|
|
38922
38937
|
a.message,
|
|
38923
38938
|
R()
|
|
38924
38939
|
);
|
|
38925
38940
|
this.errorText = o, this.currentStep = 4, this.warningScreen.setPaymentError(this.errorText);
|
|
38926
38941
|
} else
|
|
38927
38942
|
this.currentStep = 4, this.warningScreen.setPaymentError(
|
|
38928
|
-
|
|
38943
|
+
Z["payment-failed"]
|
|
38929
38944
|
);
|
|
38930
38945
|
}).finally(() => {
|
|
38931
38946
|
e && t && (e.classList.add("hidden"), t.classList.remove("hidden"));
|
|
@@ -38976,7 +38991,7 @@ class Iu {
|
|
|
38976
38991
|
);
|
|
38977
38992
|
else if (t === "failed") {
|
|
38978
38993
|
if (this.paymentResponse.providerMessage) {
|
|
38979
|
-
const i = await
|
|
38994
|
+
const i = await W(
|
|
38980
38995
|
this.paymentResponse.providerMessage,
|
|
38981
38996
|
R()
|
|
38982
38997
|
);
|
|
@@ -38986,16 +39001,16 @@ class Iu {
|
|
|
38986
39001
|
payment_method: "OPAY",
|
|
38987
39002
|
verification_status: "Failed"
|
|
38988
39003
|
}), this.paymentResponse.providerMessage ? this.warningScreen.setPaymentError(this.errorText) : this.warningScreen.setPaymentError(
|
|
38989
|
-
|
|
39004
|
+
Z["payment-failed"]
|
|
38990
39005
|
);
|
|
38991
39006
|
} else t === "cancelled" && (this.isMaxRetriesReached = !0, this.currentStep = 4, this.warningScreen.setPaymentError(
|
|
38992
39007
|
Bn["payment-cancelled"],
|
|
38993
39008
|
Bn["cancel-payment-desc"],
|
|
38994
|
-
|
|
39009
|
+
Z["merchant-back"]
|
|
38995
39010
|
));
|
|
38996
39011
|
} catch {
|
|
38997
39012
|
this.currentStep = 4, this.warningScreen.setPaymentError(
|
|
38998
|
-
|
|
39013
|
+
Z["payment-failed"]
|
|
38999
39014
|
);
|
|
39000
39015
|
}
|
|
39001
39016
|
}
|
|
@@ -39023,7 +39038,7 @@ class Iu {
|
|
|
39023
39038
|
break;
|
|
39024
39039
|
case 3:
|
|
39025
39040
|
this.pageLoader = new Ae(this.contents), this.pageLoader.mountLoader(), this.pageLoader.updateMessage(
|
|
39026
|
-
|
|
39041
|
+
P["verify-payment"]
|
|
39027
39042
|
);
|
|
39028
39043
|
break;
|
|
39029
39044
|
case 4:
|
|
@@ -39039,14 +39054,14 @@ class Iu {
|
|
|
39039
39054
|
onAction: async () => {
|
|
39040
39055
|
var s, a;
|
|
39041
39056
|
if ((s = this.paymentResponse) != null && s.providerMessage) {
|
|
39042
|
-
const o = await
|
|
39057
|
+
const o = await W(
|
|
39043
39058
|
(a = this.paymentResponse) == null ? void 0 : a.providerMessage,
|
|
39044
39059
|
R()
|
|
39045
39060
|
);
|
|
39046
39061
|
this.errorText = o;
|
|
39047
39062
|
}
|
|
39048
39063
|
this.currentStep = 4, this.warningScreen.setPaymentError(
|
|
39049
|
-
this.errorText ||
|
|
39064
|
+
this.errorText || P["payment-failed"]
|
|
39050
39065
|
);
|
|
39051
39066
|
},
|
|
39052
39067
|
url: this.url,
|
|
@@ -39080,9 +39095,9 @@ class Du {
|
|
|
39080
39095
|
rdtCode: c,
|
|
39081
39096
|
url: p,
|
|
39082
39097
|
reference: m,
|
|
39083
|
-
callBackUrl:
|
|
39098
|
+
callBackUrl: g,
|
|
39084
39099
|
metadata: b,
|
|
39085
|
-
localCurrency:
|
|
39100
|
+
localCurrency: y,
|
|
39086
39101
|
closePayment: S,
|
|
39087
39102
|
countryCode: f,
|
|
39088
39103
|
mode: w
|
|
@@ -39125,7 +39140,7 @@ class Du {
|
|
|
39125
39140
|
d(this, "mainLoader");
|
|
39126
39141
|
d(this, "mode");
|
|
39127
39142
|
d(this, "selectedMethods");
|
|
39128
|
-
this.validChannels = [], this.disabledChannels = [], this.selectedChannel = "", this.modalContainer = a, this.encryption = i, this.planId = l || "", this.merchantKey = s, this.amount = o || 0, this.rdtCode = c || "", this.url = p || "", this.reference = m, this.mainLayout = e, this.callBackUrl =
|
|
39143
|
+
this.validChannels = [], this.disabledChannels = [], this.selectedChannel = "", this.modalContainer = a, this.encryption = i, this.planId = l || "", this.merchantKey = s, this.amount = o || 0, this.rdtCode = c || "", this.url = p || "", this.reference = m, this.mainLayout = e, this.callBackUrl = g, this.metadata = b || {}, this.localCurrency = y || "", this.isMobile = window.matchMedia("(max-width: 767px)").matches, this.currentPaymentMethod = "", this.currency = "", this.closePayment = S, this.retryingPayment = !1, this.totalAmount = 0, this.countryCode = f || "", this.customerDetails = t, this.mode = w, this.selectedMethods = [];
|
|
39129
39144
|
}
|
|
39130
39145
|
mountScreen(e, t, i, s) {
|
|
39131
39146
|
var c, p;
|
|
@@ -39168,12 +39183,12 @@ class Du {
|
|
|
39168
39183
|
}), document.addEventListener("DOMContentLoaded", () => {
|
|
39169
39184
|
const m = document.getElementById(
|
|
39170
39185
|
"main-footer"
|
|
39171
|
-
),
|
|
39186
|
+
), g = document.getElementById(
|
|
39172
39187
|
"test-container"
|
|
39173
39188
|
);
|
|
39174
39189
|
new ma({
|
|
39175
39190
|
container: m,
|
|
39176
|
-
testCardContainer:
|
|
39191
|
+
testCardContainer: g,
|
|
39177
39192
|
keyEnvironment: l || (this.mode ? this.mode : null),
|
|
39178
39193
|
isVisible: o
|
|
39179
39194
|
}).renderComponent();
|
|
@@ -39560,14 +39575,14 @@ class Qi {
|
|
|
39560
39575
|
|
|
39561
39576
|
<div class="container-center h-[40vh] hidden mx-auto" id="shared-error-container">
|
|
39562
39577
|
<img src="" alt="error gif" class=" h-[50px] w-16 mb-5" />
|
|
39563
|
-
<h5 id="error-message-div" class="text-tone-100 font-semibold text-2xl text-center mb-1" data-translate="something-wrong">${
|
|
39578
|
+
<h5 id="error-message-div" class="text-tone-100 font-semibold text-2xl text-center mb-1" data-translate="something-wrong">${Z["something-wrong"]}</h5>
|
|
39564
39579
|
<div class="w-4/5 mx-auto">
|
|
39565
39580
|
<p class="text-tone-100 text-sm text-center mb-5" id="error-desc" data-translate="error-description">
|
|
39566
|
-
${
|
|
39581
|
+
${Z["error-description"]}
|
|
39567
39582
|
</p>
|
|
39568
39583
|
</div>
|
|
39569
39584
|
<div class="container-center hidden" id="error-action-container">
|
|
39570
|
-
<button class="button-fill w-60 text-sm" id="go-back" data-translate="merchant-back">${
|
|
39585
|
+
<button class="button-fill w-60 text-sm" id="go-back" data-translate="merchant-back">${Z["merchant-back"]}</button>
|
|
39571
39586
|
</div>
|
|
39572
39587
|
|
|
39573
39588
|
</div>
|
|
@@ -39689,29 +39704,29 @@ class Fu {
|
|
|
39689
39704
|
reference: c,
|
|
39690
39705
|
currency: p,
|
|
39691
39706
|
url: m,
|
|
39692
|
-
callBackUrl:
|
|
39707
|
+
callBackUrl: g,
|
|
39693
39708
|
metadata: b,
|
|
39694
|
-
localCurrency:
|
|
39709
|
+
localCurrency: y,
|
|
39695
39710
|
countryCode: S,
|
|
39696
39711
|
phoneNumber: f,
|
|
39697
39712
|
name: w,
|
|
39698
39713
|
mode: A
|
|
39699
39714
|
} = e;
|
|
39700
|
-
if (this.merchantKey = s || "", this.email = t || "", this.amount = o || 0, this.encryption = i || "", this.planId = a || "", this.rdtCode = l || "", this.reference = c || kl(), this.url = m || "", this.callBackUrl =
|
|
39715
|
+
if (this.merchantKey = s || "", this.email = t || "", this.amount = o || 0, this.encryption = i || "", this.planId = a || "", this.rdtCode = l || "", this.reference = c || kl(), this.url = m || "", this.callBackUrl = g || "", this.metadata = b || {}, this.countryCode = S || "", this.phoneNumber = f || "", this.name = w || "", this.mode = A, !s || !t)
|
|
39701
39716
|
throw this.mainError = new Qi(this.mainLayout), this.mainError.renderContent(
|
|
39702
|
-
|
|
39717
|
+
Z["merchant-email-required"],
|
|
39703
39718
|
this.callBackUrl
|
|
39704
39719
|
), this.showErrorIcon(), new Error("Merchant key or email is required");
|
|
39705
|
-
if (p === "USD" && !
|
|
39720
|
+
if (p === "USD" && !y)
|
|
39706
39721
|
throw this.mainError = new Qi(this.mainLayout), this.mainError.renderContent(
|
|
39707
|
-
|
|
39722
|
+
Z["no-local-currency"],
|
|
39708
39723
|
""
|
|
39709
39724
|
), this.showErrorIcon(), new Error("Local currency is required for USD transactions");
|
|
39710
39725
|
this.currency = p || "", this.merchantConfigService = new eu({
|
|
39711
39726
|
token: this.merchantKey,
|
|
39712
39727
|
rdtCode: this.rdtCode,
|
|
39713
39728
|
url: this.url
|
|
39714
|
-
}), this.localCurrency =
|
|
39729
|
+
}), this.localCurrency = y || "", this.mainScreen = new Du({
|
|
39715
39730
|
container: this.mainLayout,
|
|
39716
39731
|
modalContainer: this.modalContainer,
|
|
39717
39732
|
merchantKey: s,
|
|
@@ -39771,7 +39786,7 @@ class Fu {
|
|
|
39771
39786
|
await Pa(this.currentLanguage), xe.getTranslationError() && it("en");
|
|
39772
39787
|
const p = t.paymentMethods;
|
|
39773
39788
|
this.updateMethodsOptionsTexts(["stablecoins", ...p]), this.mainLoader.updateMessage(
|
|
39774
|
-
`${
|
|
39789
|
+
`${Z.translating}...`
|
|
39775
39790
|
), await Ia(this.currentLanguage);
|
|
39776
39791
|
}
|
|
39777
39792
|
_.register({
|
|
@@ -39791,19 +39806,19 @@ class Fu {
|
|
|
39791
39806
|
throw (s = this.merchantPlanDetail) != null && s.limits && this.merchantPlanDetail.limits.length > 0 && (p = Math.max(
|
|
39792
39807
|
...this.merchantPlanDetail.limits.map((m) => m.amount)
|
|
39793
39808
|
)), c.setLimitInfo(e, p), this.mainError.renderContent(
|
|
39794
|
-
|
|
39809
|
+
Z["transaction-limit"],
|
|
39795
39810
|
this.callBackUrl
|
|
39796
39811
|
), this.showErrorIcon(), new Error("Transaction limit reached");
|
|
39797
39812
|
}
|
|
39798
39813
|
this.render(a, o);
|
|
39799
39814
|
} else
|
|
39800
39815
|
this.mainError.renderContent(
|
|
39801
|
-
|
|
39816
|
+
Z["rate-not-found"],
|
|
39802
39817
|
this.callBackUrl
|
|
39803
39818
|
), this.showErrorIcon();
|
|
39804
39819
|
}).catch((t) => {
|
|
39805
39820
|
throw this.mainError.renderContent(
|
|
39806
|
-
|
|
39821
|
+
Z["error-occured"],
|
|
39807
39822
|
this.callBackUrl
|
|
39808
39823
|
), this.showErrorIcon(), new Error(t);
|
|
39809
39824
|
});
|