@spot-flow/checkout-inline-js 0.1.40 → 0.1.41-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.
@@ -53,14 +53,14 @@ let X = class extends Error {
53
53
  constructor(e, i) {
54
54
  super(e), this.status = i, this.name = "FetchError";
55
55
  }
56
- }, De = class extends Error {
56
+ }, Be = class extends Error {
57
57
  constructor(e) {
58
58
  super(e), this.name = "AuthorizationError";
59
59
  }
60
60
  };
61
61
  const Oe = (n, e, i) => {
62
62
  if (!n)
63
- throw new De("Missing authorization token");
63
+ throw new Be("Missing authorization token");
64
64
  const t = new Headers();
65
65
  return i || t.append("Content-Type", "application/json"), t.append("Authorization", `Bearer ${n}`), e && t.append("Spotflow-Payment-Code", e), t;
66
66
  }, Ve = "https://api.spotflow.co/api/v1", fr = async (n, e, i, t) => {
@@ -79,7 +79,7 @@ const Oe = (n, e, i) => {
79
79
  headers: o.headers
80
80
  };
81
81
  } catch (s) {
82
- throw s instanceof X ? console.error(`FetchError: ${s.message} (status: ${s.status})`) : s instanceof De ? console.error(`AuthorizationError: ${s.message}`) : console.error(`Unexpected error: ${s}`), s;
82
+ throw s instanceof X ? console.error(`FetchError: ${s.message} (status: ${s.status})`) : s instanceof Be ? console.error(`AuthorizationError: ${s.message}`) : console.error(`Unexpected error: ${s}`), s;
83
83
  }
84
84
  }, yi = async (n, e, i, t) => {
85
85
  try {
@@ -100,7 +100,7 @@ const Oe = (n, e, i) => {
100
100
  headers: o.headers
101
101
  };
102
102
  } catch (s) {
103
- throw s instanceof X ? console.error(`FetchError: ${s.message} (status: ${s.status})`) : s instanceof De ? console.error(`AuthorizationError: ${s.message}`) : console.error(`Unexpected error: ${s}`), s;
103
+ throw s instanceof X ? console.error(`FetchError: ${s.message} (status: ${s.status})`) : s instanceof Be ? console.error(`AuthorizationError: ${s.message}`) : console.error(`Unexpected error: ${s}`), s;
104
104
  }
105
105
  }, Ts = async (n, e, i, t) => {
106
106
  try {
@@ -118,7 +118,7 @@ const Oe = (n, e, i) => {
118
118
  headers: o.headers
119
119
  };
120
120
  } catch (s) {
121
- throw s instanceof X ? console.error(`FetchError: ${s.message} (status: ${s.status})`) : s instanceof De ? console.error(`AuthorizationError: ${s.message}`) : console.error(`Unexpected error: ${s}`), s;
121
+ throw s instanceof X ? console.error(`FetchError: ${s.message} (status: ${s.status})`) : s instanceof Be ? console.error(`AuthorizationError: ${s.message}`) : console.error(`Unexpected error: ${s}`), s;
122
122
  }
123
123
  }, gr = async (n, e, i, t) => {
124
124
  try {
@@ -136,7 +136,7 @@ const Oe = (n, e, i) => {
136
136
  headers: o.headers
137
137
  };
138
138
  } catch (s) {
139
- throw s instanceof X ? console.error(`FetchError: ${s.message} (status: ${s.status})`) : s instanceof De ? console.error(`AuthorizationError: ${s.message}`) : console.error(`UnexpectedError: ${s}`), s;
139
+ throw s instanceof X ? console.error(`FetchError: ${s.message} (status: ${s.status})`) : s instanceof Be ? console.error(`AuthorizationError: ${s.message}`) : console.error(`UnexpectedError: ${s}`), s;
140
140
  }
141
141
  }, cn = async (n, e, i, t, s) => {
142
142
  try {
@@ -157,7 +157,7 @@ const Oe = (n, e, i) => {
157
157
  headers: a.headers
158
158
  };
159
159
  } catch (o) {
160
- throw o instanceof X ? console.error(`FetchError: ${o.message} (status: ${o.status})`) : o instanceof De ? console.error(`AuthorizationError: ${o.message}`) : console.error(`Unexpected error: ${o}`), o;
160
+ throw o instanceof X ? console.error(`FetchError: ${o.message} (status: ${o.status})`) : o instanceof Be ? console.error(`AuthorizationError: ${o.message}`) : console.error(`Unexpected error: ${o}`), o;
161
161
  }
162
162
  };
163
163
  async function yr(n, e, i, t, s) {
@@ -176,7 +176,7 @@ async function yr(n, e, i, t, s) {
176
176
  }
177
177
  return await a.json();
178
178
  } catch (a) {
179
- throw a instanceof X ? console.error(`FetchError: ${a.message} (status: ${a.status})`) : a instanceof De ? console.error(`AuthorizationError: ${a.message}`) : console.error(`Unexpected error: ${a}`), a;
179
+ throw a instanceof X ? console.error(`FetchError: ${a.message} (status: ${a.status})`) : a instanceof Be ? console.error(`AuthorizationError: ${a.message}`) : console.error(`Unexpected error: ${a}`), a;
180
180
  }
181
181
  }
182
182
  const Cr = async (n, e, i, t) => {
@@ -197,7 +197,7 @@ const Cr = async (n, e, i, t) => {
197
197
  headers: o.headers
198
198
  };
199
199
  } catch (s) {
200
- throw s instanceof X ? console.error(`FetchError: ${s.message} (status: ${s.status})`) : s instanceof De ? console.error(`AuthorizationError: ${s.message}`) : console.error(`Unexpected error: ${s}`), s;
200
+ throw s instanceof X ? console.error(`FetchError: ${s.message} (status: ${s.status})`) : s instanceof Be ? console.error(`AuthorizationError: ${s.message}`) : console.error(`Unexpected error: ${s}`), s;
201
201
  }
202
202
  }, Sr = async (n, e, i, t) => {
203
203
  try {
@@ -215,7 +215,7 @@ const Cr = async (n, e, i, t) => {
215
215
  }
216
216
  return o.json();
217
217
  } catch (s) {
218
- throw s instanceof X ? console.error(`FetchError: ${s.message} (status: ${s.status})`) : s instanceof De ? console.error(`AuthorizationError: ${s.message}`) : console.error(`Unexpected error: ${s}`), s;
218
+ throw s instanceof X ? console.error(`FetchError: ${s.message} (status: ${s.status})`) : s instanceof Be ? console.error(`AuthorizationError: ${s.message}`) : console.error(`Unexpected error: ${s}`), s;
219
219
  }
220
220
  }, kr = async (n, e, i, t) => {
221
221
  try {
@@ -233,7 +233,7 @@ const Cr = async (n, e, i, t) => {
233
233
  }
234
234
  return o.json();
235
235
  } catch (s) {
236
- throw s instanceof X ? console.error(`FetchError: ${s.message} (status: ${s.status})`) : s instanceof De ? console.error(`AuthorizationError: ${s.message}`) : console.error(`Unexpected error: ${s}`), s;
236
+ throw s instanceof X ? console.error(`FetchError: ${s.message} (status: ${s.status})`) : s instanceof Be ? console.error(`AuthorizationError: ${s.message}`) : console.error(`Unexpected error: ${s}`), s;
237
237
  }
238
238
  }, Hi = async (n, e, i, t) => {
239
239
  try {
@@ -251,7 +251,7 @@ const Cr = async (n, e, i, t) => {
251
251
  headers: o.headers
252
252
  };
253
253
  } catch (s) {
254
- throw s instanceof X ? console.error(`FetchError: ${s.message} (status: ${s.status})`) : s instanceof De ? console.error(`AuthorizationError: ${s.message}`) : console.error(`Unexpected error: ${s}`), s;
254
+ throw s instanceof X ? console.error(`FetchError: ${s.message} (status: ${s.status})`) : s instanceof Be ? console.error(`AuthorizationError: ${s.message}`) : console.error(`Unexpected error: ${s}`), s;
255
255
  }
256
256
  };
257
257
  async function wr(n, e, i, t, s) {
@@ -269,7 +269,7 @@ async function wr(n, e, i, t, s) {
269
269
  }
270
270
  return a.json();
271
271
  } catch (o) {
272
- throw o instanceof X ? console.error(`FetchError: ${o.message} (status: ${o.status})`) : o instanceof De ? console.error(`AuthorizationError: ${o.message}`) : console.error(`Unexpected error: ${o}`), o;
272
+ throw o instanceof X ? console.error(`FetchError: ${o.message} (status: ${o.status})`) : o instanceof Be ? console.error(`AuthorizationError: ${o.message}`) : console.error(`Unexpected error: ${o}`), o;
273
273
  }
274
274
  }
275
275
  const Le = (n, e) => {
@@ -1190,7 +1190,7 @@ async function Ir(n, e) {
1190
1190
  const i = Uint8Array.from(atob(e), (d) => d.charCodeAt(0)), t = crypto.getRandomValues(new Uint8Array(12)), s = new TextEncoder().encode(n), o = await crypto.subtle.importKey("raw", i, { name: "AES-GCM" }, !1, ["encrypt"]), a = await crypto.subtle.encrypt({ name: "AES-GCM", iv: t }, o, s), l = new Uint8Array(t.length + a.byteLength);
1191
1191
  return l.set(t), l.set(new Uint8Array(a), t.length), btoa(String.fromCharCode.apply(null, l));
1192
1192
  }
1193
- const Nr = `<div id="paymentSuccess">
1193
+ const Dr = `<div id="paymentSuccess">
1194
1194
  <div class="container-center min-h-[30dvh]">
1195
1195
  <div>
1196
1196
  <div class="container-center mb-5">
@@ -1234,7 +1234,7 @@ class ii {
1234
1234
  i && (this.message ? i.innerHTML = this.message : i.innerHTML = "Payment Successful"), e && (e.innerHTML = `${this.localCurrency !== this.currency ? this.localCurrency : this.currency} ${Le(this.amount)}`);
1235
1235
  }
1236
1236
  render() {
1237
- return Nr;
1237
+ return Dr;
1238
1238
  }
1239
1239
  }
1240
1240
  const Es = `<div id="paymentWarning">
@@ -1301,7 +1301,7 @@ class Ln {
1301
1301
  return Es;
1302
1302
  }
1303
1303
  }
1304
- const Br = `<div id="checkoutcardotp">
1304
+ const Nr = `<div id="checkoutcardotp">
1305
1305
  <div class="w-full">
1306
1306
  <div id="otp-content" class=" grid gap-4">
1307
1307
  <h5 class="text-black" id="otp-message">
@@ -1334,7 +1334,7 @@ const Br = `<div id="checkoutcardotp">
1334
1334
  </div>
1335
1335
  </div>
1336
1336
  </div>`;
1337
- class Dr {
1337
+ class Br {
1338
1338
  constructor(e) {
1339
1339
  h(this, "container");
1340
1340
  h(this, "cardOtp");
@@ -1375,7 +1375,7 @@ class Dr {
1375
1375
  e && (e.innerHTML = this.otpMessage), this.attachListener();
1376
1376
  }
1377
1377
  render() {
1378
- return Br;
1378
+ return Nr;
1379
1379
  }
1380
1380
  }
1381
1381
  const Hr = `<div id="checkoutcardpin">
@@ -23701,7 +23701,7 @@ const jr = `<div class="py-3 w-full">
23701
23701
  </div>
23702
23702
  </div>
23703
23703
  </div>`;
23704
- class Be {
23704
+ class Ne {
23705
23705
  constructor(e) {
23706
23706
  h(this, "container");
23707
23707
  this.container = e;
@@ -24302,7 +24302,7 @@ function vt(n) {
24302
24302
  const e = n.type;
24303
24303
  return n.hasAttribute("data-rr-is-password") ? "password" : e ? _n(e) : null;
24304
24304
  }
24305
- function Ns(n, e) {
24305
+ function Ds(n, e) {
24306
24306
  var i;
24307
24307
  let t;
24308
24308
  try {
@@ -24315,7 +24315,7 @@ function Ns(n, e) {
24315
24315
  }
24316
24316
  let Xr = 1;
24317
24317
  const el = new RegExp("[^a-z0-9-_:]"), Qn = -2;
24318
- function Bs() {
24318
+ function Ns() {
24319
24319
  return Xr++;
24320
24320
  }
24321
24321
  function nl(n) {
@@ -24397,7 +24397,7 @@ function pt() {
24397
24397
  const n = document.createElement("a");
24398
24398
  return n.href = "", n.href;
24399
24399
  }
24400
- function Ds(n, e, i, t) {
24400
+ function Bs(n, e, i, t) {
24401
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) {
@@ -24585,7 +24585,7 @@ function fl(n, e) {
24585
24585
  const M = n.attributes.length;
24586
24586
  for (let _ = 0; _ < M; _++) {
24587
24587
  const T = n.attributes[_];
24588
- Hs(C, T.name, T.value) || (w[T.name] = Ds(i, C, _n(T.name), T.value));
24588
+ Hs(C, T.name, T.value) || (w[T.name] = Bs(i, C, _n(T.name), T.value));
24589
24589
  }
24590
24590
  if (C === "link" && o) {
24591
24591
  const _ = Array.from(i.styleSheets).find((I) => I.href === n.href);
@@ -24668,7 +24668,7 @@ function gl(n, e) {
24668
24668
  if (e.comment && n.type === ve.Comment)
24669
24669
  return !0;
24670
24670
  if (n.type === ve.Element) {
24671
- if (e.script && (n.tagName === "script" || n.tagName === "link" && (n.attributes.rel === "preload" || n.attributes.rel === "modulepreload") && n.attributes.as === "script" || n.tagName === "link" && n.attributes.rel === "prefetch" && typeof n.attributes.href == "string" && Ns(n.attributes.href) === "js"))
24671
+ if (e.script && (n.tagName === "script" || n.tagName === "link" && (n.attributes.rel === "preload" || n.attributes.rel === "modulepreload") && n.attributes.as === "script" || n.tagName === "link" && n.attributes.rel === "prefetch" && typeof n.attributes.href == "string" && Ds(n.attributes.href) === "js"))
24672
24672
  return !0;
24673
24673
  if (e.headFavicon && (n.tagName === "link" && n.attributes.rel === "shortcut icon" || n.tagName === "meta" && (ne(n.attributes.name).match(/^msapplication-tile(image|color)$/) || ne(n.attributes.name) === "application-name" || ne(n.attributes.rel) === "icon" || ne(n.attributes.rel) === "apple-touch-icon" || ne(n.attributes.rel) === "shortcut icon")))
24674
24674
  return !0;
@@ -24689,7 +24689,7 @@ function gl(n, e) {
24689
24689
  }
24690
24690
  return !1;
24691
24691
  }
24692
- function Nn(n, e) {
24692
+ function Dn(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,7 +24712,7 @@ function Nn(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 = Qn : ge = Bs();
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 = Ns();
24716
24716
  const U = Object.assign(te, { id: ge });
24717
24717
  if (t.add(n, U), ge === Qn)
24718
24718
  return null;
@@ -24751,19 +24751,19 @@ function Nn(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 = Nn(xe, le);
24754
+ const we = Dn(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 = Nn(xe, le);
24759
+ const we = Dn(xe, le);
24760
24760
  we && (Wn(n.shadowRoot) && (we.isShadow = !0), U.childNodes.push(we));
24761
24761
  }
24762
24762
  }
24763
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 = Nn(le, {
24766
+ const xe = Dn(le, {
24767
24767
  doc: le,
24768
24768
  mirror: t,
24769
24769
  blockClass: s,
@@ -24790,9 +24790,9 @@ function Nn(n, e) {
24790
24790
  });
24791
24791
  xe && A(n, xe);
24792
24792
  }
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, () => {
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" && Ds(U.attributes.href) === "css") && ml(n, () => {
24794
24794
  if (T) {
24795
- const le = Nn(n, {
24795
+ const le = Dn(n, {
24796
24796
  doc: i,
24797
24797
  mirror: t,
24798
24798
  blockClass: s,
@@ -24823,7 +24823,7 @@ function Nn(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 Nn(n, {
24826
+ return Dn(n, {
24827
24827
  doc: n,
24828
24828
  mirror: i,
24829
24829
  blockClass: t,
@@ -25125,7 +25125,7 @@ class Al {
25125
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 = Nn(d, {
25128
+ const g = Dn(d, {
25129
25129
  doc: this.doc,
25130
25130
  mirror: this.mirror,
25131
25131
  blockClass: this.blockClass,
@@ -25271,7 +25271,7 @@ class Al {
25271
25271
  attributes: {},
25272
25272
  styleDiff: {},
25273
25273
  _unchangedStyles: {}
25274
- }, this.attributes.push(o), this.attributeMap.set(e.target, o)), t === "type" && i.tagName === "INPUT" && (e.oldValue || "").toLowerCase() === "password" && i.setAttribute("data-rr-is-password", "true"), !Hs(i.tagName, t) && (o.attributes[t] = Ds(this.doc, _n(i.tagName), _n(t), s), t === "style")) {
25274
+ }, this.attributes.push(o), this.attributeMap.set(e.target, o)), t === "type" && i.tagName === "INPUT" && (e.oldValue || "").toLowerCase() === "password" && i.setAttribute("data-rr-is-password", "true"), !Hs(i.tagName, t) && (o.attributes[t] = Bs(this.doc, _n(i.tagName), _n(t), s), t === "style")) {
25275
25275
  if (!this.unattachedDoc)
25276
25276
  try {
25277
25277
  this.unattachedDoc = document.implementation.createHTMLDocument();
@@ -25546,7 +25546,7 @@ function Pl({ viewportResizeCb: n }, { win: e }) {
25546
25546
  return _e("resize", s, e);
25547
25547
  }
25548
25548
  const Il = ["INPUT", "TEXTAREA", "SELECT"], as = /* @__PURE__ */ new WeakMap();
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 }) {
25549
+ function Dl({ 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
25551
  let _ = ti(A);
25552
25552
  const T = A.isTrusted, I = _ && _.tagName;
@@ -25623,7 +25623,7 @@ function rn(n, e, i) {
25623
25623
  id: t
25624
25624
  }) : {};
25625
25625
  }
25626
- function Bl({ styleSheetRuleCb: n, mirror: e, stylesheetManager: i }, { win: t }) {
25626
+ function Nl({ styleSheetRuleCb: n, mirror: e, stylesheetManager: i }, { win: t }) {
25627
25627
  if (!t.CSSStyleSheet || !t.CSSStyleSheet.prototype)
25628
25628
  return () => {
25629
25629
  };
@@ -25745,7 +25745,7 @@ function Ys({ mirror: n, stylesheetManager: e }, i) {
25745
25745
  });
25746
25746
  }));
25747
25747
  }
25748
- function Dl({ styleDeclarationCb: n, mirror: e, ignoreCSSAttributes: i, stylesheetManager: t }, { win: s }) {
25748
+ function Bl({ styleDeclarationCb: n, mirror: e, ignoreCSSAttributes: i, stylesheetManager: t }, { win: s }) {
25749
25749
  const o = s.CSSStyleDeclaration.prototype.setProperty;
25750
25750
  s.CSSStyleDeclaration.prototype.setProperty = new Proxy(o, {
25751
25751
  apply: z((l, d, p) => {
@@ -25922,13 +25922,13 @@ function Kl(n, e = {}) {
25922
25922
  n.recordDOM && (t = Js(n, n.doc));
25923
25923
  const s = Tl(n), o = El(n), a = $s(n), l = Pl(n, {
25924
25924
  win: i
25925
- }), d = Nl(n), p = Hl(n);
25925
+ }), d = Dl(n), p = Hl(n);
25926
25926
  let v = () => {
25927
25927
  }, g = () => {
25928
25928
  }, f = () => {
25929
25929
  }, y = () => {
25930
25930
  };
25931
- n.recordDOM && (v = Bl(n, { win: i }), g = Ys(n, n.doc), f = Dl(n, {
25931
+ n.recordDOM && (v = Nl(n, { win: i }), g = Ys(n, n.doc), f = Bl(n, {
25932
25932
  win: i
25933
25933
  }), n.collectFonts && (y = Rl(n)));
25934
25934
  const k = Ol(n), C = Vl(n), w = [];
@@ -25986,7 +25986,7 @@ class rs {
25986
25986
  }
25987
25987
  class jl {
25988
25988
  constructor(e) {
25989
- this.iframes = /* @__PURE__ */ new WeakMap(), this.crossOriginIframeMap = /* @__PURE__ */ new WeakMap(), this.crossOriginIframeMirror = new rs(Bs), this.crossOriginIframeRootIdMap = /* @__PURE__ */ new WeakMap(), this.mutationCb = e.mutationCb, this.wrappedEmit = e.wrappedEmit, this.stylesheetManager = e.stylesheetManager, this.recordCrossOriginIframes = e.recordCrossOriginIframes, this.crossOriginIframeStyleMirror = new rs(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)), this.mirror = e.mirror, this.recordCrossOriginIframes && window.addEventListener("message", this.handleMessage.bind(this));
25989
+ this.iframes = /* @__PURE__ */ new WeakMap(), this.crossOriginIframeMap = /* @__PURE__ */ new WeakMap(), this.crossOriginIframeMirror = new rs(Ns), this.crossOriginIframeRootIdMap = /* @__PURE__ */ new WeakMap(), this.mutationCb = e.mutationCb, this.wrappedEmit = e.wrappedEmit, this.stylesheetManager = e.stylesheetManager, this.recordCrossOriginIframes = e.recordCrossOriginIframes, this.crossOriginIframeStyleMirror = new rs(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)), this.mirror = e.mirror, this.recordCrossOriginIframes && window.addEventListener("message", this.handleMessage.bind(this));
25990
25990
  }
25991
25991
  addIframe(e) {
25992
25992
  this.iframes.set(e, !0), e.contentWindow && this.crossOriginIframeMap.set(e.contentWindow, e);
@@ -26213,13 +26213,13 @@ function ql(n, e, i, t) {
26213
26213
  p((t = t.apply(n, [])).next());
26214
26214
  });
26215
26215
  }
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;
26216
+ var Nn = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", zl = typeof Uint8Array > "u" ? [] : new Uint8Array(256);
26217
+ for (var bi = 0; bi < Nn.length; bi++)
26218
+ zl[Nn.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 += 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];
26222
+ s += Nn[e[i] >> 2], s += Nn[(e[i] & 3) << 4 | e[i + 1] >> 4], s += Nn[(e[i + 1] & 15) << 2 | e[i + 2] >> 6], s += Nn[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();
@@ -26774,48 +26774,48 @@ function si(n = {}) {
26774
26774
  } : y || {};
26775
26775
  Sl();
26776
26776
  let bn, on = 0;
26777
- const Te = (B) => {
26777
+ const Te = (N) => {
26778
26778
  for (const de of U || [])
26779
- de.eventProcessor && (B = de.eventProcessor(B));
26780
- return M && !ze && (B = M(B)), B;
26779
+ de.eventProcessor && (N = de.eventProcessor(N));
26780
+ return M && !ze && (N = M(N)), N;
26781
26781
  };
26782
- re = (B, de) => {
26782
+ re = (N, de) => {
26783
26783
  var Y;
26784
- if (!((Y = kn[0]) === null || Y === void 0) && Y.isFrozen() && B.type !== W.FullSnapshot && !(B.type === W.IncrementalSnapshot && B.data.source === q.Mutation) && kn.forEach((ue) => ue.unfreeze()), we)
26785
- e == null || e(Te(B), de);
26784
+ if (!((Y = kn[0]) === null || Y === void 0) && Y.isFrozen() && N.type !== W.FullSnapshot && !(N.type === W.IncrementalSnapshot && N.data.source === q.Mutation) && kn.forEach((ue) => ue.unfreeze()), we)
26785
+ e == null || e(Te(N), de);
26786
26786
  else if (ze) {
26787
26787
  const ue = {
26788
26788
  type: "rrweb",
26789
- event: Te(B),
26789
+ event: Te(N),
26790
26790
  origin: window.location.origin,
26791
26791
  isCheckout: de
26792
26792
  };
26793
26793
  window.parent.postMessage(ue, "*");
26794
26794
  }
26795
- if (B.type === W.FullSnapshot)
26796
- bn = B, on = 0;
26797
- else if (B.type === W.IncrementalSnapshot) {
26798
- if (B.data.source === q.Mutation && B.data.isAttachIframe)
26795
+ if (N.type === W.FullSnapshot)
26796
+ bn = N, on = 0;
26797
+ else if (N.type === W.IncrementalSnapshot) {
26798
+ if (N.data.source === q.Mutation && N.data.isAttachIframe)
26799
26799
  return;
26800
26800
  on++;
26801
- const ue = t && on >= t, Pe = i && B.timestamp - bn.timestamp > i;
26801
+ const ue = t && on >= t, Pe = i && N.timestamp - bn.timestamp > i;
26802
26802
  (ue || Pe) && Si(!0);
26803
26803
  }
26804
26804
  };
26805
- const Ze = (B) => {
26805
+ const Ze = (N) => {
26806
26806
  re(me({
26807
26807
  type: W.IncrementalSnapshot,
26808
- data: Object.assign({ source: q.Mutation }, B)
26808
+ data: Object.assign({ source: q.Mutation }, N)
26809
26809
  }));
26810
- }, fn = (B) => re(me({
26810
+ }, fn = (N) => re(me({
26811
26811
  type: W.IncrementalSnapshot,
26812
- data: Object.assign({ source: q.Scroll }, B)
26813
- })), ae = (B) => re(me({
26812
+ data: Object.assign({ source: q.Scroll }, N)
26813
+ })), ae = (N) => re(me({
26814
26814
  type: W.IncrementalSnapshot,
26815
- data: Object.assign({ source: q.CanvasMutation }, B)
26816
- })), pe = (B) => re(me({
26815
+ data: Object.assign({ source: q.CanvasMutation }, N)
26816
+ })), pe = (N) => re(me({
26817
26817
  type: W.IncrementalSnapshot,
26818
- data: Object.assign({ source: q.AdoptedStyleSheet }, B)
26818
+ data: Object.assign({ source: q.AdoptedStyleSheet }, N)
26819
26819
  })), Ie = new td({
26820
26820
  mutationCb: Ze,
26821
26821
  adoptedStyleSheetCb: pe
@@ -26826,8 +26826,8 @@ function si(n = {}) {
26826
26826
  recordCrossOriginIframes: G,
26827
26827
  wrappedEmit: re
26828
26828
  });
26829
- for (const B of U || [])
26830
- B.getMirror && B.getMirror({
26829
+ for (const N of U || [])
26830
+ N.getMirror && N.getMirror({
26831
26831
  nodeMirror: He,
26832
26832
  crossOriginIframeMirror: Ee.crossOriginIframeMirror,
26833
26833
  crossOriginIframeStyleMirror: Ee.crossOriginIframeStyleMirror
@@ -26868,7 +26868,7 @@ function si(n = {}) {
26868
26868
  },
26869
26869
  mirror: He
26870
26870
  });
26871
- Si = (B = !1) => {
26871
+ Si = (N = !1) => {
26872
26872
  if (!I)
26873
26873
  return;
26874
26874
  re(me({
@@ -26878,7 +26878,7 @@ function si(n = {}) {
26878
26878
  width: Us(),
26879
26879
  height: Vs()
26880
26880
  }
26881
- }), B), Ie.reset(), je.init(), kn.forEach((Y) => Y.lock());
26881
+ }), N), Ie.reset(), je.init(), kn.forEach((Y) => Y.lock());
26882
26882
  const de = yl(document, {
26883
26883
  mirror: He,
26884
26884
  blockClass: s,
@@ -26911,10 +26911,10 @@ function si(n = {}) {
26911
26911
  node: de,
26912
26912
  initialOffset: Os(window)
26913
26913
  }
26914
- }), B), kn.forEach((Y) => Y.unlock()), document.adoptedStyleSheets && document.adoptedStyleSheets.length > 0 && Ie.adoptStyleSheets(document.adoptedStyleSheets, He.getId(document));
26914
+ }), N), kn.forEach((Y) => Y.unlock()), document.adoptedStyleSheets && document.adoptedStyleSheets.length > 0 && Ie.adoptStyleSheets(document.adoptedStyleSheets, He.getId(document));
26915
26915
  };
26916
26916
  try {
26917
- const B = [], de = (ue) => {
26917
+ const N = [], de = (ue) => {
26918
26918
  var Pe;
26919
26919
  return z(Kl)({
26920
26920
  mutationCb: Ze,
@@ -27009,29 +27009,29 @@ function si(n = {}) {
27009
27009
  };
27010
27010
  Ee.addLoadListener((ue) => {
27011
27011
  try {
27012
- B.push(de(ue.contentDocument));
27012
+ N.push(de(ue.contentDocument));
27013
27013
  } catch (Pe) {
27014
27014
  console.warn(Pe);
27015
27015
  }
27016
27016
  });
27017
27017
  const Y = () => {
27018
- Si(), B.push(de(document)), Ti = !0;
27018
+ Si(), N.push(de(document)), Ti = !0;
27019
27019
  };
27020
- return document.readyState === "interactive" || document.readyState === "complete" ? Y() : (B.push(_e("DOMContentLoaded", () => {
27020
+ return document.readyState === "interactive" || document.readyState === "complete" ? Y() : (N.push(_e("DOMContentLoaded", () => {
27021
27021
  re(me({
27022
27022
  type: W.DomContentLoaded,
27023
27023
  data: {}
27024
27024
  })), V === "DOMContentLoaded" && Y();
27025
- })), B.push(_e("load", () => {
27025
+ })), N.push(_e("load", () => {
27026
27026
  re(me({
27027
27027
  type: W.Load,
27028
27028
  data: {}
27029
27029
  })), V === "load" && Y();
27030
27030
  }, window))), () => {
27031
- B.forEach((ue) => ue()), Ce.destroy(), Ti = !1, xl();
27031
+ N.forEach((ue) => ue()), Ce.destroy(), Ti = !1, xl();
27032
27032
  };
27033
- } catch (B) {
27034
- console.warn(B);
27033
+ } catch (N) {
27034
+ console.warn(N);
27035
27035
  }
27036
27036
  }
27037
27037
  si.addCustomEvent = (n, e) => {
@@ -27901,10 +27901,10 @@ var bt = function(n) {
27901
27901
  }, hd = function() {
27902
27902
  var n = H.navigator.onLine;
27903
27903
  return m.isUndefined(n) || n;
27904
- }, Ii = null, Ni = null;
27905
- typeof JSON < "u" && (Ii = JSON.stringify, Ni = JSON.parse);
27904
+ }, Ii = null, Di = null;
27905
+ typeof JSON < "u" && (Ii = JSON.stringify, Di = JSON.parse);
27906
27906
  Ii = Ii || m.JSONEncode;
27907
- Ni = Ni || m.JSONDecode;
27907
+ Di = Di || m.JSONDecode;
27908
27908
  m.toArray = m.toArray;
27909
27909
  m.isObject = m.isObject;
27910
27910
  m.JSONEncode = m.JSONEncode;
@@ -28191,7 +28191,7 @@ pn.prototype.updatePayloads = function(n, e) {
28191
28191
  pn.prototype.readFromStorage = function() {
28192
28192
  var n;
28193
28193
  try {
28194
- n = this.storage.getItem(this.storageKey), n && (n = Ni(n), m.isArray(n) || (this.reportError("Invalid storage entry:", n), n = null));
28194
+ n = this.storage.getItem(this.storageKey), n && (n = Di(n), m.isArray(n) || (this.reportError("Invalid storage entry:", n), n = null));
28195
28195
  } catch (e) {
28196
28196
  this.reportError("Error retrieving queue", e), n = null;
28197
28197
  }
@@ -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", ei = "__timers", Md = [
28746
+ var Ct = "__mps", St = "__mpso", kt = "__mpus", wt = "__mpa", _t = "__mpap", Mt = "__mpr", At = "__mpu", lo = "$people_distinct_id", Ni = "__alias", ei = "__timers", Md = [
28747
28747
  Ct,
28748
28748
  St,
28749
28749
  kt,
@@ -28752,7 +28752,7 @@ var Ct = "__mps", St = "__mpso", kt = "__mpus", wt = "__mpa", _t = "__mpap", Mt
28752
28752
  Mt,
28753
28753
  At,
28754
28754
  lo,
28755
- Bi,
28755
+ Ni,
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";
@@ -28903,8 +28903,8 @@ var Lt, uo = function(n, e) {
28903
28903
  }, Se, co = 0, Ad = 1, Ld = function(n) {
28904
28904
  return n;
28905
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
- un.sendBeacon && (Di = function() {
28906
+ }, De = "mixpanel", ho = "base64", xd = "json", xt = "$device:", Hn = H.XMLHttpRequest && "withCredentials" in new XMLHttpRequest(), mo = !Hn && Ge.indexOf("MSIE") === -1 && Ge.indexOf("Mozilla") === -1, Bi = null;
28907
+ un.sendBeacon && (Bi = function() {
28908
28908
  return un.sendBeacon.apply(un, arguments);
28909
28909
  });
28910
28910
  var vo = {
@@ -28974,7 +28974,7 @@ var vo = {
28974
28974
  recorder_src: "https://cdn.mxpnl.com/libs/mixpanel-recorder.min.js"
28975
28975
  }, po = !1, L = function() {
28976
28976
  }, ht = function(n, e, i) {
28977
- var t, s = i === Ne ? Se : Se[i];
28977
+ var t, s = i === De ? Se : Se[i];
28978
28978
  if (s && Lt === co)
28979
28979
  t = s;
28980
28980
  else {
@@ -28997,7 +28997,7 @@ L.prototype.init = function(n, e, i) {
28997
28997
  this.report_error("You must name your new library: init(token, config, name)");
28998
28998
  return;
28999
28999
  }
29000
- if (i === Ne) {
29000
+ if (i === De) {
29001
29001
  this.report_error("You must initialize the main mixpanel object right after you include the Mixpanel js snippet");
29002
29002
  return;
29003
29003
  }
@@ -29014,7 +29014,7 @@ L.prototype._init = function(n, e, i) {
29014
29014
  if (this.set_config(m.extend({}, Ss, t, e, {
29015
29015
  name: i,
29016
29016
  token: n,
29017
- callback_fn: (i === Ne ? i : Ne + "." + i) + "._jsc"
29017
+ callback_fn: (i === De ? i : De + "." + i) + "._jsc"
29018
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
@@ -29023,7 +29023,7 @@ L.prototype._init = function(n, e, i) {
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
  });
29026
- else if (this.init_batchers(), Di && H.addEventListener) {
29026
+ else if (this.init_batchers(), Bi && H.addEventListener) {
29027
29027
  var o = m.bind(function() {
29028
29028
  this.request_batchers.events.stopped || this.request_batchers.events.flush({ unloading: !0 });
29029
29029
  }, this);
@@ -29139,7 +29139,7 @@ L.prototype._send_request = function(n, e, i, t) {
29139
29139
  verbose: this.get_config("verbose")
29140
29140
  }, a = null;
29141
29141
  !t && (m.isFunction(i) || typeof i == "string") && (t = i, i = null), i = m.extend(o, i || {}), Hn || (i.method = "GET");
29142
- var l = i.method === "POST", d = Di && l && i.transport.toLowerCase() === "sendbeacon", p = i.verbose;
29142
+ var l = i.method === "POST", d = Bi && l && i.transport.toLowerCase() === "sendbeacon", p = i.verbose;
29143
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) {
@@ -29147,7 +29147,7 @@ L.prototype._send_request = function(n, e, i, t) {
29147
29147
  g.src = n, ee.body.appendChild(g);
29148
29148
  } else if (d) {
29149
29149
  try {
29150
- s = Di(n, a);
29150
+ s = Bi(n, a);
29151
29151
  } catch (M) {
29152
29152
  v.report_error(M), s = !1;
29153
29153
  }
@@ -29444,7 +29444,7 @@ L.prototype.identify = function(n, e, i, t, s, o, a, l) {
29444
29444
  $device_id: p
29445
29445
  }, "");
29446
29446
  }
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", {
29447
+ n !== d && n !== this.get_property(Ni) && (this.unregister(Ni), 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", {
29448
29448
  distinct_id: n,
29449
29449
  $anon_distinct_id: d
29450
29450
  }, { skip_hooks: !0 });
@@ -29464,7 +29464,7 @@ L.prototype.alias = function(n, e) {
29464
29464
  if (n === this.get_property(lo))
29465
29465
  return this.report_error("Attempting to create alias for existing People user - aborting."), -2;
29466
29466
  var i = this;
29467
- return m.isUndefined(e) && (e = this.get_distinct_id()), n !== e ? (this._register_single(Bi, n), this.track("$create_alias", {
29467
+ return m.isUndefined(e) && (e = this.get_distinct_id()), n !== e ? (this._register_single(Ni, n), this.track("$create_alias", {
29468
29468
  alias: n,
29469
29469
  distinct_id: e
29470
29470
  }, {
@@ -29497,7 +29497,7 @@ L.prototype.get_property = function(n) {
29497
29497
  };
29498
29498
  L.prototype.toString = function() {
29499
29499
  var n = this.get_config("name");
29500
- return n !== Ne && (n = Ne + "." + n), n;
29500
+ return n !== De && (n = De + "." + n), n;
29501
29501
  };
29502
29502
  L.prototype._event_is_disabled = function(n) {
29503
29503
  return m.isBlockedUA(Ge) || this._flags.disable_all_events || m.include(this.__disabled_events, n);
@@ -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 Dn = {}, Ed = function() {
29620
- m.each(Dn, function(n, e) {
29621
- e !== Ne && (Se[e] = n);
29619
+ var Bn = {}, Ed = function() {
29620
+ m.each(Bn, function(n, e) {
29621
+ e !== De && (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] = Dn[i] = ht(n, e, i), Se[i]._loaded()), Se[i];
29626
+ return Se[i] || (Se[i] = Bn[i] = ht(n, e, i), Se[i]._loaded()), Se[i];
29627
29627
  var t = Se;
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();
29628
+ Bn[De] ? t = Bn[De] : n && (t = ht(n, e, De), t._loaded(), Bn[De] = t), Se = t, Lt === Ad && (H[De] = Se), Ed();
29629
29629
  };
29630
29630
  }, Id = function() {
29631
29631
  function n() {
29632
- n.done || (n.done = !0, po = !0, mo = !1, m.each(Dn, function(t) {
29632
+ n.done || (n.done = !0, po = !0, mo = !1, m.each(Bn, function(t) {
29633
29633
  t._dom_loaded();
29634
29634
  }));
29635
29635
  }
@@ -29655,13 +29655,13 @@ var Dn = {}, Ed = function() {
29655
29655
  }
29656
29656
  m.register_event(H, "load", n, !0);
29657
29657
  };
29658
- function Nd(n) {
29658
+ function Dd(n) {
29659
29659
  return uo = n, Lt = co, Se = new L(), Pd(), Se.init(), Id(), Se;
29660
29660
  }
29661
- function Bd(n, e) {
29661
+ function Nd(n, e) {
29662
29662
  e();
29663
29663
  }
29664
- var P = Nd(Bd);
29664
+ var P = Dd(Nd);
29665
29665
  const bo = `<div id="checkoutConfirmationEnd">
29666
29666
  <div class="w-full">
29667
29667
  <div id="otp-content" class=" grid gap-4">
@@ -29719,7 +29719,7 @@ class fo {
29719
29719
  return bo;
29720
29720
  }
29721
29721
  }
29722
- const Dd = `<div id="confirmationProgress">
29722
+ const Bd = `<div id="confirmationProgress">
29723
29723
  <div class="min-h-[20dvh]">
29724
29724
  <div>
29725
29725
  <div class="grid grid-rows-[auto_1fr] gap-4 mx-5">
@@ -29835,7 +29835,7 @@ class Hd {
29835
29835
  this.container.innerHTML = this.render(), this.attachListeners();
29836
29836
  }
29837
29837
  render() {
29838
- return Dd;
29838
+ return Bd;
29839
29839
  }
29840
29840
  }
29841
29841
  class Rd {
@@ -29843,7 +29843,7 @@ class Rd {
29843
29843
  amount: e,
29844
29844
  totalAmount: i,
29845
29845
  container: t,
29846
- email: s,
29846
+ customer: s,
29847
29847
  encryption: o,
29848
29848
  planId: a,
29849
29849
  // switchTab,
@@ -29875,7 +29875,7 @@ class Rd {
29875
29875
  h(this, "container");
29876
29876
  h(this, "onSuccess");
29877
29877
  h(this, "planId", "");
29878
- h(this, "email");
29878
+ h(this, "customer");
29879
29879
  h(this, "token");
29880
29880
  h(this, "amount");
29881
29881
  h(this, "totalAmount");
@@ -29901,7 +29901,7 @@ class Rd {
29901
29901
  h(this, "retryingPayment");
29902
29902
  h(this, "isMaxRetriesReached");
29903
29903
  h(this, "isMobile", !1);
29904
- this.currency = d, this.onSuccess = f || (() => null), this.container = t, this.encryption = o, this.token = l, this.email = s, this.planId = a, this.amount = e, this.totalAmount = i, this.rdtCode = p, this.url = v, this.reference = g, this.callBackUrl = y, this.metadata = k, this.localCurrency = C, this._currentStep = 1, this.activeRef = "", this.contents = this.container.querySelector(
29904
+ this.currency = d, this.onSuccess = f || (() => null), this.container = t, this.encryption = o, this.token = l, this.customer = s, this.planId = a, this.amount = e, this.totalAmount = i, this.rdtCode = p, this.url = v, this.reference = g, this.callBackUrl = y, this.metadata = k, this.localCurrency = C, this._currentStep = 1, this.activeRef = "", this.contents = this.container.querySelector(
29905
29905
  "#payment-content-view"
29906
29906
  ), this.cardResponse = {}, this.cardResponseHeader = {}, this.hidePaymentMethods = w, this.showPaymentMethods = M, this.onClose = A, this.restartTransactionProcess = _, this.retryingPayment = T, this.isMaxRetriesReached = !1, this.renderCardContent(), P.track("card_opens", {
29907
29907
  payment_method: "Card"
@@ -29944,9 +29944,7 @@ class Rd {
29944
29944
  channel: "card",
29945
29945
  currency: this.currency || "USD",
29946
29946
  planId: this.planId,
29947
- customer: {
29948
- email: this.email
29949
- },
29947
+ customer: this.customer,
29950
29948
  reference: this.reference,
29951
29949
  encryptedCard: o,
29952
29950
  callBackUrl: this.callBackUrl,
@@ -30073,7 +30071,7 @@ class Rd {
30073
30071
  }
30074
30072
  }
30075
30073
  showLoader() {
30076
- this.pageLoader = new Be(this.contents), this.pageLoader.mountLoader();
30074
+ this.pageLoader = new Ne(this.contents), this.pageLoader.mountLoader();
30077
30075
  }
30078
30076
  pinErrorStates(e, i, t) {
30079
30077
  const s = this.container.querySelector("#pin-error");
@@ -30335,7 +30333,7 @@ class Rd {
30335
30333
  }), this.cardPinForm.renderComponent();
30336
30334
  break;
30337
30335
  case 3:
30338
- this.cardOtpValidationForm = new Dr({
30336
+ this.cardOtpValidationForm = new Br({
30339
30337
  container: this.contents,
30340
30338
  onClose: this.onClose,
30341
30339
  onAction: (a) => (l) => this.submitOtp.bind(this)(a, l),
@@ -30359,7 +30357,7 @@ class Rd {
30359
30357
  }), this.successScreen.renderComponent();
30360
30358
  break;
30361
30359
  case 6:
30362
- this.pageLoader = new Be(this.contents), this.pageLoader.mountLoader(), this.pageLoader.updateMessage("Verifying Payment");
30360
+ this.pageLoader = new Ne(this.contents), this.pageLoader.mountLoader(), this.pageLoader.updateMessage("Verifying Payment");
30363
30361
  break;
30364
30362
  case 7:
30365
30363
  this.avsForm = new Kr({
@@ -30859,14 +30857,14 @@ var go = { exports: {} };
30859
30857
  S.loading[r].push(b);
30860
30858
  else {
30861
30859
  S.loading[r] = [b];
30862
- var x = O.createScriptRequest(S.getPath(r, u)), E = S.receivers.create(function(N) {
30860
+ var x = O.createScriptRequest(S.getPath(r, u)), E = S.receivers.create(function(D) {
30863
30861
  if (S.receivers.remove(E), S.loading[r]) {
30864
- var D = S.loading[r];
30862
+ var B = S.loading[r];
30865
30863
  delete S.loading[r];
30866
30864
  for (var Z = function(ce) {
30867
30865
  ce || x.cleanup();
30868
- }, Q = 0; Q < D.length; Q++)
30869
- D[Q](N, Z);
30866
+ }, Q = 0; Q < B.length; Q++)
30867
+ B[Q](D, Z);
30870
30868
  }
30871
30869
  });
30872
30870
  x.send(E);
@@ -30968,31 +30966,31 @@ var go = { exports: {} };
30968
30966
  for (var E in u.headers)
30969
30967
  x.setRequestHeader(E, u.headers[E]);
30970
30968
  if (u.headersProvider != null) {
30971
- let N = u.headersProvider();
30972
- for (var E in N)
30973
- x.setRequestHeader(E, N[E]);
30969
+ let D = u.headersProvider();
30970
+ for (var E in D)
30971
+ x.setRequestHeader(E, D[E]);
30974
30972
  }
30975
30973
  return x.onreadystatechange = function() {
30976
30974
  if (x.readyState === 4)
30977
30975
  if (x.status === 200) {
30978
- let N, D = !1;
30976
+ let D, B = !1;
30979
30977
  try {
30980
- N = JSON.parse(x.responseText), D = !0;
30978
+ D = JSON.parse(x.responseText), B = !0;
30981
30979
  } catch {
30982
30980
  S(new V(200, `JSON returned from ${b.toString()} endpoint was invalid, yet status code was 200. Data was: ${x.responseText}`), null);
30983
30981
  }
30984
- D && S(null, N);
30982
+ B && S(null, D);
30985
30983
  } else {
30986
- let N = "";
30984
+ let D = "";
30987
30985
  switch (b) {
30988
30986
  case C.UserAuthentication:
30989
- N = k.buildLogSuffix("authenticationEndpoint");
30987
+ D = k.buildLogSuffix("authenticationEndpoint");
30990
30988
  break;
30991
30989
  case C.ChannelAuthorization:
30992
- N = `Clients must be authorized to join private or presence channels. ${k.buildLogSuffix("authorizationEndpoint")}`;
30990
+ D = `Clients must be authorized to join private or presence channels. ${k.buildLogSuffix("authorizationEndpoint")}`;
30993
30991
  break;
30994
30992
  }
30995
- S(new V(x.status, `Unable to retrieve auth string from ${b.toString()} endpoint - received status: ${x.status} from ${u.endpoint}. ${N}`), null);
30993
+ S(new V(x.status, `Unable to retrieve auth string from ${b.toString()} endpoint - received status: ${x.status} from ${u.endpoint}. ${D}`), null);
30996
30994
  }
30997
30995
  }, x.send(r), x;
30998
30996
  };
@@ -31097,7 +31095,7 @@ var go = { exports: {} };
31097
31095
  r.push(b);
31098
31096
  }), r;
31099
31097
  }
31100
- function B(c) {
31098
+ function N(c) {
31101
31099
  var r = [];
31102
31100
  return Ce(c, function(u) {
31103
31101
  r.push(u);
@@ -31164,7 +31162,7 @@ var go = { exports: {} };
31164
31162
  function di(c) {
31165
31163
  var r = [], u = [];
31166
31164
  return function b(S, x) {
31167
- var E, N, D;
31165
+ var E, D, B;
31168
31166
  switch (typeof S) {
31169
31167
  case "object":
31170
31168
  if (!S)
@@ -31173,14 +31171,14 @@ var go = { exports: {} };
31173
31171
  if (r[E] === S)
31174
31172
  return { $ref: u[E] };
31175
31173
  if (r.push(S), u.push(x), Object.prototype.toString.apply(S) === "[object Array]")
31176
- for (D = [], E = 0; E < S.length; E += 1)
31177
- D[E] = b(S[E], x + "[" + E + "]");
31174
+ for (B = [], E = 0; E < S.length; E += 1)
31175
+ B[E] = b(S[E], x + "[" + E + "]");
31178
31176
  else {
31179
- D = {};
31180
- for (N in S)
31181
- Object.prototype.hasOwnProperty.call(S, N) && (D[N] = b(S[N], x + "[" + JSON.stringify(N) + "]"));
31177
+ B = {};
31178
+ for (D in S)
31179
+ Object.prototype.hasOwnProperty.call(S, D) && (B[D] = b(S[D], x + "[" + JSON.stringify(D) + "]"));
31182
31180
  }
31183
- return D;
31181
+ return B;
31184
31182
  case "number":
31185
31183
  case "string":
31186
31184
  case "boolean":
@@ -31225,14 +31223,14 @@ var go = { exports: {} };
31225
31223
  (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
31224
  var x = c.nextAuthCallbackID.toString();
31227
31225
  c.nextAuthCallbackID++;
31228
- var E = c.getDocument(), N = E.createElement("script");
31226
+ var E = c.getDocument(), D = E.createElement("script");
31229
31227
  c.auth_callbacks[x] = function(Q) {
31230
31228
  S(null, Q);
31231
31229
  };
31232
- var D = "Pusher.auth_callbacks['" + x + "']";
31233
- N.src = u.endpoint + "?callback=" + encodeURIComponent(D) + "&" + r;
31230
+ var B = "Pusher.auth_callbacks['" + x + "']";
31231
+ D.src = u.endpoint + "?callback=" + encodeURIComponent(B) + "&" + r;
31234
31232
  var Z = E.getElementsByTagName("head")[0] || E.documentElement;
31235
- Z.insertBefore(N, Z.firstChild);
31233
+ Z.insertBefore(D, Z.firstChild);
31236
31234
  }, wo = ko;
31237
31235
  class _o {
31238
31236
  constructor(r) {
@@ -31270,10 +31268,10 @@ var go = { exports: {} };
31270
31268
  }
31271
31269
  var Ao = function(c, r) {
31272
31270
  return function(u, b) {
31273
- var S = "http" + (r ? "s" : "") + "://", x = S + (c.host || c.options.host) + c.options.path, E = O.createJSONPRequest(x, u), N = O.ScriptReceivers.create(function(D, Z) {
31274
- a.remove(N), E.cleanup(), Z && Z.host && (c.host = Z.host), b && b(D, Z);
31271
+ var S = "http" + (r ? "s" : "") + "://", x = S + (c.host || c.options.host) + c.options.path, E = O.createJSONPRequest(x, u), D = O.ScriptReceivers.create(function(B, Z) {
31272
+ a.remove(D), E.cleanup(), Z && Z.host && (c.host = Z.host), b && b(B, Z);
31275
31273
  });
31276
- E.send(N);
31274
+ E.send(D);
31277
31275
  };
31278
31276
  }, Lo = {
31279
31277
  name: "jsonp",
@@ -31373,7 +31371,7 @@ var go = { exports: {} };
31373
31371
  return this;
31374
31372
  }
31375
31373
  }
31376
- class No extends Je {
31374
+ class Do extends Je {
31377
31375
  constructor(r, u, b, S, x) {
31378
31376
  super(), this.initialize = O.transportConnectionInitializer, this.hooks = r, this.name = u, this.priority = b, this.key = S, this.options = x, this.state = "new", this.timeline = x.timeline, this.activityTimeout = x.activityTimeout, this.id = this.timeline.generateUniqueID();
31379
31377
  }
@@ -31460,10 +31458,10 @@ var go = { exports: {} };
31460
31458
  return this.hooks.isSupported(r);
31461
31459
  }
31462
31460
  createConnection(r, u, b, S) {
31463
- return new No(this.hooks, r, u, b, S);
31461
+ return new Do(this.hooks, r, u, b, S);
31464
31462
  }
31465
31463
  }
31466
- var Bo = new xn({
31464
+ var No = new xn({
31467
31465
  urls: To,
31468
31466
  handlesActivityChecks: !1,
31469
31467
  supportsPing: !1,
@@ -31487,17 +31485,17 @@ var go = { exports: {} };
31487
31485
  getSocket: function(c) {
31488
31486
  return O.HTTPFactory.createStreamingSocket(c);
31489
31487
  }
31490
- }, Pt), Nt = pe({
31488
+ }, Pt), Dt = pe({
31491
31489
  getSocket: function(c) {
31492
31490
  return O.HTTPFactory.createPollingSocket(c);
31493
31491
  }
31494
- }, Pt), Bt = {
31492
+ }, Pt), Nt = {
31495
31493
  isSupported: function() {
31496
31494
  return O.isXHRSupported();
31497
31495
  }
31498
- }, Do = new xn(pe({}, It, Bt)), Ho = new xn(pe({}, Nt, Bt)), Ro = {
31499
- ws: Bo,
31500
- xhr_streaming: Do,
31496
+ }, Bo = new xn(pe({}, It, Nt)), Ho = new xn(pe({}, Dt, Nt)), Ro = {
31497
+ ws: No,
31498
+ xhr_streaming: Bo,
31501
31499
  xhr_polling: Ho
31502
31500
  }, ui = Ro, Oo = new xn({
31503
31501
  file: "sockjs",
@@ -31523,12 +31521,12 @@ var go = { exports: {} };
31523
31521
  path: r
31524
31522
  }));
31525
31523
  }
31526
- }), Dt = {
31524
+ }), Bt = {
31527
31525
  isSupported: function(c) {
31528
31526
  var r = O.isXDRSupported(c.useTLS);
31529
31527
  return r;
31530
31528
  }
31531
- }, Vo = new xn(pe({}, It, Dt)), Uo = new xn(pe({}, Nt, Dt));
31529
+ }, Vo = new xn(pe({}, It, Bt)), Uo = new xn(pe({}, Dt, Bt));
31532
31530
  ui.xdr_streaming = Vo, ui.xdr_polling = Uo, ui.sockjs = Oo;
31533
31531
  var Ko = ui;
31534
31532
  class jo extends Je {
@@ -31554,17 +31552,17 @@ var go = { exports: {} };
31554
31552
  S = pe({}, S, {
31555
31553
  activityTimeout: this.pingDelay
31556
31554
  });
31557
- var x = this.transport.createConnection(r, u, b, S), E = null, N = function() {
31558
- x.unbind("open", N), x.bind("closed", D), E = ae.now();
31559
- }, D = (Z) => {
31560
- if (x.unbind("closed", D), Z.code === 1002 || Z.code === 1003)
31555
+ var x = this.transport.createConnection(r, u, b, S), E = null, D = function() {
31556
+ x.unbind("open", D), x.bind("closed", B), E = ae.now();
31557
+ }, B = (Z) => {
31558
+ if (x.unbind("closed", B), Z.code === 1002 || Z.code === 1003)
31561
31559
  this.manager.reportDeath();
31562
31560
  else if (!Z.wasClean && E) {
31563
31561
  var Q = ae.now() - E;
31564
31562
  Q < 2 * this.maxPingDelay && (this.manager.reportDeath(), this.pingDelay = Math.max(Q / 2, this.minPingDelay));
31565
31563
  }
31566
31564
  };
31567
- return x.bind("open", N), x;
31565
+ return x.bind("open", D), x;
31568
31566
  }
31569
31567
  isSupported(r) {
31570
31568
  return this.manager.isAlive() && this.transport.isSupported(r);
@@ -31850,14 +31848,14 @@ var go = { exports: {} };
31850
31848
  });
31851
31849
  }
31852
31850
  return new (u || (u = Promise))(function(x, E) {
31853
- function N(Q) {
31851
+ function D(Q) {
31854
31852
  try {
31855
31853
  Z(b.next(Q));
31856
31854
  } catch (ce) {
31857
31855
  E(ce);
31858
31856
  }
31859
31857
  }
31860
- function D(Q) {
31858
+ function B(Q) {
31861
31859
  try {
31862
31860
  Z(b.throw(Q));
31863
31861
  } catch (ce) {
@@ -31865,7 +31863,7 @@ var go = { exports: {} };
31865
31863
  }
31866
31864
  }
31867
31865
  function Z(Q) {
31868
- Q.done ? x(Q.value) : S(Q.value).then(N, D);
31866
+ Q.done ? x(Q.value) : S(Q.value).then(D, B);
31869
31867
  }
31870
31868
  Z((b = b.apply(c, r || [])).next());
31871
31869
  });
@@ -31976,9 +31974,9 @@ var go = { exports: {} };
31976
31974
  }
31977
31975
  let x = this.nacl.secretbox.open(b, S, this.key);
31978
31976
  if (x === null) {
31979
- oe.debug("Failed to decrypt an event, probably because it was encrypted with a different key. Fetching a new key from the authEndpoint..."), this.authorize(this.pusher.connection.socket_id, (E, N) => {
31977
+ oe.debug("Failed to decrypt an event, probably because it was encrypted with a different key. Fetching a new key from the authEndpoint..."), this.authorize(this.pusher.connection.socket_id, (E, D) => {
31980
31978
  if (E) {
31981
- oe.error(`Failed to make a request to the authEndpoint: ${N}. Unable to fetch new key, so dropping encrypted event`);
31979
+ oe.error(`Failed to make a request to the authEndpoint: ${D}. Unable to fetch new key, so dropping encrypted event`);
31982
31980
  return;
31983
31981
  }
31984
31982
  if (x = this.nacl.secretbox.open(b, S, this.key), x === null) {
@@ -32164,7 +32162,7 @@ var go = { exports: {} };
32164
32162
  return this.channels[r] || (this.channels[r] = na(r, u)), this.channels[r];
32165
32163
  }
32166
32164
  all() {
32167
- return B(this.channels);
32165
+ return N(this.channels);
32168
32166
  }
32169
32167
  find(r) {
32170
32168
  return this.channels[r];
@@ -32249,15 +32247,15 @@ var go = { exports: {} };
32249
32247
  return jn(this.strategies, ae.method("isSupported"));
32250
32248
  }
32251
32249
  connect(r, u) {
32252
- var b = this.strategies, S = 0, x = this.timeout, E = null, N = (D, Z) => {
32253
- Z ? u(null, Z) : (S = S + 1, this.loop && (S = S % b.length), S < b.length ? (x && (x = x * 2, this.timeoutLimit && (x = Math.min(x, this.timeoutLimit))), E = this.tryStrategy(b[S], r, { timeout: x, failFast: this.failFast }, N)) : u(!0));
32250
+ var b = this.strategies, S = 0, x = this.timeout, E = null, D = (B, Z) => {
32251
+ Z ? u(null, Z) : (S = S + 1, this.loop && (S = S % b.length), S < b.length ? (x && (x = x * 2, this.timeoutLimit && (x = Math.min(x, this.timeoutLimit))), E = this.tryStrategy(b[S], r, { timeout: x, failFast: this.failFast }, D)) : u(!0));
32254
32252
  };
32255
- return E = this.tryStrategy(b[S], r, { timeout: x, failFast: this.failFast }, N), {
32253
+ return E = this.tryStrategy(b[S], r, { timeout: x, failFast: this.failFast }, D), {
32256
32254
  abort: function() {
32257
32255
  E.abort();
32258
32256
  },
32259
- forceMinPriority: function(D) {
32260
- r = D, E && E.forceMinPriority(D);
32257
+ forceMinPriority: function(B) {
32258
+ r = B, E && E.forceMinPriority(B);
32261
32259
  }
32262
32260
  };
32263
32261
  }
@@ -32265,14 +32263,14 @@ var go = { exports: {} };
32265
32263
  var x = null, E = null;
32266
32264
  return b.timeout > 0 && (x = new Te(b.timeout, function() {
32267
32265
  E.abort(), S(!0);
32268
- })), E = r.connect(u, function(N, D) {
32269
- N && x && x.isRunning() && !b.failFast || (x && x.ensureAborted(), S(N, D));
32266
+ })), E = r.connect(u, function(D, B) {
32267
+ D && x && x.isRunning() && !b.failFast || (x && x.ensureAborted(), S(D, B));
32270
32268
  }), {
32271
32269
  abort: function() {
32272
32270
  x && x.ensureAborted(), E.abort();
32273
32271
  },
32274
- forceMinPriority: function(N) {
32275
- E.forceMinPriority(N);
32272
+ forceMinPriority: function(D) {
32273
+ E.forceMinPriority(D);
32276
32274
  }
32277
32275
  };
32278
32276
  }
@@ -32291,16 +32289,16 @@ var go = { exports: {} };
32291
32289
  sa(S) && u(!0);
32292
32290
  return;
32293
32291
  }
32294
- de(S, function(N) {
32295
- N.forceMinPriority(E.transport.priority);
32292
+ de(S, function(D) {
32293
+ D.forceMinPriority(E.transport.priority);
32296
32294
  }), u(null, E);
32297
32295
  };
32298
32296
  });
32299
32297
  }
32300
32298
  }
32301
32299
  function ta(c, r, u) {
32302
- var b = Y(c, function(S, x, E, N) {
32303
- return S.connect(r, u(x, N));
32300
+ var b = Y(c, function(S, x, E, D) {
32301
+ return S.connect(r, u(x, D));
32304
32302
  });
32305
32303
  return {
32306
32304
  abort: function() {
@@ -32331,18 +32329,18 @@ var go = { exports: {} };
32331
32329
  connect(r, u) {
32332
32330
  var b = this.usingTLS, S = ra(b), x = S && S.cacheSkipCount ? S.cacheSkipCount : 0, E = [this.strategy];
32333
32331
  if (S && S.timestamp + this.ttl >= ae.now()) {
32334
- var N = this.transports[S.transport];
32335
- N && (["ws", "wss"].includes(S.transport) || x > 3 ? (this.timeline.info({
32332
+ var D = this.transports[S.transport];
32333
+ D && (["ws", "wss"].includes(S.transport) || x > 3 ? (this.timeline.info({
32336
32334
  cached: !0,
32337
32335
  transport: S.transport,
32338
32336
  latency: S.latency
32339
- }), E.push(new Cn([N], {
32337
+ }), E.push(new Cn([D], {
32340
32338
  timeout: S.latency * 2 + 1e3,
32341
32339
  failFast: !0
32342
32340
  }))) : x++);
32343
32341
  }
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));
32342
+ var B = ae.now(), Z = E.pop().connect(r, function Q(ce, mi) {
32343
+ ce ? (Ot(b), E.length > 0 ? (B = ae.now(), Z = E.pop().connect(r, Q)) : u(ce)) : (la(b, mi.transport.name, ae.now() - B, x), u(null, mi));
32346
32344
  });
32347
32345
  return {
32348
32346
  abort: function() {
@@ -32455,11 +32453,11 @@ var go = { exports: {} };
32455
32453
  httpPath: c.wsPath
32456
32454
  }), E = Object.assign({}, x, {
32457
32455
  useTLS: !0
32458
- }), N = Object.assign({}, r, {
32456
+ }), D = Object.assign({}, r, {
32459
32457
  hostNonTLS: c.httpHost + ":" + c.httpPort,
32460
32458
  hostTLS: c.httpHost + ":" + c.httpsPort,
32461
32459
  httpPath: c.httpPath
32462
- }), D = {
32460
+ }), B = {
32463
32461
  loop: !0,
32464
32462
  timeout: 15e3,
32465
32463
  timeoutLimit: 6e4
@@ -32470,16 +32468,16 @@ var go = { exports: {} };
32470
32468
  lives: 2,
32471
32469
  minPingDelay: 1e4,
32472
32470
  maxPingDelay: c.activityTimeout
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([
32471
+ }), ce = S("ws", "ws", 3, x, Z), mi = S("wss", "ws", 3, E, Z), sr = S("sockjs", "sockjs", 1, D), Ft = S("xhr_streaming", "xhr_streaming", 1, D, Q), or = S("xdr_streaming", "xdr_streaming", 1, D, Q), Gt = S("xhr_polling", "xhr_polling", 1, D), ar = S("xdr_polling", "xdr_polling", 1, D), qt = new Cn([ce], B), rr = new Cn([mi], B), lr = new Cn([sr], B), zt = new Cn([
32474
32472
  new Gn(qn(Ft), Ft, or)
32475
- ], D), Wt = new Cn([
32473
+ ], B), Wt = new Cn([
32476
32474
  new Gn(qn(Gt), Gt, ar)
32477
- ], D), Zt = new Cn([
32475
+ ], B), Zt = new Cn([
32478
32476
  new Gn(qn(zt), new Ji([
32479
32477
  zt,
32480
32478
  new ci(Wt, { delay: 4e3 })
32481
32479
  ]), Wt)
32482
- ], D), et = new Gn(qn(Zt), Zt, lr), nt;
32480
+ ], B), et = new Gn(qn(Zt), Zt, lr), nt;
32483
32481
  return r.useTLS ? nt = new Ji([
32484
32482
  qt,
32485
32483
  new ci(et, { delay: 2e3 })
@@ -32829,7 +32827,7 @@ var go = { exports: {} };
32829
32827
  c[c.ERROR = 3] = "ERROR", c[c.INFO = 6] = "INFO", c[c.DEBUG = 7] = "DEBUG";
32830
32828
  })(Qi || (Qi = {}));
32831
32829
  var hi = Qi;
32832
- class Na {
32830
+ class Da {
32833
32831
  constructor(r, u, b) {
32834
32832
  this.key = r, this.session = u, this.events = [], this.options = b || {}, this.sent = 0, this.uniqueID = 0;
32835
32833
  }
@@ -32867,7 +32865,7 @@ var go = { exports: {} };
32867
32865
  return this.uniqueID++, this.uniqueID;
32868
32866
  }
32869
32867
  }
32870
- class Ba {
32868
+ class Na {
32871
32869
  constructor(r, u, b, S) {
32872
32870
  this.name = r, this.priority = u, this.transport = b, this.options = S || {};
32873
32871
  }
@@ -32883,20 +32881,20 @@ var go = { exports: {} };
32883
32881
  } else return jt(new G(), u);
32884
32882
  var b = !1, S = this.transport.createConnection(this.name, this.priority, this.options.key, this.options), x = null, E = function() {
32885
32883
  S.unbind("initialized", E), S.connect();
32886
- }, N = function() {
32884
+ }, D = function() {
32887
32885
  x = $e.createHandshake(S, function(ce) {
32888
32886
  b = !0, Q(), u(null, ce);
32889
32887
  });
32890
- }, D = function(ce) {
32888
+ }, B = function(ce) {
32891
32889
  Q(), u(ce);
32892
32890
  }, Z = function() {
32893
32891
  Q();
32894
32892
  var ce;
32895
32893
  ce = gn(S), u(new T(ce));
32896
32894
  }, Q = function() {
32897
- S.unbind("initialized", E), S.unbind("open", N), S.unbind("error", D), S.unbind("closed", Z);
32895
+ S.unbind("initialized", E), S.unbind("open", D), S.unbind("error", B), S.unbind("closed", Z);
32898
32896
  };
32899
- return S.bind("initialized", E), S.bind("open", N), S.bind("error", D), S.bind("closed", Z), S.initialize(), {
32897
+ return S.bind("initialized", E), S.bind("open", D), S.bind("error", B), S.bind("closed", Z), S.initialize(), {
32900
32898
  abort: () => {
32901
32899
  b || (Q(), x ? x.close() : S.close());
32902
32900
  },
@@ -32916,13 +32914,13 @@ var go = { exports: {} };
32916
32914
  }
32917
32915
  };
32918
32916
  }
32919
- const { Transports: Da } = O;
32917
+ const { Transports: Ba } = O;
32920
32918
  var Ha = function(c, r, u, b, S, x) {
32921
- var E = Da[u];
32919
+ var E = Ba[u];
32922
32920
  if (!E)
32923
32921
  throw new K(u);
32924
- var N = (!c.enabledTransports || Ee(c.enabledTransports, r) !== -1) && (!c.disabledTransports || Ee(c.disabledTransports, r) === -1), D;
32925
- return N ? (S = Object.assign({ ignoreNullOrigin: c.ignoreNullOrigin }, S), D = new Ba(r, b, x ? x.getAssistant(E) : E, S)) : D = Ra, D;
32922
+ var D = (!c.enabledTransports || Ee(c.enabledTransports, r) !== -1) && (!c.disabledTransports || Ee(c.disabledTransports, r) === -1), B;
32923
+ return D ? (S = Object.assign({ ignoreNullOrigin: c.ignoreNullOrigin }, S), B = new Na(r, b, x ? x.getAssistant(E) : E, S)) : B = Ra, B;
32926
32924
  }, Ra = {
32927
32925
  isSupported: function() {
32928
32926
  return !1;
@@ -33152,7 +33150,7 @@ var go = { exports: {} };
33152
33150
  }));
33153
33151
  }
33154
33152
  constructor(r, u) {
33155
- tr(r), Oa(u), this.key = r, this.config = Ga(u, this), this.channels = $e.createChannels(), this.global_emitter = new Je(), this.sessionID = O.randomInt(1e9), this.timeline = new Na(this.key, this.sessionID, {
33153
+ tr(r), Oa(u), this.key = r, this.config = Ga(u, this), this.channels = $e.createChannels(), this.global_emitter = new Je(), this.sessionID = O.randomInt(1e9), this.timeline = new Da(this.key, this.sessionID, {
33156
33154
  cluster: this.config.cluster,
33157
33155
  features: ye.getClientFeatures(),
33158
33156
  params: this.config.timelineParams || {},
@@ -33176,8 +33174,8 @@ var go = { exports: {} };
33176
33174
  }), this.connection.bind("message", (S) => {
33177
33175
  var x = S.event, E = x.indexOf("pusher_internal:") === 0;
33178
33176
  if (S.channel) {
33179
- var N = this.channel(S.channel);
33180
- N && N.handleEvent(S);
33177
+ var D = this.channel(S.channel);
33178
+ D && D.handleEvent(S);
33181
33179
  }
33182
33180
  E || this.global_emitter.emit(S.event, S.data);
33183
33181
  }), this.connection.bind("connecting", () => {
@@ -33573,7 +33571,7 @@ class zd {
33573
33571
  totalAmount: i,
33574
33572
  closeModal: t,
33575
33573
  container: s,
33576
- email: o,
33574
+ customer: o,
33577
33575
  token: a,
33578
33576
  currency: l,
33579
33577
  rdtCode: d,
@@ -33590,7 +33588,7 @@ class zd {
33590
33588
  h(this, "container");
33591
33589
  h(this, "contents");
33592
33590
  h(this, "closeModal");
33593
- h(this, "email");
33591
+ h(this, "customer");
33594
33592
  h(this, "transferDetails");
33595
33593
  h(this, "transferConfirmationProgress");
33596
33594
  h(this, "transferConfirmationEnd");
@@ -33624,7 +33622,7 @@ class zd {
33624
33622
  h(this, "isMobile", !1);
33625
33623
  this.currency = l, this.container = s, this.contents = this.container.querySelector(
33626
33624
  "#payment-content-view"
33627
- ), this.closeModal = t, this.token = a, this.email = o, this.amount = e, this.totalAmount = i, this.rdtCode = d, this.url = p, this.reference = v, this._currentStep = 1, this.callBackUrl = g, this.metadata = f, this.localCurrency = y, this.disablePaymentMethods = k, this.paymentResponse = {}, this.paymentResponseHeaders = {}, this.restartTransactionProcess = C, this.hidePaymentMethods = w, this.retryingPayment = M, this.isMaxRetriesReached = !1, this.renderTransferContent(), this.paymentResponse = {}, this.activeRef = "", this.timerId = null, this.mainLoader = new Be(this.contents), this.mainLoader.mountLoader("25dvh"), this.currentStep === 1 && (this.abortController = new AbortController(), this.createTransfer()), this.isMobile = window.matchMedia("(max-width: 767px)").matches;
33625
+ ), this.closeModal = t, this.token = a, this.customer = o, this.amount = e, this.totalAmount = i, this.rdtCode = d, this.url = p, this.reference = v, this._currentStep = 1, this.callBackUrl = g, this.metadata = f, this.localCurrency = y, this.disablePaymentMethods = k, this.paymentResponse = {}, this.paymentResponseHeaders = {}, this.restartTransactionProcess = C, this.hidePaymentMethods = w, this.retryingPayment = M, this.isMaxRetriesReached = !1, this.renderTransferContent(), this.paymentResponse = {}, this.activeRef = "", this.timerId = null, this.mainLoader = new Ne(this.contents), this.mainLoader.mountLoader("25dvh"), this.currentStep === 1 && (this.abortController = new AbortController(), this.createTransfer()), this.isMobile = window.matchMedia("(max-width: 767px)").matches;
33628
33626
  }
33629
33627
  get currentStep() {
33630
33628
  return this._currentStep;
@@ -33664,7 +33662,7 @@ class zd {
33664
33662
  async createTransfer() {
33665
33663
  requestAnimationFrame(() => {
33666
33664
  const e = this.container.querySelector("#loader"), i = this.container.querySelector("#details-content");
33667
- i && (this.mainLoader = new Be(this.contents), this.mainLoader.mountLoader("25dvh"), i.classList.add("hidden")), P.track("start_payment", {
33665
+ i && (this.mainLoader = new Ne(this.contents), this.mainLoader.mountLoader("25dvh"), i.classList.add("hidden")), P.track("start_payment", {
33668
33666
  payment_method: "Transfer"
33669
33667
  }), (() => {
33670
33668
  var s, o;
@@ -33684,9 +33682,7 @@ class zd {
33684
33682
  amount: this.amount,
33685
33683
  channel: "bank_transfer",
33686
33684
  currency: this.currency,
33687
- customer: {
33688
- email: this.email
33689
- },
33685
+ customer: this.customer,
33690
33686
  reference: this.reference,
33691
33687
  callBackUrl: this.callBackUrl,
33692
33688
  metadata: this.metadata,
@@ -34239,7 +34235,7 @@ class Yd {
34239
34235
  h(this, "amount");
34240
34236
  h(this, "ussd_detail");
34241
34237
  h(this, "reference");
34242
- h(this, "email");
34238
+ h(this, "customer");
34243
34239
  // private abortController!: AbortController;
34244
34240
  h(this, "activeRef", "");
34245
34241
  h(this, "pageLoader");
@@ -34251,7 +34247,7 @@ class Yd {
34251
34247
  token: this.secret,
34252
34248
  rdtCode: e.rdtCode,
34253
34249
  url: e.url
34254
- }), this.currency = e.currency, this.amount = e.amount || 0, this.email = e.email, this.reference = e.reference, this.callBackUrl = e.callBackUrl, this.metadata = e.metadata, this.localCurrency = e.localCurrency, this.onError = e.onError ?? (() => null), this.pageLoader = new Be(this.container), this.pageLoader.mountLoader("25dvh"), this.pageLoader.updateMessage("Fetching selected bank code detail");
34250
+ }), this.currency = e.currency, this.amount = e.amount || 0, this.customer = e.customer, this.reference = e.reference, this.callBackUrl = e.callBackUrl, this.metadata = e.metadata, this.localCurrency = e.localCurrency, this.onError = e.onError ?? (() => null), this.pageLoader = new Ne(this.container), this.pageLoader.mountLoader("25dvh"), this.pageLoader.updateMessage("Fetching selected bank code detail");
34255
34251
  }
34256
34252
  makePayment() {
34257
34253
  var e;
@@ -34261,9 +34257,7 @@ class Yd {
34261
34257
  amount: this.amount,
34262
34258
  currency: this.currency,
34263
34259
  channel: "ussd",
34264
- customer: {
34265
- email: this.email
34266
- },
34260
+ customer: this.customer,
34267
34261
  bank: {
34268
34262
  code: ((e = this.selected) == null ? void 0 : e.code) || ""
34269
34263
  },
@@ -34363,7 +34357,7 @@ class Co {
34363
34357
  amount: s,
34364
34358
  totalAmount: o,
34365
34359
  currency: a,
34366
- email: l,
34360
+ customer: l,
34367
34361
  reference: d,
34368
34362
  rdtCode: p,
34369
34363
  url: v,
@@ -34383,7 +34377,7 @@ class Co {
34383
34377
  h(this, "amount");
34384
34378
  h(this, "totalAmount");
34385
34379
  h(this, "currency");
34386
- h(this, "email");
34380
+ h(this, "customer");
34387
34381
  h(this, "pageLoader");
34388
34382
  h(this, "reference");
34389
34383
  h(this, "onSuccess");
@@ -34408,7 +34402,7 @@ class Co {
34408
34402
  h(this, "hidePaymentMethods");
34409
34403
  h(this, "showPaymentMethods");
34410
34404
  h(this, "disablePaymentMethods");
34411
- this.onSuccess = i || (() => null), this.container = e, this.secret = t, this.amount = s, this.totalAmount = o, this.currency = a, this.reference = d, this.email = l, this.rdtCode = p, this.url = v, this.callBackUrl = g, this.metadata = f, this.localCurrency = y, this.merchantDetails = {}, this.hidePaymentMethods = k, this.showPaymentMethods = C, this.disablePaymentMethods = w, this.contents = this.container.querySelector(
34405
+ this.onSuccess = i || (() => null), this.container = e, this.secret = t, this.amount = s, this.totalAmount = o, this.currency = a, this.reference = d, this.customer = l, this.rdtCode = p, this.url = v, this.callBackUrl = g, this.metadata = f, this.localCurrency = y, this.merchantDetails = {}, this.hidePaymentMethods = k, this.showPaymentMethods = C, this.disablePaymentMethods = w, this.contents = this.container.querySelector(
34412
34406
  "#payment-content-view"
34413
34407
  ), this._currentStep = 1, this.paymentService = new yo({
34414
34408
  token: this.secret,
@@ -34486,7 +34480,7 @@ class Co {
34486
34480
  amount: this.amount,
34487
34481
  totalAmount: this.totalAmount,
34488
34482
  currency: this.currency,
34489
- email: this.email || "",
34483
+ customer: this.customer,
34490
34484
  onError: (t) => {
34491
34485
  this.currentStep = 3, this.warningScreen.setPaymentError(t);
34492
34486
  },
@@ -34505,7 +34499,7 @@ class Co {
34505
34499
  });
34506
34500
  break;
34507
34501
  case 4:
34508
- this.pageLoader = new Be(this.contents), this.pageLoader.mountLoader("25vh"), this.pageLoader.updateMessage(
34502
+ this.pageLoader = new Ne(this.contents), this.pageLoader.mountLoader("25vh"), this.pageLoader.updateMessage(
34509
34503
  "We are confirming transaction status. This might take a few seconds.",
34510
34504
  "Please do not refresh this page"
34511
34505
  );
@@ -34736,7 +34730,7 @@ class su {
34736
34730
  });
34737
34731
  }
34738
34732
  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, jn, ai, ri, li, di, gn;
34733
+ 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, N, de, Y, ue, Pe, J, an, jn, ai, ri, li, di, gn;
34740
34734
  this.container.innerHTML = this.render(), this.amount = this.amount;
34741
34735
  const e = this.container.querySelector(
34742
34736
  "#merchant-logo-container"
@@ -34783,7 +34777,7 @@ class su {
34783
34777
  )} `) : d.innerHTML = ""), p && (this.currency === "USD" ? g && (g.innerHTML = `1 ${((ae = (fn = this.merchantDetail) == null ? void 0 : fn.rate) == null ? void 0 : ae.to) || "-"} = ${((Ie = (pe = this.merchantDetail) == null ? void 0 : pe.rate) == null ? void 0 : Ie.from) || "-"} ${Le(
34784
34778
  ((Ee = this.merchantDetail.rate) == null ? void 0 : Ee.rate) || 1,
34785
34779
  2
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());
34780
+ )} `) : p.innerHTML = ""), (je = (Ce = this.merchantDetail) == null ? void 0 : Ce.plan) != null && je.title || (N = this.metadata) != null && N.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
34781
  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
34782
  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
34783
  const K = eu[this.localCurrency];
@@ -34865,7 +34859,7 @@ class su {
34865
34859
  const ou = `<div class="flex items-center justify-center md:justify-between w-full text-xxs mt-5">
34866
34860
  <div class="text-tone-60"><span>Powered by</span> <span class="font-bold">Spotflow</span></div>
34867
34861
  <div class="align-center text-tone-60 hidden md:flex gap-4">
34868
- <!-- <span id="test-cards-link" class="hover:font-bold">Test Cards</span> -->
34862
+ <span id="test-cards-link" class="hover:font-bold">Test Cards</span>
34869
34863
  <a href="https://ribbon-scowl-35f.notion.site/Terms-Conditions-940742f0a1b144498ffc1786c5bc6a08?pvs=4" target="_blank" class="hover:font-bold">Terms</a>
34870
34864
  <a href="https://ribbon-scowl-35f.notion.site/Privacy-Policy-Spotflow-3997ee8d923d4cd39a3dc43b7249b713" target="_blank" class="hover:font-bold">Privacy</a>
34871
34865
  <a href="mailto:hello@spotflow.one" class="hover:font-bold">Contact</a>
@@ -35743,7 +35737,7 @@ class pu {
35743
35737
  reference: l,
35744
35738
  onSuccess: d,
35745
35739
  url: p,
35746
- email: v,
35740
+ customer: v,
35747
35741
  amount: g,
35748
35742
  totalAmount: f,
35749
35743
  token: y,
@@ -35768,7 +35762,7 @@ class pu {
35768
35762
  h(this, "mainLoader");
35769
35763
  h(this, "_currentStep");
35770
35764
  h(this, "successScreen");
35771
- h(this, "email");
35765
+ h(this, "customer");
35772
35766
  h(this, "activeRef");
35773
35767
  h(this, "warningScreen");
35774
35768
  h(this, "amount");
@@ -35795,7 +35789,7 @@ class pu {
35795
35789
  h(this, "countryCode");
35796
35790
  this.container = e, this.onSuccess = d || (() => null), this.token = y, this.currency = k, this.amount = g, this.totalAmount = f, this.contents = this.container.querySelector(
35797
35791
  "#payment-content-view"
35798
- ), this._currentStep = 1, this.activeRef = "", this.token = i, this.email = v, this.metadata = s, this.localCurrency = t, this.callBackUrl = o, this.localCurrency = t, this.rdtCode = a, this.url = p, this.reference = l, this.merchantDetails = {}, this.disablePaymentMethods = C, this.hidePaymentMethods = w, this.showPaymentMethods = M, this.onClose = A, this.paymentResponse = {}, this.paymentResponseHeaders = {}, this.restartTransactionProcess = _, this.retryingPayment = T, this.isMaxRetriesReached = !1, this.countryCode = I, P.track("mobile_money_opens", {
35792
+ ), this._currentStep = 1, this.activeRef = "", this.token = i, this.customer = v, this.metadata = s, this.localCurrency = t, this.callBackUrl = o, this.localCurrency = t, this.rdtCode = a, this.url = p, this.reference = l, this.merchantDetails = {}, this.disablePaymentMethods = C, this.hidePaymentMethods = w, this.showPaymentMethods = M, this.onClose = A, this.paymentResponse = {}, this.paymentResponseHeaders = {}, this.restartTransactionProcess = _, this.retryingPayment = T, this.isMaxRetriesReached = !1, this.countryCode = I, P.track("mobile_money_opens", {
35799
35793
  payment_method: "Mobile Money"
35800
35794
  }), this.isMobile = window.matchMedia("(max-width: 767px)").matches;
35801
35795
  }
@@ -35839,9 +35833,7 @@ class pu {
35839
35833
  amount: this.amount,
35840
35834
  channel: "mobile_money",
35841
35835
  currency: this.currency || "USD",
35842
- customer: {
35843
- email: this.email
35844
- },
35836
+ customer: this.customer,
35845
35837
  reference: this.reference,
35846
35838
  callBackUrl: this.callBackUrl,
35847
35839
  metadata: this.metadata,
@@ -35904,7 +35896,7 @@ class pu {
35904
35896
  });
35905
35897
  }
35906
35898
  showLoader() {
35907
- this.pageLoader = new Be(this.contents), this.pageLoader.mountLoader();
35899
+ this.pageLoader = new Ne(this.contents), this.pageLoader.mountLoader();
35908
35900
  }
35909
35901
  submitOtp(e, i) {
35910
35902
  e.preventDefault();
@@ -35991,7 +35983,7 @@ class pu {
35991
35983
  }), this.mobileMoneyForm.renderContent();
35992
35984
  break;
35993
35985
  case 2:
35994
- this.mainLoader = new Be(this.contents), this.mainLoader.mountLoader("25dvh"), this.mainLoader.updateMessage("Please wait");
35986
+ this.mainLoader = new Ne(this.contents), this.mainLoader.mountLoader("25dvh"), this.mainLoader.updateMessage("Please wait");
35995
35987
  break;
35996
35988
  case 3:
35997
35989
  this.mobileMoneyConfirmation = new du({
@@ -36035,7 +36027,7 @@ class pu {
36035
36027
  }), this.mobileMoneyValidationForm.renderComponent();
36036
36028
  break;
36037
36029
  case 7:
36038
- this.pageLoader = new Be(this.contents), this.pageLoader.mountLoader(), this.pageLoader.updateMessage("Verifying Payment");
36030
+ this.pageLoader = new Ne(this.contents), this.pageLoader.mountLoader(), this.pageLoader.updateMessage("Verifying Payment");
36039
36031
  break;
36040
36032
  case 8:
36041
36033
  this.mobileMoneyConfirmationEnd = new vu({
@@ -36146,7 +36138,7 @@ class fu {
36146
36138
  amount: e,
36147
36139
  totalAmount: i,
36148
36140
  container: t,
36149
- email: s,
36141
+ customer: s,
36150
36142
  token: o,
36151
36143
  currency: a,
36152
36144
  rdtCode: l,
@@ -36167,7 +36159,7 @@ class fu {
36167
36159
  h(this, "warningScreen");
36168
36160
  h(this, "transactionIssuesScreen");
36169
36161
  h(this, "container");
36170
- h(this, "email");
36162
+ h(this, "customer");
36171
36163
  h(this, "token");
36172
36164
  h(this, "amount");
36173
36165
  h(this, "totalAmount");
@@ -36190,7 +36182,7 @@ class fu {
36190
36182
  h(this, "isMobile", !1);
36191
36183
  h(this, "paymentResponse");
36192
36184
  h(this, "paymentResponseHeaders");
36193
- this.currency = a, this.container = t, this.token = o, this.email = s, this.amount = e, this.totalAmount = i, this.rdtCode = l, this.url = d, this.reference = p, this.callBackUrl = v, this.metadata = g, this.localCurrency = f, this._currentStep = 1, this.contents = this.container.querySelector(
36185
+ this.currency = a, this.container = t, this.token = o, this.customer = s, this.amount = e, this.totalAmount = i, this.rdtCode = l, this.url = d, this.reference = p, this.callBackUrl = v, this.metadata = g, this.localCurrency = f, this._currentStep = 1, this.contents = this.container.querySelector(
36194
36186
  "#payment-content-view"
36195
36187
  ), this.hidePaymentMethods = y, this.showPaymentMethods = k, this.restartTransactionProcess = C, this.retryingPayment = w, this.isMaxRetriesReached = !1, this.paymentResponse = {}, this.paymentResponseHeaders = {}, this.renderEftContent(), P.track("eft_opens", {
36196
36188
  payment_method: "EFT"
@@ -36203,7 +36195,7 @@ class fu {
36203
36195
  this._currentStep = e, this.renderEftContent();
36204
36196
  }
36205
36197
  showLoader() {
36206
- this.pageLoader = new Be(this.contents), this.pageLoader.mountLoader(), this.pageLoader.updateMessage("Verifying Payment");
36198
+ this.pageLoader = new Ne(this.contents), this.pageLoader.mountLoader(), this.pageLoader.updateMessage("Verifying Payment");
36207
36199
  }
36208
36200
  setPaymentError(e) {
36209
36201
  const i = this.container.querySelector("#payment-warning-text");
@@ -36238,9 +36230,7 @@ class fu {
36238
36230
  amount: this.amount,
36239
36231
  channel: "eft",
36240
36232
  currency: this.currency,
36241
- customer: {
36242
- email: this.email
36243
- },
36233
+ customer: this.customer,
36244
36234
  reference: this.reference,
36245
36235
  callBackUrl: this.callBackUrl,
36246
36236
  metadata: this.metadata,
@@ -36348,7 +36338,7 @@ class fu {
36348
36338
  }), this.successScreen.renderComponent();
36349
36339
  break;
36350
36340
  case 3:
36351
- this.pageLoader = new Be(this.contents), this.pageLoader.mountLoader(), this.pageLoader.updateMessage("Verifying Payment");
36341
+ this.pageLoader = new Ne(this.contents), this.pageLoader.mountLoader(), this.pageLoader.updateMessage("Verifying Payment");
36352
36342
  break;
36353
36343
  case 4:
36354
36344
  this.warningScreen = new Ln({
@@ -36391,22 +36381,21 @@ class fu {
36391
36381
  class gu {
36392
36382
  constructor({
36393
36383
  container: e,
36394
- email: i,
36395
- phoneNumber: t,
36396
- code: s,
36397
- encryption: o,
36398
- merchantKey: a,
36399
- modalContainer: l,
36400
- amount: d,
36401
- planId: p,
36402
- rdtCode: v,
36403
- url: g,
36404
- reference: f,
36405
- callBackUrl: y,
36406
- metadata: k,
36407
- localCurrency: C,
36408
- closePayment: w,
36409
- countryCode: M
36384
+ customerDetails: i,
36385
+ code: t,
36386
+ encryption: s,
36387
+ merchantKey: o,
36388
+ modalContainer: a,
36389
+ amount: l,
36390
+ planId: d,
36391
+ rdtCode: p,
36392
+ url: v,
36393
+ reference: g,
36394
+ callBackUrl: f,
36395
+ metadata: y,
36396
+ localCurrency: k,
36397
+ closePayment: C,
36398
+ countryCode: w
36410
36399
  }) {
36411
36400
  h(this, "validChannels", []);
36412
36401
  h(this, "disabledChannels", []);
@@ -36428,8 +36417,7 @@ class gu {
36428
36417
  h(this, "encryption");
36429
36418
  h(this, "merchantKey");
36430
36419
  h(this, "planId");
36431
- h(this, "email");
36432
- h(this, "phoneNumber");
36420
+ h(this, "customerDetails");
36433
36421
  h(this, "code");
36434
36422
  h(this, "amount", 0);
36435
36423
  h(this, "rdtCode");
@@ -36443,7 +36431,7 @@ class gu {
36443
36431
  h(this, "retryingPayment");
36444
36432
  h(this, "totalAmount");
36445
36433
  h(this, "countryCode");
36446
- this.validChannels = [], this.disabledChannels = [], this.selectedChannel = "", this.modalContainer = l, this.encryption = o, this.planId = p || "", this.merchantKey = a, this.email = i, this.phoneNumber = t, this.code = s, this.amount = d || 0, this.rdtCode = v || "", this.url = g || "", this.reference = f, this.mainLayout = e, this.callBackUrl = y, this.metadata = k || {}, this.localCurrency = C || "", this.isMobile = window.matchMedia("(max-width: 767px)").matches, this.currentPaymentMethod = "", this.currency = "", this.closePayment = w, this.retryingPayment = !1, this.totalAmount = 0, this.countryCode = M || "";
36434
+ this.validChannels = [], this.disabledChannels = [], this.selectedChannel = "", this.modalContainer = a, this.encryption = s, this.planId = d || "", this.merchantKey = o, this.code = t, this.amount = l || 0, this.rdtCode = p || "", this.url = v || "", this.reference = g, this.mainLayout = e, this.callBackUrl = f, this.metadata = y || {}, this.localCurrency = k || "", this.isMobile = window.matchMedia("(max-width: 767px)").matches, this.currentPaymentMethod = "", this.currency = "", this.closePayment = C, this.retryingPayment = !1, this.totalAmount = 0, this.countryCode = w || "", this.customerDetails = i;
36447
36435
  }
36448
36436
  mountScreen(e, i, t, s) {
36449
36437
  var a, l;
@@ -36453,7 +36441,7 @@ class gu {
36453
36441
  );
36454
36442
  this.amount = (o == null ? void 0 : o.amount) || this.amount, this.totalAmount = this.merchantPlanDetail.totalAmount || this.amount, this.mainHeader = new su({
36455
36443
  container: document.getElementById("main-header"),
36456
- email: this.email,
36444
+ email: this.customerDetails.email,
36457
36445
  amount: this.amount,
36458
36446
  metadata: this.metadata,
36459
36447
  currency: this.currency,
@@ -36490,7 +36478,7 @@ class gu {
36490
36478
  }).renderComponent();
36491
36479
  }), this.mainFooter.renderComponent(), this.setupPaymentMethodButtons(), this.selectedChannel && (this.currentPaymentMethod = this.selectedChannel), this.updatePaymentMethodView(
36492
36480
  this.merchantKey,
36493
- this.email,
36481
+ this.customerDetails,
36494
36482
  this.amount,
36495
36483
  this.totalAmount,
36496
36484
  this.currency
@@ -36546,7 +36534,7 @@ class gu {
36546
36534
  totalAmount: s,
36547
36535
  currency: o,
36548
36536
  token: e,
36549
- email: i,
36537
+ customer: i || this.customerDetails,
36550
36538
  planId: this.planId,
36551
36539
  rdtCode: this.rdtCode,
36552
36540
  url: this.url,
@@ -36572,7 +36560,7 @@ class gu {
36572
36560
  closeModal: this.closeModal.bind(this),
36573
36561
  token: e,
36574
36562
  container: this.modalContainer,
36575
- email: i,
36563
+ customer: i || this.customerDetails,
36576
36564
  rdtCode: this.rdtCode,
36577
36565
  url: this.url,
36578
36566
  reference: this.reference,
@@ -36595,7 +36583,7 @@ class gu {
36595
36583
  secret: this.merchantKey,
36596
36584
  rdtCode: this.rdtCode,
36597
36585
  url: this.url,
36598
- email: this.email,
36586
+ customer: i || this.customerDetails,
36599
36587
  reference: this.reference,
36600
36588
  callBackUrl: this.callBackUrl,
36601
36589
  metadata: this.metadata,
@@ -36611,7 +36599,7 @@ class gu {
36611
36599
  case "mobile_money":
36612
36600
  return this.mobileMoney = new pu({
36613
36601
  container: this.modalContainer,
36614
- email: this.email,
36602
+ customer: i || this.customerDetails,
36615
36603
  currency: o,
36616
36604
  rdtCode: this.rdtCode,
36617
36605
  url: this.url,
@@ -36620,7 +36608,6 @@ class gu {
36620
36608
  totalAmount: this.totalAmount,
36621
36609
  metadata: this.metadata,
36622
36610
  localCurrency: this.localCurrency,
36623
- phoneNumber: this.phoneNumber,
36624
36611
  code: this.code,
36625
36612
  callBackUrl: this.callBackUrl,
36626
36613
  merchantKey: this.merchantKey,
@@ -36644,8 +36631,8 @@ class gu {
36644
36631
  amount: t,
36645
36632
  totalAmount: s,
36646
36633
  currency: o,
36634
+ customer: i || this.customerDetails,
36647
36635
  token: e,
36648
- email: i,
36649
36636
  rdtCode: this.rdtCode,
36650
36637
  url: this.url,
36651
36638
  reference: this.reference,
@@ -36697,7 +36684,7 @@ class gu {
36697
36684
  setToDefaultEmptyContainer() {
36698
36685
  this.currentPaymentMethod = "", this.retryingPayment = !0, this.updatePaymentMethodView(
36699
36686
  this.merchantKey,
36700
- this.email,
36687
+ this.customerDetails,
36701
36688
  this.amount,
36702
36689
  this.totalAmount,
36703
36690
  this.currency
@@ -36712,7 +36699,7 @@ class gu {
36712
36699
  switchTab(e) {
36713
36700
  this.currentPaymentMethod === e && e !== "" || (this.currentPaymentMethod === "bank_transfer" && this.currentPaymentMethod !== e && this.setToDefaultEmptyContainer(), this.setCurrentPaymentMethod(e), this.updatePaymentMethodView(
36714
36701
  this.merchantKey,
36715
- this.email,
36702
+ this.customerDetails,
36716
36703
  this.amount,
36717
36704
  this.totalAmount,
36718
36705
  this.currency
@@ -36859,6 +36846,7 @@ class Au {
36859
36846
  h(this, "planId");
36860
36847
  h(this, "email");
36861
36848
  h(this, "amount");
36849
+ h(this, "name");
36862
36850
  h(this, "rdtCode");
36863
36851
  h(this, "url");
36864
36852
  h(this, "phoneNumber");
@@ -36915,9 +36903,11 @@ class Au {
36915
36903
  callBackUrl: g,
36916
36904
  metadata: f,
36917
36905
  localCurrency: y,
36918
- countryCode: k
36906
+ countryCode: k,
36907
+ phoneNumber: C,
36908
+ name: w
36919
36909
  } = e;
36920
- if (this.merchantKey = s || "", this.email = i || "", this.amount = a || 0, this.encryption = t || "", this.planId = o || "", this.rdtCode = l || "", this.reference = d || Mr(), this.url = v || "", this.callBackUrl = g || "", this.metadata = f || {}, this.countryCode = k || "", !s || !i)
36910
+ if (this.merchantKey = s || "", this.email = i || "", this.amount = a || 0, this.encryption = t || "", this.planId = o || "", this.rdtCode = l || "", this.reference = d || Mr(), this.url = v || "", this.callBackUrl = g || "", this.metadata = f || {}, this.countryCode = k || "", this.phoneNumber = C || "", this.name = w || "", !s || !i)
36921
36911
  throw this.mainError = new xs(this.mainLayout), this.mainError.renderContent(this.callBackUrl), this.showErrorIcon(), new Error("Merchant key or email is required");
36922
36912
  this.currency = p || "", this.merchantConfigService = new Wd({
36923
36913
  token: this.merchantKey,
@@ -36927,21 +36917,28 @@ class Au {
36927
36917
  container: this.mainLayout,
36928
36918
  modalContainer: this.modalContainer,
36929
36919
  merchantKey: s,
36930
- email: i,
36931
36920
  encryption: this.encryption,
36932
36921
  planId: this.planId,
36933
36922
  amount: this.amount,
36934
36923
  rdtCode: this.rdtCode,
36935
36924
  url: this.url,
36936
- phoneNumber: this.phoneNumber,
36937
36925
  code: this.code,
36938
36926
  reference: this.reference,
36939
36927
  callBackUrl: this.callBackUrl,
36940
36928
  metadata: this.metadata,
36941
36929
  localCurrency: this.localCurrency,
36942
36930
  countryCode: this.countryCode,
36931
+ customerDetails: {
36932
+ email: i || this.email,
36933
+ ...this.name ? {
36934
+ name: this.name
36935
+ } : {},
36936
+ ...this.phoneNumber ? {
36937
+ phoneNumber: this.phoneNumber
36938
+ } : {}
36939
+ },
36943
36940
  closePayment: this.closePayment.bind(this)
36944
- }), this.mainLoader = new Be(this.mainLayout), this.mainError = new xs(this.mainLayout), this.mainLoader.mountLoader(), this.getPlanDetails();
36941
+ }), this.mainLoader = new Ne(this.mainLayout), this.mainError = new xs(this.mainLayout), this.mainLoader.mountLoader(), this.getPlanDetails();
36945
36942
  }
36946
36943
  getAvailableChannels() {
36947
36944
  var o, a;