@payfurl/react-plugin 1.0.8 → 1.0.9

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 (33) hide show
  1. package/dist/{CxPayThreeDsProvider-DUx0ZP9g-CZ0dDiUf.js → CxPayThreeDsProvider-C3SVxMVV-CIcyQRzl.js} +1 -1
  2. package/dist/{DefaultThreeDsProvider-OrSUoygj-C1fnz8Dl.js → DefaultThreeDsProvider-DSJFbhYb-BR2-2Tpy.js} +13 -13
  3. package/dist/{EcentricThreeDsProvider-C0n-kUpY-B7faJJZS.js → EcentricThreeDsProvider-M7JlFNrQ-CfLmEg8r.js} +15 -15
  4. package/dist/{EpnaThreeDsProvider-BlzPLUQj-5xYvlDhH.js → EpnaThreeDsProvider-BFvrkGJv-CmgaZQ8W.js} +1 -1
  5. package/dist/{FlashBancThreeDsProvider-BZD1Bmox-CXii2Z5u.js → FlashBancThreeDsProvider-CqjYV8SM-D932Lamr.js} +1 -1
  6. package/dist/{GPaymentsThreeDsProvider-Dmc3T7m7-ClWUXsKr.js → GPaymentsThreeDsProvider-BMCOtJAd-CNu_pC6q.js} +4 -4
  7. package/dist/{MetricsGlobalThreeDsProvider-D8pmLCaF-9Zn9KMBT.js → MetricsGlobalThreeDsProvider-B9rzZcOb-BDahPAuh.js} +29 -29
  8. package/dist/{NmiThreeDsProvider-D6MYO9TE-XP3i5DD0.js → NmiThreeDsProvider-C8Gf2tSm-CvbL47jU.js} +1 -1
  9. package/dist/{NuveiThreeDsProvider-B0_hr137-BSeS3Dtw.js → NuveiThreeDsProvider-CjtjRIqU-Oq-yTie5.js} +6 -6
  10. package/dist/{PayGLocalThreeDsProvider-CcVtz_cC-CryvMpZk.js → PayGLocalThreeDsProvider-CkBdY3-6-DFZF8Idj.js} +21 -21
  11. package/dist/{PayWayAppleButton-DI0k_xsw-gdBZ6sUf.js → PayWayAppleButton-3Jcspw8r-D7c2ELHJ.js} +1 -1
  12. package/dist/{PayabliThreeDsProvider-BTuW5mNX-zUudDCiq.js → PayabliThreeDsProvider-BYNvOB9r-0YMR6lF6.js} +1 -1
  13. package/dist/{SkyBankThreeDsProvider-CFsEdtDi-D_AeZUTT.js → SkyBankThreeDsProvider-D1loCi58-Dt14b0MK.js} +1 -1
  14. package/dist/{cxpay-CzXEk7uT-CHEaX1oC.js → cxpay-tBsH5Qq9-CuzlflKr.js} +1 -1
  15. package/dist/{default-CVlT2ZTw-GAb6ONvT.js → default-CU0qSz8c-G_XP7PEy.js} +1 -1
  16. package/dist/{ecentric-p4HkLdd1-CNm1w3kN.js → ecentric-BoreYd7u-DGX96uHH.js} +1 -1
  17. package/dist/{epna-ugAK06qE-CkwGUb_w.js → epna-S8i7BPJA-DEbaBDO8.js} +1 -1
  18. package/dist/{flashbanc-BD7QXswZ-Fdy1B6BS.js → flashbanc-BoYu0io2-DGjygXQV.js} +1 -1
  19. package/dist/{gpayments-BJ23p2Lx-QfoNtcpr.js → gpayments-BSnudVfM-D02tSdF6.js} +1 -1
  20. package/dist/{index-gsXnNX5E.js → index-0E3VS5Zq.js} +4257 -4262
  21. package/dist/{metrics_global-Ce0HIVhq-DU1Eh9Do.js → metrics_global-C-3-Z-LB-BqUmy4TP.js} +1 -1
  22. package/dist/nmi-CP4vI9mH-BehvSvaB.js +7 -0
  23. package/dist/{nuvei-Dy9kXWcy-D3SDtRgj.js → nuvei-rKAQzNmO-BInMw2Rr.js} +1 -1
  24. package/dist/{payabli-FwdYUjhG-AALDzHYk.js → payabli-uJdaROjR-C5Q_HZA9.js} +1 -1
  25. package/dist/payfurl-react.es.js +1 -1
  26. package/dist/payfurl-react.umd.js +27 -27
  27. package/dist/{payglocal-DX_7nogS-CX5mt--e.js → payglocal-BtWr5bKE-CqLMZV2a.js} +1 -1
  28. package/dist/{payway_rest-BMXIpCn0-DUHYQ0hf.js → payway_rest-YdocXQB2-BzVB60Gl.js} +1 -1
  29. package/dist/{skybank-JGD9tw1a-Bnir5oV2.js → skybank-B_BtMhk2-ZE-AEwAY.js} +1 -1
  30. package/dist/src/sdk/types/DropInOptions.type.d.ts +4 -0
  31. package/dist/src/sdk/types/UpiOptions.type.d.ts +3 -0
  32. package/package.json +2 -2
  33. package/dist/nmi-Ci4ItU_O-Dp-mCkGK.js +0 -7
@@ -1,4 +1,4 @@
1
- import { MetricsGlobalThreeDsProvider as e } from "./MetricsGlobalThreeDsProvider-D8pmLCaF-9Zn9KMBT.js";
1
+ import { MetricsGlobalThreeDsProvider as e } from "./MetricsGlobalThreeDsProvider-B9rzZcOb-BDahPAuh.js";
2
2
  class t extends e {
3
3
  getType() {
4
4
  return "CxPay";
@@ -1,4 +1,4 @@
1
- import { c as d, M as S, P as g, z as p, U as m, i as T, J as v, q as I, N as u, $ as f, C as y, O as A, Y as C } from "./index-gsXnNX5E.js";
1
+ import { o as d, w as S, y as g, Y as p, U as m, n as T, J as v, Z as I, M as u, $ as f, l as y, O as A, a as C } from "./index-0E3VS5Zq.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
3
  const P = { class: "mask" }, U = { class: "wrapper" }, b = { class: "container" }, $ = ["action"], M = ["value"], L = /* @__PURE__ */ m({
4
4
  __name: "ThreeDsChallenge",
@@ -44,8 +44,8 @@ const P = { class: "mask" }, U = { class: "wrapper" }, b = { class: "container"
44
44
  ])
45
45
  ]));
46
46
  }
47
- }), _ = /* @__PURE__ */ p(L, [["__scopeId", "data-v-ac351494"]]);
48
- class w {
47
+ }), w = /* @__PURE__ */ p(L, [["__scopeId", "data-v-ac351494"]]);
48
+ class _ {
49
49
  constructor() {
50
50
  n(this, "iframeId", "threeDsIframeMethod"), n(this, "containerId", "payfurlContainerFormInvoker"), n(this, "iframe", null), n(this, "container", null);
51
51
  }
@@ -64,8 +64,8 @@ class w {
64
64
  t.submit();
65
65
  }
66
66
  }
67
- const { hideSpinner: D, showSpinner: N } = d(), O = "3ds_method_invocation_complete", k = "3ds_challenge_complete";
68
- class V {
67
+ const { hideSpinner: D, showSpinner: O } = d(), k = "3ds_method_invocation_complete", N = "3ds_challenge_complete";
68
+ class q {
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) => {
@@ -141,7 +141,7 @@ class V {
141
141
  return "";
142
142
  }
143
143
  onPreAuth() {
144
- this.log(`[${this.getType()}][onPreAuth]`), this.threeDsProcessor && (N(), this.threeDsProcessor.onPreAuth(this.onInitAuthSuccess, this.onError), window.addEventListener("message", this.internalMessageHandler));
144
+ this.log(`[${this.getType()}][onPreAuth]`), this.threeDsProcessor && (O(), this.threeDsProcessor.onPreAuth(this.onInitAuthSuccess, this.onError), window.addEventListener("message", this.internalMessageHandler));
145
145
  }
146
146
  onAuth(e, s) {
147
147
  var a;
@@ -166,11 +166,11 @@ class V {
166
166
  messageHandler(e) {
167
167
  var s, a;
168
168
  if (!(!((s = e == null ? void 0 : e.data) != null && s.status) || ((a = e == null ? void 0 : e.data) == null ? void 0 : a.status) === S)) {
169
- if (e.data.status === O) {
169
+ if (e.data.status === k) {
170
170
  e.stopPropagation(), this.invocationComplete(e);
171
171
  return;
172
172
  }
173
- e.data.status === k && (e.stopPropagation(), this.challengeComplete(e));
173
+ e.data.status === N && (e.stopPropagation(), this.challengeComplete(e));
174
174
  }
175
175
  }
176
176
  invocationComplete(e) {
@@ -185,7 +185,7 @@ class V {
185
185
  this.log(`[${this.getType()}][doChallenge]`), D();
186
186
  const { destroy: o } = g({
187
187
  el: document.body,
188
- component: _,
188
+ component: w,
189
189
  props: {
190
190
  threeDSServerTransID: this.threeDSServerTransID,
191
191
  acsTransID: s,
@@ -212,13 +212,13 @@ class V {
212
212
  threeDSServerTransID: e,
213
213
  threeDSMethodNotificationURL: this.options.apiUrl + "/3ds/method_invocation"
214
214
  }, o = encodeURI(window.btoa(JSON.stringify(a)).replace(/=*$/, ""));
215
- new w().invoke(s, "POST", {
215
+ new _().invoke(s, "POST", {
216
216
  threeDSMethodData: o
217
217
  });
218
218
  }
219
219
  }
220
220
  export {
221
- V as DefaultThreeDsProvider,
222
- k as THREE_DS_CHALLENGE_COMPLETE,
223
- O as THREE_DS_METHOD_INVOCATION_COMPLETE
221
+ q as DefaultThreeDsProvider,
222
+ N as THREE_DS_CHALLENGE_COMPLETE,
223
+ k as THREE_DS_METHOD_INVOCATION_COMPLETE
224
224
  };
@@ -1,7 +1,7 @@
1
- import { DefaultThreeDsProvider as l } from "./DefaultThreeDsProvider-OrSUoygj-C1fnz8Dl.js";
2
- import { P as i, z as h, U as c, i as u, J as D, q as d, Y as p, N as o, $ as m, C as g, O as v } from "./index-gsXnNX5E.js";
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 P = { class: "mask" }, f = { class: "wrapper" }, C = { class: "container" }, I = ["action"], A = ["value"], $ = /* @__PURE__ */ c({
1
+ import { DefaultThreeDsProvider as l } from "./DefaultThreeDsProvider-DSJFbhYb-BR2-2Tpy.js";
2
+ import { y as i, Y as h, U as c, n as u, J as D, Z as d, a as p, M as n, $ as m, l as g, O as v } from "./index-0E3VS5Zq.js";
3
+ var y = Object.defineProperty, S = (r, e, t) => e in r ? y(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t, T = (r, e, t) => S(r, e + "", t);
4
+ const P = { class: "mask" }, f = { class: "wrapper" }, I = { class: "container" }, C = ["action"], A = ["value"], $ = /* @__PURE__ */ c({
5
5
  __name: "ecentric",
6
6
  props: {
7
7
  threeDSServerTransID: {},
@@ -10,30 +10,30 @@ const P = { class: "mask" }, f = { class: "wrapper" }, C = { class: "container"
10
10
  authenticationValue: {}
11
11
  },
12
12
  setup(r) {
13
- const e = r, t = u(null), n = e.authenticationValue;
13
+ const e = r, t = u(null), o = e.authenticationValue;
14
14
  return d(() => {
15
15
  var a;
16
16
  (a = t.value) == null || a.submit();
17
17
  }), (a, s) => (p(), D("div", P, [
18
- o("div", f, [
19
- o("div", C, [
18
+ n("div", f, [
19
+ n("div", I, [
20
20
  m(g, {
21
21
  onClick: s[0] || (s[0] = (b) => a.emit("close"))
22
22
  }),
23
- s[1] || (s[1] = o("iframe", { name: "ThreeDsChallengeIFrame" }, null, -1)),
24
- o("form", {
23
+ s[1] || (s[1] = n("iframe", { name: "ThreeDsChallengeIFrame" }, null, -1)),
24
+ n("form", {
25
25
  action: e.formAction,
26
26
  target: "ThreeDsChallengeIFrame",
27
27
  method: "post",
28
28
  ref_key: "form",
29
29
  ref: t
30
30
  }, [
31
- o("input", {
31
+ n("input", {
32
32
  type: "hidden",
33
33
  name: "PaReq",
34
- value: v(n)
34
+ value: v(o)
35
35
  }, null, 8, A)
36
- ], 8, I)
36
+ ], 8, C)
37
37
  ])
38
38
  ])
39
39
  ]));
@@ -41,7 +41,7 @@ const P = { class: "mask" }, f = { class: "wrapper" }, C = { class: "container"
41
41
  }), V = /* @__PURE__ */ h($, [["__scopeId", "data-v-8d26953f"]]);
42
42
  class R extends l {
43
43
  constructor() {
44
- super(...arguments), y(this, "paResPayload", "");
44
+ super(...arguments), T(this, "paResPayload", "");
45
45
  }
46
46
  getType() {
47
47
  return "Ecentric";
@@ -56,7 +56,7 @@ class R extends l {
56
56
  authenticationValue: this.paResPayload
57
57
  }, this.onSuccess, this.onError);
58
58
  }
59
- doChallenge(e, t, n) {
59
+ doChallenge(e, t, o) {
60
60
  this.log(`[${this.getType()}][doChallenge]`);
61
61
  const { destroy: a } = i({
62
62
  el: document.body,
@@ -65,7 +65,7 @@ class R extends l {
65
65
  threeDSServerTransID: this.threeDSServerTransID,
66
66
  acsTransID: t,
67
67
  formAction: e,
68
- authenticationValue: n
68
+ authenticationValue: o
69
69
  },
70
70
  on: {
71
71
  close: () => {
@@ -1,4 +1,4 @@
1
- import { MetricsGlobalThreeDsProvider as e } from "./MetricsGlobalThreeDsProvider-D8pmLCaF-9Zn9KMBT.js";
1
+ import { MetricsGlobalThreeDsProvider as e } from "./MetricsGlobalThreeDsProvider-B9rzZcOb-BDahPAuh.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-D8pmLCaF-9Zn9KMBT.js";
1
+ import { MetricsGlobalThreeDsProvider as e } from "./MetricsGlobalThreeDsProvider-B9rzZcOb-BDahPAuh.js";
2
2
  class s extends e {
3
3
  getType() {
4
4
  return "FlashBanc";
@@ -1,5 +1,5 @@
1
- import { DefaultThreeDsProvider as n } from "./DefaultThreeDsProvider-OrSUoygj-C1fnz8Dl.js";
2
- import { P as o, z as l, U as u, J as c, Y as p, N as h, E as i } from "./index-gsXnNX5E.js";
1
+ import { DefaultThreeDsProvider as n } from "./DefaultThreeDsProvider-DSJFbhYb-BR2-2Tpy.js";
2
+ import { y as o, Y as l, U as u, J as c, a as p, M as h, C as i } from "./index-0E3VS5Zq.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, a = (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 U extends n {
34
+ class T extends n {
35
35
  constructor() {
36
36
  super(...arguments), a(this, "onDoAuthSuccess", (e, t) => {
37
37
  const s = JSON.parse(t);
@@ -96,5 +96,5 @@ class U extends n {
96
96
  }
97
97
  }
98
98
  export {
99
- U as GPaymentsThreeDsProvider
99
+ T as GPaymentsThreeDsProvider
100
100
  };
@@ -1,23 +1,23 @@
1
- import { DefaultThreeDsProvider as C } from "./DefaultThreeDsProvider-OrSUoygj-C1fnz8Dl.js";
2
- import { c as P, b as d, P as S, z as w, U as E, i as A, I as b, q as f, u as T, R as L, Y as _, J as I, N as g, $ as N, C as x } from "./index-gsXnNX5E.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({
1
+ import { DefaultThreeDsProvider as C } from "./DefaultThreeDsProvider-DSJFbhYb-BR2-2Tpy.js";
2
+ import { o as P, b as d, y as S, Y as w, U as A, n as E, A as b, Z as f, d as T, f as L, a as _, J as x, M as g, $ as G, l as N } from "./index-0E3VS5Zq.js";
3
+ var $ = Object.defineProperty, I = (l, e, t) => e in l ? $(l, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : l[e] = t, m = (l, e, t) => I(l, typeof e != "symbol" ? e + "" : e, t);
4
+ const M = { class: "mask" }, H = { class: "wrapper" }, O = { class: "container" }, j = /* @__PURE__ */ A({
5
5
  __name: "MetricsGlobalThreeDsChallenge",
6
6
  emits: ["close", "submit"],
7
7
  setup(l, { emit: e }) {
8
- const t = e, o = A(!1);
9
- function a(h) {
8
+ const t = e, a = E(!1);
9
+ function o(h) {
10
10
  var r;
11
- ["3DS_CHALLENGE_SHOW", "3DS_CHALLENGE_CLOSE"].includes((r = h.data) == null ? void 0 : r.message) && (o.value = h.data.message === "3DS_CHALLENGE_SHOW");
11
+ ["3DS_CHALLENGE_SHOW", "3DS_CHALLENGE_CLOSE"].includes((r = h.data) == null ? void 0 : r.message) && (a.value = h.data.message === "3DS_CHALLENGE_SHOW");
12
12
  }
13
13
  return f(() => {
14
- window.addEventListener("message", a);
14
+ window.addEventListener("message", o);
15
15
  }), T(() => {
16
- window.removeEventListener("message", a);
17
- }), (h, r) => b((_(), I("div", H, [
18
- g("div", M, [
16
+ window.removeEventListener("message", o);
17
+ }), (h, r) => b((_(), x("div", M, [
18
+ g("div", H, [
19
19
  g("div", O, [
20
- N(x, {
20
+ G(N, {
21
21
  onClick: r[0] || (r[0] = (s) => t("close")),
22
22
  id: "3ds-challenge-close"
23
23
  }),
@@ -25,14 +25,14 @@ const H = { class: "mask" }, M = { class: "wrapper" }, O = { class: "container"
25
25
  ])
26
26
  ])
27
27
  ], 512)), [
28
- [L, o.value]
28
+ [L, a.value]
29
29
  ]);
30
30
  }
31
31
  }), k = /* @__PURE__ */ w(j, [["__scopeId", "data-v-8a0b6dcb"]]), { hideSpinner: u, showSpinner: F } = P(), p = 5;
32
- class q extends C {
33
- constructor(e, t, o) {
34
- var a;
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) || "");
32
+ class W extends C {
33
+ constructor(e, t, a) {
34
+ var o;
35
+ super(e, t, a), m(this, "gateway"), m(this, "threeDS"), m(this, "numAttempts", 0), this.initScript(((o = a.clientParameters) == null ? void 0 : o.PublicKey) || "");
36
36
  }
37
37
  getType() {
38
38
  return "MetricsGlobal";
@@ -50,9 +50,9 @@ class q extends C {
50
50
  this.numAttempts++, this.log(`[${this.getType()}]: 3DS not ready, retrying in 1s`), setTimeout(() => this.onPreAuth(), 1e3);
51
51
  return;
52
52
  }
53
- (e = this.threeDsProcessor) != null && e.getTokenId() ? (t = this.threeDsProcessor) == null || t.getCardDetails(this.threeDsProcessor.getProviderId(), this.threeDsProcessor.getTokenId(), (o) => {
54
- var a;
55
- (a = this.threeDsProcessor) == null || a.setPaymentInfo(o), this.startAuth();
53
+ (e = this.threeDsProcessor) != null && e.getTokenId() ? (t = this.threeDsProcessor) == null || t.getCardDetails(this.threeDsProcessor.getProviderId(), this.threeDsProcessor.getTokenId(), (a) => {
54
+ var o;
55
+ (o = this.threeDsProcessor) == null || o.setPaymentInfo(a), this.startAuth();
56
56
  }, () => {
57
57
  d(this.container, "Unable to get card information");
58
58
  }) : this.startAuth();
@@ -62,7 +62,7 @@ class q extends C {
62
62
  onPostAuth() {
63
63
  }
64
64
  startAuth() {
65
- var e, t, o, a, h;
65
+ var e, t, a, o, h;
66
66
  this.log(`[${this.getType()}]: startAuth`);
67
67
  const r = (e = this.threeDsProcessor) == null ? void 0 : e.getPaymentInfo();
68
68
  if (!r) {
@@ -70,12 +70,12 @@ class q extends C {
70
70
  return;
71
71
  }
72
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 = {
73
+ const s = (t = this.threeDsProcessor) == null ? void 0 : t.getAddressInfo(), D = r.expiryDate.length === 4 ? r.expiryDate[2] + r.expiryDate[3] : "", y = r.expiryDate.length === 4 ? r.expiryDate[0] + r.expiryDate[1] : "", v = {
74
74
  cardNumber: r.cardNumber,
75
75
  cardExpMonth: D,
76
- cardExpYear: parseInt(v) + 2e3,
77
- currency: (o = this.threeDsProcessor) == null ? void 0 : o.getCurrency(),
78
- amount: (a = this.threeDsProcessor) == null ? void 0 : a.getAmount(),
76
+ cardExpYear: parseInt(y) + 2e3,
77
+ currency: (a = this.threeDsProcessor) == null ? void 0 : a.getCurrency(),
78
+ amount: (o = this.threeDsProcessor) == null ? void 0 : o.getAmount(),
79
79
  email: (h = this.threeDsProcessor) == null ? void 0 : h.getEmail(),
80
80
  phone: s == null ? void 0 : s.phoneNumber,
81
81
  city: s == null ? void 0 : s.city,
@@ -85,7 +85,7 @@ class q extends C {
85
85
  firstName: s == null ? void 0 : s.firstName,
86
86
  lastName: s == null ? void 0 : s.lastName,
87
87
  postalCode: s == null ? void 0 : s.postalCode
88
- }, c = this.threeDS.createUI(y);
88
+ }, c = this.threeDS.createUI(v);
89
89
  c.start("#ThreeDsChallengeIFrame"), c.on("challenge", (i) => {
90
90
  this.log(`[${this.getType()}][onChallenge]`, i), u(), this.showChallenge();
91
91
  }), c.on("complete", (i) => {
@@ -109,8 +109,8 @@ class q extends C {
109
109
  }
110
110
  initGateway(e) {
111
111
  this.gateway = window.Gateway.create(e), this.threeDS = this.gateway.get3DSecure(), this.gateway.on("error", (t) => {
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 = p;
112
+ var a;
113
+ this.log(`[${this.getType()}]: gateway error`, t), (a = this.threeDsProcessor) == null || a.onError({ error: t.message }), this.threeDS = null, this.numAttempts = p;
114
114
  });
115
115
  }
116
116
  initChallenge() {
@@ -142,5 +142,5 @@ class q extends C {
142
142
  }
143
143
  }
144
144
  export {
145
- q as MetricsGlobalThreeDsProvider
145
+ W as MetricsGlobalThreeDsProvider
146
146
  };
@@ -1,4 +1,4 @@
1
- import { MetricsGlobalThreeDsProvider as e } from "./MetricsGlobalThreeDsProvider-D8pmLCaF-9Zn9KMBT.js";
1
+ import { MetricsGlobalThreeDsProvider as e } from "./MetricsGlobalThreeDsProvider-B9rzZcOb-BDahPAuh.js";
2
2
  class t extends e {
3
3
  getType() {
4
4
  return "NMI";
@@ -1,7 +1,7 @@
1
- import { b as d, P as p, z as m, U as g, c as h, q as D, J as S, Y as v, N as l } from "./index-gsXnNX5E.js";
2
- import { DefaultThreeDsProvider as y, THREE_DS_METHOD_INVOCATION_COMPLETE as P, THREE_DS_CHALLENGE_COMPLETE as T } from "./DefaultThreeDsProvider-OrSUoygj-C1fnz8Dl.js";
3
- var f = Object.defineProperty, N = (n, e, a) => e in n ? f(n, e, { enumerable: !0, configurable: !0, writable: !0, value: a }) : n[e] = a, c = (n, e, a) => N(n, typeof e != "symbol" ? e + "" : e, a);
4
- const I = { class: "mask" }, C = /* @__PURE__ */ g({
1
+ import { b as d, y as p, Y as m, U as g, o as h, Z as D, J as S, a as y, M as l } from "./index-0E3VS5Zq.js";
2
+ import { DefaultThreeDsProvider as v, THREE_DS_METHOD_INVOCATION_COMPLETE as P, THREE_DS_CHALLENGE_COMPLETE as T } from "./DefaultThreeDsProvider-DSJFbhYb-BR2-2Tpy.js";
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
+ const N = { class: "mask" }, C = /* @__PURE__ */ g({
5
5
  __name: "nuvei",
6
6
  props: {
7
7
  threeDSServerTransID: {},
@@ -71,14 +71,14 @@ const I = { class: "mask" }, C = /* @__PURE__ */ g({
71
71
  window.postMessage({ status: "3ds_challenge_complete", cres: r }, "*");
72
72
  });
73
73
  }
74
- return (t, r) => (v(), S("div", I, r[0] || (r[0] = [
74
+ return (t, r) => (y(), S("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: b } = h();
81
- class A extends y {
81
+ class A extends v {
82
82
  constructor() {
83
83
  super(...arguments), c(this, "_paResPayload", null), c(this, "onSuccess", (e, a) => {
84
84
  var s, o;
@@ -1,36 +1,36 @@
1
- import { DefaultThreeDsProvider as y } from "./DefaultThreeDsProvider-OrSUoygj-C1fnz8Dl.js";
2
- import { b as c, P as f, z as C, i as u, U as w, a as E, q as D, u as m, J as I, Y as L, N as g, _ as S } from "./index-gsXnNX5E.js";
3
- const h = u(!1);
1
+ import { DefaultThreeDsProvider as P } from "./DefaultThreeDsProvider-DSJFbhYb-BR2-2Tpy.js";
2
+ import { b as c, y as f, Y as C, n as h, U as w, c as E, Z as m, d as p, J as I, a as L, M as g, e as S } from "./index-0E3VS5Zq.js";
3
+ const u = h(!1);
4
4
  function k(r, ...e) {
5
- h.value && console.log(r, e);
5
+ u.value && console.log(r, e);
6
6
  }
7
- function p(r) {
7
+ function D(r) {
8
8
  var e, t;
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));
9
+ (e = r == null ? void 0 : r.data) != null && e.status && r.data.status === S && (u.value = !!((t = r == null ? void 0 : r.data) != null && t.debug));
10
10
  }
11
11
  function R() {
12
- return D(() => {
13
- window.addEventListener("message", p);
14
- }), m(() => {
15
- window.removeEventListener("message", p);
12
+ return m(() => {
13
+ window.addEventListener("message", D);
14
+ }), p(() => {
15
+ window.removeEventListener("message", D);
16
16
  }), {
17
- debug: h,
17
+ debug: u,
18
18
  logMessage: k
19
19
  };
20
20
  }
21
- const b = { class: "modal-mask" }, U = { class: "modal-wrapper" }, A = ["src"], _ = /* @__PURE__ */ w({
21
+ const b = { class: "modal-mask" }, U = { class: "modal-wrapper" }, A = ["src"], M = /* @__PURE__ */ w({
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 } = R(), a = r, s = e, o = u(a.url);
29
- u(null), E(() => a.url, (l) => {
28
+ const { logMessage: t } = R(), a = r, s = e, o = h(a.url);
29
+ h(null), E(() => a.url, (l) => {
30
30
  o.value = l;
31
- }), D(() => {
32
- window.addEventListener("message", n);
33
31
  }), m(() => {
32
+ window.addEventListener("message", n);
33
+ }), p(() => {
34
34
  window.removeEventListener("message", n);
35
35
  });
36
36
  function n(l) {
@@ -38,8 +38,8 @@ const b = { class: "modal-mask" }, U = { class: "modal-wrapper" }, A = ["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 v = d.split(".")[1], P = window.atob(v), T = JSON.parse(P);
42
- s("close", T);
41
+ const v = d.split(".")[1], T = window.atob(v), y = JSON.parse(T);
42
+ s("close", y);
43
43
  }
44
44
  return (l, i) => (L(), I("div", b, [
45
45
  g("div", U, [
@@ -50,8 +50,8 @@ const b = { class: "modal-mask" }, U = { class: "modal-wrapper" }, A = ["src"],
50
50
  ])
51
51
  ]));
52
52
  }
53
- }), x = /* @__PURE__ */ C(_, [["__scopeId", "data-v-6f042298"]]);
54
- class G extends y {
53
+ }), $ = /* @__PURE__ */ C(M, [["__scopeId", "data-v-6f042298"]]);
54
+ class G extends P {
55
55
  getType() {
56
56
  return "PayGLocal";
57
57
  }
@@ -83,7 +83,7 @@ class G extends y {
83
83
  }
84
84
  const { destroy: t } = f({
85
85
  el: document.body,
86
- component: x,
86
+ component: $,
87
87
  props: {
88
88
  url: e
89
89
  },
@@ -1,4 +1,4 @@
1
- import { L as b, x as v, k as g } from "./index-gsXnNX5E.js";
1
+ import { L as b, x as v, _ as g } from "./index-0E3VS5Zq.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-D8pmLCaF-9Zn9KMBT.js";
1
+ import { MetricsGlobalThreeDsProvider as e } from "./MetricsGlobalThreeDsProvider-B9rzZcOb-BDahPAuh.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-D8pmLCaF-9Zn9KMBT.js";
1
+ import { MetricsGlobalThreeDsProvider as e } from "./MetricsGlobalThreeDsProvider-B9rzZcOb-BDahPAuh.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-DUx0ZP9g-CZ0dDiUf.js";
1
+ import { CxPayThreeDsProvider as n } from "./CxPayThreeDsProvider-C3SVxMVV-CIcyQRzl.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-OrSUoygj-C1fnz8Dl.js";
1
+ import { DefaultThreeDsProvider as o } from "./DefaultThreeDsProvider-DSJFbhYb-BR2-2Tpy.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-C0n-kUpY-B7faJJZS.js";
1
+ import { EcentricThreeDsProvider as i } from "./EcentricThreeDsProvider-M7JlFNrQ-CfLmEg8r.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-BlzPLUQj-5xYvlDhH.js";
1
+ import { EpnaThreeDsProvider as n } from "./EpnaThreeDsProvider-BFvrkGJv-CmgaZQ8W.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-BZD1Bmox-CXii2Z5u.js";
1
+ import { FlashBancThreeDsProvider as a } from "./FlashBancThreeDsProvider-CqjYV8SM-D932Lamr.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-Dmc3T7m7-ClWUXsKr.js";
1
+ import { GPaymentsThreeDsProvider as a } from "./GPaymentsThreeDsProvider-BMCOtJAd-CNu_pC6q.js";
2
2
  function o(e, r, t) {
3
3
  return new a(e, r, t);
4
4
  }