@everymatrix/cashier-page 1.60.1 → 1.60.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 (45) hide show
  1. package/components/{CashierConfirmModal-BErwh2fQ.js → CashierConfirmModal-B5fOc6GC.js} +34 -34
  2. package/components/{CashierConfirmModal-B0WZGuf5.js → CashierConfirmModal-CtWSrqbM.js} +34 -34
  3. package/components/{CashierError-Dyf5BWS1.js → CashierError-B_WDWdBy.js} +346 -344
  4. package/components/{CashierError-DoHJAf67.js → CashierError-DKmRdzzP.js} +346 -344
  5. package/components/CashierError-DyS_YiEl.cjs +18 -0
  6. package/components/{CashierHeader-C8XVzyv9.js → CashierHeader-Asx7Z6Sd.js} +42 -42
  7. package/components/{CashierHeader-Dm79zFE4.js → CashierHeader-BYhu34lk.js} +44 -44
  8. package/components/{CashierHeader-B-wIMGOV.cjs → CashierHeader-DNfsbUrX.cjs} +1 -1
  9. package/components/{CashierIframeRedirect-B_5Lg8hb.js → CashierIframeRedirect-CJ3bOCam.js} +33 -33
  10. package/components/{CashierIframeRedirect-D7qTJ1C9.js → CashierIframeRedirect-DQnQKdQZ.js} +32 -32
  11. package/components/{CashierIframeRedirect-CXErmVjw.cjs → CashierIframeRedirect-Dws6z7yl.cjs} +1 -1
  12. package/components/{CashierMethodDetails-Ba0LNaer.cjs → CashierMethodDetails-B_yG_3OU.cjs} +1 -1
  13. package/components/{CashierMethodDetails-C6upoqd2.js → CashierMethodDetails-BeElaO--.js} +63 -63
  14. package/components/{CashierMethodDetails-T4mbzimW.js → CashierMethodDetails-C4KZnq7Z.js} +63 -63
  15. package/components/{CashierMethodsList-BrVrodk4.js → CashierMethodsList-CNLfoP4Y.js} +69 -69
  16. package/components/{CashierMethodsList-CumBXWty.cjs → CashierMethodsList-DpPzmg4x.cjs} +1 -1
  17. package/components/{CashierMethodsList-DIrmr3Ce.js → CashierMethodsList-zLr6fCmJ.js} +69 -69
  18. package/components/{CashierModal-DB1wg0l3.js → CashierModal-DV8aj-PX.js} +31 -31
  19. package/components/{CashierModal-CpN2LT2L.js → CashierModal-hk6t9ci2.js} +37 -37
  20. package/components/{CashierNotifications-B5qfr68o.js → CashierNotifications-B8jOQSBr.js} +18 -18
  21. package/components/{CashierNotifications-BmAkkuzD.js → CashierNotifications-CTdH4xzH.js} +19 -19
  22. package/components/{CashierPage-DBt7A-ce.js → CashierPage-B06x-lb9.js} +90 -86
  23. package/components/{CashierPage-RAOHqYUI.js → CashierPage-D4G3vkt8.js} +88 -84
  24. package/components/{CashierPage-CzAwa_Je.cjs → CashierPage-KycEkiPC.cjs} +1 -1
  25. package/components/{CashierReceiptPage-BOTRblW6.js → CashierReceiptPage-D2GV36R9.js} +28 -28
  26. package/components/{CashierReceiptPage-BH5T05dg.cjs → CashierReceiptPage-Dqv_zMz0.cjs} +1 -1
  27. package/components/{CashierReceiptPage-BsbiLGZK.js → CashierReceiptPage-KY86XyHm.js} +28 -28
  28. package/components/{CashierSessionExpirationModal-V8MYd-oY.js → CashierSessionExpirationModal-CKLp-VvL.js} +47 -56
  29. package/components/{CashierSessionExpirationModal-CxpesQtf.cjs → CashierSessionExpirationModal-CPEtCCpq.cjs} +2 -2
  30. package/components/{CashierSessionExpirationModal-DZgsGvVp.js → CashierSessionExpirationModal-Dl5Uy319.js} +47 -56
  31. package/components/{CashierSpinner-BI29nSq_.js → CashierSpinner-CKc6p313.js} +25 -25
  32. package/components/{CashierSpinner-FzCMnj7X.js → CashierSpinner-Du921ZKt.js} +26 -26
  33. package/components/{CashierTransactionHistory-D_tggKNB.cjs → CashierTransactionHistory--aDULmWa.cjs} +1 -1
  34. package/components/{CashierTransactionHistory-CyxhjzqM.js → CashierTransactionHistory-CelbYShe.js} +84 -84
  35. package/components/{CashierTransactionHistory-5jT7HEE-.js → CashierTransactionHistory-D62Jgr0H.js} +97 -97
  36. package/components/{CashierVerifications-BOYrzIos.js → CashierVerifications-BM7HesGT.js} +72 -72
  37. package/components/{CashierVerifications-BXTVbpjh.cjs → CashierVerifications-Ba9QYZN-.cjs} +1 -1
  38. package/components/{CashierVerifications-qhXfC9Fa.js → CashierVerifications-DFZdvHv6.js} +26 -26
  39. package/components/{CashierVideoModal-DGBQZz-C.js → CashierVideoModal-BqP3xvYv.js} +33 -33
  40. package/components/{CashierVideoModal-DPG12DK0.js → CashierVideoModal-L_vWBGkF.js} +37 -37
  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/components/CashierError-YmV_PQP8.cjs +0 -18
@@ -1,7 +1,7 @@
1
- import { S as Ce, b as _e, f as b, c as Se, a as Ae, d as Oe, g as w, j as V, I as O, k as C, n as G, v as _, w as Te, K as Y, h as A, E as D, M as Me, l as k, A as H, y as Be, z as Le, C as Ie } from "./CashierConfirmModal-B0WZGuf5.js";
2
- import { a as qe, i as xe, $ as Ee, b as Fe } from "./CashierError-Dyf5BWS1.js";
3
- import { d as Z, u as ze } from "./CashierMethodDetails-C6upoqd2.js";
4
- function J(t, i) {
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";
4
+ function Z(t, i) {
5
5
  qe(t, i);
6
6
  }
7
7
  function Ue(t) {
@@ -70,26 +70,26 @@ if (typeof window < "u") {
70
70
  return function(...r) {
71
71
  try {
72
72
  return i.apply(this, r);
73
- } catch (n) {
74
- if (n instanceof DOMException && n.message.includes("has already been used with this registry") || n.message.includes("Cannot define multiple custom elements with the same tag name"))
73
+ } catch (s) {
74
+ 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"))
75
75
  return !1;
76
- throw n;
76
+ throw s;
77
77
  }
78
78
  };
79
79
  };
80
- customElements.define = t(customElements.define), import("./CashierVideoModal-DPG12DK0.js").then(({ default: i }) => {
80
+ customElements.define = t(customElements.define), import("./CashierVideoModal-L_vWBGkF.js").then(({ default: i }) => {
81
81
  !customElements.get("cashier-video-modal") && customElements.define("cashier-video-modal", i.element);
82
82
  });
83
83
  }
84
84
  function Re(t) {
85
- Oe(t, "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)}");
85
+ Ae(t, "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)}");
86
86
  }
87
87
  function Q(t, i, r) {
88
- const n = t.slice();
89
- return n[49] = i[r], n[51] = r, n;
88
+ const s = t.slice();
89
+ return s[49] = i[r], s[51] = r, s;
90
90
  }
91
91
  function $(t) {
92
- let i, r, n, c, f = Y(
92
+ let i, r, s, c, f = Y(
93
93
  /*displayMessages*/
94
94
  t[4]
95
95
  ), d = [];
@@ -104,7 +104,7 @@ function $(t) {
104
104
  i = w("div");
105
105
  for (let a = 0; a < d.length; a += 1)
106
106
  d[a].c();
107
- r = A(), h && h.c(), n = A(), c = w("cashier-video-modal"), V(i, "class", "CashierVerificationsWrapper"), D(
107
+ r = A(), h && h.c(), s = A(), c = w("cashier-video-modal"), V(i, "class", "CashierVerificationsWrapper"), D(
108
108
  c,
109
109
  "clientstylingurl",
110
110
  /*clientstylingurl*/
@@ -127,10 +127,10 @@ function $(t) {
127
127
  );
128
128
  },
129
129
  m(a, u) {
130
- C(a, i, u);
131
- for (let s = 0; s < d.length; s += 1)
132
- d[s] && d[s].m(i, null);
133
- C(a, r, u), h && h.m(a, u), C(a, n, u), C(a, c, u);
130
+ _(a, i, u);
131
+ for (let n = 0; n < d.length; n += 1)
132
+ d[n] && d[n].m(i, null);
133
+ _(a, r, u), h && h.m(a, u), _(a, s, u), _(a, c, u);
134
134
  },
135
135
  p(a, u) {
136
136
  if (u[0] & /*allVerificationsVisible, showAllVerifications, displayMessages*/
@@ -139,17 +139,17 @@ function $(t) {
139
139
  /*displayMessages*/
140
140
  a[4]
141
141
  );
142
- let s;
143
- for (s = 0; s < f.length; s += 1) {
144
- const y = Q(a, f, s);
145
- d[s] ? d[s].p(y, u) : (d[s] = ie(y), d[s].c(), d[s].m(i, null));
142
+ let n;
143
+ for (n = 0; n < f.length; n += 1) {
144
+ const y = Q(a, f, n);
145
+ d[n] ? d[n].p(y, u) : (d[n] = ie(y), d[n].c(), d[n].m(i, null));
146
146
  }
147
- for (; s < d.length; s += 1)
148
- d[s].d(1);
147
+ for (; n < d.length; n += 1)
148
+ d[n].d(1);
149
149
  d.length = f.length;
150
150
  }
151
151
  /*videoExists*/
152
- a[7] ? h ? h.p(a, u) : (h = te(a), h.c(), h.m(n.parentNode, n)) : h && (h.d(1), h = null), u[0] & /*clientstylingurl*/
152
+ a[7] ? h ? h.p(a, u) : (h = te(a), h.c(), h.m(s.parentNode, s)) : h && (h.d(1), h = null), u[0] & /*clientstylingurl*/
153
153
  2 && D(
154
154
  c,
155
155
  "clientstylingurl",
@@ -176,12 +176,12 @@ function $(t) {
176
176
  );
177
177
  },
178
178
  d(a) {
179
- a && (_(i), _(r), _(n), _(c)), Me(d, a), h && h.d(a);
179
+ a && (C(i), C(r), C(s), C(c)), Te(d, a), h && h.d(a);
180
180
  }
181
181
  };
182
182
  }
183
183
  function ee(t) {
184
- let i, r, n;
184
+ let i, r, s;
185
185
  function c(...f) {
186
186
  return (
187
187
  /*click_handler*/
@@ -197,21 +197,21 @@ function ee(t) {
197
197
  i = w("span"), i.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>', V(i, "class", "CashierVerificationChevron");
198
198
  },
199
199
  m(f, d) {
200
- C(f, i, d), r || (n = H(i, "click", c), r = !0);
200
+ _(f, i, d), r || (s = H(i, "click", c), r = !0);
201
201
  },
202
202
  p(f, d) {
203
203
  t = f;
204
204
  },
205
205
  d(f) {
206
- f && _(i), r = !1, n();
206
+ f && C(i), r = !1, s();
207
207
  }
208
208
  };
209
209
  }
210
210
  function ie(t) {
211
- let i, r, n, c, f = (
211
+ let i, r, s, c, f = (
212
212
  /*message*/
213
213
  t[49] + ""
214
- ), d, h, a, u, s = (
214
+ ), d, h, a, u, n = (
215
215
  /*displayMessages*/
216
216
  t[4].length > 1 && /*index*/
217
217
  t[51] === 0 && ee(t)
@@ -228,7 +228,7 @@ function ie(t) {
228
228
  }
229
229
  return {
230
230
  c() {
231
- i = w("div"), r = w("div"), r.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>', n = A(), c = w("p"), d = A(), s && s.c(), h = A(), V(r, "class", "IconVerification"), V(c, "class", "text"), V(i, "class", "CashierVerificationMessage"), O(
231
+ i = w("div"), r = w("div"), r.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 = A(), c = w("p"), d = A(), n && n.c(), h = A(), V(r, "class", "IconVerification"), V(c, "class", "text"), V(i, "class", "CashierVerificationMessage"), O(
232
232
  i,
233
233
  "ShowAll",
234
234
  /*allVerificationsVisible*/
@@ -236,14 +236,14 @@ function ie(t) {
236
236
  );
237
237
  },
238
238
  m(m, P) {
239
- C(m, i, P), k(i, r), k(i, n), k(i, c), c.innerHTML = f, k(i, d), s && s.m(i, null), k(i, h), a || (u = H(i, "click", y), a = !0);
239
+ _(m, i, P), k(i, r), k(i, s), k(i, c), c.innerHTML = f, k(i, d), n && n.m(i, null), k(i, h), a || (u = H(i, "click", y), a = !0);
240
240
  },
241
241
  p(m, P) {
242
242
  t = m, P[0] & /*displayMessages*/
243
243
  16 && f !== (f = /*message*/
244
244
  t[49] + "") && (c.innerHTML = f), /*displayMessages*/
245
245
  t[4].length > 1 && /*index*/
246
- t[51] === 0 ? s ? s.p(t, P) : (s = ee(t), s.c(), s.m(i, h)) : s && (s.d(1), s = null), P[0] & /*allVerificationsVisible*/
246
+ t[51] === 0 ? n ? n.p(t, P) : (n = ee(t), n.c(), n.m(i, h)) : n && (n.d(1), n = null), P[0] & /*allVerificationsVisible*/
247
247
  32 && O(
248
248
  i,
249
249
  "ShowAll",
@@ -252,36 +252,36 @@ function ie(t) {
252
252
  );
253
253
  },
254
254
  d(m) {
255
- m && _(i), s && s.d(), a = !1, u();
255
+ m && C(i), n && n.d(), a = !1, u();
256
256
  }
257
257
  };
258
258
  }
259
259
  function te(t) {
260
- let i, r, n, c, f = (
260
+ let i, r, s, c, f = (
261
261
  /*$_*/
262
262
  t[9]("verification.video.how-to") + ""
263
263
  ), d, h, a;
264
264
  return {
265
265
  c() {
266
- i = w("div"), r = w("div"), r.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>', n = A(), c = w("div"), d = Be(f), V(r, "class", "IconVideo"), V(c, "class", "CashierVerificationVideoLink"), O(
266
+ i = w("div"), r = w("div"), r.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 = A(), c = w("div"), d = Le(f), V(r, "class", "IconVideo"), V(c, "class", "CashierVerificationVideoLink"), O(
267
267
  c,
268
268
  "CashierVerificationVideoLinkDesktop",
269
269
  /*desktopView*/
270
270
  t[6]
271
271
  ), V(i, "class", "CashierVerificationVideo");
272
272
  },
273
- m(u, s) {
274
- C(u, i, s), k(i, r), k(i, n), k(i, c), k(c, d), h || (a = H(
273
+ m(u, n) {
274
+ _(u, i, n), k(i, r), k(i, s), k(i, c), k(c, d), h || (a = H(
275
275
  c,
276
276
  "click",
277
277
  /*click_handler_2*/
278
278
  t[20]
279
279
  ), h = !0);
280
280
  },
281
- p(u, s) {
282
- s[0] & /*$_*/
281
+ p(u, n) {
282
+ n[0] & /*$_*/
283
283
  512 && f !== (f = /*$_*/
284
- u[9]("verification.video.how-to") + "") && Le(d, f), s[0] & /*desktopView*/
284
+ u[9]("verification.video.how-to") + "") && Be(d, f), n[0] & /*desktopView*/
285
285
  64 && O(
286
286
  c,
287
287
  "CashierVerificationVideoLinkDesktop",
@@ -290,7 +290,7 @@ function te(t) {
290
290
  );
291
291
  },
292
292
  d(u) {
293
- u && _(i), h = !1, a();
293
+ u && C(i), h = !1, a();
294
294
  }
295
295
  };
296
296
  }
@@ -308,31 +308,31 @@ function He(t) {
308
308
  t[6]
309
309
  );
310
310
  },
311
- m(n, c) {
312
- C(n, i, c), r && r.m(i, null), t[21](i);
311
+ m(s, c) {
312
+ _(s, i, c), r && r.m(i, null), t[21](i);
313
313
  },
314
- p(n, c) {
314
+ p(s, c) {
315
315
  /*displayMessages*/
316
- n[4] ? r ? r.p(n, c) : (r = $(n), r.c(), r.m(i, null)) : r && (r.d(1), r = null), c[0] & /*desktopView*/
316
+ s[4] ? r ? r.p(s, c) : (r = $(s), r.c(), r.m(i, null)) : r && (r.d(1), r = null), c[0] & /*desktopView*/
317
317
  64 && O(
318
318
  i,
319
319
  "CashierVerificationsDesktop",
320
320
  /*desktopView*/
321
- n[6]
321
+ s[6]
322
322
  );
323
323
  },
324
324
  i: G,
325
325
  o: G,
326
- d(n) {
327
- n && _(i), r && r.d(), t[21](null);
326
+ d(s) {
327
+ s && C(i), r && r.d(), t[21](null);
328
328
  }
329
329
  };
330
330
  }
331
331
  const je = "verification_explanation_video_widgets.MP4", Ne = "700px", Ke = "500px";
332
332
  function We(t, i, r) {
333
- let n;
334
- Te(t, Fe, (e) => r(9, n = e)), Z.extend(ze);
335
- let { endpoint: c } = i, { lang: f = "en" } = i, { translationurl: d = "" } = i, { clientstyling: h = "" } = i, { clientstylingurl: a = "" } = i, { session: u = "" } = i, { customerid: s = "" } = i, { ismobileview: y = "" } = i, m, P = /* @__PURE__ */ new Set(), j = /* @__PURE__ */ new Set(), B, L, I, q = !0, x = !0, E = !1, F = "";
333
+ let s;
334
+ Oe(t, Fe, (e) => r(9, s = e)), J.extend(ze);
335
+ let { endpoint: c } = i, { lang: f = "en" } = i, { translationurl: d = "" } = i, { clientstyling: h = "" } = i, { clientstylingurl: a = "" } = i, { session: u = "" } = i, { customerid: n = "" } = i, { ismobileview: y = "" } = i, m, P = /* @__PURE__ */ new Set(), j = /* @__PURE__ */ new Set(), B, L, I, q = !0, x = !0, E = !1, F = "";
336
336
  var T;
337
337
  (function(e) {
338
338
  e.Manual = "Manual", e.ShuftiPro = "ShuftiPro";
@@ -358,18 +358,18 @@ function We(t, i, r) {
358
358
  if (e)
359
359
  return fetch(e).then((o) => o.json()).then((o) => {
360
360
  Object.keys(o).forEach((l) => {
361
- J(l, o[l]);
361
+ Z(l, o[l]);
362
362
  });
363
363
  }).catch((o) => {
364
364
  console.log(o);
365
365
  });
366
366
  };
367
367
  Object.keys(X).forEach((e) => {
368
- J(e, X[e]);
368
+ Z(e, X[e]);
369
369
  });
370
- const ne = () => {
370
+ const se = () => {
371
371
  Ue(f);
372
- }, se = () => {
372
+ }, ne = () => {
373
373
  let e = document.createElement("style");
374
374
  e.innerHTML = h, m.appendChild(e);
375
375
  }, ae = () => {
@@ -387,7 +387,7 @@ function We(t, i, r) {
387
387
  if (!e)
388
388
  return;
389
389
  const l = new URL(`${c}/v1/player/verification/GetKYCStatus`), g = new Headers();
390
- g.append("accept", "application/json"), g.append("Content-Type", "application/json"), g.append("X-Client-Request-Timestamp", Z.utc().format("YYYY-MM-DD HH:mm:ss.SSS"));
390
+ g.append("accept", "application/json"), g.append("Content-Type", "application/json"), g.append("X-Client-Request-Timestamp", J.utc().format("YYYY-MM-DD HH:mm:ss.SSS"));
391
391
  const R = {
392
392
  method: "POST",
393
393
  headers: g,
@@ -409,7 +409,7 @@ function We(t, i, r) {
409
409
  let o = JSON.parse(atob(e));
410
410
  return {
411
411
  merchantId: o?.mid,
412
- customerId: `${o?.mid}~${s}`
412
+ customerId: `${o?.mid}~${n}`
413
413
  };
414
414
  }
415
415
  return { merchantId: null, customerId: null };
@@ -452,19 +452,19 @@ function We(t, i, r) {
452
452
  e.push(pe(o));
453
453
  }), e;
454
454
  case p.Referred:
455
- return [n("verification.idenfy.referred-awaiting")];
455
+ return [s("verification.idenfy.referred-awaiting")];
456
456
  case p.Failed:
457
- return [n("verification.message.failed")];
457
+ return [s("verification.message.failed")];
458
458
  }
459
459
  }, pe = (e) => {
460
460
  const o = B.VerificationStatuses.filter((l) => l.Vendor === e);
461
461
  if (e === T.ShuftiPro)
462
462
  return ge(o);
463
463
  {
464
- const l = n("verification.idenfy.link-name"), g = {
464
+ const l = s("verification.idenfy.link-name"), g = {
465
465
  link: `<a href="${o[0].VerificationUrl}" target="_blank">${l}</a>`
466
466
  };
467
- return n("verification.idenfy.in-progress", { values: g });
467
+ return s("verification.idenfy.in-progress", { values: g });
468
468
  }
469
469
  }, ge = (e) => {
470
470
  const o = [], l = {}, g = [
@@ -476,8 +476,8 @@ function We(t, i, r) {
476
476
  g.includes(v.Type) && (o.push(v.Type), l[v.Type] = ve(v, we(v.Type)));
477
477
  });
478
478
  let R = o.every((v) => j.has(v)), S = `verification.shuftipro.in-progress.${o.sort().join(".")}`;
479
- return R ? n("verification.shuftipro.validations-started") : n(S, { values: l });
480
- }, ve = (e, o) => `<a class="verificationLink ${e.Type}" href=" ${e.VerificationUrl} " target="_blank">${o}</a>`, we = (e) => n(`verification.shuftipro.link-name.${e}`), U = (e, o) => {
479
+ return R ? s("verification.shuftipro.validations-started") : s(S, { values: l });
480
+ }, ve = (e, o) => `<a class="verificationLink ${e.Type}" href=" ${e.VerificationUrl} " target="_blank">${o}</a>`, we = (e) => s(`verification.shuftipro.link-name.${e}`), U = (e, o) => {
481
481
  if (e.stopPropagation(), e.target && (e.target.href || e.target.closest("a"))) {
482
482
  if (e.target.closest(".verificationLink")) {
483
483
  const l = e.target.className.split(" ")[1];
@@ -507,18 +507,18 @@ function We(t, i, r) {
507
507
  );
508
508
  }, Ve = (e, o) => U(o, e), Pe = (e, o) => U(o, e), be = () => W();
509
509
  function De(e) {
510
- Ie[e ? "unshift" : "push"](() => {
510
+ Me[e ? "unshift" : "push"](() => {
511
511
  m = e, r(3, m);
512
512
  });
513
513
  }
514
514
  return t.$$set = (e) => {
515
- "endpoint" in e && r(12, c = e.endpoint), "lang" in e && r(13, f = e.lang), "translationurl" in e && r(14, d = e.translationurl), "clientstyling" in e && r(0, h = e.clientstyling), "clientstylingurl" in e && r(1, a = e.clientstylingurl), "session" in e && r(15, u = e.session), "customerid" in e && r(16, s = e.customerid), "ismobileview" in e && r(2, y = e.ismobileview);
515
+ "endpoint" in e && r(12, c = e.endpoint), "lang" in e && r(13, f = e.lang), "translationurl" in e && r(14, d = e.translationurl), "clientstyling" in e && r(0, h = e.clientstyling), "clientstylingurl" in e && r(1, a = e.clientstylingurl), "session" in e && r(15, u = e.session), "customerid" in e && r(16, n = e.customerid), "ismobileview" in e && r(2, y = e.ismobileview);
516
516
  }, t.$$.update = () => {
517
517
  t.$$.dirty[0] & /*lang*/
518
- 8192 && f && ne(), t.$$.dirty[0] & /*endpoint, session*/
518
+ 8192 && f && se(), t.$$.dirty[0] & /*endpoint, session*/
519
519
  36864 && c && u && le(), t.$$.dirty[0] & /*translationurl*/
520
520
  16384 && d && oe(), t.$$.dirty[0] & /*clientstyling, customStylingContainer*/
521
- 9 && h && m && se(), t.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
521
+ 9 && h && m && ne(), t.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
522
522
  10 && a && m && ae(), t.$$.dirty[0] & /*ismobileview*/
523
523
  4 && y && ye(), t.$$.dirty[0] & /*staticCdnUrl*/
524
524
  131072 && L && ke();
@@ -532,14 +532,14 @@ function We(t, i, r) {
532
532
  x,
533
533
  E,
534
534
  F,
535
- n,
535
+ s,
536
536
  U,
537
537
  W,
538
538
  c,
539
539
  f,
540
540
  d,
541
541
  u,
542
- s,
542
+ n,
543
543
  L,
544
544
  Ve,
545
545
  Pe,
@@ -554,7 +554,7 @@ class Ge extends Ce {
554
554
  i,
555
555
  We,
556
556
  He,
557
- Ae,
557
+ Se,
558
558
  {
559
559
  endpoint: 12,
560
560
  lang: 13,
@@ -618,7 +618,7 @@ class Ge extends Ce {
618
618
  this.$$set({ ismobileview: i }), b();
619
619
  }
620
620
  }
621
- Se(Ge, { endpoint: {}, lang: {}, translationurl: {}, clientstyling: {}, clientstylingurl: {}, session: {}, customerid: {}, ismobileview: {} }, [], [], !0);
621
+ Ie(Ge, { endpoint: {}, lang: {}, translationurl: {}, clientstyling: {}, clientstylingurl: {}, session: {}, customerid: {}, ismobileview: {} }, [], [], !0);
622
622
  export {
623
623
  Ge as default
624
624
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./CashierConfirmModal-BVT51ZOp.cjs"),S=require("./CashierError-YmV_PQP8.cjs"),I=require("./CashierMethodDetails-Ba0LNaer.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-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;