@everymatrix/cashier-page 1.53.11 → 1.54.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 (33) hide show
  1. package/components/CashierConfirmModal-BWwXFa2X.js +1052 -0
  2. package/components/CashierConfirmModal-DvPjAtJP.cjs +4 -0
  3. package/components/{CashierError-CNghn61_.js → CashierError-DNpUb5Mm.js} +16 -16
  4. package/components/CashierError-Dmdtq5Bw.cjs +5 -0
  5. package/components/CashierHeader-CQUqVL_i.cjs +1 -0
  6. package/components/{CashierHeader-Cukt_6q5.js → CashierHeader-jyno14ok.js} +2 -2
  7. package/components/{CashierIframeRedirect-CfOyb27d.js → CashierIframeRedirect-Cz4tv7-x.js} +6 -6
  8. package/components/CashierIframeRedirect-D-OfVohj.cjs +1 -0
  9. package/components/CashierMethodDetails-CBOh1gd0.cjs +18 -0
  10. package/components/{CashierMethodDetails-BIl7Is4q.js → CashierMethodDetails-DhPcp2tp.js} +1535 -1521
  11. package/components/CashierMethodsList-BXQ8slk2.cjs +1 -0
  12. package/components/{CashierMethodsList-sDyTLsi_.js → CashierMethodsList-tNPWey2d.js} +175 -164
  13. package/components/{CashierModal-BvsZYr3E.js → CashierModal-BZinftgA.js} +1 -1
  14. package/components/CashierModal-FVpPS0Cg.cjs +1 -0
  15. package/components/CashierNotifications-Dt9rQ2vt.cjs +1 -0
  16. package/components/{CashierNotifications-DLiOLPVS.js → CashierNotifications-VNlsq9BM.js} +1 -1
  17. package/components/{CashierPage-ChYGXNFh.js → CashierPage-Ci16qWoB.js} +16 -16
  18. package/components/CashierPage-_uE0Wp1v.cjs +1 -0
  19. package/components/{CashierReceiptPage-BnZNWRHD.js → CashierReceiptPage-BrSqthh1.js} +109 -108
  20. package/components/CashierReceiptPage-khlZnWa5.cjs +1 -0
  21. package/components/{CashierSessionExpirationModal-m8mfQG7I.js → CashierSessionExpirationModal-BaJ2BLlM.js} +64 -64
  22. package/components/CashierSessionExpirationModal-Ynzjj3_r.cjs +2 -0
  23. package/components/CashierSpinner-6i7TRj04.cjs +1 -0
  24. package/components/{CashierSpinner-BGK4UpXs.js → CashierSpinner-DLOGBpHm.js} +1 -1
  25. package/components/{CashierVerifications-ghULlvRf.js → CashierVerifications-CAlJv-1M.js} +149 -145
  26. package/components/CashierVerifications-KeQfHgf0.cjs +1 -0
  27. package/components/{CashierVideoModal-CIyp7q0i.js → CashierVideoModal-CdG4dnYx.js} +1 -1
  28. package/components/CashierVideoModal-Cgjg5Mzz.cjs +1 -0
  29. package/es2015/cashier-page.cjs +1 -0
  30. package/es2015/cashier-page.js +16 -0
  31. package/package.json +17 -12
  32. package/components/CashierConfirmModal-bl1anpXG.js +0 -1015
  33. package/esnext/cashier-page.js +0 -14
@@ -1,6 +1,6 @@
1
- import { S as Ce, b as _e, f as b, c as Se, a as Ae, d as Oe, g as w, j as V, I as O, k as C, n as G, v as _, w as Te, K as Y, h as A, E as D, M as Me, l as k, A as H, y as Be, z as Le, C as Ie } from "./CashierConfirmModal-bl1anpXG.js";
2
- import { a as qe, i as xe, $ as Ee, b as Fe } from "./CashierError-CNghn61_.js";
3
- import { d as Z, u as ze } from "./CashierMethodDetails-BIl7Is4q.js";
1
+ import { S as Ce, b as _e, f as D, c as Se, a as Ae, d as Oe, g as w, j as V, I as M, k as _, n as G, v as S, w as Me, K as Y, h as O, E as C, M as Te, l as k, A as H, y as Be, z as Le, C as Ie } from "./CashierConfirmModal-BWwXFa2X.js";
2
+ import { a as qe, i as xe, $ as Ee, b as Fe } from "./CashierError-DNpUb5Mm.js";
3
+ import { d as Z, u as ze } from "./CashierMethodDetails-DhPcp2tp.js";
4
4
  function J(t, i) {
5
5
  qe(t, i);
6
6
  }
@@ -65,7 +65,7 @@ const X = {
65
65
  "verification.shuftipro.validations-started": "After completing verification, please proceed with the transaction"
66
66
  }
67
67
  };
68
- if (typeof window < "u") {
68
+ if (typeof window != "undefined") {
69
69
  let t = function(i) {
70
70
  return function(...r) {
71
71
  try {
@@ -77,7 +77,7 @@ if (typeof window < "u") {
77
77
  }
78
78
  };
79
79
  };
80
- customElements.define = t(customElements.define), import("./CashierVideoModal-CIyp7q0i.js").then(({ default: i }) => {
80
+ customElements.define = t(customElements.define), import("./CashierVideoModal-CdG4dnYx.js").then(({ default: i }) => {
81
81
  !customElements.get("cashier-video-modal") && customElements.define("cashier-video-modal", i.element);
82
82
  });
83
83
  }
@@ -89,7 +89,7 @@ function Q(t, i, r) {
89
89
  return s[49] = i[r], s[51] = r, s;
90
90
  }
91
91
  function $(t) {
92
- let i, r, s, c, f = Y(
92
+ let i, r, s, l, f = Y(
93
93
  /*displayMessages*/
94
94
  t[4]
95
95
  ), d = [];
@@ -104,33 +104,33 @@ function $(t) {
104
104
  i = w("div");
105
105
  for (let a = 0; a < d.length; a += 1)
106
106
  d[a].c();
107
- r = A(), h && h.c(), s = A(), c = w("cashier-video-modal"), V(i, "class", "CashierVerificationsWrapper"), D(
108
- c,
107
+ r = O(), h && h.c(), s = O(), l = w("cashier-video-modal"), V(i, "class", "CashierVerificationsWrapper"), C(
108
+ l,
109
109
  "clientstylingurl",
110
110
  /*clientstylingurl*/
111
111
  t[1]
112
- ), D(
113
- c,
112
+ ), C(
113
+ l,
114
114
  "clientstyling",
115
115
  /*clientstyling*/
116
116
  t[0]
117
- ), D(
118
- c,
117
+ ), C(
118
+ l,
119
119
  "ismobileview",
120
120
  /*ismobileview*/
121
121
  t[2]
122
- ), D(
123
- c,
122
+ ), C(
123
+ l,
124
124
  "videosrc",
125
125
  /*videoSrc*/
126
126
  t[8]
127
127
  );
128
128
  },
129
129
  m(a, u) {
130
- C(a, i, u);
130
+ _(a, i, u);
131
131
  for (let n = 0; n < d.length; n += 1)
132
132
  d[n] && d[n].m(i, null);
133
- C(a, r, u), h && h.m(a, u), C(a, s, u), C(a, c, u);
133
+ _(a, r, u), h && h.m(a, u), _(a, s, u), _(a, l, u);
134
134
  },
135
135
  p(a, u) {
136
136
  if (u[0] & /*allVerificationsVisible, showAllVerifications, displayMessages*/
@@ -150,39 +150,39 @@ function $(t) {
150
150
  }
151
151
  /*videoExists*/
152
152
  a[7] ? h ? h.p(a, u) : (h = te(a), h.c(), h.m(s.parentNode, s)) : h && (h.d(1), h = null), u[0] & /*clientstylingurl*/
153
- 2 && D(
154
- c,
153
+ 2 && C(
154
+ l,
155
155
  "clientstylingurl",
156
156
  /*clientstylingurl*/
157
157
  a[1]
158
158
  ), u[0] & /*clientstyling*/
159
- 1 && D(
160
- c,
159
+ 1 && C(
160
+ l,
161
161
  "clientstyling",
162
162
  /*clientstyling*/
163
163
  a[0]
164
164
  ), u[0] & /*ismobileview*/
165
- 4 && D(
166
- c,
165
+ 4 && C(
166
+ l,
167
167
  "ismobileview",
168
168
  /*ismobileview*/
169
169
  a[2]
170
170
  ), u[0] & /*videoSrc*/
171
- 256 && D(
172
- c,
171
+ 256 && C(
172
+ l,
173
173
  "videosrc",
174
174
  /*videoSrc*/
175
175
  a[8]
176
176
  );
177
177
  },
178
178
  d(a) {
179
- a && (_(i), _(r), _(s), _(c)), Me(d, a), h && h.d(a);
179
+ a && (S(i), S(r), S(s), S(l)), Te(d, a), h && h.d(a);
180
180
  }
181
181
  };
182
182
  }
183
183
  function ee(t) {
184
184
  let i, r, s;
185
- function c(...f) {
185
+ function l(...f) {
186
186
  return (
187
187
  /*click_handler*/
188
188
  t[18](
@@ -197,18 +197,18 @@ function ee(t) {
197
197
  i = w("span"), i.innerHTML = '<svg width="25px" height="25px" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M12 1C5.92487 1 1 5.92487 1 12C1 18.0751 5.92487 23 12 23C18.0751 23 23 18.0751 23 12C23 5.92487 18.0751 1 12 1ZM8.70711 9.79289C8.31658 9.40237 7.68342 9.40237 7.29289 9.79289C6.90237 10.1834 6.90237 10.8166 7.29289 11.2071L11.2929 15.2071C11.6834 15.5976 12.3166 15.5976 12.7071 15.2071L16.7071 11.2071C17.0976 10.8166 17.0976 10.1834 16.7071 9.79289C16.3166 9.40237 15.6834 9.40237 15.2929 9.79289L12 13.0858L8.70711 9.79289Z" fill="#000000"></path></svg>', V(i, "class", "CashierVerificationChevron");
198
198
  },
199
199
  m(f, d) {
200
- C(f, i, d), r || (s = H(i, "click", c), r = !0);
200
+ _(f, i, d), r || (s = H(i, "click", l), r = !0);
201
201
  },
202
202
  p(f, d) {
203
203
  t = f;
204
204
  },
205
205
  d(f) {
206
- f && _(i), r = !1, s();
206
+ f && S(i), r = !1, s();
207
207
  }
208
208
  };
209
209
  }
210
210
  function ie(t) {
211
- let i, r, s, c, f = (
211
+ let i, r, s, l, f = (
212
212
  /*message*/
213
213
  t[49] + ""
214
214
  ), d, h, a, u, n = (
@@ -216,63 +216,63 @@ function ie(t) {
216
216
  t[4].length > 1 && /*index*/
217
217
  t[51] === 0 && ee(t)
218
218
  );
219
- function y(...m) {
219
+ function y(...p) {
220
220
  return (
221
221
  /*click_handler_1*/
222
222
  t[19](
223
223
  /*index*/
224
224
  t[51],
225
- ...m
225
+ ...p
226
226
  )
227
227
  );
228
228
  }
229
229
  return {
230
230
  c() {
231
- i = w("div"), r = w("div"), r.innerHTML = '<svg width="64px" height="64px" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" stroke="#ffffff"><g id="SVGRepo_bgCarrier" stroke-width="0"></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"></g><g id="SVGRepo_iconCarrier"><path d="M4.39254 16.2614C2.64803 13.1941 1.66074 9.71783 1.51646 6.15051C1.50127 5.77507 1.70918 5.42812 2.04153 5.25282L11.5335 0.246091C11.8254 0.0920859 12.1746 0.0920859 12.4665 0.246091L21.9585 5.25282C22.2908 5.42812 22.4987 5.77507 22.4835 6.15051C22.3393 9.71783 21.352 13.1941 19.6075 16.2614C17.8618 19.3307 15.4169 21.8869 12.4986 23.7001C12.1931 23.8899 11.8069 23.8899 11.5014 23.7001C8.58313 21.8869 6.13817 19.3307 4.39254 16.2614Z" fill="#fa9200"></path><path d="M8.25 12.75L11.25 15L17.25 9" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path></g></svg>', s = A(), c = w("p"), d = A(), n && n.c(), h = A(), V(r, "class", "IconVerification"), V(c, "class", "text"), V(i, "class", "CashierVerificationMessage"), O(
231
+ i = w("div"), r = w("div"), r.innerHTML = '<svg width="64px" height="64px" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" stroke="#ffffff"><g id="SVGRepo_bgCarrier" stroke-width="0"></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"></g><g id="SVGRepo_iconCarrier"><path d="M4.39254 16.2614C2.64803 13.1941 1.66074 9.71783 1.51646 6.15051C1.50127 5.77507 1.70918 5.42812 2.04153 5.25282L11.5335 0.246091C11.8254 0.0920859 12.1746 0.0920859 12.4665 0.246091L21.9585 5.25282C22.2908 5.42812 22.4987 5.77507 22.4835 6.15051C22.3393 9.71783 21.352 13.1941 19.6075 16.2614C17.8618 19.3307 15.4169 21.8869 12.4986 23.7001C12.1931 23.8899 11.8069 23.8899 11.5014 23.7001C8.58313 21.8869 6.13817 19.3307 4.39254 16.2614Z" fill="#fa9200"></path><path d="M8.25 12.75L11.25 15L17.25 9" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path></g></svg>', s = O(), l = w("p"), d = O(), n && n.c(), h = O(), V(r, "class", "IconVerification"), V(l, "class", "text"), V(i, "class", "CashierVerificationMessage"), M(
232
232
  i,
233
233
  "ShowAll",
234
234
  /*allVerificationsVisible*/
235
235
  t[5]
236
236
  );
237
237
  },
238
- m(m, P) {
239
- C(m, i, P), k(i, r), k(i, s), k(i, c), c.innerHTML = f, k(i, d), n && n.m(i, null), k(i, h), a || (u = H(i, "click", y), a = !0);
238
+ m(p, P) {
239
+ _(p, i, P), k(i, r), k(i, s), k(i, l), l.innerHTML = f, k(i, d), n && n.m(i, null), k(i, h), a || (u = H(i, "click", y), a = !0);
240
240
  },
241
- p(m, P) {
242
- t = m, P[0] & /*displayMessages*/
241
+ p(p, P) {
242
+ t = p, P[0] & /*displayMessages*/
243
243
  16 && f !== (f = /*message*/
244
- t[49] + "") && (c.innerHTML = f), /*displayMessages*/
244
+ t[49] + "") && (l.innerHTML = f), /*displayMessages*/
245
245
  t[4].length > 1 && /*index*/
246
246
  t[51] === 0 ? n ? n.p(t, P) : (n = ee(t), n.c(), n.m(i, h)) : n && (n.d(1), n = null), P[0] & /*allVerificationsVisible*/
247
- 32 && O(
247
+ 32 && M(
248
248
  i,
249
249
  "ShowAll",
250
250
  /*allVerificationsVisible*/
251
251
  t[5]
252
252
  );
253
253
  },
254
- d(m) {
255
- m && _(i), n && n.d(), a = !1, u();
254
+ d(p) {
255
+ p && S(i), n && n.d(), a = !1, u();
256
256
  }
257
257
  };
258
258
  }
259
259
  function te(t) {
260
- let i, r, s, c, f = (
260
+ let i, r, s, l, f = (
261
261
  /*$_*/
262
262
  t[9]("verification.video.how-to") + ""
263
263
  ), d, h, a;
264
264
  return {
265
265
  c() {
266
- i = w("div"), r = w("div"), r.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M256 8C119.043 8 8 119.083 8 256c0 136.997 111.043 248 248 248s248-111.003 248-248C504 119.083 392.957 8 256 8zm0 448c-110.532 0-200-89.431-200-200 0-110.495 89.472-200 200-200 110.491 0 200 89.471 200 200 0 110.53-89.431 200-200 200zm107.244-255.2c0 67.052-72.421 68.084-72.421 92.863V300c0 6.627-5.373 12-12 12h-45.647c-6.627 0-12-5.373-12-12v-8.659c0-35.745 27.1-50.034 47.579-61.516 17.561-9.845 28.324-16.541 28.324-29.579 0-17.246-21.999-28.693-39.784-28.693-23.189 0-33.894 10.977-48.942 29.969-4.057 5.12-11.46 6.071-16.666 2.124l-27.824-21.098c-5.107-3.872-6.251-11.066-2.644-16.363C184.846 131.491 214.94 112 261.794 112c49.071 0 101.45 38.304 101.45 88.8zM298 368c0 23.159-18.841 42-42 42s-42-18.841-42-42 18.841-42 42-42 42 18.841 42 42z"></path></svg>', s = A(), c = w("div"), d = Be(f), V(r, "class", "IconVideo"), V(c, "class", "CashierVerificationVideoLink"), O(
267
- c,
266
+ i = w("div"), r = w("div"), r.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M256 8C119.043 8 8 119.083 8 256c0 136.997 111.043 248 248 248s248-111.003 248-248C504 119.083 392.957 8 256 8zm0 448c-110.532 0-200-89.431-200-200 0-110.495 89.472-200 200-200 110.491 0 200 89.471 200 200 0 110.53-89.431 200-200 200zm107.244-255.2c0 67.052-72.421 68.084-72.421 92.863V300c0 6.627-5.373 12-12 12h-45.647c-6.627 0-12-5.373-12-12v-8.659c0-35.745 27.1-50.034 47.579-61.516 17.561-9.845 28.324-16.541 28.324-29.579 0-17.246-21.999-28.693-39.784-28.693-23.189 0-33.894 10.977-48.942 29.969-4.057 5.12-11.46 6.071-16.666 2.124l-27.824-21.098c-5.107-3.872-6.251-11.066-2.644-16.363C184.846 131.491 214.94 112 261.794 112c49.071 0 101.45 38.304 101.45 88.8zM298 368c0 23.159-18.841 42-42 42s-42-18.841-42-42 18.841-42 42-42 42 18.841 42 42z"></path></svg>', s = O(), l = w("div"), d = Be(f), V(r, "class", "IconVideo"), V(l, "class", "CashierVerificationVideoLink"), M(
267
+ l,
268
268
  "CashierVerificationVideoLinkDesktop",
269
269
  /*desktopView*/
270
270
  t[6]
271
271
  ), V(i, "class", "CashierVerificationVideo");
272
272
  },
273
273
  m(u, n) {
274
- C(u, i, n), k(i, r), k(i, s), k(i, c), k(c, d), h || (a = H(
275
- c,
274
+ _(u, i, n), k(i, r), k(i, s), k(i, l), k(l, d), h || (a = H(
275
+ l,
276
276
  "click",
277
277
  /*click_handler_2*/
278
278
  t[20]
@@ -282,15 +282,15 @@ function te(t) {
282
282
  n[0] & /*$_*/
283
283
  512 && f !== (f = /*$_*/
284
284
  u[9]("verification.video.how-to") + "") && Le(d, f), n[0] & /*desktopView*/
285
- 64 && O(
286
- c,
285
+ 64 && M(
286
+ l,
287
287
  "CashierVerificationVideoLinkDesktop",
288
288
  /*desktopView*/
289
289
  u[6]
290
290
  );
291
291
  },
292
292
  d(u) {
293
- u && _(i), h = !1, a();
293
+ u && S(i), h = !1, a();
294
294
  }
295
295
  };
296
296
  }
@@ -301,20 +301,20 @@ function He(t) {
301
301
  );
302
302
  return {
303
303
  c() {
304
- i = w("div"), r && r.c(), V(i, "class", "CashierVerifications"), O(
304
+ i = w("div"), r && r.c(), V(i, "class", "CashierVerifications"), M(
305
305
  i,
306
306
  "CashierVerificationsDesktop",
307
307
  /*desktopView*/
308
308
  t[6]
309
309
  );
310
310
  },
311
- m(s, c) {
312
- C(s, i, c), r && r.m(i, null), t[21](i);
311
+ m(s, l) {
312
+ _(s, i, l), r && r.m(i, null), t[21](i);
313
313
  },
314
- p(s, c) {
314
+ p(s, l) {
315
315
  /*displayMessages*/
316
- s[4] ? r ? r.p(s, c) : (r = $(s), r.c(), r.m(i, null)) : r && (r.d(1), r = null), c[0] & /*desktopView*/
317
- 64 && O(
316
+ s[4] ? r ? r.p(s, l) : (r = $(s), r.c(), r.m(i, null)) : r && (r.d(1), r = null), l[0] & /*desktopView*/
317
+ 64 && M(
318
318
  i,
319
319
  "CashierVerificationsDesktop",
320
320
  /*desktopView*/
@@ -324,41 +324,41 @@ function He(t) {
324
324
  i: G,
325
325
  o: G,
326
326
  d(s) {
327
- s && _(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 je = "verification_explanation_video_widgets.MP4", Ne = "760px", Ke = "510px";
332
332
  function We(t, i, r) {
333
333
  let s;
334
- Te(t, Fe, (e) => r(9, s = e)), Z.extend(ze);
335
- let { endpoint: c } = i, { lang: f = "en" } = i, { translationurl: d = "" } = i, { clientstyling: h = "" } = i, { clientstylingurl: a = "" } = i, { session: u = "" } = i, { customerid: n = "" } = i, { ismobileview: y = "" } = i, m, P = /* @__PURE__ */ new Set(), j = /* @__PURE__ */ new Set(), B, L, I, q = !0, x = !0, E = !1, F = "";
334
+ Me(t, Fe, (e) => r(9, s = e)), Z.extend(ze);
335
+ let { endpoint: l } = i, { lang: f = "en" } = i, { translationurl: d = "" } = i, { clientstyling: h = "" } = i, { clientstylingurl: a = "" } = i, { session: u = "" } = i, { customerid: n = "" } = i, { ismobileview: y = "" } = i, p, P = /* @__PURE__ */ new Set(), j = /* @__PURE__ */ new Set(), L, I, q, x = !0, E = !0, F = !1, z = "";
336
336
  var T;
337
337
  (function(e) {
338
338
  e.Manual = "Manual", e.ShuftiPro = "ShuftiPro";
339
339
  })(T || (T = {}));
340
- var z;
340
+ var U;
341
341
  (function(e) {
342
342
  e.Requested = "Requested";
343
- })(z || (z = {}));
344
- var p;
343
+ })(U || (U = {}));
344
+ var g;
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
- })(p || (p = {}));
348
- var M;
347
+ })(g || (g = {}));
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 = {}));
351
+ })(B || (B = {}));
352
352
  const re = [
353
- p.InProgress,
354
- p.Referred,
355
- p.AwaitingForResponse
353
+ g.InProgress,
354
+ g.Referred,
355
+ g.AwaitingForResponse
356
356
  ], oe = () => {
357
357
  let e = d;
358
358
  if (e)
359
359
  return fetch(e).then((o) => o.json()).then((o) => {
360
- Object.keys(o).forEach((l) => {
361
- J(l, o[l]);
360
+ Object.keys(o).forEach((c) => {
361
+ J(c, o[c]);
362
362
  });
363
363
  }).catch((o) => {
364
364
  console.log(o);
@@ -371,13 +371,13 @@ function We(t, i, r) {
371
371
  Ue(f);
372
372
  }, ne = () => {
373
373
  let e = document.createElement("style");
374
- e.innerHTML = h, m.appendChild(e);
374
+ e.innerHTML = h, p.appendChild(e);
375
375
  }, ae = () => {
376
376
  let e = new URL(a), o = document.createElement("style");
377
- fetch(e.href).then((l) => l.text()).then((l) => {
378
- o.innerHTML = l, setTimeout(
377
+ fetch(e.href).then((c) => c.text()).then((c) => {
378
+ o.innerHTML = c, setTimeout(
379
379
  () => {
380
- m.appendChild(o);
380
+ p.appendChild(o);
381
381
  },
382
382
  1
383
383
  );
@@ -386,11 +386,11 @@ function We(t, i, r) {
386
386
  const { merchantId: e, customerId: o } = ce();
387
387
  if (!e)
388
388
  return;
389
- const l = new URL(`${c}/v1/player/verification/GetKYCStatus`), g = new Headers();
390
- g.append("accept", "application/json"), g.append("Content-Type", "application/json"), g.append("X-Client-Request-Timestamp", Z.utc().format("YYYY-MM-DD HH:mm:ss.SSS"));
391
- const R = {
389
+ const c = new URL(`${l}/v1/player/verification/GetKYCStatus`), m = new Headers();
390
+ m.append("accept", "application/json"), m.append("Content-Type", "application/json"), m.append("X-Client-Request-Timestamp", Z.utc().format("YYYY-MM-DD HH:mm:ss.SSS"));
391
+ const b = {
392
392
  method: "POST",
393
- headers: g,
393
+ headers: m,
394
394
  body: JSON.stringify({
395
395
  MerchantId: e,
396
396
  CustomerId: o,
@@ -398,149 +398,153 @@ function We(t, i, r) {
398
398
  AllParameters: !1
399
399
  })
400
400
  };
401
- fetch(l, R).then((S) => S.json()).then((S) => {
402
- r(17, L = S.StaticCdnUrl + "/cashier/operator-assets/" + e), B = fe(S.Verifications), B.VerificationStatuses.forEach((v) => {
401
+ fetch(c, b).then((A) => A.json()).then((A) => {
402
+ r(17, I = A.StaticCdnUrl + "/cashier/operator-assets/" + e), L = fe(A.Verifications), L.VerificationStatuses.forEach((v) => {
403
403
  v.VerificationUrlType !== "Widget" && P.add(v.Vendor);
404
- }), r(4, I = K());
404
+ }), r(4, q = K());
405
405
  });
406
406
  }, ce = () => {
407
407
  let e = u.split(".")[1];
408
408
  if (e) {
409
409
  let o = JSON.parse(atob(e));
410
410
  return {
411
- merchantId: o?.mid,
412
- customerId: `${o?.mid}~${n}`
411
+ merchantId: o == null ? void 0 : o.mid,
412
+ customerId: `${o == null ? void 0 : o.mid}~${n}`
413
413
  };
414
414
  }
415
415
  return { merchantId: null, customerId: null };
416
416
  }, fe = (e) => {
417
+ var c;
417
418
  if (!e || !e.length)
418
419
  return {
419
- VerificationSummaryStatus: p.Unverified,
420
+ VerificationSummaryStatus: g.Unverified,
420
421
  VerificationStatuses: []
421
422
  };
422
423
  const o = ue(e);
423
424
  if (o && o.length) {
424
- const l = de(o);
425
+ const m = de(o);
425
426
  return {
426
- VerificationSummaryStatus: l.Status,
427
- VerificationUrl: l.Flags?.DeferredUrlKey,
428
- VerificationStatuses: N(o, l.Status)
427
+ VerificationSummaryStatus: m.Status,
428
+ VerificationUrl: (c = m.Flags) == null ? void 0 : c.DeferredUrlKey,
429
+ VerificationStatuses: N(o, m.Status)
429
430
  };
430
431
  } else
431
432
  return {
432
- VerificationSummaryStatus: e.some((g) => g.Status === p.Failed) ? p.Failed : p.Verified,
433
- VerificationStatuses: N(e, [p.Failed])
433
+ VerificationSummaryStatus: e.some((b) => b.Status === g.Failed) ? g.Failed : g.Verified,
434
+ VerificationStatuses: N(e, [g.Failed])
434
435
  };
435
436
  }, de = (e) => e.reduce(
436
- (o, l) => o ? new Date(o) < new Date(l) ? l : o : l,
437
+ (o, c) => o ? new Date(o) < new Date(c) ? c : o : c,
437
438
  0
438
- ), N = (e, o) => e.filter((l) => o.includes(l.Status)).map((l) => ({
439
- Type: l.Type,
440
- Vendor: l.VendorName,
441
- VerificationDocuments: l.Documents ? [...Object.values(l.Documents)] : [],
442
- VerificationUrlType: l.Flags?.DeferredUrlTypeKey,
443
- VerificationUrl: l.Flags?.DeferredUrlKey
444
- })), ue = (e) => e.filter((o) => re.includes(o.Status) ? o.Flags && o.Flags.DeferredUrlKey || he(o) || me(o) : !1), he = (e) => {
445
- const o = e.Documents && e.VendorName === T.Manual, l = Object.values(e.Documents).some((g) => g.Status === z.Requested);
446
- return o && l;
447
- }, me = (e) => e.VendorName === T.ShuftiPro && e.Status === p.Referred, K = () => {
448
- switch (B.VerificationSummaryStatus) {
449
- case p.InProgress:
439
+ ), N = (e, o) => e.filter((c) => o.includes(c.Status)).map((c) => {
440
+ var m, b;
441
+ return {
442
+ Type: c.Type,
443
+ Vendor: c.VendorName,
444
+ VerificationDocuments: c.Documents ? [...Object.values(c.Documents)] : [],
445
+ VerificationUrlType: (m = c.Flags) == null ? void 0 : m.DeferredUrlTypeKey,
446
+ VerificationUrl: (b = c.Flags) == null ? void 0 : b.DeferredUrlKey
447
+ };
448
+ }), ue = (e) => e.filter((o) => re.includes(o.Status) ? o.Flags && o.Flags.DeferredUrlKey || he(o) || me(o) : !1), he = (e) => {
449
+ const o = e.Documents && e.VendorName === T.Manual, c = Object.values(e.Documents).some((m) => m.Status === U.Requested);
450
+ return o && c;
451
+ }, me = (e) => e.VendorName === T.ShuftiPro && e.Status === g.Referred, K = () => {
452
+ switch (L.VerificationSummaryStatus) {
453
+ case g.InProgress:
450
454
  const e = [];
451
455
  return P.forEach((o) => {
452
456
  e.push(pe(o));
453
457
  }), e;
454
- case p.Referred:
458
+ case g.Referred:
455
459
  return [s("verification.idenfy.referred-awaiting")];
456
- case p.Failed:
460
+ case g.Failed:
457
461
  return [s("verification.message.failed")];
458
462
  }
459
463
  }, pe = (e) => {
460
- const o = B.VerificationStatuses.filter((l) => l.Vendor === e);
464
+ const o = L.VerificationStatuses.filter((c) => c.Vendor === e);
461
465
  if (e === T.ShuftiPro)
462
466
  return ge(o);
463
467
  {
464
- const l = s("verification.idenfy.link-name"), g = {
465
- link: `<a href="${o[0].VerificationUrl}" target="_blank">${l}</a>`
468
+ const c = s("verification.idenfy.link-name"), m = {
469
+ link: `<a href="${o[0].VerificationUrl}" target="_blank">${c}</a>`
466
470
  };
467
- return s("verification.idenfy.in-progress", { values: g });
471
+ return s("verification.idenfy.in-progress", { values: m });
468
472
  }
469
473
  }, ge = (e) => {
470
- const o = [], l = {}, g = [
471
- M.Biometric,
472
- M.Documents,
473
- M.ProofOfAddress
474
+ const o = [], c = {}, m = [
475
+ B.Biometric,
476
+ B.Documents,
477
+ B.ProofOfAddress
474
478
  ];
475
479
  e.forEach((v) => {
476
- g.includes(v.Type) && (o.push(v.Type), l[v.Type] = ve(v, we(v.Type)));
480
+ m.includes(v.Type) && (o.push(v.Type), c[v.Type] = ve(v, we(v.Type)));
477
481
  });
478
- let R = o.every((v) => j.has(v)), S = `verification.shuftipro.in-progress.${o.sort().join(".")}`;
479
- return R ? s("verification.shuftipro.validations-started") : s(S, { values: l });
480
- }, ve = (e, o) => `<a class="verificationLink ${e.Type}" href=" ${e.VerificationUrl} " target="_blank">${o}</a>`, we = (e) => s(`verification.shuftipro.link-name.${e}`), U = (e, o) => {
482
+ let b = o.every((v) => j.has(v)), A = `verification.shuftipro.in-progress.${o.sort().join(".")}`;
483
+ return b ? s("verification.shuftipro.validations-started") : s(A, { values: c });
484
+ }, ve = (e, o) => `<a class="verificationLink ${e.Type}" href=" ${e.VerificationUrl} " target="_blank">${o}</a>`, we = (e) => s(`verification.shuftipro.link-name.${e}`), R = (e, o) => {
481
485
  if (e.stopPropagation(), e.target && (e.target.href || e.target.closest("a"))) {
482
486
  if (e.target.closest(".verificationLink")) {
483
- const l = e.target.className.split(" ")[1];
484
- j.add(l), r(4, I = K());
487
+ const c = e.target.className.split(" ")[1];
488
+ j.add(c), r(4, q = K());
485
489
  }
486
490
  return;
487
491
  }
488
- o === 0 && r(5, q = !q);
492
+ o === 0 && r(5, x = !x);
489
493
  }, ye = () => {
490
- r(6, x = y === "false");
494
+ r(6, E = y === "false");
491
495
  }, ke = () => {
492
- r(8, F = L + "/" + f + "/" + je);
496
+ r(8, z = I + "/" + f + "/" + je);
493
497
  try {
494
- fetch(F, { method: "HEAD" }).then((e) => {
495
- r(7, E = e.ok);
498
+ fetch(z, { method: "HEAD" }).then((e) => {
499
+ r(7, F = e.ok);
496
500
  });
497
- } catch {
498
- r(7, E = !1);
501
+ } catch (e) {
502
+ r(7, F = !1);
499
503
  }
500
504
  }, W = () => {
501
505
  window.postMessage(
502
506
  {
503
507
  type: "ShowCashierVideoModal",
504
- details: x ? Ne : Ke
508
+ details: E ? Ne : Ke
505
509
  },
506
510
  window.location.href
507
511
  );
508
- }, Ve = (e, o) => U(o, e), Pe = (e, o) => U(o, e), be = () => W();
512
+ }, Ve = (e, o) => R(o, e), Pe = (e, o) => R(o, e), be = () => W();
509
513
  function De(e) {
510
514
  Ie[e ? "unshift" : "push"](() => {
511
- m = e, r(3, m);
515
+ p = e, r(3, p);
512
516
  });
513
517
  }
514
518
  return t.$$set = (e) => {
515
- "endpoint" in e && r(12, c = e.endpoint), "lang" in e && r(13, f = e.lang), "translationurl" in e && r(14, d = e.translationurl), "clientstyling" in e && r(0, h = e.clientstyling), "clientstylingurl" in e && r(1, a = e.clientstylingurl), "session" in e && r(15, u = e.session), "customerid" in e && r(16, n = e.customerid), "ismobileview" in e && r(2, y = e.ismobileview);
519
+ "endpoint" in e && r(12, l = e.endpoint), "lang" in e && r(13, f = e.lang), "translationurl" in e && r(14, d = e.translationurl), "clientstyling" in e && r(0, h = e.clientstyling), "clientstylingurl" in e && r(1, a = e.clientstylingurl), "session" in e && r(15, u = e.session), "customerid" in e && r(16, n = e.customerid), "ismobileview" in e && r(2, y = e.ismobileview);
516
520
  }, t.$$.update = () => {
517
521
  t.$$.dirty[0] & /*lang*/
518
522
  8192 && f && se(), t.$$.dirty[0] & /*endpoint, session*/
519
- 36864 && c && u && le(), t.$$.dirty[0] & /*translationurl*/
523
+ 36864 && l && u && le(), t.$$.dirty[0] & /*translationurl*/
520
524
  16384 && d && oe(), t.$$.dirty[0] & /*clientstyling, customStylingContainer*/
521
- 9 && h && m && ne(), t.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
522
- 10 && a && m && ae(), t.$$.dirty[0] & /*ismobileview*/
525
+ 9 && h && p && ne(), t.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
526
+ 10 && a && p && ae(), t.$$.dirty[0] & /*ismobileview*/
523
527
  4 && y && ye(), t.$$.dirty[0] & /*staticCdnUrl*/
524
- 131072 && L && ke();
528
+ 131072 && I && ke();
525
529
  }, [
526
530
  h,
527
531
  a,
528
532
  y,
529
- m,
530
- I,
533
+ p,
531
534
  q,
532
535
  x,
533
536
  E,
534
537
  F,
538
+ z,
535
539
  s,
536
- U,
540
+ R,
537
541
  W,
538
- c,
542
+ l,
539
543
  f,
540
544
  d,
541
545
  u,
542
546
  n,
543
- L,
547
+ I,
544
548
  Ve,
545
549
  Pe,
546
550
  be,
@@ -573,49 +577,49 @@ class Ge extends Ce {
573
577
  return this.$$.ctx[12];
574
578
  }
575
579
  set endpoint(i) {
576
- this.$$set({ endpoint: i }), b();
580
+ this.$$set({ endpoint: i }), D();
577
581
  }
578
582
  get lang() {
579
583
  return this.$$.ctx[13];
580
584
  }
581
585
  set lang(i) {
582
- this.$$set({ lang: i }), b();
586
+ this.$$set({ lang: i }), D();
583
587
  }
584
588
  get translationurl() {
585
589
  return this.$$.ctx[14];
586
590
  }
587
591
  set translationurl(i) {
588
- this.$$set({ translationurl: i }), b();
592
+ this.$$set({ translationurl: i }), D();
589
593
  }
590
594
  get clientstyling() {
591
595
  return this.$$.ctx[0];
592
596
  }
593
597
  set clientstyling(i) {
594
- this.$$set({ clientstyling: i }), b();
598
+ this.$$set({ clientstyling: i }), D();
595
599
  }
596
600
  get clientstylingurl() {
597
601
  return this.$$.ctx[1];
598
602
  }
599
603
  set clientstylingurl(i) {
600
- this.$$set({ clientstylingurl: i }), b();
604
+ this.$$set({ clientstylingurl: i }), D();
601
605
  }
602
606
  get session() {
603
607
  return this.$$.ctx[15];
604
608
  }
605
609
  set session(i) {
606
- this.$$set({ session: i }), b();
610
+ this.$$set({ session: i }), D();
607
611
  }
608
612
  get customerid() {
609
613
  return this.$$.ctx[16];
610
614
  }
611
615
  set customerid(i) {
612
- this.$$set({ customerid: i }), b();
616
+ this.$$set({ customerid: i }), D();
613
617
  }
614
618
  get ismobileview() {
615
619
  return this.$$.ctx[2];
616
620
  }
617
621
  set ismobileview(i) {
618
- this.$$set({ ismobileview: i }), b();
622
+ this.$$set({ ismobileview: i }), D();
619
623
  }
620
624
  }
621
625
  Se(Ge, { endpoint: {}, lang: {}, translationurl: {}, clientstyling: {}, clientstylingurl: {}, session: {}, customerid: {}, ismobileview: {} }, [], [], !0);