@everymatrix/cashier-page 1.60.2 → 1.61.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (57) hide show
  1. package/components/{CashierConfirmModal-CtWSrqbM.js → CashierConfirmModal-D-5CwHBA.js} +3 -3
  2. package/components/{CashierConfirmModal-B5fOc6GC.js → CashierConfirmModal-sI8AKckC.js} +2 -2
  3. package/components/{CashierError-B_WDWdBy.js → CashierError-CMvzpPvw.js} +460 -459
  4. package/components/{CashierError-DKmRdzzP.js → CashierError-DxG_sfiC.js} +460 -459
  5. package/components/{CashierError-DyS_YiEl.cjs → CashierError-yvWn4Rrm.cjs} +2 -2
  6. package/components/{CashierHeader-DNfsbUrX.cjs → CashierHeader-65_-6ha4.cjs} +1 -1
  7. package/components/{CashierHeader-BYhu34lk.js → CashierHeader-Bi1lAG0w.js} +13 -13
  8. package/components/{CashierHeader-Asx7Z6Sd.js → CashierHeader-CwLLWXNY.js} +13 -13
  9. package/components/{CashierIframeRedirect-DQnQKdQZ.js → CashierIframeRedirect-BaiG-Pfc.js} +4 -4
  10. package/components/{CashierIframeRedirect-Dws6z7yl.cjs → CashierIframeRedirect-DUw_YsXh.cjs} +1 -1
  11. package/components/{CashierIframeRedirect-CJ3bOCam.js → CashierIframeRedirect-TY4DGRu8.js} +10 -10
  12. package/components/{CashierMethodDetails-C4KZnq7Z.js → CashierMethodDetails-B-r9Ig3J.js} +636 -635
  13. package/components/{CashierMethodDetails-BeElaO--.js → CashierMethodDetails-B7a0xUnu.js} +641 -640
  14. package/components/CashierMethodDetails-DCSscnEO.cjs +18 -0
  15. package/components/{CashierMethodsList-zLr6fCmJ.js → CashierMethodsList-0NisHAHn.js} +3 -3
  16. package/components/{CashierMethodsList-DpPzmg4x.cjs → CashierMethodsList-CFWwntIr.cjs} +1 -1
  17. package/components/{CashierMethodsList-CNLfoP4Y.js → CashierMethodsList-D1A8PhkD.js} +3 -3
  18. package/components/{CashierModal-hk6t9ci2.js → CashierModal-6CTryAQJ.js} +7 -7
  19. package/components/{CashierModal-DV8aj-PX.js → CashierModal-BoglqxPv.js} +6 -6
  20. package/components/{CashierNotifications-B8jOQSBr.js → CashierNotifications-BFj3fQud.js} +3 -3
  21. package/components/{CashierNotifications-CTdH4xzH.js → CashierNotifications-GwlCZVnm.js} +3 -3
  22. package/components/{CashierPage-B06x-lb9.js → CashierPage-BZcZChsH.js} +151 -150
  23. package/components/{CashierPage-D4G3vkt8.js → CashierPage-BrqHVjEo.js} +151 -150
  24. package/components/CashierPage-Dj0zbO0E.cjs +1 -0
  25. package/components/{CashierReceiptPage-D2GV36R9.js → CashierReceiptPage-8Zj85gPN.js} +3 -3
  26. package/components/{CashierReceiptPage-Dqv_zMz0.cjs → CashierReceiptPage-D1pqLJ0U.cjs} +1 -1
  27. package/components/{CashierReceiptPage-KY86XyHm.js → CashierReceiptPage-s6fGCleK.js} +3 -3
  28. package/components/{CashierSessionExpirationModal-CPEtCCpq.cjs → CashierSessionExpirationModal-By_rsR04.cjs} +1 -1
  29. package/components/{CashierSessionExpirationModal-CKLp-VvL.js → CashierSessionExpirationModal-DdHcfR-h.js} +4 -4
  30. package/components/{CashierSessionExpirationModal-Dl5Uy319.js → CashierSessionExpirationModal-TGqUfe5V.js} +4 -4
  31. package/components/{CashierSpinner-Du921ZKt.js → CashierSpinner-DO1yLcR1.js} +6 -6
  32. package/components/{CashierSpinner-CKc6p313.js → CashierSpinner-bxbp3WK6.js} +6 -6
  33. package/components/{CashierTransactionHistory--aDULmWa.cjs → CashierTransactionHistory-CYbYlycE.cjs} +1 -1
  34. package/components/{CashierTransactionHistory-CelbYShe.js → CashierTransactionHistory-C_Svrrcp.js} +28 -28
  35. package/components/{CashierTransactionHistory-D62Jgr0H.js → CashierTransactionHistory-DYO3OXaR.js} +19 -19
  36. package/components/{CashierVerifications-Ba9QYZN-.cjs → CashierVerifications-CZwRcnKQ.cjs} +1 -1
  37. package/components/{CashierVerifications-DFZdvHv6.js → CashierVerifications-D0UNVx7t.js} +4 -4
  38. package/components/{CashierVerifications-BM7HesGT.js → CashierVerifications-DUvGJeeG.js} +4 -4
  39. package/components/{CashierVideoModal-BqP3xvYv.js → CashierVideoModal-BGKXfmt9.js} +5 -5
  40. package/components/{CashierVideoModal-L_vWBGkF.js → CashierVideoModal-CVEk7pqo.js} +5 -5
  41. package/es2015/cashier-page.cjs +1 -1
  42. package/es2015/cashier-page.js +1 -1
  43. package/esnext/cashier-page.js +1 -1
  44. package/package.json +1 -1
  45. package/stencil/app-globals-0f993ce5-D-kw1sls.js +5 -0
  46. package/stencil/app-globals-0f993ce5-sCt45RkC.cjs +1 -0
  47. package/stencil/index-b7bbd57e-BBUBsGhp.js +550 -0
  48. package/stencil/index-b7bbd57e-SuDXAV6_.cjs +1 -0
  49. package/stencil/index-b7bbd57e-wJC_uAuk.js +534 -0
  50. package/stencil/ui-image-38c3c15f-ByZECnci.js +39 -0
  51. package/stencil/ui-image-38c3c15f-D_V48h1L.js +39 -0
  52. package/stencil/ui-image-38c3c15f-VguNkCIq.cjs +1 -0
  53. package/stencil/ui-image-BNrzgSpe.js +11 -0
  54. package/stencil/ui-image-CLghOqUz.cjs +1 -0
  55. package/stencil/ui-image-CPH6BqjQ.js +29 -0
  56. package/components/CashierMethodDetails-B_yG_3OU.cjs +0 -18
  57. package/components/CashierPage-KycEkiPC.cjs +0 -1
@@ -1,7 +1,7 @@
1
- import { S as it, b as nt, s as at, f as E, c as lt, n as X, e as W, m as N, x as ot, w as rt, K as J, L as ct, g as K, k as dt, t as ft, l as ut, y as M, o as l, p as v, q as j, z as A, v as e, A as wt, W as ht, F as vt, X as mt, J as V, B as pt, N as _, D as gt } from "./CashierConfirmModal-B5fOc6GC.js";
2
- import { f as G } from "./CashierModal-hk6t9ci2.js";
3
- import { a as yt, $ as Tt, i as bt, b as _t } from "./CashierError-DKmRdzzP.js";
4
- import { d as xt } from "./CashierMethodDetails-C4KZnq7Z.js";
1
+ import { S as it, b as nt, s as at, f as B, c as lt, n as X, e as W, m as N, x as ot, w as rt, K as J, L as ct, g as K, k as dt, t as ft, l as ut, y as M, o as l, p as v, q as j, z as A, v as e, A as wt, W as ht, F as vt, X as mt, J as V, B as pt, N as _, E as gt } from "./CashierConfirmModal-sI8AKckC.js";
2
+ import { f as G } from "./CashierModal-6CTryAQJ.js";
3
+ import { a as yt, $ as Tt, i as bt, b as _t } from "./CashierError-DxG_sfiC.js";
4
+ import { d as xt } from "./CashierMethodDetails-B-r9Ig3J.js";
5
5
  bt({
6
6
  fallbackLocale: "en"
7
7
  });
@@ -83,10 +83,10 @@ function tt(a) {
83
83
  ), z, y, C, b = (
84
84
  /*$_*/
85
85
  a[5]("transactionDateTitle") + ""
86
- ), F, D, R, U = (
86
+ ), F, D, R, E = (
87
87
  /*$_*/
88
88
  a[5]("transactionTypeTitle") + ""
89
- ), B, Y, P, S = (
89
+ ), U, Y, P, S = (
90
90
  /*$_*/
91
91
  a[5]("transactionStatusTitle") + ""
92
92
  ), p, n, r, d = (
@@ -100,13 +100,13 @@ function tt(a) {
100
100
  h[w] = st($(a, O, w));
101
101
  return {
102
102
  c() {
103
- t = v("div"), d && d.c(), s = j(), i = v("h3"), c = A(o), f = j(), u = v("div"), g = v("div"), x = v("table"), k = v("thead"), m = v("tr"), H = v("td"), z = A(L), y = j(), C = v("td"), F = A(b), D = j(), R = v("td"), B = A(U), Y = j(), P = v("td"), p = A(S), n = j(), r = v("tbody");
103
+ t = v("div"), d && d.c(), s = j(), i = v("h3"), c = A(o), f = j(), u = v("div"), g = v("div"), x = v("table"), k = v("thead"), m = v("tr"), H = v("td"), z = A(L), y = j(), C = v("td"), F = A(b), D = j(), R = v("td"), U = A(E), Y = j(), P = v("td"), p = A(S), n = j(), r = v("tbody");
104
104
  for (let w = 0; w < h.length; w += 1)
105
105
  h[w].c();
106
106
  e(i, "class", "CashierTransactionHistoryTitle svelte-40f46w"), e(H, "class", "svelte-40f46w"), e(C, "class", "svelte-40f46w"), e(R, "class", "svelte-40f46w"), e(P, "class", "svelte-40f46w"), e(m, "class", "svelte-40f46w"), e(k, "class", "svelte-40f46w"), e(r, "class", "svelte-40f46w"), e(x, "class", "svelte-40f46w"), e(g, "class", "CashierTransactionHistoryContent svelte-40f46w"), e(u, "class", "CashierTransactionHistoryWrapper svelte-40f46w"), e(t, "class", "CashierTransactionHistory svelte-40f46w");
107
107
  },
108
108
  m(w, I) {
109
- N(w, t, I), d && d.m(t, null), l(t, s), l(t, i), l(i, c), l(t, f), l(t, u), l(u, g), l(g, x), l(x, k), l(k, m), l(m, H), l(H, z), l(m, y), l(m, C), l(C, F), l(m, D), l(m, R), l(R, B), l(m, Y), l(m, P), l(P, p), l(x, n), l(x, r);
109
+ N(w, t, I), d && d.m(t, null), l(t, s), l(t, i), l(i, c), l(t, f), l(t, u), l(u, g), l(g, x), l(x, k), l(k, m), l(m, H), l(H, z), l(m, y), l(m, C), l(C, F), l(m, D), l(m, R), l(R, U), l(m, Y), l(m, P), l(P, p), l(x, n), l(x, r);
110
110
  for (let T = 0; T < h.length; T += 1)
111
111
  h[T] && h[T].m(r, null);
112
112
  a[16](t);
@@ -123,8 +123,8 @@ function tt(a) {
123
123
  w[5]("transactionIdTitle") + "") && M(z, L), I & /*$_*/
124
124
  32 && b !== (b = /*$_*/
125
125
  w[5]("transactionDateTitle") + "") && M(F, b), I & /*$_*/
126
- 32 && U !== (U = /*$_*/
127
- w[5]("transactionTypeTitle") + "") && M(B, U), I & /*$_*/
126
+ 32 && E !== (E = /*$_*/
127
+ w[5]("transactionTypeTitle") + "") && M(U, E), I & /*$_*/
128
128
  32 && S !== (S = /*$_*/
129
129
  w[5]("transactionStatusTitle") + "") && M(p, S), I & /*$_, txnHistory, TransactionMainStatus, copied, copyToClipboard*/
130
130
  124) {
@@ -265,7 +265,7 @@ function st(a) {
265
265
  /*$_*/
266
266
  a[5](`transactionStatus.${/*transaction*/
267
267
  a[24].Status}`) + ""
268
- ), R, U, B, Y;
268
+ ), R, E, U, Y;
269
269
  function P(n, r) {
270
270
  if (
271
271
  /*transaction*/
@@ -301,7 +301,7 @@ function st(a) {
301
301
  let S = P(a), p = S && S(a);
302
302
  return {
303
303
  c() {
304
- t = v("tr"), s = v("td"), o = A(i), c = j(), f = v("td"), g = A(u), x = j(), k = v("td"), H = A(m), L = j(), z = v("td"), y = v("div"), C = v("span"), p && p.c(), b = j(), F = v("span"), R = A(D), U = j(), e(s, "class", "CashierTransactionId svelte-40f46w"), V(
304
+ t = v("tr"), s = v("td"), o = A(i), c = j(), f = v("td"), g = A(u), x = j(), k = v("td"), H = A(m), L = j(), z = v("td"), y = v("div"), C = v("span"), p && p.c(), b = j(), F = v("span"), R = A(D), E = j(), e(s, "class", "CashierTransactionId svelte-40f46w"), V(
305
305
  s,
306
306
  "copied",
307
307
  /*copied*/
@@ -309,12 +309,12 @@ function st(a) {
309
309
  ), e(f, "class", "svelte-40f46w"), e(k, "class", "svelte-40f46w"), e(C, "class", "CashierTransactionHistoryIcon svelte-40f46w"), e(F, "class", "CashierTransactionHistoryStatusText svelte-40f46w"), e(y, "class", "CashierTransactionHistoryStatus svelte-40f46w"), e(z, "class", "svelte-40f46w"), e(t, "class", "svelte-40f46w");
310
310
  },
311
311
  m(n, r) {
312
- N(n, t, r), l(t, s), l(s, o), l(t, c), l(t, f), l(f, g), l(t, x), l(t, k), l(k, H), l(t, L), l(t, z), l(z, y), l(y, C), p && p.m(C, null), l(y, b), l(y, F), l(F, R), l(t, U), B || (Y = pt(
312
+ N(n, t, r), l(t, s), l(s, o), l(t, c), l(t, f), l(f, g), l(t, x), l(t, k), l(k, H), l(t, L), l(t, z), l(z, y), l(y, C), p && p.m(C, null), l(y, b), l(y, F), l(F, R), l(t, E), U || (Y = pt(
313
313
  s,
314
314
  "mousedown",
315
315
  /*mousedown_handler*/
316
316
  a[15]
317
- ), B = !0);
317
+ ), U = !0);
318
318
  },
319
319
  p(n, r) {
320
320
  r & /*txnHistory*/
@@ -336,7 +336,7 @@ function st(a) {
336
336
  n[24].Status}`) + "") && M(R, D);
337
337
  },
338
338
  d(n) {
339
- n && W(t), p && p.d(), B = !1, Y();
339
+ n && W(t), p && p.d(), U = !1, Y();
340
340
  }
341
341
  };
342
342
  }
@@ -402,9 +402,9 @@ function Rt(a, t, s) {
402
402
  Object.keys(Z).forEach((n) => {
403
403
  Q(n, Z[n]);
404
404
  });
405
- const U = () => {
405
+ const E = () => {
406
406
  kt(f);
407
- }, B = () => {
407
+ }, U = () => {
408
408
  const n = new URL(`${o}/api/v1/mm/payment/gettransactionshistory`), r = new Headers();
409
409
  r.append("accept", "application/json"), r.append("Content-Type", "application/json"), r.append("X-SessionId", `${c}`);
410
410
  const d = new Date((/* @__PURE__ */ new Date()).setMonth((/* @__PURE__ */ new Date()).getMonth() - 3)).toISOString(), O = {
@@ -461,10 +461,10 @@ function Rt(a, t, s) {
461
461
  "endpoint" in n && s(7, o = n.endpoint), "session" in n && s(8, c = n.session), "lang" in n && s(9, f = n.lang), "customerid" in n && s(10, u = n.customerid), "clientstyling" in n && s(11, g = n.clientstyling), "clientstylingurl" in n && s(12, x = n.clientstylingurl), "translationurl" in n && s(13, k = n.translationurl), "tooltipduration" in n && s(0, m = n.tooltipduration), "txncount" in n && s(14, H = n.txncount);
462
462
  }, a.$$.update = () => {
463
463
  a.$$.dirty & /*lang*/
464
- 512 && f && U(), a.$$.dirty & /*clientstyling, customStylingContainer*/
464
+ 512 && f && E(), a.$$.dirty & /*clientstyling, customStylingContainer*/
465
465
  2050 && g && y && Ct(y, g), a.$$.dirty & /*clientstylingurl, customStylingContainer*/
466
466
  4098 && x && y && St(y, x), a.$$.dirty & /*endpoint, session, customerid, lang*/
467
- 1920 && o && c && u && f && B(), a.$$.dirty & /*translationurl*/
467
+ 1920 && o && c && u && f && U(), a.$$.dirty & /*translationurl*/
468
468
  8192 && k && R();
469
469
  }, [
470
470
  m,
@@ -512,55 +512,55 @@ class Pt extends it {
512
512
  return this.$$.ctx[7];
513
513
  }
514
514
  set endpoint(t) {
515
- this.$$set({ endpoint: t }), E();
515
+ this.$$set({ endpoint: t }), B();
516
516
  }
517
517
  get session() {
518
518
  return this.$$.ctx[8];
519
519
  }
520
520
  set session(t) {
521
- this.$$set({ session: t }), E();
521
+ this.$$set({ session: t }), B();
522
522
  }
523
523
  get lang() {
524
524
  return this.$$.ctx[9];
525
525
  }
526
526
  set lang(t) {
527
- this.$$set({ lang: t }), E();
527
+ this.$$set({ lang: t }), B();
528
528
  }
529
529
  get customerid() {
530
530
  return this.$$.ctx[10];
531
531
  }
532
532
  set customerid(t) {
533
- this.$$set({ customerid: t }), E();
533
+ this.$$set({ customerid: t }), B();
534
534
  }
535
535
  get clientstyling() {
536
536
  return this.$$.ctx[11];
537
537
  }
538
538
  set clientstyling(t) {
539
- this.$$set({ clientstyling: t }), E();
539
+ this.$$set({ clientstyling: t }), B();
540
540
  }
541
541
  get clientstylingurl() {
542
542
  return this.$$.ctx[12];
543
543
  }
544
544
  set clientstylingurl(t) {
545
- this.$$set({ clientstylingurl: t }), E();
545
+ this.$$set({ clientstylingurl: t }), B();
546
546
  }
547
547
  get translationurl() {
548
548
  return this.$$.ctx[13];
549
549
  }
550
550
  set translationurl(t) {
551
- this.$$set({ translationurl: t }), E();
551
+ this.$$set({ translationurl: t }), B();
552
552
  }
553
553
  get tooltipduration() {
554
554
  return this.$$.ctx[0];
555
555
  }
556
556
  set tooltipduration(t) {
557
- this.$$set({ tooltipduration: t }), E();
557
+ this.$$set({ tooltipduration: t }), B();
558
558
  }
559
559
  get txncount() {
560
560
  return this.$$.ctx[14];
561
561
  }
562
562
  set txncount(t) {
563
- this.$$set({ txncount: t }), E();
563
+ this.$$set({ txncount: t }), B();
564
564
  }
565
565
  }
566
566
  gt(Pt, { endpoint: {}, session: {}, lang: {}, customerid: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, tooltipduration: {}, txncount: {} }, [], [], !0);
@@ -1,7 +1,7 @@
1
- import { S as it, b as nt, s as at, f as W, c as lt, n as X, e as B, l as N, w as ot, v as rt, K as J, L as ct, g as K, C as dt, t as ft, k as ut, x as M, m as l, o as v, p as j, y as A, q as e, z as wt, W as ht, F as vt, X as mt, J as V, A as pt, N as _, D as gt } from "./CashierConfirmModal-CtWSrqbM.js";
2
- import { f as G } from "./CashierModal-DV8aj-PX.js";
3
- import { a as yt, $ as Tt, i as bt, b as _t } from "./CashierError-B_WDWdBy.js";
4
- import { d as xt } from "./CashierMethodDetails-BeElaO--.js";
1
+ import { S as it, b as nt, s as at, f as W, c as lt, n as X, e as B, l as N, w as ot, v as rt, K as J, L as ct, g as K, D as dt, t as ft, k as ut, x as M, m as l, o as v, p as j, y as A, q as e, z as wt, W as ht, F as vt, X as mt, J as V, A as pt, N as _, E as gt } from "./CashierConfirmModal-D-5CwHBA.js";
2
+ import { f as G } from "./CashierModal-BoglqxPv.js";
3
+ import { a as yt, $ as Tt, i as bt, b as _t } from "./CashierError-CMvzpPvw.js";
4
+ import { d as xt } from "./CashierMethodDetails-B7a0xUnu.js";
5
5
  bt({
6
6
  fallbackLocale: "en"
7
7
  });
@@ -83,10 +83,10 @@ function tt(a) {
83
83
  ), z, y, C, b = (
84
84
  /*$_*/
85
85
  a[5]("transactionDateTitle") + ""
86
- ), F, D, R, U = (
86
+ ), F, D, R, E = (
87
87
  /*$_*/
88
88
  a[5]("transactionTypeTitle") + ""
89
- ), E, Y, P, S = (
89
+ ), U, Y, P, S = (
90
90
  /*$_*/
91
91
  a[5]("transactionStatusTitle") + ""
92
92
  ), p, n, r, d = (
@@ -100,13 +100,13 @@ function tt(a) {
100
100
  h[w] = st($(a, O, w));
101
101
  return {
102
102
  c() {
103
- t = v("div"), d && d.c(), s = j(), i = v("h3"), c = A(o), f = j(), u = v("div"), g = v("div"), x = v("table"), k = v("thead"), m = v("tr"), H = v("td"), z = A(L), y = j(), C = v("td"), F = A(b), D = j(), R = v("td"), E = A(U), Y = j(), P = v("td"), p = A(S), n = j(), r = v("tbody");
103
+ t = v("div"), d && d.c(), s = j(), i = v("h3"), c = A(o), f = j(), u = v("div"), g = v("div"), x = v("table"), k = v("thead"), m = v("tr"), H = v("td"), z = A(L), y = j(), C = v("td"), F = A(b), D = j(), R = v("td"), U = A(E), Y = j(), P = v("td"), p = A(S), n = j(), r = v("tbody");
104
104
  for (let w = 0; w < h.length; w += 1)
105
105
  h[w].c();
106
106
  e(i, "class", "CashierTransactionHistoryTitle svelte-40f46w"), e(H, "class", "svelte-40f46w"), e(C, "class", "svelte-40f46w"), e(R, "class", "svelte-40f46w"), e(P, "class", "svelte-40f46w"), e(m, "class", "svelte-40f46w"), e(k, "class", "svelte-40f46w"), e(r, "class", "svelte-40f46w"), e(x, "class", "svelte-40f46w"), e(g, "class", "CashierTransactionHistoryContent svelte-40f46w"), e(u, "class", "CashierTransactionHistoryWrapper svelte-40f46w"), e(t, "class", "CashierTransactionHistory svelte-40f46w");
107
107
  },
108
108
  m(w, I) {
109
- N(w, t, I), d && d.m(t, null), l(t, s), l(t, i), l(i, c), l(t, f), l(t, u), l(u, g), l(g, x), l(x, k), l(k, m), l(m, H), l(H, z), l(m, y), l(m, C), l(C, F), l(m, D), l(m, R), l(R, E), l(m, Y), l(m, P), l(P, p), l(x, n), l(x, r);
109
+ N(w, t, I), d && d.m(t, null), l(t, s), l(t, i), l(i, c), l(t, f), l(t, u), l(u, g), l(g, x), l(x, k), l(k, m), l(m, H), l(H, z), l(m, y), l(m, C), l(C, F), l(m, D), l(m, R), l(R, U), l(m, Y), l(m, P), l(P, p), l(x, n), l(x, r);
110
110
  for (let T = 0; T < h.length; T += 1)
111
111
  h[T] && h[T].m(r, null);
112
112
  a[16](t);
@@ -123,8 +123,8 @@ function tt(a) {
123
123
  w[5]("transactionIdTitle") + "") && M(z, L), I & /*$_*/
124
124
  32 && b !== (b = /*$_*/
125
125
  w[5]("transactionDateTitle") + "") && M(F, b), I & /*$_*/
126
- 32 && U !== (U = /*$_*/
127
- w[5]("transactionTypeTitle") + "") && M(E, U), I & /*$_*/
126
+ 32 && E !== (E = /*$_*/
127
+ w[5]("transactionTypeTitle") + "") && M(U, E), I & /*$_*/
128
128
  32 && S !== (S = /*$_*/
129
129
  w[5]("transactionStatusTitle") + "") && M(p, S), I & /*$_, txnHistory, TransactionMainStatus, copied, copyToClipboard*/
130
130
  124) {
@@ -265,7 +265,7 @@ function st(a) {
265
265
  /*$_*/
266
266
  a[5](`transactionStatus.${/*transaction*/
267
267
  a[24].Status}`) + ""
268
- ), R, U, E, Y;
268
+ ), R, E, U, Y;
269
269
  function P(n, r) {
270
270
  if (
271
271
  /*transaction*/
@@ -301,7 +301,7 @@ function st(a) {
301
301
  let S = P(a), p = S && S(a);
302
302
  return {
303
303
  c() {
304
- t = v("tr"), s = v("td"), o = A(i), c = j(), f = v("td"), g = A(u), x = j(), k = v("td"), H = A(m), L = j(), z = v("td"), y = v("div"), C = v("span"), p && p.c(), b = j(), F = v("span"), R = A(D), U = j(), e(s, "class", "CashierTransactionId svelte-40f46w"), V(
304
+ t = v("tr"), s = v("td"), o = A(i), c = j(), f = v("td"), g = A(u), x = j(), k = v("td"), H = A(m), L = j(), z = v("td"), y = v("div"), C = v("span"), p && p.c(), b = j(), F = v("span"), R = A(D), E = j(), e(s, "class", "CashierTransactionId svelte-40f46w"), V(
305
305
  s,
306
306
  "copied",
307
307
  /*copied*/
@@ -309,12 +309,12 @@ function st(a) {
309
309
  ), e(f, "class", "svelte-40f46w"), e(k, "class", "svelte-40f46w"), e(C, "class", "CashierTransactionHistoryIcon svelte-40f46w"), e(F, "class", "CashierTransactionHistoryStatusText svelte-40f46w"), e(y, "class", "CashierTransactionHistoryStatus svelte-40f46w"), e(z, "class", "svelte-40f46w"), e(t, "class", "svelte-40f46w");
310
310
  },
311
311
  m(n, r) {
312
- N(n, t, r), l(t, s), l(s, o), l(t, c), l(t, f), l(f, g), l(t, x), l(t, k), l(k, H), l(t, L), l(t, z), l(z, y), l(y, C), p && p.m(C, null), l(y, b), l(y, F), l(F, R), l(t, U), E || (Y = pt(
312
+ N(n, t, r), l(t, s), l(s, o), l(t, c), l(t, f), l(f, g), l(t, x), l(t, k), l(k, H), l(t, L), l(t, z), l(z, y), l(y, C), p && p.m(C, null), l(y, b), l(y, F), l(F, R), l(t, E), U || (Y = pt(
313
313
  s,
314
314
  "mousedown",
315
315
  /*mousedown_handler*/
316
316
  a[15]
317
- ), E = !0);
317
+ ), U = !0);
318
318
  },
319
319
  p(n, r) {
320
320
  r & /*txnHistory*/
@@ -336,7 +336,7 @@ function st(a) {
336
336
  n[24].Status}`) + "") && M(R, D);
337
337
  },
338
338
  d(n) {
339
- n && B(t), p && p.d(), E = !1, Y();
339
+ n && B(t), p && p.d(), U = !1, Y();
340
340
  }
341
341
  };
342
342
  }
@@ -402,9 +402,9 @@ function Rt(a, t, s) {
402
402
  Object.keys(Z).forEach((n) => {
403
403
  Q(n, Z[n]);
404
404
  });
405
- const U = () => {
405
+ const E = () => {
406
406
  kt(f);
407
- }, E = () => {
407
+ }, U = () => {
408
408
  const n = new URL(`${o}/api/v1/mm/payment/gettransactionshistory`), r = new Headers();
409
409
  r.append("accept", "application/json"), r.append("Content-Type", "application/json"), r.append("X-SessionId", `${c}`);
410
410
  const d = new Date((/* @__PURE__ */ new Date()).setMonth((/* @__PURE__ */ new Date()).getMonth() - 3)).toISOString(), O = {
@@ -461,10 +461,10 @@ function Rt(a, t, s) {
461
461
  "endpoint" in n && s(7, o = n.endpoint), "session" in n && s(8, c = n.session), "lang" in n && s(9, f = n.lang), "customerid" in n && s(10, u = n.customerid), "clientstyling" in n && s(11, g = n.clientstyling), "clientstylingurl" in n && s(12, x = n.clientstylingurl), "translationurl" in n && s(13, k = n.translationurl), "tooltipduration" in n && s(0, m = n.tooltipduration), "txncount" in n && s(14, H = n.txncount);
462
462
  }, a.$$.update = () => {
463
463
  a.$$.dirty & /*lang*/
464
- 512 && f && U(), a.$$.dirty & /*clientstyling, customStylingContainer*/
464
+ 512 && f && E(), a.$$.dirty & /*clientstyling, customStylingContainer*/
465
465
  2050 && g && y && Ct(y, g), a.$$.dirty & /*clientstylingurl, customStylingContainer*/
466
466
  4098 && x && y && St(y, x), a.$$.dirty & /*endpoint, session, customerid, lang*/
467
- 1920 && o && c && u && f && E(), a.$$.dirty & /*translationurl*/
467
+ 1920 && o && c && u && f && U(), a.$$.dirty & /*translationurl*/
468
468
  8192 && k && R();
469
469
  }, [
470
470
  m,
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./CashierConfirmModal-BVT51ZOp.cjs"),S=require("./CashierError-DyS_YiEl.cjs"),I=require("./CashierMethodDetails-B_yG_3OU.cjs");function U(r,t){S.addMessages(r,t)}function ge(r){S.init({fallbackLocale:"en"}),S.$locale.set(r)}const R={en:{"verification.video.how-to":"How to verify yourself","verification.idenfy.referred-awaiting":"ID verification is in progress. We will inform you as soon as verification is completed and you can withdraw money back","verification.message.failed":"We apologize, but we were unable to verify your account. Please contact support team","verification.idenfy.link-name":"link","verification.idenfy.in-progress":"To withdraw funds to your account you are required to pass user verification. Please have your ID ready and follow the {link} to start verification","verification.shuftipro.in-progress.Biometric":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification.","verification.shuftipro.in-progress.Biometric.Documents":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification and {Documents} verification.","verification.shuftipro.in-progress.Biometric.Documents.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification, {Documents} verification and {ProofOfAddress} verification.","verification.shuftipro.in-progress.Biometric.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification and {ProofOfAddress} verification.","verification.shuftipro.in-progress.Documents":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Documents} verification.","verification.shuftipro.in-progress.Documents.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Documents} verification and {ProofOfAddress} verification.","verification.shuftipro.in-progress.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {ProofOfAddress} verification.","verification.shuftipro.link-name.Biometric":"Biometric","verification.shuftipro.link-name.Documents":"Documents","verification.shuftipro.link-name.ProofOfAddress":"Proof Of Address","verification.shuftipro.validations-started":"After completing verification, please proceed with the transaction"},tr:{"verification.video.how-to":"Kimlik doğrulama nasıl yapılır","verification.idenfy.referred-awaiting":"Kimlik doğrulaması işlemde. Doğrulama tamamlandığında size haber vereceğiz","verification.message.failed":"Döküman doğrulama başarısız, hesabınız doğrulanamadı","verification.idenfy.link-name":"link","verification.idenfy.in-progress":"Hesabınızdan çekim yapabilmek için kullanıcı doğrulaması gerekiyor. Lütfen kimliğinizi hazır edin ve {link} adresinden doğrulamayı başlatın","verification.shuftipro.in-progress.Biometric":"İşlemi gerçekleştirmek için kullanıcı doğrulamasını geçmeniz gerekmektedir. Doğrulamayı başlatmak için Lütfen linke tıklayın {Biometric}","verification.shuftipro.in-progress.Biometric.Documents":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification and {Documents} verification.","verification.shuftipro.in-progress.Biometric.Documents.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification, {Documents} verification and {ProofOfAddress} verification.","verification.shuftipro.in-progress.Biometric.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification and {ProofOfAddress} verification.","verification.shuftipro.in-progress.Documents":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Documents} verification.","verification.shuftipro.in-progress.Documents.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Documents} verification and {ProofOfAddress} verification.","verification.shuftipro.in-progress.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {ProofOfAddress} verification.","verification.shuftipro.link-name.Biometric":"Doğrulama Yap","verification.shuftipro.link-name.Documents":"Documents","verification.shuftipro.link-name.ProofOfAddress":"Proof Of Address","verification.shuftipro.validations-started":"Lütfen Doğrulamayı tamamladıktan sonra işleme devam ediniz"},hr:{"verification.video.how-to":"How to verify yourself","verification.idenfy.referred-awaiting":"ID verification is in progress. We will inform you as soon as verification is completed and you can withdraw money back","verification.message.failed":"We apologize, but we were unable to verify your account. Please contact support team","verification.idenfy.link-name":"link","verification.idenfy.in-progress":"To withdraw funds to your account you are required to pass user verification. Please have your ID ready and follow the {link} to start verification","verification.shuftipro.in-progress.Biometric":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification.","verification.shuftipro.in-progress.Biometric.Documents":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification and {Documents} verification.","verification.shuftipro.in-progress.Biometric.Documents.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification, {Documents} verification and {ProofOfAddress} verification.","verification.shuftipro.in-progress.Biometric.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification and {ProofOfAddress} verification.","verification.shuftipro.in-progress.Documents":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Documents} verification.","verification.shuftipro.in-progress.Documents.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Documents} verification and {ProofOfAddress} verification.","verification.shuftipro.in-progress.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {ProofOfAddress} verification.","verification.shuftipro.link-name.Biometric":"Biometric","verification.shuftipro.link-name.Documents":"Documents","verification.shuftipro.link-name.ProofOfAddress":"Proof Of Address","verification.shuftipro.validations-started":"After completing verification, please proceed with the transaction"}};if(typeof window!="undefined"){let r=function(t){return function(...o){try{return t.apply(this,o)}catch(s){if(s instanceof DOMException&&s.message.includes("has already been used with this registry")||s.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw s}}};customElements.define=r(customElements.define),Promise.resolve().then(()=>require("./CashierVideoModal-CjR0Fzuu.cjs")).then(({default:t})=>{!customElements.get("cashier-video-modal")&&customElements.define("cashier-video-modal",t.element)})}function ve(r){i.append_styles(r,"svelte-1emynn4","*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;-webkit-tap-highlight-color:transparent}.CashierVerifications{box-shadow:0 0 4px var(--mmw--color-black-transparency-10, rgba(0, 0, 0, 0.1))}.CashierVerifications.CashierVerificationsDesktop{border-radius:var(--mmw--border-radius-medium-plus, 6px);overflow:hidden}.CashierVerifications.CashierVerificationsDesktop:has(.CashierVerificationMessage){margin-bottom:var(--emw--spacing-small, 12px)}.CashierVerificationsWrapper{display:flex;flex-direction:column;width:100%}.IconVerification{width:30px;display:flex}.CashierVerificationMessage{display:flex;align-items:center;box-sizing:border-box;background:var(--emw--color-gray-50, #F7F8FA);border-bottom:1px solid var(--mmw--color-grey-105, #E8E9EB);padding:0 var(--emw--spacing-small, 12px);transition:0.5s;max-height:500px}.CashierVerificationMessage:first-child{transition:none;cursor:pointer}.CashierVerificationMessage:first-child:hover{background:linear-gradient(0, var(--emw--color-gray-50, #F7F8FA) 0%, var(--emw--color-white, #fff) 100%)}.CashierVerificationMessage:not(.ShowAll):not(:first-child){max-height:0;overflow:hidden}.CashierVerificationMessage:hover .CashierVerificationChevron svg path{opacity:1}svg{height:20px}svg .IconColor{fill:var(--emw--color-warning, #ec9109)}p{color:var(--mmw--color-grey-10, #111);font-size:var(--emw--font-size-small, 14px);font-family:inherit;line-height:120%;margin:var(--emw--spacing-small, 12px)}.CashierVerificationsDesktop p{font-size:var(--emw--font-size-medium, 16px)}.text{word-break:break-word}.CashierVerificationChevron{cursor:pointer;margin-left:auto}.CashierVerificationChevron svg{transition:0.25s}.CashierVerificationChevron svg path{fill:var(--mmw--color-grey-290, #666);opacity:0.5}.CashierVerificationChevron:hover svg path{opacity:1}.ShowAll .CashierVerificationChevron svg{-o-transform:rotate(180deg);-ms-transform:rotate(180deg);-moz-transform:rotate(180deg);-webkit-transform:rotate(180deg);transform:rotate(180deg)}.CashierVerificationVideo{display:flex;width:100%;align-items:center;box-sizing:border-box;background:var(--emw--color-gray-50, #F7F8FA);border-bottom:1px solid var(--mmw--color-grey-105, #E8E9EB);padding:0 var(--emw--spacing-small, 12px);transition:0.5s;max-height:500px}.IconVideo{width:30px;display:flex;justify-content:center}.CashierVerificationVideoLink{cursor:pointer;color:var(--mmw--color-grey-10, #111);font-family:inherit;font-size:var(--emw--font-size-small, 14px);line-height:120%;margin:var(--emw--spacing-small, 12px);text-decoration:underline}.CashierVerificationVideoLinkDesktop{font-size:var(--emw--font-size-medium, 16px)}")}function H(r,t,o){const s=r.slice();return s[49]=t[o],s[51]=o,s}function j(r){let t,o,s,c,d=i.ensure_array_like(r[4]),u=[];for(let l=0;l<d.length;l+=1)u[l]=K(H(r,d,l));let m=r[7]&&W(r);return{c(){t=i.element("div");for(let l=0;l<u.length;l+=1)u[l].c();o=i.space(),m&&m.c(),s=i.space(),c=i.element("cashier-video-modal"),i.attr(t,"class","CashierVerificationsWrapper"),i.set_custom_element_data(c,"clientstylingurl",r[1]),i.set_custom_element_data(c,"clientstyling",r[0]),i.set_custom_element_data(c,"ismobileview",r[2]),i.set_custom_element_data(c,"videosrc",r[8])},m(l,h){i.insert(l,t,h);for(let a=0;a<u.length;a+=1)u[a]&&u[a].m(t,null);i.insert(l,o,h),m&&m.m(l,h),i.insert(l,s,h),i.insert(l,c,h)},p(l,h){if(h[0]&1072){d=i.ensure_array_like(l[4]);let a;for(a=0;a<d.length;a+=1){const y=H(l,d,a);u[a]?u[a].p(y,h):(u[a]=K(y),u[a].c(),u[a].m(t,null))}for(;a<u.length;a+=1)u[a].d(1);u.length=d.length}l[7]?m?m.p(l,h):(m=W(l),m.c(),m.m(s.parentNode,s)):m&&(m.d(1),m=null),h[0]&2&&i.set_custom_element_data(c,"clientstylingurl",l[1]),h[0]&1&&i.set_custom_element_data(c,"clientstyling",l[0]),h[0]&4&&i.set_custom_element_data(c,"ismobileview",l[2]),h[0]&256&&i.set_custom_element_data(c,"videosrc",l[8])},d(l){l&&(i.detach(t),i.detach(o),i.detach(s),i.detach(c)),i.destroy_each(u,l),m&&m.d(l)}}}function N(r){let t,o,s;function c(...d){return r[18](r[51],...d)}return{c(){t=i.element("span"),t.innerHTML='<svg width="25px" height="25px" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M12 1C5.92487 1 1 5.92487 1 12C1 18.0751 5.92487 23 12 23C18.0751 23 23 18.0751 23 12C23 5.92487 18.0751 1 12 1ZM8.70711 9.79289C8.31658 9.40237 7.68342 9.40237 7.29289 9.79289C6.90237 10.1834 6.90237 10.8166 7.29289 11.2071L11.2929 15.2071C11.6834 15.5976 12.3166 15.5976 12.7071 15.2071L16.7071 11.2071C17.0976 10.8166 17.0976 10.1834 16.7071 9.79289C16.3166 9.40237 15.6834 9.40237 15.2929 9.79289L12 13.0858L8.70711 9.79289Z" fill="#000000"></path></svg>',i.attr(t,"class","CashierVerificationChevron")},m(d,u){i.insert(d,t,u),o||(s=i.listen(t,"click",c),o=!0)},p(d,u){r=d},d(d){d&&i.detach(t),o=!1,s()}}}function K(r){let t,o,s,c,d=r[49]+"",u,m,l,h,a=r[4].length>1&&r[51]===0&&N(r);function y(...g){return r[19](r[51],...g)}return{c(){t=i.element("div"),o=i.element("div"),o.innerHTML='<svg width="64px" height="64px" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" stroke="#ffffff"><g id="SVGRepo_bgCarrier" stroke-width="0"></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"></g><g id="SVGRepo_iconCarrier"><path d="M4.39254 16.2614C2.64803 13.1941 1.66074 9.71783 1.51646 6.15051C1.50127 5.77507 1.70918 5.42812 2.04153 5.25282L11.5335 0.246091C11.8254 0.0920859 12.1746 0.0920859 12.4665 0.246091L21.9585 5.25282C22.2908 5.42812 22.4987 5.77507 22.4835 6.15051C22.3393 9.71783 21.352 13.1941 19.6075 16.2614C17.8618 19.3307 15.4169 21.8869 12.4986 23.7001C12.1931 23.8899 11.8069 23.8899 11.5014 23.7001C8.58313 21.8869 6.13817 19.3307 4.39254 16.2614Z" fill="#fa9200"></path><path d="M8.25 12.75L11.25 15L17.25 9" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path></g></svg>',s=i.space(),c=i.element("p"),u=i.space(),a&&a.c(),m=i.space(),i.attr(o,"class","IconVerification"),i.attr(c,"class","text"),i.attr(t,"class","CashierVerificationMessage"),i.toggle_class(t,"ShowAll",r[5])},m(g,k){i.insert(g,t,k),i.append(t,o),i.append(t,s),i.append(t,c),c.innerHTML=d,i.append(t,u),a&&a.m(t,null),i.append(t,m),l||(h=i.listen(t,"click",y),l=!0)},p(g,k){r=g,k[0]&16&&d!==(d=r[49]+"")&&(c.innerHTML=d),r[4].length>1&&r[51]===0?a?a.p(r,k):(a=N(r),a.c(),a.m(t,m)):a&&(a.d(1),a=null),k[0]&32&&i.toggle_class(t,"ShowAll",r[5])},d(g){g&&i.detach(t),a&&a.d(),l=!1,h()}}}function W(r){let t,o,s,c,d=r[9]("verification.video.how-to")+"",u,m,l;return{c(){t=i.element("div"),o=i.element("div"),o.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M256 8C119.043 8 8 119.083 8 256c0 136.997 111.043 248 248 248s248-111.003 248-248C504 119.083 392.957 8 256 8zm0 448c-110.532 0-200-89.431-200-200 0-110.495 89.472-200 200-200 110.491 0 200 89.471 200 200 0 110.53-89.431 200-200 200zm107.244-255.2c0 67.052-72.421 68.084-72.421 92.863V300c0 6.627-5.373 12-12 12h-45.647c-6.627 0-12-5.373-12-12v-8.659c0-35.745 27.1-50.034 47.579-61.516 17.561-9.845 28.324-16.541 28.324-29.579 0-17.246-21.999-28.693-39.784-28.693-23.189 0-33.894 10.977-48.942 29.969-4.057 5.12-11.46 6.071-16.666 2.124l-27.824-21.098c-5.107-3.872-6.251-11.066-2.644-16.363C184.846 131.491 214.94 112 261.794 112c49.071 0 101.45 38.304 101.45 88.8zM298 368c0 23.159-18.841 42-42 42s-42-18.841-42-42 18.841-42 42-42 42 18.841 42 42z"></path></svg>',s=i.space(),c=i.element("div"),u=i.text(d),i.attr(o,"class","IconVideo"),i.attr(c,"class","CashierVerificationVideoLink"),i.toggle_class(c,"CashierVerificationVideoLinkDesktop",r[6]),i.attr(t,"class","CashierVerificationVideo")},m(h,a){i.insert(h,t,a),i.append(t,o),i.append(t,s),i.append(t,c),i.append(c,u),m||(l=i.listen(c,"click",r[20]),m=!0)},p(h,a){a[0]&512&&d!==(d=h[9]("verification.video.how-to")+"")&&i.set_data(u,d),a[0]&64&&i.toggle_class(c,"CashierVerificationVideoLinkDesktop",h[6])},d(h){h&&i.detach(t),m=!1,l()}}}function we(r){let t,o=r[4]&&j(r);return{c(){t=i.element("div"),o&&o.c(),i.attr(t,"class","CashierVerifications"),i.toggle_class(t,"CashierVerificationsDesktop",r[6])},m(s,c){i.insert(s,t,c),o&&o.m(t,null),r[21](t)},p(s,c){s[4]?o?o.p(s,c):(o=j(s),o.c(),o.m(t,null)):o&&(o.d(1),o=null),c[0]&64&&i.toggle_class(t,"CashierVerificationsDesktop",s[6])},i:i.noop,o:i.noop,d(s){s&&i.detach(t),o&&o.d(),r[21](null)}}}const ye="verification_explanation_video_widgets.MP4",ke="700px",_e="500px";function Ve(r,t,o){let s;i.component_subscribe(r,S.$format,e=>o(9,s=e)),I.dayjs.extend(I.utc);let{endpoint:c}=t,{lang:d="en"}=t,{translationurl:u=""}=t,{clientstyling:m=""}=t,{clientstylingurl:l=""}=t,{session:h=""}=t,{customerid:a=""}=t,{ismobileview:y=""}=t,g,k=new Set,E=new Set,D,C,A,O=!0,M=!0,T=!1,B="";var P;(function(e){e.Manual="Manual",e.ShuftiPro="ShuftiPro"})(P||(P={}));var L;(function(e){e.Requested="Requested"})(L||(L={}));var v;(function(e){e.Unknown="Unknown",e.Unverified="Unverified",e.InProgress="InProgress",e.Failed="Failed",e.Verified="Verified",e.Referred="Referred",e.True="True",e.False="False",e.AwaitingForResponse="AwaitingForResponse"})(v||(v={}));var b;(function(e){e.Unknown="Unknown",e.Documents="Documents",e.Age="Age",e.Pep="Pep",e.Sanction="Sanction",e.Aml="Aml",e.ProofOfAddress="ProofOfAddress",e.SourceOfWealth="SourceOfWealth",e.SocialMedia="SocialMedia",e.Biometric="Biometric"})(b||(b={}));const Y=[v.InProgress,v.Referred,v.AwaitingForResponse],Z=()=>{let e=u;if(e)return fetch(e).then(n=>n.json()).then(n=>{Object.keys(n).forEach(f=>{U(f,n[f])})}).catch(n=>{console.log(n)})};Object.keys(R).forEach(e=>{U(e,R[e])});const J=()=>{ge(d)},X=()=>{let e=document.createElement("style");e.innerHTML=m,g.appendChild(e)},Q=()=>{let e=new URL(l),n=document.createElement("style");fetch(e.href).then(f=>f.text()).then(f=>{n.innerHTML=f,setTimeout(()=>{g.appendChild(n)},1)})},$=()=>{const{merchantId:e,customerId:n}=ee();if(!e)return;const f=new URL(`${c}/v1/player/verification/GetKYCStatus`),p=new Headers;p.append("accept","application/json"),p.append("Content-Type","application/json"),p.append("X-Client-Request-Timestamp",I.dayjs.utc().format("YYYY-MM-DD HH:mm:ss.SSS"));const _={method:"POST",headers:p,body:JSON.stringify({MerchantId:e,CustomerId:n,All:!1,AllParameters:!1})};fetch(f,_).then(V=>V.json()).then(V=>{o(17,C=V.StaticCdnUrl+"/cashier/operator-assets/"+e),D=ie(V.Verifications),D.VerificationStatuses.forEach(w=>{w.VerificationUrlType!=="Widget"&&k.add(w.Vendor)}),o(4,A=x())})},ee=()=>{let e=h.split(".")[1];if(e){let n=JSON.parse(atob(e));return{merchantId:n==null?void 0:n.mid,customerId:`${n==null?void 0:n.mid}~${a}`}}return{merchantId:null,customerId:null}},ie=e=>{var f;if(!e||!e.length)return{VerificationSummaryStatus:v.Unverified,VerificationStatuses:[]};const n=re(e);if(n&&n.length){const p=te(n);return{VerificationSummaryStatus:p.Status,VerificationUrl:(f=p.Flags)==null?void 0:f.DeferredUrlKey,VerificationStatuses:F(n,p.Status)}}else return{VerificationSummaryStatus:e.some(_=>_.Status===v.Failed)?v.Failed:v.Verified,VerificationStatuses:F(e,[v.Failed])}},te=e=>e.reduce((n,f)=>n?new Date(n)<new Date(f)?f:n:f,0),F=(e,n)=>e.filter(f=>n.includes(f.Status)).map(f=>{var p,_;return{Type:f.Type,Vendor:f.VendorName,VerificationDocuments:f.Documents?[...Object.values(f.Documents)]:[],VerificationUrlType:(p=f.Flags)==null?void 0:p.DeferredUrlTypeKey,VerificationUrl:(_=f.Flags)==null?void 0:_.DeferredUrlKey}}),re=e=>e.filter(n=>Y.includes(n.Status)?n.Flags&&n.Flags.DeferredUrlKey||oe(n)||ne(n):!1),oe=e=>{const n=e.Documents&&e.VendorName===P.Manual,f=Object.values(e.Documents).some(p=>p.Status===L.Requested);return n&&f},ne=e=>e.VendorName===P.ShuftiPro&&e.Status===v.Referred,x=()=>{switch(D.VerificationSummaryStatus){case v.InProgress:const e=[];return k.forEach(n=>{e.push(se(n))}),e;case v.Referred:return[s("verification.idenfy.referred-awaiting")];case v.Failed:return[s("verification.message.failed")]}},se=e=>{const n=D.VerificationStatuses.filter(f=>f.Vendor===e);if(e===P.ShuftiPro)return ae(n);{const f=s("verification.idenfy.link-name"),p={link:`<a href="${n[0].VerificationUrl}" target="_blank">${f}</a>`};return s("verification.idenfy.in-progress",{values:p})}},ae=e=>{const n=[],f={},p=[b.Biometric,b.Documents,b.ProofOfAddress];e.forEach(w=>{p.includes(w.Type)&&(n.push(w.Type),f[w.Type]=le(w,ce(w.Type)))});let _=n.every(w=>E.has(w)),V=`verification.shuftipro.in-progress.${n.sort().join(".")}`;return _?s("verification.shuftipro.validations-started"):s(V,{values:f})},le=(e,n)=>`<a class="verificationLink ${e.Type}" href=" ${e.VerificationUrl} " target="_blank">${n}</a>`,ce=e=>s(`verification.shuftipro.link-name.${e}`),q=(e,n)=>{if(e.stopPropagation(),e.target&&(e.target.href||e.target.closest("a"))){if(e.target.closest(".verificationLink")){const f=e.target.className.split(" ")[1];E.add(f),o(4,A=x())}return}n===0&&o(5,O=!O)},fe=()=>{o(6,M=y==="false")},de=()=>{o(8,B=C+"/"+d+"/"+ye);try{fetch(B,{method:"HEAD"}).then(e=>{o(7,T=e.ok)})}catch(e){o(7,T=!1)}},z=()=>{window.postMessage({type:"ShowCashierVideoModal",details:M?ke:_e},window.location.href)},ue=(e,n)=>q(n,e),he=(e,n)=>q(n,e),me=()=>z();function pe(e){i.binding_callbacks[e?"unshift":"push"](()=>{g=e,o(3,g)})}return r.$$set=e=>{"endpoint"in e&&o(12,c=e.endpoint),"lang"in e&&o(13,d=e.lang),"translationurl"in e&&o(14,u=e.translationurl),"clientstyling"in e&&o(0,m=e.clientstyling),"clientstylingurl"in e&&o(1,l=e.clientstylingurl),"session"in e&&o(15,h=e.session),"customerid"in e&&o(16,a=e.customerid),"ismobileview"in e&&o(2,y=e.ismobileview)},r.$$.update=()=>{r.$$.dirty[0]&8192&&d&&J(),r.$$.dirty[0]&36864&&c&&h&&$(),r.$$.dirty[0]&16384&&u&&Z(),r.$$.dirty[0]&9&&m&&g&&X(),r.$$.dirty[0]&10&&l&&g&&Q(),r.$$.dirty[0]&4&&y&&fe(),r.$$.dirty[0]&131072&&C&&de()},[m,l,y,g,A,O,M,T,B,s,q,z,c,d,u,h,a,C,ue,he,me,pe]}class G extends i.SvelteComponent{constructor(t){super(),i.init(this,t,Ve,we,i.safe_not_equal,{endpoint:12,lang:13,translationurl:14,clientstyling:0,clientstylingurl:1,session:15,customerid:16,ismobileview:2},ve,[-1,-1])}get endpoint(){return this.$$.ctx[12]}set endpoint(t){this.$$set({endpoint:t}),i.flush()}get lang(){return this.$$.ctx[13]}set lang(t){this.$$set({lang:t}),i.flush()}get translationurl(){return this.$$.ctx[14]}set translationurl(t){this.$$set({translationurl:t}),i.flush()}get clientstyling(){return this.$$.ctx[0]}set clientstyling(t){this.$$set({clientstyling:t}),i.flush()}get clientstylingurl(){return this.$$.ctx[1]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),i.flush()}get session(){return this.$$.ctx[15]}set session(t){this.$$set({session:t}),i.flush()}get customerid(){return this.$$.ctx[16]}set customerid(t){this.$$set({customerid:t}),i.flush()}get ismobileview(){return this.$$.ctx[2]}set ismobileview(t){this.$$set({ismobileview:t}),i.flush()}}i.create_custom_element(G,{endpoint:{},lang:{},translationurl:{},clientstyling:{},clientstylingurl:{},session:{},customerid:{},ismobileview:{}},[],[],!0);exports.default=G;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./CashierConfirmModal-BVT51ZOp.cjs"),S=require("./CashierError-yvWn4Rrm.cjs"),I=require("./CashierMethodDetails-DCSscnEO.cjs");function U(r,t){S.addMessages(r,t)}function ge(r){S.init({fallbackLocale:"en"}),S.$locale.set(r)}const R={en:{"verification.video.how-to":"How to verify yourself","verification.idenfy.referred-awaiting":"ID verification is in progress. We will inform you as soon as verification is completed and you can withdraw money back","verification.message.failed":"We apologize, but we were unable to verify your account. Please contact support team","verification.idenfy.link-name":"link","verification.idenfy.in-progress":"To withdraw funds to your account you are required to pass user verification. Please have your ID ready and follow the {link} to start verification","verification.shuftipro.in-progress.Biometric":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification.","verification.shuftipro.in-progress.Biometric.Documents":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification and {Documents} verification.","verification.shuftipro.in-progress.Biometric.Documents.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification, {Documents} verification and {ProofOfAddress} verification.","verification.shuftipro.in-progress.Biometric.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification and {ProofOfAddress} verification.","verification.shuftipro.in-progress.Documents":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Documents} verification.","verification.shuftipro.in-progress.Documents.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Documents} verification and {ProofOfAddress} verification.","verification.shuftipro.in-progress.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {ProofOfAddress} verification.","verification.shuftipro.link-name.Biometric":"Biometric","verification.shuftipro.link-name.Documents":"Documents","verification.shuftipro.link-name.ProofOfAddress":"Proof Of Address","verification.shuftipro.validations-started":"After completing verification, please proceed with the transaction"},tr:{"verification.video.how-to":"Kimlik doğrulama nasıl yapılır","verification.idenfy.referred-awaiting":"Kimlik doğrulaması işlemde. Doğrulama tamamlandığında size haber vereceğiz","verification.message.failed":"Döküman doğrulama başarısız, hesabınız doğrulanamadı","verification.idenfy.link-name":"link","verification.idenfy.in-progress":"Hesabınızdan çekim yapabilmek için kullanıcı doğrulaması gerekiyor. Lütfen kimliğinizi hazır edin ve {link} adresinden doğrulamayı başlatın","verification.shuftipro.in-progress.Biometric":"İşlemi gerçekleştirmek için kullanıcı doğrulamasını geçmeniz gerekmektedir. Doğrulamayı başlatmak için Lütfen linke tıklayın {Biometric}","verification.shuftipro.in-progress.Biometric.Documents":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification and {Documents} verification.","verification.shuftipro.in-progress.Biometric.Documents.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification, {Documents} verification and {ProofOfAddress} verification.","verification.shuftipro.in-progress.Biometric.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification and {ProofOfAddress} verification.","verification.shuftipro.in-progress.Documents":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Documents} verification.","verification.shuftipro.in-progress.Documents.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Documents} verification and {ProofOfAddress} verification.","verification.shuftipro.in-progress.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {ProofOfAddress} verification.","verification.shuftipro.link-name.Biometric":"Doğrulama Yap","verification.shuftipro.link-name.Documents":"Documents","verification.shuftipro.link-name.ProofOfAddress":"Proof Of Address","verification.shuftipro.validations-started":"Lütfen Doğrulamayı tamamladıktan sonra işleme devam ediniz"},hr:{"verification.video.how-to":"How to verify yourself","verification.idenfy.referred-awaiting":"ID verification is in progress. We will inform you as soon as verification is completed and you can withdraw money back","verification.message.failed":"We apologize, but we were unable to verify your account. Please contact support team","verification.idenfy.link-name":"link","verification.idenfy.in-progress":"To withdraw funds to your account you are required to pass user verification. Please have your ID ready and follow the {link} to start verification","verification.shuftipro.in-progress.Biometric":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification.","verification.shuftipro.in-progress.Biometric.Documents":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification and {Documents} verification.","verification.shuftipro.in-progress.Biometric.Documents.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification, {Documents} verification and {ProofOfAddress} verification.","verification.shuftipro.in-progress.Biometric.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification and {ProofOfAddress} verification.","verification.shuftipro.in-progress.Documents":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Documents} verification.","verification.shuftipro.in-progress.Documents.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Documents} verification and {ProofOfAddress} verification.","verification.shuftipro.in-progress.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {ProofOfAddress} verification.","verification.shuftipro.link-name.Biometric":"Biometric","verification.shuftipro.link-name.Documents":"Documents","verification.shuftipro.link-name.ProofOfAddress":"Proof Of Address","verification.shuftipro.validations-started":"After completing verification, please proceed with the transaction"}};if(typeof window!="undefined"){let r=function(t){return function(...o){try{return t.apply(this,o)}catch(s){if(s instanceof DOMException&&s.message.includes("has already been used with this registry")||s.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw s}}};customElements.define=r(customElements.define),Promise.resolve().then(()=>require("./CashierVideoModal-CjR0Fzuu.cjs")).then(({default:t})=>{!customElements.get("cashier-video-modal")&&customElements.define("cashier-video-modal",t.element)})}function ve(r){i.append_styles(r,"svelte-1emynn4","*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;-webkit-tap-highlight-color:transparent}.CashierVerifications{box-shadow:0 0 4px var(--mmw--color-black-transparency-10, rgba(0, 0, 0, 0.1))}.CashierVerifications.CashierVerificationsDesktop{border-radius:var(--mmw--border-radius-medium-plus, 6px);overflow:hidden}.CashierVerifications.CashierVerificationsDesktop:has(.CashierVerificationMessage){margin-bottom:var(--emw--spacing-small, 12px)}.CashierVerificationsWrapper{display:flex;flex-direction:column;width:100%}.IconVerification{width:30px;display:flex}.CashierVerificationMessage{display:flex;align-items:center;box-sizing:border-box;background:var(--emw--color-gray-50, #F7F8FA);border-bottom:1px solid var(--mmw--color-grey-105, #E8E9EB);padding:0 var(--emw--spacing-small, 12px);transition:0.5s;max-height:500px}.CashierVerificationMessage:first-child{transition:none;cursor:pointer}.CashierVerificationMessage:first-child:hover{background:linear-gradient(0, var(--emw--color-gray-50, #F7F8FA) 0%, var(--emw--color-white, #fff) 100%)}.CashierVerificationMessage:not(.ShowAll):not(:first-child){max-height:0;overflow:hidden}.CashierVerificationMessage:hover .CashierVerificationChevron svg path{opacity:1}svg{height:20px}svg .IconColor{fill:var(--emw--color-warning, #ec9109)}p{color:var(--mmw--color-grey-10, #111);font-size:var(--emw--font-size-small, 14px);font-family:inherit;line-height:120%;margin:var(--emw--spacing-small, 12px)}.CashierVerificationsDesktop p{font-size:var(--emw--font-size-medium, 16px)}.text{word-break:break-word}.CashierVerificationChevron{cursor:pointer;margin-left:auto}.CashierVerificationChevron svg{transition:0.25s}.CashierVerificationChevron svg path{fill:var(--mmw--color-grey-290, #666);opacity:0.5}.CashierVerificationChevron:hover svg path{opacity:1}.ShowAll .CashierVerificationChevron svg{-o-transform:rotate(180deg);-ms-transform:rotate(180deg);-moz-transform:rotate(180deg);-webkit-transform:rotate(180deg);transform:rotate(180deg)}.CashierVerificationVideo{display:flex;width:100%;align-items:center;box-sizing:border-box;background:var(--emw--color-gray-50, #F7F8FA);border-bottom:1px solid var(--mmw--color-grey-105, #E8E9EB);padding:0 var(--emw--spacing-small, 12px);transition:0.5s;max-height:500px}.IconVideo{width:30px;display:flex;justify-content:center}.CashierVerificationVideoLink{cursor:pointer;color:var(--mmw--color-grey-10, #111);font-family:inherit;font-size:var(--emw--font-size-small, 14px);line-height:120%;margin:var(--emw--spacing-small, 12px);text-decoration:underline}.CashierVerificationVideoLinkDesktop{font-size:var(--emw--font-size-medium, 16px)}")}function H(r,t,o){const s=r.slice();return s[49]=t[o],s[51]=o,s}function j(r){let t,o,s,c,d=i.ensure_array_like(r[4]),u=[];for(let l=0;l<d.length;l+=1)u[l]=K(H(r,d,l));let m=r[7]&&W(r);return{c(){t=i.element("div");for(let l=0;l<u.length;l+=1)u[l].c();o=i.space(),m&&m.c(),s=i.space(),c=i.element("cashier-video-modal"),i.attr(t,"class","CashierVerificationsWrapper"),i.set_custom_element_data(c,"clientstylingurl",r[1]),i.set_custom_element_data(c,"clientstyling",r[0]),i.set_custom_element_data(c,"ismobileview",r[2]),i.set_custom_element_data(c,"videosrc",r[8])},m(l,h){i.insert(l,t,h);for(let a=0;a<u.length;a+=1)u[a]&&u[a].m(t,null);i.insert(l,o,h),m&&m.m(l,h),i.insert(l,s,h),i.insert(l,c,h)},p(l,h){if(h[0]&1072){d=i.ensure_array_like(l[4]);let a;for(a=0;a<d.length;a+=1){const y=H(l,d,a);u[a]?u[a].p(y,h):(u[a]=K(y),u[a].c(),u[a].m(t,null))}for(;a<u.length;a+=1)u[a].d(1);u.length=d.length}l[7]?m?m.p(l,h):(m=W(l),m.c(),m.m(s.parentNode,s)):m&&(m.d(1),m=null),h[0]&2&&i.set_custom_element_data(c,"clientstylingurl",l[1]),h[0]&1&&i.set_custom_element_data(c,"clientstyling",l[0]),h[0]&4&&i.set_custom_element_data(c,"ismobileview",l[2]),h[0]&256&&i.set_custom_element_data(c,"videosrc",l[8])},d(l){l&&(i.detach(t),i.detach(o),i.detach(s),i.detach(c)),i.destroy_each(u,l),m&&m.d(l)}}}function N(r){let t,o,s;function c(...d){return r[18](r[51],...d)}return{c(){t=i.element("span"),t.innerHTML='<svg width="25px" height="25px" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M12 1C5.92487 1 1 5.92487 1 12C1 18.0751 5.92487 23 12 23C18.0751 23 23 18.0751 23 12C23 5.92487 18.0751 1 12 1ZM8.70711 9.79289C8.31658 9.40237 7.68342 9.40237 7.29289 9.79289C6.90237 10.1834 6.90237 10.8166 7.29289 11.2071L11.2929 15.2071C11.6834 15.5976 12.3166 15.5976 12.7071 15.2071L16.7071 11.2071C17.0976 10.8166 17.0976 10.1834 16.7071 9.79289C16.3166 9.40237 15.6834 9.40237 15.2929 9.79289L12 13.0858L8.70711 9.79289Z" fill="#000000"></path></svg>',i.attr(t,"class","CashierVerificationChevron")},m(d,u){i.insert(d,t,u),o||(s=i.listen(t,"click",c),o=!0)},p(d,u){r=d},d(d){d&&i.detach(t),o=!1,s()}}}function K(r){let t,o,s,c,d=r[49]+"",u,m,l,h,a=r[4].length>1&&r[51]===0&&N(r);function y(...g){return r[19](r[51],...g)}return{c(){t=i.element("div"),o=i.element("div"),o.innerHTML='<svg width="64px" height="64px" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" stroke="#ffffff"><g id="SVGRepo_bgCarrier" stroke-width="0"></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"></g><g id="SVGRepo_iconCarrier"><path d="M4.39254 16.2614C2.64803 13.1941 1.66074 9.71783 1.51646 6.15051C1.50127 5.77507 1.70918 5.42812 2.04153 5.25282L11.5335 0.246091C11.8254 0.0920859 12.1746 0.0920859 12.4665 0.246091L21.9585 5.25282C22.2908 5.42812 22.4987 5.77507 22.4835 6.15051C22.3393 9.71783 21.352 13.1941 19.6075 16.2614C17.8618 19.3307 15.4169 21.8869 12.4986 23.7001C12.1931 23.8899 11.8069 23.8899 11.5014 23.7001C8.58313 21.8869 6.13817 19.3307 4.39254 16.2614Z" fill="#fa9200"></path><path d="M8.25 12.75L11.25 15L17.25 9" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path></g></svg>',s=i.space(),c=i.element("p"),u=i.space(),a&&a.c(),m=i.space(),i.attr(o,"class","IconVerification"),i.attr(c,"class","text"),i.attr(t,"class","CashierVerificationMessage"),i.toggle_class(t,"ShowAll",r[5])},m(g,k){i.insert(g,t,k),i.append(t,o),i.append(t,s),i.append(t,c),c.innerHTML=d,i.append(t,u),a&&a.m(t,null),i.append(t,m),l||(h=i.listen(t,"click",y),l=!0)},p(g,k){r=g,k[0]&16&&d!==(d=r[49]+"")&&(c.innerHTML=d),r[4].length>1&&r[51]===0?a?a.p(r,k):(a=N(r),a.c(),a.m(t,m)):a&&(a.d(1),a=null),k[0]&32&&i.toggle_class(t,"ShowAll",r[5])},d(g){g&&i.detach(t),a&&a.d(),l=!1,h()}}}function W(r){let t,o,s,c,d=r[9]("verification.video.how-to")+"",u,m,l;return{c(){t=i.element("div"),o=i.element("div"),o.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M256 8C119.043 8 8 119.083 8 256c0 136.997 111.043 248 248 248s248-111.003 248-248C504 119.083 392.957 8 256 8zm0 448c-110.532 0-200-89.431-200-200 0-110.495 89.472-200 200-200 110.491 0 200 89.471 200 200 0 110.53-89.431 200-200 200zm107.244-255.2c0 67.052-72.421 68.084-72.421 92.863V300c0 6.627-5.373 12-12 12h-45.647c-6.627 0-12-5.373-12-12v-8.659c0-35.745 27.1-50.034 47.579-61.516 17.561-9.845 28.324-16.541 28.324-29.579 0-17.246-21.999-28.693-39.784-28.693-23.189 0-33.894 10.977-48.942 29.969-4.057 5.12-11.46 6.071-16.666 2.124l-27.824-21.098c-5.107-3.872-6.251-11.066-2.644-16.363C184.846 131.491 214.94 112 261.794 112c49.071 0 101.45 38.304 101.45 88.8zM298 368c0 23.159-18.841 42-42 42s-42-18.841-42-42 18.841-42 42-42 42 18.841 42 42z"></path></svg>',s=i.space(),c=i.element("div"),u=i.text(d),i.attr(o,"class","IconVideo"),i.attr(c,"class","CashierVerificationVideoLink"),i.toggle_class(c,"CashierVerificationVideoLinkDesktop",r[6]),i.attr(t,"class","CashierVerificationVideo")},m(h,a){i.insert(h,t,a),i.append(t,o),i.append(t,s),i.append(t,c),i.append(c,u),m||(l=i.listen(c,"click",r[20]),m=!0)},p(h,a){a[0]&512&&d!==(d=h[9]("verification.video.how-to")+"")&&i.set_data(u,d),a[0]&64&&i.toggle_class(c,"CashierVerificationVideoLinkDesktop",h[6])},d(h){h&&i.detach(t),m=!1,l()}}}function we(r){let t,o=r[4]&&j(r);return{c(){t=i.element("div"),o&&o.c(),i.attr(t,"class","CashierVerifications"),i.toggle_class(t,"CashierVerificationsDesktop",r[6])},m(s,c){i.insert(s,t,c),o&&o.m(t,null),r[21](t)},p(s,c){s[4]?o?o.p(s,c):(o=j(s),o.c(),o.m(t,null)):o&&(o.d(1),o=null),c[0]&64&&i.toggle_class(t,"CashierVerificationsDesktop",s[6])},i:i.noop,o:i.noop,d(s){s&&i.detach(t),o&&o.d(),r[21](null)}}}const ye="verification_explanation_video_widgets.MP4",ke="700px",_e="500px";function Ve(r,t,o){let s;i.component_subscribe(r,S.$format,e=>o(9,s=e)),I.dayjs.extend(I.utc);let{endpoint:c}=t,{lang:d="en"}=t,{translationurl:u=""}=t,{clientstyling:m=""}=t,{clientstylingurl:l=""}=t,{session:h=""}=t,{customerid:a=""}=t,{ismobileview:y=""}=t,g,k=new Set,E=new Set,D,C,A,O=!0,M=!0,T=!1,B="";var P;(function(e){e.Manual="Manual",e.ShuftiPro="ShuftiPro"})(P||(P={}));var L;(function(e){e.Requested="Requested"})(L||(L={}));var v;(function(e){e.Unknown="Unknown",e.Unverified="Unverified",e.InProgress="InProgress",e.Failed="Failed",e.Verified="Verified",e.Referred="Referred",e.True="True",e.False="False",e.AwaitingForResponse="AwaitingForResponse"})(v||(v={}));var b;(function(e){e.Unknown="Unknown",e.Documents="Documents",e.Age="Age",e.Pep="Pep",e.Sanction="Sanction",e.Aml="Aml",e.ProofOfAddress="ProofOfAddress",e.SourceOfWealth="SourceOfWealth",e.SocialMedia="SocialMedia",e.Biometric="Biometric"})(b||(b={}));const Y=[v.InProgress,v.Referred,v.AwaitingForResponse],Z=()=>{let e=u;if(e)return fetch(e).then(n=>n.json()).then(n=>{Object.keys(n).forEach(f=>{U(f,n[f])})}).catch(n=>{console.log(n)})};Object.keys(R).forEach(e=>{U(e,R[e])});const J=()=>{ge(d)},X=()=>{let e=document.createElement("style");e.innerHTML=m,g.appendChild(e)},Q=()=>{let e=new URL(l),n=document.createElement("style");fetch(e.href).then(f=>f.text()).then(f=>{n.innerHTML=f,setTimeout(()=>{g.appendChild(n)},1)})},$=()=>{const{merchantId:e,customerId:n}=ee();if(!e)return;const f=new URL(`${c}/v1/player/verification/GetKYCStatus`),p=new Headers;p.append("accept","application/json"),p.append("Content-Type","application/json"),p.append("X-Client-Request-Timestamp",I.dayjs.utc().format("YYYY-MM-DD HH:mm:ss.SSS"));const _={method:"POST",headers:p,body:JSON.stringify({MerchantId:e,CustomerId:n,All:!1,AllParameters:!1})};fetch(f,_).then(V=>V.json()).then(V=>{o(17,C=V.StaticCdnUrl+"/cashier/operator-assets/"+e),D=ie(V.Verifications),D.VerificationStatuses.forEach(w=>{w.VerificationUrlType!=="Widget"&&k.add(w.Vendor)}),o(4,A=x())})},ee=()=>{let e=h.split(".")[1];if(e){let n=JSON.parse(atob(e));return{merchantId:n==null?void 0:n.mid,customerId:`${n==null?void 0:n.mid}~${a}`}}return{merchantId:null,customerId:null}},ie=e=>{var f;if(!e||!e.length)return{VerificationSummaryStatus:v.Unverified,VerificationStatuses:[]};const n=re(e);if(n&&n.length){const p=te(n);return{VerificationSummaryStatus:p.Status,VerificationUrl:(f=p.Flags)==null?void 0:f.DeferredUrlKey,VerificationStatuses:F(n,p.Status)}}else return{VerificationSummaryStatus:e.some(_=>_.Status===v.Failed)?v.Failed:v.Verified,VerificationStatuses:F(e,[v.Failed])}},te=e=>e.reduce((n,f)=>n?new Date(n)<new Date(f)?f:n:f,0),F=(e,n)=>e.filter(f=>n.includes(f.Status)).map(f=>{var p,_;return{Type:f.Type,Vendor:f.VendorName,VerificationDocuments:f.Documents?[...Object.values(f.Documents)]:[],VerificationUrlType:(p=f.Flags)==null?void 0:p.DeferredUrlTypeKey,VerificationUrl:(_=f.Flags)==null?void 0:_.DeferredUrlKey}}),re=e=>e.filter(n=>Y.includes(n.Status)?n.Flags&&n.Flags.DeferredUrlKey||oe(n)||ne(n):!1),oe=e=>{const n=e.Documents&&e.VendorName===P.Manual,f=Object.values(e.Documents).some(p=>p.Status===L.Requested);return n&&f},ne=e=>e.VendorName===P.ShuftiPro&&e.Status===v.Referred,x=()=>{switch(D.VerificationSummaryStatus){case v.InProgress:const e=[];return k.forEach(n=>{e.push(se(n))}),e;case v.Referred:return[s("verification.idenfy.referred-awaiting")];case v.Failed:return[s("verification.message.failed")]}},se=e=>{const n=D.VerificationStatuses.filter(f=>f.Vendor===e);if(e===P.ShuftiPro)return ae(n);{const f=s("verification.idenfy.link-name"),p={link:`<a href="${n[0].VerificationUrl}" target="_blank">${f}</a>`};return s("verification.idenfy.in-progress",{values:p})}},ae=e=>{const n=[],f={},p=[b.Biometric,b.Documents,b.ProofOfAddress];e.forEach(w=>{p.includes(w.Type)&&(n.push(w.Type),f[w.Type]=le(w,ce(w.Type)))});let _=n.every(w=>E.has(w)),V=`verification.shuftipro.in-progress.${n.sort().join(".")}`;return _?s("verification.shuftipro.validations-started"):s(V,{values:f})},le=(e,n)=>`<a class="verificationLink ${e.Type}" href=" ${e.VerificationUrl} " target="_blank">${n}</a>`,ce=e=>s(`verification.shuftipro.link-name.${e}`),q=(e,n)=>{if(e.stopPropagation(),e.target&&(e.target.href||e.target.closest("a"))){if(e.target.closest(".verificationLink")){const f=e.target.className.split(" ")[1];E.add(f),o(4,A=x())}return}n===0&&o(5,O=!O)},fe=()=>{o(6,M=y==="false")},de=()=>{o(8,B=C+"/"+d+"/"+ye);try{fetch(B,{method:"HEAD"}).then(e=>{o(7,T=e.ok)})}catch(e){o(7,T=!1)}},z=()=>{window.postMessage({type:"ShowCashierVideoModal",details:M?ke:_e},window.location.href)},ue=(e,n)=>q(n,e),he=(e,n)=>q(n,e),me=()=>z();function pe(e){i.binding_callbacks[e?"unshift":"push"](()=>{g=e,o(3,g)})}return r.$$set=e=>{"endpoint"in e&&o(12,c=e.endpoint),"lang"in e&&o(13,d=e.lang),"translationurl"in e&&o(14,u=e.translationurl),"clientstyling"in e&&o(0,m=e.clientstyling),"clientstylingurl"in e&&o(1,l=e.clientstylingurl),"session"in e&&o(15,h=e.session),"customerid"in e&&o(16,a=e.customerid),"ismobileview"in e&&o(2,y=e.ismobileview)},r.$$.update=()=>{r.$$.dirty[0]&8192&&d&&J(),r.$$.dirty[0]&36864&&c&&h&&$(),r.$$.dirty[0]&16384&&u&&Z(),r.$$.dirty[0]&9&&m&&g&&X(),r.$$.dirty[0]&10&&l&&g&&Q(),r.$$.dirty[0]&4&&y&&fe(),r.$$.dirty[0]&131072&&C&&de()},[m,l,y,g,A,O,M,T,B,s,q,z,c,d,u,h,a,C,ue,he,me,pe]}class G extends i.SvelteComponent{constructor(t){super(),i.init(this,t,Ve,we,i.safe_not_equal,{endpoint:12,lang:13,translationurl:14,clientstyling:0,clientstylingurl:1,session:15,customerid:16,ismobileview:2},ve,[-1,-1])}get endpoint(){return this.$$.ctx[12]}set endpoint(t){this.$$set({endpoint:t}),i.flush()}get lang(){return this.$$.ctx[13]}set lang(t){this.$$set({lang:t}),i.flush()}get translationurl(){return this.$$.ctx[14]}set translationurl(t){this.$$set({translationurl:t}),i.flush()}get clientstyling(){return this.$$.ctx[0]}set clientstyling(t){this.$$set({clientstyling:t}),i.flush()}get clientstylingurl(){return this.$$.ctx[1]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),i.flush()}get session(){return this.$$.ctx[15]}set session(t){this.$$set({session:t}),i.flush()}get customerid(){return this.$$.ctx[16]}set customerid(t){this.$$set({customerid:t}),i.flush()}get ismobileview(){return this.$$.ctx[2]}set ismobileview(t){this.$$set({ismobileview:t}),i.flush()}}i.create_custom_element(G,{endpoint:{},lang:{},translationurl:{},clientstyling:{},clientstylingurl:{},session:{},customerid:{},ismobileview:{}},[],[],!0);exports.default=G;
@@ -1,6 +1,6 @@
1
- import { S as Ce, b as _e, s as Se, f as D, c as Ae, n as G, e as _, J as M, m as S, p as w, v as V, w as Oe, K as Y, L as Me, E as C, q as O, A as Te, o as k, B as H, y as Be, z as Le, D as Ie } from "./CashierConfirmModal-B5fOc6GC.js";
2
- import { a as qe, i as xe, $ as Ee, b as Fe } from "./CashierError-DKmRdzzP.js";
3
- import { d as J, u as ze } from "./CashierMethodDetails-C4KZnq7Z.js";
1
+ import { S as Ce, b as _e, s as Se, f as D, c as Ae, n as G, e as _, J as M, m as S, p as w, v as V, w as Oe, K as Y, L as Me, D as C, q as O, A as Te, o as k, B as H, y as Be, z as Le, E as Ie } from "./CashierConfirmModal-sI8AKckC.js";
2
+ import { a as qe, i as xe, $ as Ee, b as Fe } from "./CashierError-DxG_sfiC.js";
3
+ import { d as J, u as ze } from "./CashierMethodDetails-B-r9Ig3J.js";
4
4
  function Z(t, i) {
5
5
  qe(t, i);
6
6
  }
@@ -77,7 +77,7 @@ if (typeof window != "undefined") {
77
77
  }
78
78
  };
79
79
  };
80
- customElements.define = t(customElements.define), import("./CashierVideoModal-BqP3xvYv.js").then(({ default: i }) => {
80
+ customElements.define = t(customElements.define), import("./CashierVideoModal-BGKXfmt9.js").then(({ default: i }) => {
81
81
  !customElements.get("cashier-video-modal") && customElements.define("cashier-video-modal", i.element);
82
82
  });
83
83
  }
@@ -1,6 +1,6 @@
1
- import { S as Ce, b as _e, s as Se, f as b, c as Ae, n as G, e as C, J as O, l as _, o as w, q as V, v as Oe, K as Y, L as Te, E as D, p as A, z as Me, m as k, A as H, x as Be, y as Le, D as Ie } from "./CashierConfirmModal-CtWSrqbM.js";
2
- import { a as qe, i as xe, $ as Ee, b as Fe } from "./CashierError-B_WDWdBy.js";
3
- import { d as J, u as ze } from "./CashierMethodDetails-BeElaO--.js";
1
+ import { S as Ce, b as _e, s as Se, f as b, c as Ae, n as G, e as C, J as O, l as _, o as w, q as V, v as Oe, K as Y, L as Te, C as D, p as A, z as Me, m as k, A as H, x as Be, y as Le, E as Ie } from "./CashierConfirmModal-D-5CwHBA.js";
2
+ import { a as qe, i as xe, $ as Ee, b as Fe } from "./CashierError-CMvzpPvw.js";
3
+ import { d as J, u as ze } from "./CashierMethodDetails-B7a0xUnu.js";
4
4
  function Z(t, i) {
5
5
  qe(t, i);
6
6
  }
@@ -77,7 +77,7 @@ if (typeof window < "u") {
77
77
  }
78
78
  };
79
79
  };
80
- customElements.define = t(customElements.define), import("./CashierVideoModal-L_vWBGkF.js").then(({ default: i }) => {
80
+ customElements.define = t(customElements.define), import("./CashierVideoModal-CVEk7pqo.js").then(({ default: i }) => {
81
81
  !customElements.get("cashier-video-modal") && customElements.define("cashier-video-modal", i.element);
82
82
  });
83
83
  }
@@ -1,4 +1,4 @@
1
- import { S as T, b as N, s as R, f as C, c as U, n as m, e as v, m as _, x as Z, H as j, C as b, v as n, J as k, o as p, p as g, q as V, A, B as H, N as w, D as F } from "./CashierConfirmModal-B5fOc6GC.js";
1
+ import { S as T, b as N, s as R, f as C, c as U, n as m, e as v, m as _, x as Z, H as j, C as b, v as n, J as k, o as p, p as g, q as V, A, B as H, N as w, E as F } from "./CashierConfirmModal-sI8AKckC.js";
2
2
  function J(s) {
3
3
  U(s, "svelte-kll10v", ".CashierVideoWrapper{position:absolute;width:100%;height:500px;left:0;top:0;z-index:8;background-color:var(--mmw--color-grey-light, #f3f6f9)}.CashierVideoWrapperDesktop{height:700px}.CashierVideoHeader{width:100%;height:29px;position:relative;text-transform:uppercase;text-align:right;background-color:var(--mmw--color-grey-light, #f3f6f9);font-size:var(--emw--font-size-medium, 16px);z-index:6}.CashierVideoHeader svg{padding:8px 8px 8px 15px}.CashierVideo video{object-fit:contain;width:100%;height:100%;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}.CashierVideo svg{cursor:pointer;margin-left:auto;position:absolute;right:0;z-index:6;padding:5px 13px}");
4
4
  }
@@ -108,12 +108,12 @@ function I(s, e, i) {
108
108
  i(3, c = !1), window.postMessage({ type: "ClosedCashierVideoModal" }, window.location.href), window.postMessage({ type: "EnableScroll" }, window.location.href);
109
109
  }, h = (a) => {
110
110
  a.data.type == "ShowCashierVideoModal" && (i(3, c = !0), window.postMessage({ type: "DisableScroll" }, window.location.href)), a.data.type == "HideCashierVideoModal" && d();
111
- }, D = () => {
111
+ }, E = () => {
112
112
  i(2, u = r === "false");
113
113
  }, z = () => {
114
114
  let a = document.createElement("style");
115
115
  a.innerHTML = t, l.appendChild(a);
116
- }, E = () => {
116
+ }, D = () => {
117
117
  let a = new URL(o), L = document.createElement("style");
118
118
  fetch(a.href).then((y) => y.text()).then((y) => {
119
119
  L.innerHTML = y, setTimeout(
@@ -137,9 +137,9 @@ function I(s, e, i) {
137
137
  "clientstyling" in a && i(5, t = a.clientstyling), "clientstylingurl" in a && i(6, o = a.clientstylingurl), "ismobileview" in a && i(7, r = a.ismobileview), "videosrc" in a && i(0, f = a.videosrc);
138
138
  }, s.$$.update = () => {
139
139
  s.$$.dirty & /*ismobileview*/
140
- 128 && r && D(), s.$$.dirty & /*clientstyling, customStylingContainer*/
140
+ 128 && r && E(), s.$$.dirty & /*clientstyling, customStylingContainer*/
141
141
  34 && t && l && z(), s.$$.dirty & /*clientstylingurl, customStylingContainer*/
142
- 66 && o && l && E();
142
+ 66 && o && l && D();
143
143
  }, [
144
144
  f,
145
145
  l,
@@ -1,4 +1,4 @@
1
- import { S as T, b as N, s as R, f as C, c as U, n as m, e as v, l as _, w as Z, H as j, B as b, q as n, J as k, m as p, o as g, p as V, z as A, A as H, N as w, D as F } from "./CashierConfirmModal-CtWSrqbM.js";
1
+ import { S as T, b as N, s as R, f as C, c as U, n as m, e as v, l as _, w as Z, H as j, B as b, q as n, J as k, m as p, o as g, p as V, z as A, A as H, N as w, E as F } from "./CashierConfirmModal-D-5CwHBA.js";
2
2
  function J(s) {
3
3
  U(s, "svelte-kll10v", ".CashierVideoWrapper{position:absolute;width:100%;height:500px;left:0;top:0;z-index:8;background-color:var(--mmw--color-grey-light, #f3f6f9)}.CashierVideoWrapperDesktop{height:700px}.CashierVideoHeader{width:100%;height:29px;position:relative;text-transform:uppercase;text-align:right;background-color:var(--mmw--color-grey-light, #f3f6f9);font-size:var(--emw--font-size-medium, 16px);z-index:6}.CashierVideoHeader svg{padding:8px 8px 8px 15px}.CashierVideo video{object-fit:contain;width:100%;height:100%;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}.CashierVideo svg{cursor:pointer;margin-left:auto;position:absolute;right:0;z-index:6;padding:5px 13px}");
4
4
  }
@@ -110,10 +110,10 @@ function I(s, e, i) {
110
110
  a.data.type == "ShowCashierVideoModal" && (i(3, c = !0), window.postMessage({ type: "DisableScroll" }, window.location.href)), a.data.type == "HideCashierVideoModal" && d();
111
111
  }, z = () => {
112
112
  i(2, u = r === "false");
113
- }, D = () => {
113
+ }, E = () => {
114
114
  let a = document.createElement("style");
115
115
  a.innerHTML = t, l.appendChild(a);
116
- }, E = () => {
116
+ }, D = () => {
117
117
  let a = new URL(o), L = document.createElement("style");
118
118
  fetch(a.href).then((y) => y.text()).then((y) => {
119
119
  L.innerHTML = y, setTimeout(
@@ -138,8 +138,8 @@ function I(s, e, i) {
138
138
  }, s.$$.update = () => {
139
139
  s.$$.dirty & /*ismobileview*/
140
140
  128 && r && z(), s.$$.dirty & /*clientstyling, customStylingContainer*/
141
- 34 && t && l && D(), s.$$.dirty & /*clientstylingurl, customStylingContainer*/
142
- 66 && o && l && E();
141
+ 34 && t && l && E(), s.$$.dirty & /*clientstylingurl, customStylingContainer*/
142
+ 66 && o && l && D();
143
143
  }, [
144
144
  f,
145
145
  l,
@@ -1 +1 @@
1
- "use strict";if(typeof window!="undefined"){let n=function(t){return function(...s){try{return t.apply(this,s)}catch(e){if(e instanceof DOMException&&e.message.includes("has already been used with this registry")||e.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw e}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/CashierPage-KycEkiPC.cjs")).then(({default:t})=>{!customElements.get("cashier-page")&&customElements.define("cashier-page",t.element)})}
1
+ "use strict";if(typeof window!="undefined"){let n=function(t){return function(...s){try{return t.apply(this,s)}catch(e){if(e instanceof DOMException&&e.message.includes("has already been used with this registry")||e.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw e}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/CashierPage-Dj0zbO0E.cjs")).then(({default:t})=>{!customElements.get("cashier-page")&&customElements.define("cashier-page",t.element)})}
@@ -10,7 +10,7 @@ if (typeof window != "undefined") {
10
10
  }
11
11
  };
12
12
  };
13
- customElements.define = n(customElements.define), import("../components/CashierPage-B06x-lb9.js").then(({ default: t }) => {
13
+ customElements.define = n(customElements.define), import("../components/CashierPage-BZcZChsH.js").then(({ default: t }) => {
14
14
  !customElements.get("cashier-page") && customElements.define("cashier-page", t.element);
15
15
  });
16
16
  }
@@ -1,4 +1,4 @@
1
- import { C as n } from "../components/CashierPage-D4G3vkt8.js";
1
+ import { C as n } from "../components/CashierPage-BrqHVjEo.js";
2
2
  function a(t) {
3
3
  return function(...s) {
4
4
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/cashier-page",
3
- "version": "1.60.2",
3
+ "version": "1.61.0",
4
4
  "type": "module",
5
5
  "main": "es2015/cashier-page.cjs",
6
6
  "module": "esnext/cashier-page.js",
@@ -0,0 +1,5 @@
1
+ const o = () => {
2
+ };
3
+ export {
4
+ o as g
5
+ };
@@ -0,0 +1 @@
1
+ "use strict";const s=()=>{};exports.globalScripts=s;