@spot-flow/checkout-inline-js 0.3.3 → 0.3.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/checkout-inline.es.js +139 -137
- package/dist/checkout-inline.js +27 -25
- package/dist/constants.d.ts +3 -1
- package/package.json +1 -1
|
@@ -58,14 +58,14 @@ let N = class extends Error {
|
|
|
58
58
|
super(e), this.name = "AuthorizationError";
|
|
59
59
|
}
|
|
60
60
|
};
|
|
61
|
-
const
|
|
61
|
+
const Oe = (n, e, t) => {
|
|
62
62
|
if (!n)
|
|
63
63
|
throw new Ee("Missing authorization token");
|
|
64
64
|
const i = new Headers();
|
|
65
65
|
return t || i.append("Content-Type", "application/json"), i.append("Authorization", `Bearer ${n}`), i.append("Origin", "https://sdk.spotflow.co"), e && i.append("Spotflow-Payment-Code", e), i;
|
|
66
|
-
},
|
|
66
|
+
}, Ue = "https://api.spotflow.co/api/v1", dl = async (n, e, t, i) => {
|
|
67
67
|
try {
|
|
68
|
-
const s =
|
|
68
|
+
const s = Oe(n, t), a = await fetch(`${ue(Ue, i)}/payments`, {
|
|
69
69
|
method: "POST",
|
|
70
70
|
headers: s,
|
|
71
71
|
body: JSON.stringify(e)
|
|
@@ -83,8 +83,8 @@ const Ne = (n, e, t) => {
|
|
|
83
83
|
}
|
|
84
84
|
}, ci = async (n, e, t, i) => {
|
|
85
85
|
try {
|
|
86
|
-
const s =
|
|
87
|
-
`${ue(
|
|
86
|
+
const s = Oe(n, t), a = await fetch(
|
|
87
|
+
`${ue(Ue, i)}/payments/authorize`,
|
|
88
88
|
{
|
|
89
89
|
method: "POST",
|
|
90
90
|
headers: s,
|
|
@@ -104,7 +104,7 @@ const Ne = (n, e, t) => {
|
|
|
104
104
|
}
|
|
105
105
|
}, ns = async (n, e, t, i) => {
|
|
106
106
|
try {
|
|
107
|
-
const s =
|
|
107
|
+
const s = Oe(n, t), a = await fetch(`${ue(Ue, i)}/payments`, {
|
|
108
108
|
method: "POST",
|
|
109
109
|
headers: s,
|
|
110
110
|
body: JSON.stringify(e)
|
|
@@ -122,7 +122,7 @@ const Ne = (n, e, t) => {
|
|
|
122
122
|
}
|
|
123
123
|
}, ul = async (n, e, t, i) => {
|
|
124
124
|
try {
|
|
125
|
-
const s =
|
|
125
|
+
const s = Oe(n, t), a = await fetch(`${ue(Ue, i)}/payments`, {
|
|
126
126
|
method: "POST",
|
|
127
127
|
headers: s,
|
|
128
128
|
body: JSON.stringify(e)
|
|
@@ -140,7 +140,7 @@ const Ne = (n, e, t) => {
|
|
|
140
140
|
}
|
|
141
141
|
}, hl = async (n, e, t, i) => {
|
|
142
142
|
try {
|
|
143
|
-
const s =
|
|
143
|
+
const s = Oe(n, t), a = await fetch(`${ue(Ue, i)}/payments`, {
|
|
144
144
|
method: "POST",
|
|
145
145
|
headers: s,
|
|
146
146
|
body: JSON.stringify(e)
|
|
@@ -158,8 +158,8 @@ const Ne = (n, e, t) => {
|
|
|
158
158
|
}
|
|
159
159
|
}, en = async (n, e, t, i, s) => {
|
|
160
160
|
try {
|
|
161
|
-
const a =
|
|
162
|
-
`${ue(
|
|
161
|
+
const a = Oe(n, i), o = await fetch(
|
|
162
|
+
`${ue(Ue, s)}/payments/verify?reference=${e}`,
|
|
163
163
|
{
|
|
164
164
|
method: "GET",
|
|
165
165
|
headers: a,
|
|
@@ -179,10 +179,10 @@ const Ne = (n, e, t) => {
|
|
|
179
179
|
}
|
|
180
180
|
};
|
|
181
181
|
async function ml(n, e, t, i, s) {
|
|
182
|
-
const a =
|
|
182
|
+
const a = Oe(n, t);
|
|
183
183
|
try {
|
|
184
184
|
const o = await fetch(
|
|
185
|
-
`${ue(
|
|
185
|
+
`${ue(Ue, i)}/mobile-money/providers?currency=${s || e}`,
|
|
186
186
|
{
|
|
187
187
|
headers: a,
|
|
188
188
|
method: "GET"
|
|
@@ -199,8 +199,8 @@ async function ml(n, e, t, i, s) {
|
|
|
199
199
|
}
|
|
200
200
|
const pl = async (n, e, t, i) => {
|
|
201
201
|
try {
|
|
202
|
-
const s =
|
|
203
|
-
`${ue(
|
|
202
|
+
const s = Oe(n, t), a = await fetch(
|
|
203
|
+
`${ue(Ue, i)}/payments/cancel`,
|
|
204
204
|
{
|
|
205
205
|
method: "POST",
|
|
206
206
|
headers: s,
|
|
@@ -219,8 +219,8 @@ const pl = async (n, e, t, i) => {
|
|
|
219
219
|
}
|
|
220
220
|
}, vl = async (n, e, t, i) => {
|
|
221
221
|
try {
|
|
222
|
-
const s =
|
|
223
|
-
`${ue(
|
|
222
|
+
const s = Oe(n, t, !0), a = await fetch(
|
|
223
|
+
`${ue(Ue, i)}/disputes/upload-documents`,
|
|
224
224
|
{
|
|
225
225
|
method: "POST",
|
|
226
226
|
headers: s,
|
|
@@ -237,8 +237,8 @@ const pl = async (n, e, t, i) => {
|
|
|
237
237
|
}
|
|
238
238
|
}, bl = async (n, e, t, i) => {
|
|
239
239
|
try {
|
|
240
|
-
const s =
|
|
241
|
-
`${ue(
|
|
240
|
+
const s = Oe(n, t), a = await fetch(
|
|
241
|
+
`${ue(Ue, i)}/disputes/reference`,
|
|
242
242
|
{
|
|
243
243
|
method: "POST",
|
|
244
244
|
headers: s,
|
|
@@ -255,7 +255,7 @@ const pl = async (n, e, t, i) => {
|
|
|
255
255
|
}
|
|
256
256
|
}, mt = async (n, e, t, i) => {
|
|
257
257
|
try {
|
|
258
|
-
const s =
|
|
258
|
+
const s = Oe(n, t), a = await fetch(`${ue(Ue, i)}/payments/retry`, {
|
|
259
259
|
method: "POST",
|
|
260
260
|
headers: s,
|
|
261
261
|
body: JSON.stringify(e)
|
|
@@ -274,8 +274,8 @@ const pl = async (n, e, t, i) => {
|
|
|
274
274
|
};
|
|
275
275
|
async function fl(n, e, t, i, s) {
|
|
276
276
|
try {
|
|
277
|
-
const a =
|
|
278
|
-
`${ue(
|
|
277
|
+
const a = Oe(n, i), o = await fetch(
|
|
278
|
+
`${ue(Ue, s)}/payments/tax-quotes?amount=${e || ""}¤cy=${t || ""}`,
|
|
279
279
|
{
|
|
280
280
|
headers: a,
|
|
281
281
|
method: "GET"
|
|
@@ -292,8 +292,8 @@ async function fl(n, e, t, i, s) {
|
|
|
292
292
|
}
|
|
293
293
|
const gl = async (n, e, t, i) => {
|
|
294
294
|
try {
|
|
295
|
-
const s =
|
|
296
|
-
`${ue(
|
|
295
|
+
const s = Oe(n, t), a = await fetch(
|
|
296
|
+
`${ue(Ue, i)}/payments/charge?reference=${e}`,
|
|
297
297
|
{
|
|
298
298
|
method: "POST",
|
|
299
299
|
headers: s
|
|
@@ -334,8 +334,8 @@ const gl = async (n, e, t, i) => {
|
|
|
334
334
|
}
|
|
335
335
|
}, Cl = async (n, e, t) => {
|
|
336
336
|
try {
|
|
337
|
-
const i =
|
|
338
|
-
`${ue(
|
|
337
|
+
const i = Oe(n, e), s = await fetch(
|
|
338
|
+
`${ue(Ue, t)}/stablecoins/assets`,
|
|
339
339
|
{
|
|
340
340
|
method: "GET",
|
|
341
341
|
headers: i
|
|
@@ -351,8 +351,8 @@ const gl = async (n, e, t, i) => {
|
|
|
351
351
|
}
|
|
352
352
|
}, wl = async (n, e, t) => {
|
|
353
353
|
try {
|
|
354
|
-
const i =
|
|
355
|
-
`${ue(
|
|
354
|
+
const i = Oe(n, e), s = await fetch(
|
|
355
|
+
`${ue(Ue, t)}/stablecoins/chains`,
|
|
356
356
|
{
|
|
357
357
|
method: "GET",
|
|
358
358
|
headers: i
|
|
@@ -1407,7 +1407,9 @@ const Ca = {
|
|
|
1407
1407
|
"error-fetching": "Error fetching bank details",
|
|
1408
1408
|
"account-expired": "Account Expired",
|
|
1409
1409
|
"account-expired-desc": " Looks like your account is not valid. Please confirm and try again",
|
|
1410
|
-
"transfer-header": "
|
|
1410
|
+
"transfer-header-1": "Please make a single bank transfer of the",
|
|
1411
|
+
"transfer-header-2": "exact amount shown",
|
|
1412
|
+
"transfer-header-3": "before the account expires to complete your payment successfully.",
|
|
1411
1413
|
"account-number": "Account Number",
|
|
1412
1414
|
"made-transfer": "I have made this bank transfer",
|
|
1413
1415
|
"expiration-text": "This account is for this transaction only and expires in"
|
|
@@ -1953,9 +1955,9 @@ const Ba = async (n) => {
|
|
|
1953
1955
|
n
|
|
1954
1956
|
);
|
|
1955
1957
|
};
|
|
1956
|
-
let
|
|
1958
|
+
let Ie = Aa;
|
|
1957
1959
|
const Ha = async (n) => {
|
|
1958
|
-
|
|
1960
|
+
Ie = await Le.translateRecord(
|
|
1959
1961
|
Aa,
|
|
1960
1962
|
n
|
|
1961
1963
|
);
|
|
@@ -1974,9 +1976,9 @@ const Na = async (n) => {
|
|
|
1974
1976
|
n
|
|
1975
1977
|
);
|
|
1976
1978
|
};
|
|
1977
|
-
let
|
|
1979
|
+
let Fe = Ta;
|
|
1978
1980
|
const Oa = async (n) => {
|
|
1979
|
-
|
|
1981
|
+
Fe = await Le.translateRecord(
|
|
1980
1982
|
Ta,
|
|
1981
1983
|
n
|
|
1982
1984
|
);
|
|
@@ -1995,11 +1997,11 @@ function Ks(n) {
|
|
|
1995
1997
|
return cn[n];
|
|
1996
1998
|
if (n in pe) return pe[n];
|
|
1997
1999
|
if (n in Xe) return Xe[n];
|
|
1998
|
-
if (n in
|
|
2000
|
+
if (n in Ie) return Ie[n];
|
|
1999
2001
|
if (n in Me) return Me[n];
|
|
2000
2002
|
if (n in Dn) return Dn[n];
|
|
2001
2003
|
if (n in Bn) return Bn[n];
|
|
2002
|
-
if (n in
|
|
2004
|
+
if (n in Fe) return Fe[n];
|
|
2003
2005
|
}
|
|
2004
2006
|
function Ki() {
|
|
2005
2007
|
document.querySelectorAll("[data-translate]").forEach((n) => {
|
|
@@ -25173,7 +25175,7 @@ class Zl {
|
|
|
25173
25175
|
return zl;
|
|
25174
25176
|
}
|
|
25175
25177
|
}
|
|
25176
|
-
function
|
|
25178
|
+
function Be(n, e, t) {
|
|
25177
25179
|
const s = e.get("spf-redirect-url") || t;
|
|
25178
25180
|
s && setTimeout(() => {
|
|
25179
25181
|
const a = new URL(s);
|
|
@@ -25225,7 +25227,7 @@ class pt {
|
|
|
25225
25227
|
this.container.innerHTML = this.renderSuccessComponent();
|
|
25226
25228
|
const s = document.querySelector("#go-back-merchant");
|
|
25227
25229
|
s && s.addEventListener("click", () => {
|
|
25228
|
-
|
|
25230
|
+
Be(
|
|
25229
25231
|
this.paymentResponse,
|
|
25230
25232
|
this.paymentResponseHeaders,
|
|
25231
25233
|
this.callbackUrl
|
|
@@ -25235,7 +25237,7 @@ class pt {
|
|
|
25235
25237
|
this.container.innerHTML = this.renderErrorComponent();
|
|
25236
25238
|
const s = document.querySelector("#go-back-merchant");
|
|
25237
25239
|
s && s.addEventListener("click", () => {
|
|
25238
|
-
|
|
25240
|
+
Be(
|
|
25239
25241
|
this.paymentResponse,
|
|
25240
25242
|
this.paymentResponseHeaders,
|
|
25241
25243
|
this.callbackUrl
|
|
@@ -25850,13 +25852,13 @@ function at(n, e) {
|
|
|
25850
25852
|
if (i.add(n, j), xe === Tt)
|
|
25851
25853
|
return null;
|
|
25852
25854
|
A && A(n);
|
|
25853
|
-
let
|
|
25855
|
+
let He = !l;
|
|
25854
25856
|
if (j.type === we.Element) {
|
|
25855
|
-
|
|
25857
|
+
He = He && !j.needBlock, delete j.needBlock;
|
|
25856
25858
|
const ve = n.shadowRoot;
|
|
25857
25859
|
ve && At(ve) && (j.isShadowHost = !0);
|
|
25858
25860
|
}
|
|
25859
|
-
if ((j.type === we.Document || j.type === we.Element) &&
|
|
25861
|
+
if ((j.type === we.Document || j.type === we.Element) && He) {
|
|
25860
25862
|
g.headWhitespace && j.type === we.Element && j.tagName === "head" && (Z = !1);
|
|
25861
25863
|
const ve = {
|
|
25862
25864
|
doc: t,
|
|
@@ -26012,7 +26014,7 @@ function Sc(n, e) {
|
|
|
26012
26014
|
newlyAddedElement: !1
|
|
26013
26015
|
});
|
|
26014
26016
|
}
|
|
26015
|
-
function
|
|
26017
|
+
function Re(n, e, t = document) {
|
|
26016
26018
|
const i = { capture: !0, passive: !0 };
|
|
26017
26019
|
return t.addEventListener(n, e, i), () => t.removeEventListener(n, e, i);
|
|
26018
26020
|
}
|
|
@@ -26101,7 +26103,7 @@ function Ja() {
|
|
|
26101
26103
|
function Ya(n) {
|
|
26102
26104
|
return n ? n.nodeType === n.ELEMENT_NODE ? n : n.parentElement : null;
|
|
26103
26105
|
}
|
|
26104
|
-
function
|
|
26106
|
+
function Ne(n, e, t, i) {
|
|
26105
26107
|
if (!n)
|
|
26106
26108
|
return !1;
|
|
26107
26109
|
const s = Ya(n);
|
|
@@ -26202,7 +26204,7 @@ function to(n) {
|
|
|
26202
26204
|
const e = n.ownerDocument;
|
|
26203
26205
|
return e ? e.contains(n) || xc(n) : !1;
|
|
26204
26206
|
}
|
|
26205
|
-
var X = /* @__PURE__ */ ((n) => (n[n.DomContentLoaded = 0] = "DomContentLoaded", n[n.Load = 1] = "Load", n[n.FullSnapshot = 2] = "FullSnapshot", n[n.IncrementalSnapshot = 3] = "IncrementalSnapshot", n[n.Meta = 4] = "Meta", n[n.Custom = 5] = "Custom", n[n.Plugin = 6] = "Plugin", n))(X || {}), J = /* @__PURE__ */ ((n) => (n[n.Mutation = 0] = "Mutation", n[n.MouseMove = 1] = "MouseMove", n[n.MouseInteraction = 2] = "MouseInteraction", n[n.Scroll = 3] = "Scroll", n[n.ViewportResize = 4] = "ViewportResize", n[n.Input = 5] = "Input", n[n.TouchMove = 6] = "TouchMove", n[n.MediaInteraction = 7] = "MediaInteraction", n[n.StyleSheetRule = 8] = "StyleSheetRule", n[n.CanvasMutation = 9] = "CanvasMutation", n[n.Font = 10] = "Font", n[n.Log = 11] = "Log", n[n.Drag = 12] = "Drag", n[n.StyleDeclaration = 13] = "StyleDeclaration", n[n.Selection = 14] = "Selection", n[n.AdoptedStyleSheet = 15] = "AdoptedStyleSheet", n[n.CustomElement = 16] = "CustomElement", n))(J || {}),
|
|
26207
|
+
var X = /* @__PURE__ */ ((n) => (n[n.DomContentLoaded = 0] = "DomContentLoaded", n[n.Load = 1] = "Load", n[n.FullSnapshot = 2] = "FullSnapshot", n[n.IncrementalSnapshot = 3] = "IncrementalSnapshot", n[n.Meta = 4] = "Meta", n[n.Custom = 5] = "Custom", n[n.Plugin = 6] = "Plugin", n))(X || {}), J = /* @__PURE__ */ ((n) => (n[n.Mutation = 0] = "Mutation", n[n.MouseMove = 1] = "MouseMove", n[n.MouseInteraction = 2] = "MouseInteraction", n[n.Scroll = 3] = "Scroll", n[n.ViewportResize = 4] = "ViewportResize", n[n.Input = 5] = "Input", n[n.TouchMove = 6] = "TouchMove", n[n.MediaInteraction = 7] = "MediaInteraction", n[n.StyleSheetRule = 8] = "StyleSheetRule", n[n.CanvasMutation = 9] = "CanvasMutation", n[n.Font = 10] = "Font", n[n.Log = 11] = "Log", n[n.Drag = 12] = "Drag", n[n.StyleDeclaration = 13] = "StyleDeclaration", n[n.Selection = 14] = "Selection", n[n.AdoptedStyleSheet = 15] = "AdoptedStyleSheet", n[n.CustomElement = 16] = "CustomElement", n))(J || {}), Ve = /* @__PURE__ */ ((n) => (n[n.MouseUp = 0] = "MouseUp", n[n.MouseDown = 1] = "MouseDown", n[n.Click = 2] = "Click", n[n.ContextMenu = 3] = "ContextMenu", n[n.DblClick = 4] = "DblClick", n[n.Focus = 5] = "Focus", n[n.Blur = 6] = "Blur", n[n.TouchStart = 7] = "TouchStart", n[n.TouchMove_Departed = 8] = "TouchMove_Departed", n[n.TouchEnd = 9] = "TouchEnd", n[n.TouchCancel = 10] = "TouchCancel", n))(Ve || {}), gn = /* @__PURE__ */ ((n) => (n[n.Mouse = 0] = "Mouse", n[n.Pen = 1] = "Pen", n[n.Touch = 2] = "Touch", n))(gn || {}), dt = /* @__PURE__ */ ((n) => (n[n["2D"] = 0] = "2D", n[n.WebGL = 1] = "WebGL", n[n.WebGL2 = 2] = "WebGL2", n))(dt || {});
|
|
26206
26208
|
function Zs(n) {
|
|
26207
26209
|
return "__ln" in n;
|
|
26208
26210
|
}
|
|
@@ -26371,7 +26373,7 @@ class _c {
|
|
|
26371
26373
|
switch (e.type) {
|
|
26372
26374
|
case "characterData": {
|
|
26373
26375
|
const t = e.target.textContent;
|
|
26374
|
-
!
|
|
26376
|
+
!Ne(e.target, this.blockClass, this.blockSelector, !1) && t !== e.oldValue && this.texts.push({
|
|
26375
26377
|
value: Za(e.target, this.maskTextClass, this.maskTextSelector, !0) && t ? this.maskTextFn ? this.maskTextFn(t, Ya(e.target)) : t.replace(/[\S]/g, "*") : t,
|
|
26376
26378
|
node: e.target
|
|
26377
26379
|
});
|
|
@@ -26391,7 +26393,7 @@ class _c {
|
|
|
26391
26393
|
maskInputFn: this.maskInputFn
|
|
26392
26394
|
});
|
|
26393
26395
|
}
|
|
26394
|
-
if (
|
|
26396
|
+
if (Ne(e.target, this.blockClass, this.blockSelector, !1) || s === e.oldValue)
|
|
26395
26397
|
return;
|
|
26396
26398
|
let a = this.attributeMap.get(e.target);
|
|
26397
26399
|
if (t.tagName === "IFRAME" && i === "src" && !this.keepIframeSrcFn(s))
|
|
@@ -26423,7 +26425,7 @@ class _c {
|
|
|
26423
26425
|
break;
|
|
26424
26426
|
}
|
|
26425
26427
|
case "childList": {
|
|
26426
|
-
if (
|
|
26428
|
+
if (Ne(e.target, this.blockClass, this.blockSelector, !0))
|
|
26427
26429
|
return;
|
|
26428
26430
|
if (e.target.tagName === "TEXTAREA") {
|
|
26429
26431
|
this.genTextAreaValueMutation(e.target);
|
|
@@ -26431,7 +26433,7 @@ class _c {
|
|
|
26431
26433
|
}
|
|
26432
26434
|
e.addedNodes.forEach((t) => this.genAdds(t, e.target)), e.removedNodes.forEach((t) => {
|
|
26433
26435
|
const i = this.mirror.getId(t), s = kt(e.target) ? this.mirror.getId(e.target.host) : this.mirror.getId(e.target);
|
|
26434
|
-
|
|
26436
|
+
Ne(e.target, this.blockClass, this.blockSelector, !1) || Gi(t, this.mirror) || !kc(t, this.mirror) || (this.addedSet.has(t) ? (Xi(this.addedSet, t), this.droppedSet.add(t)) : this.addedSet.has(e.target) && i === -1 || Xa(e.target, this.mirror) || (this.movedSet.has(t) && this.movedMap[Ws(i, s)] ? Xi(this.movedSet, t) : this.removes.push({
|
|
26435
26437
|
parentId: s,
|
|
26436
26438
|
id: i,
|
|
26437
26439
|
isShadow: kt(e.target) && At(e.target) ? !0 : void 0
|
|
@@ -26450,7 +26452,7 @@ class _c {
|
|
|
26450
26452
|
t && this.mirror.hasNode(t) && (i = this.mirror.getId(t)), i && i !== -1 && (this.movedMap[Ws(this.mirror.getId(e), i)] = !0);
|
|
26451
26453
|
} else
|
|
26452
26454
|
this.addedSet.add(e), this.droppedSet.delete(e);
|
|
26453
|
-
|
|
26455
|
+
Ne(e, this.blockClass, this.blockSelector, !1) || (e.childNodes.forEach((i) => this.genAdds(i)), Yi(e) && e.shadowRoot.childNodes.forEach((i) => {
|
|
26454
26456
|
this.processedNodeManager.add(i, this), this.genAdds(i, e);
|
|
26455
26457
|
}));
|
|
26456
26458
|
}
|
|
@@ -26587,9 +26589,9 @@ function Ic({ mousemoveCb: n, sampling: e, doc: t, mirror: i }) {
|
|
|
26587
26589
|
}), s, {
|
|
26588
26590
|
trailing: !1
|
|
26589
26591
|
})), p = [
|
|
26590
|
-
|
|
26591
|
-
|
|
26592
|
-
|
|
26592
|
+
Re("mousemove", m, t),
|
|
26593
|
+
Re("touchmove", m, t),
|
|
26594
|
+
Re("drag", m, t)
|
|
26593
26595
|
];
|
|
26594
26596
|
return Y(() => {
|
|
26595
26597
|
p.forEach((y) => y());
|
|
@@ -26603,7 +26605,7 @@ function Dc({ mouseInteractionCb: n, doc: e, mirror: t, blockClass: i, blockSele
|
|
|
26603
26605
|
let l = null;
|
|
26604
26606
|
const m = (p) => (y) => {
|
|
26605
26607
|
const b = It(y);
|
|
26606
|
-
if (
|
|
26608
|
+
if (Ne(b, i, s, !0))
|
|
26607
26609
|
return;
|
|
26608
26610
|
let g = null, w = p;
|
|
26609
26611
|
if ("pointerType" in y) {
|
|
@@ -26618,29 +26620,29 @@ function Dc({ mouseInteractionCb: n, doc: e, mirror: t, blockClass: i, blockSele
|
|
|
26618
26620
|
g = gn.Pen;
|
|
26619
26621
|
break;
|
|
26620
26622
|
}
|
|
26621
|
-
g === gn.Touch ?
|
|
26623
|
+
g === gn.Touch ? Ve[p] === Ve.MouseDown ? w = "TouchStart" : Ve[p] === Ve.MouseUp && (w = "TouchEnd") : gn.Pen;
|
|
26622
26624
|
} else Ji(y) && (g = gn.Touch);
|
|
26623
|
-
g !== null ? (l = g, (w.startsWith("Touch") && g === gn.Touch || w.startsWith("Mouse") && g === gn.Mouse) && (g = null)) :
|
|
26625
|
+
g !== null ? (l = g, (w.startsWith("Touch") && g === gn.Touch || w.startsWith("Mouse") && g === gn.Mouse) && (g = null)) : Ve[p] === Ve.Click && (g = l, l = null);
|
|
26624
26626
|
const f = Ji(y) ? y.changedTouches[0] : y;
|
|
26625
26627
|
if (!f)
|
|
26626
26628
|
return;
|
|
26627
26629
|
const S = t.getId(b), { clientX: A, clientY: M } = f;
|
|
26628
|
-
Y(n)(Object.assign({ type:
|
|
26630
|
+
Y(n)(Object.assign({ type: Ve[w], id: S, x: A, y: M }, g !== null && { pointerType: g }));
|
|
26629
26631
|
};
|
|
26630
|
-
return Object.keys(
|
|
26632
|
+
return Object.keys(Ve).filter((p) => Number.isNaN(Number(p)) && !p.endsWith("_Departed") && o[p] !== !1).forEach((p) => {
|
|
26631
26633
|
let y = Zn(p);
|
|
26632
26634
|
const b = m(p);
|
|
26633
26635
|
if (window.PointerEvent)
|
|
26634
|
-
switch (
|
|
26635
|
-
case
|
|
26636
|
-
case
|
|
26636
|
+
switch (Ve[p]) {
|
|
26637
|
+
case Ve.MouseDown:
|
|
26638
|
+
case Ve.MouseUp:
|
|
26637
26639
|
y = y.replace("mouse", "pointer");
|
|
26638
26640
|
break;
|
|
26639
|
-
case
|
|
26640
|
-
case
|
|
26641
|
+
case Ve.TouchStart:
|
|
26642
|
+
case Ve.TouchEnd:
|
|
26641
26643
|
return;
|
|
26642
26644
|
}
|
|
26643
|
-
c.push(
|
|
26645
|
+
c.push(Re(y, b, e));
|
|
26644
26646
|
}), Y(() => {
|
|
26645
26647
|
c.forEach((p) => p());
|
|
26646
26648
|
});
|
|
@@ -26648,7 +26650,7 @@ function Dc({ mouseInteractionCb: n, doc: e, mirror: t, blockClass: i, blockSele
|
|
|
26648
26650
|
function oo({ scrollCb: n, doc: e, mirror: t, blockClass: i, blockSelector: s, sampling: a }) {
|
|
26649
26651
|
const o = Y(_t(Y((c) => {
|
|
26650
26652
|
const l = It(c);
|
|
26651
|
-
if (!l ||
|
|
26653
|
+
if (!l || Ne(l, i, s, !0))
|
|
26652
26654
|
return;
|
|
26653
26655
|
const m = t.getId(l);
|
|
26654
26656
|
if (l === e && e.defaultView) {
|
|
@@ -26665,7 +26667,7 @@ function oo({ scrollCb: n, doc: e, mirror: t, blockClass: i, blockSelector: s, s
|
|
|
26665
26667
|
y: l.scrollTop
|
|
26666
26668
|
});
|
|
26667
26669
|
}), a.scroll || 100));
|
|
26668
|
-
return
|
|
26670
|
+
return Re("scroll", o, e);
|
|
26669
26671
|
}
|
|
26670
26672
|
function Bc({ viewportResizeCb: n }, { win: e }) {
|
|
26671
26673
|
let t = -1, i = -1;
|
|
@@ -26676,14 +26678,14 @@ function Bc({ viewportResizeCb: n }, { win: e }) {
|
|
|
26676
26678
|
height: Number(a)
|
|
26677
26679
|
}), t = a, i = o);
|
|
26678
26680
|
}), 200));
|
|
26679
|
-
return
|
|
26681
|
+
return Re("resize", s, e);
|
|
26680
26682
|
}
|
|
26681
26683
|
const Hc = ["INPUT", "TEXTAREA", "SELECT"], Ys = /* @__PURE__ */ new WeakMap();
|
|
26682
26684
|
function Rc({ inputCb: n, doc: e, mirror: t, blockClass: i, blockSelector: s, ignoreClass: a, ignoreSelector: o, maskInputOptions: c, maskInputFn: l, sampling: m, userTriggeredOnInput: p }) {
|
|
26683
26685
|
function y(M) {
|
|
26684
26686
|
let L = It(M);
|
|
26685
26687
|
const E = M.isTrusted, D = L && L.tagName;
|
|
26686
|
-
if (L && D === "OPTION" && (L = L.parentElement), !L || !D || Hc.indexOf(D) < 0 ||
|
|
26688
|
+
if (L && D === "OPTION" && (L = L.parentElement), !L || !D || Hc.indexOf(D) < 0 || Ne(L, i, s, !0) || L.classList.contains(a) || o && L.matches(o))
|
|
26687
26689
|
return;
|
|
26688
26690
|
let F = L.value, z = !1;
|
|
26689
26691
|
const G = as(L) || "";
|
|
@@ -26711,7 +26713,7 @@ function Rc({ inputCb: n, doc: e, mirror: t, blockClass: i, blockSelector: s, ig
|
|
|
26711
26713
|
Y(n)(Object.assign(Object.assign({}, L), { id: D }));
|
|
26712
26714
|
}
|
|
26713
26715
|
}
|
|
26714
|
-
const w = (m.input === "last" ? ["change"] : ["input", "change"]).map((M) =>
|
|
26716
|
+
const w = (m.input === "last" ? ["change"] : ["input", "change"]).map((M) => Re(M, Y(y), e)), f = e.defaultView;
|
|
26715
26717
|
if (!f)
|
|
26716
26718
|
return () => {
|
|
26717
26719
|
w.forEach((M) => M());
|
|
@@ -26923,7 +26925,7 @@ function Oc({ styleDeclarationCb: n, mirror: e, ignoreCSSAttributes: t, styleshe
|
|
|
26923
26925
|
function Uc({ mediaInteractionCb: n, blockClass: e, blockSelector: t, mirror: i, sampling: s, doc: a }) {
|
|
26924
26926
|
const o = Y((l) => _t(Y((m) => {
|
|
26925
26927
|
const p = It(m);
|
|
26926
|
-
if (!p ||
|
|
26928
|
+
if (!p || Ne(p, e, t, !0))
|
|
26927
26929
|
return;
|
|
26928
26930
|
const { currentTime: y, volume: b, muted: g, playbackRate: w, loop: f } = p;
|
|
26929
26931
|
n({
|
|
@@ -26936,11 +26938,11 @@ function Uc({ mediaInteractionCb: n, blockClass: e, blockSelector: t, mirror: i,
|
|
|
26936
26938
|
loop: f
|
|
26937
26939
|
});
|
|
26938
26940
|
}), s.media || 500)), c = [
|
|
26939
|
-
|
|
26940
|
-
|
|
26941
|
-
|
|
26942
|
-
|
|
26943
|
-
|
|
26941
|
+
Re("play", o(0), a),
|
|
26942
|
+
Re("pause", o(1), a),
|
|
26943
|
+
Re("seeked", o(2), a),
|
|
26944
|
+
Re("volumechange", o(3), a),
|
|
26945
|
+
Re("ratechange", o(4), a)
|
|
26944
26946
|
];
|
|
26945
26947
|
return Y(() => {
|
|
26946
26948
|
c.forEach((l) => l());
|
|
@@ -26986,7 +26988,7 @@ function Fc(n) {
|
|
|
26986
26988
|
const m = [], p = l.rangeCount || 0;
|
|
26987
26989
|
for (let y = 0; y < p; y++) {
|
|
26988
26990
|
const b = l.getRangeAt(y), { startContainer: g, startOffset: w, endContainer: f, endOffset: S } = b;
|
|
26989
|
-
|
|
26991
|
+
Ne(g, i, s, !0) || Ne(f, i, s, !0) || m.push({
|
|
26990
26992
|
start: t.getId(g),
|
|
26991
26993
|
startOffset: w,
|
|
26992
26994
|
end: t.getId(f),
|
|
@@ -26995,7 +26997,7 @@ function Fc(n) {
|
|
|
26995
26997
|
}
|
|
26996
26998
|
a({ ranges: m });
|
|
26997
26999
|
});
|
|
26998
|
-
return c(),
|
|
27000
|
+
return c(), Re("selectionchange", c);
|
|
26999
27001
|
}
|
|
27000
27002
|
function Kc({ doc: n, customElementCb: e }) {
|
|
27001
27003
|
const t = n.defaultView;
|
|
@@ -27443,7 +27445,7 @@ function Xc(n, e, t, i) {
|
|
|
27443
27445
|
continue;
|
|
27444
27446
|
const c = vt(e.CanvasRenderingContext2D.prototype, o, function(l) {
|
|
27445
27447
|
return function(...m) {
|
|
27446
|
-
return
|
|
27448
|
+
return Ne(this.canvas, t, i, !0) || setTimeout(() => {
|
|
27447
27449
|
const p = co(m, e, this);
|
|
27448
27450
|
n(this.canvas, {
|
|
27449
27451
|
type: dt["2D"],
|
|
@@ -27479,7 +27481,7 @@ function ea(n, e, t, i) {
|
|
|
27479
27481
|
try {
|
|
27480
27482
|
const a = vt(n.HTMLCanvasElement.prototype, "getContext", function(o) {
|
|
27481
27483
|
return function(c, ...l) {
|
|
27482
|
-
if (!
|
|
27484
|
+
if (!Ne(this, e, t, !0)) {
|
|
27483
27485
|
const m = $c(c);
|
|
27484
27486
|
if ("__context" in this || (this.__context = m), i && ["webgl", "webgl2"].includes(m))
|
|
27485
27487
|
if (l[0] && typeof l[0] == "object") {
|
|
@@ -27516,7 +27518,7 @@ function na(n, e, t, i, s, a, o) {
|
|
|
27516
27518
|
const p = vt(n, m, function(y) {
|
|
27517
27519
|
return function(...b) {
|
|
27518
27520
|
const g = y.apply(this, b);
|
|
27519
|
-
if (lo(g, o, this), "tagName" in this.canvas && !
|
|
27521
|
+
if (lo(g, o, this), "tagName" in this.canvas && !Ne(this.canvas, i, s, !0)) {
|
|
27520
27522
|
const w = co(b, o, this), f = {
|
|
27521
27523
|
type: e,
|
|
27522
27524
|
property: m,
|
|
@@ -27727,7 +27729,7 @@ class ad {
|
|
|
27727
27729
|
const b = () => {
|
|
27728
27730
|
const w = [];
|
|
27729
27731
|
return t.document.querySelectorAll("canvas").forEach((f) => {
|
|
27730
|
-
|
|
27732
|
+
Ne(f, i, s, !0) || w.push(f);
|
|
27731
27733
|
}), w;
|
|
27732
27734
|
}, g = (w) => {
|
|
27733
27735
|
if (p && w - p < m) {
|
|
@@ -27863,7 +27865,7 @@ function Ce(n) {
|
|
|
27863
27865
|
let me, ui, ji, Ci = !1;
|
|
27864
27866
|
const Ye = ec();
|
|
27865
27867
|
function Dt(n = {}) {
|
|
27866
|
-
const { emit: e, checkoutEveryNms: t, checkoutEveryNth: i, blockClass: s = "rr-block", blockSelector: a = null, ignoreClass: o = "rr-ignore", ignoreSelector: c = null, maskTextClass: l = "rr-mask", maskTextSelector: m = null, inlineStylesheet: p = !0, maskAllInputs: y, maskInputOptions: b, slimDOMOptions: g, maskInputFn: w, maskTextFn: f, hooks: S, packFn: A, sampling: M = {}, dataURLOptions: L = {}, mousemoveWait: E, recordDOM: D = !0, recordCanvas: F = !1, recordCrossOriginIframes: z = !1, recordAfter: G = n.recordAfter === "DOMContentLoaded" ? n.recordAfter : "load", userTriggeredOnInput: Z = !1, collectFonts: ce = !1, inlineImages: xe = !1, plugins: j, keepIframeSrcFn:
|
|
27868
|
+
const { emit: e, checkoutEveryNms: t, checkoutEveryNth: i, blockClass: s = "rr-block", blockSelector: a = null, ignoreClass: o = "rr-ignore", ignoreSelector: c = null, maskTextClass: l = "rr-mask", maskTextSelector: m = null, inlineStylesheet: p = !0, maskAllInputs: y, maskInputOptions: b, slimDOMOptions: g, maskInputFn: w, maskTextFn: f, hooks: S, packFn: A, sampling: M = {}, dataURLOptions: L = {}, mousemoveWait: E, recordDOM: D = !0, recordCanvas: F = !1, recordCrossOriginIframes: z = !1, recordAfter: G = n.recordAfter === "DOMContentLoaded" ? n.recordAfter : "load", userTriggeredOnInput: Z = !1, collectFonts: ce = !1, inlineImages: xe = !1, plugins: j, keepIframeSrcFn: He = () => !1, ignoreCSSAttributes: ve = /* @__PURE__ */ new Set([]), errorHandler: Ke } = n;
|
|
27867
27869
|
Ec(Ke);
|
|
27868
27870
|
const Se = z ? window.parent === window : !0;
|
|
27869
27871
|
let hn = !1;
|
|
@@ -27996,7 +27998,7 @@ function Dt(n = {}) {
|
|
|
27996
27998
|
iframeManager: je,
|
|
27997
27999
|
stylesheetManager: ze,
|
|
27998
28000
|
canvasManager: ji,
|
|
27999
|
-
keepIframeSrcFn:
|
|
28001
|
+
keepIframeSrcFn: He,
|
|
28000
28002
|
processedNodeManager: Pe
|
|
28001
28003
|
},
|
|
28002
28004
|
mirror: Ye
|
|
@@ -28034,7 +28036,7 @@ function Dt(n = {}) {
|
|
|
28034
28036
|
onStylesheetLoad: (te, fe) => {
|
|
28035
28037
|
ze.attachLinkElement(te, fe);
|
|
28036
28038
|
},
|
|
28037
|
-
keepIframeSrcFn:
|
|
28039
|
+
keepIframeSrcFn: He
|
|
28038
28040
|
});
|
|
28039
28041
|
if (!be)
|
|
28040
28042
|
return console.warn("Failed to snapshot the document");
|
|
@@ -28116,7 +28118,7 @@ function Dt(n = {}) {
|
|
|
28116
28118
|
doc: fe,
|
|
28117
28119
|
maskInputFn: w,
|
|
28118
28120
|
maskTextFn: f,
|
|
28119
|
-
keepIframeSrcFn:
|
|
28121
|
+
keepIframeSrcFn: He,
|
|
28120
28122
|
blockSelector: a,
|
|
28121
28123
|
slimDOMOptions: mn,
|
|
28122
28124
|
dataURLOptions: L,
|
|
@@ -28150,12 +28152,12 @@ function Dt(n = {}) {
|
|
|
28150
28152
|
const te = () => {
|
|
28151
28153
|
ui(), R.push(be(document)), Ci = !0;
|
|
28152
28154
|
};
|
|
28153
|
-
return document.readyState === "interactive" || document.readyState === "complete" ? te() : (R.push(
|
|
28155
|
+
return document.readyState === "interactive" || document.readyState === "complete" ? te() : (R.push(Re("DOMContentLoaded", () => {
|
|
28154
28156
|
me(Ce({
|
|
28155
28157
|
type: X.DomContentLoaded,
|
|
28156
28158
|
data: {}
|
|
28157
28159
|
})), G === "DOMContentLoaded" && te();
|
|
28158
|
-
})), R.push(
|
|
28160
|
+
})), R.push(Re("load", () => {
|
|
28159
28161
|
me(Ce({
|
|
28160
28162
|
type: X.Load,
|
|
28161
28163
|
data: {}
|
|
@@ -30033,7 +30035,7 @@ Q.prototype.remove_event_timer = function(n) {
|
|
|
30033
30035
|
};
|
|
30034
30036
|
var gs, Co = function(n, e) {
|
|
30035
30037
|
throw new Error(n + " not available in this build.");
|
|
30036
|
-
},
|
|
30038
|
+
}, De, wo = 0, _d = 1, Ed = function(n) {
|
|
30037
30039
|
return n;
|
|
30038
30040
|
}, Pt = function() {
|
|
30039
30041
|
}, Qe = "mixpanel", So = "base64", Pd = "json", ys = "$device:", lt = U.XMLHttpRequest && "withCredentials" in new XMLHttpRequest(), ko = !lt && dn.indexOf("MSIE") === -1 && dn.indexOf("Mozilla") === -1, Li = null;
|
|
@@ -30107,7 +30109,7 @@ var Ao = {
|
|
|
30107
30109
|
recorder_src: "https://cdn.mxpnl.com/libs/mixpanel-recorder.min.js"
|
|
30108
30110
|
}, Mo = !1, x = function() {
|
|
30109
30111
|
}, es = function(n, e, t) {
|
|
30110
|
-
var i, s = t === Qe ?
|
|
30112
|
+
var i, s = t === Qe ? De : De[t];
|
|
30111
30113
|
if (s && gs === wo)
|
|
30112
30114
|
i = s;
|
|
30113
30115
|
else {
|
|
@@ -30135,7 +30137,7 @@ x.prototype.init = function(n, e, t) {
|
|
|
30135
30137
|
return;
|
|
30136
30138
|
}
|
|
30137
30139
|
var i = es(n, e, t);
|
|
30138
|
-
return
|
|
30140
|
+
return De[t] = i, i._loaded(), i;
|
|
30139
30141
|
};
|
|
30140
30142
|
x.prototype._init = function(n, e, t) {
|
|
30141
30143
|
e = e || {}, this.__loaded = !0, this.config = {};
|
|
@@ -30751,14 +30753,14 @@ Q.prototype.get_cross_subdomain = Q.prototype.get_cross_subdomain;
|
|
|
30751
30753
|
Q.prototype.clear = Q.prototype.clear;
|
|
30752
30754
|
var rt = {}, Dd = function() {
|
|
30753
30755
|
v.each(rt, function(n, e) {
|
|
30754
|
-
e !== Qe && (
|
|
30755
|
-
}),
|
|
30756
|
+
e !== Qe && (De[e] = n);
|
|
30757
|
+
}), De._ = v;
|
|
30756
30758
|
}, Bd = function() {
|
|
30757
|
-
|
|
30759
|
+
De.init = function(n, e, t) {
|
|
30758
30760
|
if (t)
|
|
30759
|
-
return
|
|
30760
|
-
var i =
|
|
30761
|
-
rt[Qe] ? i = rt[Qe] : n && (i = es(n, e, Qe), i._loaded(), rt[Qe] = i),
|
|
30761
|
+
return De[t] || (De[t] = rt[t] = es(n, e, t), De[t]._loaded()), De[t];
|
|
30762
|
+
var i = De;
|
|
30763
|
+
rt[Qe] ? i = rt[Qe] : n && (i = es(n, e, Qe), i._loaded(), rt[Qe] = i), De = i, gs === _d && (U[Qe] = De), Dd();
|
|
30762
30764
|
};
|
|
30763
30765
|
}, Hd = function() {
|
|
30764
30766
|
function n() {
|
|
@@ -30789,7 +30791,7 @@ var rt = {}, Dd = function() {
|
|
|
30789
30791
|
v.register_event(U, "load", n, !0);
|
|
30790
30792
|
};
|
|
30791
30793
|
function Rd(n) {
|
|
30792
|
-
return Co = n, gs = wo,
|
|
30794
|
+
return Co = n, gs = wo, De = new x(), Bd(), De.init(), Hd(), De;
|
|
30793
30795
|
}
|
|
30794
30796
|
function Nd(n, e) {
|
|
30795
30797
|
e();
|
|
@@ -30845,7 +30847,7 @@ class Lo {
|
|
|
30845
30847
|
_.track("redirect_to_merchant", {
|
|
30846
30848
|
payment_method: this.paymentMethod,
|
|
30847
30849
|
status: (a = this.paymentResponse) == null ? void 0 : a.status
|
|
30848
|
-
}),
|
|
30850
|
+
}), Be(
|
|
30849
30851
|
this.paymentResponse,
|
|
30850
30852
|
this.paymentResponseHeaders,
|
|
30851
30853
|
this.callBackUrl
|
|
@@ -32331,8 +32333,10 @@ const qd = `<div data-section="transfer" data-section="transfer">
|
|
|
32331
32333
|
<img src="" alt="loader gif" />
|
|
32332
32334
|
</div>
|
|
32333
32335
|
<div id="details-content" class="grid gap-5">
|
|
32334
|
-
<h5 class="text-sm text-tone-100 text-center
|
|
32335
|
-
|
|
32336
|
+
<h5 class="text-sm text-tone-100 text-center md:w-4/5 mx-auto">
|
|
32337
|
+
<span id="transfer-header-1" class="font-medium" data-translate="transfer-header-1"></span>
|
|
32338
|
+
<span class="font-bold" id="transfer-header-2" data-translate="transfer-header-2"></span>
|
|
32339
|
+
<span id="transfer-header-3" class="font-medium" data-translate="transfer-header-3"></span>
|
|
32336
32340
|
</h5>
|
|
32337
32341
|
<div class="border border-grey-100 rounded-lg text-black px-6 py-5 grid gap-4">
|
|
32338
32342
|
<div class="text-sm grid grid-cols-[1fr_auto] gap-3">
|
|
@@ -32402,7 +32406,7 @@ const qd = `<div data-section="transfer" data-section="transfer">
|
|
|
32402
32406
|
<p class="font-semibold" id="account-name"></p>
|
|
32403
32407
|
</div>
|
|
32404
32408
|
</div>
|
|
32405
|
-
|
|
32409
|
+
|
|
32406
32410
|
<div class="mt-3">
|
|
32407
32411
|
<button type="button" id="transfer-button" data-translate="made-transfer" class="details-form-button"></button>
|
|
32408
32412
|
</div>
|
|
@@ -32865,17 +32869,17 @@ var To = { exports: {} };
|
|
|
32865
32869
|
function xe(h) {
|
|
32866
32870
|
return hn(Ke(h));
|
|
32867
32871
|
}
|
|
32868
|
-
var j = String.fromCharCode,
|
|
32872
|
+
var j = String.fromCharCode, He = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", ve = function(h) {
|
|
32869
32873
|
var r = h.charCodeAt(0);
|
|
32870
32874
|
return r < 128 ? h : r < 2048 ? j(192 | r >>> 6) + j(128 | r & 63) : j(224 | r >>> 12 & 15) + j(128 | r >>> 6 & 63) + j(128 | r & 63);
|
|
32871
32875
|
}, Ke = function(h) {
|
|
32872
32876
|
return h.replace(/[^\x00-\x7F]/g, ve);
|
|
32873
32877
|
}, Se = function(h) {
|
|
32874
32878
|
var r = [0, 2, 1][h.length % 3], u = h.charCodeAt(0) << 16 | (h.length > 1 ? h.charCodeAt(1) : 0) << 8 | (h.length > 2 ? h.charCodeAt(2) : 0), C = [
|
|
32875
|
-
|
|
32876
|
-
|
|
32877
|
-
r >= 2 ? "=" :
|
|
32878
|
-
r >= 1 ? "=" :
|
|
32879
|
+
He.charAt(u >>> 18),
|
|
32880
|
+
He.charAt(u >>> 12 & 63),
|
|
32881
|
+
r >= 2 ? "=" : He.charAt(u >>> 6 & 63),
|
|
32882
|
+
r >= 1 ? "=" : He.charAt(u & 63)
|
|
32879
32883
|
];
|
|
32880
32884
|
return C.join("");
|
|
32881
32885
|
}, hn = window.btoa || function(h) {
|
|
@@ -35136,14 +35140,12 @@ class pa {
|
|
|
35136
35140
|
this.container = e.container, this.onAction = e.onAction, this.onFail = e.onFail, this.initialTime = 1800, this.timeLeft = this.initialTime, this.timerId = null;
|
|
35137
35141
|
}
|
|
35138
35142
|
attachListener() {
|
|
35139
|
-
const e = this.container.querySelector("#transfer-acn"), t = this.container.querySelector("#transfer-bank"), i = this.container.querySelector("#copy-acn"), s = this.container.querySelector("#acn-tooltip"), a = this.container.querySelector("#transfer-amount"), o = this.container.querySelector("#copy-amount"), c = this.container.querySelector("#amount-tooltip"), l = this.container.querySelector("#transfer-button"), m = this.container.querySelector(
|
|
35140
|
-
"#transfer-header-text"
|
|
35141
|
-
), p = this.container.querySelector("#bank-name-text"), y = this.container.querySelector("#beneficiary-text"), b = this.container.querySelector("#amount-text"), g = this.container.querySelectorAll(".copy-text"), w = this.container.querySelector(
|
|
35143
|
+
const e = this.container.querySelector("#transfer-acn"), t = this.container.querySelector("#transfer-bank"), i = this.container.querySelector("#copy-acn"), s = this.container.querySelector("#acn-tooltip"), a = this.container.querySelector("#transfer-amount"), o = this.container.querySelector("#copy-amount"), c = this.container.querySelector("#amount-tooltip"), l = this.container.querySelector("#transfer-button"), m = this.container.querySelector("#transfer-header-1"), p = this.container.querySelector("#transfer-header-2"), y = this.container.querySelector("#transfer-header-3"), b = this.container.querySelector("#bank-name-text"), g = this.container.querySelector("#beneficiary-text"), w = this.container.querySelector("#amount-text"), f = this.container.querySelectorAll(".copy-text"), S = this.container.querySelector(
|
|
35142
35144
|
"#account-number-text"
|
|
35143
|
-
),
|
|
35144
|
-
m && (m.innerHTML =
|
|
35145
|
-
|
|
35146
|
-
}),
|
|
35145
|
+
), A = this.container.querySelector("#expiration-text");
|
|
35146
|
+
m && (m.innerHTML = Ie["transfer-header-1"]), p && (p.innerHTML = Ie["transfer-header-2"]), y && (y.innerHTML = Ie["transfer-header-3"]), w && (w.innerHTML = W.amount), f.forEach((M) => {
|
|
35147
|
+
M.innerHTML = P.copy;
|
|
35148
|
+
}), S && (S.innerHTML = Ie["account-number"]), b && (b.innerHTML = Ie["bank-name"]), g && (g.innerHTML = Ie.beneficiary), A && (A.innerHTML = Ie["expiration-text"]), i && e && i.addEventListener("click", () => {
|
|
35147
35149
|
s && (t && _.track("copy_transferBank", {
|
|
35148
35150
|
payment_method: "Transfer",
|
|
35149
35151
|
payment_process: "Payment Started",
|
|
@@ -35158,7 +35160,7 @@ class pa {
|
|
|
35158
35160
|
a.innerHTML.split(" ")[1].replace(/,/g, ""),
|
|
35159
35161
|
c
|
|
35160
35162
|
));
|
|
35161
|
-
}), l && (l.innerHTML =
|
|
35163
|
+
}), l && (l.innerHTML = Ie["made-transfer"], l.addEventListener("click", () => {
|
|
35162
35164
|
this.onAction(5), _.track("initiate_payment_verification", {
|
|
35163
35165
|
payment_method: "Transfer"
|
|
35164
35166
|
});
|
|
@@ -35325,7 +35327,7 @@ class Jd {
|
|
|
35325
35327
|
), i = this.container.querySelector(
|
|
35326
35328
|
"#account-details-text"
|
|
35327
35329
|
), s = this.container.querySelector("#please-wait-text"), a = this.container.querySelector("#minutes-text"), o = this.container.querySelector("#bankname-text"), c = this.container.querySelector("#beneficiary-text"), l = this.container.querySelector("#transfer-bank"), m = this.container.querySelector("#transfer-acn-pr"), p = this.container.querySelector("#copy-acn-pr"), y = this.container.querySelector("#acn-tooltip-pr");
|
|
35328
|
-
e && (e.innerHTML = P["confirming-txn-status"]), t && (t.innerHTML = P["few-minutes"]), s && (s.innerHTML = P["please-wait-for"]), a && (a.innerHTML = P.minutes), o && (o.innerHTML =
|
|
35330
|
+
e && (e.innerHTML = P["confirming-txn-status"]), t && (t.innerHTML = P["few-minutes"]), s && (s.innerHTML = P["please-wait-for"]), a && (a.innerHTML = P.minutes), o && (o.innerHTML = Ie["bank-name"]), c && (c.innerHTML = Ie.beneficiary), i && (i.innerHTML = Ie["account-details"]);
|
|
35329
35331
|
const b = this.container.querySelector("#show-acn");
|
|
35330
35332
|
b && b.addEventListener("click", () => {
|
|
35331
35333
|
this.onAction(1), clearTimeout(this.timer);
|
|
@@ -35445,7 +35447,7 @@ class Xd {
|
|
|
35445
35447
|
}
|
|
35446
35448
|
attachListeners() {
|
|
35447
35449
|
const e = this.container.querySelector("#payment-warning-text"), t = this.container.querySelector("#payment-warning-desc");
|
|
35448
|
-
e && (e.innerHTML =
|
|
35450
|
+
e && (e.innerHTML = Ie["account-expired"]), t && (t.innerHTML = Ie["account-expired-desc"]);
|
|
35449
35451
|
}
|
|
35450
35452
|
renderComponent() {
|
|
35451
35453
|
this.container.innerHTML = this.render();
|
|
@@ -35665,7 +35667,7 @@ class $d {
|
|
|
35665
35667
|
});
|
|
35666
35668
|
}
|
|
35667
35669
|
goBackToMerchant() {
|
|
35668
|
-
|
|
35670
|
+
Be(
|
|
35669
35671
|
this.paymentResponse,
|
|
35670
35672
|
this.paymentResponseHeaders,
|
|
35671
35673
|
this.callBackUrl
|
|
@@ -36745,7 +36747,7 @@ class hu {
|
|
|
36745
36747
|
"#tooltip-localCurrency-mob"
|
|
36746
36748
|
), z = this.container.querySelector(
|
|
36747
36749
|
"#select-payment-method-text"
|
|
36748
|
-
), G = this.container.querySelector("#amount-text"), Z = this.container.querySelector("#what-is-this"), ce = this.container.querySelector("#reflect"), xe = this.container.querySelector("#please-note"), j = this.container.querySelector("#what-is-this-mob"),
|
|
36750
|
+
), G = this.container.querySelector("#amount-text"), Z = this.container.querySelector("#what-is-this"), ce = this.container.querySelector("#reflect"), xe = this.container.querySelector("#please-note"), j = this.container.querySelector("#what-is-this-mob"), He = this.container.querySelector("#reflect-mob"), ve = this.container.querySelector("#please-note-mob"), Ke = this.container.querySelector("#to-pay-text"), Se = this.container.querySelector("#language-dropdown");
|
|
36749
36751
|
if (Se) {
|
|
36750
36752
|
const Je = this.currency === "USD" ? this.localCurrency : this.currency, Ln = (mn = is(
|
|
36751
36753
|
Je,
|
|
@@ -36767,7 +36769,7 @@ class hu {
|
|
|
36767
36769
|
}
|
|
36768
36770
|
});
|
|
36769
36771
|
}
|
|
36770
|
-
if (z && (z.innerHTML = W.select_payment_method_text), G && (G.innerHTML = `${W.amount}:`), Ke && (Ke.innerHTML = `${W["to-pay"]}:`), Z && (Z.innerHTML = P["what-is-this"]), ce && (ce.innerHTML = P["rate-reflect-note"]), xe && (xe.innerHTML = P["rate-please-note"]), j && (j.innerHTML = P["what-is-this"]),
|
|
36772
|
+
if (z && (z.innerHTML = W.select_payment_method_text), G && (G.innerHTML = `${W.amount}:`), Ke && (Ke.innerHTML = `${W["to-pay"]}:`), Z && (Z.innerHTML = P["what-is-this"]), ce && (ce.innerHTML = P["rate-reflect-note"]), xe && (xe.innerHTML = P["rate-please-note"]), j && (j.innerHTML = P["what-is-this"]), He && (He.innerHTML = P["rate-reflect-note"]), ve && (ve.innerHTML = P["rate-please-note"]), (Un = this.merchantDetail) != null && Un.merchantLogo ? t && t.setAttribute("src", (An = this.merchantDetail) == null ? void 0 : An.merchantLogo) : e && (t == null || t.remove(), e.innerHTML = `<div class="font-semibold text-tone-100 rounded-2xl w-8 h-8 bg-tone-10 container-center uppercase">${this.merchantDetail.merchantName[0]}</div>`), i && (i.innerHTML = this.email), s && (s.innerHTML = this.email), c) {
|
|
36771
36773
|
if ((pn = (Ge = this.merchantDetail) == null ? void 0 : Ge.plan) != null && pn.title) {
|
|
36772
36774
|
const Je = ((he = (Vn = this.merchantDetail) == null ? void 0 : Vn.plan) == null ? void 0 : he.title) || "";
|
|
36773
36775
|
c.textContent = li(Je);
|
|
@@ -37403,7 +37405,7 @@ class Cu {
|
|
|
37403
37405
|
_.track("redirect_to_merchant", {
|
|
37404
37406
|
payment_method: this.paymentMethod,
|
|
37405
37407
|
status: (a = this.paymentResponse) == null ? void 0 : a.status
|
|
37406
|
-
}),
|
|
37408
|
+
}), Be(
|
|
37407
37409
|
this.paymentResponse,
|
|
37408
37410
|
this.paymentResponseHeaders,
|
|
37409
37411
|
this.callBackUrl
|
|
@@ -37602,7 +37604,7 @@ class wu {
|
|
|
37602
37604
|
this.currentStep = 4, _.track("start_payment_success", {
|
|
37603
37605
|
payment_method: "Mobile Money",
|
|
37604
37606
|
verification_status: "Success"
|
|
37605
|
-
}),
|
|
37607
|
+
}), Be(c, l, c == null ? void 0 : c.callBackUrl);
|
|
37606
37608
|
return;
|
|
37607
37609
|
} else if (((m = c == null ? void 0 : c.authorization) == null ? void 0 : m.mode) === "otp") {
|
|
37608
37610
|
this.activeRef = c.reference;
|
|
@@ -37702,7 +37704,7 @@ class wu {
|
|
|
37702
37704
|
}
|
|
37703
37705
|
}
|
|
37704
37706
|
goBackToMerchant() {
|
|
37705
|
-
|
|
37707
|
+
Be(
|
|
37706
37708
|
this.paymentResponse,
|
|
37707
37709
|
this.paymentResponseHeaders,
|
|
37708
37710
|
this.callBackUrl
|
|
@@ -37952,7 +37954,7 @@ class ku {
|
|
|
37952
37954
|
this.pageLoader = new Ae(this.contents), this.pageLoader.mountLoader(), this.pageLoader.updateMessage(P["verify-payment"]);
|
|
37953
37955
|
}
|
|
37954
37956
|
goBackToMerchant() {
|
|
37955
|
-
|
|
37957
|
+
Be(
|
|
37956
37958
|
this.paymentResponse,
|
|
37957
37959
|
this.paymentResponseHeaders,
|
|
37958
37960
|
this.callBackUrl
|
|
@@ -38073,7 +38075,7 @@ class ku {
|
|
|
38073
38075
|
this.currentStep = 2, _.track("verify_payment", {
|
|
38074
38076
|
payment_method: "EFT",
|
|
38075
38077
|
verification_status: "Success"
|
|
38076
|
-
}),
|
|
38078
|
+
}), Be(
|
|
38077
38079
|
this.paymentResponse,
|
|
38078
38080
|
this.paymentResponseHeaders,
|
|
38079
38081
|
"success"
|
|
@@ -38278,7 +38280,7 @@ class ga {
|
|
|
38278
38280
|
copyToClipboard(e, t) {
|
|
38279
38281
|
const i = t.innerHTML;
|
|
38280
38282
|
navigator.clipboard.writeText(e).then(() => {
|
|
38281
|
-
t.innerHTML =
|
|
38283
|
+
t.innerHTML = Fe["copied-text"], setTimeout(() => {
|
|
38282
38284
|
t.innerHTML = i;
|
|
38283
38285
|
}, 1500);
|
|
38284
38286
|
}).catch(() => {
|
|
@@ -38300,10 +38302,10 @@ class ga {
|
|
|
38300
38302
|
), a = document.querySelector(
|
|
38301
38303
|
"#wallet-address-text"
|
|
38302
38304
|
);
|
|
38303
|
-
a && (a.textContent =
|
|
38305
|
+
a && (a.textContent = Fe["wallet-address"]), e && (e.textContent = Fe["select-asset"]), t && (t.textContent = Fe["select-chain"]), this.populateSelect(
|
|
38304
38306
|
i,
|
|
38305
38307
|
this.chainsList,
|
|
38306
|
-
|
|
38308
|
+
Fe["select-chain"]
|
|
38307
38309
|
);
|
|
38308
38310
|
const o = async () => {
|
|
38309
38311
|
if (this.chainsList.length === 0)
|
|
@@ -38323,7 +38325,7 @@ class ga {
|
|
|
38323
38325
|
this.populateSelect(
|
|
38324
38326
|
i,
|
|
38325
38327
|
this.chainsList,
|
|
38326
|
-
|
|
38328
|
+
Fe["select-chain"]
|
|
38327
38329
|
);
|
|
38328
38330
|
}, c = async () => {
|
|
38329
38331
|
if (this.assetList.length === 0)
|
|
@@ -38343,14 +38345,14 @@ class ga {
|
|
|
38343
38345
|
this.populateSelect(
|
|
38344
38346
|
s,
|
|
38345
38347
|
this.assetList,
|
|
38346
|
-
|
|
38348
|
+
Fe["select-asset"],
|
|
38347
38349
|
!0
|
|
38348
38350
|
);
|
|
38349
38351
|
};
|
|
38350
38352
|
o(), c();
|
|
38351
38353
|
const l = this.container.querySelector(
|
|
38352
38354
|
"#qr-code"
|
|
38353
|
-
), m = (y =
|
|
38355
|
+
), m = (y = Fe["payment-text"]) == null ? void 0 : y.replace("{amount}", `${this.amount.toString()} ${this.currency}`), p = async () => {
|
|
38354
38356
|
var w, f;
|
|
38355
38357
|
const b = i.value, g = s.value;
|
|
38356
38358
|
if (b && g) {
|
|
@@ -38369,7 +38371,7 @@ class ga {
|
|
|
38369
38371
|
|
|
38370
38372
|
|
|
38371
38373
|
<div class="relative w-full">
|
|
38372
|
-
<span class="absolute text-xs left-0 top-1 text-grey-100 pt-1 pb-1 px-3 tracking-[0.5px]" id="wallet-address-text">${
|
|
38374
|
+
<span class="absolute text-xs left-0 top-1 text-grey-100 pt-1 pb-1 px-3 tracking-[0.5px]" id="wallet-address-text">${Fe["wallet-address"]}</span>
|
|
38373
38375
|
<div>
|
|
38374
38376
|
<input class="chain-type mm-input-container appearance-none bg-[#F7F8FB] border-none pr-7" value="${S}" disabled></input>
|
|
38375
38377
|
</div>
|
|
@@ -38393,7 +38395,7 @@ class ga {
|
|
|
38393
38395
|
), L = l.querySelector(
|
|
38394
38396
|
"#wallet-address"
|
|
38395
38397
|
);
|
|
38396
|
-
L && (L.textContent =
|
|
38398
|
+
L && (L.textContent = Fe["copy-text"]), M && (M.textContent = Fe["payment-confirmation"]), M == null || M.addEventListener("click", async () => {
|
|
38397
38399
|
await this.onVerify();
|
|
38398
38400
|
}), L == null || L.addEventListener("click", () => {
|
|
38399
38401
|
this.copyToClipboard(S, L);
|
|
@@ -38473,7 +38475,7 @@ class ga {
|
|
|
38473
38475
|
this.currentStep = 2, _.track("start_payment_success", {
|
|
38474
38476
|
payment_method: "Mobile Money",
|
|
38475
38477
|
verification_status: "Success"
|
|
38476
|
-
}),
|
|
38478
|
+
}), Be(c, l, c == null ? void 0 : c.callBackUrl);
|
|
38477
38479
|
else
|
|
38478
38480
|
return;
|
|
38479
38481
|
}).catch(async (c) => {
|
|
@@ -38686,7 +38688,7 @@ class _u {
|
|
|
38686
38688
|
_.track("redirect_to_merchant", {
|
|
38687
38689
|
payment_method: this.paymentMethod,
|
|
38688
38690
|
status: (t = this.paymentResponse) == null ? void 0 : t.status
|
|
38689
|
-
}),
|
|
38691
|
+
}), Be(
|
|
38690
38692
|
this.paymentResponse,
|
|
38691
38693
|
this.paymentResponseHeaders,
|
|
38692
38694
|
this.callBackUrl
|
|
@@ -38768,7 +38770,7 @@ class Eu {
|
|
|
38768
38770
|
t && (t.textContent = e);
|
|
38769
38771
|
}
|
|
38770
38772
|
goBackToMerchant() {
|
|
38771
|
-
|
|
38773
|
+
Be(
|
|
38772
38774
|
this.paymentResponse,
|
|
38773
38775
|
this.paymentResponseHeaders,
|
|
38774
38776
|
this.callBackUrl
|
|
@@ -38788,7 +38790,7 @@ class Eu {
|
|
|
38788
38790
|
t === "successful" ? (this.currentStep = 2, _.track("verify_payment", {
|
|
38789
38791
|
payment_method: "Stablecoins",
|
|
38790
38792
|
verification_status: "Success"
|
|
38791
|
-
}),
|
|
38793
|
+
}), Be(
|
|
38792
38794
|
this.paymentResponse,
|
|
38793
38795
|
this.paymentResponseHeaders,
|
|
38794
38796
|
"success"
|
|
@@ -38894,7 +38896,7 @@ class Eu {
|
|
|
38894
38896
|
ref: this.reference,
|
|
38895
38897
|
onSuccess: () => {
|
|
38896
38898
|
this.currentStep = 2, setTimeout(() => {
|
|
38897
|
-
|
|
38899
|
+
Be(
|
|
38898
38900
|
this.paymentResponse,
|
|
38899
38901
|
this.paymentResponseHeaders,
|
|
38900
38902
|
"success"
|
|
@@ -39066,7 +39068,7 @@ class Iu {
|
|
|
39066
39068
|
this.pageLoader = new Ae(this.contents), this.pageLoader.mountLoader(), this.pageLoader.updateMessage(P["verify-payment"]);
|
|
39067
39069
|
}
|
|
39068
39070
|
goBackToMerchant() {
|
|
39069
|
-
|
|
39071
|
+
Be(
|
|
39070
39072
|
this.paymentResponse,
|
|
39071
39073
|
this.paymentResponseHeaders,
|
|
39072
39074
|
this.callBackUrl
|
|
@@ -39197,7 +39199,7 @@ class Iu {
|
|
|
39197
39199
|
this.currentStep = 2, _.track("verify_payment", {
|
|
39198
39200
|
payment_method: "OPAY",
|
|
39199
39201
|
verification_status: "Success"
|
|
39200
|
-
}),
|
|
39202
|
+
}), Be(
|
|
39201
39203
|
this.paymentResponse,
|
|
39202
39204
|
this.paymentResponseHeaders,
|
|
39203
39205
|
"success"
|