@spot-flow/checkout-inline-js 0.1.38 → 0.1.39-dev.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/checkout-inline.es.js +226 -211
- package/dist/checkout-inline.js +24 -24
- package/package.json +1 -1
|
@@ -81,7 +81,7 @@ const Oe = (n, e, i) => {
|
|
|
81
81
|
} catch (s) {
|
|
82
82
|
throw s instanceof X ? console.error(`FetchError: ${s.message} (status: ${s.status})`) : s instanceof De ? console.error(`AuthorizationError: ${s.message}`) : console.error(`Unexpected error: ${s}`), s;
|
|
83
83
|
}
|
|
84
|
-
},
|
|
84
|
+
}, yi = async (n, e, i, t) => {
|
|
85
85
|
try {
|
|
86
86
|
const s = Oe(n, i), o = await fetch(
|
|
87
87
|
`${fe(Ve, t)}/payments/authorize`,
|
|
@@ -413,7 +413,7 @@ const Yt = [
|
|
|
413
413
|
</svg>
|
|
414
414
|
`
|
|
415
415
|
}
|
|
416
|
-
],
|
|
416
|
+
], En = [
|
|
417
417
|
{
|
|
418
418
|
name: "GHS",
|
|
419
419
|
dialCode: "+233",
|
|
@@ -917,7 +917,7 @@ const Yt = [
|
|
|
917
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
918
|
const e = ki(n);
|
|
919
919
|
return e.length >= 3 ? `${e.slice(0, 2)}/${e.slice(2, 4)}` : e;
|
|
920
|
-
},
|
|
920
|
+
}, Yn = (n) => {
|
|
921
921
|
const e = Math.floor(n / 60), i = n % 60;
|
|
922
922
|
return `${String(e).padStart(2, "0")}:${String(i).padStart(2, "0")}`;
|
|
923
923
|
}, Er = (n) => {
|
|
@@ -1053,7 +1053,7 @@ class Qt {
|
|
|
1053
1053
|
const v = a.replace(/\s+/g, ""), g = this.validateCreditCard(v);
|
|
1054
1054
|
this.filterCreditCardType(o);
|
|
1055
1055
|
const f = (l = this.creditCardTypes[0]) == null ? void 0 : l.name;
|
|
1056
|
-
f &&
|
|
1056
|
+
f && En.map((y) => {
|
|
1057
1057
|
if (y.name === this.currency)
|
|
1058
1058
|
if (y.cardTypes.includes(f)) {
|
|
1059
1059
|
const k = Pr[f];
|
|
@@ -1209,7 +1209,7 @@ const Nr = `<div id="paymentSuccess">
|
|
|
1209
1209
|
</div>
|
|
1210
1210
|
</div>
|
|
1211
1211
|
</div>`;
|
|
1212
|
-
class
|
|
1212
|
+
class ii {
|
|
1213
1213
|
constructor({
|
|
1214
1214
|
container: e,
|
|
1215
1215
|
amount: i,
|
|
@@ -24181,11 +24181,11 @@ var ve;
|
|
|
24181
24181
|
function qr(n) {
|
|
24182
24182
|
return n.nodeType === n.ELEMENT_NODE;
|
|
24183
24183
|
}
|
|
24184
|
-
function
|
|
24184
|
+
function zn(n) {
|
|
24185
24185
|
const e = n == null ? void 0 : n.host;
|
|
24186
24186
|
return (e == null ? void 0 : e.shadowRoot) === n;
|
|
24187
24187
|
}
|
|
24188
|
-
function
|
|
24188
|
+
function Wn(n) {
|
|
24189
24189
|
return Object.prototype.toString.call(n) === "[object ShadowRoot]";
|
|
24190
24190
|
}
|
|
24191
24191
|
function zr(n) {
|
|
@@ -24314,7 +24314,7 @@ function Ns(n, e) {
|
|
|
24314
24314
|
return (i = o == null ? void 0 : o[1]) !== null && i !== void 0 ? i : null;
|
|
24315
24315
|
}
|
|
24316
24316
|
let Xr = 1;
|
|
24317
|
-
const el = new RegExp("[^a-z0-9-_:]"),
|
|
24317
|
+
const el = new RegExp("[^a-z0-9-_:]"), Qn = -2;
|
|
24318
24318
|
function Bs() {
|
|
24319
24319
|
return Xr++;
|
|
24320
24320
|
}
|
|
@@ -24362,10 +24362,10 @@ function dl(n, e) {
|
|
|
24362
24362
|
for (; t(ll), !(i >= e.length); ) {
|
|
24363
24363
|
let o = t(rl);
|
|
24364
24364
|
if (o.slice(-1) === ",")
|
|
24365
|
-
o =
|
|
24365
|
+
o = In(n, o.substring(0, o.length - 1)), s.push(o);
|
|
24366
24366
|
else {
|
|
24367
24367
|
let a = "";
|
|
24368
|
-
o =
|
|
24368
|
+
o = In(n, o);
|
|
24369
24369
|
let l = !1;
|
|
24370
24370
|
for (; ; ) {
|
|
24371
24371
|
const d = e.charAt(i);
|
|
@@ -24384,7 +24384,7 @@ function dl(n, e) {
|
|
|
24384
24384
|
}
|
|
24385
24385
|
return s.join(", ");
|
|
24386
24386
|
}
|
|
24387
|
-
function
|
|
24387
|
+
function In(n, e) {
|
|
24388
24388
|
if (!e || e.trim() === "")
|
|
24389
24389
|
return e;
|
|
24390
24390
|
const i = n.createElement("a");
|
|
@@ -24398,7 +24398,7 @@ function pt() {
|
|
|
24398
24398
|
return n.href = "", n.href;
|
|
24399
24399
|
}
|
|
24400
24400
|
function Ds(n, e, i, t) {
|
|
24401
|
-
return t && (i === "src" || i === "href" && !(e === "use" && t[0] === "#") || i === "xlink:href" && t[0] !== "#" || i === "background" && (e === "table" || e === "td" || e === "th") ?
|
|
24401
|
+
return t && (i === "src" || i === "href" && !(e === "use" && t[0] === "#") || i === "xlink:href" && t[0] !== "#" || i === "background" && (e === "table" || e === "td" || e === "th") ? In(n, t) : i === "srcset" ? dl(n, t) : i === "style" ? Mi(t, pt()) : e === "object" && i === "data" ? In(n, t) : t);
|
|
24402
24402
|
}
|
|
24403
24403
|
function Hs(n, e, i) {
|
|
24404
24404
|
return (n === "video" || n === "audio") && e === "autoplay";
|
|
@@ -24689,7 +24689,7 @@ function gl(n, e) {
|
|
|
24689
24689
|
}
|
|
24690
24690
|
return !1;
|
|
24691
24691
|
}
|
|
24692
|
-
function
|
|
24692
|
+
function Nn(n, e) {
|
|
24693
24693
|
const { doc: i, mirror: t, blockClass: s, blockSelector: o, maskTextClass: a, maskTextSelector: l, skipChild: d = !1, inlineStylesheet: p = !0, maskInputOptions: v = {}, maskTextFn: g, maskInputFn: f, slimDOMOptions: y, dataURLOptions: k = {}, inlineImages: C = !1, recordCanvas: w = !1, onSerialize: M, onIframeLoad: A, iframeLoadTimeout: _ = 5e3, onStylesheetLoad: T, stylesheetLoadTimeout: I = 5e3, keepIframeSrcFn: K = () => !1, newlyAddedElement: G = !1 } = e;
|
|
24694
24694
|
let { needsMask: V } = e, { preserveWhiteSpace: j = !0 } = e;
|
|
24695
24695
|
!V && n.childNodes && (V = Rs(n, a, l, V === void 0));
|
|
@@ -24712,16 +24712,16 @@ function In(n, e) {
|
|
|
24712
24712
|
if (!te)
|
|
24713
24713
|
return console.warn(n, "not serialized"), null;
|
|
24714
24714
|
let ge;
|
|
24715
|
-
t.hasNode(n) ? ge = t.getId(n) : gl(te, y) || !j && te.type === ve.Text && !te.isStyle && !te.textContent.replace(/^\s+|\s+$/gm, "").length ? ge =
|
|
24715
|
+
t.hasNode(n) ? ge = t.getId(n) : gl(te, y) || !j && te.type === ve.Text && !te.isStyle && !te.textContent.replace(/^\s+|\s+$/gm, "").length ? ge = Qn : ge = Bs();
|
|
24716
24716
|
const U = Object.assign(te, { id: ge });
|
|
24717
|
-
if (t.add(n, U), ge ===
|
|
24717
|
+
if (t.add(n, U), ge === Qn)
|
|
24718
24718
|
return null;
|
|
24719
24719
|
M && M(n);
|
|
24720
24720
|
let ke = !d;
|
|
24721
24721
|
if (U.type === ve.Element) {
|
|
24722
24722
|
ke = ke && !U.needBlock, delete U.needBlock;
|
|
24723
24723
|
const le = n.shadowRoot;
|
|
24724
|
-
le &&
|
|
24724
|
+
le && Wn(le) && (U.isShadowHost = !0);
|
|
24725
24725
|
}
|
|
24726
24726
|
if ((U.type === ve.Document || U.type === ve.Element) && ke) {
|
|
24727
24727
|
y.headWhitespace && U.type === ve.Element && U.tagName === "head" && (j = !1);
|
|
@@ -24751,19 +24751,19 @@ function In(n, e) {
|
|
|
24751
24751
|
keepIframeSrcFn: K
|
|
24752
24752
|
};
|
|
24753
24753
|
if (!(U.type === ve.Element && U.tagName === "textarea" && U.attributes.value !== void 0)) for (const xe of Array.from(n.childNodes)) {
|
|
24754
|
-
const we =
|
|
24754
|
+
const we = Nn(xe, le);
|
|
24755
24755
|
we && U.childNodes.push(we);
|
|
24756
24756
|
}
|
|
24757
24757
|
if (qr(n) && n.shadowRoot)
|
|
24758
24758
|
for (const xe of Array.from(n.shadowRoot.childNodes)) {
|
|
24759
|
-
const we =
|
|
24760
|
-
we && (
|
|
24759
|
+
const we = Nn(xe, le);
|
|
24760
|
+
we && (Wn(n.shadowRoot) && (we.isShadow = !0), U.childNodes.push(we));
|
|
24761
24761
|
}
|
|
24762
24762
|
}
|
|
24763
|
-
return n.parentNode &&
|
|
24763
|
+
return n.parentNode && zn(n.parentNode) && Wn(n.parentNode) && (U.isShadow = !0), U.type === ve.Element && U.tagName === "iframe" && hl(n, () => {
|
|
24764
24764
|
const le = n.contentDocument;
|
|
24765
24765
|
if (le && A) {
|
|
24766
|
-
const xe =
|
|
24766
|
+
const xe = Nn(le, {
|
|
24767
24767
|
doc: le,
|
|
24768
24768
|
mirror: t,
|
|
24769
24769
|
blockClass: s,
|
|
@@ -24792,7 +24792,7 @@ function In(n, e) {
|
|
|
24792
24792
|
}
|
|
24793
24793
|
}, _), U.type === ve.Element && U.tagName === "link" && typeof U.attributes.rel == "string" && (U.attributes.rel === "stylesheet" || U.attributes.rel === "preload" && typeof U.attributes.href == "string" && Ns(U.attributes.href) === "css") && ml(n, () => {
|
|
24794
24794
|
if (T) {
|
|
24795
|
-
const le =
|
|
24795
|
+
const le = Nn(n, {
|
|
24796
24796
|
doc: i,
|
|
24797
24797
|
mirror: t,
|
|
24798
24798
|
blockClass: s,
|
|
@@ -24823,7 +24823,7 @@ function In(n, e) {
|
|
|
24823
24823
|
}
|
|
24824
24824
|
function yl(n, e) {
|
|
24825
24825
|
const { mirror: i = new Is(), blockClass: t = "rr-block", blockSelector: s = null, maskTextClass: o = "rr-mask", maskTextSelector: a = null, inlineStylesheet: l = !0, inlineImages: d = !1, recordCanvas: p = !1, maskAllInputs: v = !1, maskTextFn: g, maskInputFn: f, slimDOM: y = !1, dataURLOptions: k, preserveWhiteSpace: C, onSerialize: w, onIframeLoad: M, iframeLoadTimeout: A, onStylesheetLoad: _, stylesheetLoadTimeout: T, keepIframeSrcFn: I = () => !1 } = e || {};
|
|
24826
|
-
return
|
|
24826
|
+
return Nn(n, {
|
|
24827
24827
|
doc: n,
|
|
24828
24828
|
mirror: i,
|
|
24829
24829
|
blockClass: t,
|
|
@@ -24883,33 +24883,33 @@ function _e(n, e, i = document) {
|
|
|
24883
24883
|
const t = { capture: !0, passive: !0 };
|
|
24884
24884
|
return i.addEventListener(n, e, t), () => i.removeEventListener(n, e, t);
|
|
24885
24885
|
}
|
|
24886
|
-
const
|
|
24886
|
+
const Pn = `Please stop import mirror directly. Instead of that,\r
|
|
24887
24887
|
now you can use replayer.getMirror() to access the mirror instance of a replayer,\r
|
|
24888
24888
|
or you can use record.mirror to access the mirror instance during recording.`;
|
|
24889
24889
|
let ns = {
|
|
24890
24890
|
map: {},
|
|
24891
24891
|
getId() {
|
|
24892
|
-
return console.error(
|
|
24892
|
+
return console.error(Pn), -1;
|
|
24893
24893
|
},
|
|
24894
24894
|
getNode() {
|
|
24895
|
-
return console.error(
|
|
24895
|
+
return console.error(Pn), null;
|
|
24896
24896
|
},
|
|
24897
24897
|
removeNodeFromMap() {
|
|
24898
|
-
console.error(
|
|
24898
|
+
console.error(Pn);
|
|
24899
24899
|
},
|
|
24900
24900
|
has() {
|
|
24901
|
-
return console.error(
|
|
24901
|
+
return console.error(Pn), !1;
|
|
24902
24902
|
},
|
|
24903
24903
|
reset() {
|
|
24904
|
-
console.error(
|
|
24904
|
+
console.error(Pn);
|
|
24905
24905
|
}
|
|
24906
24906
|
};
|
|
24907
24907
|
typeof window < "u" && window.Proxy && window.Reflect && (ns = new Proxy(ns, {
|
|
24908
24908
|
get(n, e, i) {
|
|
24909
|
-
return e === "map" && console.error(
|
|
24909
|
+
return e === "map" && console.error(Pn), Reflect.get(n, e, i);
|
|
24910
24910
|
}
|
|
24911
24911
|
}));
|
|
24912
|
-
function
|
|
24912
|
+
function Xn(n, e, i = {}) {
|
|
24913
24913
|
let t = null, s = 0;
|
|
24914
24914
|
return function(...o) {
|
|
24915
24915
|
const a = Date.now();
|
|
@@ -24930,7 +24930,7 @@ function Oi(n, e, i, t, s = window) {
|
|
|
24930
24930
|
}
|
|
24931
24931
|
}), () => Oi(n, e, o || {}, !0);
|
|
24932
24932
|
}
|
|
24933
|
-
function
|
|
24933
|
+
function Un(n, e, i) {
|
|
24934
24934
|
try {
|
|
24935
24935
|
if (!(e in n))
|
|
24936
24936
|
return () => {
|
|
@@ -24988,10 +24988,10 @@ function Cl(n, e) {
|
|
|
24988
24988
|
return e.getId(n) !== -1;
|
|
24989
24989
|
}
|
|
24990
24990
|
function it(n, e) {
|
|
24991
|
-
return e.getId(n) ===
|
|
24991
|
+
return e.getId(n) === Qn;
|
|
24992
24992
|
}
|
|
24993
24993
|
function js(n, e) {
|
|
24994
|
-
if (
|
|
24994
|
+
if (zn(n))
|
|
24995
24995
|
return !1;
|
|
24996
24996
|
const i = e.getId(n);
|
|
24997
24997
|
return e.has(i) ? n.parentNode && n.parentNode.nodeType === n.DOCUMENT_NODE ? !1 : n.parentNode ? js(n.parentNode, e) : !0 : !0;
|
|
@@ -25069,7 +25069,7 @@ function zs(n) {
|
|
|
25069
25069
|
const e = n.ownerDocument;
|
|
25070
25070
|
return e ? e.contains(n) || _l(n) : !1;
|
|
25071
25071
|
}
|
|
25072
|
-
var W = /* @__PURE__ */ ((n) => (n[n.DomContentLoaded = 0] = "DomContentLoaded", n[n.Load = 1] = "Load", n[n.FullSnapshot = 2] = "FullSnapshot", n[n.IncrementalSnapshot = 3] = "IncrementalSnapshot", n[n.Meta = 4] = "Meta", n[n.Custom = 5] = "Custom", n[n.Plugin = 6] = "Plugin", n))(W || {}), q = /* @__PURE__ */ ((n) => (n[n.Mutation = 0] = "Mutation", n[n.MouseMove = 1] = "MouseMove", n[n.MouseInteraction = 2] = "MouseInteraction", n[n.Scroll = 3] = "Scroll", n[n.ViewportResize = 4] = "ViewportResize", n[n.Input = 5] = "Input", n[n.TouchMove = 6] = "TouchMove", n[n.MediaInteraction = 7] = "MediaInteraction", n[n.StyleSheetRule = 8] = "StyleSheetRule", n[n.CanvasMutation = 9] = "CanvasMutation", n[n.Font = 10] = "Font", n[n.Log = 11] = "Log", n[n.Drag = 12] = "Drag", n[n.StyleDeclaration = 13] = "StyleDeclaration", n[n.Selection = 14] = "Selection", n[n.AdoptedStyleSheet = 15] = "AdoptedStyleSheet", n[n.CustomElement = 16] = "CustomElement", n))(q || {}), Ae = /* @__PURE__ */ ((n) => (n[n.MouseUp = 0] = "MouseUp", n[n.MouseDown = 1] = "MouseDown", n[n.Click = 2] = "Click", n[n.ContextMenu = 3] = "ContextMenu", n[n.DblClick = 4] = "DblClick", n[n.Focus = 5] = "Focus", n[n.Blur = 6] = "Blur", n[n.TouchStart = 7] = "TouchStart", n[n.TouchMove_Departed = 8] = "TouchMove_Departed", n[n.TouchEnd = 9] = "TouchEnd", n[n.TouchCancel = 10] = "TouchCancel", n))(Ae || {}), Ye = /* @__PURE__ */ ((n) => (n[n.Mouse = 0] = "Mouse", n[n.Pen = 1] = "Pen", n[n.Touch = 2] = "Touch", n))(Ye || {}),
|
|
25072
|
+
var W = /* @__PURE__ */ ((n) => (n[n.DomContentLoaded = 0] = "DomContentLoaded", n[n.Load = 1] = "Load", n[n.FullSnapshot = 2] = "FullSnapshot", n[n.IncrementalSnapshot = 3] = "IncrementalSnapshot", n[n.Meta = 4] = "Meta", n[n.Custom = 5] = "Custom", n[n.Plugin = 6] = "Plugin", n))(W || {}), q = /* @__PURE__ */ ((n) => (n[n.Mutation = 0] = "Mutation", n[n.MouseMove = 1] = "MouseMove", n[n.MouseInteraction = 2] = "MouseInteraction", n[n.Scroll = 3] = "Scroll", n[n.ViewportResize = 4] = "ViewportResize", n[n.Input = 5] = "Input", n[n.TouchMove = 6] = "TouchMove", n[n.MediaInteraction = 7] = "MediaInteraction", n[n.StyleSheetRule = 8] = "StyleSheetRule", n[n.CanvasMutation = 9] = "CanvasMutation", n[n.Font = 10] = "Font", n[n.Log = 11] = "Log", n[n.Drag = 12] = "Drag", n[n.StyleDeclaration = 13] = "StyleDeclaration", n[n.Selection = 14] = "Selection", n[n.AdoptedStyleSheet = 15] = "AdoptedStyleSheet", n[n.CustomElement = 16] = "CustomElement", n))(q || {}), Ae = /* @__PURE__ */ ((n) => (n[n.MouseUp = 0] = "MouseUp", n[n.MouseDown = 1] = "MouseDown", n[n.Click = 2] = "Click", n[n.ContextMenu = 3] = "ContextMenu", n[n.DblClick = 4] = "DblClick", n[n.Focus = 5] = "Focus", n[n.Blur = 6] = "Blur", n[n.TouchStart = 7] = "TouchStart", n[n.TouchMove_Departed = 8] = "TouchMove_Departed", n[n.TouchEnd = 9] = "TouchEnd", n[n.TouchCancel = 10] = "TouchCancel", n))(Ae || {}), Ye = /* @__PURE__ */ ((n) => (n[n.Mouse = 0] = "Mouse", n[n.Pen = 1] = "Pen", n[n.Touch = 2] = "Touch", n))(Ye || {}), Rn = /* @__PURE__ */ ((n) => (n[n["2D"] = 0] = "2D", n[n.WebGL = 1] = "WebGL", n[n.WebGL2 = 2] = "WebGL2", n))(Rn || {});
|
|
25073
25073
|
function is(n) {
|
|
25074
25074
|
return "__ln" in n;
|
|
25075
25075
|
}
|
|
@@ -25115,17 +25115,17 @@ class Al {
|
|
|
25115
25115
|
if (this.frozen || this.locked)
|
|
25116
25116
|
return;
|
|
25117
25117
|
const e = [], i = /* @__PURE__ */ new Set(), t = new Ml(), s = (d) => {
|
|
25118
|
-
let p = d, v =
|
|
25119
|
-
for (; v ===
|
|
25118
|
+
let p = d, v = Qn;
|
|
25119
|
+
for (; v === Qn; )
|
|
25120
25120
|
p = p && p.nextSibling, v = p && this.mirror.getId(p);
|
|
25121
25121
|
return v;
|
|
25122
25122
|
}, o = (d) => {
|
|
25123
25123
|
if (!d.parentNode || !zs(d) || d.parentNode.tagName === "TEXTAREA")
|
|
25124
25124
|
return;
|
|
25125
|
-
const p =
|
|
25125
|
+
const p = zn(d.parentNode) ? this.mirror.getId(qs(d)) : this.mirror.getId(d.parentNode), v = s(d);
|
|
25126
25126
|
if (p === -1 || v === -1)
|
|
25127
25127
|
return t.addNode(d);
|
|
25128
|
-
const g =
|
|
25128
|
+
const g = Nn(d, {
|
|
25129
25129
|
doc: this.doc,
|
|
25130
25130
|
mirror: this.mirror,
|
|
25131
25131
|
blockClass: this.blockClass,
|
|
@@ -25297,11 +25297,11 @@ class Al {
|
|
|
25297
25297
|
return;
|
|
25298
25298
|
}
|
|
25299
25299
|
e.addedNodes.forEach((i) => this.genAdds(i, e.target)), e.removedNodes.forEach((i) => {
|
|
25300
|
-
const t = this.mirror.getId(i), s =
|
|
25300
|
+
const t = this.mirror.getId(i), s = zn(e.target) ? this.mirror.getId(e.target.host) : this.mirror.getId(e.target);
|
|
25301
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({
|
|
25302
25302
|
parentId: s,
|
|
25303
25303
|
id: t,
|
|
25304
|
-
isShadow:
|
|
25304
|
+
isShadow: zn(e.target) && Wn(e.target) ? !0 : void 0
|
|
25305
25305
|
})), this.mapRemoves.push(i));
|
|
25306
25306
|
});
|
|
25307
25307
|
break;
|
|
@@ -25389,23 +25389,23 @@ function Zs(n, e) {
|
|
|
25389
25389
|
const { parentNode: i } = e;
|
|
25390
25390
|
return i ? n.has(i) ? !0 : Zs(n, i) : !1;
|
|
25391
25391
|
}
|
|
25392
|
-
let
|
|
25392
|
+
let Zn;
|
|
25393
25393
|
function Ll(n) {
|
|
25394
|
-
|
|
25394
|
+
Zn = n;
|
|
25395
25395
|
}
|
|
25396
25396
|
function xl() {
|
|
25397
|
-
|
|
25397
|
+
Zn = void 0;
|
|
25398
25398
|
}
|
|
25399
|
-
const z = (n) =>
|
|
25399
|
+
const z = (n) => Zn ? (...i) => {
|
|
25400
25400
|
try {
|
|
25401
25401
|
return n(...i);
|
|
25402
25402
|
} catch (t) {
|
|
25403
|
-
if (
|
|
25403
|
+
if (Zn && Zn(t) === !0)
|
|
25404
25404
|
return;
|
|
25405
25405
|
throw t;
|
|
25406
25406
|
}
|
|
25407
25407
|
} : n, kn = [];
|
|
25408
|
-
function
|
|
25408
|
+
function ti(n) {
|
|
25409
25409
|
try {
|
|
25410
25410
|
if ("composedPath" in n) {
|
|
25411
25411
|
const e = n.composedPath();
|
|
@@ -25440,11 +25440,11 @@ function Tl({ mousemoveCb: n, sampling: e, doc: i, mirror: t }) {
|
|
|
25440
25440
|
};
|
|
25441
25441
|
const s = typeof e.mousemove == "number" ? e.mousemove : 50, o = typeof e.mousemoveCallback == "number" ? e.mousemoveCallback : 500;
|
|
25442
25442
|
let a = [], l;
|
|
25443
|
-
const d =
|
|
25443
|
+
const d = Xn(z((g) => {
|
|
25444
25444
|
const f = Date.now() - l;
|
|
25445
25445
|
n(a.map((y) => (y.timeOffset -= f, y)), g), a = [], l = null;
|
|
25446
|
-
}), o), p = z(
|
|
25447
|
-
const f =
|
|
25446
|
+
}), o), p = z(Xn(z((g) => {
|
|
25447
|
+
const f = ti(g), { clientX: y, clientY: k } = lt(g) ? g.changedTouches[0] : g;
|
|
25448
25448
|
l || (l = Li()), a.push({
|
|
25449
25449
|
x: y,
|
|
25450
25450
|
y: k,
|
|
@@ -25469,7 +25469,7 @@ function El({ mouseInteractionCb: n, doc: e, mirror: i, blockClass: t, blockSele
|
|
|
25469
25469
|
const a = o.mouseInteraction === !0 || o.mouseInteraction === void 0 ? {} : o.mouseInteraction, l = [];
|
|
25470
25470
|
let d = null;
|
|
25471
25471
|
const p = (v) => (g) => {
|
|
25472
|
-
const f =
|
|
25472
|
+
const f = ti(g);
|
|
25473
25473
|
if (Me(f, t, s, !0))
|
|
25474
25474
|
return;
|
|
25475
25475
|
let y = null, k = v;
|
|
@@ -25513,8 +25513,8 @@ function El({ mouseInteractionCb: n, doc: e, mirror: i, blockClass: t, blockSele
|
|
|
25513
25513
|
});
|
|
25514
25514
|
}
|
|
25515
25515
|
function $s({ scrollCb: n, doc: e, mirror: i, blockClass: t, blockSelector: s, sampling: o }) {
|
|
25516
|
-
const a = z(
|
|
25517
|
-
const d =
|
|
25516
|
+
const a = z(Xn(z((l) => {
|
|
25517
|
+
const d = ti(l);
|
|
25518
25518
|
if (!d || Me(d, t, s, !0))
|
|
25519
25519
|
return;
|
|
25520
25520
|
const p = i.getId(d);
|
|
@@ -25536,7 +25536,7 @@ function $s({ scrollCb: n, doc: e, mirror: i, blockClass: t, blockSelector: s, s
|
|
|
25536
25536
|
}
|
|
25537
25537
|
function Pl({ viewportResizeCb: n }, { win: e }) {
|
|
25538
25538
|
let i = -1, t = -1;
|
|
25539
|
-
const s = z(
|
|
25539
|
+
const s = z(Xn(z(() => {
|
|
25540
25540
|
const o = Vs(), a = Us();
|
|
25541
25541
|
(i !== o || t !== a) && (n({
|
|
25542
25542
|
width: Number(a),
|
|
@@ -25548,7 +25548,7 @@ function Pl({ viewportResizeCb: n }, { win: e }) {
|
|
|
25548
25548
|
const Il = ["INPUT", "TEXTAREA", "SELECT"], as = /* @__PURE__ */ new WeakMap();
|
|
25549
25549
|
function Nl({ inputCb: n, doc: e, mirror: i, blockClass: t, blockSelector: s, ignoreClass: o, ignoreSelector: a, maskInputOptions: l, maskInputFn: d, sampling: p, userTriggeredOnInput: v }) {
|
|
25550
25550
|
function g(A) {
|
|
25551
|
-
let _ =
|
|
25551
|
+
let _ = ti(A);
|
|
25552
25552
|
const T = A.isTrusted, I = _ && _.tagName;
|
|
25553
25553
|
if (_ && I === "OPTION" && (_ = _.parentElement), !_ || !I || Il.indexOf(I) < 0 || Me(_, t, s, !0) || _.classList.contains(o) || a && _.matches(a))
|
|
25554
25554
|
return;
|
|
@@ -25605,7 +25605,7 @@ function Nl({ inputCb: n, doc: e, mirror: i, blockClass: t, blockSelector: s, ig
|
|
|
25605
25605
|
function xi(n) {
|
|
25606
25606
|
const e = [];
|
|
25607
25607
|
function i(t, s) {
|
|
25608
|
-
if (
|
|
25608
|
+
if (vi("CSSGroupingRule") && t.parentRule instanceof CSSGroupingRule || vi("CSSMediaRule") && t.parentRule instanceof CSSMediaRule || vi("CSSSupportsRule") && t.parentRule instanceof CSSSupportsRule || vi("CSSConditionRule") && t.parentRule instanceof CSSConditionRule) {
|
|
25609
25609
|
const a = Array.from(t.parentRule.cssRules).indexOf(t);
|
|
25610
25610
|
s.unshift(a);
|
|
25611
25611
|
} else if (t.parentStyleSheet) {
|
|
@@ -25672,7 +25672,7 @@ function Bl({ styleSheetRuleCb: n, mirror: e, stylesheetManager: i }, { win: t }
|
|
|
25672
25672
|
})
|
|
25673
25673
|
}));
|
|
25674
25674
|
const d = {};
|
|
25675
|
-
|
|
25675
|
+
pi("CSSGroupingRule") ? d.CSSGroupingRule = t.CSSGroupingRule : (pi("CSSMediaRule") && (d.CSSMediaRule = t.CSSMediaRule), pi("CSSConditionRule") && (d.CSSConditionRule = t.CSSConditionRule), pi("CSSSupportsRule") && (d.CSSSupportsRule = t.CSSSupportsRule));
|
|
25676
25676
|
const p = {};
|
|
25677
25677
|
return Object.entries(d).forEach(([v, g]) => {
|
|
25678
25678
|
p[v] = {
|
|
@@ -25788,8 +25788,8 @@ function Dl({ styleDeclarationCb: n, mirror: e, ignoreCSSAttributes: i, styleshe
|
|
|
25788
25788
|
});
|
|
25789
25789
|
}
|
|
25790
25790
|
function Hl({ mediaInteractionCb: n, blockClass: e, blockSelector: i, mirror: t, sampling: s, doc: o }) {
|
|
25791
|
-
const a = z((d) =>
|
|
25792
|
-
const v =
|
|
25791
|
+
const a = z((d) => Xn(z((p) => {
|
|
25792
|
+
const v = ti(p);
|
|
25793
25793
|
if (!v || Me(v, e, i, !0))
|
|
25794
25794
|
return;
|
|
25795
25795
|
const { currentTime: g, volume: f, muted: y, playbackRate: k, loop: C } = v;
|
|
@@ -25828,7 +25828,7 @@ function Rl({ fontCb: n, doc: e }) {
|
|
|
25828
25828
|
fontSource: typeof p == "string" ? p : JSON.stringify(Array.from(new Uint8Array(p)))
|
|
25829
25829
|
}), g;
|
|
25830
25830
|
};
|
|
25831
|
-
const a =
|
|
25831
|
+
const a = Un(e.fonts, "add", function(l) {
|
|
25832
25832
|
return function(d) {
|
|
25833
25833
|
return setTimeout(z(() => {
|
|
25834
25834
|
const p = s.get(d);
|
|
@@ -25867,7 +25867,7 @@ function Ol(n) {
|
|
|
25867
25867
|
function Vl({ doc: n, customElementCb: e }) {
|
|
25868
25868
|
const i = n.defaultView;
|
|
25869
25869
|
return !i || !i.customElements ? () => {
|
|
25870
|
-
} :
|
|
25870
|
+
} : Un(i.customElements, "define", function(s) {
|
|
25871
25871
|
return function(o, a, l) {
|
|
25872
25872
|
try {
|
|
25873
25873
|
e({
|
|
@@ -25938,10 +25938,10 @@ function Kl(n, e = {}) {
|
|
|
25938
25938
|
kn.forEach((M) => M.reset()), t == null || t.disconnect(), s(), o(), a(), l(), d(), p(), v(), g(), f(), y(), k(), C(), w.forEach((M) => M());
|
|
25939
25939
|
});
|
|
25940
25940
|
}
|
|
25941
|
-
function
|
|
25941
|
+
function vi(n) {
|
|
25942
25942
|
return typeof window[n] < "u";
|
|
25943
25943
|
}
|
|
25944
|
-
function
|
|
25944
|
+
function pi(n) {
|
|
25945
25945
|
return !!(typeof window[n] < "u" && window[n].prototype && "insertRule" in window[n].prototype && "deleteRule" in window[n].prototype);
|
|
25946
25946
|
}
|
|
25947
25947
|
class rs {
|
|
@@ -26132,7 +26132,7 @@ class Fl {
|
|
|
26132
26132
|
this.reset(), this.patchAttachShadow(Element, document);
|
|
26133
26133
|
}
|
|
26134
26134
|
addShadowRoot(e, i) {
|
|
26135
|
-
if (!
|
|
26135
|
+
if (!Wn(e) || this.shadowDoms.has(e))
|
|
26136
26136
|
return;
|
|
26137
26137
|
this.shadowDoms.add(e);
|
|
26138
26138
|
const t = Js(Object.assign(Object.assign({}, this.bypassOptions), { doc: i, mutationCb: this.mutationCb, mirror: this.mirror, shadowDomManager: this }), e);
|
|
@@ -26148,7 +26148,7 @@ class Fl {
|
|
|
26148
26148
|
}
|
|
26149
26149
|
patchAttachShadow(e, i) {
|
|
26150
26150
|
const t = this;
|
|
26151
|
-
this.restoreHandlers.push(
|
|
26151
|
+
this.restoreHandlers.push(Un(e.prototype, "attachShadow", function(s) {
|
|
26152
26152
|
return function(o) {
|
|
26153
26153
|
const a = s.call(this, o);
|
|
26154
26154
|
return this.shadowRoot && zs(this) && t.addShadowRoot(this.shadowRoot, i), a;
|
|
@@ -26213,13 +26213,13 @@ function ql(n, e, i, t) {
|
|
|
26213
26213
|
p((t = t.apply(n, [])).next());
|
|
26214
26214
|
});
|
|
26215
26215
|
}
|
|
26216
|
-
var
|
|
26217
|
-
for (var
|
|
26218
|
-
zl[
|
|
26216
|
+
var Bn = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", zl = typeof Uint8Array > "u" ? [] : new Uint8Array(256);
|
|
26217
|
+
for (var bi = 0; bi < Bn.length; bi++)
|
|
26218
|
+
zl[Bn.charCodeAt(bi)] = bi;
|
|
26219
26219
|
var Wl = function(n) {
|
|
26220
26220
|
var e = new Uint8Array(n), i, t = e.length, s = "";
|
|
26221
26221
|
for (i = 0; i < t; i += 3)
|
|
26222
|
-
s +=
|
|
26222
|
+
s += Bn[e[i] >> 2], s += Bn[(e[i] & 3) << 4 | e[i + 1] >> 4], s += Bn[(e[i + 1] & 15) << 2 | e[i + 2] >> 6], s += Bn[e[i + 2] & 63];
|
|
26223
26223
|
return t % 3 === 2 ? s = s.substring(0, s.length - 1) + "=" : t % 3 === 1 && (s = s.substring(0, s.length - 2) + "=="), s;
|
|
26224
26224
|
};
|
|
26225
26225
|
const ls = /* @__PURE__ */ new Map();
|
|
@@ -26308,12 +26308,12 @@ function Jl(n, e, i, t) {
|
|
|
26308
26308
|
try {
|
|
26309
26309
|
if (typeof e.CanvasRenderingContext2D.prototype[a] != "function")
|
|
26310
26310
|
continue;
|
|
26311
|
-
const l =
|
|
26311
|
+
const l = Un(e.CanvasRenderingContext2D.prototype, a, function(d) {
|
|
26312
26312
|
return function(...p) {
|
|
26313
26313
|
return Me(this.canvas, i, t, !0) || setTimeout(() => {
|
|
26314
26314
|
const v = Xs(p, e, this);
|
|
26315
26315
|
n(this.canvas, {
|
|
26316
|
-
type:
|
|
26316
|
+
type: Rn["2D"],
|
|
26317
26317
|
property: a,
|
|
26318
26318
|
args: v
|
|
26319
26319
|
});
|
|
@@ -26325,7 +26325,7 @@ function Jl(n, e, i, t) {
|
|
|
26325
26325
|
const d = Oi(e.CanvasRenderingContext2D.prototype, a, {
|
|
26326
26326
|
set(p) {
|
|
26327
26327
|
n(this.canvas, {
|
|
26328
|
-
type:
|
|
26328
|
+
type: Rn["2D"],
|
|
26329
26329
|
property: a,
|
|
26330
26330
|
args: [p],
|
|
26331
26331
|
setter: !0
|
|
@@ -26344,7 +26344,7 @@ function $l(n) {
|
|
|
26344
26344
|
function ds(n, e, i, t) {
|
|
26345
26345
|
const s = [];
|
|
26346
26346
|
try {
|
|
26347
|
-
const o =
|
|
26347
|
+
const o = Un(n.HTMLCanvasElement.prototype, "getContext", function(a) {
|
|
26348
26348
|
return function(l, ...d) {
|
|
26349
26349
|
if (!Me(this, e, i, !0)) {
|
|
26350
26350
|
const p = $l(l);
|
|
@@ -26380,7 +26380,7 @@ function us(n, e, i, t, s, o, a) {
|
|
|
26380
26380
|
try {
|
|
26381
26381
|
if (typeof n[p] != "function")
|
|
26382
26382
|
continue;
|
|
26383
|
-
const v =
|
|
26383
|
+
const v = Un(n, p, function(g) {
|
|
26384
26384
|
return function(...f) {
|
|
26385
26385
|
const y = g.apply(this, f);
|
|
26386
26386
|
if (Qs(y, a, this), "tagName" in this.canvas && !Me(this.canvas, t, s, !0)) {
|
|
@@ -26412,7 +26412,7 @@ function us(n, e, i, t, s, o, a) {
|
|
|
26412
26412
|
}
|
|
26413
26413
|
function Yl(n, e, i, t, s) {
|
|
26414
26414
|
const o = [];
|
|
26415
|
-
return o.push(...us(e.WebGLRenderingContext.prototype,
|
|
26415
|
+
return o.push(...us(e.WebGLRenderingContext.prototype, Rn.WebGL, n, i, t, s, e)), typeof e.WebGL2RenderingContext < "u" && o.push(...us(e.WebGL2RenderingContext.prototype, Rn.WebGL2, n, i, t, s, e)), () => {
|
|
26416
26416
|
o.forEach((a) => a());
|
|
26417
26417
|
};
|
|
26418
26418
|
}
|
|
@@ -26563,7 +26563,7 @@ class id {
|
|
|
26563
26563
|
const { base64: w, type: M, width: A, height: _ } = k.data;
|
|
26564
26564
|
this.mutationCb({
|
|
26565
26565
|
id: C,
|
|
26566
|
-
type:
|
|
26566
|
+
type: Rn["2D"],
|
|
26567
26567
|
commands: [
|
|
26568
26568
|
{
|
|
26569
26569
|
property: "clearRect",
|
|
@@ -26729,7 +26729,7 @@ function me(n) {
|
|
|
26729
26729
|
}
|
|
26730
26730
|
let re, Si, tt, Ti = !1;
|
|
26731
26731
|
const He = Yr();
|
|
26732
|
-
function
|
|
26732
|
+
function si(n = {}) {
|
|
26733
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;
|
|
26734
26734
|
Ll(xe);
|
|
26735
26735
|
const we = G ? window.parent === window : !0;
|
|
@@ -27034,7 +27034,7 @@ function ti(n = {}) {
|
|
|
27034
27034
|
console.warn(B);
|
|
27035
27035
|
}
|
|
27036
27036
|
}
|
|
27037
|
-
|
|
27037
|
+
si.addCustomEvent = (n, e) => {
|
|
27038
27038
|
if (!Ti)
|
|
27039
27039
|
throw new Error("please add custom event after start recording");
|
|
27040
27040
|
re(me({
|
|
@@ -27045,15 +27045,15 @@ ti.addCustomEvent = (n, e) => {
|
|
|
27045
27045
|
}
|
|
27046
27046
|
}));
|
|
27047
27047
|
};
|
|
27048
|
-
|
|
27048
|
+
si.freezePage = () => {
|
|
27049
27049
|
kn.forEach((n) => n.freeze());
|
|
27050
27050
|
};
|
|
27051
|
-
|
|
27051
|
+
si.takeFullSnapshot = (n) => {
|
|
27052
27052
|
if (!Ti)
|
|
27053
27053
|
throw new Error("please take full snapshot after start recording");
|
|
27054
27054
|
Si(n);
|
|
27055
27055
|
};
|
|
27056
|
-
|
|
27056
|
+
si.mirror = He;
|
|
27057
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 = {
|
|
27058
27058
|
DEBUG: !1,
|
|
27059
27059
|
LIB_VERSION: "2.55.1"
|
|
@@ -27073,7 +27073,7 @@ if (typeof window > "u") {
|
|
|
27073
27073
|
};
|
|
27074
27074
|
} else
|
|
27075
27075
|
H = window;
|
|
27076
|
-
var
|
|
27076
|
+
var Jn = 24 * 60 * 60 * 1e3, st = 8 * 1e3, Vi = Array.prototype, od = Function.prototype, io = Object.prototype, dn = Vi.slice, oi = io.toString, Ui = io.hasOwnProperty, he = H.console, un = H.navigator, ee = H.document, fi = 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 = {
|
|
27077
27077
|
trim: function(n) {
|
|
27078
27078
|
return n.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
27079
27079
|
}
|
|
@@ -27177,7 +27177,7 @@ m.extend = function(n) {
|
|
|
27177
27177
|
}), n;
|
|
27178
27178
|
};
|
|
27179
27179
|
m.isArray = ad || function(n) {
|
|
27180
|
-
return
|
|
27180
|
+
return oi.call(n) === "[object Array]";
|
|
27181
27181
|
};
|
|
27182
27182
|
m.isFunction = function(n) {
|
|
27183
27183
|
try {
|
|
@@ -27241,13 +27241,13 @@ m.isUndefined = function(n) {
|
|
|
27241
27241
|
return n === void 0;
|
|
27242
27242
|
};
|
|
27243
27243
|
m.isString = function(n) {
|
|
27244
|
-
return
|
|
27244
|
+
return oi.call(n) == "[object String]";
|
|
27245
27245
|
};
|
|
27246
27246
|
m.isDate = function(n) {
|
|
27247
|
-
return
|
|
27247
|
+
return oi.call(n) == "[object Date]";
|
|
27248
27248
|
};
|
|
27249
27249
|
m.isNumber = function(n) {
|
|
27250
|
-
return
|
|
27250
|
+
return oi.call(n) == "[object Number]";
|
|
27251
27251
|
};
|
|
27252
27252
|
m.isElement = function(n) {
|
|
27253
27253
|
return !!(n && n.nodeType === 1);
|
|
@@ -27312,7 +27312,7 @@ m.JSONEncode = /* @__PURE__ */ function() {
|
|
|
27312
27312
|
case "object":
|
|
27313
27313
|
if (!k)
|
|
27314
27314
|
return "null";
|
|
27315
|
-
if (a += l, y = [],
|
|
27315
|
+
if (a += l, y = [], oi.apply(k) === "[object Array]") {
|
|
27316
27316
|
for (g = k.length, d = 0; d < g; d += 1)
|
|
27317
27317
|
y[d] = t(d, k) || "null";
|
|
27318
27318
|
return v = y.length === 0 ? "[]" : a ? `[
|
|
@@ -27856,13 +27856,13 @@ m.info = {
|
|
|
27856
27856
|
properties: function(n) {
|
|
27857
27857
|
return typeof n != "object" && (n = {}), m.extend(m.strip_empty_properties({
|
|
27858
27858
|
$os: m.info.os(),
|
|
27859
|
-
$browser: m.info.browser(Ge, un.vendor,
|
|
27859
|
+
$browser: m.info.browser(Ge, un.vendor, fi),
|
|
27860
27860
|
$referrer: ee.referrer,
|
|
27861
27861
|
$referring_domain: m.info.referringDomain(ee.referrer),
|
|
27862
27862
|
$device: m.info.device(Ge)
|
|
27863
27863
|
}), {
|
|
27864
27864
|
$current_url: m.info.currentUrl(),
|
|
27865
|
-
$browser_version: m.info.browserVersion(Ge, un.vendor,
|
|
27865
|
+
$browser_version: m.info.browserVersion(Ge, un.vendor, fi),
|
|
27866
27866
|
$screen_height: Ei.height,
|
|
27867
27867
|
$screen_width: Ei.width,
|
|
27868
27868
|
mp_lib: "web",
|
|
@@ -27875,9 +27875,9 @@ m.info = {
|
|
|
27875
27875
|
people_properties: function() {
|
|
27876
27876
|
return m.extend(m.strip_empty_properties({
|
|
27877
27877
|
$os: m.info.os(),
|
|
27878
|
-
$browser: m.info.browser(Ge, un.vendor,
|
|
27878
|
+
$browser: m.info.browser(Ge, un.vendor, fi)
|
|
27879
27879
|
}), {
|
|
27880
|
-
$browser_version: m.info.browserVersion(Ge, un.vendor,
|
|
27880
|
+
$browser_version: m.info.browserVersion(Ge, un.vendor, fi)
|
|
27881
27881
|
});
|
|
27882
27882
|
},
|
|
27883
27883
|
mpPageViewProperties: function() {
|
|
@@ -27942,7 +27942,7 @@ function vn(n) {
|
|
|
27942
27942
|
return this._get_config(e);
|
|
27943
27943
|
});
|
|
27944
27944
|
}
|
|
27945
|
-
function
|
|
27945
|
+
function Kn(n) {
|
|
27946
27946
|
return yt(n, function(e) {
|
|
27947
27947
|
return this._get_config(e);
|
|
27948
27948
|
});
|
|
@@ -28207,7 +28207,7 @@ pn.prototype.saveToStorage = function(n) {
|
|
|
28207
28207
|
pn.prototype.clear = function() {
|
|
28208
28208
|
this.memQueue = [], this.usePersistence && this.storage.removeItem(this.storageKey);
|
|
28209
28209
|
};
|
|
28210
|
-
var Cd = 10 * 60 * 1e3,
|
|
28210
|
+
var Cd = 10 * 60 * 1e3, $n = Ki("batch"), Ue = function(n, e) {
|
|
28211
28211
|
this.errorReporter = e.errorReporter, this.queue = new pn(n, {
|
|
28212
28212
|
errorReporter: m.bind(this.reportError, this),
|
|
28213
28213
|
storage: e.storage,
|
|
@@ -28240,7 +28240,7 @@ Ue.prototype.scheduleFlush = function(n) {
|
|
|
28240
28240
|
Ue.prototype.flush = function(n) {
|
|
28241
28241
|
try {
|
|
28242
28242
|
if (this.requestInProgress) {
|
|
28243
|
-
|
|
28243
|
+
$n.log("Flush: Request already in progress");
|
|
28244
28244
|
return;
|
|
28245
28245
|
}
|
|
28246
28246
|
n = n || {};
|
|
@@ -28311,17 +28311,17 @@ Ue.prototype.flush = function(n) {
|
|
|
28311
28311
|
timeout_ms: e
|
|
28312
28312
|
// eslint-disable-line camelcase
|
|
28313
28313
|
};
|
|
28314
|
-
n.unloading && (p.transport = "sendBeacon"),
|
|
28314
|
+
n.unloading && (p.transport = "sendBeacon"), $n.log("MIXPANEL REQUEST:", a), this.sendRequest(a, p, d);
|
|
28315
28315
|
} catch (v) {
|
|
28316
28316
|
this.reportError("Error flushing request queue", v), this.resetFlush();
|
|
28317
28317
|
}
|
|
28318
28318
|
};
|
|
28319
28319
|
Ue.prototype.reportError = function(n, e) {
|
|
28320
|
-
if (
|
|
28320
|
+
if ($n.error.apply($n.error, arguments), this.errorReporter)
|
|
28321
28321
|
try {
|
|
28322
28322
|
e instanceof Error || (e = new Error(n)), this.errorReporter(n, e);
|
|
28323
28323
|
} catch (i) {
|
|
28324
|
-
|
|
28324
|
+
$n.error(i);
|
|
28325
28325
|
}
|
|
28326
28326
|
};
|
|
28327
28327
|
var wn = Ki("recorder"), Cs = H.CompressionStream, Sd = {
|
|
@@ -28344,7 +28344,7 @@ function wd(n) {
|
|
|
28344
28344
|
return n.type === no.IncrementalSnapshot && kd.has(n.data.source);
|
|
28345
28345
|
}
|
|
28346
28346
|
var Ke = function(n) {
|
|
28347
|
-
this._mixpanel = n, this._stopRecording = null, this.recEvents = [], this.seqNo = 0, this.replayId = null, this.replayStartTime = null, this.sendBatchId = null, this.idleTimeoutId = null, this.maxTimeoutId = null, this.recordMaxMs =
|
|
28347
|
+
this._mixpanel = n, this._stopRecording = null, this.recEvents = [], this.seqNo = 0, this.replayId = null, this.replayStartTime = null, this.sendBatchId = null, this.idleTimeoutId = null, this.maxTimeoutId = null, this.recordMaxMs = Jn, this.recordMinMs = 0, this._initBatcher();
|
|
28348
28348
|
};
|
|
28349
28349
|
Ke.prototype._initBatcher = function() {
|
|
28350
28350
|
this.batcher = new Ue("__mprec", {
|
|
@@ -28363,13 +28363,13 @@ Ke.prototype.startRecording = function(n) {
|
|
|
28363
28363
|
wn.log("Recording already in progress, skipping startRecording.");
|
|
28364
28364
|
return;
|
|
28365
28365
|
}
|
|
28366
|
-
this.recordMaxMs = this.get_config("record_max_ms"), this.recordMaxMs >
|
|
28366
|
+
this.recordMaxMs = this.get_config("record_max_ms"), this.recordMaxMs > Jn && (this.recordMaxMs = Jn, wn.critical("record_max_ms cannot be greater than " + Jn + "ms. Capping value.")), this.recordMinMs = this.get_config("record_min_ms"), this.recordMinMs > 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();
|
|
28367
28367
|
var e = m.bind(function() {
|
|
28368
28368
|
clearTimeout(this.idleTimeoutId), this.idleTimeoutId = setTimeout(m.bind(function() {
|
|
28369
28369
|
wn.log("Idle timeout reached, restarting recording."), this.resetRecording();
|
|
28370
28370
|
}, this), this.get_config("record_idle_timeout_ms"));
|
|
28371
28371
|
}, this), i = this.get_config("record_block_selector");
|
|
28372
|
-
(i === "" || i === null) && (i = void 0), this._stopRecording =
|
|
28372
|
+
(i === "" || i === null) && (i = void 0), this._stopRecording = si({
|
|
28373
28373
|
emit: m.bind(function(t) {
|
|
28374
28374
|
this.batcher.enqueue(t), wd(t) && (this.batcher.stopped && (/* @__PURE__ */ new Date()).getTime() - this.replayStartTime >= this.recordMinMs && this.batcher.start(), e());
|
|
28375
28375
|
}, this),
|
|
@@ -28488,18 +28488,18 @@ tn.prototype.create_properties = function(n, e) {
|
|
|
28488
28488
|
var i;
|
|
28489
28489
|
return typeof n == "function" ? i = n(e) : i = m.extend({}, n), i;
|
|
28490
28490
|
};
|
|
28491
|
-
var
|
|
28491
|
+
var On = function() {
|
|
28492
28492
|
this.override_event = "click";
|
|
28493
28493
|
};
|
|
28494
|
-
m.inherit(
|
|
28495
|
-
|
|
28496
|
-
var i =
|
|
28494
|
+
m.inherit(On, tn);
|
|
28495
|
+
On.prototype.create_properties = function(n, e) {
|
|
28496
|
+
var i = On.superclass.create_properties.apply(this, arguments);
|
|
28497
28497
|
return e.href && (i.url = e.href), i;
|
|
28498
28498
|
};
|
|
28499
|
-
|
|
28499
|
+
On.prototype.event_handler = function(n, e, i) {
|
|
28500
28500
|
i.new_tab = n.which === 2 || n.metaKey || n.ctrlKey || e.target === "_blank", i.href = e.href, i.new_tab || n.preventDefault();
|
|
28501
28501
|
};
|
|
28502
|
-
|
|
28502
|
+
On.prototype.after_track_handler = function(n, e) {
|
|
28503
28503
|
e.new_tab || setTimeout(function() {
|
|
28504
28504
|
window.location = e.href;
|
|
28505
28505
|
}, 0);
|
|
@@ -28516,7 +28516,7 @@ ji.prototype.after_track_handler = function(n, e) {
|
|
|
28516
28516
|
e.element.submit();
|
|
28517
28517
|
}, 0);
|
|
28518
28518
|
};
|
|
28519
|
-
var hn = "$set",
|
|
28519
|
+
var hn = "$set", Vn = "$set_once", Re = "$unset", Mn = "$add", qe = "$append", An = "$union", en = "$remove", _d = "$delete", ro = {
|
|
28520
28520
|
set_action: function(n, e) {
|
|
28521
28521
|
var i = {}, t = {};
|
|
28522
28522
|
return m.isObject(n) ? m.each(n, function(s, o) {
|
|
@@ -28533,7 +28533,7 @@ var hn = "$set", On = "$set_once", Re = "$unset", Mn = "$add", qe = "$append", A
|
|
|
28533
28533
|
var i = {}, t = {};
|
|
28534
28534
|
return m.isObject(n) ? m.each(n, function(s, o) {
|
|
28535
28535
|
this._is_reserved_property(o) || (t[o] = s);
|
|
28536
|
-
}, this) : t[n] = e, i[
|
|
28536
|
+
}, this) : t[n] = e, i[Vn] = t, i;
|
|
28537
28537
|
},
|
|
28538
28538
|
union_action: function(n, e) {
|
|
28539
28539
|
var i = {}, t = {};
|
|
@@ -28563,28 +28563,28 @@ m.extend(ie.prototype, ro);
|
|
|
28563
28563
|
ie.prototype._init = function(n, e, i) {
|
|
28564
28564
|
this._mixpanel = n, this._group_key = e, this._group_id = i;
|
|
28565
28565
|
};
|
|
28566
|
-
ie.prototype.set =
|
|
28566
|
+
ie.prototype.set = Kn(function(n, e, i) {
|
|
28567
28567
|
var t = this.set_action(n, e);
|
|
28568
28568
|
return m.isObject(n) && (i = e), this._send_request(t, i);
|
|
28569
28569
|
});
|
|
28570
|
-
ie.prototype.set_once =
|
|
28570
|
+
ie.prototype.set_once = Kn(function(n, e, i) {
|
|
28571
28571
|
var t = this.set_once_action(n, e);
|
|
28572
28572
|
return m.isObject(n) && (i = e), this._send_request(t, i);
|
|
28573
28573
|
});
|
|
28574
|
-
ie.prototype.unset =
|
|
28574
|
+
ie.prototype.unset = Kn(function(n, e) {
|
|
28575
28575
|
var i = this.unset_action(n);
|
|
28576
28576
|
return this._send_request(i, e);
|
|
28577
28577
|
});
|
|
28578
|
-
ie.prototype.union =
|
|
28578
|
+
ie.prototype.union = Kn(function(n, e, i) {
|
|
28579
28579
|
m.isObject(n) && (i = e);
|
|
28580
28580
|
var t = this.union_action(n, e);
|
|
28581
28581
|
return this._send_request(t, i);
|
|
28582
28582
|
});
|
|
28583
|
-
ie.prototype.delete =
|
|
28583
|
+
ie.prototype.delete = Kn(function(n) {
|
|
28584
28584
|
var e = this.delete_action();
|
|
28585
28585
|
return this._send_request(e, n);
|
|
28586
28586
|
});
|
|
28587
|
-
ie.prototype.remove =
|
|
28587
|
+
ie.prototype.remove = Kn(function(n, e, i) {
|
|
28588
28588
|
var t = this.remove_action(n, e);
|
|
28589
28589
|
return this._send_request(t, i);
|
|
28590
28590
|
});
|
|
@@ -28703,7 +28703,7 @@ R.prototype._identify_called = function() {
|
|
|
28703
28703
|
return this._mixpanel._flags.identify_called === !0;
|
|
28704
28704
|
};
|
|
28705
28705
|
R.prototype._enqueue = function(n) {
|
|
28706
|
-
hn in n ? this._mixpanel.persistence._add_to_people_queue(hn, n) :
|
|
28706
|
+
hn in n ? this._mixpanel.persistence._add_to_people_queue(hn, n) : Vn in n ? this._mixpanel.persistence._add_to_people_queue(Vn, n) : Re in n ? this._mixpanel.persistence._add_to_people_queue(Re, n) : Mn in n ? this._mixpanel.persistence._add_to_people_queue(Mn, n) : qe in n ? this._mixpanel.persistence._add_to_people_queue(qe, n) : en in n ? this._mixpanel.persistence._add_to_people_queue(en, n) : An in n ? this._mixpanel.persistence._add_to_people_queue(An, n) : $.error("Invalid call to _enqueue():", n);
|
|
28707
28707
|
};
|
|
28708
28708
|
R.prototype._flush_one_queue = function(n, e, i, t) {
|
|
28709
28709
|
var s = this, o = m.extend({}, this._mixpanel.persistence.load_queue(n)), a = o;
|
|
@@ -28713,7 +28713,7 @@ R.prototype._flush_one_queue = function(n, e, i, t) {
|
|
|
28713
28713
|
};
|
|
28714
28714
|
R.prototype._flush = function(n, e, i, t, s, o, a) {
|
|
28715
28715
|
var l = this;
|
|
28716
|
-
this._flush_one_queue(hn, this.set, n), this._flush_one_queue(
|
|
28716
|
+
this._flush_one_queue(hn, this.set, n), this._flush_one_queue(Vn, this.set_once, t), this._flush_one_queue(Re, this.unset, o, function(w) {
|
|
28717
28717
|
return m.keys(w);
|
|
28718
28718
|
}), this._flush_one_queue(Mn, this.increment, e), this._flush_one_queue(An, this.union, s);
|
|
28719
28719
|
var d = this._mixpanel.persistence.load_queue(qe);
|
|
@@ -28743,7 +28743,7 @@ R.prototype.track_charge = R.prototype.track_charge;
|
|
|
28743
28743
|
R.prototype.clear_charges = R.prototype.clear_charges;
|
|
28744
28744
|
R.prototype.delete_user = R.prototype.delete_user;
|
|
28745
28745
|
R.prototype.toString = R.prototype.toString;
|
|
28746
|
-
var Ct = "__mps", St = "__mpso", kt = "__mpus", wt = "__mpa", _t = "__mpap", Mt = "__mpr", At = "__mpu", lo = "$people_distinct_id", Bi = "__alias",
|
|
28746
|
+
var Ct = "__mps", St = "__mpso", kt = "__mpus", wt = "__mpa", _t = "__mpap", Mt = "__mpr", At = "__mpu", lo = "$people_distinct_id", Bi = "__alias", ei = "__timers", Md = [
|
|
28747
28747
|
Ct,
|
|
28748
28748
|
St,
|
|
28749
28749
|
kt,
|
|
@@ -28753,7 +28753,7 @@ var Ct = "__mps", St = "__mpso", kt = "__mpus", wt = "__mpa", _t = "__mpap", Mt
|
|
|
28753
28753
|
At,
|
|
28754
28754
|
lo,
|
|
28755
28755
|
Bi,
|
|
28756
|
-
|
|
28756
|
+
ei
|
|
28757
28757
|
], F = function(n) {
|
|
28758
28758
|
this.props = {}, this.campaign_params_saved = !1, n.persistence_name ? this.name = "mp_" + n.persistence_name : this.name = "mp_" + n.token + "_mixpanel";
|
|
28759
28759
|
var e = n.persistence;
|
|
@@ -28843,7 +28843,7 @@ F.prototype.set_secure = function(n) {
|
|
|
28843
28843
|
n !== this.secure && (this.secure = !!n, this.remove(), this.save());
|
|
28844
28844
|
};
|
|
28845
28845
|
F.prototype._add_to_people_queue = function(n, e) {
|
|
28846
|
-
var i = this._get_queue_key(n), t = e[n], s = this._get_or_create_queue(hn), o = this._get_or_create_queue(
|
|
28846
|
+
var i = this._get_queue_key(n), t = e[n], s = this._get_or_create_queue(hn), o = this._get_or_create_queue(Vn), a = this._get_or_create_queue(Re), l = this._get_or_create_queue(Mn), d = this._get_or_create_queue(An), p = this._get_or_create_queue(en, []), v = this._get_or_create_queue(qe, []);
|
|
28847
28847
|
i === Ct ? (m.extend(s, t), this._pop_from_people_queue(Mn, t), this._pop_from_people_queue(An, t), this._pop_from_people_queue(Re, t)) : i === St ? (m.each(t, function(g, f) {
|
|
28848
28848
|
f in o || (o[f] = g);
|
|
28849
28849
|
}), this._pop_from_people_queue(Re, t)) : i === kt ? m.each(t, function(g) {
|
|
@@ -28872,7 +28872,7 @@ F.prototype.load_queue = function(n) {
|
|
|
28872
28872
|
F.prototype._get_queue_key = function(n) {
|
|
28873
28873
|
if (n === hn)
|
|
28874
28874
|
return Ct;
|
|
28875
|
-
if (n ===
|
|
28875
|
+
if (n === Vn)
|
|
28876
28876
|
return St;
|
|
28877
28877
|
if (n === Re)
|
|
28878
28878
|
return kt;
|
|
@@ -28891,19 +28891,19 @@ F.prototype._get_or_create_queue = function(n, e) {
|
|
|
28891
28891
|
return e = m.isUndefined(e) ? {} : e, this.props[i] || (this.props[i] = e);
|
|
28892
28892
|
};
|
|
28893
28893
|
F.prototype.set_event_timer = function(n, e) {
|
|
28894
|
-
var i = this.load_prop(
|
|
28895
|
-
i[n] = e, this.props[
|
|
28894
|
+
var i = this.load_prop(ei) || {};
|
|
28895
|
+
i[n] = e, this.props[ei] = i, this.save();
|
|
28896
28896
|
};
|
|
28897
28897
|
F.prototype.remove_event_timer = function(n) {
|
|
28898
|
-
var e = this.load_prop(
|
|
28899
|
-
return m.isUndefined(i) || (delete this.props[
|
|
28898
|
+
var e = this.load_prop(ei) || {}, i = e[n];
|
|
28899
|
+
return m.isUndefined(i) || (delete this.props[ei][n], this.save()), i;
|
|
28900
28900
|
};
|
|
28901
28901
|
var Lt, uo = function(n, e) {
|
|
28902
28902
|
throw new Error(n + " not available in this build.");
|
|
28903
28903
|
}, Se, co = 0, Ad = 1, Ld = function(n) {
|
|
28904
28904
|
return n;
|
|
28905
|
-
},
|
|
28906
|
-
}, Ne = "mixpanel", ho = "base64", xd = "json", xt = "$device:",
|
|
28905
|
+
}, ni = function() {
|
|
28906
|
+
}, Ne = "mixpanel", ho = "base64", xd = "json", xt = "$device:", Hn = H.XMLHttpRequest && "withCredentials" in new XMLHttpRequest(), mo = !Hn && Ge.indexOf("MSIE") === -1 && Ge.indexOf("Mozilla") === -1, Di = null;
|
|
28907
28907
|
un.sendBeacon && (Di = function() {
|
|
28908
28908
|
return un.sendBeacon.apply(un, arguments);
|
|
28909
28909
|
});
|
|
@@ -28922,12 +28922,12 @@ var vo = {
|
|
|
28922
28922
|
cdn: "https://cdn.mxpnl.com",
|
|
28923
28923
|
cross_site_cookie: !1,
|
|
28924
28924
|
cross_subdomain_cookie: !0,
|
|
28925
|
-
error_reporter:
|
|
28925
|
+
error_reporter: ni,
|
|
28926
28926
|
persistence: "cookie",
|
|
28927
28927
|
persistence_name: "",
|
|
28928
28928
|
cookie_domain: "",
|
|
28929
28929
|
cookie_name: "",
|
|
28930
|
-
loaded:
|
|
28930
|
+
loaded: ni,
|
|
28931
28931
|
mp_loader: null,
|
|
28932
28932
|
track_marketing: !0,
|
|
28933
28933
|
track_pageview: !1,
|
|
@@ -28968,7 +28968,7 @@ var vo = {
|
|
|
28968
28968
|
record_inline_images: !1,
|
|
28969
28969
|
record_mask_text_class: new RegExp("^(mp-mask|fs-mask|amp-mask|rr-mask|ph-mask)$"),
|
|
28970
28970
|
record_mask_text_selector: "*",
|
|
28971
|
-
record_max_ms:
|
|
28971
|
+
record_max_ms: Jn,
|
|
28972
28972
|
record_min_ms: 0,
|
|
28973
28973
|
record_sessions_percent: 0,
|
|
28974
28974
|
recorder_src: "https://cdn.mxpnl.com/libs/mixpanel-recorder.min.js"
|
|
@@ -29015,11 +29015,11 @@ L.prototype._init = function(n, e, i) {
|
|
|
29015
29015
|
name: i,
|
|
29016
29016
|
token: n,
|
|
29017
29017
|
callback_fn: (i === Ne ? i : Ne + "." + i) + "._jsc"
|
|
29018
|
-
})), this._jsc =
|
|
29018
|
+
})), this._jsc = ni, this.__dom_loaded_queue = [], this.__request_queue = [], this.__disabled_events = [], this._flags = {
|
|
29019
29019
|
disable_all_events: !1,
|
|
29020
29020
|
identify_called: !1
|
|
29021
29021
|
}, this.request_batchers = {}, this._batch_requests = this.get_config("batch_requests"), this._batch_requests) {
|
|
29022
|
-
if (!m.localStorage.is_supported(!0) || !
|
|
29022
|
+
if (!m.localStorage.is_supported(!0) || !Hn)
|
|
29023
29023
|
this._batch_requests = !1, $.log("Turning off Mixpanel request-queueing; needs XHR and localStorage support"), m.each(this.get_batcher_configs(), function(d) {
|
|
29024
29024
|
$.log("Clearing batch queue " + d.queue_key), m.localStorage.remove(d.queue_key);
|
|
29025
29025
|
});
|
|
@@ -29117,7 +29117,7 @@ L.prototype._init_url_change_tracking = function(n) {
|
|
|
29117
29117
|
L.prototype._prepare_callback = function(n, e) {
|
|
29118
29118
|
if (m.isUndefined(n))
|
|
29119
29119
|
return null;
|
|
29120
|
-
if (
|
|
29120
|
+
if (Hn) {
|
|
29121
29121
|
var i = function(a) {
|
|
29122
29122
|
n(a, e);
|
|
29123
29123
|
};
|
|
@@ -29138,9 +29138,9 @@ L.prototype._send_request = function(n, e, i, t) {
|
|
|
29138
29138
|
transport: this.get_config("api_transport"),
|
|
29139
29139
|
verbose: this.get_config("verbose")
|
|
29140
29140
|
}, a = null;
|
|
29141
|
-
!t && (m.isFunction(i) || typeof i == "string") && (t = i, i = null), i = m.extend(o, i || {}),
|
|
29141
|
+
!t && (m.isFunction(i) || typeof i == "string") && (t = i, i = null), i = m.extend(o, i || {}), Hn || (i.method = "GET");
|
|
29142
29142
|
var l = i.method === "POST", d = Di && l && i.transport.toLowerCase() === "sendbeacon", p = i.verbose;
|
|
29143
|
-
e.verbose && (p = !0), this.get_config("test") && (e.test = 1), p && (e.verbose = 1), this.get_config("img") && (e.img = 1),
|
|
29143
|
+
e.verbose && (p = !0), this.get_config("test") && (e.test = 1), p && (e.verbose = 1), this.get_config("img") && (e.img = 1), Hn || (t ? e.callback = t : (p || this.get_config("test")) && (e.callback = "(function(){})")), e.ip = this.get_config("ip") ? 1 : 0, e._ = (/* @__PURE__ */ new Date()).getTime().toString(), l && (a = "data=" + encodeURIComponent(e.data), delete e.data), n += "?" + m.HTTPBuildQuery(e);
|
|
29144
29144
|
var v = this;
|
|
29145
29145
|
if ("img" in e) {
|
|
29146
29146
|
var g = ee.createElement("img");
|
|
@@ -29156,7 +29156,7 @@ L.prototype._send_request = function(n, e, i, t) {
|
|
|
29156
29156
|
} catch (M) {
|
|
29157
29157
|
v.report_error(M);
|
|
29158
29158
|
}
|
|
29159
|
-
} else if (
|
|
29159
|
+
} else if (Hn)
|
|
29160
29160
|
try {
|
|
29161
29161
|
var f = new XMLHttpRequest();
|
|
29162
29162
|
f.open(i.method, n, !0);
|
|
@@ -29288,7 +29288,7 @@ L.prototype._encode_data_for_request = function(n) {
|
|
|
29288
29288
|
};
|
|
29289
29289
|
L.prototype._track_or_batch = function(n, e) {
|
|
29290
29290
|
var i = m.truncate(n.data, 255), t = n.endpoint, s = n.batcher, o = n.should_send_immediately, a = n.send_request_options || {};
|
|
29291
|
-
e = e ||
|
|
29291
|
+
e = e || ni;
|
|
29292
29292
|
var l = !0, d = m.bind(function() {
|
|
29293
29293
|
return a.skip_hooks || (i = this._run_hook("before_send_" + n.type, i)), i ? ($.log("MIXPANEL REQUEST:"), $.log(i), this._send_request(
|
|
29294
29294
|
t,
|
|
@@ -29306,7 +29306,7 @@ L.prototype.track = mn(function(n, e, i, t) {
|
|
|
29306
29306
|
var s = i.transport;
|
|
29307
29307
|
s && (i.transport = s);
|
|
29308
29308
|
var o = i.send_immediately;
|
|
29309
|
-
if (typeof t != "function" && (t =
|
|
29309
|
+
if (typeof t != "function" && (t = ni), m.isUndefined(n)) {
|
|
29310
29310
|
this.report_error("No event name provided to mixpanel.track");
|
|
29311
29311
|
return;
|
|
29312
29312
|
}
|
|
@@ -29395,7 +29395,7 @@ L.prototype.track_pageview = mn(function(n, e) {
|
|
|
29395
29395
|
return this.track(i, s);
|
|
29396
29396
|
});
|
|
29397
29397
|
L.prototype.track_links = function() {
|
|
29398
|
-
return this._track_dom.call(this,
|
|
29398
|
+
return this._track_dom.call(this, On, arguments);
|
|
29399
29399
|
};
|
|
29400
29400
|
L.prototype.track_forms = function() {
|
|
29401
29401
|
return this._track_dom.call(this, ji, arguments);
|
|
@@ -29616,20 +29616,20 @@ F.prototype.update_search_keyword = F.prototype.update_search_keyword;
|
|
|
29616
29616
|
F.prototype.update_referrer_info = F.prototype.update_referrer_info;
|
|
29617
29617
|
F.prototype.get_cross_subdomain = F.prototype.get_cross_subdomain;
|
|
29618
29618
|
F.prototype.clear = F.prototype.clear;
|
|
29619
|
-
var
|
|
29620
|
-
m.each(
|
|
29619
|
+
var Dn = {}, Ed = function() {
|
|
29620
|
+
m.each(Dn, function(n, e) {
|
|
29621
29621
|
e !== Ne && (Se[e] = n);
|
|
29622
29622
|
}), Se._ = m;
|
|
29623
29623
|
}, Pd = function() {
|
|
29624
29624
|
Se.init = function(n, e, i) {
|
|
29625
29625
|
if (i)
|
|
29626
|
-
return Se[i] || (Se[i] =
|
|
29626
|
+
return Se[i] || (Se[i] = Dn[i] = ht(n, e, i), Se[i]._loaded()), Se[i];
|
|
29627
29627
|
var t = Se;
|
|
29628
|
-
|
|
29628
|
+
Dn[Ne] ? t = Dn[Ne] : n && (t = ht(n, e, Ne), t._loaded(), Dn[Ne] = t), Se = t, Lt === Ad && (H[Ne] = Se), Ed();
|
|
29629
29629
|
};
|
|
29630
29630
|
}, Id = function() {
|
|
29631
29631
|
function n() {
|
|
29632
|
-
n.done || (n.done = !0, po = !0, mo = !1, m.each(
|
|
29632
|
+
n.done || (n.done = !0, po = !0, mo = !1, m.each(Dn, function(t) {
|
|
29633
29633
|
t._dom_loaded();
|
|
29634
29634
|
}));
|
|
29635
29635
|
}
|
|
@@ -29825,7 +29825,7 @@ class Hd {
|
|
|
29825
29825
|
startTimer() {
|
|
29826
29826
|
const e = this.container.querySelector("#ctd-timer");
|
|
29827
29827
|
this.stopTimer(), this.timerId = window.setInterval(() => {
|
|
29828
|
-
this.timeLeft > 0 ? (this.timeLeft -= 1, e && (e.innerHTML =
|
|
29828
|
+
this.timeLeft > 0 ? (this.timeLeft -= 1, e && (e.innerHTML = Yn(this.timeLeft), this.startTimer())) : (this.stopTimer(), this.onAction(this.step.end));
|
|
29829
29829
|
}, 1e3);
|
|
29830
29830
|
}
|
|
29831
29831
|
stopTimer() {
|
|
@@ -30028,7 +30028,7 @@ class Rd {
|
|
|
30028
30028
|
<path
|
|
30029
30029
|
d="M62 32C62 38.6156 59.8132 45.0457 55.78 50.2897C51.7468 55.5336 46.0932 59.2974 39.6992 60.9952C33.3052 62.693 26.5293 62.2297 20.4258 59.6774C14.3224 57.1251 9.2338 52.6268 5.95186 46.8827C2.66993 41.1385 1.37873 34.4707 2.2792 27.9166C3.17967 21.3626 6.22129 15.29 10.9308 10.6438C15.6402 5.9976 21.7534 3.0384 28.3191 2.22668C34.8847 1.41496 41.5345 2.79623 47.2337 6.15557"
|
|
30030
30030
|
stroke="black" stroke-width="4" stroke-linejoin="round" />
|
|
30031
|
-
</svg>`), s && s.classList.add("hidden"),
|
|
30031
|
+
</svg>`), s && s.classList.add("hidden"), yi(
|
|
30032
30032
|
this.token,
|
|
30033
30033
|
i,
|
|
30034
30034
|
this.rdtCode,
|
|
@@ -30114,7 +30114,7 @@ class Rd {
|
|
|
30114
30114
|
P.track("input_address", {
|
|
30115
30115
|
payment_method: "Card",
|
|
30116
30116
|
authentication_type: "AVS"
|
|
30117
|
-
}), t && s && (t.classList.remove("hidden"), s.classList.add("hidden")),
|
|
30117
|
+
}), t && s && (t.classList.remove("hidden"), s.classList.add("hidden")), yi(
|
|
30118
30118
|
this.token,
|
|
30119
30119
|
o,
|
|
30120
30120
|
this.rdtCode,
|
|
@@ -30169,7 +30169,7 @@ class Rd {
|
|
|
30169
30169
|
this.currentStep = 6, this.showLoader(), P.track("input_cardOTP", {
|
|
30170
30170
|
payment_method: "Card",
|
|
30171
30171
|
authentication_type: "PIN+0TP"
|
|
30172
|
-
}),
|
|
30172
|
+
}), yi(
|
|
30173
30173
|
this.token,
|
|
30174
30174
|
t,
|
|
30175
30175
|
this.rdtCode,
|
|
@@ -30350,7 +30350,7 @@ class Rd {
|
|
|
30350
30350
|
}), this.contents.innerHTML = this.warningScreen.render(), this.warningScreen.attachListener();
|
|
30351
30351
|
break;
|
|
30352
30352
|
case 5:
|
|
30353
|
-
this.successScreen = new
|
|
30353
|
+
this.successScreen = new ii({
|
|
30354
30354
|
container: this.contents,
|
|
30355
30355
|
amount: this.totalAmount,
|
|
30356
30356
|
currency: this.currency,
|
|
@@ -31138,30 +31138,30 @@ var go = { exports: {} };
|
|
|
31138
31138
|
r.push([b, u]);
|
|
31139
31139
|
}), r;
|
|
31140
31140
|
}
|
|
31141
|
-
function
|
|
31141
|
+
function jn(c, r) {
|
|
31142
31142
|
for (var u = 0; u < c.length; u++)
|
|
31143
31143
|
if (r(c[u], u, c))
|
|
31144
31144
|
return !0;
|
|
31145
31145
|
return !1;
|
|
31146
31146
|
}
|
|
31147
|
-
function
|
|
31147
|
+
function ai(c, r) {
|
|
31148
31148
|
for (var u = 0; u < c.length; u++)
|
|
31149
31149
|
if (!r(c[u], u, c))
|
|
31150
31150
|
return !1;
|
|
31151
31151
|
return !0;
|
|
31152
31152
|
}
|
|
31153
|
-
function
|
|
31153
|
+
function ri(c) {
|
|
31154
31154
|
return ue(c, function(r) {
|
|
31155
31155
|
return typeof r == "object" && (r = gn(r)), encodeURIComponent(ge(r.toString()));
|
|
31156
31156
|
});
|
|
31157
31157
|
}
|
|
31158
|
-
function
|
|
31158
|
+
function li(c) {
|
|
31159
31159
|
var r = J(c, function(b) {
|
|
31160
31160
|
return b !== void 0;
|
|
31161
|
-
}), u = Y(an(
|
|
31161
|
+
}), u = Y(an(ri(r)), ae.method("join", "=")).join("&");
|
|
31162
31162
|
return u;
|
|
31163
31163
|
}
|
|
31164
|
-
function
|
|
31164
|
+
function di(c) {
|
|
31165
31165
|
var r = [], u = [];
|
|
31166
31166
|
return function b(S, x) {
|
|
31167
31167
|
var E, N, D;
|
|
@@ -31192,10 +31192,10 @@ var go = { exports: {} };
|
|
|
31192
31192
|
try {
|
|
31193
31193
|
return JSON.stringify(c);
|
|
31194
31194
|
} catch {
|
|
31195
|
-
return JSON.stringify(
|
|
31195
|
+
return JSON.stringify(di(c));
|
|
31196
31196
|
}
|
|
31197
31197
|
}
|
|
31198
|
-
class
|
|
31198
|
+
class Fn {
|
|
31199
31199
|
constructor() {
|
|
31200
31200
|
this.globalLog = (r) => {
|
|
31201
31201
|
window.console && window.console.log && window.console.log(r);
|
|
@@ -31221,7 +31221,7 @@ var go = { exports: {} };
|
|
|
31221
31221
|
Xi.log ? Xi.log(b) : Xi.logToConsole && r.bind(this)(b);
|
|
31222
31222
|
}
|
|
31223
31223
|
}
|
|
31224
|
-
var oe = new
|
|
31224
|
+
var oe = new Fn(), ko = function(c, r, u, b, S) {
|
|
31225
31225
|
(u.headers !== void 0 || u.headersProvider != null) && oe.warn(`To send headers with the ${b.toString()} request, you must use AJAX, rather than JSONP.`);
|
|
31226
31226
|
var x = c.nextAuthCallbackID.toString();
|
|
31227
31227
|
c.nextAuthCallbackID++;
|
|
@@ -31260,7 +31260,7 @@ var go = { exports: {} };
|
|
|
31260
31260
|
}
|
|
31261
31261
|
send(r) {
|
|
31262
31262
|
if (!this.request) {
|
|
31263
|
-
var u =
|
|
31263
|
+
var u = li(this.data), b = this.url + "/" + r.number + "?" + u;
|
|
31264
31264
|
this.request = O.createScriptRequest(b), this.request.send(r);
|
|
31265
31265
|
}
|
|
31266
31266
|
}
|
|
@@ -31499,7 +31499,7 @@ var go = { exports: {} };
|
|
|
31499
31499
|
ws: Bo,
|
|
31500
31500
|
xhr_streaming: Do,
|
|
31501
31501
|
xhr_polling: Ho
|
|
31502
|
-
},
|
|
31502
|
+
}, ui = Ro, Oo = new xn({
|
|
31503
31503
|
file: "sockjs",
|
|
31504
31504
|
urls: Po,
|
|
31505
31505
|
handlesActivityChecks: !0,
|
|
@@ -31529,8 +31529,8 @@ var go = { exports: {} };
|
|
|
31529
31529
|
return r;
|
|
31530
31530
|
}
|
|
31531
31531
|
}, Vo = new xn(pe({}, It, Dt)), Uo = new xn(pe({}, Nt, Dt));
|
|
31532
|
-
|
|
31533
|
-
var Ko =
|
|
31532
|
+
ui.xdr_streaming = Vo, ui.xdr_polling = Uo, ui.sockjs = Oo;
|
|
31533
|
+
var Ko = ui;
|
|
31534
31534
|
class jo extends Je {
|
|
31535
31535
|
constructor() {
|
|
31536
31536
|
super();
|
|
@@ -32246,7 +32246,7 @@ var go = { exports: {} };
|
|
|
32246
32246
|
this.strategies = r, this.loop = !!u.loop, this.failFast = !!u.failFast, this.timeout = u.timeout, this.timeoutLimit = u.timeoutLimit;
|
|
32247
32247
|
}
|
|
32248
32248
|
isSupported() {
|
|
32249
|
-
return
|
|
32249
|
+
return jn(this.strategies, ae.method("isSupported"));
|
|
32250
32250
|
}
|
|
32251
32251
|
connect(r, u) {
|
|
32252
32252
|
var b = this.strategies, S = 0, x = this.timeout, E = null, N = (D, Z) => {
|
|
@@ -32282,7 +32282,7 @@ var go = { exports: {} };
|
|
|
32282
32282
|
this.strategies = r;
|
|
32283
32283
|
}
|
|
32284
32284
|
isSupported() {
|
|
32285
|
-
return
|
|
32285
|
+
return jn(this.strategies, ae.method("isSupported"));
|
|
32286
32286
|
}
|
|
32287
32287
|
connect(r, u) {
|
|
32288
32288
|
return ta(this.strategies, r, function(b, S) {
|
|
@@ -32314,7 +32314,7 @@ var go = { exports: {} };
|
|
|
32314
32314
|
};
|
|
32315
32315
|
}
|
|
32316
32316
|
function sa(c) {
|
|
32317
|
-
return
|
|
32317
|
+
return ai(c, function(r) {
|
|
32318
32318
|
return !!r.error;
|
|
32319
32319
|
});
|
|
32320
32320
|
}
|
|
@@ -32341,8 +32341,8 @@ var go = { exports: {} };
|
|
|
32341
32341
|
failFast: !0
|
|
32342
32342
|
}))) : x++);
|
|
32343
32343
|
}
|
|
32344
|
-
var D = ae.now(), Z = E.pop().connect(r, function Q(ce,
|
|
32345
|
-
ce ? (Ot(b), E.length > 0 ? (D = ae.now(), Z = E.pop().connect(r, Q)) : u(ce)) : (la(b,
|
|
32344
|
+
var D = ae.now(), Z = E.pop().connect(r, function Q(ce, mi) {
|
|
32345
|
+
ce ? (Ot(b), E.length > 0 ? (D = ae.now(), Z = E.pop().connect(r, Q)) : u(ce)) : (la(b, mi.transport.name, ae.now() - D, x), u(null, mi));
|
|
32346
32346
|
});
|
|
32347
32347
|
return {
|
|
32348
32348
|
abort: function() {
|
|
@@ -32390,7 +32390,7 @@ var go = { exports: {} };
|
|
|
32390
32390
|
} catch {
|
|
32391
32391
|
}
|
|
32392
32392
|
}
|
|
32393
|
-
class
|
|
32393
|
+
class ci {
|
|
32394
32394
|
constructor(r, { delay: u }) {
|
|
32395
32395
|
this.strategy = r, this.options = { delay: u };
|
|
32396
32396
|
}
|
|
@@ -32411,7 +32411,7 @@ var go = { exports: {} };
|
|
|
32411
32411
|
};
|
|
32412
32412
|
}
|
|
32413
32413
|
}
|
|
32414
|
-
class
|
|
32414
|
+
class Gn {
|
|
32415
32415
|
constructor(r, u, b) {
|
|
32416
32416
|
this.test = r, this.trueBranch = u, this.falseBranch = b;
|
|
32417
32417
|
}
|
|
@@ -32438,7 +32438,7 @@ var go = { exports: {} };
|
|
|
32438
32438
|
return b;
|
|
32439
32439
|
}
|
|
32440
32440
|
}
|
|
32441
|
-
function
|
|
32441
|
+
function qn(c) {
|
|
32442
32442
|
return function() {
|
|
32443
32443
|
return c.isSupported();
|
|
32444
32444
|
};
|
|
@@ -32470,24 +32470,24 @@ var go = { exports: {} };
|
|
|
32470
32470
|
lives: 2,
|
|
32471
32471
|
minPingDelay: 1e4,
|
|
32472
32472
|
maxPingDelay: c.activityTimeout
|
|
32473
|
-
}), ce = S("ws", "ws", 3, x, Z),
|
|
32474
|
-
new
|
|
32473
|
+
}), ce = S("ws", "ws", 3, x, Z), mi = S("wss", "ws", 3, E, Z), sr = S("sockjs", "sockjs", 1, N), Ft = S("xhr_streaming", "xhr_streaming", 1, N, Q), or = S("xdr_streaming", "xdr_streaming", 1, N, Q), Gt = S("xhr_polling", "xhr_polling", 1, N), ar = S("xdr_polling", "xdr_polling", 1, N), qt = new Cn([ce], D), rr = new Cn([mi], D), lr = new Cn([sr], D), zt = new Cn([
|
|
32474
|
+
new Gn(qn(Ft), Ft, or)
|
|
32475
32475
|
], D), Wt = new Cn([
|
|
32476
|
-
new
|
|
32476
|
+
new Gn(qn(Gt), Gt, ar)
|
|
32477
32477
|
], D), Zt = new Cn([
|
|
32478
|
-
new
|
|
32478
|
+
new Gn(qn(zt), new Ji([
|
|
32479
32479
|
zt,
|
|
32480
|
-
new
|
|
32480
|
+
new ci(Wt, { delay: 4e3 })
|
|
32481
32481
|
]), Wt)
|
|
32482
|
-
], D), et = new
|
|
32482
|
+
], D), et = new Gn(qn(Zt), Zt, lr), nt;
|
|
32483
32483
|
return r.useTLS ? nt = new Ji([
|
|
32484
32484
|
qt,
|
|
32485
|
-
new
|
|
32485
|
+
new ci(et, { delay: 2e3 })
|
|
32486
32486
|
]) : nt = new Ji([
|
|
32487
32487
|
qt,
|
|
32488
|
-
new
|
|
32489
|
-
new
|
|
32490
|
-
]), new aa(new da(new
|
|
32488
|
+
new ci(rr, { delay: 2e3 }),
|
|
32489
|
+
new ci(et, { delay: 5e3 })
|
|
32490
|
+
]), new aa(new da(new Gn(qn(ce), nt, et)), b, {
|
|
32491
32491
|
ttl: 18e5,
|
|
32492
32492
|
timeline: r.timeline,
|
|
32493
32493
|
useTLS: r.useTLS
|
|
@@ -32828,7 +32828,7 @@ var go = { exports: {} };
|
|
|
32828
32828
|
(function(c) {
|
|
32829
32829
|
c[c.ERROR = 3] = "ERROR", c[c.INFO = 6] = "INFO", c[c.DEBUG = 7] = "DEBUG";
|
|
32830
32830
|
})(Qi || (Qi = {}));
|
|
32831
|
-
var
|
|
32831
|
+
var hi = Qi;
|
|
32832
32832
|
class Na {
|
|
32833
32833
|
constructor(r, u, b) {
|
|
32834
32834
|
this.key = r, this.session = u, this.events = [], this.options = b || {}, this.sent = 0, this.uniqueID = 0;
|
|
@@ -32837,13 +32837,13 @@ var go = { exports: {} };
|
|
|
32837
32837
|
r <= this.options.level && (this.events.push(pe({}, u, { timestamp: ae.now() })), this.options.limit && this.events.length > this.options.limit && this.events.shift());
|
|
32838
32838
|
}
|
|
32839
32839
|
error(r) {
|
|
32840
|
-
this.log(
|
|
32840
|
+
this.log(hi.ERROR, r);
|
|
32841
32841
|
}
|
|
32842
32842
|
info(r) {
|
|
32843
|
-
this.log(
|
|
32843
|
+
this.log(hi.INFO, r);
|
|
32844
32844
|
}
|
|
32845
32845
|
debug(r) {
|
|
32846
|
-
this.log(
|
|
32846
|
+
this.log(hi.DEBUG, r);
|
|
32847
32847
|
}
|
|
32848
32848
|
isEmpty() {
|
|
32849
32849
|
return this.events.length === 0;
|
|
@@ -33157,7 +33157,7 @@ var go = { exports: {} };
|
|
|
33157
33157
|
features: ye.getClientFeatures(),
|
|
33158
33158
|
params: this.config.timelineParams || {},
|
|
33159
33159
|
limit: 50,
|
|
33160
|
-
level:
|
|
33160
|
+
level: hi.INFO,
|
|
33161
33161
|
version: d.VERSION
|
|
33162
33162
|
}), this.config.enableStats && (this.timelineSender = $e.createTimelineSender(this.timeline, {
|
|
33163
33163
|
host: this.config.statsHost,
|
|
@@ -33294,7 +33294,7 @@ class ks {
|
|
|
33294
33294
|
if (this.timeLeft > 0) {
|
|
33295
33295
|
this.timeLeft -= 1;
|
|
33296
33296
|
const i = this.container.querySelector("#time-left");
|
|
33297
|
-
i && (i.innerHTML =
|
|
33297
|
+
i && (i.innerHTML = Yn(this.timeLeft));
|
|
33298
33298
|
} else
|
|
33299
33299
|
this.stopTimer(), e === "check" && this.onAction(2);
|
|
33300
33300
|
}, 1e3);
|
|
@@ -33316,7 +33316,7 @@ class ks {
|
|
|
33316
33316
|
if (i && (i.innerHTML = `${d} ${Le(
|
|
33317
33317
|
this.payment.totalTaxAmount ? this.payment.totalLocalAmount : l === "USD" ? (y = this.payment) == null ? void 0 : y.localAmount : (k = this.payment) == null ? void 0 : k.amount,
|
|
33318
33318
|
2
|
|
33319
|
-
)}`), t && this.payment.bankDetails && (t.innerHTML = (C = this.payment.bankDetails) == null ? void 0 : C.bankName), s && this.payment.bankDetails && (s.innerHTML = (w = this.payment.bankDetails) == null ? void 0 : w.accountName), o && this.payment.bankDetails && (o.innerHTML = this.payment.bankDetails.accountNumber), a && (a.innerHTML =
|
|
33319
|
+
)}`), t && this.payment.bankDetails && (t.innerHTML = (C = this.payment.bankDetails) == null ? void 0 : C.bankName), s && this.payment.bankDetails && (s.innerHTML = (w = this.payment.bankDetails) == null ? void 0 : w.accountName), o && this.payment.bankDetails && (o.innerHTML = this.payment.bankDetails.accountNumber), a && (a.innerHTML = Yn(this.initialTime)), this.startTimer("poll"), e.status === "inProgress") {
|
|
33320
33320
|
const M = "45654f3ce4c9512ea9a4", A = "us2";
|
|
33321
33321
|
var p = new Kd(M, {
|
|
33322
33322
|
cluster: A
|
|
@@ -33503,7 +33503,7 @@ class Fd {
|
|
|
33503
33503
|
startTimer() {
|
|
33504
33504
|
const e = this.container.querySelector("#ctd-timer");
|
|
33505
33505
|
this.stopTimer(), this.timerId = window.setInterval(() => {
|
|
33506
|
-
this.timeLeft > 0 ? (this.timeLeft -= 1, e && (e.innerHTML =
|
|
33506
|
+
this.timeLeft > 0 ? (this.timeLeft -= 1, e && (e.innerHTML = Yn(this.timeLeft), this.startTimer()), this.updateProgressTimerContent()) : (this.stopTimer(), this.onAction(8));
|
|
33507
33507
|
}, 1e3);
|
|
33508
33508
|
}
|
|
33509
33509
|
stopTimer() {
|
|
@@ -33782,7 +33782,7 @@ class zd {
|
|
|
33782
33782
|
);
|
|
33783
33783
|
break;
|
|
33784
33784
|
case 6:
|
|
33785
|
-
this.successScreen = new
|
|
33785
|
+
this.successScreen = new ii({
|
|
33786
33786
|
container: this.contents,
|
|
33787
33787
|
amount: this.totalAmount,
|
|
33788
33788
|
currency: this.currency,
|
|
@@ -34511,7 +34511,7 @@ class Co {
|
|
|
34511
34511
|
);
|
|
34512
34512
|
break;
|
|
34513
34513
|
case 5:
|
|
34514
|
-
this.successScreen = new
|
|
34514
|
+
this.successScreen = new ii({
|
|
34515
34515
|
container: this.contents,
|
|
34516
34516
|
amount: this.totalAmount,
|
|
34517
34517
|
currency: this.currency,
|
|
@@ -34560,7 +34560,7 @@ function iu(n) {
|
|
|
34560
34560
|
// Capitalize the first letter and make the rest lowercase
|
|
34561
34561
|
).join(" ");
|
|
34562
34562
|
}
|
|
34563
|
-
const
|
|
34563
|
+
const gi = (n) => {
|
|
34564
34564
|
if (n) {
|
|
34565
34565
|
const e = nu(n);
|
|
34566
34566
|
return iu(e);
|
|
@@ -34736,7 +34736,7 @@ class su {
|
|
|
34736
34736
|
});
|
|
34737
34737
|
}
|
|
34738
34738
|
renderComponent() {
|
|
34739
|
-
var G, V, j, te, ge, U, ke, le, xe, we, ze, sn, We, bn, on, Te, Ze, fn, ae, pe, Ie, Ee, Ce, je, B, de, Y, ue, Pe, J, an,
|
|
34739
|
+
var G, V, j, te, ge, U, ke, le, xe, we, ze, sn, We, bn, on, Te, Ze, fn, ae, pe, Ie, Ee, Ce, je, B, de, Y, ue, Pe, J, an, jn, ai, ri, li, di, gn;
|
|
34740
34740
|
this.container.innerHTML = this.render(), this.amount = this.amount;
|
|
34741
34741
|
const e = this.container.querySelector(
|
|
34742
34742
|
"#merchant-logo-container"
|
|
@@ -34761,19 +34761,19 @@ class su {
|
|
|
34761
34761
|
);
|
|
34762
34762
|
if ((G = this.merchantDetail) != null && G.merchantLogo ? i && i.setAttribute("src", (V = this.merchantDetail) == null ? void 0 : V.merchantLogo) : e && (i == null || i.remove(), e.innerHTML = `<div class="font-semibold text-tone-100 rounded-2xl w-8 h-8 bg-tone-10 container-center uppercase">${this.merchantDetail.merchantName[0]}</div>`), t && (t.innerHTML = this.email), s && (s.innerHTML = this.email), o) {
|
|
34763
34763
|
if ((te = (j = this.merchantDetail) == null ? void 0 : j.plan) != null && te.title) {
|
|
34764
|
-
const
|
|
34765
|
-
o.textContent =
|
|
34764
|
+
const Fn = ((U = (ge = this.merchantDetail) == null ? void 0 : ge.plan) == null ? void 0 : U.title) || "";
|
|
34765
|
+
o.textContent = gi(Fn);
|
|
34766
34766
|
}
|
|
34767
|
-
(ke = this.metadata) != null && ke.productName && (o.textContent =
|
|
34767
|
+
(ke = this.metadata) != null && ke.productName && (o.textContent = gi(
|
|
34768
34768
|
this.metadata.productName
|
|
34769
34769
|
));
|
|
34770
34770
|
}
|
|
34771
34771
|
if (a) {
|
|
34772
34772
|
if ((xe = (le = this.merchantDetail) == null ? void 0 : le.plan) != null && xe.title) {
|
|
34773
|
-
const
|
|
34774
|
-
a.textContent =
|
|
34773
|
+
const Fn = ((ze = (we = this.merchantDetail) == null ? void 0 : we.plan) == null ? void 0 : ze.title) || "";
|
|
34774
|
+
a.textContent = gi(Fn);
|
|
34775
34775
|
}
|
|
34776
|
-
(sn = this.metadata) != null && sn.productName && (a.textContent =
|
|
34776
|
+
(sn = this.metadata) != null && sn.productName && (a.textContent = gi(
|
|
34777
34777
|
this.metadata.productName
|
|
34778
34778
|
));
|
|
34779
34779
|
}
|
|
@@ -34785,7 +34785,7 @@ class su {
|
|
|
34785
34785
|
2
|
|
34786
34786
|
)} `) : p.innerHTML = ""), (je = (Ce = this.merchantDetail) == null ? void 0 : Ce.plan) != null && je.title || (B = this.metadata) != null && B.productName ? f && (f.innerHTML = `${this.currency} ${Le(this.amount, 2)}`) : (k && (k.innerHTML = `<span> ${this.currency} ${Le(this.amount, 2)} </span>`), o && a && (o.remove(), a == null || a.remove()), this.localCurrency ? f == null || f.remove() : l && l.remove()), y && (y.innerHTML = `${this.currency} ${Le(this.amount, 2)}`), C && (this.localCurrency && this.localCurrency !== this.currency ? C.children[1].innerHTML = `${this.localCurrency} ${Le(this.amount * (((Y = (de = this.merchantDetail) == null ? void 0 : de.rate) == null ? void 0 : Y.rate) || 1), 2)}` : C.remove()), w && (this.localCurrency && this.localCurrency !== this.currency ? w.children[1].innerHTML = `${this.localCurrency} ${Le(this.amount * (((Pe = (ue = this.merchantDetail) == null ? void 0 : ue.rate) == null ? void 0 : Pe.rate) || 1), 2)}` : w.remove());
|
|
34787
34787
|
const I = this.localCurrency !== this.currency ? this.amount * (((an = (J = this.merchantDetail) == null ? void 0 : J.rate) == null ? void 0 : an.rate) || 1) : this.amount;
|
|
34788
|
-
M && (
|
|
34788
|
+
M && (jn = this.merchantDetail) != null && jn.taxQuoteId && (ai = this.merchantDetail) != null && ai.totalAmount && (M.classList.remove("hidden"), M.children[1].innerHTML = `${this.localCurrency !== this.currency ? this.localCurrency : this.currency} ${Le(((ri = this.merchantDetail) == null ? void 0 : ri.totalAmount) - I, 2)}`), A && (li = this.merchantDetail) != null && li.taxQuoteId && (di = this.merchantDetail) != null && di.totalAmount && (A.classList.remove("hidden"), A.children[1].innerHTML = `${this.localCurrency !== this.currency ? this.localCurrency : this.currency} ${Le(((gn = this.merchantDetail) == null ? void 0 : gn.totalAmount) - I, 2)}`);
|
|
34789
34789
|
const K = eu[this.localCurrency];
|
|
34790
34790
|
_ && this.localCurrency && (_.innerHTML = K ? `${K} (${this.localCurrency})` : this.localCurrency), T && this.localCurrency && (T.innerHTML = K ? `${K} (${this.localCurrency})` : this.localCurrency), this.renderPaymentOptions(this.container), this.attachListeners();
|
|
34791
34791
|
}
|
|
@@ -34865,7 +34865,7 @@ class su {
|
|
|
34865
34865
|
const ou = `<div class="flex items-center justify-center md:justify-between w-full text-xxs mt-5">
|
|
34866
34866
|
<div class="text-tone-60"><span>Powered by</span> <span class="font-bold">Spotflow</span></div>
|
|
34867
34867
|
<div class="align-center text-tone-60 hidden md:flex gap-4">
|
|
34868
|
-
|
|
34868
|
+
<span id="test-cards-link" class="hover:font-bold">Test Cards</span>
|
|
34869
34869
|
<a href="https://ribbon-scowl-35f.notion.site/Terms-Conditions-940742f0a1b144498ffc1786c5bc6a08?pvs=4" target="_blank" class="hover:font-bold">Terms</a>
|
|
34870
34870
|
<a href="https://ribbon-scowl-35f.notion.site/Privacy-Policy-Spotflow-3997ee8d923d4cd39a3dc43b7249b713" target="_blank" class="hover:font-bold">Privacy</a>
|
|
34871
34871
|
<a href="mailto:hello@spotflow.one" class="hover:font-bold">Contact</a>
|
|
@@ -35381,7 +35381,7 @@ class du {
|
|
|
35381
35381
|
startTimer() {
|
|
35382
35382
|
const e = this.container.querySelector("#ctd-timer");
|
|
35383
35383
|
this.stopTimer(), this.timerId = window.setInterval(() => {
|
|
35384
|
-
this.timeLeft > 0 ? (this.timeLeft -= 1, e && (e.innerHTML =
|
|
35384
|
+
this.timeLeft > 0 ? (this.timeLeft -= 1, e && (e.innerHTML = Yn(this.timeLeft), this.startTimer())) : (this.stopTimer(), this.onAction(8));
|
|
35385
35385
|
}, 1e3);
|
|
35386
35386
|
}
|
|
35387
35387
|
stopTimer() {
|
|
@@ -35508,7 +35508,7 @@ class cu {
|
|
|
35508
35508
|
"#phone-number-error"
|
|
35509
35509
|
);
|
|
35510
35510
|
if (!e || !i || !s) return;
|
|
35511
|
-
const l = this.localCurrency ? this.localCurrency : this.currency, d =
|
|
35511
|
+
const l = this.localCurrency ? this.localCurrency : this.currency, d = En.find(
|
|
35512
35512
|
(p) => p.name === (this.countryCode || l)
|
|
35513
35513
|
);
|
|
35514
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;
|
|
@@ -35524,6 +35524,14 @@ class cu {
|
|
|
35524
35524
|
a && (a.disabled = !0), t && s && (t.addEventListener("input", (l) => {
|
|
35525
35525
|
const d = l.target;
|
|
35526
35526
|
d.value = d.value.replace(/\D/g, ""), this.validateForm();
|
|
35527
|
+
const p = this.localCurrency ? this.localCurrency : this.currency, v = En.find(
|
|
35528
|
+
(g) => g.name === (this.countryCode || p)
|
|
35529
|
+
);
|
|
35530
|
+
En && v && Number(v.length) === d.value.length && P.track("input_phone_number", {
|
|
35531
|
+
payment_method: "Mobile Money",
|
|
35532
|
+
phone_number: t.value,
|
|
35533
|
+
network: s.value
|
|
35534
|
+
});
|
|
35527
35535
|
}), s.addEventListener("change", () => {
|
|
35528
35536
|
if (this.validateForm(), s.value === "orange") {
|
|
35529
35537
|
const l = this.container.querySelector("#otp-message"), d = this.container.querySelector(
|
|
@@ -35533,7 +35541,7 @@ class cu {
|
|
|
35533
35541
|
}
|
|
35534
35542
|
})), i && i.classList.add("hidden"), !(!s || !t || !a) && e && e.addEventListener("submit", (l) => {
|
|
35535
35543
|
l.preventDefault();
|
|
35536
|
-
const d = this.countryCode || this.currency, v =
|
|
35544
|
+
const d = this.countryCode || this.currency, v = En.filter(
|
|
35537
35545
|
(y) => y.name === d
|
|
35538
35546
|
)[0].allowsZeros ? `0${t.value}` : t.value, g = s.value, f = o ? o.value : "";
|
|
35539
35547
|
this.onAction(l)({
|
|
@@ -35572,7 +35580,7 @@ class cu {
|
|
|
35572
35580
|
i.appendChild(d), i.classList.remove("text-tone-50"), i.classList.add("text-tone-100");
|
|
35573
35581
|
});
|
|
35574
35582
|
}
|
|
35575
|
-
const t = this.container.querySelector("#region-code"), s = this.localCurrency ? this.localCurrency : this.currency, o =
|
|
35583
|
+
const t = this.container.querySelector("#region-code"), s = this.localCurrency ? this.localCurrency : this.currency, o = En.find(
|
|
35576
35584
|
(a) => a.name === (this.countryCode || s)
|
|
35577
35585
|
);
|
|
35578
35586
|
if (t) {
|
|
@@ -35593,9 +35601,15 @@ class cu {
|
|
|
35593
35601
|
this.url,
|
|
35594
35602
|
this.localCurrency
|
|
35595
35603
|
).then((e) => {
|
|
35596
|
-
this.renderComponent(e)
|
|
35604
|
+
this.renderComponent(e), P.track("providers_loaded", {
|
|
35605
|
+
payment_method: "Mobile Money",
|
|
35606
|
+
provider_count: e.length
|
|
35607
|
+
});
|
|
35597
35608
|
}).catch((e) => {
|
|
35598
|
-
this.switchScreen(5),
|
|
35609
|
+
this.switchScreen(5), P.track("providers_failed", {
|
|
35610
|
+
payment_method: "Mobile Money",
|
|
35611
|
+
error: e.message || "Unknown error"
|
|
35612
|
+
}), e.message ? this.warningError.setPaymentError(e.message) : this.warningError.setPaymentError(
|
|
35599
35613
|
"Unable to fetch network providers at this time."
|
|
35600
35614
|
);
|
|
35601
35615
|
});
|
|
@@ -35859,13 +35873,14 @@ class pu {
|
|
|
35859
35873
|
})().then(({ data: a, headers: l }) => {
|
|
35860
35874
|
var d;
|
|
35861
35875
|
if (this.paymentResponse = a, this.paymentResponseHeaders = l, a.status === "failed") {
|
|
35862
|
-
this.currentStep = 5, a.providerMessage ? this.warningScreen.setPaymentError(a.providerMessage) : this.warningScreen.setPaymentError("Payment failed"), this.warningScreen.hideReportIssue(), P.track("
|
|
35876
|
+
this.currentStep = 5, a.providerMessage ? this.warningScreen.setPaymentError(a.providerMessage) : this.warningScreen.setPaymentError("Payment failed"), this.warningScreen.hideReportIssue(), P.track("start_payment_failed", {
|
|
35863
35877
|
payment_method: "Mobile Money",
|
|
35864
|
-
verification_status: "Failed"
|
|
35878
|
+
verification_status: "Failed",
|
|
35879
|
+
payment_error: a.providerMessage || "Payment failed"
|
|
35865
35880
|
});
|
|
35866
35881
|
return;
|
|
35867
35882
|
} else if (a.status === "success" || a.status === "successful") {
|
|
35868
|
-
this.currentStep = 4, P.track("
|
|
35883
|
+
this.currentStep = 4, P.track("start_payment_success", {
|
|
35869
35884
|
payment_method: "Mobile Money",
|
|
35870
35885
|
verification_status: "Success"
|
|
35871
35886
|
}), nn(a, l, a == null ? void 0 : a.callBackUrl);
|
|
@@ -35904,7 +35919,7 @@ class pu {
|
|
|
35904
35919
|
P.track("input_MobileMoneyOTP", {
|
|
35905
35920
|
payment_method: "Mobile Money",
|
|
35906
35921
|
authentication_type: "0TP"
|
|
35907
|
-
}), t && s && (t.classList.remove("hidden"), s.classList.add("hidden")),
|
|
35922
|
+
}), t && s && (t.classList.remove("hidden"), s.classList.add("hidden")), yi(
|
|
35908
35923
|
this.token,
|
|
35909
35924
|
o,
|
|
35910
35925
|
this.rdtCode,
|
|
@@ -35996,7 +36011,7 @@ class pu {
|
|
|
35996
36011
|
}), this.mobileMoneyConfirmation.renderComponent();
|
|
35997
36012
|
break;
|
|
35998
36013
|
case 4:
|
|
35999
|
-
this.successScreen = new
|
|
36014
|
+
this.successScreen = new ii({
|
|
36000
36015
|
container: this.contents,
|
|
36001
36016
|
amount: this.totalAmount,
|
|
36002
36017
|
currency: this.currency,
|
|
@@ -36324,7 +36339,7 @@ class fu {
|
|
|
36324
36339
|
}), this.eftAuthenticate.renderComponent();
|
|
36325
36340
|
break;
|
|
36326
36341
|
case 2:
|
|
36327
|
-
this.successScreen = new
|
|
36342
|
+
this.successScreen = new ii({
|
|
36328
36343
|
container: this.contents,
|
|
36329
36344
|
amount: this.totalAmount,
|
|
36330
36345
|
currency: this.currency,
|