@payfurl/react-plugin 1.0.6 → 1.0.7

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 (32) hide show
  1. package/dist/{CxPayThreeDsProvider-4BCpCsdK-5y-jJAUH.js → CxPayThreeDsProvider-DUx0ZP9g-Degsqn78.js} +1 -1
  2. package/dist/{DefaultThreeDsProvider-C8FSCo8b-Bifhwxc_.js → DefaultThreeDsProvider-OrSUoygj-DDT1hQi-.js} +8 -8
  3. package/dist/{EcentricThreeDsProvider-DMFPFtaO-B6oROY8T.js → EcentricThreeDsProvider-C0n-kUpY-BWP8kYWo.js} +13 -13
  4. package/dist/{EpnaThreeDsProvider-B5S5hU_--Dsl9eOr2.js → EpnaThreeDsProvider-BlzPLUQj-DXLWm964.js} +1 -1
  5. package/dist/{FlashBancThreeDsProvider-luFjZ63i-BySOhThG.js → FlashBancThreeDsProvider-BZD1Bmox-GnYUlI65.js} +1 -1
  6. package/dist/{GPaymentsThreeDsProvider-6qulsjP4-CfWQs-AG.js → GPaymentsThreeDsProvider-Dmc3T7m7-35lrMFpb.js} +4 -4
  7. package/dist/{MetricsGlobalThreeDsProvider-CMbA70S4-DWNzNSwW.js → MetricsGlobalThreeDsProvider-D8pmLCaF-DEaemgZa.js} +16 -16
  8. package/dist/{NmiThreeDsProvider-CaDEfbnA-DS5gnDcf.js → NmiThreeDsProvider-D6MYO9TE-DHwB0bYd.js} +1 -1
  9. package/dist/{NuveiThreeDsProvider-NHowIDoE-_Je2HZn5.js → NuveiThreeDsProvider-B0_hr137-D1_gqEvl.js} +4 -4
  10. package/dist/{PayGLocalThreeDsProvider-BURFf-eJ-CffD4wbC.js → PayGLocalThreeDsProvider-CcVtz_cC-BQ8_PCsN.js} +16 -16
  11. package/dist/{PayWayAppleButton-Kiqg1nWI-DlAdkLl4.js → PayWayAppleButton-DI0k_xsw-AVNktU-g.js} +1 -1
  12. package/dist/{PayabliThreeDsProvider-C6ourY3u-4S5vdBoa.js → PayabliThreeDsProvider-BTuW5mNX-kyO_hsCR.js} +1 -1
  13. package/dist/{SkyBankThreeDsProvider-CocwPgj3-CSQSEtCI.js → SkyBankThreeDsProvider-CFsEdtDi-Dce6uOn9.js} +1 -1
  14. package/dist/{cxpay-BCOYAnDK-BUEsu20K.js → cxpay-CzXEk7uT-Btncowxp.js} +1 -1
  15. package/dist/{default-B9fgGMCu-cvfbDfsL.js → default-CVlT2ZTw-CLMr4GWi.js} +1 -1
  16. package/dist/{ecentric-BdxLq2Fp-DpZS-ORt.js → ecentric-p4HkLdd1-DUXx49X_.js} +1 -1
  17. package/dist/{epna-VMfQGBHy-Db9GqDwv.js → epna-ugAK06qE-DXI-Rhx5.js} +1 -1
  18. package/dist/{flashbanc-C5_gW-Ru-BLtd2df2.js → flashbanc-BD7QXswZ-mrOZli3W.js} +1 -1
  19. package/dist/{gpayments-ta5TF0Vv-DjYWBYkx.js → gpayments-BJ23p2Lx-BcpckQ_O.js} +1 -1
  20. package/dist/{index-CwPndRAR.js → index-ClH0YevK.js} +1740 -1719
  21. package/dist/{metrics_global-B9vt1fuY-B-mFPkPv.js → metrics_global-Ce0HIVhq-BRn4NHF3.js} +1 -1
  22. package/dist/nmi-Ci4ItU_O-gLvtT0HD.js +7 -0
  23. package/dist/{nuvei-BfNusJeN-C-yeYE1M.js → nuvei-Dy9kXWcy-CyecXMCz.js} +1 -1
  24. package/dist/{payabli-NvcAIz8a-CVrjJnVT.js → payabli-FwdYUjhG-BseeifP8.js} +1 -1
  25. package/dist/payfurl-react.es.js +1 -1
  26. package/dist/payfurl-react.umd.js +21 -21
  27. package/dist/{payglocal-XRSVL_Mu-xTaim_K3.js → payglocal-DX_7nogS-PD41uw-Y.js} +1 -1
  28. package/dist/{payway_rest-DYhBIk_r-i9UWjHTv.js → payway_rest-BMXIpCn0-rvMOa3J_.js} +1 -1
  29. package/dist/{skybank-CLI49-PQ-AY_KHOf-.js → skybank-JGD9tw1a-YWSy9RUx.js} +1 -1
  30. package/dist/src/sdk/types/PaymentType.type.d.ts +2 -2
  31. package/package.json +1 -1
  32. package/dist/nmi-7Noaj-hm-C8r_dvJq.js +0 -7
@@ -1,4 +1,4 @@
1
- import { MetricsGlobalThreeDsProvider as e } from "./MetricsGlobalThreeDsProvider-CMbA70S4-DWNzNSwW.js";
1
+ import { MetricsGlobalThreeDsProvider as e } from "./MetricsGlobalThreeDsProvider-D8pmLCaF-DEaemgZa.js";
2
2
  class t extends e {
3
3
  getType() {
4
4
  return "CxPay";
@@ -1,6 +1,6 @@
1
- import { c as d, g as S, v as g, z as p, F as m, i as T, a as v, Y as I, J as f, N as u, $ as y, b as A, O as C } from "./index-CwPndRAR.js";
1
+ import { c as d, M as S, P as g, z as p, U as m, i as T, q as v, Y as I, J as f, N as u, $ as y, C as A, O as C } from "./index-ClH0YevK.js";
2
2
  var R = Object.defineProperty, E = (l, e, s) => e in l ? R(l, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : l[e] = s, n = (l, e, s) => E(l, typeof e != "symbol" ? e + "" : e, s);
3
- const P = { class: "mask" }, b = { class: "wrapper" }, U = { class: "container" }, $ = ["action"], L = ["value"], M = /* @__PURE__ */ m({
3
+ const P = { class: "mask" }, U = { class: "wrapper" }, b = { class: "container" }, $ = ["action"], M = ["value"], L = /* @__PURE__ */ m({
4
4
  __name: "ThreeDsChallenge",
5
5
  props: {
6
6
  threeDSServerTransID: {},
@@ -20,8 +20,8 @@ const P = { class: "mask" }, b = { class: "wrapper" }, U = { class: "container"
20
20
  var t;
21
21
  (t = o.value) == null || t.submit();
22
22
  }), (t, h) => (I(), f("div", P, [
23
- u("div", b, [
24
- u("div", U, [
23
+ u("div", U, [
24
+ u("div", b, [
25
25
  y(A, {
26
26
  onClick: h[0] || (h[0] = (c) => a("close")),
27
27
  id: "3ds-challenge-close"
@@ -38,13 +38,13 @@ const P = { class: "mask" }, b = { class: "wrapper" }, U = { class: "container"
38
38
  type: "hidden",
39
39
  name: "creq",
40
40
  value: C(r)
41
- }, null, 8, L)
41
+ }, null, 8, M)
42
42
  ], 8, $)
43
43
  ])
44
44
  ])
45
45
  ]));
46
46
  }
47
- }), _ = /* @__PURE__ */ p(M, [["__scopeId", "data-v-ac351494"]]);
47
+ }), _ = /* @__PURE__ */ p(L, [["__scopeId", "data-v-ac351494"]]);
48
48
  class w {
49
49
  constructor() {
50
50
  n(this, "iframeId", "threeDsIframeMethod"), n(this, "containerId", "payfurlContainerFormInvoker"), n(this, "iframe", null), n(this, "container", null);
@@ -65,7 +65,7 @@ class w {
65
65
  }
66
66
  }
67
67
  const { hideSpinner: D, showSpinner: N } = d(), O = "3ds_method_invocation_complete", k = "3ds_challenge_complete";
68
- class q {
68
+ class V {
69
69
  constructor(e, s, a) {
70
70
  n(this, "log"), n(this, "container"), n(this, "options"), n(this, "threeDsProcessor", null), n(this, "threeDSDestroy", () => {
71
71
  }), n(this, "threeDSServerTransID", ""), n(this, "threeDSAuthURL", ""), n(this, "threeDSRequestorTransID", ""), n(this, "threeDSMonitorURL", ""), n(this, "internalMessageHandler", this.messageHandler.bind(this)), n(this, "onError", (o, i) => {
@@ -218,7 +218,7 @@ class q {
218
218
  }
219
219
  }
220
220
  export {
221
- q as DefaultThreeDsProvider,
221
+ V as DefaultThreeDsProvider,
222
222
  k as THREE_DS_CHALLENGE_COMPLETE,
223
223
  O as THREE_DS_METHOD_INVOCATION_COMPLETE
224
224
  };
@@ -1,7 +1,7 @@
1
- import { DefaultThreeDsProvider as l } from "./DefaultThreeDsProvider-C8FSCo8b-Bifhwxc_.js";
2
- import { v as i, z as h, F as c, i as u, a as D, Y as d, J as p, N as o, $ as v, b as m, O as g } from "./index-CwPndRAR.js";
1
+ import { DefaultThreeDsProvider as l } from "./DefaultThreeDsProvider-OrSUoygj-DDT1hQi-.js";
2
+ import { P as i, z as h, U as c, i as u, q as D, Y as d, J as p, N as o, $ as m, C as g, O as v } from "./index-ClH0YevK.js";
3
3
  var S = Object.defineProperty, T = (r, e, t) => e in r ? S(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t, y = (r, e, t) => T(r, e + "", t);
4
- const f = { class: "mask" }, P = { class: "wrapper" }, I = { class: "container" }, C = ["action"], b = ["value"], A = /* @__PURE__ */ c({
4
+ const P = { class: "mask" }, f = { class: "wrapper" }, C = { class: "container" }, I = ["action"], A = ["value"], $ = /* @__PURE__ */ c({
5
5
  __name: "ecentric",
6
6
  props: {
7
7
  threeDSServerTransID: {},
@@ -14,11 +14,11 @@ const f = { class: "mask" }, P = { class: "wrapper" }, I = { class: "container"
14
14
  return D(() => {
15
15
  var a;
16
16
  (a = t.value) == null || a.submit();
17
- }), (a, s) => (d(), p("div", f, [
18
- o("div", P, [
19
- o("div", I, [
20
- v(m, {
21
- onClick: s[0] || (s[0] = (F) => a.emit("close"))
17
+ }), (a, s) => (d(), p("div", P, [
18
+ o("div", f, [
19
+ o("div", C, [
20
+ m(g, {
21
+ onClick: s[0] || (s[0] = (b) => a.emit("close"))
22
22
  }),
23
23
  s[1] || (s[1] = o("iframe", { name: "ThreeDsChallengeIFrame" }, null, -1)),
24
24
  o("form", {
@@ -31,14 +31,14 @@ const f = { class: "mask" }, P = { class: "wrapper" }, I = { class: "container"
31
31
  o("input", {
32
32
  type: "hidden",
33
33
  name: "PaReq",
34
- value: g(n)
35
- }, null, 8, b)
36
- ], 8, C)
34
+ value: v(n)
35
+ }, null, 8, A)
36
+ ], 8, I)
37
37
  ])
38
38
  ])
39
39
  ]));
40
40
  }
41
- }), $ = /* @__PURE__ */ h(A, [["__scopeId", "data-v-8d26953f"]]);
41
+ }), V = /* @__PURE__ */ h($, [["__scopeId", "data-v-8d26953f"]]);
42
42
  class R extends l {
43
43
  constructor() {
44
44
  super(...arguments), y(this, "paResPayload", "");
@@ -60,7 +60,7 @@ class R extends l {
60
60
  this.log(`[${this.getType()}][doChallenge]`);
61
61
  const { destroy: a } = i({
62
62
  el: document.body,
63
- component: $,
63
+ component: V,
64
64
  props: {
65
65
  threeDSServerTransID: this.threeDSServerTransID,
66
66
  acsTransID: t,
@@ -1,4 +1,4 @@
1
- import { MetricsGlobalThreeDsProvider as e } from "./MetricsGlobalThreeDsProvider-CMbA70S4-DWNzNSwW.js";
1
+ import { MetricsGlobalThreeDsProvider as e } from "./MetricsGlobalThreeDsProvider-D8pmLCaF-DEaemgZa.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-CMbA70S4-DWNzNSwW.js";
1
+ import { MetricsGlobalThreeDsProvider as e } from "./MetricsGlobalThreeDsProvider-D8pmLCaF-DEaemgZa.js";
2
2
  class s extends e {
3
3
  getType() {
4
4
  return "FlashBanc";
@@ -1,5 +1,5 @@
1
- import { DefaultThreeDsProvider as a } from "./DefaultThreeDsProvider-C8FSCo8b-Bifhwxc_.js";
2
- import { v as o, z as l, F as u, Y as c, J as p, N as h, E as i } from "./index-CwPndRAR.js";
1
+ import { DefaultThreeDsProvider as a } from "./DefaultThreeDsProvider-OrSUoygj-DDT1hQi-.js";
2
+ import { P as o, z as l, U as u, Y as c, J as p, N as h, E as i } from "./index-ClH0YevK.js";
3
3
  var d = Object.defineProperty, g = (r, e, t) => e in r ? d(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t, n = (r, e, t) => g(r, typeof e != "symbol" ? e + "" : e, t);
4
4
  const S = { class: "mask" }, D = { class: "wrapper" }, m = ["src"], y = /* @__PURE__ */ u({
5
5
  __name: "GPayments",
@@ -31,7 +31,7 @@ const S = { class: "mask" }, D = { class: "wrapper" }, m = ["src"], y = /* @__PU
31
31
  ]));
32
32
  }
33
33
  }), f = /* @__PURE__ */ l(y, [["__scopeId", "data-v-9b0ef3a8"]]);
34
- class A extends a {
34
+ class U extends a {
35
35
  constructor() {
36
36
  super(...arguments), n(this, "onDoAuthSuccess", (e, t) => {
37
37
  const s = JSON.parse(t);
@@ -96,5 +96,5 @@ class A extends a {
96
96
  }
97
97
  }
98
98
  export {
99
- A as GPaymentsThreeDsProvider
99
+ U as GPaymentsThreeDsProvider
100
100
  };
@@ -1,7 +1,7 @@
1
- import { DefaultThreeDsProvider as C } from "./DefaultThreeDsProvider-C8FSCo8b-Bifhwxc_.js";
2
- import { c as P, d, v as S, z as w, F as E, i as A, a as b, u as f, D as T, R as L, Y as _, J as N, N as g, $ as x, b as G } from "./index-CwPndRAR.js";
3
- var I = Object.defineProperty, $ = (l, e, t) => e in l ? I(l, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : l[e] = t, m = (l, e, t) => $(l, typeof e != "symbol" ? e + "" : e, t);
4
- const H = { class: "mask" }, M = { class: "wrapper" }, O = { class: "container" }, F = /* @__PURE__ */ E({
1
+ import { DefaultThreeDsProvider as C } from "./DefaultThreeDsProvider-OrSUoygj-DDT1hQi-.js";
2
+ import { c as P, b as d, P as S, z as w, U as E, i as A, q as b, u as f, I as T, R as L, Y as _, J as I, N as g, $ as N, C as x } from "./index-ClH0YevK.js";
3
+ var G = Object.defineProperty, $ = (l, e, t) => e in l ? G(l, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : l[e] = t, m = (l, e, t) => $(l, typeof e != "symbol" ? e + "" : e, t);
4
+ const H = { class: "mask" }, M = { class: "wrapper" }, O = { class: "container" }, j = /* @__PURE__ */ E({
5
5
  __name: "MetricsGlobalThreeDsChallenge",
6
6
  emits: ["close", "submit"],
7
7
  setup(l, { emit: e }) {
@@ -14,10 +14,10 @@ const H = { class: "mask" }, M = { class: "wrapper" }, O = { class: "container"
14
14
  window.addEventListener("message", a);
15
15
  }), f(() => {
16
16
  window.removeEventListener("message", a);
17
- }), (h, r) => T((_(), N("div", H, [
17
+ }), (h, r) => T((_(), I("div", H, [
18
18
  g("div", M, [
19
19
  g("div", O, [
20
- x(G, {
20
+ N(x, {
21
21
  onClick: r[0] || (r[0] = (s) => t("close")),
22
22
  id: "3ds-challenge-close"
23
23
  }),
@@ -28,8 +28,8 @@ const H = { class: "mask" }, M = { class: "wrapper" }, O = { class: "container"
28
28
  [L, o.value]
29
29
  ]);
30
30
  }
31
- }), j = /* @__PURE__ */ w(F, [["__scopeId", "data-v-8a0b6dcb"]]), { hideSpinner: u, showSpinner: k } = P(), D = 5;
32
- class K extends C {
31
+ }), k = /* @__PURE__ */ w(j, [["__scopeId", "data-v-8a0b6dcb"]]), { hideSpinner: u, showSpinner: F } = P(), p = 5;
32
+ class q extends C {
33
33
  constructor(e, t, o) {
34
34
  var a;
35
35
  super(e, t, o), m(this, "gateway"), m(this, "threeDS"), m(this, "numAttempts", 0), this.initScript(((a = o.clientParameters) == null ? void 0 : a.PublicKey) || "");
@@ -42,11 +42,11 @@ class K extends C {
42
42
  }
43
43
  onPreAuth() {
44
44
  var e, t;
45
- if (this.log(`[${this.getType()}]: onPreAuth`), !this.threeDS && this.numAttempts >= D) {
45
+ if (this.log(`[${this.getType()}]: onPreAuth`), !this.threeDS && this.numAttempts >= p) {
46
46
  u(), d(this.container, "Error loading 3D Secure");
47
47
  return;
48
48
  }
49
- if (!this.threeDS && this.numAttempts < D) {
49
+ if (!this.threeDS && this.numAttempts < p) {
50
50
  this.numAttempts++, this.log(`[${this.getType()}]: 3DS not ready, retrying in 1s`), setTimeout(() => this.onPreAuth(), 1e3);
51
51
  return;
52
52
  }
@@ -69,10 +69,10 @@ class K extends C {
69
69
  u(), d(this.container, "Payment information is missing");
70
70
  return;
71
71
  }
72
- k();
73
- const s = (t = this.threeDsProcessor) == null ? void 0 : t.getAddressInfo(), p = r.expiryDate.length === 4 ? r.expiryDate[2] + r.expiryDate[3] : "", v = r.expiryDate.length === 4 ? r.expiryDate[0] + r.expiryDate[1] : "", y = {
72
+ F();
73
+ const s = (t = this.threeDsProcessor) == null ? void 0 : t.getAddressInfo(), D = r.expiryDate.length === 4 ? r.expiryDate[2] + r.expiryDate[3] : "", v = r.expiryDate.length === 4 ? r.expiryDate[0] + r.expiryDate[1] : "", y = {
74
74
  cardNumber: r.cardNumber,
75
- cardExpMonth: p,
75
+ cardExpMonth: D,
76
76
  cardExpYear: parseInt(v) + 2e3,
77
77
  currency: (o = this.threeDsProcessor) == null ? void 0 : o.getCurrency(),
78
78
  amount: (a = this.threeDsProcessor) == null ? void 0 : a.getAmount(),
@@ -110,13 +110,13 @@ class K extends C {
110
110
  initGateway(e) {
111
111
  this.gateway = window.Gateway.create(e), this.threeDS = this.gateway.get3DSecure(), this.gateway.on("error", (t) => {
112
112
  var o;
113
- this.log(`[${this.getType()}]: gateway error`, t), (o = this.threeDsProcessor) == null || o.onError({ error: t.message }), this.threeDS = null, this.numAttempts = D;
113
+ this.log(`[${this.getType()}]: gateway error`, t), (o = this.threeDsProcessor) == null || o.onError({ error: t.message }), this.threeDS = null, this.numAttempts = p;
114
114
  });
115
115
  }
116
116
  initChallenge() {
117
117
  const { destroy: e } = S({
118
118
  el: document.body,
119
- component: j,
119
+ component: k,
120
120
  on: {
121
121
  close: () => {
122
122
  var t;
@@ -142,5 +142,5 @@ class K extends C {
142
142
  }
143
143
  }
144
144
  export {
145
- K as MetricsGlobalThreeDsProvider
145
+ q as MetricsGlobalThreeDsProvider
146
146
  };
@@ -1,4 +1,4 @@
1
- import { MetricsGlobalThreeDsProvider as e } from "./MetricsGlobalThreeDsProvider-CMbA70S4-DWNzNSwW.js";
1
+ import { MetricsGlobalThreeDsProvider as e } from "./MetricsGlobalThreeDsProvider-D8pmLCaF-DEaemgZa.js";
2
2
  class t extends e {
3
3
  getType() {
4
4
  return "NMI";
@@ -1,5 +1,5 @@
1
- import { c as h, d as u, v as p, z as m, F as g, a as D, Y as S, J as v, N as l } from "./index-CwPndRAR.js";
2
- import { DefaultThreeDsProvider as y, THREE_DS_METHOD_INVOCATION_COMPLETE as P, THREE_DS_CHALLENGE_COMPLETE as T } from "./DefaultThreeDsProvider-C8FSCo8b-Bifhwxc_.js";
1
+ import { c as h, b as u, P as p, z as m, U as g, q as D, Y as S, J as v, N as l } from "./index-ClH0YevK.js";
2
+ import { DefaultThreeDsProvider as y, THREE_DS_METHOD_INVOCATION_COMPLETE as P, THREE_DS_CHALLENGE_COMPLETE as T } from "./DefaultThreeDsProvider-OrSUoygj-DDT1hQi-.js";
3
3
  var f = Object.defineProperty, N = (n, e, r) => e in n ? f(n, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : n[e] = r, c = (n, e, r) => N(n, typeof e != "symbol" ? e + "" : e, r);
4
4
  const I = { class: "mask" }, C = /* @__PURE__ */ g({
5
5
  __name: "nuvei",
@@ -77,12 +77,12 @@ const I = { class: "mask" }, C = /* @__PURE__ */ g({
77
77
  ], -1)
78
78
  ])));
79
79
  }
80
- }), _ = /* @__PURE__ */ m(C, [["__scopeId", "data-v-6293d147"]]), { hideSpinner: E } = h();
80
+ }), _ = /* @__PURE__ */ m(C, [["__scopeId", "data-v-6293d147"]]), { hideSpinner: b } = h();
81
81
  class A extends y {
82
82
  constructor() {
83
83
  super(...arguments), c(this, "_paResPayload", null), c(this, "onSuccess", (e, r) => {
84
84
  var s, o;
85
- this.closeChallenge(), E();
85
+ this.closeChallenge(), b();
86
86
  const t = JSON.parse(r);
87
87
  t.authenticationValue ? (s = this.threeDsProcessor) == null || s.onSuccess(t) : (this.log(`[${this.getType()}][_onSuccess] 3D Secure failed`, t), (o = this.threeDsProcessor) == null || o.onError({ error: "3D Secure failed" }));
88
88
  }), c(this, "onDoAuthSuccess", (e, r) => {
@@ -1,24 +1,24 @@
1
- import { DefaultThreeDsProvider as y } from "./DefaultThreeDsProvider-C8FSCo8b-Bifhwxc_.js";
2
- import { i as u, d as c, v as f, z as C, F as w, e as E, a as p, u as D, Y as I, J as L, N as g, f as S } from "./index-CwPndRAR.js";
1
+ import { DefaultThreeDsProvider as y } from "./DefaultThreeDsProvider-OrSUoygj-DDT1hQi-.js";
2
+ import { i as u, b as c, P as f, z as C, U as w, a as E, q as D, u as m, Y as I, J as L, N as g, _ as S } from "./index-ClH0YevK.js";
3
3
  const h = u(!1);
4
4
  function k(r, ...e) {
5
5
  h.value && console.log(r, e);
6
6
  }
7
- function v(r) {
7
+ function p(r) {
8
8
  var e, t;
9
9
  (e = r == null ? void 0 : r.data) != null && e.status && r.data.status === S && (h.value = !!((t = r == null ? void 0 : r.data) != null && t.debug));
10
10
  }
11
11
  function R() {
12
- return p(() => {
13
- window.addEventListener("message", v);
14
- }), D(() => {
15
- window.removeEventListener("message", v);
12
+ return D(() => {
13
+ window.addEventListener("message", p);
14
+ }), m(() => {
15
+ window.removeEventListener("message", p);
16
16
  }), {
17
17
  debug: h,
18
18
  logMessage: k
19
19
  };
20
20
  }
21
- const b = { class: "modal-mask" }, A = { class: "modal-wrapper" }, U = ["src"], x = /* @__PURE__ */ w({
21
+ const b = { class: "modal-mask" }, U = { class: "modal-wrapper" }, A = ["src"], _ = /* @__PURE__ */ w({
22
22
  __name: "PayGLocalThreeDsChallenge",
23
23
  props: {
24
24
  url: {}
@@ -28,9 +28,9 @@ const b = { class: "modal-mask" }, A = { class: "modal-wrapper" }, U = ["src"],
28
28
  const { logMessage: t } = R(), a = r, s = e, o = u(a.url);
29
29
  u(null), E(() => a.url, (l) => {
30
30
  o.value = l;
31
- }), p(() => {
32
- window.addEventListener("message", n);
33
31
  }), D(() => {
32
+ window.addEventListener("message", n);
33
+ }), m(() => {
34
34
  window.removeEventListener("message", n);
35
35
  });
36
36
  function n(l) {
@@ -38,19 +38,19 @@ const b = { class: "modal-mask" }, A = { class: "modal-wrapper" }, U = ["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 m = d.split(".")[1], T = window.atob(m), P = JSON.parse(T);
42
- s("close", P);
41
+ const v = d.split(".")[1], P = window.atob(v), T = JSON.parse(P);
42
+ s("close", T);
43
43
  }
44
44
  return (l, i) => (I(), L("div", b, [
45
- g("div", A, [
45
+ g("div", U, [
46
46
  g("iframe", {
47
47
  src: o.value,
48
48
  sandbox: "allow-same-origin allow-scripts allow-popups allow-forms"
49
- }, null, 8, U)
49
+ }, null, 8, A)
50
50
  ])
51
51
  ]));
52
52
  }
53
- }), M = /* @__PURE__ */ C(x, [["__scopeId", "data-v-6f042298"]]);
53
+ }), x = /* @__PURE__ */ C(_, [["__scopeId", "data-v-6f042298"]]);
54
54
  class G extends y {
55
55
  getType() {
56
56
  return "PayGLocal";
@@ -83,7 +83,7 @@ class G extends y {
83
83
  }
84
84
  const { destroy: t } = f({
85
85
  el: document.body,
86
- component: M,
86
+ component: x,
87
87
  props: {
88
88
  url: e
89
89
  },
@@ -1,4 +1,4 @@
1
- import { M as b, L as v, k as g } from "./index-CwPndRAR.js";
1
+ import { L as b, x as v, k as g } from "./index-ClH0YevK.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-CMbA70S4-DWNzNSwW.js";
1
+ import { MetricsGlobalThreeDsProvider as e } from "./MetricsGlobalThreeDsProvider-D8pmLCaF-DEaemgZa.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-CMbA70S4-DWNzNSwW.js";
1
+ import { MetricsGlobalThreeDsProvider as e } from "./MetricsGlobalThreeDsProvider-D8pmLCaF-DEaemgZa.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-4BCpCsdK-5y-jJAUH.js";
1
+ import { CxPayThreeDsProvider as n } from "./CxPayThreeDsProvider-DUx0ZP9g-Degsqn78.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-C8FSCo8b-Bifhwxc_.js";
1
+ import { DefaultThreeDsProvider as o } from "./DefaultThreeDsProvider-OrSUoygj-DDT1hQi-.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-DMFPFtaO-B6oROY8T.js";
1
+ import { EcentricThreeDsProvider as i } from "./EcentricThreeDsProvider-C0n-kUpY-BWP8kYWo.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-B5S5hU_--Dsl9eOr2.js";
1
+ import { EpnaThreeDsProvider as n } from "./EpnaThreeDsProvider-BlzPLUQj-DXLWm964.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-luFjZ63i-BySOhThG.js";
1
+ import { FlashBancThreeDsProvider as a } from "./FlashBancThreeDsProvider-BZD1Bmox-GnYUlI65.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-6qulsjP4-CfWQs-AG.js";
1
+ import { GPaymentsThreeDsProvider as a } from "./GPaymentsThreeDsProvider-Dmc3T7m7-35lrMFpb.js";
2
2
  function o(e, r, t) {
3
3
  return new a(e, r, t);
4
4
  }