@spot-flow/checkout-inline-js 0.1.33-dev.2 → 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 +187 -164
- package/dist/checkout-inline.js +429 -423
- package/dist/data.d.ts +2 -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,11 +390,12 @@ const qt = [
|
|
|
390
390
|
</svg>
|
|
391
391
|
`
|
|
392
392
|
}
|
|
393
|
-
],
|
|
393
|
+
], nt = [
|
|
394
394
|
{
|
|
395
395
|
name: "GHS",
|
|
396
396
|
dialCode: "+233",
|
|
397
397
|
length: "9",
|
|
398
|
+
cardTypes: ["Visa", "MasterCard", "Gh-link"],
|
|
398
399
|
icon: `<svg xmlns="http://www.w3.org/2000/svg" id="flag-icons-gh" viewBox="0 0 512 512">
|
|
399
400
|
<path fill="#006b3f" d="M0 0h512v512H0z"/>
|
|
400
401
|
<path fill="#fcd116" d="M0 0h512v341.3H0z"/>
|
|
@@ -407,6 +408,7 @@ const qt = [
|
|
|
407
408
|
name: "KES",
|
|
408
409
|
dialCode: "+254",
|
|
409
410
|
length: "9",
|
|
411
|
+
cardTypes: ["Visa", "MasterCard"],
|
|
410
412
|
icon: `<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="flag-icons-ke" viewBox="0 0 512 512">
|
|
411
413
|
<defs>
|
|
412
414
|
<path id="ke-a" stroke-miterlimit="10" d="m-28.6 47.5 1.8 1 46.7-81c2.7-.6 4.2-3.2 5.7-5.8 1-1.8 5-8.7 6.7-17.7a58 58 0 0 0-11.9 14.7c-1.5 2.6-3 5.2-2.3 7.9z"/>
|
|
@@ -436,6 +438,7 @@ const qt = [
|
|
|
436
438
|
name: "ZAR",
|
|
437
439
|
dialCode: "+27",
|
|
438
440
|
length: "9",
|
|
441
|
+
cardTypes: ["Visa", "MasterCard", "American Express", "Diners Club"],
|
|
439
442
|
icon: `<svg xmlns="http://www.w3.org/2000/svg" id="flag-icons-za" viewBox="0 0 512 512">
|
|
440
443
|
<defs>
|
|
441
444
|
<clipPath id="za-a">
|
|
@@ -453,6 +456,19 @@ const qt = [
|
|
|
453
456
|
</g>
|
|
454
457
|
</g>
|
|
455
458
|
</svg>
|
|
459
|
+
`
|
|
460
|
+
},
|
|
461
|
+
{
|
|
462
|
+
name: "NGN",
|
|
463
|
+
dialCode: "+234",
|
|
464
|
+
length: "10",
|
|
465
|
+
cardTypes: ["Visa", "MasterCard", "Verve", "AfriGo"],
|
|
466
|
+
icon: `<svg xmlns="http://www.w3.org/2000/svg" id="flag-icons-ng" viewBox="0 0 512 512">
|
|
467
|
+
<g fill-rule="evenodd" stroke-width="1pt">
|
|
468
|
+
<path fill="#fff" d="M0 0h512v512H0z"/>
|
|
469
|
+
<path fill="#008753" d="M341.3 0H512v512H341.3zM0 0h170.7v512H0z"/>
|
|
470
|
+
</g>
|
|
471
|
+
</svg>
|
|
456
472
|
`
|
|
457
473
|
}
|
|
458
474
|
], Cr = `<div>
|
|
@@ -544,9 +560,10 @@ const qt = [
|
|
|
544
560
|
Visa: /^4/,
|
|
545
561
|
MasterCard: /^5[1-5]|^2(2[2-9]|[3-6]|7[01])/,
|
|
546
562
|
"American Express": /^3[47]/,
|
|
547
|
-
Discover: /^6(?:011|5
|
|
563
|
+
Discover: /^6(?:011|5[0-9]{2})[0-9]{12}$/,
|
|
548
564
|
UnionPay: /^62/,
|
|
549
|
-
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}$/
|
|
550
567
|
};
|
|
551
568
|
for (const [i, t] of Object.entries(e))
|
|
552
569
|
if (t.test(n))
|
|
@@ -558,7 +575,7 @@ const qt = [
|
|
|
558
575
|
"American Express": [15],
|
|
559
576
|
Discover: [16],
|
|
560
577
|
UnionPay: [16],
|
|
561
|
-
Verve: [16, 19]
|
|
578
|
+
Verve: [16, 17, 18, 19]
|
|
562
579
|
}, an = class an {
|
|
563
580
|
};
|
|
564
581
|
h(an, "createToast", (e, i) => {
|
|
@@ -600,11 +617,12 @@ class Wt {
|
|
|
600
617
|
h(this, "cardDetailsValues");
|
|
601
618
|
h(this, "creditCardTypes");
|
|
602
619
|
h(this, "merchantName");
|
|
603
|
-
this
|
|
620
|
+
h(this, "currency");
|
|
621
|
+
this.container = e.container, this.onAction = e.onAction, this.creditCardTypes = [...zt], this.cardDetailsValues = {
|
|
604
622
|
number: "",
|
|
605
623
|
expiry: "",
|
|
606
624
|
cvv: ""
|
|
607
|
-
}, this.merchantName = e.merchantName;
|
|
625
|
+
}, this.merchantName = e.merchantName, this.currency = e.currency;
|
|
608
626
|
}
|
|
609
627
|
attachListener() {
|
|
610
628
|
const e = document.querySelector("#pci-dss");
|
|
@@ -660,32 +678,35 @@ class Wt {
|
|
|
660
678
|
const v = r.replace(/\s+/g, ""), g = this.validateCreditCard(v);
|
|
661
679
|
this.filterCreditCardType(o);
|
|
662
680
|
const f = (l = this.creditCardTypes[0]) == null ? void 0 : l.name;
|
|
663
|
-
|
|
664
|
-
if (
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
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
|
+
});
|
|
689
710
|
} else if (s === "expiry") {
|
|
690
711
|
const v = /* @__PURE__ */ new Date();
|
|
691
712
|
r = Ar(o);
|
|
@@ -731,7 +752,7 @@ class Wt {
|
|
|
731
752
|
});
|
|
732
753
|
}
|
|
733
754
|
filterCreditCardType(e) {
|
|
734
|
-
e ? (this.creditCardTypes =
|
|
755
|
+
e ? (this.creditCardTypes = zt.filter(
|
|
735
756
|
(i) => i.name === Mr(e)
|
|
736
757
|
), this.displayCardTypes()) : (this.creditCardTypes = [], this.displayCardTypes());
|
|
737
758
|
}
|
|
@@ -23878,7 +23899,7 @@ class As {
|
|
|
23878
23899
|
function Wr() {
|
|
23879
23900
|
return new As();
|
|
23880
23901
|
}
|
|
23881
|
-
function
|
|
23902
|
+
function rt({ element: n, maskInputOptions: e, tagName: i, type: t, value: s, maskInputFn: o }) {
|
|
23882
23903
|
let r = s || "";
|
|
23883
23904
|
const l = t && kn(t);
|
|
23884
23905
|
return (e[i.toLowerCase()] || l && e[l]) && (o ? r = o(r, n) : r = "*".repeat(r.length)), r;
|
|
@@ -23900,7 +23921,7 @@ function Zr(n) {
|
|
|
23900
23921
|
}
|
|
23901
23922
|
return !0;
|
|
23902
23923
|
}
|
|
23903
|
-
function
|
|
23924
|
+
function lt(n) {
|
|
23904
23925
|
const e = n.type;
|
|
23905
23926
|
return n.hasAttribute("data-rr-is-password") ? "password" : e ? kn(e) : null;
|
|
23906
23927
|
}
|
|
@@ -23995,12 +24016,12 @@ function En(n, e) {
|
|
|
23995
24016
|
function al(n) {
|
|
23996
24017
|
return !!(n.tagName === "svg" || n.ownerSVGElement);
|
|
23997
24018
|
}
|
|
23998
|
-
function
|
|
24019
|
+
function dt() {
|
|
23999
24020
|
const n = document.createElement("a");
|
|
24000
24021
|
return n.href = "", n.href;
|
|
24001
24022
|
}
|
|
24002
24023
|
function Ts(n, e, i, t) {
|
|
24003
|
-
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);
|
|
24004
24025
|
}
|
|
24005
24026
|
function Es(n, e, i) {
|
|
24006
24027
|
return (n === "video" || n === "audio") && e === "autoplay";
|
|
@@ -24172,7 +24193,7 @@ function hl(n, e) {
|
|
|
24172
24193
|
} catch (v) {
|
|
24173
24194
|
console.warn(`Cannot get CSS styles from text's parentNode. Error: ${v}`, n);
|
|
24174
24195
|
}
|
|
24175
|
-
l = gi(l,
|
|
24196
|
+
l = gi(l, dt());
|
|
24176
24197
|
}
|
|
24177
24198
|
return b && (l = "SCRIPT_PLACEHOLDER"), !u && !b && l && t && (l = s ? s(l, n.parentElement) : l.replace(/[\S]/g, "*")), {
|
|
24178
24199
|
type: me.Text,
|
|
@@ -24196,13 +24217,13 @@ function ml(n, e) {
|
|
|
24196
24217
|
}
|
|
24197
24218
|
if (C === "style" && n.sheet && !(n.innerText || n.textContent || "").trim().length) {
|
|
24198
24219
|
const _ = fi(n.sheet);
|
|
24199
|
-
_ && (w._cssText = gi(_,
|
|
24220
|
+
_ && (w._cssText = gi(_, dt()));
|
|
24200
24221
|
}
|
|
24201
24222
|
if (C === "input" || C === "textarea" || C === "select") {
|
|
24202
24223
|
const _ = n.value, x = n.checked;
|
|
24203
|
-
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({
|
|
24204
24225
|
element: n,
|
|
24205
|
-
type:
|
|
24226
|
+
type: lt(n),
|
|
24206
24227
|
tagName: C,
|
|
24207
24228
|
value: _,
|
|
24208
24229
|
maskInputOptions: r,
|
|
@@ -24598,7 +24619,7 @@ function Rs(n, e) {
|
|
|
24598
24619
|
const i = e.getId(n);
|
|
24599
24620
|
return e.has(i) ? n.parentNode && n.parentNode.nodeType === n.DOCUMENT_NODE ? !1 : n.parentNode ? Rs(n.parentNode, e) : !0 : !0;
|
|
24600
24621
|
}
|
|
24601
|
-
function
|
|
24622
|
+
function it(n) {
|
|
24602
24623
|
return !!n.changedTouches;
|
|
24603
24624
|
}
|
|
24604
24625
|
function fl(n = window) {
|
|
@@ -24619,7 +24640,7 @@ function Ds(n, e) {
|
|
|
24619
24640
|
function Os(n, e) {
|
|
24620
24641
|
return !!(n.nodeName === "LINK" && n.nodeType === n.ELEMENT_NODE && n.getAttribute && n.getAttribute("rel") === "stylesheet" && e.getMeta(n));
|
|
24621
24642
|
}
|
|
24622
|
-
function
|
|
24643
|
+
function tt(n) {
|
|
24623
24644
|
return !!(n != null && n.shadowRoot);
|
|
24624
24645
|
}
|
|
24625
24646
|
class gl {
|
|
@@ -24745,7 +24766,7 @@ class kl {
|
|
|
24745
24766
|
recordCanvas: this.recordCanvas,
|
|
24746
24767
|
inlineImages: this.inlineImages,
|
|
24747
24768
|
onSerialize: (f) => {
|
|
24748
|
-
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);
|
|
24749
24770
|
},
|
|
24750
24771
|
onIframeLoad: (f, y) => {
|
|
24751
24772
|
this.iframeManager.attachIframe(f, y), this.shadowDomManager.observeAttachShadow(f);
|
|
@@ -24850,8 +24871,8 @@ class kl {
|
|
|
24850
24871
|
const i = e.target;
|
|
24851
24872
|
let t = e.attributeName, s = e.target.getAttribute(t);
|
|
24852
24873
|
if (t === "value") {
|
|
24853
|
-
const r =
|
|
24854
|
-
s =
|
|
24874
|
+
const r = lt(i);
|
|
24875
|
+
s = rt({
|
|
24855
24876
|
element: i,
|
|
24856
24877
|
maskInputOptions: this.maskInputOptions,
|
|
24857
24878
|
tagName: i.tagName,
|
|
@@ -24900,7 +24921,7 @@ class kl {
|
|
|
24900
24921
|
}
|
|
24901
24922
|
e.addedNodes.forEach((i) => this.genAdds(i, e.target)), e.removedNodes.forEach((i) => {
|
|
24902
24923
|
const t = this.mirror.getId(i), s = Vn(e.target) ? this.mirror.getId(e.target.host) : this.mirror.getId(e.target);
|
|
24903
|
-
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({
|
|
24904
24925
|
parentId: s,
|
|
24905
24926
|
id: t,
|
|
24906
24927
|
isShadow: Vn(e.target) && Gn(e.target) ? !0 : void 0
|
|
@@ -24919,7 +24940,7 @@ class kl {
|
|
|
24919
24940
|
i && this.mirror.hasNode(i) && (t = this.mirror.getId(i)), t && t !== -1 && (this.movedMap[Qt(this.mirror.getId(e), t)] = !0);
|
|
24920
24941
|
} else
|
|
24921
24942
|
this.addedSet.add(e), this.droppedSet.delete(e);
|
|
24922
|
-
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) => {
|
|
24923
24944
|
this.processedNodeManager.add(t, this), this.genAdds(t, e);
|
|
24924
24945
|
}));
|
|
24925
24946
|
}
|
|
@@ -24971,8 +24992,8 @@ class kl {
|
|
|
24971
24992
|
this.shadowDomManager.reset(), this.canvasManager.reset();
|
|
24972
24993
|
}
|
|
24973
24994
|
}
|
|
24974
|
-
function
|
|
24975
|
-
n.delete(e), e.childNodes.forEach((i) =>
|
|
24995
|
+
function st(n, e) {
|
|
24996
|
+
n.delete(e), e.childNodes.forEach((i) => st(n, i));
|
|
24976
24997
|
}
|
|
24977
24998
|
function Xt(n, e, i) {
|
|
24978
24999
|
return n.length === 0 ? !1 : Ks(n, e, i);
|
|
@@ -25046,7 +25067,7 @@ function Al({ mousemoveCb: n, sampling: e, doc: i, mirror: t }) {
|
|
|
25046
25067
|
const f = Date.now() - l;
|
|
25047
25068
|
n(r.map((y) => (y.timeOffset -= f, y)), g), r = [], l = null;
|
|
25048
25069
|
}), o), b = z(Zn(z((g) => {
|
|
25049
|
-
const f = Qn(g), { clientX: y, clientY: k } =
|
|
25070
|
+
const f = Qn(g), { clientX: y, clientY: k } = it(g) ? g.changedTouches[0] : g;
|
|
25050
25071
|
l || (l = Ci()), r.push({
|
|
25051
25072
|
x: y,
|
|
25052
25073
|
y: k,
|
|
@@ -25088,9 +25109,9 @@ function Ml({ mouseInteractionCb: n, doc: e, mirror: i, blockClass: t, blockSele
|
|
|
25088
25109
|
break;
|
|
25089
25110
|
}
|
|
25090
25111
|
y === Ye.Touch ? Le[v] === Le.MouseDown ? k = "TouchStart" : Le[v] === Le.MouseUp && (k = "TouchEnd") : Ye.Pen;
|
|
25091
|
-
} else
|
|
25112
|
+
} else it(g) && (y = Ye.Touch);
|
|
25092
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);
|
|
25093
|
-
const C =
|
|
25114
|
+
const C = it(g) ? g.changedTouches[0] : g;
|
|
25094
25115
|
if (!C)
|
|
25095
25116
|
return;
|
|
25096
25117
|
const w = i.getId(f), { clientX: A, clientY: M } = C;
|
|
@@ -25155,8 +25176,8 @@ function El({ inputCb: n, doc: e, mirror: i, blockClass: t, blockSelector: s, ig
|
|
|
25155
25176
|
if (_ && N === "OPTION" && (_ = _.parentElement), !_ || !N || Tl.indexOf(N) < 0 || Me(_, t, s, !0) || _.classList.contains(o) || r && _.matches(r))
|
|
25156
25177
|
return;
|
|
25157
25178
|
let G = _.value, F = !1;
|
|
25158
|
-
const U =
|
|
25159
|
-
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({
|
|
25160
25181
|
element: _,
|
|
25161
25182
|
maskInputOptions: l,
|
|
25162
25183
|
tagName: N,
|
|
@@ -26495,7 +26516,7 @@ function Xn(n = {}) {
|
|
|
26495
26516
|
recordCanvas: G,
|
|
26496
26517
|
inlineImages: fe,
|
|
26497
26518
|
onSerialize: ($) => {
|
|
26498
|
-
Ds($, Be) && xe.addIframe($), Os($, Be) && Pe.trackLinkElement($),
|
|
26519
|
+
Ds($, Be) && xe.addIframe($), Os($, Be) && Pe.trackLinkElement($), tt($) && Ue.addShadowRoot($.shadowRoot, document);
|
|
26499
26520
|
},
|
|
26500
26521
|
onIframeLoad: ($, ge) => {
|
|
26501
26522
|
xe.attachIframe($, ge), Ue.observeAttachShadow($);
|
|
@@ -26675,7 +26696,7 @@ if (typeof window > "u") {
|
|
|
26675
26696
|
};
|
|
26676
26697
|
} else
|
|
26677
26698
|
D = window;
|
|
26678
|
-
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 = {
|
|
26679
26700
|
trim: function(n) {
|
|
26680
26701
|
return n.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
26681
26702
|
}
|
|
@@ -26764,11 +26785,11 @@ m.each = function(n, e, i) {
|
|
|
26764
26785
|
n.forEach(e, i);
|
|
26765
26786
|
else if (n.length === +n.length) {
|
|
26766
26787
|
for (var t = 0, s = n.length; t < s; t++)
|
|
26767
|
-
if (t in n && e.call(i, n[t], t, n) ===
|
|
26788
|
+
if (t in n && e.call(i, n[t], t, n) === ot)
|
|
26768
26789
|
return;
|
|
26769
26790
|
} else
|
|
26770
26791
|
for (var o in n)
|
|
26771
|
-
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)
|
|
26772
26793
|
return;
|
|
26773
26794
|
}
|
|
26774
26795
|
};
|
|
@@ -26818,7 +26839,7 @@ m.include = function(n, e) {
|
|
|
26818
26839
|
var i = !1;
|
|
26819
26840
|
return n === null ? i : ls && n.indexOf === ls ? n.indexOf(e) != -1 : (m.each(n, function(t) {
|
|
26820
26841
|
if (i || (i = t === e))
|
|
26821
|
-
return
|
|
26842
|
+
return ot;
|
|
26822
26843
|
}), i);
|
|
26823
26844
|
};
|
|
26824
26845
|
m.includes = function(n, e) {
|
|
@@ -27205,7 +27226,7 @@ var et = null, _i = function(n, e) {
|
|
|
27205
27226
|
var i = !0;
|
|
27206
27227
|
try {
|
|
27207
27228
|
n = n || window.localStorage;
|
|
27208
|
-
var t = "__mplss_" +
|
|
27229
|
+
var t = "__mplss_" + ut(8), s = "xyz";
|
|
27209
27230
|
n.setItem(t, s), n.getItem(t) !== s && (i = !1), n.removeItem(t);
|
|
27210
27231
|
} catch {
|
|
27211
27232
|
i = !1;
|
|
@@ -27469,7 +27490,7 @@ m.info = {
|
|
|
27469
27490
|
$screen_width: wi.width,
|
|
27470
27491
|
mp_lib: "web",
|
|
27471
27492
|
$lib_version: Xe.LIB_VERSION,
|
|
27472
|
-
$insert_id:
|
|
27493
|
+
$insert_id: ut(),
|
|
27473
27494
|
time: m.timestamp() / 1e3
|
|
27474
27495
|
// epoch time in seconds
|
|
27475
27496
|
}, m.strip_empty_properties(n));
|
|
@@ -27492,7 +27513,7 @@ m.info = {
|
|
|
27492
27513
|
});
|
|
27493
27514
|
}
|
|
27494
27515
|
};
|
|
27495
|
-
var
|
|
27516
|
+
var ut = function(n) {
|
|
27496
27517
|
var e = Math.random().toString(36).substring(2, 10) + Math.random().toString(36).substring(2, 10);
|
|
27497
27518
|
return n ? e.substring(0, n) : e;
|
|
27498
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) {
|
|
@@ -27535,35 +27556,35 @@ function $s(n, e) {
|
|
|
27535
27556
|
return i && J.warn("You are opted out of Mixpanel tracking. This will prevent the Mixpanel SDK from sending any data."), i;
|
|
27536
27557
|
}
|
|
27537
27558
|
function cn(n) {
|
|
27538
|
-
return
|
|
27559
|
+
return mt(n, function(e) {
|
|
27539
27560
|
return this.get_config(e);
|
|
27540
27561
|
});
|
|
27541
27562
|
}
|
|
27542
27563
|
function hn(n) {
|
|
27543
|
-
return
|
|
27564
|
+
return mt(n, function(e) {
|
|
27544
27565
|
return this._get_config(e);
|
|
27545
27566
|
});
|
|
27546
27567
|
}
|
|
27547
27568
|
function Hn(n) {
|
|
27548
|
-
return
|
|
27569
|
+
return mt(n, function(e) {
|
|
27549
27570
|
return this._get_config(e);
|
|
27550
27571
|
});
|
|
27551
27572
|
}
|
|
27552
27573
|
function md(n, e) {
|
|
27553
|
-
e = e || {},
|
|
27554
|
-
|
|
27574
|
+
e = e || {}, ct(e).remove(
|
|
27575
|
+
ht(n, e),
|
|
27555
27576
|
!!e.crossSubdomainCookie,
|
|
27556
27577
|
e.cookieDomain
|
|
27557
27578
|
);
|
|
27558
27579
|
}
|
|
27559
|
-
function
|
|
27580
|
+
function ct(n) {
|
|
27560
27581
|
return n = n || {}, n.persistenceType === "localStorage" ? m.localStorage : m.cookie;
|
|
27561
27582
|
}
|
|
27562
|
-
function
|
|
27583
|
+
function ht(n, e) {
|
|
27563
27584
|
return e = e || {}, (e.persistencePrefix || dd) + n;
|
|
27564
27585
|
}
|
|
27565
27586
|
function Ys(n, e) {
|
|
27566
|
-
return
|
|
27587
|
+
return ct(e).get(ht(n, e));
|
|
27567
27588
|
}
|
|
27568
27589
|
function vd(n) {
|
|
27569
27590
|
if (n && n.ignoreDnt)
|
|
@@ -27583,8 +27604,8 @@ function Qs(n, e, i) {
|
|
|
27583
27604
|
J.error("gdpr." + (n ? "optIn" : "optOut") + " called with an invalid token");
|
|
27584
27605
|
return;
|
|
27585
27606
|
}
|
|
27586
|
-
i = i || {},
|
|
27587
|
-
|
|
27607
|
+
i = i || {}, ct(i).set(
|
|
27608
|
+
ht(e, i),
|
|
27588
27609
|
n ? 1 : 0,
|
|
27589
27610
|
m.isNumber(i.cookieExpiration) ? i.cookieExpiration : null,
|
|
27590
27611
|
!!i.crossSubdomainCookie,
|
|
@@ -27595,7 +27616,7 @@ function Qs(n, e, i) {
|
|
|
27595
27616
|
send_immediately: !0
|
|
27596
27617
|
});
|
|
27597
27618
|
}
|
|
27598
|
-
function
|
|
27619
|
+
function mt(n, e) {
|
|
27599
27620
|
return function() {
|
|
27600
27621
|
var i = !1;
|
|
27601
27622
|
try {
|
|
@@ -27685,7 +27706,7 @@ var hs = Bi("batch"), mn = function(n, e) {
|
|
|
27685
27706
|
};
|
|
27686
27707
|
mn.prototype.enqueue = function(n, e, i) {
|
|
27687
27708
|
var t = {
|
|
27688
|
-
id:
|
|
27709
|
+
id: ut(),
|
|
27689
27710
|
flushAfter: (/* @__PURE__ */ new Date()).getTime() + e * 2,
|
|
27690
27711
|
payload: n
|
|
27691
27712
|
};
|
|
@@ -28345,14 +28366,14 @@ O.prototype.track_charge = O.prototype.track_charge;
|
|
|
28345
28366
|
O.prototype.clear_charges = O.prototype.clear_charges;
|
|
28346
28367
|
O.prototype.delete_user = O.prototype.delete_user;
|
|
28347
28368
|
O.prototype.toString = O.prototype.toString;
|
|
28348
|
-
var
|
|
28349
|
-
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 = [
|
|
28350
28370
|
vt,
|
|
28351
28371
|
bt,
|
|
28352
28372
|
pt,
|
|
28353
28373
|
ft,
|
|
28354
28374
|
gt,
|
|
28355
28375
|
yt,
|
|
28376
|
+
Ct,
|
|
28356
28377
|
no,
|
|
28357
28378
|
Li,
|
|
28358
28379
|
Jn
|
|
@@ -28446,19 +28467,19 @@ V.prototype.set_secure = function(n) {
|
|
|
28446
28467
|
};
|
|
28447
28468
|
V.prototype._add_to_people_queue = function(n, e) {
|
|
28448
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, []);
|
|
28449
|
-
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) {
|
|
28450
28471
|
f in o || (o[f] = g);
|
|
28451
|
-
}), this._pop_from_people_queue(Re, t)) : i ===
|
|
28472
|
+
}), this._pop_from_people_queue(Re, t)) : i === pt ? m.each(t, function(g) {
|
|
28452
28473
|
m.each([s, o, l, u], function(f) {
|
|
28453
28474
|
g in f && delete f[g];
|
|
28454
28475
|
}), m.each(v, function(f) {
|
|
28455
28476
|
g in f && delete f[g];
|
|
28456
28477
|
}), r[g] = !0;
|
|
28457
|
-
}) : i ===
|
|
28478
|
+
}) : i === ft ? (m.each(t, function(g, f) {
|
|
28458
28479
|
f in s ? s[f] += g : (f in l || (l[f] = 0), l[f] += g);
|
|
28459
|
-
}, 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) {
|
|
28460
28481
|
m.isArray(g) && (f in u || (u[f] = []), u[f] = u[f].concat(g));
|
|
28461
|
-
}), 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();
|
|
28462
28483
|
};
|
|
28463
28484
|
V.prototype._pop_from_people_queue = function(n, e) {
|
|
28464
28485
|
var i = this.props[this._get_queue_key(n)];
|
|
@@ -28473,19 +28494,19 @@ V.prototype.load_queue = function(n) {
|
|
|
28473
28494
|
};
|
|
28474
28495
|
V.prototype._get_queue_key = function(n) {
|
|
28475
28496
|
if (n === un)
|
|
28476
|
-
return mt;
|
|
28477
|
-
if (n === Dn)
|
|
28478
28497
|
return vt;
|
|
28479
|
-
if (n ===
|
|
28498
|
+
if (n === Dn)
|
|
28480
28499
|
return bt;
|
|
28481
|
-
if (n ===
|
|
28500
|
+
if (n === Re)
|
|
28482
28501
|
return pt;
|
|
28483
|
-
if (n ===
|
|
28502
|
+
if (n === wn)
|
|
28484
28503
|
return ft;
|
|
28485
|
-
if (n ===
|
|
28504
|
+
if (n === Ge)
|
|
28486
28505
|
return gt;
|
|
28487
|
-
if (n ===
|
|
28506
|
+
if (n === en)
|
|
28488
28507
|
return yt;
|
|
28508
|
+
if (n === _n)
|
|
28509
|
+
return Ct;
|
|
28489
28510
|
J.error("Invalid queue:", n);
|
|
28490
28511
|
};
|
|
28491
28512
|
V.prototype._get_or_create_queue = function(n, e) {
|
|
@@ -28500,12 +28521,12 @@ V.prototype.remove_event_timer = function(n) {
|
|
|
28500
28521
|
var e = this.load_prop(Jn) || {}, i = e[n];
|
|
28501
28522
|
return m.isUndefined(i) || (delete this.props[Jn][n], this.save()), i;
|
|
28502
28523
|
};
|
|
28503
|
-
var
|
|
28524
|
+
var St, io = function(n, e) {
|
|
28504
28525
|
throw new Error(n + " not available in this build.");
|
|
28505
28526
|
}, Se, to = 0, kd = 1, wd = function(n) {
|
|
28506
28527
|
return n;
|
|
28507
28528
|
}, $n = function() {
|
|
28508
|
-
}, 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;
|
|
28509
28530
|
ln.sendBeacon && (Ti = function() {
|
|
28510
28531
|
return ln.sendBeacon.apply(ln, arguments);
|
|
28511
28532
|
});
|
|
@@ -28575,9 +28596,9 @@ var ao = {
|
|
|
28575
28596
|
record_sessions_percent: 0,
|
|
28576
28597
|
recorder_src: "https://cdn.mxpnl.com/libs/mixpanel-recorder.min.js"
|
|
28577
28598
|
}, ro = !1, L = function() {
|
|
28578
|
-
},
|
|
28599
|
+
}, at = function(n, e, i) {
|
|
28579
28600
|
var t, s = i === Ne ? Se : Se[i];
|
|
28580
|
-
if (s &&
|
|
28601
|
+
if (s && St === to)
|
|
28581
28602
|
t = s;
|
|
28582
28603
|
else {
|
|
28583
28604
|
if (s && !m.isArray(s)) {
|
|
@@ -28603,7 +28624,7 @@ L.prototype.init = function(n, e, i) {
|
|
|
28603
28624
|
this.report_error("You must initialize the main mixpanel object right after you include the Mixpanel js snippet");
|
|
28604
28625
|
return;
|
|
28605
28626
|
}
|
|
28606
|
-
var t =
|
|
28627
|
+
var t = at(n, e, i);
|
|
28607
28628
|
return Se[i] = t, t._loaded(), t;
|
|
28608
28629
|
};
|
|
28609
28630
|
L.prototype._init = function(n, e, i) {
|
|
@@ -28639,7 +28660,7 @@ L.prototype._init = function(n, e, i) {
|
|
|
28639
28660
|
this.persistence = this.cookie = new V(this.config), this.unpersisted_superprops = {}, this._gdpr_init();
|
|
28640
28661
|
var r = m.UUID();
|
|
28641
28662
|
this.get_distinct_id() || this.register_once({
|
|
28642
|
-
distinct_id:
|
|
28663
|
+
distinct_id: kt + r,
|
|
28643
28664
|
$device_id: r
|
|
28644
28665
|
}, "");
|
|
28645
28666
|
var l = this.get_config("track_pageview");
|
|
@@ -29011,22 +29032,22 @@ L.prototype.time_event = function(n) {
|
|
|
29011
29032
|
};
|
|
29012
29033
|
var Ad = {
|
|
29013
29034
|
persistent: !0
|
|
29014
|
-
},
|
|
29035
|
+
}, wt = function(n) {
|
|
29015
29036
|
var e;
|
|
29016
29037
|
return m.isObject(n) ? e = n : m.isUndefined(n) ? e = {} : e = { days: n }, m.extend({}, Ad, e);
|
|
29017
29038
|
};
|
|
29018
29039
|
L.prototype.register = function(n, e) {
|
|
29019
|
-
var i =
|
|
29040
|
+
var i = wt(e);
|
|
29020
29041
|
i.persistent ? this.persistence.register(n, i.days) : m.extend(this.unpersisted_superprops, n);
|
|
29021
29042
|
};
|
|
29022
29043
|
L.prototype.register_once = function(n, e, i) {
|
|
29023
|
-
var t =
|
|
29044
|
+
var t = wt(i);
|
|
29024
29045
|
t.persistent ? this.persistence.register_once(n, e, t.days) : (typeof e > "u" && (e = "None"), m.each(n, function(s, o) {
|
|
29025
29046
|
(!this.unpersisted_superprops.hasOwnProperty(o) || this.unpersisted_superprops[o] === e) && (this.unpersisted_superprops[o] = s);
|
|
29026
29047
|
}, this));
|
|
29027
29048
|
};
|
|
29028
29049
|
L.prototype.unregister = function(n, e) {
|
|
29029
|
-
e =
|
|
29050
|
+
e = wt(e), e.persistent ? this.persistence.unregister(n) : delete this.unpersisted_superprops[n];
|
|
29030
29051
|
};
|
|
29031
29052
|
L.prototype._register_single = function(n, e) {
|
|
29032
29053
|
var i = {};
|
|
@@ -29035,7 +29056,7 @@ L.prototype._register_single = function(n, e) {
|
|
|
29035
29056
|
L.prototype.identify = function(n, e, i, t, s, o, r, l) {
|
|
29036
29057
|
var u = this.get_distinct_id();
|
|
29037
29058
|
if (n && u !== n) {
|
|
29038
|
-
if (typeof n == "string" && n.indexOf(
|
|
29059
|
+
if (typeof n == "string" && n.indexOf(kt) === 0)
|
|
29039
29060
|
return this.report_error("distinct_id cannot have $device: prefix"), -1;
|
|
29040
29061
|
this.register({ $user_id: n });
|
|
29041
29062
|
}
|
|
@@ -29055,7 +29076,7 @@ L.prototype.reset = function() {
|
|
|
29055
29076
|
this.persistence.clear(), this._flags.identify_called = !1;
|
|
29056
29077
|
var n = m.UUID();
|
|
29057
29078
|
this.register_once({
|
|
29058
|
-
distinct_id:
|
|
29079
|
+
distinct_id: kt + n,
|
|
29059
29080
|
$device_id: n
|
|
29060
29081
|
}, "");
|
|
29061
29082
|
};
|
|
@@ -29225,9 +29246,9 @@ var Nn = {}, Md = function() {
|
|
|
29225
29246
|
}, Ld = function() {
|
|
29226
29247
|
Se.init = function(n, e, i) {
|
|
29227
29248
|
if (i)
|
|
29228
|
-
return Se[i] || (Se[i] = Nn[i] =
|
|
29249
|
+
return Se[i] || (Se[i] = Nn[i] = at(n, e, i), Se[i]._loaded()), Se[i];
|
|
29229
29250
|
var t = Se;
|
|
29230
|
-
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();
|
|
29231
29252
|
};
|
|
29232
29253
|
}, Td = function() {
|
|
29233
29254
|
function n() {
|
|
@@ -29258,7 +29279,7 @@ var Nn = {}, Md = function() {
|
|
|
29258
29279
|
m.register_event(D, "load", n, !0);
|
|
29259
29280
|
};
|
|
29260
29281
|
function Ed(n) {
|
|
29261
|
-
return io = n,
|
|
29282
|
+
return io = n, St = to, Se = new L(), Ld(), Se.init(), Td(), Se;
|
|
29262
29283
|
}
|
|
29263
29284
|
function xd(n, e) {
|
|
29264
29285
|
e();
|
|
@@ -29770,7 +29791,8 @@ class Pd {
|
|
|
29770
29791
|
this.cardDetailForm = new Wt({
|
|
29771
29792
|
container: this.contents,
|
|
29772
29793
|
onAction: (r) => (l) => this.submitCardDetails.bind(this)(r, l),
|
|
29773
|
-
merchantName: this.merchantPlanDetail.merchantName
|
|
29794
|
+
merchantName: this.merchantPlanDetail.merchantName,
|
|
29795
|
+
currency: this.localCurrency ? this.localCurrency : this.currency
|
|
29774
29796
|
}), this.cardDetailForm.renderContent();
|
|
29775
29797
|
break;
|
|
29776
29798
|
case 2:
|
|
@@ -29850,7 +29872,8 @@ class Pd {
|
|
|
29850
29872
|
this.cardDetailForm = new Wt({
|
|
29851
29873
|
container: this.contents,
|
|
29852
29874
|
onAction: (r) => (l) => this.submitCardDetails.bind(this)(r, l),
|
|
29853
|
-
merchantName: this.merchantPlanDetail.merchantName
|
|
29875
|
+
merchantName: this.merchantPlanDetail.merchantName,
|
|
29876
|
+
currency: this.localCurrency ? this.localCurrency : this.currency
|
|
29854
29877
|
}), this.cardDetailForm.renderContent();
|
|
29855
29878
|
break;
|
|
29856
29879
|
}
|
|
@@ -30560,7 +30583,7 @@ var co = { exports: {} };
|
|
|
30560
30583
|
a.push([p, d]);
|
|
30561
30584
|
}), a;
|
|
30562
30585
|
}
|
|
30563
|
-
function
|
|
30586
|
+
function At(c, a) {
|
|
30564
30587
|
for (var d = 0; d < c.length; d++)
|
|
30565
30588
|
if (a(c[d], d, c))
|
|
30566
30589
|
return !0;
|
|
@@ -30898,26 +30921,26 @@ var co = { exports: {} };
|
|
|
30898
30921
|
getSocket: function(c) {
|
|
30899
30922
|
return H.createWebSocket(c);
|
|
30900
30923
|
}
|
|
30901
|
-
}),
|
|
30924
|
+
}), Mt = {
|
|
30902
30925
|
urls: Lo,
|
|
30903
30926
|
handlesActivityChecks: !1,
|
|
30904
30927
|
supportsPing: !0,
|
|
30905
30928
|
isInitialized: function() {
|
|
30906
30929
|
return !0;
|
|
30907
30930
|
}
|
|
30908
|
-
},
|
|
30931
|
+
}, Lt = ve({
|
|
30909
30932
|
getSocket: function(c) {
|
|
30910
30933
|
return H.HTTPFactory.createStreamingSocket(c);
|
|
30911
30934
|
}
|
|
30912
|
-
},
|
|
30935
|
+
}, Mt), Tt = ve({
|
|
30913
30936
|
getSocket: function(c) {
|
|
30914
30937
|
return H.HTTPFactory.createPollingSocket(c);
|
|
30915
30938
|
}
|
|
30916
|
-
},
|
|
30939
|
+
}, Mt), Et = {
|
|
30917
30940
|
isSupported: function() {
|
|
30918
30941
|
return H.isXHRSupported();
|
|
30919
30942
|
}
|
|
30920
|
-
}, No = new Mn(ve({},
|
|
30943
|
+
}, No = new Mn(ve({}, Lt, Et)), Io = new Mn(ve({}, Tt, Et)), Bo = {
|
|
30921
30944
|
ws: Po,
|
|
30922
30945
|
xhr_streaming: No,
|
|
30923
30946
|
xhr_polling: Io
|
|
@@ -30945,12 +30968,12 @@ var co = { exports: {} };
|
|
|
30945
30968
|
path: a
|
|
30946
30969
|
}));
|
|
30947
30970
|
}
|
|
30948
|
-
}),
|
|
30971
|
+
}), xt = {
|
|
30949
30972
|
isSupported: function(c) {
|
|
30950
30973
|
var a = H.isXDRSupported(c.useTLS);
|
|
30951
30974
|
return a;
|
|
30952
30975
|
}
|
|
30953
|
-
}, Do = new Mn(ve({},
|
|
30976
|
+
}, Do = new Mn(ve({}, Lt, xt)), Oo = new Mn(ve({}, Tt, xt));
|
|
30954
30977
|
ii.xdr_streaming = Do, ii.xdr_polling = Oo, ii.sockjs = Ro;
|
|
30955
30978
|
var Ho = ii;
|
|
30956
30979
|
class Uo extends Je {
|
|
@@ -30992,7 +31015,7 @@ var co = { exports: {} };
|
|
|
30992
31015
|
return this.manager.isAlive() && this.transport.isSupported(a);
|
|
30993
31016
|
}
|
|
30994
31017
|
}
|
|
30995
|
-
const
|
|
31018
|
+
const Pt = {
|
|
30996
31019
|
decodeMessage: function(c) {
|
|
30997
31020
|
try {
|
|
30998
31021
|
var a = JSON.parse(c.data), d = a.data;
|
|
@@ -31015,7 +31038,7 @@ var co = { exports: {} };
|
|
|
31015
31038
|
return JSON.stringify(c);
|
|
31016
31039
|
},
|
|
31017
31040
|
processHandshake: function(c) {
|
|
31018
|
-
var a =
|
|
31041
|
+
var a = Pt.decodeMessage(c);
|
|
31019
31042
|
if (a.event === "pusher:connection_established") {
|
|
31020
31043
|
if (!a.data.activity_timeout)
|
|
31021
31044
|
throw "No activity timeout specified in handshake";
|
|
@@ -31046,7 +31069,7 @@ var co = { exports: {} };
|
|
|
31046
31069
|
} : null;
|
|
31047
31070
|
}
|
|
31048
31071
|
};
|
|
31049
|
-
var pn =
|
|
31072
|
+
var pn = Pt;
|
|
31050
31073
|
class Vo extends Je {
|
|
31051
31074
|
constructor(a, d) {
|
|
31052
31075
|
super(), this.id = a, this.transport = d, this.activityTimeout = d.activityTimeout, this.bindListeners();
|
|
@@ -31646,7 +31669,7 @@ var co = { exports: {} };
|
|
|
31646
31669
|
return new jo(c, a, d);
|
|
31647
31670
|
}
|
|
31648
31671
|
}, $e = Xo;
|
|
31649
|
-
class
|
|
31672
|
+
class Nt {
|
|
31650
31673
|
constructor(a) {
|
|
31651
31674
|
this.options = a || {}, this.livesLeft = this.options.lives || 1 / 0;
|
|
31652
31675
|
}
|
|
@@ -31668,7 +31691,7 @@ var co = { exports: {} };
|
|
|
31668
31691
|
this.strategies = a, this.loop = !!d.loop, this.failFast = !!d.failFast, this.timeout = d.timeout, this.timeoutLimit = d.timeoutLimit;
|
|
31669
31692
|
}
|
|
31670
31693
|
isSupported() {
|
|
31671
|
-
return
|
|
31694
|
+
return At(this.strategies, ae.method("isSupported"));
|
|
31672
31695
|
}
|
|
31673
31696
|
connect(a, d) {
|
|
31674
31697
|
var p = this.strategies, S = 0, T = this.timeout, E = null, I = (R, Z) => {
|
|
@@ -31704,7 +31727,7 @@ var co = { exports: {} };
|
|
|
31704
31727
|
this.strategies = a;
|
|
31705
31728
|
}
|
|
31706
31729
|
isSupported() {
|
|
31707
|
-
return
|
|
31730
|
+
return At(this.strategies, ae.method("isSupported"));
|
|
31708
31731
|
}
|
|
31709
31732
|
connect(a, d) {
|
|
31710
31733
|
return ea(this.strategies, a, function(p, S) {
|
|
@@ -31764,7 +31787,7 @@ var co = { exports: {} };
|
|
|
31764
31787
|
}))) : T++);
|
|
31765
31788
|
}
|
|
31766
31789
|
var R = ae.now(), Z = E.pop().connect(a, function Y(ue, oi) {
|
|
31767
|
-
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));
|
|
31768
31791
|
});
|
|
31769
31792
|
return {
|
|
31770
31793
|
abort: function() {
|
|
@@ -31787,7 +31810,7 @@ var co = { exports: {} };
|
|
|
31787
31810
|
if (d)
|
|
31788
31811
|
return JSON.parse(d);
|
|
31789
31812
|
} catch {
|
|
31790
|
-
|
|
31813
|
+
It(c);
|
|
31791
31814
|
}
|
|
31792
31815
|
return null;
|
|
31793
31816
|
}
|
|
@@ -31804,7 +31827,7 @@ var co = { exports: {} };
|
|
|
31804
31827
|
} catch {
|
|
31805
31828
|
}
|
|
31806
31829
|
}
|
|
31807
|
-
function
|
|
31830
|
+
function It(c) {
|
|
31808
31831
|
var a = H.getLocalStorage();
|
|
31809
31832
|
if (a)
|
|
31810
31833
|
try {
|
|
@@ -31867,9 +31890,9 @@ var co = { exports: {} };
|
|
|
31867
31890
|
}
|
|
31868
31891
|
var ra = function(c, a, d) {
|
|
31869
31892
|
var p = {};
|
|
31870
|
-
function S(
|
|
31871
|
-
var
|
|
31872
|
-
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;
|
|
31873
31896
|
}
|
|
31874
31897
|
var T = Object.assign({}, a, {
|
|
31875
31898
|
hostNonTLS: c.wsHost + ":" + c.wsPort,
|
|
@@ -31885,28 +31908,28 @@ var co = { exports: {} };
|
|
|
31885
31908
|
loop: !0,
|
|
31886
31909
|
timeout: 15e3,
|
|
31887
31910
|
timeoutLimit: 6e4
|
|
31888
|
-
}, Z = new
|
|
31911
|
+
}, Z = new Nt({
|
|
31889
31912
|
minPingDelay: 1e4,
|
|
31890
31913
|
maxPingDelay: c.activityTimeout
|
|
31891
|
-
}), Y = new
|
|
31914
|
+
}), Y = new Nt({
|
|
31892
31915
|
lives: 2,
|
|
31893
31916
|
minPingDelay: 1e4,
|
|
31894
31917
|
maxPingDelay: c.activityTimeout
|
|
31895
|
-
}), ue = S("ws", "ws", 3, T, Z), oi = S("wss", "ws", 3, E, Z), nr = S("sockjs", "sockjs", 1, I),
|
|
31896
|
-
new Kn(jn(
|
|
31897
|
-
], R), jt = new fn([
|
|
31898
|
-
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)
|
|
31899
31920
|
], R), Vt = new fn([
|
|
31900
|
-
new Kn(jn(
|
|
31901
|
-
|
|
31902
|
-
|
|
31903
|
-
|
|
31904
|
-
|
|
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;
|
|
31905
31928
|
return a.useTLS ? Zi = new Vi([
|
|
31906
|
-
|
|
31929
|
+
Kt,
|
|
31907
31930
|
new ti(Wi, { delay: 2e3 })
|
|
31908
31931
|
]) : Zi = new Vi([
|
|
31909
|
-
|
|
31932
|
+
Kt,
|
|
31910
31933
|
new ti(sr, { delay: 2e3 }),
|
|
31911
31934
|
new ti(Wi, { delay: 5e3 })
|
|
31912
31935
|
]), new ta(new aa(new Kn(jn(ue), Zi, Wi)), p, {
|
|
@@ -31977,7 +32000,7 @@ var co = { exports: {} };
|
|
|
31977
32000
|
var gn = Fi, va = 1;
|
|
31978
32001
|
class ba {
|
|
31979
32002
|
constructor(a, d) {
|
|
31980
|
-
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();
|
|
31981
32004
|
}
|
|
31982
32005
|
send(a) {
|
|
31983
32006
|
return this.sendRaw(JSON.stringify([a]));
|
|
@@ -31991,7 +32014,7 @@ var co = { exports: {} };
|
|
|
31991
32014
|
sendRaw(a) {
|
|
31992
32015
|
if (this.readyState === gn.OPEN)
|
|
31993
32016
|
try {
|
|
31994
|
-
return H.createSocketRequest("POST",
|
|
32017
|
+
return H.createSocketRequest("POST", Bt(fa(this.location, this.session))).start(a), !0;
|
|
31995
32018
|
} catch {
|
|
31996
32019
|
return !1;
|
|
31997
32020
|
}
|
|
@@ -32046,7 +32069,7 @@ var co = { exports: {} };
|
|
|
32046
32069
|
this.onerror && this.onerror(a);
|
|
32047
32070
|
}
|
|
32048
32071
|
openStream() {
|
|
32049
|
-
this.stream = H.createSocketRequest("POST",
|
|
32072
|
+
this.stream = H.createSocketRequest("POST", Bt(this.hooks.getReceiveURL(this.location, this.session))), this.stream.bind("chunk", (a) => {
|
|
32050
32073
|
this.onChunk(a);
|
|
32051
32074
|
}), this.stream.bind("finished", (a) => {
|
|
32052
32075
|
this.hooks.onFinished(this, a);
|
|
@@ -32075,7 +32098,7 @@ var co = { exports: {} };
|
|
|
32075
32098
|
function fa(c, a) {
|
|
32076
32099
|
return c.base + "/" + a + "/xhr_send";
|
|
32077
32100
|
}
|
|
32078
|
-
function
|
|
32101
|
+
function Bt(c) {
|
|
32079
32102
|
var a = c.indexOf("?") === -1 ? "?" : "&";
|
|
32080
32103
|
return c + a + "t=" + +/* @__PURE__ */ new Date() + "&n=" + va++;
|
|
32081
32104
|
}
|
|
@@ -32083,12 +32106,12 @@ var co = { exports: {} };
|
|
|
32083
32106
|
var d = /(https?:\/\/)([^\/:]+)((\/|:)?.*)/.exec(c);
|
|
32084
32107
|
return d[1] + a + d[3];
|
|
32085
32108
|
}
|
|
32086
|
-
function
|
|
32109
|
+
function Rt(c) {
|
|
32087
32110
|
return H.randomInt(c);
|
|
32088
32111
|
}
|
|
32089
32112
|
function ya(c) {
|
|
32090
32113
|
for (var a = [], d = 0; d < c; d++)
|
|
32091
|
-
a.push(
|
|
32114
|
+
a.push(Rt(32).toString(32));
|
|
32092
32115
|
return a.join("");
|
|
32093
32116
|
}
|
|
32094
32117
|
var Ca = ba, Sa = {
|
|
@@ -32149,11 +32172,11 @@ var co = { exports: {} };
|
|
|
32149
32172
|
createRequest(c, a, d) {
|
|
32150
32173
|
return new ma(c, a, d);
|
|
32151
32174
|
}
|
|
32152
|
-
},
|
|
32153
|
-
|
|
32175
|
+
}, Dt = La;
|
|
32176
|
+
Dt.createXDR = function(c, a) {
|
|
32154
32177
|
return this.createRequest(ca, c, a);
|
|
32155
32178
|
};
|
|
32156
|
-
var Ta =
|
|
32179
|
+
var Ta = Dt, Ea = {
|
|
32157
32180
|
nextAuthCallbackID: 1,
|
|
32158
32181
|
auth_callbacks: {},
|
|
32159
32182
|
ScriptReceivers: r,
|
|
@@ -32301,8 +32324,8 @@ var co = { exports: {} };
|
|
|
32301
32324
|
connect(a, d) {
|
|
32302
32325
|
if (this.isSupported()) {
|
|
32303
32326
|
if (this.priority < a)
|
|
32304
|
-
return
|
|
32305
|
-
} else return
|
|
32327
|
+
return Ot(new _(), d);
|
|
32328
|
+
} else return Ot(new F(), d);
|
|
32306
32329
|
var p = !1, S = this.transport.createConnection(this.name, this.priority, this.options.key, this.options), T = null, E = function() {
|
|
32307
32330
|
S.unbind("initialized", E), S.connect();
|
|
32308
32331
|
}, I = function() {
|
|
@@ -32328,7 +32351,7 @@ var co = { exports: {} };
|
|
|
32328
32351
|
};
|
|
32329
32352
|
}
|
|
32330
32353
|
}
|
|
32331
|
-
function
|
|
32354
|
+
function Ot(c, a) {
|
|
32332
32355
|
return ae.defer(function() {
|
|
32333
32356
|
a(c);
|
|
32334
32357
|
}), {
|
|
@@ -33299,7 +33322,7 @@ class Qe extends Error {
|
|
|
33299
33322
|
super(e), this.name = "AuthorizationError";
|
|
33300
33323
|
}
|
|
33301
33324
|
}
|
|
33302
|
-
class
|
|
33325
|
+
class _t {
|
|
33303
33326
|
constructor(e) {
|
|
33304
33327
|
h(this, "token");
|
|
33305
33328
|
h(this, "baseurl", "https://api.spotflow.co/api/v1");
|
|
@@ -33315,7 +33338,7 @@ class wt {
|
|
|
33315
33338
|
this.token = e.token, this.rdtCode = e.rdtCode, this.url = e.url, this.headers = this.getHeaders(this.token, this.rdtCode);
|
|
33316
33339
|
}
|
|
33317
33340
|
}
|
|
33318
|
-
class ho extends
|
|
33341
|
+
class ho extends _t {
|
|
33319
33342
|
constructor(e) {
|
|
33320
33343
|
super(e);
|
|
33321
33344
|
}
|
|
@@ -33440,7 +33463,7 @@ class ho extends wt {
|
|
|
33440
33463
|
}
|
|
33441
33464
|
}
|
|
33442
33465
|
}
|
|
33443
|
-
class jd extends
|
|
33466
|
+
class jd extends _t {
|
|
33444
33467
|
constructor(e) {
|
|
33445
33468
|
super(e);
|
|
33446
33469
|
}
|
|
@@ -33468,7 +33491,7 @@ class jd extends wt {
|
|
|
33468
33491
|
}
|
|
33469
33492
|
}
|
|
33470
33493
|
}
|
|
33471
|
-
class Vd extends
|
|
33494
|
+
class Vd extends _t {
|
|
33472
33495
|
constructor(e) {
|
|
33473
33496
|
super(e);
|
|
33474
33497
|
}
|
|
@@ -34029,15 +34052,15 @@ const ui = (n) => {
|
|
|
34029
34052
|
|
|
34030
34053
|
<div
|
|
34031
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">
|
|
34032
|
-
<p class="text-
|
|
34055
|
+
<p class="text-gray-700 font-medium text-xs">
|
|
34033
34056
|
What is this?
|
|
34034
34057
|
</p>
|
|
34035
|
-
<p class="text-xs">
|
|
34058
|
+
<p class="text-xs text-tone-100 font-normal">
|
|
34036
34059
|
This rate reflects the current exchange rate for
|
|
34037
34060
|
converting United States Dollars (USD) to <span id="tooltip-localCurrency"> Nigerian Naira
|
|
34038
|
-
(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
|
|
34039
34062
|
change and may vary slightly at the time of the
|
|
34040
|
-
transaction
|
|
34063
|
+
transaction.</span>
|
|
34041
34064
|
</p>
|
|
34042
34065
|
</div>
|
|
34043
34066
|
</div>
|
|
@@ -34518,7 +34541,7 @@ class su {
|
|
|
34518
34541
|
"#phone-number-error"
|
|
34519
34542
|
);
|
|
34520
34543
|
if (!e || !i || !t) return;
|
|
34521
|
-
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);
|
|
34522
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;
|
|
34523
34546
|
}
|
|
34524
34547
|
attachListener() {
|
|
@@ -34534,7 +34557,7 @@ class su {
|
|
|
34534
34557
|
l.value = l.value.replace(/\D/g, ""), this.validateForm();
|
|
34535
34558
|
}), s.addEventListener("change", () => this.validateForm())), i && i.classList.add("hidden"), !(!s || !t || !o) && e && e.addEventListener("submit", (r) => {
|
|
34536
34559
|
r.preventDefault();
|
|
34537
|
-
const l = t.value
|
|
34560
|
+
const l = `0${t.value}`, u = s.value;
|
|
34538
34561
|
this.onAction(r)({
|
|
34539
34562
|
code: u,
|
|
34540
34563
|
// "mtn-gh",
|
|
@@ -34567,7 +34590,7 @@ class su {
|
|
|
34567
34590
|
i.appendChild(u), i.classList.remove("text-tone-50"), i.classList.add("text-tone-100");
|
|
34568
34591
|
});
|
|
34569
34592
|
}
|
|
34570
|
-
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);
|
|
34571
34594
|
if (t) {
|
|
34572
34595
|
t.innerHTML = `
|
|
34573
34596
|
${o == null ? void 0 : o.icon}
|
|
@@ -35765,7 +35788,7 @@ class mu {
|
|
|
35765
35788
|
<h5 id="error-message-div" class="text-tone-100 font-semibold text-2xl text-center mb-1">Transaction limit reached</h5>
|
|
35766
35789
|
<div class="w-4/5 mx-auto">
|
|
35767
35790
|
<p class="text-tone-100 text-sm text-center mb-5" id="error-desc">
|
|
35768
|
-
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.
|
|
35769
35792
|
</p>
|
|
35770
35793
|
</div>
|
|
35771
35794
|
<div class="container-center hidden" id="error-action-container">
|