@spot-flow/checkout-inline-js 0.1.38-dev.2 → 0.1.38
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 +193 -170
- package/dist/checkout-inline.js +40 -40
- package/dist/data.d.ts +3 -7
- package/dist/types.d.ts +8 -0
- package/package.json +1 -1
|
@@ -235,7 +235,7 @@ const Cr = async (n, e, i, t) => {
|
|
|
235
235
|
} catch (s) {
|
|
236
236
|
throw s instanceof X ? console.error(`FetchError: ${s.message} (status: ${s.status})`) : s instanceof De ? console.error(`AuthorizationError: ${s.message}`) : console.error(`Unexpected error: ${s}`), s;
|
|
237
237
|
}
|
|
238
|
-
},
|
|
238
|
+
}, Hi = async (n, e, i, t) => {
|
|
239
239
|
try {
|
|
240
240
|
const s = Oe(n, i), o = await fetch(`${fe(Ve, t)}/payments/retry`, {
|
|
241
241
|
method: "POST",
|
|
@@ -413,12 +413,13 @@ const Yt = [
|
|
|
413
413
|
</svg>
|
|
414
414
|
`
|
|
415
415
|
}
|
|
416
|
-
],
|
|
416
|
+
], yi = [
|
|
417
417
|
{
|
|
418
418
|
name: "GHS",
|
|
419
419
|
dialCode: "+233",
|
|
420
420
|
length: "9",
|
|
421
421
|
cardTypes: ["Visa", "MasterCard", "Gh-link"],
|
|
422
|
+
allowsZeros: !0,
|
|
422
423
|
icon: `<svg xmlns="http://www.w3.org/2000/svg" id="flag-icons-gh" viewBox="0 0 512 512">
|
|
423
424
|
<path fill="#006b3f" d="M0 0h512v512H0z"/>
|
|
424
425
|
<path fill="#fcd116" d="M0 0h512v341.3H0z"/>
|
|
@@ -431,6 +432,7 @@ const Yt = [
|
|
|
431
432
|
name: "TZS",
|
|
432
433
|
dialCode: "+255",
|
|
433
434
|
length: "9",
|
|
435
|
+
allowsZeros: !0,
|
|
434
436
|
cardTypes: [],
|
|
435
437
|
icon: `<svg width="33" height="34" viewBox="0 0 33 34" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
436
438
|
<g clip-path="url(#clip0_3333_2907)">
|
|
@@ -452,6 +454,7 @@ const Yt = [
|
|
|
452
454
|
dialCode: "+254",
|
|
453
455
|
length: "9",
|
|
454
456
|
cardTypes: ["Visa", "MasterCard"],
|
|
457
|
+
allowsZeros: !0,
|
|
455
458
|
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">
|
|
456
459
|
<defs>
|
|
457
460
|
<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"/>
|
|
@@ -482,6 +485,7 @@ const Yt = [
|
|
|
482
485
|
dialCode: "+27",
|
|
483
486
|
length: "9",
|
|
484
487
|
cardTypes: ["Visa", "MasterCard", "American Express", "Diners Club"],
|
|
488
|
+
allowsZeros: !0,
|
|
485
489
|
icon: `<svg xmlns="http://www.w3.org/2000/svg" id="flag-icons-za" viewBox="0 0 512 512">
|
|
486
490
|
<defs>
|
|
487
491
|
<clipPath id="za-a">
|
|
@@ -506,6 +510,7 @@ const Yt = [
|
|
|
506
510
|
dialCode: "+234",
|
|
507
511
|
length: "10",
|
|
508
512
|
cardTypes: ["Visa", "MasterCard", "Verve", "AfriGo"],
|
|
513
|
+
allowsZeros: !0,
|
|
509
514
|
icon: `<svg xmlns="http://www.w3.org/2000/svg" id="flag-icons-ng" viewBox="0 0 512 512">
|
|
510
515
|
<g fill-rule="evenodd" stroke-width="1pt">
|
|
511
516
|
<path fill="#fff" d="M0 0h512v512H0z"/>
|
|
@@ -517,8 +522,9 @@ const Yt = [
|
|
|
517
522
|
{
|
|
518
523
|
name: "CI",
|
|
519
524
|
dialCode: "+225",
|
|
520
|
-
length: "
|
|
525
|
+
length: "10",
|
|
521
526
|
cardTypes: [],
|
|
527
|
+
allowsZeros: !1,
|
|
522
528
|
icon: `<svg width="34" height="34" viewBox="0 0 34 34" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
523
529
|
<g clip-path="url(#clip0_3333_2034)">
|
|
524
530
|
<path d="M17.1459 33.6466C19.1494 33.6466 21.0688 33.2862 22.8432 32.6278L23.5554 17.2667L22.8432 1.90561C21.0688 1.24722 19.1494 0.886795 17.1459 0.886795C15.1423 0.886795 13.2229 1.24722 11.4485 1.90561L10.7363 17.2667L11.4485 32.6278C13.2229 33.2862 15.1423 33.6466 17.1459 33.6466Z" fill="#F0F0F0"/>
|
|
@@ -537,8 +543,9 @@ const Yt = [
|
|
|
537
543
|
{
|
|
538
544
|
name: "SN",
|
|
539
545
|
dialCode: "+221",
|
|
540
|
-
length: "
|
|
546
|
+
length: "9",
|
|
541
547
|
cardTypes: [],
|
|
548
|
+
allowsZeros: !1,
|
|
542
549
|
icon: `<svg width="34" height="34" viewBox="0 0 34 34" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
543
550
|
<g clip-path="url(#clip0_3333_2676)">
|
|
544
551
|
<path d="M24.448 2.09872C22.2945 1.05744 19.8786 0.473396 17.3263 0.473396C14.774 0.473396 12.3581 1.05744 10.2046 2.09872L8.78027 16.8533L10.2046 31.6078C12.3581 32.6491 14.774 33.2332 17.3263 33.2332C19.8786 33.2332 22.2945 32.6491 24.448 31.6078L25.8723 16.8533L24.448 2.09872Z" fill="#FFDA44"/>
|
|
@@ -559,6 +566,7 @@ const Yt = [
|
|
|
559
566
|
dialCode: "+226",
|
|
560
567
|
length: "8",
|
|
561
568
|
cardTypes: [],
|
|
569
|
+
allowsZeros: !1,
|
|
562
570
|
icon: `<svg width="33" height="33" viewBox="0 0 33 33" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
563
571
|
<g clip-path="url(#clip0_3333_1428)">
|
|
564
572
|
<path d="M0.178711 16.44C0.178711 7.39367 7.51229 0.0600891 16.5586 0.0600891C25.6049 0.0600891 32.9385 7.39367 32.9385 16.44C32.2263 16.44 16.5586 18.5765 16.5586 18.5765L0.178711 16.44Z" fill="#D80027"/>
|
|
@@ -578,6 +586,7 @@ const Yt = [
|
|
|
578
586
|
dialCode: "+223",
|
|
579
587
|
length: "8",
|
|
580
588
|
cardTypes: [],
|
|
589
|
+
allowsZeros: !1,
|
|
581
590
|
icon: `<svg width="34" height="34" viewBox="0 0 34 34" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
582
591
|
<g clip-path="url(#clip0_3333_2212)">
|
|
583
592
|
<path d="M22.9635 1.37215C21.1891 0.713754 19.2698 0.353333 17.2662 0.353333C15.2626 0.353333 13.3433 0.713754 11.5689 1.37215L10.1445 16.7332L11.5689 32.0943C13.3433 32.7527 15.2626 33.1131 17.2662 33.1131C19.2698 33.1131 21.1891 32.7527 22.9635 32.0943L24.3879 16.7332L22.9635 1.37215Z" fill="#FFDA44"/>
|
|
@@ -598,6 +607,7 @@ const Yt = [
|
|
|
598
607
|
dialCode: "+229",
|
|
599
608
|
length: "8",
|
|
600
609
|
cardTypes: [],
|
|
610
|
+
allowsZeros: !1,
|
|
601
611
|
icon: `<svg width="33" height="34" viewBox="0 0 33 34" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
602
612
|
<g clip-path="url(#clip0_3333_1277)">
|
|
603
613
|
<path d="M10.8027 15.6622L12.2271 32.9022C13.5895 33.2694 15.0216 33.4664 16.5001 33.4664C25.5464 33.4664 32.8799 26.1329 32.8799 17.0865L10.8027 15.6622Z" fill="#D80027"/>
|
|
@@ -616,8 +626,9 @@ const Yt = [
|
|
|
616
626
|
{
|
|
617
627
|
name: "NE",
|
|
618
628
|
dialCode: "+227",
|
|
619
|
-
length: "
|
|
629
|
+
length: "8",
|
|
620
630
|
cardTypes: [],
|
|
631
|
+
allowsZeros: !1,
|
|
621
632
|
icon: `<svg width="34" height="33" viewBox="0 0 34 33" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
622
633
|
<g clip-path="url(#clip0_3333_2402)">
|
|
623
634
|
<path d="M1.92512 9.31811C0.88385 11.4716 0.299805 13.8874 0.299805 16.4398C0.299805 18.9922 0.88385 21.408 1.92512 23.5614L16.6797 24.9858L31.4343 23.5614C32.4755 21.408 33.0596 18.9922 33.0596 16.4398C33.0596 13.8874 32.4755 11.4716 31.4343 9.31811L16.6797 7.89377L1.92512 9.31811Z" fill="#F0F0F0"/>
|
|
@@ -639,6 +650,7 @@ const Yt = [
|
|
|
639
650
|
dialCode: "+228",
|
|
640
651
|
length: "8",
|
|
641
652
|
cardTypes: [],
|
|
653
|
+
allowsZeros: !1,
|
|
642
654
|
icon: `<svg width="34" height="34" viewBox="0 0 34 34" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
643
655
|
<g clip-path="url(#clip0_3333_2934)">
|
|
644
656
|
<path d="M16.6797 33.2932C25.7261 33.2932 33.0596 25.9597 33.0596 16.9133C33.0596 7.86693 25.7261 0.533401 16.6797 0.533401C7.63333 0.533401 0.299805 7.86693 0.299805 16.9133C0.299805 25.9597 7.63333 33.2932 16.6797 33.2932Z" fill="#FFDA44"/>
|
|
@@ -661,6 +673,7 @@ const Yt = [
|
|
|
661
673
|
dialCode: "+245",
|
|
662
674
|
length: "9",
|
|
663
675
|
cardTypes: [],
|
|
676
|
+
allowsZeros: !1,
|
|
664
677
|
icon: `<svg width="34" height="33" viewBox="0 0 34 33" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
665
678
|
<g clip-path="url(#clip0_3333_1929)">
|
|
666
679
|
<path d="M17.2071 0.180161C15.7287 0.180161 14.2965 0.377231 12.934 0.744435L11.5098 16.56L12.9341 32.3757C14.2965 32.7429 15.7287 32.9399 17.2071 32.9399C26.2534 32.9399 33.587 25.6064 33.587 16.56C33.587 7.51374 26.2534 0.180161 17.2071 0.180161Z" fill="#FFDA44"/>
|
|
@@ -683,6 +696,7 @@ const Yt = [
|
|
|
683
696
|
dialCode: "+237",
|
|
684
697
|
length: "9",
|
|
685
698
|
cardTypes: [],
|
|
699
|
+
allowsZeros: !1,
|
|
686
700
|
icon: `<svg width="34" height="34" viewBox="0 0 34 34" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
687
701
|
<g clip-path="url(#clip0_3333_1451)">
|
|
688
702
|
<path d="M24.2087 2.0386C22.0553 0.99733 19.6393 0.413284 17.087 0.413284C14.5347 0.413284 12.1188 0.99733 9.96536 2.0386L8.54102 16.7932L9.96536 31.5477C12.1188 32.589 14.5347 33.1731 17.087 33.1731C19.6393 33.1731 22.0553 32.589 24.2087 31.5477L25.633 16.7932L24.2087 2.0386Z" fill="#D80027"/>
|
|
@@ -703,6 +717,7 @@ const Yt = [
|
|
|
703
717
|
dialCode: "+241",
|
|
704
718
|
length: "8",
|
|
705
719
|
cardTypes: [],
|
|
720
|
+
allowsZeros: !1,
|
|
706
721
|
icon: `<svg width="34" height="34" viewBox="0 0 34 34" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
707
722
|
<g clip-path="url(#clip0_3333_1835)">
|
|
708
723
|
<path d="M32.5076 22.9039C33.166 21.1295 33.5264 19.2102 33.5264 17.2066C33.5264 15.203 33.166 13.2838 32.5076 11.5093L17.1465 10.085L1.78542 11.5093C1.12702 13.2838 0.766602 15.203 0.766602 17.2066C0.766602 19.2102 1.12702 21.1295 1.78542 22.9039L17.1465 24.3283L32.5076 22.9039Z" fill="#FFDA44"/>
|
|
@@ -722,6 +737,7 @@ const Yt = [
|
|
|
722
737
|
dialCode: "+235",
|
|
723
738
|
length: "8",
|
|
724
739
|
cardTypes: [],
|
|
740
|
+
allowsZeros: !1,
|
|
725
741
|
icon: `<svg width="33" height="34" viewBox="0 0 33 34" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
726
742
|
<g clip-path="url(#clip0_3333_1540)">
|
|
727
743
|
<path d="M16.5599 0.413391C14.5563 0.413391 12.637 0.773813 10.8626 1.43221L10.1504 16.7933L10.8625 32.1543C12.637 32.8128 14.5563 33.1732 16.5599 33.1732C18.5635 33.1732 20.4828 32.8128 22.2572 32.1543L22.9694 16.7933L22.2573 1.43221C20.4828 0.773813 18.5635 0.413391 16.5599 0.413391V0.413391Z" fill="#FFDA44"/>
|
|
@@ -741,6 +757,7 @@ const Yt = [
|
|
|
741
757
|
dialCode: "+242",
|
|
742
758
|
length: "9",
|
|
743
759
|
cardTypes: [],
|
|
760
|
+
allowsZeros: !1,
|
|
744
761
|
icon: `<svg width="34" height="33" viewBox="0 0 34 33" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
745
762
|
<g clip-path="url(#clip0_3333_2586)">
|
|
746
763
|
<path d="M9.76585 31.0655L21.799 21.0323L31.8322 8.99919C30.2723 5.97608 27.7988 3.50124 24.7769 1.93933L12.7342 11.9676L2.70605 24.0101C4.26784 27.0322 6.74267 29.5056 9.76585 31.0655Z" fill="#FFDA44"/>
|
|
@@ -760,6 +777,7 @@ const Yt = [
|
|
|
760
777
|
dialCode: "+240",
|
|
761
778
|
length: "9",
|
|
762
779
|
cardTypes: [],
|
|
780
|
+
allowsZeros: !1,
|
|
763
781
|
icon: `<svg width="34" height="34" viewBox="0 0 34 34" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
764
782
|
<g clip-path="url(#clip0_3333_1749)">
|
|
765
783
|
<path d="M16.793 33.2332C25.8393 33.2332 33.1729 25.8997 33.1729 16.8533C33.1729 7.80696 25.8393 0.473434 16.793 0.473434C7.74661 0.473434 0.413086 7.80696 0.413086 16.8533C0.413086 25.8997 7.74661 33.2332 16.793 33.2332Z" fill="#F0F0F0"/>
|
|
@@ -783,6 +801,7 @@ const Yt = [
|
|
|
783
801
|
dialCode: "+236",
|
|
784
802
|
length: "8",
|
|
785
803
|
cardTypes: [],
|
|
804
|
+
allowsZeros: !1,
|
|
786
805
|
icon: `<svg width="34" height="34" viewBox="0 0 34 34" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
787
806
|
<g clip-path="url(#clip0_3333_1502)">
|
|
788
807
|
<path d="M16.8535 33.1724C25.8999 33.1724 33.2334 25.8388 33.2334 16.7925C33.2334 7.74612 25.8999 0.412598 16.8535 0.412598C7.80716 0.412598 0.473633 7.74612 0.473633 16.7925C0.473633 25.8388 7.80716 33.1724 16.8535 33.1724Z" fill="#F0F0F0"/>
|
|
@@ -895,8 +914,8 @@ const Yt = [
|
|
|
895
914
|
</div>`, Mr = () => {
|
|
896
915
|
const n = Date.now().toString(36), e = "xxxx-xxxx-xxx-xxxx".replace(/[x]/g, () => Math.floor(Math.random() * 16).toString(16));
|
|
897
916
|
return `SPF-${n}-${e}`.toUpperCase();
|
|
898
|
-
},
|
|
899
|
-
const e =
|
|
917
|
+
}, ki = (n = "") => n.replace(/\D+/g, ""), Ar = (n) => n.replace(/\D/g, ""), Lr = (n) => n.replace(/\D/g, "").replace(/(\d{4})(?=\d)/g, "$1 ").trim(), xr = (n) => ki(n).slice(0, 3), Tr = (n) => {
|
|
918
|
+
const e = ki(n);
|
|
900
919
|
return e.length >= 3 ? `${e.slice(0, 2)}/${e.slice(2, 4)}` : e;
|
|
901
920
|
}, $n = (n) => {
|
|
902
921
|
const e = Math.floor(n / 60), i = n % 60;
|
|
@@ -956,7 +975,7 @@ h(ln, "removeToast", (e) => {
|
|
|
956
975
|
e.parentElement && e.parentElement.removeChild(e);
|
|
957
976
|
});
|
|
958
977
|
});
|
|
959
|
-
let
|
|
978
|
+
let wi = ln;
|
|
960
979
|
class Qt {
|
|
961
980
|
constructor(e) {
|
|
962
981
|
h(this, "container");
|
|
@@ -1034,7 +1053,7 @@ class Qt {
|
|
|
1034
1053
|
const v = a.replace(/\s+/g, ""), g = this.validateCreditCard(v);
|
|
1035
1054
|
this.filterCreditCardType(o);
|
|
1036
1055
|
const f = (l = this.creditCardTypes[0]) == null ? void 0 : l.name;
|
|
1037
|
-
f &&
|
|
1056
|
+
f && yi.map((y) => {
|
|
1038
1057
|
if (y.name === this.currency)
|
|
1039
1058
|
if (y.cardTypes.includes(f)) {
|
|
1040
1059
|
const k = Pr[f];
|
|
@@ -23622,7 +23641,7 @@ class Kr {
|
|
|
23622
23641
|
t.appendChild(v);
|
|
23623
23642
|
})));
|
|
23624
23643
|
}
|
|
23625
|
-
if (o === "state" && (this.contactDetails.state = a), o === "city" && (this.contactDetails.city = a), o === "code" && (this.contactDetails.code =
|
|
23644
|
+
if (o === "state" && (this.contactDetails.state = a), o === "city" && (this.contactDetails.city = a), o === "code" && (this.contactDetails.code = ki(a), l = ki(a)), s.value = l, this.validateCard())
|
|
23626
23645
|
i && i.removeAttribute("disabled");
|
|
23627
23646
|
else if (i) {
|
|
23628
23647
|
if (i.disabled)
|
|
@@ -24028,7 +24047,7 @@ function nn(n, e, i) {
|
|
|
24028
24047
|
o.searchParams.append("status", n.status), o.searchParams.append("reference", n.reference), window.location.href = o.toString();
|
|
24029
24048
|
}, 1800);
|
|
24030
24049
|
}
|
|
24031
|
-
class
|
|
24050
|
+
class Ri {
|
|
24032
24051
|
constructor(e) {
|
|
24033
24052
|
h(this, "container");
|
|
24034
24053
|
h(this, "transactionIssuesForm");
|
|
@@ -24179,7 +24198,7 @@ function Wr(n) {
|
|
|
24179
24198
|
const i = ["@import", `url(${JSON.stringify(n.href)})`];
|
|
24180
24199
|
return n.layerName === "" ? i.push("layer") : n.layerName && i.push(`layer(${n.layerName})`), n.supportsText && i.push(`supports(${n.supportsText})`), n.media.length && i.push(n.media.mediaText), i.join(" ") + ";";
|
|
24181
24200
|
}
|
|
24182
|
-
function
|
|
24201
|
+
function _i(n) {
|
|
24183
24202
|
try {
|
|
24184
24203
|
const e = n.rules || n.cssRules;
|
|
24185
24204
|
return e ? zr(Array.from(e, Ps).join("")) : null;
|
|
@@ -24191,7 +24210,7 @@ function Ps(n) {
|
|
|
24191
24210
|
let e;
|
|
24192
24211
|
if (Jr(n))
|
|
24193
24212
|
try {
|
|
24194
|
-
e =
|
|
24213
|
+
e = _i(n.styleSheet) || Wr(n);
|
|
24195
24214
|
} catch {
|
|
24196
24215
|
}
|
|
24197
24216
|
else if ($r(n) && n.selectorText.includes(":"))
|
|
@@ -24311,7 +24330,7 @@ function il(n) {
|
|
|
24311
24330
|
}
|
|
24312
24331
|
let Tn, es;
|
|
24313
24332
|
const tl = /url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm, sl = /^(?:[a-z+]+:)?\/\//i, ol = /^www\..*/i, al = /^(data:)([^,]*),(.*)/i;
|
|
24314
|
-
function
|
|
24333
|
+
function Mi(n, e) {
|
|
24315
24334
|
return (n || "").replace(tl, (i, t, s, o, a, l) => {
|
|
24316
24335
|
const d = s || a || l, p = t || o || "";
|
|
24317
24336
|
if (!d)
|
|
@@ -24379,7 +24398,7 @@ function pt() {
|
|
|
24379
24398
|
return n.href = "", n.href;
|
|
24380
24399
|
}
|
|
24381
24400
|
function Ds(n, e, i, t) {
|
|
24382
|
-
return t && (i === "src" || i === "href" && !(e === "use" && t[0] === "#") || i === "xlink:href" && t[0] !== "#" || i === "background" && (e === "table" || e === "td" || e === "th") ? Pn(n, t) : i === "srcset" ? dl(n, t) : i === "style" ?
|
|
24401
|
+
return t && (i === "src" || i === "href" && !(e === "use" && t[0] === "#") || i === "xlink:href" && t[0] !== "#" || i === "background" && (e === "table" || e === "td" || e === "th") ? Pn(n, t) : i === "srcset" ? dl(n, t) : i === "style" ? Mi(t, pt()) : e === "object" && i === "data" ? Pn(n, t) : t);
|
|
24383
24402
|
}
|
|
24384
24403
|
function Hs(n, e, i) {
|
|
24385
24404
|
return (n === "video" || n === "audio") && e === "autoplay";
|
|
@@ -24401,17 +24420,17 @@ function cl(n, e, i) {
|
|
|
24401
24420
|
}
|
|
24402
24421
|
return !1;
|
|
24403
24422
|
}
|
|
24404
|
-
function
|
|
24423
|
+
function Ai(n, e, i) {
|
|
24405
24424
|
if (!n)
|
|
24406
24425
|
return !1;
|
|
24407
24426
|
if (n.nodeType !== n.ELEMENT_NODE)
|
|
24408
|
-
return i ?
|
|
24427
|
+
return i ? Ai(n.parentNode, e, i) : !1;
|
|
24409
24428
|
for (let t = n.classList.length; t--; ) {
|
|
24410
24429
|
const s = n.classList[t];
|
|
24411
24430
|
if (e.test(s))
|
|
24412
24431
|
return !0;
|
|
24413
24432
|
}
|
|
24414
|
-
return i ?
|
|
24433
|
+
return i ? Ai(n.parentNode, e, i) : !1;
|
|
24415
24434
|
}
|
|
24416
24435
|
function Rs(n, e, i, t) {
|
|
24417
24436
|
try {
|
|
@@ -24424,7 +24443,7 @@ function Rs(n, e, i, t) {
|
|
|
24424
24443
|
return !0;
|
|
24425
24444
|
} else if (s.classList.contains(e))
|
|
24426
24445
|
return !0;
|
|
24427
|
-
} else if (
|
|
24446
|
+
} else if (Ai(s, e, t))
|
|
24428
24447
|
return !0;
|
|
24429
24448
|
if (i) {
|
|
24430
24449
|
if (t) {
|
|
@@ -24547,11 +24566,11 @@ function bl(n, e) {
|
|
|
24547
24566
|
const d = a === "STYLE" ? !0 : void 0, p = a === "SCRIPT" ? !0 : void 0;
|
|
24548
24567
|
if (d && l) {
|
|
24549
24568
|
try {
|
|
24550
|
-
n.nextSibling || n.previousSibling || !((i = n.parentNode.sheet) === null || i === void 0) && i.cssRules && (l =
|
|
24569
|
+
n.nextSibling || n.previousSibling || !((i = n.parentNode.sheet) === null || i === void 0) && i.cssRules && (l = _i(n.parentNode.sheet));
|
|
24551
24570
|
} catch (v) {
|
|
24552
24571
|
console.warn(`Cannot get CSS styles from text's parentNode. Error: ${v}`, n);
|
|
24553
24572
|
}
|
|
24554
|
-
l =
|
|
24573
|
+
l = Mi(l, pt());
|
|
24555
24574
|
}
|
|
24556
24575
|
return p && (l = "SCRIPT_PLACEHOLDER"), !d && !p && l && t && (l = s ? s(l, n.parentElement) : l.replace(/[\S]/g, "*")), {
|
|
24557
24576
|
type: ve.Text,
|
|
@@ -24571,11 +24590,11 @@ function fl(n, e) {
|
|
|
24571
24590
|
if (C === "link" && o) {
|
|
24572
24591
|
const _ = Array.from(i.styleSheets).find((I) => I.href === n.href);
|
|
24573
24592
|
let T = null;
|
|
24574
|
-
_ && (T =
|
|
24593
|
+
_ && (T = _i(_)), T && (delete w.rel, delete w.href, w._cssText = Mi(T, _.href));
|
|
24575
24594
|
}
|
|
24576
24595
|
if (C === "style" && n.sheet && !(n.innerText || n.textContent || "").trim().length) {
|
|
24577
|
-
const _ =
|
|
24578
|
-
_ && (w._cssText =
|
|
24596
|
+
const _ = _i(n.sheet);
|
|
24597
|
+
_ && (w._cssText = Mi(_, pt()));
|
|
24579
24598
|
}
|
|
24580
24599
|
if (C === "input" || C === "textarea" || C === "select") {
|
|
24581
24600
|
const _ = n.value, T = n.checked;
|
|
@@ -24901,7 +24920,7 @@ function Qn(n, e, i = {}) {
|
|
|
24901
24920
|
}, l));
|
|
24902
24921
|
};
|
|
24903
24922
|
}
|
|
24904
|
-
function
|
|
24923
|
+
function Oi(n, e, i, t, s = window) {
|
|
24905
24924
|
const o = s.Object.getOwnPropertyDescriptor(n, e);
|
|
24906
24925
|
return s.Object.defineProperty(n, e, t ? i : {
|
|
24907
24926
|
set(a) {
|
|
@@ -24909,7 +24928,7 @@ function Ri(n, e, i, t, s = window) {
|
|
|
24909
24928
|
i.set.call(this, a);
|
|
24910
24929
|
}, 0), o && o.set && o.set.call(this, a);
|
|
24911
24930
|
}
|
|
24912
|
-
}), () =>
|
|
24931
|
+
}), () => Oi(n, e, o || {}, !0);
|
|
24913
24932
|
}
|
|
24914
24933
|
function Vn(n, e, i) {
|
|
24915
24934
|
try {
|
|
@@ -24930,8 +24949,8 @@ function Vn(n, e, i) {
|
|
|
24930
24949
|
};
|
|
24931
24950
|
}
|
|
24932
24951
|
}
|
|
24933
|
-
let
|
|
24934
|
-
/[1-9][0-9]{12}/.test(Date.now().toString()) || (
|
|
24952
|
+
let Li = Date.now;
|
|
24953
|
+
/[1-9][0-9]{12}/.test(Date.now().toString()) || (Li = () => (/* @__PURE__ */ new Date()).getTime());
|
|
24935
24954
|
function Os(n) {
|
|
24936
24955
|
var e, i, t, s, o, a;
|
|
24937
24956
|
const l = n.document;
|
|
@@ -24959,7 +24978,7 @@ function Me(n, e, i, t) {
|
|
|
24959
24978
|
if (typeof e == "string") {
|
|
24960
24979
|
if (s.classList.contains(e) || t && s.closest("." + e) !== null)
|
|
24961
24980
|
return !0;
|
|
24962
|
-
} else if (
|
|
24981
|
+
} else if (Ai(s, e, t))
|
|
24963
24982
|
return !0;
|
|
24964
24983
|
} catch {
|
|
24965
24984
|
}
|
|
@@ -24968,7 +24987,7 @@ function Me(n, e, i, t) {
|
|
|
24968
24987
|
function Cl(n, e) {
|
|
24969
24988
|
return e.getId(n) !== -1;
|
|
24970
24989
|
}
|
|
24971
|
-
function
|
|
24990
|
+
function it(n, e) {
|
|
24972
24991
|
return e.getId(n) === Yn;
|
|
24973
24992
|
}
|
|
24974
24993
|
function js(n, e) {
|
|
@@ -25215,7 +25234,7 @@ class Al {
|
|
|
25215
25234
|
_unchangedStyles: {}
|
|
25216
25235
|
}, this.attributes.push(i), this.attributeMap.set(e, i)), i.attributes.value = Array.from(e.childNodes, (t) => t.textContent || "").join("");
|
|
25217
25236
|
}, this.processMutation = (e) => {
|
|
25218
|
-
if (!
|
|
25237
|
+
if (!it(e.target, this.mirror))
|
|
25219
25238
|
switch (e.type) {
|
|
25220
25239
|
case "characterData": {
|
|
25221
25240
|
const i = e.target.textContent;
|
|
@@ -25279,7 +25298,7 @@ class Al {
|
|
|
25279
25298
|
}
|
|
25280
25299
|
e.addedNodes.forEach((i) => this.genAdds(i, e.target)), e.removedNodes.forEach((i) => {
|
|
25281
25300
|
const t = this.mirror.getId(i), s = qn(e.target) ? this.mirror.getId(e.target.host) : this.mirror.getId(e.target);
|
|
25282
|
-
Me(e.target, this.blockClass, this.blockSelector, !1) ||
|
|
25301
|
+
Me(e.target, this.blockClass, this.blockSelector, !1) || it(i, this.mirror) || !Cl(i, this.mirror) || (this.addedSet.has(i) ? (ut(this.addedSet, i), this.droppedSet.add(i)) : this.addedSet.has(e.target) && t === -1 || js(e.target, this.mirror) || (this.movedSet.has(i) && this.movedMap[ts(t, s)] ? ut(this.movedSet, i) : this.removes.push({
|
|
25283
25302
|
parentId: s,
|
|
25284
25303
|
id: t,
|
|
25285
25304
|
isShadow: qn(e.target) && zn(e.target) ? !0 : void 0
|
|
@@ -25291,7 +25310,7 @@ class Al {
|
|
|
25291
25310
|
}, this.genAdds = (e, i) => {
|
|
25292
25311
|
if (!this.processedNodeManager.inOtherBuffer(e, this) && !(this.addedSet.has(e) || this.movedSet.has(e))) {
|
|
25293
25312
|
if (this.mirror.hasNode(e)) {
|
|
25294
|
-
if (
|
|
25313
|
+
if (it(e, this.mirror))
|
|
25295
25314
|
return;
|
|
25296
25315
|
this.movedSet.add(e);
|
|
25297
25316
|
let t = null;
|
|
@@ -25426,11 +25445,11 @@ function Tl({ mousemoveCb: n, sampling: e, doc: i, mirror: t }) {
|
|
|
25426
25445
|
n(a.map((y) => (y.timeOffset -= f, y)), g), a = [], l = null;
|
|
25427
25446
|
}), o), p = z(Qn(z((g) => {
|
|
25428
25447
|
const f = ii(g), { clientX: y, clientY: k } = lt(g) ? g.changedTouches[0] : g;
|
|
25429
|
-
l || (l =
|
|
25448
|
+
l || (l = Li()), a.push({
|
|
25430
25449
|
x: y,
|
|
25431
25450
|
y: k,
|
|
25432
25451
|
id: t.getId(f),
|
|
25433
|
-
timeOffset:
|
|
25452
|
+
timeOffset: Li() - l
|
|
25434
25453
|
}), d(typeof DragEvent < "u" && g instanceof DragEvent ? q.Drag : g instanceof MouseEvent ? q.MouseMove : q.TouchMove);
|
|
25435
25454
|
}), s, {
|
|
25436
25455
|
trailing: !1
|
|
@@ -25572,7 +25591,7 @@ function Nl({ inputCb: n, doc: e, mirror: i, blockClass: t, blockSelector: s, ig
|
|
|
25572
25591
|
[C.HTMLSelectElement.prototype, "selectedIndex"],
|
|
25573
25592
|
[C.HTMLOptionElement.prototype, "selected"]
|
|
25574
25593
|
];
|
|
25575
|
-
return w && w.set && k.push(...M.map((A) =>
|
|
25594
|
+
return w && w.set && k.push(...M.map((A) => Oi(A[0], A[1], {
|
|
25576
25595
|
set() {
|
|
25577
25596
|
z(g)({
|
|
25578
25597
|
target: this,
|
|
@@ -25583,7 +25602,7 @@ function Nl({ inputCb: n, doc: e, mirror: i, blockClass: t, blockSelector: s, ig
|
|
|
25583
25602
|
k.forEach((A) => A());
|
|
25584
25603
|
});
|
|
25585
25604
|
}
|
|
25586
|
-
function
|
|
25605
|
+
function xi(n) {
|
|
25587
25606
|
const e = [];
|
|
25588
25607
|
function i(t, s) {
|
|
25589
25608
|
if (mi("CSSGroupingRule") && t.parentRule instanceof CSSGroupingRule || mi("CSSMediaRule") && t.parentRule instanceof CSSMediaRule || mi("CSSSupportsRule") && t.parentRule instanceof CSSSupportsRule || mi("CSSConditionRule") && t.parentRule instanceof CSSConditionRule) {
|
|
@@ -25669,7 +25688,7 @@ function Bl({ styleSheetRuleCb: n, mirror: e, stylesheetManager: i }, { win: t }
|
|
|
25669
25688
|
{
|
|
25670
25689
|
rule: C,
|
|
25671
25690
|
index: [
|
|
25672
|
-
...
|
|
25691
|
+
...xi(y),
|
|
25673
25692
|
w || 0
|
|
25674
25693
|
]
|
|
25675
25694
|
}
|
|
@@ -25683,7 +25702,7 @@ function Bl({ styleSheetRuleCb: n, mirror: e, stylesheetManager: i }, { win: t }
|
|
|
25683
25702
|
id: w,
|
|
25684
25703
|
styleId: M,
|
|
25685
25704
|
removes: [
|
|
25686
|
-
{ index: [...
|
|
25705
|
+
{ index: [...xi(y), C] }
|
|
25687
25706
|
]
|
|
25688
25707
|
}), f.apply(y, k);
|
|
25689
25708
|
})
|
|
@@ -25743,7 +25762,7 @@ function Dl({ styleDeclarationCb: n, mirror: e, ignoreCSSAttributes: i, styleshe
|
|
|
25743
25762
|
value: f,
|
|
25744
25763
|
priority: y
|
|
25745
25764
|
},
|
|
25746
|
-
index:
|
|
25765
|
+
index: xi(d.parentRule)
|
|
25747
25766
|
}), l.apply(d, p);
|
|
25748
25767
|
})
|
|
25749
25768
|
});
|
|
@@ -25761,7 +25780,7 @@ function Dl({ styleDeclarationCb: n, mirror: e, ignoreCSSAttributes: i, styleshe
|
|
|
25761
25780
|
remove: {
|
|
25762
25781
|
property: g
|
|
25763
25782
|
},
|
|
25764
|
-
index:
|
|
25783
|
+
index: xi(d.parentRule)
|
|
25765
25784
|
}), l.apply(d, p);
|
|
25766
25785
|
})
|
|
25767
25786
|
}), z(() => {
|
|
@@ -26215,9 +26234,9 @@ const Qs = (n, e, i) => {
|
|
|
26215
26234
|
let o = s.indexOf(n);
|
|
26216
26235
|
return o === -1 && (o = s.length, s.push(n)), o;
|
|
26217
26236
|
};
|
|
26218
|
-
function
|
|
26237
|
+
function Ci(n, e, i) {
|
|
26219
26238
|
if (n instanceof Array)
|
|
26220
|
-
return n.map((t) =>
|
|
26239
|
+
return n.map((t) => Ci(t, e, i));
|
|
26221
26240
|
if (n === null)
|
|
26222
26241
|
return n;
|
|
26223
26242
|
if (n instanceof Float32Array || n instanceof Float64Array || n instanceof Int32Array || n instanceof Uint32Array || n instanceof Uint8Array || n instanceof Uint16Array || n instanceof Int16Array || n instanceof Int8Array || n instanceof Uint8ClampedArray)
|
|
@@ -26236,7 +26255,7 @@ function yi(n, e, i) {
|
|
|
26236
26255
|
return {
|
|
26237
26256
|
rr_type: n.constructor.name,
|
|
26238
26257
|
args: [
|
|
26239
|
-
|
|
26258
|
+
Ci(n.buffer, e, i),
|
|
26240
26259
|
n.byteOffset,
|
|
26241
26260
|
n.byteLength
|
|
26242
26261
|
]
|
|
@@ -26257,7 +26276,7 @@ function yi(n, e, i) {
|
|
|
26257
26276
|
if (n instanceof ImageData)
|
|
26258
26277
|
return {
|
|
26259
26278
|
rr_type: n.constructor.name,
|
|
26260
|
-
args: [
|
|
26279
|
+
args: [Ci(n.data, e, i), n.width, n.height]
|
|
26261
26280
|
};
|
|
26262
26281
|
if (eo(n, e) || typeof n == "object") {
|
|
26263
26282
|
const t = n.constructor.name, s = Qs(n, e, i);
|
|
@@ -26270,7 +26289,7 @@ function yi(n, e, i) {
|
|
|
26270
26289
|
}
|
|
26271
26290
|
return n;
|
|
26272
26291
|
}
|
|
26273
|
-
const Xs = (n, e, i) => n.map((t) =>
|
|
26292
|
+
const Xs = (n, e, i) => n.map((t) => Ci(t, e, i)), eo = (n, e) => !![
|
|
26274
26293
|
"WebGLActiveInfo",
|
|
26275
26294
|
"WebGLBuffer",
|
|
26276
26295
|
"WebGLFramebuffer",
|
|
@@ -26303,7 +26322,7 @@ function Jl(n, e, i, t) {
|
|
|
26303
26322
|
});
|
|
26304
26323
|
s.push(l);
|
|
26305
26324
|
} catch {
|
|
26306
|
-
const d =
|
|
26325
|
+
const d = Oi(e.CanvasRenderingContext2D.prototype, a, {
|
|
26307
26326
|
set(p) {
|
|
26308
26327
|
n(this.canvas, {
|
|
26309
26328
|
type: Hn["2D"],
|
|
@@ -26377,7 +26396,7 @@ function us(n, e, i, t, s, o, a) {
|
|
|
26377
26396
|
});
|
|
26378
26397
|
l.push(v);
|
|
26379
26398
|
} catch {
|
|
26380
|
-
const g =
|
|
26399
|
+
const g = Oi(n, p, {
|
|
26381
26400
|
set(f) {
|
|
26382
26401
|
i(this.canvas, {
|
|
26383
26402
|
type: e,
|
|
@@ -26706,9 +26725,9 @@ class sd {
|
|
|
26706
26725
|
}
|
|
26707
26726
|
}
|
|
26708
26727
|
function me(n) {
|
|
26709
|
-
return Object.assign(Object.assign({}, n), { timestamp:
|
|
26728
|
+
return Object.assign(Object.assign({}, n), { timestamp: Li() });
|
|
26710
26729
|
}
|
|
26711
|
-
let re,
|
|
26730
|
+
let re, Si, tt, Ti = !1;
|
|
26712
26731
|
const He = Yr();
|
|
26713
26732
|
function ti(n = {}) {
|
|
26714
26733
|
const { emit: e, checkoutEveryNms: i, checkoutEveryNth: t, blockClass: s = "rr-block", blockSelector: o = null, ignoreClass: a = "rr-ignore", ignoreSelector: l = null, maskTextClass: d = "rr-mask", maskTextSelector: p = null, inlineStylesheet: v = !0, maskAllInputs: g, maskInputOptions: f, slimDOMOptions: y, maskInputFn: k, maskTextFn: C, hooks: w, packFn: M, sampling: A = {}, dataURLOptions: _ = {}, mousemoveWait: T, recordDOM: I = !0, recordCanvas: K = !1, recordCrossOriginIframes: G = !1, recordAfter: V = n.recordAfter === "DOMContentLoaded" ? n.recordAfter : "load", userTriggeredOnInput: j = !1, collectFonts: te = !1, inlineImages: ge = !1, plugins: U, keepIframeSrcFn: ke = () => !1, ignoreCSSAttributes: le = /* @__PURE__ */ new Set([]), errorHandler: xe } = n;
|
|
@@ -26780,7 +26799,7 @@ function ti(n = {}) {
|
|
|
26780
26799
|
return;
|
|
26781
26800
|
on++;
|
|
26782
26801
|
const ue = t && on >= t, Pe = i && B.timestamp - bn.timestamp > i;
|
|
26783
|
-
(ue || Pe) &&
|
|
26802
|
+
(ue || Pe) && Si(!0);
|
|
26784
26803
|
}
|
|
26785
26804
|
};
|
|
26786
26805
|
const Ze = (B) => {
|
|
@@ -26814,7 +26833,7 @@ function ti(n = {}) {
|
|
|
26814
26833
|
crossOriginIframeStyleMirror: Ee.crossOriginIframeStyleMirror
|
|
26815
26834
|
});
|
|
26816
26835
|
const Ce = new sd();
|
|
26817
|
-
|
|
26836
|
+
tt = new id({
|
|
26818
26837
|
recordCanvas: K,
|
|
26819
26838
|
mutationCb: ae,
|
|
26820
26839
|
win: window,
|
|
@@ -26843,13 +26862,13 @@ function ti(n = {}) {
|
|
|
26843
26862
|
slimDOMOptions: We,
|
|
26844
26863
|
iframeManager: Ee,
|
|
26845
26864
|
stylesheetManager: Ie,
|
|
26846
|
-
canvasManager:
|
|
26865
|
+
canvasManager: tt,
|
|
26847
26866
|
keepIframeSrcFn: ke,
|
|
26848
26867
|
processedNodeManager: Ce
|
|
26849
26868
|
},
|
|
26850
26869
|
mirror: He
|
|
26851
26870
|
});
|
|
26852
|
-
|
|
26871
|
+
Si = (B = !1) => {
|
|
26853
26872
|
if (!I)
|
|
26854
26873
|
return;
|
|
26855
26874
|
re(me({
|
|
@@ -26973,7 +26992,7 @@ function ti(n = {}) {
|
|
|
26973
26992
|
stylesheetManager: Ie,
|
|
26974
26993
|
shadowDomManager: je,
|
|
26975
26994
|
processedNodeManager: Ce,
|
|
26976
|
-
canvasManager:
|
|
26995
|
+
canvasManager: tt,
|
|
26977
26996
|
ignoreCSSAttributes: le,
|
|
26978
26997
|
plugins: ((Pe = U == null ? void 0 : U.filter((J) => J.observer)) === null || Pe === void 0 ? void 0 : Pe.map((J) => ({
|
|
26979
26998
|
observer: J.observer,
|
|
@@ -26996,7 +27015,7 @@ function ti(n = {}) {
|
|
|
26996
27015
|
}
|
|
26997
27016
|
});
|
|
26998
27017
|
const Y = () => {
|
|
26999
|
-
|
|
27018
|
+
Si(), B.push(de(document)), Ti = !0;
|
|
27000
27019
|
};
|
|
27001
27020
|
return document.readyState === "interactive" || document.readyState === "complete" ? Y() : (B.push(_e("DOMContentLoaded", () => {
|
|
27002
27021
|
re(me({
|
|
@@ -27009,14 +27028,14 @@ function ti(n = {}) {
|
|
|
27009
27028
|
data: {}
|
|
27010
27029
|
})), V === "load" && Y();
|
|
27011
27030
|
}, window))), () => {
|
|
27012
|
-
B.forEach((ue) => ue()), Ce.destroy(),
|
|
27031
|
+
B.forEach((ue) => ue()), Ce.destroy(), Ti = !1, xl();
|
|
27013
27032
|
};
|
|
27014
27033
|
} catch (B) {
|
|
27015
27034
|
console.warn(B);
|
|
27016
27035
|
}
|
|
27017
27036
|
}
|
|
27018
27037
|
ti.addCustomEvent = (n, e) => {
|
|
27019
|
-
if (!
|
|
27038
|
+
if (!Ti)
|
|
27020
27039
|
throw new Error("please add custom event after start recording");
|
|
27021
27040
|
re(me({
|
|
27022
27041
|
type: W.Custom,
|
|
@@ -27030,9 +27049,9 @@ ti.freezePage = () => {
|
|
|
27030
27049
|
kn.forEach((n) => n.freeze());
|
|
27031
27050
|
};
|
|
27032
27051
|
ti.takeFullSnapshot = (n) => {
|
|
27033
|
-
if (!
|
|
27052
|
+
if (!Ti)
|
|
27034
27053
|
throw new Error("please take full snapshot after start recording");
|
|
27035
|
-
|
|
27054
|
+
Si(n);
|
|
27036
27055
|
};
|
|
27037
27056
|
ti.mirror = He;
|
|
27038
27057
|
var no = /* @__PURE__ */ ((n) => (n[n.DomContentLoaded = 0] = "DomContentLoaded", n[n.Load = 1] = "Load", n[n.FullSnapshot = 2] = "FullSnapshot", n[n.IncrementalSnapshot = 3] = "IncrementalSnapshot", n[n.Meta = 4] = "Meta", n[n.Custom = 5] = "Custom", n[n.Plugin = 6] = "Plugin", n))(no || {}), Fe = /* @__PURE__ */ ((n) => (n[n.Mutation = 0] = "Mutation", n[n.MouseMove = 1] = "MouseMove", n[n.MouseInteraction = 2] = "MouseInteraction", n[n.Scroll = 3] = "Scroll", n[n.ViewportResize = 4] = "ViewportResize", n[n.Input = 5] = "Input", n[n.TouchMove = 6] = "TouchMove", n[n.MediaInteraction = 7] = "MediaInteraction", n[n.StyleSheetRule = 8] = "StyleSheetRule", n[n.CanvasMutation = 9] = "CanvasMutation", n[n.Font = 10] = "Font", n[n.Log = 11] = "Log", n[n.Drag = 12] = "Drag", n[n.StyleDeclaration = 13] = "StyleDeclaration", n[n.Selection = 14] = "Selection", n[n.AdoptedStyleSheet = 15] = "AdoptedStyleSheet", n[n.CustomElement = 16] = "CustomElement", n))(Fe || {}), Xe = {
|
|
@@ -27054,7 +27073,7 @@ if (typeof window > "u") {
|
|
|
27054
27073
|
};
|
|
27055
27074
|
} else
|
|
27056
27075
|
H = window;
|
|
27057
|
-
var Zn = 24 * 60 * 60 * 1e3,
|
|
27076
|
+
var Zn = 24 * 60 * 60 * 1e3, st = 8 * 1e3, Vi = Array.prototype, od = Function.prototype, io = Object.prototype, dn = Vi.slice, si = io.toString, Ui = io.hasOwnProperty, he = H.console, un = H.navigator, ee = H.document, bi = H.opera, Ei = H.screen, Ge = un.userAgent, ot = od.bind, hs = Vi.forEach, ms = Vi.indexOf, vs = Vi.map, ad = Array.isArray, ct = {}, m = {
|
|
27058
27077
|
trim: function(n) {
|
|
27059
27078
|
return n.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
27060
27079
|
}
|
|
@@ -27109,21 +27128,21 @@ var Zn = 24 * 60 * 60 * 1e3, tt = 8 * 1e3, Oi = Array.prototype, od = Function.p
|
|
|
27109
27128
|
}
|
|
27110
27129
|
}
|
|
27111
27130
|
}
|
|
27112
|
-
},
|
|
27131
|
+
}, at = function(n, e) {
|
|
27113
27132
|
return function() {
|
|
27114
27133
|
return arguments[0] = "[" + e + "] " + arguments[0], n.apply($, arguments);
|
|
27115
27134
|
};
|
|
27116
|
-
},
|
|
27135
|
+
}, Ki = function(n) {
|
|
27117
27136
|
return {
|
|
27118
|
-
log:
|
|
27119
|
-
error:
|
|
27120
|
-
critical:
|
|
27137
|
+
log: at($.log, n),
|
|
27138
|
+
error: at($.error, n),
|
|
27139
|
+
critical: at($.critical, n)
|
|
27121
27140
|
};
|
|
27122
27141
|
};
|
|
27123
27142
|
m.bind = function(n, e) {
|
|
27124
27143
|
var i, t;
|
|
27125
|
-
if (
|
|
27126
|
-
return
|
|
27144
|
+
if (ot && n.bind === ot)
|
|
27145
|
+
return ot.apply(n, dn.call(arguments, 1));
|
|
27127
27146
|
if (!m.isFunction(n))
|
|
27128
27147
|
throw new TypeError();
|
|
27129
27148
|
return i = dn.call(arguments, 2), t = function() {
|
|
@@ -27147,7 +27166,7 @@ m.each = function(n, e, i) {
|
|
|
27147
27166
|
return;
|
|
27148
27167
|
} else
|
|
27149
27168
|
for (var o in n)
|
|
27150
|
-
if (
|
|
27169
|
+
if (Ui.call(n, o) && e.call(i, n[o], o, n) === ct)
|
|
27151
27170
|
return;
|
|
27152
27171
|
}
|
|
27153
27172
|
};
|
|
@@ -27168,7 +27187,7 @@ m.isFunction = function(n) {
|
|
|
27168
27187
|
}
|
|
27169
27188
|
};
|
|
27170
27189
|
m.isArguments = function(n) {
|
|
27171
|
-
return !!(n &&
|
|
27190
|
+
return !!(n && Ui.call(n, "callee"));
|
|
27172
27191
|
};
|
|
27173
27192
|
m.toArray = function(n) {
|
|
27174
27193
|
return n ? n.toArray ? n.toArray() : m.isArray(n) || m.isArguments(n) ? dn.call(n) : m.values(n) : [];
|
|
@@ -27212,7 +27231,7 @@ m.isObject = function(n) {
|
|
|
27212
27231
|
m.isEmptyObject = function(n) {
|
|
27213
27232
|
if (m.isObject(n)) {
|
|
27214
27233
|
for (var e in n)
|
|
27215
|
-
if (
|
|
27234
|
+
if (Ui.call(n, e))
|
|
27216
27235
|
return !1;
|
|
27217
27236
|
return !0;
|
|
27218
27237
|
}
|
|
@@ -27302,7 +27321,7 @@ m.JSONEncode = /* @__PURE__ */ function() {
|
|
|
27302
27321
|
` + f + "]" : "[" + y.join(",") + "]", a = f, v;
|
|
27303
27322
|
}
|
|
27304
27323
|
for (p in k)
|
|
27305
|
-
|
|
27324
|
+
Ui.call(k, p) && (v = t(p, k), v && y.push(i(p) + (a ? ": " : ":") + v));
|
|
27306
27325
|
return v = y.length === 0 ? "{}" : a ? "{" + y.join(",") + f + "}" : "{" + y.join(",") + "}", a = f, v;
|
|
27307
27326
|
}
|
|
27308
27327
|
};
|
|
@@ -27469,7 +27488,7 @@ m.UUID = /* @__PURE__ */ function() {
|
|
|
27469
27488
|
return a.length > 0 && (l = d(l, a)), l.toString(16);
|
|
27470
27489
|
};
|
|
27471
27490
|
return function() {
|
|
27472
|
-
var t = (
|
|
27491
|
+
var t = (Ei.height * Ei.width).toString(16);
|
|
27473
27492
|
return n() + "-" + e() + "-" + i() + "-" + t + "-" + n();
|
|
27474
27493
|
};
|
|
27475
27494
|
}();
|
|
@@ -27578,9 +27597,9 @@ m.cookie = {
|
|
|
27578
27597
|
m.cookie.set(n, "", -1, e, !1, !1, i);
|
|
27579
27598
|
}
|
|
27580
27599
|
};
|
|
27581
|
-
var
|
|
27582
|
-
if (
|
|
27583
|
-
return
|
|
27600
|
+
var rt = null, Pi = function(n, e) {
|
|
27601
|
+
if (rt !== null && !e)
|
|
27602
|
+
return rt;
|
|
27584
27603
|
var i = !0;
|
|
27585
27604
|
try {
|
|
27586
27605
|
n = n || window.localStorage;
|
|
@@ -27589,11 +27608,11 @@ var at = null, Ei = function(n, e) {
|
|
|
27589
27608
|
} catch {
|
|
27590
27609
|
i = !1;
|
|
27591
27610
|
}
|
|
27592
|
-
return
|
|
27611
|
+
return rt = i, i;
|
|
27593
27612
|
};
|
|
27594
27613
|
m.localStorage = {
|
|
27595
27614
|
is_supported: function(n) {
|
|
27596
|
-
var e =
|
|
27615
|
+
var e = Pi(null, n);
|
|
27597
27616
|
return e || $.error("localStorage unsupported; falling back to cookie store"), e;
|
|
27598
27617
|
},
|
|
27599
27618
|
error: function(n) {
|
|
@@ -27844,8 +27863,8 @@ m.info = {
|
|
|
27844
27863
|
}), {
|
|
27845
27864
|
$current_url: m.info.currentUrl(),
|
|
27846
27865
|
$browser_version: m.info.browserVersion(Ge, un.vendor, bi),
|
|
27847
|
-
$screen_height:
|
|
27848
|
-
$screen_width:
|
|
27866
|
+
$screen_height: Ei.height,
|
|
27867
|
+
$screen_width: Ei.width,
|
|
27849
27868
|
mp_lib: "web",
|
|
27850
27869
|
$lib_version: Xe.LIB_VERSION,
|
|
27851
27870
|
$insert_id: bt(),
|
|
@@ -27882,10 +27901,10 @@ var bt = function(n) {
|
|
|
27882
27901
|
}, hd = function() {
|
|
27883
27902
|
var n = H.navigator.onLine;
|
|
27884
27903
|
return m.isUndefined(n) || n;
|
|
27885
|
-
},
|
|
27886
|
-
typeof JSON < "u" && (
|
|
27887
|
-
|
|
27888
|
-
|
|
27904
|
+
}, Ii = null, Ni = null;
|
|
27905
|
+
typeof JSON < "u" && (Ii = JSON.stringify, Ni = JSON.parse);
|
|
27906
|
+
Ii = Ii || m.JSONEncode;
|
|
27907
|
+
Ni = Ni || m.JSONDecode;
|
|
27889
27908
|
m.toArray = m.toArray;
|
|
27890
27909
|
m.isObject = m.isObject;
|
|
27891
27910
|
m.JSONEncode = m.JSONEncode;
|
|
@@ -27994,7 +28013,7 @@ function yt(n, e) {
|
|
|
27994
28013
|
typeof d == "function" && d(0);
|
|
27995
28014
|
};
|
|
27996
28015
|
}
|
|
27997
|
-
var yd =
|
|
28016
|
+
var yd = Ki("lock"), ao = function(n, e) {
|
|
27998
28017
|
e = e || {}, this.storageKey = n, this.storage = e.storage || window.localStorage, this.pollIntervalMS = e.pollIntervalMS || 100, this.timeoutMS = e.timeoutMS || 2e3;
|
|
27999
28018
|
};
|
|
28000
28019
|
ao.prototype.withLock = function(n, e, i) {
|
|
@@ -28023,7 +28042,7 @@ ao.prototype.withLock = function(n, e, i) {
|
|
|
28023
28042
|
return !1;
|
|
28024
28043
|
if (d.setItem(v, t), d.getItem(v) === t)
|
|
28025
28044
|
return !0;
|
|
28026
|
-
if (!
|
|
28045
|
+
if (!Pi(d, !0))
|
|
28027
28046
|
throw new Error("localStorage support dropped while acquiring lock");
|
|
28028
28047
|
return !1;
|
|
28029
28048
|
}, w = function() {
|
|
@@ -28051,7 +28070,7 @@ ao.prototype.withLock = function(n, e, i) {
|
|
|
28051
28070
|
}
|
|
28052
28071
|
};
|
|
28053
28072
|
try {
|
|
28054
|
-
if (
|
|
28073
|
+
if (Pi(d, !0))
|
|
28055
28074
|
w();
|
|
28056
28075
|
else
|
|
28057
28076
|
throw new Error("localStorage support check failed");
|
|
@@ -28059,7 +28078,7 @@ ao.prototype.withLock = function(n, e, i) {
|
|
|
28059
28078
|
f(A);
|
|
28060
28079
|
}
|
|
28061
28080
|
};
|
|
28062
|
-
var fs =
|
|
28081
|
+
var fs = Ki("batch"), pn = function(n, e) {
|
|
28063
28082
|
e = e || {}, this.storageKey = n, this.storage = e.storage || window.localStorage, this.reportError = e.errorReporter || m.bind(fs.error, fs), this.lock = new ao(n, { storage: this.storage }), this.usePersistence = e.usePersistence, this.pid = e.pid || null, this.memQueue = [];
|
|
28064
28083
|
};
|
|
28065
28084
|
pn.prototype.enqueue = function(n, e, i) {
|
|
@@ -28134,7 +28153,7 @@ pn.prototype.removeItemsByID = function(n, e) {
|
|
|
28134
28153
|
e && e(o);
|
|
28135
28154
|
}, m.bind(function(o) {
|
|
28136
28155
|
var a = !1;
|
|
28137
|
-
if (this.reportError("Error acquiring storage lock", o), !
|
|
28156
|
+
if (this.reportError("Error acquiring storage lock", o), !Pi(this.storage, !0) && (a = t(), !a))
|
|
28138
28157
|
try {
|
|
28139
28158
|
this.storage.removeItem(this.storageKey);
|
|
28140
28159
|
} catch (l) {
|
|
@@ -28172,7 +28191,7 @@ pn.prototype.updatePayloads = function(n, e) {
|
|
|
28172
28191
|
pn.prototype.readFromStorage = function() {
|
|
28173
28192
|
var n;
|
|
28174
28193
|
try {
|
|
28175
|
-
n = this.storage.getItem(this.storageKey), n && (n =
|
|
28194
|
+
n = this.storage.getItem(this.storageKey), n && (n = Ni(n), m.isArray(n) || (this.reportError("Invalid storage entry:", n), n = null));
|
|
28176
28195
|
} catch (e) {
|
|
28177
28196
|
this.reportError("Error retrieving queue", e), n = null;
|
|
28178
28197
|
}
|
|
@@ -28180,7 +28199,7 @@ pn.prototype.readFromStorage = function() {
|
|
|
28180
28199
|
};
|
|
28181
28200
|
pn.prototype.saveToStorage = function(n) {
|
|
28182
28201
|
try {
|
|
28183
|
-
return this.storage.setItem(this.storageKey,
|
|
28202
|
+
return this.storage.setItem(this.storageKey, Ii(n)), !0;
|
|
28184
28203
|
} catch (e) {
|
|
28185
28204
|
return this.reportError("Error saving queue", e), !1;
|
|
28186
28205
|
}
|
|
@@ -28188,7 +28207,7 @@ pn.prototype.saveToStorage = function(n) {
|
|
|
28188
28207
|
pn.prototype.clear = function() {
|
|
28189
28208
|
this.memQueue = [], this.usePersistence && this.storage.removeItem(this.storageKey);
|
|
28190
28209
|
};
|
|
28191
|
-
var Cd = 10 * 60 * 1e3, Jn =
|
|
28210
|
+
var Cd = 10 * 60 * 1e3, Jn = Ki("batch"), Ue = function(n, e) {
|
|
28192
28211
|
this.errorReporter = e.errorReporter, this.queue = new pn(n, {
|
|
28193
28212
|
errorReporter: m.bind(this.reportError, this),
|
|
28194
28213
|
storage: e.storage,
|
|
@@ -28305,7 +28324,7 @@ Ue.prototype.reportError = function(n, e) {
|
|
|
28305
28324
|
Jn.error(i);
|
|
28306
28325
|
}
|
|
28307
28326
|
};
|
|
28308
|
-
var wn =
|
|
28327
|
+
var wn = Ki("recorder"), Cs = H.CompressionStream, Sd = {
|
|
28309
28328
|
batch_size: 1e3,
|
|
28310
28329
|
batch_flush_interval_ms: 10 * 1e3,
|
|
28311
28330
|
batch_request_timeout_ms: 90 * 1e3,
|
|
@@ -28344,7 +28363,7 @@ Ke.prototype.startRecording = function(n) {
|
|
|
28344
28363
|
wn.log("Recording already in progress, skipping startRecording.");
|
|
28345
28364
|
return;
|
|
28346
28365
|
}
|
|
28347
|
-
this.recordMaxMs = this.get_config("record_max_ms"), this.recordMaxMs > Zn && (this.recordMaxMs = Zn, wn.critical("record_max_ms cannot be greater than " + Zn + "ms. Capping value.")), this.recordMinMs = this.get_config("record_min_ms"), this.recordMinMs >
|
|
28366
|
+
this.recordMaxMs = this.get_config("record_max_ms"), this.recordMaxMs > Zn && (this.recordMaxMs = Zn, wn.critical("record_max_ms cannot be greater than " + Zn + "ms. Capping value.")), this.recordMinMs = this.get_config("record_min_ms"), this.recordMinMs > st && (this.recordMinMs = st, wn.critical("record_min_ms cannot be greater than " + st + "ms. Capping value.")), this.recEvents = [], this.seqNo = 0, this.replayStartTime = (/* @__PURE__ */ new Date()).getTime(), this.replayId = m.UUID(), n || this.recordMinMs > 0 ? this.batcher.stop() : this.batcher.start();
|
|
28348
28367
|
var e = m.bind(function() {
|
|
28349
28368
|
clearTimeout(this.idleTimeoutId), this.idleTimeoutId = setTimeout(m.bind(function() {
|
|
28350
28369
|
wn.log("Idle timeout reached, restarting recording."), this.resetRecording();
|
|
@@ -28485,14 +28504,14 @@ Rn.prototype.after_track_handler = function(n, e) {
|
|
|
28485
28504
|
window.location = e.href;
|
|
28486
28505
|
}, 0);
|
|
28487
28506
|
};
|
|
28488
|
-
var
|
|
28507
|
+
var ji = function() {
|
|
28489
28508
|
this.override_event = "submit";
|
|
28490
28509
|
};
|
|
28491
|
-
m.inherit(
|
|
28492
|
-
|
|
28510
|
+
m.inherit(ji, tn);
|
|
28511
|
+
ji.prototype.event_handler = function(n, e, i) {
|
|
28493
28512
|
i.element = e, n.preventDefault();
|
|
28494
28513
|
};
|
|
28495
|
-
|
|
28514
|
+
ji.prototype.after_track_handler = function(n, e) {
|
|
28496
28515
|
setTimeout(function() {
|
|
28497
28516
|
e.element.submit();
|
|
28498
28517
|
}, 0);
|
|
@@ -28724,7 +28743,7 @@ R.prototype.track_charge = R.prototype.track_charge;
|
|
|
28724
28743
|
R.prototype.clear_charges = R.prototype.clear_charges;
|
|
28725
28744
|
R.prototype.delete_user = R.prototype.delete_user;
|
|
28726
28745
|
R.prototype.toString = R.prototype.toString;
|
|
28727
|
-
var Ct = "__mps", St = "__mpso", kt = "__mpus", wt = "__mpa", _t = "__mpap", Mt = "__mpr", At = "__mpu", lo = "$people_distinct_id",
|
|
28746
|
+
var Ct = "__mps", St = "__mpso", kt = "__mpus", wt = "__mpa", _t = "__mpap", Mt = "__mpr", At = "__mpu", lo = "$people_distinct_id", Bi = "__alias", Xn = "__timers", Md = [
|
|
28728
28747
|
Ct,
|
|
28729
28748
|
St,
|
|
28730
28749
|
kt,
|
|
@@ -28733,7 +28752,7 @@ var Ct = "__mps", St = "__mpso", kt = "__mpus", wt = "__mpa", _t = "__mpap", Mt
|
|
|
28733
28752
|
Mt,
|
|
28734
28753
|
At,
|
|
28735
28754
|
lo,
|
|
28736
|
-
|
|
28755
|
+
Bi,
|
|
28737
28756
|
Xn
|
|
28738
28757
|
], F = function(n) {
|
|
28739
28758
|
this.props = {}, this.campaign_params_saved = !1, n.persistence_name ? this.name = "mp_" + n.persistence_name : this.name = "mp_" + n.token + "_mixpanel";
|
|
@@ -28884,8 +28903,8 @@ var Lt, uo = function(n, e) {
|
|
|
28884
28903
|
}, Se, co = 0, Ad = 1, Ld = function(n) {
|
|
28885
28904
|
return n;
|
|
28886
28905
|
}, ei = function() {
|
|
28887
|
-
}, Ne = "mixpanel", ho = "base64", xd = "json", xt = "$device:", Dn = H.XMLHttpRequest && "withCredentials" in new XMLHttpRequest(), mo = !Dn && Ge.indexOf("MSIE") === -1 && Ge.indexOf("Mozilla") === -1,
|
|
28888
|
-
un.sendBeacon && (
|
|
28906
|
+
}, Ne = "mixpanel", ho = "base64", xd = "json", xt = "$device:", Dn = H.XMLHttpRequest && "withCredentials" in new XMLHttpRequest(), mo = !Dn && Ge.indexOf("MSIE") === -1 && Ge.indexOf("Mozilla") === -1, Di = null;
|
|
28907
|
+
un.sendBeacon && (Di = function() {
|
|
28889
28908
|
return un.sendBeacon.apply(un, arguments);
|
|
28890
28909
|
});
|
|
28891
28910
|
var vo = {
|
|
@@ -29004,7 +29023,7 @@ L.prototype._init = function(n, e, i) {
|
|
|
29004
29023
|
this._batch_requests = !1, $.log("Turning off Mixpanel request-queueing; needs XHR and localStorage support"), m.each(this.get_batcher_configs(), function(d) {
|
|
29005
29024
|
$.log("Clearing batch queue " + d.queue_key), m.localStorage.remove(d.queue_key);
|
|
29006
29025
|
});
|
|
29007
|
-
else if (this.init_batchers(),
|
|
29026
|
+
else if (this.init_batchers(), Di && H.addEventListener) {
|
|
29008
29027
|
var o = m.bind(function() {
|
|
29009
29028
|
this.request_batchers.events.stopped || this.request_batchers.events.flush({ unloading: !0 });
|
|
29010
29029
|
}, this);
|
|
@@ -29120,7 +29139,7 @@ L.prototype._send_request = function(n, e, i, t) {
|
|
|
29120
29139
|
verbose: this.get_config("verbose")
|
|
29121
29140
|
}, a = null;
|
|
29122
29141
|
!t && (m.isFunction(i) || typeof i == "string") && (t = i, i = null), i = m.extend(o, i || {}), Dn || (i.method = "GET");
|
|
29123
|
-
var l = i.method === "POST", d =
|
|
29142
|
+
var l = i.method === "POST", d = Di && l && i.transport.toLowerCase() === "sendbeacon", p = i.verbose;
|
|
29124
29143
|
e.verbose && (p = !0), this.get_config("test") && (e.test = 1), p && (e.verbose = 1), this.get_config("img") && (e.img = 1), Dn || (t ? e.callback = t : (p || this.get_config("test")) && (e.callback = "(function(){})")), e.ip = this.get_config("ip") ? 1 : 0, e._ = (/* @__PURE__ */ new Date()).getTime().toString(), l && (a = "data=" + encodeURIComponent(e.data), delete e.data), n += "?" + m.HTTPBuildQuery(e);
|
|
29125
29144
|
var v = this;
|
|
29126
29145
|
if ("img" in e) {
|
|
@@ -29128,7 +29147,7 @@ L.prototype._send_request = function(n, e, i, t) {
|
|
|
29128
29147
|
g.src = n, ee.body.appendChild(g);
|
|
29129
29148
|
} else if (d) {
|
|
29130
29149
|
try {
|
|
29131
|
-
s =
|
|
29150
|
+
s = Di(n, a);
|
|
29132
29151
|
} catch (M) {
|
|
29133
29152
|
v.report_error(M), s = !1;
|
|
29134
29153
|
}
|
|
@@ -29379,7 +29398,7 @@ L.prototype.track_links = function() {
|
|
|
29379
29398
|
return this._track_dom.call(this, Rn, arguments);
|
|
29380
29399
|
};
|
|
29381
29400
|
L.prototype.track_forms = function() {
|
|
29382
|
-
return this._track_dom.call(this,
|
|
29401
|
+
return this._track_dom.call(this, ji, arguments);
|
|
29383
29402
|
};
|
|
29384
29403
|
L.prototype.time_event = function(n) {
|
|
29385
29404
|
if (m.isUndefined(n)) {
|
|
@@ -29425,7 +29444,7 @@ L.prototype.identify = function(n, e, i, t, s, o, a, l) {
|
|
|
29425
29444
|
$device_id: p
|
|
29426
29445
|
}, "");
|
|
29427
29446
|
}
|
|
29428
|
-
n !== d && n !== this.get_property(
|
|
29447
|
+
n !== d && n !== this.get_property(Bi) && (this.unregister(Bi), this.register({ distinct_id: n })), this._flags.identify_called = !0, this.people._flush(e, i, t, s, o, a, l), n !== d && this.track("$identify", {
|
|
29429
29448
|
distinct_id: n,
|
|
29430
29449
|
$anon_distinct_id: d
|
|
29431
29450
|
}, { skip_hooks: !0 });
|
|
@@ -29445,7 +29464,7 @@ L.prototype.alias = function(n, e) {
|
|
|
29445
29464
|
if (n === this.get_property(lo))
|
|
29446
29465
|
return this.report_error("Attempting to create alias for existing People user - aborting."), -2;
|
|
29447
29466
|
var i = this;
|
|
29448
|
-
return m.isUndefined(e) && (e = this.get_distinct_id()), n !== e ? (this._register_single(
|
|
29467
|
+
return m.isUndefined(e) && (e = this.get_distinct_id()), n !== e ? (this._register_single(Bi, n), this.track("$create_alias", {
|
|
29449
29468
|
alias: n,
|
|
29450
29469
|
distinct_id: e
|
|
29451
29470
|
}, {
|
|
@@ -29913,7 +29932,7 @@ class Rd {
|
|
|
29913
29932
|
reference: this.reference,
|
|
29914
29933
|
encryptedCard: o
|
|
29915
29934
|
};
|
|
29916
|
-
return
|
|
29935
|
+
return Hi(
|
|
29917
29936
|
this.token,
|
|
29918
29937
|
d,
|
|
29919
29938
|
this.rdtCode,
|
|
@@ -30349,7 +30368,7 @@ class Rd {
|
|
|
30349
30368
|
}), this.avsForm.renderComponent();
|
|
30350
30369
|
break;
|
|
30351
30370
|
case 8:
|
|
30352
|
-
this.transactionIssuesScreen = new
|
|
30371
|
+
this.transactionIssuesScreen = new Ri({
|
|
30353
30372
|
container: this.contents,
|
|
30354
30373
|
onAction: () => {
|
|
30355
30374
|
var a;
|
|
@@ -31199,7 +31218,7 @@ var go = { exports: {} };
|
|
|
31199
31218
|
}
|
|
31200
31219
|
log(r, ...u) {
|
|
31201
31220
|
var b = Ie.apply(this, arguments);
|
|
31202
|
-
|
|
31221
|
+
Xi.log ? Xi.log(b) : Xi.logToConsole && r.bind(this)(b);
|
|
31203
31222
|
}
|
|
31204
31223
|
}
|
|
31205
31224
|
var oe = new jn(), ko = function(c, r, u, b, S) {
|
|
@@ -31260,30 +31279,30 @@ var go = { exports: {} };
|
|
|
31260
31279
|
name: "jsonp",
|
|
31261
31280
|
getAgent: Ao
|
|
31262
31281
|
}, xo = Lo;
|
|
31263
|
-
function
|
|
31282
|
+
function Fi(c, r, u) {
|
|
31264
31283
|
var b = c + (r.useTLS ? "s" : ""), S = r.useTLS ? r.hostTLS : r.hostNonTLS;
|
|
31265
31284
|
return b + "://" + S + u;
|
|
31266
31285
|
}
|
|
31267
|
-
function
|
|
31286
|
+
function Gi(c, r) {
|
|
31268
31287
|
var u = "/app/" + c, b = "?protocol=" + d.PROTOCOL + "&client=js&version=" + d.VERSION + (r ? "&" + r : "");
|
|
31269
31288
|
return u + b;
|
|
31270
31289
|
}
|
|
31271
31290
|
var To = {
|
|
31272
31291
|
getInitial: function(c, r) {
|
|
31273
|
-
var u = (r.httpPath || "") +
|
|
31274
|
-
return
|
|
31292
|
+
var u = (r.httpPath || "") + Gi(c, "flash=false");
|
|
31293
|
+
return Fi("ws", r, u);
|
|
31275
31294
|
}
|
|
31276
31295
|
}, Eo = {
|
|
31277
31296
|
getInitial: function(c, r) {
|
|
31278
|
-
var u = (r.httpPath || "/pusher") +
|
|
31279
|
-
return
|
|
31297
|
+
var u = (r.httpPath || "/pusher") + Gi(c);
|
|
31298
|
+
return Fi("http", r, u);
|
|
31280
31299
|
}
|
|
31281
31300
|
}, Po = {
|
|
31282
31301
|
getInitial: function(c, r) {
|
|
31283
|
-
return
|
|
31302
|
+
return Fi("http", r, r.httpPath || "/pusher");
|
|
31284
31303
|
},
|
|
31285
31304
|
getPath: function(c, r) {
|
|
31286
|
-
return
|
|
31305
|
+
return Gi(c);
|
|
31287
31306
|
}
|
|
31288
31307
|
};
|
|
31289
31308
|
class Io {
|
|
@@ -31291,10 +31310,10 @@ var go = { exports: {} };
|
|
|
31291
31310
|
this._callbacks = {};
|
|
31292
31311
|
}
|
|
31293
31312
|
get(r) {
|
|
31294
|
-
return this._callbacks[
|
|
31313
|
+
return this._callbacks[qi(r)];
|
|
31295
31314
|
}
|
|
31296
31315
|
add(r, u, b) {
|
|
31297
|
-
var S =
|
|
31316
|
+
var S = qi(r);
|
|
31298
31317
|
this._callbacks[S] = this._callbacks[S] || [], this._callbacks[S].push({
|
|
31299
31318
|
fn: u,
|
|
31300
31319
|
context: b
|
|
@@ -31305,7 +31324,7 @@ var go = { exports: {} };
|
|
|
31305
31324
|
this._callbacks = {};
|
|
31306
31325
|
return;
|
|
31307
31326
|
}
|
|
31308
|
-
var S = r ? [
|
|
31327
|
+
var S = r ? [qi(r)] : je(this._callbacks);
|
|
31309
31328
|
u || b ? this.removeCallback(S, u, b) : this.removeAllCallbacks(S);
|
|
31310
31329
|
}
|
|
31311
31330
|
removeCallback(r, u, b) {
|
|
@@ -31321,7 +31340,7 @@ var go = { exports: {} };
|
|
|
31321
31340
|
}, this);
|
|
31322
31341
|
}
|
|
31323
31342
|
}
|
|
31324
|
-
function
|
|
31343
|
+
function qi(c) {
|
|
31325
31344
|
return "_" + c;
|
|
31326
31345
|
}
|
|
31327
31346
|
class Je {
|
|
@@ -31722,7 +31741,7 @@ var go = { exports: {} };
|
|
|
31722
31741
|
this.timeline.isEmpty() || this.timeline.send(O.TimelineTransport.getAgent(this, r), u);
|
|
31723
31742
|
}
|
|
31724
31743
|
}
|
|
31725
|
-
class
|
|
31744
|
+
class zi extends Je {
|
|
31726
31745
|
constructor(r, u) {
|
|
31727
31746
|
super(function(b, S) {
|
|
31728
31747
|
oe.debug("No callbacks on " + r + " for " + b);
|
|
@@ -31784,7 +31803,7 @@ var go = { exports: {} };
|
|
|
31784
31803
|
this.subscriptionCancelled = !1;
|
|
31785
31804
|
}
|
|
31786
31805
|
}
|
|
31787
|
-
class
|
|
31806
|
+
class Wi extends zi {
|
|
31788
31807
|
authorize(r, u) {
|
|
31789
31808
|
return this.pusher.config.channelAuthorizer({
|
|
31790
31809
|
channelName: this.name,
|
|
@@ -31851,7 +31870,7 @@ var go = { exports: {} };
|
|
|
31851
31870
|
Z((b = b.apply(c, r || [])).next());
|
|
31852
31871
|
});
|
|
31853
31872
|
};
|
|
31854
|
-
class $o extends
|
|
31873
|
+
class $o extends Wi {
|
|
31855
31874
|
constructor(r, u) {
|
|
31856
31875
|
super(r, u), this.members = new Zo();
|
|
31857
31876
|
}
|
|
@@ -31906,8 +31925,8 @@ var go = { exports: {} };
|
|
|
31906
31925
|
this.members.reset(), super.disconnect();
|
|
31907
31926
|
}
|
|
31908
31927
|
}
|
|
31909
|
-
var Yo = s(1),
|
|
31910
|
-
class Qo extends
|
|
31928
|
+
var Yo = s(1), Zi = s(0);
|
|
31929
|
+
class Qo extends Wi {
|
|
31911
31930
|
constructor(r, u, b) {
|
|
31912
31931
|
super(r, u), this.key = null, this.nacl = b;
|
|
31913
31932
|
}
|
|
@@ -31922,7 +31941,7 @@ var go = { exports: {} };
|
|
|
31922
31941
|
u(new Error(`No shared_secret key in auth payload for encrypted channel: ${this.name}`), null);
|
|
31923
31942
|
return;
|
|
31924
31943
|
}
|
|
31925
|
-
this.key = Object(
|
|
31944
|
+
this.key = Object(Zi.decode)(x), delete S.shared_secret, u(null, S);
|
|
31926
31945
|
});
|
|
31927
31946
|
}
|
|
31928
31947
|
trigger(r, u) {
|
|
@@ -31945,12 +31964,12 @@ var go = { exports: {} };
|
|
|
31945
31964
|
oe.error("Unexpected format for encrypted event, expected object with `ciphertext` and `nonce` fields, got: " + u);
|
|
31946
31965
|
return;
|
|
31947
31966
|
}
|
|
31948
|
-
let b = Object(
|
|
31967
|
+
let b = Object(Zi.decode)(u.ciphertext);
|
|
31949
31968
|
if (b.length < this.nacl.secretbox.overheadLength) {
|
|
31950
31969
|
oe.error(`Expected encrypted event ciphertext length to be ${this.nacl.secretbox.overheadLength}, got: ${b.length}`);
|
|
31951
31970
|
return;
|
|
31952
31971
|
}
|
|
31953
|
-
let S = Object(
|
|
31972
|
+
let S = Object(Zi.decode)(u.nonce);
|
|
31954
31973
|
if (S.length < this.nacl.secretbox.nonceLength) {
|
|
31955
31974
|
oe.error(`Expected encrypted event nonce length to be ${this.nacl.secretbox.nonceLength}, got: ${S.length}`);
|
|
31956
31975
|
return;
|
|
@@ -32184,10 +32203,10 @@ var go = { exports: {} };
|
|
|
32184
32203
|
return new Xo(c, r);
|
|
32185
32204
|
},
|
|
32186
32205
|
createChannel(c, r) {
|
|
32187
|
-
return new
|
|
32206
|
+
return new zi(c, r);
|
|
32188
32207
|
},
|
|
32189
32208
|
createPrivateChannel(c, r) {
|
|
32190
|
-
return new
|
|
32209
|
+
return new Wi(c, r);
|
|
32191
32210
|
},
|
|
32192
32211
|
createPresenceChannel(c, r) {
|
|
32193
32212
|
return new $o(c, r);
|
|
@@ -32258,7 +32277,7 @@ var go = { exports: {} };
|
|
|
32258
32277
|
};
|
|
32259
32278
|
}
|
|
32260
32279
|
}
|
|
32261
|
-
class
|
|
32280
|
+
class Ji {
|
|
32262
32281
|
constructor(r) {
|
|
32263
32282
|
this.strategies = r;
|
|
32264
32283
|
}
|
|
@@ -32335,14 +32354,14 @@ var go = { exports: {} };
|
|
|
32335
32354
|
};
|
|
32336
32355
|
}
|
|
32337
32356
|
}
|
|
32338
|
-
function
|
|
32357
|
+
function $i(c) {
|
|
32339
32358
|
return "pusherTransport" + (c ? "TLS" : "NonTLS");
|
|
32340
32359
|
}
|
|
32341
32360
|
function ra(c) {
|
|
32342
32361
|
var r = O.getLocalStorage();
|
|
32343
32362
|
if (r)
|
|
32344
32363
|
try {
|
|
32345
|
-
var u = r[
|
|
32364
|
+
var u = r[$i(c)];
|
|
32346
32365
|
if (u)
|
|
32347
32366
|
return JSON.parse(u);
|
|
32348
32367
|
} catch {
|
|
@@ -32354,7 +32373,7 @@ var go = { exports: {} };
|
|
|
32354
32373
|
var S = O.getLocalStorage();
|
|
32355
32374
|
if (S)
|
|
32356
32375
|
try {
|
|
32357
|
-
S[
|
|
32376
|
+
S[$i(c)] = gn({
|
|
32358
32377
|
timestamp: ae.now(),
|
|
32359
32378
|
transport: r,
|
|
32360
32379
|
latency: u,
|
|
@@ -32367,7 +32386,7 @@ var go = { exports: {} };
|
|
|
32367
32386
|
var r = O.getLocalStorage();
|
|
32368
32387
|
if (r)
|
|
32369
32388
|
try {
|
|
32370
|
-
delete r[
|
|
32389
|
+
delete r[$i(c)];
|
|
32371
32390
|
} catch {
|
|
32372
32391
|
}
|
|
32373
32392
|
}
|
|
@@ -32456,19 +32475,19 @@ var go = { exports: {} };
|
|
|
32456
32475
|
], D), Wt = new Cn([
|
|
32457
32476
|
new Fn(Gn(Gt), Gt, ar)
|
|
32458
32477
|
], D), Zt = new Cn([
|
|
32459
|
-
new Fn(Gn(zt), new
|
|
32478
|
+
new Fn(Gn(zt), new Ji([
|
|
32460
32479
|
zt,
|
|
32461
32480
|
new ui(Wt, { delay: 4e3 })
|
|
32462
32481
|
]), Wt)
|
|
32463
|
-
], D),
|
|
32464
|
-
return r.useTLS ?
|
|
32482
|
+
], D), et = new Fn(Gn(Zt), Zt, lr), nt;
|
|
32483
|
+
return r.useTLS ? nt = new Ji([
|
|
32465
32484
|
qt,
|
|
32466
|
-
new ui(
|
|
32467
|
-
]) :
|
|
32485
|
+
new ui(et, { delay: 2e3 })
|
|
32486
|
+
]) : nt = new Ji([
|
|
32468
32487
|
qt,
|
|
32469
32488
|
new ui(rr, { delay: 2e3 }),
|
|
32470
|
-
new ui(
|
|
32471
|
-
]), new aa(new da(new Fn(Gn(ce),
|
|
32489
|
+
new ui(et, { delay: 5e3 })
|
|
32490
|
+
]), new aa(new da(new Fn(Gn(ce), nt, et)), b, {
|
|
32472
32491
|
ttl: 18e5,
|
|
32473
32492
|
timeline: r.timeline,
|
|
32474
32493
|
useTLS: r.useTLS
|
|
@@ -32529,11 +32548,11 @@ var go = { exports: {} };
|
|
|
32529
32548
|
return this.position === r.length && r.length > pa;
|
|
32530
32549
|
}
|
|
32531
32550
|
}
|
|
32532
|
-
var
|
|
32551
|
+
var Yi;
|
|
32533
32552
|
(function(c) {
|
|
32534
32553
|
c[c.CONNECTING = 0] = "CONNECTING", c[c.OPEN = 1] = "OPEN", c[c.CLOSED = 3] = "CLOSED";
|
|
32535
|
-
})(
|
|
32536
|
-
var Sn =
|
|
32554
|
+
})(Yi || (Yi = {}));
|
|
32555
|
+
var Sn = Yi, fa = 1;
|
|
32537
32556
|
class ga {
|
|
32538
32557
|
constructor(r, u) {
|
|
32539
32558
|
this.hooks = r, this.session = Ut(1e3) + "/" + ka(8), this.location = ya(u), this.readyState = Sn.CONNECTING, this.openStream();
|
|
@@ -32805,11 +32824,11 @@ var go = { exports: {} };
|
|
|
32805
32824
|
return (window.crypto || window.msCrypto).getRandomValues(new Uint32Array(1))[0] / Math.pow(2, 32);
|
|
32806
32825
|
}() * c);
|
|
32807
32826
|
}
|
|
32808
|
-
}, O = Ia,
|
|
32827
|
+
}, O = Ia, Qi;
|
|
32809
32828
|
(function(c) {
|
|
32810
32829
|
c[c.ERROR = 3] = "ERROR", c[c.INFO = 6] = "INFO", c[c.DEBUG = 7] = "DEBUG";
|
|
32811
|
-
})(
|
|
32812
|
-
var ci =
|
|
32830
|
+
})(Qi || (Qi = {}));
|
|
32831
|
+
var ci = Qi;
|
|
32813
32832
|
class Na {
|
|
32814
32833
|
constructor(r, u, b) {
|
|
32815
32834
|
this.key = r, this.session = u, this.events = [], this.options = b || {}, this.sent = 0, this.uniqueID = 0;
|
|
@@ -33103,7 +33122,7 @@ var go = { exports: {} };
|
|
|
33103
33122
|
const r = (u) => {
|
|
33104
33123
|
u.subscriptionPending && u.subscriptionCancelled ? u.reinstateSubscription() : !u.subscriptionPending && this.pusher.connection.state === "connected" && u.subscribe();
|
|
33105
33124
|
};
|
|
33106
|
-
this.serverToUserChannel = new
|
|
33125
|
+
this.serverToUserChannel = new zi(`#server-to-user-${this.user_data.id}`, this.pusher), this.serverToUserChannel.bind_global((u, b) => {
|
|
33107
33126
|
u.indexOf("pusher_internal:") === 0 || u.indexOf("pusher:") === 0 || this.emit(u, b);
|
|
33108
33127
|
}), r(this.serverToUserChannel);
|
|
33109
33128
|
}
|
|
@@ -33225,7 +33244,7 @@ var go = { exports: {} };
|
|
|
33225
33244
|
}
|
|
33226
33245
|
}
|
|
33227
33246
|
ye.instances = [], ye.isReady = !1, ye.logToConsole = !1, ye.Runtime = O, ye.ScriptReceivers = O.ScriptReceivers, ye.DependenciesReceivers = O.DependenciesReceivers, ye.auth_callbacks = O.auth_callbacks;
|
|
33228
|
-
var
|
|
33247
|
+
var Xi = t.default = ye;
|
|
33229
33248
|
function tr(c) {
|
|
33230
33249
|
if (c == null)
|
|
33231
33250
|
throw "You must pass your app key when you instantiate Pusher.";
|
|
@@ -33265,7 +33284,9 @@ class ks {
|
|
|
33265
33284
|
a
|
|
33266
33285
|
);
|
|
33267
33286
|
}), l && l.addEventListener("click", () => {
|
|
33268
|
-
this.onAction(5)
|
|
33287
|
+
this.onAction(5), P.track("initiate_payment_verification", {
|
|
33288
|
+
payment_method: "Transfer"
|
|
33289
|
+
});
|
|
33269
33290
|
});
|
|
33270
33291
|
}
|
|
33271
33292
|
startTimer(e) {
|
|
@@ -33652,7 +33673,7 @@ class zd {
|
|
|
33652
33673
|
channel: "bank_transfer",
|
|
33653
33674
|
reference: this.reference
|
|
33654
33675
|
};
|
|
33655
|
-
return
|
|
33676
|
+
return Hi(
|
|
33656
33677
|
this.token,
|
|
33657
33678
|
a,
|
|
33658
33679
|
this.rdtCode,
|
|
@@ -33792,7 +33813,7 @@ class zd {
|
|
|
33792
33813
|
}), this.transferConfirmationEnd.renderComponent();
|
|
33793
33814
|
break;
|
|
33794
33815
|
case 9:
|
|
33795
|
-
this.transactionIssuesScreen = new
|
|
33816
|
+
this.transactionIssuesScreen = new Ri({
|
|
33796
33817
|
container: this.contents,
|
|
33797
33818
|
onAction: () => {
|
|
33798
33819
|
var s;
|
|
@@ -34047,7 +34068,7 @@ class Zd extends Et {
|
|
|
34047
34068
|
}
|
|
34048
34069
|
return e.json();
|
|
34049
34070
|
} catch (e) {
|
|
34050
|
-
throw e instanceof se ? (
|
|
34071
|
+
throw e instanceof se ? (wi.showToast(e.message, "error", 9e3), console.error(`FetchError: ${e.message} (status: ${e.status})`)) : e instanceof Qe ? console.error(`AuthorizationError: ${e.message}`) : console.error(`Unexpected error: ${e}`), e;
|
|
34051
34072
|
}
|
|
34052
34073
|
}
|
|
34053
34074
|
}
|
|
@@ -34844,7 +34865,7 @@ class su {
|
|
|
34844
34865
|
const ou = `<div class="flex items-center justify-center md:justify-between w-full text-xxs mt-5">
|
|
34845
34866
|
<div class="text-tone-60"><span>Powered by</span> <span class="font-bold">Spotflow</span></div>
|
|
34846
34867
|
<div class="align-center text-tone-60 hidden md:flex gap-4">
|
|
34847
|
-
<span id="test-cards-link" class="hover:font-bold">Test Cards</span>
|
|
34868
|
+
<!-- <span id="test-cards-link" class="hover:font-bold">Test Cards</span> -->
|
|
34848
34869
|
<a href="https://ribbon-scowl-35f.notion.site/Terms-Conditions-940742f0a1b144498ffc1786c5bc6a08?pvs=4" target="_blank" class="hover:font-bold">Terms</a>
|
|
34849
34870
|
<a href="https://ribbon-scowl-35f.notion.site/Privacy-Policy-Spotflow-3997ee8d923d4cd39a3dc43b7249b713" target="_blank" class="hover:font-bold">Privacy</a>
|
|
34850
34871
|
<a href="mailto:hello@spotflow.one" class="hover:font-bold">Contact</a>
|
|
@@ -35487,7 +35508,7 @@ class cu {
|
|
|
35487
35508
|
"#phone-number-error"
|
|
35488
35509
|
);
|
|
35489
35510
|
if (!e || !i || !s) return;
|
|
35490
|
-
const l = this.localCurrency ? this.localCurrency : this.currency, d =
|
|
35511
|
+
const l = this.localCurrency ? this.localCurrency : this.currency, d = yi.find(
|
|
35491
35512
|
(p) => p.name === (this.countryCode || l)
|
|
35492
35513
|
);
|
|
35493
35514
|
e.value.length > Number((d == null ? void 0 : d.length) || "9") ? (o && (o.classList.remove("border-tone-40"), o.classList.add("border-[#D62020]"), e.classList.remove("text-tone-100"), e.classList.add("text-[#D62020]")), a && (a.classList.remove("hidden"), a.classList.add("block"), a.innerHTML = "Please enter a valid phone number. You can remove the leading zero if it exists.")) : (o && (o.classList.remove("border-[#D62020]"), o.classList.add("border-tone-40"), e.classList.remove("text-[#D62020]"), e.classList.add("text-tone-100")), a && (a.classList.remove("block"), a.classList.add("hidden"))), e.value.length > 0 && e.value.length === Number((d == null ? void 0 : d.length) || "9") && i.value ? i.value === "orange" ? t && t.value.length >= 6 ? s.disabled = !1 : s.disabled = !0 : s.disabled = !1 : s.disabled = !0;
|
|
@@ -35512,14 +35533,16 @@ class cu {
|
|
|
35512
35533
|
}
|
|
35513
35534
|
})), i && i.classList.add("hidden"), !(!s || !t || !a) && e && e.addEventListener("submit", (l) => {
|
|
35514
35535
|
l.preventDefault();
|
|
35515
|
-
const d =
|
|
35536
|
+
const d = this.countryCode || this.currency, v = yi.filter(
|
|
35537
|
+
(y) => y.name === d
|
|
35538
|
+
)[0].allowsZeros ? `0${t.value}` : t.value, g = s.value, f = o ? o.value : "";
|
|
35516
35539
|
this.onAction(l)({
|
|
35517
|
-
code:
|
|
35540
|
+
code: g,
|
|
35518
35541
|
// "mtn-gh",
|
|
35519
|
-
phoneNumber:
|
|
35542
|
+
phoneNumber: v,
|
|
35520
35543
|
// "233987654321"
|
|
35521
|
-
...
|
|
35522
|
-
otp:
|
|
35544
|
+
...g === "orange" && {
|
|
35545
|
+
otp: f
|
|
35523
35546
|
}
|
|
35524
35547
|
}), P.track("start_payment", {
|
|
35525
35548
|
payment_method: "Mobile Money"
|
|
@@ -35549,7 +35572,7 @@ class cu {
|
|
|
35549
35572
|
i.appendChild(d), i.classList.remove("text-tone-50"), i.classList.add("text-tone-100");
|
|
35550
35573
|
});
|
|
35551
35574
|
}
|
|
35552
|
-
const t = this.container.querySelector("#region-code"), s = this.localCurrency ? this.localCurrency : this.currency, o =
|
|
35575
|
+
const t = this.container.querySelector("#region-code"), s = this.localCurrency ? this.localCurrency : this.currency, o = yi.find(
|
|
35553
35576
|
(a) => a.name === (this.countryCode || s)
|
|
35554
35577
|
);
|
|
35555
35578
|
if (t) {
|
|
@@ -35791,7 +35814,7 @@ class pu {
|
|
|
35791
35814
|
}
|
|
35792
35815
|
}
|
|
35793
35816
|
};
|
|
35794
|
-
return
|
|
35817
|
+
return Hi(
|
|
35795
35818
|
this.token,
|
|
35796
35819
|
d,
|
|
35797
35820
|
this.rdtCode,
|
|
@@ -36016,7 +36039,7 @@ class pu {
|
|
|
36016
36039
|
}), this.mobileMoneyConfirmationEnd.renderComponent();
|
|
36017
36040
|
break;
|
|
36018
36041
|
case 9:
|
|
36019
|
-
this.transactionIssuesScreen = new
|
|
36042
|
+
this.transactionIssuesScreen = new Ri({
|
|
36020
36043
|
container: this.contents,
|
|
36021
36044
|
onAction: () => {
|
|
36022
36045
|
var t;
|
|
@@ -36189,7 +36212,7 @@ class fu {
|
|
|
36189
36212
|
channel: "eft",
|
|
36190
36213
|
reference: this.reference
|
|
36191
36214
|
};
|
|
36192
|
-
return
|
|
36215
|
+
return Hi(
|
|
36193
36216
|
this.token,
|
|
36194
36217
|
a,
|
|
36195
36218
|
this.rdtCode,
|
|
@@ -36320,7 +36343,7 @@ class fu {
|
|
|
36320
36343
|
}), this.contents.innerHTML = this.warningScreen.render(), this.warningScreen.attachListener();
|
|
36321
36344
|
break;
|
|
36322
36345
|
case 5:
|
|
36323
|
-
this.transactionIssuesScreen = new
|
|
36346
|
+
this.transactionIssuesScreen = new Ri({
|
|
36324
36347
|
container: this.contents,
|
|
36325
36348
|
onAction: () => {
|
|
36326
36349
|
var o;
|
|
@@ -36856,7 +36879,7 @@ class Au {
|
|
|
36856
36879
|
verification_status: "Cancelled"
|
|
36857
36880
|
}), P.track("checkout_closes");
|
|
36858
36881
|
}).catch((t) => {
|
|
36859
|
-
|
|
36882
|
+
wi.showToast(t.message, "error");
|
|
36860
36883
|
});
|
|
36861
36884
|
}
|
|
36862
36885
|
getDeviceType() {
|