@everymatrix/cashier-page 1.54.0 → 1.54.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (33) hide show
  1. package/components/CashierConfirmModal-bl1anpXG.js +1015 -0
  2. package/components/{CashierError-DNpUb5Mm.js → CashierError-CNghn61_.js} +16 -16
  3. package/components/{CashierHeader-jyno14ok.js → CashierHeader-Cukt_6q5.js} +2 -2
  4. package/components/{CashierIframeRedirect-Cz4tv7-x.js → CashierIframeRedirect-CfOyb27d.js} +6 -6
  5. package/components/{CashierMethodDetails-DhPcp2tp.js → CashierMethodDetails-BIl7Is4q.js} +1521 -1535
  6. package/components/{CashierMethodsList-tNPWey2d.js → CashierMethodsList-sDyTLsi_.js} +164 -175
  7. package/components/{CashierModal-BZinftgA.js → CashierModal-BvsZYr3E.js} +1 -1
  8. package/components/{CashierNotifications-VNlsq9BM.js → CashierNotifications-DLiOLPVS.js} +1 -1
  9. package/components/{CashierPage-Ci16qWoB.js → CashierPage-ChYGXNFh.js} +16 -16
  10. package/components/{CashierReceiptPage-BrSqthh1.js → CashierReceiptPage-BnZNWRHD.js} +108 -109
  11. package/components/{CashierSessionExpirationModal-BaJ2BLlM.js → CashierSessionExpirationModal-m8mfQG7I.js} +64 -64
  12. package/components/{CashierSpinner-DLOGBpHm.js → CashierSpinner-BGK4UpXs.js} +1 -1
  13. package/components/{CashierVerifications-CAlJv-1M.js → CashierVerifications-ghULlvRf.js} +145 -149
  14. package/components/{CashierVideoModal-CdG4dnYx.js → CashierVideoModal-CIyp7q0i.js} +1 -1
  15. package/esnext/cashier-page.js +14 -0
  16. package/package.json +10 -17
  17. package/components/CashierConfirmModal-BWwXFa2X.js +0 -1052
  18. package/components/CashierConfirmModal-DvPjAtJP.cjs +0 -4
  19. package/components/CashierError-Dmdtq5Bw.cjs +0 -5
  20. package/components/CashierHeader-CQUqVL_i.cjs +0 -1
  21. package/components/CashierIframeRedirect-D-OfVohj.cjs +0 -1
  22. package/components/CashierMethodDetails-CBOh1gd0.cjs +0 -18
  23. package/components/CashierMethodsList-BXQ8slk2.cjs +0 -1
  24. package/components/CashierModal-FVpPS0Cg.cjs +0 -1
  25. package/components/CashierNotifications-Dt9rQ2vt.cjs +0 -1
  26. package/components/CashierPage-_uE0Wp1v.cjs +0 -1
  27. package/components/CashierReceiptPage-khlZnWa5.cjs +0 -1
  28. package/components/CashierSessionExpirationModal-Ynzjj3_r.cjs +0 -2
  29. package/components/CashierSpinner-6i7TRj04.cjs +0 -1
  30. package/components/CashierVerifications-KeQfHgf0.cjs +0 -1
  31. package/components/CashierVideoModal-Cgjg5Mzz.cjs +0 -1
  32. package/es2015/cashier-page.cjs +0 -1
  33. package/es2015/cashier-page.js +0 -16
@@ -1,6 +1,6 @@
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";
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";
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 != "undefined") {
68
+ if (typeof window < "u") {
69
69
  let t = function(i) {
70
70
  return function(...r) {
71
71
  try {
@@ -77,7 +77,7 @@ if (typeof window != "undefined") {
77
77
  }
78
78
  };
79
79
  };
80
- customElements.define = t(customElements.define), import("./CashierVideoModal-CdG4dnYx.js").then(({ default: i }) => {
80
+ customElements.define = t(customElements.define), import("./CashierVideoModal-CIyp7q0i.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, l, f = Y(
92
+ let i, r, s, c, 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 = O(), h && h.c(), s = O(), l = w("cashier-video-modal"), V(i, "class", "CashierVerificationsWrapper"), C(
108
- l,
107
+ r = A(), h && h.c(), s = A(), c = w("cashier-video-modal"), V(i, "class", "CashierVerificationsWrapper"), D(
108
+ c,
109
109
  "clientstylingurl",
110
110
  /*clientstylingurl*/
111
111
  t[1]
112
- ), C(
113
- l,
112
+ ), D(
113
+ c,
114
114
  "clientstyling",
115
115
  /*clientstyling*/
116
116
  t[0]
117
- ), C(
118
- l,
117
+ ), D(
118
+ c,
119
119
  "ismobileview",
120
120
  /*ismobileview*/
121
121
  t[2]
122
- ), C(
123
- l,
122
+ ), D(
123
+ c,
124
124
  "videosrc",
125
125
  /*videoSrc*/
126
126
  t[8]
127
127
  );
128
128
  },
129
129
  m(a, u) {
130
- _(a, i, u);
130
+ C(a, i, u);
131
131
  for (let n = 0; n < d.length; n += 1)
132
132
  d[n] && d[n].m(i, null);
133
- _(a, r, u), h && h.m(a, u), _(a, s, u), _(a, l, 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*/
@@ -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 && C(
154
- l,
153
+ 2 && D(
154
+ c,
155
155
  "clientstylingurl",
156
156
  /*clientstylingurl*/
157
157
  a[1]
158
158
  ), u[0] & /*clientstyling*/
159
- 1 && C(
160
- l,
159
+ 1 && D(
160
+ c,
161
161
  "clientstyling",
162
162
  /*clientstyling*/
163
163
  a[0]
164
164
  ), u[0] & /*ismobileview*/
165
- 4 && C(
166
- l,
165
+ 4 && D(
166
+ c,
167
167
  "ismobileview",
168
168
  /*ismobileview*/
169
169
  a[2]
170
170
  ), u[0] & /*videoSrc*/
171
- 256 && C(
172
- l,
171
+ 256 && D(
172
+ c,
173
173
  "videosrc",
174
174
  /*videoSrc*/
175
175
  a[8]
176
176
  );
177
177
  },
178
178
  d(a) {
179
- a && (S(i), S(r), S(s), S(l)), Te(d, a), h && h.d(a);
179
+ a && (_(i), _(r), _(s), _(c)), Me(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 l(...f) {
185
+ function c(...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
- _(f, i, d), r || (s = H(i, "click", l), r = !0);
200
+ C(f, i, d), r || (s = H(i, "click", c), r = !0);
201
201
  },
202
202
  p(f, d) {
203
203
  t = f;
204
204
  },
205
205
  d(f) {
206
- f && S(i), r = !1, s();
206
+ f && _(i), r = !1, s();
207
207
  }
208
208
  };
209
209
  }
210
210
  function ie(t) {
211
- let i, r, s, l, f = (
211
+ let i, r, s, c, 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(...p) {
219
+ function y(...m) {
220
220
  return (
221
221
  /*click_handler_1*/
222
222
  t[19](
223
223
  /*index*/
224
224
  t[51],
225
- ...p
225
+ ...m
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 = O(), l = w("p"), d = O(), n && n.c(), h = O(), V(r, "class", "IconVerification"), V(l, "class", "text"), V(i, "class", "CashierVerificationMessage"), M(
231
+ i = w("div"), r = w("div"), r.innerHTML = '<svg width="64px" height="64px" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" stroke="#ffffff"><g id="SVGRepo_bgCarrier" stroke-width="0"></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"></g><g id="SVGRepo_iconCarrier"><path d="M4.39254 16.2614C2.64803 13.1941 1.66074 9.71783 1.51646 6.15051C1.50127 5.77507 1.70918 5.42812 2.04153 5.25282L11.5335 0.246091C11.8254 0.0920859 12.1746 0.0920859 12.4665 0.246091L21.9585 5.25282C22.2908 5.42812 22.4987 5.77507 22.4835 6.15051C22.3393 9.71783 21.352 13.1941 19.6075 16.2614C17.8618 19.3307 15.4169 21.8869 12.4986 23.7001C12.1931 23.8899 11.8069 23.8899 11.5014 23.7001C8.58313 21.8869 6.13817 19.3307 4.39254 16.2614Z" fill="#fa9200"></path><path d="M8.25 12.75L11.25 15L17.25 9" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path></g></svg>', s = A(), c = w("p"), d = A(), n && n.c(), h = A(), V(r, "class", "IconVerification"), V(c, "class", "text"), V(i, "class", "CashierVerificationMessage"), O(
232
232
  i,
233
233
  "ShowAll",
234
234
  /*allVerificationsVisible*/
235
235
  t[5]
236
236
  );
237
237
  },
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);
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);
240
240
  },
241
- p(p, P) {
242
- t = p, P[0] & /*displayMessages*/
241
+ p(m, P) {
242
+ t = m, P[0] & /*displayMessages*/
243
243
  16 && f !== (f = /*message*/
244
- t[49] + "") && (l.innerHTML = f), /*displayMessages*/
244
+ t[49] + "") && (c.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 && M(
247
+ 32 && O(
248
248
  i,
249
249
  "ShowAll",
250
250
  /*allVerificationsVisible*/
251
251
  t[5]
252
252
  );
253
253
  },
254
- d(p) {
255
- p && S(i), n && n.d(), a = !1, u();
254
+ d(m) {
255
+ m && _(i), n && n.d(), a = !1, u();
256
256
  }
257
257
  };
258
258
  }
259
259
  function te(t) {
260
- let i, r, s, l, f = (
260
+ let i, r, s, c, f = (
261
261
  /*$_*/
262
262
  t[9]("verification.video.how-to") + ""
263
263
  ), d, h, a;
264
264
  return {
265
265
  c() {
266
- i = w("div"), r = w("div"), r.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M256 8C119.043 8 8 119.083 8 256c0 136.997 111.043 248 248 248s248-111.003 248-248C504 119.083 392.957 8 256 8zm0 448c-110.532 0-200-89.431-200-200 0-110.495 89.472-200 200-200 110.491 0 200 89.471 200 200 0 110.53-89.431 200-200 200zm107.244-255.2c0 67.052-72.421 68.084-72.421 92.863V300c0 6.627-5.373 12-12 12h-45.647c-6.627 0-12-5.373-12-12v-8.659c0-35.745 27.1-50.034 47.579-61.516 17.561-9.845 28.324-16.541 28.324-29.579 0-17.246-21.999-28.693-39.784-28.693-23.189 0-33.894 10.977-48.942 29.969-4.057 5.12-11.46 6.071-16.666 2.124l-27.824-21.098c-5.107-3.872-6.251-11.066-2.644-16.363C184.846 131.491 214.94 112 261.794 112c49.071 0 101.45 38.304 101.45 88.8zM298 368c0 23.159-18.841 42-42 42s-42-18.841-42-42 18.841-42 42-42 42 18.841 42 42z"></path></svg>', s = O(), l = w("div"), d = Be(f), V(r, "class", "IconVideo"), V(l, "class", "CashierVerificationVideoLink"), M(
267
- l,
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,
268
268
  "CashierVerificationVideoLinkDesktop",
269
269
  /*desktopView*/
270
270
  t[6]
271
271
  ), V(i, "class", "CashierVerificationVideo");
272
272
  },
273
273
  m(u, n) {
274
- _(u, i, n), k(i, r), k(i, s), k(i, l), k(l, d), h || (a = H(
275
- l,
274
+ C(u, i, n), k(i, r), k(i, s), k(i, c), k(c, d), h || (a = H(
275
+ c,
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 && M(
286
- l,
285
+ 64 && O(
286
+ c,
287
287
  "CashierVerificationVideoLinkDesktop",
288
288
  /*desktopView*/
289
289
  u[6]
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
  }
@@ -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"), M(
304
+ i = w("div"), r && r.c(), V(i, "class", "CashierVerifications"), O(
305
305
  i,
306
306
  "CashierVerificationsDesktop",
307
307
  /*desktopView*/
308
308
  t[6]
309
309
  );
310
310
  },
311
- m(s, l) {
312
- _(s, i, l), r && r.m(i, null), t[21](i);
311
+ m(s, c) {
312
+ C(s, i, c), r && r.m(i, null), t[21](i);
313
313
  },
314
- p(s, l) {
314
+ p(s, c) {
315
315
  /*displayMessages*/
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(
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(
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 && S(i), r && r.d(), t[21](null);
327
+ 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
- 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 = "";
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 = "";
336
336
  var T;
337
337
  (function(e) {
338
338
  e.Manual = "Manual", e.ShuftiPro = "ShuftiPro";
339
339
  })(T || (T = {}));
340
- var U;
340
+ var z;
341
341
  (function(e) {
342
342
  e.Requested = "Requested";
343
- })(U || (U = {}));
344
- var g;
343
+ })(z || (z = {}));
344
+ var p;
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
- })(g || (g = {}));
348
- var B;
347
+ })(p || (p = {}));
348
+ var M;
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
- })(B || (B = {}));
351
+ })(M || (M = {}));
352
352
  const re = [
353
- g.InProgress,
354
- g.Referred,
355
- g.AwaitingForResponse
353
+ p.InProgress,
354
+ p.Referred,
355
+ p.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((c) => {
361
- J(c, o[c]);
360
+ Object.keys(o).forEach((l) => {
361
+ J(l, o[l]);
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, p.appendChild(e);
374
+ e.innerHTML = h, m.appendChild(e);
375
375
  }, ae = () => {
376
376
  let e = new URL(a), o = document.createElement("style");
377
- fetch(e.href).then((c) => c.text()).then((c) => {
378
- o.innerHTML = c, setTimeout(
377
+ fetch(e.href).then((l) => l.text()).then((l) => {
378
+ o.innerHTML = l, setTimeout(
379
379
  () => {
380
- p.appendChild(o);
380
+ m.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 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 = {
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 = {
392
392
  method: "POST",
393
- headers: m,
393
+ headers: g,
394
394
  body: JSON.stringify({
395
395
  MerchantId: e,
396
396
  CustomerId: o,
@@ -398,153 +398,149 @@ function We(t, i, r) {
398
398
  AllParameters: !1
399
399
  })
400
400
  };
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) => {
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) => {
403
403
  v.VerificationUrlType !== "Widget" && P.add(v.Vendor);
404
- }), r(4, q = K());
404
+ }), r(4, I = 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 == null ? void 0 : o.mid,
412
- customerId: `${o == null ? void 0 : o.mid}~${n}`
411
+ merchantId: o?.mid,
412
+ customerId: `${o?.mid}~${n}`
413
413
  };
414
414
  }
415
415
  return { merchantId: null, customerId: null };
416
416
  }, fe = (e) => {
417
- var c;
418
417
  if (!e || !e.length)
419
418
  return {
420
- VerificationSummaryStatus: g.Unverified,
419
+ VerificationSummaryStatus: p.Unverified,
421
420
  VerificationStatuses: []
422
421
  };
423
422
  const o = ue(e);
424
423
  if (o && o.length) {
425
- const m = de(o);
424
+ const l = de(o);
426
425
  return {
427
- VerificationSummaryStatus: m.Status,
428
- VerificationUrl: (c = m.Flags) == null ? void 0 : c.DeferredUrlKey,
429
- VerificationStatuses: N(o, m.Status)
426
+ VerificationSummaryStatus: l.Status,
427
+ VerificationUrl: l.Flags?.DeferredUrlKey,
428
+ VerificationStatuses: N(o, l.Status)
430
429
  };
431
430
  } else
432
431
  return {
433
- VerificationSummaryStatus: e.some((b) => b.Status === g.Failed) ? g.Failed : g.Verified,
434
- VerificationStatuses: N(e, [g.Failed])
432
+ VerificationSummaryStatus: e.some((g) => g.Status === p.Failed) ? p.Failed : p.Verified,
433
+ VerificationStatuses: N(e, [p.Failed])
435
434
  };
436
435
  }, de = (e) => e.reduce(
437
- (o, c) => o ? new Date(o) < new Date(c) ? c : o : c,
436
+ (o, l) => o ? new Date(o) < new Date(l) ? l : o : l,
438
437
  0
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:
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:
454
450
  const e = [];
455
451
  return P.forEach((o) => {
456
452
  e.push(pe(o));
457
453
  }), e;
458
- case g.Referred:
454
+ case p.Referred:
459
455
  return [s("verification.idenfy.referred-awaiting")];
460
- case g.Failed:
456
+ case p.Failed:
461
457
  return [s("verification.message.failed")];
462
458
  }
463
459
  }, pe = (e) => {
464
- const o = L.VerificationStatuses.filter((c) => c.Vendor === e);
460
+ const o = B.VerificationStatuses.filter((l) => l.Vendor === e);
465
461
  if (e === T.ShuftiPro)
466
462
  return ge(o);
467
463
  {
468
- const c = s("verification.idenfy.link-name"), m = {
469
- link: `<a href="${o[0].VerificationUrl}" target="_blank">${c}</a>`
464
+ const l = s("verification.idenfy.link-name"), g = {
465
+ link: `<a href="${o[0].VerificationUrl}" target="_blank">${l}</a>`
470
466
  };
471
- return s("verification.idenfy.in-progress", { values: m });
467
+ return s("verification.idenfy.in-progress", { values: g });
472
468
  }
473
469
  }, ge = (e) => {
474
- const o = [], c = {}, m = [
475
- B.Biometric,
476
- B.Documents,
477
- B.ProofOfAddress
470
+ const o = [], l = {}, g = [
471
+ M.Biometric,
472
+ M.Documents,
473
+ M.ProofOfAddress
478
474
  ];
479
475
  e.forEach((v) => {
480
- m.includes(v.Type) && (o.push(v.Type), c[v.Type] = ve(v, we(v.Type)));
476
+ g.includes(v.Type) && (o.push(v.Type), l[v.Type] = ve(v, we(v.Type)));
481
477
  });
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) => {
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) => {
485
481
  if (e.stopPropagation(), e.target && (e.target.href || e.target.closest("a"))) {
486
482
  if (e.target.closest(".verificationLink")) {
487
- const c = e.target.className.split(" ")[1];
488
- j.add(c), r(4, q = K());
483
+ const l = e.target.className.split(" ")[1];
484
+ j.add(l), r(4, I = K());
489
485
  }
490
486
  return;
491
487
  }
492
- o === 0 && r(5, x = !x);
488
+ o === 0 && r(5, q = !q);
493
489
  }, ye = () => {
494
- r(6, E = y === "false");
490
+ r(6, x = y === "false");
495
491
  }, ke = () => {
496
- r(8, z = I + "/" + f + "/" + je);
492
+ r(8, F = L + "/" + f + "/" + je);
497
493
  try {
498
- fetch(z, { method: "HEAD" }).then((e) => {
499
- r(7, F = e.ok);
494
+ fetch(F, { method: "HEAD" }).then((e) => {
495
+ r(7, E = e.ok);
500
496
  });
501
- } catch (e) {
502
- r(7, F = !1);
497
+ } catch {
498
+ r(7, E = !1);
503
499
  }
504
500
  }, W = () => {
505
501
  window.postMessage(
506
502
  {
507
503
  type: "ShowCashierVideoModal",
508
- details: E ? Ne : Ke
504
+ details: x ? Ne : Ke
509
505
  },
510
506
  window.location.href
511
507
  );
512
- }, Ve = (e, o) => R(o, e), Pe = (e, o) => R(o, e), be = () => W();
508
+ }, Ve = (e, o) => U(o, e), Pe = (e, o) => U(o, e), be = () => W();
513
509
  function De(e) {
514
510
  Ie[e ? "unshift" : "push"](() => {
515
- p = e, r(3, p);
511
+ m = e, r(3, m);
516
512
  });
517
513
  }
518
514
  return t.$$set = (e) => {
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);
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);
520
516
  }, t.$$.update = () => {
521
517
  t.$$.dirty[0] & /*lang*/
522
518
  8192 && f && se(), t.$$.dirty[0] & /*endpoint, session*/
523
- 36864 && l && u && le(), t.$$.dirty[0] & /*translationurl*/
519
+ 36864 && c && u && le(), t.$$.dirty[0] & /*translationurl*/
524
520
  16384 && d && oe(), t.$$.dirty[0] & /*clientstyling, customStylingContainer*/
525
- 9 && h && p && ne(), t.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
526
- 10 && a && p && ae(), t.$$.dirty[0] & /*ismobileview*/
521
+ 9 && h && m && ne(), t.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
522
+ 10 && a && m && ae(), t.$$.dirty[0] & /*ismobileview*/
527
523
  4 && y && ye(), t.$$.dirty[0] & /*staticCdnUrl*/
528
- 131072 && I && ke();
524
+ 131072 && L && ke();
529
525
  }, [
530
526
  h,
531
527
  a,
532
528
  y,
533
- p,
529
+ m,
530
+ I,
534
531
  q,
535
532
  x,
536
533
  E,
537
534
  F,
538
- z,
539
535
  s,
540
- R,
536
+ U,
541
537
  W,
542
- l,
538
+ c,
543
539
  f,
544
540
  d,
545
541
  u,
546
542
  n,
547
- I,
543
+ L,
548
544
  Ve,
549
545
  Pe,
550
546
  be,
@@ -577,49 +573,49 @@ class Ge extends Ce {
577
573
  return this.$$.ctx[12];
578
574
  }
579
575
  set endpoint(i) {
580
- this.$$set({ endpoint: i }), D();
576
+ this.$$set({ endpoint: i }), b();
581
577
  }
582
578
  get lang() {
583
579
  return this.$$.ctx[13];
584
580
  }
585
581
  set lang(i) {
586
- this.$$set({ lang: i }), D();
582
+ this.$$set({ lang: i }), b();
587
583
  }
588
584
  get translationurl() {
589
585
  return this.$$.ctx[14];
590
586
  }
591
587
  set translationurl(i) {
592
- this.$$set({ translationurl: i }), D();
588
+ this.$$set({ translationurl: i }), b();
593
589
  }
594
590
  get clientstyling() {
595
591
  return this.$$.ctx[0];
596
592
  }
597
593
  set clientstyling(i) {
598
- this.$$set({ clientstyling: i }), D();
594
+ this.$$set({ clientstyling: i }), b();
599
595
  }
600
596
  get clientstylingurl() {
601
597
  return this.$$.ctx[1];
602
598
  }
603
599
  set clientstylingurl(i) {
604
- this.$$set({ clientstylingurl: i }), D();
600
+ this.$$set({ clientstylingurl: i }), b();
605
601
  }
606
602
  get session() {
607
603
  return this.$$.ctx[15];
608
604
  }
609
605
  set session(i) {
610
- this.$$set({ session: i }), D();
606
+ this.$$set({ session: i }), b();
611
607
  }
612
608
  get customerid() {
613
609
  return this.$$.ctx[16];
614
610
  }
615
611
  set customerid(i) {
616
- this.$$set({ customerid: i }), D();
612
+ this.$$set({ customerid: i }), b();
617
613
  }
618
614
  get ismobileview() {
619
615
  return this.$$.ctx[2];
620
616
  }
621
617
  set ismobileview(i) {
622
- this.$$set({ ismobileview: i }), D();
618
+ this.$$set({ ismobileview: i }), b();
623
619
  }
624
620
  }
625
621
  Se(Ge, { endpoint: {}, lang: {}, translationurl: {}, clientstyling: {}, clientstylingurl: {}, session: {}, customerid: {}, ismobileview: {} }, [], [], !0);
@@ -1,4 +1,4 @@
1
- import { S as j, b as B, f as C, c as R, a as U, d as Z, x as A, k as v, n as m, v as _, G as F, g, h as b, D as k, j as n, I as V, l as p, O as w, A as H, C as G } from "./CashierConfirmModal-BWwXFa2X.js";
1
+ import { S as j, b as B, f as C, c as R, a as U, d as Z, x as A, k as v, n as m, v as _, G as F, g, h as b, D as k, j as n, I as V, l as p, O as w, A as H, C as G } from "./CashierConfirmModal-bl1anpXG.js";
2
2
  function I(s) {
3
3
  Z(s, "svelte-1oqw41v", ".CashierVideoWrapper{position:absolute;width:100%;height:500px;left:0;top:10px;z-index:5;background-color:var(--mmw--color-grey-light, #f3f6f9)}.CashierVideoWrapperDesktop{height:700px;top:20px}.CashierVideoHeader{width:100%;height:29px;position:relative;text-transform:uppercase;text-align:right;background-color:var(--mmw--color-grey-light, #f3f6f9);font-size:var(--emw--font-size-medium, 16px);z-index:6}.CashierVideoHeader svg{padding:8px 8px 8px 15px}.CashierVideo video{object-fit:contain;width:100%;height:100%;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}.CashierVideo svg{cursor:pointer;margin-left:auto;position:absolute;right:0;z-index:6;padding:5px 13px}");
4
4
  }