@spot-flow/checkout-inline-js 0.1.33-dev.3 → 0.1.33-dev.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/checkout-inline.es.js +171 -164
- package/dist/checkout-inline.js +420 -420
- package/dist/data.d.ts +1 -1
- package/dist/index.css +1 -1
- package/dist/views/card/card-detail-form.d.ts +2 -0
- package/package.json +1 -1
|
@@ -319,7 +319,7 @@ const fr = async (n, e, i, t) => {
|
|
|
319
319
|
}
|
|
320
320
|
};
|
|
321
321
|
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;
|
|
322
|
-
const
|
|
322
|
+
const zt = [
|
|
323
323
|
{
|
|
324
324
|
name: "MasterCard",
|
|
325
325
|
icon: `<svg width="24" height="14" viewBox="0 0 24 14" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
@@ -390,7 +390,7 @@ const qt = [
|
|
|
390
390
|
</svg>
|
|
391
391
|
`
|
|
392
392
|
}
|
|
393
|
-
],
|
|
393
|
+
], nt = [
|
|
394
394
|
{
|
|
395
395
|
name: "GHS",
|
|
396
396
|
dialCode: "+233",
|
|
@@ -438,7 +438,7 @@ const qt = [
|
|
|
438
438
|
name: "ZAR",
|
|
439
439
|
dialCode: "+27",
|
|
440
440
|
length: "9",
|
|
441
|
-
cardTypes: ["Visa", "MasterCard", "
|
|
441
|
+
cardTypes: ["Visa", "MasterCard", "American Express", "Diners Club"],
|
|
442
442
|
icon: `<svg xmlns="http://www.w3.org/2000/svg" id="flag-icons-za" viewBox="0 0 512 512">
|
|
443
443
|
<defs>
|
|
444
444
|
<clipPath id="za-a">
|
|
@@ -560,9 +560,10 @@ const qt = [
|
|
|
560
560
|
Visa: /^4/,
|
|
561
561
|
MasterCard: /^5[1-5]|^2(2[2-9]|[3-6]|7[01])/,
|
|
562
562
|
"American Express": /^3[47]/,
|
|
563
|
-
Discover: /^6(?:011|5
|
|
563
|
+
Discover: /^6(?:011|5[0-9]{2})[0-9]{12}$/,
|
|
564
564
|
UnionPay: /^62/,
|
|
565
|
-
Verve: /^
|
|
565
|
+
Verve: /^((506(0|1))|(507(8|9))|(6500))[0-9]{12,15}$/,
|
|
566
|
+
"Diners Club": /^3(?:0[0-5]|[68][0-9])[0-9]{11}$/
|
|
566
567
|
};
|
|
567
568
|
for (const [i, t] of Object.entries(e))
|
|
568
569
|
if (t.test(n))
|
|
@@ -574,7 +575,7 @@ const qt = [
|
|
|
574
575
|
"American Express": [15],
|
|
575
576
|
Discover: [16],
|
|
576
577
|
UnionPay: [16],
|
|
577
|
-
Verve: [16, 19]
|
|
578
|
+
Verve: [16, 17, 18, 19]
|
|
578
579
|
}, an = class an {
|
|
579
580
|
};
|
|
580
581
|
h(an, "createToast", (e, i) => {
|
|
@@ -616,11 +617,12 @@ class Wt {
|
|
|
616
617
|
h(this, "cardDetailsValues");
|
|
617
618
|
h(this, "creditCardTypes");
|
|
618
619
|
h(this, "merchantName");
|
|
619
|
-
this
|
|
620
|
+
h(this, "currency");
|
|
621
|
+
this.container = e.container, this.onAction = e.onAction, this.creditCardTypes = [...zt], this.cardDetailsValues = {
|
|
620
622
|
number: "",
|
|
621
623
|
expiry: "",
|
|
622
624
|
cvv: ""
|
|
623
|
-
}, this.merchantName = e.merchantName;
|
|
625
|
+
}, this.merchantName = e.merchantName, this.currency = e.currency;
|
|
624
626
|
}
|
|
625
627
|
attachListener() {
|
|
626
628
|
const e = document.querySelector("#pci-dss");
|
|
@@ -676,32 +678,35 @@ class Wt {
|
|
|
676
678
|
const v = r.replace(/\s+/g, ""), g = this.validateCreditCard(v);
|
|
677
679
|
this.filterCreditCardType(o);
|
|
678
680
|
const f = (l = this.creditCardTypes[0]) == null ? void 0 : l.name;
|
|
679
|
-
|
|
680
|
-
if (
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
681
|
+
f && nt.map((y) => {
|
|
682
|
+
if (y.name === this.currency)
|
|
683
|
+
if (y.cardTypes.includes(f)) {
|
|
684
|
+
const k = Lr[f];
|
|
685
|
+
if (k.length > 1) {
|
|
686
|
+
const C = k.some(
|
|
687
|
+
(w) => v.length === w
|
|
688
|
+
);
|
|
689
|
+
this.checkInputValidity(
|
|
690
|
+
g,
|
|
691
|
+
t,
|
|
692
|
+
"Your card number is invalid",
|
|
693
|
+
C
|
|
694
|
+
);
|
|
695
|
+
} else
|
|
696
|
+
v.length === k[0] && this.checkInputValidity(
|
|
697
|
+
g,
|
|
698
|
+
t,
|
|
699
|
+
"Your card number is invalid",
|
|
700
|
+
v.length >= 14 && v.length <= 19
|
|
701
|
+
);
|
|
702
|
+
} else
|
|
703
|
+
this.checkInputValidity(
|
|
704
|
+
!1,
|
|
705
|
+
t,
|
|
706
|
+
"Invalid card. Only locally issued cards are accepted.",
|
|
707
|
+
o.trim().length >= 14 && o.trim().length <= 19
|
|
708
|
+
);
|
|
709
|
+
});
|
|
705
710
|
} else if (s === "expiry") {
|
|
706
711
|
const v = /* @__PURE__ */ new Date();
|
|
707
712
|
r = Ar(o);
|
|
@@ -747,7 +752,7 @@ class Wt {
|
|
|
747
752
|
});
|
|
748
753
|
}
|
|
749
754
|
filterCreditCardType(e) {
|
|
750
|
-
e ? (this.creditCardTypes =
|
|
755
|
+
e ? (this.creditCardTypes = zt.filter(
|
|
751
756
|
(i) => i.name === Mr(e)
|
|
752
757
|
), this.displayCardTypes()) : (this.creditCardTypes = [], this.displayCardTypes());
|
|
753
758
|
}
|
|
@@ -23894,7 +23899,7 @@ class As {
|
|
|
23894
23899
|
function Wr() {
|
|
23895
23900
|
return new As();
|
|
23896
23901
|
}
|
|
23897
|
-
function
|
|
23902
|
+
function rt({ element: n, maskInputOptions: e, tagName: i, type: t, value: s, maskInputFn: o }) {
|
|
23898
23903
|
let r = s || "";
|
|
23899
23904
|
const l = t && kn(t);
|
|
23900
23905
|
return (e[i.toLowerCase()] || l && e[l]) && (o ? r = o(r, n) : r = "*".repeat(r.length)), r;
|
|
@@ -23916,7 +23921,7 @@ function Zr(n) {
|
|
|
23916
23921
|
}
|
|
23917
23922
|
return !0;
|
|
23918
23923
|
}
|
|
23919
|
-
function
|
|
23924
|
+
function lt(n) {
|
|
23920
23925
|
const e = n.type;
|
|
23921
23926
|
return n.hasAttribute("data-rr-is-password") ? "password" : e ? kn(e) : null;
|
|
23922
23927
|
}
|
|
@@ -24011,12 +24016,12 @@ function En(n, e) {
|
|
|
24011
24016
|
function al(n) {
|
|
24012
24017
|
return !!(n.tagName === "svg" || n.ownerSVGElement);
|
|
24013
24018
|
}
|
|
24014
|
-
function
|
|
24019
|
+
function dt() {
|
|
24015
24020
|
const n = document.createElement("a");
|
|
24016
24021
|
return n.href = "", n.href;
|
|
24017
24022
|
}
|
|
24018
24023
|
function Ts(n, e, i, t) {
|
|
24019
|
-
return t && (i === "src" || i === "href" && !(e === "use" && t[0] === "#") || i === "xlink:href" && t[0] !== "#" || i === "background" && (e === "table" || e === "td" || e === "th") ? En(n, t) : i === "srcset" ? ol(n, t) : i === "style" ? gi(t,
|
|
24024
|
+
return t && (i === "src" || i === "href" && !(e === "use" && t[0] === "#") || i === "xlink:href" && t[0] !== "#" || i === "background" && (e === "table" || e === "td" || e === "th") ? En(n, t) : i === "srcset" ? ol(n, t) : i === "style" ? gi(t, dt()) : e === "object" && i === "data" ? En(n, t) : t);
|
|
24020
24025
|
}
|
|
24021
24026
|
function Es(n, e, i) {
|
|
24022
24027
|
return (n === "video" || n === "audio") && e === "autoplay";
|
|
@@ -24188,7 +24193,7 @@ function hl(n, e) {
|
|
|
24188
24193
|
} catch (v) {
|
|
24189
24194
|
console.warn(`Cannot get CSS styles from text's parentNode. Error: ${v}`, n);
|
|
24190
24195
|
}
|
|
24191
|
-
l = gi(l,
|
|
24196
|
+
l = gi(l, dt());
|
|
24192
24197
|
}
|
|
24193
24198
|
return b && (l = "SCRIPT_PLACEHOLDER"), !u && !b && l && t && (l = s ? s(l, n.parentElement) : l.replace(/[\S]/g, "*")), {
|
|
24194
24199
|
type: me.Text,
|
|
@@ -24212,13 +24217,13 @@ function ml(n, e) {
|
|
|
24212
24217
|
}
|
|
24213
24218
|
if (C === "style" && n.sheet && !(n.innerText || n.textContent || "").trim().length) {
|
|
24214
24219
|
const _ = fi(n.sheet);
|
|
24215
|
-
_ && (w._cssText = gi(_,
|
|
24220
|
+
_ && (w._cssText = gi(_, dt()));
|
|
24216
24221
|
}
|
|
24217
24222
|
if (C === "input" || C === "textarea" || C === "select") {
|
|
24218
24223
|
const _ = n.value, x = n.checked;
|
|
24219
|
-
w.type !== "radio" && w.type !== "checkbox" && w.type !== "submit" && w.type !== "button" && _ ? w.value =
|
|
24224
|
+
w.type !== "radio" && w.type !== "checkbox" && w.type !== "submit" && w.type !== "button" && _ ? w.value = rt({
|
|
24220
24225
|
element: n,
|
|
24221
|
-
type:
|
|
24226
|
+
type: lt(n),
|
|
24222
24227
|
tagName: C,
|
|
24223
24228
|
value: _,
|
|
24224
24229
|
maskInputOptions: r,
|
|
@@ -24614,7 +24619,7 @@ function Rs(n, e) {
|
|
|
24614
24619
|
const i = e.getId(n);
|
|
24615
24620
|
return e.has(i) ? n.parentNode && n.parentNode.nodeType === n.DOCUMENT_NODE ? !1 : n.parentNode ? Rs(n.parentNode, e) : !0 : !0;
|
|
24616
24621
|
}
|
|
24617
|
-
function
|
|
24622
|
+
function it(n) {
|
|
24618
24623
|
return !!n.changedTouches;
|
|
24619
24624
|
}
|
|
24620
24625
|
function fl(n = window) {
|
|
@@ -24635,7 +24640,7 @@ function Ds(n, e) {
|
|
|
24635
24640
|
function Os(n, e) {
|
|
24636
24641
|
return !!(n.nodeName === "LINK" && n.nodeType === n.ELEMENT_NODE && n.getAttribute && n.getAttribute("rel") === "stylesheet" && e.getMeta(n));
|
|
24637
24642
|
}
|
|
24638
|
-
function
|
|
24643
|
+
function tt(n) {
|
|
24639
24644
|
return !!(n != null && n.shadowRoot);
|
|
24640
24645
|
}
|
|
24641
24646
|
class gl {
|
|
@@ -24761,7 +24766,7 @@ class kl {
|
|
|
24761
24766
|
recordCanvas: this.recordCanvas,
|
|
24762
24767
|
inlineImages: this.inlineImages,
|
|
24763
24768
|
onSerialize: (f) => {
|
|
24764
|
-
Ds(f, this.mirror) && this.iframeManager.addIframe(f), Os(f, this.mirror) && this.stylesheetManager.trackLinkElement(f),
|
|
24769
|
+
Ds(f, this.mirror) && this.iframeManager.addIframe(f), Os(f, this.mirror) && this.stylesheetManager.trackLinkElement(f), tt(u) && this.shadowDomManager.addShadowRoot(u.shadowRoot, this.doc);
|
|
24765
24770
|
},
|
|
24766
24771
|
onIframeLoad: (f, y) => {
|
|
24767
24772
|
this.iframeManager.attachIframe(f, y), this.shadowDomManager.observeAttachShadow(f);
|
|
@@ -24866,8 +24871,8 @@ class kl {
|
|
|
24866
24871
|
const i = e.target;
|
|
24867
24872
|
let t = e.attributeName, s = e.target.getAttribute(t);
|
|
24868
24873
|
if (t === "value") {
|
|
24869
|
-
const r =
|
|
24870
|
-
s =
|
|
24874
|
+
const r = lt(i);
|
|
24875
|
+
s = rt({
|
|
24871
24876
|
element: i,
|
|
24872
24877
|
maskInputOptions: this.maskInputOptions,
|
|
24873
24878
|
tagName: i.tagName,
|
|
@@ -24916,7 +24921,7 @@ class kl {
|
|
|
24916
24921
|
}
|
|
24917
24922
|
e.addedNodes.forEach((i) => this.genAdds(i, e.target)), e.removedNodes.forEach((i) => {
|
|
24918
24923
|
const t = this.mirror.getId(i), s = Vn(e.target) ? this.mirror.getId(e.target.host) : this.mirror.getId(e.target);
|
|
24919
|
-
Me(e.target, this.blockClass, this.blockSelector, !1) || Ji(i, this.mirror) || !pl(i, this.mirror) || (this.addedSet.has(i) ? (
|
|
24924
|
+
Me(e.target, this.blockClass, this.blockSelector, !1) || Ji(i, this.mirror) || !pl(i, this.mirror) || (this.addedSet.has(i) ? (st(this.addedSet, i), this.droppedSet.add(i)) : this.addedSet.has(e.target) && t === -1 || Rs(e.target, this.mirror) || (this.movedSet.has(i) && this.movedMap[Qt(t, s)] ? st(this.movedSet, i) : this.removes.push({
|
|
24920
24925
|
parentId: s,
|
|
24921
24926
|
id: t,
|
|
24922
24927
|
isShadow: Vn(e.target) && Gn(e.target) ? !0 : void 0
|
|
@@ -24935,7 +24940,7 @@ class kl {
|
|
|
24935
24940
|
i && this.mirror.hasNode(i) && (t = this.mirror.getId(i)), t && t !== -1 && (this.movedMap[Qt(this.mirror.getId(e), t)] = !0);
|
|
24936
24941
|
} else
|
|
24937
24942
|
this.addedSet.add(e), this.droppedSet.delete(e);
|
|
24938
|
-
Me(e, this.blockClass, this.blockSelector, !1) || (e.childNodes.forEach((t) => this.genAdds(t)),
|
|
24943
|
+
Me(e, this.blockClass, this.blockSelector, !1) || (e.childNodes.forEach((t) => this.genAdds(t)), tt(e) && e.shadowRoot.childNodes.forEach((t) => {
|
|
24939
24944
|
this.processedNodeManager.add(t, this), this.genAdds(t, e);
|
|
24940
24945
|
}));
|
|
24941
24946
|
}
|
|
@@ -24987,8 +24992,8 @@ class kl {
|
|
|
24987
24992
|
this.shadowDomManager.reset(), this.canvasManager.reset();
|
|
24988
24993
|
}
|
|
24989
24994
|
}
|
|
24990
|
-
function
|
|
24991
|
-
n.delete(e), e.childNodes.forEach((i) =>
|
|
24995
|
+
function st(n, e) {
|
|
24996
|
+
n.delete(e), e.childNodes.forEach((i) => st(n, i));
|
|
24992
24997
|
}
|
|
24993
24998
|
function Xt(n, e, i) {
|
|
24994
24999
|
return n.length === 0 ? !1 : Ks(n, e, i);
|
|
@@ -25062,7 +25067,7 @@ function Al({ mousemoveCb: n, sampling: e, doc: i, mirror: t }) {
|
|
|
25062
25067
|
const f = Date.now() - l;
|
|
25063
25068
|
n(r.map((y) => (y.timeOffset -= f, y)), g), r = [], l = null;
|
|
25064
25069
|
}), o), b = z(Zn(z((g) => {
|
|
25065
|
-
const f = Qn(g), { clientX: y, clientY: k } =
|
|
25070
|
+
const f = Qn(g), { clientX: y, clientY: k } = it(g) ? g.changedTouches[0] : g;
|
|
25066
25071
|
l || (l = Ci()), r.push({
|
|
25067
25072
|
x: y,
|
|
25068
25073
|
y: k,
|
|
@@ -25104,9 +25109,9 @@ function Ml({ mouseInteractionCb: n, doc: e, mirror: i, blockClass: t, blockSele
|
|
|
25104
25109
|
break;
|
|
25105
25110
|
}
|
|
25106
25111
|
y === Ye.Touch ? Le[v] === Le.MouseDown ? k = "TouchStart" : Le[v] === Le.MouseUp && (k = "TouchEnd") : Ye.Pen;
|
|
25107
|
-
} else
|
|
25112
|
+
} else it(g) && (y = Ye.Touch);
|
|
25108
25113
|
y !== null ? (u = y, (k.startsWith("Touch") && y === Ye.Touch || k.startsWith("Mouse") && y === Ye.Mouse) && (y = null)) : Le[v] === Le.Click && (y = u, u = null);
|
|
25109
|
-
const C =
|
|
25114
|
+
const C = it(g) ? g.changedTouches[0] : g;
|
|
25110
25115
|
if (!C)
|
|
25111
25116
|
return;
|
|
25112
25117
|
const w = i.getId(f), { clientX: A, clientY: M } = C;
|
|
@@ -25171,8 +25176,8 @@ function El({ inputCb: n, doc: e, mirror: i, blockClass: t, blockSelector: s, ig
|
|
|
25171
25176
|
if (_ && N === "OPTION" && (_ = _.parentElement), !_ || !N || Tl.indexOf(N) < 0 || Me(_, t, s, !0) || _.classList.contains(o) || r && _.matches(r))
|
|
25172
25177
|
return;
|
|
25173
25178
|
let G = _.value, F = !1;
|
|
25174
|
-
const U =
|
|
25175
|
-
U === "radio" || U === "checkbox" ? F = _.checked : (l[N.toLowerCase()] || l[U]) && (G =
|
|
25179
|
+
const U = lt(_) || "";
|
|
25180
|
+
U === "radio" || U === "checkbox" ? F = _.checked : (l[N.toLowerCase()] || l[U]) && (G = rt({
|
|
25176
25181
|
element: _,
|
|
25177
25182
|
maskInputOptions: l,
|
|
25178
25183
|
tagName: N,
|
|
@@ -26511,7 +26516,7 @@ function Xn(n = {}) {
|
|
|
26511
26516
|
recordCanvas: G,
|
|
26512
26517
|
inlineImages: fe,
|
|
26513
26518
|
onSerialize: ($) => {
|
|
26514
|
-
Ds($, Be) && xe.addIframe($), Os($, Be) && Pe.trackLinkElement($),
|
|
26519
|
+
Ds($, Be) && xe.addIframe($), Os($, Be) && Pe.trackLinkElement($), tt($) && Ue.addShadowRoot($.shadowRoot, document);
|
|
26515
26520
|
},
|
|
26516
26521
|
onIframeLoad: ($, ge) => {
|
|
26517
26522
|
xe.attachIframe($, ge), Ue.observeAttachShadow($);
|
|
@@ -26691,7 +26696,7 @@ if (typeof window > "u") {
|
|
|
26691
26696
|
};
|
|
26692
26697
|
} else
|
|
26693
26698
|
D = window;
|
|
26694
|
-
var qn = 24 * 60 * 60 * 1e3, Yi = 8 * 1e3, Ni = Array.prototype, nd = Function.prototype, Js = Object.prototype, rn = Ni.slice, ei = Js.toString, Ii = Js.hasOwnProperty, ce = D.console, ln = D.navigator, X = D.document, di = D.opera, wi = D.screen, Ve = ln.userAgent, Qi = nd.bind, rs = Ni.forEach, ls = Ni.indexOf, ds = Ni.map, id = Array.isArray,
|
|
26699
|
+
var qn = 24 * 60 * 60 * 1e3, Yi = 8 * 1e3, Ni = Array.prototype, nd = Function.prototype, Js = Object.prototype, rn = Ni.slice, ei = Js.toString, Ii = Js.hasOwnProperty, ce = D.console, ln = D.navigator, X = D.document, di = D.opera, wi = D.screen, Ve = ln.userAgent, Qi = nd.bind, rs = Ni.forEach, ls = Ni.indexOf, ds = Ni.map, id = Array.isArray, ot = {}, m = {
|
|
26695
26700
|
trim: function(n) {
|
|
26696
26701
|
return n.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
26697
26702
|
}
|
|
@@ -26780,11 +26785,11 @@ m.each = function(n, e, i) {
|
|
|
26780
26785
|
n.forEach(e, i);
|
|
26781
26786
|
else if (n.length === +n.length) {
|
|
26782
26787
|
for (var t = 0, s = n.length; t < s; t++)
|
|
26783
|
-
if (t in n && e.call(i, n[t], t, n) ===
|
|
26788
|
+
if (t in n && e.call(i, n[t], t, n) === ot)
|
|
26784
26789
|
return;
|
|
26785
26790
|
} else
|
|
26786
26791
|
for (var o in n)
|
|
26787
|
-
if (Ii.call(n, o) && e.call(i, n[o], o, n) ===
|
|
26792
|
+
if (Ii.call(n, o) && e.call(i, n[o], o, n) === ot)
|
|
26788
26793
|
return;
|
|
26789
26794
|
}
|
|
26790
26795
|
};
|
|
@@ -26834,7 +26839,7 @@ m.include = function(n, e) {
|
|
|
26834
26839
|
var i = !1;
|
|
26835
26840
|
return n === null ? i : ls && n.indexOf === ls ? n.indexOf(e) != -1 : (m.each(n, function(t) {
|
|
26836
26841
|
if (i || (i = t === e))
|
|
26837
|
-
return
|
|
26842
|
+
return ot;
|
|
26838
26843
|
}), i);
|
|
26839
26844
|
};
|
|
26840
26845
|
m.includes = function(n, e) {
|
|
@@ -27221,7 +27226,7 @@ var et = null, _i = function(n, e) {
|
|
|
27221
27226
|
var i = !0;
|
|
27222
27227
|
try {
|
|
27223
27228
|
n = n || window.localStorage;
|
|
27224
|
-
var t = "__mplss_" +
|
|
27229
|
+
var t = "__mplss_" + ut(8), s = "xyz";
|
|
27225
27230
|
n.setItem(t, s), n.getItem(t) !== s && (i = !1), n.removeItem(t);
|
|
27226
27231
|
} catch {
|
|
27227
27232
|
i = !1;
|
|
@@ -27485,7 +27490,7 @@ m.info = {
|
|
|
27485
27490
|
$screen_width: wi.width,
|
|
27486
27491
|
mp_lib: "web",
|
|
27487
27492
|
$lib_version: Xe.LIB_VERSION,
|
|
27488
|
-
$insert_id:
|
|
27493
|
+
$insert_id: ut(),
|
|
27489
27494
|
time: m.timestamp() / 1e3
|
|
27490
27495
|
// epoch time in seconds
|
|
27491
27496
|
}, m.strip_empty_properties(n));
|
|
@@ -27508,7 +27513,7 @@ m.info = {
|
|
|
27508
27513
|
});
|
|
27509
27514
|
}
|
|
27510
27515
|
};
|
|
27511
|
-
var
|
|
27516
|
+
var ut = function(n) {
|
|
27512
27517
|
var e = Math.random().toString(36).substring(2, 10) + Math.random().toString(36).substring(2, 10);
|
|
27513
27518
|
return n ? e.substring(0, n) : e;
|
|
27514
27519
|
}, ad = /[a-z0-9][a-z0-9-]*\.[a-z]+$/i, rd = /[a-z0-9][a-z0-9-]+\.[a-z.]{2,6}$/i, cs = function(n) {
|
|
@@ -27551,35 +27556,35 @@ function $s(n, e) {
|
|
|
27551
27556
|
return i && J.warn("You are opted out of Mixpanel tracking. This will prevent the Mixpanel SDK from sending any data."), i;
|
|
27552
27557
|
}
|
|
27553
27558
|
function cn(n) {
|
|
27554
|
-
return
|
|
27559
|
+
return mt(n, function(e) {
|
|
27555
27560
|
return this.get_config(e);
|
|
27556
27561
|
});
|
|
27557
27562
|
}
|
|
27558
27563
|
function hn(n) {
|
|
27559
|
-
return
|
|
27564
|
+
return mt(n, function(e) {
|
|
27560
27565
|
return this._get_config(e);
|
|
27561
27566
|
});
|
|
27562
27567
|
}
|
|
27563
27568
|
function Hn(n) {
|
|
27564
|
-
return
|
|
27569
|
+
return mt(n, function(e) {
|
|
27565
27570
|
return this._get_config(e);
|
|
27566
27571
|
});
|
|
27567
27572
|
}
|
|
27568
27573
|
function md(n, e) {
|
|
27569
|
-
e = e || {},
|
|
27570
|
-
|
|
27574
|
+
e = e || {}, ct(e).remove(
|
|
27575
|
+
ht(n, e),
|
|
27571
27576
|
!!e.crossSubdomainCookie,
|
|
27572
27577
|
e.cookieDomain
|
|
27573
27578
|
);
|
|
27574
27579
|
}
|
|
27575
|
-
function
|
|
27580
|
+
function ct(n) {
|
|
27576
27581
|
return n = n || {}, n.persistenceType === "localStorage" ? m.localStorage : m.cookie;
|
|
27577
27582
|
}
|
|
27578
|
-
function
|
|
27583
|
+
function ht(n, e) {
|
|
27579
27584
|
return e = e || {}, (e.persistencePrefix || dd) + n;
|
|
27580
27585
|
}
|
|
27581
27586
|
function Ys(n, e) {
|
|
27582
|
-
return
|
|
27587
|
+
return ct(e).get(ht(n, e));
|
|
27583
27588
|
}
|
|
27584
27589
|
function vd(n) {
|
|
27585
27590
|
if (n && n.ignoreDnt)
|
|
@@ -27599,8 +27604,8 @@ function Qs(n, e, i) {
|
|
|
27599
27604
|
J.error("gdpr." + (n ? "optIn" : "optOut") + " called with an invalid token");
|
|
27600
27605
|
return;
|
|
27601
27606
|
}
|
|
27602
|
-
i = i || {},
|
|
27603
|
-
|
|
27607
|
+
i = i || {}, ct(i).set(
|
|
27608
|
+
ht(e, i),
|
|
27604
27609
|
n ? 1 : 0,
|
|
27605
27610
|
m.isNumber(i.cookieExpiration) ? i.cookieExpiration : null,
|
|
27606
27611
|
!!i.crossSubdomainCookie,
|
|
@@ -27611,7 +27616,7 @@ function Qs(n, e, i) {
|
|
|
27611
27616
|
send_immediately: !0
|
|
27612
27617
|
});
|
|
27613
27618
|
}
|
|
27614
|
-
function
|
|
27619
|
+
function mt(n, e) {
|
|
27615
27620
|
return function() {
|
|
27616
27621
|
var i = !1;
|
|
27617
27622
|
try {
|
|
@@ -27701,7 +27706,7 @@ var hs = Bi("batch"), mn = function(n, e) {
|
|
|
27701
27706
|
};
|
|
27702
27707
|
mn.prototype.enqueue = function(n, e, i) {
|
|
27703
27708
|
var t = {
|
|
27704
|
-
id:
|
|
27709
|
+
id: ut(),
|
|
27705
27710
|
flushAfter: (/* @__PURE__ */ new Date()).getTime() + e * 2,
|
|
27706
27711
|
payload: n
|
|
27707
27712
|
};
|
|
@@ -28361,14 +28366,14 @@ O.prototype.track_charge = O.prototype.track_charge;
|
|
|
28361
28366
|
O.prototype.clear_charges = O.prototype.clear_charges;
|
|
28362
28367
|
O.prototype.delete_user = O.prototype.delete_user;
|
|
28363
28368
|
O.prototype.toString = O.prototype.toString;
|
|
28364
|
-
var
|
|
28365
|
-
mt,
|
|
28369
|
+
var vt = "__mps", bt = "__mpso", pt = "__mpus", ft = "__mpa", gt = "__mpap", yt = "__mpr", Ct = "__mpu", no = "$people_distinct_id", Li = "__alias", Jn = "__timers", Sd = [
|
|
28366
28370
|
vt,
|
|
28367
28371
|
bt,
|
|
28368
28372
|
pt,
|
|
28369
28373
|
ft,
|
|
28370
28374
|
gt,
|
|
28371
28375
|
yt,
|
|
28376
|
+
Ct,
|
|
28372
28377
|
no,
|
|
28373
28378
|
Li,
|
|
28374
28379
|
Jn
|
|
@@ -28462,19 +28467,19 @@ V.prototype.set_secure = function(n) {
|
|
|
28462
28467
|
};
|
|
28463
28468
|
V.prototype._add_to_people_queue = function(n, e) {
|
|
28464
28469
|
var i = this._get_queue_key(n), t = e[n], s = this._get_or_create_queue(un), o = this._get_or_create_queue(Dn), r = this._get_or_create_queue(Re), l = this._get_or_create_queue(wn), u = this._get_or_create_queue(_n), b = this._get_or_create_queue(en, []), v = this._get_or_create_queue(Ge, []);
|
|
28465
|
-
i ===
|
|
28470
|
+
i === vt ? (m.extend(s, t), this._pop_from_people_queue(wn, t), this._pop_from_people_queue(_n, t), this._pop_from_people_queue(Re, t)) : i === bt ? (m.each(t, function(g, f) {
|
|
28466
28471
|
f in o || (o[f] = g);
|
|
28467
|
-
}), this._pop_from_people_queue(Re, t)) : i ===
|
|
28472
|
+
}), this._pop_from_people_queue(Re, t)) : i === pt ? m.each(t, function(g) {
|
|
28468
28473
|
m.each([s, o, l, u], function(f) {
|
|
28469
28474
|
g in f && delete f[g];
|
|
28470
28475
|
}), m.each(v, function(f) {
|
|
28471
28476
|
g in f && delete f[g];
|
|
28472
28477
|
}), r[g] = !0;
|
|
28473
|
-
}) : i ===
|
|
28478
|
+
}) : i === ft ? (m.each(t, function(g, f) {
|
|
28474
28479
|
f in s ? s[f] += g : (f in l || (l[f] = 0), l[f] += g);
|
|
28475
|
-
}, this), this._pop_from_people_queue(Re, t)) : i ===
|
|
28480
|
+
}, this), this._pop_from_people_queue(Re, t)) : i === Ct ? (m.each(t, function(g, f) {
|
|
28476
28481
|
m.isArray(g) && (f in u || (u[f] = []), u[f] = u[f].concat(g));
|
|
28477
|
-
}), this._pop_from_people_queue(Re, t)) : i ===
|
|
28482
|
+
}), this._pop_from_people_queue(Re, t)) : i === yt ? (b.push(t), this._pop_from_people_queue(Ge, t)) : i === gt && (v.push(t), this._pop_from_people_queue(Re, t)), J.log("MIXPANEL PEOPLE REQUEST (QUEUED, PENDING IDENTIFY):"), J.log(e), this.save();
|
|
28478
28483
|
};
|
|
28479
28484
|
V.prototype._pop_from_people_queue = function(n, e) {
|
|
28480
28485
|
var i = this.props[this._get_queue_key(n)];
|
|
@@ -28489,19 +28494,19 @@ V.prototype.load_queue = function(n) {
|
|
|
28489
28494
|
};
|
|
28490
28495
|
V.prototype._get_queue_key = function(n) {
|
|
28491
28496
|
if (n === un)
|
|
28492
|
-
return mt;
|
|
28493
|
-
if (n === Dn)
|
|
28494
28497
|
return vt;
|
|
28495
|
-
if (n ===
|
|
28498
|
+
if (n === Dn)
|
|
28496
28499
|
return bt;
|
|
28497
|
-
if (n ===
|
|
28500
|
+
if (n === Re)
|
|
28498
28501
|
return pt;
|
|
28499
|
-
if (n ===
|
|
28502
|
+
if (n === wn)
|
|
28500
28503
|
return ft;
|
|
28501
|
-
if (n ===
|
|
28504
|
+
if (n === Ge)
|
|
28502
28505
|
return gt;
|
|
28503
|
-
if (n ===
|
|
28506
|
+
if (n === en)
|
|
28504
28507
|
return yt;
|
|
28508
|
+
if (n === _n)
|
|
28509
|
+
return Ct;
|
|
28505
28510
|
J.error("Invalid queue:", n);
|
|
28506
28511
|
};
|
|
28507
28512
|
V.prototype._get_or_create_queue = function(n, e) {
|
|
@@ -28516,12 +28521,12 @@ V.prototype.remove_event_timer = function(n) {
|
|
|
28516
28521
|
var e = this.load_prop(Jn) || {}, i = e[n];
|
|
28517
28522
|
return m.isUndefined(i) || (delete this.props[Jn][n], this.save()), i;
|
|
28518
28523
|
};
|
|
28519
|
-
var
|
|
28524
|
+
var St, io = function(n, e) {
|
|
28520
28525
|
throw new Error(n + " not available in this build.");
|
|
28521
28526
|
}, Se, to = 0, kd = 1, wd = function(n) {
|
|
28522
28527
|
return n;
|
|
28523
28528
|
}, $n = function() {
|
|
28524
|
-
}, Ne = "mixpanel", so = "base64", _d = "json",
|
|
28529
|
+
}, Ne = "mixpanel", so = "base64", _d = "json", kt = "$device:", In = D.XMLHttpRequest && "withCredentials" in new XMLHttpRequest(), oo = !In && Ve.indexOf("MSIE") === -1 && Ve.indexOf("Mozilla") === -1, Ti = null;
|
|
28525
28530
|
ln.sendBeacon && (Ti = function() {
|
|
28526
28531
|
return ln.sendBeacon.apply(ln, arguments);
|
|
28527
28532
|
});
|
|
@@ -28591,9 +28596,9 @@ var ao = {
|
|
|
28591
28596
|
record_sessions_percent: 0,
|
|
28592
28597
|
recorder_src: "https://cdn.mxpnl.com/libs/mixpanel-recorder.min.js"
|
|
28593
28598
|
}, ro = !1, L = function() {
|
|
28594
|
-
},
|
|
28599
|
+
}, at = function(n, e, i) {
|
|
28595
28600
|
var t, s = i === Ne ? Se : Se[i];
|
|
28596
|
-
if (s &&
|
|
28601
|
+
if (s && St === to)
|
|
28597
28602
|
t = s;
|
|
28598
28603
|
else {
|
|
28599
28604
|
if (s && !m.isArray(s)) {
|
|
@@ -28619,7 +28624,7 @@ L.prototype.init = function(n, e, i) {
|
|
|
28619
28624
|
this.report_error("You must initialize the main mixpanel object right after you include the Mixpanel js snippet");
|
|
28620
28625
|
return;
|
|
28621
28626
|
}
|
|
28622
|
-
var t =
|
|
28627
|
+
var t = at(n, e, i);
|
|
28623
28628
|
return Se[i] = t, t._loaded(), t;
|
|
28624
28629
|
};
|
|
28625
28630
|
L.prototype._init = function(n, e, i) {
|
|
@@ -28655,7 +28660,7 @@ L.prototype._init = function(n, e, i) {
|
|
|
28655
28660
|
this.persistence = this.cookie = new V(this.config), this.unpersisted_superprops = {}, this._gdpr_init();
|
|
28656
28661
|
var r = m.UUID();
|
|
28657
28662
|
this.get_distinct_id() || this.register_once({
|
|
28658
|
-
distinct_id:
|
|
28663
|
+
distinct_id: kt + r,
|
|
28659
28664
|
$device_id: r
|
|
28660
28665
|
}, "");
|
|
28661
28666
|
var l = this.get_config("track_pageview");
|
|
@@ -29027,22 +29032,22 @@ L.prototype.time_event = function(n) {
|
|
|
29027
29032
|
};
|
|
29028
29033
|
var Ad = {
|
|
29029
29034
|
persistent: !0
|
|
29030
|
-
},
|
|
29035
|
+
}, wt = function(n) {
|
|
29031
29036
|
var e;
|
|
29032
29037
|
return m.isObject(n) ? e = n : m.isUndefined(n) ? e = {} : e = { days: n }, m.extend({}, Ad, e);
|
|
29033
29038
|
};
|
|
29034
29039
|
L.prototype.register = function(n, e) {
|
|
29035
|
-
var i =
|
|
29040
|
+
var i = wt(e);
|
|
29036
29041
|
i.persistent ? this.persistence.register(n, i.days) : m.extend(this.unpersisted_superprops, n);
|
|
29037
29042
|
};
|
|
29038
29043
|
L.prototype.register_once = function(n, e, i) {
|
|
29039
|
-
var t =
|
|
29044
|
+
var t = wt(i);
|
|
29040
29045
|
t.persistent ? this.persistence.register_once(n, e, t.days) : (typeof e > "u" && (e = "None"), m.each(n, function(s, o) {
|
|
29041
29046
|
(!this.unpersisted_superprops.hasOwnProperty(o) || this.unpersisted_superprops[o] === e) && (this.unpersisted_superprops[o] = s);
|
|
29042
29047
|
}, this));
|
|
29043
29048
|
};
|
|
29044
29049
|
L.prototype.unregister = function(n, e) {
|
|
29045
|
-
e =
|
|
29050
|
+
e = wt(e), e.persistent ? this.persistence.unregister(n) : delete this.unpersisted_superprops[n];
|
|
29046
29051
|
};
|
|
29047
29052
|
L.prototype._register_single = function(n, e) {
|
|
29048
29053
|
var i = {};
|
|
@@ -29051,7 +29056,7 @@ L.prototype._register_single = function(n, e) {
|
|
|
29051
29056
|
L.prototype.identify = function(n, e, i, t, s, o, r, l) {
|
|
29052
29057
|
var u = this.get_distinct_id();
|
|
29053
29058
|
if (n && u !== n) {
|
|
29054
|
-
if (typeof n == "string" && n.indexOf(
|
|
29059
|
+
if (typeof n == "string" && n.indexOf(kt) === 0)
|
|
29055
29060
|
return this.report_error("distinct_id cannot have $device: prefix"), -1;
|
|
29056
29061
|
this.register({ $user_id: n });
|
|
29057
29062
|
}
|
|
@@ -29071,7 +29076,7 @@ L.prototype.reset = function() {
|
|
|
29071
29076
|
this.persistence.clear(), this._flags.identify_called = !1;
|
|
29072
29077
|
var n = m.UUID();
|
|
29073
29078
|
this.register_once({
|
|
29074
|
-
distinct_id:
|
|
29079
|
+
distinct_id: kt + n,
|
|
29075
29080
|
$device_id: n
|
|
29076
29081
|
}, "");
|
|
29077
29082
|
};
|
|
@@ -29241,9 +29246,9 @@ var Nn = {}, Md = function() {
|
|
|
29241
29246
|
}, Ld = function() {
|
|
29242
29247
|
Se.init = function(n, e, i) {
|
|
29243
29248
|
if (i)
|
|
29244
|
-
return Se[i] || (Se[i] = Nn[i] =
|
|
29249
|
+
return Se[i] || (Se[i] = Nn[i] = at(n, e, i), Se[i]._loaded()), Se[i];
|
|
29245
29250
|
var t = Se;
|
|
29246
|
-
Nn[Ne] ? t = Nn[Ne] : n && (t =
|
|
29251
|
+
Nn[Ne] ? t = Nn[Ne] : n && (t = at(n, e, Ne), t._loaded(), Nn[Ne] = t), Se = t, St === kd && (D[Ne] = Se), Md();
|
|
29247
29252
|
};
|
|
29248
29253
|
}, Td = function() {
|
|
29249
29254
|
function n() {
|
|
@@ -29274,7 +29279,7 @@ var Nn = {}, Md = function() {
|
|
|
29274
29279
|
m.register_event(D, "load", n, !0);
|
|
29275
29280
|
};
|
|
29276
29281
|
function Ed(n) {
|
|
29277
|
-
return io = n,
|
|
29282
|
+
return io = n, St = to, Se = new L(), Ld(), Se.init(), Td(), Se;
|
|
29278
29283
|
}
|
|
29279
29284
|
function xd(n, e) {
|
|
29280
29285
|
e();
|
|
@@ -29786,7 +29791,8 @@ class Pd {
|
|
|
29786
29791
|
this.cardDetailForm = new Wt({
|
|
29787
29792
|
container: this.contents,
|
|
29788
29793
|
onAction: (r) => (l) => this.submitCardDetails.bind(this)(r, l),
|
|
29789
|
-
merchantName: this.merchantPlanDetail.merchantName
|
|
29794
|
+
merchantName: this.merchantPlanDetail.merchantName,
|
|
29795
|
+
currency: this.localCurrency ? this.localCurrency : this.currency
|
|
29790
29796
|
}), this.cardDetailForm.renderContent();
|
|
29791
29797
|
break;
|
|
29792
29798
|
case 2:
|
|
@@ -29866,7 +29872,8 @@ class Pd {
|
|
|
29866
29872
|
this.cardDetailForm = new Wt({
|
|
29867
29873
|
container: this.contents,
|
|
29868
29874
|
onAction: (r) => (l) => this.submitCardDetails.bind(this)(r, l),
|
|
29869
|
-
merchantName: this.merchantPlanDetail.merchantName
|
|
29875
|
+
merchantName: this.merchantPlanDetail.merchantName,
|
|
29876
|
+
currency: this.localCurrency ? this.localCurrency : this.currency
|
|
29870
29877
|
}), this.cardDetailForm.renderContent();
|
|
29871
29878
|
break;
|
|
29872
29879
|
}
|
|
@@ -30576,7 +30583,7 @@ var co = { exports: {} };
|
|
|
30576
30583
|
a.push([p, d]);
|
|
30577
30584
|
}), a;
|
|
30578
30585
|
}
|
|
30579
|
-
function
|
|
30586
|
+
function At(c, a) {
|
|
30580
30587
|
for (var d = 0; d < c.length; d++)
|
|
30581
30588
|
if (a(c[d], d, c))
|
|
30582
30589
|
return !0;
|
|
@@ -30914,26 +30921,26 @@ var co = { exports: {} };
|
|
|
30914
30921
|
getSocket: function(c) {
|
|
30915
30922
|
return H.createWebSocket(c);
|
|
30916
30923
|
}
|
|
30917
|
-
}),
|
|
30924
|
+
}), Mt = {
|
|
30918
30925
|
urls: Lo,
|
|
30919
30926
|
handlesActivityChecks: !1,
|
|
30920
30927
|
supportsPing: !0,
|
|
30921
30928
|
isInitialized: function() {
|
|
30922
30929
|
return !0;
|
|
30923
30930
|
}
|
|
30924
|
-
},
|
|
30931
|
+
}, Lt = ve({
|
|
30925
30932
|
getSocket: function(c) {
|
|
30926
30933
|
return H.HTTPFactory.createStreamingSocket(c);
|
|
30927
30934
|
}
|
|
30928
|
-
},
|
|
30935
|
+
}, Mt), Tt = ve({
|
|
30929
30936
|
getSocket: function(c) {
|
|
30930
30937
|
return H.HTTPFactory.createPollingSocket(c);
|
|
30931
30938
|
}
|
|
30932
|
-
},
|
|
30939
|
+
}, Mt), Et = {
|
|
30933
30940
|
isSupported: function() {
|
|
30934
30941
|
return H.isXHRSupported();
|
|
30935
30942
|
}
|
|
30936
|
-
}, No = new Mn(ve({},
|
|
30943
|
+
}, No = new Mn(ve({}, Lt, Et)), Io = new Mn(ve({}, Tt, Et)), Bo = {
|
|
30937
30944
|
ws: Po,
|
|
30938
30945
|
xhr_streaming: No,
|
|
30939
30946
|
xhr_polling: Io
|
|
@@ -30961,12 +30968,12 @@ var co = { exports: {} };
|
|
|
30961
30968
|
path: a
|
|
30962
30969
|
}));
|
|
30963
30970
|
}
|
|
30964
|
-
}),
|
|
30971
|
+
}), xt = {
|
|
30965
30972
|
isSupported: function(c) {
|
|
30966
30973
|
var a = H.isXDRSupported(c.useTLS);
|
|
30967
30974
|
return a;
|
|
30968
30975
|
}
|
|
30969
|
-
}, Do = new Mn(ve({},
|
|
30976
|
+
}, Do = new Mn(ve({}, Lt, xt)), Oo = new Mn(ve({}, Tt, xt));
|
|
30970
30977
|
ii.xdr_streaming = Do, ii.xdr_polling = Oo, ii.sockjs = Ro;
|
|
30971
30978
|
var Ho = ii;
|
|
30972
30979
|
class Uo extends Je {
|
|
@@ -31008,7 +31015,7 @@ var co = { exports: {} };
|
|
|
31008
31015
|
return this.manager.isAlive() && this.transport.isSupported(a);
|
|
31009
31016
|
}
|
|
31010
31017
|
}
|
|
31011
|
-
const
|
|
31018
|
+
const Pt = {
|
|
31012
31019
|
decodeMessage: function(c) {
|
|
31013
31020
|
try {
|
|
31014
31021
|
var a = JSON.parse(c.data), d = a.data;
|
|
@@ -31031,7 +31038,7 @@ var co = { exports: {} };
|
|
|
31031
31038
|
return JSON.stringify(c);
|
|
31032
31039
|
},
|
|
31033
31040
|
processHandshake: function(c) {
|
|
31034
|
-
var a =
|
|
31041
|
+
var a = Pt.decodeMessage(c);
|
|
31035
31042
|
if (a.event === "pusher:connection_established") {
|
|
31036
31043
|
if (!a.data.activity_timeout)
|
|
31037
31044
|
throw "No activity timeout specified in handshake";
|
|
@@ -31062,7 +31069,7 @@ var co = { exports: {} };
|
|
|
31062
31069
|
} : null;
|
|
31063
31070
|
}
|
|
31064
31071
|
};
|
|
31065
|
-
var pn =
|
|
31072
|
+
var pn = Pt;
|
|
31066
31073
|
class Vo extends Je {
|
|
31067
31074
|
constructor(a, d) {
|
|
31068
31075
|
super(), this.id = a, this.transport = d, this.activityTimeout = d.activityTimeout, this.bindListeners();
|
|
@@ -31662,7 +31669,7 @@ var co = { exports: {} };
|
|
|
31662
31669
|
return new jo(c, a, d);
|
|
31663
31670
|
}
|
|
31664
31671
|
}, $e = Xo;
|
|
31665
|
-
class
|
|
31672
|
+
class Nt {
|
|
31666
31673
|
constructor(a) {
|
|
31667
31674
|
this.options = a || {}, this.livesLeft = this.options.lives || 1 / 0;
|
|
31668
31675
|
}
|
|
@@ -31684,7 +31691,7 @@ var co = { exports: {} };
|
|
|
31684
31691
|
this.strategies = a, this.loop = !!d.loop, this.failFast = !!d.failFast, this.timeout = d.timeout, this.timeoutLimit = d.timeoutLimit;
|
|
31685
31692
|
}
|
|
31686
31693
|
isSupported() {
|
|
31687
|
-
return
|
|
31694
|
+
return At(this.strategies, ae.method("isSupported"));
|
|
31688
31695
|
}
|
|
31689
31696
|
connect(a, d) {
|
|
31690
31697
|
var p = this.strategies, S = 0, T = this.timeout, E = null, I = (R, Z) => {
|
|
@@ -31720,7 +31727,7 @@ var co = { exports: {} };
|
|
|
31720
31727
|
this.strategies = a;
|
|
31721
31728
|
}
|
|
31722
31729
|
isSupported() {
|
|
31723
|
-
return
|
|
31730
|
+
return At(this.strategies, ae.method("isSupported"));
|
|
31724
31731
|
}
|
|
31725
31732
|
connect(a, d) {
|
|
31726
31733
|
return ea(this.strategies, a, function(p, S) {
|
|
@@ -31780,7 +31787,7 @@ var co = { exports: {} };
|
|
|
31780
31787
|
}))) : T++);
|
|
31781
31788
|
}
|
|
31782
31789
|
var R = ae.now(), Z = E.pop().connect(a, function Y(ue, oi) {
|
|
31783
|
-
ue ? (
|
|
31790
|
+
ue ? (It(p), E.length > 0 ? (R = ae.now(), Z = E.pop().connect(a, Y)) : d(ue)) : (oa(p, oi.transport.name, ae.now() - R, T), d(null, oi));
|
|
31784
31791
|
});
|
|
31785
31792
|
return {
|
|
31786
31793
|
abort: function() {
|
|
@@ -31803,7 +31810,7 @@ var co = { exports: {} };
|
|
|
31803
31810
|
if (d)
|
|
31804
31811
|
return JSON.parse(d);
|
|
31805
31812
|
} catch {
|
|
31806
|
-
|
|
31813
|
+
It(c);
|
|
31807
31814
|
}
|
|
31808
31815
|
return null;
|
|
31809
31816
|
}
|
|
@@ -31820,7 +31827,7 @@ var co = { exports: {} };
|
|
|
31820
31827
|
} catch {
|
|
31821
31828
|
}
|
|
31822
31829
|
}
|
|
31823
|
-
function
|
|
31830
|
+
function It(c) {
|
|
31824
31831
|
var a = H.getLocalStorage();
|
|
31825
31832
|
if (a)
|
|
31826
31833
|
try {
|
|
@@ -31883,9 +31890,9 @@ var co = { exports: {} };
|
|
|
31883
31890
|
}
|
|
31884
31891
|
var ra = function(c, a, d) {
|
|
31885
31892
|
var p = {};
|
|
31886
|
-
function S(
|
|
31887
|
-
var
|
|
31888
|
-
return p[
|
|
31893
|
+
function S(Ft, ar, rr, lr, dr) {
|
|
31894
|
+
var qt = d(c, Ft, ar, rr, lr, dr);
|
|
31895
|
+
return p[Ft] = qt, qt;
|
|
31889
31896
|
}
|
|
31890
31897
|
var T = Object.assign({}, a, {
|
|
31891
31898
|
hostNonTLS: c.wsHost + ":" + c.wsPort,
|
|
@@ -31901,28 +31908,28 @@ var co = { exports: {} };
|
|
|
31901
31908
|
loop: !0,
|
|
31902
31909
|
timeout: 15e3,
|
|
31903
31910
|
timeoutLimit: 6e4
|
|
31904
|
-
}, Z = new
|
|
31911
|
+
}, Z = new Nt({
|
|
31905
31912
|
minPingDelay: 1e4,
|
|
31906
31913
|
maxPingDelay: c.activityTimeout
|
|
31907
|
-
}), Y = new
|
|
31914
|
+
}), Y = new Nt({
|
|
31908
31915
|
lives: 2,
|
|
31909
31916
|
minPingDelay: 1e4,
|
|
31910
31917
|
maxPingDelay: c.activityTimeout
|
|
31911
|
-
}), ue = S("ws", "ws", 3, T, Z), oi = S("wss", "ws", 3, E, Z), nr = S("sockjs", "sockjs", 1, I),
|
|
31912
|
-
new Kn(jn(
|
|
31913
|
-
], R), jt = new fn([
|
|
31914
|
-
new Kn(jn(Ht), Ht, tr)
|
|
31918
|
+
}), ue = S("ws", "ws", 3, T, Z), oi = S("wss", "ws", 3, E, Z), nr = S("sockjs", "sockjs", 1, I), Ht = S("xhr_streaming", "xhr_streaming", 1, I, Y), ir = S("xdr_streaming", "xdr_streaming", 1, I, Y), Ut = S("xhr_polling", "xhr_polling", 1, I), tr = S("xdr_polling", "xdr_polling", 1, I), Kt = new fn([ue], R), sr = new fn([oi], R), or = new fn([nr], R), jt = new fn([
|
|
31919
|
+
new Kn(jn(Ht), Ht, ir)
|
|
31915
31920
|
], R), Vt = new fn([
|
|
31916
|
-
new Kn(jn(
|
|
31917
|
-
|
|
31918
|
-
|
|
31919
|
-
|
|
31920
|
-
|
|
31921
|
+
new Kn(jn(Ut), Ut, tr)
|
|
31922
|
+
], R), Gt = new fn([
|
|
31923
|
+
new Kn(jn(jt), new Vi([
|
|
31924
|
+
jt,
|
|
31925
|
+
new ti(Vt, { delay: 4e3 })
|
|
31926
|
+
]), Vt)
|
|
31927
|
+
], R), Wi = new Kn(jn(Gt), Gt, or), Zi;
|
|
31921
31928
|
return a.useTLS ? Zi = new Vi([
|
|
31922
|
-
|
|
31929
|
+
Kt,
|
|
31923
31930
|
new ti(Wi, { delay: 2e3 })
|
|
31924
31931
|
]) : Zi = new Vi([
|
|
31925
|
-
|
|
31932
|
+
Kt,
|
|
31926
31933
|
new ti(sr, { delay: 2e3 }),
|
|
31927
31934
|
new ti(Wi, { delay: 5e3 })
|
|
31928
31935
|
]), new ta(new aa(new Kn(jn(ue), Zi, Wi)), p, {
|
|
@@ -31993,7 +32000,7 @@ var co = { exports: {} };
|
|
|
31993
32000
|
var gn = Fi, va = 1;
|
|
31994
32001
|
class ba {
|
|
31995
32002
|
constructor(a, d) {
|
|
31996
|
-
this.hooks = a, this.session =
|
|
32003
|
+
this.hooks = a, this.session = Rt(1e3) + "/" + ya(8), this.location = pa(d), this.readyState = gn.CONNECTING, this.openStream();
|
|
31997
32004
|
}
|
|
31998
32005
|
send(a) {
|
|
31999
32006
|
return this.sendRaw(JSON.stringify([a]));
|
|
@@ -32007,7 +32014,7 @@ var co = { exports: {} };
|
|
|
32007
32014
|
sendRaw(a) {
|
|
32008
32015
|
if (this.readyState === gn.OPEN)
|
|
32009
32016
|
try {
|
|
32010
|
-
return H.createSocketRequest("POST",
|
|
32017
|
+
return H.createSocketRequest("POST", Bt(fa(this.location, this.session))).start(a), !0;
|
|
32011
32018
|
} catch {
|
|
32012
32019
|
return !1;
|
|
32013
32020
|
}
|
|
@@ -32062,7 +32069,7 @@ var co = { exports: {} };
|
|
|
32062
32069
|
this.onerror && this.onerror(a);
|
|
32063
32070
|
}
|
|
32064
32071
|
openStream() {
|
|
32065
|
-
this.stream = H.createSocketRequest("POST",
|
|
32072
|
+
this.stream = H.createSocketRequest("POST", Bt(this.hooks.getReceiveURL(this.location, this.session))), this.stream.bind("chunk", (a) => {
|
|
32066
32073
|
this.onChunk(a);
|
|
32067
32074
|
}), this.stream.bind("finished", (a) => {
|
|
32068
32075
|
this.hooks.onFinished(this, a);
|
|
@@ -32091,7 +32098,7 @@ var co = { exports: {} };
|
|
|
32091
32098
|
function fa(c, a) {
|
|
32092
32099
|
return c.base + "/" + a + "/xhr_send";
|
|
32093
32100
|
}
|
|
32094
|
-
function
|
|
32101
|
+
function Bt(c) {
|
|
32095
32102
|
var a = c.indexOf("?") === -1 ? "?" : "&";
|
|
32096
32103
|
return c + a + "t=" + +/* @__PURE__ */ new Date() + "&n=" + va++;
|
|
32097
32104
|
}
|
|
@@ -32099,12 +32106,12 @@ var co = { exports: {} };
|
|
|
32099
32106
|
var d = /(https?:\/\/)([^\/:]+)((\/|:)?.*)/.exec(c);
|
|
32100
32107
|
return d[1] + a + d[3];
|
|
32101
32108
|
}
|
|
32102
|
-
function
|
|
32109
|
+
function Rt(c) {
|
|
32103
32110
|
return H.randomInt(c);
|
|
32104
32111
|
}
|
|
32105
32112
|
function ya(c) {
|
|
32106
32113
|
for (var a = [], d = 0; d < c; d++)
|
|
32107
|
-
a.push(
|
|
32114
|
+
a.push(Rt(32).toString(32));
|
|
32108
32115
|
return a.join("");
|
|
32109
32116
|
}
|
|
32110
32117
|
var Ca = ba, Sa = {
|
|
@@ -32165,11 +32172,11 @@ var co = { exports: {} };
|
|
|
32165
32172
|
createRequest(c, a, d) {
|
|
32166
32173
|
return new ma(c, a, d);
|
|
32167
32174
|
}
|
|
32168
|
-
},
|
|
32169
|
-
|
|
32175
|
+
}, Dt = La;
|
|
32176
|
+
Dt.createXDR = function(c, a) {
|
|
32170
32177
|
return this.createRequest(ca, c, a);
|
|
32171
32178
|
};
|
|
32172
|
-
var Ta =
|
|
32179
|
+
var Ta = Dt, Ea = {
|
|
32173
32180
|
nextAuthCallbackID: 1,
|
|
32174
32181
|
auth_callbacks: {},
|
|
32175
32182
|
ScriptReceivers: r,
|
|
@@ -32317,8 +32324,8 @@ var co = { exports: {} };
|
|
|
32317
32324
|
connect(a, d) {
|
|
32318
32325
|
if (this.isSupported()) {
|
|
32319
32326
|
if (this.priority < a)
|
|
32320
|
-
return
|
|
32321
|
-
} else return
|
|
32327
|
+
return Ot(new _(), d);
|
|
32328
|
+
} else return Ot(new F(), d);
|
|
32322
32329
|
var p = !1, S = this.transport.createConnection(this.name, this.priority, this.options.key, this.options), T = null, E = function() {
|
|
32323
32330
|
S.unbind("initialized", E), S.connect();
|
|
32324
32331
|
}, I = function() {
|
|
@@ -32344,7 +32351,7 @@ var co = { exports: {} };
|
|
|
32344
32351
|
};
|
|
32345
32352
|
}
|
|
32346
32353
|
}
|
|
32347
|
-
function
|
|
32354
|
+
function Ot(c, a) {
|
|
32348
32355
|
return ae.defer(function() {
|
|
32349
32356
|
a(c);
|
|
32350
32357
|
}), {
|
|
@@ -33315,7 +33322,7 @@ class Qe extends Error {
|
|
|
33315
33322
|
super(e), this.name = "AuthorizationError";
|
|
33316
33323
|
}
|
|
33317
33324
|
}
|
|
33318
|
-
class
|
|
33325
|
+
class _t {
|
|
33319
33326
|
constructor(e) {
|
|
33320
33327
|
h(this, "token");
|
|
33321
33328
|
h(this, "baseurl", "https://api.spotflow.co/api/v1");
|
|
@@ -33331,7 +33338,7 @@ class wt {
|
|
|
33331
33338
|
this.token = e.token, this.rdtCode = e.rdtCode, this.url = e.url, this.headers = this.getHeaders(this.token, this.rdtCode);
|
|
33332
33339
|
}
|
|
33333
33340
|
}
|
|
33334
|
-
class ho extends
|
|
33341
|
+
class ho extends _t {
|
|
33335
33342
|
constructor(e) {
|
|
33336
33343
|
super(e);
|
|
33337
33344
|
}
|
|
@@ -33456,7 +33463,7 @@ class ho extends wt {
|
|
|
33456
33463
|
}
|
|
33457
33464
|
}
|
|
33458
33465
|
}
|
|
33459
|
-
class jd extends
|
|
33466
|
+
class jd extends _t {
|
|
33460
33467
|
constructor(e) {
|
|
33461
33468
|
super(e);
|
|
33462
33469
|
}
|
|
@@ -33484,7 +33491,7 @@ class jd extends wt {
|
|
|
33484
33491
|
}
|
|
33485
33492
|
}
|
|
33486
33493
|
}
|
|
33487
|
-
class Vd extends
|
|
33494
|
+
class Vd extends _t {
|
|
33488
33495
|
constructor(e) {
|
|
33489
33496
|
super(e);
|
|
33490
33497
|
}
|
|
@@ -34045,15 +34052,15 @@ const ui = (n) => {
|
|
|
34045
34052
|
|
|
34046
34053
|
<div
|
|
34047
34054
|
class="text-xs w-0 absolute transition-all duration-500 hidden rotate-45 left-0 top-5 z-30 text-[#98A2B3] hover:block bg-white p-3 rounded-lg lg:max-w-[20rem] translate-x-[-45%] min-w-[15rem] md:min-w-[18rem] shadow before:h-4 before:w-4 before:absolute before:-top-0 before:left-0 before:translate-x-[-45%] before:-translate-y-1 before:bg-white before:rotate-45 group-hover:rotate-0 hover:rotate-0 hover:opacity-100 group-hover:block group-hover:w-full hover:w-full">
|
|
34048
|
-
<p class="text-
|
|
34055
|
+
<p class="text-gray-700 font-medium text-xs">
|
|
34049
34056
|
What is this?
|
|
34050
34057
|
</p>
|
|
34051
|
-
<p class="text-xs">
|
|
34058
|
+
<p class="text-xs text-tone-100 font-normal">
|
|
34052
34059
|
This rate reflects the current exchange rate for
|
|
34053
34060
|
converting United States Dollars (USD) to <span id="tooltip-localCurrency"> Nigerian Naira
|
|
34054
|
-
(NGN) </span>. Please note that exchange rates are subject to
|
|
34061
|
+
(NGN) </span>. <span class="font-semibold">Please note that exchange rates are subject to
|
|
34055
34062
|
change and may vary slightly at the time of the
|
|
34056
|
-
transaction
|
|
34063
|
+
transaction.</span>
|
|
34057
34064
|
</p>
|
|
34058
34065
|
</div>
|
|
34059
34066
|
</div>
|
|
@@ -34534,7 +34541,7 @@ class su {
|
|
|
34534
34541
|
"#phone-number-error"
|
|
34535
34542
|
);
|
|
34536
34543
|
if (!e || !i || !t) return;
|
|
34537
|
-
const r = this.localCurrency ? this.localCurrency : this.currency, l =
|
|
34544
|
+
const r = this.localCurrency ? this.localCurrency : this.currency, l = nt.find((u) => u.name === r);
|
|
34538
34545
|
e.value.length > Number((l == null ? void 0 : l.length) || "9") ? (s && (s.classList.remove("border-tone-40"), s.classList.add("border-[#D62020]"), e.classList.remove("text-tone-100"), e.classList.add("text-[#D62020]")), o && (o.classList.remove("hidden"), o.classList.add("block"), o.innerHTML = "Please enter a valid Ghana Mobile Money number.")) : (s && (s.classList.remove("border-[#D62020]"), s.classList.add("border-tone-40"), e.classList.remove("text-[#D62020]"), e.classList.add("text-tone-100")), o && (o.classList.remove("block"), o.classList.add("hidden"))), e.value.length > 0 && e.value.length === Number((l == null ? void 0 : l.length) || "9") && i.value ? t.disabled = !1 : t.disabled = !0;
|
|
34539
34546
|
}
|
|
34540
34547
|
attachListener() {
|
|
@@ -34583,7 +34590,7 @@ class su {
|
|
|
34583
34590
|
i.appendChild(u), i.classList.remove("text-tone-50"), i.classList.add("text-tone-100");
|
|
34584
34591
|
});
|
|
34585
34592
|
}
|
|
34586
|
-
const t = this.container.querySelector("#region-code"), s = this.localCurrency ? this.localCurrency : this.currency, o =
|
|
34593
|
+
const t = this.container.querySelector("#region-code"), s = this.localCurrency ? this.localCurrency : this.currency, o = nt.find((r) => r.name === s);
|
|
34587
34594
|
if (t) {
|
|
34588
34595
|
t.innerHTML = `
|
|
34589
34596
|
${o == null ? void 0 : o.icon}
|
|
@@ -35781,7 +35788,7 @@ class mu {
|
|
|
35781
35788
|
<h5 id="error-message-div" class="text-tone-100 font-semibold text-2xl text-center mb-1">Transaction limit reached</h5>
|
|
35782
35789
|
<div class="w-4/5 mx-auto">
|
|
35783
35790
|
<p class="text-tone-100 text-sm text-center mb-5" id="error-desc">
|
|
35784
|
-
You're almost there! Please note we can only process
|
|
35791
|
+
You're almost there! Please note that we can only process transactions within a specific limit.
|
|
35785
35792
|
</p>
|
|
35786
35793
|
</div>
|
|
35787
35794
|
<div class="container-center hidden" id="error-action-container">
|