@everymatrix/cashier-page 1.74.0 → 1.74.2

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 (76) hide show
  1. package/components/{CashierConfirmModal-DiJy6WCC.js → CashierConfirmModal-B8OOtTE_.js} +38 -38
  2. package/components/{CashierConfirmModal-Bl65cs4j.js → CashierConfirmModal-IR_fdiwt.js} +37 -37
  3. package/components/{CashierError-DT8XXsZb.js → CashierError-DwFDMuO4.js} +538 -506
  4. package/components/{CashierError-sabBjpnx.js → CashierError-Lwv9a6Jn.js} +538 -506
  5. package/components/{CashierError-CUi7dlhw.cjs → CashierError-lygql-vp.cjs} +16 -3
  6. package/components/{CashierHeader-C87PEbuI.cjs → CashierHeader-BBFpE9tm.cjs} +1 -1
  7. package/components/{CashierHeader-B_TbzRzY.js → CashierHeader-Co4LH4OR.js} +62 -62
  8. package/components/{CashierHeader-CRNLSN-X.js → CashierHeader-DBbG_kCZ.js} +65 -65
  9. package/components/{CashierIframeRedirect-zBfOGfH0.js → CashierIframeRedirect-BifoYFS6.js} +43 -43
  10. package/components/{CashierIframeRedirect-DcI_fdtE.js → CashierIframeRedirect-DLWyFLbS.js} +43 -43
  11. package/components/{CashierIframeRedirect-q6Z4Yxd2.cjs → CashierIframeRedirect-O2R4PeFx.cjs} +1 -1
  12. package/components/CashierMethodDetails-BiDcofyV.cjs +86 -0
  13. package/components/{CashierMethodDetails-SkPBUxsi.js → CashierMethodDetails-Bv4pmeQb.js} +2752 -2747
  14. package/components/{CashierMethodDetails-CzQGZLT9.js → CashierMethodDetails-DzH-30k0.js} +2692 -2690
  15. package/components/{CashierMethodsList-BwQxzNhr.js → CashierMethodsList-B81lBh-i.js} +408 -405
  16. package/components/CashierMethodsList-CqDdABdG.cjs +1 -0
  17. package/components/{CashierMethodsList-CNZRTEmt.js → CashierMethodsList-SztGlaVA.js} +417 -414
  18. package/components/{CashierModal-C9DRbWKa.js → CashierModal-BGLiz1Q0.js} +30 -30
  19. package/components/{CashierModal-l0r5lSbV.js → CashierModal-DPdsjy2Y.js} +27 -27
  20. package/components/{CashierNotifications-BRaPHw0O.js → CashierNotifications-BVMqQF5E.js} +15 -15
  21. package/components/{CashierNotifications-C60PYJS0.js → CashierNotifications-zWfvVWp3.js} +15 -15
  22. package/components/{CashierPage-DcNLQxqw.js → CashierPage-C1gTiNOQ.js} +556 -477
  23. package/components/{CashierPage-El2u8C5N.js → CashierPage-DOm_w_Mb.js} +556 -477
  24. package/components/CashierPage-M5GWcvzG.cjs +1 -0
  25. package/components/{CashierReceiptPage-D-G8rB5N.js → CashierReceiptPage-8oBK9c-w.js} +445 -424
  26. package/components/{CashierReceiptPage-DfMEJsZx.js → CashierReceiptPage-BG1Sg3_U.js} +471 -446
  27. package/components/CashierReceiptPage-BKr9Y4z2.cjs +1 -0
  28. package/components/{CashierSessionExpirationModal-BfPvkDUo.cjs → CashierSessionExpirationModal-25t9wFGB.cjs} +1 -1
  29. package/components/{CashierSessionExpirationModal-CwWstvB8.js → CashierSessionExpirationModal-DccW5Qt4.js} +58 -49
  30. package/components/{CashierSessionExpirationModal-BuUgCatI.js → CashierSessionExpirationModal-DctA8xGg.js} +58 -49
  31. package/components/{CashierSpinner-DGvxbV84.js → CashierSpinner-BJ0-pcso.js} +13 -13
  32. package/components/{CashierSpinner-CC_b-bLQ.js → CashierSpinner-DX6FQb5G.js} +15 -15
  33. package/components/{CashierTransactionHistory-D46VIVuo.js → CashierTransactionHistory-DEhh9fZY.js} +58 -58
  34. package/components/{CashierTransactionHistory-idoNMIZM.cjs → CashierTransactionHistory-DuaiwgJ8.cjs} +1 -1
  35. package/components/{CashierTransactionHistory-DTgDyhFg.js → CashierTransactionHistory-X005hbwU.js} +75 -75
  36. package/components/{CashierVerifications-C_StTRQe.cjs → CashierVerifications-BLDRWv6W.cjs} +1 -1
  37. package/components/{CashierVerifications-3Axu0Hzv.js → CashierVerifications-CHUaPoXN.js} +35 -35
  38. package/components/{CashierVerifications-xsgXX--M.js → CashierVerifications-DLLCf8wO.js} +36 -36
  39. package/components/{CashierVideoModal-CLzErDsi.js → CashierVideoModal-4ZsB8TZ-.js} +47 -47
  40. package/components/{CashierVideoModal-CnhHqo1M.cjs → CashierVideoModal-CBlMdTrM.cjs} +1 -1
  41. package/components/{CashierVideoModal-DJJAzqj3.js → CashierVideoModal-DOrEnX7J.js} +47 -47
  42. package/es2015/cashier-page.cjs +1 -1
  43. package/es2015/cashier-page.js +1 -1
  44. package/esnext/cashier-page.js +1 -1
  45. package/package.json +1 -1
  46. package/stencil/index-97d17652-BD-QREJe.js +558 -0
  47. package/stencil/index-97d17652-DJqGt8q2.js +542 -0
  48. package/stencil/index-97d17652-tiiCeQFu.cjs +1 -0
  49. package/stencil/index-b2193545-BhpttWPO.cjs +1 -0
  50. package/stencil/index-b2193545-DWKmtYUG.js +503 -0
  51. package/stencil/index-b2193545-Dfy4Cgny.js +519 -0
  52. package/stencil/{ui-image-BWJXFWH1.js → ui-image-4dZyD9yF.js} +1 -1
  53. package/stencil/{ui-image-DIEeZy5u.js → ui-image-6u7OR3Eo.js} +1 -1
  54. package/stencil/{ui-image-ByEXiBzx.cjs → ui-image-CER01gdl.cjs} +1 -1
  55. package/stencil/{ui-image-b7b48fe5-ByRuJtdE.js → ui-image-b7b48fe5-2Ir9VtWc.js} +1 -1
  56. package/stencil/{ui-image-b7b48fe5-D6iig_uN.js → ui-image-b7b48fe5-AJGQkQBu.js} +1 -1
  57. package/stencil/{ui-image-b7b48fe5-DG83WzAo.cjs → ui-image-b7b48fe5-pdIH5TBa.cjs} +1 -1
  58. package/stencil/{ui-image_2-DdFjzzNO.cjs → ui-image_2-BGf0VFLf.cjs} +1 -1
  59. package/stencil/{ui-image_2-qO3reSlr.js → ui-image_2-Dh5Eqdlm.js} +2 -2
  60. package/stencil/{ui-image_2-Bm97-wkj.js → ui-image_2-_K8Pt3w9.js} +2 -2
  61. package/stencil/{ui-skeleton-4-zrLsIW.js → ui-skeleton-BTr272EW.js} +2 -2
  62. package/stencil/{ui-skeleton-9boHSjtG.js → ui-skeleton-P4PO_42z.js} +2 -2
  63. package/stencil/{ui-skeleton-ae35c6f2-8tYGV8SR.js → ui-skeleton-ae35c6f2-BIdXBK8D.js} +1 -1
  64. package/stencil/{ui-skeleton-ae35c6f2-IN_dPA5_.js → ui-skeleton-ae35c6f2-C7WHUwAT.js} +1 -1
  65. package/stencil/{ui-skeleton-ae35c6f2-CKgUXOQC.cjs → ui-skeleton-ae35c6f2-D-MGUxCy.cjs} +1 -1
  66. package/stencil/{ui-skeleton-_yJvAdAL.cjs → ui-skeleton-gIFE_2eg.cjs} +1 -1
  67. package/components/CashierMethodDetails-DI5D_QCF.cjs +0 -99
  68. package/components/CashierMethodsList-BuJMDLdX.cjs +0 -1
  69. package/components/CashierPage-M26PQ4uv.cjs +0 -1
  70. package/components/CashierReceiptPage-qJvPvJga.cjs +0 -1
  71. package/stencil/index-97d17652--F7PvMq9.js +0 -542
  72. package/stencil/index-97d17652-BhLhk_xz.cjs +0 -1
  73. package/stencil/index-97d17652-CCFHkzJw.js +0 -558
  74. package/stencil/index-b2193545-B8kMF2bI.cjs +0 -1
  75. package/stencil/index-b2193545-BoSqyMpB.js +0 -519
  76. package/stencil/index-b2193545-D4dOaNlR.js +0 -503
@@ -1,15 +1,15 @@
1
- import { S as it, b as nt, s as at, f as M, c as lt, n as J, e as E, m as U, p as v, v as e, w as rt, x as ot, B as ct, N as X, O as ut, g as Q, k as dt, t as ht, l as ft, z as O, o as r, q as L, A as j, E as q, Y as mt, J as vt, Z as gt, M as V, C as pt, Q as k, F as yt, G as wt, H as Tt, I as _t } from "./CashierConfirmModal-Bl65cs4j.js";
2
- import { f as Z } from "./CashierModal-C9DRbWKa.js";
3
- import { a as bt, $ as xt, i as kt, b as Ct } from "./CashierError-sabBjpnx.js";
4
- import { d as St } from "./CashierMethodDetails-SkPBUxsi.js";
5
- kt({
1
+ import { S as it, b as nt, f as M, c as at, a as lt, d as rt, g as v, j as e, k as O, n as J, v as U, w as ot, x as ct, y as ut, z as dt, F as ht, G as ft, I as q, N as X, h as L, B as j, l as r, t as V, E as mt, p as vt, q as gt, C as E, P as pt, J as yt, Y as wt, Z as Tt, L as Z, D as _t, R as k } from "./CashierConfirmModal-IR_fdiwt.js";
2
+ import { f as K } from "./CashierModal-BGLiz1Q0.js";
3
+ import { i as bt, a as xt, $ as kt, b as Ct } from "./CashierError-Lwv9a6Jn.js";
4
+ import { d as St } from "./CashierMethodDetails-Bv4pmeQb.js";
5
+ bt({
6
6
  fallbackLocale: "en"
7
7
  });
8
- function K(a, t) {
9
- bt(a, t);
8
+ function Q(a, t) {
9
+ xt(a, t);
10
10
  }
11
11
  function Ht(a) {
12
- xt.set(a);
12
+ kt.set(a);
13
13
  }
14
14
  const $ = {
15
15
  en: {
@@ -51,14 +51,14 @@ const $ = {
51
51
  }
52
52
  }
53
53
  };
54
- function zt(a) {
55
- lt(a, "svelte-1cus01h", ".svelte-1cus01h.svelte-1cus01h,.svelte-1cus01h.svelte-1cus01h::before,.svelte-1cus01h.svelte-1cus01h::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-style:inherit}.CopyTooltip.svelte-1cus01h.svelte-1cus01h{width:50%;display:flex;align-items:center;justify-content:center;background-color:var(--emw--color-primary, #7EC51E);position:absolute;top:-6px;left:50%;transform:translateX(-50%);color:var(--emw--color-white, #FFF);border-radius:var(--mmw--border-radius-medium-plus, 6px);z-index:1;opacity:1;container-name:copy-tooltip;font-size:var(--emw--font-size-medium, 16px);line-height:calc(var(--emw--font-size-medium, 16px) + 2px);padding:4px}.CashierTransactionHistoryContainer.svelte-1cus01h.svelte-1cus01h{position:relative}.CashierTransactionHistory.svelte-1cus01h.svelte-1cus01h{display:flex;flex-direction:column;position:relative;width:100%;row-gap:var(--emw--spacing-small, 12px);container-name:transaction-history;container-type:inline-size;margin-bottom:var(--emw--spacing-small, 12px)}.CashierTransactionHistory.svelte-1cus01h table.svelte-1cus01h{font-size:var(--emw--font-size-medium, 16px);word-break:break-all;width:100%;border-collapse:collapse;box-sizing:border-box;overflow:hidden;text-overflow:ellipsis;margin-bottom:var(--emw--spacing-small-minus, 10px)}.CashierTransactionHistory.svelte-1cus01h table.svelte-1cus01h:not(:last-child){margin-bottom:var(--emw--spacing-large, 20px)}.CashierTransactionHistory.svelte-1cus01h thead tr.svelte-1cus01h{border-bottom:1px solid var(--mmw--color-grey-105, #E8E9EB);color:var(--mmw--color-grey-10, #111);height:50px}.CashierTransactionHistory.svelte-1cus01h tbody tr.svelte-1cus01h{color:var(--mmw--color-grey-290, #666)}.CashierTransactionHistory.svelte-1cus01h td.svelte-1cus01h{max-width:250px;vertical-align:middle;height:40px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:0 var(--emw--spacing-large, 20px) 0 var(--emw--spacing-small, 12px)}.CashierTransactionHistory.svelte-1cus01h td:last-child .CashierTransactionHistoryStatusText.svelte-1cus01h{width:calc(100% - var(--emw--spacing-2x-small-plus, 6px) * 3 - 5px);display:block}.CashierTransactionHistory.svelte-1cus01h tr.svelte-1cus01h{position:relative}@container transaction-history (width < 750px){.CashierTransactionHistory.svelte-1cus01h .CopyTooltip.svelte-1cus01h{width:100%}.CashierTransactionHistory.svelte-1cus01h .CashierTransactionId.svelte-1cus01h{max-width:135px}.CashierTransactionHistory.svelte-1cus01h td.svelte-1cus01h{padding:0 var(--emw--spacing-small, 12px) 0 var(--emw--spacing-small, 12px)}}@container transaction-history (width < 475px){.CashierTransactionHistory.svelte-1cus01h .CashierTransactionHistoryWrapper.svelte-1cus01h{padding:0 var(--emw--spacing-2x-small-plus, 6px)}.CashierTransactionHistory.svelte-1cus01h td.svelte-1cus01h{padding:0 var(--emw--spacing-2x-small-plus, 6px)}.CashierTransactionHistory.svelte-1cus01h td.svelte-1cus01h:first-child{max-width:60px}}@container transaction-history (width < 350px){.CashierTransactionHistory.svelte-1cus01h table.svelte-1cus01h{table-layout:fixed}.CashierTransactionHistory.svelte-1cus01h table td.svelte-1cus01h{padding:0 0 0 var(--emw--spacing-small, 5px)}}.CashierTransactionHistoryWrapper.svelte-1cus01h.svelte-1cus01h{background:var(--emw--color-background, #fff);box-shadow:0 0 4px var(--mmw--color-black-transparency-10, rgba(0, 0, 0, 0.1));border-radius:var(--mmw--border-radius-medium-plus, 6px);width:100%;box-sizing:border-box;padding:0 var(--emw--spacing-small, 12px)}.CashierTransactionHistoryTitle.svelte-1cus01h.svelte-1cus01h{color:var(--mmw--color-grey-10, #111);font-size:var(--emw--font-size-medium, 16px);font-weight:var(--emw--font-weight-normal, 400);line-height:calc(var(--emw--font-size-medium, 16px) + 2px);text-align:left}.CashierTransactionId.svelte-1cus01h.svelte-1cus01h{cursor:pointer;-webkit-user-select:none;-ms-user-select:none;user-select:none}.CashierTransactionId.svelte-1cus01h.svelte-1cus01h:hover{background-color:var(--emw--color-gray-50, #F7F8FA)}.CashierTransactionHistoryStatus.svelte-1cus01h.svelte-1cus01h{display:flex;gap:5px}.CashierTransactionHistoryStatusText.svelte-1cus01h.svelte-1cus01h{line-height:calc(var(--emw--font-size-medium, 16px) + 2px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.CashierTransactionHistoryContent.svelte-1cus01h.svelte-1cus01h{width:100%;overflow:hidden}.CashierTransactionHistoryIcon.svelte-1cus01h.svelte-1cus01h{vertical-align:middle;height:var(--emw--font-size-medium, 16px);width:var(--emw--font-size-medium, 16px)}");
54
+ function Dt(a) {
55
+ rt(a, "svelte-1cus01h", ".svelte-1cus01h.svelte-1cus01h,.svelte-1cus01h.svelte-1cus01h::before,.svelte-1cus01h.svelte-1cus01h::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-style:inherit}.CopyTooltip.svelte-1cus01h.svelte-1cus01h{width:50%;display:flex;align-items:center;justify-content:center;background-color:var(--emw--color-primary, #7EC51E);position:absolute;top:-6px;left:50%;transform:translateX(-50%);color:var(--emw--color-white, #FFF);border-radius:var(--mmw--border-radius-medium-plus, 6px);z-index:1;opacity:1;container-name:copy-tooltip;font-size:var(--emw--font-size-medium, 16px);line-height:calc(var(--emw--font-size-medium, 16px) + 2px);padding:4px}.CashierTransactionHistoryContainer.svelte-1cus01h.svelte-1cus01h{position:relative}.CashierTransactionHistory.svelte-1cus01h.svelte-1cus01h{display:flex;flex-direction:column;position:relative;width:100%;row-gap:var(--emw--spacing-small, 12px);container-name:transaction-history;container-type:inline-size;margin-bottom:var(--emw--spacing-small, 12px)}.CashierTransactionHistory.svelte-1cus01h table.svelte-1cus01h{font-size:var(--emw--font-size-medium, 16px);word-break:break-all;width:100%;border-collapse:collapse;box-sizing:border-box;overflow:hidden;text-overflow:ellipsis;margin-bottom:var(--emw--spacing-small-minus, 10px)}.CashierTransactionHistory.svelte-1cus01h table.svelte-1cus01h:not(:last-child){margin-bottom:var(--emw--spacing-large, 20px)}.CashierTransactionHistory.svelte-1cus01h thead tr.svelte-1cus01h{border-bottom:1px solid var(--mmw--color-grey-105, #E8E9EB);color:var(--mmw--color-grey-10, #111);height:50px}.CashierTransactionHistory.svelte-1cus01h tbody tr.svelte-1cus01h{color:var(--mmw--color-grey-290, #666)}.CashierTransactionHistory.svelte-1cus01h td.svelte-1cus01h{max-width:250px;vertical-align:middle;height:40px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:0 var(--emw--spacing-large, 20px) 0 var(--emw--spacing-small, 12px)}.CashierTransactionHistory.svelte-1cus01h td:last-child .CashierTransactionHistoryStatusText.svelte-1cus01h{width:calc(100% - var(--emw--spacing-2x-small-plus, 6px) * 3 - 5px);display:block}.CashierTransactionHistory.svelte-1cus01h tr.svelte-1cus01h{position:relative}@container transaction-history (width < 750px){.CashierTransactionHistory.svelte-1cus01h .CopyTooltip.svelte-1cus01h{width:100%}.CashierTransactionHistory.svelte-1cus01h .CashierTransactionId.svelte-1cus01h{max-width:135px}.CashierTransactionHistory.svelte-1cus01h td.svelte-1cus01h{padding:0 var(--emw--spacing-small, 12px) 0 var(--emw--spacing-small, 12px)}}@container transaction-history (width < 475px){.CashierTransactionHistory.svelte-1cus01h .CashierTransactionHistoryWrapper.svelte-1cus01h{padding:0 var(--emw--spacing-2x-small-plus, 6px)}.CashierTransactionHistory.svelte-1cus01h td.svelte-1cus01h{padding:0 var(--emw--spacing-2x-small-plus, 6px)}.CashierTransactionHistory.svelte-1cus01h td.svelte-1cus01h:first-child{max-width:60px}}@container transaction-history (width < 350px){.CashierTransactionHistory.svelte-1cus01h table.svelte-1cus01h{table-layout:fixed}.CashierTransactionHistory.svelte-1cus01h table td.svelte-1cus01h{padding:0 0 0 var(--emw--spacing-small, 5px)}}.CashierTransactionHistoryWrapper.svelte-1cus01h.svelte-1cus01h{background:var(--emw--color-background, #fff);box-shadow:0 0 4px var(--mmw--color-black-transparency-10, rgba(0, 0, 0, 0.1));border-radius:var(--mmw--border-radius-medium-plus, 6px);width:100%;box-sizing:border-box;padding:0 var(--emw--spacing-small, 12px)}.CashierTransactionHistoryTitle.svelte-1cus01h.svelte-1cus01h{color:var(--mmw--color-grey-10, #111);font-size:var(--emw--font-size-medium, 16px);font-weight:var(--emw--font-weight-normal, 400);line-height:calc(var(--emw--font-size-medium, 16px) + 2px);text-align:left}.CashierTransactionId.svelte-1cus01h.svelte-1cus01h{cursor:pointer;-webkit-user-select:none;-ms-user-select:none;user-select:none}.CashierTransactionId.svelte-1cus01h.svelte-1cus01h:hover{background-color:var(--emw--color-gray-50, #F7F8FA)}.CashierTransactionHistoryStatus.svelte-1cus01h.svelte-1cus01h{display:flex;gap:5px}.CashierTransactionHistoryStatusText.svelte-1cus01h.svelte-1cus01h{line-height:calc(var(--emw--font-size-medium, 16px) + 2px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.CashierTransactionHistoryContent.svelte-1cus01h.svelte-1cus01h{width:100%;overflow:hidden}.CashierTransactionHistoryIcon.svelte-1cus01h.svelte-1cus01h{vertical-align:middle;height:var(--emw--font-size-medium, 16px);width:var(--emw--font-size-medium, 16px)}");
56
56
  }
57
57
  function tt(a, t, s) {
58
58
  const i = a.slice();
59
59
  return i[27] = t[s], i;
60
60
  }
61
- function Dt(a) {
61
+ function zt(a) {
62
62
  let t;
63
63
  return {
64
64
  c() {
@@ -75,7 +75,7 @@ function Dt(a) {
75
75
  ), q(t, "class", "svelte-1cus01h");
76
76
  },
77
77
  m(s, i) {
78
- U(s, t, i);
78
+ O(s, t, i);
79
79
  },
80
80
  p(s, i) {
81
81
  i & /*clientstylingurl*/
@@ -93,7 +93,7 @@ function Dt(a) {
93
93
  );
94
94
  },
95
95
  d(s) {
96
- s && E(t);
96
+ s && U(t);
97
97
  }
98
98
  };
99
99
  }
@@ -101,7 +101,7 @@ function It(a) {
101
101
  let t, s, i, l = (
102
102
  /*$_*/
103
103
  a[8]("transactionHistoryTitle") + ""
104
- ), o, c, f, T, C, S, w, D, I = (
104
+ ), o, c, f, T, C, S, w, z, I = (
105
105
  /*$_*/
106
106
  a[8]("transactionIdTitle") + ""
107
107
  ), P, H, g, B = (
@@ -110,7 +110,7 @@ function It(a) {
110
110
  ), A, x, R, F = (
111
111
  /*$_*/
112
112
  a[8]("transactionTypeTitle") + ""
113
- ), W, Y, N, z = (
113
+ ), W, Y, N, D = (
114
114
  /*$_*/
115
115
  a[8]("transactionStatusTitle") + ""
116
116
  ), p, u, b, n = (
@@ -124,13 +124,13 @@ function It(a) {
124
124
  m[h] = st(tt(a, d, h));
125
125
  return {
126
126
  c() {
127
- t = v("div"), n && n.c(), s = L(), i = v("h3"), o = j(l), c = L(), f = v("div"), T = v("div"), C = v("table"), S = v("thead"), w = v("tr"), D = v("td"), P = j(I), H = L(), g = v("td"), A = j(B), x = L(), R = v("td"), W = j(F), Y = L(), N = v("td"), p = j(z), u = L(), b = v("tbody");
127
+ t = v("div"), n && n.c(), s = L(), i = v("h3"), o = j(l), c = L(), f = v("div"), T = v("div"), C = v("table"), S = v("thead"), w = v("tr"), z = v("td"), P = j(I), H = L(), g = v("td"), A = j(B), x = L(), R = v("td"), W = j(F), Y = L(), N = v("td"), p = j(D), u = L(), b = v("tbody");
128
128
  for (let h = 0; h < m.length; h += 1)
129
129
  m[h].c();
130
- e(i, "class", "CashierTransactionHistoryTitle svelte-1cus01h"), e(D, "class", "svelte-1cus01h"), e(g, "class", "svelte-1cus01h"), e(R, "class", "svelte-1cus01h"), e(N, "class", "svelte-1cus01h"), e(w, "class", "svelte-1cus01h"), e(S, "class", "svelte-1cus01h"), e(b, "class", "svelte-1cus01h"), e(C, "class", "svelte-1cus01h"), e(T, "class", "CashierTransactionHistoryContent svelte-1cus01h"), e(f, "class", "CashierTransactionHistoryWrapper svelte-1cus01h"), e(t, "class", "CashierTransactionHistory svelte-1cus01h");
130
+ e(i, "class", "CashierTransactionHistoryTitle svelte-1cus01h"), e(z, "class", "svelte-1cus01h"), e(g, "class", "svelte-1cus01h"), e(R, "class", "svelte-1cus01h"), e(N, "class", "svelte-1cus01h"), e(w, "class", "svelte-1cus01h"), e(S, "class", "svelte-1cus01h"), e(b, "class", "svelte-1cus01h"), e(C, "class", "svelte-1cus01h"), e(T, "class", "CashierTransactionHistoryContent svelte-1cus01h"), e(f, "class", "CashierTransactionHistoryWrapper svelte-1cus01h"), e(t, "class", "CashierTransactionHistory svelte-1cus01h");
131
131
  },
132
132
  m(h, y) {
133
- U(h, t, y), n && n.m(t, null), r(t, s), r(t, i), r(i, o), r(t, c), r(t, f), r(f, T), r(T, C), r(C, S), r(S, w), r(w, D), r(D, P), r(w, H), r(w, g), r(g, A), r(w, x), r(w, R), r(R, W), r(w, Y), r(w, N), r(N, p), r(C, u), r(C, b);
133
+ O(h, t, y), n && n.m(t, null), r(t, s), r(t, i), r(i, o), r(t, c), r(t, f), r(f, T), r(T, C), r(C, S), r(S, w), r(w, z), r(z, P), r(w, H), r(w, g), r(g, A), r(w, x), r(w, R), r(R, W), r(w, Y), r(w, N), r(N, p), r(C, u), r(C, b);
134
134
  for (let _ = 0; _ < m.length; _ += 1)
135
135
  m[_] && m[_].m(b, null);
136
136
  a[18](t);
@@ -138,19 +138,19 @@ function It(a) {
138
138
  p(h, y) {
139
139
  if (/*copied*/
140
140
  h[5] ? n ? (n.p(h, y), y & /*copied*/
141
- 32 && Q(n, 1)) : (n = et(h), n.c(), Q(n, 1), n.m(t, s)) : n && (dt(), ht(n, 1, 1, () => {
141
+ 32 && V(n, 1)) : (n = et(h), n.c(), V(n, 1), n.m(t, s)) : n && (mt(), vt(n, 1, 1, () => {
142
142
  n = null;
143
- }), ft()), y & /*$_*/
143
+ }), gt()), y & /*$_*/
144
144
  256 && l !== (l = /*$_*/
145
- h[8]("transactionHistoryTitle") + "") && O(o, l), y & /*$_*/
145
+ h[8]("transactionHistoryTitle") + "") && E(o, l), y & /*$_*/
146
146
  256 && I !== (I = /*$_*/
147
- h[8]("transactionIdTitle") + "") && O(P, I), y & /*$_*/
147
+ h[8]("transactionIdTitle") + "") && E(P, I), y & /*$_*/
148
148
  256 && B !== (B = /*$_*/
149
- h[8]("transactionDateTitle") + "") && O(A, B), y & /*$_*/
149
+ h[8]("transactionDateTitle") + "") && E(A, B), y & /*$_*/
150
150
  256 && F !== (F = /*$_*/
151
- h[8]("transactionTypeTitle") + "") && O(W, F), y & /*$_*/
152
- 256 && z !== (z = /*$_*/
153
- h[8]("transactionStatusTitle") + "") && O(p, z), y & /*$_, txnHistory, TransactionMainStatus, copied, copyToClipboard*/
151
+ h[8]("transactionTypeTitle") + "") && E(W, F), y & /*$_*/
152
+ 256 && D !== (D = /*$_*/
153
+ h[8]("transactionStatusTitle") + "") && E(p, D), y & /*$_, txnHistory, TransactionMainStatus, copied, copyToClipboard*/
154
154
  944) {
155
155
  d = X(
156
156
  /*txnHistory*/
@@ -167,7 +167,7 @@ function It(a) {
167
167
  }
168
168
  },
169
169
  d(h) {
170
- h && E(t), n && n.d(), ut(m, h), a[18](null);
170
+ h && U(t), n && n.d(), pt(m, h), a[18](null);
171
171
  }
172
172
  };
173
173
  }
@@ -181,26 +181,26 @@ function et(a) {
181
181
  t = v("div"), i = j(s), e(t, "class", "CopyTooltip svelte-1cus01h");
182
182
  },
183
183
  m(f, T) {
184
- U(f, t, T), r(t, i), c = !0;
184
+ O(f, t, T), r(t, i), c = !0;
185
185
  },
186
186
  p(f, T) {
187
187
  a = f, (!c || T & /*$_*/
188
188
  256) && s !== (s = /*$_*/
189
- a[8]("copyTransactionId") + "") && O(i, s);
189
+ a[8]("copyTransactionId") + "") && E(i, s);
190
190
  },
191
191
  i(f) {
192
- c || (f && vt(() => {
193
- c && (o && o.end(1), l = gt(t, Z, { duration: 100 }), l.start());
192
+ c || (f && yt(() => {
193
+ c && (o && o.end(1), l = wt(t, K, { duration: 100 }), l.start());
194
194
  }), c = !0);
195
195
  },
196
196
  o(f) {
197
- l && l.invalidate(), f && (o = mt(t, Z, { duration: (
197
+ l && l.invalidate(), f && (o = Tt(t, K, { duration: (
198
198
  /*tooltipduration*/
199
199
  a[2]
200
200
  ) })), c = !1;
201
201
  },
202
202
  d(f) {
203
- f && E(t), f && o && o.end();
203
+ f && U(t), f && o && o.end();
204
204
  }
205
205
  };
206
206
  }
@@ -211,10 +211,10 @@ function At(a) {
211
211
  t = k("svg"), s = k("circle"), i = k("path"), e(s, "cx", "12"), e(s, "cy", "12"), e(s, "r", "10"), e(s, "stroke", "#25bf00"), e(s, "stroke-width", "2"), e(s, "class", "svelte-1cus01h"), e(i, "d", "M8 12L11 15L16 9"), e(i, "stroke", "#25bf00"), e(i, "stroke-width", "2"), e(i, "stroke-linecap", "round"), e(i, "stroke-linejoin", "round"), e(i, "class", "svelte-1cus01h"), e(t, "width", "18"), e(t, "height", "18"), e(t, "viewBox", "0 0 24 24"), e(t, "fill", "none"), e(t, "xmlns", "http://www.w3.org/2000/svg"), e(t, "class", "svelte-1cus01h");
212
212
  },
213
213
  m(l, o) {
214
- U(l, t, o), r(t, s), r(t, i);
214
+ O(l, t, o), r(t, s), r(t, i);
215
215
  },
216
216
  d(l) {
217
- l && E(t);
217
+ l && U(t);
218
218
  }
219
219
  };
220
220
  }
@@ -225,10 +225,10 @@ function Ft(a) {
225
225
  t = k("svg"), s = k("circle"), i = k("text"), l = j("R"), e(s, "cx", "12"), e(s, "cy", "12"), e(s, "r", "10"), e(s, "stroke", "#dd6617d4"), e(s, "stroke-width", "2"), e(s, "class", "svelte-1cus01h"), e(i, "x", "50%"), e(i, "y", "54%"), e(i, "text-anchor", "middle"), e(i, "dominant-baseline", "middle"), e(i, "font-size", "14"), e(i, "font-weight", "bold"), e(i, "fill", "#dd6617d4"), e(i, "font-family", "Arial Rounded MT Bold, Arial, sans-serif"), e(i, "class", "svelte-1cus01h"), e(t, "width", "18"), e(t, "height", "18"), e(t, "viewBox", "0 0 24 24"), e(t, "fill", "none"), e(t, "xmlns", "http://www.w3.org/2000/svg"), e(t, "class", "svelte-1cus01h");
226
226
  },
227
227
  m(o, c) {
228
- U(o, t, c), r(t, s), r(t, i), r(i, l);
228
+ O(o, t, c), r(t, s), r(t, i), r(i, l);
229
229
  },
230
230
  d(o) {
231
- o && E(t);
231
+ o && U(t);
232
232
  }
233
233
  };
234
234
  }
@@ -239,10 +239,10 @@ function jt(a) {
239
239
  t = k("svg"), s = k("circle"), i = k("path"), e(s, "cx", "12"), e(s, "cy", "12"), e(s, "r", "10"), e(s, "stroke", "#f0a85f"), e(s, "stroke-width", "2"), e(s, "class", "svelte-1cus01h"), e(i, "d", "M12 7V12L15 14"), e(i, "stroke", "#f0a85f"), e(i, "stroke-width", "2"), e(i, "stroke-linecap", "round"), e(i, "stroke-linejoin", "round"), e(i, "class", "svelte-1cus01h"), e(t, "width", "18"), e(t, "height", "18"), e(t, "viewBox", "0 0 24 24"), e(t, "fill", "none"), e(t, "xmlns", "http://www.w3.org/2000/svg"), e(t, "class", "svelte-1cus01h");
240
240
  },
241
241
  m(l, o) {
242
- U(l, t, o), r(t, s), r(t, i);
242
+ O(l, t, o), r(t, s), r(t, i);
243
243
  },
244
244
  d(l) {
245
- l && E(t);
245
+ l && U(t);
246
246
  }
247
247
  };
248
248
  }
@@ -253,10 +253,10 @@ function Pt(a) {
253
253
  t = k("svg"), s = k("circle"), i = k("path"), e(s, "cx", "12"), e(s, "cy", "12"), e(s, "r", "10"), e(s, "stroke", "#e76049"), e(s, "stroke-width", "2"), e(s, "class", "svelte-1cus01h"), e(i, "d", "M9 9L15 15M15 9L9 15"), e(i, "stroke", "#e76049"), e(i, "stroke-width", "2"), e(i, "stroke-linecap", "round"), e(i, "stroke-linejoin", "round"), e(i, "class", "svelte-1cus01h"), e(t, "width", "18"), e(t, "height", "18"), e(t, "viewBox", "0 0 24 24"), e(t, "fill", "none"), e(t, "xmlns", "http://www.w3.org/2000/svg"), e(t, "class", "svelte-1cus01h");
254
254
  },
255
255
  m(l, o) {
256
- U(l, t, o), r(t, s), r(t, i);
256
+ O(l, t, o), r(t, s), r(t, i);
257
257
  },
258
258
  d(l) {
259
- l && E(t);
259
+ l && U(t);
260
260
  }
261
261
  };
262
262
  }
@@ -267,10 +267,10 @@ function Rt(a) {
267
267
  t = k("svg"), s = k("circle"), i = k("text"), l = j("A"), e(s, "cx", "12"), e(s, "cy", "12"), e(s, "r", "10"), e(s, "stroke", "#32b398"), e(s, "stroke-width", "2"), e(s, "class", "svelte-1cus01h"), e(i, "x", "50%"), e(i, "y", "54%"), e(i, "text-anchor", "middle"), e(i, "dominant-baseline", "middle"), e(i, "font-size", "14"), e(i, "font-weight", "bold"), e(i, "fill", "#32b398"), e(i, "font-family", "Arial Rounded MT Bold, Arial, sans-serif"), e(i, "class", "svelte-1cus01h"), e(t, "width", "18"), e(t, "height", "18"), e(t, "viewBox", "0 0 24 24"), e(t, "fill", "none"), e(t, "xmlns", "http://www.w3.org/2000/svg"), e(t, "class", "svelte-1cus01h");
268
268
  },
269
269
  m(o, c) {
270
- U(o, t, c), r(t, s), r(t, i), r(i, l);
270
+ O(o, t, c), r(t, s), r(t, i), r(i, l);
271
271
  },
272
272
  d(o) {
273
- o && E(t);
273
+ o && U(t);
274
274
  }
275
275
  };
276
276
  }
@@ -285,7 +285,7 @@ function st(a) {
285
285
  /*$_*/
286
286
  a[8](`transactionType.${/*transaction*/
287
287
  a[27].Type}`) + ""
288
- ), D, I, P, H, g, B, A, x = (
288
+ ), z, I, P, H, g, B, A, x = (
289
289
  /*$_*/
290
290
  a[8](`transactionStatus.${/*transaction*/
291
291
  a[27].Status}`) + ""
@@ -322,10 +322,10 @@ function st(a) {
322
322
  )
323
323
  return At;
324
324
  }
325
- let z = N(a), p = z && z(a);
325
+ let D = N(a), p = D && D(a);
326
326
  return {
327
327
  c() {
328
- t = v("tr"), s = v("td"), l = j(i), o = L(), c = v("td"), T = j(f), C = L(), S = v("td"), D = j(w), I = L(), P = v("td"), H = v("div"), g = v("span"), p && p.c(), B = L(), A = v("span"), R = j(x), F = L(), e(s, "class", "CashierTransactionId svelte-1cus01h"), V(
328
+ t = v("tr"), s = v("td"), l = j(i), o = L(), c = v("td"), T = j(f), C = L(), S = v("td"), z = j(w), I = L(), P = v("td"), H = v("div"), g = v("span"), p && p.c(), B = L(), A = v("span"), R = j(x), F = L(), e(s, "class", "CashierTransactionId svelte-1cus01h"), Z(
329
329
  s,
330
330
  "copied",
331
331
  /*copied*/
@@ -333,7 +333,7 @@ function st(a) {
333
333
  ), e(c, "class", "svelte-1cus01h"), e(S, "class", "svelte-1cus01h"), e(g, "class", "CashierTransactionHistoryIcon svelte-1cus01h"), e(A, "class", "CashierTransactionHistoryStatusText svelte-1cus01h"), e(H, "class", "CashierTransactionHistoryStatus svelte-1cus01h"), e(P, "class", "svelte-1cus01h"), e(t, "class", "svelte-1cus01h");
334
334
  },
335
335
  m(u, b) {
336
- U(u, t, b), r(t, s), r(s, l), r(t, o), r(t, c), r(c, T), r(t, C), r(t, S), r(S, D), r(t, I), r(t, P), r(P, H), r(H, g), p && p.m(g, null), r(H, B), r(H, A), r(A, R), r(t, F), W || (Y = pt(
336
+ O(u, t, b), r(t, s), r(s, l), r(t, o), r(t, c), r(c, T), r(t, C), r(t, S), r(S, z), r(t, I), r(t, P), r(P, H), r(H, g), p && p.m(g, null), r(H, B), r(H, A), r(A, R), r(t, F), W || (Y = _t(
337
337
  s,
338
338
  "mousedown",
339
339
  /*mousedown_handler*/
@@ -343,24 +343,24 @@ function st(a) {
343
343
  p(u, b) {
344
344
  b & /*txnHistory*/
345
345
  16 && i !== (i = /*transaction*/
346
- u[27].Code + "") && O(l, i), b & /*copied*/
347
- 32 && V(
346
+ u[27].Code + "") && E(l, i), b & /*copied*/
347
+ 32 && Z(
348
348
  s,
349
349
  "copied",
350
350
  /*copied*/
351
351
  u[5]
352
352
  ), b & /*txnHistory*/
353
353
  16 && f !== (f = /*transaction*/
354
- u[27].Date + "") && O(T, f), b & /*$_, txnHistory*/
354
+ u[27].Date + "") && E(T, f), b & /*$_, txnHistory*/
355
355
  272 && w !== (w = /*$_*/
356
356
  u[8](`transactionType.${/*transaction*/
357
- u[27].Type}`) + "") && O(D, w), z !== (z = N(u)) && (p && p.d(1), p = z && z(u), p && (p.c(), p.m(g, null))), b & /*$_, txnHistory*/
357
+ u[27].Type}`) + "") && E(z, w), D !== (D = N(u)) && (p && p.d(1), p = D && D(u), p && (p.c(), p.m(g, null))), b & /*$_, txnHistory*/
358
358
  272 && x !== (x = /*$_*/
359
359
  u[8](`transactionStatus.${/*transaction*/
360
- u[27].Status}`) + "") && O(R, x);
360
+ u[27].Status}`) + "") && E(R, x);
361
361
  },
362
362
  d(u) {
363
- u && E(t), p && p.d(), W = !1, Y();
363
+ u && U(t), p && p.d(), W = !1, Y();
364
364
  }
365
365
  };
366
366
  }
@@ -376,7 +376,7 @@ function Lt(a) {
376
376
  /*isLoading*/
377
377
  o[6]
378
378
  )
379
- return Dt;
379
+ return zt;
380
380
  }
381
381
  let i = s(a), l = i && i(a);
382
382
  return {
@@ -384,7 +384,7 @@ function Lt(a) {
384
384
  t = v("div"), l && l.c(), e(t, "class", "CashierTransactionHistoryContainer svelte-1cus01h");
385
385
  },
386
386
  m(o, c) {
387
- U(o, t, c), l && l.m(t, null);
387
+ O(o, t, c), l && l.m(t, null);
388
388
  },
389
389
  p(o, [c]) {
390
390
  i === (i = s(o)) && l ? l.p(o, c) : (l && l.d(1), l = i && i(o), l && (l.c(), l.m(t, null)));
@@ -392,15 +392,15 @@ function Lt(a) {
392
392
  i: J,
393
393
  o: J,
394
394
  d(o) {
395
- o && E(t), l && l.d();
395
+ o && U(t), l && l.d();
396
396
  }
397
397
  };
398
398
  }
399
399
  const Bt = "DD.MM.YYYY";
400
400
  function Mt(a, t, s) {
401
401
  let i;
402
- rt(a, Ct, (n) => s(8, i = n));
403
- let { endpoint: l } = t, { session: o } = t, { lang: c = "en" } = t, { customerid: f } = t, { clientstyling: T = "" } = t, { clientstylingurl: C = "" } = t, { translationurl: S } = t, { tooltipduration: w = 1e3 } = t, { txncount: D = 3 } = t, { mbsource: I = "" } = t, P = [], H = !1, g, B, A = !1;
402
+ ot(a, Ct, (n) => s(8, i = n));
403
+ let { endpoint: l } = t, { session: o } = t, { lang: c = "en" } = t, { customerid: f } = t, { clientstyling: T = "" } = t, { clientstylingurl: C = "" } = t, { translationurl: S } = t, { tooltipduration: w = 1e3 } = t, { txncount: z = 3 } = t, { mbsource: I = "" } = t, P = [], H = !1, g, B, A = !1;
404
404
  var x;
405
405
  (function(n) {
406
406
  n.Deposit = "deposit", n.Withdraw = "withdraw", n.Refund = "refund", n.Unknown = "unknown", n.TaxDeduction = "taxDeduction";
@@ -420,21 +420,21 @@ function Mt(a, t, s) {
420
420
  var F;
421
421
  (function(n) {
422
422
  n.Authorized = "Authorized", n.Success = "Success", n.Failed = "Failed", n.Rejected = "Rejected", n.Pending = "Pending";
423
- })(F || (F = {})), ot(() => () => {
423
+ })(F || (F = {})), ct(() => () => {
424
424
  });
425
425
  const W = () => {
426
426
  let n = S;
427
427
  if (n)
428
428
  return fetch(n).then((d) => d.json()).then((d) => {
429
429
  Object.keys(d).forEach((m) => {
430
- K(m, d[m]);
430
+ Q(m, d[m]);
431
431
  });
432
432
  }).catch((d) => {
433
433
  console.log(d);
434
434
  });
435
435
  };
436
436
  Object.keys($).forEach((n) => {
437
- K(n, $[n]);
437
+ Q(n, $[n]);
438
438
  });
439
439
  const Y = () => {
440
440
  Ht(c);
@@ -448,7 +448,7 @@ function Mt(a, t, s) {
448
448
  body: JSON.stringify({
449
449
  language: c,
450
450
  customerId: f,
451
- count: D,
451
+ count: z,
452
452
  page: 0,
453
453
  fromDate: m,
454
454
  toDate: null,
@@ -463,9 +463,9 @@ function Mt(a, t, s) {
463
463
  })
464
464
  };
465
465
  s(6, A = !0), fetch(n, h).then((y) => y.json()).then((y) => {
466
- s(4, P = z((y == null ? void 0 : y.items) || []));
466
+ s(4, P = D((y == null ? void 0 : y.items) || []));
467
467
  }).catch((y) => console.log(y)).finally(() => s(6, A = !1));
468
- }, z = (n) => n.map((d) => {
468
+ }, D = (n) => n.map((d) => {
469
469
  let m = d.generalFields.status;
470
470
  return d.generalFields.status.toLowerCase().includes("pending") && (m = F.Pending), {
471
471
  Code: d.generalFields.code,
@@ -487,20 +487,20 @@ function Mt(a, t, s) {
487
487
  });
488
488
  }, u = (n) => p(n);
489
489
  function b(n) {
490
- ct[n ? "unshift" : "push"](() => {
490
+ ht[n ? "unshift" : "push"](() => {
491
491
  g = n, s(3, g);
492
492
  });
493
493
  }
494
494
  return a.$$set = (n) => {
495
- "endpoint" in n && s(10, l = n.endpoint), "session" in n && s(11, o = n.session), "lang" in n && s(12, c = n.lang), "customerid" in n && s(13, f = n.customerid), "clientstyling" in n && s(0, T = n.clientstyling), "clientstylingurl" in n && s(1, C = n.clientstylingurl), "translationurl" in n && s(14, S = n.translationurl), "tooltipduration" in n && s(2, w = n.tooltipduration), "txncount" in n && s(15, D = n.txncount), "mbsource" in n && s(16, I = n.mbsource);
495
+ "endpoint" in n && s(10, l = n.endpoint), "session" in n && s(11, o = n.session), "lang" in n && s(12, c = n.lang), "customerid" in n && s(13, f = n.customerid), "clientstyling" in n && s(0, T = n.clientstyling), "clientstylingurl" in n && s(1, C = n.clientstylingurl), "translationurl" in n && s(14, S = n.translationurl), "tooltipduration" in n && s(2, w = n.tooltipduration), "txncount" in n && s(15, z = n.txncount), "mbsource" in n && s(16, I = n.mbsource);
496
496
  }, a.$$.update = () => {
497
497
  a.$$.dirty & /*lang*/
498
498
  4096 && c && Y(), a.$$.dirty & /*clientstyling, customStylingContainer*/
499
- 9 && T && g && yt(g, T), a.$$.dirty & /*clientstylingurl, customStylingContainer*/
500
- 10 && C && g && wt(g, C), a.$$.dirty & /*endpoint, session, customerid, lang*/
499
+ 9 && T && g && ft(g, T), a.$$.dirty & /*clientstylingurl, customStylingContainer*/
500
+ 10 && C && g && ut(g, C), a.$$.dirty & /*endpoint, session, customerid, lang*/
501
501
  15360 && l && o && f && c && N(), a.$$.dirty & /*translationurl*/
502
502
  16384 && S && W(), a.$$.dirty & /*mbsource, customStylingContainer*/
503
- 65544 && I && g && Tt(g, `${I}.Style`);
503
+ 65544 && I && g && dt(g, `${I}.Style`);
504
504
  }, [
505
505
  T,
506
506
  C,
@@ -517,20 +517,20 @@ function Mt(a, t, s) {
517
517
  c,
518
518
  f,
519
519
  S,
520
- D,
520
+ z,
521
521
  I,
522
522
  u,
523
523
  b
524
524
  ];
525
525
  }
526
- class Ot extends it {
526
+ class Et extends it {
527
527
  constructor(t) {
528
528
  super(), nt(
529
529
  this,
530
530
  t,
531
531
  Mt,
532
532
  Lt,
533
- at,
533
+ lt,
534
534
  {
535
535
  endpoint: 10,
536
536
  session: 11,
@@ -543,7 +543,7 @@ class Ot extends it {
543
543
  txncount: 15,
544
544
  mbsource: 16
545
545
  },
546
- zt
546
+ Dt
547
547
  );
548
548
  }
549
549
  get endpoint() {
@@ -607,7 +607,7 @@ class Ot extends it {
607
607
  this.$$set({ mbsource: t }), M();
608
608
  }
609
609
  }
610
- _t(Ot, { endpoint: {}, session: {}, lang: {}, customerid: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, tooltipduration: {}, txncount: {}, mbsource: {} }, [], [], !0);
610
+ at(Et, { endpoint: {}, session: {}, lang: {}, customerid: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, tooltipduration: {}, txncount: {}, mbsource: {} }, [], [], !0);
611
611
  export {
612
- Ot as default
612
+ Et as default
613
613
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./CashierConfirmModal-Dbth1Vwp.cjs"),T=require("./CashierError-CUi7dlhw.cjs"),O=require("./CashierMethodDetails-DI5D_QCF.cjs");function W(r,t){T.addMessages(r,t)}function ye(r){T.init({fallbackLocale:"en"}),T.$locale.set(r)}const Y={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(a){if(a instanceof DOMException&&a.message.includes("has already been used with this registry")||a.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw a}}};customElements.define=r(customElements.define),Promise.resolve().then(()=>require("./CashierVideoModal-CnhHqo1M.cjs")).then(({default:t})=>{!customElements.get("cashier-video-modal")&&customElements.define("cashier-video-modal",t.element)})}function ke(r){i.append_styles(r,"svelte-3ui5us","*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;-webkit-tap-highlight-color:transparent}.CashierVerifications{position:relative;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 K(r,t,o){const a=r.slice();return a[54]=t[o],a[56]=o,a}function _e(r){let t,o,a,s,c=i.ensure_array_like(r[4]),d=[];for(let f=0;f<c.length;f+=1)d[f]=Z(K(r,c,f));let m=r[7]&&J(r);return{c(){t=i.element("div");for(let f=0;f<d.length;f+=1)d[f].c();o=i.space(),m&&m.c(),a=i.space(),s=i.element("cashier-video-modal"),i.attr(t,"class","CashierVerificationsWrapper"),i.set_custom_element_data(s,"clientstylingurl",r[1]),i.set_custom_element_data(s,"clientstyling",r[0]),i.set_custom_element_data(s,"ismobileview",r[2]),i.set_custom_element_data(s,"videosrc",r[8])},m(f,h){i.insert(f,t,h);for(let l=0;l<d.length;l+=1)d[l]&&d[l].m(t,null);i.insert(f,o,h),m&&m.m(f,h),i.insert(f,a,h),i.insert(f,s,h)},p(f,h){if(h[0]&2096){c=i.ensure_array_like(f[4]);let l;for(l=0;l<c.length;l+=1){const y=K(f,c,l);d[l]?d[l].p(y,h):(d[l]=Z(y),d[l].c(),d[l].m(t,null))}for(;l<d.length;l+=1)d[l].d(1);d.length=c.length}f[7]?m?m.p(f,h):(m=J(f),m.c(),m.m(a.parentNode,a)):m&&(m.d(1),m=null),h[0]&2&&i.set_custom_element_data(s,"clientstylingurl",f[1]),h[0]&1&&i.set_custom_element_data(s,"clientstyling",f[0]),h[0]&4&&i.set_custom_element_data(s,"ismobileview",f[2]),h[0]&256&&i.set_custom_element_data(s,"videosrc",f[8])},d(f){f&&(i.detach(t),i.detach(o),i.detach(a),i.detach(s)),i.destroy_each(d,f),m&&m.d(f)}}}function be(r){let t;return{c(){t=i.element("cashier-spinner"),i.set_custom_element_data(t,"clientstylingurl",r[1]),i.set_custom_element_data(t,"clientstyling",r[0])},m(o,a){i.insert(o,t,a)},p(o,a){a[0]&2&&i.set_custom_element_data(t,"clientstylingurl",o[1]),a[0]&1&&i.set_custom_element_data(t,"clientstyling",o[0])},d(o){o&&i.detach(t)}}}function G(r){let t,o,a;function s(...c){return r[21](r[56],...c)}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(c,d){i.insert(c,t,d),o||(a=i.listen(t,"click",s),o=!0)},p(c,d){r=c},d(c){c&&i.detach(t),o=!1,a()}}}function Z(r){let t,o,a,s,c=r[54]+"",d,m,f,h,l=r[4].length>1&&r[56]===0&&G(r);function y(...v){return r[22](r[56],...v)}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>',a=i.space(),s=i.element("p"),d=i.space(),l&&l.c(),m=i.space(),i.attr(o,"class","IconVerification"),i.attr(s,"class","text"),i.attr(t,"class","CashierVerificationMessage"),i.toggle_class(t,"ShowAll",r[5])},m(v,w){i.insert(v,t,w),i.append(t,o),i.append(t,a),i.append(t,s),s.innerHTML=c,i.append(t,d),l&&l.m(t,null),i.append(t,m),f||(h=i.listen(t,"click",y),f=!0)},p(v,w){r=v,w[0]&16&&c!==(c=r[54]+"")&&(s.innerHTML=c),r[4].length>1&&r[56]===0?l?l.p(r,w):(l=G(r),l.c(),l.m(t,m)):l&&(l.d(1),l=null),w[0]&32&&i.toggle_class(t,"ShowAll",r[5])},d(v){v&&i.detach(t),l&&l.d(),f=!1,h()}}}function J(r){let t,o,a,s,c=r[10]("verification.video.how-to")+"",d,m,f;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>',a=i.space(),s=i.element("div"),d=i.text(c),i.attr(o,"class","IconVideo"),i.attr(s,"class","CashierVerificationVideoLink"),i.toggle_class(s,"CashierVerificationVideoLinkDesktop",r[6]),i.attr(t,"class","CashierVerificationVideo")},m(h,l){i.insert(h,t,l),i.append(t,o),i.append(t,a),i.append(t,s),i.append(s,d),m||(f=i.listen(s,"click",r[23]),m=!0)},p(h,l){l[0]&1024&&c!==(c=h[10]("verification.video.how-to")+"")&&i.set_data(d,c),l[0]&64&&i.toggle_class(s,"CashierVerificationVideoLinkDesktop",h[6])},d(h){h&&i.detach(t),m=!1,f()}}}function Ve(r){let t;function o(c,d){if(c[9])return be;if(c[4])return _e}let a=o(r),s=a&&a(r);return{c(){t=i.element("div"),s&&s.c(),i.attr(t,"class","CashierVerifications"),i.toggle_class(t,"CashierVerificationsDesktop",r[6])},m(c,d){i.insert(c,t,d),s&&s.m(t,null),r[24](t)},p(c,d){a===(a=o(c))&&s?s.p(c,d):(s&&s.d(1),s=a&&a(c),s&&(s.c(),s.m(t,null))),d[0]&64&&i.toggle_class(t,"CashierVerificationsDesktop",c[6])},i:i.noop,o:i.noop,d(c){c&&i.detach(t),s&&s.d(),r[24](null)}}}const Pe="verification_explanation_video_widgets.MP4";function De(r,t,o){let a,s;i.component_subscribe(r,T.$format,e=>o(10,a=e)),i.component_subscribe(r,O.xPaymentSessionToken,e=>o(30,s=e)),O.dayjs.extend(O.utc);let{endpoint:c}=t,{lang:d="en"}=t,{translationurl:m=""}=t,{clientstyling:f=""}=t,{clientstylingurl:h=""}=t,{session:l=""}=t,{customerid:y=""}=t,{ismobileview:v=""}=t,{playersession:w=""}=t,{mbsource:D=""}=t,_,I=new Set,E=new Set,S,C,M,B=!0,R=!0,q=!1,L="",F=!1;var V;(function(e){e.Manual="Manual",e.ShuftiPro="ShuftiPro"})(V||(V={}));var x;(function(e){e.Requested="Requested"})(x||(x={}));var g;(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"})(g||(g={}));var P;(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"})(P||(P={})),i.onMount(()=>()=>{});const Q=[g.InProgress,g.Referred,g.AwaitingForResponse],$=()=>{let e=m;if(e)return fetch(e).then(n=>n.json()).then(n=>{Object.keys(n).forEach(u=>{W(u,n[u])})}).catch(n=>{console.log(n)})};Object.keys(Y).forEach(e=>{W(e,Y[e])});const ee=()=>{ye(d)},U=()=>{o(20,C=re());const e=new URL(`${c}/v1/player/${y}/verification/GetKYCCustomerStatus?language=${d}`),n=new Headers;n.append("accept","application/json"),n.append("Content-Type","application/json"),n.append("x-sessionid",`${w}`),n.append("X-Client-Request-Timestamp",O.dayjs.utc().format("YYYY-MM-DD HH:mm:ss.SSS"));const u={method:"POST",headers:n,body:JSON.stringify({})};o(9,F=!0),fetch(e,u).then(p=>p.json()).then(p=>{const k=ie(p==null?void 0:p.Verifications);S=oe(k),S.VerificationStatuses.forEach(A=>{A.VerificationUrlType!=="Widget"&&I.add(A.Vendor)}),o(4,M=H())}).finally(()=>o(9,F=!1))},ie=e=>e?e.sort((n,u)=>new Date(u.Created).getTime()-new Date(n.Created).getTime()):[],te=()=>{s&&U()},re=()=>{let e=(l||s).split(".")[1];if(e){let n=JSON.parse(atob(e));return n.cdn+"/cashier/operator-assets/"+(n==null?void 0:n.mid)}return""},oe=e=>{var u;if(!e||!e.length)return{VerificationSummaryStatus:g.Unverified,VerificationStatuses:[]};const n=se(e);if(n&&n.length){const p=ne(n);return{VerificationSummaryStatus:p.Status,VerificationUrl:(u=p.Flags)==null?void 0:u.DeferredUrlKey,VerificationStatuses:j(n,p.Status)}}else return{VerificationSummaryStatus:e.some(k=>k.Status===g.Failed)?g.Failed:g.Verified,VerificationStatuses:j(e,[g.Failed])}},ne=e=>e.reduce((n,u)=>n?new Date(n)<new Date(u)?u:n:u,0),j=(e,n)=>e.filter(u=>n.includes(u.Status)).map(u=>{var p,k;return{Type:u.Type,Vendor:u.VendorName,VerificationDocuments:u.Documents?[...u.Documents]:[],VerificationUrlType:(p=u.FlowInfo)==null?void 0:p.Type,VerificationUrl:(k=u.FlowInfo)==null?void 0:k.Url}}),se=e=>e.filter(n=>Q.includes(n.Status)?n.FlowInfo&&n.FlowInfo.Url||ae(n)||le(n):!1),ae=e=>{const n=e.Documents&&e.VendorName===V.Manual,u=e.Documents&&e.Documents.some(p=>p.Status===x.Requested);return n&&u},le=e=>e.VendorName===V.ShuftiPro&&e.Status===g.Referred,H=()=>{switch(S.VerificationSummaryStatus){case g.InProgress:const e=[];return I.forEach(n=>{e.push(ce(n))}),e;case g.Referred:return[a("verification.idenfy.referred-awaiting")];case g.Failed:return[a("verification.message.failed")]}},ce=e=>{const n=S.VerificationStatuses.filter(u=>u.Vendor===e);if(e===V.ShuftiPro)return fe(n);{const u=a("verification.idenfy.link-name"),p={link:`<a href="${n[0].VerificationUrl}" target="_blank">${u}</a>`};return a("verification.idenfy.in-progress",{values:p})}},fe=e=>{const n=[],u={},p=[P.Biometric,P.Documents,P.ProofOfAddress];e.forEach(b=>{p.includes(b.Type)&&(n.push(b.Type),u[b.Type]=de(b,ue(b.Type)))});let k=n.every(b=>E.has(b)),A=`verification.shuftipro.in-progress.${n.sort().join(".")}`;return k?a("verification.shuftipro.validations-started"):a(A,{values:u})},de=(e,n)=>`<a class="verificationLink ${e.Type}" href=" ${e.VerificationUrl} " target="_blank">${n}</a>`,ue=e=>a(`verification.shuftipro.link-name.${e}`),z=(e,n)=>{if(e.stopPropagation(),e.target&&(e.target.href||e.target.closest("a"))){if(e.target.closest(".verificationLink")){const u=e.target.className.split(" ")[1];E.add(u),o(4,M=H())}return}n===0&&o(5,B=!B)},me=()=>{o(6,R=v==="false")},he=()=>{o(8,L=C+"/"+d+"/"+Pe);try{fetch(L,{method:"HEAD"}).then(e=>{o(7,q=e.ok)})}catch(e){o(7,q=!1)}},N=()=>{window.postMessage({type:"ShowCashierVideoModal"},window.location.href)},pe=(e,n)=>z(n,e),ge=(e,n)=>z(n,e),ve=()=>N();function we(e){i.binding_callbacks[e?"unshift":"push"](()=>{_=e,o(3,_)})}return r.$$set=e=>{"endpoint"in e&&o(13,c=e.endpoint),"lang"in e&&o(14,d=e.lang),"translationurl"in e&&o(15,m=e.translationurl),"clientstyling"in e&&o(0,f=e.clientstyling),"clientstylingurl"in e&&o(1,h=e.clientstylingurl),"session"in e&&o(16,l=e.session),"customerid"in e&&o(17,y=e.customerid),"ismobileview"in e&&o(2,v=e.ismobileview),"playersession"in e&&o(18,w=e.playersession),"mbsource"in e&&o(19,D=e.mbsource)},r.$$.update=()=>{r.$$.dirty[0]&16384&&d&&ee(),r.$$.dirty[0]&335872&&c&&l&&w&&U(),r.$$.dirty[0]&335872&&c&&!l&&w&&te(),r.$$.dirty[0]&32768&&m&&$(),r.$$.dirty[0]&9&&f&&_&&i.setClientStyling(),r.$$.dirty[0]&10&&h&&_&&i.setClientStylingURL(),r.$$.dirty[0]&4&&v&&me(),r.$$.dirty[0]&1048576&&C&&he(),r.$$.dirty[0]&524296&&D&&_&&i.setStreamStyling(_,`${D}.Style`)},[f,h,v,_,M,B,R,q,L,F,a,z,N,c,d,m,l,y,w,D,C,pe,ge,ve,we]}class X extends i.SvelteComponent{constructor(t){super(),i.init(this,t,De,Ve,i.safe_not_equal,{endpoint:13,lang:14,translationurl:15,clientstyling:0,clientstylingurl:1,session:16,customerid:17,ismobileview:2,playersession:18,mbsource:19},ke,[-1,-1])}get endpoint(){return this.$$.ctx[13]}set endpoint(t){this.$$set({endpoint:t}),i.flush()}get lang(){return this.$$.ctx[14]}set lang(t){this.$$set({lang:t}),i.flush()}get translationurl(){return this.$$.ctx[15]}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[16]}set session(t){this.$$set({session:t}),i.flush()}get customerid(){return this.$$.ctx[17]}set customerid(t){this.$$set({customerid:t}),i.flush()}get ismobileview(){return this.$$.ctx[2]}set ismobileview(t){this.$$set({ismobileview:t}),i.flush()}get playersession(){return this.$$.ctx[18]}set playersession(t){this.$$set({playersession:t}),i.flush()}get mbsource(){return this.$$.ctx[19]}set mbsource(t){this.$$set({mbsource:t}),i.flush()}}i.create_custom_element(X,{endpoint:{},lang:{},translationurl:{},clientstyling:{},clientstylingurl:{},session:{},customerid:{},ismobileview:{},playersession:{},mbsource:{}},[],[],!0);exports.default=X;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./CashierConfirmModal-Dbth1Vwp.cjs"),T=require("./CashierError-lygql-vp.cjs"),O=require("./CashierMethodDetails-BiDcofyV.cjs");function W(r,t){T.addMessages(r,t)}function ye(r){T.init({fallbackLocale:"en"}),T.$locale.set(r)}const Y={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(a){if(a instanceof DOMException&&a.message.includes("has already been used with this registry")||a.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw a}}};customElements.define=r(customElements.define),Promise.resolve().then(()=>require("./CashierVideoModal-CBlMdTrM.cjs")).then(({default:t})=>{!customElements.get("cashier-video-modal")&&customElements.define("cashier-video-modal",t.element)})}function ke(r){i.append_styles(r,"svelte-3ui5us","*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;-webkit-tap-highlight-color:transparent}.CashierVerifications{position:relative;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 K(r,t,o){const a=r.slice();return a[54]=t[o],a[56]=o,a}function _e(r){let t,o,a,s,c=i.ensure_array_like(r[4]),d=[];for(let f=0;f<c.length;f+=1)d[f]=Z(K(r,c,f));let m=r[7]&&J(r);return{c(){t=i.element("div");for(let f=0;f<d.length;f+=1)d[f].c();o=i.space(),m&&m.c(),a=i.space(),s=i.element("cashier-video-modal"),i.attr(t,"class","CashierVerificationsWrapper"),i.set_custom_element_data(s,"clientstylingurl",r[1]),i.set_custom_element_data(s,"clientstyling",r[0]),i.set_custom_element_data(s,"ismobileview",r[2]),i.set_custom_element_data(s,"videosrc",r[8])},m(f,h){i.insert(f,t,h);for(let l=0;l<d.length;l+=1)d[l]&&d[l].m(t,null);i.insert(f,o,h),m&&m.m(f,h),i.insert(f,a,h),i.insert(f,s,h)},p(f,h){if(h[0]&2096){c=i.ensure_array_like(f[4]);let l;for(l=0;l<c.length;l+=1){const y=K(f,c,l);d[l]?d[l].p(y,h):(d[l]=Z(y),d[l].c(),d[l].m(t,null))}for(;l<d.length;l+=1)d[l].d(1);d.length=c.length}f[7]?m?m.p(f,h):(m=J(f),m.c(),m.m(a.parentNode,a)):m&&(m.d(1),m=null),h[0]&2&&i.set_custom_element_data(s,"clientstylingurl",f[1]),h[0]&1&&i.set_custom_element_data(s,"clientstyling",f[0]),h[0]&4&&i.set_custom_element_data(s,"ismobileview",f[2]),h[0]&256&&i.set_custom_element_data(s,"videosrc",f[8])},d(f){f&&(i.detach(t),i.detach(o),i.detach(a),i.detach(s)),i.destroy_each(d,f),m&&m.d(f)}}}function be(r){let t;return{c(){t=i.element("cashier-spinner"),i.set_custom_element_data(t,"clientstylingurl",r[1]),i.set_custom_element_data(t,"clientstyling",r[0])},m(o,a){i.insert(o,t,a)},p(o,a){a[0]&2&&i.set_custom_element_data(t,"clientstylingurl",o[1]),a[0]&1&&i.set_custom_element_data(t,"clientstyling",o[0])},d(o){o&&i.detach(t)}}}function G(r){let t,o,a;function s(...c){return r[21](r[56],...c)}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(c,d){i.insert(c,t,d),o||(a=i.listen(t,"click",s),o=!0)},p(c,d){r=c},d(c){c&&i.detach(t),o=!1,a()}}}function Z(r){let t,o,a,s,c=r[54]+"",d,m,f,h,l=r[4].length>1&&r[56]===0&&G(r);function y(...v){return r[22](r[56],...v)}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>',a=i.space(),s=i.element("p"),d=i.space(),l&&l.c(),m=i.space(),i.attr(o,"class","IconVerification"),i.attr(s,"class","text"),i.attr(t,"class","CashierVerificationMessage"),i.toggle_class(t,"ShowAll",r[5])},m(v,w){i.insert(v,t,w),i.append(t,o),i.append(t,a),i.append(t,s),s.innerHTML=c,i.append(t,d),l&&l.m(t,null),i.append(t,m),f||(h=i.listen(t,"click",y),f=!0)},p(v,w){r=v,w[0]&16&&c!==(c=r[54]+"")&&(s.innerHTML=c),r[4].length>1&&r[56]===0?l?l.p(r,w):(l=G(r),l.c(),l.m(t,m)):l&&(l.d(1),l=null),w[0]&32&&i.toggle_class(t,"ShowAll",r[5])},d(v){v&&i.detach(t),l&&l.d(),f=!1,h()}}}function J(r){let t,o,a,s,c=r[10]("verification.video.how-to")+"",d,m,f;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>',a=i.space(),s=i.element("div"),d=i.text(c),i.attr(o,"class","IconVideo"),i.attr(s,"class","CashierVerificationVideoLink"),i.toggle_class(s,"CashierVerificationVideoLinkDesktop",r[6]),i.attr(t,"class","CashierVerificationVideo")},m(h,l){i.insert(h,t,l),i.append(t,o),i.append(t,a),i.append(t,s),i.append(s,d),m||(f=i.listen(s,"click",r[23]),m=!0)},p(h,l){l[0]&1024&&c!==(c=h[10]("verification.video.how-to")+"")&&i.set_data(d,c),l[0]&64&&i.toggle_class(s,"CashierVerificationVideoLinkDesktop",h[6])},d(h){h&&i.detach(t),m=!1,f()}}}function Ve(r){let t;function o(c,d){if(c[9])return be;if(c[4])return _e}let a=o(r),s=a&&a(r);return{c(){t=i.element("div"),s&&s.c(),i.attr(t,"class","CashierVerifications"),i.toggle_class(t,"CashierVerificationsDesktop",r[6])},m(c,d){i.insert(c,t,d),s&&s.m(t,null),r[24](t)},p(c,d){a===(a=o(c))&&s?s.p(c,d):(s&&s.d(1),s=a&&a(c),s&&(s.c(),s.m(t,null))),d[0]&64&&i.toggle_class(t,"CashierVerificationsDesktop",c[6])},i:i.noop,o:i.noop,d(c){c&&i.detach(t),s&&s.d(),r[24](null)}}}const Pe="verification_explanation_video_widgets.MP4";function De(r,t,o){let a,s;i.component_subscribe(r,T.$format,e=>o(10,a=e)),i.component_subscribe(r,O.xPaymentSessionToken,e=>o(30,s=e)),O.dayjs.extend(O.utc);let{endpoint:c}=t,{lang:d="en"}=t,{translationurl:m=""}=t,{clientstyling:f=""}=t,{clientstylingurl:h=""}=t,{session:l=""}=t,{customerid:y=""}=t,{ismobileview:v=""}=t,{playersession:w=""}=t,{mbsource:D=""}=t,_,I=new Set,E=new Set,S,C,M,B=!0,R=!0,q=!1,L="",F=!1;var V;(function(e){e.Manual="Manual",e.ShuftiPro="ShuftiPro"})(V||(V={}));var x;(function(e){e.Requested="Requested"})(x||(x={}));var g;(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"})(g||(g={}));var P;(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"})(P||(P={})),i.onMount(()=>()=>{});const Q=[g.InProgress,g.Referred,g.AwaitingForResponse],$=()=>{let e=m;if(e)return fetch(e).then(n=>n.json()).then(n=>{Object.keys(n).forEach(u=>{W(u,n[u])})}).catch(n=>{console.log(n)})};Object.keys(Y).forEach(e=>{W(e,Y[e])});const ee=()=>{ye(d)},U=()=>{o(20,C=re());const e=new URL(`${c}/v1/player/${y}/verification/GetKYCCustomerStatus?language=${d}`),n=new Headers;n.append("accept","application/json"),n.append("Content-Type","application/json"),n.append("x-sessionid",`${w}`),n.append("X-Client-Request-Timestamp",O.dayjs.utc().format("YYYY-MM-DD HH:mm:ss.SSS"));const u={method:"POST",headers:n,body:JSON.stringify({})};o(9,F=!0),fetch(e,u).then(p=>p.json()).then(p=>{const k=ie(p==null?void 0:p.Verifications);S=oe(k),S.VerificationStatuses.forEach(A=>{A.VerificationUrlType!=="Widget"&&I.add(A.Vendor)}),o(4,M=H())}).finally(()=>o(9,F=!1))},ie=e=>e?e.sort((n,u)=>new Date(u.Created).getTime()-new Date(n.Created).getTime()):[],te=()=>{s&&U()},re=()=>{let e=(l||s).split(".")[1];if(e){let n=JSON.parse(atob(e));return n.cdn+"/cashier/operator-assets/"+(n==null?void 0:n.mid)}return""},oe=e=>{var u;if(!e||!e.length)return{VerificationSummaryStatus:g.Unverified,VerificationStatuses:[]};const n=se(e);if(n&&n.length){const p=ne(n);return{VerificationSummaryStatus:p.Status,VerificationUrl:(u=p.Flags)==null?void 0:u.DeferredUrlKey,VerificationStatuses:j(n,p.Status)}}else return{VerificationSummaryStatus:e.some(k=>k.Status===g.Failed)?g.Failed:g.Verified,VerificationStatuses:j(e,[g.Failed])}},ne=e=>e.reduce((n,u)=>n?new Date(n)<new Date(u)?u:n:u,0),j=(e,n)=>e.filter(u=>n.includes(u.Status)).map(u=>{var p,k;return{Type:u.Type,Vendor:u.VendorName,VerificationDocuments:u.Documents?[...u.Documents]:[],VerificationUrlType:(p=u.FlowInfo)==null?void 0:p.Type,VerificationUrl:(k=u.FlowInfo)==null?void 0:k.Url}}),se=e=>e.filter(n=>Q.includes(n.Status)?n.FlowInfo&&n.FlowInfo.Url||ae(n)||le(n):!1),ae=e=>{const n=e.Documents&&e.VendorName===V.Manual,u=e.Documents&&e.Documents.some(p=>p.Status===x.Requested);return n&&u},le=e=>e.VendorName===V.ShuftiPro&&e.Status===g.Referred,H=()=>{switch(S.VerificationSummaryStatus){case g.InProgress:const e=[];return I.forEach(n=>{e.push(ce(n))}),e;case g.Referred:return[a("verification.idenfy.referred-awaiting")];case g.Failed:return[a("verification.message.failed")]}},ce=e=>{const n=S.VerificationStatuses.filter(u=>u.Vendor===e);if(e===V.ShuftiPro)return fe(n);{const u=a("verification.idenfy.link-name"),p={link:`<a href="${n[0].VerificationUrl}" target="_blank">${u}</a>`};return a("verification.idenfy.in-progress",{values:p})}},fe=e=>{const n=[],u={},p=[P.Biometric,P.Documents,P.ProofOfAddress];e.forEach(b=>{p.includes(b.Type)&&(n.push(b.Type),u[b.Type]=de(b,ue(b.Type)))});let k=n.every(b=>E.has(b)),A=`verification.shuftipro.in-progress.${n.sort().join(".")}`;return k?a("verification.shuftipro.validations-started"):a(A,{values:u})},de=(e,n)=>`<a class="verificationLink ${e.Type}" href=" ${e.VerificationUrl} " target="_blank">${n}</a>`,ue=e=>a(`verification.shuftipro.link-name.${e}`),z=(e,n)=>{if(e.stopPropagation(),e.target&&(e.target.href||e.target.closest("a"))){if(e.target.closest(".verificationLink")){const u=e.target.className.split(" ")[1];E.add(u),o(4,M=H())}return}n===0&&o(5,B=!B)},me=()=>{o(6,R=v==="false")},he=()=>{o(8,L=C+"/"+d+"/"+Pe);try{fetch(L,{method:"HEAD"}).then(e=>{o(7,q=e.ok)})}catch(e){o(7,q=!1)}},N=()=>{window.postMessage({type:"ShowCashierVideoModal"},window.location.href)},pe=(e,n)=>z(n,e),ge=(e,n)=>z(n,e),ve=()=>N();function we(e){i.binding_callbacks[e?"unshift":"push"](()=>{_=e,o(3,_)})}return r.$$set=e=>{"endpoint"in e&&o(13,c=e.endpoint),"lang"in e&&o(14,d=e.lang),"translationurl"in e&&o(15,m=e.translationurl),"clientstyling"in e&&o(0,f=e.clientstyling),"clientstylingurl"in e&&o(1,h=e.clientstylingurl),"session"in e&&o(16,l=e.session),"customerid"in e&&o(17,y=e.customerid),"ismobileview"in e&&o(2,v=e.ismobileview),"playersession"in e&&o(18,w=e.playersession),"mbsource"in e&&o(19,D=e.mbsource)},r.$$.update=()=>{r.$$.dirty[0]&16384&&d&&ee(),r.$$.dirty[0]&335872&&c&&l&&w&&U(),r.$$.dirty[0]&335872&&c&&!l&&w&&te(),r.$$.dirty[0]&32768&&m&&$(),r.$$.dirty[0]&9&&f&&_&&i.setClientStyling(),r.$$.dirty[0]&10&&h&&_&&i.setClientStylingURL(),r.$$.dirty[0]&4&&v&&me(),r.$$.dirty[0]&1048576&&C&&he(),r.$$.dirty[0]&524296&&D&&_&&i.setStreamStyling(_,`${D}.Style`)},[f,h,v,_,M,B,R,q,L,F,a,z,N,c,d,m,l,y,w,D,C,pe,ge,ve,we]}class X extends i.SvelteComponent{constructor(t){super(),i.init(this,t,De,Ve,i.safe_not_equal,{endpoint:13,lang:14,translationurl:15,clientstyling:0,clientstylingurl:1,session:16,customerid:17,ismobileview:2,playersession:18,mbsource:19},ke,[-1,-1])}get endpoint(){return this.$$.ctx[13]}set endpoint(t){this.$$set({endpoint:t}),i.flush()}get lang(){return this.$$.ctx[14]}set lang(t){this.$$set({lang:t}),i.flush()}get translationurl(){return this.$$.ctx[15]}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[16]}set session(t){this.$$set({session:t}),i.flush()}get customerid(){return this.$$.ctx[17]}set customerid(t){this.$$set({customerid:t}),i.flush()}get ismobileview(){return this.$$.ctx[2]}set ismobileview(t){this.$$set({ismobileview:t}),i.flush()}get playersession(){return this.$$.ctx[18]}set playersession(t){this.$$set({playersession:t}),i.flush()}get mbsource(){return this.$$.ctx[19]}set mbsource(t){this.$$set({mbsource:t}),i.flush()}}i.create_custom_element(X,{endpoint:{},lang:{},translationurl:{},clientstyling:{},clientstylingurl:{},session:{},customerid:{},ismobileview:{},playersession:{},mbsource:{}},[],[],!0);exports.default=X;