@spot-flow/checkout-inline-js 0.1.42 → 0.1.43-dev.1
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 +926 -906
- package/dist/checkout-inline.js +525 -525
- package/dist/views/mobile-money/mobile-money-confirmation-end.d.ts +2 -0
- package/dist/views/shared/main-footer.d.ts +1 -1
- package/dist/views/transfer/transfer-confirmation-end.d.ts +2 -0
- package/package.json +1 -1
|
@@ -63,9 +63,9 @@ const Oe = (n, e, i) => {
|
|
|
63
63
|
throw new Be("Missing authorization token");
|
|
64
64
|
const t = new Headers();
|
|
65
65
|
return i || t.append("Content-Type", "application/json"), t.append("Authorization", `Bearer ${n}`), e && t.append("Spotflow-Payment-Code", e), t;
|
|
66
|
-
},
|
|
66
|
+
}, Ue = "https://api.spotflow.co/api/v1", fr = async (n, e, i, t) => {
|
|
67
67
|
try {
|
|
68
|
-
const s = Oe(n, i), o = await fetch(`${fe(
|
|
68
|
+
const s = Oe(n, i), o = await fetch(`${fe(Ue, t)}/payments`, {
|
|
69
69
|
method: "POST",
|
|
70
70
|
headers: s,
|
|
71
71
|
body: JSON.stringify(e)
|
|
@@ -84,7 +84,7 @@ const Oe = (n, e, i) => {
|
|
|
84
84
|
}, yi = async (n, e, i, t) => {
|
|
85
85
|
try {
|
|
86
86
|
const s = Oe(n, i), o = await fetch(
|
|
87
|
-
`${fe(
|
|
87
|
+
`${fe(Ue, t)}/payments/authorize`,
|
|
88
88
|
{
|
|
89
89
|
method: "POST",
|
|
90
90
|
headers: s,
|
|
@@ -104,7 +104,7 @@ const Oe = (n, e, i) => {
|
|
|
104
104
|
}
|
|
105
105
|
}, Ts = async (n, e, i, t) => {
|
|
106
106
|
try {
|
|
107
|
-
const s = Oe(n, i), o = await fetch(`${fe(
|
|
107
|
+
const s = Oe(n, i), o = await fetch(`${fe(Ue, t)}/payments`, {
|
|
108
108
|
method: "POST",
|
|
109
109
|
headers: s,
|
|
110
110
|
body: JSON.stringify(e)
|
|
@@ -122,7 +122,7 @@ const Oe = (n, e, i) => {
|
|
|
122
122
|
}
|
|
123
123
|
}, gr = async (n, e, i, t) => {
|
|
124
124
|
try {
|
|
125
|
-
const s = Oe(n, i), o = await fetch(`${fe(
|
|
125
|
+
const s = Oe(n, i), o = await fetch(`${fe(Ue, t)}/payments`, {
|
|
126
126
|
method: "POST",
|
|
127
127
|
headers: s,
|
|
128
128
|
body: JSON.stringify(e)
|
|
@@ -141,7 +141,7 @@ const Oe = (n, e, i) => {
|
|
|
141
141
|
}, cn = async (n, e, i, t, s) => {
|
|
142
142
|
try {
|
|
143
143
|
const o = Oe(n, t), a = await fetch(
|
|
144
|
-
`${fe(
|
|
144
|
+
`${fe(Ue, s)}/payments/verify?reference=${e}`,
|
|
145
145
|
{
|
|
146
146
|
method: "GET",
|
|
147
147
|
headers: o,
|
|
@@ -164,7 +164,7 @@ async function yr(n, e, i, t, s) {
|
|
|
164
164
|
const o = Oe(n, i);
|
|
165
165
|
try {
|
|
166
166
|
const a = await fetch(
|
|
167
|
-
`${fe(
|
|
167
|
+
`${fe(Ue, t)}/mobile-money/providers?currency=${s || e}`,
|
|
168
168
|
{
|
|
169
169
|
headers: o,
|
|
170
170
|
method: "GET"
|
|
@@ -182,7 +182,7 @@ async function yr(n, e, i, t, s) {
|
|
|
182
182
|
const Cr = async (n, e, i, t) => {
|
|
183
183
|
try {
|
|
184
184
|
const s = Oe(n, i), o = await fetch(
|
|
185
|
-
`${fe(
|
|
185
|
+
`${fe(Ue, t)}/payments/cancel`,
|
|
186
186
|
{
|
|
187
187
|
method: "POST",
|
|
188
188
|
headers: s,
|
|
@@ -202,7 +202,7 @@ const Cr = async (n, e, i, t) => {
|
|
|
202
202
|
}, Sr = async (n, e, i, t) => {
|
|
203
203
|
try {
|
|
204
204
|
const s = Oe(n, i, !0), o = await fetch(
|
|
205
|
-
`${fe(
|
|
205
|
+
`${fe(Ue, t)}/disputes/upload-documents`,
|
|
206
206
|
{
|
|
207
207
|
method: "POST",
|
|
208
208
|
headers: s,
|
|
@@ -220,7 +220,7 @@ const Cr = async (n, e, i, t) => {
|
|
|
220
220
|
}, kr = async (n, e, i, t) => {
|
|
221
221
|
try {
|
|
222
222
|
const s = Oe(n, i), o = await fetch(
|
|
223
|
-
`${fe(
|
|
223
|
+
`${fe(Ue, t)}/disputes/reference`,
|
|
224
224
|
{
|
|
225
225
|
method: "POST",
|
|
226
226
|
headers: s,
|
|
@@ -235,9 +235,9 @@ const Cr = async (n, e, i, t) => {
|
|
|
235
235
|
} catch (s) {
|
|
236
236
|
throw s instanceof X ? console.error(`FetchError: ${s.message} (status: ${s.status})`) : s instanceof Be ? console.error(`AuthorizationError: ${s.message}`) : console.error(`Unexpected error: ${s}`), s;
|
|
237
237
|
}
|
|
238
|
-
},
|
|
238
|
+
}, Ri = async (n, e, i, t) => {
|
|
239
239
|
try {
|
|
240
|
-
const s = Oe(n, i), o = await fetch(`${fe(
|
|
240
|
+
const s = Oe(n, i), o = await fetch(`${fe(Ue, t)}/payments/retry`, {
|
|
241
241
|
method: "POST",
|
|
242
242
|
headers: s,
|
|
243
243
|
body: JSON.stringify(e)
|
|
@@ -257,7 +257,7 @@ const Cr = async (n, e, i, t) => {
|
|
|
257
257
|
async function wr(n, e, i, t, s) {
|
|
258
258
|
try {
|
|
259
259
|
const o = Oe(n, t), a = await fetch(
|
|
260
|
-
`${fe(
|
|
260
|
+
`${fe(Ue, s)}/payments/tax-quotes?amount=${e || ""}¤cy=${i || ""}`,
|
|
261
261
|
{
|
|
262
262
|
headers: o,
|
|
263
263
|
method: "GET"
|
|
@@ -342,7 +342,7 @@ const Le = (n, e) => {
|
|
|
342
342
|
}
|
|
343
343
|
};
|
|
344
344
|
be.card.label, be.card.icon, be.card.key, be.bank_transfer.label, be.bank_transfer.icon, be.bank_transfer.key, be.ussd.label, be.ussd.icon, be.ussd.key, be.mobile_money.label, be.mobile_money.icon, be.mobile_money.key, be.eft.label, be.eft.icon, be.eft.key;
|
|
345
|
-
const
|
|
345
|
+
const Qt = [
|
|
346
346
|
{
|
|
347
347
|
name: "MasterCard",
|
|
348
348
|
icon: `<svg width="24" height="14" viewBox="0 0 24 14" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
@@ -914,8 +914,8 @@ const Yt = [
|
|
|
914
914
|
</div>`, Mr = () => {
|
|
915
915
|
const n = Date.now().toString(36), e = "xxxx-xxxx-xxx-xxxx".replace(/[x]/g, () => Math.floor(Math.random() * 16).toString(16));
|
|
916
916
|
return `SPF-${n}-${e}`.toUpperCase();
|
|
917
|
-
},
|
|
918
|
-
const e =
|
|
917
|
+
}, wi = (n = "") => n.replace(/\D+/g, ""), Ar = (n) => n.replace(/\D/g, ""), Lr = (n) => n.replace(/\D/g, "").replace(/(\d{4})(?=\d)/g, "$1 ").trim(), xr = (n) => wi(n).slice(0, 3), Tr = (n) => {
|
|
918
|
+
const e = wi(n);
|
|
919
919
|
return e.length >= 3 ? `${e.slice(0, 2)}/${e.slice(2, 4)}` : e;
|
|
920
920
|
}, Yn = (n) => {
|
|
921
921
|
const e = Math.floor(n / 60), i = n % 60;
|
|
@@ -975,8 +975,8 @@ h(ln, "removeToast", (e) => {
|
|
|
975
975
|
e.parentElement && e.parentElement.removeChild(e);
|
|
976
976
|
});
|
|
977
977
|
});
|
|
978
|
-
let
|
|
979
|
-
class
|
|
978
|
+
let _i = ln;
|
|
979
|
+
class Xt {
|
|
980
980
|
constructor(e) {
|
|
981
981
|
h(this, "container");
|
|
982
982
|
h(this, "onAction");
|
|
@@ -984,7 +984,7 @@ class Qt {
|
|
|
984
984
|
h(this, "creditCardTypes");
|
|
985
985
|
h(this, "merchantName");
|
|
986
986
|
h(this, "currency");
|
|
987
|
-
this.container = e.container, this.onAction = e.onAction, this.creditCardTypes = [...
|
|
987
|
+
this.container = e.container, this.onAction = e.onAction, this.creditCardTypes = [...Qt], this.cardDetailsValues = {
|
|
988
988
|
number: "",
|
|
989
989
|
expiry: "",
|
|
990
990
|
cvv: "",
|
|
@@ -1133,7 +1133,7 @@ class Qt {
|
|
|
1133
1133
|
});
|
|
1134
1134
|
}
|
|
1135
1135
|
filterCreditCardType(e) {
|
|
1136
|
-
e ? (this.creditCardTypes =
|
|
1136
|
+
e ? (this.creditCardTypes = Qt.filter(
|
|
1137
1137
|
(i) => i.name === Er(e)
|
|
1138
1138
|
), this.displayCardTypes()) : (this.creditCardTypes = [], this.displayCardTypes());
|
|
1139
1139
|
}
|
|
@@ -1547,7 +1547,7 @@ const Or = `<form id="card-avs-form">
|
|
|
1547
1547
|
<p class="text-xxs text-grey-100">
|
|
1548
1548
|
PCI DSS Certified
|
|
1549
1549
|
</p>
|
|
1550
|
-
</div>`,
|
|
1550
|
+
</div>`, Ur = [
|
|
1551
1551
|
{
|
|
1552
1552
|
code2: "AF",
|
|
1553
1553
|
code3: "AFG",
|
|
@@ -23567,8 +23567,8 @@ const Or = `<form id="card-avs-form">
|
|
|
23567
23567
|
}
|
|
23568
23568
|
]
|
|
23569
23569
|
}
|
|
23570
|
-
],
|
|
23571
|
-
countries:
|
|
23570
|
+
], Vr = {
|
|
23571
|
+
countries: Ur
|
|
23572
23572
|
};
|
|
23573
23573
|
class Kr {
|
|
23574
23574
|
constructor(e) {
|
|
@@ -23577,7 +23577,7 @@ class Kr {
|
|
|
23577
23577
|
h(this, "contactDetails");
|
|
23578
23578
|
h(this, "countries", []);
|
|
23579
23579
|
h(this, "states", []);
|
|
23580
|
-
this.container = e.container, this.onAction = e.onAction, this.countries =
|
|
23580
|
+
this.container = e.container, this.onAction = e.onAction, this.countries = Vr.countries.map((i) => ({
|
|
23581
23581
|
label: i.name,
|
|
23582
23582
|
value: i.name,
|
|
23583
23583
|
// @ts-ignore
|
|
@@ -23641,7 +23641,7 @@ class Kr {
|
|
|
23641
23641
|
t.appendChild(v);
|
|
23642
23642
|
})));
|
|
23643
23643
|
}
|
|
23644
|
-
if (o === "state" && (this.contactDetails.state = a), o === "city" && (this.contactDetails.city = a), o === "code" && (this.contactDetails.code =
|
|
23644
|
+
if (o === "state" && (this.contactDetails.state = a), o === "city" && (this.contactDetails.city = a), o === "code" && (this.contactDetails.code = wi(a), l = wi(a)), s.value = l, this.validateCard())
|
|
23645
23645
|
i && i.removeAttribute("disabled");
|
|
23646
23646
|
else if (i) {
|
|
23647
23647
|
if (i.disabled)
|
|
@@ -24047,7 +24047,7 @@ function nn(n, e, i) {
|
|
|
24047
24047
|
o.searchParams.append("status", n.status), o.searchParams.append("reference", n.reference), window.location.href = o.toString();
|
|
24048
24048
|
}, 1800);
|
|
24049
24049
|
}
|
|
24050
|
-
class
|
|
24050
|
+
class Oi {
|
|
24051
24051
|
constructor(e) {
|
|
24052
24052
|
h(this, "container");
|
|
24053
24053
|
h(this, "transactionIssuesForm");
|
|
@@ -24198,7 +24198,7 @@ function Wr(n) {
|
|
|
24198
24198
|
const i = ["@import", `url(${JSON.stringify(n.href)})`];
|
|
24199
24199
|
return n.layerName === "" ? i.push("layer") : n.layerName && i.push(`layer(${n.layerName})`), n.supportsText && i.push(`supports(${n.supportsText})`), n.media.length && i.push(n.media.mediaText), i.join(" ") + ";";
|
|
24200
24200
|
}
|
|
24201
|
-
function
|
|
24201
|
+
function Mi(n) {
|
|
24202
24202
|
try {
|
|
24203
24203
|
const e = n.rules || n.cssRules;
|
|
24204
24204
|
return e ? zr(Array.from(e, Ps).join("")) : null;
|
|
@@ -24210,7 +24210,7 @@ function Ps(n) {
|
|
|
24210
24210
|
let e;
|
|
24211
24211
|
if (Jr(n))
|
|
24212
24212
|
try {
|
|
24213
|
-
e =
|
|
24213
|
+
e = Mi(n.styleSheet) || Wr(n);
|
|
24214
24214
|
} catch {
|
|
24215
24215
|
}
|
|
24216
24216
|
else if ($r(n) && n.selectorText.includes(":"))
|
|
@@ -24276,7 +24276,7 @@ class Is {
|
|
|
24276
24276
|
function Yr() {
|
|
24277
24277
|
return new Is();
|
|
24278
24278
|
}
|
|
24279
|
-
function
|
|
24279
|
+
function vt({ element: n, maskInputOptions: e, tagName: i, type: t, value: s, maskInputFn: o }) {
|
|
24280
24280
|
let a = s || "";
|
|
24281
24281
|
const l = t && _n(t);
|
|
24282
24282
|
return (e[i.toLowerCase()] || l && e[l]) && (o ? a = o(a, n) : a = "*".repeat(a.length)), a;
|
|
@@ -24284,7 +24284,7 @@ function mt({ element: n, maskInputOptions: e, tagName: i, type: t, value: s, ma
|
|
|
24284
24284
|
function _n(n) {
|
|
24285
24285
|
return n.toLowerCase();
|
|
24286
24286
|
}
|
|
24287
|
-
const
|
|
24287
|
+
const es = "__rrweb_original__";
|
|
24288
24288
|
function Qr(n) {
|
|
24289
24289
|
const e = n.getContext("2d");
|
|
24290
24290
|
if (!e)
|
|
@@ -24292,13 +24292,13 @@ function Qr(n) {
|
|
|
24292
24292
|
const i = 50;
|
|
24293
24293
|
for (let t = 0; t < n.width; t += i)
|
|
24294
24294
|
for (let s = 0; s < n.height; s += i) {
|
|
24295
|
-
const o = e.getImageData, a =
|
|
24295
|
+
const o = e.getImageData, a = es in o ? o[es] : o;
|
|
24296
24296
|
if (new Uint32Array(a.call(e, t, s, Math.min(i, n.width - t), Math.min(i, n.height - s)).data.buffer).some((d) => d !== 0))
|
|
24297
24297
|
return !1;
|
|
24298
24298
|
}
|
|
24299
24299
|
return !0;
|
|
24300
24300
|
}
|
|
24301
|
-
function
|
|
24301
|
+
function pt(n) {
|
|
24302
24302
|
const e = n.type;
|
|
24303
24303
|
return n.hasAttribute("data-rr-is-password") ? "password" : e ? _n(e) : null;
|
|
24304
24304
|
}
|
|
@@ -24328,9 +24328,9 @@ function il(n) {
|
|
|
24328
24328
|
let e = "";
|
|
24329
24329
|
return n.indexOf("//") > -1 ? e = n.split("/").slice(0, 3).join("/") : e = n.split("/")[0], e = e.split("?")[0], e;
|
|
24330
24330
|
}
|
|
24331
|
-
let Tn,
|
|
24331
|
+
let Tn, ns;
|
|
24332
24332
|
const tl = /url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm, sl = /^(?:[a-z+]+:)?\/\//i, ol = /^www\..*/i, al = /^(data:)([^,]*),(.*)/i;
|
|
24333
|
-
function
|
|
24333
|
+
function Ai(n, e) {
|
|
24334
24334
|
return (n || "").replace(tl, (i, t, s, o, a, l) => {
|
|
24335
24335
|
const d = s || a || l, p = t || o || "";
|
|
24336
24336
|
if (!d)
|
|
@@ -24393,12 +24393,12 @@ function In(n, e) {
|
|
|
24393
24393
|
function ul(n) {
|
|
24394
24394
|
return !!(n.tagName === "svg" || n.ownerSVGElement);
|
|
24395
24395
|
}
|
|
24396
|
-
function
|
|
24396
|
+
function bt() {
|
|
24397
24397
|
const n = document.createElement("a");
|
|
24398
24398
|
return n.href = "", n.href;
|
|
24399
24399
|
}
|
|
24400
24400
|
function Bs(n, e, i, t) {
|
|
24401
|
-
return t && (i === "src" || i === "href" && !(e === "use" && t[0] === "#") || i === "xlink:href" && t[0] !== "#" || i === "background" && (e === "table" || e === "td" || e === "th") ? In(n, t) : i === "srcset" ? dl(n, t) : i === "style" ?
|
|
24401
|
+
return t && (i === "src" || i === "href" && !(e === "use" && t[0] === "#") || i === "xlink:href" && t[0] !== "#" || i === "background" && (e === "table" || e === "td" || e === "th") ? In(n, t) : i === "srcset" ? dl(n, t) : i === "style" ? Ai(t, bt()) : e === "object" && i === "data" ? In(n, t) : t);
|
|
24402
24402
|
}
|
|
24403
24403
|
function Hs(n, e, i) {
|
|
24404
24404
|
return (n === "video" || n === "audio") && e === "autoplay";
|
|
@@ -24420,17 +24420,17 @@ function cl(n, e, i) {
|
|
|
24420
24420
|
}
|
|
24421
24421
|
return !1;
|
|
24422
24422
|
}
|
|
24423
|
-
function
|
|
24423
|
+
function Li(n, e, i) {
|
|
24424
24424
|
if (!n)
|
|
24425
24425
|
return !1;
|
|
24426
24426
|
if (n.nodeType !== n.ELEMENT_NODE)
|
|
24427
|
-
return i ?
|
|
24427
|
+
return i ? Li(n.parentNode, e, i) : !1;
|
|
24428
24428
|
for (let t = n.classList.length; t--; ) {
|
|
24429
24429
|
const s = n.classList[t];
|
|
24430
24430
|
if (e.test(s))
|
|
24431
24431
|
return !0;
|
|
24432
24432
|
}
|
|
24433
|
-
return i ?
|
|
24433
|
+
return i ? Li(n.parentNode, e, i) : !1;
|
|
24434
24434
|
}
|
|
24435
24435
|
function Rs(n, e, i, t) {
|
|
24436
24436
|
try {
|
|
@@ -24443,7 +24443,7 @@ function Rs(n, e, i, t) {
|
|
|
24443
24443
|
return !0;
|
|
24444
24444
|
} else if (s.classList.contains(e))
|
|
24445
24445
|
return !0;
|
|
24446
|
-
} else if (
|
|
24446
|
+
} else if (Li(s, e, t))
|
|
24447
24447
|
return !0;
|
|
24448
24448
|
if (i) {
|
|
24449
24449
|
if (t) {
|
|
@@ -24566,11 +24566,11 @@ function bl(n, e) {
|
|
|
24566
24566
|
const d = a === "STYLE" ? !0 : void 0, p = a === "SCRIPT" ? !0 : void 0;
|
|
24567
24567
|
if (d && l) {
|
|
24568
24568
|
try {
|
|
24569
|
-
n.nextSibling || n.previousSibling || !((i = n.parentNode.sheet) === null || i === void 0) && i.cssRules && (l =
|
|
24569
|
+
n.nextSibling || n.previousSibling || !((i = n.parentNode.sheet) === null || i === void 0) && i.cssRules && (l = Mi(n.parentNode.sheet));
|
|
24570
24570
|
} catch (v) {
|
|
24571
24571
|
console.warn(`Cannot get CSS styles from text's parentNode. Error: ${v}`, n);
|
|
24572
24572
|
}
|
|
24573
|
-
l =
|
|
24573
|
+
l = Ai(l, bt());
|
|
24574
24574
|
}
|
|
24575
24575
|
return p && (l = "SCRIPT_PLACEHOLDER"), !d && !p && l && t && (l = s ? s(l, n.parentElement) : l.replace(/[\S]/g, "*")), {
|
|
24576
24576
|
type: ve.Text,
|
|
@@ -24590,17 +24590,17 @@ function fl(n, e) {
|
|
|
24590
24590
|
if (C === "link" && o) {
|
|
24591
24591
|
const _ = Array.from(i.styleSheets).find((I) => I.href === n.href);
|
|
24592
24592
|
let T = null;
|
|
24593
|
-
_ && (T =
|
|
24593
|
+
_ && (T = Mi(_)), T && (delete w.rel, delete w.href, w._cssText = Ai(T, _.href));
|
|
24594
24594
|
}
|
|
24595
24595
|
if (C === "style" && n.sheet && !(n.innerText || n.textContent || "").trim().length) {
|
|
24596
|
-
const _ =
|
|
24597
|
-
_ && (w._cssText =
|
|
24596
|
+
const _ = Mi(n.sheet);
|
|
24597
|
+
_ && (w._cssText = Ai(_, bt()));
|
|
24598
24598
|
}
|
|
24599
24599
|
if (C === "input" || C === "textarea" || C === "select") {
|
|
24600
24600
|
const _ = n.value, T = n.checked;
|
|
24601
|
-
w.type !== "radio" && w.type !== "checkbox" && w.type !== "submit" && w.type !== "button" && _ ? w.value =
|
|
24601
|
+
w.type !== "radio" && w.type !== "checkbox" && w.type !== "submit" && w.type !== "button" && _ ? w.value = vt({
|
|
24602
24602
|
element: n,
|
|
24603
|
-
type:
|
|
24603
|
+
type: pt(n),
|
|
24604
24604
|
tagName: C,
|
|
24605
24605
|
value: _,
|
|
24606
24606
|
maskInputOptions: a,
|
|
@@ -24618,13 +24618,13 @@ function fl(n, e) {
|
|
|
24618
24618
|
}
|
|
24619
24619
|
}
|
|
24620
24620
|
if (C === "img" && p) {
|
|
24621
|
-
Tn || (Tn = i.createElement("canvas"),
|
|
24621
|
+
Tn || (Tn = i.createElement("canvas"), ns = Tn.getContext("2d"));
|
|
24622
24622
|
const _ = n, T = _.crossOrigin;
|
|
24623
24623
|
_.crossOrigin = "anonymous";
|
|
24624
24624
|
const I = () => {
|
|
24625
24625
|
_.removeEventListener("load", I);
|
|
24626
24626
|
try {
|
|
24627
|
-
Tn.width = _.naturalWidth, Tn.height = _.naturalHeight,
|
|
24627
|
+
Tn.width = _.naturalWidth, Tn.height = _.naturalHeight, ns.drawImage(_, 0, 0), w.rr_dataURL = Tn.toDataURL(d.type, d.quality);
|
|
24628
24628
|
} catch (K) {
|
|
24629
24629
|
console.warn(`Cannot inline img src=${_.currentSrc}! Error: ${K}`);
|
|
24630
24630
|
}
|
|
@@ -24691,14 +24691,14 @@ function gl(n, e) {
|
|
|
24691
24691
|
}
|
|
24692
24692
|
function Dn(n, e) {
|
|
24693
24693
|
const { doc: i, mirror: t, blockClass: s, blockSelector: o, maskTextClass: a, maskTextSelector: l, skipChild: d = !1, inlineStylesheet: p = !0, maskInputOptions: v = {}, maskTextFn: g, maskInputFn: f, slimDOMOptions: y, dataURLOptions: k = {}, inlineImages: C = !1, recordCanvas: w = !1, onSerialize: M, onIframeLoad: A, iframeLoadTimeout: _ = 5e3, onStylesheetLoad: T, stylesheetLoadTimeout: I = 5e3, keepIframeSrcFn: K = () => !1, newlyAddedElement: G = !1 } = e;
|
|
24694
|
-
let { needsMask:
|
|
24695
|
-
!
|
|
24694
|
+
let { needsMask: U } = e, { preserveWhiteSpace: j = !0 } = e;
|
|
24695
|
+
!U && n.childNodes && (U = Rs(n, a, l, U === void 0));
|
|
24696
24696
|
const te = vl(n, {
|
|
24697
24697
|
doc: i,
|
|
24698
24698
|
mirror: t,
|
|
24699
24699
|
blockClass: s,
|
|
24700
24700
|
blockSelector: o,
|
|
24701
|
-
needsMask:
|
|
24701
|
+
needsMask: U,
|
|
24702
24702
|
inlineStylesheet: p,
|
|
24703
24703
|
maskInputOptions: v,
|
|
24704
24704
|
maskTextFn: g,
|
|
@@ -24713,24 +24713,24 @@ function Dn(n, e) {
|
|
|
24713
24713
|
return console.warn(n, "not serialized"), null;
|
|
24714
24714
|
let ge;
|
|
24715
24715
|
t.hasNode(n) ? ge = t.getId(n) : gl(te, y) || !j && te.type === ve.Text && !te.isStyle && !te.textContent.replace(/^\s+|\s+$/gm, "").length ? ge = Qn : ge = Ns();
|
|
24716
|
-
const
|
|
24717
|
-
if (t.add(n,
|
|
24716
|
+
const V = Object.assign(te, { id: ge });
|
|
24717
|
+
if (t.add(n, V), ge === Qn)
|
|
24718
24718
|
return null;
|
|
24719
24719
|
M && M(n);
|
|
24720
24720
|
let ke = !d;
|
|
24721
|
-
if (
|
|
24722
|
-
ke = ke && !
|
|
24721
|
+
if (V.type === ve.Element) {
|
|
24722
|
+
ke = ke && !V.needBlock, delete V.needBlock;
|
|
24723
24723
|
const le = n.shadowRoot;
|
|
24724
|
-
le && Wn(le) && (
|
|
24724
|
+
le && Wn(le) && (V.isShadowHost = !0);
|
|
24725
24725
|
}
|
|
24726
|
-
if ((
|
|
24727
|
-
y.headWhitespace &&
|
|
24726
|
+
if ((V.type === ve.Document || V.type === ve.Element) && ke) {
|
|
24727
|
+
y.headWhitespace && V.type === ve.Element && V.tagName === "head" && (j = !1);
|
|
24728
24728
|
const le = {
|
|
24729
24729
|
doc: i,
|
|
24730
24730
|
mirror: t,
|
|
24731
24731
|
blockClass: s,
|
|
24732
24732
|
blockSelector: o,
|
|
24733
|
-
needsMask:
|
|
24733
|
+
needsMask: U,
|
|
24734
24734
|
maskTextClass: a,
|
|
24735
24735
|
maskTextSelector: l,
|
|
24736
24736
|
skipChild: d,
|
|
@@ -24750,17 +24750,17 @@ function Dn(n, e) {
|
|
|
24750
24750
|
stylesheetLoadTimeout: I,
|
|
24751
24751
|
keepIframeSrcFn: K
|
|
24752
24752
|
};
|
|
24753
|
-
if (!(
|
|
24753
|
+
if (!(V.type === ve.Element && V.tagName === "textarea" && V.attributes.value !== void 0)) for (const xe of Array.from(n.childNodes)) {
|
|
24754
24754
|
const we = Dn(xe, le);
|
|
24755
|
-
we &&
|
|
24755
|
+
we && V.childNodes.push(we);
|
|
24756
24756
|
}
|
|
24757
24757
|
if (qr(n) && n.shadowRoot)
|
|
24758
24758
|
for (const xe of Array.from(n.shadowRoot.childNodes)) {
|
|
24759
24759
|
const we = Dn(xe, le);
|
|
24760
|
-
we && (Wn(n.shadowRoot) && (we.isShadow = !0),
|
|
24760
|
+
we && (Wn(n.shadowRoot) && (we.isShadow = !0), V.childNodes.push(we));
|
|
24761
24761
|
}
|
|
24762
24762
|
}
|
|
24763
|
-
return n.parentNode && zn(n.parentNode) && Wn(n.parentNode) && (
|
|
24763
|
+
return n.parentNode && zn(n.parentNode) && Wn(n.parentNode) && (V.isShadow = !0), V.type === ve.Element && V.tagName === "iframe" && hl(n, () => {
|
|
24764
24764
|
const le = n.contentDocument;
|
|
24765
24765
|
if (le && A) {
|
|
24766
24766
|
const xe = Dn(le, {
|
|
@@ -24768,7 +24768,7 @@ function Dn(n, e) {
|
|
|
24768
24768
|
mirror: t,
|
|
24769
24769
|
blockClass: s,
|
|
24770
24770
|
blockSelector: o,
|
|
24771
|
-
needsMask:
|
|
24771
|
+
needsMask: U,
|
|
24772
24772
|
maskTextClass: a,
|
|
24773
24773
|
maskTextSelector: l,
|
|
24774
24774
|
skipChild: !1,
|
|
@@ -24790,14 +24790,14 @@ function Dn(n, e) {
|
|
|
24790
24790
|
});
|
|
24791
24791
|
xe && A(n, xe);
|
|
24792
24792
|
}
|
|
24793
|
-
}, _),
|
|
24793
|
+
}, _), V.type === ve.Element && V.tagName === "link" && typeof V.attributes.rel == "string" && (V.attributes.rel === "stylesheet" || V.attributes.rel === "preload" && typeof V.attributes.href == "string" && Ds(V.attributes.href) === "css") && ml(n, () => {
|
|
24794
24794
|
if (T) {
|
|
24795
24795
|
const le = Dn(n, {
|
|
24796
24796
|
doc: i,
|
|
24797
24797
|
mirror: t,
|
|
24798
24798
|
blockClass: s,
|
|
24799
24799
|
blockSelector: o,
|
|
24800
|
-
needsMask:
|
|
24800
|
+
needsMask: U,
|
|
24801
24801
|
maskTextClass: a,
|
|
24802
24802
|
maskTextSelector: l,
|
|
24803
24803
|
skipChild: !1,
|
|
@@ -24819,7 +24819,7 @@ function Dn(n, e) {
|
|
|
24819
24819
|
});
|
|
24820
24820
|
le && T(n, le);
|
|
24821
24821
|
}
|
|
24822
|
-
}, I),
|
|
24822
|
+
}, I), V;
|
|
24823
24823
|
}
|
|
24824
24824
|
function yl(n, e) {
|
|
24825
24825
|
const { mirror: i = new Is(), blockClass: t = "rr-block", blockSelector: s = null, maskTextClass: o = "rr-mask", maskTextSelector: a = null, inlineStylesheet: l = !0, inlineImages: d = !1, recordCanvas: p = !1, maskAllInputs: v = !1, maskTextFn: g, maskInputFn: f, slimDOM: y = !1, dataURLOptions: k, preserveWhiteSpace: C, onSerialize: w, onIframeLoad: M, iframeLoadTimeout: A, onStylesheetLoad: _, stylesheetLoadTimeout: T, keepIframeSrcFn: I = () => !1 } = e || {};
|
|
@@ -24886,7 +24886,7 @@ function _e(n, e, i = document) {
|
|
|
24886
24886
|
const Pn = `Please stop import mirror directly. Instead of that,\r
|
|
24887
24887
|
now you can use replayer.getMirror() to access the mirror instance of a replayer,\r
|
|
24888
24888
|
or you can use record.mirror to access the mirror instance during recording.`;
|
|
24889
|
-
let
|
|
24889
|
+
let is = {
|
|
24890
24890
|
map: {},
|
|
24891
24891
|
getId() {
|
|
24892
24892
|
return console.error(Pn), -1;
|
|
@@ -24904,7 +24904,7 @@ let ns = {
|
|
|
24904
24904
|
console.error(Pn);
|
|
24905
24905
|
}
|
|
24906
24906
|
};
|
|
24907
|
-
typeof window < "u" && window.Proxy && window.Reflect && (
|
|
24907
|
+
typeof window < "u" && window.Proxy && window.Reflect && (is = new Proxy(is, {
|
|
24908
24908
|
get(n, e, i) {
|
|
24909
24909
|
return e === "map" && console.error(Pn), Reflect.get(n, e, i);
|
|
24910
24910
|
}
|
|
@@ -24920,7 +24920,7 @@ function Xn(n, e, i = {}) {
|
|
|
24920
24920
|
}, l));
|
|
24921
24921
|
};
|
|
24922
24922
|
}
|
|
24923
|
-
function
|
|
24923
|
+
function Ui(n, e, i, t, s = window) {
|
|
24924
24924
|
const o = s.Object.getOwnPropertyDescriptor(n, e);
|
|
24925
24925
|
return s.Object.defineProperty(n, e, t ? i : {
|
|
24926
24926
|
set(a) {
|
|
@@ -24928,9 +24928,9 @@ function Oi(n, e, i, t, s = window) {
|
|
|
24928
24928
|
i.set.call(this, a);
|
|
24929
24929
|
}, 0), o && o.set && o.set.call(this, a);
|
|
24930
24930
|
}
|
|
24931
|
-
}), () =>
|
|
24931
|
+
}), () => Ui(n, e, o || {}, !0);
|
|
24932
24932
|
}
|
|
24933
|
-
function
|
|
24933
|
+
function Vn(n, e, i) {
|
|
24934
24934
|
try {
|
|
24935
24935
|
if (!(e in n))
|
|
24936
24936
|
return () => {
|
|
@@ -24949,8 +24949,8 @@ function Un(n, e, i) {
|
|
|
24949
24949
|
};
|
|
24950
24950
|
}
|
|
24951
24951
|
}
|
|
24952
|
-
let
|
|
24953
|
-
/[1-9][0-9]{12}/.test(Date.now().toString()) || (
|
|
24952
|
+
let xi = Date.now;
|
|
24953
|
+
/[1-9][0-9]{12}/.test(Date.now().toString()) || (xi = () => (/* @__PURE__ */ new Date()).getTime());
|
|
24954
24954
|
function Os(n) {
|
|
24955
24955
|
var e, i, t, s, o, a;
|
|
24956
24956
|
const l = n.document;
|
|
@@ -24959,10 +24959,10 @@ function Os(n) {
|
|
|
24959
24959
|
top: l.scrollingElement ? l.scrollingElement.scrollTop : n.pageYOffset !== void 0 ? n.pageYOffset : (l == null ? void 0 : l.documentElement.scrollTop) || ((o = (s = l == null ? void 0 : l.body) === null || s === void 0 ? void 0 : s.parentElement) === null || o === void 0 ? void 0 : o.scrollTop) || ((a = l == null ? void 0 : l.body) === null || a === void 0 ? void 0 : a.scrollTop) || 0
|
|
24960
24960
|
};
|
|
24961
24961
|
}
|
|
24962
|
-
function
|
|
24962
|
+
function Us() {
|
|
24963
24963
|
return window.innerHeight || document.documentElement && document.documentElement.clientHeight || document.body && document.body.clientHeight;
|
|
24964
24964
|
}
|
|
24965
|
-
function
|
|
24965
|
+
function Vs() {
|
|
24966
24966
|
return window.innerWidth || document.documentElement && document.documentElement.clientWidth || document.body && document.body.clientWidth;
|
|
24967
24967
|
}
|
|
24968
24968
|
function Ks(n) {
|
|
@@ -24978,7 +24978,7 @@ function Me(n, e, i, t) {
|
|
|
24978
24978
|
if (typeof e == "string") {
|
|
24979
24979
|
if (s.classList.contains(e) || t && s.closest("." + e) !== null)
|
|
24980
24980
|
return !0;
|
|
24981
|
-
} else if (
|
|
24981
|
+
} else if (Li(s, e, t))
|
|
24982
24982
|
return !0;
|
|
24983
24983
|
} catch {
|
|
24984
24984
|
}
|
|
@@ -24987,7 +24987,7 @@ function Me(n, e, i, t) {
|
|
|
24987
24987
|
function Cl(n, e) {
|
|
24988
24988
|
return e.getId(n) !== -1;
|
|
24989
24989
|
}
|
|
24990
|
-
function
|
|
24990
|
+
function tt(n, e) {
|
|
24991
24991
|
return e.getId(n) === Qn;
|
|
24992
24992
|
}
|
|
24993
24993
|
function js(n, e) {
|
|
@@ -24996,7 +24996,7 @@ function js(n, e) {
|
|
|
24996
24996
|
const i = e.getId(n);
|
|
24997
24997
|
return e.has(i) ? n.parentNode && n.parentNode.nodeType === n.DOCUMENT_NODE ? !1 : n.parentNode ? js(n.parentNode, e) : !0 : !0;
|
|
24998
24998
|
}
|
|
24999
|
-
function
|
|
24999
|
+
function dt(n) {
|
|
25000
25000
|
return !!n.changedTouches;
|
|
25001
25001
|
}
|
|
25002
25002
|
function Sl(n = window) {
|
|
@@ -25017,7 +25017,7 @@ function Fs(n, e) {
|
|
|
25017
25017
|
function Gs(n, e) {
|
|
25018
25018
|
return !!(n.nodeName === "LINK" && n.nodeType === n.ELEMENT_NODE && n.getAttribute && n.getAttribute("rel") === "stylesheet" && e.getMeta(n));
|
|
25019
25019
|
}
|
|
25020
|
-
function
|
|
25020
|
+
function ut(n) {
|
|
25021
25021
|
return !!(n != null && n.shadowRoot);
|
|
25022
25022
|
}
|
|
25023
25023
|
class kl {
|
|
@@ -25070,7 +25070,7 @@ function zs(n) {
|
|
|
25070
25070
|
return e ? e.contains(n) || _l(n) : !1;
|
|
25071
25071
|
}
|
|
25072
25072
|
var W = /* @__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))(W || {}), q = /* @__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))(q || {}), Ae = /* @__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))(Ae || {}), Ye = /* @__PURE__ */ ((n) => (n[n.Mouse = 0] = "Mouse", n[n.Pen = 1] = "Pen", n[n.Touch = 2] = "Touch", n))(Ye || {}), Rn = /* @__PURE__ */ ((n) => (n[n["2D"] = 0] = "2D", n[n.WebGL = 1] = "WebGL", n[n.WebGL2 = 2] = "WebGL2", n))(Rn || {});
|
|
25073
|
-
function
|
|
25073
|
+
function ts(n) {
|
|
25074
25074
|
return "__ln" in n;
|
|
25075
25075
|
}
|
|
25076
25076
|
class Ml {
|
|
@@ -25091,10 +25091,10 @@ class Ml {
|
|
|
25091
25091
|
previous: null,
|
|
25092
25092
|
next: null
|
|
25093
25093
|
};
|
|
25094
|
-
if (e.__ln = i, e.previousSibling &&
|
|
25094
|
+
if (e.__ln = i, e.previousSibling && ts(e.previousSibling)) {
|
|
25095
25095
|
const t = e.previousSibling.__ln.next;
|
|
25096
25096
|
i.next = t, i.previous = e.previousSibling.__ln, e.previousSibling.__ln.next = i, t && (t.previous = i);
|
|
25097
|
-
} else if (e.nextSibling &&
|
|
25097
|
+
} else if (e.nextSibling && ts(e.nextSibling) && e.nextSibling.__ln.previous) {
|
|
25098
25098
|
const t = e.nextSibling.__ln.previous;
|
|
25099
25099
|
i.previous = t, i.next = e.nextSibling.__ln, e.nextSibling.__ln.previous = i, t && (t.next = i);
|
|
25100
25100
|
} else
|
|
@@ -25106,7 +25106,7 @@ class Ml {
|
|
|
25106
25106
|
this.head && (i.previous ? (i.previous.next = i.next, i.next ? i.next.previous = i.previous : this.tail = i.previous) : (this.head = i.next, this.head ? this.head.previous = null : this.tail = null), e.__ln && delete e.__ln, this.length--);
|
|
25107
25107
|
}
|
|
25108
25108
|
}
|
|
25109
|
-
const
|
|
25109
|
+
const ss = (n, e) => `${n}@${e}`;
|
|
25110
25110
|
class Al {
|
|
25111
25111
|
constructor() {
|
|
25112
25112
|
this.frozen = !1, this.locked = !1, this.texts = [], this.attributes = [], this.attributeMap = /* @__PURE__ */ new WeakMap(), this.removes = [], this.mapRemoves = [], this.movedMap = {}, this.addedSet = /* @__PURE__ */ new Set(), this.movedSet = /* @__PURE__ */ new Set(), this.droppedSet = /* @__PURE__ */ new Set(), this.processMutations = (e) => {
|
|
@@ -25143,7 +25143,7 @@ class Al {
|
|
|
25143
25143
|
recordCanvas: this.recordCanvas,
|
|
25144
25144
|
inlineImages: this.inlineImages,
|
|
25145
25145
|
onSerialize: (f) => {
|
|
25146
|
-
Fs(f, this.mirror) && this.iframeManager.addIframe(f), Gs(f, this.mirror) && this.stylesheetManager.trackLinkElement(f),
|
|
25146
|
+
Fs(f, this.mirror) && this.iframeManager.addIframe(f), Gs(f, this.mirror) && this.stylesheetManager.trackLinkElement(f), ut(d) && this.shadowDomManager.addShadowRoot(d.shadowRoot, this.doc);
|
|
25147
25147
|
},
|
|
25148
25148
|
onIframeLoad: (f, y) => {
|
|
25149
25149
|
this.iframeManager.attachIframe(f, y), this.shadowDomManager.observeAttachShadow(f);
|
|
@@ -25161,9 +25161,9 @@ class Al {
|
|
|
25161
25161
|
for (; this.mapRemoves.length; )
|
|
25162
25162
|
this.mirror.removeNodeFromMap(this.mapRemoves.shift());
|
|
25163
25163
|
for (const d of this.movedSet)
|
|
25164
|
-
|
|
25164
|
+
os(this.removes, d, this.mirror) && !this.movedSet.has(d.parentNode) || o(d);
|
|
25165
25165
|
for (const d of this.addedSet)
|
|
25166
|
-
!
|
|
25166
|
+
!as(this.droppedSet, d) && !os(this.removes, d, this.mirror) || as(this.movedSet, d) ? o(d) : this.droppedSet.add(d);
|
|
25167
25167
|
let a = null;
|
|
25168
25168
|
for (; t.length; ) {
|
|
25169
25169
|
let d = null;
|
|
@@ -25234,7 +25234,7 @@ class Al {
|
|
|
25234
25234
|
_unchangedStyles: {}
|
|
25235
25235
|
}, this.attributes.push(i), this.attributeMap.set(e, i)), i.attributes.value = Array.from(e.childNodes, (t) => t.textContent || "").join("");
|
|
25236
25236
|
}, this.processMutation = (e) => {
|
|
25237
|
-
if (!
|
|
25237
|
+
if (!tt(e.target, this.mirror))
|
|
25238
25238
|
switch (e.type) {
|
|
25239
25239
|
case "characterData": {
|
|
25240
25240
|
const i = e.target.textContent;
|
|
@@ -25248,8 +25248,8 @@ class Al {
|
|
|
25248
25248
|
const i = e.target;
|
|
25249
25249
|
let t = e.attributeName, s = e.target.getAttribute(t);
|
|
25250
25250
|
if (t === "value") {
|
|
25251
|
-
const a =
|
|
25252
|
-
s =
|
|
25251
|
+
const a = pt(i);
|
|
25252
|
+
s = vt({
|
|
25253
25253
|
element: i,
|
|
25254
25254
|
maskInputOptions: this.maskInputOptions,
|
|
25255
25255
|
tagName: i.tagName,
|
|
@@ -25298,7 +25298,7 @@ class Al {
|
|
|
25298
25298
|
}
|
|
25299
25299
|
e.addedNodes.forEach((i) => this.genAdds(i, e.target)), e.removedNodes.forEach((i) => {
|
|
25300
25300
|
const t = this.mirror.getId(i), s = zn(e.target) ? this.mirror.getId(e.target.host) : this.mirror.getId(e.target);
|
|
25301
|
-
Me(e.target, this.blockClass, this.blockSelector, !1) ||
|
|
25301
|
+
Me(e.target, this.blockClass, this.blockSelector, !1) || tt(i, this.mirror) || !Cl(i, this.mirror) || (this.addedSet.has(i) ? (ct(this.addedSet, i), this.droppedSet.add(i)) : this.addedSet.has(e.target) && t === -1 || js(e.target, this.mirror) || (this.movedSet.has(i) && this.movedMap[ss(t, s)] ? ct(this.movedSet, i) : this.removes.push({
|
|
25302
25302
|
parentId: s,
|
|
25303
25303
|
id: t,
|
|
25304
25304
|
isShadow: zn(e.target) && Wn(e.target) ? !0 : void 0
|
|
@@ -25310,14 +25310,14 @@ class Al {
|
|
|
25310
25310
|
}, this.genAdds = (e, i) => {
|
|
25311
25311
|
if (!this.processedNodeManager.inOtherBuffer(e, this) && !(this.addedSet.has(e) || this.movedSet.has(e))) {
|
|
25312
25312
|
if (this.mirror.hasNode(e)) {
|
|
25313
|
-
if (
|
|
25313
|
+
if (tt(e, this.mirror))
|
|
25314
25314
|
return;
|
|
25315
25315
|
this.movedSet.add(e);
|
|
25316
25316
|
let t = null;
|
|
25317
|
-
i && this.mirror.hasNode(i) && (t = this.mirror.getId(i)), t && t !== -1 && (this.movedMap[
|
|
25317
|
+
i && this.mirror.hasNode(i) && (t = this.mirror.getId(i)), t && t !== -1 && (this.movedMap[ss(this.mirror.getId(e), t)] = !0);
|
|
25318
25318
|
} else
|
|
25319
25319
|
this.addedSet.add(e), this.droppedSet.delete(e);
|
|
25320
|
-
Me(e, this.blockClass, this.blockSelector, !1) || (e.childNodes.forEach((t) => this.genAdds(t)),
|
|
25320
|
+
Me(e, this.blockClass, this.blockSelector, !1) || (e.childNodes.forEach((t) => this.genAdds(t)), ut(e) && e.shadowRoot.childNodes.forEach((t) => {
|
|
25321
25321
|
this.processedNodeManager.add(t, this), this.genAdds(t, e);
|
|
25322
25322
|
}));
|
|
25323
25323
|
}
|
|
@@ -25369,10 +25369,10 @@ class Al {
|
|
|
25369
25369
|
this.shadowDomManager.reset(), this.canvasManager.reset();
|
|
25370
25370
|
}
|
|
25371
25371
|
}
|
|
25372
|
-
function
|
|
25373
|
-
n.delete(e), e.childNodes.forEach((i) =>
|
|
25372
|
+
function ct(n, e) {
|
|
25373
|
+
n.delete(e), e.childNodes.forEach((i) => ct(n, i));
|
|
25374
25374
|
}
|
|
25375
|
-
function
|
|
25375
|
+
function os(n, e, i) {
|
|
25376
25376
|
return n.length === 0 ? !1 : Ws(n, e, i);
|
|
25377
25377
|
}
|
|
25378
25378
|
function Ws(n, e, i) {
|
|
@@ -25382,7 +25382,7 @@ function Ws(n, e, i) {
|
|
|
25382
25382
|
const s = i.getId(t);
|
|
25383
25383
|
return n.some((o) => o.id === s) ? !0 : Ws(n, t, i);
|
|
25384
25384
|
}
|
|
25385
|
-
function
|
|
25385
|
+
function as(n, e) {
|
|
25386
25386
|
return n.size === 0 ? !1 : Zs(n, e);
|
|
25387
25387
|
}
|
|
25388
25388
|
function Zs(n, e) {
|
|
@@ -25444,12 +25444,12 @@ function Tl({ mousemoveCb: n, sampling: e, doc: i, mirror: t }) {
|
|
|
25444
25444
|
const f = Date.now() - l;
|
|
25445
25445
|
n(a.map((y) => (y.timeOffset -= f, y)), g), a = [], l = null;
|
|
25446
25446
|
}), o), p = z(Xn(z((g) => {
|
|
25447
|
-
const f = ti(g), { clientX: y, clientY: k } =
|
|
25448
|
-
l || (l =
|
|
25447
|
+
const f = ti(g), { clientX: y, clientY: k } = dt(g) ? g.changedTouches[0] : g;
|
|
25448
|
+
l || (l = xi()), a.push({
|
|
25449
25449
|
x: y,
|
|
25450
25450
|
y: k,
|
|
25451
25451
|
id: t.getId(f),
|
|
25452
|
-
timeOffset:
|
|
25452
|
+
timeOffset: xi() - l
|
|
25453
25453
|
}), d(typeof DragEvent < "u" && g instanceof DragEvent ? q.Drag : g instanceof MouseEvent ? q.MouseMove : q.TouchMove);
|
|
25454
25454
|
}), s, {
|
|
25455
25455
|
trailing: !1
|
|
@@ -25486,9 +25486,9 @@ function El({ mouseInteractionCb: n, doc: e, mirror: i, blockClass: t, blockSele
|
|
|
25486
25486
|
break;
|
|
25487
25487
|
}
|
|
25488
25488
|
y === Ye.Touch ? Ae[v] === Ae.MouseDown ? k = "TouchStart" : Ae[v] === Ae.MouseUp && (k = "TouchEnd") : Ye.Pen;
|
|
25489
|
-
} else
|
|
25489
|
+
} else dt(g) && (y = Ye.Touch);
|
|
25490
25490
|
y !== null ? (d = y, (k.startsWith("Touch") && y === Ye.Touch || k.startsWith("Mouse") && y === Ye.Mouse) && (y = null)) : Ae[v] === Ae.Click && (y = d, d = null);
|
|
25491
|
-
const C =
|
|
25491
|
+
const C = dt(g) ? g.changedTouches[0] : g;
|
|
25492
25492
|
if (!C)
|
|
25493
25493
|
return;
|
|
25494
25494
|
const w = i.getId(f), { clientX: M, clientY: A } = C;
|
|
@@ -25537,7 +25537,7 @@ function $s({ scrollCb: n, doc: e, mirror: i, blockClass: t, blockSelector: s, s
|
|
|
25537
25537
|
function Pl({ viewportResizeCb: n }, { win: e }) {
|
|
25538
25538
|
let i = -1, t = -1;
|
|
25539
25539
|
const s = z(Xn(z(() => {
|
|
25540
|
-
const o =
|
|
25540
|
+
const o = Us(), a = Vs();
|
|
25541
25541
|
(i !== o || t !== a) && (n({
|
|
25542
25542
|
width: Number(a),
|
|
25543
25543
|
height: Number(o)
|
|
@@ -25545,7 +25545,7 @@ function Pl({ viewportResizeCb: n }, { win: e }) {
|
|
|
25545
25545
|
}), 200));
|
|
25546
25546
|
return _e("resize", s, e);
|
|
25547
25547
|
}
|
|
25548
|
-
const Il = ["INPUT", "TEXTAREA", "SELECT"],
|
|
25548
|
+
const Il = ["INPUT", "TEXTAREA", "SELECT"], rs = /* @__PURE__ */ new WeakMap();
|
|
25549
25549
|
function Dl({ inputCb: n, doc: e, mirror: i, blockClass: t, blockSelector: s, ignoreClass: o, ignoreSelector: a, maskInputOptions: l, maskInputFn: d, sampling: p, userTriggeredOnInput: v }) {
|
|
25550
25550
|
function g(A) {
|
|
25551
25551
|
let _ = ti(A);
|
|
@@ -25553,17 +25553,17 @@ function Dl({ inputCb: n, doc: e, mirror: i, blockClass: t, blockSelector: s, ig
|
|
|
25553
25553
|
if (_ && I === "OPTION" && (_ = _.parentElement), !_ || !I || Il.indexOf(I) < 0 || Me(_, t, s, !0) || _.classList.contains(o) || a && _.matches(a))
|
|
25554
25554
|
return;
|
|
25555
25555
|
let K = _.value, G = !1;
|
|
25556
|
-
const
|
|
25557
|
-
|
|
25556
|
+
const U = pt(_) || "";
|
|
25557
|
+
U === "radio" || U === "checkbox" ? G = _.checked : (l[I.toLowerCase()] || l[U]) && (K = vt({
|
|
25558
25558
|
element: _,
|
|
25559
25559
|
maskInputOptions: l,
|
|
25560
25560
|
tagName: I,
|
|
25561
|
-
type:
|
|
25561
|
+
type: U,
|
|
25562
25562
|
value: K,
|
|
25563
25563
|
maskInputFn: d
|
|
25564
25564
|
})), f(_, v ? { text: K, isChecked: G, userTriggered: T } : { text: K, isChecked: G });
|
|
25565
25565
|
const j = _.name;
|
|
25566
|
-
|
|
25566
|
+
U === "radio" && j && G && e.querySelectorAll(`input[type="radio"][name="${j}"]`).forEach((te) => {
|
|
25567
25567
|
if (te !== _) {
|
|
25568
25568
|
const ge = te.value;
|
|
25569
25569
|
f(te, v ? { text: ge, isChecked: !G, userTriggered: !1 } : { text: ge, isChecked: !G });
|
|
@@ -25571,9 +25571,9 @@ function Dl({ inputCb: n, doc: e, mirror: i, blockClass: t, blockSelector: s, ig
|
|
|
25571
25571
|
});
|
|
25572
25572
|
}
|
|
25573
25573
|
function f(A, _) {
|
|
25574
|
-
const T =
|
|
25574
|
+
const T = rs.get(A);
|
|
25575
25575
|
if (!T || T.text !== _.text || T.isChecked !== _.isChecked) {
|
|
25576
|
-
|
|
25576
|
+
rs.set(A, _);
|
|
25577
25577
|
const I = i.getId(A);
|
|
25578
25578
|
z(n)(Object.assign(Object.assign({}, _), { id: I }));
|
|
25579
25579
|
}
|
|
@@ -25591,7 +25591,7 @@ function Dl({ inputCb: n, doc: e, mirror: i, blockClass: t, blockSelector: s, ig
|
|
|
25591
25591
|
[C.HTMLSelectElement.prototype, "selectedIndex"],
|
|
25592
25592
|
[C.HTMLOptionElement.prototype, "selected"]
|
|
25593
25593
|
];
|
|
25594
|
-
return w && w.set && k.push(...M.map((A) =>
|
|
25594
|
+
return w && w.set && k.push(...M.map((A) => Ui(A[0], A[1], {
|
|
25595
25595
|
set() {
|
|
25596
25596
|
z(g)({
|
|
25597
25597
|
target: this,
|
|
@@ -25602,7 +25602,7 @@ function Dl({ inputCb: n, doc: e, mirror: i, blockClass: t, blockSelector: s, ig
|
|
|
25602
25602
|
k.forEach((A) => A());
|
|
25603
25603
|
});
|
|
25604
25604
|
}
|
|
25605
|
-
function
|
|
25605
|
+
function Ti(n) {
|
|
25606
25606
|
const e = [];
|
|
25607
25607
|
function i(t, s) {
|
|
25608
25608
|
if (vi("CSSGroupingRule") && t.parentRule instanceof CSSGroupingRule || vi("CSSMediaRule") && t.parentRule instanceof CSSMediaRule || vi("CSSSupportsRule") && t.parentRule instanceof CSSSupportsRule || vi("CSSConditionRule") && t.parentRule instanceof CSSConditionRule) {
|
|
@@ -25688,7 +25688,7 @@ function Nl({ styleSheetRuleCb: n, mirror: e, stylesheetManager: i }, { win: t }
|
|
|
25688
25688
|
{
|
|
25689
25689
|
rule: C,
|
|
25690
25690
|
index: [
|
|
25691
|
-
...
|
|
25691
|
+
...Ti(y),
|
|
25692
25692
|
w || 0
|
|
25693
25693
|
]
|
|
25694
25694
|
}
|
|
@@ -25702,7 +25702,7 @@ function Nl({ styleSheetRuleCb: n, mirror: e, stylesheetManager: i }, { win: t }
|
|
|
25702
25702
|
id: w,
|
|
25703
25703
|
styleId: M,
|
|
25704
25704
|
removes: [
|
|
25705
|
-
{ index: [...
|
|
25705
|
+
{ index: [...Ti(y), C] }
|
|
25706
25706
|
]
|
|
25707
25707
|
}), f.apply(y, k);
|
|
25708
25708
|
})
|
|
@@ -25762,7 +25762,7 @@ function Bl({ styleDeclarationCb: n, mirror: e, ignoreCSSAttributes: i, styleshe
|
|
|
25762
25762
|
value: f,
|
|
25763
25763
|
priority: y
|
|
25764
25764
|
},
|
|
25765
|
-
index:
|
|
25765
|
+
index: Ti(d.parentRule)
|
|
25766
25766
|
}), l.apply(d, p);
|
|
25767
25767
|
})
|
|
25768
25768
|
});
|
|
@@ -25780,7 +25780,7 @@ function Bl({ styleDeclarationCb: n, mirror: e, ignoreCSSAttributes: i, styleshe
|
|
|
25780
25780
|
remove: {
|
|
25781
25781
|
property: g
|
|
25782
25782
|
},
|
|
25783
|
-
index:
|
|
25783
|
+
index: Ti(d.parentRule)
|
|
25784
25784
|
}), l.apply(d, p);
|
|
25785
25785
|
})
|
|
25786
25786
|
}), z(() => {
|
|
@@ -25828,7 +25828,7 @@ function Rl({ fontCb: n, doc: e }) {
|
|
|
25828
25828
|
fontSource: typeof p == "string" ? p : JSON.stringify(Array.from(new Uint8Array(p)))
|
|
25829
25829
|
}), g;
|
|
25830
25830
|
};
|
|
25831
|
-
const a =
|
|
25831
|
+
const a = Vn(e.fonts, "add", function(l) {
|
|
25832
25832
|
return function(d) {
|
|
25833
25833
|
return setTimeout(z(() => {
|
|
25834
25834
|
const p = s.get(d);
|
|
@@ -25864,10 +25864,10 @@ function Ol(n) {
|
|
|
25864
25864
|
});
|
|
25865
25865
|
return l(), _e("selectionchange", l);
|
|
25866
25866
|
}
|
|
25867
|
-
function
|
|
25867
|
+
function Ul({ doc: n, customElementCb: e }) {
|
|
25868
25868
|
const i = n.defaultView;
|
|
25869
25869
|
return !i || !i.customElements ? () => {
|
|
25870
|
-
} :
|
|
25870
|
+
} : Vn(i.customElements, "define", function(s) {
|
|
25871
25871
|
return function(o, a, l) {
|
|
25872
25872
|
try {
|
|
25873
25873
|
e({
|
|
@@ -25882,7 +25882,7 @@ function Vl({ doc: n, customElementCb: e }) {
|
|
|
25882
25882
|
};
|
|
25883
25883
|
});
|
|
25884
25884
|
}
|
|
25885
|
-
function
|
|
25885
|
+
function Vl(n, e) {
|
|
25886
25886
|
const { mutationCb: i, mousemoveCb: t, mouseInteractionCb: s, scrollCb: o, viewportResizeCb: a, inputCb: l, mediaInteractionCb: d, styleSheetRuleCb: p, styleDeclarationCb: v, canvasMutationCb: g, fontCb: f, selectionCb: y, customElementCb: k } = n;
|
|
25887
25887
|
n.mutationCb = (...C) => {
|
|
25888
25888
|
e.mutation && e.mutation(...C), i(...C);
|
|
@@ -25917,7 +25917,7 @@ function Kl(n, e = {}) {
|
|
|
25917
25917
|
if (!i)
|
|
25918
25918
|
return () => {
|
|
25919
25919
|
};
|
|
25920
|
-
|
|
25920
|
+
Vl(n, e);
|
|
25921
25921
|
let t;
|
|
25922
25922
|
n.recordDOM && (t = Js(n, n.doc));
|
|
25923
25923
|
const s = Tl(n), o = El(n), a = $s(n), l = Pl(n, {
|
|
@@ -25931,7 +25931,7 @@ function Kl(n, e = {}) {
|
|
|
25931
25931
|
n.recordDOM && (v = Nl(n, { win: i }), g = Ys(n, n.doc), f = Bl(n, {
|
|
25932
25932
|
win: i
|
|
25933
25933
|
}), n.collectFonts && (y = Rl(n)));
|
|
25934
|
-
const k = Ol(n), C =
|
|
25934
|
+
const k = Ol(n), C = Ul(n), w = [];
|
|
25935
25935
|
for (const M of n.plugins)
|
|
25936
25936
|
w.push(M.observer(M.callback, i, M.options));
|
|
25937
25937
|
return z(() => {
|
|
@@ -25944,7 +25944,7 @@ function vi(n) {
|
|
|
25944
25944
|
function pi(n) {
|
|
25945
25945
|
return !!(typeof window[n] < "u" && window[n].prototype && "insertRule" in window[n].prototype && "deleteRule" in window[n].prototype);
|
|
25946
25946
|
}
|
|
25947
|
-
class
|
|
25947
|
+
class ls {
|
|
25948
25948
|
constructor(e) {
|
|
25949
25949
|
this.generateIdFn = e, this.iframeIdToRemoteIdMap = /* @__PURE__ */ new WeakMap(), this.iframeRemoteIdToIdMap = /* @__PURE__ */ new WeakMap();
|
|
25950
25950
|
}
|
|
@@ -25986,7 +25986,7 @@ class rs {
|
|
|
25986
25986
|
}
|
|
25987
25987
|
class jl {
|
|
25988
25988
|
constructor(e) {
|
|
25989
|
-
this.iframes = /* @__PURE__ */ new WeakMap(), this.crossOriginIframeMap = /* @__PURE__ */ new WeakMap(), this.crossOriginIframeMirror = new
|
|
25989
|
+
this.iframes = /* @__PURE__ */ new WeakMap(), this.crossOriginIframeMap = /* @__PURE__ */ new WeakMap(), this.crossOriginIframeMirror = new ls(Ns), this.crossOriginIframeRootIdMap = /* @__PURE__ */ new WeakMap(), this.mutationCb = e.mutationCb, this.wrappedEmit = e.wrappedEmit, this.stylesheetManager = e.stylesheetManager, this.recordCrossOriginIframes = e.recordCrossOriginIframes, this.crossOriginIframeStyleMirror = new ls(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)), this.mirror = e.mirror, this.recordCrossOriginIframes && window.addEventListener("message", this.handleMessage.bind(this));
|
|
25990
25990
|
}
|
|
25991
25991
|
addIframe(e) {
|
|
25992
25992
|
this.iframes.set(e, !0), e.contentWindow && this.crossOriginIframeMap.set(e.contentWindow, e);
|
|
@@ -26148,7 +26148,7 @@ class Fl {
|
|
|
26148
26148
|
}
|
|
26149
26149
|
patchAttachShadow(e, i) {
|
|
26150
26150
|
const t = this;
|
|
26151
|
-
this.restoreHandlers.push(
|
|
26151
|
+
this.restoreHandlers.push(Vn(e.prototype, "attachShadow", function(s) {
|
|
26152
26152
|
return function(o) {
|
|
26153
26153
|
const a = s.call(this, o);
|
|
26154
26154
|
return this.shadowRoot && zs(this) && t.addShadowRoot(this.shadowRoot, i), a;
|
|
@@ -26222,10 +26222,10 @@ var Wl = function(n) {
|
|
|
26222
26222
|
s += Nn[e[i] >> 2], s += Nn[(e[i] & 3) << 4 | e[i + 1] >> 4], s += Nn[(e[i + 1] & 15) << 2 | e[i + 2] >> 6], s += Nn[e[i + 2] & 63];
|
|
26223
26223
|
return t % 3 === 2 ? s = s.substring(0, s.length - 1) + "=" : t % 3 === 1 && (s = s.substring(0, s.length - 2) + "=="), s;
|
|
26224
26224
|
};
|
|
26225
|
-
const
|
|
26225
|
+
const ds = /* @__PURE__ */ new Map();
|
|
26226
26226
|
function Zl(n, e) {
|
|
26227
|
-
let i =
|
|
26228
|
-
return i || (i = /* @__PURE__ */ new Map(),
|
|
26227
|
+
let i = ds.get(n);
|
|
26228
|
+
return i || (i = /* @__PURE__ */ new Map(), ds.set(n, i)), i.has(e) || i.set(e, []), i.get(e);
|
|
26229
26229
|
}
|
|
26230
26230
|
const Qs = (n, e, i) => {
|
|
26231
26231
|
if (!n || !(eo(n, e) || typeof n == "object"))
|
|
@@ -26308,7 +26308,7 @@ function Jl(n, e, i, t) {
|
|
|
26308
26308
|
try {
|
|
26309
26309
|
if (typeof e.CanvasRenderingContext2D.prototype[a] != "function")
|
|
26310
26310
|
continue;
|
|
26311
|
-
const l =
|
|
26311
|
+
const l = Vn(e.CanvasRenderingContext2D.prototype, a, function(d) {
|
|
26312
26312
|
return function(...p) {
|
|
26313
26313
|
return Me(this.canvas, i, t, !0) || setTimeout(() => {
|
|
26314
26314
|
const v = Xs(p, e, this);
|
|
@@ -26322,7 +26322,7 @@ function Jl(n, e, i, t) {
|
|
|
26322
26322
|
});
|
|
26323
26323
|
s.push(l);
|
|
26324
26324
|
} catch {
|
|
26325
|
-
const d =
|
|
26325
|
+
const d = Ui(e.CanvasRenderingContext2D.prototype, a, {
|
|
26326
26326
|
set(p) {
|
|
26327
26327
|
n(this.canvas, {
|
|
26328
26328
|
type: Rn["2D"],
|
|
@@ -26341,10 +26341,10 @@ function Jl(n, e, i, t) {
|
|
|
26341
26341
|
function $l(n) {
|
|
26342
26342
|
return n === "experimental-webgl" ? "webgl" : n;
|
|
26343
26343
|
}
|
|
26344
|
-
function
|
|
26344
|
+
function us(n, e, i, t) {
|
|
26345
26345
|
const s = [];
|
|
26346
26346
|
try {
|
|
26347
|
-
const o =
|
|
26347
|
+
const o = Vn(n.HTMLCanvasElement.prototype, "getContext", function(a) {
|
|
26348
26348
|
return function(l, ...d) {
|
|
26349
26349
|
if (!Me(this, e, i, !0)) {
|
|
26350
26350
|
const p = $l(l);
|
|
@@ -26368,7 +26368,7 @@ function ds(n, e, i, t) {
|
|
|
26368
26368
|
s.forEach((o) => o());
|
|
26369
26369
|
};
|
|
26370
26370
|
}
|
|
26371
|
-
function
|
|
26371
|
+
function cs(n, e, i, t, s, o, a) {
|
|
26372
26372
|
const l = [], d = Object.getOwnPropertyNames(n);
|
|
26373
26373
|
for (const p of d)
|
|
26374
26374
|
if (![
|
|
@@ -26380,7 +26380,7 @@ function us(n, e, i, t, s, o, a) {
|
|
|
26380
26380
|
try {
|
|
26381
26381
|
if (typeof n[p] != "function")
|
|
26382
26382
|
continue;
|
|
26383
|
-
const v =
|
|
26383
|
+
const v = Vn(n, p, function(g) {
|
|
26384
26384
|
return function(...f) {
|
|
26385
26385
|
const y = g.apply(this, f);
|
|
26386
26386
|
if (Qs(y, a, this), "tagName" in this.canvas && !Me(this.canvas, t, s, !0)) {
|
|
@@ -26396,7 +26396,7 @@ function us(n, e, i, t, s, o, a) {
|
|
|
26396
26396
|
});
|
|
26397
26397
|
l.push(v);
|
|
26398
26398
|
} catch {
|
|
26399
|
-
const g =
|
|
26399
|
+
const g = Ui(n, p, {
|
|
26400
26400
|
set(f) {
|
|
26401
26401
|
i(this.canvas, {
|
|
26402
26402
|
type: e,
|
|
@@ -26412,7 +26412,7 @@ function us(n, e, i, t, s, o, a) {
|
|
|
26412
26412
|
}
|
|
26413
26413
|
function Yl(n, e, i, t, s) {
|
|
26414
26414
|
const o = [];
|
|
26415
|
-
return o.push(...
|
|
26415
|
+
return o.push(...cs(e.WebGLRenderingContext.prototype, Rn.WebGL, n, i, t, s, e)), typeof e.WebGL2RenderingContext < "u" && o.push(...cs(e.WebGL2RenderingContext.prototype, Rn.WebGL2, n, i, t, s, e)), () => {
|
|
26416
26416
|
o.forEach((a) => a());
|
|
26417
26417
|
};
|
|
26418
26418
|
}
|
|
@@ -26555,7 +26555,7 @@ class id {
|
|
|
26555
26555
|
});
|
|
26556
26556
|
}
|
|
26557
26557
|
initCanvasFPSObserver(e, i, t, s, o) {
|
|
26558
|
-
const a =
|
|
26558
|
+
const a = us(i, t, s, !0), l = /* @__PURE__ */ new Map(), d = new nd();
|
|
26559
26559
|
d.onmessage = (k) => {
|
|
26560
26560
|
const { id: C } = k.data;
|
|
26561
26561
|
if (l.set(C, !1), !("base64" in k.data))
|
|
@@ -26626,7 +26626,7 @@ class id {
|
|
|
26626
26626
|
}
|
|
26627
26627
|
initCanvasMutationObserver(e, i, t) {
|
|
26628
26628
|
this.startRAFTimestamping(), this.startPendingCanvasMutationFlusher();
|
|
26629
|
-
const s =
|
|
26629
|
+
const s = us(e, i, t, !1), o = Jl(this.processMutation.bind(this), e, i, t), a = Yl(this.processMutation.bind(this), e, i, t, this.mirror);
|
|
26630
26630
|
this.resetObservers = () => {
|
|
26631
26631
|
s(), o(), a();
|
|
26632
26632
|
};
|
|
@@ -26725,12 +26725,12 @@ class sd {
|
|
|
26725
26725
|
}
|
|
26726
26726
|
}
|
|
26727
26727
|
function me(n) {
|
|
26728
|
-
return Object.assign(Object.assign({}, n), { timestamp:
|
|
26728
|
+
return Object.assign(Object.assign({}, n), { timestamp: xi() });
|
|
26729
26729
|
}
|
|
26730
|
-
let re, Si,
|
|
26730
|
+
let re, Si, st, Ei = !1;
|
|
26731
26731
|
const He = Yr();
|
|
26732
26732
|
function si(n = {}) {
|
|
26733
|
-
const { emit: e, checkoutEveryNms: i, checkoutEveryNth: t, blockClass: s = "rr-block", blockSelector: o = null, ignoreClass: a = "rr-ignore", ignoreSelector: l = null, maskTextClass: d = "rr-mask", maskTextSelector: p = null, inlineStylesheet: v = !0, maskAllInputs: g, maskInputOptions: f, slimDOMOptions: y, maskInputFn: k, maskTextFn: C, hooks: w, packFn: M, sampling: A = {}, dataURLOptions: _ = {}, mousemoveWait: T, recordDOM: I = !0, recordCanvas: K = !1, recordCrossOriginIframes: G = !1, recordAfter:
|
|
26733
|
+
const { emit: e, checkoutEveryNms: i, checkoutEveryNth: t, blockClass: s = "rr-block", blockSelector: o = null, ignoreClass: a = "rr-ignore", ignoreSelector: l = null, maskTextClass: d = "rr-mask", maskTextSelector: p = null, inlineStylesheet: v = !0, maskAllInputs: g, maskInputOptions: f, slimDOMOptions: y, maskInputFn: k, maskTextFn: C, hooks: w, packFn: M, sampling: A = {}, dataURLOptions: _ = {}, mousemoveWait: T, recordDOM: I = !0, recordCanvas: K = !1, recordCrossOriginIframes: G = !1, recordAfter: U = n.recordAfter === "DOMContentLoaded" ? n.recordAfter : "load", userTriggeredOnInput: j = !1, collectFonts: te = !1, inlineImages: ge = !1, plugins: V, keepIframeSrcFn: ke = () => !1, ignoreCSSAttributes: le = /* @__PURE__ */ new Set([]), errorHandler: xe } = n;
|
|
26734
26734
|
Ll(xe);
|
|
26735
26735
|
const we = G ? window.parent === window : !0;
|
|
26736
26736
|
let ze = !1;
|
|
@@ -26775,7 +26775,7 @@ function si(n = {}) {
|
|
|
26775
26775
|
Sl();
|
|
26776
26776
|
let bn, on = 0;
|
|
26777
26777
|
const Te = (N) => {
|
|
26778
|
-
for (const de of
|
|
26778
|
+
for (const de of V || [])
|
|
26779
26779
|
de.eventProcessor && (N = de.eventProcessor(N));
|
|
26780
26780
|
return M && !ze && (N = M(N)), N;
|
|
26781
26781
|
};
|
|
@@ -26826,14 +26826,14 @@ function si(n = {}) {
|
|
|
26826
26826
|
recordCrossOriginIframes: G,
|
|
26827
26827
|
wrappedEmit: re
|
|
26828
26828
|
});
|
|
26829
|
-
for (const N of
|
|
26829
|
+
for (const N of V || [])
|
|
26830
26830
|
N.getMirror && N.getMirror({
|
|
26831
26831
|
nodeMirror: He,
|
|
26832
26832
|
crossOriginIframeMirror: Ee.crossOriginIframeMirror,
|
|
26833
26833
|
crossOriginIframeStyleMirror: Ee.crossOriginIframeStyleMirror
|
|
26834
26834
|
});
|
|
26835
26835
|
const Ce = new sd();
|
|
26836
|
-
|
|
26836
|
+
st = new id({
|
|
26837
26837
|
recordCanvas: K,
|
|
26838
26838
|
mutationCb: ae,
|
|
26839
26839
|
win: window,
|
|
@@ -26862,7 +26862,7 @@ function si(n = {}) {
|
|
|
26862
26862
|
slimDOMOptions: We,
|
|
26863
26863
|
iframeManager: Ee,
|
|
26864
26864
|
stylesheetManager: Ie,
|
|
26865
|
-
canvasManager:
|
|
26865
|
+
canvasManager: st,
|
|
26866
26866
|
keepIframeSrcFn: ke,
|
|
26867
26867
|
processedNodeManager: Ce
|
|
26868
26868
|
},
|
|
@@ -26875,8 +26875,8 @@ function si(n = {}) {
|
|
|
26875
26875
|
type: W.Meta,
|
|
26876
26876
|
data: {
|
|
26877
26877
|
href: window.location.href,
|
|
26878
|
-
width:
|
|
26879
|
-
height:
|
|
26878
|
+
width: Vs(),
|
|
26879
|
+
height: Us()
|
|
26880
26880
|
}
|
|
26881
26881
|
}), N), Ie.reset(), je.init(), kn.forEach((Y) => Y.lock());
|
|
26882
26882
|
const de = yl(document, {
|
|
@@ -26893,7 +26893,7 @@ function si(n = {}) {
|
|
|
26893
26893
|
recordCanvas: K,
|
|
26894
26894
|
inlineImages: ge,
|
|
26895
26895
|
onSerialize: (Y) => {
|
|
26896
|
-
Fs(Y, He) && Ee.addIframe(Y), Gs(Y, He) && Ie.trackLinkElement(Y),
|
|
26896
|
+
Fs(Y, He) && Ee.addIframe(Y), Gs(Y, He) && Ie.trackLinkElement(Y), ut(Y) && je.addShadowRoot(Y.shadowRoot, document);
|
|
26897
26897
|
},
|
|
26898
26898
|
onIframeLoad: (Y, ue) => {
|
|
26899
26899
|
Ee.attachIframe(Y, ue), je.observeAttachShadow(Y);
|
|
@@ -26992,9 +26992,9 @@ function si(n = {}) {
|
|
|
26992
26992
|
stylesheetManager: Ie,
|
|
26993
26993
|
shadowDomManager: je,
|
|
26994
26994
|
processedNodeManager: Ce,
|
|
26995
|
-
canvasManager:
|
|
26995
|
+
canvasManager: st,
|
|
26996
26996
|
ignoreCSSAttributes: le,
|
|
26997
|
-
plugins: ((Pe =
|
|
26997
|
+
plugins: ((Pe = V == null ? void 0 : V.filter((J) => J.observer)) === null || Pe === void 0 ? void 0 : Pe.map((J) => ({
|
|
26998
26998
|
observer: J.observer,
|
|
26999
26999
|
options: J.options,
|
|
27000
27000
|
callback: (an) => re(me({
|
|
@@ -27015,27 +27015,27 @@ function si(n = {}) {
|
|
|
27015
27015
|
}
|
|
27016
27016
|
});
|
|
27017
27017
|
const Y = () => {
|
|
27018
|
-
Si(), N.push(de(document)),
|
|
27018
|
+
Si(), N.push(de(document)), Ei = !0;
|
|
27019
27019
|
};
|
|
27020
27020
|
return document.readyState === "interactive" || document.readyState === "complete" ? Y() : (N.push(_e("DOMContentLoaded", () => {
|
|
27021
27021
|
re(me({
|
|
27022
27022
|
type: W.DomContentLoaded,
|
|
27023
27023
|
data: {}
|
|
27024
|
-
})),
|
|
27024
|
+
})), U === "DOMContentLoaded" && Y();
|
|
27025
27025
|
})), N.push(_e("load", () => {
|
|
27026
27026
|
re(me({
|
|
27027
27027
|
type: W.Load,
|
|
27028
27028
|
data: {}
|
|
27029
|
-
})),
|
|
27029
|
+
})), U === "load" && Y();
|
|
27030
27030
|
}, window))), () => {
|
|
27031
|
-
N.forEach((ue) => ue()), Ce.destroy(),
|
|
27031
|
+
N.forEach((ue) => ue()), Ce.destroy(), Ei = !1, xl();
|
|
27032
27032
|
};
|
|
27033
27033
|
} catch (N) {
|
|
27034
27034
|
console.warn(N);
|
|
27035
27035
|
}
|
|
27036
27036
|
}
|
|
27037
27037
|
si.addCustomEvent = (n, e) => {
|
|
27038
|
-
if (!
|
|
27038
|
+
if (!Ei)
|
|
27039
27039
|
throw new Error("please add custom event after start recording");
|
|
27040
27040
|
re(me({
|
|
27041
27041
|
type: W.Custom,
|
|
@@ -27049,7 +27049,7 @@ si.freezePage = () => {
|
|
|
27049
27049
|
kn.forEach((n) => n.freeze());
|
|
27050
27050
|
};
|
|
27051
27051
|
si.takeFullSnapshot = (n) => {
|
|
27052
|
-
if (!
|
|
27052
|
+
if (!Ei)
|
|
27053
27053
|
throw new Error("please take full snapshot after start recording");
|
|
27054
27054
|
Si(n);
|
|
27055
27055
|
};
|
|
@@ -27059,21 +27059,21 @@ var no = /* @__PURE__ */ ((n) => (n[n.DomContentLoaded = 0] = "DomContentLoaded"
|
|
|
27059
27059
|
LIB_VERSION: "2.55.1"
|
|
27060
27060
|
}, H;
|
|
27061
27061
|
if (typeof window > "u") {
|
|
27062
|
-
var
|
|
27062
|
+
var hs = {
|
|
27063
27063
|
hostname: ""
|
|
27064
27064
|
};
|
|
27065
27065
|
H = {
|
|
27066
27066
|
navigator: { userAgent: "", onLine: !0 },
|
|
27067
27067
|
document: {
|
|
27068
|
-
location:
|
|
27068
|
+
location: hs,
|
|
27069
27069
|
referrer: ""
|
|
27070
27070
|
},
|
|
27071
27071
|
screen: { width: 0, height: 0 },
|
|
27072
|
-
location:
|
|
27072
|
+
location: hs
|
|
27073
27073
|
};
|
|
27074
27074
|
} else
|
|
27075
27075
|
H = window;
|
|
27076
|
-
var Jn = 24 * 60 * 60 * 1e3,
|
|
27076
|
+
var Jn = 24 * 60 * 60 * 1e3, ot = 8 * 1e3, Vi = Array.prototype, od = Function.prototype, io = Object.prototype, dn = Vi.slice, oi = io.toString, Ki = io.hasOwnProperty, he = H.console, un = H.navigator, ee = H.document, fi = H.opera, Pi = H.screen, Ge = un.userAgent, at = od.bind, ms = Vi.forEach, vs = Vi.indexOf, ps = Vi.map, ad = Array.isArray, ht = {}, m = {
|
|
27077
27077
|
trim: function(n) {
|
|
27078
27078
|
return n.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
27079
27079
|
}
|
|
@@ -27128,21 +27128,21 @@ var Jn = 24 * 60 * 60 * 1e3, st = 8 * 1e3, Vi = Array.prototype, od = Function.p
|
|
|
27128
27128
|
}
|
|
27129
27129
|
}
|
|
27130
27130
|
}
|
|
27131
|
-
},
|
|
27131
|
+
}, rt = function(n, e) {
|
|
27132
27132
|
return function() {
|
|
27133
27133
|
return arguments[0] = "[" + e + "] " + arguments[0], n.apply($, arguments);
|
|
27134
27134
|
};
|
|
27135
|
-
},
|
|
27135
|
+
}, ji = function(n) {
|
|
27136
27136
|
return {
|
|
27137
|
-
log:
|
|
27138
|
-
error:
|
|
27139
|
-
critical:
|
|
27137
|
+
log: rt($.log, n),
|
|
27138
|
+
error: rt($.error, n),
|
|
27139
|
+
critical: rt($.critical, n)
|
|
27140
27140
|
};
|
|
27141
27141
|
};
|
|
27142
27142
|
m.bind = function(n, e) {
|
|
27143
27143
|
var i, t;
|
|
27144
|
-
if (
|
|
27145
|
-
return
|
|
27144
|
+
if (at && n.bind === at)
|
|
27145
|
+
return at.apply(n, dn.call(arguments, 1));
|
|
27146
27146
|
if (!m.isFunction(n))
|
|
27147
27147
|
throw new TypeError();
|
|
27148
27148
|
return i = dn.call(arguments, 2), t = function() {
|
|
@@ -27158,15 +27158,15 @@ m.bind = function(n, e) {
|
|
|
27158
27158
|
};
|
|
27159
27159
|
m.each = function(n, e, i) {
|
|
27160
27160
|
if (n != null) {
|
|
27161
|
-
if (
|
|
27161
|
+
if (ms && n.forEach === ms)
|
|
27162
27162
|
n.forEach(e, i);
|
|
27163
27163
|
else if (n.length === +n.length) {
|
|
27164
27164
|
for (var t = 0, s = n.length; t < s; t++)
|
|
27165
|
-
if (t in n && e.call(i, n[t], t, n) ===
|
|
27165
|
+
if (t in n && e.call(i, n[t], t, n) === ht)
|
|
27166
27166
|
return;
|
|
27167
27167
|
} else
|
|
27168
27168
|
for (var o in n)
|
|
27169
|
-
if (
|
|
27169
|
+
if (Ki.call(n, o) && e.call(i, n[o], o, n) === ht)
|
|
27170
27170
|
return;
|
|
27171
27171
|
}
|
|
27172
27172
|
};
|
|
@@ -27187,13 +27187,13 @@ m.isFunction = function(n) {
|
|
|
27187
27187
|
}
|
|
27188
27188
|
};
|
|
27189
27189
|
m.isArguments = function(n) {
|
|
27190
|
-
return !!(n &&
|
|
27190
|
+
return !!(n && Ki.call(n, "callee"));
|
|
27191
27191
|
};
|
|
27192
27192
|
m.toArray = function(n) {
|
|
27193
27193
|
return n ? n.toArray ? n.toArray() : m.isArray(n) || m.isArguments(n) ? dn.call(n) : m.values(n) : [];
|
|
27194
27194
|
};
|
|
27195
27195
|
m.map = function(n, e, i) {
|
|
27196
|
-
if (
|
|
27196
|
+
if (ps && n.map === ps)
|
|
27197
27197
|
return n.map(e, i);
|
|
27198
27198
|
var t = [];
|
|
27199
27199
|
return m.each(n, function(s) {
|
|
@@ -27214,9 +27214,9 @@ m.values = function(n) {
|
|
|
27214
27214
|
};
|
|
27215
27215
|
m.include = function(n, e) {
|
|
27216
27216
|
var i = !1;
|
|
27217
|
-
return n === null ? i :
|
|
27217
|
+
return n === null ? i : vs && n.indexOf === vs ? n.indexOf(e) != -1 : (m.each(n, function(t) {
|
|
27218
27218
|
if (i || (i = t === e))
|
|
27219
|
-
return
|
|
27219
|
+
return ht;
|
|
27220
27220
|
}), i);
|
|
27221
27221
|
};
|
|
27222
27222
|
m.includes = function(n, e) {
|
|
@@ -27231,7 +27231,7 @@ m.isObject = function(n) {
|
|
|
27231
27231
|
m.isEmptyObject = function(n) {
|
|
27232
27232
|
if (m.isObject(n)) {
|
|
27233
27233
|
for (var e in n)
|
|
27234
|
-
if (
|
|
27234
|
+
if (Ki.call(n, e))
|
|
27235
27235
|
return !1;
|
|
27236
27236
|
return !0;
|
|
27237
27237
|
}
|
|
@@ -27321,7 +27321,7 @@ m.JSONEncode = /* @__PURE__ */ function() {
|
|
|
27321
27321
|
` + f + "]" : "[" + y.join(",") + "]", a = f, v;
|
|
27322
27322
|
}
|
|
27323
27323
|
for (p in k)
|
|
27324
|
-
|
|
27324
|
+
Ki.call(k, p) && (v = t(p, k), v && y.push(i(p) + (a ? ": " : ":") + v));
|
|
27325
27325
|
return v = y.length === 0 ? "{}" : a ? "{" + y.join(",") + f + "}" : "{" + y.join(",") + "}", a = f, v;
|
|
27326
27326
|
}
|
|
27327
27327
|
};
|
|
@@ -27488,11 +27488,11 @@ m.UUID = /* @__PURE__ */ function() {
|
|
|
27488
27488
|
return a.length > 0 && (l = d(l, a)), l.toString(16);
|
|
27489
27489
|
};
|
|
27490
27490
|
return function() {
|
|
27491
|
-
var t = (
|
|
27491
|
+
var t = (Pi.height * Pi.width).toString(16);
|
|
27492
27492
|
return n() + "-" + e() + "-" + i() + "-" + t + "-" + n();
|
|
27493
27493
|
};
|
|
27494
27494
|
}();
|
|
27495
|
-
var
|
|
27495
|
+
var bs = [
|
|
27496
27496
|
"ahrefsbot",
|
|
27497
27497
|
"ahrefssiteaudit",
|
|
27498
27498
|
"baiduspider",
|
|
@@ -27521,8 +27521,8 @@ var ps = [
|
|
|
27521
27521
|
];
|
|
27522
27522
|
m.isBlockedUA = function(n) {
|
|
27523
27523
|
var e;
|
|
27524
|
-
for (n = n.toLowerCase(), e = 0; e <
|
|
27525
|
-
if (n.indexOf(
|
|
27524
|
+
for (n = n.toLowerCase(), e = 0; e < bs.length; e++)
|
|
27525
|
+
if (n.indexOf(bs[e]) !== -1)
|
|
27526
27526
|
return !0;
|
|
27527
27527
|
return !1;
|
|
27528
27528
|
};
|
|
@@ -27568,7 +27568,7 @@ m.cookie = {
|
|
|
27568
27568
|
if (a)
|
|
27569
27569
|
l = "; domain=" + a;
|
|
27570
27570
|
else if (t) {
|
|
27571
|
-
var v =
|
|
27571
|
+
var v = fs(ee.location.hostname);
|
|
27572
27572
|
l = v ? "; domain=." + v : "";
|
|
27573
27573
|
}
|
|
27574
27574
|
if (i) {
|
|
@@ -27582,7 +27582,7 @@ m.cookie = {
|
|
|
27582
27582
|
if (a)
|
|
27583
27583
|
l = "; domain=" + a;
|
|
27584
27584
|
else if (t) {
|
|
27585
|
-
var v =
|
|
27585
|
+
var v = fs(ee.location.hostname);
|
|
27586
27586
|
l = v ? "; domain=." + v : "";
|
|
27587
27587
|
}
|
|
27588
27588
|
if (i) {
|
|
@@ -27597,22 +27597,22 @@ m.cookie = {
|
|
|
27597
27597
|
m.cookie.set(n, "", -1, e, !1, !1, i);
|
|
27598
27598
|
}
|
|
27599
27599
|
};
|
|
27600
|
-
var
|
|
27601
|
-
if (
|
|
27602
|
-
return
|
|
27600
|
+
var lt = null, Ii = function(n, e) {
|
|
27601
|
+
if (lt !== null && !e)
|
|
27602
|
+
return lt;
|
|
27603
27603
|
var i = !0;
|
|
27604
27604
|
try {
|
|
27605
27605
|
n = n || window.localStorage;
|
|
27606
|
-
var t = "__mplss_" +
|
|
27606
|
+
var t = "__mplss_" + ft(8), s = "xyz";
|
|
27607
27607
|
n.setItem(t, s), n.getItem(t) !== s && (i = !1), n.removeItem(t);
|
|
27608
27608
|
} catch {
|
|
27609
27609
|
i = !1;
|
|
27610
27610
|
}
|
|
27611
|
-
return
|
|
27611
|
+
return lt = i, i;
|
|
27612
27612
|
};
|
|
27613
27613
|
m.localStorage = {
|
|
27614
27614
|
is_supported: function(n) {
|
|
27615
|
-
var e =
|
|
27615
|
+
var e = Ii(null, n);
|
|
27616
27616
|
return e || $.error("localStorage unsupported; falling back to cookie store"), e;
|
|
27617
27617
|
},
|
|
27618
27618
|
error: function(n) {
|
|
@@ -27721,45 +27721,45 @@ m.dom_query = /* @__PURE__ */ function() {
|
|
|
27721
27721
|
for (d == "*" ? k = n(w[f]) : k = w[f].getElementsByTagName(d), y = 0; y < k.length; y++)
|
|
27722
27722
|
p[v++] = k[y];
|
|
27723
27723
|
w = [], C = 0;
|
|
27724
|
-
var
|
|
27724
|
+
var U;
|
|
27725
27725
|
switch (K) {
|
|
27726
27726
|
case "=":
|
|
27727
|
-
|
|
27727
|
+
U = function(j) {
|
|
27728
27728
|
return j.getAttribute(I) == G;
|
|
27729
27729
|
};
|
|
27730
27730
|
break;
|
|
27731
27731
|
case "~":
|
|
27732
|
-
|
|
27732
|
+
U = function(j) {
|
|
27733
27733
|
return j.getAttribute(I).match(new RegExp("\\b" + G + "\\b"));
|
|
27734
27734
|
};
|
|
27735
27735
|
break;
|
|
27736
27736
|
case "|":
|
|
27737
|
-
|
|
27737
|
+
U = function(j) {
|
|
27738
27738
|
return j.getAttribute(I).match(new RegExp("^" + G + "-?"));
|
|
27739
27739
|
};
|
|
27740
27740
|
break;
|
|
27741
27741
|
case "^":
|
|
27742
|
-
|
|
27742
|
+
U = function(j) {
|
|
27743
27743
|
return j.getAttribute(I).indexOf(G) === 0;
|
|
27744
27744
|
};
|
|
27745
27745
|
break;
|
|
27746
27746
|
case "$":
|
|
27747
|
-
|
|
27747
|
+
U = function(j) {
|
|
27748
27748
|
return j.getAttribute(I).lastIndexOf(G) == j.getAttribute(I).length - G.length;
|
|
27749
27749
|
};
|
|
27750
27750
|
break;
|
|
27751
27751
|
case "*":
|
|
27752
|
-
|
|
27752
|
+
U = function(j) {
|
|
27753
27753
|
return j.getAttribute(I).indexOf(G) > -1;
|
|
27754
27754
|
};
|
|
27755
27755
|
break;
|
|
27756
27756
|
default:
|
|
27757
|
-
|
|
27757
|
+
U = function(j) {
|
|
27758
27758
|
return j.getAttribute(I);
|
|
27759
27759
|
};
|
|
27760
27760
|
}
|
|
27761
27761
|
for (w = [], C = 0, f = 0; f < p.length; f++)
|
|
27762
|
-
|
|
27762
|
+
U(p[f]) && (w[C++] = p[f]);
|
|
27763
27763
|
continue;
|
|
27764
27764
|
}
|
|
27765
27765
|
for (d = a, p = [], v = 0, f = 0; f < w.length; f++)
|
|
@@ -27863,11 +27863,11 @@ m.info = {
|
|
|
27863
27863
|
}), {
|
|
27864
27864
|
$current_url: m.info.currentUrl(),
|
|
27865
27865
|
$browser_version: m.info.browserVersion(Ge, un.vendor, fi),
|
|
27866
|
-
$screen_height:
|
|
27867
|
-
$screen_width:
|
|
27866
|
+
$screen_height: Pi.height,
|
|
27867
|
+
$screen_width: Pi.width,
|
|
27868
27868
|
mp_lib: "web",
|
|
27869
27869
|
$lib_version: Xe.LIB_VERSION,
|
|
27870
|
-
$insert_id:
|
|
27870
|
+
$insert_id: ft(),
|
|
27871
27871
|
time: m.timestamp() / 1e3
|
|
27872
27872
|
// epoch time in seconds
|
|
27873
27873
|
}, m.strip_empty_properties(n));
|
|
@@ -27890,10 +27890,10 @@ m.info = {
|
|
|
27890
27890
|
});
|
|
27891
27891
|
}
|
|
27892
27892
|
};
|
|
27893
|
-
var
|
|
27893
|
+
var ft = function(n) {
|
|
27894
27894
|
var e = Math.random().toString(36).substring(2, 10) + Math.random().toString(36).substring(2, 10);
|
|
27895
27895
|
return n ? e.substring(0, n) : e;
|
|
27896
|
-
}, ud = /[a-z0-9][a-z0-9-]*\.[a-z]+$/i, cd = /[a-z0-9][a-z0-9-]+\.[a-z.]{2,6}$/i,
|
|
27896
|
+
}, ud = /[a-z0-9][a-z0-9-]*\.[a-z]+$/i, cd = /[a-z0-9][a-z0-9-]+\.[a-z.]{2,6}$/i, fs = function(n) {
|
|
27897
27897
|
var e = cd, i = n.split("."), t = i[i.length - 1];
|
|
27898
27898
|
(t.length > 4 || t === "com" || t === "org") && (e = ud);
|
|
27899
27899
|
var s = n.match(e);
|
|
@@ -27901,10 +27901,10 @@ var bt = function(n) {
|
|
|
27901
27901
|
}, hd = function() {
|
|
27902
27902
|
var n = H.navigator.onLine;
|
|
27903
27903
|
return m.isUndefined(n) || n;
|
|
27904
|
-
},
|
|
27905
|
-
typeof JSON < "u" && (
|
|
27906
|
-
|
|
27907
|
-
|
|
27904
|
+
}, Di = null, Ni = null;
|
|
27905
|
+
typeof JSON < "u" && (Di = JSON.stringify, Ni = JSON.parse);
|
|
27906
|
+
Di = Di || m.JSONEncode;
|
|
27907
|
+
Ni = Ni || m.JSONDecode;
|
|
27908
27908
|
m.toArray = m.toArray;
|
|
27909
27909
|
m.isObject = m.isObject;
|
|
27910
27910
|
m.JSONEncode = m.JSONEncode;
|
|
@@ -27933,35 +27933,35 @@ function to(n, e) {
|
|
|
27933
27933
|
return i && $.warn("You are opted out of Mixpanel tracking. This will prevent the Mixpanel SDK from sending any data."), i;
|
|
27934
27934
|
}
|
|
27935
27935
|
function mn(n) {
|
|
27936
|
-
return
|
|
27936
|
+
return Ct(n, function(e) {
|
|
27937
27937
|
return this.get_config(e);
|
|
27938
27938
|
});
|
|
27939
27939
|
}
|
|
27940
27940
|
function vn(n) {
|
|
27941
|
-
return
|
|
27941
|
+
return Ct(n, function(e) {
|
|
27942
27942
|
return this._get_config(e);
|
|
27943
27943
|
});
|
|
27944
27944
|
}
|
|
27945
27945
|
function Kn(n) {
|
|
27946
|
-
return
|
|
27946
|
+
return Ct(n, function(e) {
|
|
27947
27947
|
return this._get_config(e);
|
|
27948
27948
|
});
|
|
27949
27949
|
}
|
|
27950
27950
|
function fd(n, e) {
|
|
27951
|
-
e = e || {},
|
|
27952
|
-
|
|
27951
|
+
e = e || {}, gt(e).remove(
|
|
27952
|
+
yt(n, e),
|
|
27953
27953
|
!!e.crossSubdomainCookie,
|
|
27954
27954
|
e.cookieDomain
|
|
27955
27955
|
);
|
|
27956
27956
|
}
|
|
27957
|
-
function
|
|
27957
|
+
function gt(n) {
|
|
27958
27958
|
return n = n || {}, n.persistenceType === "localStorage" ? m.localStorage : m.cookie;
|
|
27959
27959
|
}
|
|
27960
|
-
function
|
|
27960
|
+
function yt(n, e) {
|
|
27961
27961
|
return e = e || {}, (e.persistencePrefix || md) + n;
|
|
27962
27962
|
}
|
|
27963
27963
|
function so(n, e) {
|
|
27964
|
-
return
|
|
27964
|
+
return gt(e).get(yt(n, e));
|
|
27965
27965
|
}
|
|
27966
27966
|
function gd(n) {
|
|
27967
27967
|
if (n && n.ignoreDnt)
|
|
@@ -27981,8 +27981,8 @@ function oo(n, e, i) {
|
|
|
27981
27981
|
$.error("gdpr." + (n ? "optIn" : "optOut") + " called with an invalid token");
|
|
27982
27982
|
return;
|
|
27983
27983
|
}
|
|
27984
|
-
i = i || {},
|
|
27985
|
-
|
|
27984
|
+
i = i || {}, gt(i).set(
|
|
27985
|
+
yt(e, i),
|
|
27986
27986
|
n ? 1 : 0,
|
|
27987
27987
|
m.isNumber(i.cookieExpiration) ? i.cookieExpiration : null,
|
|
27988
27988
|
!!i.crossSubdomainCookie,
|
|
@@ -27993,7 +27993,7 @@ function oo(n, e, i) {
|
|
|
27993
27993
|
send_immediately: !0
|
|
27994
27994
|
});
|
|
27995
27995
|
}
|
|
27996
|
-
function
|
|
27996
|
+
function Ct(n, e) {
|
|
27997
27997
|
return function() {
|
|
27998
27998
|
var i = !1;
|
|
27999
27999
|
try {
|
|
@@ -28013,7 +28013,7 @@ function yt(n, e) {
|
|
|
28013
28013
|
typeof d == "function" && d(0);
|
|
28014
28014
|
};
|
|
28015
28015
|
}
|
|
28016
|
-
var yd =
|
|
28016
|
+
var yd = ji("lock"), ao = function(n, e) {
|
|
28017
28017
|
e = e || {}, this.storageKey = n, this.storage = e.storage || window.localStorage, this.pollIntervalMS = e.pollIntervalMS || 100, this.timeoutMS = e.timeoutMS || 2e3;
|
|
28018
28018
|
};
|
|
28019
28019
|
ao.prototype.withLock = function(n, e, i) {
|
|
@@ -28042,7 +28042,7 @@ ao.prototype.withLock = function(n, e, i) {
|
|
|
28042
28042
|
return !1;
|
|
28043
28043
|
if (d.setItem(v, t), d.getItem(v) === t)
|
|
28044
28044
|
return !0;
|
|
28045
|
-
if (!
|
|
28045
|
+
if (!Ii(d, !0))
|
|
28046
28046
|
throw new Error("localStorage support dropped while acquiring lock");
|
|
28047
28047
|
return !1;
|
|
28048
28048
|
}, w = function() {
|
|
@@ -28070,7 +28070,7 @@ ao.prototype.withLock = function(n, e, i) {
|
|
|
28070
28070
|
}
|
|
28071
28071
|
};
|
|
28072
28072
|
try {
|
|
28073
|
-
if (
|
|
28073
|
+
if (Ii(d, !0))
|
|
28074
28074
|
w();
|
|
28075
28075
|
else
|
|
28076
28076
|
throw new Error("localStorage support check failed");
|
|
@@ -28078,12 +28078,12 @@ ao.prototype.withLock = function(n, e, i) {
|
|
|
28078
28078
|
f(A);
|
|
28079
28079
|
}
|
|
28080
28080
|
};
|
|
28081
|
-
var
|
|
28082
|
-
e = e || {}, this.storageKey = n, this.storage = e.storage || window.localStorage, this.reportError = e.errorReporter || m.bind(
|
|
28081
|
+
var gs = ji("batch"), pn = function(n, e) {
|
|
28082
|
+
e = e || {}, this.storageKey = n, this.storage = e.storage || window.localStorage, this.reportError = e.errorReporter || m.bind(gs.error, gs), this.lock = new ao(n, { storage: this.storage }), this.usePersistence = e.usePersistence, this.pid = e.pid || null, this.memQueue = [];
|
|
28083
28083
|
};
|
|
28084
28084
|
pn.prototype.enqueue = function(n, e, i) {
|
|
28085
28085
|
var t = {
|
|
28086
|
-
id:
|
|
28086
|
+
id: ft(),
|
|
28087
28087
|
flushAfter: (/* @__PURE__ */ new Date()).getTime() + e * 2,
|
|
28088
28088
|
payload: n
|
|
28089
28089
|
};
|
|
@@ -28118,7 +28118,7 @@ pn.prototype.fillBatch = function(n) {
|
|
|
28118
28118
|
}
|
|
28119
28119
|
return e;
|
|
28120
28120
|
};
|
|
28121
|
-
var
|
|
28121
|
+
var ys = function(n, e) {
|
|
28122
28122
|
var i = [];
|
|
28123
28123
|
return m.each(n, function(t) {
|
|
28124
28124
|
t.id && !e[t.id] && i.push(t);
|
|
@@ -28128,14 +28128,14 @@ pn.prototype.removeItemsByID = function(n, e) {
|
|
|
28128
28128
|
var i = {};
|
|
28129
28129
|
if (m.each(n, function(s) {
|
|
28130
28130
|
i[s] = !0;
|
|
28131
|
-
}), this.memQueue =
|
|
28131
|
+
}), this.memQueue = ys(this.memQueue, i), !this.usePersistence)
|
|
28132
28132
|
e && e(!0);
|
|
28133
28133
|
else {
|
|
28134
28134
|
var t = m.bind(function() {
|
|
28135
28135
|
var s;
|
|
28136
28136
|
try {
|
|
28137
28137
|
var o = this.readFromStorage();
|
|
28138
|
-
if (o =
|
|
28138
|
+
if (o = ys(o, i), s = this.saveToStorage(o), s) {
|
|
28139
28139
|
o = this.readFromStorage();
|
|
28140
28140
|
for (var a = 0; a < o.length; a++) {
|
|
28141
28141
|
var l = o[a];
|
|
@@ -28153,7 +28153,7 @@ pn.prototype.removeItemsByID = function(n, e) {
|
|
|
28153
28153
|
e && e(o);
|
|
28154
28154
|
}, m.bind(function(o) {
|
|
28155
28155
|
var a = !1;
|
|
28156
|
-
if (this.reportError("Error acquiring storage lock", o), !
|
|
28156
|
+
if (this.reportError("Error acquiring storage lock", o), !Ii(this.storage, !0) && (a = t(), !a))
|
|
28157
28157
|
try {
|
|
28158
28158
|
this.storage.removeItem(this.storageKey);
|
|
28159
28159
|
} catch (l) {
|
|
@@ -28163,7 +28163,7 @@ pn.prototype.removeItemsByID = function(n, e) {
|
|
|
28163
28163
|
}, this), this.pid);
|
|
28164
28164
|
}
|
|
28165
28165
|
};
|
|
28166
|
-
var
|
|
28166
|
+
var Cs = function(n, e) {
|
|
28167
28167
|
var i = [];
|
|
28168
28168
|
return m.each(n, function(t) {
|
|
28169
28169
|
var s = t.id;
|
|
@@ -28175,11 +28175,11 @@ var ys = function(n, e) {
|
|
|
28175
28175
|
}), i;
|
|
28176
28176
|
};
|
|
28177
28177
|
pn.prototype.updatePayloads = function(n, e) {
|
|
28178
|
-
this.memQueue =
|
|
28178
|
+
this.memQueue = Cs(this.memQueue, n), this.usePersistence ? this.lock.withLock(m.bind(function() {
|
|
28179
28179
|
var t;
|
|
28180
28180
|
try {
|
|
28181
28181
|
var s = this.readFromStorage();
|
|
28182
|
-
s =
|
|
28182
|
+
s = Cs(s, n), t = this.saveToStorage(s);
|
|
28183
28183
|
} catch {
|
|
28184
28184
|
this.reportError("Error updating items", n), t = !1;
|
|
28185
28185
|
}
|
|
@@ -28191,7 +28191,7 @@ pn.prototype.updatePayloads = function(n, e) {
|
|
|
28191
28191
|
pn.prototype.readFromStorage = function() {
|
|
28192
28192
|
var n;
|
|
28193
28193
|
try {
|
|
28194
|
-
n = this.storage.getItem(this.storageKey), n && (n =
|
|
28194
|
+
n = this.storage.getItem(this.storageKey), n && (n = Ni(n), m.isArray(n) || (this.reportError("Invalid storage entry:", n), n = null));
|
|
28195
28195
|
} catch (e) {
|
|
28196
28196
|
this.reportError("Error retrieving queue", e), n = null;
|
|
28197
28197
|
}
|
|
@@ -28199,7 +28199,7 @@ pn.prototype.readFromStorage = function() {
|
|
|
28199
28199
|
};
|
|
28200
28200
|
pn.prototype.saveToStorage = function(n) {
|
|
28201
28201
|
try {
|
|
28202
|
-
return this.storage.setItem(this.storageKey,
|
|
28202
|
+
return this.storage.setItem(this.storageKey, Di(n)), !0;
|
|
28203
28203
|
} catch (e) {
|
|
28204
28204
|
return this.reportError("Error saving queue", e), !1;
|
|
28205
28205
|
}
|
|
@@ -28207,37 +28207,37 @@ pn.prototype.saveToStorage = function(n) {
|
|
|
28207
28207
|
pn.prototype.clear = function() {
|
|
28208
28208
|
this.memQueue = [], this.usePersistence && this.storage.removeItem(this.storageKey);
|
|
28209
28209
|
};
|
|
28210
|
-
var Cd = 10 * 60 * 1e3, $n =
|
|
28210
|
+
var Cd = 10 * 60 * 1e3, $n = ji("batch"), Ve = function(n, e) {
|
|
28211
28211
|
this.errorReporter = e.errorReporter, this.queue = new pn(n, {
|
|
28212
28212
|
errorReporter: m.bind(this.reportError, this),
|
|
28213
28213
|
storage: e.storage,
|
|
28214
28214
|
usePersistence: e.usePersistence
|
|
28215
28215
|
}), this.libConfig = e.libConfig, this.sendRequest = e.sendRequestFunc, this.beforeSendHook = e.beforeSendHook, this.stopAllBatching = e.stopAllBatchingFunc, this.batchSize = this.libConfig.batch_size, this.flushInterval = this.libConfig.batch_flush_interval_ms, this.stopped = !this.libConfig.batch_autostart, this.consecutiveRemovalFailures = 0, this.itemIdsSentSuccessfully = {}, this.flushOnlyOnInterval = e.flushOnlyOnInterval || !1;
|
|
28216
28216
|
};
|
|
28217
|
-
|
|
28217
|
+
Ve.prototype.enqueue = function(n, e) {
|
|
28218
28218
|
this.queue.enqueue(n, this.flushInterval, e);
|
|
28219
28219
|
};
|
|
28220
|
-
|
|
28220
|
+
Ve.prototype.start = function() {
|
|
28221
28221
|
this.stopped = !1, this.consecutiveRemovalFailures = 0, this.flush();
|
|
28222
28222
|
};
|
|
28223
|
-
|
|
28223
|
+
Ve.prototype.stop = function() {
|
|
28224
28224
|
this.stopped = !0, this.timeoutID && (clearTimeout(this.timeoutID), this.timeoutID = null);
|
|
28225
28225
|
};
|
|
28226
|
-
|
|
28226
|
+
Ve.prototype.clear = function() {
|
|
28227
28227
|
this.queue.clear();
|
|
28228
28228
|
};
|
|
28229
|
-
|
|
28229
|
+
Ve.prototype.resetBatchSize = function() {
|
|
28230
28230
|
this.batchSize = this.libConfig.batch_size;
|
|
28231
28231
|
};
|
|
28232
|
-
|
|
28232
|
+
Ve.prototype.resetFlush = function() {
|
|
28233
28233
|
this.scheduleFlush(this.libConfig.batch_flush_interval_ms);
|
|
28234
28234
|
};
|
|
28235
|
-
|
|
28235
|
+
Ve.prototype.scheduleFlush = function(n) {
|
|
28236
28236
|
this.flushInterval = n, this.stopped || (this.timeoutID = setTimeout(m.bind(function() {
|
|
28237
28237
|
this.stopped || this.flush();
|
|
28238
28238
|
}, this), this.flushInterval));
|
|
28239
28239
|
};
|
|
28240
|
-
|
|
28240
|
+
Ve.prototype.flush = function(n) {
|
|
28241
28241
|
try {
|
|
28242
28242
|
if (this.requestInProgress) {
|
|
28243
28243
|
$n.log("Flush: Request already in progress");
|
|
@@ -28316,7 +28316,7 @@ Ue.prototype.flush = function(n) {
|
|
|
28316
28316
|
this.reportError("Error flushing request queue", v), this.resetFlush();
|
|
28317
28317
|
}
|
|
28318
28318
|
};
|
|
28319
|
-
|
|
28319
|
+
Ve.prototype.reportError = function(n, e) {
|
|
28320
28320
|
if ($n.error.apply($n.error, arguments), this.errorReporter)
|
|
28321
28321
|
try {
|
|
28322
28322
|
e instanceof Error || (e = new Error(n)), this.errorReporter(n, e);
|
|
@@ -28324,7 +28324,7 @@ Ue.prototype.reportError = function(n, e) {
|
|
|
28324
28324
|
$n.error(i);
|
|
28325
28325
|
}
|
|
28326
28326
|
};
|
|
28327
|
-
var wn =
|
|
28327
|
+
var wn = ji("recorder"), Ss = H.CompressionStream, Sd = {
|
|
28328
28328
|
batch_size: 1e3,
|
|
28329
28329
|
batch_flush_interval_ms: 10 * 1e3,
|
|
28330
28330
|
batch_request_timeout_ms: 90 * 1e3,
|
|
@@ -28347,7 +28347,7 @@ var Ke = function(n) {
|
|
|
28347
28347
|
this._mixpanel = n, this._stopRecording = null, this.recEvents = [], this.seqNo = 0, this.replayId = null, this.replayStartTime = null, this.sendBatchId = null, this.idleTimeoutId = null, this.maxTimeoutId = null, this.recordMaxMs = Jn, this.recordMinMs = 0, this._initBatcher();
|
|
28348
28348
|
};
|
|
28349
28349
|
Ke.prototype._initBatcher = function() {
|
|
28350
|
-
this.batcher = new
|
|
28350
|
+
this.batcher = new Ve("__mprec", {
|
|
28351
28351
|
libConfig: Sd,
|
|
28352
28352
|
sendRequestFunc: m.bind(this.flushEventsWithOptOut, this),
|
|
28353
28353
|
errorReporter: m.bind(this.reportError, this),
|
|
@@ -28363,7 +28363,7 @@ Ke.prototype.startRecording = function(n) {
|
|
|
28363
28363
|
wn.log("Recording already in progress, skipping startRecording.");
|
|
28364
28364
|
return;
|
|
28365
28365
|
}
|
|
28366
|
-
this.recordMaxMs = this.get_config("record_max_ms"), this.recordMaxMs > Jn && (this.recordMaxMs = Jn, wn.critical("record_max_ms cannot be greater than " + Jn + "ms. Capping value.")), this.recordMinMs = this.get_config("record_min_ms"), this.recordMinMs >
|
|
28366
|
+
this.recordMaxMs = this.get_config("record_max_ms"), this.recordMaxMs > Jn && (this.recordMaxMs = Jn, wn.critical("record_max_ms cannot be greater than " + Jn + "ms. Capping value.")), this.recordMinMs = this.get_config("record_min_ms"), this.recordMinMs > ot && (this.recordMinMs = ot, wn.critical("record_min_ms cannot be greater than " + ot + "ms. Capping value.")), this.recEvents = [], this.seqNo = 0, this.replayStartTime = (/* @__PURE__ */ new Date()).getTime(), this.replayId = m.UUID(), n || this.recordMinMs > 0 ? this.batcher.stop() : this.batcher.start();
|
|
28367
28367
|
var e = m.bind(function() {
|
|
28368
28368
|
clearTimeout(this.idleTimeoutId), this.idleTimeoutId = setTimeout(m.bind(function() {
|
|
28369
28369
|
wn.log("Idle timeout reached, restarting recording."), this.resetRecording();
|
|
@@ -28435,8 +28435,8 @@ Ke.prototype._flushEvents = mn(function(n, e, i) {
|
|
|
28435
28435
|
}, d = m.JSONEncode(n), p = this._mixpanel.get_property("$device_id");
|
|
28436
28436
|
p && (l.$device_id = p);
|
|
28437
28437
|
var v = this._mixpanel.get_property("$user_id");
|
|
28438
|
-
if (v && (l.$user_id = v),
|
|
28439
|
-
var g = new Blob([d], { type: "application/json" }).stream(), f = g.pipeThrough(new
|
|
28438
|
+
if (v && (l.$user_id = v), Ss) {
|
|
28439
|
+
var g = new Blob([d], { type: "application/json" }).stream(), f = g.pipeThrough(new Ss("gzip"));
|
|
28440
28440
|
new Response(f).blob().then(m.bind(function(y) {
|
|
28441
28441
|
l.format = "gzip", this._sendRequest(s, l, y, i);
|
|
28442
28442
|
}, this));
|
|
@@ -28504,19 +28504,19 @@ On.prototype.after_track_handler = function(n, e) {
|
|
|
28504
28504
|
window.location = e.href;
|
|
28505
28505
|
}, 0);
|
|
28506
28506
|
};
|
|
28507
|
-
var
|
|
28507
|
+
var Fi = function() {
|
|
28508
28508
|
this.override_event = "submit";
|
|
28509
28509
|
};
|
|
28510
|
-
m.inherit(
|
|
28511
|
-
|
|
28510
|
+
m.inherit(Fi, tn);
|
|
28511
|
+
Fi.prototype.event_handler = function(n, e, i) {
|
|
28512
28512
|
i.element = e, n.preventDefault();
|
|
28513
28513
|
};
|
|
28514
|
-
|
|
28514
|
+
Fi.prototype.after_track_handler = function(n, e) {
|
|
28515
28515
|
setTimeout(function() {
|
|
28516
28516
|
e.element.submit();
|
|
28517
28517
|
}, 0);
|
|
28518
28518
|
};
|
|
28519
|
-
var hn = "$set",
|
|
28519
|
+
var hn = "$set", Un = "$set_once", Re = "$unset", Mn = "$add", qe = "$append", An = "$union", en = "$remove", _d = "$delete", ro = {
|
|
28520
28520
|
set_action: function(n, e) {
|
|
28521
28521
|
var i = {}, t = {};
|
|
28522
28522
|
return m.isObject(n) ? m.each(n, function(s, o) {
|
|
@@ -28533,7 +28533,7 @@ var hn = "$set", Vn = "$set_once", Re = "$unset", Mn = "$add", qe = "$append", A
|
|
|
28533
28533
|
var i = {}, t = {};
|
|
28534
28534
|
return m.isObject(n) ? m.each(n, function(s, o) {
|
|
28535
28535
|
this._is_reserved_property(o) || (t[o] = s);
|
|
28536
|
-
}, this) : t[n] = e, i[
|
|
28536
|
+
}, this) : t[n] = e, i[Un] = t, i;
|
|
28537
28537
|
},
|
|
28538
28538
|
union_action: function(n, e) {
|
|
28539
28539
|
var i = {}, t = {};
|
|
@@ -28703,7 +28703,7 @@ R.prototype._identify_called = function() {
|
|
|
28703
28703
|
return this._mixpanel._flags.identify_called === !0;
|
|
28704
28704
|
};
|
|
28705
28705
|
R.prototype._enqueue = function(n) {
|
|
28706
|
-
hn in n ? this._mixpanel.persistence._add_to_people_queue(hn, n) :
|
|
28706
|
+
hn in n ? this._mixpanel.persistence._add_to_people_queue(hn, n) : Un in n ? this._mixpanel.persistence._add_to_people_queue(Un, n) : Re in n ? this._mixpanel.persistence._add_to_people_queue(Re, n) : Mn in n ? this._mixpanel.persistence._add_to_people_queue(Mn, n) : qe in n ? this._mixpanel.persistence._add_to_people_queue(qe, n) : en in n ? this._mixpanel.persistence._add_to_people_queue(en, n) : An in n ? this._mixpanel.persistence._add_to_people_queue(An, n) : $.error("Invalid call to _enqueue():", n);
|
|
28707
28707
|
};
|
|
28708
28708
|
R.prototype._flush_one_queue = function(n, e, i, t) {
|
|
28709
28709
|
var s = this, o = m.extend({}, this._mixpanel.persistence.load_queue(n)), a = o;
|
|
@@ -28713,7 +28713,7 @@ R.prototype._flush_one_queue = function(n, e, i, t) {
|
|
|
28713
28713
|
};
|
|
28714
28714
|
R.prototype._flush = function(n, e, i, t, s, o, a) {
|
|
28715
28715
|
var l = this;
|
|
28716
|
-
this._flush_one_queue(hn, this.set, n), this._flush_one_queue(
|
|
28716
|
+
this._flush_one_queue(hn, this.set, n), this._flush_one_queue(Un, this.set_once, t), this._flush_one_queue(Re, this.unset, o, function(w) {
|
|
28717
28717
|
return m.keys(w);
|
|
28718
28718
|
}), this._flush_one_queue(Mn, this.increment, e), this._flush_one_queue(An, this.union, s);
|
|
28719
28719
|
var d = this._mixpanel.persistence.load_queue(qe);
|
|
@@ -28743,16 +28743,16 @@ R.prototype.track_charge = R.prototype.track_charge;
|
|
|
28743
28743
|
R.prototype.clear_charges = R.prototype.clear_charges;
|
|
28744
28744
|
R.prototype.delete_user = R.prototype.delete_user;
|
|
28745
28745
|
R.prototype.toString = R.prototype.toString;
|
|
28746
|
-
var
|
|
28747
|
-
Ct,
|
|
28746
|
+
var St = "__mps", kt = "__mpso", wt = "__mpus", _t = "__mpa", Mt = "__mpap", At = "__mpr", Lt = "__mpu", lo = "$people_distinct_id", Bi = "__alias", ei = "__timers", Md = [
|
|
28748
28747
|
St,
|
|
28749
28748
|
kt,
|
|
28750
28749
|
wt,
|
|
28751
28750
|
_t,
|
|
28752
28751
|
Mt,
|
|
28753
28752
|
At,
|
|
28753
|
+
Lt,
|
|
28754
28754
|
lo,
|
|
28755
|
-
|
|
28755
|
+
Bi,
|
|
28756
28756
|
ei
|
|
28757
28757
|
], F = function(n) {
|
|
28758
28758
|
this.props = {}, this.campaign_params_saved = !1, n.persistence_name ? this.name = "mp_" + n.persistence_name : this.name = "mp_" + n.token + "_mixpanel";
|
|
@@ -28843,20 +28843,20 @@ F.prototype.set_secure = function(n) {
|
|
|
28843
28843
|
n !== this.secure && (this.secure = !!n, this.remove(), this.save());
|
|
28844
28844
|
};
|
|
28845
28845
|
F.prototype._add_to_people_queue = function(n, e) {
|
|
28846
|
-
var i = this._get_queue_key(n), t = e[n], s = this._get_or_create_queue(hn), o = this._get_or_create_queue(
|
|
28847
|
-
i ===
|
|
28846
|
+
var i = this._get_queue_key(n), t = e[n], s = this._get_or_create_queue(hn), o = this._get_or_create_queue(Un), a = this._get_or_create_queue(Re), l = this._get_or_create_queue(Mn), d = this._get_or_create_queue(An), p = this._get_or_create_queue(en, []), v = this._get_or_create_queue(qe, []);
|
|
28847
|
+
i === St ? (m.extend(s, t), this._pop_from_people_queue(Mn, t), this._pop_from_people_queue(An, t), this._pop_from_people_queue(Re, t)) : i === kt ? (m.each(t, function(g, f) {
|
|
28848
28848
|
f in o || (o[f] = g);
|
|
28849
|
-
}), this._pop_from_people_queue(Re, t)) : i ===
|
|
28849
|
+
}), this._pop_from_people_queue(Re, t)) : i === wt ? m.each(t, function(g) {
|
|
28850
28850
|
m.each([s, o, l, d], function(f) {
|
|
28851
28851
|
g in f && delete f[g];
|
|
28852
28852
|
}), m.each(v, function(f) {
|
|
28853
28853
|
g in f && delete f[g];
|
|
28854
28854
|
}), a[g] = !0;
|
|
28855
|
-
}) : i ===
|
|
28855
|
+
}) : i === _t ? (m.each(t, function(g, f) {
|
|
28856
28856
|
f in s ? s[f] += g : (f in l || (l[f] = 0), l[f] += g);
|
|
28857
|
-
}, this), this._pop_from_people_queue(Re, t)) : i ===
|
|
28857
|
+
}, this), this._pop_from_people_queue(Re, t)) : i === Lt ? (m.each(t, function(g, f) {
|
|
28858
28858
|
m.isArray(g) && (f in d || (d[f] = []), d[f] = d[f].concat(g));
|
|
28859
|
-
}), this._pop_from_people_queue(Re, t)) : i ===
|
|
28859
|
+
}), this._pop_from_people_queue(Re, t)) : i === At ? (p.push(t), this._pop_from_people_queue(qe, t)) : i === Mt && (v.push(t), this._pop_from_people_queue(Re, t)), $.log("MIXPANEL PEOPLE REQUEST (QUEUED, PENDING IDENTIFY):"), $.log(e), this.save();
|
|
28860
28860
|
};
|
|
28861
28861
|
F.prototype._pop_from_people_queue = function(n, e) {
|
|
28862
28862
|
var i = this.props[this._get_queue_key(n)];
|
|
@@ -28871,19 +28871,19 @@ F.prototype.load_queue = function(n) {
|
|
|
28871
28871
|
};
|
|
28872
28872
|
F.prototype._get_queue_key = function(n) {
|
|
28873
28873
|
if (n === hn)
|
|
28874
|
-
return Ct;
|
|
28875
|
-
if (n === Vn)
|
|
28876
28874
|
return St;
|
|
28877
|
-
if (n ===
|
|
28875
|
+
if (n === Un)
|
|
28878
28876
|
return kt;
|
|
28879
|
-
if (n ===
|
|
28877
|
+
if (n === Re)
|
|
28880
28878
|
return wt;
|
|
28881
|
-
if (n ===
|
|
28879
|
+
if (n === Mn)
|
|
28882
28880
|
return _t;
|
|
28883
|
-
if (n ===
|
|
28881
|
+
if (n === qe)
|
|
28884
28882
|
return Mt;
|
|
28885
|
-
if (n ===
|
|
28883
|
+
if (n === en)
|
|
28886
28884
|
return At;
|
|
28885
|
+
if (n === An)
|
|
28886
|
+
return Lt;
|
|
28887
28887
|
$.error("Invalid queue:", n);
|
|
28888
28888
|
};
|
|
28889
28889
|
F.prototype._get_or_create_queue = function(n, e) {
|
|
@@ -28898,13 +28898,13 @@ F.prototype.remove_event_timer = function(n) {
|
|
|
28898
28898
|
var e = this.load_prop(ei) || {}, i = e[n];
|
|
28899
28899
|
return m.isUndefined(i) || (delete this.props[ei][n], this.save()), i;
|
|
28900
28900
|
};
|
|
28901
|
-
var
|
|
28901
|
+
var xt, uo = function(n, e) {
|
|
28902
28902
|
throw new Error(n + " not available in this build.");
|
|
28903
28903
|
}, Se, co = 0, Ad = 1, Ld = function(n) {
|
|
28904
28904
|
return n;
|
|
28905
28905
|
}, ni = function() {
|
|
28906
|
-
}, De = "mixpanel", ho = "base64", xd = "json",
|
|
28907
|
-
un.sendBeacon && (
|
|
28906
|
+
}, De = "mixpanel", ho = "base64", xd = "json", Tt = "$device:", Hn = H.XMLHttpRequest && "withCredentials" in new XMLHttpRequest(), mo = !Hn && Ge.indexOf("MSIE") === -1 && Ge.indexOf("Mozilla") === -1, Hi = null;
|
|
28907
|
+
un.sendBeacon && (Hi = function() {
|
|
28908
28908
|
return un.sendBeacon.apply(un, arguments);
|
|
28909
28909
|
});
|
|
28910
28910
|
var vo = {
|
|
@@ -28912,7 +28912,7 @@ var vo = {
|
|
|
28912
28912
|
engage: "engage/",
|
|
28913
28913
|
groups: "groups/",
|
|
28914
28914
|
record: "record/"
|
|
28915
|
-
},
|
|
28915
|
+
}, ks = {
|
|
28916
28916
|
api_host: "https://api-js.mixpanel.com",
|
|
28917
28917
|
api_routes: vo,
|
|
28918
28918
|
api_method: "POST",
|
|
@@ -28973,9 +28973,9 @@ var vo = {
|
|
|
28973
28973
|
record_sessions_percent: 0,
|
|
28974
28974
|
recorder_src: "https://cdn.mxpnl.com/libs/mixpanel-recorder.min.js"
|
|
28975
28975
|
}, po = !1, L = function() {
|
|
28976
|
-
},
|
|
28976
|
+
}, mt = function(n, e, i) {
|
|
28977
28977
|
var t, s = i === De ? Se : Se[i];
|
|
28978
|
-
if (s &&
|
|
28978
|
+
if (s && xt === co)
|
|
28979
28979
|
t = s;
|
|
28980
28980
|
else {
|
|
28981
28981
|
if (s && !m.isArray(s)) {
|
|
@@ -29001,17 +29001,17 @@ L.prototype.init = function(n, e, i) {
|
|
|
29001
29001
|
this.report_error("You must initialize the main mixpanel object right after you include the Mixpanel js snippet");
|
|
29002
29002
|
return;
|
|
29003
29003
|
}
|
|
29004
|
-
var t =
|
|
29004
|
+
var t = mt(n, e, i);
|
|
29005
29005
|
return Se[i] = t, t._loaded(), t;
|
|
29006
29006
|
};
|
|
29007
29007
|
L.prototype._init = function(n, e, i) {
|
|
29008
29008
|
e = e || {}, this.__loaded = !0, this.config = {};
|
|
29009
29009
|
var t = {};
|
|
29010
29010
|
if (!("api_payload_format" in e)) {
|
|
29011
|
-
var s = e.api_host ||
|
|
29011
|
+
var s = e.api_host || ks.api_host;
|
|
29012
29012
|
s.match(/\.mixpanel\.com/) && (t.api_payload_format = xd);
|
|
29013
29013
|
}
|
|
29014
|
-
if (this.set_config(m.extend({},
|
|
29014
|
+
if (this.set_config(m.extend({}, ks, t, e, {
|
|
29015
29015
|
name: i,
|
|
29016
29016
|
token: n,
|
|
29017
29017
|
callback_fn: (i === De ? i : De + "." + i) + "._jsc"
|
|
@@ -29023,7 +29023,7 @@ L.prototype._init = function(n, e, i) {
|
|
|
29023
29023
|
this._batch_requests = !1, $.log("Turning off Mixpanel request-queueing; needs XHR and localStorage support"), m.each(this.get_batcher_configs(), function(d) {
|
|
29024
29024
|
$.log("Clearing batch queue " + d.queue_key), m.localStorage.remove(d.queue_key);
|
|
29025
29025
|
});
|
|
29026
|
-
else if (this.init_batchers(),
|
|
29026
|
+
else if (this.init_batchers(), Hi && H.addEventListener) {
|
|
29027
29027
|
var o = m.bind(function() {
|
|
29028
29028
|
this.request_batchers.events.stopped || this.request_batchers.events.flush({ unloading: !0 });
|
|
29029
29029
|
}, this);
|
|
@@ -29037,7 +29037,7 @@ L.prototype._init = function(n, e, i) {
|
|
|
29037
29037
|
this.persistence = this.cookie = new F(this.config), this.unpersisted_superprops = {}, this._gdpr_init();
|
|
29038
29038
|
var a = m.UUID();
|
|
29039
29039
|
this.get_distinct_id() || this.register_once({
|
|
29040
|
-
distinct_id:
|
|
29040
|
+
distinct_id: Tt + a,
|
|
29041
29041
|
$device_id: a
|
|
29042
29042
|
}, "");
|
|
29043
29043
|
var l = this.get_config("track_pageview");
|
|
@@ -29139,7 +29139,7 @@ L.prototype._send_request = function(n, e, i, t) {
|
|
|
29139
29139
|
verbose: this.get_config("verbose")
|
|
29140
29140
|
}, a = null;
|
|
29141
29141
|
!t && (m.isFunction(i) || typeof i == "string") && (t = i, i = null), i = m.extend(o, i || {}), Hn || (i.method = "GET");
|
|
29142
|
-
var l = i.method === "POST", d =
|
|
29142
|
+
var l = i.method === "POST", d = Hi && l && i.transport.toLowerCase() === "sendbeacon", p = i.verbose;
|
|
29143
29143
|
e.verbose && (p = !0), this.get_config("test") && (e.test = 1), p && (e.verbose = 1), this.get_config("img") && (e.img = 1), Hn || (t ? e.callback = t : (p || this.get_config("test")) && (e.callback = "(function(){})")), e.ip = this.get_config("ip") ? 1 : 0, e._ = (/* @__PURE__ */ new Date()).getTime().toString(), l && (a = "data=" + encodeURIComponent(e.data), delete e.data), n += "?" + m.HTTPBuildQuery(e);
|
|
29144
29144
|
var v = this;
|
|
29145
29145
|
if ("img" in e) {
|
|
@@ -29147,7 +29147,7 @@ L.prototype._send_request = function(n, e, i, t) {
|
|
|
29147
29147
|
g.src = n, ee.body.appendChild(g);
|
|
29148
29148
|
} else if (d) {
|
|
29149
29149
|
try {
|
|
29150
|
-
s =
|
|
29150
|
+
s = Hi(n, a);
|
|
29151
29151
|
} catch (M) {
|
|
29152
29152
|
v.report_error(M), s = !1;
|
|
29153
29153
|
}
|
|
@@ -29237,7 +29237,7 @@ L.prototype.get_batcher_configs = function() {
|
|
|
29237
29237
|
L.prototype.init_batchers = function() {
|
|
29238
29238
|
if (!this.are_batchers_initialized()) {
|
|
29239
29239
|
var n = m.bind(function(i) {
|
|
29240
|
-
return new
|
|
29240
|
+
return new Ve(
|
|
29241
29241
|
i.queue_key,
|
|
29242
29242
|
{
|
|
29243
29243
|
libConfig: this.config,
|
|
@@ -29398,7 +29398,7 @@ L.prototype.track_links = function() {
|
|
|
29398
29398
|
return this._track_dom.call(this, On, arguments);
|
|
29399
29399
|
};
|
|
29400
29400
|
L.prototype.track_forms = function() {
|
|
29401
|
-
return this._track_dom.call(this,
|
|
29401
|
+
return this._track_dom.call(this, Fi, arguments);
|
|
29402
29402
|
};
|
|
29403
29403
|
L.prototype.time_event = function(n) {
|
|
29404
29404
|
if (m.isUndefined(n)) {
|
|
@@ -29409,22 +29409,22 @@ L.prototype.time_event = function(n) {
|
|
|
29409
29409
|
};
|
|
29410
29410
|
var Td = {
|
|
29411
29411
|
persistent: !0
|
|
29412
|
-
},
|
|
29412
|
+
}, Et = function(n) {
|
|
29413
29413
|
var e;
|
|
29414
29414
|
return m.isObject(n) ? e = n : m.isUndefined(n) ? e = {} : e = { days: n }, m.extend({}, Td, e);
|
|
29415
29415
|
};
|
|
29416
29416
|
L.prototype.register = function(n, e) {
|
|
29417
|
-
var i =
|
|
29417
|
+
var i = Et(e);
|
|
29418
29418
|
i.persistent ? this.persistence.register(n, i.days) : m.extend(this.unpersisted_superprops, n);
|
|
29419
29419
|
};
|
|
29420
29420
|
L.prototype.register_once = function(n, e, i) {
|
|
29421
|
-
var t =
|
|
29421
|
+
var t = Et(i);
|
|
29422
29422
|
t.persistent ? this.persistence.register_once(n, e, t.days) : (typeof e > "u" && (e = "None"), m.each(n, function(s, o) {
|
|
29423
29423
|
(!this.unpersisted_superprops.hasOwnProperty(o) || this.unpersisted_superprops[o] === e) && (this.unpersisted_superprops[o] = s);
|
|
29424
29424
|
}, this));
|
|
29425
29425
|
};
|
|
29426
29426
|
L.prototype.unregister = function(n, e) {
|
|
29427
|
-
e =
|
|
29427
|
+
e = Et(e), e.persistent ? this.persistence.unregister(n) : delete this.unpersisted_superprops[n];
|
|
29428
29428
|
};
|
|
29429
29429
|
L.prototype._register_single = function(n, e) {
|
|
29430
29430
|
var i = {};
|
|
@@ -29433,7 +29433,7 @@ L.prototype._register_single = function(n, e) {
|
|
|
29433
29433
|
L.prototype.identify = function(n, e, i, t, s, o, a, l) {
|
|
29434
29434
|
var d = this.get_distinct_id();
|
|
29435
29435
|
if (n && d !== n) {
|
|
29436
|
-
if (typeof n == "string" && n.indexOf(
|
|
29436
|
+
if (typeof n == "string" && n.indexOf(Tt) === 0)
|
|
29437
29437
|
return this.report_error("distinct_id cannot have $device: prefix"), -1;
|
|
29438
29438
|
this.register({ $user_id: n });
|
|
29439
29439
|
}
|
|
@@ -29444,7 +29444,7 @@ L.prototype.identify = function(n, e, i, t, s, o, a, l) {
|
|
|
29444
29444
|
$device_id: p
|
|
29445
29445
|
}, "");
|
|
29446
29446
|
}
|
|
29447
|
-
n !== d && n !== this.get_property(
|
|
29447
|
+
n !== d && n !== this.get_property(Bi) && (this.unregister(Bi), this.register({ distinct_id: n })), this._flags.identify_called = !0, this.people._flush(e, i, t, s, o, a, l), n !== d && this.track("$identify", {
|
|
29448
29448
|
distinct_id: n,
|
|
29449
29449
|
$anon_distinct_id: d
|
|
29450
29450
|
}, { skip_hooks: !0 });
|
|
@@ -29453,7 +29453,7 @@ L.prototype.reset = function() {
|
|
|
29453
29453
|
this.persistence.clear(), this._flags.identify_called = !1;
|
|
29454
29454
|
var n = m.UUID();
|
|
29455
29455
|
this.register_once({
|
|
29456
|
-
distinct_id:
|
|
29456
|
+
distinct_id: Tt + n,
|
|
29457
29457
|
$device_id: n
|
|
29458
29458
|
}, "");
|
|
29459
29459
|
};
|
|
@@ -29464,7 +29464,7 @@ L.prototype.alias = function(n, e) {
|
|
|
29464
29464
|
if (n === this.get_property(lo))
|
|
29465
29465
|
return this.report_error("Attempting to create alias for existing People user - aborting."), -2;
|
|
29466
29466
|
var i = this;
|
|
29467
|
-
return m.isUndefined(e) && (e = this.get_distinct_id()), n !== e ? (this._register_single(
|
|
29467
|
+
return m.isUndefined(e) && (e = this.get_distinct_id()), n !== e ? (this._register_single(Bi, n), this.track("$create_alias", {
|
|
29468
29468
|
alias: n,
|
|
29469
29469
|
distinct_id: e
|
|
29470
29470
|
}, {
|
|
@@ -29623,9 +29623,9 @@ var Bn = {}, Ed = function() {
|
|
|
29623
29623
|
}, Pd = function() {
|
|
29624
29624
|
Se.init = function(n, e, i) {
|
|
29625
29625
|
if (i)
|
|
29626
|
-
return Se[i] || (Se[i] = Bn[i] =
|
|
29626
|
+
return Se[i] || (Se[i] = Bn[i] = mt(n, e, i), Se[i]._loaded()), Se[i];
|
|
29627
29627
|
var t = Se;
|
|
29628
|
-
Bn[De] ? t = Bn[De] : n && (t =
|
|
29628
|
+
Bn[De] ? t = Bn[De] : n && (t = mt(n, e, De), t._loaded(), Bn[De] = t), Se = t, xt === Ad && (H[De] = Se), Ed();
|
|
29629
29629
|
};
|
|
29630
29630
|
}, Id = function() {
|
|
29631
29631
|
function n() {
|
|
@@ -29656,7 +29656,7 @@ var Bn = {}, Ed = function() {
|
|
|
29656
29656
|
m.register_event(H, "load", n, !0);
|
|
29657
29657
|
};
|
|
29658
29658
|
function Dd(n) {
|
|
29659
|
-
return uo = n,
|
|
29659
|
+
return uo = n, xt = co, Se = new L(), Pd(), Se.init(), Id(), Se;
|
|
29660
29660
|
}
|
|
29661
29661
|
function Nd(n, e) {
|
|
29662
29662
|
e();
|
|
@@ -29698,14 +29698,19 @@ class fo {
|
|
|
29698
29698
|
h(this, "callBackUrl");
|
|
29699
29699
|
h(this, "paymentResponse");
|
|
29700
29700
|
h(this, "paymentResponseHeaders");
|
|
29701
|
-
this
|
|
29701
|
+
h(this, "paymentMethod");
|
|
29702
|
+
this.container = e.container, this.onAction = e.onAction, this.callBackUrl = e.callBackUrl, this.paymentResponse = e.paymentResponse, this.paymentResponseHeaders = e.paymentResponseHeaders, this.paymentMethod = e.paymentMethod;
|
|
29702
29703
|
}
|
|
29703
29704
|
attachListeners() {
|
|
29704
29705
|
const e = this.container.querySelector(
|
|
29705
29706
|
"#goback-to-merchant"
|
|
29706
29707
|
);
|
|
29707
29708
|
e && e.addEventListener("click", () => {
|
|
29708
|
-
|
|
29709
|
+
var i;
|
|
29710
|
+
P.track("redirect_to_merchant", {
|
|
29711
|
+
payment_method: this.paymentMethod,
|
|
29712
|
+
status: (i = this.paymentResponse) == null ? void 0 : i.status
|
|
29713
|
+
}), nn(
|
|
29709
29714
|
this.paymentResponse,
|
|
29710
29715
|
this.paymentResponseHeaders,
|
|
29711
29716
|
this.callBackUrl
|
|
@@ -29713,7 +29718,11 @@ class fo {
|
|
|
29713
29718
|
});
|
|
29714
29719
|
}
|
|
29715
29720
|
renderComponent() {
|
|
29716
|
-
|
|
29721
|
+
var e;
|
|
29722
|
+
this.container.innerHTML = this.render(), P.track("payment_timeout", {
|
|
29723
|
+
payment_method: this.paymentMethod,
|
|
29724
|
+
status: (e = this.paymentResponse) == null ? void 0 : e.status
|
|
29725
|
+
}), this.attachListeners();
|
|
29717
29726
|
}
|
|
29718
29727
|
render() {
|
|
29719
29728
|
return bo;
|
|
@@ -29838,7 +29847,407 @@ class Hd {
|
|
|
29838
29847
|
return Bd;
|
|
29839
29848
|
}
|
|
29840
29849
|
}
|
|
29841
|
-
|
|
29850
|
+
const Rd = `<div class="flex items-center justify-center md:justify-between w-full text-xxs mt-5">
|
|
29851
|
+
<div class="text-tone-60"><span>Powered by</span> <span class="font-bold">Spotflow</span></div>
|
|
29852
|
+
<div class="align-center text-tone-60 hidden md:flex gap-4">
|
|
29853
|
+
<span id="test-cards-link" class="hover:font-bold">Test Cards</span>
|
|
29854
|
+
<a href="https://ribbon-scowl-35f.notion.site/Terms-Conditions-940742f0a1b144498ffc1786c5bc6a08?pvs=4" target="_blank" class="hover:font-bold">Terms</a>
|
|
29855
|
+
<a href="https://ribbon-scowl-35f.notion.site/Privacy-Policy-Spotflow-3997ee8d923d4cd39a3dc43b7249b713" target="_blank" class="hover:font-bold">Privacy</a>
|
|
29856
|
+
<a href="mailto:hello@spotflow.one" class="hover:font-bold">Contact</a>
|
|
29857
|
+
</div>
|
|
29858
|
+
</div>`, Od = `<div class="box-container flex-1">
|
|
29859
|
+
<!-- test-cards.html -->
|
|
29860
|
+
<div class="bg-gray-100 py-2 px-4 rounded-lg mt-4 relative">
|
|
29861
|
+
<div class="flex items-start gap-4 mb-4">
|
|
29862
|
+
<nav id="test-card-tabs"
|
|
29863
|
+
class="flex w-full font-medium items-start gap-6 border-b border-tone-10 text-base text-tone-40 mb-2">
|
|
29864
|
+
<button class="tab-btn active-tab" data-target="no-auth">No auth</button>
|
|
29865
|
+
<button class="tab-btn" data-target="pin">Pin</button>
|
|
29866
|
+
<button class="tab-btn" data-target="pin-otp">Pin + OTP</button>
|
|
29867
|
+
<button class="tab-btn" data-target="3ds">3DS</button>
|
|
29868
|
+
<button class="tab-btn" data-target="avs">AVS</button>
|
|
29869
|
+
</nav>
|
|
29870
|
+
<!-- Close Icon -->
|
|
29871
|
+
<button id="close-test-card" class="text-gray-500 hover:text-black">
|
|
29872
|
+
✕
|
|
29873
|
+
</button>
|
|
29874
|
+
</div>
|
|
29875
|
+
|
|
29876
|
+
<!-- Section contents -->
|
|
29877
|
+
<div id="no-auth" class="tab-content grid gap-3 border border-tone-50 px-6 py-4 rounded-2xl mb-4">
|
|
29878
|
+
<div class="flex justify-between items-center">
|
|
29879
|
+
<span class="text-tone-60 font-medium text-sm">Number</span>
|
|
29880
|
+
<div class="flex items-center gap-1">
|
|
29881
|
+
<span data-copy-value="4111112000062555" class="text-tone-100 text-sm font-medium">4111112000062555</span>
|
|
29882
|
+
<button class="copy-btn p-1 hover:opacity-80 transition-opacity">
|
|
29883
|
+
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
29884
|
+
<path
|
|
29885
|
+
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"
|
|
29886
|
+
fill="#0D0716" />
|
|
29887
|
+
</svg>
|
|
29888
|
+
</button>
|
|
29889
|
+
</div>
|
|
29890
|
+
</div>
|
|
29891
|
+
<div class="flex justify-between items-center">
|
|
29892
|
+
<span class="text-tone-60 font-medium text-sm">Expiry</span>
|
|
29893
|
+
<div class="flex items-center gap-1">
|
|
29894
|
+
<span data-copy-value="12/30" class="text-tone-100 text-sm font-medium">12/2030 </span>
|
|
29895
|
+
<button class="copy-btn p-1 hover:opacity-80 transition-opacity">
|
|
29896
|
+
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
29897
|
+
<path
|
|
29898
|
+
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"
|
|
29899
|
+
fill="#0D0716" />
|
|
29900
|
+
</svg>
|
|
29901
|
+
</button>
|
|
29902
|
+
</div>
|
|
29903
|
+
</div>
|
|
29904
|
+
<div class="flex justify-between items-center">
|
|
29905
|
+
<span class="text-tone-60 font-medium text-sm">CVV</span>
|
|
29906
|
+
<div class="flex items-center gap-1">
|
|
29907
|
+
<span data-copy-value="455" class="text-tone-100 text-sm font-medium">455 </span>
|
|
29908
|
+
<button class="copy-btn p-1 hover:opacity-80 transition-opacity">
|
|
29909
|
+
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
29910
|
+
<path
|
|
29911
|
+
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"
|
|
29912
|
+
fill="#0D0716" />
|
|
29913
|
+
</svg>
|
|
29914
|
+
</button>
|
|
29915
|
+
</div>
|
|
29916
|
+
</div>
|
|
29917
|
+
</div>
|
|
29918
|
+
|
|
29919
|
+
<!-- Pin -->
|
|
29920
|
+
<div id="pin" class="hidden tab-content">
|
|
29921
|
+
<div class=" grid gap-3 border border-tone-50 px-6 py-4 rounded-2xl mb-4">
|
|
29922
|
+
<div class="flex justify-between items-center">
|
|
29923
|
+
<span class="text-tone-60 font-medium text-sm">Number</span>
|
|
29924
|
+
<div class="flex items-center gap-1">
|
|
29925
|
+
<span data-copy-value="5555558684543932"
|
|
29926
|
+
class="text-tone-100 text-sm font-medium">5555558684543932 </span>
|
|
29927
|
+
<button class="copy-btn p-1 hover:opacity-80 transition-opacity">
|
|
29928
|
+
<svg width="16" height="16" viewBox="0 0 16 16" fill="none"
|
|
29929
|
+
xmlns="http://www.w3.org/2000/svg">
|
|
29930
|
+
<path
|
|
29931
|
+
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"
|
|
29932
|
+
fill="#0D0716" />
|
|
29933
|
+
</svg>
|
|
29934
|
+
</button>
|
|
29935
|
+
</div>
|
|
29936
|
+
</div>
|
|
29937
|
+
|
|
29938
|
+
<div class="flex justify-between items-center">
|
|
29939
|
+
<span class="text-tone-60 font-medium text-sm">Expiry</span>
|
|
29940
|
+
<div class="flex items-center gap-1">
|
|
29941
|
+
<span data-copy-value="12/30" class="text-tone-100 text-sm font-medium">12/2030</span>
|
|
29942
|
+
<button class="copy-btn p-1 hover:opacity-80 transition-opacity">
|
|
29943
|
+
<svg width="16" height="16" viewBox="0 0 16 16" fill="none"
|
|
29944
|
+
xmlns="http://www.w3.org/2000/svg">
|
|
29945
|
+
<path
|
|
29946
|
+
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"
|
|
29947
|
+
fill="#0D0716" />
|
|
29948
|
+
</svg>
|
|
29949
|
+
</button>
|
|
29950
|
+
</div>
|
|
29951
|
+
</div>
|
|
29952
|
+
<div class="flex justify-between items-center">
|
|
29953
|
+
<span class="text-tone-60 font-medium text-sm">CVV</span>
|
|
29954
|
+
<div class="flex items-center gap-1">
|
|
29955
|
+
<span data-copy-value="321" class="text-tone-100 text-sm font-medium">321</span>
|
|
29956
|
+
<button class="copy-btn p-1 hover:opacity-80 transition-opacity">
|
|
29957
|
+
<svg width="16" height="16" viewBox="0 0 16 16" fill="none"
|
|
29958
|
+
xmlns="http://www.w3.org/2000/svg">
|
|
29959
|
+
<path
|
|
29960
|
+
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"
|
|
29961
|
+
fill="#0D0716" />
|
|
29962
|
+
</svg>
|
|
29963
|
+
</button>
|
|
29964
|
+
</div>
|
|
29965
|
+
</div>
|
|
29966
|
+
<div class="flex justify-between items-center">
|
|
29967
|
+
<span class="text-tone-60 font-medium text-sm">Pin</span>
|
|
29968
|
+
<div class="flex items-center gap-1">
|
|
29969
|
+
<span data-copy-value="4321" class="text-tone-100 text-sm font-medium">4321</span>
|
|
29970
|
+
<button class="copy-btn p-1 hover:opacity-80 transition-opacity">
|
|
29971
|
+
<svg width="16" height="16" viewBox="0 0 16 16" fill="none"
|
|
29972
|
+
xmlns="http://www.w3.org/2000/svg">
|
|
29973
|
+
<path
|
|
29974
|
+
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"
|
|
29975
|
+
fill="#0D0716" />
|
|
29976
|
+
</svg>
|
|
29977
|
+
</button>
|
|
29978
|
+
</div>
|
|
29979
|
+
</div>
|
|
29980
|
+
</div>
|
|
29981
|
+
</div>
|
|
29982
|
+
|
|
29983
|
+
<!-- Pin + OTP -->
|
|
29984
|
+
<div id="pin-otp" class="tab-content hidden">
|
|
29985
|
+
<div class=" grid gap-3 border border-tone-50 px-6 py-4 rounded-2xl mb-4">
|
|
29986
|
+
<div class="flex justify-between items-center">
|
|
29987
|
+
<span class="text-tone-60 font-medium text-sm">Number</span>
|
|
29988
|
+
<div class="flex items-center gap-1">
|
|
29989
|
+
<span data-copy-value="5555567973581842" class="text-tone-100 text-sm font-medium">5555567973581842</span>
|
|
29990
|
+
<button class="copy-btn p-1 hover:opacity-80 transition-opacity">
|
|
29991
|
+
<svg width="16" height="16" viewBox="0 0 16 16" fill="none"
|
|
29992
|
+
xmlns="http://www.w3.org/2000/svg">
|
|
29993
|
+
<path
|
|
29994
|
+
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"
|
|
29995
|
+
fill="#0D0716" />
|
|
29996
|
+
</svg>
|
|
29997
|
+
</button>
|
|
29998
|
+
</div>
|
|
29999
|
+
</div>
|
|
30000
|
+
<div class="flex justify-between items-center">
|
|
30001
|
+
<span class="text-tone-60 font-medium text-sm">Expiry</span>
|
|
30002
|
+
<div class="flex items-center gap-1">
|
|
30003
|
+
<span data-copy-value="12/30" class="text-tone-100 text-sm font-medium">12/2030</span>
|
|
30004
|
+
<button class="copy-btn p-1 hover:opacity-80 transition-opacity">
|
|
30005
|
+
<svg width="16" height="16" viewBox="0 0 16 16" fill="none"
|
|
30006
|
+
xmlns="http://www.w3.org/2000/svg">
|
|
30007
|
+
<path
|
|
30008
|
+
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"
|
|
30009
|
+
fill="#0D0716" />
|
|
30010
|
+
</svg>
|
|
30011
|
+
</button>
|
|
30012
|
+
</div>
|
|
30013
|
+
</div>
|
|
30014
|
+
<div class="flex justify-between items-center">
|
|
30015
|
+
<span class="text-tone-60 font-medium text-sm">CVV</span>
|
|
30016
|
+
<div class="flex items-center gap-1">
|
|
30017
|
+
<span data-copy-value="321" class="text-tone-100 text-sm font-medium">321</span>
|
|
30018
|
+
<button class="copy-btn p-1 hover:opacity-80 transition-opacity">
|
|
30019
|
+
<svg width="16" height="16" viewBox="0 0 16 16" fill="none"
|
|
30020
|
+
xmlns="http://www.w3.org/2000/svg">
|
|
30021
|
+
<path
|
|
30022
|
+
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"
|
|
30023
|
+
fill="#0D0716" />
|
|
30024
|
+
</svg>
|
|
30025
|
+
</button>
|
|
30026
|
+
</div>
|
|
30027
|
+
</div>
|
|
30028
|
+
<div class="flex justify-between items-center">
|
|
30029
|
+
<span class="text-tone-60 font-medium text-sm">Pin</span>
|
|
30030
|
+
<div class="flex items-center gap-1">
|
|
30031
|
+
<span data-copy-value="4321" class="text-tone-100 text-sm font-medium">4321</span>
|
|
30032
|
+
<button class="copy-btn p-1 hover:opacity-80 transition-opacity">
|
|
30033
|
+
<svg width="16" height="16" viewBox="0 0 16 16" fill="none"
|
|
30034
|
+
xmlns="http://www.w3.org/2000/svg">
|
|
30035
|
+
<path
|
|
30036
|
+
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"
|
|
30037
|
+
fill="#0D0716" />
|
|
30038
|
+
</svg>
|
|
30039
|
+
</button>
|
|
30040
|
+
</div>
|
|
30041
|
+
</div>
|
|
30042
|
+
<div class="flex justify-between items-center">
|
|
30043
|
+
<span class="text-tone-60 font-medium text-sm">OTP</span>
|
|
30044
|
+
<div class="flex items-center gap-1">
|
|
30045
|
+
<span data-copy-value="654321" class="text-tone-100 text-sm font-medium">654321</span>
|
|
30046
|
+
<button class="copy-btn p-1 hover:opacity-80 transition-opacity">
|
|
30047
|
+
<svg width="16" height="16" viewBox="0 0 16 16" fill="none"
|
|
30048
|
+
xmlns="http://www.w3.org/2000/svg">
|
|
30049
|
+
<path
|
|
30050
|
+
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"
|
|
30051
|
+
fill="#0D0716" />
|
|
30052
|
+
</svg>
|
|
30053
|
+
</button>
|
|
30054
|
+
</div>
|
|
30055
|
+
</div>
|
|
30056
|
+
</div>
|
|
30057
|
+
</div>
|
|
30058
|
+
<!-- 3DS -->
|
|
30059
|
+
<div id="3ds" class="tab-content hidden">
|
|
30060
|
+
<div class=" grid gap-3 border border-tone-50 px-6 py-4 rounded-2xl mb-4">
|
|
30061
|
+
<div class="flex justify-between items-center">
|
|
30062
|
+
<span class="text-tone-60 font-medium text-sm">Number</span>
|
|
30063
|
+
<div class="flex items-center gap-1">
|
|
30064
|
+
<span data-copy-value="5555558684543932"
|
|
30065
|
+
class="text-tone-100 text-sm font-medium">5555577124976817 </span>
|
|
30066
|
+
<button class="copy-btn p-1 hover:opacity-80 transition-opacity">
|
|
30067
|
+
<svg width="16" height="16" viewBox="0 0 16 16" fill="none"
|
|
30068
|
+
xmlns="http://www.w3.org/2000/svg">
|
|
30069
|
+
<path
|
|
30070
|
+
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"
|
|
30071
|
+
fill="#0D0716" />
|
|
30072
|
+
</svg>
|
|
30073
|
+
</button>
|
|
30074
|
+
</div>
|
|
30075
|
+
</div>
|
|
30076
|
+
|
|
30077
|
+
<div class="flex justify-between items-center">
|
|
30078
|
+
<span class="text-tone-60 font-medium text-sm">Expiry</span>
|
|
30079
|
+
<div class="flex items-center gap-1">
|
|
30080
|
+
<span data-copy-value="12/30" class="text-tone-100 text-sm font-medium">12/2030</span>
|
|
30081
|
+
<button class="copy-btn p-1 hover:opacity-80 transition-opacity">
|
|
30082
|
+
<svg width="16" height="16" viewBox="0 0 16 16" fill="none"
|
|
30083
|
+
xmlns="http://www.w3.org/2000/svg">
|
|
30084
|
+
<path
|
|
30085
|
+
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"
|
|
30086
|
+
fill="#0D0716" />
|
|
30087
|
+
</svg>
|
|
30088
|
+
</button>
|
|
30089
|
+
</div>
|
|
30090
|
+
</div>
|
|
30091
|
+
<div class="flex justify-between items-center">
|
|
30092
|
+
<span class="text-tone-60 font-medium text-sm">CVV</span>
|
|
30093
|
+
<div class="flex items-center gap-1">
|
|
30094
|
+
<span data-copy-value="321" class="text-tone-100 text-sm font-medium">321</span>
|
|
30095
|
+
<button class="copy-btn p-1 hover:opacity-80 transition-opacity">
|
|
30096
|
+
<svg width="16" height="16" viewBox="0 0 16 16" fill="none"
|
|
30097
|
+
xmlns="http://www.w3.org/2000/svg">
|
|
30098
|
+
<path
|
|
30099
|
+
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"
|
|
30100
|
+
fill="#0D0716" />
|
|
30101
|
+
</svg>
|
|
30102
|
+
</button>
|
|
30103
|
+
</div>
|
|
30104
|
+
</div>
|
|
30105
|
+
</div>
|
|
30106
|
+
</div>
|
|
30107
|
+
|
|
30108
|
+
<!-- AVS -->
|
|
30109
|
+
<div id="avs" class="tab-content hidden">
|
|
30110
|
+
<div class=" grid gap-3 border border-tone-50 px-6 py-4 rounded-2xl mb-4">
|
|
30111
|
+
<div class="flex justify-between items-center">
|
|
30112
|
+
<span class="text-tone-60 font-medium text-sm">Number</span>
|
|
30113
|
+
<div class="flex items-center gap-1">
|
|
30114
|
+
<span data-copy-value="4111124373708482"
|
|
30115
|
+
class="text-tone-100 text-sm font-medium">4111124373708482 </span>
|
|
30116
|
+
<button class="copy-btn p-1 hover:opacity-80 transition-opacity">
|
|
30117
|
+
<svg width="16" height="16" viewBox="0 0 16 16" fill="none"
|
|
30118
|
+
xmlns="http://www.w3.org/2000/svg">
|
|
30119
|
+
<path
|
|
30120
|
+
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"
|
|
30121
|
+
fill="#0D0716" />
|
|
30122
|
+
</svg>
|
|
30123
|
+
</button>
|
|
30124
|
+
</div>
|
|
30125
|
+
</div>
|
|
30126
|
+
|
|
30127
|
+
<div class="flex justify-between items-center">
|
|
30128
|
+
<span class="text-tone-60 font-medium text-sm">Expiry</span>
|
|
30129
|
+
<div class="flex items-center gap-1">
|
|
30130
|
+
<span data-copy-value="12/30" class="text-tone-100 text-sm font-medium">12/2030</span>
|
|
30131
|
+
<button class="copy-btn p-1 hover:opacity-80 transition-opacity">
|
|
30132
|
+
<svg width="16" height="16" viewBox="0 0 16 16" fill="none"
|
|
30133
|
+
xmlns="http://www.w3.org/2000/svg">
|
|
30134
|
+
<path
|
|
30135
|
+
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"
|
|
30136
|
+
fill="#0D0716" />
|
|
30137
|
+
</svg>
|
|
30138
|
+
</button>
|
|
30139
|
+
</div>
|
|
30140
|
+
</div>
|
|
30141
|
+
<div class="flex justify-between items-center">
|
|
30142
|
+
<span class="text-tone-60 font-medium text-sm">CVV</span>
|
|
30143
|
+
<div class="flex items-center gap-1">
|
|
30144
|
+
<span data-copy-value="321" class="text-tone-100 text-sm font-medium">321</span>
|
|
30145
|
+
<button class="copy-btn p-1 hover:opacity-80 transition-opacity">
|
|
30146
|
+
<svg width="16" height="16" viewBox="0 0 16 16" fill="none"
|
|
30147
|
+
xmlns="http://www.w3.org/2000/svg">
|
|
30148
|
+
<path
|
|
30149
|
+
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"
|
|
30150
|
+
fill="#0D0716" />
|
|
30151
|
+
</svg>
|
|
30152
|
+
</button>
|
|
30153
|
+
</div>
|
|
30154
|
+
</div>
|
|
30155
|
+
<div class="flex justify-between items-center">
|
|
30156
|
+
<span class="text-tone-60 font-medium text-sm">OTP</span>
|
|
30157
|
+
<div class="flex flex-col items-end gap-1">
|
|
30158
|
+
<span class="text-tone-100 text-sm font-medium">Address: 1, Spotflow Street</span>
|
|
30159
|
+
<span class="text-tone-100 text-sm font-medium">City: Lekki</span>
|
|
30160
|
+
<span class="text-tone-100 text-sm font-medium">State: Lagos</span>
|
|
30161
|
+
<span class="text-tone-100 text-sm font-medium">Country: Nigeria</span>
|
|
30162
|
+
<span class="text-tone-100 text-sm font-medium">ZIP: 101233</span>
|
|
30163
|
+
</div>
|
|
30164
|
+
</div>
|
|
30165
|
+
</div>
|
|
30166
|
+
</div>
|
|
30167
|
+
</div>
|
|
30168
|
+
</div>`;
|
|
30169
|
+
class go {
|
|
30170
|
+
constructor({ container: e, closeCallback: i }) {
|
|
30171
|
+
h(this, "container");
|
|
30172
|
+
h(this, "closeCallback");
|
|
30173
|
+
this.container = e, this.closeCallback = i;
|
|
30174
|
+
}
|
|
30175
|
+
render() {
|
|
30176
|
+
return Od;
|
|
30177
|
+
}
|
|
30178
|
+
attachListener() {
|
|
30179
|
+
const e = this.container.querySelector(
|
|
30180
|
+
"#close-test-card"
|
|
30181
|
+
);
|
|
30182
|
+
e == null || e.addEventListener("click", () => this.closeCallback());
|
|
30183
|
+
const i = this.container.querySelectorAll(
|
|
30184
|
+
"#test-card-tabs .tab-btn"
|
|
30185
|
+
), t = this.container.querySelectorAll(".tab-content");
|
|
30186
|
+
i.forEach((o) => {
|
|
30187
|
+
o.addEventListener("click", () => {
|
|
30188
|
+
i.forEach((l) => l.classList.remove("active-tab")), o.classList.add("active-tab");
|
|
30189
|
+
const a = o.getAttribute("data-target");
|
|
30190
|
+
t.forEach((l) => {
|
|
30191
|
+
l.id === a ? l.classList.remove("hidden") : l.classList.add("hidden");
|
|
30192
|
+
});
|
|
30193
|
+
});
|
|
30194
|
+
}), this.container.querySelectorAll(".copy-btn").forEach((o) => {
|
|
30195
|
+
o.addEventListener("click", async (a) => {
|
|
30196
|
+
const d = a.currentTarget.previousElementSibling.getAttribute("data-copy-value") || "";
|
|
30197
|
+
d && (await navigator.clipboard.writeText(d), o.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(() => {
|
|
30198
|
+
o.innerHTML = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
30199
|
+
<path
|
|
30200
|
+
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"
|
|
30201
|
+
fill="#0D0716" />
|
|
30202
|
+
</svg>`;
|
|
30203
|
+
}, 1e3));
|
|
30204
|
+
});
|
|
30205
|
+
});
|
|
30206
|
+
}
|
|
30207
|
+
renderComponent() {
|
|
30208
|
+
this.container.innerHTML = this.render(), this.attachListener();
|
|
30209
|
+
}
|
|
30210
|
+
}
|
|
30211
|
+
function Ud(n) {
|
|
30212
|
+
n.classList.remove("hidden"), requestAnimationFrame(() => {
|
|
30213
|
+
n.classList.remove("opacity-0", "scale-95");
|
|
30214
|
+
});
|
|
30215
|
+
}
|
|
30216
|
+
function ki(n) {
|
|
30217
|
+
n.classList.add("opacity-0", "scale-95"), n.addEventListener(
|
|
30218
|
+
"transitionend",
|
|
30219
|
+
() => n.classList.add("hidden"),
|
|
30220
|
+
{ once: !0 }
|
|
30221
|
+
);
|
|
30222
|
+
}
|
|
30223
|
+
class ws {
|
|
30224
|
+
constructor({ container: e, testCardContainer: i }) {
|
|
30225
|
+
h(this, "container");
|
|
30226
|
+
h(this, "testCardContainer");
|
|
30227
|
+
h(this, "testCardInstance", null);
|
|
30228
|
+
this.container = e, this.testCardContainer = i;
|
|
30229
|
+
}
|
|
30230
|
+
attachListener() {
|
|
30231
|
+
const e = this.container.querySelector(
|
|
30232
|
+
"#test-cards-link"
|
|
30233
|
+
);
|
|
30234
|
+
e && e.addEventListener("click", () => {
|
|
30235
|
+
this.testCardInstance || (this.testCardInstance = new go({
|
|
30236
|
+
container: this.testCardContainer,
|
|
30237
|
+
closeCallback: () => {
|
|
30238
|
+
this.testCardContainer.innerHTML = "", ki(this.testCardContainer), e.classList.remove("text-tone-100", "font-bold");
|
|
30239
|
+
}
|
|
30240
|
+
})), this.testCardInstance.renderComponent(), Ud(this.testCardContainer), e.classList.add("text-tone-100", "font-bold");
|
|
30241
|
+
});
|
|
30242
|
+
}
|
|
30243
|
+
renderComponent() {
|
|
30244
|
+
this.container.innerHTML = this.render(), this.attachListener();
|
|
30245
|
+
}
|
|
30246
|
+
render() {
|
|
30247
|
+
return Rd;
|
|
30248
|
+
}
|
|
30249
|
+
}
|
|
30250
|
+
class Vd {
|
|
29842
30251
|
constructor({
|
|
29843
30252
|
amount: e,
|
|
29844
30253
|
totalAmount: i,
|
|
@@ -29932,7 +30341,7 @@ class Rd {
|
|
|
29932
30341
|
reference: this.reference,
|
|
29933
30342
|
encryptedCard: o
|
|
29934
30343
|
};
|
|
29935
|
-
return
|
|
30344
|
+
return Ri(
|
|
29936
30345
|
this.token,
|
|
29937
30346
|
d,
|
|
29938
30347
|
this.rdtCode,
|
|
@@ -30312,15 +30721,19 @@ class Rd {
|
|
|
30312
30721
|
);
|
|
30313
30722
|
}
|
|
30314
30723
|
renderCardContent(e) {
|
|
30315
|
-
var
|
|
30724
|
+
var o, a;
|
|
30316
30725
|
e && (this.merchantPlanDetail = e);
|
|
30317
|
-
const i = document.getElementById(
|
|
30318
|
-
|
|
30726
|
+
const i = document.getElementById(
|
|
30727
|
+
"test-container"
|
|
30728
|
+
), t = this.container.querySelector(
|
|
30729
|
+
"#test-cards-link"
|
|
30730
|
+
), s = document.getElementById("go-back");
|
|
30731
|
+
if (this.currentStep !== 1 ? (this.hidePaymentMethods(), s == null || s.classList.add("hidden")) : this.showPaymentMethods(), this.isMobile && this.hidePaymentMethods(), this.contents) {
|
|
30319
30732
|
switch (this.currentStep) {
|
|
30320
30733
|
case 1:
|
|
30321
|
-
this.cardDetailForm = new
|
|
30734
|
+
this.cardDetailForm = new Xt({
|
|
30322
30735
|
container: this.contents,
|
|
30323
|
-
onAction: (
|
|
30736
|
+
onAction: (d) => (p) => this.submitCardDetails.bind(this)(d, p),
|
|
30324
30737
|
merchantName: this.merchantPlanDetail.merchantName,
|
|
30325
30738
|
currency: this.localCurrency !== this.currency ? this.localCurrency : this.currency
|
|
30326
30739
|
}), this.cardDetailForm.renderContent();
|
|
@@ -30329,15 +30742,15 @@ class Rd {
|
|
|
30329
30742
|
this.cardPinForm = new Rr({
|
|
30330
30743
|
container: this.contents,
|
|
30331
30744
|
onClose: this.onClose,
|
|
30332
|
-
onAction: (
|
|
30745
|
+
onAction: (d) => this.handlePinRequest.bind(this)(d)
|
|
30333
30746
|
}), this.cardPinForm.renderComponent();
|
|
30334
30747
|
break;
|
|
30335
30748
|
case 3:
|
|
30336
30749
|
this.cardOtpValidationForm = new Br({
|
|
30337
30750
|
container: this.contents,
|
|
30338
30751
|
onClose: this.onClose,
|
|
30339
|
-
onAction: (
|
|
30340
|
-
otpMessage: ((
|
|
30752
|
+
onAction: (d) => (p) => this.submitOtp.bind(this)(d, p),
|
|
30753
|
+
otpMessage: ((o = this.cardResponse) == null ? void 0 : o.providerMessage) || "Please enter your OTP sent to your phone"
|
|
30341
30754
|
}), this.cardOtpValidationForm.renderComponent();
|
|
30342
30755
|
break;
|
|
30343
30756
|
case 4:
|
|
@@ -30345,7 +30758,7 @@ class Rd {
|
|
|
30345
30758
|
container: this.contents,
|
|
30346
30759
|
onAction: this.isMaxRetriesReached ? this.goBackToMerchant.bind(this) : this.restartTransactionProcess.bind(this),
|
|
30347
30760
|
onReportIssue: () => this.currentStep = 8
|
|
30348
|
-
}), this.contents.innerHTML = this.warningScreen.render(), this.warningScreen.attachListener();
|
|
30761
|
+
}), this.contents.innerHTML = this.warningScreen.render(), this.warningScreen.attachListener(), ki(i), t.classList.remove("text-tone-100", "font-bold");
|
|
30349
30762
|
break;
|
|
30350
30763
|
case 5:
|
|
30351
30764
|
this.successScreen = new ii({
|
|
@@ -30353,8 +30766,8 @@ class Rd {
|
|
|
30353
30766
|
amount: this.totalAmount,
|
|
30354
30767
|
currency: this.currency,
|
|
30355
30768
|
localCurrency: this.localCurrency,
|
|
30356
|
-
rate: (
|
|
30357
|
-
}), this.successScreen.renderComponent();
|
|
30769
|
+
rate: (a = this.merchantPlanDetail) == null ? void 0 : a.rate.rate
|
|
30770
|
+
}), this.successScreen.renderComponent(), ki(i), t.classList.remove("text-tone-100", "font-bold");
|
|
30358
30771
|
break;
|
|
30359
30772
|
case 6:
|
|
30360
30773
|
this.pageLoader = new Ne(this.contents), this.pageLoader.mountLoader(), this.pageLoader.updateMessage("Verifying Payment");
|
|
@@ -30362,16 +30775,16 @@ class Rd {
|
|
|
30362
30775
|
case 7:
|
|
30363
30776
|
this.avsForm = new Kr({
|
|
30364
30777
|
container: this.contents,
|
|
30365
|
-
onAction: (
|
|
30778
|
+
onAction: (d) => (p) => this.validatedAVS.bind(this)(d, p)
|
|
30366
30779
|
}), this.avsForm.renderComponent();
|
|
30367
30780
|
break;
|
|
30368
30781
|
case 8:
|
|
30369
|
-
this.transactionIssuesScreen = new
|
|
30782
|
+
this.transactionIssuesScreen = new Oi({
|
|
30370
30783
|
container: this.contents,
|
|
30371
30784
|
onAction: () => {
|
|
30372
|
-
var
|
|
30785
|
+
var d;
|
|
30373
30786
|
this.currentStep = 4, this.warningScreen.setPaymentError(
|
|
30374
|
-
((
|
|
30787
|
+
((d = this.cardResponse) == null ? void 0 : d.providerMessage) || "Payment failed"
|
|
30375
30788
|
);
|
|
30376
30789
|
},
|
|
30377
30790
|
url: this.url,
|
|
@@ -30386,8 +30799,8 @@ class Rd {
|
|
|
30386
30799
|
case 9:
|
|
30387
30800
|
this.confirmationEnd = new fo({
|
|
30388
30801
|
container: this.contents,
|
|
30389
|
-
onAction: (
|
|
30390
|
-
this.currentStep =
|
|
30802
|
+
onAction: (d) => {
|
|
30803
|
+
this.currentStep = d;
|
|
30391
30804
|
},
|
|
30392
30805
|
ref: this.reference,
|
|
30393
30806
|
token: this.token,
|
|
@@ -30395,14 +30808,15 @@ class Rd {
|
|
|
30395
30808
|
url: this.url,
|
|
30396
30809
|
callBackUrl: this.callBackUrl,
|
|
30397
30810
|
paymentResponse: this.cardResponse,
|
|
30398
|
-
paymentResponseHeaders: this.cardResponseHeader
|
|
30811
|
+
paymentResponseHeaders: this.cardResponseHeader,
|
|
30812
|
+
paymentMethod: "Card"
|
|
30399
30813
|
}), this.confirmationEnd.renderComponent();
|
|
30400
30814
|
break;
|
|
30401
30815
|
case 10:
|
|
30402
30816
|
this.confirmationProgress = new Hd({
|
|
30403
30817
|
container: this.contents,
|
|
30404
|
-
onAction: (
|
|
30405
|
-
this.currentStep =
|
|
30818
|
+
onAction: (d) => {
|
|
30819
|
+
this.currentStep = d;
|
|
30406
30820
|
},
|
|
30407
30821
|
ref: this.reference,
|
|
30408
30822
|
onSuccess: this.onSuccess.bind(this),
|
|
@@ -30410,8 +30824,8 @@ class Rd {
|
|
|
30410
30824
|
rdtCode: this.rdtCode,
|
|
30411
30825
|
url: this.url,
|
|
30412
30826
|
callBackUrl: this.callBackUrl,
|
|
30413
|
-
setPaymentResponses: (
|
|
30414
|
-
this.cardResponse =
|
|
30827
|
+
setPaymentResponses: (d, p) => {
|
|
30828
|
+
this.cardResponse = d, this.cardResponseHeader = p;
|
|
30415
30829
|
},
|
|
30416
30830
|
step: {
|
|
30417
30831
|
failed: 4,
|
|
@@ -30419,20 +30833,20 @@ class Rd {
|
|
|
30419
30833
|
end: 9
|
|
30420
30834
|
},
|
|
30421
30835
|
paymentMethod: "Card"
|
|
30422
|
-
}), this.confirmationProgress.renderComponent();
|
|
30836
|
+
}), this.confirmationProgress.renderComponent(), ki(i), t.classList.remove("text-tone-100", "font-bold");
|
|
30423
30837
|
break;
|
|
30424
30838
|
default:
|
|
30425
|
-
this.cardDetailForm = new
|
|
30839
|
+
this.cardDetailForm = new Xt({
|
|
30426
30840
|
container: this.contents,
|
|
30427
|
-
onAction: (
|
|
30841
|
+
onAction: (d) => (p) => this.submitCardDetails.bind(this)(d, p),
|
|
30428
30842
|
merchantName: this.merchantPlanDetail.merchantName,
|
|
30429
30843
|
currency: this.localCurrency ? this.localCurrency : this.currency
|
|
30430
30844
|
}), this.cardDetailForm.renderContent();
|
|
30431
30845
|
break;
|
|
30432
30846
|
}
|
|
30433
30847
|
this.displayButtonText();
|
|
30434
|
-
const
|
|
30435
|
-
|
|
30848
|
+
const l = this.container.querySelector("#card-currency");
|
|
30849
|
+
l && (l.textContent = `${this.localCurrency ? this.localCurrency : this.currency} Card`);
|
|
30436
30850
|
}
|
|
30437
30851
|
}
|
|
30438
30852
|
redirectTo(e, i, t) {
|
|
@@ -30456,7 +30870,7 @@ class Rd {
|
|
|
30456
30870
|
}
|
|
30457
30871
|
}
|
|
30458
30872
|
}
|
|
30459
|
-
const
|
|
30873
|
+
const Kd = `<div>
|
|
30460
30874
|
<div class="container-center h-[40vh] hidden" id="loader">
|
|
30461
30875
|
<img src="" alt="loader gif" />
|
|
30462
30876
|
</div>
|
|
@@ -30548,10 +30962,10 @@ const Od = `<div>
|
|
|
30548
30962
|
</div>
|
|
30549
30963
|
</div>
|
|
30550
30964
|
</div>`;
|
|
30551
|
-
function
|
|
30965
|
+
function jd(n) {
|
|
30552
30966
|
return n && n.__esModule && Object.prototype.hasOwnProperty.call(n, "default") ? n.default : n;
|
|
30553
30967
|
}
|
|
30554
|
-
var
|
|
30968
|
+
var yo = { exports: {} };
|
|
30555
30969
|
/*!
|
|
30556
30970
|
* Pusher JavaScript Library v8.4.0
|
|
30557
30971
|
* https://pusher.com/
|
|
@@ -30655,9 +31069,9 @@ var go = { exports: {} };
|
|
|
30655
31069
|
}, C.prototype.decode = function(w) {
|
|
30656
31070
|
if (w.length === 0)
|
|
30657
31071
|
return new Uint8Array(0);
|
|
30658
|
-
for (var M = this._getPaddingLength(w), A = w.length - M, _ = new Uint8Array(this.maxDecodedLength(A)), T = 0, I = 0, K = 0, G = 0,
|
|
30659
|
-
G = this._decodeChar(w.charCodeAt(I + 0)),
|
|
30660
|
-
if (I < A - 1 && (G = this._decodeChar(w.charCodeAt(I)),
|
|
31072
|
+
for (var M = this._getPaddingLength(w), A = w.length - M, _ = new Uint8Array(this.maxDecodedLength(A)), T = 0, I = 0, K = 0, G = 0, U = 0, j = 0, te = 0; I < A - 4; I += 4)
|
|
31073
|
+
G = this._decodeChar(w.charCodeAt(I + 0)), U = this._decodeChar(w.charCodeAt(I + 1)), j = this._decodeChar(w.charCodeAt(I + 2)), te = this._decodeChar(w.charCodeAt(I + 3)), _[T++] = G << 2 | U >>> 4, _[T++] = U << 4 | j >>> 2, _[T++] = j << 6 | te, K |= G & a, K |= U & a, K |= j & a, K |= te & a;
|
|
31074
|
+
if (I < A - 1 && (G = this._decodeChar(w.charCodeAt(I)), U = this._decodeChar(w.charCodeAt(I + 1)), _[T++] = G << 2 | U >>> 4, K |= G & a, K |= U & a), I < A - 2 && (j = this._decodeChar(w.charCodeAt(I + 2)), _[T++] = U << 4 | j >>> 2, K |= j & a), I < A - 3 && (te = this._decodeChar(w.charCodeAt(I + 3)), _[T++] = j << 6 | te, K |= te & a), K !== 0)
|
|
30661
31075
|
throw new Error("Base64Coder: incorrect characters for decoding");
|
|
30662
31076
|
return _;
|
|
30663
31077
|
}, C.prototype._encodeByte = function(w) {
|
|
@@ -30955,7 +31369,7 @@ var go = { exports: {} };
|
|
|
30955
31369
|
super(r), Object.setPrototypeOf(this, new.target.prototype);
|
|
30956
31370
|
}
|
|
30957
31371
|
}
|
|
30958
|
-
class
|
|
31372
|
+
class U extends Error {
|
|
30959
31373
|
constructor(r, u) {
|
|
30960
31374
|
super(u), this.status = r, Object.setPrototypeOf(this, new.target.prototype);
|
|
30961
31375
|
}
|
|
@@ -30977,7 +31391,7 @@ var go = { exports: {} };
|
|
|
30977
31391
|
try {
|
|
30978
31392
|
D = JSON.parse(x.responseText), B = !0;
|
|
30979
31393
|
} catch {
|
|
30980
|
-
S(new
|
|
31394
|
+
S(new U(200, `JSON returned from ${b.toString()} endpoint was invalid, yet status code was 200. Data was: ${x.responseText}`), null);
|
|
30981
31395
|
}
|
|
30982
31396
|
B && S(null, D);
|
|
30983
31397
|
} else {
|
|
@@ -30990,16 +31404,16 @@ var go = { exports: {} };
|
|
|
30990
31404
|
D = `Clients must be authorized to join private or presence channels. ${k.buildLogSuffix("authorizationEndpoint")}`;
|
|
30991
31405
|
break;
|
|
30992
31406
|
}
|
|
30993
|
-
S(new
|
|
31407
|
+
S(new U(x.status, `Unable to retrieve auth string from ${b.toString()} endpoint - received status: ${x.status} from ${u.endpoint}. ${D}`), null);
|
|
30994
31408
|
}
|
|
30995
31409
|
}, x.send(r), x;
|
|
30996
31410
|
};
|
|
30997
31411
|
function ge(c) {
|
|
30998
31412
|
return ze(xe(c));
|
|
30999
31413
|
}
|
|
31000
|
-
var
|
|
31414
|
+
var V = String.fromCharCode, ke = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", le = function(c) {
|
|
31001
31415
|
var r = c.charCodeAt(0);
|
|
31002
|
-
return r < 128 ? c : r < 2048 ?
|
|
31416
|
+
return r < 128 ? c : r < 2048 ? V(192 | r >>> 6) + V(128 | r & 63) : V(224 | r >>> 12 & 15) + V(128 | r >>> 6 & 63) + V(128 | r & 63);
|
|
31003
31417
|
}, xe = function(c) {
|
|
31004
31418
|
return c.replace(/[^\x00-\x7F]/g, le);
|
|
31005
31419
|
}, we = function(c) {
|
|
@@ -31216,7 +31630,7 @@ var go = { exports: {} };
|
|
|
31216
31630
|
}
|
|
31217
31631
|
log(r, ...u) {
|
|
31218
31632
|
var b = Ie.apply(this, arguments);
|
|
31219
|
-
|
|
31633
|
+
et.log ? et.log(b) : et.logToConsole && r.bind(this)(b);
|
|
31220
31634
|
}
|
|
31221
31635
|
}
|
|
31222
31636
|
var oe = new Fn(), ko = function(c, r, u, b, S) {
|
|
@@ -31277,30 +31691,30 @@ var go = { exports: {} };
|
|
|
31277
31691
|
name: "jsonp",
|
|
31278
31692
|
getAgent: Ao
|
|
31279
31693
|
}, xo = Lo;
|
|
31280
|
-
function
|
|
31694
|
+
function Gi(c, r, u) {
|
|
31281
31695
|
var b = c + (r.useTLS ? "s" : ""), S = r.useTLS ? r.hostTLS : r.hostNonTLS;
|
|
31282
31696
|
return b + "://" + S + u;
|
|
31283
31697
|
}
|
|
31284
|
-
function
|
|
31698
|
+
function qi(c, r) {
|
|
31285
31699
|
var u = "/app/" + c, b = "?protocol=" + d.PROTOCOL + "&client=js&version=" + d.VERSION + (r ? "&" + r : "");
|
|
31286
31700
|
return u + b;
|
|
31287
31701
|
}
|
|
31288
31702
|
var To = {
|
|
31289
31703
|
getInitial: function(c, r) {
|
|
31290
|
-
var u = (r.httpPath || "") +
|
|
31291
|
-
return
|
|
31704
|
+
var u = (r.httpPath || "") + qi(c, "flash=false");
|
|
31705
|
+
return Gi("ws", r, u);
|
|
31292
31706
|
}
|
|
31293
31707
|
}, Eo = {
|
|
31294
31708
|
getInitial: function(c, r) {
|
|
31295
|
-
var u = (r.httpPath || "/pusher") +
|
|
31296
|
-
return
|
|
31709
|
+
var u = (r.httpPath || "/pusher") + qi(c);
|
|
31710
|
+
return Gi("http", r, u);
|
|
31297
31711
|
}
|
|
31298
31712
|
}, Po = {
|
|
31299
31713
|
getInitial: function(c, r) {
|
|
31300
|
-
return
|
|
31714
|
+
return Gi("http", r, r.httpPath || "/pusher");
|
|
31301
31715
|
},
|
|
31302
31716
|
getPath: function(c, r) {
|
|
31303
|
-
return
|
|
31717
|
+
return qi(c);
|
|
31304
31718
|
}
|
|
31305
31719
|
};
|
|
31306
31720
|
class Io {
|
|
@@ -31308,10 +31722,10 @@ var go = { exports: {} };
|
|
|
31308
31722
|
this._callbacks = {};
|
|
31309
31723
|
}
|
|
31310
31724
|
get(r) {
|
|
31311
|
-
return this._callbacks[
|
|
31725
|
+
return this._callbacks[zi(r)];
|
|
31312
31726
|
}
|
|
31313
31727
|
add(r, u, b) {
|
|
31314
|
-
var S =
|
|
31728
|
+
var S = zi(r);
|
|
31315
31729
|
this._callbacks[S] = this._callbacks[S] || [], this._callbacks[S].push({
|
|
31316
31730
|
fn: u,
|
|
31317
31731
|
context: b
|
|
@@ -31322,7 +31736,7 @@ var go = { exports: {} };
|
|
|
31322
31736
|
this._callbacks = {};
|
|
31323
31737
|
return;
|
|
31324
31738
|
}
|
|
31325
|
-
var S = r ? [
|
|
31739
|
+
var S = r ? [zi(r)] : je(this._callbacks);
|
|
31326
31740
|
u || b ? this.removeCallback(S, u, b) : this.removeAllCallbacks(S);
|
|
31327
31741
|
}
|
|
31328
31742
|
removeCallback(r, u, b) {
|
|
@@ -31338,7 +31752,7 @@ var go = { exports: {} };
|
|
|
31338
31752
|
}, this);
|
|
31339
31753
|
}
|
|
31340
31754
|
}
|
|
31341
|
-
function
|
|
31755
|
+
function zi(c) {
|
|
31342
31756
|
return "_" + c;
|
|
31343
31757
|
}
|
|
31344
31758
|
class Je {
|
|
@@ -31474,26 +31888,26 @@ var go = { exports: {} };
|
|
|
31474
31888
|
getSocket: function(c) {
|
|
31475
31889
|
return O.createWebSocket(c);
|
|
31476
31890
|
}
|
|
31477
|
-
}),
|
|
31891
|
+
}), It = {
|
|
31478
31892
|
urls: Eo,
|
|
31479
31893
|
handlesActivityChecks: !1,
|
|
31480
31894
|
supportsPing: !0,
|
|
31481
31895
|
isInitialized: function() {
|
|
31482
31896
|
return !0;
|
|
31483
31897
|
}
|
|
31484
|
-
},
|
|
31898
|
+
}, Dt = pe({
|
|
31485
31899
|
getSocket: function(c) {
|
|
31486
31900
|
return O.HTTPFactory.createStreamingSocket(c);
|
|
31487
31901
|
}
|
|
31488
|
-
},
|
|
31902
|
+
}, It), Nt = pe({
|
|
31489
31903
|
getSocket: function(c) {
|
|
31490
31904
|
return O.HTTPFactory.createPollingSocket(c);
|
|
31491
31905
|
}
|
|
31492
|
-
},
|
|
31906
|
+
}, It), Bt = {
|
|
31493
31907
|
isSupported: function() {
|
|
31494
31908
|
return O.isXHRSupported();
|
|
31495
31909
|
}
|
|
31496
|
-
}, Bo = new xn(pe({},
|
|
31910
|
+
}, Bo = new xn(pe({}, Dt, Bt)), Ho = new xn(pe({}, Nt, Bt)), Ro = {
|
|
31497
31911
|
ws: No,
|
|
31498
31912
|
xhr_streaming: Bo,
|
|
31499
31913
|
xhr_polling: Ho
|
|
@@ -31521,13 +31935,13 @@ var go = { exports: {} };
|
|
|
31521
31935
|
path: r
|
|
31522
31936
|
}));
|
|
31523
31937
|
}
|
|
31524
|
-
}),
|
|
31938
|
+
}), Ht = {
|
|
31525
31939
|
isSupported: function(c) {
|
|
31526
31940
|
var r = O.isXDRSupported(c.useTLS);
|
|
31527
31941
|
return r;
|
|
31528
31942
|
}
|
|
31529
|
-
},
|
|
31530
|
-
ui.xdr_streaming =
|
|
31943
|
+
}, Uo = new xn(pe({}, Dt, Ht)), Vo = new xn(pe({}, Nt, Ht));
|
|
31944
|
+
ui.xdr_streaming = Uo, ui.xdr_polling = Vo, ui.sockjs = Oo;
|
|
31531
31945
|
var Ko = ui;
|
|
31532
31946
|
class jo extends Je {
|
|
31533
31947
|
constructor() {
|
|
@@ -31568,7 +31982,7 @@ var go = { exports: {} };
|
|
|
31568
31982
|
return this.manager.isAlive() && this.transport.isSupported(r);
|
|
31569
31983
|
}
|
|
31570
31984
|
}
|
|
31571
|
-
const
|
|
31985
|
+
const Rt = {
|
|
31572
31986
|
decodeMessage: function(c) {
|
|
31573
31987
|
try {
|
|
31574
31988
|
var r = JSON.parse(c.data), u = r.data;
|
|
@@ -31591,7 +32005,7 @@ var go = { exports: {} };
|
|
|
31591
32005
|
return JSON.stringify(c);
|
|
31592
32006
|
},
|
|
31593
32007
|
processHandshake: function(c) {
|
|
31594
|
-
var r =
|
|
32008
|
+
var r = Rt.decodeMessage(c);
|
|
31595
32009
|
if (r.event === "pusher:connection_established") {
|
|
31596
32010
|
if (!r.data.activity_timeout)
|
|
31597
32011
|
throw "No activity timeout specified in handshake";
|
|
@@ -31622,7 +32036,7 @@ var go = { exports: {} };
|
|
|
31622
32036
|
} : null;
|
|
31623
32037
|
}
|
|
31624
32038
|
};
|
|
31625
|
-
var yn =
|
|
32039
|
+
var yn = Rt;
|
|
31626
32040
|
class qo extends Je {
|
|
31627
32041
|
constructor(r, u) {
|
|
31628
32042
|
super(), this.id = r, this.transport = u, this.activityTimeout = u.activityTimeout, this.bindListeners();
|
|
@@ -31739,7 +32153,7 @@ var go = { exports: {} };
|
|
|
31739
32153
|
this.timeline.isEmpty() || this.timeline.send(O.TimelineTransport.getAgent(this, r), u);
|
|
31740
32154
|
}
|
|
31741
32155
|
}
|
|
31742
|
-
class
|
|
32156
|
+
class Wi extends Je {
|
|
31743
32157
|
constructor(r, u) {
|
|
31744
32158
|
super(function(b, S) {
|
|
31745
32159
|
oe.debug("No callbacks on " + r + " for " + b);
|
|
@@ -31782,7 +32196,7 @@ var go = { exports: {} };
|
|
|
31782
32196
|
r ? (this.subscriptionPending = !1, oe.error(r.toString()), this.emit("pusher:subscription_error", Object.assign({}, {
|
|
31783
32197
|
type: "AuthError",
|
|
31784
32198
|
error: r.message
|
|
31785
|
-
}, r instanceof
|
|
32199
|
+
}, r instanceof U ? { status: r.status } : {}))) : this.pusher.send_event("pusher:subscribe", {
|
|
31786
32200
|
auth: u.auth,
|
|
31787
32201
|
channel_data: u.channel_data,
|
|
31788
32202
|
channel: this.name
|
|
@@ -31801,7 +32215,7 @@ var go = { exports: {} };
|
|
|
31801
32215
|
this.subscriptionCancelled = !1;
|
|
31802
32216
|
}
|
|
31803
32217
|
}
|
|
31804
|
-
class
|
|
32218
|
+
class Zi extends Wi {
|
|
31805
32219
|
authorize(r, u) {
|
|
31806
32220
|
return this.pusher.config.channelAuthorizer({
|
|
31807
32221
|
channelName: this.name,
|
|
@@ -31868,7 +32282,7 @@ var go = { exports: {} };
|
|
|
31868
32282
|
Z((b = b.apply(c, r || [])).next());
|
|
31869
32283
|
});
|
|
31870
32284
|
};
|
|
31871
|
-
class $o extends
|
|
32285
|
+
class $o extends Zi {
|
|
31872
32286
|
constructor(r, u) {
|
|
31873
32287
|
super(r, u), this.members = new Zo();
|
|
31874
32288
|
}
|
|
@@ -31923,8 +32337,8 @@ var go = { exports: {} };
|
|
|
31923
32337
|
this.members.reset(), super.disconnect();
|
|
31924
32338
|
}
|
|
31925
32339
|
}
|
|
31926
|
-
var Yo = s(1),
|
|
31927
|
-
class Qo extends
|
|
32340
|
+
var Yo = s(1), Ji = s(0);
|
|
32341
|
+
class Qo extends Zi {
|
|
31928
32342
|
constructor(r, u, b) {
|
|
31929
32343
|
super(r, u), this.key = null, this.nacl = b;
|
|
31930
32344
|
}
|
|
@@ -31939,7 +32353,7 @@ var go = { exports: {} };
|
|
|
31939
32353
|
u(new Error(`No shared_secret key in auth payload for encrypted channel: ${this.name}`), null);
|
|
31940
32354
|
return;
|
|
31941
32355
|
}
|
|
31942
|
-
this.key = Object(
|
|
32356
|
+
this.key = Object(Ji.decode)(x), delete S.shared_secret, u(null, S);
|
|
31943
32357
|
});
|
|
31944
32358
|
}
|
|
31945
32359
|
trigger(r, u) {
|
|
@@ -31962,12 +32376,12 @@ var go = { exports: {} };
|
|
|
31962
32376
|
oe.error("Unexpected format for encrypted event, expected object with `ciphertext` and `nonce` fields, got: " + u);
|
|
31963
32377
|
return;
|
|
31964
32378
|
}
|
|
31965
|
-
let b = Object(
|
|
32379
|
+
let b = Object(Ji.decode)(u.ciphertext);
|
|
31966
32380
|
if (b.length < this.nacl.secretbox.overheadLength) {
|
|
31967
32381
|
oe.error(`Expected encrypted event ciphertext length to be ${this.nacl.secretbox.overheadLength}, got: ${b.length}`);
|
|
31968
32382
|
return;
|
|
31969
32383
|
}
|
|
31970
|
-
let S = Object(
|
|
32384
|
+
let S = Object(Ji.decode)(u.nonce);
|
|
31971
32385
|
if (S.length < this.nacl.secretbox.nonceLength) {
|
|
31972
32386
|
oe.error(`Expected encrypted event nonce length to be ${this.nacl.secretbox.nonceLength}, got: ${S.length}`);
|
|
31973
32387
|
return;
|
|
@@ -32201,10 +32615,10 @@ var go = { exports: {} };
|
|
|
32201
32615
|
return new Xo(c, r);
|
|
32202
32616
|
},
|
|
32203
32617
|
createChannel(c, r) {
|
|
32204
|
-
return new
|
|
32618
|
+
return new Wi(c, r);
|
|
32205
32619
|
},
|
|
32206
32620
|
createPrivateChannel(c, r) {
|
|
32207
|
-
return new
|
|
32621
|
+
return new Zi(c, r);
|
|
32208
32622
|
},
|
|
32209
32623
|
createPresenceChannel(c, r) {
|
|
32210
32624
|
return new $o(c, r);
|
|
@@ -32222,7 +32636,7 @@ var go = { exports: {} };
|
|
|
32222
32636
|
return new Go(c, r, u);
|
|
32223
32637
|
}
|
|
32224
32638
|
}, $e = ia;
|
|
32225
|
-
class
|
|
32639
|
+
class Ot {
|
|
32226
32640
|
constructor(r) {
|
|
32227
32641
|
this.options = r || {}, this.livesLeft = this.options.lives || 1 / 0;
|
|
32228
32642
|
}
|
|
@@ -32275,7 +32689,7 @@ var go = { exports: {} };
|
|
|
32275
32689
|
};
|
|
32276
32690
|
}
|
|
32277
32691
|
}
|
|
32278
|
-
class
|
|
32692
|
+
class $i {
|
|
32279
32693
|
constructor(r) {
|
|
32280
32694
|
this.strategies = r;
|
|
32281
32695
|
}
|
|
@@ -32340,7 +32754,7 @@ var go = { exports: {} };
|
|
|
32340
32754
|
}))) : x++);
|
|
32341
32755
|
}
|
|
32342
32756
|
var B = ae.now(), Z = E.pop().connect(r, function Q(ce, mi) {
|
|
32343
|
-
ce ? (
|
|
32757
|
+
ce ? (Ut(b), E.length > 0 ? (B = ae.now(), Z = E.pop().connect(r, Q)) : u(ce)) : (la(b, mi.transport.name, ae.now() - B, x), u(null, mi));
|
|
32344
32758
|
});
|
|
32345
32759
|
return {
|
|
32346
32760
|
abort: function() {
|
|
@@ -32352,18 +32766,18 @@ var go = { exports: {} };
|
|
|
32352
32766
|
};
|
|
32353
32767
|
}
|
|
32354
32768
|
}
|
|
32355
|
-
function
|
|
32769
|
+
function Yi(c) {
|
|
32356
32770
|
return "pusherTransport" + (c ? "TLS" : "NonTLS");
|
|
32357
32771
|
}
|
|
32358
32772
|
function ra(c) {
|
|
32359
32773
|
var r = O.getLocalStorage();
|
|
32360
32774
|
if (r)
|
|
32361
32775
|
try {
|
|
32362
|
-
var u = r[
|
|
32776
|
+
var u = r[Yi(c)];
|
|
32363
32777
|
if (u)
|
|
32364
32778
|
return JSON.parse(u);
|
|
32365
32779
|
} catch {
|
|
32366
|
-
|
|
32780
|
+
Ut(c);
|
|
32367
32781
|
}
|
|
32368
32782
|
return null;
|
|
32369
32783
|
}
|
|
@@ -32371,7 +32785,7 @@ var go = { exports: {} };
|
|
|
32371
32785
|
var S = O.getLocalStorage();
|
|
32372
32786
|
if (S)
|
|
32373
32787
|
try {
|
|
32374
|
-
S[
|
|
32788
|
+
S[Yi(c)] = gn({
|
|
32375
32789
|
timestamp: ae.now(),
|
|
32376
32790
|
transport: r,
|
|
32377
32791
|
latency: u,
|
|
@@ -32380,11 +32794,11 @@ var go = { exports: {} };
|
|
|
32380
32794
|
} catch {
|
|
32381
32795
|
}
|
|
32382
32796
|
}
|
|
32383
|
-
function
|
|
32797
|
+
function Ut(c) {
|
|
32384
32798
|
var r = O.getLocalStorage();
|
|
32385
32799
|
if (r)
|
|
32386
32800
|
try {
|
|
32387
|
-
delete r[
|
|
32801
|
+
delete r[Yi(c)];
|
|
32388
32802
|
} catch {
|
|
32389
32803
|
}
|
|
32390
32804
|
}
|
|
@@ -32443,9 +32857,9 @@ var go = { exports: {} };
|
|
|
32443
32857
|
}
|
|
32444
32858
|
var ua = function(c, r, u) {
|
|
32445
32859
|
var b = {};
|
|
32446
|
-
function S(
|
|
32447
|
-
var
|
|
32448
|
-
return b[
|
|
32860
|
+
function S($t, dr, ur, cr, hr) {
|
|
32861
|
+
var Yt = u(c, $t, dr, ur, cr, hr);
|
|
32862
|
+
return b[$t] = Yt, Yt;
|
|
32449
32863
|
}
|
|
32450
32864
|
var x = Object.assign({}, r, {
|
|
32451
32865
|
hostNonTLS: c.wsHost + ":" + c.wsPort,
|
|
@@ -32461,31 +32875,31 @@ var go = { exports: {} };
|
|
|
32461
32875
|
loop: !0,
|
|
32462
32876
|
timeout: 15e3,
|
|
32463
32877
|
timeoutLimit: 6e4
|
|
32464
|
-
}, Z = new
|
|
32878
|
+
}, Z = new Ot({
|
|
32465
32879
|
minPingDelay: 1e4,
|
|
32466
32880
|
maxPingDelay: c.activityTimeout
|
|
32467
|
-
}), Q = new
|
|
32881
|
+
}), Q = new Ot({
|
|
32468
32882
|
lives: 2,
|
|
32469
32883
|
minPingDelay: 1e4,
|
|
32470
32884
|
maxPingDelay: c.activityTimeout
|
|
32471
|
-
}), ce = S("ws", "ws", 3, x, Z), mi = S("wss", "ws", 3, E, Z), sr = S("sockjs", "sockjs", 1, D),
|
|
32472
|
-
new Gn(qn(
|
|
32473
|
-
], B), Wt = new Cn([
|
|
32474
|
-
new Gn(qn(Gt), Gt, ar)
|
|
32885
|
+
}), ce = S("ws", "ws", 3, x, Z), mi = S("wss", "ws", 3, E, Z), sr = S("sockjs", "sockjs", 1, D), Gt = S("xhr_streaming", "xhr_streaming", 1, D, Q), or = S("xdr_streaming", "xdr_streaming", 1, D, Q), qt = S("xhr_polling", "xhr_polling", 1, D), ar = S("xdr_polling", "xdr_polling", 1, D), zt = new Cn([ce], B), rr = new Cn([mi], B), lr = new Cn([sr], B), Wt = new Cn([
|
|
32886
|
+
new Gn(qn(Gt), Gt, or)
|
|
32475
32887
|
], B), Zt = new Cn([
|
|
32476
|
-
new Gn(qn(
|
|
32477
|
-
|
|
32478
|
-
|
|
32479
|
-
|
|
32480
|
-
|
|
32481
|
-
|
|
32482
|
-
|
|
32483
|
-
|
|
32484
|
-
|
|
32485
|
-
|
|
32888
|
+
new Gn(qn(qt), qt, ar)
|
|
32889
|
+
], B), Jt = new Cn([
|
|
32890
|
+
new Gn(qn(Wt), new $i([
|
|
32891
|
+
Wt,
|
|
32892
|
+
new ci(Zt, { delay: 4e3 })
|
|
32893
|
+
]), Zt)
|
|
32894
|
+
], B), nt = new Gn(qn(Jt), Jt, lr), it;
|
|
32895
|
+
return r.useTLS ? it = new $i([
|
|
32896
|
+
zt,
|
|
32897
|
+
new ci(nt, { delay: 2e3 })
|
|
32898
|
+
]) : it = new $i([
|
|
32899
|
+
zt,
|
|
32486
32900
|
new ci(rr, { delay: 2e3 }),
|
|
32487
|
-
new ci(
|
|
32488
|
-
]), new aa(new da(new Gn(qn(ce),
|
|
32901
|
+
new ci(nt, { delay: 5e3 })
|
|
32902
|
+
]), new aa(new da(new Gn(qn(ce), it, nt)), b, {
|
|
32489
32903
|
ttl: 18e5,
|
|
32490
32904
|
timeline: r.timeline,
|
|
32491
32905
|
useTLS: r.useTLS
|
|
@@ -32546,14 +32960,14 @@ var go = { exports: {} };
|
|
|
32546
32960
|
return this.position === r.length && r.length > pa;
|
|
32547
32961
|
}
|
|
32548
32962
|
}
|
|
32549
|
-
var
|
|
32963
|
+
var Qi;
|
|
32550
32964
|
(function(c) {
|
|
32551
32965
|
c[c.CONNECTING = 0] = "CONNECTING", c[c.OPEN = 1] = "OPEN", c[c.CLOSED = 3] = "CLOSED";
|
|
32552
|
-
})(
|
|
32553
|
-
var Sn =
|
|
32966
|
+
})(Qi || (Qi = {}));
|
|
32967
|
+
var Sn = Qi, fa = 1;
|
|
32554
32968
|
class ga {
|
|
32555
32969
|
constructor(r, u) {
|
|
32556
|
-
this.hooks = r, this.session =
|
|
32970
|
+
this.hooks = r, this.session = Kt(1e3) + "/" + ka(8), this.location = ya(u), this.readyState = Sn.CONNECTING, this.openStream();
|
|
32557
32971
|
}
|
|
32558
32972
|
send(r) {
|
|
32559
32973
|
return this.sendRaw(JSON.stringify([r]));
|
|
@@ -32659,12 +33073,12 @@ var go = { exports: {} };
|
|
|
32659
33073
|
var u = /(https?:\/\/)([^\/:]+)((\/|:)?.*)/.exec(c);
|
|
32660
33074
|
return u[1] + r + u[3];
|
|
32661
33075
|
}
|
|
32662
|
-
function
|
|
33076
|
+
function Kt(c) {
|
|
32663
33077
|
return O.randomInt(c);
|
|
32664
33078
|
}
|
|
32665
33079
|
function ka(c) {
|
|
32666
33080
|
for (var r = [], u = 0; u < c; u++)
|
|
32667
|
-
r.push(
|
|
33081
|
+
r.push(Kt(32).toString(32));
|
|
32668
33082
|
return r.join("");
|
|
32669
33083
|
}
|
|
32670
33084
|
var wa = ga, _a = {
|
|
@@ -32725,11 +33139,11 @@ var go = { exports: {} };
|
|
|
32725
33139
|
createRequest(c, r, u) {
|
|
32726
33140
|
return new ba(c, r, u);
|
|
32727
33141
|
}
|
|
32728
|
-
},
|
|
32729
|
-
|
|
33142
|
+
}, jt = Ea;
|
|
33143
|
+
jt.createXDR = function(c, r) {
|
|
32730
33144
|
return this.createRequest(va, c, r);
|
|
32731
33145
|
};
|
|
32732
|
-
var Pa =
|
|
33146
|
+
var Pa = jt, Ia = {
|
|
32733
33147
|
nextAuthCallbackID: 1,
|
|
32734
33148
|
auth_callbacks: {},
|
|
32735
33149
|
ScriptReceivers: a,
|
|
@@ -32822,11 +33236,11 @@ var go = { exports: {} };
|
|
|
32822
33236
|
return (window.crypto || window.msCrypto).getRandomValues(new Uint32Array(1))[0] / Math.pow(2, 32);
|
|
32823
33237
|
}() * c);
|
|
32824
33238
|
}
|
|
32825
|
-
}, O = Ia,
|
|
33239
|
+
}, O = Ia, Xi;
|
|
32826
33240
|
(function(c) {
|
|
32827
33241
|
c[c.ERROR = 3] = "ERROR", c[c.INFO = 6] = "INFO", c[c.DEBUG = 7] = "DEBUG";
|
|
32828
|
-
})(
|
|
32829
|
-
var hi =
|
|
33242
|
+
})(Xi || (Xi = {}));
|
|
33243
|
+
var hi = Xi;
|
|
32830
33244
|
class Da {
|
|
32831
33245
|
constructor(r, u, b) {
|
|
32832
33246
|
this.key = r, this.session = u, this.events = [], this.options = b || {}, this.sent = 0, this.uniqueID = 0;
|
|
@@ -32877,8 +33291,8 @@ var go = { exports: {} };
|
|
|
32877
33291
|
connect(r, u) {
|
|
32878
33292
|
if (this.isSupported()) {
|
|
32879
33293
|
if (this.priority < r)
|
|
32880
|
-
return
|
|
32881
|
-
} else return
|
|
33294
|
+
return Ft(new _(), u);
|
|
33295
|
+
} else return Ft(new G(), u);
|
|
32882
33296
|
var b = !1, S = this.transport.createConnection(this.name, this.priority, this.options.key, this.options), x = null, E = function() {
|
|
32883
33297
|
S.unbind("initialized", E), S.connect();
|
|
32884
33298
|
}, D = function() {
|
|
@@ -32904,7 +33318,7 @@ var go = { exports: {} };
|
|
|
32904
33318
|
};
|
|
32905
33319
|
}
|
|
32906
33320
|
}
|
|
32907
|
-
function
|
|
33321
|
+
function Ft(c, r) {
|
|
32908
33322
|
return ae.defer(function() {
|
|
32909
33323
|
r(c);
|
|
32910
33324
|
}), {
|
|
@@ -32945,7 +33359,7 @@ var go = { exports: {} };
|
|
|
32945
33359
|
throw "Options object must provide a cluster";
|
|
32946
33360
|
"disableStats" in c && oe.warn("The disableStats option is deprecated in favor of enableStats");
|
|
32947
33361
|
}
|
|
32948
|
-
const
|
|
33362
|
+
const Ua = (c, r) => {
|
|
32949
33363
|
var u = "socket_id=" + encodeURIComponent(c.socketId);
|
|
32950
33364
|
for (var b in r.params)
|
|
32951
33365
|
u += "&" + encodeURIComponent(b) + "=" + encodeURIComponent(r.params[b]);
|
|
@@ -32956,11 +33370,11 @@ var go = { exports: {} };
|
|
|
32956
33370
|
}
|
|
32957
33371
|
return u;
|
|
32958
33372
|
};
|
|
32959
|
-
var
|
|
33373
|
+
var Va = (c) => {
|
|
32960
33374
|
if (typeof O.getAuthorizers()[c.transport] > "u")
|
|
32961
33375
|
throw `'${c.transport}' is not a recognized auth transport`;
|
|
32962
33376
|
return (r, u) => {
|
|
32963
|
-
const b =
|
|
33377
|
+
const b = Ua(r, c);
|
|
32964
33378
|
O.getAuthorizers()[c.transport](O, b, c, C.UserAuthentication, u);
|
|
32965
33379
|
};
|
|
32966
33380
|
};
|
|
@@ -33037,7 +33451,7 @@ var go = { exports: {} };
|
|
|
33037
33451
|
}
|
|
33038
33452
|
function $a(c) {
|
|
33039
33453
|
const r = Object.assign(Object.assign({}, d.userAuthentication), c.userAuthentication);
|
|
33040
|
-
return "customHandler" in r && r.customHandler != null ? r.customHandler :
|
|
33454
|
+
return "customHandler" in r && r.customHandler != null ? r.customHandler : Va(r);
|
|
33041
33455
|
}
|
|
33042
33456
|
function Ya(c, r) {
|
|
33043
33457
|
let u;
|
|
@@ -33120,7 +33534,7 @@ var go = { exports: {} };
|
|
|
33120
33534
|
const r = (u) => {
|
|
33121
33535
|
u.subscriptionPending && u.subscriptionCancelled ? u.reinstateSubscription() : !u.subscriptionPending && this.pusher.connection.state === "connected" && u.subscribe();
|
|
33122
33536
|
};
|
|
33123
|
-
this.serverToUserChannel = new
|
|
33537
|
+
this.serverToUserChannel = new Wi(`#server-to-user-${this.user_data.id}`, this.pusher), this.serverToUserChannel.bind_global((u, b) => {
|
|
33124
33538
|
u.indexOf("pusher_internal:") === 0 || u.indexOf("pusher:") === 0 || this.emit(u, b);
|
|
33125
33539
|
}), r(this.serverToUserChannel);
|
|
33126
33540
|
}
|
|
@@ -33242,7 +33656,7 @@ var go = { exports: {} };
|
|
|
33242
33656
|
}
|
|
33243
33657
|
}
|
|
33244
33658
|
ye.instances = [], ye.isReady = !1, ye.logToConsole = !1, ye.Runtime = O, ye.ScriptReceivers = O.ScriptReceivers, ye.DependenciesReceivers = O.DependenciesReceivers, ye.auth_callbacks = O.auth_callbacks;
|
|
33245
|
-
var
|
|
33659
|
+
var et = t.default = ye;
|
|
33246
33660
|
function tr(c) {
|
|
33247
33661
|
if (c == null)
|
|
33248
33662
|
throw "You must pass your app key when you instantiate Pusher.";
|
|
@@ -33253,10 +33667,10 @@ var go = { exports: {} };
|
|
|
33253
33667
|
])
|
|
33254
33668
|
);
|
|
33255
33669
|
});
|
|
33256
|
-
})(
|
|
33257
|
-
var
|
|
33258
|
-
const
|
|
33259
|
-
class
|
|
33670
|
+
})(yo);
|
|
33671
|
+
var Fd = yo.exports;
|
|
33672
|
+
const Gd = /* @__PURE__ */ jd(Fd);
|
|
33673
|
+
class _s {
|
|
33260
33674
|
constructor(e) {
|
|
33261
33675
|
h(this, "container");
|
|
33262
33676
|
h(this, "onAction");
|
|
@@ -33319,7 +33733,7 @@ class ks {
|
|
|
33319
33733
|
2
|
|
33320
33734
|
)}`), t && this.payment.bankDetails && (t.innerHTML = (C = this.payment.bankDetails) == null ? void 0 : C.bankName), s && this.payment.bankDetails && (s.innerHTML = (w = this.payment.bankDetails) == null ? void 0 : w.accountName), o && this.payment.bankDetails && (o.innerHTML = this.payment.bankDetails.accountNumber), a && (a.innerHTML = Yn(this.initialTime)), this.startTimer("poll"), e.status === "inProgress") {
|
|
33321
33735
|
const M = "45654f3ce4c9512ea9a4", A = "us2";
|
|
33322
|
-
var p = new
|
|
33736
|
+
var p = new Gd(M, {
|
|
33323
33737
|
cluster: A
|
|
33324
33738
|
}), v = p.subscribe(e.reference);
|
|
33325
33739
|
v.bind("payment_status", (_) => {
|
|
@@ -33338,10 +33752,10 @@ class ks {
|
|
|
33338
33752
|
this.attachListener();
|
|
33339
33753
|
}
|
|
33340
33754
|
render() {
|
|
33341
|
-
return
|
|
33755
|
+
return Kd;
|
|
33342
33756
|
}
|
|
33343
33757
|
}
|
|
33344
|
-
const
|
|
33758
|
+
const qd = `<div id="trasferConfirmationProgress">
|
|
33345
33759
|
<div>
|
|
33346
33760
|
<div>
|
|
33347
33761
|
<div class=" grid grid-rows-[auto_1fr] gap-4 mx-5">
|
|
@@ -33423,7 +33837,7 @@ const jd = `<div id="trasferConfirmationProgress">
|
|
|
33423
33837
|
</div>
|
|
33424
33838
|
</div>
|
|
33425
33839
|
</div>`;
|
|
33426
|
-
class
|
|
33840
|
+
class zd {
|
|
33427
33841
|
constructor(e) {
|
|
33428
33842
|
h(this, "container");
|
|
33429
33843
|
h(this, "onAction");
|
|
@@ -33529,10 +33943,10 @@ class Fd {
|
|
|
33529
33943
|
this.container.innerHTML = this.render(), this.renderTransferDetailsComponent(e), this.attachListeners();
|
|
33530
33944
|
}
|
|
33531
33945
|
render() {
|
|
33532
|
-
return
|
|
33946
|
+
return qd;
|
|
33533
33947
|
}
|
|
33534
33948
|
}
|
|
33535
|
-
const
|
|
33949
|
+
const Wd = `<div id="paymenExpired">
|
|
33536
33950
|
<div class="container-center min-h-[30dvh]">
|
|
33537
33951
|
<div>
|
|
33538
33952
|
<div class="container-center mb-5">
|
|
@@ -33556,7 +33970,7 @@ const Gd = `<div id="paymenExpired">
|
|
|
33556
33970
|
</div>
|
|
33557
33971
|
</div>
|
|
33558
33972
|
</div>`;
|
|
33559
|
-
class
|
|
33973
|
+
class Zd {
|
|
33560
33974
|
constructor(e) {
|
|
33561
33975
|
h(this, "container");
|
|
33562
33976
|
this.container = e.container;
|
|
@@ -33567,10 +33981,10 @@ class qd {
|
|
|
33567
33981
|
this.container.innerHTML = this.render();
|
|
33568
33982
|
}
|
|
33569
33983
|
render() {
|
|
33570
|
-
return
|
|
33984
|
+
return Wd;
|
|
33571
33985
|
}
|
|
33572
33986
|
}
|
|
33573
|
-
class
|
|
33987
|
+
class Jd {
|
|
33574
33988
|
constructor({
|
|
33575
33989
|
amount: e,
|
|
33576
33990
|
totalAmount: i,
|
|
@@ -33676,7 +34090,7 @@ class zd {
|
|
|
33676
34090
|
channel: "bank_transfer",
|
|
33677
34091
|
reference: this.reference
|
|
33678
34092
|
};
|
|
33679
|
-
return
|
|
34093
|
+
return Ri(
|
|
33680
34094
|
this.token,
|
|
33681
34095
|
a,
|
|
33682
34096
|
this.rdtCode,
|
|
@@ -33708,7 +34122,7 @@ class zd {
|
|
|
33708
34122
|
this.paymentResponse = s, this.paymentResponseHeaders = o, s.status === "failed" ? (this.currentStep = 7, s.providerMessage ? this.warningScreen.setPaymentError(s.providerMessage) : this.warningScreen.setPaymentError("Payment failed"), this.warningScreen.hideReportIssue(), P.track("stop_transferProcess", {
|
|
33709
34123
|
payment_method: "Transfer",
|
|
33710
34124
|
verification_status: "Failed"
|
|
33711
|
-
})) : (e && i && (e.classList.add("hidden"), i.classList.remove("hidden")), this.activeRef = s.reference, this.paymentResponse = s, s.bankDetails && s.bankDetails.accountNumber ? (this.transferDetails = new
|
|
34125
|
+
})) : (e && i && (e.classList.add("hidden"), i.classList.remove("hidden")), this.activeRef = s.reference, this.paymentResponse = s, s.bankDetails && s.bankDetails.accountNumber ? (this.transferDetails = new _s({
|
|
33712
34126
|
container: this.contents,
|
|
33713
34127
|
onAction: (a) => {
|
|
33714
34128
|
this.onSentVerify.bind(this)(a);
|
|
@@ -33749,7 +34163,7 @@ class zd {
|
|
|
33749
34163
|
}), this.contents) {
|
|
33750
34164
|
switch (this.currentStep) {
|
|
33751
34165
|
case 1:
|
|
33752
|
-
this.transferDetails = new
|
|
34166
|
+
this.transferDetails = new _s({
|
|
33753
34167
|
container: this.contents,
|
|
33754
34168
|
onAction: (s) => {
|
|
33755
34169
|
this.onSentVerify.bind(this)(s);
|
|
@@ -33760,12 +34174,12 @@ class zd {
|
|
|
33760
34174
|
});
|
|
33761
34175
|
break;
|
|
33762
34176
|
case 2:
|
|
33763
|
-
this.transferExpired = new
|
|
34177
|
+
this.transferExpired = new Zd({
|
|
33764
34178
|
container: this.contents
|
|
33765
34179
|
}), this.transferExpired.renderComponent();
|
|
33766
34180
|
break;
|
|
33767
34181
|
case 5:
|
|
33768
|
-
this.transferConfirmationProgress = new
|
|
34182
|
+
this.transferConfirmationProgress = new zd({
|
|
33769
34183
|
container: this.contents,
|
|
33770
34184
|
onAction: (s, o) => {
|
|
33771
34185
|
this.currentStep = s, s === 7 && o && this.warningScreen.setPaymentError(o);
|
|
@@ -33810,11 +34224,12 @@ class zd {
|
|
|
33810
34224
|
url: this.url,
|
|
33811
34225
|
callBackUrl: this.callBackUrl,
|
|
33812
34226
|
paymentResponse: this.paymentResponse,
|
|
33813
|
-
paymentResponseHeaders: this.paymentResponseHeaders
|
|
34227
|
+
paymentResponseHeaders: this.paymentResponseHeaders,
|
|
34228
|
+
paymentMethod: "Transfer"
|
|
33814
34229
|
}), this.transferConfirmationEnd.renderComponent();
|
|
33815
34230
|
break;
|
|
33816
34231
|
case 9:
|
|
33817
|
-
this.transactionIssuesScreen = new
|
|
34232
|
+
this.transactionIssuesScreen = new Oi({
|
|
33818
34233
|
container: this.contents,
|
|
33819
34234
|
onAction: () => {
|
|
33820
34235
|
var s;
|
|
@@ -33858,7 +34273,7 @@ class zd {
|
|
|
33858
34273
|
this.abortController && this.abortController.abort();
|
|
33859
34274
|
}
|
|
33860
34275
|
}
|
|
33861
|
-
function
|
|
34276
|
+
function Ms() {
|
|
33862
34277
|
return function(n, e) {
|
|
33863
34278
|
let i = n[e];
|
|
33864
34279
|
Object.defineProperty(n, e, {
|
|
@@ -33881,7 +34296,7 @@ class Qe extends Error {
|
|
|
33881
34296
|
super(e), this.name = "AuthorizationError";
|
|
33882
34297
|
}
|
|
33883
34298
|
}
|
|
33884
|
-
class
|
|
34299
|
+
class Pt {
|
|
33885
34300
|
constructor(e) {
|
|
33886
34301
|
h(this, "token");
|
|
33887
34302
|
h(this, "baseurl", "https://api.spotflow.co/api/v1");
|
|
@@ -33897,7 +34312,7 @@ class Et {
|
|
|
33897
34312
|
this.token = e.token, this.rdtCode = e.rdtCode, this.url = e.url, this.headers = this.getHeaders(this.token, this.rdtCode);
|
|
33898
34313
|
}
|
|
33899
34314
|
}
|
|
33900
|
-
class
|
|
34315
|
+
class Co extends Pt {
|
|
33901
34316
|
constructor(e) {
|
|
33902
34317
|
super(e);
|
|
33903
34318
|
}
|
|
@@ -34022,7 +34437,7 @@ class yo extends Et {
|
|
|
34022
34437
|
}
|
|
34023
34438
|
}
|
|
34024
34439
|
}
|
|
34025
|
-
class
|
|
34440
|
+
class $d extends Pt {
|
|
34026
34441
|
constructor(e) {
|
|
34027
34442
|
super(e);
|
|
34028
34443
|
}
|
|
@@ -34050,7 +34465,7 @@ class Wd extends Et {
|
|
|
34050
34465
|
}
|
|
34051
34466
|
}
|
|
34052
34467
|
}
|
|
34053
|
-
class
|
|
34468
|
+
class Yd extends Pt {
|
|
34054
34469
|
constructor(e) {
|
|
34055
34470
|
super(e);
|
|
34056
34471
|
}
|
|
@@ -34069,11 +34484,11 @@ class Zd extends Et {
|
|
|
34069
34484
|
}
|
|
34070
34485
|
return e.json();
|
|
34071
34486
|
} catch (e) {
|
|
34072
|
-
throw e instanceof se ? (
|
|
34487
|
+
throw e instanceof se ? (_i.showToast(e.message, "error", 9e3), console.error(`FetchError: ${e.message} (status: ${e.status})`)) : e instanceof Qe ? console.error(`AuthorizationError: ${e.message}`) : console.error(`Unexpected error: ${e}`), e;
|
|
34073
34488
|
}
|
|
34074
34489
|
}
|
|
34075
34490
|
}
|
|
34076
|
-
const
|
|
34491
|
+
const Qd = `<form id="ussdBanks">
|
|
34077
34492
|
<div>
|
|
34078
34493
|
<h5 class="text-grey-400 font-semibold text-sm">Please choose your bank to begin payment</h5>
|
|
34079
34494
|
<div class="mt-2">
|
|
@@ -34109,7 +34524,7 @@ const Jd = `<form id="ussdBanks">
|
|
|
34109
34524
|
</div>
|
|
34110
34525
|
</div>
|
|
34111
34526
|
</form>`;
|
|
34112
|
-
class
|
|
34527
|
+
class As {
|
|
34113
34528
|
constructor(e) {
|
|
34114
34529
|
h(this, "container");
|
|
34115
34530
|
h(this, "bank_service");
|
|
@@ -34121,7 +34536,7 @@ class _s {
|
|
|
34121
34536
|
h(this, "rate");
|
|
34122
34537
|
h(this, "amount");
|
|
34123
34538
|
h(this, "totalAmount");
|
|
34124
|
-
this.container = e.container, this.currency = e.currency, this.localCurrency = e.localCurrency, this.rate = e.rate, this.amount = e.amount, this.totalAmount = e.totalAmount, this.bank_list = [], this.bank_service = new
|
|
34539
|
+
this.container = e.container, this.currency = e.currency, this.localCurrency = e.localCurrency, this.rate = e.rate, this.amount = e.amount, this.totalAmount = e.totalAmount, this.bank_list = [], this.bank_service = new Yd({
|
|
34125
34540
|
token: e.merchantKey,
|
|
34126
34541
|
rdtCode: e.rdtCode,
|
|
34127
34542
|
url: e.url
|
|
@@ -34188,10 +34603,10 @@ class _s {
|
|
|
34188
34603
|
}), this.displayButtonText(), this.attachListerner();
|
|
34189
34604
|
}
|
|
34190
34605
|
render() {
|
|
34191
|
-
return
|
|
34606
|
+
return Qd;
|
|
34192
34607
|
}
|
|
34193
34608
|
}
|
|
34194
|
-
const
|
|
34609
|
+
const Xd = `<div id="viewCode">
|
|
34195
34610
|
<div class="grid gap-4">
|
|
34196
34611
|
<div class="text-center">
|
|
34197
34612
|
<div class="md:w-4/5 mx-auto grid gap-3">
|
|
@@ -34229,7 +34644,7 @@ const $d = `<div id="viewCode">
|
|
|
34229
34644
|
</div>
|
|
34230
34645
|
</div>
|
|
34231
34646
|
</div>`;
|
|
34232
|
-
class
|
|
34647
|
+
class eu {
|
|
34233
34648
|
constructor(e) {
|
|
34234
34649
|
h(this, "container");
|
|
34235
34650
|
h(this, "selected");
|
|
@@ -34248,7 +34663,7 @@ class Yd {
|
|
|
34248
34663
|
h(this, "metadata");
|
|
34249
34664
|
h(this, "localCurrency");
|
|
34250
34665
|
h(this, "onError");
|
|
34251
|
-
this.container = e.container, this.selected = e.selected, this.onAction = e.onAction, this.secret = e.secret, this.paymentService = new
|
|
34666
|
+
this.container = e.container, this.selected = e.selected, this.onAction = e.onAction, this.secret = e.secret, this.paymentService = new Co({
|
|
34252
34667
|
token: this.secret,
|
|
34253
34668
|
rdtCode: e.rdtCode,
|
|
34254
34669
|
url: e.url
|
|
@@ -34346,15 +34761,15 @@ class Yd {
|
|
|
34346
34761
|
this.makePayment(), this.attachListener();
|
|
34347
34762
|
}
|
|
34348
34763
|
render() {
|
|
34349
|
-
return
|
|
34764
|
+
return Xd;
|
|
34350
34765
|
}
|
|
34351
34766
|
}
|
|
34352
|
-
var
|
|
34767
|
+
var nu = Object.defineProperty, iu = (n, e, i, t) => {
|
|
34353
34768
|
for (var s = void 0, o = n.length - 1, a; o >= 0; o--)
|
|
34354
34769
|
(a = n[o]) && (s = a(e, i, s) || s);
|
|
34355
|
-
return s &&
|
|
34770
|
+
return s && nu(e, i, s), s;
|
|
34356
34771
|
};
|
|
34357
|
-
class
|
|
34772
|
+
class So {
|
|
34358
34773
|
constructor({
|
|
34359
34774
|
container: e,
|
|
34360
34775
|
onSuccess: i,
|
|
@@ -34409,7 +34824,7 @@ class Co {
|
|
|
34409
34824
|
h(this, "disablePaymentMethods");
|
|
34410
34825
|
this.onSuccess = i || (() => null), this.container = e, this.secret = t, this.amount = s, this.totalAmount = o, this.currency = a, this.reference = d, this.customer = l, this.rdtCode = p, this.url = v, this.callBackUrl = g, this.metadata = f, this.localCurrency = y, this.merchantDetails = {}, this.hidePaymentMethods = k, this.showPaymentMethods = C, this.disablePaymentMethods = w, this.contents = this.container.querySelector(
|
|
34411
34826
|
"#payment-content-view"
|
|
34412
|
-
), this._currentStep = 1, this.paymentService = new
|
|
34827
|
+
), this._currentStep = 1, this.paymentService = new Co({
|
|
34413
34828
|
token: this.secret,
|
|
34414
34829
|
rdtCode: this.rdtCode,
|
|
34415
34830
|
url: this.url
|
|
@@ -34459,7 +34874,7 @@ class Co {
|
|
|
34459
34874
|
}
|
|
34460
34875
|
switch (this.currentStep) {
|
|
34461
34876
|
case 1:
|
|
34462
|
-
this.bankDetail = new
|
|
34877
|
+
this.bankDetail = new As({
|
|
34463
34878
|
container: this.contents,
|
|
34464
34879
|
merchantKey: this.secret,
|
|
34465
34880
|
onAction: this.onCodeSelect.bind(this),
|
|
@@ -34473,7 +34888,7 @@ class Co {
|
|
|
34473
34888
|
}), this.bankDetail.renderContent();
|
|
34474
34889
|
break;
|
|
34475
34890
|
case 2:
|
|
34476
|
-
this.viewUssdCode = new
|
|
34891
|
+
this.viewUssdCode = new eu({
|
|
34477
34892
|
container: this.contents,
|
|
34478
34893
|
onAction: (t, s) => {
|
|
34479
34894
|
this.activeRef = s, this.currentStep = 4, this.intervalPayment = setInterval(() => {
|
|
@@ -34519,7 +34934,7 @@ class Co {
|
|
|
34519
34934
|
}), this.successScreen.renderComponent();
|
|
34520
34935
|
break;
|
|
34521
34936
|
default:
|
|
34522
|
-
this.bankDetail = new
|
|
34937
|
+
this.bankDetail = new As({
|
|
34523
34938
|
container: this.contents,
|
|
34524
34939
|
merchantKey: this.secret,
|
|
34525
34940
|
onAction: this.onCodeSelect.bind(this),
|
|
@@ -34540,11 +34955,11 @@ class Co {
|
|
|
34540
34955
|
}, 400), this.currentStep = 2;
|
|
34541
34956
|
}
|
|
34542
34957
|
}
|
|
34543
|
-
|
|
34544
|
-
|
|
34545
|
-
|
|
34546
|
-
],
|
|
34547
|
-
const
|
|
34958
|
+
iu([
|
|
34959
|
+
Ms(),
|
|
34960
|
+
Ms()
|
|
34961
|
+
], So.prototype, "selectedCode");
|
|
34962
|
+
const tu = {
|
|
34548
34963
|
NGN: "Nigerian Naira",
|
|
34549
34964
|
USD: "US Dollar",
|
|
34550
34965
|
GHS: "Ghanaian Cedi",
|
|
@@ -34552,8 +34967,8 @@ const eu = {
|
|
|
34552
34967
|
ZAF: "South African Rand",
|
|
34553
34968
|
USDT: "Tether",
|
|
34554
34969
|
KSH: "Kenyan Shilling"
|
|
34555
|
-
},
|
|
34556
|
-
function
|
|
34970
|
+
}, su = (n) => n == null ? void 0 : n.replace(/_/g, " ");
|
|
34971
|
+
function ou(n) {
|
|
34557
34972
|
return n.split(" ").map(
|
|
34558
34973
|
(e) => e.charAt(0).toUpperCase() + e.slice(1).toLowerCase()
|
|
34559
34974
|
// Capitalize the first letter and make the rest lowercase
|
|
@@ -34561,11 +34976,11 @@ function iu(n) {
|
|
|
34561
34976
|
}
|
|
34562
34977
|
const gi = (n) => {
|
|
34563
34978
|
if (n) {
|
|
34564
|
-
const e =
|
|
34565
|
-
return
|
|
34979
|
+
const e = su(n);
|
|
34980
|
+
return ou(e);
|
|
34566
34981
|
}
|
|
34567
34982
|
return "";
|
|
34568
|
-
},
|
|
34983
|
+
}, au = `<div>
|
|
34569
34984
|
<button id="go-back" class="md:hidden" aria-label="Go back">
|
|
34570
34985
|
</button>
|
|
34571
34986
|
</div>
|
|
@@ -34702,7 +35117,7 @@ const gi = (n) => {
|
|
|
34702
35117
|
<!-- Tab options -->
|
|
34703
35118
|
</div>
|
|
34704
35119
|
</div>`;
|
|
34705
|
-
class
|
|
35120
|
+
class ru {
|
|
34706
35121
|
constructor(e) {
|
|
34707
35122
|
h(this, "container");
|
|
34708
35123
|
h(this, "email");
|
|
@@ -34735,7 +35150,7 @@ class su {
|
|
|
34735
35150
|
});
|
|
34736
35151
|
}
|
|
34737
35152
|
renderComponent() {
|
|
34738
|
-
var G,
|
|
35153
|
+
var G, U, j, te, ge, V, ke, le, xe, we, ze, sn, We, bn, on, Te, Ze, fn, ae, pe, Ie, Ee, Ce, je, N, de, Y, ue, Pe, J, an, jn, ai, ri, li, di, gn;
|
|
34739
35154
|
this.container.innerHTML = this.render(), this.amount = this.amount;
|
|
34740
35155
|
const e = this.container.querySelector(
|
|
34741
35156
|
"#merchant-logo-container"
|
|
@@ -34758,9 +35173,9 @@ class su {
|
|
|
34758
35173
|
), C = this.container.querySelector("#source-rate"), w = this.container.querySelector("#source-rate-mob"), M = this.container.querySelector("#tax-rate"), A = this.container.querySelector("#tax-rate-mob"), _ = this.container.querySelector("#tooltip-localCurrency"), T = this.container.querySelector(
|
|
34759
35174
|
"#tooltip-localCurrency-mob"
|
|
34760
35175
|
);
|
|
34761
|
-
if ((G = this.merchantDetail) != null && G.merchantLogo ? i && i.setAttribute("src", (
|
|
35176
|
+
if ((G = this.merchantDetail) != null && G.merchantLogo ? i && i.setAttribute("src", (U = this.merchantDetail) == null ? void 0 : U.merchantLogo) : e && (i == null || i.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>`), t && (t.innerHTML = this.email), s && (s.innerHTML = this.email), o) {
|
|
34762
35177
|
if ((te = (j = this.merchantDetail) == null ? void 0 : j.plan) != null && te.title) {
|
|
34763
|
-
const Fn = ((
|
|
35178
|
+
const Fn = ((V = (ge = this.merchantDetail) == null ? void 0 : ge.plan) == null ? void 0 : V.title) || "";
|
|
34764
35179
|
o.textContent = gi(Fn);
|
|
34765
35180
|
}
|
|
34766
35181
|
(ke = this.metadata) != null && ke.productName && (o.textContent = gi(
|
|
@@ -34785,7 +35200,7 @@ class su {
|
|
|
34785
35200
|
)} `) : p.innerHTML = ""), (je = (Ce = this.merchantDetail) == null ? void 0 : Ce.plan) != null && je.title || (N = this.metadata) != null && N.productName ? f && (f.innerHTML = `${this.currency} ${Le(this.amount, 2)}`) : (k && (k.innerHTML = `<span> ${this.currency} ${Le(this.amount, 2)} </span>`), o && a && (o.remove(), a == null || a.remove()), this.localCurrency ? f == null || f.remove() : l && l.remove()), y && (y.innerHTML = `${this.currency} ${Le(this.amount, 2)}`), C && (this.localCurrency && this.localCurrency !== this.currency ? C.children[1].innerHTML = `${this.localCurrency} ${Le(this.amount * (((Y = (de = this.merchantDetail) == null ? void 0 : de.rate) == null ? void 0 : Y.rate) || 1), 2)}` : C.remove()), w && (this.localCurrency && this.localCurrency !== this.currency ? w.children[1].innerHTML = `${this.localCurrency} ${Le(this.amount * (((Pe = (ue = this.merchantDetail) == null ? void 0 : ue.rate) == null ? void 0 : Pe.rate) || 1), 2)}` : w.remove());
|
|
34786
35201
|
const I = this.localCurrency !== this.currency ? this.amount * (((an = (J = this.merchantDetail) == null ? void 0 : J.rate) == null ? void 0 : an.rate) || 1) : this.amount;
|
|
34787
35202
|
M && (jn = this.merchantDetail) != null && jn.taxQuoteId && (ai = this.merchantDetail) != null && ai.totalAmount && (M.classList.remove("hidden"), M.children[1].innerHTML = `${this.localCurrency !== this.currency ? this.localCurrency : this.currency} ${Le(((ri = this.merchantDetail) == null ? void 0 : ri.totalAmount) - I, 2)}`), A && (li = this.merchantDetail) != null && li.taxQuoteId && (di = this.merchantDetail) != null && di.totalAmount && (A.classList.remove("hidden"), A.children[1].innerHTML = `${this.localCurrency !== this.currency ? this.localCurrency : this.currency} ${Le(((gn = this.merchantDetail) == null ? void 0 : gn.totalAmount) - I, 2)}`);
|
|
34788
|
-
const K =
|
|
35203
|
+
const K = tu[this.localCurrency];
|
|
34789
35204
|
_ && this.localCurrency && (_.innerHTML = K ? `${K} (${this.localCurrency})` : this.localCurrency), T && this.localCurrency && (T.innerHTML = K ? `${K} (${this.localCurrency})` : this.localCurrency), this.renderPaymentOptions(this.container), this.attachListeners();
|
|
34790
35205
|
}
|
|
34791
35206
|
renderPaymentOptions(e) {
|
|
@@ -34857,414 +35272,9 @@ class su {
|
|
|
34857
35272
|
}
|
|
34858
35273
|
}
|
|
34859
35274
|
}
|
|
34860
|
-
render() {
|
|
34861
|
-
return tu;
|
|
34862
|
-
}
|
|
34863
|
-
}
|
|
34864
|
-
const ou = `<div class="flex items-center justify-center md:justify-between w-full text-xxs mt-5">
|
|
34865
|
-
<div class="text-tone-60"><span>Powered by</span> <span class="font-bold">Spotflow</span></div>
|
|
34866
|
-
<div class="align-center text-tone-60 hidden md:flex gap-4">
|
|
34867
|
-
<!-- <span id="test-cards-link" class="hover:font-bold">Test Cards</span> -->
|
|
34868
|
-
<a href="https://ribbon-scowl-35f.notion.site/Terms-Conditions-940742f0a1b144498ffc1786c5bc6a08?pvs=4" target="_blank" class="hover:font-bold">Terms</a>
|
|
34869
|
-
<a href="https://ribbon-scowl-35f.notion.site/Privacy-Policy-Spotflow-3997ee8d923d4cd39a3dc43b7249b713" target="_blank" class="hover:font-bold">Privacy</a>
|
|
34870
|
-
<a href="mailto:hello@spotflow.one" class="hover:font-bold">Contact</a>
|
|
34871
|
-
</div>
|
|
34872
|
-
</div>`, au = `<div class="box-container flex-1">
|
|
34873
|
-
<!-- test-cards.html -->
|
|
34874
|
-
<div class="bg-gray-100 py-2 px-4 rounded-lg mt-4 relative">
|
|
34875
|
-
<div class="flex items-start gap-4 mb-4">
|
|
34876
|
-
<nav id="test-card-tabs"
|
|
34877
|
-
class="flex w-full font-medium items-start gap-6 border-b border-tone-10 text-base text-tone-40 mb-2">
|
|
34878
|
-
<button class="tab-btn active-tab" data-target="no-auth">No auth</button>
|
|
34879
|
-
<button class="tab-btn" data-target="pin">Pin</button>
|
|
34880
|
-
<button class="tab-btn" data-target="pin-otp">Pin + OTP</button>
|
|
34881
|
-
<button class="tab-btn" data-target="3ds">3DS</button>
|
|
34882
|
-
<button class="tab-btn" data-target="avs">AVS</button>
|
|
34883
|
-
</nav>
|
|
34884
|
-
<!-- Close Icon -->
|
|
34885
|
-
<button id="close-test-card" class="text-gray-500 hover:text-black">
|
|
34886
|
-
✕
|
|
34887
|
-
</button>
|
|
34888
|
-
</div>
|
|
34889
|
-
|
|
34890
|
-
<!-- Section contents -->
|
|
34891
|
-
<div id="no-auth" class="tab-content grid gap-3 border border-tone-50 px-6 py-4 rounded-2xl mb-4">
|
|
34892
|
-
<div class="flex justify-between items-center">
|
|
34893
|
-
<span class="text-tone-60 font-medium text-sm">Number</span>
|
|
34894
|
-
<div class="flex items-center gap-1">
|
|
34895
|
-
<span data-copy-value="4111112000062555" class="text-tone-100 text-sm font-medium">4111112000062555</span>
|
|
34896
|
-
<button class="copy-btn p-1 hover:opacity-80 transition-opacity">
|
|
34897
|
-
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
34898
|
-
<path
|
|
34899
|
-
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"
|
|
34900
|
-
fill="#0D0716" />
|
|
34901
|
-
</svg>
|
|
34902
|
-
</button>
|
|
34903
|
-
</div>
|
|
34904
|
-
</div>
|
|
34905
|
-
<div class="flex justify-between items-center">
|
|
34906
|
-
<span class="text-tone-60 font-medium text-sm">Expiry</span>
|
|
34907
|
-
<div class="flex items-center gap-1">
|
|
34908
|
-
<span data-copy-value="12/2030" class="text-tone-100 text-sm font-medium">12/2030 </span>
|
|
34909
|
-
<button class="copy-btn p-1 hover:opacity-80 transition-opacity">
|
|
34910
|
-
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
34911
|
-
<path
|
|
34912
|
-
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"
|
|
34913
|
-
fill="#0D0716" />
|
|
34914
|
-
</svg>
|
|
34915
|
-
</button>
|
|
34916
|
-
</div>
|
|
34917
|
-
</div>
|
|
34918
|
-
<div class="flex justify-between items-center">
|
|
34919
|
-
<span class="text-tone-60 font-medium text-sm">CVV</span>
|
|
34920
|
-
<div class="flex items-center gap-1">
|
|
34921
|
-
<span data-copy-value="455" class="text-tone-100 text-sm font-medium">455 </span>
|
|
34922
|
-
<button class="copy-btn p-1 hover:opacity-80 transition-opacity">
|
|
34923
|
-
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
34924
|
-
<path
|
|
34925
|
-
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"
|
|
34926
|
-
fill="#0D0716" />
|
|
34927
|
-
</svg>
|
|
34928
|
-
</button>
|
|
34929
|
-
</div>
|
|
34930
|
-
</div>
|
|
34931
|
-
</div>
|
|
34932
|
-
|
|
34933
|
-
<!-- Pin -->
|
|
34934
|
-
<div id="pin" class="hidden tab-content">
|
|
34935
|
-
<div class=" grid gap-3 border border-tone-50 px-6 py-4 rounded-2xl mb-4">
|
|
34936
|
-
<div class="flex justify-between items-center">
|
|
34937
|
-
<span class="text-tone-60 font-medium text-sm">Number</span>
|
|
34938
|
-
<div class="flex items-center gap-1">
|
|
34939
|
-
<span data-copy-value="5555558684543932"
|
|
34940
|
-
class="text-tone-100 text-sm font-medium">5555558684543932 </span>
|
|
34941
|
-
<button class="copy-btn p-1 hover:opacity-80 transition-opacity">
|
|
34942
|
-
<svg width="16" height="16" viewBox="0 0 16 16" fill="none"
|
|
34943
|
-
xmlns="http://www.w3.org/2000/svg">
|
|
34944
|
-
<path
|
|
34945
|
-
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"
|
|
34946
|
-
fill="#0D0716" />
|
|
34947
|
-
</svg>
|
|
34948
|
-
</button>
|
|
34949
|
-
</div>
|
|
34950
|
-
</div>
|
|
34951
|
-
|
|
34952
|
-
<div class="flex justify-between items-center">
|
|
34953
|
-
<span class="text-tone-60 font-medium text-sm">Expiry</span>
|
|
34954
|
-
<div class="flex items-center gap-1">
|
|
34955
|
-
<span data-copy-value="12/2030" class="text-tone-100 text-sm font-medium">12/2030</span>
|
|
34956
|
-
<button class="copy-btn p-1 hover:opacity-80 transition-opacity">
|
|
34957
|
-
<svg width="16" height="16" viewBox="0 0 16 16" fill="none"
|
|
34958
|
-
xmlns="http://www.w3.org/2000/svg">
|
|
34959
|
-
<path
|
|
34960
|
-
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"
|
|
34961
|
-
fill="#0D0716" />
|
|
34962
|
-
</svg>
|
|
34963
|
-
</button>
|
|
34964
|
-
</div>
|
|
34965
|
-
</div>
|
|
34966
|
-
<div class="flex justify-between items-center">
|
|
34967
|
-
<span class="text-tone-60 font-medium text-sm">CVV</span>
|
|
34968
|
-
<div class="flex items-center gap-1">
|
|
34969
|
-
<span data-copy-value="321" class="text-tone-100 text-sm font-medium">321</span>
|
|
34970
|
-
<button class="copy-btn p-1 hover:opacity-80 transition-opacity">
|
|
34971
|
-
<svg width="16" height="16" viewBox="0 0 16 16" fill="none"
|
|
34972
|
-
xmlns="http://www.w3.org/2000/svg">
|
|
34973
|
-
<path
|
|
34974
|
-
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"
|
|
34975
|
-
fill="#0D0716" />
|
|
34976
|
-
</svg>
|
|
34977
|
-
</button>
|
|
34978
|
-
</div>
|
|
34979
|
-
</div>
|
|
34980
|
-
<div class="flex justify-between items-center">
|
|
34981
|
-
<span class="text-tone-60 font-medium text-sm">Pin</span>
|
|
34982
|
-
<div class="flex items-center gap-1">
|
|
34983
|
-
<span data-copy-value="4321" class="text-tone-100 text-sm font-medium">4321</span>
|
|
34984
|
-
<button class="copy-btn p-1 hover:opacity-80 transition-opacity">
|
|
34985
|
-
<svg width="16" height="16" viewBox="0 0 16 16" fill="none"
|
|
34986
|
-
xmlns="http://www.w3.org/2000/svg">
|
|
34987
|
-
<path
|
|
34988
|
-
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"
|
|
34989
|
-
fill="#0D0716" />
|
|
34990
|
-
</svg>
|
|
34991
|
-
</button>
|
|
34992
|
-
</div>
|
|
34993
|
-
</div>
|
|
34994
|
-
</div>
|
|
34995
|
-
</div>
|
|
34996
|
-
|
|
34997
|
-
<!-- Pin + OTP -->
|
|
34998
|
-
<div id="pin-otp" class="tab-content hidden">
|
|
34999
|
-
<div class=" grid gap-3 border border-tone-50 px-6 py-4 rounded-2xl mb-4">
|
|
35000
|
-
<div class="flex justify-between items-center">
|
|
35001
|
-
<span class="text-tone-60 font-medium text-sm">Number</span>
|
|
35002
|
-
<div class="flex items-center gap-1">
|
|
35003
|
-
<span data-copy-value="5555567973581842" class="text-tone-100 text-sm font-medium">5555567973581842</span>
|
|
35004
|
-
<button class="copy-btn p-1 hover:opacity-80 transition-opacity">
|
|
35005
|
-
<svg width="16" height="16" viewBox="0 0 16 16" fill="none"
|
|
35006
|
-
xmlns="http://www.w3.org/2000/svg">
|
|
35007
|
-
<path
|
|
35008
|
-
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"
|
|
35009
|
-
fill="#0D0716" />
|
|
35010
|
-
</svg>
|
|
35011
|
-
</button>
|
|
35012
|
-
</div>
|
|
35013
|
-
</div>
|
|
35014
|
-
<div class="flex justify-between items-center">
|
|
35015
|
-
<span class="text-tone-60 font-medium text-sm">Expiry</span>
|
|
35016
|
-
<div class="flex items-center gap-1">
|
|
35017
|
-
<span data-copy-value="12/2030" class="text-tone-100 text-sm font-medium">12/2030</span>
|
|
35018
|
-
<button class="copy-btn p-1 hover:opacity-80 transition-opacity">
|
|
35019
|
-
<svg width="16" height="16" viewBox="0 0 16 16" fill="none"
|
|
35020
|
-
xmlns="http://www.w3.org/2000/svg">
|
|
35021
|
-
<path
|
|
35022
|
-
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"
|
|
35023
|
-
fill="#0D0716" />
|
|
35024
|
-
</svg>
|
|
35025
|
-
</button>
|
|
35026
|
-
</div>
|
|
35027
|
-
</div>
|
|
35028
|
-
<div class="flex justify-between items-center">
|
|
35029
|
-
<span class="text-tone-60 font-medium text-sm">CVV</span>
|
|
35030
|
-
<div class="flex items-center gap-1">
|
|
35031
|
-
<span data-copy-value="321" class="text-tone-100 text-sm font-medium">321</span>
|
|
35032
|
-
<button class="copy-btn p-1 hover:opacity-80 transition-opacity">
|
|
35033
|
-
<svg width="16" height="16" viewBox="0 0 16 16" fill="none"
|
|
35034
|
-
xmlns="http://www.w3.org/2000/svg">
|
|
35035
|
-
<path
|
|
35036
|
-
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"
|
|
35037
|
-
fill="#0D0716" />
|
|
35038
|
-
</svg>
|
|
35039
|
-
</button>
|
|
35040
|
-
</div>
|
|
35041
|
-
</div>
|
|
35042
|
-
<div class="flex justify-between items-center">
|
|
35043
|
-
<span class="text-tone-60 font-medium text-sm">Pin</span>
|
|
35044
|
-
<div class="flex items-center gap-1">
|
|
35045
|
-
<span data-copy-value="4321" class="text-tone-100 text-sm font-medium">4321</span>
|
|
35046
|
-
<button class="copy-btn p-1 hover:opacity-80 transition-opacity">
|
|
35047
|
-
<svg width="16" height="16" viewBox="0 0 16 16" fill="none"
|
|
35048
|
-
xmlns="http://www.w3.org/2000/svg">
|
|
35049
|
-
<path
|
|
35050
|
-
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"
|
|
35051
|
-
fill="#0D0716" />
|
|
35052
|
-
</svg>
|
|
35053
|
-
</button>
|
|
35054
|
-
</div>
|
|
35055
|
-
</div>
|
|
35056
|
-
<div class="flex justify-between items-center">
|
|
35057
|
-
<span class="text-tone-60 font-medium text-sm">OTP</span>
|
|
35058
|
-
<div class="flex items-center gap-1">
|
|
35059
|
-
<span data-copy-value="654321" class="text-tone-100 text-sm font-medium">654321</span>
|
|
35060
|
-
<button class="copy-btn p-1 hover:opacity-80 transition-opacity">
|
|
35061
|
-
<svg width="16" height="16" viewBox="0 0 16 16" fill="none"
|
|
35062
|
-
xmlns="http://www.w3.org/2000/svg">
|
|
35063
|
-
<path
|
|
35064
|
-
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"
|
|
35065
|
-
fill="#0D0716" />
|
|
35066
|
-
</svg>
|
|
35067
|
-
</button>
|
|
35068
|
-
</div>
|
|
35069
|
-
</div>
|
|
35070
|
-
</div>
|
|
35071
|
-
</div>
|
|
35072
|
-
<!-- 3DS -->
|
|
35073
|
-
<div id="3ds" class="tab-content hidden">
|
|
35074
|
-
<div class=" grid gap-3 border border-tone-50 px-6 py-4 rounded-2xl mb-4">
|
|
35075
|
-
<div class="flex justify-between items-center">
|
|
35076
|
-
<span class="text-tone-60 font-medium text-sm">Number</span>
|
|
35077
|
-
<div class="flex items-center gap-1">
|
|
35078
|
-
<span data-copy-value="5555558684543932"
|
|
35079
|
-
class="text-tone-100 text-sm font-medium">5555577124976817 </span>
|
|
35080
|
-
<button class="copy-btn p-1 hover:opacity-80 transition-opacity">
|
|
35081
|
-
<svg width="16" height="16" viewBox="0 0 16 16" fill="none"
|
|
35082
|
-
xmlns="http://www.w3.org/2000/svg">
|
|
35083
|
-
<path
|
|
35084
|
-
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"
|
|
35085
|
-
fill="#0D0716" />
|
|
35086
|
-
</svg>
|
|
35087
|
-
</button>
|
|
35088
|
-
</div>
|
|
35089
|
-
</div>
|
|
35090
|
-
|
|
35091
|
-
<div class="flex justify-between items-center">
|
|
35092
|
-
<span class="text-tone-60 font-medium text-sm">Expiry</span>
|
|
35093
|
-
<div class="flex items-center gap-1">
|
|
35094
|
-
<span data-copy-value="12/2030" class="text-tone-100 text-sm font-medium">12/2030</span>
|
|
35095
|
-
<button class="copy-btn p-1 hover:opacity-80 transition-opacity">
|
|
35096
|
-
<svg width="16" height="16" viewBox="0 0 16 16" fill="none"
|
|
35097
|
-
xmlns="http://www.w3.org/2000/svg">
|
|
35098
|
-
<path
|
|
35099
|
-
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"
|
|
35100
|
-
fill="#0D0716" />
|
|
35101
|
-
</svg>
|
|
35102
|
-
</button>
|
|
35103
|
-
</div>
|
|
35104
|
-
</div>
|
|
35105
|
-
<div class="flex justify-between items-center">
|
|
35106
|
-
<span class="text-tone-60 font-medium text-sm">CVV</span>
|
|
35107
|
-
<div class="flex items-center gap-1">
|
|
35108
|
-
<span data-copy-value="321" class="text-tone-100 text-sm font-medium">321</span>
|
|
35109
|
-
<button class="copy-btn p-1 hover:opacity-80 transition-opacity">
|
|
35110
|
-
<svg width="16" height="16" viewBox="0 0 16 16" fill="none"
|
|
35111
|
-
xmlns="http://www.w3.org/2000/svg">
|
|
35112
|
-
<path
|
|
35113
|
-
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"
|
|
35114
|
-
fill="#0D0716" />
|
|
35115
|
-
</svg>
|
|
35116
|
-
</button>
|
|
35117
|
-
</div>
|
|
35118
|
-
</div>
|
|
35119
|
-
</div>
|
|
35120
|
-
</div>
|
|
35121
|
-
|
|
35122
|
-
<!-- AVS -->
|
|
35123
|
-
<div id="avs" class="tab-content hidden">
|
|
35124
|
-
<div class=" grid gap-3 border border-tone-50 px-6 py-4 rounded-2xl mb-4">
|
|
35125
|
-
<div class="flex justify-between items-center">
|
|
35126
|
-
<span class="text-tone-60 font-medium text-sm">Number</span>
|
|
35127
|
-
<div class="flex items-center gap-1">
|
|
35128
|
-
<span data-copy-value="4111124373708482"
|
|
35129
|
-
class="text-tone-100 text-sm font-medium">4111124373708482 </span>
|
|
35130
|
-
<button class="copy-btn p-1 hover:opacity-80 transition-opacity">
|
|
35131
|
-
<svg width="16" height="16" viewBox="0 0 16 16" fill="none"
|
|
35132
|
-
xmlns="http://www.w3.org/2000/svg">
|
|
35133
|
-
<path
|
|
35134
|
-
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"
|
|
35135
|
-
fill="#0D0716" />
|
|
35136
|
-
</svg>
|
|
35137
|
-
</button>
|
|
35138
|
-
</div>
|
|
35139
|
-
</div>
|
|
35140
|
-
|
|
35141
|
-
<div class="flex justify-between items-center">
|
|
35142
|
-
<span class="text-tone-60 font-medium text-sm">Expiry</span>
|
|
35143
|
-
<div class="flex items-center gap-1">
|
|
35144
|
-
<span data-copy-value="12/2030" class="text-tone-100 text-sm font-medium">12/2030</span>
|
|
35145
|
-
<button class="copy-btn p-1 hover:opacity-80 transition-opacity">
|
|
35146
|
-
<svg width="16" height="16" viewBox="0 0 16 16" fill="none"
|
|
35147
|
-
xmlns="http://www.w3.org/2000/svg">
|
|
35148
|
-
<path
|
|
35149
|
-
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"
|
|
35150
|
-
fill="#0D0716" />
|
|
35151
|
-
</svg>
|
|
35152
|
-
</button>
|
|
35153
|
-
</div>
|
|
35154
|
-
</div>
|
|
35155
|
-
<div class="flex justify-between items-center">
|
|
35156
|
-
<span class="text-tone-60 font-medium text-sm">CVV</span>
|
|
35157
|
-
<div class="flex items-center gap-1">
|
|
35158
|
-
<span data-copy-value="321" class="text-tone-100 text-sm font-medium">321</span>
|
|
35159
|
-
<button class="copy-btn p-1 hover:opacity-80 transition-opacity">
|
|
35160
|
-
<svg width="16" height="16" viewBox="0 0 16 16" fill="none"
|
|
35161
|
-
xmlns="http://www.w3.org/2000/svg">
|
|
35162
|
-
<path
|
|
35163
|
-
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"
|
|
35164
|
-
fill="#0D0716" />
|
|
35165
|
-
</svg>
|
|
35166
|
-
</button>
|
|
35167
|
-
</div>
|
|
35168
|
-
</div>
|
|
35169
|
-
<div class="flex justify-between items-center">
|
|
35170
|
-
<span class="text-tone-60 font-medium text-sm">OTP</span>
|
|
35171
|
-
<div class="flex flex-col items-end gap-1">
|
|
35172
|
-
<span class="text-tone-100 text-sm font-medium">Address: 1, Spotflow Street</span>
|
|
35173
|
-
<span class="text-tone-100 text-sm font-medium">City: Lekki</span>
|
|
35174
|
-
<span class="text-tone-100 text-sm font-medium">State: Lagos</span>
|
|
35175
|
-
<span class="text-tone-100 text-sm font-medium">Country: Nigeria</span>
|
|
35176
|
-
<span class="text-tone-100 text-sm font-medium">ZIP: 101233</span>
|
|
35177
|
-
</div>
|
|
35178
|
-
</div>
|
|
35179
|
-
</div>
|
|
35180
|
-
</div>
|
|
35181
|
-
</div>
|
|
35182
|
-
</div>`;
|
|
35183
|
-
class So {
|
|
35184
|
-
constructor({ container: e, closeCallback: i }) {
|
|
35185
|
-
h(this, "container");
|
|
35186
|
-
h(this, "closeCallback");
|
|
35187
|
-
this.container = e, this.closeCallback = i;
|
|
35188
|
-
}
|
|
35189
35275
|
render() {
|
|
35190
35276
|
return au;
|
|
35191
35277
|
}
|
|
35192
|
-
attachListener() {
|
|
35193
|
-
const e = this.container.querySelector(
|
|
35194
|
-
"#close-test-card"
|
|
35195
|
-
);
|
|
35196
|
-
e == null || e.addEventListener("click", () => this.closeCallback());
|
|
35197
|
-
const i = this.container.querySelectorAll(
|
|
35198
|
-
"#test-card-tabs .tab-btn"
|
|
35199
|
-
), t = this.container.querySelectorAll(".tab-content");
|
|
35200
|
-
i.forEach((o) => {
|
|
35201
|
-
o.addEventListener("click", () => {
|
|
35202
|
-
i.forEach((l) => l.classList.remove("active-tab")), o.classList.add("active-tab");
|
|
35203
|
-
const a = o.getAttribute("data-target");
|
|
35204
|
-
t.forEach((l) => {
|
|
35205
|
-
l.id === a ? l.classList.remove("hidden") : l.classList.add("hidden");
|
|
35206
|
-
});
|
|
35207
|
-
});
|
|
35208
|
-
}), this.container.querySelectorAll(".copy-btn").forEach((o) => {
|
|
35209
|
-
o.addEventListener("click", async (a) => {
|
|
35210
|
-
const d = a.currentTarget.previousElementSibling.getAttribute("data-copy-value") || "";
|
|
35211
|
-
d && (await navigator.clipboard.writeText(d), o.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(() => {
|
|
35212
|
-
o.innerHTML = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
35213
|
-
<path
|
|
35214
|
-
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"
|
|
35215
|
-
fill="#0D0716" />
|
|
35216
|
-
</svg>`;
|
|
35217
|
-
}, 1e3));
|
|
35218
|
-
});
|
|
35219
|
-
});
|
|
35220
|
-
}
|
|
35221
|
-
renderComponent() {
|
|
35222
|
-
this.container.innerHTML = this.render(), this.attachListener();
|
|
35223
|
-
}
|
|
35224
|
-
}
|
|
35225
|
-
function ru(n) {
|
|
35226
|
-
n.classList.remove("hidden"), requestAnimationFrame(() => {
|
|
35227
|
-
n.classList.remove("opacity-0", "scale-95");
|
|
35228
|
-
});
|
|
35229
|
-
}
|
|
35230
|
-
function Ms(n) {
|
|
35231
|
-
n.classList.add("opacity-0", "scale-95"), n.addEventListener(
|
|
35232
|
-
"transitionend",
|
|
35233
|
-
() => n.classList.add("hidden"),
|
|
35234
|
-
{ once: !0 }
|
|
35235
|
-
);
|
|
35236
|
-
}
|
|
35237
|
-
class As {
|
|
35238
|
-
constructor({ container: e, testCardContainer: i }) {
|
|
35239
|
-
h(this, "container");
|
|
35240
|
-
h(this, "testCardContainer");
|
|
35241
|
-
h(this, "testCardInstance", null);
|
|
35242
|
-
h(this, "isVisible", !1);
|
|
35243
|
-
this.container = e, this.testCardContainer = i;
|
|
35244
|
-
}
|
|
35245
|
-
attachListener() {
|
|
35246
|
-
const e = this.container.querySelector(
|
|
35247
|
-
"#test-cards-link"
|
|
35248
|
-
);
|
|
35249
|
-
e && e.addEventListener("click", () => {
|
|
35250
|
-
if (this.isVisible) {
|
|
35251
|
-
this.testCardContainer.innerHTML = "", Ms(this.testCardContainer), e.classList.remove("text-tone-100", "font-bold"), this.isVisible = !1;
|
|
35252
|
-
return;
|
|
35253
|
-
}
|
|
35254
|
-
this.testCardInstance || (this.testCardInstance = new So({
|
|
35255
|
-
container: this.testCardContainer,
|
|
35256
|
-
closeCallback: () => {
|
|
35257
|
-
this.testCardContainer.innerHTML = "", Ms(this.testCardContainer), e.classList.remove("text-tone-100", "font-bold"), this.isVisible = !1;
|
|
35258
|
-
}
|
|
35259
|
-
})), this.testCardInstance.renderComponent(), ru(this.testCardContainer), e.classList.add("text-tone-100", "font-bold"), this.isVisible = !0;
|
|
35260
|
-
});
|
|
35261
|
-
}
|
|
35262
|
-
renderComponent() {
|
|
35263
|
-
this.container.innerHTML = this.render(), this.attachListener();
|
|
35264
|
-
}
|
|
35265
|
-
render() {
|
|
35266
|
-
return ou;
|
|
35267
|
-
}
|
|
35268
35278
|
}
|
|
35269
35279
|
const lu = `<div id="mobileConfirmationProgress">
|
|
35270
35280
|
<div>
|
|
@@ -35710,14 +35720,19 @@ class vu {
|
|
|
35710
35720
|
h(this, "callBackUrl");
|
|
35711
35721
|
h(this, "paymentResponse");
|
|
35712
35722
|
h(this, "paymentResponseHeaders");
|
|
35713
|
-
this
|
|
35723
|
+
h(this, "paymentMethod");
|
|
35724
|
+
this.container = e.container, this.onAction = e.onAction, this.callBackUrl = e.callBackUrl, this.paymentResponse = e.paymentResponse, this.paymentResponseHeaders = e.paymentResponseHeaders, this.paymentMethod = e.paymentMethod;
|
|
35714
35725
|
}
|
|
35715
35726
|
attachListeners() {
|
|
35716
35727
|
const e = this.container.querySelector(
|
|
35717
35728
|
".details-form-button"
|
|
35718
35729
|
);
|
|
35719
35730
|
e && e.addEventListener("click", () => {
|
|
35720
|
-
|
|
35731
|
+
var i;
|
|
35732
|
+
P.track("redirect_to_merchant", {
|
|
35733
|
+
payment_method: this.paymentMethod,
|
|
35734
|
+
status: (i = this.paymentResponse) == null ? void 0 : i.status
|
|
35735
|
+
}), nn(
|
|
35721
35736
|
this.paymentResponse,
|
|
35722
35737
|
this.paymentResponseHeaders,
|
|
35723
35738
|
this.callBackUrl
|
|
@@ -35725,7 +35740,11 @@ class vu {
|
|
|
35725
35740
|
});
|
|
35726
35741
|
}
|
|
35727
35742
|
renderComponent() {
|
|
35728
|
-
|
|
35743
|
+
var e;
|
|
35744
|
+
this.container.innerHTML = this.render(), P.track("payment_timeout", {
|
|
35745
|
+
payment_method: this.paymentMethod,
|
|
35746
|
+
status: (e = this.paymentResponse) == null ? void 0 : e.status
|
|
35747
|
+
}), this.attachListeners();
|
|
35729
35748
|
}
|
|
35730
35749
|
render() {
|
|
35731
35750
|
return bo;
|
|
@@ -35827,7 +35846,7 @@ class pu {
|
|
|
35827
35846
|
}
|
|
35828
35847
|
}
|
|
35829
35848
|
};
|
|
35830
|
-
return
|
|
35849
|
+
return Ri(
|
|
35831
35850
|
this.token,
|
|
35832
35851
|
d,
|
|
35833
35852
|
this.rdtCode,
|
|
@@ -36047,11 +36066,12 @@ class pu {
|
|
|
36047
36066
|
url: this.url,
|
|
36048
36067
|
callBackUrl: this.callBackUrl,
|
|
36049
36068
|
paymentResponse: this.paymentResponse,
|
|
36050
|
-
paymentResponseHeaders: this.paymentResponseHeaders
|
|
36069
|
+
paymentResponseHeaders: this.paymentResponseHeaders,
|
|
36070
|
+
paymentMethod: "Mobile Money"
|
|
36051
36071
|
}), this.mobileMoneyConfirmationEnd.renderComponent();
|
|
36052
36072
|
break;
|
|
36053
36073
|
case 9:
|
|
36054
|
-
this.transactionIssuesScreen = new
|
|
36074
|
+
this.transactionIssuesScreen = new Oi({
|
|
36055
36075
|
container: this.contents,
|
|
36056
36076
|
onAction: () => {
|
|
36057
36077
|
var t;
|
|
@@ -36224,7 +36244,7 @@ class fu {
|
|
|
36224
36244
|
channel: "eft",
|
|
36225
36245
|
reference: this.reference
|
|
36226
36246
|
};
|
|
36227
|
-
return
|
|
36247
|
+
return Ri(
|
|
36228
36248
|
this.token,
|
|
36229
36249
|
a,
|
|
36230
36250
|
this.rdtCode,
|
|
@@ -36353,7 +36373,7 @@ class fu {
|
|
|
36353
36373
|
}), this.contents.innerHTML = this.warningScreen.render(), this.warningScreen.attachListener();
|
|
36354
36374
|
break;
|
|
36355
36375
|
case 5:
|
|
36356
|
-
this.transactionIssuesScreen = new
|
|
36376
|
+
this.transactionIssuesScreen = new Oi({
|
|
36357
36377
|
container: this.contents,
|
|
36358
36378
|
onAction: () => {
|
|
36359
36379
|
var o;
|
|
@@ -36444,7 +36464,7 @@ class gu {
|
|
|
36444
36464
|
const o = (l = (a = this.merchantPlanDetail.plan) == null ? void 0 : a.pricingOptions) == null ? void 0 : l.find(
|
|
36445
36465
|
(d) => d.currency === this.currency
|
|
36446
36466
|
);
|
|
36447
|
-
this.amount = (o == null ? void 0 : o.amount) || this.amount, this.totalAmount = this.merchantPlanDetail.totalAmount || this.amount, this.mainHeader = new
|
|
36467
|
+
this.amount = (o == null ? void 0 : o.amount) || this.amount, this.totalAmount = this.merchantPlanDetail.totalAmount || this.amount, this.mainHeader = new ru({
|
|
36448
36468
|
container: document.getElementById("main-header"),
|
|
36449
36469
|
email: this.customerDetails.email,
|
|
36450
36470
|
amount: this.amount,
|
|
@@ -36458,7 +36478,7 @@ class gu {
|
|
|
36458
36478
|
this.closeBTN.bind(this)(d);
|
|
36459
36479
|
},
|
|
36460
36480
|
currentPaymentMethod: this.currentPaymentMethod
|
|
36461
|
-
}), this.mainHeader.renderComponent(), this.testCard = new
|
|
36481
|
+
}), this.mainHeader.renderComponent(), this.testCard = new go({
|
|
36462
36482
|
container: document.getElementById("test-container"),
|
|
36463
36483
|
closeCallback: () => {
|
|
36464
36484
|
const d = document.getElementById(
|
|
@@ -36466,7 +36486,7 @@ class gu {
|
|
|
36466
36486
|
);
|
|
36467
36487
|
d && (d.innerHTML = "", d.classList.add("hidden"));
|
|
36468
36488
|
}
|
|
36469
|
-
}), this.mainFooter = new
|
|
36489
|
+
}), this.mainFooter = new ws({
|
|
36470
36490
|
container: document.getElementById("main-footer"),
|
|
36471
36491
|
testCardContainer: document.getElementById(
|
|
36472
36492
|
"test-container"
|
|
@@ -36477,7 +36497,7 @@ class gu {
|
|
|
36477
36497
|
), p = document.getElementById(
|
|
36478
36498
|
"test-container"
|
|
36479
36499
|
);
|
|
36480
|
-
new
|
|
36500
|
+
new ws({
|
|
36481
36501
|
container: d,
|
|
36482
36502
|
testCardContainer: p
|
|
36483
36503
|
}).renderComponent();
|
|
@@ -36533,7 +36553,7 @@ class gu {
|
|
|
36533
36553
|
updatePaymentMethodView(e, i, t, s, o) {
|
|
36534
36554
|
switch (this.currentPaymentMethod) {
|
|
36535
36555
|
case "card":
|
|
36536
|
-
return this.card = new
|
|
36556
|
+
return this.card = new Vd({
|
|
36537
36557
|
container: this.modalContainer,
|
|
36538
36558
|
amount: t,
|
|
36539
36559
|
totalAmount: s,
|
|
@@ -36558,7 +36578,7 @@ class gu {
|
|
|
36558
36578
|
retryingPayment: this.retryingPayment
|
|
36559
36579
|
});
|
|
36560
36580
|
case "bank_transfer":
|
|
36561
|
-
return this.transfer = new
|
|
36581
|
+
return this.transfer = new Jd({
|
|
36562
36582
|
amount: t,
|
|
36563
36583
|
totalAmount: s,
|
|
36564
36584
|
currency: o,
|
|
@@ -36580,7 +36600,7 @@ class gu {
|
|
|
36580
36600
|
retryingPayment: this.retryingPayment
|
|
36581
36601
|
});
|
|
36582
36602
|
case "ussd":
|
|
36583
|
-
return this.ussd = new
|
|
36603
|
+
return this.ussd = new So({
|
|
36584
36604
|
container: this.modalContainer,
|
|
36585
36605
|
amount: t,
|
|
36586
36606
|
totalAmount: s,
|
|
@@ -36887,7 +36907,7 @@ class Au {
|
|
|
36887
36907
|
verification_status: "Cancelled"
|
|
36888
36908
|
}), P.track("checkout_closes");
|
|
36889
36909
|
}).catch((t) => {
|
|
36890
|
-
|
|
36910
|
+
_i.showToast(t.message, "error");
|
|
36891
36911
|
});
|
|
36892
36912
|
}
|
|
36893
36913
|
getDeviceType() {
|
|
@@ -36914,7 +36934,7 @@ class Au {
|
|
|
36914
36934
|
} = e;
|
|
36915
36935
|
if (this.merchantKey = s || "", this.email = i || "", this.amount = a || 0, this.encryption = t || "", this.planId = o || "", this.rdtCode = l || "", this.reference = d || Mr(), this.url = v || "", this.callBackUrl = g || "", this.metadata = f || {}, this.countryCode = k || "", this.phoneNumber = C || "", this.name = w || "", !s || !i)
|
|
36916
36936
|
throw this.mainError = new xs(this.mainLayout), this.mainError.renderContent(this.callBackUrl), this.showErrorIcon(), new Error("Merchant key or email is required");
|
|
36917
|
-
this.currency = p || "", this.merchantConfigService = new
|
|
36937
|
+
this.currency = p || "", this.merchantConfigService = new $d({
|
|
36918
36938
|
token: this.merchantKey,
|
|
36919
36939
|
rdtCode: this.rdtCode,
|
|
36920
36940
|
url: this.url
|