@payfurl/client 4.7.1 → 4.8.1

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/sdk/{CxPayThreeDsProvider-eCTlBrYD.js → CxPayThreeDsProvider-BLfTGjPF.js} +1 -1
  2. package/dist/sdk/{DefaultThreeDsProvider-Dta0kf29.js → DefaultThreeDsProvider-ByqIuIMb.js} +43 -43
  3. package/dist/sdk/{EcentricThreeDsProvider-Bx0Ipc0t.js → EcentricThreeDsProvider-C0fijqNm.js} +27 -27
  4. package/dist/sdk/{EpnaThreeDsProvider-qbbN7SK3.js → EpnaThreeDsProvider-BKcMV0Ni.js} +1 -1
  5. package/dist/sdk/{FlashBancThreeDsProvider-D5LZCAx8.js → FlashBancThreeDsProvider-BL79DnxY.js} +1 -1
  6. package/dist/sdk/{GPaymentsThreeDsProvider-v1ox82Iy.js → GPaymentsThreeDsProvider-DK7o9MEd.js} +23 -22
  7. package/dist/sdk/{MetricsGlobalThreeDsProvider-BDZHRRG6.js → MetricsGlobalThreeDsProvider-DCFNNBAG.js} +7 -7
  8. package/dist/sdk/{NmiThreeDsProvider-Dz6A5VdR.js → NmiThreeDsProvider-CjG8JCAW.js} +1 -1
  9. package/dist/sdk/{NuveiThreeDsProvider-CH9IUzJW.js → NuveiThreeDsProvider-C511D4Vv.js} +3 -3
  10. package/dist/sdk/{PayGLocalThreeDsProvider-Dz2iXoDE.js → PayGLocalThreeDsProvider-Isk8RrpT.js} +39 -39
  11. package/dist/sdk/{PayWayAppleButton-CXgWk9kl.js → PayWayAppleButton-CP2C2UFi.js} +1 -1
  12. package/dist/sdk/{PayabliThreeDsProvider-CDk4BS0T.js → PayabliThreeDsProvider-D04tIaoI.js} +1 -1
  13. package/dist/sdk/{SkyBankThreeDsProvider-C8R_Q7ou.js → SkyBankThreeDsProvider-CI5tCFi6.js} +1 -1
  14. package/dist/sdk/{cxpay-BrqOPpzf.js → cxpay-CXd-gWgJ.js} +1 -1
  15. package/dist/sdk/{default-Bi8RN-hO.js → default-Bn_jZqbH.js} +1 -1
  16. package/dist/sdk/{ecentric-CYASmKGu.js → ecentric-BUuKlIAj.js} +1 -1
  17. package/dist/sdk/{epna-BY0CgKjV.js → epna-DquO2ajM.js} +1 -1
  18. package/dist/sdk/{flashbanc-BWyCZRpI.js → flashbanc-C4qF4wum.js} +1 -1
  19. package/dist/sdk/{fraudStatus.type-BjY0DMZw.js → fraudStatus.type-DP1mSUcP.js} +4100 -3734
  20. package/dist/sdk/{gpayments-gu98_ZwF.js → gpayments-B99Rhx-h.js} +1 -1
  21. package/dist/sdk/{metrics_global-DRsWHoQw.js → metrics_global-BhM_CqUq.js} +1 -1
  22. package/dist/sdk/{nmi-DnzpEagI.js → nmi-B31Ng1Zj.js} +1 -1
  23. package/dist/sdk/{nuvei-BfZYu92M.js → nuvei-C_wJxvcg.js} +1 -1
  24. package/dist/sdk/{payabli-Bzn4Zq2P.js → payabli-DEjkMyU_.js} +1 -1
  25. package/dist/sdk/payfurl.es.js +1 -1
  26. package/dist/sdk/payfurl.umd.js +17 -17
  27. package/dist/sdk/{payglocal-BDleNrJU.js → payglocal-DrWsvnYA.js} +1 -1
  28. package/dist/sdk/{payway_rest-icjjGspK.js → payway_rest-gds3Rn3R.js} +1 -1
  29. package/dist/sdk/{skybank-CSAsK1jU.js → skybank-Cr24BYBd.js} +1 -1
  30. package/dist/sdk/style.css +1 -1
  31. package/package.json +3 -2
@@ -1,4 +1,4 @@
1
- import { MetricsGlobalThreeDsProvider as e } from "./MetricsGlobalThreeDsProvider-BDZHRRG6.js";
1
+ import { MetricsGlobalThreeDsProvider as e } from "./MetricsGlobalThreeDsProvider-DCFNNBAG.js";
2
2
  class a extends e {
3
3
  getType() {
4
4
  return "CxPay";
@@ -1,8 +1,8 @@
1
1
  var d = Object.defineProperty;
2
2
  var S = (n, e, s) => e in n ? d(n, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : n[e] = s;
3
3
  var r = (n, e, s) => S(n, typeof e != "symbol" ? e + "" : e, s);
4
- import { d as p, o as g, r as m, c as T, a as f, b as D, e as I, C as y, u as C, _ as A, h as E, T as v, f as _ } from "./fraudStatus.type-BjY0DMZw.js";
5
- const R = { class: "mask" }, P = { class: "wrapper" }, U = { class: "container" }, $ = ["action"], b = ["value"], L = /* @__PURE__ */ p({
4
+ import { d as p, c as m, i as g, o as T, a as f, b as I, e as l, f as y, C as A, u as C, r as E, _ as v, T as _, h as R, j as P } from "./fraudStatus.type-DP1mSUcP.js";
5
+ const U = { class: "mask" }, $ = { class: "wrapper" }, b = { class: "container" }, L = ["action"], M = ["value"], k = /* @__PURE__ */ p({
6
6
  __name: "ThreeDsChallenge",
7
7
  props: {
8
8
  threeDSServerTransID: {},
@@ -11,43 +11,43 @@ const R = { class: "mask" }, P = { class: "wrapper" }, U = { class: "container"
11
11
  },
12
12
  emits: ["close", "submit"],
13
13
  setup(n, { emit: e }) {
14
- const s = n, t = e, o = m(null), a = JSON.stringify({
14
+ const s = n, t = e, o = m(() => g(s.formAction) ? s.formAction : ""), a = E(null), h = JSON.stringify({
15
15
  threeDSServerTransID: s.threeDSServerTransID,
16
16
  acsTransID: s.acsTransID,
17
17
  messageVersion: "2.2.0",
18
18
  messageType: "CReq",
19
19
  challengeWindowSize: "01"
20
- }), i = encodeURI(window.btoa(a).replace(/=*$/, ""));
21
- return g(() => {
20
+ }), u = encodeURI(window.btoa(h).replace(/=*$/, ""));
21
+ return T(() => {
22
22
  var c;
23
- (c = o.value) == null || c.submit();
24
- }), (c, h) => (f(), T("div", R, [
25
- D("div", P, [
26
- D("div", U, [
27
- I(y, {
28
- onClick: h[0] || (h[0] = (l) => t("close")),
23
+ o.value && ((c = a.value) == null || c.submit());
24
+ }), (c, i) => (f(), I("div", U, [
25
+ l("div", $, [
26
+ l("div", b, [
27
+ y(A, {
28
+ onClick: i[0] || (i[0] = (V) => t("close")),
29
29
  id: "3ds-challenge-close"
30
30
  }),
31
- h[1] || (h[1] = D("iframe", { name: "ThreeDsChallengeIFrame" }, null, -1)),
32
- D("form", {
33
- action: s.formAction,
31
+ i[1] || (i[1] = l("iframe", { name: "ThreeDsChallengeIFrame" }, null, -1)),
32
+ l("form", {
33
+ action: o.value,
34
34
  target: "ThreeDsChallengeIFrame",
35
35
  method: "post",
36
36
  ref_key: "form",
37
- ref: o
37
+ ref: a
38
38
  }, [
39
- D("input", {
39
+ l("input", {
40
40
  type: "hidden",
41
41
  name: "creq",
42
- value: C(i)
43
- }, null, 8, b)
44
- ], 8, $)
42
+ value: C(u)
43
+ }, null, 8, M)
44
+ ], 8, L)
45
45
  ])
46
46
  ])
47
47
  ]));
48
48
  }
49
- }), M = /* @__PURE__ */ A(L, [["__scopeId", "data-v-ac351494"]]);
50
- class k {
49
+ }), N = /* @__PURE__ */ v(k, [["__scopeId", "data-v-07081e85"]]);
50
+ class w {
51
51
  constructor() {
52
52
  r(this, "iframeId", "threeDsIframeMethod");
53
53
  r(this, "containerId", "payfurlContainerFormInvoker");
@@ -58,19 +58,19 @@ class k {
58
58
  this.iframe || (this.container = document.createElement("div"), this.container.id = this.containerId, document.body.appendChild(this.container), this.iframe = document.createElement("iframe"), this.iframe.name = this.iframeId, this.iframe.style.display = "none", this.container.appendChild(this.iframe));
59
59
  }
60
60
  invoke(e, s, t, o, a) {
61
- var c;
61
+ var u;
62
62
  this.createIFrame();
63
- const i = document.createElement("form");
64
- i.action = e, i.target = this.iframeId, i.method = "post", (c = this.container) == null || c.appendChild(i);
65
- for (let h in t) {
66
- const l = document.createElement("input");
67
- l.type = "hidden", l.name = h, l.value = t[h], i.appendChild(l);
63
+ const h = document.createElement("form");
64
+ h.action = e, h.target = this.iframeId, h.method = "post", (u = this.container) == null || u.appendChild(h);
65
+ for (let c in t) {
66
+ const i = document.createElement("input");
67
+ i.type = "hidden", i.name = c, i.value = t[c], h.appendChild(i);
68
68
  }
69
- i.submit();
69
+ h.submit();
70
70
  }
71
71
  }
72
- const { hideSpinner: u, showSpinner: N } = E(), w = "3ds_method_invocation_complete", O = "3ds_challenge_complete";
73
- class V {
72
+ const { hideSpinner: D, showSpinner: O } = P(), H = "3ds_method_invocation_complete", q = "3ds_challenge_complete";
73
+ class x {
74
74
  constructor(e, s, t) {
75
75
  r(this, "log");
76
76
  r(this, "container");
@@ -85,7 +85,7 @@ class V {
85
85
  r(this, "internalMessageHandler", this.messageHandler.bind(this));
86
86
  r(this, "onError", (e, s) => {
87
87
  var t, o;
88
- if (this.closeChallenge(), u(), e === 404) {
88
+ if (this.closeChallenge(), D(), e === 404) {
89
89
  (t = this.threeDsProcessor) == null || t.onError({ error: "This feature is only supported by ActiveServer v1.1.2+" });
90
90
  return;
91
91
  }
@@ -93,7 +93,7 @@ class V {
93
93
  });
94
94
  r(this, "onSuccess", (e, s) => {
95
95
  var o, a;
96
- this.closeChallenge(), u();
96
+ this.closeChallenge(), D();
97
97
  const t = JSON.parse(s);
98
98
  ["Y", "A"].includes(t.transStatus) ? (o = this.threeDsProcessor) == null || o.onSuccess(t) : (this.log(`[${this.getType()}]: 3D Secure failed`, t), (a = this.threeDsProcessor) == null || a.onError({ error: "3D Secure failed" }));
99
99
  });
@@ -160,7 +160,7 @@ class V {
160
160
  return "";
161
161
  }
162
162
  onPreAuth() {
163
- this.log(`[${this.getType()}][onPreAuth]`), this.threeDsProcessor && (N(), this.threeDsProcessor.onPreAuth(this.onInitAuthSuccess, this.onError), window.addEventListener("message", this.internalMessageHandler));
163
+ this.log(`[${this.getType()}][onPreAuth]`), this.threeDsProcessor && (O(), this.threeDsProcessor.onPreAuth(this.onInitAuthSuccess, this.onError), window.addEventListener("message", this.internalMessageHandler));
164
164
  }
165
165
  onAuth(e, s) {
166
166
  var t;
@@ -184,12 +184,12 @@ class V {
184
184
  }
185
185
  messageHandler(e) {
186
186
  var s, t;
187
- if (!(!((s = e == null ? void 0 : e.data) != null && s.status) || ((t = e == null ? void 0 : e.data) == null ? void 0 : t.status) === v)) {
188
- if (e.data.status === w) {
187
+ if (!(!((s = e == null ? void 0 : e.data) != null && s.status) || ((t = e == null ? void 0 : e.data) == null ? void 0 : t.status) === _)) {
188
+ if (e.data.status === H) {
189
189
  e.stopPropagation(), this.invocationComplete(e);
190
190
  return;
191
191
  }
192
- e.data.status === O && (e.stopPropagation(), this.challengeComplete(e));
192
+ e.data.status === q && (e.stopPropagation(), this.challengeComplete(e));
193
193
  }
194
194
  }
195
195
  invocationComplete(e) {
@@ -201,10 +201,10 @@ class V {
201
201
  this.log(`[${this.getType()}]: cresData`, s), ["Y", "A"].includes(s.transStatus) ? this.onPostAuth() : ["N", "U", "R"].includes(s.transStatus) && (this.log(`[${this.getType()}]: Failed 3DS Challenge`, e.data), this.onError(400, "Failed 3DS Challenge"));
202
202
  }
203
203
  doChallenge(e, s, t) {
204
- this.log(`[${this.getType()}][doChallenge]`), u();
205
- const { destroy: o } = _({
204
+ this.log(`[${this.getType()}][doChallenge]`), D();
205
+ const { destroy: o } = R({
206
206
  el: document.body,
207
- component: M,
207
+ component: N,
208
208
  props: {
209
209
  threeDSServerTransID: this.threeDSServerTransID,
210
210
  acsTransID: s,
@@ -231,13 +231,13 @@ class V {
231
231
  threeDSServerTransID: e,
232
232
  threeDSMethodNotificationURL: this.options.apiUrl + "/3ds/method_invocation"
233
233
  }, o = encodeURI(window.btoa(JSON.stringify(t)).replace(/=*$/, ""));
234
- new k().invoke(s, "POST", {
234
+ new w().invoke(s, "POST", {
235
235
  threeDSMethodData: o
236
236
  });
237
237
  }
238
238
  }
239
239
  export {
240
- V as DefaultThreeDsProvider,
241
- O as THREE_DS_CHALLENGE_COMPLETE,
242
- w as THREE_DS_METHOD_INVOCATION_COMPLETE
240
+ x as DefaultThreeDsProvider,
241
+ q as THREE_DS_CHALLENGE_COMPLETE,
242
+ H as THREE_DS_METHOD_INVOCATION_COMPLETE
243
243
  };
@@ -1,9 +1,9 @@
1
1
  var h = Object.defineProperty;
2
2
  var c = (s, t, e) => t in s ? h(s, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : s[t] = e;
3
3
  var l = (s, t, e) => c(s, typeof t != "symbol" ? t + "" : t, e);
4
- import { DefaultThreeDsProvider as d } from "./DefaultThreeDsProvider-Dta0kf29.js";
5
- import { d as p, o as u, r as D, c as m, a as g, b as a, e as f, C as S, u as T, _, f as y } from "./fraudStatus.type-BjY0DMZw.js";
6
- const C = { class: "mask" }, v = { class: "wrapper" }, P = { class: "container" }, I = ["action"], A = ["value"], V = /* @__PURE__ */ p({
4
+ import { DefaultThreeDsProvider as d } from "./DefaultThreeDsProvider-ByqIuIMb.js";
5
+ import { d as p, c as u, i as m, o as D, a as f, b as g, e as a, f as S, C as T, u as _, r as y, _ as C, h as v } from "./fraudStatus.type-DP1mSUcP.js";
6
+ const P = { class: "mask" }, I = { class: "wrapper" }, A = { class: "container" }, V = ["action"], E = ["value"], $ = /* @__PURE__ */ p({
7
7
  __name: "ecentric",
8
8
  props: {
9
9
  threeDSServerTransID: {},
@@ -12,36 +12,36 @@ const C = { class: "mask" }, v = { class: "wrapper" }, P = { class: "container"
12
12
  authenticationValue: {}
13
13
  },
14
14
  setup(s) {
15
- const t = s, e = D(null), n = t.authenticationValue;
16
- return u(() => {
17
- var r;
18
- (r = e.value) == null || r.submit();
19
- }), (r, o) => (g(), m("div", C, [
20
- a("div", v, [
21
- a("div", P, [
22
- f(S, {
23
- onClick: o[0] || (o[0] = (i) => r.emit("close"))
15
+ const t = s, e = u(() => m(t.formAction) ? t.formAction : ""), n = y(null), i = t.authenticationValue;
16
+ return D(() => {
17
+ var o;
18
+ e.value && ((o = n.value) == null || o.submit());
19
+ }), (o, r) => (f(), g("div", P, [
20
+ a("div", I, [
21
+ a("div", A, [
22
+ S(T, {
23
+ onClick: r[0] || (r[0] = (F) => o.emit("close"))
24
24
  }),
25
- o[1] || (o[1] = a("iframe", { name: "ThreeDsChallengeIFrame" }, null, -1)),
25
+ r[1] || (r[1] = a("iframe", { name: "ThreeDsChallengeIFrame" }, null, -1)),
26
26
  a("form", {
27
- action: t.formAction,
27
+ action: e.value,
28
28
  target: "ThreeDsChallengeIFrame",
29
29
  method: "post",
30
30
  ref_key: "form",
31
- ref: e
31
+ ref: n
32
32
  }, [
33
33
  a("input", {
34
34
  type: "hidden",
35
35
  name: "PaReq",
36
- value: T(n)
37
- }, null, 8, A)
38
- ], 8, I)
36
+ value: _(i)
37
+ }, null, 8, E)
38
+ ], 8, V)
39
39
  ])
40
40
  ])
41
41
  ]));
42
42
  }
43
- }), E = /* @__PURE__ */ _(V, [["__scopeId", "data-v-8d26953f"]]);
44
- class F extends d {
43
+ }), k = /* @__PURE__ */ C($, [["__scopeId", "data-v-d0f7984c"]]);
44
+ class B extends d {
45
45
  constructor() {
46
46
  super(...arguments);
47
47
  l(this, "paResPayload", "");
@@ -59,22 +59,22 @@ class F extends d {
59
59
  authenticationValue: this.paResPayload
60
60
  }, this.onSuccess, this.onError);
61
61
  }
62
- doChallenge(e, n, r) {
62
+ doChallenge(e, n, i) {
63
63
  this.log(`[${this.getType()}][doChallenge]`);
64
- const { destroy: o } = y({
64
+ const { destroy: o } = v({
65
65
  el: document.body,
66
- component: E,
66
+ component: k,
67
67
  props: {
68
68
  threeDSServerTransID: this.threeDSServerTransID,
69
69
  acsTransID: n,
70
70
  formAction: e,
71
- authenticationValue: r
71
+ authenticationValue: i
72
72
  },
73
73
  on: {
74
74
  close: () => {
75
- var i;
75
+ var r;
76
76
  o(), this.threeDSDestroy = () => {
77
- }, (i = this.threeDsProcessor) == null || i.onError({ error: "Challenge cancelled" });
77
+ }, (r = this.threeDsProcessor) == null || r.onError({ error: "Challenge cancelled" });
78
78
  }
79
79
  }
80
80
  });
@@ -85,5 +85,5 @@ class F extends d {
85
85
  }
86
86
  }
87
87
  export {
88
- F as EcentricThreeDsProvider
88
+ B as EcentricThreeDsProvider
89
89
  };
@@ -1,4 +1,4 @@
1
- import { MetricsGlobalThreeDsProvider as e } from "./MetricsGlobalThreeDsProvider-BDZHRRG6.js";
1
+ import { MetricsGlobalThreeDsProvider as e } from "./MetricsGlobalThreeDsProvider-DCFNNBAG.js";
2
2
  class a extends e {
3
3
  getType() {
4
4
  return "EPNA";
@@ -1,4 +1,4 @@
1
- import { MetricsGlobalThreeDsProvider as e } from "./MetricsGlobalThreeDsProvider-BDZHRRG6.js";
1
+ import { MetricsGlobalThreeDsProvider as e } from "./MetricsGlobalThreeDsProvider-DCFNNBAG.js";
2
2
  class t extends e {
3
3
  getType() {
4
4
  return "FlashBanc";
@@ -1,9 +1,9 @@
1
- var i = Object.defineProperty;
2
- var l = (o, r, e) => r in o ? i(o, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : o[r] = e;
3
- var n = (o, r, e) => l(o, typeof r != "symbol" ? r + "" : r, e);
4
- import { DefaultThreeDsProvider as c } from "./DefaultThreeDsProvider-Dta0kf29.js";
5
- import { d, c as u, a as p, b as h, n as a, _ as g, f as D } from "./fraudStatus.type-BjY0DMZw.js";
6
- const S = { class: "mask" }, m = { class: "wrapper" }, y = ["src"], f = /* @__PURE__ */ d({
1
+ var l = Object.defineProperty;
2
+ var c = (o, r, e) => r in o ? l(o, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : o[r] = e;
3
+ var n = (o, r, e) => c(o, typeof r != "symbol" ? r + "" : r, e);
4
+ import { DefaultThreeDsProvider as d } from "./DefaultThreeDsProvider-ByqIuIMb.js";
5
+ import { d as u, c as p, i, a as g, b as m, e as a, n as h, _ as D, h as S } from "./fraudStatus.type-DP1mSUcP.js";
6
+ const y = { class: "mask" }, f = { class: "wrapper" }, _ = ["src"], C = /* @__PURE__ */ u({
7
7
  __name: "GPayments",
8
8
  props: {
9
9
  url: {},
@@ -11,29 +11,29 @@ const S = { class: "mask" }, m = { class: "wrapper" }, y = ["src"], f = /* @__PU
11
11
  height: {}
12
12
  },
13
13
  setup(o) {
14
- const r = o;
15
- function e() {
14
+ const r = o, e = p(() => i(r.url) ? r.url : "");
15
+ function s() {
16
16
  return {
17
17
  width: `${r.width || 650}px`,
18
18
  height: `${r.height || 400}px`
19
19
  };
20
20
  }
21
- return (s, t) => (p(), u("div", S, [
22
- h("div", m, [
23
- h("div", {
21
+ return (t, U) => (g(), m("div", y, [
22
+ a("div", f, [
23
+ a("div", {
24
24
  class: "container",
25
- style: a([e(), { padding: "0", margin: "0" }])
25
+ style: h([s(), { padding: "0", margin: "0" }])
26
26
  }, [
27
- h("iframe", {
28
- src: r.url,
29
- style: a(e())
30
- }, null, 12, y)
27
+ a("iframe", {
28
+ src: e.value,
29
+ style: h(s())
30
+ }, null, 12, _)
31
31
  ], 4)
32
32
  ])
33
33
  ]));
34
34
  }
35
- }), _ = /* @__PURE__ */ g(f, [["__scopeId", "data-v-9b0ef3a8"]]);
36
- class v extends c {
35
+ }), T = /* @__PURE__ */ D(C, [["__scopeId", "data-v-cf5aa816"]]);
36
+ class $ extends d {
37
37
  constructor() {
38
38
  super(...arguments);
39
39
  n(this, "onDoAuthSuccess", (e, s) => {
@@ -73,9 +73,9 @@ class v extends c {
73
73
  }
74
74
  doChallenge(e) {
75
75
  this.log(`[${this.getType()}][doChallenge]`);
76
- const { destroy: s } = D({
76
+ const { destroy: s } = S({
77
77
  el: document.body,
78
- component: _,
78
+ component: T,
79
79
  props: {
80
80
  url: e,
81
81
  width: 390,
@@ -94,11 +94,12 @@ class v extends c {
94
94
  this.log(`[${this.getType()}]: 3Ds Challenge complete`, e.data), this.closeChallenge(), this.onPostAuth();
95
95
  }
96
96
  initFrame(e) {
97
- this.log(`[${this.getType()}][init3DSFrame]`, e);
97
+ if (this.log(`[${this.getType()}][init3DSFrame]`, e), !i(e))
98
+ return;
98
99
  const s = document.createElement("iframe");
99
100
  s.src = e, s.style.width = "1px", s.style.height = "1px", s.style.border = "0", document.body.appendChild(s);
100
101
  }
101
102
  }
102
103
  export {
103
- v as GPaymentsThreeDsProvider
104
+ $ as GPaymentsThreeDsProvider
104
105
  };
@@ -1,13 +1,13 @@
1
1
  var E = Object.defineProperty;
2
2
  var _ = (h, o, t) => o in h ? E(h, o, { enumerable: !0, configurable: !0, writable: !0, value: t }) : h[o] = t;
3
3
  var m = (h, o, t) => _(h, typeof o != "symbol" ? o + "" : o, t);
4
- import { DefaultThreeDsProvider as A } from "./DefaultThreeDsProvider-Dta0kf29.js";
5
- import { d as v, o as T, i as b, w as L, v as N, r as x, c as I, a as G, b as g, e as $, C as H, _ as M, h as k, s as p, f as F } from "./fraudStatus.type-BjY0DMZw.js";
4
+ import { DefaultThreeDsProvider as A } from "./DefaultThreeDsProvider-ByqIuIMb.js";
5
+ import { d as v, o as T, k as b, w as L, v as N, a as x, b as I, e as g, f as G, C as $, r as H, _ as M, s as p, h as k, j as F } from "./fraudStatus.type-DP1mSUcP.js";
6
6
  const O = { class: "mask" }, U = { class: "wrapper" }, j = { class: "container" }, B = /* @__PURE__ */ v({
7
7
  __name: "MetricsGlobalThreeDsChallenge",
8
8
  emits: ["close", "submit"],
9
9
  setup(h, { emit: o }) {
10
- const t = o, e = x(!1);
10
+ const t = o, e = H(!1);
11
11
  function s(r) {
12
12
  var i;
13
13
  ["3DS_CHALLENGE_SHOW", "3DS_CHALLENGE_CLOSE"].includes((i = r.data) == null ? void 0 : i.message) && (e.value = r.data.message === "3DS_CHALLENGE_SHOW");
@@ -16,10 +16,10 @@ const O = { class: "mask" }, U = { class: "wrapper" }, j = { class: "container"
16
16
  window.addEventListener("message", s);
17
17
  }), b(() => {
18
18
  window.removeEventListener("message", s);
19
- }), (r, i) => L((G(), I("div", O, [
19
+ }), (r, i) => L((x(), I("div", O, [
20
20
  g("div", U, [
21
21
  g("div", j, [
22
- $(H, {
22
+ G($, {
23
23
  onClick: i[0] || (i[0] = (D) => t("close")),
24
24
  id: "3ds-challenge-close"
25
25
  }),
@@ -30,7 +30,7 @@ const O = { class: "mask" }, U = { class: "wrapper" }, j = { class: "container"
30
30
  [N, e.value]
31
31
  ]);
32
32
  }
33
- }), W = /* @__PURE__ */ M(B, [["__scopeId", "data-v-8a0b6dcb"]]), { hideSpinner: c, showSpinner: R } = k(), u = 5;
33
+ }), W = /* @__PURE__ */ M(B, [["__scopeId", "data-v-8a0b6dcb"]]), { hideSpinner: c, showSpinner: R } = F(), u = 5;
34
34
  class q extends A {
35
35
  constructor(t, e, s) {
36
36
  var r;
@@ -120,7 +120,7 @@ class q extends A {
120
120
  });
121
121
  }
122
122
  initChallenge() {
123
- const { destroy: t } = F({
123
+ const { destroy: t } = k({
124
124
  el: document.body,
125
125
  component: W,
126
126
  on: {
@@ -1,4 +1,4 @@
1
- import { MetricsGlobalThreeDsProvider as e } from "./MetricsGlobalThreeDsProvider-BDZHRRG6.js";
1
+ import { MetricsGlobalThreeDsProvider as e } from "./MetricsGlobalThreeDsProvider-DCFNNBAG.js";
2
2
  class t extends e {
3
3
  getType() {
4
4
  return "NMI";
@@ -1,8 +1,8 @@
1
1
  var u = Object.defineProperty;
2
2
  var p = (n, o, t) => o in n ? u(n, o, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[o] = t;
3
3
  var h = (n, o, t) => p(n, typeof o != "symbol" ? o + "" : o, t);
4
- import { d as m, h as d, o as g, c as D, a as S, b as l, _ as f, s as y, f as P } from "./fraudStatus.type-BjY0DMZw.js";
5
- import { DefaultThreeDsProvider as T, THREE_DS_METHOD_INVOCATION_COMPLETE as N, THREE_DS_CHALLENGE_COMPLETE as I } from "./DefaultThreeDsProvider-Dta0kf29.js";
4
+ import { d as m, j as d, o as g, a as D, b as S, e as l, _ as f, s as y, h as P } from "./fraudStatus.type-DP1mSUcP.js";
5
+ import { DefaultThreeDsProvider as T, THREE_DS_METHOD_INVOCATION_COMPLETE as N, THREE_DS_CHALLENGE_COMPLETE as I } from "./DefaultThreeDsProvider-ByqIuIMb.js";
6
6
  const C = { class: "mask" }, _ = /* @__PURE__ */ m({
7
7
  __name: "nuvei",
8
8
  props: {
@@ -73,7 +73,7 @@ const C = { class: "mask" }, _ = /* @__PURE__ */ m({
73
73
  window.postMessage({ status: "3ds_challenge_complete", cres: a }, "*");
74
74
  });
75
75
  }
76
- return (s, a) => (S(), D("div", C, [...a[0] || (a[0] = [
76
+ return (s, a) => (D(), S("div", C, [...a[0] || (a[0] = [
77
77
  l("div", { class: "wrapper" }, [
78
78
  l("div", { class: "container" })
79
79
  ], -1)
@@ -1,57 +1,57 @@
1
- import { DefaultThreeDsProvider as C } from "./DefaultThreeDsProvider-Dta0kf29.js";
2
- import { o as m, i as p, r as D, I as y, d as _, j as w, c as E, a as I, b as g, _ as L, s as c, f as S } from "./fraudStatus.type-BjY0DMZw.js";
3
- const h = D(!1);
4
- function R(s, ...e) {
1
+ import { DefaultThreeDsProvider as y } from "./DefaultThreeDsProvider-ByqIuIMb.js";
2
+ import { o as p, k as D, I as _, r as f, d as w, c as E, i as I, l as L, a as S, b as k, e as u, _ as R, s as c, h as U } from "./fraudStatus.type-DP1mSUcP.js";
3
+ const h = f(!1);
4
+ function b(s, ...e) {
5
5
  h.value && console.log(s, e);
6
6
  }
7
- function u(s) {
7
+ function m(s) {
8
8
  var e, o;
9
- (e = s == null ? void 0 : s.data) != null && e.status && s.data.status === y && (h.value = !!((o = s == null ? void 0 : s.data) != null && o.debug));
9
+ (e = s == null ? void 0 : s.data) != null && e.status && s.data.status === _ && (h.value = !!((o = s == null ? void 0 : s.data) != null && o.debug));
10
10
  }
11
- function k() {
12
- return m(() => {
13
- window.addEventListener("message", u);
14
- }), p(() => {
15
- window.removeEventListener("message", u);
11
+ function A() {
12
+ return p(() => {
13
+ window.addEventListener("message", m);
14
+ }), D(() => {
15
+ window.removeEventListener("message", m);
16
16
  }), {
17
17
  debug: h,
18
- logMessage: R
18
+ logMessage: b
19
19
  };
20
20
  }
21
- const b = { class: "modal-mask" }, A = { class: "modal-wrapper" }, M = ["src"], U = /* @__PURE__ */ _({
21
+ const M = { class: "modal-mask" }, v = { class: "modal-wrapper" }, x = ["src"], G = /* @__PURE__ */ w({
22
22
  __name: "PayGLocalThreeDsChallenge",
23
23
  props: {
24
24
  url: {}
25
25
  },
26
26
  emits: ["close"],
27
27
  setup(s, { emit: e }) {
28
- const { logMessage: o } = k(), r = s, t = e, a = D(r.url);
29
- w(() => r.url, (i) => {
30
- a.value = i;
31
- }), m(() => {
32
- window.addEventListener("message", n);
28
+ const { logMessage: o } = A(), r = s, t = e, a = f(r.url), i = E(() => I(a.value) ? a.value : "");
29
+ L(() => r.url, (n) => {
30
+ a.value = n;
33
31
  }), p(() => {
34
- window.removeEventListener("message", n);
32
+ window.addEventListener("message", d);
33
+ }), D(() => {
34
+ window.removeEventListener("message", d);
35
35
  });
36
- function n(i) {
37
- var d;
38
- if (o("PayGLocalThreeDsChallenge: Message received", i.data), !((d = i == null ? void 0 : i.data) != null && d["payglocal-token"])) return;
39
- const l = i.data["payglocal-token"];
36
+ function d(n) {
37
+ var g;
38
+ if (o("PayGLocalThreeDsChallenge: Message received", n.data), !((g = n == null ? void 0 : n.data) != null && g["payglocal-token"])) return;
39
+ const l = n.data["payglocal-token"];
40
40
  o("Token received", l);
41
- const f = l.split(".")[1], P = window.atob(f), T = JSON.parse(P);
42
- t("close", T);
41
+ const P = l.split(".")[1], T = window.atob(P), C = JSON.parse(T);
42
+ t("close", C);
43
43
  }
44
- return (i, l) => (I(), E("div", b, [
45
- g("div", A, [
46
- g("iframe", {
47
- src: a.value,
44
+ return (n, l) => (S(), k("div", M, [
45
+ u("div", v, [
46
+ u("iframe", {
47
+ src: i.value,
48
48
  sandbox: "allow-same-origin allow-scripts allow-popups allow-forms"
49
- }, null, 8, M)
49
+ }, null, 8, x)
50
50
  ])
51
51
  ]));
52
52
  }
53
- }), x = /* @__PURE__ */ L(U, [["__scopeId", "data-v-6f042298"]]);
54
- class v extends C {
53
+ }), $ = /* @__PURE__ */ R(G, [["__scopeId", "data-v-0699f67d"]]);
54
+ class N extends y {
55
55
  getType() {
56
56
  return "PayGLocal";
57
57
  }
@@ -59,8 +59,8 @@ class v extends C {
59
59
  var e, o, r;
60
60
  if (this.log(`[${this.getType()}]: onPreAuth`), (e = this.threeDsProcessor) != null && e.getTokenId()) {
61
61
  (o = this.threeDsProcessor) == null || o.getCardDetails(this.threeDsProcessor.getProviderId(), this.threeDsProcessor.getTokenId(), (t, a) => {
62
- var n;
63
- this.log(`[${this.getType()}]: getCardDetails`, t, a), (n = this.threeDsProcessor) == null || n.setPaymentInfo(t), this.initChallenge(a.RedirectUrl);
62
+ var i;
63
+ this.log(`[${this.getType()}]: getCardDetails`, t, a), (i = this.threeDsProcessor) == null || i.setPaymentInfo(t), this.initChallenge(a.RedirectUrl);
64
64
  }, () => {
65
65
  c(this.container, "Unable to get card information");
66
66
  });
@@ -81,15 +81,15 @@ class v extends C {
81
81
  c(this.container, "3D Secure URL is missing");
82
82
  return;
83
83
  }
84
- const { destroy: o } = S({
84
+ const { destroy: o } = U({
85
85
  el: document.body,
86
- component: x,
86
+ component: $,
87
87
  props: {
88
88
  url: e
89
89
  },
90
90
  on: {
91
91
  close: (r) => {
92
- var t, a, n;
92
+ var t, a, i;
93
93
  if (this.closeChallenge(), this.log(`[${this.getType()}]: Challenge Results`, r), r.status === "AUTHORIZED") {
94
94
  (t = this.threeDsProcessor) == null || t.onSuccess({
95
95
  acsRenderingType: {},
@@ -115,7 +115,7 @@ class v extends C {
115
115
  (a = this.threeDsProcessor) == null || a.onError({ error: "Challenge cancelled" });
116
116
  return;
117
117
  }
118
- (n = this.threeDsProcessor) == null || n.onError({ error: "3D Secure failed" });
118
+ (i = this.threeDsProcessor) == null || i.onError({ error: "3D Secure failed" });
119
119
  }
120
120
  }
121
121
  });
@@ -123,5 +123,5 @@ class v extends C {
123
123
  }
124
124
  }
125
125
  export {
126
- v as PayGLocalThreeDsProvider
126
+ N as PayGLocalThreeDsProvider
127
127
  };
@@ -1,7 +1,7 @@
1
1
  var g = Object.defineProperty;
2
2
  var b = (o, t, i) => t in o ? g(o, t, { enumerable: !0, configurable: !0, writable: !0, value: i }) : o[t] = i;
3
3
  var e = (o, t, i) => b(o, typeof t != "symbol" ? t + "" : t, i);
4
- import { R as A, g as v, H as C } from "./fraudStatus.type-BjY0DMZw.js";
4
+ import { R as A, g as v, H as C } from "./fraudStatus.type-DP1mSUcP.js";
5
5
  const d = {
6
6
  CHECKOUT: "CHECKOUT",
7
7
  CHARGE: "CHARGE"
@@ -1,4 +1,4 @@
1
- import { MetricsGlobalThreeDsProvider as e } from "./MetricsGlobalThreeDsProvider-BDZHRRG6.js";
1
+ import { MetricsGlobalThreeDsProvider as e } from "./MetricsGlobalThreeDsProvider-DCFNNBAG.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-BDZHRRG6.js";
1
+ import { MetricsGlobalThreeDsProvider as e } from "./MetricsGlobalThreeDsProvider-DCFNNBAG.js";
2
2
  class a extends e {
3
3
  getType() {
4
4
  return "SkyBank";
@@ -1,4 +1,4 @@
1
- import { CxPayThreeDsProvider as t } from "./CxPayThreeDsProvider-eCTlBrYD.js";
1
+ import { CxPayThreeDsProvider as t } from "./CxPayThreeDsProvider-BLfTGjPF.js";
2
2
  function n(r, e, o) {
3
3
  return new t(r, e, o);
4
4
  }
@@ -1,4 +1,4 @@
1
- import { DefaultThreeDsProvider as f } from "./DefaultThreeDsProvider-Dta0kf29.js";
1
+ import { DefaultThreeDsProvider as f } from "./DefaultThreeDsProvider-ByqIuIMb.js";
2
2
  function u(e, r, t) {
3
3
  return new f(e, r, t);
4
4
  }