@everymatrix/cashier-page 1.69.3 → 1.70.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 (25) hide show
  1. package/components/{CashierMethodDetails-rfZY5K0e.js → CashierMethodDetails-Bd3dJIne.js} +717 -727
  2. package/components/{CashierMethodDetails-CoqrsZpI.cjs → CashierMethodDetails-C1IkwS7r.cjs} +4 -4
  3. package/components/{CashierMethodDetails-C-Ut2IGe.js → CashierMethodDetails-CbzQCKZu.js} +721 -731
  4. package/components/{CashierMethodsList-BamQMAO0.js → CashierMethodsList-C1Roz4a7.js} +1 -1
  5. package/components/{CashierMethodsList-Cr6mhrvJ.cjs → CashierMethodsList-GlWqnvHm.cjs} +1 -1
  6. package/components/{CashierMethodsList-C6e55bjb.js → CashierMethodsList-wbpWQlt7.js} +1 -1
  7. package/components/{CashierPage-BoEfCJ8r.cjs → CashierPage-CeDNrFtr.cjs} +1 -1
  8. package/components/{CashierPage-CaP6odYj.js → CashierPage-D1XOiV_V.js} +6 -6
  9. package/components/{CashierPage-BJlHrw66.js → CashierPage-DHASkcsL.js} +6 -6
  10. package/components/{CashierReceiptPage-BlVH86DW.js → CashierReceiptPage--u9KEoCs.js} +1 -1
  11. package/components/{CashierReceiptPage-B2GSh9vv.js → CashierReceiptPage-BnvakxJQ.js} +1 -1
  12. package/components/{CashierReceiptPage-BVS0odD-.cjs → CashierReceiptPage-DT0yYD3A.cjs} +1 -1
  13. package/components/{CashierSessionExpirationModal-BxNZq7Gf.js → CashierSessionExpirationModal-BM6h05_P.js} +1 -1
  14. package/components/{CashierSessionExpirationModal-BicBzpY2.cjs → CashierSessionExpirationModal-DQBxk3nF.cjs} +1 -1
  15. package/components/{CashierSessionExpirationModal-DSBOAXLu.js → CashierSessionExpirationModal-DT7l33oM.js} +1 -1
  16. package/components/{CashierTransactionHistory-xR2Md4Br.cjs → CashierTransactionHistory-75SCP1rv.cjs} +1 -1
  17. package/components/{CashierTransactionHistory-BJNXnfke.js → CashierTransactionHistory-CfdEK8dI.js} +1 -1
  18. package/components/{CashierTransactionHistory-CuT5mUVX.js → CashierTransactionHistory-DxaRw8iZ.js} +1 -1
  19. package/components/{CashierVerifications-DbJJiIau.cjs → CashierVerifications-BTorcj-t.cjs} +1 -1
  20. package/components/{CashierVerifications-CTbLuZeN.js → CashierVerifications-Bt9z1qXM.js} +183 -182
  21. package/components/{CashierVerifications-DnLBDkUg.js → CashierVerifications-BvPWg9O1.js} +118 -117
  22. package/es2015/cashier-page.cjs +1 -1
  23. package/es2015/cashier-page.js +1 -1
  24. package/esnext/cashier-page.js +1 -1
  25. package/package.json +1 -1
@@ -1,15 +1,15 @@
1
- import { S as Te, b as Oe, s as Me, f as y, c as Be, n as J, e as D, J as T, l as C, o as w, q as V, v as Z, K as X, L as Le, C as b, p as A, z as xe, m as k, A as U, x as qe, y as Fe, E as ze } from "./CashierConfirmModal-untxGhsx.js";
2
- import { a as Ie, i as Ee, $ as Re, b as Ue } from "./CashierError-B3QY-Z04.js";
3
- import { d as Q, u as He, x as Ne } from "./CashierMethodDetails-rfZY5K0e.js";
4
- function $(t, i) {
5
- Ie(t, i);
1
+ import { S as Oe, b as Be, s as Me, f as y, c as Le, n as Z, e as D, J as T, l as C, o as w, q as V, v as X, K as Q, L as xe, C as b, p as A, z as qe, m as k, A as H, x as Fe, y as ze, E as Ie } from "./CashierConfirmModal-untxGhsx.js";
2
+ import { a as Ee, i as Re, $ as Ue, b as He } from "./CashierError-B3QY-Z04.js";
3
+ import { d as $, u as Ne, x as je } from "./CashierMethodDetails-Bd3dJIne.js";
4
+ function ee(t, i) {
5
+ Ee(t, i);
6
6
  }
7
- function je(t) {
8
- Ee({
7
+ function We(t) {
8
+ Re({
9
9
  fallbackLocale: "en"
10
- }), Re.set(t);
10
+ }), Ue.set(t);
11
11
  }
12
- const ee = {
12
+ const ie = {
13
13
  en: {
14
14
  "verification.video.how-to": "How to verify yourself",
15
15
  "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",
@@ -81,23 +81,23 @@ if (typeof window < "u") {
81
81
  !customElements.get("cashier-video-modal") && customElements.define("cashier-video-modal", i.element);
82
82
  });
83
83
  }
84
- function We(t) {
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)}");
84
+ function Ke(t) {
85
+ Le(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
- function ie(t, i, o) {
87
+ function te(t, i, o) {
88
88
  const n = t.slice();
89
- return n[52] = i[o], n[54] = o, n;
89
+ return n[53] = i[o], n[55] = o, n;
90
90
  }
91
- function te(t) {
92
- let i, o, n, c, d = X(
91
+ function oe(t) {
92
+ let i, o, n, c, d = Q(
93
93
  /*displayMessages*/
94
94
  t[4]
95
95
  ), f = [];
96
96
  for (let a = 0; a < d.length; a += 1)
97
- f[a] = re(ie(t, d, a));
97
+ f[a] = se(te(t, d, a));
98
98
  let h = (
99
99
  /*videoExists*/
100
- t[7] && se(t)
100
+ t[7] && ne(t)
101
101
  );
102
102
  return {
103
103
  c() {
@@ -135,21 +135,21 @@ function te(t) {
135
135
  p(a, u) {
136
136
  if (u[0] & /*allVerificationsVisible, showAllVerifications, displayMessages*/
137
137
  1072) {
138
- d = X(
138
+ d = Q(
139
139
  /*displayMessages*/
140
140
  a[4]
141
141
  );
142
142
  let s;
143
143
  for (s = 0; s < d.length; s += 1) {
144
- const P = ie(a, d, s);
145
- f[s] ? f[s].p(P, u) : (f[s] = re(P), f[s].c(), f[s].m(i, null));
144
+ const P = te(a, d, s);
145
+ f[s] ? f[s].p(P, u) : (f[s] = se(P), f[s].c(), f[s].m(i, null));
146
146
  }
147
147
  for (; s < f.length; s += 1)
148
148
  f[s].d(1);
149
149
  f.length = d.length;
150
150
  }
151
151
  /*videoExists*/
152
- a[7] ? h ? h.p(a, u) : (h = se(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 = ne(a), h.c(), h.m(n.parentNode, n)) : h && (h.d(1), h = null), u[0] & /*clientstylingurl*/
153
153
  2 && b(
154
154
  c,
155
155
  "clientstylingurl",
@@ -176,18 +176,18 @@ function te(t) {
176
176
  );
177
177
  },
178
178
  d(a) {
179
- a && (D(i), D(o), D(n), D(c)), Le(f, a), h && h.d(a);
179
+ a && (D(i), D(o), D(n), D(c)), xe(f, a), h && h.d(a);
180
180
  }
181
181
  };
182
182
  }
183
- function oe(t) {
183
+ function re(t) {
184
184
  let i, o, n;
185
185
  function c(...d) {
186
186
  return (
187
187
  /*click_handler*/
188
188
  t[19](
189
189
  /*index*/
190
- t[54],
190
+ t[55],
191
191
  ...d
192
192
  )
193
193
  );
@@ -197,7 +197,7 @@ function oe(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(d, f) {
200
- C(d, i, f), o || (n = U(i, "click", c), o = !0);
200
+ C(d, i, f), o || (n = H(i, "click", c), o = !0);
201
201
  },
202
202
  p(d, f) {
203
203
  t = d;
@@ -207,21 +207,21 @@ function oe(t) {
207
207
  }
208
208
  };
209
209
  }
210
- function re(t) {
210
+ function se(t) {
211
211
  let i, o, n, c, d = (
212
212
  /*message*/
213
- t[52] + ""
213
+ t[53] + ""
214
214
  ), f, h, a, u, s = (
215
215
  /*displayMessages*/
216
216
  t[4].length > 1 && /*index*/
217
- t[54] === 0 && oe(t)
217
+ t[55] === 0 && re(t)
218
218
  );
219
219
  function P(...p) {
220
220
  return (
221
221
  /*click_handler_1*/
222
222
  t[20](
223
223
  /*index*/
224
- t[54],
224
+ t[55],
225
225
  ...p
226
226
  )
227
227
  );
@@ -236,14 +236,14 @@ function re(t) {
236
236
  );
237
237
  },
238
238
  m(p, g) {
239
- C(p, i, g), k(i, o), k(i, n), k(i, c), c.innerHTML = d, k(i, f), s && s.m(i, null), k(i, h), a || (u = U(i, "click", P), a = !0);
239
+ C(p, i, g), k(i, o), k(i, n), k(i, c), c.innerHTML = d, k(i, f), s && s.m(i, null), k(i, h), a || (u = H(i, "click", P), a = !0);
240
240
  },
241
241
  p(p, g) {
242
242
  t = p, g[0] & /*displayMessages*/
243
243
  16 && d !== (d = /*message*/
244
- t[52] + "") && (c.innerHTML = d), /*displayMessages*/
244
+ t[53] + "") && (c.innerHTML = d), /*displayMessages*/
245
245
  t[4].length > 1 && /*index*/
246
- t[54] === 0 ? s ? s.p(t, g) : (s = oe(t), s.c(), s.m(i, h)) : s && (s.d(1), s = null), g[0] & /*allVerificationsVisible*/
246
+ t[55] === 0 ? s ? s.p(t, g) : (s = re(t), s.c(), s.m(i, h)) : s && (s.d(1), s = null), g[0] & /*allVerificationsVisible*/
247
247
  32 && T(
248
248
  i,
249
249
  "ShowAll",
@@ -256,14 +256,14 @@ function re(t) {
256
256
  }
257
257
  };
258
258
  }
259
- function se(t) {
259
+ function ne(t) {
260
260
  let i, o, n, c, d = (
261
261
  /*$_*/
262
262
  t[9]("verification.video.how-to") + ""
263
263
  ), f, h, a;
264
264
  return {
265
265
  c() {
266
- i = w("div"), o = w("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>', n = A(), c = w("div"), f = Fe(d), V(o, "class", "IconVideo"), V(c, "class", "CashierVerificationVideoLink"), T(
266
+ i = w("div"), o = w("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>', n = A(), c = w("div"), f = ze(d), V(o, "class", "IconVideo"), V(c, "class", "CashierVerificationVideoLink"), T(
267
267
  c,
268
268
  "CashierVerificationVideoLinkDesktop",
269
269
  /*desktopView*/
@@ -271,7 +271,7 @@ function se(t) {
271
271
  ), V(i, "class", "CashierVerificationVideo");
272
272
  },
273
273
  m(u, s) {
274
- C(u, i, s), k(i, o), k(i, n), k(i, c), k(c, f), h || (a = U(
274
+ C(u, i, s), k(i, o), k(i, n), k(i, c), k(c, f), h || (a = H(
275
275
  c,
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") + "") && Fe(f, d), s[0] & /*desktopView*/
285
285
  64 && T(
286
286
  c,
287
287
  "CashierVerificationVideoLinkDesktop",
@@ -294,10 +294,10 @@ function se(t) {
294
294
  }
295
295
  };
296
296
  }
297
- function Ke(t) {
297
+ function Ye(t) {
298
298
  let i, o = (
299
299
  /*displayMessages*/
300
- t[4] && te(t)
300
+ t[4] && oe(t)
301
301
  );
302
302
  return {
303
303
  c() {
@@ -313,7 +313,7 @@ function Ke(t) {
313
313
  },
314
314
  p(n, c) {
315
315
  /*displayMessages*/
316
- n[4] ? o ? o.p(n, c) : (o = te(n), o.c(), o.m(i, null)) : o && (o.d(1), o = null), c[0] & /*desktopView*/
316
+ n[4] ? o ? o.p(n, c) : (o = oe(n), o.c(), o.m(i, null)) : o && (o.d(1), o = null), c[0] & /*desktopView*/
317
317
  64 && T(
318
318
  i,
319
319
  "CashierVerificationsDesktop",
@@ -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
327
  n && D(i), o && o.d(), t[22](null);
328
328
  }
329
329
  };
330
330
  }
331
- const Ye = "verification_explanation_video_widgets.MP4";
332
- function Ge(t, i, o) {
331
+ const Ge = "verification_explanation_video_widgets.MP4";
332
+ function Je(t, i, o) {
333
333
  let n, c;
334
- Z(t, Ue, (e) => o(9, n = e)), Z(t, Ne, (e) => o(28, c = e)), Q.extend(He);
335
- let { endpoint: d } = i, { lang: f = "en" } = i, { translationurl: h = "" } = i, { clientstyling: a = "" } = i, { clientstylingurl: u = "" } = i, { session: s = "" } = i, { customerid: P = "" } = i, { ismobileview: p = "" } = i, { playersession: g = "" } = i, S, H = /* @__PURE__ */ new Set(), N = /* @__PURE__ */ new Set(), B, L, q, F = !0, j = !0, z = !1, I = "";
334
+ X(t, He, (e) => o(9, n = e)), X(t, je, (e) => o(28, c = e)), $.extend(Ne);
335
+ let { endpoint: d } = i, { lang: f = "en" } = i, { translationurl: h = "" } = i, { clientstyling: a = "" } = i, { clientstylingurl: u = "" } = i, { session: s = "" } = i, { customerid: P = "" } = i, { ismobileview: p = "" } = i, { playersession: g = "" } = i, S, N = /* @__PURE__ */ new Set(), j = /* @__PURE__ */ new Set(), M, L, q, F = !0, W = !0, z = !1, I = "";
336
336
  var O;
337
337
  (function(e) {
338
338
  e.Manual = "Manual", e.ShuftiPro = "ShuftiPro";
@@ -345,34 +345,34 @@ function Ge(t, i, o) {
345
345
  (function(e) {
346
346
  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";
347
347
  })(m || (m = {}));
348
- var M;
348
+ var B;
349
349
  (function(e) {
350
350
  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";
351
- })(M || (M = {}));
352
- const ne = [
351
+ })(B || (B = {}));
352
+ const ae = [
353
353
  m.InProgress,
354
354
  m.Referred,
355
355
  m.AwaitingForResponse
356
- ], ae = () => {
356
+ ], le = () => {
357
357
  let e = h;
358
358
  if (e)
359
359
  return fetch(e).then((r) => r.json()).then((r) => {
360
360
  Object.keys(r).forEach((l) => {
361
- $(l, r[l]);
361
+ ee(l, r[l]);
362
362
  });
363
363
  }).catch((r) => {
364
364
  console.log(r);
365
365
  });
366
366
  };
367
- Object.keys(ee).forEach((e) => {
368
- $(e, ee[e]);
367
+ Object.keys(ie).forEach((e) => {
368
+ ee(e, ie[e]);
369
369
  });
370
- const le = () => {
371
- je(f);
372
- }, ce = () => {
370
+ const ce = () => {
371
+ We(f);
372
+ }, fe = () => {
373
373
  let e = document.createElement("style");
374
374
  e.innerHTML = a, S.appendChild(e);
375
- }, fe = () => {
375
+ }, de = () => {
376
376
  let e = new URL(u), r = document.createElement("style");
377
377
  fetch(e.href).then((l) => l.text()).then((l) => {
378
378
  r.innerHTML = l, setTimeout(
@@ -382,106 +382,107 @@ function Ge(t, i, o) {
382
382
  1
383
383
  );
384
384
  });
385
- }, W = () => {
386
- o(18, L = ue());
385
+ }, K = () => {
386
+ o(18, L = me());
387
387
  const e = new URL(`${d}/v1/player/${P}/verification/GetKYCCustomerStatus?language=${f}`), r = new Headers();
388
- r.append("accept", "application/json"), r.append("Content-Type", "application/json"), r.append("x-sessionid", `${g}`), r.append("X-Client-Request-Timestamp", Q.utc().format("YYYY-MM-DD HH:mm:ss.SSS"));
388
+ r.append("accept", "application/json"), r.append("Content-Type", "application/json"), r.append("x-sessionid", `${g}`), r.append("X-Client-Request-Timestamp", $.utc().format("YYYY-MM-DD HH:mm:ss.SSS"));
389
389
  const l = {
390
390
  method: "POST",
391
391
  headers: r,
392
392
  body: JSON.stringify({})
393
393
  };
394
394
  fetch(e, l).then((v) => v.json()).then((v) => {
395
- B = he(v.Verifications), B.VerificationStatuses.forEach((x) => {
396
- x.VerificationUrlType !== "Widget" && H.add(x.Vendor);
397
- }), o(4, q = Y());
395
+ const U = ue(v?.Verifications);
396
+ M = pe(U), M.VerificationStatuses.forEach((x) => {
397
+ x.VerificationUrlType !== "Widget" && N.add(x.Vendor);
398
+ }), o(4, q = G());
398
399
  });
399
- }, de = () => {
400
- c && W();
401
- }, ue = () => {
400
+ }, ue = (e) => e ? e.sort((r, l) => new Date(l.Created).getTime() - new Date(r.Created).getTime()) : [], he = () => {
401
+ c && K();
402
+ }, me = () => {
402
403
  let e = (s || c).split(".")[1];
403
404
  if (e) {
404
405
  let r = JSON.parse(atob(e));
405
406
  return r.cdn + "/cashier/operator-assets/" + r?.mid;
406
407
  }
407
408
  return "";
408
- }, he = (e) => {
409
+ }, pe = (e) => {
409
410
  if (!e || !e.length)
410
411
  return {
411
412
  VerificationSummaryStatus: m.Unverified,
412
413
  VerificationStatuses: []
413
414
  };
414
- const r = pe(e);
415
+ const r = ve(e);
415
416
  if (r && r.length) {
416
- const l = me(r);
417
+ const l = ge(r);
417
418
  return {
418
419
  VerificationSummaryStatus: l.Status,
419
420
  VerificationUrl: l.Flags?.DeferredUrlKey,
420
- VerificationStatuses: K(r, l.Status)
421
+ VerificationStatuses: Y(r, l.Status)
421
422
  };
422
423
  } else
423
424
  return {
424
425
  VerificationSummaryStatus: e.some((v) => v.Status === m.Failed) ? m.Failed : m.Verified,
425
- VerificationStatuses: K(e, [m.Failed])
426
+ VerificationStatuses: Y(e, [m.Failed])
426
427
  };
427
- }, me = (e) => e.reduce(
428
+ }, ge = (e) => e.reduce(
428
429
  (r, l) => r ? new Date(r) < new Date(l) ? l : r : l,
429
430
  0
430
- ), K = (e, r) => e.filter((l) => r.includes(l.Status)).map((l) => ({
431
+ ), Y = (e, r) => e.filter((l) => r.includes(l.Status)).map((l) => ({
431
432
  Type: l.Type,
432
433
  Vendor: l.VendorName,
433
434
  VerificationDocuments: l.Documents ? [...l.Documents] : [],
434
435
  VerificationUrlType: l.FlowInfo?.Type,
435
436
  VerificationUrl: l.FlowInfo?.Url
436
- })), pe = (e) => e.filter((r) => ne.includes(r.Status) ? r.FlowInfo && r.FlowInfo.Url || ge(r) || ve(r) : !1), ge = (e) => {
437
+ })), ve = (e) => e.filter((r) => ae.includes(r.Status) ? r.FlowInfo && r.FlowInfo.Url || we(r) || ye(r) : !1), we = (e) => {
437
438
  const r = e.Documents && e.VendorName === O.Manual, l = e.Documents && e.Documents.some((v) => v.Status === E.Requested);
438
439
  return r && l;
439
- }, ve = (e) => e.VendorName === O.ShuftiPro && e.Status === m.Referred, Y = () => {
440
- switch (B.VerificationSummaryStatus) {
440
+ }, ye = (e) => e.VendorName === O.ShuftiPro && e.Status === m.Referred, G = () => {
441
+ switch (M.VerificationSummaryStatus) {
441
442
  case m.InProgress:
442
443
  const e = [];
443
- return H.forEach((r) => {
444
- e.push(we(r));
444
+ return N.forEach((r) => {
445
+ e.push(ke(r));
445
446
  }), e;
446
447
  case m.Referred:
447
448
  return [n("verification.idenfy.referred-awaiting")];
448
449
  case m.Failed:
449
450
  return [n("verification.message.failed")];
450
451
  }
451
- }, we = (e) => {
452
- const r = B.VerificationStatuses.filter((l) => l.Vendor === e);
452
+ }, ke = (e) => {
453
+ const r = M.VerificationStatuses.filter((l) => l.Vendor === e);
453
454
  if (e === O.ShuftiPro)
454
- return ye(r);
455
+ return Ve(r);
455
456
  {
456
457
  const l = n("verification.idenfy.link-name"), v = {
457
458
  link: `<a href="${r[0].VerificationUrl}" target="_blank">${l}</a>`
458
459
  };
459
460
  return n("verification.idenfy.in-progress", { values: v });
460
461
  }
461
- }, ye = (e) => {
462
+ }, Ve = (e) => {
462
463
  const r = [], l = {}, v = [
463
- M.Biometric,
464
- M.Documents,
465
- M.ProofOfAddress
464
+ B.Biometric,
465
+ B.Documents,
466
+ B.ProofOfAddress
466
467
  ];
467
468
  e.forEach((_) => {
468
- v.includes(_.Type) && (r.push(_.Type), l[_.Type] = ke(_, Ve(_.Type)));
469
+ v.includes(_.Type) && (r.push(_.Type), l[_.Type] = Pe(_, be(_.Type)));
469
470
  });
470
- let x = r.every((_) => N.has(_)), Ae = `verification.shuftipro.in-progress.${r.sort().join(".")}`;
471
- return x ? n("verification.shuftipro.validations-started") : n(Ae, { values: l });
472
- }, ke = (e, r) => `<a class="verificationLink ${e.Type}" href=" ${e.VerificationUrl} " target="_blank">${r}</a>`, Ve = (e) => n(`verification.shuftipro.link-name.${e}`), R = (e, r) => {
471
+ let U = r.every((_) => j.has(_)), x = `verification.shuftipro.in-progress.${r.sort().join(".")}`;
472
+ return U ? n("verification.shuftipro.validations-started") : n(x, { values: l });
473
+ }, Pe = (e, r) => `<a class="verificationLink ${e.Type}" href=" ${e.VerificationUrl} " target="_blank">${r}</a>`, be = (e) => n(`verification.shuftipro.link-name.${e}`), R = (e, r) => {
473
474
  if (e.stopPropagation(), e.target && (e.target.href || e.target.closest("a"))) {
474
475
  if (e.target.closest(".verificationLink")) {
475
476
  const l = e.target.className.split(" ")[1];
476
- N.add(l), o(4, q = Y());
477
+ j.add(l), o(4, q = G());
477
478
  }
478
479
  return;
479
480
  }
480
481
  r === 0 && o(5, F = !F);
481
- }, Pe = () => {
482
- o(6, j = p === "false");
483
- }, be = () => {
484
- o(8, I = L + "/" + f + "/" + Ye);
482
+ }, De = () => {
483
+ o(6, W = p === "false");
484
+ }, Ce = () => {
485
+ o(8, I = L + "/" + f + "/" + Ge);
485
486
  try {
486
487
  fetch(I, { method: "HEAD" }).then((e) => {
487
488
  o(7, z = e.ok);
@@ -489,11 +490,11 @@ function Ge(t, i, o) {
489
490
  } catch {
490
491
  o(7, z = !1);
491
492
  }
492
- }, G = () => {
493
+ }, J = () => {
493
494
  window.postMessage({ type: "ShowCashierVideoModal" }, window.location.href);
494
- }, De = (e, r) => R(r, e), Ce = (e, r) => R(r, e), Se = () => G();
495
- function _e(e) {
496
- xe[e ? "unshift" : "push"](() => {
495
+ }, Se = (e, r) => R(r, e), _e = (e, r) => R(r, e), Ae = () => J();
496
+ function Te(e) {
497
+ qe[e ? "unshift" : "push"](() => {
497
498
  S = e, o(3, S);
498
499
  });
499
500
  }
@@ -501,14 +502,14 @@ function Ge(t, i, o) {
501
502
  "endpoint" in e && o(12, d = e.endpoint), "lang" in e && o(13, f = e.lang), "translationurl" in e && o(14, h = e.translationurl), "clientstyling" in e && o(0, a = e.clientstyling), "clientstylingurl" in e && o(1, u = e.clientstylingurl), "session" in e && o(15, s = e.session), "customerid" in e && o(16, P = e.customerid), "ismobileview" in e && o(2, p = e.ismobileview), "playersession" in e && o(17, g = e.playersession);
502
503
  }, t.$$.update = () => {
503
504
  t.$$.dirty[0] & /*lang*/
504
- 8192 && f && le(), t.$$.dirty[0] & /*endpoint, session, playersession*/
505
- 167936 && d && s && g && W(), t.$$.dirty[0] & /*endpoint, session, playersession*/
506
- 167936 && d && !s && g && de(), t.$$.dirty[0] & /*translationurl*/
507
- 16384 && h && ae(), t.$$.dirty[0] & /*clientstyling, customStylingContainer*/
508
- 9 && a && S && ce(), t.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
509
- 10 && u && S && fe(), t.$$.dirty[0] & /*ismobileview*/
510
- 4 && p && Pe(), t.$$.dirty[0] & /*staticCdnUrl*/
511
- 262144 && L && be();
505
+ 8192 && f && ce(), t.$$.dirty[0] & /*endpoint, session, playersession*/
506
+ 167936 && d && s && g && K(), t.$$.dirty[0] & /*endpoint, session, playersession*/
507
+ 167936 && d && !s && g && he(), t.$$.dirty[0] & /*translationurl*/
508
+ 16384 && h && le(), t.$$.dirty[0] & /*clientstyling, customStylingContainer*/
509
+ 9 && a && S && fe(), t.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
510
+ 10 && u && S && de(), t.$$.dirty[0] & /*ismobileview*/
511
+ 4 && p && De(), t.$$.dirty[0] & /*staticCdnUrl*/
512
+ 262144 && L && Ce();
512
513
  }, [
513
514
  a,
514
515
  u,
@@ -516,12 +517,12 @@ function Ge(t, i, o) {
516
517
  S,
517
518
  q,
518
519
  F,
519
- j,
520
+ W,
520
521
  z,
521
522
  I,
522
523
  n,
523
524
  R,
524
- G,
525
+ J,
525
526
  d,
526
527
  f,
527
528
  h,
@@ -529,19 +530,19 @@ function Ge(t, i, o) {
529
530
  P,
530
531
  g,
531
532
  L,
532
- De,
533
- Ce,
534
533
  Se,
535
- _e
534
+ _e,
535
+ Ae,
536
+ Te
536
537
  ];
537
538
  }
538
- class Je extends Te {
539
+ class Ze extends Oe {
539
540
  constructor(i) {
540
- super(), Oe(
541
+ super(), Be(
541
542
  this,
542
543
  i,
543
- Ge,
544
- Ke,
544
+ Je,
545
+ Ye,
545
546
  Me,
546
547
  {
547
548
  endpoint: 12,
@@ -554,7 +555,7 @@ class Je extends Te {
554
555
  ismobileview: 2,
555
556
  playersession: 17
556
557
  },
557
- We,
558
+ Ke,
558
559
  [-1, -1]
559
560
  );
560
561
  }
@@ -613,7 +614,7 @@ class Je extends Te {
613
614
  this.$$set({ playersession: i }), y();
614
615
  }
615
616
  }
616
- ze(Je, { endpoint: {}, lang: {}, translationurl: {}, clientstyling: {}, clientstylingurl: {}, session: {}, customerid: {}, ismobileview: {}, playersession: {} }, [], [], !0);
617
+ Ie(Ze, { endpoint: {}, lang: {}, translationurl: {}, clientstyling: {}, clientstylingurl: {}, session: {}, customerid: {}, ismobileview: {}, playersession: {} }, [], [], !0);
617
618
  export {
618
- Je as default
619
+ Ze as default
619
620
  };
@@ -1 +1 @@
1
- "use strict";if(typeof window!="undefined"){let n=function(t){return function(...s){try{return t.apply(this,s)}catch(e){if(e instanceof DOMException&&e.message.includes("has already been used with this registry")||e.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw e}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/CashierPage-BoEfCJ8r.cjs")).then(({default:t})=>{!customElements.get("cashier-page")&&customElements.define("cashier-page",t.element)})}
1
+ "use strict";if(typeof window!="undefined"){let n=function(t){return function(...s){try{return t.apply(this,s)}catch(e){if(e instanceof DOMException&&e.message.includes("has already been used with this registry")||e.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw e}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/CashierPage-CeDNrFtr.cjs")).then(({default:t})=>{!customElements.get("cashier-page")&&customElements.define("cashier-page",t.element)})}
@@ -10,7 +10,7 @@ if (typeof window != "undefined") {
10
10
  }
11
11
  };
12
12
  };
13
- customElements.define = n(customElements.define), import("../components/CashierPage-CaP6odYj.js").then(({ default: t }) => {
13
+ customElements.define = n(customElements.define), import("../components/CashierPage-D1XOiV_V.js").then(({ default: t }) => {
14
14
  !customElements.get("cashier-page") && customElements.define("cashier-page", t.element);
15
15
  });
16
16
  }
@@ -1,4 +1,4 @@
1
- import { C as n } from "../components/CashierPage-BJlHrw66.js";
1
+ import { C as n } from "../components/CashierPage-DHASkcsL.js";
2
2
  function a(t) {
3
3
  return function(...s) {
4
4
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/cashier-page",
3
- "version": "1.69.3",
3
+ "version": "1.70.0",
4
4
  "type": "module",
5
5
  "main": "es2015/cashier-page.cjs",
6
6
  "module": "esnext/cashier-page.js",