@spot-flow/checkout-inline-js 0.1.35 → 0.1.36-dev.2
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.
|
@@ -53,14 +53,14 @@ let X = class extends Error {
|
|
|
53
53
|
constructor(e, i) {
|
|
54
54
|
super(e), this.status = i, this.name = "FetchError";
|
|
55
55
|
}
|
|
56
|
-
},
|
|
56
|
+
}, De = class extends Error {
|
|
57
57
|
constructor(e) {
|
|
58
58
|
super(e), this.name = "AuthorizationError";
|
|
59
59
|
}
|
|
60
60
|
};
|
|
61
61
|
const Oe = (n, e, i) => {
|
|
62
62
|
if (!n)
|
|
63
|
-
throw new
|
|
63
|
+
throw new De("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) => {
|
|
@@ -79,7 +79,7 @@ const Oe = (n, e, i) => {
|
|
|
79
79
|
headers: o.headers
|
|
80
80
|
};
|
|
81
81
|
} catch (s) {
|
|
82
|
-
throw s instanceof X ? console.error(`FetchError: ${s.message} (status: ${s.status})`) : s instanceof
|
|
82
|
+
throw s instanceof X ? console.error(`FetchError: ${s.message} (status: ${s.status})`) : s instanceof De ? console.error(`AuthorizationError: ${s.message}`) : console.error(`Unexpected error: ${s}`), s;
|
|
83
83
|
}
|
|
84
84
|
}, gi = async (n, e, i, t) => {
|
|
85
85
|
try {
|
|
@@ -100,7 +100,7 @@ const Oe = (n, e, i) => {
|
|
|
100
100
|
headers: o.headers
|
|
101
101
|
};
|
|
102
102
|
} catch (s) {
|
|
103
|
-
throw s instanceof X ? console.error(`FetchError: ${s.message} (status: ${s.status})`) : s instanceof
|
|
103
|
+
throw s instanceof X ? console.error(`FetchError: ${s.message} (status: ${s.status})`) : s instanceof De ? console.error(`AuthorizationError: ${s.message}`) : console.error(`Unexpected error: ${s}`), s;
|
|
104
104
|
}
|
|
105
105
|
}, Ts = async (n, e, i, t) => {
|
|
106
106
|
try {
|
|
@@ -118,7 +118,7 @@ const Oe = (n, e, i) => {
|
|
|
118
118
|
headers: o.headers
|
|
119
119
|
};
|
|
120
120
|
} catch (s) {
|
|
121
|
-
throw s instanceof X ? console.error(`FetchError: ${s.message} (status: ${s.status})`) : s instanceof
|
|
121
|
+
throw s instanceof X ? console.error(`FetchError: ${s.message} (status: ${s.status})`) : s instanceof De ? console.error(`AuthorizationError: ${s.message}`) : console.error(`Unexpected error: ${s}`), s;
|
|
122
122
|
}
|
|
123
123
|
}, gr = async (n, e, i, t) => {
|
|
124
124
|
try {
|
|
@@ -136,7 +136,7 @@ const Oe = (n, e, i) => {
|
|
|
136
136
|
headers: o.headers
|
|
137
137
|
};
|
|
138
138
|
} catch (s) {
|
|
139
|
-
throw s instanceof X ? console.error(`FetchError: ${s.message} (status: ${s.status})`) : s instanceof
|
|
139
|
+
throw s instanceof X ? console.error(`FetchError: ${s.message} (status: ${s.status})`) : s instanceof De ? console.error(`AuthorizationError: ${s.message}`) : console.error(`UnexpectedError: ${s}`), s;
|
|
140
140
|
}
|
|
141
141
|
}, un = async (n, e, i, t, s) => {
|
|
142
142
|
try {
|
|
@@ -157,7 +157,7 @@ const Oe = (n, e, i) => {
|
|
|
157
157
|
headers: a.headers
|
|
158
158
|
};
|
|
159
159
|
} catch (o) {
|
|
160
|
-
throw o instanceof X ? console.error(`FetchError: ${o.message} (status: ${o.status})`) : o instanceof
|
|
160
|
+
throw o instanceof X ? console.error(`FetchError: ${o.message} (status: ${o.status})`) : o instanceof De ? console.error(`AuthorizationError: ${o.message}`) : console.error(`Unexpected error: ${o}`), o;
|
|
161
161
|
}
|
|
162
162
|
};
|
|
163
163
|
async function yr(n, e, i, t, s) {
|
|
@@ -176,7 +176,7 @@ async function yr(n, e, i, t, s) {
|
|
|
176
176
|
}
|
|
177
177
|
return await a.json();
|
|
178
178
|
} catch (a) {
|
|
179
|
-
throw a instanceof X ? console.error(`FetchError: ${a.message} (status: ${a.status})`) : a instanceof
|
|
179
|
+
throw a instanceof X ? console.error(`FetchError: ${a.message} (status: ${a.status})`) : a instanceof De ? console.error(`AuthorizationError: ${a.message}`) : console.error(`Unexpected error: ${a}`), a;
|
|
180
180
|
}
|
|
181
181
|
}
|
|
182
182
|
const Cr = async (n, e, i, t) => {
|
|
@@ -197,7 +197,7 @@ const Cr = async (n, e, i, t) => {
|
|
|
197
197
|
headers: o.headers
|
|
198
198
|
};
|
|
199
199
|
} catch (s) {
|
|
200
|
-
throw s instanceof X ? console.error(`FetchError: ${s.message} (status: ${s.status})`) : s instanceof
|
|
200
|
+
throw s instanceof X ? console.error(`FetchError: ${s.message} (status: ${s.status})`) : s instanceof De ? console.error(`AuthorizationError: ${s.message}`) : console.error(`Unexpected error: ${s}`), s;
|
|
201
201
|
}
|
|
202
202
|
}, Sr = async (n, e, i, t) => {
|
|
203
203
|
try {
|
|
@@ -215,7 +215,7 @@ const Cr = async (n, e, i, t) => {
|
|
|
215
215
|
}
|
|
216
216
|
return o.json();
|
|
217
217
|
} catch (s) {
|
|
218
|
-
throw s instanceof X ? console.error(`FetchError: ${s.message} (status: ${s.status})`) : s instanceof
|
|
218
|
+
throw s instanceof X ? console.error(`FetchError: ${s.message} (status: ${s.status})`) : s instanceof De ? console.error(`AuthorizationError: ${s.message}`) : console.error(`Unexpected error: ${s}`), s;
|
|
219
219
|
}
|
|
220
220
|
}, kr = async (n, e, i, t) => {
|
|
221
221
|
try {
|
|
@@ -233,9 +233,9 @@ const Cr = async (n, e, i, t) => {
|
|
|
233
233
|
}
|
|
234
234
|
return o.json();
|
|
235
235
|
} catch (s) {
|
|
236
|
-
throw s instanceof X ? console.error(`FetchError: ${s.message} (status: ${s.status})`) : s instanceof
|
|
236
|
+
throw s instanceof X ? console.error(`FetchError: ${s.message} (status: ${s.status})`) : s instanceof De ? console.error(`AuthorizationError: ${s.message}`) : console.error(`Unexpected error: ${s}`), s;
|
|
237
237
|
}
|
|
238
|
-
},
|
|
238
|
+
}, Di = async (n, e, i, t) => {
|
|
239
239
|
try {
|
|
240
240
|
const s = Oe(n, i), o = await fetch(`${fe(Ue, t)}/payments/retry`, {
|
|
241
241
|
method: "POST",
|
|
@@ -251,7 +251,7 @@ const Cr = async (n, e, i, t) => {
|
|
|
251
251
|
headers: o.headers
|
|
252
252
|
};
|
|
253
253
|
} catch (s) {
|
|
254
|
-
throw s instanceof X ? console.error(`FetchError: ${s.message} (status: ${s.status})`) : s instanceof
|
|
254
|
+
throw s instanceof X ? console.error(`FetchError: ${s.message} (status: ${s.status})`) : s instanceof De ? console.error(`AuthorizationError: ${s.message}`) : console.error(`Unexpected error: ${s}`), s;
|
|
255
255
|
}
|
|
256
256
|
};
|
|
257
257
|
async function wr(n, e, i, t, s) {
|
|
@@ -269,7 +269,7 @@ async function wr(n, e, i, t, s) {
|
|
|
269
269
|
}
|
|
270
270
|
return a.json();
|
|
271
271
|
} catch (o) {
|
|
272
|
-
throw o instanceof X ? console.error(`FetchError: ${o.message} (status: ${o.status})`) : o instanceof
|
|
272
|
+
throw o instanceof X ? console.error(`FetchError: ${o.message} (status: ${o.status})`) : o instanceof De ? console.error(`AuthorizationError: ${o.message}`) : console.error(`Unexpected error: ${o}`), o;
|
|
273
273
|
}
|
|
274
274
|
}
|
|
275
275
|
const Le = (n, e) => {
|
|
@@ -425,6 +425,26 @@ const Yt = [
|
|
|
425
425
|
<path fill="#ce1126" d="M0 0h512v170.7H0z"/>
|
|
426
426
|
<path fill="#000001" d="m256 170.7 55.5 170.6L166.3 236h179.4L200.6 341.3z"/>
|
|
427
427
|
</svg>
|
|
428
|
+
`
|
|
429
|
+
},
|
|
430
|
+
{
|
|
431
|
+
name: "TZS",
|
|
432
|
+
dialCode: "+255",
|
|
433
|
+
length: "9",
|
|
434
|
+
cardTypes: [],
|
|
435
|
+
icon: `<svg width="33" height="34" viewBox="0 0 33 34" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
436
|
+
<g clip-path="url(#clip0_3333_2907)">
|
|
437
|
+
<path d="M16.6191 33.2932C25.6655 33.2932 32.999 25.9596 32.999 16.9133C32.999 7.86692 25.6655 0.533394 16.6191 0.533394C7.57278 0.533394 0.239258 7.86692 0.239258 16.9133C0.239258 25.9596 7.57278 33.2932 16.6191 33.2932Z" fill="#FFDA44"/>
|
|
438
|
+
<path d="M5.03752 28.4957C5.72465 29.1828 6.45778 29.7956 7.2268 30.3351L30.0415 7.5203C29.5022 6.75128 28.8893 6.01815 28.2022 5.33103C27.515 4.64391 26.782 4.0312 26.0129 3.49168L3.19824 26.3065C3.73763 27.0753 4.35046 27.8085 5.03752 28.4957Z" fill="black"/>
|
|
439
|
+
<path d="M5.03712 5.33098C-0.130354 10.4986 -1.12242 18.2592 2.05905 24.4237L24.1298 2.35297C17.9654 -0.828501 10.2047 0.163634 5.03712 5.33098Z" fill="#6DA544"/>
|
|
440
|
+
<path d="M28.202 28.4956C33.3695 23.3282 34.3615 15.5674 31.1801 9.40296L9.10938 31.4737C15.2737 34.6552 23.0345 33.6631 28.202 28.4956Z" fill="#338AF3"/>
|
|
441
|
+
</g>
|
|
442
|
+
<defs>
|
|
443
|
+
<clipPath id="clip0_3333_2907">
|
|
444
|
+
<rect width="32.7598" height="32.7598" fill="white" transform="translate(0.240234 0.533325)"/>
|
|
445
|
+
</clipPath>
|
|
446
|
+
</defs>
|
|
447
|
+
</svg>
|
|
428
448
|
`
|
|
429
449
|
},
|
|
430
450
|
{
|
|
@@ -1003,7 +1023,7 @@ const Br = `<div id="checkoutcardotp">
|
|
|
1003
1023
|
</div>
|
|
1004
1024
|
</div>
|
|
1005
1025
|
</div>`;
|
|
1006
|
-
class
|
|
1026
|
+
class Dr {
|
|
1007
1027
|
constructor(e) {
|
|
1008
1028
|
h(this, "container");
|
|
1009
1029
|
h(this, "cardOtp");
|
|
@@ -1047,7 +1067,7 @@ class Rr {
|
|
|
1047
1067
|
return Br;
|
|
1048
1068
|
}
|
|
1049
1069
|
}
|
|
1050
|
-
const
|
|
1070
|
+
const Rr = `<div id="checkoutcardpin">
|
|
1051
1071
|
<div>
|
|
1052
1072
|
<div id="pin-content" class="grid gap-4">
|
|
1053
1073
|
<h5>
|
|
@@ -1133,7 +1153,7 @@ class Hr {
|
|
|
1133
1153
|
this.container.innerHTML = this.render(), this.attachListener();
|
|
1134
1154
|
}
|
|
1135
1155
|
render() {
|
|
1136
|
-
return
|
|
1156
|
+
return Rr;
|
|
1137
1157
|
}
|
|
1138
1158
|
}
|
|
1139
1159
|
const Or = `<form id="card-avs-form">
|
|
@@ -23716,7 +23736,7 @@ function cn(n, e, i) {
|
|
|
23716
23736
|
o.searchParams.append("status", n.status), o.searchParams.append("reference", n.reference), window.location.href = o.toString();
|
|
23717
23737
|
}, 1800);
|
|
23718
23738
|
}
|
|
23719
|
-
class
|
|
23739
|
+
class Ri {
|
|
23720
23740
|
constructor(e) {
|
|
23721
23741
|
h(this, "container");
|
|
23722
23742
|
h(this, "transactionIssuesForm");
|
|
@@ -24066,10 +24086,10 @@ function bt() {
|
|
|
24066
24086
|
const n = document.createElement("a");
|
|
24067
24087
|
return n.href = "", n.href;
|
|
24068
24088
|
}
|
|
24069
|
-
function
|
|
24089
|
+
function Ds(n, e, i, t) {
|
|
24070
24090
|
return t && (i === "src" || i === "href" && !(e === "use" && t[0] === "#") || i === "xlink:href" && t[0] !== "#" || i === "background" && (e === "table" || e === "td" || e === "th") ? Pn(n, t) : i === "srcset" ? dl(n, t) : i === "style" ? _i(t, bt()) : e === "object" && i === "data" ? Pn(n, t) : t);
|
|
24071
24091
|
}
|
|
24072
|
-
function
|
|
24092
|
+
function Rs(n, e, i) {
|
|
24073
24093
|
return (n === "video" || n === "audio") && e === "autoplay";
|
|
24074
24094
|
}
|
|
24075
24095
|
function cl(n, e, i) {
|
|
@@ -24254,7 +24274,7 @@ function fl(n, e) {
|
|
|
24254
24274
|
const M = n.attributes.length;
|
|
24255
24275
|
for (let _ = 0; _ < M; _++) {
|
|
24256
24276
|
const T = n.attributes[_];
|
|
24257
|
-
|
|
24277
|
+
Rs(C, T.name, T.value) || (w[T.name] = Ds(i, C, _n(T.name), T.value));
|
|
24258
24278
|
}
|
|
24259
24279
|
if (C === "link" && o) {
|
|
24260
24280
|
const _ = Array.from(i.styleSheets).find((I) => I.href === n.href);
|
|
@@ -24738,7 +24758,7 @@ function zs(n) {
|
|
|
24738
24758
|
const e = n.ownerDocument;
|
|
24739
24759
|
return e ? e.contains(n) || _l(n) : !1;
|
|
24740
24760
|
}
|
|
24741
|
-
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 || {}),
|
|
24761
|
+
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 || {});
|
|
24742
24762
|
function is(n) {
|
|
24743
24763
|
return "__ln" in n;
|
|
24744
24764
|
}
|
|
@@ -24940,7 +24960,7 @@ class Al {
|
|
|
24940
24960
|
attributes: {},
|
|
24941
24961
|
styleDiff: {},
|
|
24942
24962
|
_unchangedStyles: {}
|
|
24943
|
-
}, this.attributes.push(o), this.attributeMap.set(e.target, o)), t === "type" && i.tagName === "INPUT" && (e.oldValue || "").toLowerCase() === "password" && i.setAttribute("data-rr-is-password", "true"), !
|
|
24963
|
+
}, this.attributes.push(o), this.attributeMap.set(e.target, o)), t === "type" && i.tagName === "INPUT" && (e.oldValue || "").toLowerCase() === "password" && i.setAttribute("data-rr-is-password", "true"), !Rs(i.tagName, t) && (o.attributes[t] = Ds(this.doc, _n(i.tagName), _n(t), s), t === "style")) {
|
|
24944
24964
|
if (!this.unattachedDoc)
|
|
24945
24965
|
try {
|
|
24946
24966
|
this.unattachedDoc = document.implementation.createHTMLDocument();
|
|
@@ -25414,7 +25434,7 @@ function Ys({ mirror: n, stylesheetManager: e }, i) {
|
|
|
25414
25434
|
});
|
|
25415
25435
|
}));
|
|
25416
25436
|
}
|
|
25417
|
-
function
|
|
25437
|
+
function Dl({ styleDeclarationCb: n, mirror: e, ignoreCSSAttributes: i, stylesheetManager: t }, { win: s }) {
|
|
25418
25438
|
const o = s.CSSStyleDeclaration.prototype.setProperty;
|
|
25419
25439
|
s.CSSStyleDeclaration.prototype.setProperty = new Proxy(o, {
|
|
25420
25440
|
apply: z((l, d, b) => {
|
|
@@ -25456,7 +25476,7 @@ function Rl({ styleDeclarationCb: n, mirror: e, ignoreCSSAttributes: i, styleshe
|
|
|
25456
25476
|
s.CSSStyleDeclaration.prototype.setProperty = o, s.CSSStyleDeclaration.prototype.removeProperty = a;
|
|
25457
25477
|
});
|
|
25458
25478
|
}
|
|
25459
|
-
function
|
|
25479
|
+
function Rl({ mediaInteractionCb: n, blockClass: e, blockSelector: i, mirror: t, sampling: s, doc: o }) {
|
|
25460
25480
|
const a = z((d) => Qn(z((b) => {
|
|
25461
25481
|
const v = ii(b);
|
|
25462
25482
|
if (!v || Me(v, e, i, !0))
|
|
@@ -25591,13 +25611,13 @@ function Kl(n, e = {}) {
|
|
|
25591
25611
|
n.recordDOM && (t = Js(n, n.doc));
|
|
25592
25612
|
const s = Tl(n), o = El(n), a = $s(n), l = Pl(n, {
|
|
25593
25613
|
win: i
|
|
25594
|
-
}), d = Nl(n), b =
|
|
25614
|
+
}), d = Nl(n), b = Rl(n);
|
|
25595
25615
|
let v = () => {
|
|
25596
25616
|
}, g = () => {
|
|
25597
25617
|
}, f = () => {
|
|
25598
25618
|
}, y = () => {
|
|
25599
25619
|
};
|
|
25600
|
-
n.recordDOM && (v = Bl(n, { win: i }), g = Ys(n, n.doc), f =
|
|
25620
|
+
n.recordDOM && (v = Bl(n, { win: i }), g = Ys(n, n.doc), f = Dl(n, {
|
|
25601
25621
|
win: i
|
|
25602
25622
|
}), n.collectFonts && (y = Hl(n)));
|
|
25603
25623
|
const k = Ol(n), C = Ul(n), w = [];
|
|
@@ -25982,7 +26002,7 @@ function Jl(n, e, i, t) {
|
|
|
25982
26002
|
return Me(this.canvas, i, t, !0) || setTimeout(() => {
|
|
25983
26003
|
const v = Xs(b, e, this);
|
|
25984
26004
|
n(this.canvas, {
|
|
25985
|
-
type:
|
|
26005
|
+
type: Rn["2D"],
|
|
25986
26006
|
property: a,
|
|
25987
26007
|
args: v
|
|
25988
26008
|
});
|
|
@@ -25994,7 +26014,7 @@ function Jl(n, e, i, t) {
|
|
|
25994
26014
|
const d = Hi(e.CanvasRenderingContext2D.prototype, a, {
|
|
25995
26015
|
set(b) {
|
|
25996
26016
|
n(this.canvas, {
|
|
25997
|
-
type:
|
|
26017
|
+
type: Rn["2D"],
|
|
25998
26018
|
property: a,
|
|
25999
26019
|
args: [b],
|
|
26000
26020
|
setter: !0
|
|
@@ -26081,7 +26101,7 @@ function us(n, e, i, t, s, o, a) {
|
|
|
26081
26101
|
}
|
|
26082
26102
|
function Yl(n, e, i, t, s) {
|
|
26083
26103
|
const o = [];
|
|
26084
|
-
return o.push(...us(e.WebGLRenderingContext.prototype,
|
|
26104
|
+
return o.push(...us(e.WebGLRenderingContext.prototype, Rn.WebGL, n, i, t, s, e)), typeof e.WebGL2RenderingContext < "u" && o.push(...us(e.WebGL2RenderingContext.prototype, Rn.WebGL2, n, i, t, s, e)), () => {
|
|
26085
26105
|
o.forEach((a) => a());
|
|
26086
26106
|
};
|
|
26087
26107
|
}
|
|
@@ -26232,7 +26252,7 @@ class id {
|
|
|
26232
26252
|
const { base64: w, type: M, width: A, height: _ } = k.data;
|
|
26233
26253
|
this.mutationCb({
|
|
26234
26254
|
id: C,
|
|
26235
|
-
type:
|
|
26255
|
+
type: Rn["2D"],
|
|
26236
26256
|
commands: [
|
|
26237
26257
|
{
|
|
26238
26258
|
property: "clearRect",
|
|
@@ -26397,7 +26417,7 @@ function me(n) {
|
|
|
26397
26417
|
return Object.assign(Object.assign({}, n), { timestamp: Ai() });
|
|
26398
26418
|
}
|
|
26399
26419
|
let re, Ci, it, xi = !1;
|
|
26400
|
-
const
|
|
26420
|
+
const Re = Yr();
|
|
26401
26421
|
function ti(n = {}) {
|
|
26402
26422
|
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: b = 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: F = !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;
|
|
26403
26423
|
Ll(xe);
|
|
@@ -26411,7 +26431,7 @@ function ti(n = {}) {
|
|
|
26411
26431
|
}
|
|
26412
26432
|
if (we && !e)
|
|
26413
26433
|
throw new Error("emit function is required");
|
|
26414
|
-
T !== void 0 && A.mousemove === void 0 && (A.mousemove = T),
|
|
26434
|
+
T !== void 0 && A.mousemove === void 0 && (A.mousemove = T), Re.reset();
|
|
26415
26435
|
const tn = g === !0 ? {
|
|
26416
26436
|
color: !0,
|
|
26417
26437
|
date: !0,
|
|
@@ -26489,7 +26509,7 @@ function ti(n = {}) {
|
|
|
26489
26509
|
mutationCb: Ze,
|
|
26490
26510
|
adoptedStyleSheetCb: be
|
|
26491
26511
|
}), Ee = new jl({
|
|
26492
|
-
mirror:
|
|
26512
|
+
mirror: Re,
|
|
26493
26513
|
mutationCb: Ze,
|
|
26494
26514
|
stylesheetManager: Ie,
|
|
26495
26515
|
recordCrossOriginIframes: F,
|
|
@@ -26497,7 +26517,7 @@ function ti(n = {}) {
|
|
|
26497
26517
|
});
|
|
26498
26518
|
for (const B of V || [])
|
|
26499
26519
|
B.getMirror && B.getMirror({
|
|
26500
|
-
nodeMirror:
|
|
26520
|
+
nodeMirror: Re,
|
|
26501
26521
|
crossOriginIframeMirror: Ee.crossOriginIframeMirror,
|
|
26502
26522
|
crossOriginIframeStyleMirror: Ee.crossOriginIframeStyleMirror
|
|
26503
26523
|
});
|
|
@@ -26508,7 +26528,7 @@ function ti(n = {}) {
|
|
|
26508
26528
|
win: window,
|
|
26509
26529
|
blockClass: s,
|
|
26510
26530
|
blockSelector: o,
|
|
26511
|
-
mirror:
|
|
26531
|
+
mirror: Re,
|
|
26512
26532
|
sampling: A.canvas,
|
|
26513
26533
|
dataURLOptions: _
|
|
26514
26534
|
});
|
|
@@ -26535,7 +26555,7 @@ function ti(n = {}) {
|
|
|
26535
26555
|
keepIframeSrcFn: ke,
|
|
26536
26556
|
processedNodeManager: Ce
|
|
26537
26557
|
},
|
|
26538
|
-
mirror:
|
|
26558
|
+
mirror: Re
|
|
26539
26559
|
});
|
|
26540
26560
|
Ci = (B = !1) => {
|
|
26541
26561
|
if (!I)
|
|
@@ -26549,7 +26569,7 @@ function ti(n = {}) {
|
|
|
26549
26569
|
}
|
|
26550
26570
|
}), B), Ie.reset(), je.init(), kn.forEach((Y) => Y.lock());
|
|
26551
26571
|
const de = yl(document, {
|
|
26552
|
-
mirror:
|
|
26572
|
+
mirror: Re,
|
|
26553
26573
|
blockClass: s,
|
|
26554
26574
|
blockSelector: o,
|
|
26555
26575
|
maskTextClass: d,
|
|
@@ -26562,7 +26582,7 @@ function ti(n = {}) {
|
|
|
26562
26582
|
recordCanvas: K,
|
|
26563
26583
|
inlineImages: ge,
|
|
26564
26584
|
onSerialize: (Y) => {
|
|
26565
|
-
Gs(Y,
|
|
26585
|
+
Gs(Y, Re) && Ee.addIframe(Y), Fs(Y, Re) && Ie.trackLinkElement(Y), dt(Y) && je.addShadowRoot(Y.shadowRoot, document);
|
|
26566
26586
|
},
|
|
26567
26587
|
onIframeLoad: (Y, ue) => {
|
|
26568
26588
|
Ee.attachIframe(Y, ue), je.observeAttachShadow(Y);
|
|
@@ -26580,7 +26600,7 @@ function ti(n = {}) {
|
|
|
26580
26600
|
node: de,
|
|
26581
26601
|
initialOffset: Os(window)
|
|
26582
26602
|
}
|
|
26583
|
-
}), B), kn.forEach((Y) => Y.unlock()), document.adoptedStyleSheets && document.adoptedStyleSheets.length > 0 && Ie.adoptStyleSheets(document.adoptedStyleSheets,
|
|
26603
|
+
}), B), kn.forEach((Y) => Y.unlock()), document.adoptedStyleSheets && document.adoptedStyleSheets.length > 0 && Ie.adoptStyleSheets(document.adoptedStyleSheets, Re.getId(document));
|
|
26584
26604
|
};
|
|
26585
26605
|
try {
|
|
26586
26606
|
const B = [], de = (ue) => {
|
|
@@ -26656,7 +26676,7 @@ function ti(n = {}) {
|
|
|
26656
26676
|
blockSelector: o,
|
|
26657
26677
|
slimDOMOptions: We,
|
|
26658
26678
|
dataURLOptions: _,
|
|
26659
|
-
mirror:
|
|
26679
|
+
mirror: Re,
|
|
26660
26680
|
iframeManager: Ee,
|
|
26661
26681
|
stylesheetManager: Ie,
|
|
26662
26682
|
shadowDomManager: je,
|
|
@@ -26722,16 +26742,16 @@ ti.takeFullSnapshot = (n) => {
|
|
|
26722
26742
|
throw new Error("please take full snapshot after start recording");
|
|
26723
26743
|
Ci(n);
|
|
26724
26744
|
};
|
|
26725
|
-
ti.mirror =
|
|
26745
|
+
ti.mirror = Re;
|
|
26726
26746
|
var no = /* @__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))(no || {}), Ge = /* @__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))(Ge || {}), Xe = {
|
|
26727
26747
|
DEBUG: !1,
|
|
26728
26748
|
LIB_VERSION: "2.55.1"
|
|
26729
|
-
},
|
|
26749
|
+
}, R;
|
|
26730
26750
|
if (typeof window > "u") {
|
|
26731
26751
|
var cs = {
|
|
26732
26752
|
hostname: ""
|
|
26733
26753
|
};
|
|
26734
|
-
|
|
26754
|
+
R = {
|
|
26735
26755
|
navigator: { userAgent: "", onLine: !0 },
|
|
26736
26756
|
document: {
|
|
26737
26757
|
location: cs,
|
|
@@ -26741,8 +26761,8 @@ if (typeof window > "u") {
|
|
|
26741
26761
|
location: cs
|
|
26742
26762
|
};
|
|
26743
26763
|
} else
|
|
26744
|
-
|
|
26745
|
-
var Zn = 24 * 60 * 60 * 1e3, tt = 8 * 1e3, Oi = Array.prototype, od = Function.prototype, io = Object.prototype, ln = Oi.slice, si = io.toString, Ui = io.hasOwnProperty, he =
|
|
26764
|
+
R = window;
|
|
26765
|
+
var Zn = 24 * 60 * 60 * 1e3, tt = 8 * 1e3, Oi = Array.prototype, od = Function.prototype, io = Object.prototype, ln = Oi.slice, si = io.toString, Ui = io.hasOwnProperty, he = R.console, dn = R.navigator, ee = R.document, pi = R.opera, Ti = R.screen, Fe = dn.userAgent, st = od.bind, hs = Oi.forEach, ms = Oi.indexOf, vs = Oi.map, ad = Array.isArray, ct = {}, m = {
|
|
26746
26766
|
trim: function(n) {
|
|
26747
26767
|
return n.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
26748
26768
|
}
|
|
@@ -27136,8 +27156,8 @@ m.utf8Encode = function(n) {
|
|
|
27136
27156
|
m.UUID = /* @__PURE__ */ function() {
|
|
27137
27157
|
var n = function() {
|
|
27138
27158
|
var t = 1 * /* @__PURE__ */ new Date(), s;
|
|
27139
|
-
if (
|
|
27140
|
-
s =
|
|
27159
|
+
if (R.performance && R.performance.now)
|
|
27160
|
+
s = R.performance.now();
|
|
27141
27161
|
else
|
|
27142
27162
|
for (s = 0; t == 1 * /* @__PURE__ */ new Date(); )
|
|
27143
27163
|
s++;
|
|
@@ -27520,7 +27540,7 @@ m.info = {
|
|
|
27520
27540
|
return e.length >= 3 ? e[2] : "";
|
|
27521
27541
|
},
|
|
27522
27542
|
currentUrl: function() {
|
|
27523
|
-
return
|
|
27543
|
+
return R.location.href;
|
|
27524
27544
|
},
|
|
27525
27545
|
properties: function(n) {
|
|
27526
27546
|
return typeof n != "object" && (n = {}), m.extend(m.strip_empty_properties({
|
|
@@ -27552,10 +27572,10 @@ m.info = {
|
|
|
27552
27572
|
mpPageViewProperties: function() {
|
|
27553
27573
|
return m.strip_empty_properties({
|
|
27554
27574
|
current_page_title: ee.title,
|
|
27555
|
-
current_domain:
|
|
27556
|
-
current_url_path:
|
|
27557
|
-
current_url_protocol:
|
|
27558
|
-
current_url_search:
|
|
27575
|
+
current_domain: R.location.hostname,
|
|
27576
|
+
current_url_path: R.location.pathname,
|
|
27577
|
+
current_url_protocol: R.location.protocol,
|
|
27578
|
+
current_url_search: R.location.search
|
|
27559
27579
|
});
|
|
27560
27580
|
}
|
|
27561
27581
|
};
|
|
@@ -27568,7 +27588,7 @@ var pt = function(n) {
|
|
|
27568
27588
|
var s = n.match(e);
|
|
27569
27589
|
return s ? s[0] : "";
|
|
27570
27590
|
}, hd = function() {
|
|
27571
|
-
var n =
|
|
27591
|
+
var n = R.navigator.onLine;
|
|
27572
27592
|
return m.isUndefined(n) || n;
|
|
27573
27593
|
}, Pi = null, Ii = null;
|
|
27574
27594
|
typeof JSON < "u" && (Pi = JSON.stringify, Ii = JSON.parse);
|
|
@@ -27635,7 +27655,7 @@ function so(n, e) {
|
|
|
27635
27655
|
function gd(n) {
|
|
27636
27656
|
if (n && n.ignoreDnt)
|
|
27637
27657
|
return !1;
|
|
27638
|
-
var e = n && n.window ||
|
|
27658
|
+
var e = n && n.window || R, i = e.navigator || {}, t = !1;
|
|
27639
27659
|
return m.each([
|
|
27640
27660
|
i.doNotTrack,
|
|
27641
27661
|
// standard
|
|
@@ -27993,7 +28013,7 @@ Ve.prototype.reportError = function(n, e) {
|
|
|
27993
28013
|
Jn.error(i);
|
|
27994
28014
|
}
|
|
27995
28015
|
};
|
|
27996
|
-
var wn = Vi("recorder"), Cs =
|
|
28016
|
+
var wn = Vi("recorder"), Cs = R.CompressionStream, Sd = {
|
|
27997
28017
|
batch_size: 1e3,
|
|
27998
28018
|
batch_flush_interval_ms: 10 * 1e3,
|
|
27999
28019
|
batch_request_timeout_ms: 90 * 1e3,
|
|
@@ -28072,7 +28092,7 @@ Ke.prototype._sendRequest = function(n, e, i, t) {
|
|
|
28072
28092
|
retryAfter: o.headers.get("Retry-After")
|
|
28073
28093
|
});
|
|
28074
28094
|
}, this);
|
|
28075
|
-
|
|
28095
|
+
R.fetch(this.get_config("api_host") + "/" + this.get_config("api_routes").record + "?" + new URLSearchParams(e), {
|
|
28076
28096
|
method: "POST",
|
|
28077
28097
|
headers: {
|
|
28078
28098
|
Authorization: "Basic " + btoa(this.get_config("token") + ":"),
|
|
@@ -28121,7 +28141,7 @@ Ke.prototype.reportError = function(n, e) {
|
|
|
28121
28141
|
wn.error(i);
|
|
28122
28142
|
}
|
|
28123
28143
|
};
|
|
28124
|
-
|
|
28144
|
+
R.__mp_recorder = Ke;
|
|
28125
28145
|
var nn = function() {
|
|
28126
28146
|
};
|
|
28127
28147
|
nn.prototype.create_properties = function() {
|
|
@@ -28572,7 +28592,7 @@ var Lt, uo = function(n, e) {
|
|
|
28572
28592
|
}, Se, co = 0, Ad = 1, Ld = function(n) {
|
|
28573
28593
|
return n;
|
|
28574
28594
|
}, ei = function() {
|
|
28575
|
-
}, Ne = "mixpanel", ho = "base64", xd = "json", xt = "$device:",
|
|
28595
|
+
}, Ne = "mixpanel", ho = "base64", xd = "json", xt = "$device:", Dn = R.XMLHttpRequest && "withCredentials" in new XMLHttpRequest(), mo = !Dn && Fe.indexOf("MSIE") === -1 && Fe.indexOf("Mozilla") === -1, Bi = null;
|
|
28576
28596
|
dn.sendBeacon && (Bi = function() {
|
|
28577
28597
|
return dn.sendBeacon.apply(dn, arguments);
|
|
28578
28598
|
});
|
|
@@ -28688,17 +28708,17 @@ L.prototype._init = function(n, e, i) {
|
|
|
28688
28708
|
disable_all_events: !1,
|
|
28689
28709
|
identify_called: !1
|
|
28690
28710
|
}, this.request_batchers = {}, this._batch_requests = this.get_config("batch_requests"), this._batch_requests) {
|
|
28691
|
-
if (!m.localStorage.is_supported(!0) || !
|
|
28711
|
+
if (!m.localStorage.is_supported(!0) || !Dn)
|
|
28692
28712
|
this._batch_requests = !1, $.log("Turning off Mixpanel request-queueing; needs XHR and localStorage support"), m.each(this.get_batcher_configs(), function(d) {
|
|
28693
28713
|
$.log("Clearing batch queue " + d.queue_key), m.localStorage.remove(d.queue_key);
|
|
28694
28714
|
});
|
|
28695
|
-
else if (this.init_batchers(), Bi &&
|
|
28715
|
+
else if (this.init_batchers(), Bi && R.addEventListener) {
|
|
28696
28716
|
var o = m.bind(function() {
|
|
28697
28717
|
this.request_batchers.events.stopped || this.request_batchers.events.flush({ unloading: !0 });
|
|
28698
28718
|
}, this);
|
|
28699
|
-
|
|
28719
|
+
R.addEventListener("pagehide", function(d) {
|
|
28700
28720
|
d.persisted && o();
|
|
28701
|
-
}),
|
|
28721
|
+
}), R.addEventListener("visibilitychange", function() {
|
|
28702
28722
|
ee.visibilityState === "hidden" && o();
|
|
28703
28723
|
});
|
|
28704
28724
|
}
|
|
@@ -28713,14 +28733,14 @@ L.prototype._init = function(n, e, i) {
|
|
|
28713
28733
|
l && this._init_url_change_tracking(l), this.get_config("record_sessions_percent") > 0 && Math.random() * 100 <= this.get_config("record_sessions_percent") && this.start_session_recording();
|
|
28714
28734
|
};
|
|
28715
28735
|
L.prototype.start_session_recording = mn(function() {
|
|
28716
|
-
if (!
|
|
28736
|
+
if (!R.MutationObserver) {
|
|
28717
28737
|
$.critical("Browser does not support MutationObserver; skipping session recording");
|
|
28718
28738
|
return;
|
|
28719
28739
|
}
|
|
28720
28740
|
var n = m.bind(function() {
|
|
28721
|
-
this._recorder = this._recorder || new
|
|
28741
|
+
this._recorder = this._recorder || new R.__mp_recorder(this), this._recorder.startRecording();
|
|
28722
28742
|
}, this);
|
|
28723
|
-
m.isUndefined(
|
|
28743
|
+
m.isUndefined(R.__mp_recorder) ? uo(this.get_config("recorder_src"), n) : n();
|
|
28724
28744
|
});
|
|
28725
28745
|
L.prototype.stop_session_recording = function() {
|
|
28726
28746
|
this._recorder ? this._recorder.stopRecording() : $.critical("Session recorder module not loaded");
|
|
@@ -28762,19 +28782,19 @@ L.prototype._track_dom = function(n, e) {
|
|
|
28762
28782
|
L.prototype._init_url_change_tracking = function(n) {
|
|
28763
28783
|
var e = "", i = this.track_pageview();
|
|
28764
28784
|
if (i && (e = m.info.currentUrl()), m.include(["full-url", "url-with-path-and-query-string", "url-with-path"], n)) {
|
|
28765
|
-
|
|
28766
|
-
|
|
28767
|
-
}),
|
|
28768
|
-
|
|
28785
|
+
R.addEventListener("popstate", function() {
|
|
28786
|
+
R.dispatchEvent(new Event("mp_locationchange"));
|
|
28787
|
+
}), R.addEventListener("hashchange", function() {
|
|
28788
|
+
R.dispatchEvent(new Event("mp_locationchange"));
|
|
28769
28789
|
});
|
|
28770
|
-
var t =
|
|
28771
|
-
typeof t == "function" && (
|
|
28772
|
-
t.call(
|
|
28790
|
+
var t = R.history.pushState;
|
|
28791
|
+
typeof t == "function" && (R.history.pushState = function(o, a, l) {
|
|
28792
|
+
t.call(R.history, o, a, l), R.dispatchEvent(new Event("mp_locationchange"));
|
|
28773
28793
|
});
|
|
28774
|
-
var s =
|
|
28775
|
-
typeof s == "function" && (
|
|
28776
|
-
s.call(
|
|
28777
|
-
}),
|
|
28794
|
+
var s = R.history.replaceState;
|
|
28795
|
+
typeof s == "function" && (R.history.replaceState = function(o, a, l) {
|
|
28796
|
+
s.call(R.history, o, a, l), R.dispatchEvent(new Event("mp_locationchange"));
|
|
28797
|
+
}), R.addEventListener("mp_locationchange", (function() {
|
|
28778
28798
|
var o = m.info.currentUrl(), a = !1;
|
|
28779
28799
|
if (n === "full-url" ? a = o !== e : n === "url-with-path-and-query-string" ? a = o.split("#")[0] !== e.split("#")[0] : n === "url-with-path" && (a = o.split("#")[0].split("?")[0] !== e.split("#")[0].split("?")[0]), a) {
|
|
28780
28800
|
var l = this.track_pageview();
|
|
@@ -28786,7 +28806,7 @@ L.prototype._init_url_change_tracking = function(n) {
|
|
|
28786
28806
|
L.prototype._prepare_callback = function(n, e) {
|
|
28787
28807
|
if (m.isUndefined(n))
|
|
28788
28808
|
return null;
|
|
28789
|
-
if (
|
|
28809
|
+
if (Dn) {
|
|
28790
28810
|
var i = function(a) {
|
|
28791
28811
|
n(a, e);
|
|
28792
28812
|
};
|
|
@@ -28807,9 +28827,9 @@ L.prototype._send_request = function(n, e, i, t) {
|
|
|
28807
28827
|
transport: this.get_config("api_transport"),
|
|
28808
28828
|
verbose: this.get_config("verbose")
|
|
28809
28829
|
}, a = null;
|
|
28810
|
-
!t && (m.isFunction(i) || typeof i == "string") && (t = i, i = null), i = m.extend(o, i || {}),
|
|
28830
|
+
!t && (m.isFunction(i) || typeof i == "string") && (t = i, i = null), i = m.extend(o, i || {}), Dn || (i.method = "GET");
|
|
28811
28831
|
var l = i.method === "POST", d = Bi && l && i.transport.toLowerCase() === "sendbeacon", b = i.verbose;
|
|
28812
|
-
e.verbose && (b = !0), this.get_config("test") && (e.test = 1), b && (e.verbose = 1), this.get_config("img") && (e.img = 1),
|
|
28832
|
+
e.verbose && (b = !0), this.get_config("test") && (e.test = 1), b && (e.verbose = 1), this.get_config("img") && (e.img = 1), Dn || (t ? e.callback = t : (b || 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);
|
|
28813
28833
|
var v = this;
|
|
28814
28834
|
if ("img" in e) {
|
|
28815
28835
|
var g = ee.createElement("img");
|
|
@@ -28825,7 +28845,7 @@ L.prototype._send_request = function(n, e, i, t) {
|
|
|
28825
28845
|
} catch (M) {
|
|
28826
28846
|
v.report_error(M);
|
|
28827
28847
|
}
|
|
28828
|
-
} else if (
|
|
28848
|
+
} else if (Dn)
|
|
28829
28849
|
try {
|
|
28830
28850
|
var f = new XMLHttpRequest();
|
|
28831
28851
|
f.open(i.method, n, !0);
|
|
@@ -29294,7 +29314,7 @@ var Bn = {}, Ed = function() {
|
|
|
29294
29314
|
if (i)
|
|
29295
29315
|
return Se[i] || (Se[i] = Bn[i] = ht(n, e, i), Se[i]._loaded()), Se[i];
|
|
29296
29316
|
var t = Se;
|
|
29297
|
-
Bn[Ne] ? t = Bn[Ne] : n && (t = ht(n, e, Ne), t._loaded(), Bn[Ne] = t), Se = t, Lt === Ad && (
|
|
29317
|
+
Bn[Ne] ? t = Bn[Ne] : n && (t = ht(n, e, Ne), t._loaded(), Bn[Ne] = t), Se = t, Lt === Ad && (R[Ne] = Se), Ed();
|
|
29298
29318
|
};
|
|
29299
29319
|
}, Id = function() {
|
|
29300
29320
|
function n() {
|
|
@@ -29317,12 +29337,12 @@ var Bn = {}, Ed = function() {
|
|
|
29317
29337
|
ee.attachEvent("onreadystatechange", n);
|
|
29318
29338
|
var i = !1;
|
|
29319
29339
|
try {
|
|
29320
|
-
i =
|
|
29340
|
+
i = R.frameElement === null;
|
|
29321
29341
|
} catch {
|
|
29322
29342
|
}
|
|
29323
29343
|
ee.documentElement.doScroll && i && e();
|
|
29324
29344
|
}
|
|
29325
|
-
m.register_event(
|
|
29345
|
+
m.register_event(R, "load", n, !0);
|
|
29326
29346
|
};
|
|
29327
29347
|
function Nd(n) {
|
|
29328
29348
|
return uo = n, Lt = co, Se = new L(), Pd(), Se.init(), Id(), Se;
|
|
@@ -29388,7 +29408,7 @@ class fo {
|
|
|
29388
29408
|
return po;
|
|
29389
29409
|
}
|
|
29390
29410
|
}
|
|
29391
|
-
const
|
|
29411
|
+
const Dd = `<div id="confirmationProgress">
|
|
29392
29412
|
<div class="min-h-[20dvh]">
|
|
29393
29413
|
<div>
|
|
29394
29414
|
<div class="grid grid-rows-[auto_1fr] gap-4 mx-5">
|
|
@@ -29418,7 +29438,7 @@ const Rd = `<div id="confirmationProgress">
|
|
|
29418
29438
|
</div>
|
|
29419
29439
|
</div>
|
|
29420
29440
|
</div>`;
|
|
29421
|
-
class
|
|
29441
|
+
class Rd {
|
|
29422
29442
|
constructor(e) {
|
|
29423
29443
|
h(this, "container");
|
|
29424
29444
|
h(this, "onAction");
|
|
@@ -29504,7 +29524,7 @@ class Dd {
|
|
|
29504
29524
|
this.container.innerHTML = this.render(), this.attachListeners();
|
|
29505
29525
|
}
|
|
29506
29526
|
render() {
|
|
29507
|
-
return
|
|
29527
|
+
return Dd;
|
|
29508
29528
|
}
|
|
29509
29529
|
}
|
|
29510
29530
|
class Hd {
|
|
@@ -29601,7 +29621,7 @@ class Hd {
|
|
|
29601
29621
|
reference: this.reference,
|
|
29602
29622
|
encryptedCard: o
|
|
29603
29623
|
};
|
|
29604
|
-
return
|
|
29624
|
+
return Di(
|
|
29605
29625
|
this.token,
|
|
29606
29626
|
d,
|
|
29607
29627
|
this.rdtCode,
|
|
@@ -30006,7 +30026,7 @@ class Hd {
|
|
|
30006
30026
|
}), this.cardPinForm.renderComponent();
|
|
30007
30027
|
break;
|
|
30008
30028
|
case 3:
|
|
30009
|
-
this.cardOtpValidationForm = new
|
|
30029
|
+
this.cardOtpValidationForm = new Dr({
|
|
30010
30030
|
container: this.contents,
|
|
30011
30031
|
onClose: this.onClose,
|
|
30012
30032
|
onAction: (a) => (l) => this.submitOtp.bind(this)(a, l),
|
|
@@ -30039,7 +30059,7 @@ class Hd {
|
|
|
30039
30059
|
}), this.avsForm.renderComponent();
|
|
30040
30060
|
break;
|
|
30041
30061
|
case 8:
|
|
30042
|
-
this.transactionIssuesScreen = new
|
|
30062
|
+
this.transactionIssuesScreen = new Ri({
|
|
30043
30063
|
container: this.contents,
|
|
30044
30064
|
onAction: () => {
|
|
30045
30065
|
var a;
|
|
@@ -30072,7 +30092,7 @@ class Hd {
|
|
|
30072
30092
|
}), this.confirmationEnd.renderComponent();
|
|
30073
30093
|
break;
|
|
30074
30094
|
case 10:
|
|
30075
|
-
this.confirmationProgress = new
|
|
30095
|
+
this.confirmationProgress = new Rd({
|
|
30076
30096
|
container: this.contents,
|
|
30077
30097
|
onAction: (a) => {
|
|
30078
30098
|
this.currentStep = a;
|
|
@@ -30532,12 +30552,12 @@ var go = { exports: {} };
|
|
|
30532
30552
|
S.loading[r] = [p];
|
|
30533
30553
|
var x = O.createScriptRequest(S.getPath(r, u)), E = S.receivers.create(function(N) {
|
|
30534
30554
|
if (S.receivers.remove(E), S.loading[r]) {
|
|
30535
|
-
var
|
|
30555
|
+
var D = S.loading[r];
|
|
30536
30556
|
delete S.loading[r];
|
|
30537
30557
|
for (var Z = function(ce) {
|
|
30538
30558
|
ce || x.cleanup();
|
|
30539
|
-
}, Q = 0; Q <
|
|
30540
|
-
|
|
30559
|
+
}, Q = 0; Q < D.length; Q++)
|
|
30560
|
+
D[Q](N, Z);
|
|
30541
30561
|
}
|
|
30542
30562
|
});
|
|
30543
30563
|
x.send(E);
|
|
@@ -30646,13 +30666,13 @@ var go = { exports: {} };
|
|
|
30646
30666
|
return x.onreadystatechange = function() {
|
|
30647
30667
|
if (x.readyState === 4)
|
|
30648
30668
|
if (x.status === 200) {
|
|
30649
|
-
let N,
|
|
30669
|
+
let N, D = !1;
|
|
30650
30670
|
try {
|
|
30651
|
-
N = JSON.parse(x.responseText),
|
|
30671
|
+
N = JSON.parse(x.responseText), D = !0;
|
|
30652
30672
|
} catch {
|
|
30653
30673
|
S(new U(200, `JSON returned from ${p.toString()} endpoint was invalid, yet status code was 200. Data was: ${x.responseText}`), null);
|
|
30654
30674
|
}
|
|
30655
|
-
|
|
30675
|
+
D && S(null, N);
|
|
30656
30676
|
} else {
|
|
30657
30677
|
let N = "";
|
|
30658
30678
|
switch (p) {
|
|
@@ -30835,7 +30855,7 @@ var go = { exports: {} };
|
|
|
30835
30855
|
function li(c) {
|
|
30836
30856
|
var r = [], u = [];
|
|
30837
30857
|
return function p(S, x) {
|
|
30838
|
-
var E, N,
|
|
30858
|
+
var E, N, D;
|
|
30839
30859
|
switch (typeof S) {
|
|
30840
30860
|
case "object":
|
|
30841
30861
|
if (!S)
|
|
@@ -30844,14 +30864,14 @@ var go = { exports: {} };
|
|
|
30844
30864
|
if (r[E] === S)
|
|
30845
30865
|
return { $ref: u[E] };
|
|
30846
30866
|
if (r.push(S), u.push(x), Object.prototype.toString.apply(S) === "[object Array]")
|
|
30847
|
-
for (
|
|
30848
|
-
|
|
30867
|
+
for (D = [], E = 0; E < S.length; E += 1)
|
|
30868
|
+
D[E] = p(S[E], x + "[" + E + "]");
|
|
30849
30869
|
else {
|
|
30850
|
-
|
|
30870
|
+
D = {};
|
|
30851
30871
|
for (N in S)
|
|
30852
|
-
Object.prototype.hasOwnProperty.call(S, N) && (
|
|
30872
|
+
Object.prototype.hasOwnProperty.call(S, N) && (D[N] = p(S[N], x + "[" + JSON.stringify(N) + "]"));
|
|
30853
30873
|
}
|
|
30854
|
-
return
|
|
30874
|
+
return D;
|
|
30855
30875
|
case "number":
|
|
30856
30876
|
case "string":
|
|
30857
30877
|
case "boolean":
|
|
@@ -30900,8 +30920,8 @@ var go = { exports: {} };
|
|
|
30900
30920
|
c.auth_callbacks[x] = function(Q) {
|
|
30901
30921
|
S(null, Q);
|
|
30902
30922
|
};
|
|
30903
|
-
var
|
|
30904
|
-
N.src = u.endpoint + "?callback=" + encodeURIComponent(
|
|
30923
|
+
var D = "Pusher.auth_callbacks['" + x + "']";
|
|
30924
|
+
N.src = u.endpoint + "?callback=" + encodeURIComponent(D) + "&" + r;
|
|
30905
30925
|
var Z = E.getElementsByTagName("head")[0] || E.documentElement;
|
|
30906
30926
|
Z.insertBefore(N, Z.firstChild);
|
|
30907
30927
|
}, wo = ko;
|
|
@@ -30941,8 +30961,8 @@ var go = { exports: {} };
|
|
|
30941
30961
|
}
|
|
30942
30962
|
var Ao = function(c, r) {
|
|
30943
30963
|
return function(u, p) {
|
|
30944
|
-
var S = "http" + (r ? "s" : "") + "://", x = S + (c.host || c.options.host) + c.options.path, E = O.createJSONPRequest(x, u), N = O.ScriptReceivers.create(function(
|
|
30945
|
-
a.remove(N), E.cleanup(), Z && Z.host && (c.host = Z.host), p && p(
|
|
30964
|
+
var S = "http" + (r ? "s" : "") + "://", x = S + (c.host || c.options.host) + c.options.path, E = O.createJSONPRequest(x, u), N = O.ScriptReceivers.create(function(D, Z) {
|
|
30965
|
+
a.remove(N), E.cleanup(), Z && Z.host && (c.host = Z.host), p && p(D, Z);
|
|
30946
30966
|
});
|
|
30947
30967
|
E.send(N);
|
|
30948
30968
|
};
|
|
@@ -31166,10 +31186,10 @@ var go = { exports: {} };
|
|
|
31166
31186
|
isSupported: function() {
|
|
31167
31187
|
return O.isXHRSupported();
|
|
31168
31188
|
}
|
|
31169
|
-
},
|
|
31189
|
+
}, Do = new xn(be({}, It, Bt)), Ro = new xn(be({}, Nt, Bt)), Ho = {
|
|
31170
31190
|
ws: Bo,
|
|
31171
|
-
xhr_streaming:
|
|
31172
|
-
xhr_polling:
|
|
31191
|
+
xhr_streaming: Do,
|
|
31192
|
+
xhr_polling: Ro
|
|
31173
31193
|
}, di = Ho, Oo = new xn({
|
|
31174
31194
|
file: "sockjs",
|
|
31175
31195
|
urls: Po,
|
|
@@ -31194,12 +31214,12 @@ var go = { exports: {} };
|
|
|
31194
31214
|
path: r
|
|
31195
31215
|
}));
|
|
31196
31216
|
}
|
|
31197
|
-
}),
|
|
31217
|
+
}), Dt = {
|
|
31198
31218
|
isSupported: function(c) {
|
|
31199
31219
|
var r = O.isXDRSupported(c.useTLS);
|
|
31200
31220
|
return r;
|
|
31201
31221
|
}
|
|
31202
|
-
}, Uo = new xn(be({}, It,
|
|
31222
|
+
}, Uo = new xn(be({}, It, Dt)), Vo = new xn(be({}, Nt, Dt));
|
|
31203
31223
|
di.xdr_streaming = Uo, di.xdr_polling = Vo, di.sockjs = Oo;
|
|
31204
31224
|
var Ko = di;
|
|
31205
31225
|
class jo extends Je {
|
|
@@ -31226,9 +31246,9 @@ var go = { exports: {} };
|
|
|
31226
31246
|
activityTimeout: this.pingDelay
|
|
31227
31247
|
});
|
|
31228
31248
|
var x = this.transport.createConnection(r, u, p, S), E = null, N = function() {
|
|
31229
|
-
x.unbind("open", N), x.bind("closed",
|
|
31230
|
-
},
|
|
31231
|
-
if (x.unbind("closed",
|
|
31249
|
+
x.unbind("open", N), x.bind("closed", D), E = ae.now();
|
|
31250
|
+
}, D = (Z) => {
|
|
31251
|
+
if (x.unbind("closed", D), Z.code === 1002 || Z.code === 1003)
|
|
31232
31252
|
this.manager.reportDeath();
|
|
31233
31253
|
else if (!Z.wasClean && E) {
|
|
31234
31254
|
var Q = ae.now() - E;
|
|
@@ -31241,7 +31261,7 @@ var go = { exports: {} };
|
|
|
31241
31261
|
return this.manager.isAlive() && this.transport.isSupported(r);
|
|
31242
31262
|
}
|
|
31243
31263
|
}
|
|
31244
|
-
const
|
|
31264
|
+
const Rt = {
|
|
31245
31265
|
decodeMessage: function(c) {
|
|
31246
31266
|
try {
|
|
31247
31267
|
var r = JSON.parse(c.data), u = r.data;
|
|
@@ -31264,7 +31284,7 @@ var go = { exports: {} };
|
|
|
31264
31284
|
return JSON.stringify(c);
|
|
31265
31285
|
},
|
|
31266
31286
|
processHandshake: function(c) {
|
|
31267
|
-
var r =
|
|
31287
|
+
var r = Rt.decodeMessage(c);
|
|
31268
31288
|
if (r.event === "pusher:connection_established") {
|
|
31269
31289
|
if (!r.data.activity_timeout)
|
|
31270
31290
|
throw "No activity timeout specified in handshake";
|
|
@@ -31295,7 +31315,7 @@ var go = { exports: {} };
|
|
|
31295
31315
|
} : null;
|
|
31296
31316
|
}
|
|
31297
31317
|
};
|
|
31298
|
-
var yn =
|
|
31318
|
+
var yn = Rt;
|
|
31299
31319
|
class qo extends Je {
|
|
31300
31320
|
constructor(r, u) {
|
|
31301
31321
|
super(), this.id = r, this.transport = u, this.activityTimeout = u.activityTimeout, this.bindListeners();
|
|
@@ -31528,7 +31548,7 @@ var go = { exports: {} };
|
|
|
31528
31548
|
E(ce);
|
|
31529
31549
|
}
|
|
31530
31550
|
}
|
|
31531
|
-
function
|
|
31551
|
+
function D(Q) {
|
|
31532
31552
|
try {
|
|
31533
31553
|
Z(p.throw(Q));
|
|
31534
31554
|
} catch (ce) {
|
|
@@ -31536,7 +31556,7 @@ var go = { exports: {} };
|
|
|
31536
31556
|
}
|
|
31537
31557
|
}
|
|
31538
31558
|
function Z(Q) {
|
|
31539
|
-
Q.done ? x(Q.value) : S(Q.value).then(N,
|
|
31559
|
+
Q.done ? x(Q.value) : S(Q.value).then(N, D);
|
|
31540
31560
|
}
|
|
31541
31561
|
Z((p = p.apply(c, r || [])).next());
|
|
31542
31562
|
});
|
|
@@ -31920,15 +31940,15 @@ var go = { exports: {} };
|
|
|
31920
31940
|
return Kn(this.strategies, ae.method("isSupported"));
|
|
31921
31941
|
}
|
|
31922
31942
|
connect(r, u) {
|
|
31923
|
-
var p = this.strategies, S = 0, x = this.timeout, E = null, N = (
|
|
31943
|
+
var p = this.strategies, S = 0, x = this.timeout, E = null, N = (D, Z) => {
|
|
31924
31944
|
Z ? u(null, Z) : (S = S + 1, this.loop && (S = S % p.length), S < p.length ? (x && (x = x * 2, this.timeoutLimit && (x = Math.min(x, this.timeoutLimit))), E = this.tryStrategy(p[S], r, { timeout: x, failFast: this.failFast }, N)) : u(!0));
|
|
31925
31945
|
};
|
|
31926
31946
|
return E = this.tryStrategy(p[S], r, { timeout: x, failFast: this.failFast }, N), {
|
|
31927
31947
|
abort: function() {
|
|
31928
31948
|
E.abort();
|
|
31929
31949
|
},
|
|
31930
|
-
forceMinPriority: function(
|
|
31931
|
-
r =
|
|
31950
|
+
forceMinPriority: function(D) {
|
|
31951
|
+
r = D, E && E.forceMinPriority(D);
|
|
31932
31952
|
}
|
|
31933
31953
|
};
|
|
31934
31954
|
}
|
|
@@ -31936,8 +31956,8 @@ var go = { exports: {} };
|
|
|
31936
31956
|
var x = null, E = null;
|
|
31937
31957
|
return p.timeout > 0 && (x = new Te(p.timeout, function() {
|
|
31938
31958
|
E.abort(), S(!0);
|
|
31939
|
-
})), E = r.connect(u, function(N,
|
|
31940
|
-
N && x && x.isRunning() && !p.failFast || (x && x.ensureAborted(), S(N,
|
|
31959
|
+
})), E = r.connect(u, function(N, D) {
|
|
31960
|
+
N && x && x.isRunning() && !p.failFast || (x && x.ensureAborted(), S(N, D));
|
|
31941
31961
|
}), {
|
|
31942
31962
|
abort: function() {
|
|
31943
31963
|
x && x.ensureAborted(), E.abort();
|
|
@@ -32012,8 +32032,8 @@ var go = { exports: {} };
|
|
|
32012
32032
|
failFast: !0
|
|
32013
32033
|
}))) : x++);
|
|
32014
32034
|
}
|
|
32015
|
-
var
|
|
32016
|
-
ce ? (Ot(p), E.length > 0 ? (
|
|
32035
|
+
var D = ae.now(), Z = E.pop().connect(r, function Q(ce, hi) {
|
|
32036
|
+
ce ? (Ot(p), E.length > 0 ? (D = ae.now(), Z = E.pop().connect(r, Q)) : u(ce)) : (la(p, hi.transport.name, ae.now() - D, x), u(null, hi));
|
|
32017
32037
|
});
|
|
32018
32038
|
return {
|
|
32019
32039
|
abort: function() {
|
|
@@ -32130,7 +32150,7 @@ var go = { exports: {} };
|
|
|
32130
32150
|
hostNonTLS: c.httpHost + ":" + c.httpPort,
|
|
32131
32151
|
hostTLS: c.httpHost + ":" + c.httpsPort,
|
|
32132
32152
|
httpPath: c.httpPath
|
|
32133
|
-
}),
|
|
32153
|
+
}), D = {
|
|
32134
32154
|
loop: !0,
|
|
32135
32155
|
timeout: 15e3,
|
|
32136
32156
|
timeoutLimit: 6e4
|
|
@@ -32141,16 +32161,16 @@ var go = { exports: {} };
|
|
|
32141
32161
|
lives: 2,
|
|
32142
32162
|
minPingDelay: 1e4,
|
|
32143
32163
|
maxPingDelay: c.activityTimeout
|
|
32144
|
-
}), ce = S("ws", "ws", 3, x, Z), hi = S("wss", "ws", 3, E, Z), sr = S("sockjs", "sockjs", 1, N), Gt = S("xhr_streaming", "xhr_streaming", 1, N, Q), or = S("xdr_streaming", "xdr_streaming", 1, N, Q), Ft = S("xhr_polling", "xhr_polling", 1, N), ar = S("xdr_polling", "xdr_polling", 1, N), qt = new Cn([ce],
|
|
32164
|
+
}), ce = S("ws", "ws", 3, x, Z), hi = S("wss", "ws", 3, E, Z), sr = S("sockjs", "sockjs", 1, N), Gt = S("xhr_streaming", "xhr_streaming", 1, N, Q), or = S("xdr_streaming", "xdr_streaming", 1, N, Q), Ft = S("xhr_polling", "xhr_polling", 1, N), ar = S("xdr_polling", "xdr_polling", 1, N), qt = new Cn([ce], D), rr = new Cn([hi], D), lr = new Cn([sr], D), zt = new Cn([
|
|
32145
32165
|
new Gn(Fn(Gt), Gt, or)
|
|
32146
|
-
],
|
|
32166
|
+
], D), Wt = new Cn([
|
|
32147
32167
|
new Gn(Fn(Ft), Ft, ar)
|
|
32148
|
-
],
|
|
32168
|
+
], D), Zt = new Cn([
|
|
32149
32169
|
new Gn(Fn(zt), new Zi([
|
|
32150
32170
|
zt,
|
|
32151
32171
|
new ui(Wt, { delay: 4e3 })
|
|
32152
32172
|
]), Wt)
|
|
32153
|
-
],
|
|
32173
|
+
], D), Xi = new Gn(Fn(Zt), Zt, lr), et;
|
|
32154
32174
|
return r.useTLS ? et = new Zi([
|
|
32155
32175
|
qt,
|
|
32156
32176
|
new ui(Xi, { delay: 2e3 })
|
|
@@ -32558,16 +32578,16 @@ var go = { exports: {} };
|
|
|
32558
32578
|
x = $e.createHandshake(S, function(ce) {
|
|
32559
32579
|
p = !0, Q(), u(null, ce);
|
|
32560
32580
|
});
|
|
32561
|
-
},
|
|
32581
|
+
}, D = function(ce) {
|
|
32562
32582
|
Q(), u(ce);
|
|
32563
32583
|
}, Z = function() {
|
|
32564
32584
|
Q();
|
|
32565
32585
|
var ce;
|
|
32566
32586
|
ce = gn(S), u(new T(ce));
|
|
32567
32587
|
}, Q = function() {
|
|
32568
|
-
S.unbind("initialized", E), S.unbind("open", N), S.unbind("error",
|
|
32588
|
+
S.unbind("initialized", E), S.unbind("open", N), S.unbind("error", D), S.unbind("closed", Z);
|
|
32569
32589
|
};
|
|
32570
|
-
return S.bind("initialized", E), S.bind("open", N), S.bind("error",
|
|
32590
|
+
return S.bind("initialized", E), S.bind("open", N), S.bind("error", D), S.bind("closed", Z), S.initialize(), {
|
|
32571
32591
|
abort: () => {
|
|
32572
32592
|
p || (Q(), x ? x.close() : S.close());
|
|
32573
32593
|
},
|
|
@@ -32587,13 +32607,13 @@ var go = { exports: {} };
|
|
|
32587
32607
|
}
|
|
32588
32608
|
};
|
|
32589
32609
|
}
|
|
32590
|
-
const { Transports:
|
|
32591
|
-
var
|
|
32592
|
-
var E =
|
|
32610
|
+
const { Transports: Da } = O;
|
|
32611
|
+
var Ra = function(c, r, u, p, S, x) {
|
|
32612
|
+
var E = Da[u];
|
|
32593
32613
|
if (!E)
|
|
32594
32614
|
throw new K(u);
|
|
32595
|
-
var N = (!c.enabledTransports || Ee(c.enabledTransports, r) !== -1) && (!c.disabledTransports || Ee(c.disabledTransports, r) === -1),
|
|
32596
|
-
return N ? (S = Object.assign({ ignoreNullOrigin: c.ignoreNullOrigin }, S),
|
|
32615
|
+
var N = (!c.enabledTransports || Ee(c.enabledTransports, r) !== -1) && (!c.disabledTransports || Ee(c.disabledTransports, r) === -1), D;
|
|
32616
|
+
return N ? (S = Object.assign({ ignoreNullOrigin: c.ignoreNullOrigin }, S), D = new Ba(r, p, x ? x.getAssistant(E) : E, S)) : D = Ha, D;
|
|
32597
32617
|
}, Ha = {
|
|
32598
32618
|
isSupported: function() {
|
|
32599
32619
|
return !1;
|
|
@@ -32834,7 +32854,7 @@ var go = { exports: {} };
|
|
|
32834
32854
|
host: this.config.statsHost,
|
|
32835
32855
|
path: "/timeline/v2/" + O.TimelineTransport.name
|
|
32836
32856
|
}));
|
|
32837
|
-
var p = (S) => O.getDefaultStrategy(this.config, S,
|
|
32857
|
+
var p = (S) => O.getDefaultStrategy(this.config, S, Ra);
|
|
32838
32858
|
this.connection = $e.createConnectionManager(this.key, {
|
|
32839
32859
|
getStrategy: p,
|
|
32840
32860
|
timeline: this.timeline,
|
|
@@ -33347,7 +33367,7 @@ class zd {
|
|
|
33347
33367
|
channel: "bank_transfer",
|
|
33348
33368
|
reference: this.reference
|
|
33349
33369
|
};
|
|
33350
|
-
return
|
|
33370
|
+
return Di(
|
|
33351
33371
|
this.token,
|
|
33352
33372
|
a,
|
|
33353
33373
|
this.rdtCode,
|
|
@@ -33487,7 +33507,7 @@ class zd {
|
|
|
33487
33507
|
}), this.transferConfirmationEnd.renderComponent();
|
|
33488
33508
|
break;
|
|
33489
33509
|
case 9:
|
|
33490
|
-
this.transactionIssuesScreen = new
|
|
33510
|
+
this.transactionIssuesScreen = new Ri({
|
|
33491
33511
|
container: this.contents,
|
|
33492
33512
|
onAction: () => {
|
|
33493
33513
|
var s;
|
|
@@ -34542,7 +34562,7 @@ class su {
|
|
|
34542
34562
|
const ou = `<div class="flex items-center justify-center md:justify-between w-full text-xxs mt-5">
|
|
34543
34563
|
<div class="text-tone-60"><span>Powered by</span> <span class="font-bold">Spotflow</span></div>
|
|
34544
34564
|
<div class="align-center text-tone-60 hidden md:flex gap-4">
|
|
34545
|
-
|
|
34565
|
+
<span id="test-cards-link" class="hover:font-bold">Test Cards</span>
|
|
34546
34566
|
<a href="https://ribbon-scowl-35f.notion.site/Terms-Conditions-940742f0a1b144498ffc1786c5bc6a08?pvs=4" target="_blank" class="hover:font-bold">Terms</a>
|
|
34547
34567
|
<a href="https://ribbon-scowl-35f.notion.site/Privacy-Policy-Spotflow-3997ee8d923d4cd39a3dc43b7249b713" target="_blank" class="hover:font-bold">Privacy</a>
|
|
34548
34568
|
<a href="mailto:hello@spotflow.one" class="hover:font-bold">Contact</a>
|
|
@@ -35138,12 +35158,6 @@ const uu = `<form id="mobile-money-form">
|
|
|
35138
35158
|
</p>
|
|
35139
35159
|
</div>
|
|
35140
35160
|
|
|
35141
|
-
<div class="w-9/12 mx-auto mt-5">
|
|
35142
|
-
<div class="bg-[#FEF7ED] text-[#816039] text-sm text-center rounded-lg p-2">
|
|
35143
|
-
This payment may incur a 1% E-Levy, as mandated by the
|
|
35144
|
-
Ghana Revenue Authority (GRA).
|
|
35145
|
-
</div>
|
|
35146
|
-
</div>
|
|
35147
35161
|
</form>`;
|
|
35148
35162
|
class cu {
|
|
35149
35163
|
constructor(e) {
|
|
@@ -35152,7 +35166,6 @@ class cu {
|
|
|
35152
35166
|
h(this, "warningError");
|
|
35153
35167
|
h(this, "pageLoader");
|
|
35154
35168
|
h(this, "localCurrency");
|
|
35155
|
-
h(this, "rate");
|
|
35156
35169
|
h(this, "amount");
|
|
35157
35170
|
h(this, "totalAmount");
|
|
35158
35171
|
h(this, "onAction");
|
|
@@ -35162,7 +35175,8 @@ class cu {
|
|
|
35162
35175
|
h(this, "url");
|
|
35163
35176
|
h(this, "currency");
|
|
35164
35177
|
h(this, "restartTransactionProcess");
|
|
35165
|
-
this
|
|
35178
|
+
h(this, "merchantDetails");
|
|
35179
|
+
this.container = e.container, this.onAction = e.onAction, this.switchScreen = e.switchScreen, this.url = e.url, this.merchantKey = e.merchantKey, this.rdtCode = e.rdtCode, this.currency = e.currency, this.localCurrency = e.localCurrency, this.amount = e.amount, this.totalAmount = e.totalAmount, this.merchantDetails = e.merchantDetails, this.restartTransactionProcess = e.restartTransactionProcess, this.warningError = new Ln({
|
|
35166
35180
|
container: this.container,
|
|
35167
35181
|
onAction: this.restartTransactionProcess.bind(this)
|
|
35168
35182
|
});
|
|
@@ -35208,13 +35222,14 @@ class cu {
|
|
|
35208
35222
|
});
|
|
35209
35223
|
}
|
|
35210
35224
|
displayButtonText(e) {
|
|
35225
|
+
var t, s;
|
|
35211
35226
|
const i = this.container.querySelector(
|
|
35212
35227
|
"#mobile-money-button-text"
|
|
35213
35228
|
);
|
|
35214
35229
|
if (i) {
|
|
35215
|
-
const
|
|
35216
|
-
i.textContent = `Continue to pay ${
|
|
35217
|
-
this.totalAmount !== this.amount ? this.totalAmount : this.amount * (this.
|
|
35230
|
+
const o = this.localCurrency && this.localCurrency !== this.currency ? this.localCurrency : this.currency;
|
|
35231
|
+
i.textContent = `Continue to pay ${o} ${Le(
|
|
35232
|
+
this.totalAmount !== this.amount ? this.totalAmount : this.amount * (this.currency === "USD" ? (s = (t = this.merchantDetails) == null ? void 0 : t.rate) == null ? void 0 : s.rate : 1),
|
|
35218
35233
|
2
|
|
35219
35234
|
)}`;
|
|
35220
35235
|
}
|
|
@@ -35464,7 +35479,7 @@ class bu {
|
|
|
35464
35479
|
// "233987654321"
|
|
35465
35480
|
}
|
|
35466
35481
|
};
|
|
35467
|
-
return
|
|
35482
|
+
return Di(
|
|
35468
35483
|
this.token,
|
|
35469
35484
|
d,
|
|
35470
35485
|
this.rdtCode,
|
|
@@ -35583,10 +35598,10 @@ class bu {
|
|
|
35583
35598
|
);
|
|
35584
35599
|
}
|
|
35585
35600
|
renderMobileMoneyContent(e) {
|
|
35586
|
-
var i
|
|
35601
|
+
var i;
|
|
35587
35602
|
if (e && (this.merchantDetails = e), this.currentStep === 3 && this.disablePaymentMethods("mobile_money"), this.currentStep !== 1) {
|
|
35588
|
-
const
|
|
35589
|
-
|
|
35603
|
+
const t = document.getElementById("go-back");
|
|
35604
|
+
t && (t.classList.remove("flex", "items-center", "gap-2", "mb-2"), t.innerHTML = "");
|
|
35590
35605
|
}
|
|
35591
35606
|
switch (this.currentStep === 6 ? this.hidePaymentMethods() : this.showPaymentMethods(), this.isMobile && this.hidePaymentMethods(), this.currentStep) {
|
|
35592
35607
|
case 1:
|
|
@@ -35594,18 +35609,18 @@ class bu {
|
|
|
35594
35609
|
container: this.contents,
|
|
35595
35610
|
merchantKey: this.token,
|
|
35596
35611
|
url: this.url,
|
|
35597
|
-
onAction: (
|
|
35612
|
+
onAction: (t) => (s) => this.createMobileMoney.bind(this)(t, s),
|
|
35598
35613
|
ref: this.activeRef,
|
|
35599
|
-
switchScreen: (
|
|
35600
|
-
this.currentStep =
|
|
35614
|
+
switchScreen: (t) => {
|
|
35615
|
+
this.currentStep = t;
|
|
35601
35616
|
},
|
|
35602
35617
|
rdtCode: this.rdtCode,
|
|
35603
35618
|
currency: this.currency,
|
|
35604
35619
|
localCurrency: this.localCurrency,
|
|
35605
35620
|
amount: this.amount,
|
|
35606
35621
|
totalAmount: this.totalAmount,
|
|
35607
|
-
|
|
35608
|
-
|
|
35622
|
+
restartTransactionProcess: this.restartTransactionProcess.bind(this),
|
|
35623
|
+
merchantDetails: this.merchantDetails
|
|
35609
35624
|
}), this.mobileMoneyForm.renderContent();
|
|
35610
35625
|
break;
|
|
35611
35626
|
case 2:
|
|
@@ -35614,8 +35629,8 @@ class bu {
|
|
|
35614
35629
|
case 3:
|
|
35615
35630
|
this.mobileMoneyConfirmation = new du({
|
|
35616
35631
|
container: this.contents,
|
|
35617
|
-
onAction: (
|
|
35618
|
-
this.currentStep =
|
|
35632
|
+
onAction: (t) => {
|
|
35633
|
+
this.currentStep = t;
|
|
35619
35634
|
},
|
|
35620
35635
|
ref: this.reference,
|
|
35621
35636
|
onSuccess: this.onSuccess.bind(this),
|
|
@@ -35623,8 +35638,8 @@ class bu {
|
|
|
35623
35638
|
rdtCode: this.rdtCode,
|
|
35624
35639
|
url: this.url,
|
|
35625
35640
|
callBackUrl: this.callBackUrl,
|
|
35626
|
-
setPaymentResponses: (
|
|
35627
|
-
this.paymentResponse =
|
|
35641
|
+
setPaymentResponses: (t, s) => {
|
|
35642
|
+
this.paymentResponse = t, this.paymentResponseHeaders = s;
|
|
35628
35643
|
}
|
|
35629
35644
|
}), this.mobileMoneyConfirmation.renderComponent();
|
|
35630
35645
|
break;
|
|
@@ -35634,7 +35649,7 @@ class bu {
|
|
|
35634
35649
|
amount: this.totalAmount,
|
|
35635
35650
|
currency: this.currency,
|
|
35636
35651
|
localCurrency: this.localCurrency,
|
|
35637
|
-
rate:
|
|
35652
|
+
rate: e == null ? void 0 : e.rate.rate
|
|
35638
35653
|
}), this.successScreen.renderComponent();
|
|
35639
35654
|
break;
|
|
35640
35655
|
case 5:
|
|
@@ -35648,8 +35663,8 @@ class bu {
|
|
|
35648
35663
|
this.mobileMoneyValidationForm = new mu({
|
|
35649
35664
|
container: this.contents,
|
|
35650
35665
|
onClose: this.onClose,
|
|
35651
|
-
onAction: (
|
|
35652
|
-
otpMessage: ((
|
|
35666
|
+
onAction: (t) => (s) => this.submitOtp.bind(this)(t, s),
|
|
35667
|
+
otpMessage: ((i = this.paymentResponse) == null ? void 0 : i.providerMessage) || "Please enter your OTP sent to your phone"
|
|
35653
35668
|
}), this.mobileMoneyValidationForm.renderComponent();
|
|
35654
35669
|
break;
|
|
35655
35670
|
case 7:
|
|
@@ -35658,8 +35673,8 @@ class bu {
|
|
|
35658
35673
|
case 8:
|
|
35659
35674
|
this.mobileMoneyConfirmationEnd = new vu({
|
|
35660
35675
|
container: this.contents,
|
|
35661
|
-
onAction: (
|
|
35662
|
-
this.currentStep =
|
|
35676
|
+
onAction: (t) => {
|
|
35677
|
+
this.currentStep = t;
|
|
35663
35678
|
},
|
|
35664
35679
|
ref: this.reference,
|
|
35665
35680
|
onSuccess: this.onSuccess.bind(this),
|
|
@@ -35672,12 +35687,12 @@ class bu {
|
|
|
35672
35687
|
}), this.mobileMoneyConfirmationEnd.renderComponent();
|
|
35673
35688
|
break;
|
|
35674
35689
|
case 9:
|
|
35675
|
-
this.transactionIssuesScreen = new
|
|
35690
|
+
this.transactionIssuesScreen = new Ri({
|
|
35676
35691
|
container: this.contents,
|
|
35677
35692
|
onAction: () => {
|
|
35678
|
-
var
|
|
35693
|
+
var t;
|
|
35679
35694
|
this.currentStep = 5, this.warningScreen.setPaymentError(
|
|
35680
|
-
((
|
|
35695
|
+
((t = this.paymentResponse) == null ? void 0 : t.providerMessage) || "Payment failed"
|
|
35681
35696
|
);
|
|
35682
35697
|
},
|
|
35683
35698
|
url: this.url,
|
|
@@ -35845,7 +35860,7 @@ class fu {
|
|
|
35845
35860
|
channel: "eft",
|
|
35846
35861
|
reference: this.reference
|
|
35847
35862
|
};
|
|
35848
|
-
return
|
|
35863
|
+
return Di(
|
|
35849
35864
|
this.token,
|
|
35850
35865
|
a,
|
|
35851
35866
|
this.rdtCode,
|
|
@@ -35976,7 +35991,7 @@ class fu {
|
|
|
35976
35991
|
}), this.contents.innerHTML = this.warningScreen.render(), this.warningScreen.attachListener();
|
|
35977
35992
|
break;
|
|
35978
35993
|
case 5:
|
|
35979
|
-
this.transactionIssuesScreen = new
|
|
35994
|
+
this.transactionIssuesScreen = new Ri({
|
|
35980
35995
|
container: this.contents,
|
|
35981
35996
|
onAction: () => {
|
|
35982
35997
|
var o;
|
|
@@ -36566,9 +36581,9 @@ class Au {
|
|
|
36566
36581
|
async getPlanDetails() {
|
|
36567
36582
|
const e = this.currency === "USD" ? this.localCurrency : this.currency;
|
|
36568
36583
|
this.merchantConfigService.getMerchantConfig(this.planId, e).then(async (i) => {
|
|
36569
|
-
var
|
|
36584
|
+
var a, l;
|
|
36570
36585
|
if (i.taxEnabled) {
|
|
36571
|
-
const
|
|
36586
|
+
const d = await wr(
|
|
36572
36587
|
this.merchantKey,
|
|
36573
36588
|
this.localCurrency !== this.currency ? this.amount * i.rate.rate : this.amount,
|
|
36574
36589
|
// Convert to local currency if available
|
|
@@ -36578,8 +36593,8 @@ class Au {
|
|
|
36578
36593
|
);
|
|
36579
36594
|
this.merchantPlanDetail = {
|
|
36580
36595
|
...i,
|
|
36581
|
-
totalAmount:
|
|
36582
|
-
taxQuoteId:
|
|
36596
|
+
totalAmount: d.totalAmount,
|
|
36597
|
+
taxQuoteId: d.id
|
|
36583
36598
|
};
|
|
36584
36599
|
} else
|
|
36585
36600
|
this.merchantPlanDetail = i;
|
|
@@ -36591,13 +36606,13 @@ class Au {
|
|
|
36591
36606
|
merchant: this.merchantPlanDetail.merchantName
|
|
36592
36607
|
}), P.track("checkout_opens");
|
|
36593
36608
|
const { validChannels: t, disabledChannels: s } = this.getAvailableChannels();
|
|
36594
|
-
if (t.length === 0 || t[0] === "ussd" && t.length === 1) {
|
|
36595
|
-
const
|
|
36596
|
-
this.mainError =
|
|
36597
|
-
let
|
|
36598
|
-
throw (
|
|
36599
|
-
...this.merchantPlanDetail.limits.map((
|
|
36600
|
-
)),
|
|
36609
|
+
if (((a = this.merchantPlanDetail) == null ? void 0 : a.limits) && this.merchantPlanDetail.limits.length > 0 && (t.length === 0 || t[0] === "ussd" && t.length === 1)) {
|
|
36610
|
+
const d = new Cu(this.mainLayout);
|
|
36611
|
+
this.mainError = d;
|
|
36612
|
+
let b = 0;
|
|
36613
|
+
throw (l = this.merchantPlanDetail) != null && l.limits && this.merchantPlanDetail.limits.length > 0 && (b = Math.max(
|
|
36614
|
+
...this.merchantPlanDetail.limits.map((v) => v.amount)
|
|
36615
|
+
)), d.setLimitInfo(e, b), this.mainError.renderContent(this.callBackUrl), this.showErrorIcon(), new Error("Transaction limit reached");
|
|
36601
36616
|
}
|
|
36602
36617
|
i.rate ? this.mainScreen.mountScreen(
|
|
36603
36618
|
this.merchantPlanDetail,
|