@payfurl/react-plugin 1.0.7 → 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 (34) hide show
  1. package/dist/{CxPayThreeDsProvider-DUx0ZP9g-Degsqn78.js → CxPayThreeDsProvider-C3SVxMVV-CIcyQRzl.js} +1 -1
  2. package/dist/{DefaultThreeDsProvider-OrSUoygj-DDT1hQi-.js → DefaultThreeDsProvider-DSJFbhYb-BR2-2Tpy.js} +17 -17
  3. package/dist/{EcentricThreeDsProvider-C0n-kUpY-BWP8kYWo.js → EcentricThreeDsProvider-M7JlFNrQ-CfLmEg8r.js} +17 -17
  4. package/dist/{EpnaThreeDsProvider-BlzPLUQj-DXLWm964.js → EpnaThreeDsProvider-BFvrkGJv-CmgaZQ8W.js} +1 -1
  5. package/dist/{FlashBancThreeDsProvider-BZD1Bmox-GnYUlI65.js → FlashBancThreeDsProvider-CqjYV8SM-D932Lamr.js} +1 -1
  6. package/dist/{GPaymentsThreeDsProvider-Dmc3T7m7-35lrMFpb.js → GPaymentsThreeDsProvider-BMCOtJAd-CNu_pC6q.js} +8 -8
  7. package/dist/{MetricsGlobalThreeDsProvider-D8pmLCaF-DEaemgZa.js → MetricsGlobalThreeDsProvider-B9rzZcOb-BDahPAuh.js} +31 -31
  8. package/dist/{NmiThreeDsProvider-D6MYO9TE-DHwB0bYd.js → NmiThreeDsProvider-C8Gf2tSm-CvbL47jU.js} +1 -1
  9. package/dist/{NuveiThreeDsProvider-B0_hr137-D1_gqEvl.js → NuveiThreeDsProvider-CjtjRIqU-Oq-yTie5.js} +44 -44
  10. package/dist/{PayGLocalThreeDsProvider-CcVtz_cC-BQ8_PCsN.js → PayGLocalThreeDsProvider-CkBdY3-6-DFZF8Idj.js} +22 -22
  11. package/dist/{PayWayAppleButton-DI0k_xsw-AVNktU-g.js → PayWayAppleButton-3Jcspw8r-D7c2ELHJ.js} +1 -1
  12. package/dist/{PayabliThreeDsProvider-BTuW5mNX-kyO_hsCR.js → PayabliThreeDsProvider-BYNvOB9r-0YMR6lF6.js} +1 -1
  13. package/dist/{SkyBankThreeDsProvider-CFsEdtDi-Dce6uOn9.js → SkyBankThreeDsProvider-D1loCi58-Dt14b0MK.js} +1 -1
  14. package/dist/{cxpay-CzXEk7uT-Btncowxp.js → cxpay-tBsH5Qq9-CuzlflKr.js} +1 -1
  15. package/dist/{default-CVlT2ZTw-CLMr4GWi.js → default-CU0qSz8c-G_XP7PEy.js} +1 -1
  16. package/dist/{ecentric-p4HkLdd1-DUXx49X_.js → ecentric-BoreYd7u-DGX96uHH.js} +1 -1
  17. package/dist/{epna-ugAK06qE-DXI-Rhx5.js → epna-S8i7BPJA-DEbaBDO8.js} +1 -1
  18. package/dist/{flashbanc-BD7QXswZ-mrOZli3W.js → flashbanc-BoYu0io2-DGjygXQV.js} +1 -1
  19. package/dist/{gpayments-BJ23p2Lx-BcpckQ_O.js → gpayments-BSnudVfM-D02tSdF6.js} +1 -1
  20. package/dist/{index-ClH0YevK.js → index-0E3VS5Zq.js} +5271 -5367
  21. package/dist/{metrics_global-Ce0HIVhq-BRn4NHF3.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-CyecXMCz.js → nuvei-rKAQzNmO-BInMw2Rr.js} +1 -1
  24. package/dist/{payabli-FwdYUjhG-BseeifP8.js → payabli-uJdaROjR-C5Q_HZA9.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-DX_7nogS-PD41uw-Y.js → payglocal-BtWr5bKE-CqLMZV2a.js} +1 -1
  28. package/dist/{payway_rest-BMXIpCn0-rvMOa3J_.js → payway_rest-YdocXQB2-BzVB60Gl.js} +1 -1
  29. package/dist/plugins/payfurl/react/src/components/PayfurlDropin.d.ts +1 -0
  30. package/dist/{skybank-JGD9tw1a-YWSy9RUx.js → skybank-B_BtMhk2-ZE-AEwAY.js} +1 -1
  31. package/dist/src/sdk/types/DropInOptions.type.d.ts +4 -0
  32. package/dist/src/sdk/types/UpiOptions.type.d.ts +3 -0
  33. package/package.json +2 -2
  34. package/dist/nmi-Ci4ItU_O-gLvtT0HD.js +0 -7
@@ -1,4 +1,4 @@
1
- import { MetricsGlobalThreeDsProvider as e } from "./MetricsGlobalThreeDsProvider-D8pmLCaF-DEaemgZa.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, q as v, Y as I, J as f, N as u, $ as y, C as A, O as C } from "./index-ClH0YevK.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",
@@ -16,13 +16,13 @@ const P = { class: "mask" }, U = { class: "wrapper" }, b = { class: "container"
16
16
  messageType: "CReq",
17
17
  challengeWindowSize: "01"
18
18
  }), r = encodeURI(window.btoa(i).replace(/=*$/, ""));
19
- return v(() => {
19
+ return I(() => {
20
20
  var t;
21
21
  (t = o.value) == null || t.submit();
22
- }), (t, h) => (I(), f("div", P, [
22
+ }), (t, h) => (C(), v("div", P, [
23
23
  u("div", U, [
24
24
  u("div", b, [
25
- y(A, {
25
+ f(y, {
26
26
  onClick: h[0] || (h[0] = (c) => a("close")),
27
27
  id: "3ds-challenge-close"
28
28
  }),
@@ -37,15 +37,15 @@ const P = { class: "mask" }, U = { class: "wrapper" }, b = { class: "container"
37
37
  u("input", {
38
38
  type: "hidden",
39
39
  name: "creq",
40
- value: C(r)
40
+ value: A(r)
41
41
  }, null, 8, M)
42
42
  ], 8, $)
43
43
  ])
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-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
- 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;
14
- return D(() => {
13
+ const e = r, t = u(null), o = e.authenticationValue;
14
+ return d(() => {
15
15
  var a;
16
16
  (a = t.value) == null || a.submit();
17
- }), (a, s) => (d(), p("div", P, [
18
- o("div", f, [
19
- o("div", C, [
17
+ }), (a, s) => (p(), D("div", P, [
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-DEaemgZa.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-DEaemgZa.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,6 +1,6 @@
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
- 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);
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
+ 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",
6
6
  props: {
@@ -16,7 +16,7 @@ const S = { class: "mask" }, D = { class: "wrapper" }, m = ["src"], y = /* @__PU
16
16
  height: `${e.height || 400}px`
17
17
  };
18
18
  }
19
- return (s, v) => (c(), p("div", S, [
19
+ return (s, v) => (p(), c("div", S, [
20
20
  h("div", D, [
21
21
  h("div", {
22
22
  class: "container",
@@ -31,9 +31,9 @@ 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 a {
34
+ class T extends n {
35
35
  constructor() {
36
- super(...arguments), n(this, "onDoAuthSuccess", (e, t) => {
36
+ super(...arguments), a(this, "onDoAuthSuccess", (e, t) => {
37
37
  const s = JSON.parse(t);
38
38
  if (this.log(`[${this.getType()}][onDoAuthSuccess]`, s), !s.transStatus) {
39
39
  this.onError(e, "No transStatus specified");
@@ -51,7 +51,7 @@ class U extends a {
51
51
  this.log(`[${this.getType()}][threeDsAuth], 3DS challenge not required, tranStatus: ${s.transStatus}`), this.onPostAuth();
52
52
  break;
53
53
  }
54
- }), n(this, "onInitAuthSuccess", (e, t) => {
54
+ }), a(this, "onInitAuthSuccess", (e, t) => {
55
55
  const s = JSON.parse(t);
56
56
  if (this.log(`[${this.getType()}][onInitAuthSuccess]`, s), !s.threeDSAuthURL) {
57
57
  this.onError(e, "No AuthUrl specified");
@@ -96,5 +96,5 @@ class U extends a {
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-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({
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
- return b(() => {
14
- window.addEventListener("message", a);
15
- }), f(() => {
16
- window.removeEventListener("message", a);
17
- }), (h, r) => T((_(), I("div", H, [
18
- g("div", M, [
13
+ return f(() => {
14
+ window.addEventListener("message", o);
15
+ }), T(() => {
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-DEaemgZa.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 { 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
- 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
- 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: {},
@@ -20,15 +20,15 @@ const I = { class: "mask" }, C = /* @__PURE__ */ g({
20
20
  country: {}
21
21
  },
22
22
  setup(n) {
23
- const { hideSpinner: e, showSpinner: r } = h(), s = n;
23
+ const { hideSpinner: e, showSpinner: a } = h(), s = n;
24
24
  D(() => {
25
- r();
25
+ a();
26
26
  const t = document.createElement("script");
27
27
  t.type = "text/javascript", t.src = "https://cdn.safecharge.com/safecharge_resources/v1/websdk/safecharge.js", t.onload = () => {
28
- const a = new MutationObserver(function() {
29
- document.getElementsByClassName("sfcModal-dialog")[0] && (e(), a.disconnect());
30
- }), i = { childList: !0 }, d = document.querySelector("body");
31
- a.observe(d, i), o();
28
+ const r = new MutationObserver(function() {
29
+ document.getElementsByClassName("sfcModal-dialog")[0] && (e(), r.disconnect());
30
+ }), i = { childList: !0 }, u = document.querySelector("body");
31
+ r.observe(u, i), o();
32
32
  }, document.head.appendChild(t);
33
33
  });
34
34
  function o() {
@@ -67,53 +67,53 @@ const I = { class: "mask" }, C = /* @__PURE__ */ g({
67
67
  email: s.email,
68
68
  country: s.country
69
69
  }
70
- }, function(a) {
71
- window.postMessage({ status: "3ds_challenge_complete", cres: a }, "*");
70
+ }, function(r) {
71
+ window.postMessage({ status: "3ds_challenge_complete", cres: r }, "*");
72
72
  });
73
73
  }
74
- return (t, a) => (S(), v("div", I, a[0] || (a[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
- super(...arguments), c(this, "_paResPayload", null), c(this, "onSuccess", (e, r) => {
83
+ super(...arguments), c(this, "_paResPayload", null), c(this, "onSuccess", (e, a) => {
84
84
  var s, o;
85
85
  this.closeChallenge(), b();
86
- const t = JSON.parse(r);
86
+ const t = JSON.parse(a);
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
- }), c(this, "onDoAuthSuccess", (e, r) => {
88
+ }), c(this, "onDoAuthSuccess", (e, a) => {
89
89
  var s, o, t;
90
- const a = JSON.parse(r);
91
- if (this.log(`[${this.getType()}][onDoAuthSuccess]`, a), !a.transStatus || !a.authenticationValue) {
90
+ const r = JSON.parse(a);
91
+ if (this.log(`[${this.getType()}][onDoAuthSuccess]`, r), !r.transStatus || !r.authenticationValue) {
92
92
  this.onError(e, "No transStatus specified");
93
93
  return;
94
94
  }
95
- switch (a.transStatus) {
95
+ switch (r.transStatus) {
96
96
  case "C":
97
- this.doNuveiChallenge(a.authenticationValue, (s = this.threeDsProcessor) == null ? void 0 : s.getAddressInfo(), (o = this.threeDsProcessor) == null ? void 0 : o.getPaymentInfo());
97
+ this.doNuveiChallenge(r.authenticationValue, (s = this.threeDsProcessor) == null ? void 0 : s.getAddressInfo(), (o = this.threeDsProcessor) == null ? void 0 : o.getPaymentInfo());
98
98
  break;
99
99
  default:
100
- this.log(`[${this.getType()}][threeDsAuth], 3DS challenge not required, tranStatus: ` + a.transStatus), (t = this.threeDsProcessor) == null || t.onSuccess({
101
- threeDSServerTransID: a.threeDSServerTransID,
100
+ this.log(`[${this.getType()}][threeDsAuth], 3DS challenge not required, tranStatus: ` + r.transStatus), (t = this.threeDsProcessor) == null || t.onSuccess({
101
+ threeDSServerTransID: r.threeDSServerTransID,
102
102
  threeDSRequestorTransID: "",
103
- acsRenderingType: a.acsRenderingType,
104
- acsTransID: a.acsTransID,
105
- authenticationType: a.authenticationType,
106
- authenticationValue: a.authenticationValue,
103
+ acsRenderingType: r.acsRenderingType,
104
+ acsTransID: r.acsTransID,
105
+ authenticationType: r.authenticationType,
106
+ authenticationValue: r.authenticationValue,
107
107
  challengeCancel: "",
108
- dsTransID: a.dsTransID,
109
- eci: a.eci,
108
+ dsTransID: r.dsTransID,
109
+ eci: r.eci,
110
110
  interactionCounter: "",
111
111
  messageCategory: "",
112
- messageExtension: a.messageExtension,
113
- messageType: a.messageType,
114
- messageVersion: a.messageVersion,
115
- transStatus: a.transStatus,
116
- transStatusReason: a.transStatusReason
112
+ messageExtension: r.messageExtension,
113
+ messageType: r.messageType,
114
+ messageVersion: r.messageVersion,
115
+ transStatus: r.transStatus,
116
+ transStatusReason: r.transStatusReason
117
117
  });
118
118
  break;
119
119
  }
@@ -123,12 +123,12 @@ class A extends y {
123
123
  return "Nuvei";
124
124
  }
125
125
  onPreAuth() {
126
- var e, r;
127
- this.log(`[${this.getType()}]: onPreAuth`), (e = this.threeDsProcessor) != null && e.getTokenId() ? (r = this.threeDsProcessor) == null || r.getCardDetails(this.threeDsProcessor.getProviderId(), this.threeDsProcessor.getTokenId(), (s) => {
126
+ var e, a;
127
+ this.log(`[${this.getType()}]: onPreAuth`), (e = this.threeDsProcessor) != null && e.getTokenId() ? (a = this.threeDsProcessor) == null || a.getCardDetails(this.threeDsProcessor.getProviderId(), this.threeDsProcessor.getTokenId(), (s) => {
128
128
  var o;
129
129
  (o = this.threeDsProcessor) == null || o.setPaymentInfo(s), super.onPreAuth();
130
130
  }, () => {
131
- u(this.container, "Unable to get card information");
131
+ d(this.container, "Unable to get card information");
132
132
  }) : super.onPreAuth();
133
133
  }
134
134
  onPostAuth() {
@@ -142,27 +142,27 @@ class A extends y {
142
142
  xid: this._paResPayload.xid
143
143
  }, this.onSuccess, this.onError);
144
144
  }
145
- doNuveiChallenge(e, r, s) {
145
+ doNuveiChallenge(e, a, s) {
146
146
  var o;
147
147
  const t = JSON.parse(e);
148
- (t === null || !t.merchantId || !t.merchantSiteId) && ((o = this.threeDsProcessor) == null || o.onError({ error: "3D Secure failed" })), r && (t.firstName = r.firstName, t.lastName = r.lastName, t.email = r.email, t.country = r.country), s && (t.cardNumber = s.cardNumber, t.cardHolderName = s.cardholder || "", t.expirationMonth = s.expiryDate.substring(2, 4), t.expirationYear = s.expiryDate.substring(0, 2), t.CVV = s.ccv);
149
- const { destroy: a } = p({
148
+ (t === null || !t.merchantId || !t.merchantSiteId) && ((o = this.threeDsProcessor) == null || o.onError({ error: "3D Secure failed" })), a && (t.firstName = a.firstName, t.lastName = a.lastName, t.email = a.email, t.country = a.country), s && (t.cardNumber = s.cardNumber, t.cardHolderName = s.cardholder || "", t.expirationMonth = s.expiryDate.substring(2, 4), t.expirationYear = s.expiryDate.substring(0, 2), t.CVV = s.ccv);
149
+ const { destroy: r } = p({
150
150
  el: document.body,
151
151
  component: _,
152
152
  props: t,
153
153
  on: {
154
154
  close: () => {
155
155
  var i;
156
- a(), this.threeDSDestroy = () => {
156
+ r(), this.threeDSDestroy = () => {
157
157
  }, (i = this.threeDsProcessor) == null || i.onError({ error: "Challenge cancelled" });
158
158
  }
159
159
  }
160
160
  });
161
- this.threeDSDestroy = a;
161
+ this.threeDSDestroy = r;
162
162
  }
163
163
  messageHandler(e) {
164
- var r, s, o;
165
- if ((r = e == null ? void 0 : e.data) != null && r.status) {
164
+ var a, s, o;
165
+ if ((a = e == null ? void 0 : e.data) != null && a.status) {
166
166
  if (e.data.status === P) {
167
167
  this.log(`[${this.getType()}][messageHandler] 3Ds Method invocation complete`), e.stopPropagation(), this.onAuth(!0, "");
168
168
  return;
@@ -1,36 +1,36 @@
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
- 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,10 +38,10 @@ 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
- return (l, i) => (I(), L("div", b, [
44
+ return (l, i) => (L(), I("div", b, [
45
45
  g("div", U, [
46
46
  g("iframe", {
47
47
  src: o.value,
@@ -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-ClH0YevK.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",