@payfurl/react-plugin 1.1.0 → 1.2.0

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.
Files changed (31) hide show
  1. package/dist/{CxPayThreeDsProvider-7yh00m_f-BSAj-Zut.js → CxPayThreeDsProvider-BLfTGjPF-kfggfjdU.js} +1 -1
  2. package/dist/{DefaultThreeDsProvider-Bs-1jjDE-BR4j-f3Q.js → DefaultThreeDsProvider-ByqIuIMb-DCABeZFY.js} +7 -7
  3. package/dist/{EcentricThreeDsProvider-BjVGZlb9-BVFegP5X.js → EcentricThreeDsProvider-C0fijqNm-J1HqpcUG.js} +13 -13
  4. package/dist/{EpnaThreeDsProvider-D-jEeUhd-CjqDQ6sC.js → EpnaThreeDsProvider-BKcMV0Ni-C8jATWyJ.js} +1 -1
  5. package/dist/{FlashBancThreeDsProvider-Cov5ey75-D0PVygYS.js → FlashBancThreeDsProvider-BL79DnxY-CKAnpF83.js} +1 -1
  6. package/dist/{GPaymentsThreeDsProvider-DC48F4-s-CeTTM1oZ.js → GPaymentsThreeDsProvider-DK7o9MEd-CotMfLS4.js} +7 -7
  7. package/dist/{MetricsGlobalThreeDsProvider-D1adNHH6-59d0yjP1.js → MetricsGlobalThreeDsProvider-DCFNNBAG-DWwOWfRj.js} +17 -17
  8. package/dist/{NmiThreeDsProvider-UdLXXANS-BJ_uuNCG.js → NmiThreeDsProvider-CjG8JCAW-SClrMiRm.js} +1 -1
  9. package/dist/{NuveiThreeDsProvider-Da4x--0n-2TdKYejN.js → NuveiThreeDsProvider-C511D4Vv-CI0PLP-t.js} +5 -5
  10. package/dist/{PayGLocalThreeDsProvider-BnHoCS8k-DBBnV_0h.js → PayGLocalThreeDsProvider-Isk8RrpT-Du6bWeJa.js} +22 -22
  11. package/dist/{PayWayAppleButton-BnfVXscK-s3xK_XOH.js → PayWayAppleButton-CP2C2UFi-CE7cLGod.js} +1 -1
  12. package/dist/{PayabliThreeDsProvider-DputC3bO-NOKVgrTF.js → PayabliThreeDsProvider-D04tIaoI-C9P-h4fx.js} +1 -1
  13. package/dist/{SkyBankThreeDsProvider-Dv1Vr_P5-BfAcbM_v.js → SkyBankThreeDsProvider-CI5tCFi6-Bc7KqUKb.js} +1 -1
  14. package/dist/{cxpay-DvznoDgN-7uW13wnL.js → cxpay-CXd-gWgJ-o6fIVfHa.js} +1 -1
  15. package/dist/{default-C5N621sA-vMshBhxy.js → default-Bn_jZqbH-Bl2uje9s.js} +1 -1
  16. package/dist/{ecentric-CAuUEG5b-BIT7b2FE.js → ecentric-BUuKlIAj-DtLsDgEq.js} +1 -1
  17. package/dist/{epna-diKGQ91--D_6ns_Yg.js → epna-DquO2ajM-D6mOIN8h.js} +1 -1
  18. package/dist/{flashbanc-D8UHX81f-DP7Mfbms.js → flashbanc-C4qF4wum-YDAB9IfO.js} +1 -1
  19. package/dist/{gpayments-C4CSZg2r-CiQQN4E2.js → gpayments-B99Rhx-h-CQnyzSas.js} +1 -1
  20. package/dist/{index-CgZDGZz7.js → index-BmYcZJxX.js} +5802 -5488
  21. package/dist/{metrics_global-BawXVoSi-BbuxD9JD.js → metrics_global-BhM_CqUq-uWSbroEt.js} +1 -1
  22. package/dist/nmi-B31Ng1Zj-CtTrEAj2.js +7 -0
  23. package/dist/{nuvei-DXKVuVRr-BU6CdMvt.js → nuvei-C_wJxvcg-9I4of95a.js} +1 -1
  24. package/dist/{payabli-7PdId67j-C1ny_G1X.js → payabli-DEjkMyU_-CjTbSafb.js} +1 -1
  25. package/dist/payfurl-react.es.js +1 -1
  26. package/dist/payfurl-react.umd.js +30 -30
  27. package/dist/{payglocal-vL14oF4n-tNH_zCze.js → payglocal-DrWsvnYA-WB4rb0ul.js} +1 -1
  28. package/dist/{payway_rest-Ca-gqNG3-Dlq4bSLu.js → payway_rest-gds3Rn3R-B9t3rfRC.js} +1 -1
  29. package/dist/{skybank-B8zqMe9Y-CvU0qUrH.js → skybank-Cr24BYBd-BmDAIEtF.js} +1 -1
  30. package/package.json +2 -2
  31. package/dist/nmi-LmUsZTYy-ByY_sPgd.js +0 -7
@@ -1,4 +1,4 @@
1
- import { MetricsGlobalThreeDsProvider as e } from "./MetricsGlobalThreeDsProvider-D1adNHH6-59d0yjP1.js";
1
+ import { MetricsGlobalThreeDsProvider as e } from "./MetricsGlobalThreeDsProvider-DCFNNBAG-DWwOWfRj.js";
2
2
  class t extends e {
3
3
  getType() {
4
4
  return "CxPay";
@@ -1,6 +1,6 @@
1
- import { M as d, y as S, d as g, z as p, a as m, I as T, e as v, J as I, x as u, $ as f, b as y, O as A, n as C, B as E, Y as R } from "./index-CgZDGZz7.js";
1
+ import { K as d, P as S, u as g, J as p, F as m, O as T, e as v, a as I, b as u, c as f, D as y, I as A, i as C, j as R, Y as E } from "./index-BmYcZJxX.js";
2
2
  var P = Object.defineProperty, b = (l, e, s) => e in l ? P(l, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : l[e] = s, a = (l, e, s) => b(l, typeof e != "symbol" ? e + "" : e, s);
3
- const U = { class: "mask" }, $ = { class: "wrapper" }, M = { class: "container" }, L = ["action"], _ = ["value"], w = /* @__PURE__ */ m({
3
+ const U = { class: "mask" }, L = { class: "wrapper" }, M = { class: "container" }, $ = ["action"], _ = ["value"], w = /* @__PURE__ */ m({
4
4
  __name: "ThreeDsChallenge",
5
5
  props: {
6
6
  threeDSServerTransID: {},
@@ -9,7 +9,7 @@ const U = { class: "mask" }, $ = { class: "wrapper" }, M = { class: "container"
9
9
  },
10
10
  emits: ["close", "submit"],
11
11
  setup(l, { emit: e }) {
12
- const s = l, n = e, o = T(() => E(s.formAction) ? s.formAction : ""), i = C(null), r = JSON.stringify({
12
+ const s = l, n = e, o = T(() => R(s.formAction) ? s.formAction : ""), i = C(null), r = JSON.stringify({
13
13
  threeDSServerTransID: s.threeDSServerTransID,
14
14
  acsTransID: s.acsTransID,
15
15
  messageVersion: "2.2.0",
@@ -19,11 +19,11 @@ const U = { class: "mask" }, $ = { class: "wrapper" }, M = { class: "container"
19
19
  return v(() => {
20
20
  var h;
21
21
  o.value && ((h = i.value) == null || h.submit());
22
- }), (h, c) => (R(), I("div", U, [
23
- u("div", $, [
22
+ }), (h, c) => (E(), I("div", U, [
23
+ u("div", L, [
24
24
  u("div", M, [
25
25
  f(y, {
26
- onClick: c[0] || (c[0] = (H) => n("close")),
26
+ onClick: c[0] || (c[0] = (F) => n("close")),
27
27
  id: "3ds-challenge-close"
28
28
  }),
29
29
  c[1] || (c[1] = u("iframe", { name: "ThreeDsChallengeIFrame" }, null, -1)),
@@ -39,7 +39,7 @@ const U = { class: "mask" }, $ = { class: "wrapper" }, M = { class: "container"
39
39
  name: "creq",
40
40
  value: A(t)
41
41
  }, null, 8, _)
42
- ], 8, L)
42
+ ], 8, $)
43
43
  ])
44
44
  ])
45
45
  ]));
@@ -1,7 +1,7 @@
1
- import { DefaultThreeDsProvider as i } from "./DefaultThreeDsProvider-Bs-1jjDE-BR4j-f3Q.js";
2
- import { y as h, z as c, a as u, I as D, e as d, Y as p, J as m, x as s, $ as v, b as g, O as y, n as S, B as T } from "./index-CgZDGZz7.js";
3
- var f = Object.defineProperty, I = (a, e, t) => e in a ? f(a, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : a[e] = t, P = (a, e, t) => I(a, e + "", t);
4
- const C = { class: "mask" }, A = { class: "wrapper" }, $ = { class: "container" }, b = ["action"], E = ["value"], V = /* @__PURE__ */ u({
1
+ import { DefaultThreeDsProvider as i } from "./DefaultThreeDsProvider-ByqIuIMb-DCABeZFY.js";
2
+ import { P as h, J as c, F as u, O as D, e as d, Y as p, a as m, b as s, c as v, D as g, I as S, i as T, j as y } from "./index-BmYcZJxX.js";
3
+ var P = Object.defineProperty, f = (a, e, t) => e in a ? P(a, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : a[e] = t, I = (a, e, t) => f(a, e + "", t);
4
+ const C = { class: "mask" }, A = { class: "wrapper" }, F = { class: "container" }, b = ["action"], E = ["value"], R = /* @__PURE__ */ u({
5
5
  __name: "ecentric",
6
6
  props: {
7
7
  threeDSServerTransID: {},
@@ -10,15 +10,15 @@ const C = { class: "mask" }, A = { class: "wrapper" }, $ = { class: "container"
10
10
  authenticationValue: {}
11
11
  },
12
12
  setup(a) {
13
- const e = a, t = D(() => T(e.formAction) ? e.formAction : ""), o = S(null), n = e.authenticationValue;
13
+ const e = a, t = D(() => y(e.formAction) ? e.formAction : ""), o = T(null), n = e.authenticationValue;
14
14
  return d(() => {
15
15
  var r;
16
16
  t.value && ((r = o.value) == null || r.submit());
17
17
  }), (r, l) => (p(), m("div", C, [
18
18
  s("div", A, [
19
- s("div", $, [
19
+ s("div", F, [
20
20
  v(g, {
21
- onClick: l[0] || (l[0] = (F) => r.emit("close"))
21
+ onClick: l[0] || (l[0] = ($) => r.emit("close"))
22
22
  }),
23
23
  l[1] || (l[1] = s("iframe", { name: "ThreeDsChallengeIFrame" }, null, -1)),
24
24
  s("form", {
@@ -31,17 +31,17 @@ const C = { class: "mask" }, A = { class: "wrapper" }, $ = { class: "container"
31
31
  s("input", {
32
32
  type: "hidden",
33
33
  name: "PaReq",
34
- value: y(n)
34
+ value: S(n)
35
35
  }, null, 8, E)
36
36
  ], 8, b)
37
37
  ])
38
38
  ])
39
39
  ]));
40
40
  }
41
- }), x = /* @__PURE__ */ c(V, [["__scopeId", "data-v-d0f7984c"]]);
42
- class k extends i {
41
+ }), V = /* @__PURE__ */ c(R, [["__scopeId", "data-v-d0f7984c"]]);
42
+ class j extends i {
43
43
  constructor() {
44
- super(...arguments), P(this, "paResPayload", "");
44
+ super(...arguments), I(this, "paResPayload", "");
45
45
  }
46
46
  getType() {
47
47
  return "Ecentric";
@@ -60,7 +60,7 @@ class k extends i {
60
60
  this.log(`[${this.getType()}][doChallenge]`);
61
61
  const { destroy: n } = h({
62
62
  el: document.body,
63
- component: x,
63
+ component: V,
64
64
  props: {
65
65
  threeDSServerTransID: this.threeDSServerTransID,
66
66
  acsTransID: t,
@@ -82,5 +82,5 @@ class k extends i {
82
82
  }
83
83
  }
84
84
  export {
85
- k as EcentricThreeDsProvider
85
+ j as EcentricThreeDsProvider
86
86
  };
@@ -1,4 +1,4 @@
1
- import { MetricsGlobalThreeDsProvider as e } from "./MetricsGlobalThreeDsProvider-D1adNHH6-59d0yjP1.js";
1
+ import { MetricsGlobalThreeDsProvider as e } from "./MetricsGlobalThreeDsProvider-DCFNNBAG-DWwOWfRj.js";
2
2
  class t extends e {
3
3
  getType() {
4
4
  return "EPNA";
@@ -1,4 +1,4 @@
1
- import { MetricsGlobalThreeDsProvider as e } from "./MetricsGlobalThreeDsProvider-D1adNHH6-59d0yjP1.js";
1
+ import { MetricsGlobalThreeDsProvider as e } from "./MetricsGlobalThreeDsProvider-DCFNNBAG-DWwOWfRj.js";
2
2
  class s extends e {
3
3
  getType() {
4
4
  return "FlashBanc";
@@ -1,7 +1,7 @@
1
- import { DefaultThreeDsProvider as o } from "./DefaultThreeDsProvider-Bs-1jjDE-BR4j-f3Q.js";
2
- import { y as l, B as n, z as u, a as c, I as p, Y as d, J as g, x as a, C as h } from "./index-CgZDGZz7.js";
1
+ import { DefaultThreeDsProvider as o } from "./DefaultThreeDsProvider-ByqIuIMb-DCABeZFY.js";
2
+ import { P as l, j as n, J as u, F as c, O as p, Y as d, a as g, b as a, C as h } from "./index-BmYcZJxX.js";
3
3
  var D = Object.defineProperty, S = (r, e, t) => e in r ? D(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t, i = (r, e, t) => S(r, typeof e != "symbol" ? e + "" : e, t);
4
- const y = { class: "mask" }, m = { class: "wrapper" }, f = ["src"], v = /* @__PURE__ */ c({
4
+ const m = { class: "mask" }, y = { class: "wrapper" }, f = ["src"], v = /* @__PURE__ */ c({
5
5
  __name: "GPayments",
6
6
  props: {
7
7
  url: {},
@@ -16,8 +16,8 @@ const y = { class: "mask" }, m = { class: "wrapper" }, f = ["src"], v = /* @__PU
16
16
  height: `${e.height || 400}px`
17
17
  };
18
18
  }
19
- return (T, U) => (d(), g("div", y, [
20
- a("div", m, [
19
+ return (T, b) => (d(), g("div", m, [
20
+ a("div", y, [
21
21
  a("div", {
22
22
  class: "container",
23
23
  style: h([s(), { padding: "0", margin: "0" }])
@@ -31,7 +31,7 @@ const y = { class: "mask" }, m = { class: "wrapper" }, f = ["src"], v = /* @__PU
31
31
  ]));
32
32
  }
33
33
  }), C = /* @__PURE__ */ u(v, [["__scopeId", "data-v-cf5aa816"]]);
34
- class $ extends o {
34
+ class P extends o {
35
35
  constructor() {
36
36
  super(...arguments), i(this, "onDoAuthSuccess", (e, t) => {
37
37
  const s = JSON.parse(t);
@@ -97,5 +97,5 @@ class $ extends o {
97
97
  }
98
98
  }
99
99
  export {
100
- $ as GPaymentsThreeDsProvider
100
+ P as GPaymentsThreeDsProvider
101
101
  };
@@ -1,11 +1,11 @@
1
- import { DefaultThreeDsProvider as w } from "./DefaultThreeDsProvider-Bs-1jjDE-BR4j-f3Q.js";
2
- import { c as g, y as E, d as A, z as b, a as f, e as T, h as L, T as x, l as _, Y as G, J as N, x as m, $, b as I, n as H } from "./index-CgZDGZz7.js";
3
- var O = Object.defineProperty, M = (h, e, t) => e in h ? O(h, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : h[e] = t, p = (h, e, t) => M(h, typeof e != "symbol" ? e + "" : e, t);
4
- const U = { class: "mask" }, j = { class: "wrapper" }, F = { class: "container" }, k = /* @__PURE__ */ f({
1
+ import { DefaultThreeDsProvider as w } from "./DefaultThreeDsProvider-ByqIuIMb-DCABeZFY.js";
2
+ import { v as g, P as E, u as A, J as f, F as b, e as T, h as L, S as _, g as x, Y as G, a as N, b as m, c as I, D as $, i as F } from "./index-BmYcZJxX.js";
3
+ var H = Object.defineProperty, O = (h, e, t) => e in h ? H(h, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : h[e] = t, p = (h, e, t) => O(h, typeof e != "symbol" ? e + "" : e, t);
4
+ const M = { class: "mask" }, j = { class: "wrapper" }, U = { class: "container" }, k = /* @__PURE__ */ b({
5
5
  __name: "MetricsGlobalThreeDsChallenge",
6
6
  emits: ["close", "submit"],
7
7
  setup(h, { emit: e }) {
8
- const t = e, r = H(!1);
8
+ const t = e, r = F(!1);
9
9
  function a(c) {
10
10
  var o;
11
11
  ["3DS_CHALLENGE_SHOW", "3DS_CHALLENGE_CLOSE"].includes((o = c.data) == null ? void 0 : o.message) && (r.value = c.data.message === "3DS_CHALLENGE_SHOW");
@@ -14,10 +14,10 @@ const U = { class: "mask" }, j = { class: "wrapper" }, F = { class: "container"
14
14
  window.addEventListener("message", a);
15
15
  }), L(() => {
16
16
  window.removeEventListener("message", a);
17
- }), (c, o) => x((G(), N("div", U, [
17
+ }), (c, o) => _((G(), N("div", M, [
18
18
  m("div", j, [
19
- m("div", F, [
20
- $(I, {
19
+ m("div", U, [
20
+ I($, {
21
21
  onClick: o[0] || (o[0] = (i) => t("close")),
22
22
  id: "3ds-challenge-close"
23
23
  }),
@@ -25,10 +25,10 @@ const U = { class: "mask" }, j = { class: "wrapper" }, F = { class: "container"
25
25
  ])
26
26
  ])
27
27
  ], 512)), [
28
- [_, r.value]
28
+ [x, r.value]
29
29
  ]);
30
30
  }
31
- }), W = /* @__PURE__ */ b(k, [["__scopeId", "data-v-8a0b6dcb"]]), { hideSpinner: d, showSpinner: R } = A(), D = 5;
31
+ }), R = /* @__PURE__ */ f(k, [["__scopeId", "data-v-8a0b6dcb"]]), { hideSpinner: d, showSpinner: W } = A(), D = 5;
32
32
  class q extends w {
33
33
  constructor(e, t, r) {
34
34
  var a;
@@ -69,11 +69,11 @@ class q extends w {
69
69
  d(), g(this.container, "Payment information is missing");
70
70
  return;
71
71
  }
72
- R();
73
- const s = (t = this.threeDsProcessor) == null ? void 0 : t.getAddressInfo(), y = i.expiryDate.length === 4 ? i.expiryDate[2] + i.expiryDate[3] : "", v = i.expiryDate.length === 4 ? i.expiryDate[0] + i.expiryDate[1] : "", [C = "", P = ""] = ((r = i.cardholder) == null ? void 0 : r.split(/\s+/)) || [], S = {
72
+ W();
73
+ const s = (t = this.threeDsProcessor) == null ? void 0 : t.getAddressInfo(), v = i.expiryDate.length === 4 ? i.expiryDate[2] + i.expiryDate[3] : "", y = i.expiryDate.length === 4 ? i.expiryDate[0] + i.expiryDate[1] : "", [P = "", C = ""] = ((r = i.cardholder) == null ? void 0 : r.split(/\s+/)) || [], S = {
74
74
  cardNumber: i.cardNumber,
75
- cardExpMonth: y,
76
- cardExpYear: parseInt(v) + 2e3,
75
+ cardExpMonth: v,
76
+ cardExpYear: parseInt(y) + 2e3,
77
77
  currency: (a = this.threeDsProcessor) == null ? void 0 : a.getCurrency(),
78
78
  amount: (c = this.threeDsProcessor) == null ? void 0 : c.getAmount(),
79
79
  email: (o = this.threeDsProcessor) == null ? void 0 : o.getEmail(),
@@ -82,8 +82,8 @@ class q extends w {
82
82
  state: s == null ? void 0 : s.state,
83
83
  address1: s == null ? void 0 : s.streetAddress,
84
84
  country: s == null ? void 0 : s.country,
85
- firstName: (s == null ? void 0 : s.firstName) || C || "payFURL",
86
- lastName: (s == null ? void 0 : s.lastName) || P || "payFURL",
85
+ firstName: (s == null ? void 0 : s.firstName) || P || "payFURL",
86
+ lastName: (s == null ? void 0 : s.lastName) || C || "payFURL",
87
87
  postalCode: s == null ? void 0 : s.postalCode
88
88
  }, u = this.threeDS.createUI(S);
89
89
  u.start("#ThreeDsChallengeIFrame"), u.on("challenge", (n) => {
@@ -116,7 +116,7 @@ class q extends w {
116
116
  initChallenge() {
117
117
  const { destroy: e } = E({
118
118
  el: document.body,
119
- component: W,
119
+ component: R,
120
120
  on: {
121
121
  close: () => {
122
122
  var t;
@@ -1,4 +1,4 @@
1
- import { MetricsGlobalThreeDsProvider as e } from "./MetricsGlobalThreeDsProvider-D1adNHH6-59d0yjP1.js";
1
+ import { MetricsGlobalThreeDsProvider as e } from "./MetricsGlobalThreeDsProvider-DCFNNBAG-DWwOWfRj.js";
2
2
  class t extends e {
3
3
  getType() {
4
4
  return "NMI";
@@ -1,5 +1,5 @@
1
- import { c as d, y as p, z as m, d as h, a as g, e as D, Y as S, J as y, x as l } from "./index-CgZDGZz7.js";
2
- import { DefaultThreeDsProvider as v, THREE_DS_METHOD_INVOCATION_COMPLETE as P, THREE_DS_CHALLENGE_COMPLETE as T } from "./DefaultThreeDsProvider-Bs-1jjDE-BR4j-f3Q.js";
1
+ import { v as d, P as p, J as m, u as h, F as g, e as D, Y as S, a as v, b as l } from "./index-BmYcZJxX.js";
2
+ import { DefaultThreeDsProvider as y, THREE_DS_METHOD_INVOCATION_COMPLETE as P, THREE_DS_CHALLENGE_COMPLETE as T } from "./DefaultThreeDsProvider-ByqIuIMb-DCABeZFY.js";
3
3
  var f = Object.defineProperty, I = (n, e, a) => e in n ? f(n, e, { enumerable: !0, configurable: !0, writable: !0, value: a }) : n[e] = a, c = (n, e, a) => I(n, typeof e != "symbol" ? e + "" : e, a);
4
4
  const N = { class: "mask" }, C = /* @__PURE__ */ g({
5
5
  __name: "nuvei",
@@ -71,14 +71,14 @@ const N = { class: "mask" }, C = /* @__PURE__ */ g({
71
71
  window.postMessage({ status: "3ds_challenge_complete", cres: r }, "*");
72
72
  });
73
73
  }
74
- return (t, r) => (S(), y("div", N, [...r[0] || (r[0] = [
74
+ return (t, r) => (S(), v("div", N, [...r[0] || (r[0] = [
75
75
  l("div", { class: "wrapper" }, [
76
76
  l("div", { class: "container" })
77
77
  ], -1)
78
78
  ])]));
79
79
  }
80
80
  }), _ = /* @__PURE__ */ m(C, [["__scopeId", "data-v-6293d147"]]), { hideSpinner: E } = h();
81
- class x extends v {
81
+ class A extends y {
82
82
  constructor() {
83
83
  super(...arguments), c(this, "_paResPayload", null), c(this, "onSuccess", (e, a) => {
84
84
  var s, o;
@@ -172,5 +172,5 @@ class x extends v {
172
172
  }
173
173
  }
174
174
  export {
175
- x as NuveiThreeDsProvider
175
+ A as NuveiThreeDsProvider
176
176
  };
@@ -1,31 +1,31 @@
1
- import { DefaultThreeDsProvider as f } from "./DefaultThreeDsProvider-Bs-1jjDE-BR4j-f3Q.js";
2
- import { c, y as C, z as w, a as I, n as D, I as E, u as L, e as m, h as p, Y as S, J as k, x as g, f as R, B as x } from "./index-CgZDGZz7.js";
3
- const h = D(!1);
4
- function $(r, ...e) {
5
- h.value && console.log(r, e);
1
+ import { DefaultThreeDsProvider as y } from "./DefaultThreeDsProvider-ByqIuIMb-DCABeZFY.js";
2
+ import { v as h, P as C, J as w, F as I, i as D, O as E, d as L, e as m, h as p, Y as S, a as k, b as g, f as R, j as b } from "./index-BmYcZJxX.js";
3
+ const c = D(!1);
4
+ function A(r, ...e) {
5
+ c.value && console.log(r, e);
6
6
  }
7
7
  function v(r) {
8
8
  var e, t;
9
- (e = r == null ? void 0 : r.data) != null && e.status && r.data.status === R && (h.value = !!((t = r == null ? void 0 : r.data) != null && t.debug));
9
+ (e = r == null ? void 0 : r.data) != null && e.status && r.data.status === R && (c.value = !!((t = r == null ? void 0 : r.data) != null && t.debug));
10
10
  }
11
- function b() {
11
+ function $() {
12
12
  return m(() => {
13
13
  window.addEventListener("message", v);
14
14
  }), p(() => {
15
15
  window.removeEventListener("message", v);
16
16
  }), {
17
- debug: h,
18
- logMessage: $
17
+ debug: c,
18
+ logMessage: A
19
19
  };
20
20
  }
21
- const A = { class: "modal-mask" }, U = { class: "modal-wrapper" }, _ = ["src"], G = /* @__PURE__ */ I({
21
+ const x = { class: "modal-mask" }, U = { class: "modal-wrapper" }, G = ["src"], M = /* @__PURE__ */ I({
22
22
  __name: "PayGLocalThreeDsChallenge",
23
23
  props: {
24
24
  url: {}
25
25
  },
26
26
  emits: ["close"],
27
27
  setup(r, { emit: e }) {
28
- const { logMessage: t } = b(), a = r, s = e, o = D(a.url), n = E(() => x(o.value) ? o.value : "");
28
+ const { logMessage: t } = $(), a = r, s = e, o = D(a.url), n = E(() => b(o.value) ? o.value : "");
29
29
  L(() => a.url, (l) => {
30
30
  o.value = l;
31
31
  }), m(() => {
@@ -38,20 +38,20 @@ const A = { class: "modal-mask" }, U = { class: "modal-wrapper" }, _ = ["src"],
38
38
  if (t("PayGLocalThreeDsChallenge: Message received", l.data), !((i = l == null ? void 0 : l.data) != null && i["payglocal-token"])) return;
39
39
  const d = l.data["payglocal-token"];
40
40
  t("Token received", d);
41
- const T = d.split(".")[1], y = window.atob(T), P = JSON.parse(y);
42
- s("close", P);
41
+ const P = d.split(".")[1], T = window.atob(P), f = JSON.parse(T);
42
+ s("close", f);
43
43
  }
44
- return (l, i) => (S(), k("div", A, [
44
+ return (l, i) => (S(), k("div", x, [
45
45
  g("div", U, [
46
46
  g("iframe", {
47
47
  src: n.value,
48
48
  sandbox: "allow-same-origin allow-scripts allow-popups allow-forms"
49
- }, null, 8, _)
49
+ }, null, 8, G)
50
50
  ])
51
51
  ]));
52
52
  }
53
- }), M = /* @__PURE__ */ w(G, [["__scopeId", "data-v-0699f67d"]]);
54
- class z extends f {
53
+ }), O = /* @__PURE__ */ w(M, [["__scopeId", "data-v-0699f67d"]]);
54
+ class F extends y {
55
55
  getType() {
56
56
  return "PayGLocal";
57
57
  }
@@ -62,14 +62,14 @@ class z extends f {
62
62
  var n;
63
63
  this.log(`[${this.getType()}]: getCardDetails`, s, o), (n = this.threeDsProcessor) == null || n.setPaymentInfo(s), this.initChallenge(o.RedirectUrl);
64
64
  }, () => {
65
- c(this.container, "Unable to get card information");
65
+ h(this.container, "Unable to get card information");
66
66
  });
67
67
  return;
68
68
  }
69
69
  (a = this.threeDsProcessor) == null || a.tokeniseCard(this.threeDsProcessor.getProviderId(), (s) => {
70
70
  this.log(`[${this.getType()}]: tokeniseCard`, s), this.initChallenge(s.gatewayTokenData.RedirectUrl);
71
71
  }, (s) => {
72
- c(this.container, s);
72
+ h(this.container, s);
73
73
  });
74
74
  }
75
75
  onAuth(e, t) {
@@ -78,12 +78,12 @@ class z extends f {
78
78
  }
79
79
  initChallenge(e) {
80
80
  if (this.log(`[${this.getType()}]: initChallenge`, e), !e) {
81
- c(this.container, "3D Secure URL is missing");
81
+ h(this.container, "3D Secure URL is missing");
82
82
  return;
83
83
  }
84
84
  const { destroy: t } = C({
85
85
  el: document.body,
86
- component: M,
86
+ component: O,
87
87
  props: {
88
88
  url: e
89
89
  },
@@ -123,5 +123,5 @@ class z extends f {
123
123
  }
124
124
  }
125
125
  export {
126
- z as PayGLocalThreeDsProvider
126
+ F as PayGLocalThreeDsProvider
127
127
  };
@@ -1,4 +1,4 @@
1
- import { U as b, R as v, _ as g } from "./index-CgZDGZz7.js";
1
+ import { R as b, $ as v, T as g } from "./index-BmYcZJxX.js";
2
2
  var A = Object.defineProperty, C = (n, t, e) => t in n ? A(n, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[t] = e, i = (n, t, e) => C(n, typeof t != "symbol" ? t + "" : t, e);
3
3
  const h = {
4
4
  CHECKOUT: "CHECKOUT",
@@ -1,4 +1,4 @@
1
- import { MetricsGlobalThreeDsProvider as e } from "./MetricsGlobalThreeDsProvider-D1adNHH6-59d0yjP1.js";
1
+ import { MetricsGlobalThreeDsProvider as e } from "./MetricsGlobalThreeDsProvider-DCFNNBAG-DWwOWfRj.js";
2
2
  class t extends e {
3
3
  getType() {
4
4
  return "Payabli";
@@ -1,4 +1,4 @@
1
- import { MetricsGlobalThreeDsProvider as e } from "./MetricsGlobalThreeDsProvider-D1adNHH6-59d0yjP1.js";
1
+ import { MetricsGlobalThreeDsProvider as e } from "./MetricsGlobalThreeDsProvider-DCFNNBAG-DWwOWfRj.js";
2
2
  class s extends e {
3
3
  getType() {
4
4
  return "SkyBank";
@@ -1,4 +1,4 @@
1
- import { CxPayThreeDsProvider as n } from "./CxPayThreeDsProvider-7yh00m_f-BSAj-Zut.js";
1
+ import { CxPayThreeDsProvider as n } from "./CxPayThreeDsProvider-BLfTGjPF-kfggfjdU.js";
2
2
  function t(r, e, a) {
3
3
  return new n(r, e, a);
4
4
  }
@@ -1,4 +1,4 @@
1
- import { DefaultThreeDsProvider as o } from "./DefaultThreeDsProvider-Bs-1jjDE-BR4j-f3Q.js";
1
+ import { DefaultThreeDsProvider as o } from "./DefaultThreeDsProvider-ByqIuIMb-DCABeZFY.js";
2
2
  function a(e, r, t) {
3
3
  return new o(e, r, t);
4
4
  }
@@ -1,4 +1,4 @@
1
- import { EcentricThreeDsProvider as i } from "./EcentricThreeDsProvider-BjVGZlb9-BVFegP5X.js";
1
+ import { EcentricThreeDsProvider as i } from "./EcentricThreeDsProvider-C0fijqNm-J1HqpcUG.js";
2
2
  function o(r, e, t) {
3
3
  return new i(r, e, t);
4
4
  }
@@ -1,4 +1,4 @@
1
- import { EpnaThreeDsProvider as n } from "./EpnaThreeDsProvider-D-jEeUhd-CjqDQ6sC.js";
1
+ import { EpnaThreeDsProvider as n } from "./EpnaThreeDsProvider-BKcMV0Ni-C8jATWyJ.js";
2
2
  function t(r, e, a) {
3
3
  return new n(r, e, a);
4
4
  }
@@ -1,4 +1,4 @@
1
- import { FlashBancThreeDsProvider as a } from "./FlashBancThreeDsProvider-Cov5ey75-D0PVygYS.js";
1
+ import { FlashBancThreeDsProvider as a } from "./FlashBancThreeDsProvider-BL79DnxY-CKAnpF83.js";
2
2
  function o(r, e, t) {
3
3
  return new a(r, e, t);
4
4
  }
@@ -1,4 +1,4 @@
1
- import { GPaymentsThreeDsProvider as a } from "./GPaymentsThreeDsProvider-DC48F4-s-CeTTM1oZ.js";
1
+ import { GPaymentsThreeDsProvider as a } from "./GPaymentsThreeDsProvider-DK7o9MEd-CotMfLS4.js";
2
2
  function o(e, r, t) {
3
3
  return new a(e, r, t);
4
4
  }