@everymatrix/cashier-page 1.64.8 → 1.65.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (64) hide show
  1. package/components/{CashierConfirmModal-untxGhsx.js → CashierConfirmModal-CV61pzu0.js} +35 -35
  2. package/components/{CashierConfirmModal-4RYp7Eiq.js → CashierConfirmModal-DV0Fu11y.js} +35 -35
  3. package/components/{CashierError-CmR-nZrh.cjs → CashierError-BexC5v5g.cjs} +16 -3
  4. package/components/{CashierError-7GtTdX3g.js → CashierError-CnuLsRCl.js} +619 -623
  5. package/components/{CashierError-CpPMMDmw.js → CashierError-SQ6WMDgs.js} +618 -622
  6. package/components/{CashierHeader-CS1LfHNH.js → CashierHeader-8L7nZ-F-.js} +36 -36
  7. package/components/{CashierHeader-DKJ2es6H.cjs → CashierHeader-CSswd5tN.cjs} +1 -1
  8. package/components/{CashierHeader-BPW81bpS.js → CashierHeader-DUQCQqzC.js} +38 -38
  9. package/components/{CashierIframeRedirect-BcbdEBA1.cjs → CashierIframeRedirect-BrpsV2Un.cjs} +1 -1
  10. package/components/{CashierIframeRedirect-fN5PDOc4.js → CashierIframeRedirect-DHx9WyMT.js} +39 -39
  11. package/components/{CashierIframeRedirect-CnJ3VzHc.js → CashierIframeRedirect-DYcS1OPf.js} +32 -32
  12. package/components/{CashierMethodDetails--rzIMrEs.js → CashierMethodDetails-B28vx3QT.js} +64 -64
  13. package/components/{CashierMethodDetails-MqGg4bbJ.cjs → CashierMethodDetails-BkMrmz0j.cjs} +1 -1
  14. package/components/{CashierMethodDetails-B_BhZEkY.js → CashierMethodDetails-IbjwyU8O.js} +64 -64
  15. package/components/{CashierMethodsList-C9PUtmAp.js → CashierMethodsList-BO1U03T8.js} +351 -326
  16. package/components/{CashierMethodsList-B5tb0WjS.js → CashierMethodsList-BpD4OpC8.js} +354 -330
  17. package/components/CashierMethodsList-DJjtUT4x.cjs +1 -0
  18. package/components/{CashierModal-BrwIBn9a.js → CashierModal-BfZMj1i-.js} +35 -35
  19. package/components/{CashierModal-ZfKvGxFq.js → CashierModal-CYI7bxDr.js} +40 -40
  20. package/components/{CashierNotifications-dn6rnyK_.js → CashierNotifications-CpgeC0kF.js} +18 -18
  21. package/components/{CashierNotifications-C48iLynX.js → CashierNotifications-DvJFewVg.js} +19 -19
  22. package/components/{CashierPage-Bx6B2IBb.js → CashierPage-BwXNUMwX.js} +191 -188
  23. package/components/{CashierPage-DM7C4hyO.js → CashierPage-DCYRk3m5.js} +193 -190
  24. package/components/{CashierPage-C89vlJ-0.cjs → CashierPage-DM9rnTmG.cjs} +1 -1
  25. package/components/{CashierReceiptPage-Jiu5qUxI.js → CashierReceiptPage-C861CuF9.js} +28 -28
  26. package/components/{CashierReceiptPage-CdgFNrPp.js → CashierReceiptPage-DQpQFz30.js} +28 -28
  27. package/components/{CashierReceiptPage-DinW0opb.cjs → CashierReceiptPage-lQxOhYq3.cjs} +1 -1
  28. package/components/{CashierSessionExpirationModal-J63vMq0N.js → CashierSessionExpirationModal-B933huuB.js} +55 -46
  29. package/components/{CashierSessionExpirationModal-HI5RwZaG.js → CashierSessionExpirationModal-BRMeBIfT.js} +55 -46
  30. package/components/{CashierSessionExpirationModal-m_2LL_N-.cjs → CashierSessionExpirationModal-ITeELxud.cjs} +2 -2
  31. package/components/CashierSpinner-BhmndmKG.cjs +1 -0
  32. package/components/CashierSpinner-CW0tb4Ek.js +71 -0
  33. package/components/CashierSpinner-CnPYs9vs.js +71 -0
  34. package/components/{CashierTransactionHistory-Cz4JGWLZ.cjs → CashierTransactionHistory-BJsiKme9.cjs} +1 -1
  35. package/components/{CashierTransactionHistory-Bryux9RA.js → CashierTransactionHistory-Cs4V32c8.js} +73 -73
  36. package/components/{CashierTransactionHistory-DM_Yer_6.js → CashierTransactionHistory-DUYERKso.js} +86 -86
  37. package/components/{CashierVerifications-BQz_SxLe.js → CashierVerifications-Cp2GiS5X.js} +31 -31
  38. package/components/{CashierVerifications-BhM0LBoQ.cjs → CashierVerifications-DKeZ48d6.cjs} +1 -1
  39. package/components/{CashierVerifications-BH5WM1AE.js → CashierVerifications-EW5bcumJ.js} +31 -31
  40. package/components/{CashierVideoModal-DHNu0BQz.js → CashierVideoModal-D5QKr-_P.js} +38 -38
  41. package/components/{CashierVideoModal-CVDvqrcy.js → CashierVideoModal-onqH-Fiw.js} +39 -39
  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-BzQXAkmg.js +558 -0
  47. package/stencil/index-97d17652-DYGS0vqJ.cjs +1 -0
  48. package/stencil/index-97d17652-mbOyENH9.js +542 -0
  49. package/stencil/{ui-image-CQQDA5b0.js → ui-image-BmTbGz5h.js} +1 -1
  50. package/stencil/{ui-image-CmwNU-jf.js → ui-image-CFddgpOe.js} +1 -1
  51. package/stencil/{ui-image-CMb1eK44.cjs → ui-image-DzutkFSv.cjs} +1 -1
  52. package/stencil/{ui-image-b7b48fe5-Cf9Vq5pI.js → ui-image-b7b48fe5-7wF4sIlr.js} +1 -1
  53. package/stencil/{ui-image-b7b48fe5-DCck2kk1.cjs → ui-image-b7b48fe5-DQE3WxuL.cjs} +1 -1
  54. package/stencil/{ui-image-b7b48fe5-V9vp4faA.js → ui-image-b7b48fe5-kIlLPkYB.js} +1 -1
  55. package/stencil/{ui-image_2-YkYxLKu7.cjs → ui-image_2-CJHJWEhi.cjs} +1 -1
  56. package/stencil/{ui-image_2-B56t6kXT.js → ui-image_2-Db7N7hzA.js} +2 -2
  57. package/stencil/{ui-image_2-BncuYpLi.js → ui-image_2-oohpKuRS.js} +2 -2
  58. package/components/CashierMethodsList-Bpdu8yVn.cjs +0 -1
  59. package/components/CashierSpinner-C-ubAde7.js +0 -71
  60. package/components/CashierSpinner-D-uP0nCc.cjs +0 -1
  61. package/components/CashierSpinner-tLPMJx6q.js +0 -71
  62. package/stencil/index-97d17652-BEnqZAxL.js +0 -558
  63. package/stencil/index-97d17652-D5_8Vwfn.cjs +0 -1
  64. package/stencil/index-97d17652-WK_DbPS4.js +0 -542
@@ -1,10 +1,10 @@
1
- import { S as Ae, b as Oe, s as Te, f as b, c as Me, n as J, e as C, J as O, l as S, o as y, q as P, v as Z, K as X, L as Be, C as D, p as A, z as Le, m as k, A as R, x as qe, y as xe, E as Fe } from "./CashierConfirmModal-untxGhsx.js";
2
- import { a as Ie, i as ze, $ as Ee, b as Ue } from "./CashierError-7GtTdX3g.js";
3
- import { d as Q, u as Re, x as He } from "./CashierMethodDetails-B_BhZEkY.js";
1
+ import { S as Ae, b as Oe, f as b, c as Te, a as Me, d as Be, g as y, j as P, I as O, k as C, n as Z, v as S, w as J, K as X, h as A, E as D, M as Le, l as k, A as R, y as qe, z as xe, C as Fe } from "./CashierConfirmModal-CV61pzu0.js";
2
+ import { a as Ie, i as ze, $ as Ee, b as Ue } from "./CashierError-CnuLsRCl.js";
3
+ import { d as Q, u as Re, x as je } from "./CashierMethodDetails-IbjwyU8O.js";
4
4
  function $(t, i) {
5
5
  Ie(t, i);
6
6
  }
7
- function je(t) {
7
+ function He(t) {
8
8
  ze({
9
9
  fallbackLocale: "en"
10
10
  }), Ee.set(t);
@@ -77,12 +77,12 @@ if (typeof window < "u") {
77
77
  }
78
78
  };
79
79
  };
80
- customElements.define = t(customElements.define), import("./CashierVideoModal-CVDvqrcy.js").then(({ default: i }) => {
80
+ customElements.define = t(customElements.define), import("./CashierVideoModal-D5QKr-_P.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 Ne(t) {
85
- Me(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
+ Be(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 ie(t, i, r) {
88
88
  const s = t.slice();
@@ -127,10 +127,10 @@ function te(t) {
127
127
  );
128
128
  },
129
129
  m(a, u) {
130
- S(a, i, u);
130
+ C(a, i, u);
131
131
  for (let n = 0; n < f.length; n += 1)
132
132
  f[n] && f[n].m(i, null);
133
- S(a, r, u), h && h.m(a, u), S(a, s, u), S(a, c, u);
133
+ C(a, r, u), h && h.m(a, u), C(a, s, u), C(a, c, u);
134
134
  },
135
135
  p(a, u) {
136
136
  if (u[0] & /*allVerificationsVisible, showAllVerifications, displayMessages*/
@@ -176,7 +176,7 @@ function te(t) {
176
176
  );
177
177
  },
178
178
  d(a) {
179
- a && (C(i), C(r), C(s), C(c)), Be(f, a), h && h.d(a);
179
+ a && (S(i), S(r), S(s), S(c)), Le(f, a), h && h.d(a);
180
180
  }
181
181
  };
182
182
  }
@@ -197,13 +197,13 @@ function re(t) {
197
197
  i = y("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>', P(i, "class", "CashierVerificationChevron");
198
198
  },
199
199
  m(d, f) {
200
- S(d, i, f), r || (s = R(i, "click", c), r = !0);
200
+ C(d, i, f), r || (s = R(i, "click", c), r = !0);
201
201
  },
202
202
  p(d, f) {
203
203
  t = d;
204
204
  },
205
205
  d(d) {
206
- d && C(i), r = !1, s();
206
+ d && S(i), r = !1, s();
207
207
  }
208
208
  };
209
209
  }
@@ -236,7 +236,7 @@ function oe(t) {
236
236
  );
237
237
  },
238
238
  m(g, p) {
239
- S(g, i, p), k(i, r), k(i, s), k(i, c), c.innerHTML = d, k(i, f), n && n.m(i, null), k(i, h), a || (u = R(i, "click", V), a = !0);
239
+ C(g, i, p), k(i, r), k(i, s), k(i, c), c.innerHTML = d, k(i, f), n && n.m(i, null), k(i, h), a || (u = R(i, "click", V), a = !0);
240
240
  },
241
241
  p(g, p) {
242
242
  t = g, p[0] & /*displayMessages*/
@@ -252,7 +252,7 @@ function oe(t) {
252
252
  );
253
253
  },
254
254
  d(g) {
255
- g && C(i), n && n.d(), a = !1, u();
255
+ g && S(i), n && n.d(), a = !1, u();
256
256
  }
257
257
  };
258
258
  }
@@ -263,7 +263,7 @@ function ne(t) {
263
263
  ), f, h, a;
264
264
  return {
265
265
  c() {
266
- i = y("div"), r = y("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 = y("div"), f = xe(d), P(r, "class", "IconVideo"), P(c, "class", "CashierVerificationVideoLink"), O(
266
+ i = y("div"), r = y("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 = y("div"), f = qe(d), P(r, "class", "IconVideo"), P(c, "class", "CashierVerificationVideoLink"), O(
267
267
  c,
268
268
  "CashierVerificationVideoLinkDesktop",
269
269
  /*desktopView*/
@@ -271,7 +271,7 @@ function ne(t) {
271
271
  ), P(i, "class", "CashierVerificationVideo");
272
272
  },
273
273
  m(u, n) {
274
- S(u, i, n), k(i, r), k(i, s), k(i, c), k(c, f), h || (a = R(
274
+ C(u, i, n), k(i, r), k(i, s), k(i, c), k(c, f), h || (a = R(
275
275
  c,
276
276
  "click",
277
277
  /*click_handler_2*/
@@ -281,7 +281,7 @@ function ne(t) {
281
281
  p(u, n) {
282
282
  n[0] & /*$_*/
283
283
  512 && d !== (d = /*$_*/
284
- u[9]("verification.video.how-to") + "") && qe(f, d), n[0] & /*desktopView*/
284
+ u[9]("verification.video.how-to") + "") && xe(f, d), n[0] & /*desktopView*/
285
285
  64 && O(
286
286
  c,
287
287
  "CashierVerificationVideoLinkDesktop",
@@ -290,7 +290,7 @@ function ne(t) {
290
290
  );
291
291
  },
292
292
  d(u) {
293
- u && C(i), h = !1, a();
293
+ u && S(i), h = !1, a();
294
294
  }
295
295
  };
296
296
  }
@@ -309,7 +309,7 @@ function Ke(t) {
309
309
  );
310
310
  },
311
311
  m(s, c) {
312
- S(s, i, c), r && r.m(i, null), t[21](i);
312
+ C(s, i, c), r && r.m(i, null), t[21](i);
313
313
  },
314
314
  p(s, c) {
315
315
  /*displayMessages*/
@@ -321,18 +321,18 @@ function Ke(t) {
321
321
  s[6]
322
322
  );
323
323
  },
324
- i: J,
325
- o: J,
324
+ i: Z,
325
+ o: Z,
326
326
  d(s) {
327
- s && C(i), r && r.d(), t[21](null);
327
+ s && S(i), r && r.d(), t[21](null);
328
328
  }
329
329
  };
330
330
  }
331
331
  const We = "verification_explanation_video_widgets.MP4";
332
332
  function Ye(t, i, r) {
333
333
  let s, c;
334
- Z(t, Ue, (e) => r(9, s = e)), Z(t, He, (e) => r(27, c = e)), Q.extend(Re);
335
- let { endpoint: d } = i, { lang: f = "en" } = i, { translationurl: h = "" } = i, { clientstyling: a = "" } = i, { clientstylingurl: u = "" } = i, { session: n = "" } = i, { customerid: V = "" } = i, { ismobileview: g = "" } = i, p, H = /* @__PURE__ */ new Set(), j = /* @__PURE__ */ new Set(), B, L, q, x = !0, N = !0, F = !1, I = "";
334
+ J(t, Ue, (e) => r(9, s = e)), J(t, je, (e) => r(27, c = e)), Q.extend(Re);
335
+ let { endpoint: d } = i, { lang: f = "en" } = i, { translationurl: h = "" } = i, { clientstyling: a = "" } = i, { clientstylingurl: u = "" } = i, { session: n = "" } = i, { customerid: V = "" } = i, { ismobileview: g = "" } = i, p, j = /* @__PURE__ */ new Set(), H = /* @__PURE__ */ new Set(), B, L, q, x = !0, N = !0, F = !1, I = "";
336
336
  var T;
337
337
  (function(e) {
338
338
  e.Manual = "Manual", e.ShuftiPro = "ShuftiPro";
@@ -368,7 +368,7 @@ function Ye(t, i, r) {
368
368
  $(e, ee[e]);
369
369
  });
370
370
  const le = () => {
371
- je(f);
371
+ He(f);
372
372
  }, ce = () => {
373
373
  let e = document.createElement("style");
374
374
  e.innerHTML = a, p.appendChild(e);
@@ -400,7 +400,7 @@ function Ye(t, i, r) {
400
400
  };
401
401
  fetch(l, U).then((_) => _.json()).then((_) => {
402
402
  r(17, L = _.StaticCdnUrl + "/cashier/operator-assets/" + e), B = he(_.Verifications), B.VerificationStatuses.forEach((w) => {
403
- w.VerificationUrlType !== "Widget" && H.add(w.Vendor);
403
+ w.VerificationUrlType !== "Widget" && j.add(w.Vendor);
404
404
  }), r(4, q = Y());
405
405
  });
406
406
  }, de = () => {
@@ -450,7 +450,7 @@ function Ye(t, i, r) {
450
450
  switch (B.VerificationSummaryStatus) {
451
451
  case m.InProgress:
452
452
  const e = [];
453
- return H.forEach((o) => {
453
+ return j.forEach((o) => {
454
454
  e.push(we(o));
455
455
  }), e;
456
456
  case m.Referred:
@@ -477,13 +477,13 @@ function Ye(t, i, r) {
477
477
  e.forEach((w) => {
478
478
  v.includes(w.Type) && (o.push(w.Type), l[w.Type] = ke(w, Pe(w.Type)));
479
479
  });
480
- let U = o.every((w) => j.has(w)), _ = `verification.shuftipro.in-progress.${o.sort().join(".")}`;
480
+ let U = o.every((w) => H.has(w)), _ = `verification.shuftipro.in-progress.${o.sort().join(".")}`;
481
481
  return U ? s("verification.shuftipro.validations-started") : s(_, { values: l });
482
482
  }, ke = (e, o) => `<a class="verificationLink ${e.Type}" href=" ${e.VerificationUrl} " target="_blank">${o}</a>`, Pe = (e) => s(`verification.shuftipro.link-name.${e}`), E = (e, o) => {
483
483
  if (e.stopPropagation(), e.target && (e.target.href || e.target.closest("a"))) {
484
484
  if (e.target.closest(".verificationLink")) {
485
485
  const l = e.target.className.split(" ")[1];
486
- j.add(l), r(4, q = Y());
486
+ H.add(l), r(4, q = Y());
487
487
  }
488
488
  return;
489
489
  }
@@ -503,7 +503,7 @@ function Ye(t, i, r) {
503
503
  window.postMessage({ type: "ShowCashierVideoModal" }, window.location.href);
504
504
  }, De = (e, o) => E(o, e), Ce = (e, o) => E(o, e), Se = () => G();
505
505
  function _e(e) {
506
- Le[e ? "unshift" : "push"](() => {
506
+ Fe[e ? "unshift" : "push"](() => {
507
507
  p = e, r(3, p);
508
508
  });
509
509
  }
@@ -551,7 +551,7 @@ class Ge extends Ae {
551
551
  i,
552
552
  Ye,
553
553
  Ke,
554
- Te,
554
+ Me,
555
555
  {
556
556
  endpoint: 12,
557
557
  lang: 13,
@@ -615,7 +615,7 @@ class Ge extends Ae {
615
615
  this.$$set({ ismobileview: i }), b();
616
616
  }
617
617
  }
618
- Fe(Ge, { endpoint: {}, lang: {}, translationurl: {}, clientstyling: {}, clientstylingurl: {}, session: {}, customerid: {}, ismobileview: {} }, [], [], !0);
618
+ Te(Ge, { endpoint: {}, lang: {}, translationurl: {}, clientstyling: {}, clientstylingurl: {}, session: {}, customerid: {}, ismobileview: {} }, [], [], !0);
619
619
  export {
620
620
  Ge as default
621
621
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./CashierConfirmModal-DMmJumcl.cjs"),A=require("./CashierError-CmR-nZrh.cjs"),S=require("./CashierMethodDetails-MqGg4bbJ.cjs");function j(r,t){A.addMessages(r,t)}function we(r){A.init({fallbackLocale:"en"}),A.$locale.set(r)}const H={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-BZg_b6bd.cjs")).then(({default:t})=>{!customElements.get("cashier-video-modal")&&customElements.define("cashier-video-modal",t.element)})}function ye(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 N(r,t,o){const a=r.slice();return a[51]=t[o],a[53]=o,a}function W(r){let t,o,a,c,u=i.ensure_array_like(r[4]),d=[];for(let l=0;l<u.length;l+=1)d[l]=Y(N(r,u,l));let m=r[7]&&G(r);return{c(){t=i.element("div");for(let l=0;l<d.length;l+=1)d[l].c();o=i.space(),m&&m.c(),a=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 s=0;s<d.length;s+=1)d[s]&&d[s].m(t,null);i.insert(l,o,h),m&&m.m(l,h),i.insert(l,a,h),i.insert(l,c,h)},p(l,h){if(h[0]&1072){u=i.ensure_array_like(l[4]);let s;for(s=0;s<u.length;s+=1){const k=N(l,u,s);d[s]?d[s].p(k,h):(d[s]=Y(k),d[s].c(),d[s].m(t,null))}for(;s<d.length;s+=1)d[s].d(1);d.length=u.length}l[7]?m?m.p(l,h):(m=G(l),m.c(),m.m(a.parentNode,a)):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(a),i.detach(c)),i.destroy_each(d,l),m&&m.d(l)}}}function K(r){let t,o,a;function c(...u){return r[18](r[53],...u)}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(u,d){i.insert(u,t,d),o||(a=i.listen(t,"click",c),o=!0)},p(u,d){r=u},d(u){u&&i.detach(t),o=!1,a()}}}function Y(r){let t,o,a,c,u=r[51]+"",d,m,l,h,s=r[4].length>1&&r[53]===0&&K(r);function k(...w){return r[19](r[53],...w)}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(),c=i.element("p"),d=i.space(),s&&s.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(w,v){i.insert(w,t,v),i.append(t,o),i.append(t,a),i.append(t,c),c.innerHTML=u,i.append(t,d),s&&s.m(t,null),i.append(t,m),l||(h=i.listen(t,"click",k),l=!0)},p(w,v){r=w,v[0]&16&&u!==(u=r[51]+"")&&(c.innerHTML=u),r[4].length>1&&r[53]===0?s?s.p(r,v):(s=K(r),s.c(),s.m(t,m)):s&&(s.d(1),s=null),v[0]&32&&i.toggle_class(t,"ShowAll",r[5])},d(w){w&&i.detach(t),s&&s.d(),l=!1,h()}}}function G(r){let t,o,a,c,u=r[9]("verification.video.how-to")+"",d,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>',a=i.space(),c=i.element("div"),d=i.text(u),i.attr(o,"class","IconVideo"),i.attr(c,"class","CashierVerificationVideoLink"),i.toggle_class(c,"CashierVerificationVideoLinkDesktop",r[6]),i.attr(t,"class","CashierVerificationVideo")},m(h,s){i.insert(h,t,s),i.append(t,o),i.append(t,a),i.append(t,c),i.append(c,d),m||(l=i.listen(c,"click",r[20]),m=!0)},p(h,s){s[0]&512&&u!==(u=h[9]("verification.video.how-to")+"")&&i.set_data(d,u),s[0]&64&&i.toggle_class(c,"CashierVerificationVideoLinkDesktop",h[6])},d(h){h&&i.detach(t),m=!1,l()}}}function ke(r){let t,o=r[4]&&W(r);return{c(){t=i.element("div"),o&&o.c(),i.attr(t,"class","CashierVerifications"),i.toggle_class(t,"CashierVerificationsDesktop",r[6])},m(a,c){i.insert(a,t,c),o&&o.m(t,null),r[21](t)},p(a,c){a[4]?o?o.p(a,c):(o=W(a),o.c(),o.m(t,null)):o&&(o.d(1),o=null),c[0]&64&&i.toggle_class(t,"CashierVerificationsDesktop",a[6])},i:i.noop,o:i.noop,d(a){a&&i.detach(t),o&&o.d(),r[21](null)}}}const _e="verification_explanation_video_widgets.MP4";function Pe(r,t,o){let a,c;i.component_subscribe(r,A.$format,e=>o(9,a=e)),i.component_subscribe(r,S.xPaymentSessionToken,e=>o(27,c=e)),S.dayjs.extend(S.utc);let{endpoint:u}=t,{lang:d="en"}=t,{translationurl:m=""}=t,{clientstyling:l=""}=t,{clientstylingurl:h=""}=t,{session:s=""}=t,{customerid:k=""}=t,{ismobileview:w=""}=t,v,F=new Set,x=new Set,D,C,O,M=!0,I=!0,T=!1,B="";var V;(function(e){e.Manual="Manual",e.ShuftiPro="ShuftiPro"})(V||(V={}));var L;(function(e){e.Requested="Requested"})(L||(L={}));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 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 J=[g.InProgress,g.Referred,g.AwaitingForResponse],X=()=>{let e=m;if(e)return fetch(e).then(n=>n.json()).then(n=>{Object.keys(n).forEach(f=>{j(f,n[f])})}).catch(n=>{console.log(n)})};Object.keys(H).forEach(e=>{j(e,H[e])});const Q=()=>{we(d)},$=()=>{let e=document.createElement("style");e.innerHTML=l,v.appendChild(e)},ee=()=>{let e=new URL(h),n=document.createElement("style");fetch(e.href).then(f=>f.text()).then(f=>{n.innerHTML=f,setTimeout(()=>{v.appendChild(n)},1)})},z=()=>{const{merchantId:e,customerId:n}=te();if(!e)return;const f=new URL(`${u}/v1/player/verification/GetKYCStatus`),p=new Headers;p.append("accept","application/json"),p.append("Content-Type","application/json"),p.append("X-Client-Request-Timestamp",S.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(P=>P.json()).then(P=>{o(17,C=P.StaticCdnUrl+"/cashier/operator-assets/"+e),D=re(P.Verifications),D.VerificationStatuses.forEach(y=>{y.VerificationUrlType!=="Widget"&&F.add(y.Vendor)}),o(4,O=U())})},ie=()=>{c&&z()},te=()=>{let e=(s||c).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}~${k}`}}return{merchantId:null,customerId:null}},re=e=>{var f;if(!e||!e.length)return{VerificationSummaryStatus:g.Unverified,VerificationStatuses:[]};const n=ne(e);if(n&&n.length){const p=oe(n);return{VerificationSummaryStatus:p.Status,VerificationUrl:(f=p.Flags)==null?void 0:f.DeferredUrlKey,VerificationStatuses:E(n,p.Status)}}else return{VerificationSummaryStatus:e.some(_=>_.Status===g.Failed)?g.Failed:g.Verified,VerificationStatuses:E(e,[g.Failed])}},oe=e=>e.reduce((n,f)=>n?new Date(n)<new Date(f)?f:n:f,0),E=(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}}),ne=e=>e.filter(n=>J.includes(n.Status)?n.Flags&&n.Flags.DeferredUrlKey||se(n)||ae(n):!1),se=e=>{const n=e.Documents&&e.VendorName===V.Manual,f=Object.values(e.Documents).some(p=>p.Status===L.Requested);return n&&f},ae=e=>e.VendorName===V.ShuftiPro&&e.Status===g.Referred,U=()=>{switch(D.VerificationSummaryStatus){case g.InProgress:const e=[];return F.forEach(n=>{e.push(le(n))}),e;case g.Referred:return[a("verification.idenfy.referred-awaiting")];case g.Failed:return[a("verification.message.failed")]}},le=e=>{const n=D.VerificationStatuses.filter(f=>f.Vendor===e);if(e===V.ShuftiPro)return ce(n);{const f=a("verification.idenfy.link-name"),p={link:`<a href="${n[0].VerificationUrl}" target="_blank">${f}</a>`};return a("verification.idenfy.in-progress",{values:p})}},ce=e=>{const n=[],f={},p=[b.Biometric,b.Documents,b.ProofOfAddress];e.forEach(y=>{p.includes(y.Type)&&(n.push(y.Type),f[y.Type]=fe(y,de(y.Type)))});let _=n.every(y=>x.has(y)),P=`verification.shuftipro.in-progress.${n.sort().join(".")}`;return _?a("verification.shuftipro.validations-started"):a(P,{values:f})},fe=(e,n)=>`<a class="verificationLink ${e.Type}" href=" ${e.VerificationUrl} " target="_blank">${n}</a>`,de=e=>a(`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];x.add(f),o(4,O=U())}return}n===0&&o(5,M=!M)},ue=()=>{o(6,I=w==="false")},he=()=>{o(8,B=C+"/"+d+"/"+_e);try{fetch(B,{method:"HEAD"}).then(e=>{o(7,T=e.ok)})}catch(e){o(7,T=!1)}},R=()=>{window.postMessage({type:"ShowCashierVideoModal"},window.location.href)},me=(e,n)=>q(n,e),pe=(e,n)=>q(n,e),ge=()=>R();function ve(e){i.binding_callbacks[e?"unshift":"push"](()=>{v=e,o(3,v)})}return r.$$set=e=>{"endpoint"in e&&o(12,u=e.endpoint),"lang"in e&&o(13,d=e.lang),"translationurl"in e&&o(14,m=e.translationurl),"clientstyling"in e&&o(0,l=e.clientstyling),"clientstylingurl"in e&&o(1,h=e.clientstylingurl),"session"in e&&o(15,s=e.session),"customerid"in e&&o(16,k=e.customerid),"ismobileview"in e&&o(2,w=e.ismobileview)},r.$$.update=()=>{r.$$.dirty[0]&8192&&d&&Q(),r.$$.dirty[0]&36864&&u&&s&&z(),r.$$.dirty[0]&36864&&u&&!s&&ie(),r.$$.dirty[0]&16384&&m&&X(),r.$$.dirty[0]&9&&l&&v&&$(),r.$$.dirty[0]&10&&h&&v&&ee(),r.$$.dirty[0]&4&&w&&ue(),r.$$.dirty[0]&131072&&C&&he()},[l,h,w,v,O,M,I,T,B,a,q,R,u,d,m,s,k,C,me,pe,ge,ve]}class Z extends i.SvelteComponent{constructor(t){super(),i.init(this,t,Pe,ke,i.safe_not_equal,{endpoint:12,lang:13,translationurl:14,clientstyling:0,clientstylingurl:1,session:15,customerid:16,ismobileview:2},ye,[-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(Z,{endpoint:{},lang:{},translationurl:{},clientstyling:{},clientstylingurl:{},session:{},customerid:{},ismobileview:{}},[],[],!0);exports.default=Z;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./CashierConfirmModal-DMmJumcl.cjs"),A=require("./CashierError-BexC5v5g.cjs"),S=require("./CashierMethodDetails-BkMrmz0j.cjs");function j(r,t){A.addMessages(r,t)}function we(r){A.init({fallbackLocale:"en"}),A.$locale.set(r)}const H={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-BZg_b6bd.cjs")).then(({default:t})=>{!customElements.get("cashier-video-modal")&&customElements.define("cashier-video-modal",t.element)})}function ye(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 N(r,t,o){const a=r.slice();return a[51]=t[o],a[53]=o,a}function W(r){let t,o,a,c,u=i.ensure_array_like(r[4]),d=[];for(let l=0;l<u.length;l+=1)d[l]=Y(N(r,u,l));let m=r[7]&&G(r);return{c(){t=i.element("div");for(let l=0;l<d.length;l+=1)d[l].c();o=i.space(),m&&m.c(),a=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 s=0;s<d.length;s+=1)d[s]&&d[s].m(t,null);i.insert(l,o,h),m&&m.m(l,h),i.insert(l,a,h),i.insert(l,c,h)},p(l,h){if(h[0]&1072){u=i.ensure_array_like(l[4]);let s;for(s=0;s<u.length;s+=1){const k=N(l,u,s);d[s]?d[s].p(k,h):(d[s]=Y(k),d[s].c(),d[s].m(t,null))}for(;s<d.length;s+=1)d[s].d(1);d.length=u.length}l[7]?m?m.p(l,h):(m=G(l),m.c(),m.m(a.parentNode,a)):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(a),i.detach(c)),i.destroy_each(d,l),m&&m.d(l)}}}function K(r){let t,o,a;function c(...u){return r[18](r[53],...u)}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(u,d){i.insert(u,t,d),o||(a=i.listen(t,"click",c),o=!0)},p(u,d){r=u},d(u){u&&i.detach(t),o=!1,a()}}}function Y(r){let t,o,a,c,u=r[51]+"",d,m,l,h,s=r[4].length>1&&r[53]===0&&K(r);function k(...w){return r[19](r[53],...w)}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(),c=i.element("p"),d=i.space(),s&&s.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(w,v){i.insert(w,t,v),i.append(t,o),i.append(t,a),i.append(t,c),c.innerHTML=u,i.append(t,d),s&&s.m(t,null),i.append(t,m),l||(h=i.listen(t,"click",k),l=!0)},p(w,v){r=w,v[0]&16&&u!==(u=r[51]+"")&&(c.innerHTML=u),r[4].length>1&&r[53]===0?s?s.p(r,v):(s=K(r),s.c(),s.m(t,m)):s&&(s.d(1),s=null),v[0]&32&&i.toggle_class(t,"ShowAll",r[5])},d(w){w&&i.detach(t),s&&s.d(),l=!1,h()}}}function G(r){let t,o,a,c,u=r[9]("verification.video.how-to")+"",d,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>',a=i.space(),c=i.element("div"),d=i.text(u),i.attr(o,"class","IconVideo"),i.attr(c,"class","CashierVerificationVideoLink"),i.toggle_class(c,"CashierVerificationVideoLinkDesktop",r[6]),i.attr(t,"class","CashierVerificationVideo")},m(h,s){i.insert(h,t,s),i.append(t,o),i.append(t,a),i.append(t,c),i.append(c,d),m||(l=i.listen(c,"click",r[20]),m=!0)},p(h,s){s[0]&512&&u!==(u=h[9]("verification.video.how-to")+"")&&i.set_data(d,u),s[0]&64&&i.toggle_class(c,"CashierVerificationVideoLinkDesktop",h[6])},d(h){h&&i.detach(t),m=!1,l()}}}function ke(r){let t,o=r[4]&&W(r);return{c(){t=i.element("div"),o&&o.c(),i.attr(t,"class","CashierVerifications"),i.toggle_class(t,"CashierVerificationsDesktop",r[6])},m(a,c){i.insert(a,t,c),o&&o.m(t,null),r[21](t)},p(a,c){a[4]?o?o.p(a,c):(o=W(a),o.c(),o.m(t,null)):o&&(o.d(1),o=null),c[0]&64&&i.toggle_class(t,"CashierVerificationsDesktop",a[6])},i:i.noop,o:i.noop,d(a){a&&i.detach(t),o&&o.d(),r[21](null)}}}const _e="verification_explanation_video_widgets.MP4";function Pe(r,t,o){let a,c;i.component_subscribe(r,A.$format,e=>o(9,a=e)),i.component_subscribe(r,S.xPaymentSessionToken,e=>o(27,c=e)),S.dayjs.extend(S.utc);let{endpoint:u}=t,{lang:d="en"}=t,{translationurl:m=""}=t,{clientstyling:l=""}=t,{clientstylingurl:h=""}=t,{session:s=""}=t,{customerid:k=""}=t,{ismobileview:w=""}=t,v,F=new Set,x=new Set,D,C,O,M=!0,I=!0,T=!1,B="";var V;(function(e){e.Manual="Manual",e.ShuftiPro="ShuftiPro"})(V||(V={}));var L;(function(e){e.Requested="Requested"})(L||(L={}));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 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 J=[g.InProgress,g.Referred,g.AwaitingForResponse],X=()=>{let e=m;if(e)return fetch(e).then(n=>n.json()).then(n=>{Object.keys(n).forEach(f=>{j(f,n[f])})}).catch(n=>{console.log(n)})};Object.keys(H).forEach(e=>{j(e,H[e])});const Q=()=>{we(d)},$=()=>{let e=document.createElement("style");e.innerHTML=l,v.appendChild(e)},ee=()=>{let e=new URL(h),n=document.createElement("style");fetch(e.href).then(f=>f.text()).then(f=>{n.innerHTML=f,setTimeout(()=>{v.appendChild(n)},1)})},z=()=>{const{merchantId:e,customerId:n}=te();if(!e)return;const f=new URL(`${u}/v1/player/verification/GetKYCStatus`),p=new Headers;p.append("accept","application/json"),p.append("Content-Type","application/json"),p.append("X-Client-Request-Timestamp",S.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(P=>P.json()).then(P=>{o(17,C=P.StaticCdnUrl+"/cashier/operator-assets/"+e),D=re(P.Verifications),D.VerificationStatuses.forEach(y=>{y.VerificationUrlType!=="Widget"&&F.add(y.Vendor)}),o(4,O=U())})},ie=()=>{c&&z()},te=()=>{let e=(s||c).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}~${k}`}}return{merchantId:null,customerId:null}},re=e=>{var f;if(!e||!e.length)return{VerificationSummaryStatus:g.Unverified,VerificationStatuses:[]};const n=ne(e);if(n&&n.length){const p=oe(n);return{VerificationSummaryStatus:p.Status,VerificationUrl:(f=p.Flags)==null?void 0:f.DeferredUrlKey,VerificationStatuses:E(n,p.Status)}}else return{VerificationSummaryStatus:e.some(_=>_.Status===g.Failed)?g.Failed:g.Verified,VerificationStatuses:E(e,[g.Failed])}},oe=e=>e.reduce((n,f)=>n?new Date(n)<new Date(f)?f:n:f,0),E=(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}}),ne=e=>e.filter(n=>J.includes(n.Status)?n.Flags&&n.Flags.DeferredUrlKey||se(n)||ae(n):!1),se=e=>{const n=e.Documents&&e.VendorName===V.Manual,f=Object.values(e.Documents).some(p=>p.Status===L.Requested);return n&&f},ae=e=>e.VendorName===V.ShuftiPro&&e.Status===g.Referred,U=()=>{switch(D.VerificationSummaryStatus){case g.InProgress:const e=[];return F.forEach(n=>{e.push(le(n))}),e;case g.Referred:return[a("verification.idenfy.referred-awaiting")];case g.Failed:return[a("verification.message.failed")]}},le=e=>{const n=D.VerificationStatuses.filter(f=>f.Vendor===e);if(e===V.ShuftiPro)return ce(n);{const f=a("verification.idenfy.link-name"),p={link:`<a href="${n[0].VerificationUrl}" target="_blank">${f}</a>`};return a("verification.idenfy.in-progress",{values:p})}},ce=e=>{const n=[],f={},p=[b.Biometric,b.Documents,b.ProofOfAddress];e.forEach(y=>{p.includes(y.Type)&&(n.push(y.Type),f[y.Type]=fe(y,de(y.Type)))});let _=n.every(y=>x.has(y)),P=`verification.shuftipro.in-progress.${n.sort().join(".")}`;return _?a("verification.shuftipro.validations-started"):a(P,{values:f})},fe=(e,n)=>`<a class="verificationLink ${e.Type}" href=" ${e.VerificationUrl} " target="_blank">${n}</a>`,de=e=>a(`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];x.add(f),o(4,O=U())}return}n===0&&o(5,M=!M)},ue=()=>{o(6,I=w==="false")},he=()=>{o(8,B=C+"/"+d+"/"+_e);try{fetch(B,{method:"HEAD"}).then(e=>{o(7,T=e.ok)})}catch(e){o(7,T=!1)}},R=()=>{window.postMessage({type:"ShowCashierVideoModal"},window.location.href)},me=(e,n)=>q(n,e),pe=(e,n)=>q(n,e),ge=()=>R();function ve(e){i.binding_callbacks[e?"unshift":"push"](()=>{v=e,o(3,v)})}return r.$$set=e=>{"endpoint"in e&&o(12,u=e.endpoint),"lang"in e&&o(13,d=e.lang),"translationurl"in e&&o(14,m=e.translationurl),"clientstyling"in e&&o(0,l=e.clientstyling),"clientstylingurl"in e&&o(1,h=e.clientstylingurl),"session"in e&&o(15,s=e.session),"customerid"in e&&o(16,k=e.customerid),"ismobileview"in e&&o(2,w=e.ismobileview)},r.$$.update=()=>{r.$$.dirty[0]&8192&&d&&Q(),r.$$.dirty[0]&36864&&u&&s&&z(),r.$$.dirty[0]&36864&&u&&!s&&ie(),r.$$.dirty[0]&16384&&m&&X(),r.$$.dirty[0]&9&&l&&v&&$(),r.$$.dirty[0]&10&&h&&v&&ee(),r.$$.dirty[0]&4&&w&&ue(),r.$$.dirty[0]&131072&&C&&he()},[l,h,w,v,O,M,I,T,B,a,q,R,u,d,m,s,k,C,me,pe,ge,ve]}class Z extends i.SvelteComponent{constructor(t){super(),i.init(this,t,Pe,ke,i.safe_not_equal,{endpoint:12,lang:13,translationurl:14,clientstyling:0,clientstylingurl:1,session:15,customerid:16,ismobileview:2},ye,[-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(Z,{endpoint:{},lang:{},translationurl:{},clientstyling:{},clientstylingurl:{},session:{},customerid:{},ismobileview:{}},[],[],!0);exports.default=Z;
@@ -1,10 +1,10 @@
1
- import { S as Ae, b as Oe, s as Me, f as D, c as Te, n as J, e as S, J as M, m as _, p as y, v as P, w as Z, K as X, L as Be, D as C, q as O, A as Le, o as k, B as R, y as qe, z as xe, E as Fe } from "./CashierConfirmModal-4RYp7Eiq.js";
2
- import { a as Ie, i as ze, $ as Ee, b as Ue } from "./CashierError-CpPMMDmw.js";
3
- import { d as Q, u as Re, x as He } from "./CashierMethodDetails--rzIMrEs.js";
1
+ import { S as Ae, b as Oe, f as D, c as Me, a as Te, d as Be, g as y, j as P, I as M, k as S, n as Z, v as _, w as J, K as X, h as O, E as C, M as Le, l as k, A as R, y as qe, z as xe, C as Fe } from "./CashierConfirmModal-DV0Fu11y.js";
2
+ import { a as Ie, i as ze, $ as Ee, b as Ue } from "./CashierError-SQ6WMDgs.js";
3
+ import { d as Q, u as Re, x as je } from "./CashierMethodDetails-B28vx3QT.js";
4
4
  function $(t, i) {
5
5
  Ie(t, i);
6
6
  }
7
- function je(t) {
7
+ function He(t) {
8
8
  ze({
9
9
  fallbackLocale: "en"
10
10
  }), Ee.set(t);
@@ -77,12 +77,12 @@ if (typeof window != "undefined") {
77
77
  }
78
78
  };
79
79
  };
80
- customElements.define = t(customElements.define), import("./CashierVideoModal-DHNu0BQz.js").then(({ default: i }) => {
80
+ customElements.define = t(customElements.define), import("./CashierVideoModal-onqH-Fiw.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 Ne(t) {
85
- Te(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
+ Be(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 ie(t, i, r) {
88
88
  const n = t.slice();
@@ -127,10 +127,10 @@ function te(t) {
127
127
  );
128
128
  },
129
129
  m(a, u) {
130
- _(a, i, u);
130
+ S(a, i, u);
131
131
  for (let s = 0; s < f.length; s += 1)
132
132
  f[s] && f[s].m(i, null);
133
- _(a, r, u), h && h.m(a, u), _(a, n, u), _(a, l, u);
133
+ S(a, r, u), h && h.m(a, u), S(a, n, u), S(a, l, u);
134
134
  },
135
135
  p(a, u) {
136
136
  if (u[0] & /*allVerificationsVisible, showAllVerifications, displayMessages*/
@@ -176,7 +176,7 @@ function te(t) {
176
176
  );
177
177
  },
178
178
  d(a) {
179
- a && (S(i), S(r), S(n), S(l)), Be(f, a), h && h.d(a);
179
+ a && (_(i), _(r), _(n), _(l)), Le(f, a), h && h.d(a);
180
180
  }
181
181
  };
182
182
  }
@@ -197,13 +197,13 @@ function re(t) {
197
197
  i = y("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>', P(i, "class", "CashierVerificationChevron");
198
198
  },
199
199
  m(d, f) {
200
- _(d, i, f), r || (n = R(i, "click", l), r = !0);
200
+ S(d, i, f), r || (n = R(i, "click", l), r = !0);
201
201
  },
202
202
  p(d, f) {
203
203
  t = d;
204
204
  },
205
205
  d(d) {
206
- d && S(i), r = !1, n();
206
+ d && _(i), r = !1, n();
207
207
  }
208
208
  };
209
209
  }
@@ -236,7 +236,7 @@ function oe(t) {
236
236
  );
237
237
  },
238
238
  m(v, g) {
239
- _(v, i, g), k(i, r), k(i, n), k(i, l), l.innerHTML = d, k(i, f), s && s.m(i, null), k(i, h), a || (u = R(i, "click", V), a = !0);
239
+ S(v, i, g), k(i, r), k(i, n), k(i, l), l.innerHTML = d, k(i, f), s && s.m(i, null), k(i, h), a || (u = R(i, "click", V), a = !0);
240
240
  },
241
241
  p(v, g) {
242
242
  t = v, g[0] & /*displayMessages*/
@@ -252,7 +252,7 @@ function oe(t) {
252
252
  );
253
253
  },
254
254
  d(v) {
255
- v && S(i), s && s.d(), a = !1, u();
255
+ v && _(i), s && s.d(), a = !1, u();
256
256
  }
257
257
  };
258
258
  }
@@ -263,7 +263,7 @@ function se(t) {
263
263
  ), f, h, a;
264
264
  return {
265
265
  c() {
266
- i = y("div"), r = y("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 = O(), l = y("div"), f = xe(d), P(r, "class", "IconVideo"), P(l, "class", "CashierVerificationVideoLink"), M(
266
+ i = y("div"), r = y("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 = O(), l = y("div"), f = qe(d), P(r, "class", "IconVideo"), P(l, "class", "CashierVerificationVideoLink"), M(
267
267
  l,
268
268
  "CashierVerificationVideoLinkDesktop",
269
269
  /*desktopView*/
@@ -271,7 +271,7 @@ function se(t) {
271
271
  ), P(i, "class", "CashierVerificationVideo");
272
272
  },
273
273
  m(u, s) {
274
- _(u, i, s), k(i, r), k(i, n), k(i, l), k(l, f), h || (a = R(
274
+ S(u, i, s), k(i, r), k(i, n), k(i, l), k(l, f), h || (a = R(
275
275
  l,
276
276
  "click",
277
277
  /*click_handler_2*/
@@ -281,7 +281,7 @@ function se(t) {
281
281
  p(u, s) {
282
282
  s[0] & /*$_*/
283
283
  512 && d !== (d = /*$_*/
284
- u[9]("verification.video.how-to") + "") && qe(f, d), s[0] & /*desktopView*/
284
+ u[9]("verification.video.how-to") + "") && xe(f, d), s[0] & /*desktopView*/
285
285
  64 && M(
286
286
  l,
287
287
  "CashierVerificationVideoLinkDesktop",
@@ -290,7 +290,7 @@ function se(t) {
290
290
  );
291
291
  },
292
292
  d(u) {
293
- u && S(i), h = !1, a();
293
+ u && _(i), h = !1, a();
294
294
  }
295
295
  };
296
296
  }
@@ -309,7 +309,7 @@ function Ke(t) {
309
309
  );
310
310
  },
311
311
  m(n, l) {
312
- _(n, i, l), r && r.m(i, null), t[21](i);
312
+ S(n, i, l), r && r.m(i, null), t[21](i);
313
313
  },
314
314
  p(n, l) {
315
315
  /*displayMessages*/
@@ -321,18 +321,18 @@ function Ke(t) {
321
321
  n[6]
322
322
  );
323
323
  },
324
- i: J,
325
- o: J,
324
+ i: Z,
325
+ o: Z,
326
326
  d(n) {
327
- n && S(i), r && r.d(), t[21](null);
327
+ n && _(i), r && r.d(), t[21](null);
328
328
  }
329
329
  };
330
330
  }
331
331
  const We = "verification_explanation_video_widgets.MP4";
332
332
  function Ye(t, i, r) {
333
333
  let n, l;
334
- Z(t, Ue, (e) => r(9, n = e)), Z(t, He, (e) => r(27, l = e)), Q.extend(Re);
335
- let { endpoint: d } = i, { lang: f = "en" } = i, { translationurl: h = "" } = i, { clientstyling: a = "" } = i, { clientstylingurl: u = "" } = i, { session: s = "" } = i, { customerid: V = "" } = i, { ismobileview: v = "" } = i, g, H = /* @__PURE__ */ new Set(), j = /* @__PURE__ */ new Set(), L, q, x, F = !0, N = !0, I = !1, z = "";
334
+ J(t, Ue, (e) => r(9, n = e)), J(t, je, (e) => r(27, l = e)), Q.extend(Re);
335
+ let { endpoint: d } = i, { lang: f = "en" } = i, { translationurl: h = "" } = i, { clientstyling: a = "" } = i, { clientstylingurl: u = "" } = i, { session: s = "" } = i, { customerid: V = "" } = i, { ismobileview: v = "" } = i, g, j = /* @__PURE__ */ new Set(), H = /* @__PURE__ */ new Set(), L, q, x, F = !0, N = !0, I = !1, z = "";
336
336
  var T;
337
337
  (function(e) {
338
338
  e.Manual = "Manual", e.ShuftiPro = "ShuftiPro";
@@ -368,7 +368,7 @@ function Ye(t, i, r) {
368
368
  $(e, ee[e]);
369
369
  });
370
370
  const le = () => {
371
- je(f);
371
+ He(f);
372
372
  }, ce = () => {
373
373
  let e = document.createElement("style");
374
374
  e.innerHTML = a, g.appendChild(e);
@@ -400,7 +400,7 @@ function Ye(t, i, r) {
400
400
  };
401
401
  fetch(c, b).then((A) => A.json()).then((A) => {
402
402
  r(17, q = A.StaticCdnUrl + "/cashier/operator-assets/" + e), L = he(A.Verifications), L.VerificationStatuses.forEach((w) => {
403
- w.VerificationUrlType !== "Widget" && H.add(w.Vendor);
403
+ w.VerificationUrlType !== "Widget" && j.add(w.Vendor);
404
404
  }), r(4, x = Y());
405
405
  });
406
406
  }, de = () => {
@@ -454,7 +454,7 @@ function Ye(t, i, r) {
454
454
  switch (L.VerificationSummaryStatus) {
455
455
  case p.InProgress:
456
456
  const e = [];
457
- return H.forEach((o) => {
457
+ return j.forEach((o) => {
458
458
  e.push(we(o));
459
459
  }), e;
460
460
  case p.Referred:
@@ -481,13 +481,13 @@ function Ye(t, i, r) {
481
481
  e.forEach((w) => {
482
482
  m.includes(w.Type) && (o.push(w.Type), c[w.Type] = ke(w, Pe(w.Type)));
483
483
  });
484
- let b = o.every((w) => j.has(w)), A = `verification.shuftipro.in-progress.${o.sort().join(".")}`;
484
+ let b = o.every((w) => H.has(w)), A = `verification.shuftipro.in-progress.${o.sort().join(".")}`;
485
485
  return b ? n("verification.shuftipro.validations-started") : n(A, { values: c });
486
486
  }, ke = (e, o) => `<a class="verificationLink ${e.Type}" href=" ${e.VerificationUrl} " target="_blank">${o}</a>`, Pe = (e) => n(`verification.shuftipro.link-name.${e}`), U = (e, o) => {
487
487
  if (e.stopPropagation(), e.target && (e.target.href || e.target.closest("a"))) {
488
488
  if (e.target.closest(".verificationLink")) {
489
489
  const c = e.target.className.split(" ")[1];
490
- j.add(c), r(4, x = Y());
490
+ H.add(c), r(4, x = Y());
491
491
  }
492
492
  return;
493
493
  }
@@ -507,7 +507,7 @@ function Ye(t, i, r) {
507
507
  window.postMessage({ type: "ShowCashierVideoModal" }, window.location.href);
508
508
  }, De = (e, o) => U(o, e), Ce = (e, o) => U(o, e), Se = () => G();
509
509
  function _e(e) {
510
- Le[e ? "unshift" : "push"](() => {
510
+ Fe[e ? "unshift" : "push"](() => {
511
511
  g = e, r(3, g);
512
512
  });
513
513
  }
@@ -555,7 +555,7 @@ class Ge extends Ae {
555
555
  i,
556
556
  Ye,
557
557
  Ke,
558
- Me,
558
+ Te,
559
559
  {
560
560
  endpoint: 12,
561
561
  lang: 13,
@@ -619,7 +619,7 @@ class Ge extends Ae {
619
619
  this.$$set({ ismobileview: i }), D();
620
620
  }
621
621
  }
622
- Fe(Ge, { endpoint: {}, lang: {}, translationurl: {}, clientstyling: {}, clientstylingurl: {}, session: {}, customerid: {}, ismobileview: {} }, [], [], !0);
622
+ Me(Ge, { endpoint: {}, lang: {}, translationurl: {}, clientstyling: {}, clientstylingurl: {}, session: {}, customerid: {}, ismobileview: {} }, [], [], !0);
623
623
  export {
624
624
  Ge as default
625
625
  };