@spot-flow/checkout-inline-js 0.1.42 → 0.1.43-dev.2

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.
@@ -63,9 +63,9 @@ const Oe = (n, e, i) => {
63
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
- }, Ve = "https://api.spotflow.co/api/v1", fr = async (n, e, i, t) => {
66
+ }, Ue = "https://api.spotflow.co/api/v1", fr = async (n, e, i, t) => {
67
67
  try {
68
- const s = Oe(n, i), o = await fetch(`${fe(Ve, t)}/payments`, {
68
+ const s = Oe(n, i), o = await fetch(`${fe(Ue, t)}/payments`, {
69
69
  method: "POST",
70
70
  headers: s,
71
71
  body: JSON.stringify(e)
@@ -84,7 +84,7 @@ const Oe = (n, e, i) => {
84
84
  }, yi = async (n, e, i, t) => {
85
85
  try {
86
86
  const s = Oe(n, i), o = await fetch(
87
- `${fe(Ve, t)}/payments/authorize`,
87
+ `${fe(Ue, t)}/payments/authorize`,
88
88
  {
89
89
  method: "POST",
90
90
  headers: s,
@@ -104,7 +104,7 @@ const Oe = (n, e, i) => {
104
104
  }
105
105
  }, Ts = async (n, e, i, t) => {
106
106
  try {
107
- const s = Oe(n, i), o = await fetch(`${fe(Ve, t)}/payments`, {
107
+ const s = Oe(n, i), o = await fetch(`${fe(Ue, t)}/payments`, {
108
108
  method: "POST",
109
109
  headers: s,
110
110
  body: JSON.stringify(e)
@@ -122,7 +122,7 @@ const Oe = (n, e, i) => {
122
122
  }
123
123
  }, gr = async (n, e, i, t) => {
124
124
  try {
125
- const s = Oe(n, i), o = await fetch(`${fe(Ve, t)}/payments`, {
125
+ const s = Oe(n, i), o = await fetch(`${fe(Ue, t)}/payments`, {
126
126
  method: "POST",
127
127
  headers: s,
128
128
  body: JSON.stringify(e)
@@ -141,7 +141,7 @@ const Oe = (n, e, i) => {
141
141
  }, cn = async (n, e, i, t, s) => {
142
142
  try {
143
143
  const o = Oe(n, t), a = await fetch(
144
- `${fe(Ve, s)}/payments/verify?reference=${e}`,
144
+ `${fe(Ue, s)}/payments/verify?reference=${e}`,
145
145
  {
146
146
  method: "GET",
147
147
  headers: o,
@@ -164,7 +164,7 @@ async function yr(n, e, i, t, s) {
164
164
  const o = Oe(n, i);
165
165
  try {
166
166
  const a = await fetch(
167
- `${fe(Ve, t)}/mobile-money/providers?currency=${s || e}`,
167
+ `${fe(Ue, t)}/mobile-money/providers?currency=${s || e}`,
168
168
  {
169
169
  headers: o,
170
170
  method: "GET"
@@ -182,7 +182,7 @@ async function yr(n, e, i, t, s) {
182
182
  const Cr = async (n, e, i, t) => {
183
183
  try {
184
184
  const s = Oe(n, i), o = await fetch(
185
- `${fe(Ve, t)}/payments/cancel`,
185
+ `${fe(Ue, t)}/payments/cancel`,
186
186
  {
187
187
  method: "POST",
188
188
  headers: s,
@@ -202,7 +202,7 @@ const Cr = async (n, e, i, t) => {
202
202
  }, Sr = async (n, e, i, t) => {
203
203
  try {
204
204
  const s = Oe(n, i, !0), o = await fetch(
205
- `${fe(Ve, t)}/disputes/upload-documents`,
205
+ `${fe(Ue, t)}/disputes/upload-documents`,
206
206
  {
207
207
  method: "POST",
208
208
  headers: s,
@@ -220,7 +220,7 @@ const Cr = async (n, e, i, t) => {
220
220
  }, kr = async (n, e, i, t) => {
221
221
  try {
222
222
  const s = Oe(n, i), o = await fetch(
223
- `${fe(Ve, t)}/disputes/reference`,
223
+ `${fe(Ue, t)}/disputes/reference`,
224
224
  {
225
225
  method: "POST",
226
226
  headers: s,
@@ -235,9 +235,9 @@ const Cr = async (n, e, i, t) => {
235
235
  } catch (s) {
236
236
  throw s instanceof X ? console.error(`FetchError: ${s.message} (status: ${s.status})`) : s instanceof Be ? console.error(`AuthorizationError: ${s.message}`) : console.error(`Unexpected error: ${s}`), s;
237
237
  }
238
- }, Hi = async (n, e, i, t) => {
238
+ }, Ri = async (n, e, i, t) => {
239
239
  try {
240
- const s = Oe(n, i), o = await fetch(`${fe(Ve, t)}/payments/retry`, {
240
+ const s = Oe(n, i), o = await fetch(`${fe(Ue, t)}/payments/retry`, {
241
241
  method: "POST",
242
242
  headers: s,
243
243
  body: JSON.stringify(e)
@@ -257,7 +257,7 @@ const Cr = async (n, e, i, t) => {
257
257
  async function wr(n, e, i, t, s) {
258
258
  try {
259
259
  const o = Oe(n, t), a = await fetch(
260
- `${fe(Ve, s)}/payments/tax-quotes?amount=${e || ""}&currency=${i || ""}`,
260
+ `${fe(Ue, s)}/payments/tax-quotes?amount=${e || ""}&currency=${i || ""}`,
261
261
  {
262
262
  headers: o,
263
263
  method: "GET"
@@ -342,7 +342,7 @@ const Le = (n, e) => {
342
342
  }
343
343
  };
344
344
  be.card.label, be.card.icon, be.card.key, be.bank_transfer.label, be.bank_transfer.icon, be.bank_transfer.key, be.ussd.label, be.ussd.icon, be.ussd.key, be.mobile_money.label, be.mobile_money.icon, be.mobile_money.key, be.eft.label, be.eft.icon, be.eft.key;
345
- const Yt = [
345
+ const Qt = [
346
346
  {
347
347
  name: "MasterCard",
348
348
  icon: `<svg width="24" height="14" viewBox="0 0 24 14" fill="none" xmlns="http://www.w3.org/2000/svg">
@@ -914,8 +914,8 @@ const Yt = [
914
914
  </div>`, Mr = () => {
915
915
  const n = Date.now().toString(36), e = "xxxx-xxxx-xxx-xxxx".replace(/[x]/g, () => Math.floor(Math.random() * 16).toString(16));
916
916
  return `SPF-${n}-${e}`.toUpperCase();
917
- }, ki = (n = "") => n.replace(/\D+/g, ""), Ar = (n) => n.replace(/\D/g, ""), Lr = (n) => n.replace(/\D/g, "").replace(/(\d{4})(?=\d)/g, "$1 ").trim(), xr = (n) => ki(n).slice(0, 3), Tr = (n) => {
918
- const e = ki(n);
917
+ }, wi = (n = "") => n.replace(/\D+/g, ""), Ar = (n) => n.replace(/\D/g, ""), Lr = (n) => n.replace(/\D/g, "").replace(/(\d{4})(?=\d)/g, "$1 ").trim(), xr = (n) => wi(n).slice(0, 3), Tr = (n) => {
918
+ const e = wi(n);
919
919
  return e.length >= 3 ? `${e.slice(0, 2)}/${e.slice(2, 4)}` : e;
920
920
  }, Yn = (n) => {
921
921
  const e = Math.floor(n / 60), i = n % 60;
@@ -975,8 +975,8 @@ h(ln, "removeToast", (e) => {
975
975
  e.parentElement && e.parentElement.removeChild(e);
976
976
  });
977
977
  });
978
- let wi = ln;
979
- class Qt {
978
+ let _i = ln;
979
+ class Xt {
980
980
  constructor(e) {
981
981
  h(this, "container");
982
982
  h(this, "onAction");
@@ -984,7 +984,7 @@ class Qt {
984
984
  h(this, "creditCardTypes");
985
985
  h(this, "merchantName");
986
986
  h(this, "currency");
987
- this.container = e.container, this.onAction = e.onAction, this.creditCardTypes = [...Yt], this.cardDetailsValues = {
987
+ this.container = e.container, this.onAction = e.onAction, this.creditCardTypes = [...Qt], this.cardDetailsValues = {
988
988
  number: "",
989
989
  expiry: "",
990
990
  cvv: "",
@@ -1133,7 +1133,7 @@ class Qt {
1133
1133
  });
1134
1134
  }
1135
1135
  filterCreditCardType(e) {
1136
- e ? (this.creditCardTypes = Yt.filter(
1136
+ e ? (this.creditCardTypes = Qt.filter(
1137
1137
  (i) => i.name === Er(e)
1138
1138
  ), this.displayCardTypes()) : (this.creditCardTypes = [], this.displayCardTypes());
1139
1139
  }
@@ -1547,7 +1547,7 @@ const Or = `<form id="card-avs-form">
1547
1547
  <p class="text-xxs text-grey-100">
1548
1548
  PCI DSS Certified
1549
1549
  </p>
1550
- </div>`, Vr = [
1550
+ </div>`, Ur = [
1551
1551
  {
1552
1552
  code2: "AF",
1553
1553
  code3: "AFG",
@@ -23567,8 +23567,8 @@ const Or = `<form id="card-avs-form">
23567
23567
  }
23568
23568
  ]
23569
23569
  }
23570
- ], Ur = {
23571
- countries: Vr
23570
+ ], Vr = {
23571
+ countries: Ur
23572
23572
  };
23573
23573
  class Kr {
23574
23574
  constructor(e) {
@@ -23577,7 +23577,7 @@ class Kr {
23577
23577
  h(this, "contactDetails");
23578
23578
  h(this, "countries", []);
23579
23579
  h(this, "states", []);
23580
- this.container = e.container, this.onAction = e.onAction, this.countries = Ur.countries.map((i) => ({
23580
+ this.container = e.container, this.onAction = e.onAction, this.countries = Vr.countries.map((i) => ({
23581
23581
  label: i.name,
23582
23582
  value: i.name,
23583
23583
  // @ts-ignore
@@ -23641,7 +23641,7 @@ class Kr {
23641
23641
  t.appendChild(v);
23642
23642
  })));
23643
23643
  }
23644
- if (o === "state" && (this.contactDetails.state = a), o === "city" && (this.contactDetails.city = a), o === "code" && (this.contactDetails.code = ki(a), l = ki(a)), s.value = l, this.validateCard())
23644
+ if (o === "state" && (this.contactDetails.state = a), o === "city" && (this.contactDetails.city = a), o === "code" && (this.contactDetails.code = wi(a), l = wi(a)), s.value = l, this.validateCard())
23645
23645
  i && i.removeAttribute("disabled");
23646
23646
  else if (i) {
23647
23647
  if (i.disabled)
@@ -24047,7 +24047,7 @@ function nn(n, e, i) {
24047
24047
  o.searchParams.append("status", n.status), o.searchParams.append("reference", n.reference), window.location.href = o.toString();
24048
24048
  }, 1800);
24049
24049
  }
24050
- class Ri {
24050
+ class Oi {
24051
24051
  constructor(e) {
24052
24052
  h(this, "container");
24053
24053
  h(this, "transactionIssuesForm");
@@ -24198,7 +24198,7 @@ function Wr(n) {
24198
24198
  const i = ["@import", `url(${JSON.stringify(n.href)})`];
24199
24199
  return n.layerName === "" ? i.push("layer") : n.layerName && i.push(`layer(${n.layerName})`), n.supportsText && i.push(`supports(${n.supportsText})`), n.media.length && i.push(n.media.mediaText), i.join(" ") + ";";
24200
24200
  }
24201
- function _i(n) {
24201
+ function Mi(n) {
24202
24202
  try {
24203
24203
  const e = n.rules || n.cssRules;
24204
24204
  return e ? zr(Array.from(e, Ps).join("")) : null;
@@ -24210,7 +24210,7 @@ function Ps(n) {
24210
24210
  let e;
24211
24211
  if (Jr(n))
24212
24212
  try {
24213
- e = _i(n.styleSheet) || Wr(n);
24213
+ e = Mi(n.styleSheet) || Wr(n);
24214
24214
  } catch {
24215
24215
  }
24216
24216
  else if ($r(n) && n.selectorText.includes(":"))
@@ -24276,7 +24276,7 @@ class Is {
24276
24276
  function Yr() {
24277
24277
  return new Is();
24278
24278
  }
24279
- function mt({ element: n, maskInputOptions: e, tagName: i, type: t, value: s, maskInputFn: o }) {
24279
+ function vt({ element: n, maskInputOptions: e, tagName: i, type: t, value: s, maskInputFn: o }) {
24280
24280
  let a = s || "";
24281
24281
  const l = t && _n(t);
24282
24282
  return (e[i.toLowerCase()] || l && e[l]) && (o ? a = o(a, n) : a = "*".repeat(a.length)), a;
@@ -24284,7 +24284,7 @@ function mt({ element: n, maskInputOptions: e, tagName: i, type: t, value: s, ma
24284
24284
  function _n(n) {
24285
24285
  return n.toLowerCase();
24286
24286
  }
24287
- const Xt = "__rrweb_original__";
24287
+ const es = "__rrweb_original__";
24288
24288
  function Qr(n) {
24289
24289
  const e = n.getContext("2d");
24290
24290
  if (!e)
@@ -24292,13 +24292,13 @@ function Qr(n) {
24292
24292
  const i = 50;
24293
24293
  for (let t = 0; t < n.width; t += i)
24294
24294
  for (let s = 0; s < n.height; s += i) {
24295
- const o = e.getImageData, a = Xt in o ? o[Xt] : o;
24295
+ const o = e.getImageData, a = es in o ? o[es] : o;
24296
24296
  if (new Uint32Array(a.call(e, t, s, Math.min(i, n.width - t), Math.min(i, n.height - s)).data.buffer).some((d) => d !== 0))
24297
24297
  return !1;
24298
24298
  }
24299
24299
  return !0;
24300
24300
  }
24301
- function vt(n) {
24301
+ function pt(n) {
24302
24302
  const e = n.type;
24303
24303
  return n.hasAttribute("data-rr-is-password") ? "password" : e ? _n(e) : null;
24304
24304
  }
@@ -24328,9 +24328,9 @@ function il(n) {
24328
24328
  let e = "";
24329
24329
  return n.indexOf("//") > -1 ? e = n.split("/").slice(0, 3).join("/") : e = n.split("/")[0], e = e.split("?")[0], e;
24330
24330
  }
24331
- let Tn, es;
24331
+ let Tn, ns;
24332
24332
  const tl = /url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm, sl = /^(?:[a-z+]+:)?\/\//i, ol = /^www\..*/i, al = /^(data:)([^,]*),(.*)/i;
24333
- function Mi(n, e) {
24333
+ function Ai(n, e) {
24334
24334
  return (n || "").replace(tl, (i, t, s, o, a, l) => {
24335
24335
  const d = s || a || l, p = t || o || "";
24336
24336
  if (!d)
@@ -24393,12 +24393,12 @@ function In(n, e) {
24393
24393
  function ul(n) {
24394
24394
  return !!(n.tagName === "svg" || n.ownerSVGElement);
24395
24395
  }
24396
- function pt() {
24396
+ function bt() {
24397
24397
  const n = document.createElement("a");
24398
24398
  return n.href = "", n.href;
24399
24399
  }
24400
24400
  function Bs(n, e, i, t) {
24401
- return t && (i === "src" || i === "href" && !(e === "use" && t[0] === "#") || i === "xlink:href" && t[0] !== "#" || i === "background" && (e === "table" || e === "td" || e === "th") ? In(n, t) : i === "srcset" ? dl(n, t) : i === "style" ? Mi(t, pt()) : e === "object" && i === "data" ? In(n, t) : t);
24401
+ return t && (i === "src" || i === "href" && !(e === "use" && t[0] === "#") || i === "xlink:href" && t[0] !== "#" || i === "background" && (e === "table" || e === "td" || e === "th") ? In(n, t) : i === "srcset" ? dl(n, t) : i === "style" ? Ai(t, bt()) : e === "object" && i === "data" ? In(n, t) : t);
24402
24402
  }
24403
24403
  function Hs(n, e, i) {
24404
24404
  return (n === "video" || n === "audio") && e === "autoplay";
@@ -24420,17 +24420,17 @@ function cl(n, e, i) {
24420
24420
  }
24421
24421
  return !1;
24422
24422
  }
24423
- function Ai(n, e, i) {
24423
+ function Li(n, e, i) {
24424
24424
  if (!n)
24425
24425
  return !1;
24426
24426
  if (n.nodeType !== n.ELEMENT_NODE)
24427
- return i ? Ai(n.parentNode, e, i) : !1;
24427
+ return i ? Li(n.parentNode, e, i) : !1;
24428
24428
  for (let t = n.classList.length; t--; ) {
24429
24429
  const s = n.classList[t];
24430
24430
  if (e.test(s))
24431
24431
  return !0;
24432
24432
  }
24433
- return i ? Ai(n.parentNode, e, i) : !1;
24433
+ return i ? Li(n.parentNode, e, i) : !1;
24434
24434
  }
24435
24435
  function Rs(n, e, i, t) {
24436
24436
  try {
@@ -24443,7 +24443,7 @@ function Rs(n, e, i, t) {
24443
24443
  return !0;
24444
24444
  } else if (s.classList.contains(e))
24445
24445
  return !0;
24446
- } else if (Ai(s, e, t))
24446
+ } else if (Li(s, e, t))
24447
24447
  return !0;
24448
24448
  if (i) {
24449
24449
  if (t) {
@@ -24566,11 +24566,11 @@ function bl(n, e) {
24566
24566
  const d = a === "STYLE" ? !0 : void 0, p = a === "SCRIPT" ? !0 : void 0;
24567
24567
  if (d && l) {
24568
24568
  try {
24569
- n.nextSibling || n.previousSibling || !((i = n.parentNode.sheet) === null || i === void 0) && i.cssRules && (l = _i(n.parentNode.sheet));
24569
+ n.nextSibling || n.previousSibling || !((i = n.parentNode.sheet) === null || i === void 0) && i.cssRules && (l = Mi(n.parentNode.sheet));
24570
24570
  } catch (v) {
24571
24571
  console.warn(`Cannot get CSS styles from text's parentNode. Error: ${v}`, n);
24572
24572
  }
24573
- l = Mi(l, pt());
24573
+ l = Ai(l, bt());
24574
24574
  }
24575
24575
  return p && (l = "SCRIPT_PLACEHOLDER"), !d && !p && l && t && (l = s ? s(l, n.parentElement) : l.replace(/[\S]/g, "*")), {
24576
24576
  type: ve.Text,
@@ -24590,17 +24590,17 @@ function fl(n, e) {
24590
24590
  if (C === "link" && o) {
24591
24591
  const _ = Array.from(i.styleSheets).find((I) => I.href === n.href);
24592
24592
  let T = null;
24593
- _ && (T = _i(_)), T && (delete w.rel, delete w.href, w._cssText = Mi(T, _.href));
24593
+ _ && (T = Mi(_)), T && (delete w.rel, delete w.href, w._cssText = Ai(T, _.href));
24594
24594
  }
24595
24595
  if (C === "style" && n.sheet && !(n.innerText || n.textContent || "").trim().length) {
24596
- const _ = _i(n.sheet);
24597
- _ && (w._cssText = Mi(_, pt()));
24596
+ const _ = Mi(n.sheet);
24597
+ _ && (w._cssText = Ai(_, bt()));
24598
24598
  }
24599
24599
  if (C === "input" || C === "textarea" || C === "select") {
24600
24600
  const _ = n.value, T = n.checked;
24601
- w.type !== "radio" && w.type !== "checkbox" && w.type !== "submit" && w.type !== "button" && _ ? w.value = mt({
24601
+ w.type !== "radio" && w.type !== "checkbox" && w.type !== "submit" && w.type !== "button" && _ ? w.value = vt({
24602
24602
  element: n,
24603
- type: vt(n),
24603
+ type: pt(n),
24604
24604
  tagName: C,
24605
24605
  value: _,
24606
24606
  maskInputOptions: a,
@@ -24618,13 +24618,13 @@ function fl(n, e) {
24618
24618
  }
24619
24619
  }
24620
24620
  if (C === "img" && p) {
24621
- Tn || (Tn = i.createElement("canvas"), es = Tn.getContext("2d"));
24621
+ Tn || (Tn = i.createElement("canvas"), ns = Tn.getContext("2d"));
24622
24622
  const _ = n, T = _.crossOrigin;
24623
24623
  _.crossOrigin = "anonymous";
24624
24624
  const I = () => {
24625
24625
  _.removeEventListener("load", I);
24626
24626
  try {
24627
- Tn.width = _.naturalWidth, Tn.height = _.naturalHeight, es.drawImage(_, 0, 0), w.rr_dataURL = Tn.toDataURL(d.type, d.quality);
24627
+ Tn.width = _.naturalWidth, Tn.height = _.naturalHeight, ns.drawImage(_, 0, 0), w.rr_dataURL = Tn.toDataURL(d.type, d.quality);
24628
24628
  } catch (K) {
24629
24629
  console.warn(`Cannot inline img src=${_.currentSrc}! Error: ${K}`);
24630
24630
  }
@@ -24691,14 +24691,14 @@ function gl(n, e) {
24691
24691
  }
24692
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
- let { needsMask: V } = e, { preserveWhiteSpace: j = !0 } = e;
24695
- !V && n.childNodes && (V = Rs(n, a, l, V === void 0));
24694
+ let { needsMask: U } = e, { preserveWhiteSpace: j = !0 } = e;
24695
+ !U && n.childNodes && (U = Rs(n, a, l, U === void 0));
24696
24696
  const te = vl(n, {
24697
24697
  doc: i,
24698
24698
  mirror: t,
24699
24699
  blockClass: s,
24700
24700
  blockSelector: o,
24701
- needsMask: V,
24701
+ needsMask: U,
24702
24702
  inlineStylesheet: p,
24703
24703
  maskInputOptions: v,
24704
24704
  maskTextFn: g,
@@ -24713,24 +24713,24 @@ function Dn(n, e) {
24713
24713
  return console.warn(n, "not serialized"), null;
24714
24714
  let ge;
24715
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
- const U = Object.assign(te, { id: ge });
24717
- if (t.add(n, U), ge === Qn)
24716
+ const V = Object.assign(te, { id: ge });
24717
+ if (t.add(n, V), ge === Qn)
24718
24718
  return null;
24719
24719
  M && M(n);
24720
24720
  let ke = !d;
24721
- if (U.type === ve.Element) {
24722
- ke = ke && !U.needBlock, delete U.needBlock;
24721
+ if (V.type === ve.Element) {
24722
+ ke = ke && !V.needBlock, delete V.needBlock;
24723
24723
  const le = n.shadowRoot;
24724
- le && Wn(le) && (U.isShadowHost = !0);
24724
+ le && Wn(le) && (V.isShadowHost = !0);
24725
24725
  }
24726
- if ((U.type === ve.Document || U.type === ve.Element) && ke) {
24727
- y.headWhitespace && U.type === ve.Element && U.tagName === "head" && (j = !1);
24726
+ if ((V.type === ve.Document || V.type === ve.Element) && ke) {
24727
+ y.headWhitespace && V.type === ve.Element && V.tagName === "head" && (j = !1);
24728
24728
  const le = {
24729
24729
  doc: i,
24730
24730
  mirror: t,
24731
24731
  blockClass: s,
24732
24732
  blockSelector: o,
24733
- needsMask: V,
24733
+ needsMask: U,
24734
24734
  maskTextClass: a,
24735
24735
  maskTextSelector: l,
24736
24736
  skipChild: d,
@@ -24750,17 +24750,17 @@ function Dn(n, e) {
24750
24750
  stylesheetLoadTimeout: I,
24751
24751
  keepIframeSrcFn: K
24752
24752
  };
24753
- if (!(U.type === ve.Element && U.tagName === "textarea" && U.attributes.value !== void 0)) for (const xe of Array.from(n.childNodes)) {
24753
+ if (!(V.type === ve.Element && V.tagName === "textarea" && V.attributes.value !== void 0)) for (const xe of Array.from(n.childNodes)) {
24754
24754
  const we = Dn(xe, le);
24755
- we && U.childNodes.push(we);
24755
+ we && V.childNodes.push(we);
24756
24756
  }
24757
24757
  if (qr(n) && n.shadowRoot)
24758
24758
  for (const xe of Array.from(n.shadowRoot.childNodes)) {
24759
24759
  const we = Dn(xe, le);
24760
- we && (Wn(n.shadowRoot) && (we.isShadow = !0), U.childNodes.push(we));
24760
+ we && (Wn(n.shadowRoot) && (we.isShadow = !0), V.childNodes.push(we));
24761
24761
  }
24762
24762
  }
24763
- return n.parentNode && zn(n.parentNode) && Wn(n.parentNode) && (U.isShadow = !0), U.type === ve.Element && U.tagName === "iframe" && hl(n, () => {
24763
+ return n.parentNode && zn(n.parentNode) && Wn(n.parentNode) && (V.isShadow = !0), V.type === ve.Element && V.tagName === "iframe" && hl(n, () => {
24764
24764
  const le = n.contentDocument;
24765
24765
  if (le && A) {
24766
24766
  const xe = Dn(le, {
@@ -24768,7 +24768,7 @@ function Dn(n, e) {
24768
24768
  mirror: t,
24769
24769
  blockClass: s,
24770
24770
  blockSelector: o,
24771
- needsMask: V,
24771
+ needsMask: U,
24772
24772
  maskTextClass: a,
24773
24773
  maskTextSelector: l,
24774
24774
  skipChild: !1,
@@ -24790,14 +24790,14 @@ function Dn(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" && Ds(U.attributes.href) === "css") && ml(n, () => {
24793
+ }, _), V.type === ve.Element && V.tagName === "link" && typeof V.attributes.rel == "string" && (V.attributes.rel === "stylesheet" || V.attributes.rel === "preload" && typeof V.attributes.href == "string" && Ds(V.attributes.href) === "css") && ml(n, () => {
24794
24794
  if (T) {
24795
24795
  const le = Dn(n, {
24796
24796
  doc: i,
24797
24797
  mirror: t,
24798
24798
  blockClass: s,
24799
24799
  blockSelector: o,
24800
- needsMask: V,
24800
+ needsMask: U,
24801
24801
  maskTextClass: a,
24802
24802
  maskTextSelector: l,
24803
24803
  skipChild: !1,
@@ -24819,7 +24819,7 @@ function Dn(n, e) {
24819
24819
  });
24820
24820
  le && T(n, le);
24821
24821
  }
24822
- }, I), U;
24822
+ }, I), V;
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 || {};
@@ -24886,7 +24886,7 @@ function _e(n, e, i = document) {
24886
24886
  const Pn = `Please stop import mirror directly. Instead of that,\r
24887
24887
  now you can use replayer.getMirror() to access the mirror instance of a replayer,\r
24888
24888
  or you can use record.mirror to access the mirror instance during recording.`;
24889
- let ns = {
24889
+ let is = {
24890
24890
  map: {},
24891
24891
  getId() {
24892
24892
  return console.error(Pn), -1;
@@ -24904,7 +24904,7 @@ let ns = {
24904
24904
  console.error(Pn);
24905
24905
  }
24906
24906
  };
24907
- typeof window < "u" && window.Proxy && window.Reflect && (ns = new Proxy(ns, {
24907
+ typeof window < "u" && window.Proxy && window.Reflect && (is = new Proxy(is, {
24908
24908
  get(n, e, i) {
24909
24909
  return e === "map" && console.error(Pn), Reflect.get(n, e, i);
24910
24910
  }
@@ -24920,7 +24920,7 @@ function Xn(n, e, i = {}) {
24920
24920
  }, l));
24921
24921
  };
24922
24922
  }
24923
- function Oi(n, e, i, t, s = window) {
24923
+ function Ui(n, e, i, t, s = window) {
24924
24924
  const o = s.Object.getOwnPropertyDescriptor(n, e);
24925
24925
  return s.Object.defineProperty(n, e, t ? i : {
24926
24926
  set(a) {
@@ -24928,9 +24928,9 @@ function Oi(n, e, i, t, s = window) {
24928
24928
  i.set.call(this, a);
24929
24929
  }, 0), o && o.set && o.set.call(this, a);
24930
24930
  }
24931
- }), () => Oi(n, e, o || {}, !0);
24931
+ }), () => Ui(n, e, o || {}, !0);
24932
24932
  }
24933
- function Un(n, e, i) {
24933
+ function Vn(n, e, i) {
24934
24934
  try {
24935
24935
  if (!(e in n))
24936
24936
  return () => {
@@ -24949,8 +24949,8 @@ function Un(n, e, i) {
24949
24949
  };
24950
24950
  }
24951
24951
  }
24952
- let Li = Date.now;
24953
- /[1-9][0-9]{12}/.test(Date.now().toString()) || (Li = () => (/* @__PURE__ */ new Date()).getTime());
24952
+ let xi = Date.now;
24953
+ /[1-9][0-9]{12}/.test(Date.now().toString()) || (xi = () => (/* @__PURE__ */ new Date()).getTime());
24954
24954
  function Os(n) {
24955
24955
  var e, i, t, s, o, a;
24956
24956
  const l = n.document;
@@ -24959,10 +24959,10 @@ function Os(n) {
24959
24959
  top: l.scrollingElement ? l.scrollingElement.scrollTop : n.pageYOffset !== void 0 ? n.pageYOffset : (l == null ? void 0 : l.documentElement.scrollTop) || ((o = (s = l == null ? void 0 : l.body) === null || s === void 0 ? void 0 : s.parentElement) === null || o === void 0 ? void 0 : o.scrollTop) || ((a = l == null ? void 0 : l.body) === null || a === void 0 ? void 0 : a.scrollTop) || 0
24960
24960
  };
24961
24961
  }
24962
- function Vs() {
24962
+ function Us() {
24963
24963
  return window.innerHeight || document.documentElement && document.documentElement.clientHeight || document.body && document.body.clientHeight;
24964
24964
  }
24965
- function Us() {
24965
+ function Vs() {
24966
24966
  return window.innerWidth || document.documentElement && document.documentElement.clientWidth || document.body && document.body.clientWidth;
24967
24967
  }
24968
24968
  function Ks(n) {
@@ -24978,7 +24978,7 @@ function Me(n, e, i, t) {
24978
24978
  if (typeof e == "string") {
24979
24979
  if (s.classList.contains(e) || t && s.closest("." + e) !== null)
24980
24980
  return !0;
24981
- } else if (Ai(s, e, t))
24981
+ } else if (Li(s, e, t))
24982
24982
  return !0;
24983
24983
  } catch {
24984
24984
  }
@@ -24987,7 +24987,7 @@ function Me(n, e, i, t) {
24987
24987
  function Cl(n, e) {
24988
24988
  return e.getId(n) !== -1;
24989
24989
  }
24990
- function it(n, e) {
24990
+ function tt(n, e) {
24991
24991
  return e.getId(n) === Qn;
24992
24992
  }
24993
24993
  function js(n, e) {
@@ -24996,7 +24996,7 @@ function js(n, e) {
24996
24996
  const i = e.getId(n);
24997
24997
  return e.has(i) ? n.parentNode && n.parentNode.nodeType === n.DOCUMENT_NODE ? !1 : n.parentNode ? js(n.parentNode, e) : !0 : !0;
24998
24998
  }
24999
- function lt(n) {
24999
+ function dt(n) {
25000
25000
  return !!n.changedTouches;
25001
25001
  }
25002
25002
  function Sl(n = window) {
@@ -25017,7 +25017,7 @@ function Fs(n, e) {
25017
25017
  function Gs(n, e) {
25018
25018
  return !!(n.nodeName === "LINK" && n.nodeType === n.ELEMENT_NODE && n.getAttribute && n.getAttribute("rel") === "stylesheet" && e.getMeta(n));
25019
25019
  }
25020
- function dt(n) {
25020
+ function ut(n) {
25021
25021
  return !!(n != null && n.shadowRoot);
25022
25022
  }
25023
25023
  class kl {
@@ -25070,7 +25070,7 @@ function zs(n) {
25070
25070
  return e ? e.contains(n) || _l(n) : !1;
25071
25071
  }
25072
25072
  var W = /* @__PURE__ */ ((n) => (n[n.DomContentLoaded = 0] = "DomContentLoaded", n[n.Load = 1] = "Load", n[n.FullSnapshot = 2] = "FullSnapshot", n[n.IncrementalSnapshot = 3] = "IncrementalSnapshot", n[n.Meta = 4] = "Meta", n[n.Custom = 5] = "Custom", n[n.Plugin = 6] = "Plugin", n))(W || {}), q = /* @__PURE__ */ ((n) => (n[n.Mutation = 0] = "Mutation", n[n.MouseMove = 1] = "MouseMove", n[n.MouseInteraction = 2] = "MouseInteraction", n[n.Scroll = 3] = "Scroll", n[n.ViewportResize = 4] = "ViewportResize", n[n.Input = 5] = "Input", n[n.TouchMove = 6] = "TouchMove", n[n.MediaInteraction = 7] = "MediaInteraction", n[n.StyleSheetRule = 8] = "StyleSheetRule", n[n.CanvasMutation = 9] = "CanvasMutation", n[n.Font = 10] = "Font", n[n.Log = 11] = "Log", n[n.Drag = 12] = "Drag", n[n.StyleDeclaration = 13] = "StyleDeclaration", n[n.Selection = 14] = "Selection", n[n.AdoptedStyleSheet = 15] = "AdoptedStyleSheet", n[n.CustomElement = 16] = "CustomElement", n))(q || {}), Ae = /* @__PURE__ */ ((n) => (n[n.MouseUp = 0] = "MouseUp", n[n.MouseDown = 1] = "MouseDown", n[n.Click = 2] = "Click", n[n.ContextMenu = 3] = "ContextMenu", n[n.DblClick = 4] = "DblClick", n[n.Focus = 5] = "Focus", n[n.Blur = 6] = "Blur", n[n.TouchStart = 7] = "TouchStart", n[n.TouchMove_Departed = 8] = "TouchMove_Departed", n[n.TouchEnd = 9] = "TouchEnd", n[n.TouchCancel = 10] = "TouchCancel", n))(Ae || {}), Ye = /* @__PURE__ */ ((n) => (n[n.Mouse = 0] = "Mouse", n[n.Pen = 1] = "Pen", n[n.Touch = 2] = "Touch", n))(Ye || {}), Rn = /* @__PURE__ */ ((n) => (n[n["2D"] = 0] = "2D", n[n.WebGL = 1] = "WebGL", n[n.WebGL2 = 2] = "WebGL2", n))(Rn || {});
25073
- function is(n) {
25073
+ function ts(n) {
25074
25074
  return "__ln" in n;
25075
25075
  }
25076
25076
  class Ml {
@@ -25091,10 +25091,10 @@ class Ml {
25091
25091
  previous: null,
25092
25092
  next: null
25093
25093
  };
25094
- if (e.__ln = i, e.previousSibling && is(e.previousSibling)) {
25094
+ if (e.__ln = i, e.previousSibling && ts(e.previousSibling)) {
25095
25095
  const t = e.previousSibling.__ln.next;
25096
25096
  i.next = t, i.previous = e.previousSibling.__ln, e.previousSibling.__ln.next = i, t && (t.previous = i);
25097
- } else if (e.nextSibling && is(e.nextSibling) && e.nextSibling.__ln.previous) {
25097
+ } else if (e.nextSibling && ts(e.nextSibling) && e.nextSibling.__ln.previous) {
25098
25098
  const t = e.nextSibling.__ln.previous;
25099
25099
  i.previous = t, i.next = e.nextSibling.__ln, e.nextSibling.__ln.previous = i, t && (t.next = i);
25100
25100
  } else
@@ -25106,7 +25106,7 @@ class Ml {
25106
25106
  this.head && (i.previous ? (i.previous.next = i.next, i.next ? i.next.previous = i.previous : this.tail = i.previous) : (this.head = i.next, this.head ? this.head.previous = null : this.tail = null), e.__ln && delete e.__ln, this.length--);
25107
25107
  }
25108
25108
  }
25109
- const ts = (n, e) => `${n}@${e}`;
25109
+ const ss = (n, e) => `${n}@${e}`;
25110
25110
  class Al {
25111
25111
  constructor() {
25112
25112
  this.frozen = !1, this.locked = !1, this.texts = [], this.attributes = [], this.attributeMap = /* @__PURE__ */ new WeakMap(), this.removes = [], this.mapRemoves = [], this.movedMap = {}, this.addedSet = /* @__PURE__ */ new Set(), this.movedSet = /* @__PURE__ */ new Set(), this.droppedSet = /* @__PURE__ */ new Set(), this.processMutations = (e) => {
@@ -25143,7 +25143,7 @@ class Al {
25143
25143
  recordCanvas: this.recordCanvas,
25144
25144
  inlineImages: this.inlineImages,
25145
25145
  onSerialize: (f) => {
25146
- Fs(f, this.mirror) && this.iframeManager.addIframe(f), Gs(f, this.mirror) && this.stylesheetManager.trackLinkElement(f), dt(d) && this.shadowDomManager.addShadowRoot(d.shadowRoot, this.doc);
25146
+ Fs(f, this.mirror) && this.iframeManager.addIframe(f), Gs(f, this.mirror) && this.stylesheetManager.trackLinkElement(f), ut(d) && this.shadowDomManager.addShadowRoot(d.shadowRoot, this.doc);
25147
25147
  },
25148
25148
  onIframeLoad: (f, y) => {
25149
25149
  this.iframeManager.attachIframe(f, y), this.shadowDomManager.observeAttachShadow(f);
@@ -25161,9 +25161,9 @@ class Al {
25161
25161
  for (; this.mapRemoves.length; )
25162
25162
  this.mirror.removeNodeFromMap(this.mapRemoves.shift());
25163
25163
  for (const d of this.movedSet)
25164
- ss(this.removes, d, this.mirror) && !this.movedSet.has(d.parentNode) || o(d);
25164
+ os(this.removes, d, this.mirror) && !this.movedSet.has(d.parentNode) || o(d);
25165
25165
  for (const d of this.addedSet)
25166
- !os(this.droppedSet, d) && !ss(this.removes, d, this.mirror) || os(this.movedSet, d) ? o(d) : this.droppedSet.add(d);
25166
+ !as(this.droppedSet, d) && !os(this.removes, d, this.mirror) || as(this.movedSet, d) ? o(d) : this.droppedSet.add(d);
25167
25167
  let a = null;
25168
25168
  for (; t.length; ) {
25169
25169
  let d = null;
@@ -25234,7 +25234,7 @@ class Al {
25234
25234
  _unchangedStyles: {}
25235
25235
  }, this.attributes.push(i), this.attributeMap.set(e, i)), i.attributes.value = Array.from(e.childNodes, (t) => t.textContent || "").join("");
25236
25236
  }, this.processMutation = (e) => {
25237
- if (!it(e.target, this.mirror))
25237
+ if (!tt(e.target, this.mirror))
25238
25238
  switch (e.type) {
25239
25239
  case "characterData": {
25240
25240
  const i = e.target.textContent;
@@ -25248,8 +25248,8 @@ class Al {
25248
25248
  const i = e.target;
25249
25249
  let t = e.attributeName, s = e.target.getAttribute(t);
25250
25250
  if (t === "value") {
25251
- const a = vt(i);
25252
- s = mt({
25251
+ const a = pt(i);
25252
+ s = vt({
25253
25253
  element: i,
25254
25254
  maskInputOptions: this.maskInputOptions,
25255
25255
  tagName: i.tagName,
@@ -25298,7 +25298,7 @@ class Al {
25298
25298
  }
25299
25299
  e.addedNodes.forEach((i) => this.genAdds(i, e.target)), e.removedNodes.forEach((i) => {
25300
25300
  const t = this.mirror.getId(i), s = zn(e.target) ? this.mirror.getId(e.target.host) : this.mirror.getId(e.target);
25301
- Me(e.target, this.blockClass, this.blockSelector, !1) || it(i, this.mirror) || !Cl(i, this.mirror) || (this.addedSet.has(i) ? (ut(this.addedSet, i), this.droppedSet.add(i)) : this.addedSet.has(e.target) && t === -1 || js(e.target, this.mirror) || (this.movedSet.has(i) && this.movedMap[ts(t, s)] ? ut(this.movedSet, i) : this.removes.push({
25301
+ Me(e.target, this.blockClass, this.blockSelector, !1) || tt(i, this.mirror) || !Cl(i, this.mirror) || (this.addedSet.has(i) ? (ct(this.addedSet, i), this.droppedSet.add(i)) : this.addedSet.has(e.target) && t === -1 || js(e.target, this.mirror) || (this.movedSet.has(i) && this.movedMap[ss(t, s)] ? ct(this.movedSet, i) : this.removes.push({
25302
25302
  parentId: s,
25303
25303
  id: t,
25304
25304
  isShadow: zn(e.target) && Wn(e.target) ? !0 : void 0
@@ -25310,14 +25310,14 @@ class Al {
25310
25310
  }, this.genAdds = (e, i) => {
25311
25311
  if (!this.processedNodeManager.inOtherBuffer(e, this) && !(this.addedSet.has(e) || this.movedSet.has(e))) {
25312
25312
  if (this.mirror.hasNode(e)) {
25313
- if (it(e, this.mirror))
25313
+ if (tt(e, this.mirror))
25314
25314
  return;
25315
25315
  this.movedSet.add(e);
25316
25316
  let t = null;
25317
- i && this.mirror.hasNode(i) && (t = this.mirror.getId(i)), t && t !== -1 && (this.movedMap[ts(this.mirror.getId(e), t)] = !0);
25317
+ i && this.mirror.hasNode(i) && (t = this.mirror.getId(i)), t && t !== -1 && (this.movedMap[ss(this.mirror.getId(e), t)] = !0);
25318
25318
  } else
25319
25319
  this.addedSet.add(e), this.droppedSet.delete(e);
25320
- Me(e, this.blockClass, this.blockSelector, !1) || (e.childNodes.forEach((t) => this.genAdds(t)), dt(e) && e.shadowRoot.childNodes.forEach((t) => {
25320
+ Me(e, this.blockClass, this.blockSelector, !1) || (e.childNodes.forEach((t) => this.genAdds(t)), ut(e) && e.shadowRoot.childNodes.forEach((t) => {
25321
25321
  this.processedNodeManager.add(t, this), this.genAdds(t, e);
25322
25322
  }));
25323
25323
  }
@@ -25369,10 +25369,10 @@ class Al {
25369
25369
  this.shadowDomManager.reset(), this.canvasManager.reset();
25370
25370
  }
25371
25371
  }
25372
- function ut(n, e) {
25373
- n.delete(e), e.childNodes.forEach((i) => ut(n, i));
25372
+ function ct(n, e) {
25373
+ n.delete(e), e.childNodes.forEach((i) => ct(n, i));
25374
25374
  }
25375
- function ss(n, e, i) {
25375
+ function os(n, e, i) {
25376
25376
  return n.length === 0 ? !1 : Ws(n, e, i);
25377
25377
  }
25378
25378
  function Ws(n, e, i) {
@@ -25382,7 +25382,7 @@ function Ws(n, e, i) {
25382
25382
  const s = i.getId(t);
25383
25383
  return n.some((o) => o.id === s) ? !0 : Ws(n, t, i);
25384
25384
  }
25385
- function os(n, e) {
25385
+ function as(n, e) {
25386
25386
  return n.size === 0 ? !1 : Zs(n, e);
25387
25387
  }
25388
25388
  function Zs(n, e) {
@@ -25444,12 +25444,12 @@ function Tl({ mousemoveCb: n, sampling: e, doc: i, mirror: t }) {
25444
25444
  const f = Date.now() - l;
25445
25445
  n(a.map((y) => (y.timeOffset -= f, y)), g), a = [], l = null;
25446
25446
  }), o), p = z(Xn(z((g) => {
25447
- const f = ti(g), { clientX: y, clientY: k } = lt(g) ? g.changedTouches[0] : g;
25448
- l || (l = Li()), a.push({
25447
+ const f = ti(g), { clientX: y, clientY: k } = dt(g) ? g.changedTouches[0] : g;
25448
+ l || (l = xi()), a.push({
25449
25449
  x: y,
25450
25450
  y: k,
25451
25451
  id: t.getId(f),
25452
- timeOffset: Li() - l
25452
+ timeOffset: xi() - l
25453
25453
  }), d(typeof DragEvent < "u" && g instanceof DragEvent ? q.Drag : g instanceof MouseEvent ? q.MouseMove : q.TouchMove);
25454
25454
  }), s, {
25455
25455
  trailing: !1
@@ -25486,9 +25486,9 @@ function El({ mouseInteractionCb: n, doc: e, mirror: i, blockClass: t, blockSele
25486
25486
  break;
25487
25487
  }
25488
25488
  y === Ye.Touch ? Ae[v] === Ae.MouseDown ? k = "TouchStart" : Ae[v] === Ae.MouseUp && (k = "TouchEnd") : Ye.Pen;
25489
- } else lt(g) && (y = Ye.Touch);
25489
+ } else dt(g) && (y = Ye.Touch);
25490
25490
  y !== null ? (d = y, (k.startsWith("Touch") && y === Ye.Touch || k.startsWith("Mouse") && y === Ye.Mouse) && (y = null)) : Ae[v] === Ae.Click && (y = d, d = null);
25491
- const C = lt(g) ? g.changedTouches[0] : g;
25491
+ const C = dt(g) ? g.changedTouches[0] : g;
25492
25492
  if (!C)
25493
25493
  return;
25494
25494
  const w = i.getId(f), { clientX: M, clientY: A } = C;
@@ -25537,7 +25537,7 @@ function $s({ scrollCb: n, doc: e, mirror: i, blockClass: t, blockSelector: s, s
25537
25537
  function Pl({ viewportResizeCb: n }, { win: e }) {
25538
25538
  let i = -1, t = -1;
25539
25539
  const s = z(Xn(z(() => {
25540
- const o = Vs(), a = Us();
25540
+ const o = Us(), a = Vs();
25541
25541
  (i !== o || t !== a) && (n({
25542
25542
  width: Number(a),
25543
25543
  height: Number(o)
@@ -25545,7 +25545,7 @@ function Pl({ viewportResizeCb: n }, { win: e }) {
25545
25545
  }), 200));
25546
25546
  return _e("resize", s, e);
25547
25547
  }
25548
- const Il = ["INPUT", "TEXTAREA", "SELECT"], as = /* @__PURE__ */ new WeakMap();
25548
+ const Il = ["INPUT", "TEXTAREA", "SELECT"], rs = /* @__PURE__ */ new WeakMap();
25549
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);
@@ -25553,17 +25553,17 @@ function Dl({ inputCb: n, doc: e, mirror: i, blockClass: t, blockSelector: s, ig
25553
25553
  if (_ && I === "OPTION" && (_ = _.parentElement), !_ || !I || Il.indexOf(I) < 0 || Me(_, t, s, !0) || _.classList.contains(o) || a && _.matches(a))
25554
25554
  return;
25555
25555
  let K = _.value, G = !1;
25556
- const V = vt(_) || "";
25557
- V === "radio" || V === "checkbox" ? G = _.checked : (l[I.toLowerCase()] || l[V]) && (K = mt({
25556
+ const U = pt(_) || "";
25557
+ U === "radio" || U === "checkbox" ? G = _.checked : (l[I.toLowerCase()] || l[U]) && (K = vt({
25558
25558
  element: _,
25559
25559
  maskInputOptions: l,
25560
25560
  tagName: I,
25561
- type: V,
25561
+ type: U,
25562
25562
  value: K,
25563
25563
  maskInputFn: d
25564
25564
  })), f(_, v ? { text: K, isChecked: G, userTriggered: T } : { text: K, isChecked: G });
25565
25565
  const j = _.name;
25566
- V === "radio" && j && G && e.querySelectorAll(`input[type="radio"][name="${j}"]`).forEach((te) => {
25566
+ U === "radio" && j && G && e.querySelectorAll(`input[type="radio"][name="${j}"]`).forEach((te) => {
25567
25567
  if (te !== _) {
25568
25568
  const ge = te.value;
25569
25569
  f(te, v ? { text: ge, isChecked: !G, userTriggered: !1 } : { text: ge, isChecked: !G });
@@ -25571,9 +25571,9 @@ function Dl({ inputCb: n, doc: e, mirror: i, blockClass: t, blockSelector: s, ig
25571
25571
  });
25572
25572
  }
25573
25573
  function f(A, _) {
25574
- const T = as.get(A);
25574
+ const T = rs.get(A);
25575
25575
  if (!T || T.text !== _.text || T.isChecked !== _.isChecked) {
25576
- as.set(A, _);
25576
+ rs.set(A, _);
25577
25577
  const I = i.getId(A);
25578
25578
  z(n)(Object.assign(Object.assign({}, _), { id: I }));
25579
25579
  }
@@ -25591,7 +25591,7 @@ function Dl({ inputCb: n, doc: e, mirror: i, blockClass: t, blockSelector: s, ig
25591
25591
  [C.HTMLSelectElement.prototype, "selectedIndex"],
25592
25592
  [C.HTMLOptionElement.prototype, "selected"]
25593
25593
  ];
25594
- return w && w.set && k.push(...M.map((A) => Oi(A[0], A[1], {
25594
+ return w && w.set && k.push(...M.map((A) => Ui(A[0], A[1], {
25595
25595
  set() {
25596
25596
  z(g)({
25597
25597
  target: this,
@@ -25602,7 +25602,7 @@ function Dl({ inputCb: n, doc: e, mirror: i, blockClass: t, blockSelector: s, ig
25602
25602
  k.forEach((A) => A());
25603
25603
  });
25604
25604
  }
25605
- function xi(n) {
25605
+ function Ti(n) {
25606
25606
  const e = [];
25607
25607
  function i(t, s) {
25608
25608
  if (vi("CSSGroupingRule") && t.parentRule instanceof CSSGroupingRule || vi("CSSMediaRule") && t.parentRule instanceof CSSMediaRule || vi("CSSSupportsRule") && t.parentRule instanceof CSSSupportsRule || vi("CSSConditionRule") && t.parentRule instanceof CSSConditionRule) {
@@ -25688,7 +25688,7 @@ function Nl({ styleSheetRuleCb: n, mirror: e, stylesheetManager: i }, { win: t }
25688
25688
  {
25689
25689
  rule: C,
25690
25690
  index: [
25691
- ...xi(y),
25691
+ ...Ti(y),
25692
25692
  w || 0
25693
25693
  ]
25694
25694
  }
@@ -25702,7 +25702,7 @@ function Nl({ styleSheetRuleCb: n, mirror: e, stylesheetManager: i }, { win: t }
25702
25702
  id: w,
25703
25703
  styleId: M,
25704
25704
  removes: [
25705
- { index: [...xi(y), C] }
25705
+ { index: [...Ti(y), C] }
25706
25706
  ]
25707
25707
  }), f.apply(y, k);
25708
25708
  })
@@ -25762,7 +25762,7 @@ function Bl({ styleDeclarationCb: n, mirror: e, ignoreCSSAttributes: i, styleshe
25762
25762
  value: f,
25763
25763
  priority: y
25764
25764
  },
25765
- index: xi(d.parentRule)
25765
+ index: Ti(d.parentRule)
25766
25766
  }), l.apply(d, p);
25767
25767
  })
25768
25768
  });
@@ -25780,7 +25780,7 @@ function Bl({ styleDeclarationCb: n, mirror: e, ignoreCSSAttributes: i, styleshe
25780
25780
  remove: {
25781
25781
  property: g
25782
25782
  },
25783
- index: xi(d.parentRule)
25783
+ index: Ti(d.parentRule)
25784
25784
  }), l.apply(d, p);
25785
25785
  })
25786
25786
  }), z(() => {
@@ -25828,7 +25828,7 @@ function Rl({ fontCb: n, doc: e }) {
25828
25828
  fontSource: typeof p == "string" ? p : JSON.stringify(Array.from(new Uint8Array(p)))
25829
25829
  }), g;
25830
25830
  };
25831
- const a = Un(e.fonts, "add", function(l) {
25831
+ const a = Vn(e.fonts, "add", function(l) {
25832
25832
  return function(d) {
25833
25833
  return setTimeout(z(() => {
25834
25834
  const p = s.get(d);
@@ -25864,10 +25864,10 @@ function Ol(n) {
25864
25864
  });
25865
25865
  return l(), _e("selectionchange", l);
25866
25866
  }
25867
- function Vl({ doc: n, customElementCb: e }) {
25867
+ function Ul({ doc: n, customElementCb: e }) {
25868
25868
  const i = n.defaultView;
25869
25869
  return !i || !i.customElements ? () => {
25870
- } : Un(i.customElements, "define", function(s) {
25870
+ } : Vn(i.customElements, "define", function(s) {
25871
25871
  return function(o, a, l) {
25872
25872
  try {
25873
25873
  e({
@@ -25882,7 +25882,7 @@ function Vl({ doc: n, customElementCb: e }) {
25882
25882
  };
25883
25883
  });
25884
25884
  }
25885
- function Ul(n, e) {
25885
+ function Vl(n, e) {
25886
25886
  const { mutationCb: i, mousemoveCb: t, mouseInteractionCb: s, scrollCb: o, viewportResizeCb: a, inputCb: l, mediaInteractionCb: d, styleSheetRuleCb: p, styleDeclarationCb: v, canvasMutationCb: g, fontCb: f, selectionCb: y, customElementCb: k } = n;
25887
25887
  n.mutationCb = (...C) => {
25888
25888
  e.mutation && e.mutation(...C), i(...C);
@@ -25917,7 +25917,7 @@ function Kl(n, e = {}) {
25917
25917
  if (!i)
25918
25918
  return () => {
25919
25919
  };
25920
- Ul(n, e);
25920
+ Vl(n, e);
25921
25921
  let t;
25922
25922
  n.recordDOM && (t = Js(n, n.doc));
25923
25923
  const s = Tl(n), o = El(n), a = $s(n), l = Pl(n, {
@@ -25931,7 +25931,7 @@ function Kl(n, e = {}) {
25931
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
- const k = Ol(n), C = Vl(n), w = [];
25934
+ const k = Ol(n), C = Ul(n), w = [];
25935
25935
  for (const M of n.plugins)
25936
25936
  w.push(M.observer(M.callback, i, M.options));
25937
25937
  return z(() => {
@@ -25944,7 +25944,7 @@ function vi(n) {
25944
25944
  function pi(n) {
25945
25945
  return !!(typeof window[n] < "u" && window[n].prototype && "insertRule" in window[n].prototype && "deleteRule" in window[n].prototype);
25946
25946
  }
25947
- class rs {
25947
+ class ls {
25948
25948
  constructor(e) {
25949
25949
  this.generateIdFn = e, this.iframeIdToRemoteIdMap = /* @__PURE__ */ new WeakMap(), this.iframeRemoteIdToIdMap = /* @__PURE__ */ new WeakMap();
25950
25950
  }
@@ -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(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));
25989
+ this.iframes = /* @__PURE__ */ new WeakMap(), this.crossOriginIframeMap = /* @__PURE__ */ new WeakMap(), this.crossOriginIframeMirror = new ls(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 ls(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);
@@ -26148,7 +26148,7 @@ class Fl {
26148
26148
  }
26149
26149
  patchAttachShadow(e, i) {
26150
26150
  const t = this;
26151
- this.restoreHandlers.push(Un(e.prototype, "attachShadow", function(s) {
26151
+ this.restoreHandlers.push(Vn(e.prototype, "attachShadow", function(s) {
26152
26152
  return function(o) {
26153
26153
  const a = s.call(this, o);
26154
26154
  return this.shadowRoot && zs(this) && t.addShadowRoot(this.shadowRoot, i), a;
@@ -26222,10 +26222,10 @@ var Wl = function(n) {
26222
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
- const ls = /* @__PURE__ */ new Map();
26225
+ const ds = /* @__PURE__ */ new Map();
26226
26226
  function Zl(n, e) {
26227
- let i = ls.get(n);
26228
- return i || (i = /* @__PURE__ */ new Map(), ls.set(n, i)), i.has(e) || i.set(e, []), i.get(e);
26227
+ let i = ds.get(n);
26228
+ return i || (i = /* @__PURE__ */ new Map(), ds.set(n, i)), i.has(e) || i.set(e, []), i.get(e);
26229
26229
  }
26230
26230
  const Qs = (n, e, i) => {
26231
26231
  if (!n || !(eo(n, e) || typeof n == "object"))
@@ -26308,7 +26308,7 @@ function Jl(n, e, i, t) {
26308
26308
  try {
26309
26309
  if (typeof e.CanvasRenderingContext2D.prototype[a] != "function")
26310
26310
  continue;
26311
- const l = Un(e.CanvasRenderingContext2D.prototype, a, function(d) {
26311
+ const l = Vn(e.CanvasRenderingContext2D.prototype, a, function(d) {
26312
26312
  return function(...p) {
26313
26313
  return Me(this.canvas, i, t, !0) || setTimeout(() => {
26314
26314
  const v = Xs(p, e, this);
@@ -26322,7 +26322,7 @@ function Jl(n, e, i, t) {
26322
26322
  });
26323
26323
  s.push(l);
26324
26324
  } catch {
26325
- const d = Oi(e.CanvasRenderingContext2D.prototype, a, {
26325
+ const d = Ui(e.CanvasRenderingContext2D.prototype, a, {
26326
26326
  set(p) {
26327
26327
  n(this.canvas, {
26328
26328
  type: Rn["2D"],
@@ -26341,10 +26341,10 @@ function Jl(n, e, i, t) {
26341
26341
  function $l(n) {
26342
26342
  return n === "experimental-webgl" ? "webgl" : n;
26343
26343
  }
26344
- function ds(n, e, i, t) {
26344
+ function us(n, e, i, t) {
26345
26345
  const s = [];
26346
26346
  try {
26347
- const o = Un(n.HTMLCanvasElement.prototype, "getContext", function(a) {
26347
+ const o = Vn(n.HTMLCanvasElement.prototype, "getContext", function(a) {
26348
26348
  return function(l, ...d) {
26349
26349
  if (!Me(this, e, i, !0)) {
26350
26350
  const p = $l(l);
@@ -26368,7 +26368,7 @@ function ds(n, e, i, t) {
26368
26368
  s.forEach((o) => o());
26369
26369
  };
26370
26370
  }
26371
- function us(n, e, i, t, s, o, a) {
26371
+ function cs(n, e, i, t, s, o, a) {
26372
26372
  const l = [], d = Object.getOwnPropertyNames(n);
26373
26373
  for (const p of d)
26374
26374
  if (![
@@ -26380,7 +26380,7 @@ function us(n, e, i, t, s, o, a) {
26380
26380
  try {
26381
26381
  if (typeof n[p] != "function")
26382
26382
  continue;
26383
- const v = Un(n, p, function(g) {
26383
+ const v = Vn(n, p, function(g) {
26384
26384
  return function(...f) {
26385
26385
  const y = g.apply(this, f);
26386
26386
  if (Qs(y, a, this), "tagName" in this.canvas && !Me(this.canvas, t, s, !0)) {
@@ -26396,7 +26396,7 @@ function us(n, e, i, t, s, o, a) {
26396
26396
  });
26397
26397
  l.push(v);
26398
26398
  } catch {
26399
- const g = Oi(n, p, {
26399
+ const g = Ui(n, p, {
26400
26400
  set(f) {
26401
26401
  i(this.canvas, {
26402
26402
  type: e,
@@ -26412,7 +26412,7 @@ function us(n, e, i, t, s, o, a) {
26412
26412
  }
26413
26413
  function Yl(n, e, i, t, s) {
26414
26414
  const o = [];
26415
- return o.push(...us(e.WebGLRenderingContext.prototype, Rn.WebGL, n, i, t, s, e)), typeof e.WebGL2RenderingContext < "u" && o.push(...us(e.WebGL2RenderingContext.prototype, Rn.WebGL2, n, i, t, s, e)), () => {
26415
+ return o.push(...cs(e.WebGLRenderingContext.prototype, Rn.WebGL, n, i, t, s, e)), typeof e.WebGL2RenderingContext < "u" && o.push(...cs(e.WebGL2RenderingContext.prototype, Rn.WebGL2, n, i, t, s, e)), () => {
26416
26416
  o.forEach((a) => a());
26417
26417
  };
26418
26418
  }
@@ -26555,7 +26555,7 @@ class id {
26555
26555
  });
26556
26556
  }
26557
26557
  initCanvasFPSObserver(e, i, t, s, o) {
26558
- const a = ds(i, t, s, !0), l = /* @__PURE__ */ new Map(), d = new nd();
26558
+ const a = us(i, t, s, !0), l = /* @__PURE__ */ new Map(), d = new nd();
26559
26559
  d.onmessage = (k) => {
26560
26560
  const { id: C } = k.data;
26561
26561
  if (l.set(C, !1), !("base64" in k.data))
@@ -26626,7 +26626,7 @@ class id {
26626
26626
  }
26627
26627
  initCanvasMutationObserver(e, i, t) {
26628
26628
  this.startRAFTimestamping(), this.startPendingCanvasMutationFlusher();
26629
- const s = ds(e, i, t, !1), o = Jl(this.processMutation.bind(this), e, i, t), a = Yl(this.processMutation.bind(this), e, i, t, this.mirror);
26629
+ const s = us(e, i, t, !1), o = Jl(this.processMutation.bind(this), e, i, t), a = Yl(this.processMutation.bind(this), e, i, t, this.mirror);
26630
26630
  this.resetObservers = () => {
26631
26631
  s(), o(), a();
26632
26632
  };
@@ -26725,12 +26725,12 @@ class sd {
26725
26725
  }
26726
26726
  }
26727
26727
  function me(n) {
26728
- return Object.assign(Object.assign({}, n), { timestamp: Li() });
26728
+ return Object.assign(Object.assign({}, n), { timestamp: xi() });
26729
26729
  }
26730
- let re, Si, tt, Ti = !1;
26730
+ let re, Si, st, Ei = !1;
26731
26731
  const He = Yr();
26732
26732
  function si(n = {}) {
26733
- const { emit: e, checkoutEveryNms: i, checkoutEveryNth: t, blockClass: s = "rr-block", blockSelector: o = null, ignoreClass: a = "rr-ignore", ignoreSelector: l = null, maskTextClass: d = "rr-mask", maskTextSelector: p = null, inlineStylesheet: v = !0, maskAllInputs: g, maskInputOptions: f, slimDOMOptions: y, maskInputFn: k, maskTextFn: C, hooks: w, packFn: M, sampling: A = {}, dataURLOptions: _ = {}, mousemoveWait: T, recordDOM: I = !0, recordCanvas: K = !1, recordCrossOriginIframes: G = !1, recordAfter: V = n.recordAfter === "DOMContentLoaded" ? n.recordAfter : "load", userTriggeredOnInput: j = !1, collectFonts: te = !1, inlineImages: ge = !1, plugins: U, keepIframeSrcFn: ke = () => !1, ignoreCSSAttributes: le = /* @__PURE__ */ new Set([]), errorHandler: xe } = n;
26733
+ const { emit: e, checkoutEveryNms: i, checkoutEveryNth: t, blockClass: s = "rr-block", blockSelector: o = null, ignoreClass: a = "rr-ignore", ignoreSelector: l = null, maskTextClass: d = "rr-mask", maskTextSelector: p = null, inlineStylesheet: v = !0, maskAllInputs: g, maskInputOptions: f, slimDOMOptions: y, maskInputFn: k, maskTextFn: C, hooks: w, packFn: M, sampling: A = {}, dataURLOptions: _ = {}, mousemoveWait: T, recordDOM: I = !0, recordCanvas: K = !1, recordCrossOriginIframes: G = !1, recordAfter: U = n.recordAfter === "DOMContentLoaded" ? n.recordAfter : "load", userTriggeredOnInput: j = !1, collectFonts: te = !1, inlineImages: ge = !1, plugins: V, keepIframeSrcFn: ke = () => !1, ignoreCSSAttributes: le = /* @__PURE__ */ new Set([]), errorHandler: xe } = n;
26734
26734
  Ll(xe);
26735
26735
  const we = G ? window.parent === window : !0;
26736
26736
  let ze = !1;
@@ -26775,7 +26775,7 @@ function si(n = {}) {
26775
26775
  Sl();
26776
26776
  let bn, on = 0;
26777
26777
  const Te = (N) => {
26778
- for (const de of U || [])
26778
+ for (const de of V || [])
26779
26779
  de.eventProcessor && (N = de.eventProcessor(N));
26780
26780
  return M && !ze && (N = M(N)), N;
26781
26781
  };
@@ -26826,14 +26826,14 @@ function si(n = {}) {
26826
26826
  recordCrossOriginIframes: G,
26827
26827
  wrappedEmit: re
26828
26828
  });
26829
- for (const N of U || [])
26829
+ for (const N of V || [])
26830
26830
  N.getMirror && N.getMirror({
26831
26831
  nodeMirror: He,
26832
26832
  crossOriginIframeMirror: Ee.crossOriginIframeMirror,
26833
26833
  crossOriginIframeStyleMirror: Ee.crossOriginIframeStyleMirror
26834
26834
  });
26835
26835
  const Ce = new sd();
26836
- tt = new id({
26836
+ st = new id({
26837
26837
  recordCanvas: K,
26838
26838
  mutationCb: ae,
26839
26839
  win: window,
@@ -26862,7 +26862,7 @@ function si(n = {}) {
26862
26862
  slimDOMOptions: We,
26863
26863
  iframeManager: Ee,
26864
26864
  stylesheetManager: Ie,
26865
- canvasManager: tt,
26865
+ canvasManager: st,
26866
26866
  keepIframeSrcFn: ke,
26867
26867
  processedNodeManager: Ce
26868
26868
  },
@@ -26875,8 +26875,8 @@ function si(n = {}) {
26875
26875
  type: W.Meta,
26876
26876
  data: {
26877
26877
  href: window.location.href,
26878
- width: Us(),
26879
- height: Vs()
26878
+ width: Vs(),
26879
+ height: Us()
26880
26880
  }
26881
26881
  }), N), Ie.reset(), je.init(), kn.forEach((Y) => Y.lock());
26882
26882
  const de = yl(document, {
@@ -26893,7 +26893,7 @@ function si(n = {}) {
26893
26893
  recordCanvas: K,
26894
26894
  inlineImages: ge,
26895
26895
  onSerialize: (Y) => {
26896
- Fs(Y, He) && Ee.addIframe(Y), Gs(Y, He) && Ie.trackLinkElement(Y), dt(Y) && je.addShadowRoot(Y.shadowRoot, document);
26896
+ Fs(Y, He) && Ee.addIframe(Y), Gs(Y, He) && Ie.trackLinkElement(Y), ut(Y) && je.addShadowRoot(Y.shadowRoot, document);
26897
26897
  },
26898
26898
  onIframeLoad: (Y, ue) => {
26899
26899
  Ee.attachIframe(Y, ue), je.observeAttachShadow(Y);
@@ -26992,9 +26992,9 @@ function si(n = {}) {
26992
26992
  stylesheetManager: Ie,
26993
26993
  shadowDomManager: je,
26994
26994
  processedNodeManager: Ce,
26995
- canvasManager: tt,
26995
+ canvasManager: st,
26996
26996
  ignoreCSSAttributes: le,
26997
- plugins: ((Pe = U == null ? void 0 : U.filter((J) => J.observer)) === null || Pe === void 0 ? void 0 : Pe.map((J) => ({
26997
+ plugins: ((Pe = V == null ? void 0 : V.filter((J) => J.observer)) === null || Pe === void 0 ? void 0 : Pe.map((J) => ({
26998
26998
  observer: J.observer,
26999
26999
  options: J.options,
27000
27000
  callback: (an) => re(me({
@@ -27015,27 +27015,27 @@ function si(n = {}) {
27015
27015
  }
27016
27016
  });
27017
27017
  const Y = () => {
27018
- Si(), N.push(de(document)), Ti = !0;
27018
+ Si(), N.push(de(document)), Ei = !0;
27019
27019
  };
27020
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
- })), V === "DOMContentLoaded" && Y();
27024
+ })), U === "DOMContentLoaded" && Y();
27025
27025
  })), N.push(_e("load", () => {
27026
27026
  re(me({
27027
27027
  type: W.Load,
27028
27028
  data: {}
27029
- })), V === "load" && Y();
27029
+ })), U === "load" && Y();
27030
27030
  }, window))), () => {
27031
- N.forEach((ue) => ue()), Ce.destroy(), Ti = !1, xl();
27031
+ N.forEach((ue) => ue()), Ce.destroy(), Ei = !1, xl();
27032
27032
  };
27033
27033
  } catch (N) {
27034
27034
  console.warn(N);
27035
27035
  }
27036
27036
  }
27037
27037
  si.addCustomEvent = (n, e) => {
27038
- if (!Ti)
27038
+ if (!Ei)
27039
27039
  throw new Error("please add custom event after start recording");
27040
27040
  re(me({
27041
27041
  type: W.Custom,
@@ -27049,7 +27049,7 @@ si.freezePage = () => {
27049
27049
  kn.forEach((n) => n.freeze());
27050
27050
  };
27051
27051
  si.takeFullSnapshot = (n) => {
27052
- if (!Ti)
27052
+ if (!Ei)
27053
27053
  throw new Error("please take full snapshot after start recording");
27054
27054
  Si(n);
27055
27055
  };
@@ -27059,21 +27059,21 @@ var no = /* @__PURE__ */ ((n) => (n[n.DomContentLoaded = 0] = "DomContentLoaded"
27059
27059
  LIB_VERSION: "2.55.1"
27060
27060
  }, H;
27061
27061
  if (typeof window > "u") {
27062
- var cs = {
27062
+ var hs = {
27063
27063
  hostname: ""
27064
27064
  };
27065
27065
  H = {
27066
27066
  navigator: { userAgent: "", onLine: !0 },
27067
27067
  document: {
27068
- location: cs,
27068
+ location: hs,
27069
27069
  referrer: ""
27070
27070
  },
27071
27071
  screen: { width: 0, height: 0 },
27072
- location: cs
27072
+ location: hs
27073
27073
  };
27074
27074
  } else
27075
27075
  H = window;
27076
- var Jn = 24 * 60 * 60 * 1e3, st = 8 * 1e3, Vi = Array.prototype, od = Function.prototype, io = Object.prototype, dn = Vi.slice, oi = io.toString, Ui = io.hasOwnProperty, he = H.console, un = H.navigator, ee = H.document, fi = H.opera, Ei = H.screen, Ge = un.userAgent, ot = od.bind, hs = Vi.forEach, ms = Vi.indexOf, vs = Vi.map, ad = Array.isArray, ct = {}, m = {
27076
+ var Jn = 24 * 60 * 60 * 1e3, ot = 8 * 1e3, Vi = Array.prototype, od = Function.prototype, io = Object.prototype, dn = Vi.slice, oi = io.toString, Ki = io.hasOwnProperty, he = H.console, un = H.navigator, ee = H.document, fi = H.opera, Pi = H.screen, Ge = un.userAgent, at = od.bind, ms = Vi.forEach, vs = Vi.indexOf, ps = Vi.map, ad = Array.isArray, ht = {}, m = {
27077
27077
  trim: function(n) {
27078
27078
  return n.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
27079
27079
  }
@@ -27128,21 +27128,21 @@ var Jn = 24 * 60 * 60 * 1e3, st = 8 * 1e3, Vi = Array.prototype, od = Function.p
27128
27128
  }
27129
27129
  }
27130
27130
  }
27131
- }, at = function(n, e) {
27131
+ }, rt = function(n, e) {
27132
27132
  return function() {
27133
27133
  return arguments[0] = "[" + e + "] " + arguments[0], n.apply($, arguments);
27134
27134
  };
27135
- }, Ki = function(n) {
27135
+ }, ji = function(n) {
27136
27136
  return {
27137
- log: at($.log, n),
27138
- error: at($.error, n),
27139
- critical: at($.critical, n)
27137
+ log: rt($.log, n),
27138
+ error: rt($.error, n),
27139
+ critical: rt($.critical, n)
27140
27140
  };
27141
27141
  };
27142
27142
  m.bind = function(n, e) {
27143
27143
  var i, t;
27144
- if (ot && n.bind === ot)
27145
- return ot.apply(n, dn.call(arguments, 1));
27144
+ if (at && n.bind === at)
27145
+ return at.apply(n, dn.call(arguments, 1));
27146
27146
  if (!m.isFunction(n))
27147
27147
  throw new TypeError();
27148
27148
  return i = dn.call(arguments, 2), t = function() {
@@ -27158,15 +27158,15 @@ m.bind = function(n, e) {
27158
27158
  };
27159
27159
  m.each = function(n, e, i) {
27160
27160
  if (n != null) {
27161
- if (hs && n.forEach === hs)
27161
+ if (ms && n.forEach === ms)
27162
27162
  n.forEach(e, i);
27163
27163
  else if (n.length === +n.length) {
27164
27164
  for (var t = 0, s = n.length; t < s; t++)
27165
- if (t in n && e.call(i, n[t], t, n) === ct)
27165
+ if (t in n && e.call(i, n[t], t, n) === ht)
27166
27166
  return;
27167
27167
  } else
27168
27168
  for (var o in n)
27169
- if (Ui.call(n, o) && e.call(i, n[o], o, n) === ct)
27169
+ if (Ki.call(n, o) && e.call(i, n[o], o, n) === ht)
27170
27170
  return;
27171
27171
  }
27172
27172
  };
@@ -27187,13 +27187,13 @@ m.isFunction = function(n) {
27187
27187
  }
27188
27188
  };
27189
27189
  m.isArguments = function(n) {
27190
- return !!(n && Ui.call(n, "callee"));
27190
+ return !!(n && Ki.call(n, "callee"));
27191
27191
  };
27192
27192
  m.toArray = function(n) {
27193
27193
  return n ? n.toArray ? n.toArray() : m.isArray(n) || m.isArguments(n) ? dn.call(n) : m.values(n) : [];
27194
27194
  };
27195
27195
  m.map = function(n, e, i) {
27196
- if (vs && n.map === vs)
27196
+ if (ps && n.map === ps)
27197
27197
  return n.map(e, i);
27198
27198
  var t = [];
27199
27199
  return m.each(n, function(s) {
@@ -27214,9 +27214,9 @@ m.values = function(n) {
27214
27214
  };
27215
27215
  m.include = function(n, e) {
27216
27216
  var i = !1;
27217
- return n === null ? i : ms && n.indexOf === ms ? n.indexOf(e) != -1 : (m.each(n, function(t) {
27217
+ return n === null ? i : vs && n.indexOf === vs ? n.indexOf(e) != -1 : (m.each(n, function(t) {
27218
27218
  if (i || (i = t === e))
27219
- return ct;
27219
+ return ht;
27220
27220
  }), i);
27221
27221
  };
27222
27222
  m.includes = function(n, e) {
@@ -27231,7 +27231,7 @@ m.isObject = function(n) {
27231
27231
  m.isEmptyObject = function(n) {
27232
27232
  if (m.isObject(n)) {
27233
27233
  for (var e in n)
27234
- if (Ui.call(n, e))
27234
+ if (Ki.call(n, e))
27235
27235
  return !1;
27236
27236
  return !0;
27237
27237
  }
@@ -27321,7 +27321,7 @@ m.JSONEncode = /* @__PURE__ */ function() {
27321
27321
  ` + f + "]" : "[" + y.join(",") + "]", a = f, v;
27322
27322
  }
27323
27323
  for (p in k)
27324
- Ui.call(k, p) && (v = t(p, k), v && y.push(i(p) + (a ? ": " : ":") + v));
27324
+ Ki.call(k, p) && (v = t(p, k), v && y.push(i(p) + (a ? ": " : ":") + v));
27325
27325
  return v = y.length === 0 ? "{}" : a ? "{" + y.join(",") + f + "}" : "{" + y.join(",") + "}", a = f, v;
27326
27326
  }
27327
27327
  };
@@ -27488,11 +27488,11 @@ m.UUID = /* @__PURE__ */ function() {
27488
27488
  return a.length > 0 && (l = d(l, a)), l.toString(16);
27489
27489
  };
27490
27490
  return function() {
27491
- var t = (Ei.height * Ei.width).toString(16);
27491
+ var t = (Pi.height * Pi.width).toString(16);
27492
27492
  return n() + "-" + e() + "-" + i() + "-" + t + "-" + n();
27493
27493
  };
27494
27494
  }();
27495
- var ps = [
27495
+ var bs = [
27496
27496
  "ahrefsbot",
27497
27497
  "ahrefssiteaudit",
27498
27498
  "baiduspider",
@@ -27521,8 +27521,8 @@ var ps = [
27521
27521
  ];
27522
27522
  m.isBlockedUA = function(n) {
27523
27523
  var e;
27524
- for (n = n.toLowerCase(), e = 0; e < ps.length; e++)
27525
- if (n.indexOf(ps[e]) !== -1)
27524
+ for (n = n.toLowerCase(), e = 0; e < bs.length; e++)
27525
+ if (n.indexOf(bs[e]) !== -1)
27526
27526
  return !0;
27527
27527
  return !1;
27528
27528
  };
@@ -27568,7 +27568,7 @@ m.cookie = {
27568
27568
  if (a)
27569
27569
  l = "; domain=" + a;
27570
27570
  else if (t) {
27571
- var v = bs(ee.location.hostname);
27571
+ var v = fs(ee.location.hostname);
27572
27572
  l = v ? "; domain=." + v : "";
27573
27573
  }
27574
27574
  if (i) {
@@ -27582,7 +27582,7 @@ m.cookie = {
27582
27582
  if (a)
27583
27583
  l = "; domain=" + a;
27584
27584
  else if (t) {
27585
- var v = bs(ee.location.hostname);
27585
+ var v = fs(ee.location.hostname);
27586
27586
  l = v ? "; domain=." + v : "";
27587
27587
  }
27588
27588
  if (i) {
@@ -27597,22 +27597,22 @@ m.cookie = {
27597
27597
  m.cookie.set(n, "", -1, e, !1, !1, i);
27598
27598
  }
27599
27599
  };
27600
- var rt = null, Pi = function(n, e) {
27601
- if (rt !== null && !e)
27602
- return rt;
27600
+ var lt = null, Ii = function(n, e) {
27601
+ if (lt !== null && !e)
27602
+ return lt;
27603
27603
  var i = !0;
27604
27604
  try {
27605
27605
  n = n || window.localStorage;
27606
- var t = "__mplss_" + bt(8), s = "xyz";
27606
+ var t = "__mplss_" + ft(8), s = "xyz";
27607
27607
  n.setItem(t, s), n.getItem(t) !== s && (i = !1), n.removeItem(t);
27608
27608
  } catch {
27609
27609
  i = !1;
27610
27610
  }
27611
- return rt = i, i;
27611
+ return lt = i, i;
27612
27612
  };
27613
27613
  m.localStorage = {
27614
27614
  is_supported: function(n) {
27615
- var e = Pi(null, n);
27615
+ var e = Ii(null, n);
27616
27616
  return e || $.error("localStorage unsupported; falling back to cookie store"), e;
27617
27617
  },
27618
27618
  error: function(n) {
@@ -27721,45 +27721,45 @@ m.dom_query = /* @__PURE__ */ function() {
27721
27721
  for (d == "*" ? k = n(w[f]) : k = w[f].getElementsByTagName(d), y = 0; y < k.length; y++)
27722
27722
  p[v++] = k[y];
27723
27723
  w = [], C = 0;
27724
- var V;
27724
+ var U;
27725
27725
  switch (K) {
27726
27726
  case "=":
27727
- V = function(j) {
27727
+ U = function(j) {
27728
27728
  return j.getAttribute(I) == G;
27729
27729
  };
27730
27730
  break;
27731
27731
  case "~":
27732
- V = function(j) {
27732
+ U = function(j) {
27733
27733
  return j.getAttribute(I).match(new RegExp("\\b" + G + "\\b"));
27734
27734
  };
27735
27735
  break;
27736
27736
  case "|":
27737
- V = function(j) {
27737
+ U = function(j) {
27738
27738
  return j.getAttribute(I).match(new RegExp("^" + G + "-?"));
27739
27739
  };
27740
27740
  break;
27741
27741
  case "^":
27742
- V = function(j) {
27742
+ U = function(j) {
27743
27743
  return j.getAttribute(I).indexOf(G) === 0;
27744
27744
  };
27745
27745
  break;
27746
27746
  case "$":
27747
- V = function(j) {
27747
+ U = function(j) {
27748
27748
  return j.getAttribute(I).lastIndexOf(G) == j.getAttribute(I).length - G.length;
27749
27749
  };
27750
27750
  break;
27751
27751
  case "*":
27752
- V = function(j) {
27752
+ U = function(j) {
27753
27753
  return j.getAttribute(I).indexOf(G) > -1;
27754
27754
  };
27755
27755
  break;
27756
27756
  default:
27757
- V = function(j) {
27757
+ U = function(j) {
27758
27758
  return j.getAttribute(I);
27759
27759
  };
27760
27760
  }
27761
27761
  for (w = [], C = 0, f = 0; f < p.length; f++)
27762
- V(p[f]) && (w[C++] = p[f]);
27762
+ U(p[f]) && (w[C++] = p[f]);
27763
27763
  continue;
27764
27764
  }
27765
27765
  for (d = a, p = [], v = 0, f = 0; f < w.length; f++)
@@ -27863,11 +27863,11 @@ m.info = {
27863
27863
  }), {
27864
27864
  $current_url: m.info.currentUrl(),
27865
27865
  $browser_version: m.info.browserVersion(Ge, un.vendor, fi),
27866
- $screen_height: Ei.height,
27867
- $screen_width: Ei.width,
27866
+ $screen_height: Pi.height,
27867
+ $screen_width: Pi.width,
27868
27868
  mp_lib: "web",
27869
27869
  $lib_version: Xe.LIB_VERSION,
27870
- $insert_id: bt(),
27870
+ $insert_id: ft(),
27871
27871
  time: m.timestamp() / 1e3
27872
27872
  // epoch time in seconds
27873
27873
  }, m.strip_empty_properties(n));
@@ -27890,10 +27890,10 @@ m.info = {
27890
27890
  });
27891
27891
  }
27892
27892
  };
27893
- var bt = function(n) {
27893
+ var ft = function(n) {
27894
27894
  var e = Math.random().toString(36).substring(2, 10) + Math.random().toString(36).substring(2, 10);
27895
27895
  return n ? e.substring(0, n) : e;
27896
- }, ud = /[a-z0-9][a-z0-9-]*\.[a-z]+$/i, cd = /[a-z0-9][a-z0-9-]+\.[a-z.]{2,6}$/i, bs = function(n) {
27896
+ }, ud = /[a-z0-9][a-z0-9-]*\.[a-z]+$/i, cd = /[a-z0-9][a-z0-9-]+\.[a-z.]{2,6}$/i, fs = function(n) {
27897
27897
  var e = cd, i = n.split("."), t = i[i.length - 1];
27898
27898
  (t.length > 4 || t === "com" || t === "org") && (e = ud);
27899
27899
  var s = n.match(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, Di = null;
27905
- typeof JSON < "u" && (Ii = JSON.stringify, Di = JSON.parse);
27906
- Ii = Ii || m.JSONEncode;
27907
- Di = Di || m.JSONDecode;
27904
+ }, Di = null, Ni = null;
27905
+ typeof JSON < "u" && (Di = JSON.stringify, Ni = JSON.parse);
27906
+ Di = Di || m.JSONEncode;
27907
+ Ni = Ni || m.JSONDecode;
27908
27908
  m.toArray = m.toArray;
27909
27909
  m.isObject = m.isObject;
27910
27910
  m.JSONEncode = m.JSONEncode;
@@ -27933,35 +27933,35 @@ function to(n, e) {
27933
27933
  return i && $.warn("You are opted out of Mixpanel tracking. This will prevent the Mixpanel SDK from sending any data."), i;
27934
27934
  }
27935
27935
  function mn(n) {
27936
- return yt(n, function(e) {
27936
+ return Ct(n, function(e) {
27937
27937
  return this.get_config(e);
27938
27938
  });
27939
27939
  }
27940
27940
  function vn(n) {
27941
- return yt(n, function(e) {
27941
+ return Ct(n, function(e) {
27942
27942
  return this._get_config(e);
27943
27943
  });
27944
27944
  }
27945
27945
  function Kn(n) {
27946
- return yt(n, function(e) {
27946
+ return Ct(n, function(e) {
27947
27947
  return this._get_config(e);
27948
27948
  });
27949
27949
  }
27950
27950
  function fd(n, e) {
27951
- e = e || {}, ft(e).remove(
27952
- gt(n, e),
27951
+ e = e || {}, gt(e).remove(
27952
+ yt(n, e),
27953
27953
  !!e.crossSubdomainCookie,
27954
27954
  e.cookieDomain
27955
27955
  );
27956
27956
  }
27957
- function ft(n) {
27957
+ function gt(n) {
27958
27958
  return n = n || {}, n.persistenceType === "localStorage" ? m.localStorage : m.cookie;
27959
27959
  }
27960
- function gt(n, e) {
27960
+ function yt(n, e) {
27961
27961
  return e = e || {}, (e.persistencePrefix || md) + n;
27962
27962
  }
27963
27963
  function so(n, e) {
27964
- return ft(e).get(gt(n, e));
27964
+ return gt(e).get(yt(n, e));
27965
27965
  }
27966
27966
  function gd(n) {
27967
27967
  if (n && n.ignoreDnt)
@@ -27981,8 +27981,8 @@ function oo(n, e, i) {
27981
27981
  $.error("gdpr." + (n ? "optIn" : "optOut") + " called with an invalid token");
27982
27982
  return;
27983
27983
  }
27984
- i = i || {}, ft(i).set(
27985
- gt(e, i),
27984
+ i = i || {}, gt(i).set(
27985
+ yt(e, i),
27986
27986
  n ? 1 : 0,
27987
27987
  m.isNumber(i.cookieExpiration) ? i.cookieExpiration : null,
27988
27988
  !!i.crossSubdomainCookie,
@@ -27993,7 +27993,7 @@ function oo(n, e, i) {
27993
27993
  send_immediately: !0
27994
27994
  });
27995
27995
  }
27996
- function yt(n, e) {
27996
+ function Ct(n, e) {
27997
27997
  return function() {
27998
27998
  var i = !1;
27999
27999
  try {
@@ -28013,7 +28013,7 @@ function yt(n, e) {
28013
28013
  typeof d == "function" && d(0);
28014
28014
  };
28015
28015
  }
28016
- var yd = Ki("lock"), ao = function(n, e) {
28016
+ var yd = ji("lock"), ao = function(n, e) {
28017
28017
  e = e || {}, this.storageKey = n, this.storage = e.storage || window.localStorage, this.pollIntervalMS = e.pollIntervalMS || 100, this.timeoutMS = e.timeoutMS || 2e3;
28018
28018
  };
28019
28019
  ao.prototype.withLock = function(n, e, i) {
@@ -28042,7 +28042,7 @@ ao.prototype.withLock = function(n, e, i) {
28042
28042
  return !1;
28043
28043
  if (d.setItem(v, t), d.getItem(v) === t)
28044
28044
  return !0;
28045
- if (!Pi(d, !0))
28045
+ if (!Ii(d, !0))
28046
28046
  throw new Error("localStorage support dropped while acquiring lock");
28047
28047
  return !1;
28048
28048
  }, w = function() {
@@ -28070,7 +28070,7 @@ ao.prototype.withLock = function(n, e, i) {
28070
28070
  }
28071
28071
  };
28072
28072
  try {
28073
- if (Pi(d, !0))
28073
+ if (Ii(d, !0))
28074
28074
  w();
28075
28075
  else
28076
28076
  throw new Error("localStorage support check failed");
@@ -28078,12 +28078,12 @@ ao.prototype.withLock = function(n, e, i) {
28078
28078
  f(A);
28079
28079
  }
28080
28080
  };
28081
- var fs = Ki("batch"), pn = function(n, e) {
28082
- e = e || {}, this.storageKey = n, this.storage = e.storage || window.localStorage, this.reportError = e.errorReporter || m.bind(fs.error, fs), this.lock = new ao(n, { storage: this.storage }), this.usePersistence = e.usePersistence, this.pid = e.pid || null, this.memQueue = [];
28081
+ var gs = ji("batch"), pn = function(n, e) {
28082
+ e = e || {}, this.storageKey = n, this.storage = e.storage || window.localStorage, this.reportError = e.errorReporter || m.bind(gs.error, gs), this.lock = new ao(n, { storage: this.storage }), this.usePersistence = e.usePersistence, this.pid = e.pid || null, this.memQueue = [];
28083
28083
  };
28084
28084
  pn.prototype.enqueue = function(n, e, i) {
28085
28085
  var t = {
28086
- id: bt(),
28086
+ id: ft(),
28087
28087
  flushAfter: (/* @__PURE__ */ new Date()).getTime() + e * 2,
28088
28088
  payload: n
28089
28089
  };
@@ -28118,7 +28118,7 @@ pn.prototype.fillBatch = function(n) {
28118
28118
  }
28119
28119
  return e;
28120
28120
  };
28121
- var gs = function(n, e) {
28121
+ var ys = function(n, e) {
28122
28122
  var i = [];
28123
28123
  return m.each(n, function(t) {
28124
28124
  t.id && !e[t.id] && i.push(t);
@@ -28128,14 +28128,14 @@ pn.prototype.removeItemsByID = function(n, e) {
28128
28128
  var i = {};
28129
28129
  if (m.each(n, function(s) {
28130
28130
  i[s] = !0;
28131
- }), this.memQueue = gs(this.memQueue, i), !this.usePersistence)
28131
+ }), this.memQueue = ys(this.memQueue, i), !this.usePersistence)
28132
28132
  e && e(!0);
28133
28133
  else {
28134
28134
  var t = m.bind(function() {
28135
28135
  var s;
28136
28136
  try {
28137
28137
  var o = this.readFromStorage();
28138
- if (o = gs(o, i), s = this.saveToStorage(o), s) {
28138
+ if (o = ys(o, i), s = this.saveToStorage(o), s) {
28139
28139
  o = this.readFromStorage();
28140
28140
  for (var a = 0; a < o.length; a++) {
28141
28141
  var l = o[a];
@@ -28153,7 +28153,7 @@ pn.prototype.removeItemsByID = function(n, e) {
28153
28153
  e && e(o);
28154
28154
  }, m.bind(function(o) {
28155
28155
  var a = !1;
28156
- if (this.reportError("Error acquiring storage lock", o), !Pi(this.storage, !0) && (a = t(), !a))
28156
+ if (this.reportError("Error acquiring storage lock", o), !Ii(this.storage, !0) && (a = t(), !a))
28157
28157
  try {
28158
28158
  this.storage.removeItem(this.storageKey);
28159
28159
  } catch (l) {
@@ -28163,7 +28163,7 @@ pn.prototype.removeItemsByID = function(n, e) {
28163
28163
  }, this), this.pid);
28164
28164
  }
28165
28165
  };
28166
- var ys = function(n, e) {
28166
+ var Cs = function(n, e) {
28167
28167
  var i = [];
28168
28168
  return m.each(n, function(t) {
28169
28169
  var s = t.id;
@@ -28175,11 +28175,11 @@ var ys = function(n, e) {
28175
28175
  }), i;
28176
28176
  };
28177
28177
  pn.prototype.updatePayloads = function(n, e) {
28178
- this.memQueue = ys(this.memQueue, n), this.usePersistence ? this.lock.withLock(m.bind(function() {
28178
+ this.memQueue = Cs(this.memQueue, n), this.usePersistence ? this.lock.withLock(m.bind(function() {
28179
28179
  var t;
28180
28180
  try {
28181
28181
  var s = this.readFromStorage();
28182
- s = ys(s, n), t = this.saveToStorage(s);
28182
+ s = Cs(s, n), t = this.saveToStorage(s);
28183
28183
  } catch {
28184
28184
  this.reportError("Error updating items", n), t = !1;
28185
28185
  }
@@ -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 = Di(n), m.isArray(n) || (this.reportError("Invalid storage entry:", n), n = null));
28194
+ n = this.storage.getItem(this.storageKey), n && (n = Ni(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
  }
@@ -28199,7 +28199,7 @@ pn.prototype.readFromStorage = function() {
28199
28199
  };
28200
28200
  pn.prototype.saveToStorage = function(n) {
28201
28201
  try {
28202
- return this.storage.setItem(this.storageKey, Ii(n)), !0;
28202
+ return this.storage.setItem(this.storageKey, Di(n)), !0;
28203
28203
  } catch (e) {
28204
28204
  return this.reportError("Error saving queue", e), !1;
28205
28205
  }
@@ -28207,37 +28207,37 @@ pn.prototype.saveToStorage = function(n) {
28207
28207
  pn.prototype.clear = function() {
28208
28208
  this.memQueue = [], this.usePersistence && this.storage.removeItem(this.storageKey);
28209
28209
  };
28210
- var Cd = 10 * 60 * 1e3, $n = Ki("batch"), Ue = function(n, e) {
28210
+ var Cd = 10 * 60 * 1e3, $n = ji("batch"), Ve = function(n, e) {
28211
28211
  this.errorReporter = e.errorReporter, this.queue = new pn(n, {
28212
28212
  errorReporter: m.bind(this.reportError, this),
28213
28213
  storage: e.storage,
28214
28214
  usePersistence: e.usePersistence
28215
28215
  }), this.libConfig = e.libConfig, this.sendRequest = e.sendRequestFunc, this.beforeSendHook = e.beforeSendHook, this.stopAllBatching = e.stopAllBatchingFunc, this.batchSize = this.libConfig.batch_size, this.flushInterval = this.libConfig.batch_flush_interval_ms, this.stopped = !this.libConfig.batch_autostart, this.consecutiveRemovalFailures = 0, this.itemIdsSentSuccessfully = {}, this.flushOnlyOnInterval = e.flushOnlyOnInterval || !1;
28216
28216
  };
28217
- Ue.prototype.enqueue = function(n, e) {
28217
+ Ve.prototype.enqueue = function(n, e) {
28218
28218
  this.queue.enqueue(n, this.flushInterval, e);
28219
28219
  };
28220
- Ue.prototype.start = function() {
28220
+ Ve.prototype.start = function() {
28221
28221
  this.stopped = !1, this.consecutiveRemovalFailures = 0, this.flush();
28222
28222
  };
28223
- Ue.prototype.stop = function() {
28223
+ Ve.prototype.stop = function() {
28224
28224
  this.stopped = !0, this.timeoutID && (clearTimeout(this.timeoutID), this.timeoutID = null);
28225
28225
  };
28226
- Ue.prototype.clear = function() {
28226
+ Ve.prototype.clear = function() {
28227
28227
  this.queue.clear();
28228
28228
  };
28229
- Ue.prototype.resetBatchSize = function() {
28229
+ Ve.prototype.resetBatchSize = function() {
28230
28230
  this.batchSize = this.libConfig.batch_size;
28231
28231
  };
28232
- Ue.prototype.resetFlush = function() {
28232
+ Ve.prototype.resetFlush = function() {
28233
28233
  this.scheduleFlush(this.libConfig.batch_flush_interval_ms);
28234
28234
  };
28235
- Ue.prototype.scheduleFlush = function(n) {
28235
+ Ve.prototype.scheduleFlush = function(n) {
28236
28236
  this.flushInterval = n, this.stopped || (this.timeoutID = setTimeout(m.bind(function() {
28237
28237
  this.stopped || this.flush();
28238
28238
  }, this), this.flushInterval));
28239
28239
  };
28240
- Ue.prototype.flush = function(n) {
28240
+ Ve.prototype.flush = function(n) {
28241
28241
  try {
28242
28242
  if (this.requestInProgress) {
28243
28243
  $n.log("Flush: Request already in progress");
@@ -28316,7 +28316,7 @@ Ue.prototype.flush = function(n) {
28316
28316
  this.reportError("Error flushing request queue", v), this.resetFlush();
28317
28317
  }
28318
28318
  };
28319
- Ue.prototype.reportError = function(n, e) {
28319
+ Ve.prototype.reportError = function(n, e) {
28320
28320
  if ($n.error.apply($n.error, arguments), this.errorReporter)
28321
28321
  try {
28322
28322
  e instanceof Error || (e = new Error(n)), this.errorReporter(n, e);
@@ -28324,7 +28324,7 @@ Ue.prototype.reportError = function(n, e) {
28324
28324
  $n.error(i);
28325
28325
  }
28326
28326
  };
28327
- var wn = Ki("recorder"), Cs = H.CompressionStream, Sd = {
28327
+ var wn = ji("recorder"), Ss = H.CompressionStream, Sd = {
28328
28328
  batch_size: 1e3,
28329
28329
  batch_flush_interval_ms: 10 * 1e3,
28330
28330
  batch_request_timeout_ms: 90 * 1e3,
@@ -28347,7 +28347,7 @@ var Ke = function(n) {
28347
28347
  this._mixpanel = n, this._stopRecording = null, this.recEvents = [], this.seqNo = 0, this.replayId = null, this.replayStartTime = null, this.sendBatchId = null, this.idleTimeoutId = null, this.maxTimeoutId = null, this.recordMaxMs = Jn, this.recordMinMs = 0, this._initBatcher();
28348
28348
  };
28349
28349
  Ke.prototype._initBatcher = function() {
28350
- this.batcher = new Ue("__mprec", {
28350
+ this.batcher = new Ve("__mprec", {
28351
28351
  libConfig: Sd,
28352
28352
  sendRequestFunc: m.bind(this.flushEventsWithOptOut, this),
28353
28353
  errorReporter: m.bind(this.reportError, this),
@@ -28363,7 +28363,7 @@ Ke.prototype.startRecording = function(n) {
28363
28363
  wn.log("Recording already in progress, skipping startRecording.");
28364
28364
  return;
28365
28365
  }
28366
- this.recordMaxMs = this.get_config("record_max_ms"), this.recordMaxMs > Jn && (this.recordMaxMs = Jn, wn.critical("record_max_ms cannot be greater than " + Jn + "ms. Capping value.")), this.recordMinMs = this.get_config("record_min_ms"), this.recordMinMs > st && (this.recordMinMs = st, wn.critical("record_min_ms cannot be greater than " + st + "ms. Capping value.")), this.recEvents = [], this.seqNo = 0, this.replayStartTime = (/* @__PURE__ */ new Date()).getTime(), this.replayId = m.UUID(), n || this.recordMinMs > 0 ? this.batcher.stop() : this.batcher.start();
28366
+ this.recordMaxMs = this.get_config("record_max_ms"), this.recordMaxMs > Jn && (this.recordMaxMs = Jn, wn.critical("record_max_ms cannot be greater than " + Jn + "ms. Capping value.")), this.recordMinMs = this.get_config("record_min_ms"), this.recordMinMs > ot && (this.recordMinMs = ot, wn.critical("record_min_ms cannot be greater than " + ot + "ms. Capping value.")), this.recEvents = [], this.seqNo = 0, this.replayStartTime = (/* @__PURE__ */ new Date()).getTime(), this.replayId = m.UUID(), n || this.recordMinMs > 0 ? this.batcher.stop() : this.batcher.start();
28367
28367
  var e = m.bind(function() {
28368
28368
  clearTimeout(this.idleTimeoutId), this.idleTimeoutId = setTimeout(m.bind(function() {
28369
28369
  wn.log("Idle timeout reached, restarting recording."), this.resetRecording();
@@ -28435,8 +28435,8 @@ Ke.prototype._flushEvents = mn(function(n, e, i) {
28435
28435
  }, d = m.JSONEncode(n), p = this._mixpanel.get_property("$device_id");
28436
28436
  p && (l.$device_id = p);
28437
28437
  var v = this._mixpanel.get_property("$user_id");
28438
- if (v && (l.$user_id = v), Cs) {
28439
- var g = new Blob([d], { type: "application/json" }).stream(), f = g.pipeThrough(new Cs("gzip"));
28438
+ if (v && (l.$user_id = v), Ss) {
28439
+ var g = new Blob([d], { type: "application/json" }).stream(), f = g.pipeThrough(new Ss("gzip"));
28440
28440
  new Response(f).blob().then(m.bind(function(y) {
28441
28441
  l.format = "gzip", this._sendRequest(s, l, y, i);
28442
28442
  }, this));
@@ -28504,19 +28504,19 @@ On.prototype.after_track_handler = function(n, e) {
28504
28504
  window.location = e.href;
28505
28505
  }, 0);
28506
28506
  };
28507
- var ji = function() {
28507
+ var Fi = function() {
28508
28508
  this.override_event = "submit";
28509
28509
  };
28510
- m.inherit(ji, tn);
28511
- ji.prototype.event_handler = function(n, e, i) {
28510
+ m.inherit(Fi, tn);
28511
+ Fi.prototype.event_handler = function(n, e, i) {
28512
28512
  i.element = e, n.preventDefault();
28513
28513
  };
28514
- ji.prototype.after_track_handler = function(n, e) {
28514
+ Fi.prototype.after_track_handler = function(n, e) {
28515
28515
  setTimeout(function() {
28516
28516
  e.element.submit();
28517
28517
  }, 0);
28518
28518
  };
28519
- var hn = "$set", Vn = "$set_once", Re = "$unset", Mn = "$add", qe = "$append", An = "$union", en = "$remove", _d = "$delete", ro = {
28519
+ var hn = "$set", Un = "$set_once", Re = "$unset", Mn = "$add", qe = "$append", An = "$union", en = "$remove", _d = "$delete", ro = {
28520
28520
  set_action: function(n, e) {
28521
28521
  var i = {}, t = {};
28522
28522
  return m.isObject(n) ? m.each(n, function(s, o) {
@@ -28533,7 +28533,7 @@ var hn = "$set", Vn = "$set_once", Re = "$unset", Mn = "$add", qe = "$append", A
28533
28533
  var i = {}, t = {};
28534
28534
  return m.isObject(n) ? m.each(n, function(s, o) {
28535
28535
  this._is_reserved_property(o) || (t[o] = s);
28536
- }, this) : t[n] = e, i[Vn] = t, i;
28536
+ }, this) : t[n] = e, i[Un] = t, i;
28537
28537
  },
28538
28538
  union_action: function(n, e) {
28539
28539
  var i = {}, t = {};
@@ -28703,7 +28703,7 @@ R.prototype._identify_called = function() {
28703
28703
  return this._mixpanel._flags.identify_called === !0;
28704
28704
  };
28705
28705
  R.prototype._enqueue = function(n) {
28706
- hn in n ? this._mixpanel.persistence._add_to_people_queue(hn, n) : Vn in n ? this._mixpanel.persistence._add_to_people_queue(Vn, n) : Re in n ? this._mixpanel.persistence._add_to_people_queue(Re, n) : Mn in n ? this._mixpanel.persistence._add_to_people_queue(Mn, n) : qe in n ? this._mixpanel.persistence._add_to_people_queue(qe, n) : en in n ? this._mixpanel.persistence._add_to_people_queue(en, n) : An in n ? this._mixpanel.persistence._add_to_people_queue(An, n) : $.error("Invalid call to _enqueue():", n);
28706
+ hn in n ? this._mixpanel.persistence._add_to_people_queue(hn, n) : Un in n ? this._mixpanel.persistence._add_to_people_queue(Un, n) : Re in n ? this._mixpanel.persistence._add_to_people_queue(Re, n) : Mn in n ? this._mixpanel.persistence._add_to_people_queue(Mn, n) : qe in n ? this._mixpanel.persistence._add_to_people_queue(qe, n) : en in n ? this._mixpanel.persistence._add_to_people_queue(en, n) : An in n ? this._mixpanel.persistence._add_to_people_queue(An, n) : $.error("Invalid call to _enqueue():", n);
28707
28707
  };
28708
28708
  R.prototype._flush_one_queue = function(n, e, i, t) {
28709
28709
  var s = this, o = m.extend({}, this._mixpanel.persistence.load_queue(n)), a = o;
@@ -28713,7 +28713,7 @@ R.prototype._flush_one_queue = function(n, e, i, t) {
28713
28713
  };
28714
28714
  R.prototype._flush = function(n, e, i, t, s, o, a) {
28715
28715
  var l = this;
28716
- this._flush_one_queue(hn, this.set, n), this._flush_one_queue(Vn, this.set_once, t), this._flush_one_queue(Re, this.unset, o, function(w) {
28716
+ this._flush_one_queue(hn, this.set, n), this._flush_one_queue(Un, this.set_once, t), this._flush_one_queue(Re, this.unset, o, function(w) {
28717
28717
  return m.keys(w);
28718
28718
  }), this._flush_one_queue(Mn, this.increment, e), this._flush_one_queue(An, this.union, s);
28719
28719
  var d = this._mixpanel.persistence.load_queue(qe);
@@ -28743,16 +28743,16 @@ 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", Ni = "__alias", ei = "__timers", Md = [
28747
- Ct,
28746
+ var St = "__mps", kt = "__mpso", wt = "__mpus", _t = "__mpa", Mt = "__mpap", At = "__mpr", Lt = "__mpu", lo = "$people_distinct_id", Bi = "__alias", ei = "__timers", Md = [
28748
28747
  St,
28749
28748
  kt,
28750
28749
  wt,
28751
28750
  _t,
28752
28751
  Mt,
28753
28752
  At,
28753
+ Lt,
28754
28754
  lo,
28755
- Ni,
28755
+ Bi,
28756
28756
  ei
28757
28757
  ], F = function(n) {
28758
28758
  this.props = {}, this.campaign_params_saved = !1, n.persistence_name ? this.name = "mp_" + n.persistence_name : this.name = "mp_" + n.token + "_mixpanel";
@@ -28843,20 +28843,20 @@ F.prototype.set_secure = function(n) {
28843
28843
  n !== this.secure && (this.secure = !!n, this.remove(), this.save());
28844
28844
  };
28845
28845
  F.prototype._add_to_people_queue = function(n, e) {
28846
- var i = this._get_queue_key(n), t = e[n], s = this._get_or_create_queue(hn), o = this._get_or_create_queue(Vn), a = this._get_or_create_queue(Re), l = this._get_or_create_queue(Mn), d = this._get_or_create_queue(An), p = this._get_or_create_queue(en, []), v = this._get_or_create_queue(qe, []);
28847
- i === Ct ? (m.extend(s, t), this._pop_from_people_queue(Mn, t), this._pop_from_people_queue(An, t), this._pop_from_people_queue(Re, t)) : i === St ? (m.each(t, function(g, f) {
28846
+ var i = this._get_queue_key(n), t = e[n], s = this._get_or_create_queue(hn), o = this._get_or_create_queue(Un), a = this._get_or_create_queue(Re), l = this._get_or_create_queue(Mn), d = this._get_or_create_queue(An), p = this._get_or_create_queue(en, []), v = this._get_or_create_queue(qe, []);
28847
+ i === St ? (m.extend(s, t), this._pop_from_people_queue(Mn, t), this._pop_from_people_queue(An, t), this._pop_from_people_queue(Re, t)) : i === kt ? (m.each(t, function(g, f) {
28848
28848
  f in o || (o[f] = g);
28849
- }), this._pop_from_people_queue(Re, t)) : i === kt ? m.each(t, function(g) {
28849
+ }), this._pop_from_people_queue(Re, t)) : i === wt ? m.each(t, function(g) {
28850
28850
  m.each([s, o, l, d], function(f) {
28851
28851
  g in f && delete f[g];
28852
28852
  }), m.each(v, function(f) {
28853
28853
  g in f && delete f[g];
28854
28854
  }), a[g] = !0;
28855
- }) : i === wt ? (m.each(t, function(g, f) {
28855
+ }) : i === _t ? (m.each(t, function(g, f) {
28856
28856
  f in s ? s[f] += g : (f in l || (l[f] = 0), l[f] += g);
28857
- }, this), this._pop_from_people_queue(Re, t)) : i === At ? (m.each(t, function(g, f) {
28857
+ }, this), this._pop_from_people_queue(Re, t)) : i === Lt ? (m.each(t, function(g, f) {
28858
28858
  m.isArray(g) && (f in d || (d[f] = []), d[f] = d[f].concat(g));
28859
- }), this._pop_from_people_queue(Re, t)) : i === Mt ? (p.push(t), this._pop_from_people_queue(qe, t)) : i === _t && (v.push(t), this._pop_from_people_queue(Re, t)), $.log("MIXPANEL PEOPLE REQUEST (QUEUED, PENDING IDENTIFY):"), $.log(e), this.save();
28859
+ }), this._pop_from_people_queue(Re, t)) : i === At ? (p.push(t), this._pop_from_people_queue(qe, t)) : i === Mt && (v.push(t), this._pop_from_people_queue(Re, t)), $.log("MIXPANEL PEOPLE REQUEST (QUEUED, PENDING IDENTIFY):"), $.log(e), this.save();
28860
28860
  };
28861
28861
  F.prototype._pop_from_people_queue = function(n, e) {
28862
28862
  var i = this.props[this._get_queue_key(n)];
@@ -28871,19 +28871,19 @@ F.prototype.load_queue = function(n) {
28871
28871
  };
28872
28872
  F.prototype._get_queue_key = function(n) {
28873
28873
  if (n === hn)
28874
- return Ct;
28875
- if (n === Vn)
28876
28874
  return St;
28877
- if (n === Re)
28875
+ if (n === Un)
28878
28876
  return kt;
28879
- if (n === Mn)
28877
+ if (n === Re)
28880
28878
  return wt;
28881
- if (n === qe)
28879
+ if (n === Mn)
28882
28880
  return _t;
28883
- if (n === en)
28881
+ if (n === qe)
28884
28882
  return Mt;
28885
- if (n === An)
28883
+ if (n === en)
28886
28884
  return At;
28885
+ if (n === An)
28886
+ return Lt;
28887
28887
  $.error("Invalid queue:", n);
28888
28888
  };
28889
28889
  F.prototype._get_or_create_queue = function(n, e) {
@@ -28898,13 +28898,13 @@ F.prototype.remove_event_timer = function(n) {
28898
28898
  var e = this.load_prop(ei) || {}, i = e[n];
28899
28899
  return m.isUndefined(i) || (delete this.props[ei][n], this.save()), i;
28900
28900
  };
28901
- var Lt, uo = function(n, e) {
28901
+ var xt, uo = function(n, e) {
28902
28902
  throw new Error(n + " not available in this build.");
28903
28903
  }, Se, co = 0, Ad = 1, Ld = function(n) {
28904
28904
  return n;
28905
28905
  }, ni = 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() {
28906
+ }, De = "mixpanel", ho = "base64", xd = "json", Tt = "$device:", Hn = H.XMLHttpRequest && "withCredentials" in new XMLHttpRequest(), mo = !Hn && Ge.indexOf("MSIE") === -1 && Ge.indexOf("Mozilla") === -1, Hi = null;
28907
+ un.sendBeacon && (Hi = function() {
28908
28908
  return un.sendBeacon.apply(un, arguments);
28909
28909
  });
28910
28910
  var vo = {
@@ -28912,7 +28912,7 @@ var vo = {
28912
28912
  engage: "engage/",
28913
28913
  groups: "groups/",
28914
28914
  record: "record/"
28915
- }, Ss = {
28915
+ }, ks = {
28916
28916
  api_host: "https://api-js.mixpanel.com",
28917
28917
  api_routes: vo,
28918
28918
  api_method: "POST",
@@ -28973,9 +28973,9 @@ var vo = {
28973
28973
  record_sessions_percent: 0,
28974
28974
  recorder_src: "https://cdn.mxpnl.com/libs/mixpanel-recorder.min.js"
28975
28975
  }, po = !1, L = function() {
28976
- }, ht = function(n, e, i) {
28976
+ }, mt = function(n, e, i) {
28977
28977
  var t, s = i === De ? Se : Se[i];
28978
- if (s && Lt === co)
28978
+ if (s && xt === co)
28979
28979
  t = s;
28980
28980
  else {
28981
28981
  if (s && !m.isArray(s)) {
@@ -29001,17 +29001,17 @@ L.prototype.init = function(n, e, i) {
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
  }
29004
- var t = ht(n, e, i);
29004
+ var t = mt(n, e, i);
29005
29005
  return Se[i] = t, t._loaded(), t;
29006
29006
  };
29007
29007
  L.prototype._init = function(n, e, i) {
29008
29008
  e = e || {}, this.__loaded = !0, this.config = {};
29009
29009
  var t = {};
29010
29010
  if (!("api_payload_format" in e)) {
29011
- var s = e.api_host || Ss.api_host;
29011
+ var s = e.api_host || ks.api_host;
29012
29012
  s.match(/\.mixpanel\.com/) && (t.api_payload_format = xd);
29013
29013
  }
29014
- if (this.set_config(m.extend({}, Ss, t, e, {
29014
+ if (this.set_config(m.extend({}, ks, t, e, {
29015
29015
  name: i,
29016
29016
  token: n,
29017
29017
  callback_fn: (i === De ? i : De + "." + i) + "._jsc"
@@ -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(), Bi && H.addEventListener) {
29026
+ else if (this.init_batchers(), Hi && 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);
@@ -29037,7 +29037,7 @@ L.prototype._init = function(n, e, i) {
29037
29037
  this.persistence = this.cookie = new F(this.config), this.unpersisted_superprops = {}, this._gdpr_init();
29038
29038
  var a = m.UUID();
29039
29039
  this.get_distinct_id() || this.register_once({
29040
- distinct_id: xt + a,
29040
+ distinct_id: Tt + a,
29041
29041
  $device_id: a
29042
29042
  }, "");
29043
29043
  var l = this.get_config("track_pageview");
@@ -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 = Bi && l && i.transport.toLowerCase() === "sendbeacon", p = i.verbose;
29142
+ var l = i.method === "POST", d = Hi && 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 = Bi(n, a);
29150
+ s = Hi(n, a);
29151
29151
  } catch (M) {
29152
29152
  v.report_error(M), s = !1;
29153
29153
  }
@@ -29237,7 +29237,7 @@ L.prototype.get_batcher_configs = function() {
29237
29237
  L.prototype.init_batchers = function() {
29238
29238
  if (!this.are_batchers_initialized()) {
29239
29239
  var n = m.bind(function(i) {
29240
- return new Ue(
29240
+ return new Ve(
29241
29241
  i.queue_key,
29242
29242
  {
29243
29243
  libConfig: this.config,
@@ -29398,7 +29398,7 @@ L.prototype.track_links = function() {
29398
29398
  return this._track_dom.call(this, On, arguments);
29399
29399
  };
29400
29400
  L.prototype.track_forms = function() {
29401
- return this._track_dom.call(this, ji, arguments);
29401
+ return this._track_dom.call(this, Fi, arguments);
29402
29402
  };
29403
29403
  L.prototype.time_event = function(n) {
29404
29404
  if (m.isUndefined(n)) {
@@ -29409,22 +29409,22 @@ L.prototype.time_event = function(n) {
29409
29409
  };
29410
29410
  var Td = {
29411
29411
  persistent: !0
29412
- }, Tt = function(n) {
29412
+ }, Et = function(n) {
29413
29413
  var e;
29414
29414
  return m.isObject(n) ? e = n : m.isUndefined(n) ? e = {} : e = { days: n }, m.extend({}, Td, e);
29415
29415
  };
29416
29416
  L.prototype.register = function(n, e) {
29417
- var i = Tt(e);
29417
+ var i = Et(e);
29418
29418
  i.persistent ? this.persistence.register(n, i.days) : m.extend(this.unpersisted_superprops, n);
29419
29419
  };
29420
29420
  L.prototype.register_once = function(n, e, i) {
29421
- var t = Tt(i);
29421
+ var t = Et(i);
29422
29422
  t.persistent ? this.persistence.register_once(n, e, t.days) : (typeof e > "u" && (e = "None"), m.each(n, function(s, o) {
29423
29423
  (!this.unpersisted_superprops.hasOwnProperty(o) || this.unpersisted_superprops[o] === e) && (this.unpersisted_superprops[o] = s);
29424
29424
  }, this));
29425
29425
  };
29426
29426
  L.prototype.unregister = function(n, e) {
29427
- e = Tt(e), e.persistent ? this.persistence.unregister(n) : delete this.unpersisted_superprops[n];
29427
+ e = Et(e), e.persistent ? this.persistence.unregister(n) : delete this.unpersisted_superprops[n];
29428
29428
  };
29429
29429
  L.prototype._register_single = function(n, e) {
29430
29430
  var i = {};
@@ -29433,7 +29433,7 @@ L.prototype._register_single = function(n, e) {
29433
29433
  L.prototype.identify = function(n, e, i, t, s, o, a, l) {
29434
29434
  var d = this.get_distinct_id();
29435
29435
  if (n && d !== n) {
29436
- if (typeof n == "string" && n.indexOf(xt) === 0)
29436
+ if (typeof n == "string" && n.indexOf(Tt) === 0)
29437
29437
  return this.report_error("distinct_id cannot have $device: prefix"), -1;
29438
29438
  this.register({ $user_id: n });
29439
29439
  }
@@ -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(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", {
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", {
29448
29448
  distinct_id: n,
29449
29449
  $anon_distinct_id: d
29450
29450
  }, { skip_hooks: !0 });
@@ -29453,7 +29453,7 @@ L.prototype.reset = function() {
29453
29453
  this.persistence.clear(), this._flags.identify_called = !1;
29454
29454
  var n = m.UUID();
29455
29455
  this.register_once({
29456
- distinct_id: xt + n,
29456
+ distinct_id: Tt + n,
29457
29457
  $device_id: n
29458
29458
  }, "");
29459
29459
  };
@@ -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(Ni, n), this.track("$create_alias", {
29467
+ return m.isUndefined(e) && (e = this.get_distinct_id()), n !== e ? (this._register_single(Bi, n), this.track("$create_alias", {
29468
29468
  alias: n,
29469
29469
  distinct_id: e
29470
29470
  }, {
@@ -29623,9 +29623,9 @@ var Bn = {}, Ed = function() {
29623
29623
  }, Pd = function() {
29624
29624
  Se.init = function(n, e, i) {
29625
29625
  if (i)
29626
- return Se[i] || (Se[i] = Bn[i] = ht(n, e, i), Se[i]._loaded()), Se[i];
29626
+ return Se[i] || (Se[i] = Bn[i] = mt(n, e, i), Se[i]._loaded()), Se[i];
29627
29627
  var t = Se;
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();
29628
+ Bn[De] ? t = Bn[De] : n && (t = mt(n, e, De), t._loaded(), Bn[De] = t), Se = t, xt === Ad && (H[De] = Se), Ed();
29629
29629
  };
29630
29630
  }, Id = function() {
29631
29631
  function n() {
@@ -29656,7 +29656,7 @@ var Bn = {}, Ed = function() {
29656
29656
  m.register_event(H, "load", n, !0);
29657
29657
  };
29658
29658
  function Dd(n) {
29659
- return uo = n, Lt = co, Se = new L(), Pd(), Se.init(), Id(), Se;
29659
+ return uo = n, xt = co, Se = new L(), Pd(), Se.init(), Id(), Se;
29660
29660
  }
29661
29661
  function Nd(n, e) {
29662
29662
  e();
@@ -29698,14 +29698,19 @@ class fo {
29698
29698
  h(this, "callBackUrl");
29699
29699
  h(this, "paymentResponse");
29700
29700
  h(this, "paymentResponseHeaders");
29701
- this.container = e.container, this.onAction = e.onAction, this.callBackUrl = e.callBackUrl, this.paymentResponse = e.paymentResponse, this.paymentResponseHeaders = e.paymentResponseHeaders;
29701
+ h(this, "paymentMethod");
29702
+ this.container = e.container, this.onAction = e.onAction, this.callBackUrl = e.callBackUrl, this.paymentResponse = e.paymentResponse, this.paymentResponseHeaders = e.paymentResponseHeaders, this.paymentMethod = e.paymentMethod;
29702
29703
  }
29703
29704
  attachListeners() {
29704
29705
  const e = this.container.querySelector(
29705
29706
  "#goback-to-merchant"
29706
29707
  );
29707
29708
  e && e.addEventListener("click", () => {
29708
- nn(
29709
+ var i;
29710
+ P.track("redirect_to_merchant", {
29711
+ payment_method: this.paymentMethod,
29712
+ status: (i = this.paymentResponse) == null ? void 0 : i.status
29713
+ }), nn(
29709
29714
  this.paymentResponse,
29710
29715
  this.paymentResponseHeaders,
29711
29716
  this.callBackUrl
@@ -29713,7 +29718,11 @@ class fo {
29713
29718
  });
29714
29719
  }
29715
29720
  renderComponent() {
29716
- this.container.innerHTML = this.render(), this.attachListeners();
29721
+ var e;
29722
+ this.container.innerHTML = this.render(), P.track("payment_timeout", {
29723
+ payment_method: this.paymentMethod,
29724
+ status: (e = this.paymentResponse) == null ? void 0 : e.status
29725
+ }), this.attachListeners();
29717
29726
  }
29718
29727
  render() {
29719
29728
  return bo;
@@ -29838,7 +29847,407 @@ class Hd {
29838
29847
  return Bd;
29839
29848
  }
29840
29849
  }
29841
- class Rd {
29850
+ const Rd = `<div class="flex items-center justify-center md:justify-between w-full text-xxs mt-5">
29851
+ <div class="text-tone-60"><span>Powered by</span> <span class="font-bold">Spotflow</span></div>
29852
+ <div class="align-center text-tone-60 hidden md:flex gap-4">
29853
+ <span id="test-cards-link" class="hover:font-bold">Test Cards</span>
29854
+ <a href="https://ribbon-scowl-35f.notion.site/Terms-Conditions-940742f0a1b144498ffc1786c5bc6a08?pvs=4" target="_blank" class="hover:font-bold">Terms</a>
29855
+ <a href="https://ribbon-scowl-35f.notion.site/Privacy-Policy-Spotflow-3997ee8d923d4cd39a3dc43b7249b713" target="_blank" class="hover:font-bold">Privacy</a>
29856
+ <a href="mailto:hello@spotflow.one" class="hover:font-bold">Contact</a>
29857
+ </div>
29858
+ </div>`, Od = `<div class="box-container flex-1">
29859
+ <!-- test-cards.html -->
29860
+ <div class="bg-gray-100 py-2 px-4 rounded-lg mt-4 relative">
29861
+ <div class="flex items-start gap-4 mb-4">
29862
+ <nav id="test-card-tabs"
29863
+ class="flex w-full font-medium items-start gap-6 border-b border-tone-10 text-base text-tone-40 mb-2">
29864
+ <button class="tab-btn active-tab" data-target="no-auth">No auth</button>
29865
+ <button class="tab-btn" data-target="pin">Pin</button>
29866
+ <button class="tab-btn" data-target="pin-otp">Pin + OTP</button>
29867
+ <button class="tab-btn" data-target="3ds">3DS</button>
29868
+ <button class="tab-btn" data-target="avs">AVS</button>
29869
+ </nav>
29870
+ <!-- Close Icon -->
29871
+ <button id="close-test-card" class="text-gray-500 hover:text-black">
29872
+
29873
+ </button>
29874
+ </div>
29875
+
29876
+ <!-- Section contents -->
29877
+ <div id="no-auth" class="tab-content grid gap-3 border border-tone-50 px-6 py-4 rounded-2xl mb-4">
29878
+ <div class="flex justify-between items-center">
29879
+ <span class="text-tone-60 font-medium text-sm">Number</span>
29880
+ <div class="flex items-center gap-1">
29881
+ <span data-copy-value="4111112000062555" class="text-tone-100 text-sm font-medium">4111112000062555</span>
29882
+ <button class="copy-btn p-1 hover:opacity-80 transition-opacity">
29883
+ <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
29884
+ <path
29885
+ d="M4.66667 3.99992V1.99992C4.66667 1.82311 4.7369 1.65354 4.86193 1.52851C4.98695 1.40349 5.15652 1.33325 5.33333 1.33325H13.3333C13.5101 1.33325 13.6797 1.40349 13.8047 1.52851C13.9298 1.65354 14 1.82311 14 1.99992V11.3333C14 11.5101 13.9298 11.6796 13.8047 11.8047C13.6797 11.9297 13.5101 11.9999 13.3333 11.9999H11.3333V13.9999C11.3333 14.3679 11.0333 14.6666 10.662 14.6666H2.67133C2.58342 14.6671 2.49626 14.6503 2.41488 14.617C2.3335 14.5837 2.25949 14.5347 2.19711 14.4728C2.13472 14.4108 2.0852 14.3372 2.05137 14.256C2.01754 14.1749 2.00009 14.0878 2 13.9999L2.002 4.66659C2.002 4.29859 2.302 3.99992 2.67333 3.99992H4.66667ZM3.33533 5.33325L3.33333 13.3333H10V5.33325H3.33533ZM6 3.99992H11.3333V10.6666H12.6667V2.66659H6V3.99992Z"
29886
+ fill="#0D0716" />
29887
+ </svg>
29888
+ </button>
29889
+ </div>
29890
+ </div>
29891
+ <div class="flex justify-between items-center">
29892
+ <span class="text-tone-60 font-medium text-sm">Expiry</span>
29893
+ <div class="flex items-center gap-1">
29894
+ <span data-copy-value="12/30" class="text-tone-100 text-sm font-medium">12/2030 </span>
29895
+ <button class="copy-btn p-1 hover:opacity-80 transition-opacity">
29896
+ <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
29897
+ <path
29898
+ d="M4.66667 3.99992V1.99992C4.66667 1.82311 4.7369 1.65354 4.86193 1.52851C4.98695 1.40349 5.15652 1.33325 5.33333 1.33325H13.3333C13.5101 1.33325 13.6797 1.40349 13.8047 1.52851C13.9298 1.65354 14 1.82311 14 1.99992V11.3333C14 11.5101 13.9298 11.6796 13.8047 11.8047C13.6797 11.9297 13.5101 11.9999 13.3333 11.9999H11.3333V13.9999C11.3333 14.3679 11.0333 14.6666 10.662 14.6666H2.67133C2.58342 14.6671 2.49626 14.6503 2.41488 14.617C2.3335 14.5837 2.25949 14.5347 2.19711 14.4728C2.13472 14.4108 2.0852 14.3372 2.05137 14.256C2.01754 14.1749 2.00009 14.0878 2 13.9999L2.002 4.66659C2.002 4.29859 2.302 3.99992 2.67333 3.99992H4.66667ZM3.33533 5.33325L3.33333 13.3333H10V5.33325H3.33533ZM6 3.99992H11.3333V10.6666H12.6667V2.66659H6V3.99992Z"
29899
+ fill="#0D0716" />
29900
+ </svg>
29901
+ </button>
29902
+ </div>
29903
+ </div>
29904
+ <div class="flex justify-between items-center">
29905
+ <span class="text-tone-60 font-medium text-sm">CVV</span>
29906
+ <div class="flex items-center gap-1">
29907
+ <span data-copy-value="455" class="text-tone-100 text-sm font-medium">455 </span>
29908
+ <button class="copy-btn p-1 hover:opacity-80 transition-opacity">
29909
+ <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
29910
+ <path
29911
+ d="M4.66667 3.99992V1.99992C4.66667 1.82311 4.7369 1.65354 4.86193 1.52851C4.98695 1.40349 5.15652 1.33325 5.33333 1.33325H13.3333C13.5101 1.33325 13.6797 1.40349 13.8047 1.52851C13.9298 1.65354 14 1.82311 14 1.99992V11.3333C14 11.5101 13.9298 11.6796 13.8047 11.8047C13.6797 11.9297 13.5101 11.9999 13.3333 11.9999H11.3333V13.9999C11.3333 14.3679 11.0333 14.6666 10.662 14.6666H2.67133C2.58342 14.6671 2.49626 14.6503 2.41488 14.617C2.3335 14.5837 2.25949 14.5347 2.19711 14.4728C2.13472 14.4108 2.0852 14.3372 2.05137 14.256C2.01754 14.1749 2.00009 14.0878 2 13.9999L2.002 4.66659C2.002 4.29859 2.302 3.99992 2.67333 3.99992H4.66667ZM3.33533 5.33325L3.33333 13.3333H10V5.33325H3.33533ZM6 3.99992H11.3333V10.6666H12.6667V2.66659H6V3.99992Z"
29912
+ fill="#0D0716" />
29913
+ </svg>
29914
+ </button>
29915
+ </div>
29916
+ </div>
29917
+ </div>
29918
+
29919
+ <!-- Pin -->
29920
+ <div id="pin" class="hidden tab-content">
29921
+ <div class=" grid gap-3 border border-tone-50 px-6 py-4 rounded-2xl mb-4">
29922
+ <div class="flex justify-between items-center">
29923
+ <span class="text-tone-60 font-medium text-sm">Number</span>
29924
+ <div class="flex items-center gap-1">
29925
+ <span data-copy-value="5555558684543932"
29926
+ class="text-tone-100 text-sm font-medium">5555558684543932 </span>
29927
+ <button class="copy-btn p-1 hover:opacity-80 transition-opacity">
29928
+ <svg width="16" height="16" viewBox="0 0 16 16" fill="none"
29929
+ xmlns="http://www.w3.org/2000/svg">
29930
+ <path
29931
+ d="M4.66667 3.99992V1.99992C4.66667 1.82311 4.7369 1.65354 4.86193 1.52851C4.98695 1.40349 5.15652 1.33325 5.33333 1.33325H13.3333C13.5101 1.33325 13.6797 1.40349 13.8047 1.52851C13.9298 1.65354 14 1.82311 14 1.99992V11.3333C14 11.5101 13.9298 11.6796 13.8047 11.8047C13.6797 11.9297 13.5101 11.9999 13.3333 11.9999H11.3333V13.9999C11.3333 14.3679 11.0333 14.6666 10.662 14.6666H2.67133C2.58342 14.6671 2.49626 14.6503 2.41488 14.617C2.3335 14.5837 2.25949 14.5347 2.19711 14.4728C2.13472 14.4108 2.0852 14.3372 2.05137 14.256C2.01754 14.1749 2.00009 14.0878 2 13.9999L2.002 4.66659C2.002 4.29859 2.302 3.99992 2.67333 3.99992H4.66667ZM3.33533 5.33325L3.33333 13.3333H10V5.33325H3.33533ZM6 3.99992H11.3333V10.6666H12.6667V2.66659H6V3.99992Z"
29932
+ fill="#0D0716" />
29933
+ </svg>
29934
+ </button>
29935
+ </div>
29936
+ </div>
29937
+
29938
+ <div class="flex justify-between items-center">
29939
+ <span class="text-tone-60 font-medium text-sm">Expiry</span>
29940
+ <div class="flex items-center gap-1">
29941
+ <span data-copy-value="12/30" class="text-tone-100 text-sm font-medium">12/2030</span>
29942
+ <button class="copy-btn p-1 hover:opacity-80 transition-opacity">
29943
+ <svg width="16" height="16" viewBox="0 0 16 16" fill="none"
29944
+ xmlns="http://www.w3.org/2000/svg">
29945
+ <path
29946
+ d="M4.66667 3.99992V1.99992C4.66667 1.82311 4.7369 1.65354 4.86193 1.52851C4.98695 1.40349 5.15652 1.33325 5.33333 1.33325H13.3333C13.5101 1.33325 13.6797 1.40349 13.8047 1.52851C13.9298 1.65354 14 1.82311 14 1.99992V11.3333C14 11.5101 13.9298 11.6796 13.8047 11.8047C13.6797 11.9297 13.5101 11.9999 13.3333 11.9999H11.3333V13.9999C11.3333 14.3679 11.0333 14.6666 10.662 14.6666H2.67133C2.58342 14.6671 2.49626 14.6503 2.41488 14.617C2.3335 14.5837 2.25949 14.5347 2.19711 14.4728C2.13472 14.4108 2.0852 14.3372 2.05137 14.256C2.01754 14.1749 2.00009 14.0878 2 13.9999L2.002 4.66659C2.002 4.29859 2.302 3.99992 2.67333 3.99992H4.66667ZM3.33533 5.33325L3.33333 13.3333H10V5.33325H3.33533ZM6 3.99992H11.3333V10.6666H12.6667V2.66659H6V3.99992Z"
29947
+ fill="#0D0716" />
29948
+ </svg>
29949
+ </button>
29950
+ </div>
29951
+ </div>
29952
+ <div class="flex justify-between items-center">
29953
+ <span class="text-tone-60 font-medium text-sm">CVV</span>
29954
+ <div class="flex items-center gap-1">
29955
+ <span data-copy-value="321" class="text-tone-100 text-sm font-medium">321</span>
29956
+ <button class="copy-btn p-1 hover:opacity-80 transition-opacity">
29957
+ <svg width="16" height="16" viewBox="0 0 16 16" fill="none"
29958
+ xmlns="http://www.w3.org/2000/svg">
29959
+ <path
29960
+ d="M4.66667 3.99992V1.99992C4.66667 1.82311 4.7369 1.65354 4.86193 1.52851C4.98695 1.40349 5.15652 1.33325 5.33333 1.33325H13.3333C13.5101 1.33325 13.6797 1.40349 13.8047 1.52851C13.9298 1.65354 14 1.82311 14 1.99992V11.3333C14 11.5101 13.9298 11.6796 13.8047 11.8047C13.6797 11.9297 13.5101 11.9999 13.3333 11.9999H11.3333V13.9999C11.3333 14.3679 11.0333 14.6666 10.662 14.6666H2.67133C2.58342 14.6671 2.49626 14.6503 2.41488 14.617C2.3335 14.5837 2.25949 14.5347 2.19711 14.4728C2.13472 14.4108 2.0852 14.3372 2.05137 14.256C2.01754 14.1749 2.00009 14.0878 2 13.9999L2.002 4.66659C2.002 4.29859 2.302 3.99992 2.67333 3.99992H4.66667ZM3.33533 5.33325L3.33333 13.3333H10V5.33325H3.33533ZM6 3.99992H11.3333V10.6666H12.6667V2.66659H6V3.99992Z"
29961
+ fill="#0D0716" />
29962
+ </svg>
29963
+ </button>
29964
+ </div>
29965
+ </div>
29966
+ <div class="flex justify-between items-center">
29967
+ <span class="text-tone-60 font-medium text-sm">Pin</span>
29968
+ <div class="flex items-center gap-1">
29969
+ <span data-copy-value="4321" class="text-tone-100 text-sm font-medium">4321</span>
29970
+ <button class="copy-btn p-1 hover:opacity-80 transition-opacity">
29971
+ <svg width="16" height="16" viewBox="0 0 16 16" fill="none"
29972
+ xmlns="http://www.w3.org/2000/svg">
29973
+ <path
29974
+ d="M4.66667 3.99992V1.99992C4.66667 1.82311 4.7369 1.65354 4.86193 1.52851C4.98695 1.40349 5.15652 1.33325 5.33333 1.33325H13.3333C13.5101 1.33325 13.6797 1.40349 13.8047 1.52851C13.9298 1.65354 14 1.82311 14 1.99992V11.3333C14 11.5101 13.9298 11.6796 13.8047 11.8047C13.6797 11.9297 13.5101 11.9999 13.3333 11.9999H11.3333V13.9999C11.3333 14.3679 11.0333 14.6666 10.662 14.6666H2.67133C2.58342 14.6671 2.49626 14.6503 2.41488 14.617C2.3335 14.5837 2.25949 14.5347 2.19711 14.4728C2.13472 14.4108 2.0852 14.3372 2.05137 14.256C2.01754 14.1749 2.00009 14.0878 2 13.9999L2.002 4.66659C2.002 4.29859 2.302 3.99992 2.67333 3.99992H4.66667ZM3.33533 5.33325L3.33333 13.3333H10V5.33325H3.33533ZM6 3.99992H11.3333V10.6666H12.6667V2.66659H6V3.99992Z"
29975
+ fill="#0D0716" />
29976
+ </svg>
29977
+ </button>
29978
+ </div>
29979
+ </div>
29980
+ </div>
29981
+ </div>
29982
+
29983
+ <!-- Pin + OTP -->
29984
+ <div id="pin-otp" class="tab-content hidden">
29985
+ <div class=" grid gap-3 border border-tone-50 px-6 py-4 rounded-2xl mb-4">
29986
+ <div class="flex justify-between items-center">
29987
+ <span class="text-tone-60 font-medium text-sm">Number</span>
29988
+ <div class="flex items-center gap-1">
29989
+ <span data-copy-value="5555567973581842" class="text-tone-100 text-sm font-medium">5555567973581842</span>
29990
+ <button class="copy-btn p-1 hover:opacity-80 transition-opacity">
29991
+ <svg width="16" height="16" viewBox="0 0 16 16" fill="none"
29992
+ xmlns="http://www.w3.org/2000/svg">
29993
+ <path
29994
+ d="M4.66667 3.99992V1.99992C4.66667 1.82311 4.7369 1.65354 4.86193 1.52851C4.98695 1.40349 5.15652 1.33325 5.33333 1.33325H13.3333C13.5101 1.33325 13.6797 1.40349 13.8047 1.52851C13.9298 1.65354 14 1.82311 14 1.99992V11.3333C14 11.5101 13.9298 11.6796 13.8047 11.8047C13.6797 11.9297 13.5101 11.9999 13.3333 11.9999H11.3333V13.9999C11.3333 14.3679 11.0333 14.6666 10.662 14.6666H2.67133C2.58342 14.6671 2.49626 14.6503 2.41488 14.617C2.3335 14.5837 2.25949 14.5347 2.19711 14.4728C2.13472 14.4108 2.0852 14.3372 2.05137 14.256C2.01754 14.1749 2.00009 14.0878 2 13.9999L2.002 4.66659C2.002 4.29859 2.302 3.99992 2.67333 3.99992H4.66667ZM3.33533 5.33325L3.33333 13.3333H10V5.33325H3.33533ZM6 3.99992H11.3333V10.6666H12.6667V2.66659H6V3.99992Z"
29995
+ fill="#0D0716" />
29996
+ </svg>
29997
+ </button>
29998
+ </div>
29999
+ </div>
30000
+ <div class="flex justify-between items-center">
30001
+ <span class="text-tone-60 font-medium text-sm">Expiry</span>
30002
+ <div class="flex items-center gap-1">
30003
+ <span data-copy-value="12/30" class="text-tone-100 text-sm font-medium">12/2030</span>
30004
+ <button class="copy-btn p-1 hover:opacity-80 transition-opacity">
30005
+ <svg width="16" height="16" viewBox="0 0 16 16" fill="none"
30006
+ xmlns="http://www.w3.org/2000/svg">
30007
+ <path
30008
+ d="M4.66667 3.99992V1.99992C4.66667 1.82311 4.7369 1.65354 4.86193 1.52851C4.98695 1.40349 5.15652 1.33325 5.33333 1.33325H13.3333C13.5101 1.33325 13.6797 1.40349 13.8047 1.52851C13.9298 1.65354 14 1.82311 14 1.99992V11.3333C14 11.5101 13.9298 11.6796 13.8047 11.8047C13.6797 11.9297 13.5101 11.9999 13.3333 11.9999H11.3333V13.9999C11.3333 14.3679 11.0333 14.6666 10.662 14.6666H2.67133C2.58342 14.6671 2.49626 14.6503 2.41488 14.617C2.3335 14.5837 2.25949 14.5347 2.19711 14.4728C2.13472 14.4108 2.0852 14.3372 2.05137 14.256C2.01754 14.1749 2.00009 14.0878 2 13.9999L2.002 4.66659C2.002 4.29859 2.302 3.99992 2.67333 3.99992H4.66667ZM3.33533 5.33325L3.33333 13.3333H10V5.33325H3.33533ZM6 3.99992H11.3333V10.6666H12.6667V2.66659H6V3.99992Z"
30009
+ fill="#0D0716" />
30010
+ </svg>
30011
+ </button>
30012
+ </div>
30013
+ </div>
30014
+ <div class="flex justify-between items-center">
30015
+ <span class="text-tone-60 font-medium text-sm">CVV</span>
30016
+ <div class="flex items-center gap-1">
30017
+ <span data-copy-value="321" class="text-tone-100 text-sm font-medium">321</span>
30018
+ <button class="copy-btn p-1 hover:opacity-80 transition-opacity">
30019
+ <svg width="16" height="16" viewBox="0 0 16 16" fill="none"
30020
+ xmlns="http://www.w3.org/2000/svg">
30021
+ <path
30022
+ d="M4.66667 3.99992V1.99992C4.66667 1.82311 4.7369 1.65354 4.86193 1.52851C4.98695 1.40349 5.15652 1.33325 5.33333 1.33325H13.3333C13.5101 1.33325 13.6797 1.40349 13.8047 1.52851C13.9298 1.65354 14 1.82311 14 1.99992V11.3333C14 11.5101 13.9298 11.6796 13.8047 11.8047C13.6797 11.9297 13.5101 11.9999 13.3333 11.9999H11.3333V13.9999C11.3333 14.3679 11.0333 14.6666 10.662 14.6666H2.67133C2.58342 14.6671 2.49626 14.6503 2.41488 14.617C2.3335 14.5837 2.25949 14.5347 2.19711 14.4728C2.13472 14.4108 2.0852 14.3372 2.05137 14.256C2.01754 14.1749 2.00009 14.0878 2 13.9999L2.002 4.66659C2.002 4.29859 2.302 3.99992 2.67333 3.99992H4.66667ZM3.33533 5.33325L3.33333 13.3333H10V5.33325H3.33533ZM6 3.99992H11.3333V10.6666H12.6667V2.66659H6V3.99992Z"
30023
+ fill="#0D0716" />
30024
+ </svg>
30025
+ </button>
30026
+ </div>
30027
+ </div>
30028
+ <div class="flex justify-between items-center">
30029
+ <span class="text-tone-60 font-medium text-sm">Pin</span>
30030
+ <div class="flex items-center gap-1">
30031
+ <span data-copy-value="4321" class="text-tone-100 text-sm font-medium">4321</span>
30032
+ <button class="copy-btn p-1 hover:opacity-80 transition-opacity">
30033
+ <svg width="16" height="16" viewBox="0 0 16 16" fill="none"
30034
+ xmlns="http://www.w3.org/2000/svg">
30035
+ <path
30036
+ d="M4.66667 3.99992V1.99992C4.66667 1.82311 4.7369 1.65354 4.86193 1.52851C4.98695 1.40349 5.15652 1.33325 5.33333 1.33325H13.3333C13.5101 1.33325 13.6797 1.40349 13.8047 1.52851C13.9298 1.65354 14 1.82311 14 1.99992V11.3333C14 11.5101 13.9298 11.6796 13.8047 11.8047C13.6797 11.9297 13.5101 11.9999 13.3333 11.9999H11.3333V13.9999C11.3333 14.3679 11.0333 14.6666 10.662 14.6666H2.67133C2.58342 14.6671 2.49626 14.6503 2.41488 14.617C2.3335 14.5837 2.25949 14.5347 2.19711 14.4728C2.13472 14.4108 2.0852 14.3372 2.05137 14.256C2.01754 14.1749 2.00009 14.0878 2 13.9999L2.002 4.66659C2.002 4.29859 2.302 3.99992 2.67333 3.99992H4.66667ZM3.33533 5.33325L3.33333 13.3333H10V5.33325H3.33533ZM6 3.99992H11.3333V10.6666H12.6667V2.66659H6V3.99992Z"
30037
+ fill="#0D0716" />
30038
+ </svg>
30039
+ </button>
30040
+ </div>
30041
+ </div>
30042
+ <div class="flex justify-between items-center">
30043
+ <span class="text-tone-60 font-medium text-sm">OTP</span>
30044
+ <div class="flex items-center gap-1">
30045
+ <span data-copy-value="654321" class="text-tone-100 text-sm font-medium">654321</span>
30046
+ <button class="copy-btn p-1 hover:opacity-80 transition-opacity">
30047
+ <svg width="16" height="16" viewBox="0 0 16 16" fill="none"
30048
+ xmlns="http://www.w3.org/2000/svg">
30049
+ <path
30050
+ d="M4.66667 3.99992V1.99992C4.66667 1.82311 4.7369 1.65354 4.86193 1.52851C4.98695 1.40349 5.15652 1.33325 5.33333 1.33325H13.3333C13.5101 1.33325 13.6797 1.40349 13.8047 1.52851C13.9298 1.65354 14 1.82311 14 1.99992V11.3333C14 11.5101 13.9298 11.6796 13.8047 11.8047C13.6797 11.9297 13.5101 11.9999 13.3333 11.9999H11.3333V13.9999C11.3333 14.3679 11.0333 14.6666 10.662 14.6666H2.67133C2.58342 14.6671 2.49626 14.6503 2.41488 14.617C2.3335 14.5837 2.25949 14.5347 2.19711 14.4728C2.13472 14.4108 2.0852 14.3372 2.05137 14.256C2.01754 14.1749 2.00009 14.0878 2 13.9999L2.002 4.66659C2.002 4.29859 2.302 3.99992 2.67333 3.99992H4.66667ZM3.33533 5.33325L3.33333 13.3333H10V5.33325H3.33533ZM6 3.99992H11.3333V10.6666H12.6667V2.66659H6V3.99992Z"
30051
+ fill="#0D0716" />
30052
+ </svg>
30053
+ </button>
30054
+ </div>
30055
+ </div>
30056
+ </div>
30057
+ </div>
30058
+ <!-- 3DS -->
30059
+ <div id="3ds" class="tab-content hidden">
30060
+ <div class=" grid gap-3 border border-tone-50 px-6 py-4 rounded-2xl mb-4">
30061
+ <div class="flex justify-between items-center">
30062
+ <span class="text-tone-60 font-medium text-sm">Number</span>
30063
+ <div class="flex items-center gap-1">
30064
+ <span data-copy-value="5555558684543932"
30065
+ class="text-tone-100 text-sm font-medium">5555577124976817 </span>
30066
+ <button class="copy-btn p-1 hover:opacity-80 transition-opacity">
30067
+ <svg width="16" height="16" viewBox="0 0 16 16" fill="none"
30068
+ xmlns="http://www.w3.org/2000/svg">
30069
+ <path
30070
+ d="M4.66667 3.99992V1.99992C4.66667 1.82311 4.7369 1.65354 4.86193 1.52851C4.98695 1.40349 5.15652 1.33325 5.33333 1.33325H13.3333C13.5101 1.33325 13.6797 1.40349 13.8047 1.52851C13.9298 1.65354 14 1.82311 14 1.99992V11.3333C14 11.5101 13.9298 11.6796 13.8047 11.8047C13.6797 11.9297 13.5101 11.9999 13.3333 11.9999H11.3333V13.9999C11.3333 14.3679 11.0333 14.6666 10.662 14.6666H2.67133C2.58342 14.6671 2.49626 14.6503 2.41488 14.617C2.3335 14.5837 2.25949 14.5347 2.19711 14.4728C2.13472 14.4108 2.0852 14.3372 2.05137 14.256C2.01754 14.1749 2.00009 14.0878 2 13.9999L2.002 4.66659C2.002 4.29859 2.302 3.99992 2.67333 3.99992H4.66667ZM3.33533 5.33325L3.33333 13.3333H10V5.33325H3.33533ZM6 3.99992H11.3333V10.6666H12.6667V2.66659H6V3.99992Z"
30071
+ fill="#0D0716" />
30072
+ </svg>
30073
+ </button>
30074
+ </div>
30075
+ </div>
30076
+
30077
+ <div class="flex justify-between items-center">
30078
+ <span class="text-tone-60 font-medium text-sm">Expiry</span>
30079
+ <div class="flex items-center gap-1">
30080
+ <span data-copy-value="12/30" class="text-tone-100 text-sm font-medium">12/2030</span>
30081
+ <button class="copy-btn p-1 hover:opacity-80 transition-opacity">
30082
+ <svg width="16" height="16" viewBox="0 0 16 16" fill="none"
30083
+ xmlns="http://www.w3.org/2000/svg">
30084
+ <path
30085
+ d="M4.66667 3.99992V1.99992C4.66667 1.82311 4.7369 1.65354 4.86193 1.52851C4.98695 1.40349 5.15652 1.33325 5.33333 1.33325H13.3333C13.5101 1.33325 13.6797 1.40349 13.8047 1.52851C13.9298 1.65354 14 1.82311 14 1.99992V11.3333C14 11.5101 13.9298 11.6796 13.8047 11.8047C13.6797 11.9297 13.5101 11.9999 13.3333 11.9999H11.3333V13.9999C11.3333 14.3679 11.0333 14.6666 10.662 14.6666H2.67133C2.58342 14.6671 2.49626 14.6503 2.41488 14.617C2.3335 14.5837 2.25949 14.5347 2.19711 14.4728C2.13472 14.4108 2.0852 14.3372 2.05137 14.256C2.01754 14.1749 2.00009 14.0878 2 13.9999L2.002 4.66659C2.002 4.29859 2.302 3.99992 2.67333 3.99992H4.66667ZM3.33533 5.33325L3.33333 13.3333H10V5.33325H3.33533ZM6 3.99992H11.3333V10.6666H12.6667V2.66659H6V3.99992Z"
30086
+ fill="#0D0716" />
30087
+ </svg>
30088
+ </button>
30089
+ </div>
30090
+ </div>
30091
+ <div class="flex justify-between items-center">
30092
+ <span class="text-tone-60 font-medium text-sm">CVV</span>
30093
+ <div class="flex items-center gap-1">
30094
+ <span data-copy-value="321" class="text-tone-100 text-sm font-medium">321</span>
30095
+ <button class="copy-btn p-1 hover:opacity-80 transition-opacity">
30096
+ <svg width="16" height="16" viewBox="0 0 16 16" fill="none"
30097
+ xmlns="http://www.w3.org/2000/svg">
30098
+ <path
30099
+ d="M4.66667 3.99992V1.99992C4.66667 1.82311 4.7369 1.65354 4.86193 1.52851C4.98695 1.40349 5.15652 1.33325 5.33333 1.33325H13.3333C13.5101 1.33325 13.6797 1.40349 13.8047 1.52851C13.9298 1.65354 14 1.82311 14 1.99992V11.3333C14 11.5101 13.9298 11.6796 13.8047 11.8047C13.6797 11.9297 13.5101 11.9999 13.3333 11.9999H11.3333V13.9999C11.3333 14.3679 11.0333 14.6666 10.662 14.6666H2.67133C2.58342 14.6671 2.49626 14.6503 2.41488 14.617C2.3335 14.5837 2.25949 14.5347 2.19711 14.4728C2.13472 14.4108 2.0852 14.3372 2.05137 14.256C2.01754 14.1749 2.00009 14.0878 2 13.9999L2.002 4.66659C2.002 4.29859 2.302 3.99992 2.67333 3.99992H4.66667ZM3.33533 5.33325L3.33333 13.3333H10V5.33325H3.33533ZM6 3.99992H11.3333V10.6666H12.6667V2.66659H6V3.99992Z"
30100
+ fill="#0D0716" />
30101
+ </svg>
30102
+ </button>
30103
+ </div>
30104
+ </div>
30105
+ </div>
30106
+ </div>
30107
+
30108
+ <!-- AVS -->
30109
+ <div id="avs" class="tab-content hidden">
30110
+ <div class=" grid gap-3 border border-tone-50 px-6 py-4 rounded-2xl mb-4">
30111
+ <div class="flex justify-between items-center">
30112
+ <span class="text-tone-60 font-medium text-sm">Number</span>
30113
+ <div class="flex items-center gap-1">
30114
+ <span data-copy-value="4111124373708482"
30115
+ class="text-tone-100 text-sm font-medium">4111124373708482 </span>
30116
+ <button class="copy-btn p-1 hover:opacity-80 transition-opacity">
30117
+ <svg width="16" height="16" viewBox="0 0 16 16" fill="none"
30118
+ xmlns="http://www.w3.org/2000/svg">
30119
+ <path
30120
+ d="M4.66667 3.99992V1.99992C4.66667 1.82311 4.7369 1.65354 4.86193 1.52851C4.98695 1.40349 5.15652 1.33325 5.33333 1.33325H13.3333C13.5101 1.33325 13.6797 1.40349 13.8047 1.52851C13.9298 1.65354 14 1.82311 14 1.99992V11.3333C14 11.5101 13.9298 11.6796 13.8047 11.8047C13.6797 11.9297 13.5101 11.9999 13.3333 11.9999H11.3333V13.9999C11.3333 14.3679 11.0333 14.6666 10.662 14.6666H2.67133C2.58342 14.6671 2.49626 14.6503 2.41488 14.617C2.3335 14.5837 2.25949 14.5347 2.19711 14.4728C2.13472 14.4108 2.0852 14.3372 2.05137 14.256C2.01754 14.1749 2.00009 14.0878 2 13.9999L2.002 4.66659C2.002 4.29859 2.302 3.99992 2.67333 3.99992H4.66667ZM3.33533 5.33325L3.33333 13.3333H10V5.33325H3.33533ZM6 3.99992H11.3333V10.6666H12.6667V2.66659H6V3.99992Z"
30121
+ fill="#0D0716" />
30122
+ </svg>
30123
+ </button>
30124
+ </div>
30125
+ </div>
30126
+
30127
+ <div class="flex justify-between items-center">
30128
+ <span class="text-tone-60 font-medium text-sm">Expiry</span>
30129
+ <div class="flex items-center gap-1">
30130
+ <span data-copy-value="12/30" class="text-tone-100 text-sm font-medium">12/2030</span>
30131
+ <button class="copy-btn p-1 hover:opacity-80 transition-opacity">
30132
+ <svg width="16" height="16" viewBox="0 0 16 16" fill="none"
30133
+ xmlns="http://www.w3.org/2000/svg">
30134
+ <path
30135
+ d="M4.66667 3.99992V1.99992C4.66667 1.82311 4.7369 1.65354 4.86193 1.52851C4.98695 1.40349 5.15652 1.33325 5.33333 1.33325H13.3333C13.5101 1.33325 13.6797 1.40349 13.8047 1.52851C13.9298 1.65354 14 1.82311 14 1.99992V11.3333C14 11.5101 13.9298 11.6796 13.8047 11.8047C13.6797 11.9297 13.5101 11.9999 13.3333 11.9999H11.3333V13.9999C11.3333 14.3679 11.0333 14.6666 10.662 14.6666H2.67133C2.58342 14.6671 2.49626 14.6503 2.41488 14.617C2.3335 14.5837 2.25949 14.5347 2.19711 14.4728C2.13472 14.4108 2.0852 14.3372 2.05137 14.256C2.01754 14.1749 2.00009 14.0878 2 13.9999L2.002 4.66659C2.002 4.29859 2.302 3.99992 2.67333 3.99992H4.66667ZM3.33533 5.33325L3.33333 13.3333H10V5.33325H3.33533ZM6 3.99992H11.3333V10.6666H12.6667V2.66659H6V3.99992Z"
30136
+ fill="#0D0716" />
30137
+ </svg>
30138
+ </button>
30139
+ </div>
30140
+ </div>
30141
+ <div class="flex justify-between items-center">
30142
+ <span class="text-tone-60 font-medium text-sm">CVV</span>
30143
+ <div class="flex items-center gap-1">
30144
+ <span data-copy-value="321" class="text-tone-100 text-sm font-medium">321</span>
30145
+ <button class="copy-btn p-1 hover:opacity-80 transition-opacity">
30146
+ <svg width="16" height="16" viewBox="0 0 16 16" fill="none"
30147
+ xmlns="http://www.w3.org/2000/svg">
30148
+ <path
30149
+ d="M4.66667 3.99992V1.99992C4.66667 1.82311 4.7369 1.65354 4.86193 1.52851C4.98695 1.40349 5.15652 1.33325 5.33333 1.33325H13.3333C13.5101 1.33325 13.6797 1.40349 13.8047 1.52851C13.9298 1.65354 14 1.82311 14 1.99992V11.3333C14 11.5101 13.9298 11.6796 13.8047 11.8047C13.6797 11.9297 13.5101 11.9999 13.3333 11.9999H11.3333V13.9999C11.3333 14.3679 11.0333 14.6666 10.662 14.6666H2.67133C2.58342 14.6671 2.49626 14.6503 2.41488 14.617C2.3335 14.5837 2.25949 14.5347 2.19711 14.4728C2.13472 14.4108 2.0852 14.3372 2.05137 14.256C2.01754 14.1749 2.00009 14.0878 2 13.9999L2.002 4.66659C2.002 4.29859 2.302 3.99992 2.67333 3.99992H4.66667ZM3.33533 5.33325L3.33333 13.3333H10V5.33325H3.33533ZM6 3.99992H11.3333V10.6666H12.6667V2.66659H6V3.99992Z"
30150
+ fill="#0D0716" />
30151
+ </svg>
30152
+ </button>
30153
+ </div>
30154
+ </div>
30155
+ <div class="flex justify-between items-center">
30156
+ <span class="text-tone-60 font-medium text-sm">OTP</span>
30157
+ <div class="flex flex-col items-end gap-1">
30158
+ <span class="text-tone-100 text-sm font-medium">Address: 1, Spotflow Street</span>
30159
+ <span class="text-tone-100 text-sm font-medium">City: Lekki</span>
30160
+ <span class="text-tone-100 text-sm font-medium">State: Lagos</span>
30161
+ <span class="text-tone-100 text-sm font-medium">Country: Nigeria</span>
30162
+ <span class="text-tone-100 text-sm font-medium">ZIP: 101233</span>
30163
+ </div>
30164
+ </div>
30165
+ </div>
30166
+ </div>
30167
+ </div>
30168
+ </div>`;
30169
+ class go {
30170
+ constructor({ container: e, closeCallback: i }) {
30171
+ h(this, "container");
30172
+ h(this, "closeCallback");
30173
+ this.container = e, this.closeCallback = i;
30174
+ }
30175
+ render() {
30176
+ return Od;
30177
+ }
30178
+ attachListener() {
30179
+ const e = this.container.querySelector(
30180
+ "#close-test-card"
30181
+ );
30182
+ e == null || e.addEventListener("click", () => this.closeCallback());
30183
+ const i = this.container.querySelectorAll(
30184
+ "#test-card-tabs .tab-btn"
30185
+ ), t = this.container.querySelectorAll(".tab-content");
30186
+ i.forEach((o) => {
30187
+ o.addEventListener("click", () => {
30188
+ i.forEach((l) => l.classList.remove("active-tab")), o.classList.add("active-tab");
30189
+ const a = o.getAttribute("data-target");
30190
+ t.forEach((l) => {
30191
+ l.id === a ? l.classList.remove("hidden") : l.classList.add("hidden");
30192
+ });
30193
+ });
30194
+ }), this.container.querySelectorAll(".copy-btn").forEach((o) => {
30195
+ o.addEventListener("click", async (a) => {
30196
+ const d = a.currentTarget.previousElementSibling.getAttribute("data-copy-value") || "";
30197
+ d && (await navigator.clipboard.writeText(d), o.innerHTML = '<svg width="15" height="15" viewBox="0 0 15 15" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M5 2V1H10V2H5ZM4.75 0C4.33579 0 4 0.335786 4 0.75V1H3.5C2.67157 1 2 1.67157 2 2.5V12.5C2 13.3284 2.67157 14 3.5 14H7V13H3.5C3.22386 13 3 12.7761 3 12.5V2.5C3 2.22386 3.22386 2 3.5 2H4V2.25C4 2.66421 4.33579 3 4.75 3H10.25C10.6642 3 11 2.66421 11 2.25V2H11.5C11.7761 2 12 2.22386 12 2.5V7H13V2.5C13 1.67157 12.3284 1 11.5 1H11V0.75C11 0.335786 10.6642 0 10.25 0H4.75ZM9 8.5C9 8.77614 8.77614 9 8.5 9C8.22386 9 8 8.77614 8 8.5C8 8.22386 8.22386 8 8.5 8C8.77614 8 9 8.22386 9 8.5ZM10.5 9C10.7761 9 11 8.77614 11 8.5C11 8.22386 10.7761 8 10.5 8C10.2239 8 10 8.22386 10 8.5C10 8.77614 10.2239 9 10.5 9ZM13 8.5C13 8.77614 12.7761 9 12.5 9C12.2239 9 12 8.77614 12 8.5C12 8.22386 12.2239 8 12.5 8C12.7761 8 13 8.22386 13 8.5ZM14.5 9C14.7761 9 15 8.77614 15 8.5C15 8.2239 14.7761 8 14.5 8C14.2239 8 14 8.22386 14 8.5C14 8.77614 14.2239 9 14.5 9ZM15 10.5C15 10.7761 14.7761 11 14.5 11C14.2239 11 14 10.7761 14 10.5C14 10.2239 14.2239 10 14.5 10C14.7761 10 15 10.2239 15 10.5ZM14.5 13C14.7761 13 15 12.7761 15 12.5C15 12.2239 14.7761 12 14.5 12C14.2239 12 14 12.2239 14 12.5C14 12.7761 14.2239 13 14.5 13ZM14.5 15C14.7761 15 15 14.7761 15 14.5C15 14.2239 14.7761 14 14.5 14C14.2239 14 14 14.2239 14 14.5C14 14.7761 14.2239 15 14.5 15ZM8.5 11C8.77614 11 9 10.7761 9 10.5C9 10.2239 8.77614 10 8.5 10C8.22386 10 8 10.2239 8 10.5C8 10.7761 8.22386 11 8.5 11ZM9 12.5C9 12.7761 8.77614 13 8.5 13C8.22386 13 8 12.7761 8 12.5C8 12.2239 8.22386 12 8.5 12C8.77614 12 9 12.2239 9 12.5ZM8.5 15C8.77614 15 9 14.7761 9 14.5C9 14.2239 8.77614 14 8.5 14C8.22386 14 8 14.2239 8 14.5C8 14.7761 8.22386 15 8.5 15ZM11 14.5C11 14.7761 10.7761 15 10.5 15C10.2239 15 10 14.7761 10 14.5C10 14.2239 10.2239 14 10.5 14C10.7761 14 11 14.2239 11 14.5ZM12.5 15C12.7761 15 13 14.7761 13 14.5C13 14.2239 12.7761 14 12.5 14C12.2239 14 12 14.2239 12 14.5C12 14.7761 12.2239 15 12.5 15Z" fill="currentColor" fill-rule="evenodd" clip-rule="evenodd"></path></svg>', setTimeout(() => {
30198
+ o.innerHTML = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
30199
+ <path
30200
+ d="M4.66667 3.99992V1.99992C4.66667 1.82311 4.7369 1.65354 4.86193 1.52851C4.98695 1.40349 5.15652 1.33325 5.33333 1.33325H13.3333C13.5101 1.33325 13.6797 1.40349 13.8047 1.52851C13.9298 1.65354 14 1.82311 14 1.99992V11.3333C14 11.5101 13.9298 11.6796 13.8047 11.8047C13.6797 11.9297 13.5101 11.9999 13.3333 11.9999H11.3333V13.9999C11.3333 14.3679 11.0333 14.6666 10.662 14.6666H2.67133C2.58342 14.6671 2.49626 14.6503 2.41488 14.617C2.3335 14.5837 2.25949 14.5347 2.19711 14.4728C2.13472 14.4108 2.0852 14.3372 2.05137 14.256C2.01754 14.1749 2.00009 14.0878 2 13.9999L2.002 4.66659C2.002 4.29859 2.302 3.99992 2.67333 3.99992H4.66667ZM3.33533 5.33325L3.33333 13.3333H10V5.33325H3.33533ZM6 3.99992H11.3333V10.6666H12.6667V2.66659H6V3.99992Z"
30201
+ fill="#0D0716" />
30202
+ </svg>`;
30203
+ }, 1e3));
30204
+ });
30205
+ });
30206
+ }
30207
+ renderComponent() {
30208
+ this.container.innerHTML = this.render(), this.attachListener();
30209
+ }
30210
+ }
30211
+ function Ud(n) {
30212
+ n.classList.remove("hidden"), requestAnimationFrame(() => {
30213
+ n.classList.remove("opacity-0", "scale-95");
30214
+ });
30215
+ }
30216
+ function ki(n) {
30217
+ n.classList.add("opacity-0", "scale-95"), n.addEventListener(
30218
+ "transitionend",
30219
+ () => n.classList.add("hidden"),
30220
+ { once: !0 }
30221
+ );
30222
+ }
30223
+ class ws {
30224
+ constructor({ container: e, testCardContainer: i }) {
30225
+ h(this, "container");
30226
+ h(this, "testCardContainer");
30227
+ h(this, "testCardInstance", null);
30228
+ this.container = e, this.testCardContainer = i;
30229
+ }
30230
+ attachListener() {
30231
+ const e = this.container.querySelector(
30232
+ "#test-cards-link"
30233
+ );
30234
+ e && e.addEventListener("click", () => {
30235
+ this.testCardInstance || (this.testCardInstance = new go({
30236
+ container: this.testCardContainer,
30237
+ closeCallback: () => {
30238
+ this.testCardContainer.innerHTML = "", ki(this.testCardContainer), e.classList.remove("text-tone-100", "font-bold");
30239
+ }
30240
+ })), this.testCardInstance.renderComponent(), Ud(this.testCardContainer), e.classList.add("text-tone-100", "font-bold");
30241
+ });
30242
+ }
30243
+ renderComponent() {
30244
+ this.container.innerHTML = this.render(), this.attachListener();
30245
+ }
30246
+ render() {
30247
+ return Rd;
30248
+ }
30249
+ }
30250
+ class Vd {
29842
30251
  constructor({
29843
30252
  amount: e,
29844
30253
  totalAmount: i,
@@ -29932,7 +30341,7 @@ class Rd {
29932
30341
  reference: this.reference,
29933
30342
  encryptedCard: o
29934
30343
  };
29935
- return Hi(
30344
+ return Ri(
29936
30345
  this.token,
29937
30346
  d,
29938
30347
  this.rdtCode,
@@ -29970,6 +30379,12 @@ class Rd {
29970
30379
  verification_status: "Failed",
29971
30380
  authentication_type: "PIN"
29972
30381
  }), this.cardResponse = l, this.cardResponseHeader = d, l.providerMessage ? this.warningScreen.setPaymentError(l.providerMessage) : this.warningScreen.setPaymentError("Payment failed"), this.warningScreen.hideReportIssue();
30382
+ else if (["success", "successful"].includes(l.status))
30383
+ this.currentStep = 5, this.cardResponse = l, this.cardResponseHeader = d, P.track("verify_payment", {
30384
+ payment_method: "Card",
30385
+ verification_status: "Success",
30386
+ authentication_type: "PIN"
30387
+ }), this.redirectTo(l, d, "success");
29973
30388
  else if (!["success", "successful"].includes(l.status) && l.status !== "failed")
29974
30389
  if (this.cardResponse = l, this.cardResponseHeader = d, l != null && l.authorization) {
29975
30390
  if (this.activeRef = l.reference, ((p = l == null ? void 0 : l.authorization) == null ? void 0 : p.mode) === "pin") {
@@ -29990,11 +30405,6 @@ class Rd {
29990
30405
  }
29991
30406
  } else
29992
30407
  this.currentStep = 4, l.providerMessage ? this.warningScreen.setPaymentError(l.providerMessage) : this.warningScreen.setPaymentError("Error with Payment"), this.warningScreen.hideReportIssue();
29993
- else ["success", "successful"].includes(l.status) && (this.currentStep = 5, this.cardResponse = l, this.cardResponseHeader = d, P.track("verify_payment", {
29994
- payment_method: "Card",
29995
- verification_status: "Success",
29996
- authentication_type: "PIN"
29997
- }), this.redirectTo(l, d, "success"));
29998
30408
  }).catch((l) => {
29999
30409
  P.track("verify_payment", {
30000
30410
  payment_method: "Card",
@@ -30312,15 +30722,19 @@ class Rd {
30312
30722
  );
30313
30723
  }
30314
30724
  renderCardContent(e) {
30315
- var t, s;
30725
+ var o, a;
30316
30726
  e && (this.merchantPlanDetail = e);
30317
- const i = document.getElementById("go-back");
30318
- if (this.currentStep !== 1 ? (this.hidePaymentMethods(), i == null || i.classList.add("hidden")) : this.showPaymentMethods(), this.isMobile && this.hidePaymentMethods(), this.contents) {
30727
+ const i = document.getElementById(
30728
+ "test-container"
30729
+ ), t = this.container.querySelector(
30730
+ "#test-cards-link"
30731
+ ), s = document.getElementById("go-back");
30732
+ if (this.currentStep !== 1 ? (this.hidePaymentMethods(), s == null || s.classList.add("hidden")) : this.showPaymentMethods(), this.isMobile && this.hidePaymentMethods(), this.contents) {
30319
30733
  switch (this.currentStep) {
30320
30734
  case 1:
30321
- this.cardDetailForm = new Qt({
30735
+ this.cardDetailForm = new Xt({
30322
30736
  container: this.contents,
30323
- onAction: (a) => (l) => this.submitCardDetails.bind(this)(a, l),
30737
+ onAction: (d) => (p) => this.submitCardDetails.bind(this)(d, p),
30324
30738
  merchantName: this.merchantPlanDetail.merchantName,
30325
30739
  currency: this.localCurrency !== this.currency ? this.localCurrency : this.currency
30326
30740
  }), this.cardDetailForm.renderContent();
@@ -30329,15 +30743,15 @@ class Rd {
30329
30743
  this.cardPinForm = new Rr({
30330
30744
  container: this.contents,
30331
30745
  onClose: this.onClose,
30332
- onAction: (a) => this.handlePinRequest.bind(this)(a)
30746
+ onAction: (d) => this.handlePinRequest.bind(this)(d)
30333
30747
  }), this.cardPinForm.renderComponent();
30334
30748
  break;
30335
30749
  case 3:
30336
30750
  this.cardOtpValidationForm = new Br({
30337
30751
  container: this.contents,
30338
30752
  onClose: this.onClose,
30339
- onAction: (a) => (l) => this.submitOtp.bind(this)(a, l),
30340
- otpMessage: ((t = this.cardResponse) == null ? void 0 : t.providerMessage) || "Please enter your OTP sent to your phone"
30753
+ onAction: (d) => (p) => this.submitOtp.bind(this)(d, p),
30754
+ otpMessage: ((o = this.cardResponse) == null ? void 0 : o.providerMessage) || "Please enter your OTP sent to your phone"
30341
30755
  }), this.cardOtpValidationForm.renderComponent();
30342
30756
  break;
30343
30757
  case 4:
@@ -30345,7 +30759,7 @@ class Rd {
30345
30759
  container: this.contents,
30346
30760
  onAction: this.isMaxRetriesReached ? this.goBackToMerchant.bind(this) : this.restartTransactionProcess.bind(this),
30347
30761
  onReportIssue: () => this.currentStep = 8
30348
- }), this.contents.innerHTML = this.warningScreen.render(), this.warningScreen.attachListener();
30762
+ }), this.contents.innerHTML = this.warningScreen.render(), this.warningScreen.attachListener(), ki(i), t.classList.remove("text-tone-100", "font-bold");
30349
30763
  break;
30350
30764
  case 5:
30351
30765
  this.successScreen = new ii({
@@ -30353,8 +30767,8 @@ class Rd {
30353
30767
  amount: this.totalAmount,
30354
30768
  currency: this.currency,
30355
30769
  localCurrency: this.localCurrency,
30356
- rate: (s = this.merchantPlanDetail) == null ? void 0 : s.rate.rate
30357
- }), this.successScreen.renderComponent();
30770
+ rate: (a = this.merchantPlanDetail) == null ? void 0 : a.rate.rate
30771
+ }), this.successScreen.renderComponent(), ki(i), t.classList.remove("text-tone-100", "font-bold");
30358
30772
  break;
30359
30773
  case 6:
30360
30774
  this.pageLoader = new Ne(this.contents), this.pageLoader.mountLoader(), this.pageLoader.updateMessage("Verifying Payment");
@@ -30362,16 +30776,16 @@ class Rd {
30362
30776
  case 7:
30363
30777
  this.avsForm = new Kr({
30364
30778
  container: this.contents,
30365
- onAction: (a) => (l) => this.validatedAVS.bind(this)(a, l)
30779
+ onAction: (d) => (p) => this.validatedAVS.bind(this)(d, p)
30366
30780
  }), this.avsForm.renderComponent();
30367
30781
  break;
30368
30782
  case 8:
30369
- this.transactionIssuesScreen = new Ri({
30783
+ this.transactionIssuesScreen = new Oi({
30370
30784
  container: this.contents,
30371
30785
  onAction: () => {
30372
- var a;
30786
+ var d;
30373
30787
  this.currentStep = 4, this.warningScreen.setPaymentError(
30374
- ((a = this.cardResponse) == null ? void 0 : a.providerMessage) || "Payment failed"
30788
+ ((d = this.cardResponse) == null ? void 0 : d.providerMessage) || "Payment failed"
30375
30789
  );
30376
30790
  },
30377
30791
  url: this.url,
@@ -30386,8 +30800,8 @@ class Rd {
30386
30800
  case 9:
30387
30801
  this.confirmationEnd = new fo({
30388
30802
  container: this.contents,
30389
- onAction: (a) => {
30390
- this.currentStep = a;
30803
+ onAction: (d) => {
30804
+ this.currentStep = d;
30391
30805
  },
30392
30806
  ref: this.reference,
30393
30807
  token: this.token,
@@ -30395,14 +30809,15 @@ class Rd {
30395
30809
  url: this.url,
30396
30810
  callBackUrl: this.callBackUrl,
30397
30811
  paymentResponse: this.cardResponse,
30398
- paymentResponseHeaders: this.cardResponseHeader
30812
+ paymentResponseHeaders: this.cardResponseHeader,
30813
+ paymentMethod: "Card"
30399
30814
  }), this.confirmationEnd.renderComponent();
30400
30815
  break;
30401
30816
  case 10:
30402
30817
  this.confirmationProgress = new Hd({
30403
30818
  container: this.contents,
30404
- onAction: (a) => {
30405
- this.currentStep = a;
30819
+ onAction: (d) => {
30820
+ this.currentStep = d;
30406
30821
  },
30407
30822
  ref: this.reference,
30408
30823
  onSuccess: this.onSuccess.bind(this),
@@ -30410,8 +30825,8 @@ class Rd {
30410
30825
  rdtCode: this.rdtCode,
30411
30826
  url: this.url,
30412
30827
  callBackUrl: this.callBackUrl,
30413
- setPaymentResponses: (a, l) => {
30414
- this.cardResponse = a, this.cardResponseHeader = l;
30828
+ setPaymentResponses: (d, p) => {
30829
+ this.cardResponse = d, this.cardResponseHeader = p;
30415
30830
  },
30416
30831
  step: {
30417
30832
  failed: 4,
@@ -30419,20 +30834,20 @@ class Rd {
30419
30834
  end: 9
30420
30835
  },
30421
30836
  paymentMethod: "Card"
30422
- }), this.confirmationProgress.renderComponent();
30837
+ }), this.confirmationProgress.renderComponent(), ki(i), t.classList.remove("text-tone-100", "font-bold");
30423
30838
  break;
30424
30839
  default:
30425
- this.cardDetailForm = new Qt({
30840
+ this.cardDetailForm = new Xt({
30426
30841
  container: this.contents,
30427
- onAction: (a) => (l) => this.submitCardDetails.bind(this)(a, l),
30842
+ onAction: (d) => (p) => this.submitCardDetails.bind(this)(d, p),
30428
30843
  merchantName: this.merchantPlanDetail.merchantName,
30429
30844
  currency: this.localCurrency ? this.localCurrency : this.currency
30430
30845
  }), this.cardDetailForm.renderContent();
30431
30846
  break;
30432
30847
  }
30433
30848
  this.displayButtonText();
30434
- const o = this.container.querySelector("#card-currency");
30435
- o && (o.textContent = `${this.localCurrency ? this.localCurrency : this.currency} Card`);
30849
+ const l = this.container.querySelector("#card-currency");
30850
+ l && (l.textContent = `${this.localCurrency ? this.localCurrency : this.currency} Card`);
30436
30851
  }
30437
30852
  }
30438
30853
  redirectTo(e, i, t) {
@@ -30456,7 +30871,7 @@ class Rd {
30456
30871
  }
30457
30872
  }
30458
30873
  }
30459
- const Od = `<div>
30874
+ const Kd = `<div>
30460
30875
  <div class="container-center h-[40vh] hidden" id="loader">
30461
30876
  <img src="" alt="loader gif" />
30462
30877
  </div>
@@ -30548,10 +30963,10 @@ const Od = `<div>
30548
30963
  </div>
30549
30964
  </div>
30550
30965
  </div>`;
30551
- function Vd(n) {
30966
+ function jd(n) {
30552
30967
  return n && n.__esModule && Object.prototype.hasOwnProperty.call(n, "default") ? n.default : n;
30553
30968
  }
30554
- var go = { exports: {} };
30969
+ var yo = { exports: {} };
30555
30970
  /*!
30556
30971
  * Pusher JavaScript Library v8.4.0
30557
30972
  * https://pusher.com/
@@ -30655,9 +31070,9 @@ var go = { exports: {} };
30655
31070
  }, C.prototype.decode = function(w) {
30656
31071
  if (w.length === 0)
30657
31072
  return new Uint8Array(0);
30658
- for (var M = this._getPaddingLength(w), A = w.length - M, _ = new Uint8Array(this.maxDecodedLength(A)), T = 0, I = 0, K = 0, G = 0, V = 0, j = 0, te = 0; I < A - 4; I += 4)
30659
- G = this._decodeChar(w.charCodeAt(I + 0)), V = this._decodeChar(w.charCodeAt(I + 1)), j = this._decodeChar(w.charCodeAt(I + 2)), te = this._decodeChar(w.charCodeAt(I + 3)), _[T++] = G << 2 | V >>> 4, _[T++] = V << 4 | j >>> 2, _[T++] = j << 6 | te, K |= G & a, K |= V & a, K |= j & a, K |= te & a;
30660
- if (I < A - 1 && (G = this._decodeChar(w.charCodeAt(I)), V = this._decodeChar(w.charCodeAt(I + 1)), _[T++] = G << 2 | V >>> 4, K |= G & a, K |= V & a), I < A - 2 && (j = this._decodeChar(w.charCodeAt(I + 2)), _[T++] = V << 4 | j >>> 2, K |= j & a), I < A - 3 && (te = this._decodeChar(w.charCodeAt(I + 3)), _[T++] = j << 6 | te, K |= te & a), K !== 0)
31073
+ for (var M = this._getPaddingLength(w), A = w.length - M, _ = new Uint8Array(this.maxDecodedLength(A)), T = 0, I = 0, K = 0, G = 0, U = 0, j = 0, te = 0; I < A - 4; I += 4)
31074
+ G = this._decodeChar(w.charCodeAt(I + 0)), U = this._decodeChar(w.charCodeAt(I + 1)), j = this._decodeChar(w.charCodeAt(I + 2)), te = this._decodeChar(w.charCodeAt(I + 3)), _[T++] = G << 2 | U >>> 4, _[T++] = U << 4 | j >>> 2, _[T++] = j << 6 | te, K |= G & a, K |= U & a, K |= j & a, K |= te & a;
31075
+ if (I < A - 1 && (G = this._decodeChar(w.charCodeAt(I)), U = this._decodeChar(w.charCodeAt(I + 1)), _[T++] = G << 2 | U >>> 4, K |= G & a, K |= U & a), I < A - 2 && (j = this._decodeChar(w.charCodeAt(I + 2)), _[T++] = U << 4 | j >>> 2, K |= j & a), I < A - 3 && (te = this._decodeChar(w.charCodeAt(I + 3)), _[T++] = j << 6 | te, K |= te & a), K !== 0)
30661
31076
  throw new Error("Base64Coder: incorrect characters for decoding");
30662
31077
  return _;
30663
31078
  }, C.prototype._encodeByte = function(w) {
@@ -30955,7 +31370,7 @@ var go = { exports: {} };
30955
31370
  super(r), Object.setPrototypeOf(this, new.target.prototype);
30956
31371
  }
30957
31372
  }
30958
- class V extends Error {
31373
+ class U extends Error {
30959
31374
  constructor(r, u) {
30960
31375
  super(u), this.status = r, Object.setPrototypeOf(this, new.target.prototype);
30961
31376
  }
@@ -30977,7 +31392,7 @@ var go = { exports: {} };
30977
31392
  try {
30978
31393
  D = JSON.parse(x.responseText), B = !0;
30979
31394
  } catch {
30980
- S(new V(200, `JSON returned from ${b.toString()} endpoint was invalid, yet status code was 200. Data was: ${x.responseText}`), null);
31395
+ S(new U(200, `JSON returned from ${b.toString()} endpoint was invalid, yet status code was 200. Data was: ${x.responseText}`), null);
30981
31396
  }
30982
31397
  B && S(null, D);
30983
31398
  } else {
@@ -30990,16 +31405,16 @@ var go = { exports: {} };
30990
31405
  D = `Clients must be authorized to join private or presence channels. ${k.buildLogSuffix("authorizationEndpoint")}`;
30991
31406
  break;
30992
31407
  }
30993
- S(new V(x.status, `Unable to retrieve auth string from ${b.toString()} endpoint - received status: ${x.status} from ${u.endpoint}. ${D}`), null);
31408
+ S(new U(x.status, `Unable to retrieve auth string from ${b.toString()} endpoint - received status: ${x.status} from ${u.endpoint}. ${D}`), null);
30994
31409
  }
30995
31410
  }, x.send(r), x;
30996
31411
  };
30997
31412
  function ge(c) {
30998
31413
  return ze(xe(c));
30999
31414
  }
31000
- var U = String.fromCharCode, ke = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", le = function(c) {
31415
+ var V = String.fromCharCode, ke = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", le = function(c) {
31001
31416
  var r = c.charCodeAt(0);
31002
- return r < 128 ? c : r < 2048 ? U(192 | r >>> 6) + U(128 | r & 63) : U(224 | r >>> 12 & 15) + U(128 | r >>> 6 & 63) + U(128 | r & 63);
31417
+ return r < 128 ? c : r < 2048 ? V(192 | r >>> 6) + V(128 | r & 63) : V(224 | r >>> 12 & 15) + V(128 | r >>> 6 & 63) + V(128 | r & 63);
31003
31418
  }, xe = function(c) {
31004
31419
  return c.replace(/[^\x00-\x7F]/g, le);
31005
31420
  }, we = function(c) {
@@ -31216,7 +31631,7 @@ var go = { exports: {} };
31216
31631
  }
31217
31632
  log(r, ...u) {
31218
31633
  var b = Ie.apply(this, arguments);
31219
- Xi.log ? Xi.log(b) : Xi.logToConsole && r.bind(this)(b);
31634
+ et.log ? et.log(b) : et.logToConsole && r.bind(this)(b);
31220
31635
  }
31221
31636
  }
31222
31637
  var oe = new Fn(), ko = function(c, r, u, b, S) {
@@ -31277,30 +31692,30 @@ var go = { exports: {} };
31277
31692
  name: "jsonp",
31278
31693
  getAgent: Ao
31279
31694
  }, xo = Lo;
31280
- function Fi(c, r, u) {
31695
+ function Gi(c, r, u) {
31281
31696
  var b = c + (r.useTLS ? "s" : ""), S = r.useTLS ? r.hostTLS : r.hostNonTLS;
31282
31697
  return b + "://" + S + u;
31283
31698
  }
31284
- function Gi(c, r) {
31699
+ function qi(c, r) {
31285
31700
  var u = "/app/" + c, b = "?protocol=" + d.PROTOCOL + "&client=js&version=" + d.VERSION + (r ? "&" + r : "");
31286
31701
  return u + b;
31287
31702
  }
31288
31703
  var To = {
31289
31704
  getInitial: function(c, r) {
31290
- var u = (r.httpPath || "") + Gi(c, "flash=false");
31291
- return Fi("ws", r, u);
31705
+ var u = (r.httpPath || "") + qi(c, "flash=false");
31706
+ return Gi("ws", r, u);
31292
31707
  }
31293
31708
  }, Eo = {
31294
31709
  getInitial: function(c, r) {
31295
- var u = (r.httpPath || "/pusher") + Gi(c);
31296
- return Fi("http", r, u);
31710
+ var u = (r.httpPath || "/pusher") + qi(c);
31711
+ return Gi("http", r, u);
31297
31712
  }
31298
31713
  }, Po = {
31299
31714
  getInitial: function(c, r) {
31300
- return Fi("http", r, r.httpPath || "/pusher");
31715
+ return Gi("http", r, r.httpPath || "/pusher");
31301
31716
  },
31302
31717
  getPath: function(c, r) {
31303
- return Gi(c);
31718
+ return qi(c);
31304
31719
  }
31305
31720
  };
31306
31721
  class Io {
@@ -31308,10 +31723,10 @@ var go = { exports: {} };
31308
31723
  this._callbacks = {};
31309
31724
  }
31310
31725
  get(r) {
31311
- return this._callbacks[qi(r)];
31726
+ return this._callbacks[zi(r)];
31312
31727
  }
31313
31728
  add(r, u, b) {
31314
- var S = qi(r);
31729
+ var S = zi(r);
31315
31730
  this._callbacks[S] = this._callbacks[S] || [], this._callbacks[S].push({
31316
31731
  fn: u,
31317
31732
  context: b
@@ -31322,7 +31737,7 @@ var go = { exports: {} };
31322
31737
  this._callbacks = {};
31323
31738
  return;
31324
31739
  }
31325
- var S = r ? [qi(r)] : je(this._callbacks);
31740
+ var S = r ? [zi(r)] : je(this._callbacks);
31326
31741
  u || b ? this.removeCallback(S, u, b) : this.removeAllCallbacks(S);
31327
31742
  }
31328
31743
  removeCallback(r, u, b) {
@@ -31338,7 +31753,7 @@ var go = { exports: {} };
31338
31753
  }, this);
31339
31754
  }
31340
31755
  }
31341
- function qi(c) {
31756
+ function zi(c) {
31342
31757
  return "_" + c;
31343
31758
  }
31344
31759
  class Je {
@@ -31474,26 +31889,26 @@ var go = { exports: {} };
31474
31889
  getSocket: function(c) {
31475
31890
  return O.createWebSocket(c);
31476
31891
  }
31477
- }), Pt = {
31892
+ }), It = {
31478
31893
  urls: Eo,
31479
31894
  handlesActivityChecks: !1,
31480
31895
  supportsPing: !0,
31481
31896
  isInitialized: function() {
31482
31897
  return !0;
31483
31898
  }
31484
- }, It = pe({
31899
+ }, Dt = pe({
31485
31900
  getSocket: function(c) {
31486
31901
  return O.HTTPFactory.createStreamingSocket(c);
31487
31902
  }
31488
- }, Pt), Dt = pe({
31903
+ }, It), Nt = pe({
31489
31904
  getSocket: function(c) {
31490
31905
  return O.HTTPFactory.createPollingSocket(c);
31491
31906
  }
31492
- }, Pt), Nt = {
31907
+ }, It), Bt = {
31493
31908
  isSupported: function() {
31494
31909
  return O.isXHRSupported();
31495
31910
  }
31496
- }, Bo = new xn(pe({}, It, Nt)), Ho = new xn(pe({}, Dt, Nt)), Ro = {
31911
+ }, Bo = new xn(pe({}, Dt, Bt)), Ho = new xn(pe({}, Nt, Bt)), Ro = {
31497
31912
  ws: No,
31498
31913
  xhr_streaming: Bo,
31499
31914
  xhr_polling: Ho
@@ -31521,13 +31936,13 @@ var go = { exports: {} };
31521
31936
  path: r
31522
31937
  }));
31523
31938
  }
31524
- }), Bt = {
31939
+ }), Ht = {
31525
31940
  isSupported: function(c) {
31526
31941
  var r = O.isXDRSupported(c.useTLS);
31527
31942
  return r;
31528
31943
  }
31529
- }, Vo = new xn(pe({}, It, Bt)), Uo = new xn(pe({}, Dt, Bt));
31530
- ui.xdr_streaming = Vo, ui.xdr_polling = Uo, ui.sockjs = Oo;
31944
+ }, Uo = new xn(pe({}, Dt, Ht)), Vo = new xn(pe({}, Nt, Ht));
31945
+ ui.xdr_streaming = Uo, ui.xdr_polling = Vo, ui.sockjs = Oo;
31531
31946
  var Ko = ui;
31532
31947
  class jo extends Je {
31533
31948
  constructor() {
@@ -31568,7 +31983,7 @@ var go = { exports: {} };
31568
31983
  return this.manager.isAlive() && this.transport.isSupported(r);
31569
31984
  }
31570
31985
  }
31571
- const Ht = {
31986
+ const Rt = {
31572
31987
  decodeMessage: function(c) {
31573
31988
  try {
31574
31989
  var r = JSON.parse(c.data), u = r.data;
@@ -31591,7 +32006,7 @@ var go = { exports: {} };
31591
32006
  return JSON.stringify(c);
31592
32007
  },
31593
32008
  processHandshake: function(c) {
31594
- var r = Ht.decodeMessage(c);
32009
+ var r = Rt.decodeMessage(c);
31595
32010
  if (r.event === "pusher:connection_established") {
31596
32011
  if (!r.data.activity_timeout)
31597
32012
  throw "No activity timeout specified in handshake";
@@ -31622,7 +32037,7 @@ var go = { exports: {} };
31622
32037
  } : null;
31623
32038
  }
31624
32039
  };
31625
- var yn = Ht;
32040
+ var yn = Rt;
31626
32041
  class qo extends Je {
31627
32042
  constructor(r, u) {
31628
32043
  super(), this.id = r, this.transport = u, this.activityTimeout = u.activityTimeout, this.bindListeners();
@@ -31739,7 +32154,7 @@ var go = { exports: {} };
31739
32154
  this.timeline.isEmpty() || this.timeline.send(O.TimelineTransport.getAgent(this, r), u);
31740
32155
  }
31741
32156
  }
31742
- class zi extends Je {
32157
+ class Wi extends Je {
31743
32158
  constructor(r, u) {
31744
32159
  super(function(b, S) {
31745
32160
  oe.debug("No callbacks on " + r + " for " + b);
@@ -31782,7 +32197,7 @@ var go = { exports: {} };
31782
32197
  r ? (this.subscriptionPending = !1, oe.error(r.toString()), this.emit("pusher:subscription_error", Object.assign({}, {
31783
32198
  type: "AuthError",
31784
32199
  error: r.message
31785
- }, r instanceof V ? { status: r.status } : {}))) : this.pusher.send_event("pusher:subscribe", {
32200
+ }, r instanceof U ? { status: r.status } : {}))) : this.pusher.send_event("pusher:subscribe", {
31786
32201
  auth: u.auth,
31787
32202
  channel_data: u.channel_data,
31788
32203
  channel: this.name
@@ -31801,7 +32216,7 @@ var go = { exports: {} };
31801
32216
  this.subscriptionCancelled = !1;
31802
32217
  }
31803
32218
  }
31804
- class Wi extends zi {
32219
+ class Zi extends Wi {
31805
32220
  authorize(r, u) {
31806
32221
  return this.pusher.config.channelAuthorizer({
31807
32222
  channelName: this.name,
@@ -31868,7 +32283,7 @@ var go = { exports: {} };
31868
32283
  Z((b = b.apply(c, r || [])).next());
31869
32284
  });
31870
32285
  };
31871
- class $o extends Wi {
32286
+ class $o extends Zi {
31872
32287
  constructor(r, u) {
31873
32288
  super(r, u), this.members = new Zo();
31874
32289
  }
@@ -31923,8 +32338,8 @@ var go = { exports: {} };
31923
32338
  this.members.reset(), super.disconnect();
31924
32339
  }
31925
32340
  }
31926
- var Yo = s(1), Zi = s(0);
31927
- class Qo extends Wi {
32341
+ var Yo = s(1), Ji = s(0);
32342
+ class Qo extends Zi {
31928
32343
  constructor(r, u, b) {
31929
32344
  super(r, u), this.key = null, this.nacl = b;
31930
32345
  }
@@ -31939,7 +32354,7 @@ var go = { exports: {} };
31939
32354
  u(new Error(`No shared_secret key in auth payload for encrypted channel: ${this.name}`), null);
31940
32355
  return;
31941
32356
  }
31942
- this.key = Object(Zi.decode)(x), delete S.shared_secret, u(null, S);
32357
+ this.key = Object(Ji.decode)(x), delete S.shared_secret, u(null, S);
31943
32358
  });
31944
32359
  }
31945
32360
  trigger(r, u) {
@@ -31962,12 +32377,12 @@ var go = { exports: {} };
31962
32377
  oe.error("Unexpected format for encrypted event, expected object with `ciphertext` and `nonce` fields, got: " + u);
31963
32378
  return;
31964
32379
  }
31965
- let b = Object(Zi.decode)(u.ciphertext);
32380
+ let b = Object(Ji.decode)(u.ciphertext);
31966
32381
  if (b.length < this.nacl.secretbox.overheadLength) {
31967
32382
  oe.error(`Expected encrypted event ciphertext length to be ${this.nacl.secretbox.overheadLength}, got: ${b.length}`);
31968
32383
  return;
31969
32384
  }
31970
- let S = Object(Zi.decode)(u.nonce);
32385
+ let S = Object(Ji.decode)(u.nonce);
31971
32386
  if (S.length < this.nacl.secretbox.nonceLength) {
31972
32387
  oe.error(`Expected encrypted event nonce length to be ${this.nacl.secretbox.nonceLength}, got: ${S.length}`);
31973
32388
  return;
@@ -32201,10 +32616,10 @@ var go = { exports: {} };
32201
32616
  return new Xo(c, r);
32202
32617
  },
32203
32618
  createChannel(c, r) {
32204
- return new zi(c, r);
32619
+ return new Wi(c, r);
32205
32620
  },
32206
32621
  createPrivateChannel(c, r) {
32207
- return new Wi(c, r);
32622
+ return new Zi(c, r);
32208
32623
  },
32209
32624
  createPresenceChannel(c, r) {
32210
32625
  return new $o(c, r);
@@ -32222,7 +32637,7 @@ var go = { exports: {} };
32222
32637
  return new Go(c, r, u);
32223
32638
  }
32224
32639
  }, $e = ia;
32225
- class Rt {
32640
+ class Ot {
32226
32641
  constructor(r) {
32227
32642
  this.options = r || {}, this.livesLeft = this.options.lives || 1 / 0;
32228
32643
  }
@@ -32275,7 +32690,7 @@ var go = { exports: {} };
32275
32690
  };
32276
32691
  }
32277
32692
  }
32278
- class Ji {
32693
+ class $i {
32279
32694
  constructor(r) {
32280
32695
  this.strategies = r;
32281
32696
  }
@@ -32340,7 +32755,7 @@ var go = { exports: {} };
32340
32755
  }))) : x++);
32341
32756
  }
32342
32757
  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));
32758
+ ce ? (Ut(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));
32344
32759
  });
32345
32760
  return {
32346
32761
  abort: function() {
@@ -32352,18 +32767,18 @@ var go = { exports: {} };
32352
32767
  };
32353
32768
  }
32354
32769
  }
32355
- function $i(c) {
32770
+ function Yi(c) {
32356
32771
  return "pusherTransport" + (c ? "TLS" : "NonTLS");
32357
32772
  }
32358
32773
  function ra(c) {
32359
32774
  var r = O.getLocalStorage();
32360
32775
  if (r)
32361
32776
  try {
32362
- var u = r[$i(c)];
32777
+ var u = r[Yi(c)];
32363
32778
  if (u)
32364
32779
  return JSON.parse(u);
32365
32780
  } catch {
32366
- Ot(c);
32781
+ Ut(c);
32367
32782
  }
32368
32783
  return null;
32369
32784
  }
@@ -32371,7 +32786,7 @@ var go = { exports: {} };
32371
32786
  var S = O.getLocalStorage();
32372
32787
  if (S)
32373
32788
  try {
32374
- S[$i(c)] = gn({
32789
+ S[Yi(c)] = gn({
32375
32790
  timestamp: ae.now(),
32376
32791
  transport: r,
32377
32792
  latency: u,
@@ -32380,11 +32795,11 @@ var go = { exports: {} };
32380
32795
  } catch {
32381
32796
  }
32382
32797
  }
32383
- function Ot(c) {
32798
+ function Ut(c) {
32384
32799
  var r = O.getLocalStorage();
32385
32800
  if (r)
32386
32801
  try {
32387
- delete r[$i(c)];
32802
+ delete r[Yi(c)];
32388
32803
  } catch {
32389
32804
  }
32390
32805
  }
@@ -32443,9 +32858,9 @@ var go = { exports: {} };
32443
32858
  }
32444
32859
  var ua = function(c, r, u) {
32445
32860
  var b = {};
32446
- function S(Jt, dr, ur, cr, hr) {
32447
- var $t = u(c, Jt, dr, ur, cr, hr);
32448
- return b[Jt] = $t, $t;
32861
+ function S($t, dr, ur, cr, hr) {
32862
+ var Yt = u(c, $t, dr, ur, cr, hr);
32863
+ return b[$t] = Yt, Yt;
32449
32864
  }
32450
32865
  var x = Object.assign({}, r, {
32451
32866
  hostNonTLS: c.wsHost + ":" + c.wsPort,
@@ -32461,31 +32876,31 @@ var go = { exports: {} };
32461
32876
  loop: !0,
32462
32877
  timeout: 15e3,
32463
32878
  timeoutLimit: 6e4
32464
- }, Z = new Rt({
32879
+ }, Z = new Ot({
32465
32880
  minPingDelay: 1e4,
32466
32881
  maxPingDelay: c.activityTimeout
32467
- }), Q = new Rt({
32882
+ }), Q = new Ot({
32468
32883
  lives: 2,
32469
32884
  minPingDelay: 1e4,
32470
32885
  maxPingDelay: c.activityTimeout
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([
32472
- new Gn(qn(Ft), Ft, or)
32473
- ], B), Wt = new Cn([
32474
- new Gn(qn(Gt), Gt, ar)
32886
+ }), ce = S("ws", "ws", 3, x, Z), mi = S("wss", "ws", 3, E, Z), sr = S("sockjs", "sockjs", 1, D), Gt = S("xhr_streaming", "xhr_streaming", 1, D, Q), or = S("xdr_streaming", "xdr_streaming", 1, D, Q), qt = S("xhr_polling", "xhr_polling", 1, D), ar = S("xdr_polling", "xdr_polling", 1, D), zt = new Cn([ce], B), rr = new Cn([mi], B), lr = new Cn([sr], B), Wt = new Cn([
32887
+ new Gn(qn(Gt), Gt, or)
32475
32888
  ], B), Zt = new Cn([
32476
- new Gn(qn(zt), new Ji([
32477
- zt,
32478
- new ci(Wt, { delay: 4e3 })
32479
- ]), Wt)
32480
- ], B), et = new Gn(qn(Zt), Zt, lr), nt;
32481
- return r.useTLS ? nt = new Ji([
32482
- qt,
32483
- new ci(et, { delay: 2e3 })
32484
- ]) : nt = new Ji([
32485
- qt,
32889
+ new Gn(qn(qt), qt, ar)
32890
+ ], B), Jt = new Cn([
32891
+ new Gn(qn(Wt), new $i([
32892
+ Wt,
32893
+ new ci(Zt, { delay: 4e3 })
32894
+ ]), Zt)
32895
+ ], B), nt = new Gn(qn(Jt), Jt, lr), it;
32896
+ return r.useTLS ? it = new $i([
32897
+ zt,
32898
+ new ci(nt, { delay: 2e3 })
32899
+ ]) : it = new $i([
32900
+ zt,
32486
32901
  new ci(rr, { delay: 2e3 }),
32487
- new ci(et, { delay: 5e3 })
32488
- ]), new aa(new da(new Gn(qn(ce), nt, et)), b, {
32902
+ new ci(nt, { delay: 5e3 })
32903
+ ]), new aa(new da(new Gn(qn(ce), it, nt)), b, {
32489
32904
  ttl: 18e5,
32490
32905
  timeline: r.timeline,
32491
32906
  useTLS: r.useTLS
@@ -32546,14 +32961,14 @@ var go = { exports: {} };
32546
32961
  return this.position === r.length && r.length > pa;
32547
32962
  }
32548
32963
  }
32549
- var Yi;
32964
+ var Qi;
32550
32965
  (function(c) {
32551
32966
  c[c.CONNECTING = 0] = "CONNECTING", c[c.OPEN = 1] = "OPEN", c[c.CLOSED = 3] = "CLOSED";
32552
- })(Yi || (Yi = {}));
32553
- var Sn = Yi, fa = 1;
32967
+ })(Qi || (Qi = {}));
32968
+ var Sn = Qi, fa = 1;
32554
32969
  class ga {
32555
32970
  constructor(r, u) {
32556
- this.hooks = r, this.session = Ut(1e3) + "/" + ka(8), this.location = ya(u), this.readyState = Sn.CONNECTING, this.openStream();
32971
+ this.hooks = r, this.session = Kt(1e3) + "/" + ka(8), this.location = ya(u), this.readyState = Sn.CONNECTING, this.openStream();
32557
32972
  }
32558
32973
  send(r) {
32559
32974
  return this.sendRaw(JSON.stringify([r]));
@@ -32659,12 +33074,12 @@ var go = { exports: {} };
32659
33074
  var u = /(https?:\/\/)([^\/:]+)((\/|:)?.*)/.exec(c);
32660
33075
  return u[1] + r + u[3];
32661
33076
  }
32662
- function Ut(c) {
33077
+ function Kt(c) {
32663
33078
  return O.randomInt(c);
32664
33079
  }
32665
33080
  function ka(c) {
32666
33081
  for (var r = [], u = 0; u < c; u++)
32667
- r.push(Ut(32).toString(32));
33082
+ r.push(Kt(32).toString(32));
32668
33083
  return r.join("");
32669
33084
  }
32670
33085
  var wa = ga, _a = {
@@ -32725,11 +33140,11 @@ var go = { exports: {} };
32725
33140
  createRequest(c, r, u) {
32726
33141
  return new ba(c, r, u);
32727
33142
  }
32728
- }, Kt = Ea;
32729
- Kt.createXDR = function(c, r) {
33143
+ }, jt = Ea;
33144
+ jt.createXDR = function(c, r) {
32730
33145
  return this.createRequest(va, c, r);
32731
33146
  };
32732
- var Pa = Kt, Ia = {
33147
+ var Pa = jt, Ia = {
32733
33148
  nextAuthCallbackID: 1,
32734
33149
  auth_callbacks: {},
32735
33150
  ScriptReceivers: a,
@@ -32822,11 +33237,11 @@ var go = { exports: {} };
32822
33237
  return (window.crypto || window.msCrypto).getRandomValues(new Uint32Array(1))[0] / Math.pow(2, 32);
32823
33238
  }() * c);
32824
33239
  }
32825
- }, O = Ia, Qi;
33240
+ }, O = Ia, Xi;
32826
33241
  (function(c) {
32827
33242
  c[c.ERROR = 3] = "ERROR", c[c.INFO = 6] = "INFO", c[c.DEBUG = 7] = "DEBUG";
32828
- })(Qi || (Qi = {}));
32829
- var hi = Qi;
33243
+ })(Xi || (Xi = {}));
33244
+ var hi = Xi;
32830
33245
  class Da {
32831
33246
  constructor(r, u, b) {
32832
33247
  this.key = r, this.session = u, this.events = [], this.options = b || {}, this.sent = 0, this.uniqueID = 0;
@@ -32877,8 +33292,8 @@ var go = { exports: {} };
32877
33292
  connect(r, u) {
32878
33293
  if (this.isSupported()) {
32879
33294
  if (this.priority < r)
32880
- return jt(new _(), u);
32881
- } else return jt(new G(), u);
33295
+ return Ft(new _(), u);
33296
+ } else return Ft(new G(), u);
32882
33297
  var b = !1, S = this.transport.createConnection(this.name, this.priority, this.options.key, this.options), x = null, E = function() {
32883
33298
  S.unbind("initialized", E), S.connect();
32884
33299
  }, D = function() {
@@ -32904,7 +33319,7 @@ var go = { exports: {} };
32904
33319
  };
32905
33320
  }
32906
33321
  }
32907
- function jt(c, r) {
33322
+ function Ft(c, r) {
32908
33323
  return ae.defer(function() {
32909
33324
  r(c);
32910
33325
  }), {
@@ -32945,7 +33360,7 @@ var go = { exports: {} };
32945
33360
  throw "Options object must provide a cluster";
32946
33361
  "disableStats" in c && oe.warn("The disableStats option is deprecated in favor of enableStats");
32947
33362
  }
32948
- const Va = (c, r) => {
33363
+ const Ua = (c, r) => {
32949
33364
  var u = "socket_id=" + encodeURIComponent(c.socketId);
32950
33365
  for (var b in r.params)
32951
33366
  u += "&" + encodeURIComponent(b) + "=" + encodeURIComponent(r.params[b]);
@@ -32956,11 +33371,11 @@ var go = { exports: {} };
32956
33371
  }
32957
33372
  return u;
32958
33373
  };
32959
- var Ua = (c) => {
33374
+ var Va = (c) => {
32960
33375
  if (typeof O.getAuthorizers()[c.transport] > "u")
32961
33376
  throw `'${c.transport}' is not a recognized auth transport`;
32962
33377
  return (r, u) => {
32963
- const b = Va(r, c);
33378
+ const b = Ua(r, c);
32964
33379
  O.getAuthorizers()[c.transport](O, b, c, C.UserAuthentication, u);
32965
33380
  };
32966
33381
  };
@@ -33037,7 +33452,7 @@ var go = { exports: {} };
33037
33452
  }
33038
33453
  function $a(c) {
33039
33454
  const r = Object.assign(Object.assign({}, d.userAuthentication), c.userAuthentication);
33040
- return "customHandler" in r && r.customHandler != null ? r.customHandler : Ua(r);
33455
+ return "customHandler" in r && r.customHandler != null ? r.customHandler : Va(r);
33041
33456
  }
33042
33457
  function Ya(c, r) {
33043
33458
  let u;
@@ -33120,7 +33535,7 @@ var go = { exports: {} };
33120
33535
  const r = (u) => {
33121
33536
  u.subscriptionPending && u.subscriptionCancelled ? u.reinstateSubscription() : !u.subscriptionPending && this.pusher.connection.state === "connected" && u.subscribe();
33122
33537
  };
33123
- this.serverToUserChannel = new zi(`#server-to-user-${this.user_data.id}`, this.pusher), this.serverToUserChannel.bind_global((u, b) => {
33538
+ this.serverToUserChannel = new Wi(`#server-to-user-${this.user_data.id}`, this.pusher), this.serverToUserChannel.bind_global((u, b) => {
33124
33539
  u.indexOf("pusher_internal:") === 0 || u.indexOf("pusher:") === 0 || this.emit(u, b);
33125
33540
  }), r(this.serverToUserChannel);
33126
33541
  }
@@ -33242,7 +33657,7 @@ var go = { exports: {} };
33242
33657
  }
33243
33658
  }
33244
33659
  ye.instances = [], ye.isReady = !1, ye.logToConsole = !1, ye.Runtime = O, ye.ScriptReceivers = O.ScriptReceivers, ye.DependenciesReceivers = O.DependenciesReceivers, ye.auth_callbacks = O.auth_callbacks;
33245
- var Xi = t.default = ye;
33660
+ var et = t.default = ye;
33246
33661
  function tr(c) {
33247
33662
  if (c == null)
33248
33663
  throw "You must pass your app key when you instantiate Pusher.";
@@ -33253,10 +33668,10 @@ var go = { exports: {} };
33253
33668
  ])
33254
33669
  );
33255
33670
  });
33256
- })(go);
33257
- var Ud = go.exports;
33258
- const Kd = /* @__PURE__ */ Vd(Ud);
33259
- class ks {
33671
+ })(yo);
33672
+ var Fd = yo.exports;
33673
+ const Gd = /* @__PURE__ */ jd(Fd);
33674
+ class _s {
33260
33675
  constructor(e) {
33261
33676
  h(this, "container");
33262
33677
  h(this, "onAction");
@@ -33319,7 +33734,7 @@ class ks {
33319
33734
  2
33320
33735
  )}`), t && this.payment.bankDetails && (t.innerHTML = (C = this.payment.bankDetails) == null ? void 0 : C.bankName), s && this.payment.bankDetails && (s.innerHTML = (w = this.payment.bankDetails) == null ? void 0 : w.accountName), o && this.payment.bankDetails && (o.innerHTML = this.payment.bankDetails.accountNumber), a && (a.innerHTML = Yn(this.initialTime)), this.startTimer("poll"), e.status === "inProgress") {
33321
33736
  const M = "45654f3ce4c9512ea9a4", A = "us2";
33322
- var p = new Kd(M, {
33737
+ var p = new Gd(M, {
33323
33738
  cluster: A
33324
33739
  }), v = p.subscribe(e.reference);
33325
33740
  v.bind("payment_status", (_) => {
@@ -33338,10 +33753,10 @@ class ks {
33338
33753
  this.attachListener();
33339
33754
  }
33340
33755
  render() {
33341
- return Od;
33756
+ return Kd;
33342
33757
  }
33343
33758
  }
33344
- const jd = `<div id="trasferConfirmationProgress">
33759
+ const qd = `<div id="trasferConfirmationProgress">
33345
33760
  <div>
33346
33761
  <div>
33347
33762
  <div class=" grid grid-rows-[auto_1fr] gap-4 mx-5">
@@ -33423,7 +33838,7 @@ const jd = `<div id="trasferConfirmationProgress">
33423
33838
  </div>
33424
33839
  </div>
33425
33840
  </div>`;
33426
- class Fd {
33841
+ class zd {
33427
33842
  constructor(e) {
33428
33843
  h(this, "container");
33429
33844
  h(this, "onAction");
@@ -33529,10 +33944,10 @@ class Fd {
33529
33944
  this.container.innerHTML = this.render(), this.renderTransferDetailsComponent(e), this.attachListeners();
33530
33945
  }
33531
33946
  render() {
33532
- return jd;
33947
+ return qd;
33533
33948
  }
33534
33949
  }
33535
- const Gd = `<div id="paymenExpired">
33950
+ const Wd = `<div id="paymenExpired">
33536
33951
  <div class="container-center min-h-[30dvh]">
33537
33952
  <div>
33538
33953
  <div class="container-center mb-5">
@@ -33556,7 +33971,7 @@ const Gd = `<div id="paymenExpired">
33556
33971
  </div>
33557
33972
  </div>
33558
33973
  </div>`;
33559
- class qd {
33974
+ class Zd {
33560
33975
  constructor(e) {
33561
33976
  h(this, "container");
33562
33977
  this.container = e.container;
@@ -33567,10 +33982,10 @@ class qd {
33567
33982
  this.container.innerHTML = this.render();
33568
33983
  }
33569
33984
  render() {
33570
- return Gd;
33985
+ return Wd;
33571
33986
  }
33572
33987
  }
33573
- class zd {
33988
+ class Jd {
33574
33989
  constructor({
33575
33990
  amount: e,
33576
33991
  totalAmount: i,
@@ -33676,7 +34091,7 @@ class zd {
33676
34091
  channel: "bank_transfer",
33677
34092
  reference: this.reference
33678
34093
  };
33679
- return Hi(
34094
+ return Ri(
33680
34095
  this.token,
33681
34096
  a,
33682
34097
  this.rdtCode,
@@ -33708,7 +34123,7 @@ class zd {
33708
34123
  this.paymentResponse = s, this.paymentResponseHeaders = o, s.status === "failed" ? (this.currentStep = 7, s.providerMessage ? this.warningScreen.setPaymentError(s.providerMessage) : this.warningScreen.setPaymentError("Payment failed"), this.warningScreen.hideReportIssue(), P.track("stop_transferProcess", {
33709
34124
  payment_method: "Transfer",
33710
34125
  verification_status: "Failed"
33711
- })) : (e && i && (e.classList.add("hidden"), i.classList.remove("hidden")), this.activeRef = s.reference, this.paymentResponse = s, s.bankDetails && s.bankDetails.accountNumber ? (this.transferDetails = new ks({
34126
+ })) : (e && i && (e.classList.add("hidden"), i.classList.remove("hidden")), this.activeRef = s.reference, this.paymentResponse = s, s.bankDetails && s.bankDetails.accountNumber ? (this.transferDetails = new _s({
33712
34127
  container: this.contents,
33713
34128
  onAction: (a) => {
33714
34129
  this.onSentVerify.bind(this)(a);
@@ -33749,7 +34164,7 @@ class zd {
33749
34164
  }), this.contents) {
33750
34165
  switch (this.currentStep) {
33751
34166
  case 1:
33752
- this.transferDetails = new ks({
34167
+ this.transferDetails = new _s({
33753
34168
  container: this.contents,
33754
34169
  onAction: (s) => {
33755
34170
  this.onSentVerify.bind(this)(s);
@@ -33760,12 +34175,12 @@ class zd {
33760
34175
  });
33761
34176
  break;
33762
34177
  case 2:
33763
- this.transferExpired = new qd({
34178
+ this.transferExpired = new Zd({
33764
34179
  container: this.contents
33765
34180
  }), this.transferExpired.renderComponent();
33766
34181
  break;
33767
34182
  case 5:
33768
- this.transferConfirmationProgress = new Fd({
34183
+ this.transferConfirmationProgress = new zd({
33769
34184
  container: this.contents,
33770
34185
  onAction: (s, o) => {
33771
34186
  this.currentStep = s, s === 7 && o && this.warningScreen.setPaymentError(o);
@@ -33810,11 +34225,12 @@ class zd {
33810
34225
  url: this.url,
33811
34226
  callBackUrl: this.callBackUrl,
33812
34227
  paymentResponse: this.paymentResponse,
33813
- paymentResponseHeaders: this.paymentResponseHeaders
34228
+ paymentResponseHeaders: this.paymentResponseHeaders,
34229
+ paymentMethod: "Transfer"
33814
34230
  }), this.transferConfirmationEnd.renderComponent();
33815
34231
  break;
33816
34232
  case 9:
33817
- this.transactionIssuesScreen = new Ri({
34233
+ this.transactionIssuesScreen = new Oi({
33818
34234
  container: this.contents,
33819
34235
  onAction: () => {
33820
34236
  var s;
@@ -33858,7 +34274,7 @@ class zd {
33858
34274
  this.abortController && this.abortController.abort();
33859
34275
  }
33860
34276
  }
33861
- function ws() {
34277
+ function Ms() {
33862
34278
  return function(n, e) {
33863
34279
  let i = n[e];
33864
34280
  Object.defineProperty(n, e, {
@@ -33881,7 +34297,7 @@ class Qe extends Error {
33881
34297
  super(e), this.name = "AuthorizationError";
33882
34298
  }
33883
34299
  }
33884
- class Et {
34300
+ class Pt {
33885
34301
  constructor(e) {
33886
34302
  h(this, "token");
33887
34303
  h(this, "baseurl", "https://api.spotflow.co/api/v1");
@@ -33897,7 +34313,7 @@ class Et {
33897
34313
  this.token = e.token, this.rdtCode = e.rdtCode, this.url = e.url, this.headers = this.getHeaders(this.token, this.rdtCode);
33898
34314
  }
33899
34315
  }
33900
- class yo extends Et {
34316
+ class Co extends Pt {
33901
34317
  constructor(e) {
33902
34318
  super(e);
33903
34319
  }
@@ -34022,7 +34438,7 @@ class yo extends Et {
34022
34438
  }
34023
34439
  }
34024
34440
  }
34025
- class Wd extends Et {
34441
+ class $d extends Pt {
34026
34442
  constructor(e) {
34027
34443
  super(e);
34028
34444
  }
@@ -34050,7 +34466,7 @@ class Wd extends Et {
34050
34466
  }
34051
34467
  }
34052
34468
  }
34053
- class Zd extends Et {
34469
+ class Yd extends Pt {
34054
34470
  constructor(e) {
34055
34471
  super(e);
34056
34472
  }
@@ -34069,11 +34485,11 @@ class Zd extends Et {
34069
34485
  }
34070
34486
  return e.json();
34071
34487
  } catch (e) {
34072
- throw e instanceof se ? (wi.showToast(e.message, "error", 9e3), console.error(`FetchError: ${e.message} (status: ${e.status})`)) : e instanceof Qe ? console.error(`AuthorizationError: ${e.message}`) : console.error(`Unexpected error: ${e}`), e;
34488
+ throw e instanceof se ? (_i.showToast(e.message, "error", 9e3), console.error(`FetchError: ${e.message} (status: ${e.status})`)) : e instanceof Qe ? console.error(`AuthorizationError: ${e.message}`) : console.error(`Unexpected error: ${e}`), e;
34073
34489
  }
34074
34490
  }
34075
34491
  }
34076
- const Jd = `<form id="ussdBanks">
34492
+ const Qd = `<form id="ussdBanks">
34077
34493
  <div>
34078
34494
  <h5 class="text-grey-400 font-semibold text-sm">Please choose your bank to begin payment</h5>
34079
34495
  <div class="mt-2">
@@ -34109,7 +34525,7 @@ const Jd = `<form id="ussdBanks">
34109
34525
  </div>
34110
34526
  </div>
34111
34527
  </form>`;
34112
- class _s {
34528
+ class As {
34113
34529
  constructor(e) {
34114
34530
  h(this, "container");
34115
34531
  h(this, "bank_service");
@@ -34121,7 +34537,7 @@ class _s {
34121
34537
  h(this, "rate");
34122
34538
  h(this, "amount");
34123
34539
  h(this, "totalAmount");
34124
- this.container = e.container, this.currency = e.currency, this.localCurrency = e.localCurrency, this.rate = e.rate, this.amount = e.amount, this.totalAmount = e.totalAmount, this.bank_list = [], this.bank_service = new Zd({
34540
+ this.container = e.container, this.currency = e.currency, this.localCurrency = e.localCurrency, this.rate = e.rate, this.amount = e.amount, this.totalAmount = e.totalAmount, this.bank_list = [], this.bank_service = new Yd({
34125
34541
  token: e.merchantKey,
34126
34542
  rdtCode: e.rdtCode,
34127
34543
  url: e.url
@@ -34188,10 +34604,10 @@ class _s {
34188
34604
  }), this.displayButtonText(), this.attachListerner();
34189
34605
  }
34190
34606
  render() {
34191
- return Jd;
34607
+ return Qd;
34192
34608
  }
34193
34609
  }
34194
- const $d = `<div id="viewCode">
34610
+ const Xd = `<div id="viewCode">
34195
34611
  <div class="grid gap-4">
34196
34612
  <div class="text-center">
34197
34613
  <div class="md:w-4/5 mx-auto grid gap-3">
@@ -34229,7 +34645,7 @@ const $d = `<div id="viewCode">
34229
34645
  </div>
34230
34646
  </div>
34231
34647
  </div>`;
34232
- class Yd {
34648
+ class eu {
34233
34649
  constructor(e) {
34234
34650
  h(this, "container");
34235
34651
  h(this, "selected");
@@ -34248,7 +34664,7 @@ class Yd {
34248
34664
  h(this, "metadata");
34249
34665
  h(this, "localCurrency");
34250
34666
  h(this, "onError");
34251
- this.container = e.container, this.selected = e.selected, this.onAction = e.onAction, this.secret = e.secret, this.paymentService = new yo({
34667
+ this.container = e.container, this.selected = e.selected, this.onAction = e.onAction, this.secret = e.secret, this.paymentService = new Co({
34252
34668
  token: this.secret,
34253
34669
  rdtCode: e.rdtCode,
34254
34670
  url: e.url
@@ -34346,15 +34762,15 @@ class Yd {
34346
34762
  this.makePayment(), this.attachListener();
34347
34763
  }
34348
34764
  render() {
34349
- return $d;
34765
+ return Xd;
34350
34766
  }
34351
34767
  }
34352
- var Qd = Object.defineProperty, Xd = (n, e, i, t) => {
34768
+ var nu = Object.defineProperty, iu = (n, e, i, t) => {
34353
34769
  for (var s = void 0, o = n.length - 1, a; o >= 0; o--)
34354
34770
  (a = n[o]) && (s = a(e, i, s) || s);
34355
- return s && Qd(e, i, s), s;
34771
+ return s && nu(e, i, s), s;
34356
34772
  };
34357
- class Co {
34773
+ class So {
34358
34774
  constructor({
34359
34775
  container: e,
34360
34776
  onSuccess: i,
@@ -34409,7 +34825,7 @@ class Co {
34409
34825
  h(this, "disablePaymentMethods");
34410
34826
  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(
34411
34827
  "#payment-content-view"
34412
- ), this._currentStep = 1, this.paymentService = new yo({
34828
+ ), this._currentStep = 1, this.paymentService = new Co({
34413
34829
  token: this.secret,
34414
34830
  rdtCode: this.rdtCode,
34415
34831
  url: this.url
@@ -34459,7 +34875,7 @@ class Co {
34459
34875
  }
34460
34876
  switch (this.currentStep) {
34461
34877
  case 1:
34462
- this.bankDetail = new _s({
34878
+ this.bankDetail = new As({
34463
34879
  container: this.contents,
34464
34880
  merchantKey: this.secret,
34465
34881
  onAction: this.onCodeSelect.bind(this),
@@ -34473,7 +34889,7 @@ class Co {
34473
34889
  }), this.bankDetail.renderContent();
34474
34890
  break;
34475
34891
  case 2:
34476
- this.viewUssdCode = new Yd({
34892
+ this.viewUssdCode = new eu({
34477
34893
  container: this.contents,
34478
34894
  onAction: (t, s) => {
34479
34895
  this.activeRef = s, this.currentStep = 4, this.intervalPayment = setInterval(() => {
@@ -34519,7 +34935,7 @@ class Co {
34519
34935
  }), this.successScreen.renderComponent();
34520
34936
  break;
34521
34937
  default:
34522
- this.bankDetail = new _s({
34938
+ this.bankDetail = new As({
34523
34939
  container: this.contents,
34524
34940
  merchantKey: this.secret,
34525
34941
  onAction: this.onCodeSelect.bind(this),
@@ -34540,11 +34956,11 @@ class Co {
34540
34956
  }, 400), this.currentStep = 2;
34541
34957
  }
34542
34958
  }
34543
- Xd([
34544
- ws(),
34545
- ws()
34546
- ], Co.prototype, "selectedCode");
34547
- const eu = {
34959
+ iu([
34960
+ Ms(),
34961
+ Ms()
34962
+ ], So.prototype, "selectedCode");
34963
+ const tu = {
34548
34964
  NGN: "Nigerian Naira",
34549
34965
  USD: "US Dollar",
34550
34966
  GHS: "Ghanaian Cedi",
@@ -34552,8 +34968,8 @@ const eu = {
34552
34968
  ZAF: "South African Rand",
34553
34969
  USDT: "Tether",
34554
34970
  KSH: "Kenyan Shilling"
34555
- }, nu = (n) => n == null ? void 0 : n.replace(/_/g, " ");
34556
- function iu(n) {
34971
+ }, su = (n) => n == null ? void 0 : n.replace(/_/g, " ");
34972
+ function ou(n) {
34557
34973
  return n.split(" ").map(
34558
34974
  (e) => e.charAt(0).toUpperCase() + e.slice(1).toLowerCase()
34559
34975
  // Capitalize the first letter and make the rest lowercase
@@ -34561,11 +34977,11 @@ function iu(n) {
34561
34977
  }
34562
34978
  const gi = (n) => {
34563
34979
  if (n) {
34564
- const e = nu(n);
34565
- return iu(e);
34980
+ const e = su(n);
34981
+ return ou(e);
34566
34982
  }
34567
34983
  return "";
34568
- }, tu = `<div>
34984
+ }, au = `<div>
34569
34985
  <button id="go-back" class="md:hidden" aria-label="Go back">
34570
34986
  </button>
34571
34987
  </div>
@@ -34702,7 +35118,7 @@ const gi = (n) => {
34702
35118
  <!-- Tab options -->
34703
35119
  </div>
34704
35120
  </div>`;
34705
- class su {
35121
+ class ru {
34706
35122
  constructor(e) {
34707
35123
  h(this, "container");
34708
35124
  h(this, "email");
@@ -34735,7 +35151,7 @@ class su {
34735
35151
  });
34736
35152
  }
34737
35153
  renderComponent() {
34738
- 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;
35154
+ var G, U, j, te, ge, V, 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;
34739
35155
  this.container.innerHTML = this.render(), this.amount = this.amount;
34740
35156
  const e = this.container.querySelector(
34741
35157
  "#merchant-logo-container"
@@ -34758,9 +35174,9 @@ class su {
34758
35174
  ), C = this.container.querySelector("#source-rate"), w = this.container.querySelector("#source-rate-mob"), M = this.container.querySelector("#tax-rate"), A = this.container.querySelector("#tax-rate-mob"), _ = this.container.querySelector("#tooltip-localCurrency"), T = this.container.querySelector(
34759
35175
  "#tooltip-localCurrency-mob"
34760
35176
  );
34761
- if ((G = this.merchantDetail) != null && G.merchantLogo ? i && i.setAttribute("src", (V = this.merchantDetail) == null ? void 0 : V.merchantLogo) : e && (i == null || i.remove(), e.innerHTML = `<div class="font-semibold text-tone-100 rounded-2xl w-8 h-8 bg-tone-10 container-center uppercase">${this.merchantDetail.merchantName[0]}</div>`), t && (t.innerHTML = this.email), s && (s.innerHTML = this.email), o) {
35177
+ if ((G = this.merchantDetail) != null && G.merchantLogo ? i && i.setAttribute("src", (U = this.merchantDetail) == null ? void 0 : U.merchantLogo) : e && (i == null || i.remove(), e.innerHTML = `<div class="font-semibold text-tone-100 rounded-2xl w-8 h-8 bg-tone-10 container-center uppercase">${this.merchantDetail.merchantName[0]}</div>`), t && (t.innerHTML = this.email), s && (s.innerHTML = this.email), o) {
34762
35178
  if ((te = (j = this.merchantDetail) == null ? void 0 : j.plan) != null && te.title) {
34763
- const Fn = ((U = (ge = this.merchantDetail) == null ? void 0 : ge.plan) == null ? void 0 : U.title) || "";
35179
+ const Fn = ((V = (ge = this.merchantDetail) == null ? void 0 : ge.plan) == null ? void 0 : V.title) || "";
34764
35180
  o.textContent = gi(Fn);
34765
35181
  }
34766
35182
  (ke = this.metadata) != null && ke.productName && (o.textContent = gi(
@@ -34785,7 +35201,7 @@ class su {
34785
35201
  )} `) : 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());
34786
35202
  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;
34787
35203
  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)}`);
34788
- const K = eu[this.localCurrency];
35204
+ const K = tu[this.localCurrency];
34789
35205
  _ && this.localCurrency && (_.innerHTML = K ? `${K} (${this.localCurrency})` : this.localCurrency), T && this.localCurrency && (T.innerHTML = K ? `${K} (${this.localCurrency})` : this.localCurrency), this.renderPaymentOptions(this.container), this.attachListeners();
34790
35206
  }
34791
35207
  renderPaymentOptions(e) {
@@ -34857,414 +35273,9 @@ class su {
34857
35273
  }
34858
35274
  }
34859
35275
  }
34860
- render() {
34861
- return tu;
34862
- }
34863
- }
34864
- const ou = `<div class="flex items-center justify-center md:justify-between w-full text-xxs mt-5">
34865
- <div class="text-tone-60"><span>Powered by</span> <span class="font-bold">Spotflow</span></div>
34866
- <div class="align-center text-tone-60 hidden md:flex gap-4">
34867
- <!-- <span id="test-cards-link" class="hover:font-bold">Test Cards</span> -->
34868
- <a href="https://ribbon-scowl-35f.notion.site/Terms-Conditions-940742f0a1b144498ffc1786c5bc6a08?pvs=4" target="_blank" class="hover:font-bold">Terms</a>
34869
- <a href="https://ribbon-scowl-35f.notion.site/Privacy-Policy-Spotflow-3997ee8d923d4cd39a3dc43b7249b713" target="_blank" class="hover:font-bold">Privacy</a>
34870
- <a href="mailto:hello@spotflow.one" class="hover:font-bold">Contact</a>
34871
- </div>
34872
- </div>`, au = `<div class="box-container flex-1">
34873
- <!-- test-cards.html -->
34874
- <div class="bg-gray-100 py-2 px-4 rounded-lg mt-4 relative">
34875
- <div class="flex items-start gap-4 mb-4">
34876
- <nav id="test-card-tabs"
34877
- class="flex w-full font-medium items-start gap-6 border-b border-tone-10 text-base text-tone-40 mb-2">
34878
- <button class="tab-btn active-tab" data-target="no-auth">No auth</button>
34879
- <button class="tab-btn" data-target="pin">Pin</button>
34880
- <button class="tab-btn" data-target="pin-otp">Pin + OTP</button>
34881
- <button class="tab-btn" data-target="3ds">3DS</button>
34882
- <button class="tab-btn" data-target="avs">AVS</button>
34883
- </nav>
34884
- <!-- Close Icon -->
34885
- <button id="close-test-card" class="text-gray-500 hover:text-black">
34886
-
34887
- </button>
34888
- </div>
34889
-
34890
- <!-- Section contents -->
34891
- <div id="no-auth" class="tab-content grid gap-3 border border-tone-50 px-6 py-4 rounded-2xl mb-4">
34892
- <div class="flex justify-between items-center">
34893
- <span class="text-tone-60 font-medium text-sm">Number</span>
34894
- <div class="flex items-center gap-1">
34895
- <span data-copy-value="4111112000062555" class="text-tone-100 text-sm font-medium">4111112000062555</span>
34896
- <button class="copy-btn p-1 hover:opacity-80 transition-opacity">
34897
- <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
34898
- <path
34899
- d="M4.66667 3.99992V1.99992C4.66667 1.82311 4.7369 1.65354 4.86193 1.52851C4.98695 1.40349 5.15652 1.33325 5.33333 1.33325H13.3333C13.5101 1.33325 13.6797 1.40349 13.8047 1.52851C13.9298 1.65354 14 1.82311 14 1.99992V11.3333C14 11.5101 13.9298 11.6796 13.8047 11.8047C13.6797 11.9297 13.5101 11.9999 13.3333 11.9999H11.3333V13.9999C11.3333 14.3679 11.0333 14.6666 10.662 14.6666H2.67133C2.58342 14.6671 2.49626 14.6503 2.41488 14.617C2.3335 14.5837 2.25949 14.5347 2.19711 14.4728C2.13472 14.4108 2.0852 14.3372 2.05137 14.256C2.01754 14.1749 2.00009 14.0878 2 13.9999L2.002 4.66659C2.002 4.29859 2.302 3.99992 2.67333 3.99992H4.66667ZM3.33533 5.33325L3.33333 13.3333H10V5.33325H3.33533ZM6 3.99992H11.3333V10.6666H12.6667V2.66659H6V3.99992Z"
34900
- fill="#0D0716" />
34901
- </svg>
34902
- </button>
34903
- </div>
34904
- </div>
34905
- <div class="flex justify-between items-center">
34906
- <span class="text-tone-60 font-medium text-sm">Expiry</span>
34907
- <div class="flex items-center gap-1">
34908
- <span data-copy-value="12/2030" class="text-tone-100 text-sm font-medium">12/2030 </span>
34909
- <button class="copy-btn p-1 hover:opacity-80 transition-opacity">
34910
- <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
34911
- <path
34912
- d="M4.66667 3.99992V1.99992C4.66667 1.82311 4.7369 1.65354 4.86193 1.52851C4.98695 1.40349 5.15652 1.33325 5.33333 1.33325H13.3333C13.5101 1.33325 13.6797 1.40349 13.8047 1.52851C13.9298 1.65354 14 1.82311 14 1.99992V11.3333C14 11.5101 13.9298 11.6796 13.8047 11.8047C13.6797 11.9297 13.5101 11.9999 13.3333 11.9999H11.3333V13.9999C11.3333 14.3679 11.0333 14.6666 10.662 14.6666H2.67133C2.58342 14.6671 2.49626 14.6503 2.41488 14.617C2.3335 14.5837 2.25949 14.5347 2.19711 14.4728C2.13472 14.4108 2.0852 14.3372 2.05137 14.256C2.01754 14.1749 2.00009 14.0878 2 13.9999L2.002 4.66659C2.002 4.29859 2.302 3.99992 2.67333 3.99992H4.66667ZM3.33533 5.33325L3.33333 13.3333H10V5.33325H3.33533ZM6 3.99992H11.3333V10.6666H12.6667V2.66659H6V3.99992Z"
34913
- fill="#0D0716" />
34914
- </svg>
34915
- </button>
34916
- </div>
34917
- </div>
34918
- <div class="flex justify-between items-center">
34919
- <span class="text-tone-60 font-medium text-sm">CVV</span>
34920
- <div class="flex items-center gap-1">
34921
- <span data-copy-value="455" class="text-tone-100 text-sm font-medium">455 </span>
34922
- <button class="copy-btn p-1 hover:opacity-80 transition-opacity">
34923
- <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
34924
- <path
34925
- d="M4.66667 3.99992V1.99992C4.66667 1.82311 4.7369 1.65354 4.86193 1.52851C4.98695 1.40349 5.15652 1.33325 5.33333 1.33325H13.3333C13.5101 1.33325 13.6797 1.40349 13.8047 1.52851C13.9298 1.65354 14 1.82311 14 1.99992V11.3333C14 11.5101 13.9298 11.6796 13.8047 11.8047C13.6797 11.9297 13.5101 11.9999 13.3333 11.9999H11.3333V13.9999C11.3333 14.3679 11.0333 14.6666 10.662 14.6666H2.67133C2.58342 14.6671 2.49626 14.6503 2.41488 14.617C2.3335 14.5837 2.25949 14.5347 2.19711 14.4728C2.13472 14.4108 2.0852 14.3372 2.05137 14.256C2.01754 14.1749 2.00009 14.0878 2 13.9999L2.002 4.66659C2.002 4.29859 2.302 3.99992 2.67333 3.99992H4.66667ZM3.33533 5.33325L3.33333 13.3333H10V5.33325H3.33533ZM6 3.99992H11.3333V10.6666H12.6667V2.66659H6V3.99992Z"
34926
- fill="#0D0716" />
34927
- </svg>
34928
- </button>
34929
- </div>
34930
- </div>
34931
- </div>
34932
-
34933
- <!-- Pin -->
34934
- <div id="pin" class="hidden tab-content">
34935
- <div class=" grid gap-3 border border-tone-50 px-6 py-4 rounded-2xl mb-4">
34936
- <div class="flex justify-between items-center">
34937
- <span class="text-tone-60 font-medium text-sm">Number</span>
34938
- <div class="flex items-center gap-1">
34939
- <span data-copy-value="5555558684543932"
34940
- class="text-tone-100 text-sm font-medium">5555558684543932 </span>
34941
- <button class="copy-btn p-1 hover:opacity-80 transition-opacity">
34942
- <svg width="16" height="16" viewBox="0 0 16 16" fill="none"
34943
- xmlns="http://www.w3.org/2000/svg">
34944
- <path
34945
- d="M4.66667 3.99992V1.99992C4.66667 1.82311 4.7369 1.65354 4.86193 1.52851C4.98695 1.40349 5.15652 1.33325 5.33333 1.33325H13.3333C13.5101 1.33325 13.6797 1.40349 13.8047 1.52851C13.9298 1.65354 14 1.82311 14 1.99992V11.3333C14 11.5101 13.9298 11.6796 13.8047 11.8047C13.6797 11.9297 13.5101 11.9999 13.3333 11.9999H11.3333V13.9999C11.3333 14.3679 11.0333 14.6666 10.662 14.6666H2.67133C2.58342 14.6671 2.49626 14.6503 2.41488 14.617C2.3335 14.5837 2.25949 14.5347 2.19711 14.4728C2.13472 14.4108 2.0852 14.3372 2.05137 14.256C2.01754 14.1749 2.00009 14.0878 2 13.9999L2.002 4.66659C2.002 4.29859 2.302 3.99992 2.67333 3.99992H4.66667ZM3.33533 5.33325L3.33333 13.3333H10V5.33325H3.33533ZM6 3.99992H11.3333V10.6666H12.6667V2.66659H6V3.99992Z"
34946
- fill="#0D0716" />
34947
- </svg>
34948
- </button>
34949
- </div>
34950
- </div>
34951
-
34952
- <div class="flex justify-between items-center">
34953
- <span class="text-tone-60 font-medium text-sm">Expiry</span>
34954
- <div class="flex items-center gap-1">
34955
- <span data-copy-value="12/2030" class="text-tone-100 text-sm font-medium">12/2030</span>
34956
- <button class="copy-btn p-1 hover:opacity-80 transition-opacity">
34957
- <svg width="16" height="16" viewBox="0 0 16 16" fill="none"
34958
- xmlns="http://www.w3.org/2000/svg">
34959
- <path
34960
- d="M4.66667 3.99992V1.99992C4.66667 1.82311 4.7369 1.65354 4.86193 1.52851C4.98695 1.40349 5.15652 1.33325 5.33333 1.33325H13.3333C13.5101 1.33325 13.6797 1.40349 13.8047 1.52851C13.9298 1.65354 14 1.82311 14 1.99992V11.3333C14 11.5101 13.9298 11.6796 13.8047 11.8047C13.6797 11.9297 13.5101 11.9999 13.3333 11.9999H11.3333V13.9999C11.3333 14.3679 11.0333 14.6666 10.662 14.6666H2.67133C2.58342 14.6671 2.49626 14.6503 2.41488 14.617C2.3335 14.5837 2.25949 14.5347 2.19711 14.4728C2.13472 14.4108 2.0852 14.3372 2.05137 14.256C2.01754 14.1749 2.00009 14.0878 2 13.9999L2.002 4.66659C2.002 4.29859 2.302 3.99992 2.67333 3.99992H4.66667ZM3.33533 5.33325L3.33333 13.3333H10V5.33325H3.33533ZM6 3.99992H11.3333V10.6666H12.6667V2.66659H6V3.99992Z"
34961
- fill="#0D0716" />
34962
- </svg>
34963
- </button>
34964
- </div>
34965
- </div>
34966
- <div class="flex justify-between items-center">
34967
- <span class="text-tone-60 font-medium text-sm">CVV</span>
34968
- <div class="flex items-center gap-1">
34969
- <span data-copy-value="321" class="text-tone-100 text-sm font-medium">321</span>
34970
- <button class="copy-btn p-1 hover:opacity-80 transition-opacity">
34971
- <svg width="16" height="16" viewBox="0 0 16 16" fill="none"
34972
- xmlns="http://www.w3.org/2000/svg">
34973
- <path
34974
- d="M4.66667 3.99992V1.99992C4.66667 1.82311 4.7369 1.65354 4.86193 1.52851C4.98695 1.40349 5.15652 1.33325 5.33333 1.33325H13.3333C13.5101 1.33325 13.6797 1.40349 13.8047 1.52851C13.9298 1.65354 14 1.82311 14 1.99992V11.3333C14 11.5101 13.9298 11.6796 13.8047 11.8047C13.6797 11.9297 13.5101 11.9999 13.3333 11.9999H11.3333V13.9999C11.3333 14.3679 11.0333 14.6666 10.662 14.6666H2.67133C2.58342 14.6671 2.49626 14.6503 2.41488 14.617C2.3335 14.5837 2.25949 14.5347 2.19711 14.4728C2.13472 14.4108 2.0852 14.3372 2.05137 14.256C2.01754 14.1749 2.00009 14.0878 2 13.9999L2.002 4.66659C2.002 4.29859 2.302 3.99992 2.67333 3.99992H4.66667ZM3.33533 5.33325L3.33333 13.3333H10V5.33325H3.33533ZM6 3.99992H11.3333V10.6666H12.6667V2.66659H6V3.99992Z"
34975
- fill="#0D0716" />
34976
- </svg>
34977
- </button>
34978
- </div>
34979
- </div>
34980
- <div class="flex justify-between items-center">
34981
- <span class="text-tone-60 font-medium text-sm">Pin</span>
34982
- <div class="flex items-center gap-1">
34983
- <span data-copy-value="4321" class="text-tone-100 text-sm font-medium">4321</span>
34984
- <button class="copy-btn p-1 hover:opacity-80 transition-opacity">
34985
- <svg width="16" height="16" viewBox="0 0 16 16" fill="none"
34986
- xmlns="http://www.w3.org/2000/svg">
34987
- <path
34988
- d="M4.66667 3.99992V1.99992C4.66667 1.82311 4.7369 1.65354 4.86193 1.52851C4.98695 1.40349 5.15652 1.33325 5.33333 1.33325H13.3333C13.5101 1.33325 13.6797 1.40349 13.8047 1.52851C13.9298 1.65354 14 1.82311 14 1.99992V11.3333C14 11.5101 13.9298 11.6796 13.8047 11.8047C13.6797 11.9297 13.5101 11.9999 13.3333 11.9999H11.3333V13.9999C11.3333 14.3679 11.0333 14.6666 10.662 14.6666H2.67133C2.58342 14.6671 2.49626 14.6503 2.41488 14.617C2.3335 14.5837 2.25949 14.5347 2.19711 14.4728C2.13472 14.4108 2.0852 14.3372 2.05137 14.256C2.01754 14.1749 2.00009 14.0878 2 13.9999L2.002 4.66659C2.002 4.29859 2.302 3.99992 2.67333 3.99992H4.66667ZM3.33533 5.33325L3.33333 13.3333H10V5.33325H3.33533ZM6 3.99992H11.3333V10.6666H12.6667V2.66659H6V3.99992Z"
34989
- fill="#0D0716" />
34990
- </svg>
34991
- </button>
34992
- </div>
34993
- </div>
34994
- </div>
34995
- </div>
34996
-
34997
- <!-- Pin + OTP -->
34998
- <div id="pin-otp" class="tab-content hidden">
34999
- <div class=" grid gap-3 border border-tone-50 px-6 py-4 rounded-2xl mb-4">
35000
- <div class="flex justify-between items-center">
35001
- <span class="text-tone-60 font-medium text-sm">Number</span>
35002
- <div class="flex items-center gap-1">
35003
- <span data-copy-value="5555567973581842" class="text-tone-100 text-sm font-medium">5555567973581842</span>
35004
- <button class="copy-btn p-1 hover:opacity-80 transition-opacity">
35005
- <svg width="16" height="16" viewBox="0 0 16 16" fill="none"
35006
- xmlns="http://www.w3.org/2000/svg">
35007
- <path
35008
- d="M4.66667 3.99992V1.99992C4.66667 1.82311 4.7369 1.65354 4.86193 1.52851C4.98695 1.40349 5.15652 1.33325 5.33333 1.33325H13.3333C13.5101 1.33325 13.6797 1.40349 13.8047 1.52851C13.9298 1.65354 14 1.82311 14 1.99992V11.3333C14 11.5101 13.9298 11.6796 13.8047 11.8047C13.6797 11.9297 13.5101 11.9999 13.3333 11.9999H11.3333V13.9999C11.3333 14.3679 11.0333 14.6666 10.662 14.6666H2.67133C2.58342 14.6671 2.49626 14.6503 2.41488 14.617C2.3335 14.5837 2.25949 14.5347 2.19711 14.4728C2.13472 14.4108 2.0852 14.3372 2.05137 14.256C2.01754 14.1749 2.00009 14.0878 2 13.9999L2.002 4.66659C2.002 4.29859 2.302 3.99992 2.67333 3.99992H4.66667ZM3.33533 5.33325L3.33333 13.3333H10V5.33325H3.33533ZM6 3.99992H11.3333V10.6666H12.6667V2.66659H6V3.99992Z"
35009
- fill="#0D0716" />
35010
- </svg>
35011
- </button>
35012
- </div>
35013
- </div>
35014
- <div class="flex justify-between items-center">
35015
- <span class="text-tone-60 font-medium text-sm">Expiry</span>
35016
- <div class="flex items-center gap-1">
35017
- <span data-copy-value="12/2030" class="text-tone-100 text-sm font-medium">12/2030</span>
35018
- <button class="copy-btn p-1 hover:opacity-80 transition-opacity">
35019
- <svg width="16" height="16" viewBox="0 0 16 16" fill="none"
35020
- xmlns="http://www.w3.org/2000/svg">
35021
- <path
35022
- d="M4.66667 3.99992V1.99992C4.66667 1.82311 4.7369 1.65354 4.86193 1.52851C4.98695 1.40349 5.15652 1.33325 5.33333 1.33325H13.3333C13.5101 1.33325 13.6797 1.40349 13.8047 1.52851C13.9298 1.65354 14 1.82311 14 1.99992V11.3333C14 11.5101 13.9298 11.6796 13.8047 11.8047C13.6797 11.9297 13.5101 11.9999 13.3333 11.9999H11.3333V13.9999C11.3333 14.3679 11.0333 14.6666 10.662 14.6666H2.67133C2.58342 14.6671 2.49626 14.6503 2.41488 14.617C2.3335 14.5837 2.25949 14.5347 2.19711 14.4728C2.13472 14.4108 2.0852 14.3372 2.05137 14.256C2.01754 14.1749 2.00009 14.0878 2 13.9999L2.002 4.66659C2.002 4.29859 2.302 3.99992 2.67333 3.99992H4.66667ZM3.33533 5.33325L3.33333 13.3333H10V5.33325H3.33533ZM6 3.99992H11.3333V10.6666H12.6667V2.66659H6V3.99992Z"
35023
- fill="#0D0716" />
35024
- </svg>
35025
- </button>
35026
- </div>
35027
- </div>
35028
- <div class="flex justify-between items-center">
35029
- <span class="text-tone-60 font-medium text-sm">CVV</span>
35030
- <div class="flex items-center gap-1">
35031
- <span data-copy-value="321" class="text-tone-100 text-sm font-medium">321</span>
35032
- <button class="copy-btn p-1 hover:opacity-80 transition-opacity">
35033
- <svg width="16" height="16" viewBox="0 0 16 16" fill="none"
35034
- xmlns="http://www.w3.org/2000/svg">
35035
- <path
35036
- d="M4.66667 3.99992V1.99992C4.66667 1.82311 4.7369 1.65354 4.86193 1.52851C4.98695 1.40349 5.15652 1.33325 5.33333 1.33325H13.3333C13.5101 1.33325 13.6797 1.40349 13.8047 1.52851C13.9298 1.65354 14 1.82311 14 1.99992V11.3333C14 11.5101 13.9298 11.6796 13.8047 11.8047C13.6797 11.9297 13.5101 11.9999 13.3333 11.9999H11.3333V13.9999C11.3333 14.3679 11.0333 14.6666 10.662 14.6666H2.67133C2.58342 14.6671 2.49626 14.6503 2.41488 14.617C2.3335 14.5837 2.25949 14.5347 2.19711 14.4728C2.13472 14.4108 2.0852 14.3372 2.05137 14.256C2.01754 14.1749 2.00009 14.0878 2 13.9999L2.002 4.66659C2.002 4.29859 2.302 3.99992 2.67333 3.99992H4.66667ZM3.33533 5.33325L3.33333 13.3333H10V5.33325H3.33533ZM6 3.99992H11.3333V10.6666H12.6667V2.66659H6V3.99992Z"
35037
- fill="#0D0716" />
35038
- </svg>
35039
- </button>
35040
- </div>
35041
- </div>
35042
- <div class="flex justify-between items-center">
35043
- <span class="text-tone-60 font-medium text-sm">Pin</span>
35044
- <div class="flex items-center gap-1">
35045
- <span data-copy-value="4321" class="text-tone-100 text-sm font-medium">4321</span>
35046
- <button class="copy-btn p-1 hover:opacity-80 transition-opacity">
35047
- <svg width="16" height="16" viewBox="0 0 16 16" fill="none"
35048
- xmlns="http://www.w3.org/2000/svg">
35049
- <path
35050
- d="M4.66667 3.99992V1.99992C4.66667 1.82311 4.7369 1.65354 4.86193 1.52851C4.98695 1.40349 5.15652 1.33325 5.33333 1.33325H13.3333C13.5101 1.33325 13.6797 1.40349 13.8047 1.52851C13.9298 1.65354 14 1.82311 14 1.99992V11.3333C14 11.5101 13.9298 11.6796 13.8047 11.8047C13.6797 11.9297 13.5101 11.9999 13.3333 11.9999H11.3333V13.9999C11.3333 14.3679 11.0333 14.6666 10.662 14.6666H2.67133C2.58342 14.6671 2.49626 14.6503 2.41488 14.617C2.3335 14.5837 2.25949 14.5347 2.19711 14.4728C2.13472 14.4108 2.0852 14.3372 2.05137 14.256C2.01754 14.1749 2.00009 14.0878 2 13.9999L2.002 4.66659C2.002 4.29859 2.302 3.99992 2.67333 3.99992H4.66667ZM3.33533 5.33325L3.33333 13.3333H10V5.33325H3.33533ZM6 3.99992H11.3333V10.6666H12.6667V2.66659H6V3.99992Z"
35051
- fill="#0D0716" />
35052
- </svg>
35053
- </button>
35054
- </div>
35055
- </div>
35056
- <div class="flex justify-between items-center">
35057
- <span class="text-tone-60 font-medium text-sm">OTP</span>
35058
- <div class="flex items-center gap-1">
35059
- <span data-copy-value="654321" class="text-tone-100 text-sm font-medium">654321</span>
35060
- <button class="copy-btn p-1 hover:opacity-80 transition-opacity">
35061
- <svg width="16" height="16" viewBox="0 0 16 16" fill="none"
35062
- xmlns="http://www.w3.org/2000/svg">
35063
- <path
35064
- d="M4.66667 3.99992V1.99992C4.66667 1.82311 4.7369 1.65354 4.86193 1.52851C4.98695 1.40349 5.15652 1.33325 5.33333 1.33325H13.3333C13.5101 1.33325 13.6797 1.40349 13.8047 1.52851C13.9298 1.65354 14 1.82311 14 1.99992V11.3333C14 11.5101 13.9298 11.6796 13.8047 11.8047C13.6797 11.9297 13.5101 11.9999 13.3333 11.9999H11.3333V13.9999C11.3333 14.3679 11.0333 14.6666 10.662 14.6666H2.67133C2.58342 14.6671 2.49626 14.6503 2.41488 14.617C2.3335 14.5837 2.25949 14.5347 2.19711 14.4728C2.13472 14.4108 2.0852 14.3372 2.05137 14.256C2.01754 14.1749 2.00009 14.0878 2 13.9999L2.002 4.66659C2.002 4.29859 2.302 3.99992 2.67333 3.99992H4.66667ZM3.33533 5.33325L3.33333 13.3333H10V5.33325H3.33533ZM6 3.99992H11.3333V10.6666H12.6667V2.66659H6V3.99992Z"
35065
- fill="#0D0716" />
35066
- </svg>
35067
- </button>
35068
- </div>
35069
- </div>
35070
- </div>
35071
- </div>
35072
- <!-- 3DS -->
35073
- <div id="3ds" class="tab-content hidden">
35074
- <div class=" grid gap-3 border border-tone-50 px-6 py-4 rounded-2xl mb-4">
35075
- <div class="flex justify-between items-center">
35076
- <span class="text-tone-60 font-medium text-sm">Number</span>
35077
- <div class="flex items-center gap-1">
35078
- <span data-copy-value="5555558684543932"
35079
- class="text-tone-100 text-sm font-medium">5555577124976817 </span>
35080
- <button class="copy-btn p-1 hover:opacity-80 transition-opacity">
35081
- <svg width="16" height="16" viewBox="0 0 16 16" fill="none"
35082
- xmlns="http://www.w3.org/2000/svg">
35083
- <path
35084
- d="M4.66667 3.99992V1.99992C4.66667 1.82311 4.7369 1.65354 4.86193 1.52851C4.98695 1.40349 5.15652 1.33325 5.33333 1.33325H13.3333C13.5101 1.33325 13.6797 1.40349 13.8047 1.52851C13.9298 1.65354 14 1.82311 14 1.99992V11.3333C14 11.5101 13.9298 11.6796 13.8047 11.8047C13.6797 11.9297 13.5101 11.9999 13.3333 11.9999H11.3333V13.9999C11.3333 14.3679 11.0333 14.6666 10.662 14.6666H2.67133C2.58342 14.6671 2.49626 14.6503 2.41488 14.617C2.3335 14.5837 2.25949 14.5347 2.19711 14.4728C2.13472 14.4108 2.0852 14.3372 2.05137 14.256C2.01754 14.1749 2.00009 14.0878 2 13.9999L2.002 4.66659C2.002 4.29859 2.302 3.99992 2.67333 3.99992H4.66667ZM3.33533 5.33325L3.33333 13.3333H10V5.33325H3.33533ZM6 3.99992H11.3333V10.6666H12.6667V2.66659H6V3.99992Z"
35085
- fill="#0D0716" />
35086
- </svg>
35087
- </button>
35088
- </div>
35089
- </div>
35090
-
35091
- <div class="flex justify-between items-center">
35092
- <span class="text-tone-60 font-medium text-sm">Expiry</span>
35093
- <div class="flex items-center gap-1">
35094
- <span data-copy-value="12/2030" class="text-tone-100 text-sm font-medium">12/2030</span>
35095
- <button class="copy-btn p-1 hover:opacity-80 transition-opacity">
35096
- <svg width="16" height="16" viewBox="0 0 16 16" fill="none"
35097
- xmlns="http://www.w3.org/2000/svg">
35098
- <path
35099
- d="M4.66667 3.99992V1.99992C4.66667 1.82311 4.7369 1.65354 4.86193 1.52851C4.98695 1.40349 5.15652 1.33325 5.33333 1.33325H13.3333C13.5101 1.33325 13.6797 1.40349 13.8047 1.52851C13.9298 1.65354 14 1.82311 14 1.99992V11.3333C14 11.5101 13.9298 11.6796 13.8047 11.8047C13.6797 11.9297 13.5101 11.9999 13.3333 11.9999H11.3333V13.9999C11.3333 14.3679 11.0333 14.6666 10.662 14.6666H2.67133C2.58342 14.6671 2.49626 14.6503 2.41488 14.617C2.3335 14.5837 2.25949 14.5347 2.19711 14.4728C2.13472 14.4108 2.0852 14.3372 2.05137 14.256C2.01754 14.1749 2.00009 14.0878 2 13.9999L2.002 4.66659C2.002 4.29859 2.302 3.99992 2.67333 3.99992H4.66667ZM3.33533 5.33325L3.33333 13.3333H10V5.33325H3.33533ZM6 3.99992H11.3333V10.6666H12.6667V2.66659H6V3.99992Z"
35100
- fill="#0D0716" />
35101
- </svg>
35102
- </button>
35103
- </div>
35104
- </div>
35105
- <div class="flex justify-between items-center">
35106
- <span class="text-tone-60 font-medium text-sm">CVV</span>
35107
- <div class="flex items-center gap-1">
35108
- <span data-copy-value="321" class="text-tone-100 text-sm font-medium">321</span>
35109
- <button class="copy-btn p-1 hover:opacity-80 transition-opacity">
35110
- <svg width="16" height="16" viewBox="0 0 16 16" fill="none"
35111
- xmlns="http://www.w3.org/2000/svg">
35112
- <path
35113
- d="M4.66667 3.99992V1.99992C4.66667 1.82311 4.7369 1.65354 4.86193 1.52851C4.98695 1.40349 5.15652 1.33325 5.33333 1.33325H13.3333C13.5101 1.33325 13.6797 1.40349 13.8047 1.52851C13.9298 1.65354 14 1.82311 14 1.99992V11.3333C14 11.5101 13.9298 11.6796 13.8047 11.8047C13.6797 11.9297 13.5101 11.9999 13.3333 11.9999H11.3333V13.9999C11.3333 14.3679 11.0333 14.6666 10.662 14.6666H2.67133C2.58342 14.6671 2.49626 14.6503 2.41488 14.617C2.3335 14.5837 2.25949 14.5347 2.19711 14.4728C2.13472 14.4108 2.0852 14.3372 2.05137 14.256C2.01754 14.1749 2.00009 14.0878 2 13.9999L2.002 4.66659C2.002 4.29859 2.302 3.99992 2.67333 3.99992H4.66667ZM3.33533 5.33325L3.33333 13.3333H10V5.33325H3.33533ZM6 3.99992H11.3333V10.6666H12.6667V2.66659H6V3.99992Z"
35114
- fill="#0D0716" />
35115
- </svg>
35116
- </button>
35117
- </div>
35118
- </div>
35119
- </div>
35120
- </div>
35121
-
35122
- <!-- AVS -->
35123
- <div id="avs" class="tab-content hidden">
35124
- <div class=" grid gap-3 border border-tone-50 px-6 py-4 rounded-2xl mb-4">
35125
- <div class="flex justify-between items-center">
35126
- <span class="text-tone-60 font-medium text-sm">Number</span>
35127
- <div class="flex items-center gap-1">
35128
- <span data-copy-value="4111124373708482"
35129
- class="text-tone-100 text-sm font-medium">4111124373708482 </span>
35130
- <button class="copy-btn p-1 hover:opacity-80 transition-opacity">
35131
- <svg width="16" height="16" viewBox="0 0 16 16" fill="none"
35132
- xmlns="http://www.w3.org/2000/svg">
35133
- <path
35134
- d="M4.66667 3.99992V1.99992C4.66667 1.82311 4.7369 1.65354 4.86193 1.52851C4.98695 1.40349 5.15652 1.33325 5.33333 1.33325H13.3333C13.5101 1.33325 13.6797 1.40349 13.8047 1.52851C13.9298 1.65354 14 1.82311 14 1.99992V11.3333C14 11.5101 13.9298 11.6796 13.8047 11.8047C13.6797 11.9297 13.5101 11.9999 13.3333 11.9999H11.3333V13.9999C11.3333 14.3679 11.0333 14.6666 10.662 14.6666H2.67133C2.58342 14.6671 2.49626 14.6503 2.41488 14.617C2.3335 14.5837 2.25949 14.5347 2.19711 14.4728C2.13472 14.4108 2.0852 14.3372 2.05137 14.256C2.01754 14.1749 2.00009 14.0878 2 13.9999L2.002 4.66659C2.002 4.29859 2.302 3.99992 2.67333 3.99992H4.66667ZM3.33533 5.33325L3.33333 13.3333H10V5.33325H3.33533ZM6 3.99992H11.3333V10.6666H12.6667V2.66659H6V3.99992Z"
35135
- fill="#0D0716" />
35136
- </svg>
35137
- </button>
35138
- </div>
35139
- </div>
35140
-
35141
- <div class="flex justify-between items-center">
35142
- <span class="text-tone-60 font-medium text-sm">Expiry</span>
35143
- <div class="flex items-center gap-1">
35144
- <span data-copy-value="12/2030" class="text-tone-100 text-sm font-medium">12/2030</span>
35145
- <button class="copy-btn p-1 hover:opacity-80 transition-opacity">
35146
- <svg width="16" height="16" viewBox="0 0 16 16" fill="none"
35147
- xmlns="http://www.w3.org/2000/svg">
35148
- <path
35149
- d="M4.66667 3.99992V1.99992C4.66667 1.82311 4.7369 1.65354 4.86193 1.52851C4.98695 1.40349 5.15652 1.33325 5.33333 1.33325H13.3333C13.5101 1.33325 13.6797 1.40349 13.8047 1.52851C13.9298 1.65354 14 1.82311 14 1.99992V11.3333C14 11.5101 13.9298 11.6796 13.8047 11.8047C13.6797 11.9297 13.5101 11.9999 13.3333 11.9999H11.3333V13.9999C11.3333 14.3679 11.0333 14.6666 10.662 14.6666H2.67133C2.58342 14.6671 2.49626 14.6503 2.41488 14.617C2.3335 14.5837 2.25949 14.5347 2.19711 14.4728C2.13472 14.4108 2.0852 14.3372 2.05137 14.256C2.01754 14.1749 2.00009 14.0878 2 13.9999L2.002 4.66659C2.002 4.29859 2.302 3.99992 2.67333 3.99992H4.66667ZM3.33533 5.33325L3.33333 13.3333H10V5.33325H3.33533ZM6 3.99992H11.3333V10.6666H12.6667V2.66659H6V3.99992Z"
35150
- fill="#0D0716" />
35151
- </svg>
35152
- </button>
35153
- </div>
35154
- </div>
35155
- <div class="flex justify-between items-center">
35156
- <span class="text-tone-60 font-medium text-sm">CVV</span>
35157
- <div class="flex items-center gap-1">
35158
- <span data-copy-value="321" class="text-tone-100 text-sm font-medium">321</span>
35159
- <button class="copy-btn p-1 hover:opacity-80 transition-opacity">
35160
- <svg width="16" height="16" viewBox="0 0 16 16" fill="none"
35161
- xmlns="http://www.w3.org/2000/svg">
35162
- <path
35163
- d="M4.66667 3.99992V1.99992C4.66667 1.82311 4.7369 1.65354 4.86193 1.52851C4.98695 1.40349 5.15652 1.33325 5.33333 1.33325H13.3333C13.5101 1.33325 13.6797 1.40349 13.8047 1.52851C13.9298 1.65354 14 1.82311 14 1.99992V11.3333C14 11.5101 13.9298 11.6796 13.8047 11.8047C13.6797 11.9297 13.5101 11.9999 13.3333 11.9999H11.3333V13.9999C11.3333 14.3679 11.0333 14.6666 10.662 14.6666H2.67133C2.58342 14.6671 2.49626 14.6503 2.41488 14.617C2.3335 14.5837 2.25949 14.5347 2.19711 14.4728C2.13472 14.4108 2.0852 14.3372 2.05137 14.256C2.01754 14.1749 2.00009 14.0878 2 13.9999L2.002 4.66659C2.002 4.29859 2.302 3.99992 2.67333 3.99992H4.66667ZM3.33533 5.33325L3.33333 13.3333H10V5.33325H3.33533ZM6 3.99992H11.3333V10.6666H12.6667V2.66659H6V3.99992Z"
35164
- fill="#0D0716" />
35165
- </svg>
35166
- </button>
35167
- </div>
35168
- </div>
35169
- <div class="flex justify-between items-center">
35170
- <span class="text-tone-60 font-medium text-sm">OTP</span>
35171
- <div class="flex flex-col items-end gap-1">
35172
- <span class="text-tone-100 text-sm font-medium">Address: 1, Spotflow Street</span>
35173
- <span class="text-tone-100 text-sm font-medium">City: Lekki</span>
35174
- <span class="text-tone-100 text-sm font-medium">State: Lagos</span>
35175
- <span class="text-tone-100 text-sm font-medium">Country: Nigeria</span>
35176
- <span class="text-tone-100 text-sm font-medium">ZIP: 101233</span>
35177
- </div>
35178
- </div>
35179
- </div>
35180
- </div>
35181
- </div>
35182
- </div>`;
35183
- class So {
35184
- constructor({ container: e, closeCallback: i }) {
35185
- h(this, "container");
35186
- h(this, "closeCallback");
35187
- this.container = e, this.closeCallback = i;
35188
- }
35189
35276
  render() {
35190
35277
  return au;
35191
35278
  }
35192
- attachListener() {
35193
- const e = this.container.querySelector(
35194
- "#close-test-card"
35195
- );
35196
- e == null || e.addEventListener("click", () => this.closeCallback());
35197
- const i = this.container.querySelectorAll(
35198
- "#test-card-tabs .tab-btn"
35199
- ), t = this.container.querySelectorAll(".tab-content");
35200
- i.forEach((o) => {
35201
- o.addEventListener("click", () => {
35202
- i.forEach((l) => l.classList.remove("active-tab")), o.classList.add("active-tab");
35203
- const a = o.getAttribute("data-target");
35204
- t.forEach((l) => {
35205
- l.id === a ? l.classList.remove("hidden") : l.classList.add("hidden");
35206
- });
35207
- });
35208
- }), this.container.querySelectorAll(".copy-btn").forEach((o) => {
35209
- o.addEventListener("click", async (a) => {
35210
- const d = a.currentTarget.previousElementSibling.getAttribute("data-copy-value") || "";
35211
- d && (await navigator.clipboard.writeText(d), o.innerHTML = '<svg width="15" height="15" viewBox="0 0 15 15" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M5 2V1H10V2H5ZM4.75 0C4.33579 0 4 0.335786 4 0.75V1H3.5C2.67157 1 2 1.67157 2 2.5V12.5C2 13.3284 2.67157 14 3.5 14H7V13H3.5C3.22386 13 3 12.7761 3 12.5V2.5C3 2.22386 3.22386 2 3.5 2H4V2.25C4 2.66421 4.33579 3 4.75 3H10.25C10.6642 3 11 2.66421 11 2.25V2H11.5C11.7761 2 12 2.22386 12 2.5V7H13V2.5C13 1.67157 12.3284 1 11.5 1H11V0.75C11 0.335786 10.6642 0 10.25 0H4.75ZM9 8.5C9 8.77614 8.77614 9 8.5 9C8.22386 9 8 8.77614 8 8.5C8 8.22386 8.22386 8 8.5 8C8.77614 8 9 8.22386 9 8.5ZM10.5 9C10.7761 9 11 8.77614 11 8.5C11 8.22386 10.7761 8 10.5 8C10.2239 8 10 8.22386 10 8.5C10 8.77614 10.2239 9 10.5 9ZM13 8.5C13 8.77614 12.7761 9 12.5 9C12.2239 9 12 8.77614 12 8.5C12 8.22386 12.2239 8 12.5 8C12.7761 8 13 8.22386 13 8.5ZM14.5 9C14.7761 9 15 8.77614 15 8.5C15 8.2239 14.7761 8 14.5 8C14.2239 8 14 8.22386 14 8.5C14 8.77614 14.2239 9 14.5 9ZM15 10.5C15 10.7761 14.7761 11 14.5 11C14.2239 11 14 10.7761 14 10.5C14 10.2239 14.2239 10 14.5 10C14.7761 10 15 10.2239 15 10.5ZM14.5 13C14.7761 13 15 12.7761 15 12.5C15 12.2239 14.7761 12 14.5 12C14.2239 12 14 12.2239 14 12.5C14 12.7761 14.2239 13 14.5 13ZM14.5 15C14.7761 15 15 14.7761 15 14.5C15 14.2239 14.7761 14 14.5 14C14.2239 14 14 14.2239 14 14.5C14 14.7761 14.2239 15 14.5 15ZM8.5 11C8.77614 11 9 10.7761 9 10.5C9 10.2239 8.77614 10 8.5 10C8.22386 10 8 10.2239 8 10.5C8 10.7761 8.22386 11 8.5 11ZM9 12.5C9 12.7761 8.77614 13 8.5 13C8.22386 13 8 12.7761 8 12.5C8 12.2239 8.22386 12 8.5 12C8.77614 12 9 12.2239 9 12.5ZM8.5 15C8.77614 15 9 14.7761 9 14.5C9 14.2239 8.77614 14 8.5 14C8.22386 14 8 14.2239 8 14.5C8 14.7761 8.22386 15 8.5 15ZM11 14.5C11 14.7761 10.7761 15 10.5 15C10.2239 15 10 14.7761 10 14.5C10 14.2239 10.2239 14 10.5 14C10.7761 14 11 14.2239 11 14.5ZM12.5 15C12.7761 15 13 14.7761 13 14.5C13 14.2239 12.7761 14 12.5 14C12.2239 14 12 14.2239 12 14.5C12 14.7761 12.2239 15 12.5 15Z" fill="currentColor" fill-rule="evenodd" clip-rule="evenodd"></path></svg>', setTimeout(() => {
35212
- o.innerHTML = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
35213
- <path
35214
- d="M4.66667 3.99992V1.99992C4.66667 1.82311 4.7369 1.65354 4.86193 1.52851C4.98695 1.40349 5.15652 1.33325 5.33333 1.33325H13.3333C13.5101 1.33325 13.6797 1.40349 13.8047 1.52851C13.9298 1.65354 14 1.82311 14 1.99992V11.3333C14 11.5101 13.9298 11.6796 13.8047 11.8047C13.6797 11.9297 13.5101 11.9999 13.3333 11.9999H11.3333V13.9999C11.3333 14.3679 11.0333 14.6666 10.662 14.6666H2.67133C2.58342 14.6671 2.49626 14.6503 2.41488 14.617C2.3335 14.5837 2.25949 14.5347 2.19711 14.4728C2.13472 14.4108 2.0852 14.3372 2.05137 14.256C2.01754 14.1749 2.00009 14.0878 2 13.9999L2.002 4.66659C2.002 4.29859 2.302 3.99992 2.67333 3.99992H4.66667ZM3.33533 5.33325L3.33333 13.3333H10V5.33325H3.33533ZM6 3.99992H11.3333V10.6666H12.6667V2.66659H6V3.99992Z"
35215
- fill="#0D0716" />
35216
- </svg>`;
35217
- }, 1e3));
35218
- });
35219
- });
35220
- }
35221
- renderComponent() {
35222
- this.container.innerHTML = this.render(), this.attachListener();
35223
- }
35224
- }
35225
- function ru(n) {
35226
- n.classList.remove("hidden"), requestAnimationFrame(() => {
35227
- n.classList.remove("opacity-0", "scale-95");
35228
- });
35229
- }
35230
- function Ms(n) {
35231
- n.classList.add("opacity-0", "scale-95"), n.addEventListener(
35232
- "transitionend",
35233
- () => n.classList.add("hidden"),
35234
- { once: !0 }
35235
- );
35236
- }
35237
- class As {
35238
- constructor({ container: e, testCardContainer: i }) {
35239
- h(this, "container");
35240
- h(this, "testCardContainer");
35241
- h(this, "testCardInstance", null);
35242
- h(this, "isVisible", !1);
35243
- this.container = e, this.testCardContainer = i;
35244
- }
35245
- attachListener() {
35246
- const e = this.container.querySelector(
35247
- "#test-cards-link"
35248
- );
35249
- e && e.addEventListener("click", () => {
35250
- if (this.isVisible) {
35251
- this.testCardContainer.innerHTML = "", Ms(this.testCardContainer), e.classList.remove("text-tone-100", "font-bold"), this.isVisible = !1;
35252
- return;
35253
- }
35254
- this.testCardInstance || (this.testCardInstance = new So({
35255
- container: this.testCardContainer,
35256
- closeCallback: () => {
35257
- this.testCardContainer.innerHTML = "", Ms(this.testCardContainer), e.classList.remove("text-tone-100", "font-bold"), this.isVisible = !1;
35258
- }
35259
- })), this.testCardInstance.renderComponent(), ru(this.testCardContainer), e.classList.add("text-tone-100", "font-bold"), this.isVisible = !0;
35260
- });
35261
- }
35262
- renderComponent() {
35263
- this.container.innerHTML = this.render(), this.attachListener();
35264
- }
35265
- render() {
35266
- return ou;
35267
- }
35268
35279
  }
35269
35280
  const lu = `<div id="mobileConfirmationProgress">
35270
35281
  <div>
@@ -35710,14 +35721,19 @@ class vu {
35710
35721
  h(this, "callBackUrl");
35711
35722
  h(this, "paymentResponse");
35712
35723
  h(this, "paymentResponseHeaders");
35713
- this.container = e.container, this.onAction = e.onAction, this.callBackUrl = e.callBackUrl, this.paymentResponse = e.paymentResponse, this.paymentResponseHeaders = e.paymentResponseHeaders;
35724
+ h(this, "paymentMethod");
35725
+ this.container = e.container, this.onAction = e.onAction, this.callBackUrl = e.callBackUrl, this.paymentResponse = e.paymentResponse, this.paymentResponseHeaders = e.paymentResponseHeaders, this.paymentMethod = e.paymentMethod;
35714
35726
  }
35715
35727
  attachListeners() {
35716
35728
  const e = this.container.querySelector(
35717
35729
  ".details-form-button"
35718
35730
  );
35719
35731
  e && e.addEventListener("click", () => {
35720
- nn(
35732
+ var i;
35733
+ P.track("redirect_to_merchant", {
35734
+ payment_method: this.paymentMethod,
35735
+ status: (i = this.paymentResponse) == null ? void 0 : i.status
35736
+ }), nn(
35721
35737
  this.paymentResponse,
35722
35738
  this.paymentResponseHeaders,
35723
35739
  this.callBackUrl
@@ -35725,7 +35741,11 @@ class vu {
35725
35741
  });
35726
35742
  }
35727
35743
  renderComponent() {
35728
- this.container.innerHTML = this.render(), this.attachListeners();
35744
+ var e;
35745
+ this.container.innerHTML = this.render(), P.track("payment_timeout", {
35746
+ payment_method: this.paymentMethod,
35747
+ status: (e = this.paymentResponse) == null ? void 0 : e.status
35748
+ }), this.attachListeners();
35729
35749
  }
35730
35750
  render() {
35731
35751
  return bo;
@@ -35827,7 +35847,7 @@ class pu {
35827
35847
  }
35828
35848
  }
35829
35849
  };
35830
- return Hi(
35850
+ return Ri(
35831
35851
  this.token,
35832
35852
  d,
35833
35853
  this.rdtCode,
@@ -36047,11 +36067,12 @@ class pu {
36047
36067
  url: this.url,
36048
36068
  callBackUrl: this.callBackUrl,
36049
36069
  paymentResponse: this.paymentResponse,
36050
- paymentResponseHeaders: this.paymentResponseHeaders
36070
+ paymentResponseHeaders: this.paymentResponseHeaders,
36071
+ paymentMethod: "Mobile Money"
36051
36072
  }), this.mobileMoneyConfirmationEnd.renderComponent();
36052
36073
  break;
36053
36074
  case 9:
36054
- this.transactionIssuesScreen = new Ri({
36075
+ this.transactionIssuesScreen = new Oi({
36055
36076
  container: this.contents,
36056
36077
  onAction: () => {
36057
36078
  var t;
@@ -36224,7 +36245,7 @@ class fu {
36224
36245
  channel: "eft",
36225
36246
  reference: this.reference
36226
36247
  };
36227
- return Hi(
36248
+ return Ri(
36228
36249
  this.token,
36229
36250
  a,
36230
36251
  this.rdtCode,
@@ -36353,7 +36374,7 @@ class fu {
36353
36374
  }), this.contents.innerHTML = this.warningScreen.render(), this.warningScreen.attachListener();
36354
36375
  break;
36355
36376
  case 5:
36356
- this.transactionIssuesScreen = new Ri({
36377
+ this.transactionIssuesScreen = new Oi({
36357
36378
  container: this.contents,
36358
36379
  onAction: () => {
36359
36380
  var o;
@@ -36444,7 +36465,7 @@ class gu {
36444
36465
  const o = (l = (a = this.merchantPlanDetail.plan) == null ? void 0 : a.pricingOptions) == null ? void 0 : l.find(
36445
36466
  (d) => d.currency === this.currency
36446
36467
  );
36447
- this.amount = (o == null ? void 0 : o.amount) || this.amount, this.totalAmount = this.merchantPlanDetail.totalAmount || this.amount, this.mainHeader = new su({
36468
+ this.amount = (o == null ? void 0 : o.amount) || this.amount, this.totalAmount = this.merchantPlanDetail.totalAmount || this.amount, this.mainHeader = new ru({
36448
36469
  container: document.getElementById("main-header"),
36449
36470
  email: this.customerDetails.email,
36450
36471
  amount: this.amount,
@@ -36458,7 +36479,7 @@ class gu {
36458
36479
  this.closeBTN.bind(this)(d);
36459
36480
  },
36460
36481
  currentPaymentMethod: this.currentPaymentMethod
36461
- }), this.mainHeader.renderComponent(), this.testCard = new So({
36482
+ }), this.mainHeader.renderComponent(), this.testCard = new go({
36462
36483
  container: document.getElementById("test-container"),
36463
36484
  closeCallback: () => {
36464
36485
  const d = document.getElementById(
@@ -36466,7 +36487,7 @@ class gu {
36466
36487
  );
36467
36488
  d && (d.innerHTML = "", d.classList.add("hidden"));
36468
36489
  }
36469
- }), this.mainFooter = new As({
36490
+ }), this.mainFooter = new ws({
36470
36491
  container: document.getElementById("main-footer"),
36471
36492
  testCardContainer: document.getElementById(
36472
36493
  "test-container"
@@ -36477,7 +36498,7 @@ class gu {
36477
36498
  ), p = document.getElementById(
36478
36499
  "test-container"
36479
36500
  );
36480
- new As({
36501
+ new ws({
36481
36502
  container: d,
36482
36503
  testCardContainer: p
36483
36504
  }).renderComponent();
@@ -36533,7 +36554,7 @@ class gu {
36533
36554
  updatePaymentMethodView(e, i, t, s, o) {
36534
36555
  switch (this.currentPaymentMethod) {
36535
36556
  case "card":
36536
- return this.card = new Rd({
36557
+ return this.card = new Vd({
36537
36558
  container: this.modalContainer,
36538
36559
  amount: t,
36539
36560
  totalAmount: s,
@@ -36558,7 +36579,7 @@ class gu {
36558
36579
  retryingPayment: this.retryingPayment
36559
36580
  });
36560
36581
  case "bank_transfer":
36561
- return this.transfer = new zd({
36582
+ return this.transfer = new Jd({
36562
36583
  amount: t,
36563
36584
  totalAmount: s,
36564
36585
  currency: o,
@@ -36580,7 +36601,7 @@ class gu {
36580
36601
  retryingPayment: this.retryingPayment
36581
36602
  });
36582
36603
  case "ussd":
36583
- return this.ussd = new Co({
36604
+ return this.ussd = new So({
36584
36605
  container: this.modalContainer,
36585
36606
  amount: t,
36586
36607
  totalAmount: s,
@@ -36887,7 +36908,7 @@ class Au {
36887
36908
  verification_status: "Cancelled"
36888
36909
  }), P.track("checkout_closes");
36889
36910
  }).catch((t) => {
36890
- wi.showToast(t.message, "error");
36911
+ _i.showToast(t.message, "error");
36891
36912
  });
36892
36913
  }
36893
36914
  getDeviceType() {
@@ -36914,7 +36935,7 @@ class Au {
36914
36935
  } = e;
36915
36936
  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)
36916
36937
  throw this.mainError = new xs(this.mainLayout), this.mainError.renderContent(this.callBackUrl), this.showErrorIcon(), new Error("Merchant key or email is required");
36917
- this.currency = p || "", this.merchantConfigService = new Wd({
36938
+ this.currency = p || "", this.merchantConfigService = new $d({
36918
36939
  token: this.merchantKey,
36919
36940
  rdtCode: this.rdtCode,
36920
36941
  url: this.url