@everymatrix/cashier-page 1.70.1 → 1.71.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 (59) hide show
  1. package/components/{CashierConfirmModal-untxGhsx.js → CashierConfirmModal-CV61pzu0.js} +35 -35
  2. package/components/{CashierConfirmModal-4RYp7Eiq.js → CashierConfirmModal-DV0Fu11y.js} +35 -35
  3. package/components/{CashierError-lJcr3S9j.js → CashierError-BkScPj8N.js} +673 -677
  4. package/components/{CashierError-B9QN5m8g.cjs → CashierError-KyWXtIu0.cjs} +16 -3
  5. package/components/{CashierError-B3QY-Z04.js → CashierError-ePGalbvr.js} +674 -678
  6. package/components/{CashierHeader-0a_PwGVg.js → CashierHeader-CmPaEysf.js} +36 -36
  7. package/components/{CashierHeader-6fDSkiu1.js → CashierHeader-Dg8-jl7B.js} +38 -38
  8. package/components/{CashierHeader-BWRxu_17.cjs → CashierHeader-Kzd3yvU8.cjs} +1 -1
  9. package/components/{CashierIframeRedirect-Bxe3aDw_.js → CashierIframeRedirect-BQzmSTPm.js} +32 -32
  10. package/components/{CashierIframeRedirect-2c-BnFeJ.js → CashierIframeRedirect-BZ1-wCfX.js} +39 -39
  11. package/components/{CashierIframeRedirect-DnE9lXCw.cjs → CashierIframeRedirect-C4Kr5x_V.cjs} +1 -1
  12. package/components/{CashierMethodDetails-C1IkwS7r.cjs → CashierMethodDetails-6bOPyfjr.cjs} +1 -1
  13. package/components/{CashierMethodDetails-CbzQCKZu.js → CashierMethodDetails-Cjo-c1yL.js} +64 -64
  14. package/components/{CashierMethodDetails-Bd3dJIne.js → CashierMethodDetails-DrHlWgeS.js} +64 -64
  15. package/components/{CashierMethodsList-GlWqnvHm.cjs → CashierMethodsList-B06G4mDr.cjs} +1 -1
  16. package/components/{CashierMethodsList-C1Roz4a7.js → CashierMethodsList-DUXUjETI.js} +111 -111
  17. package/components/{CashierMethodsList-wbpWQlt7.js → CashierMethodsList-uJaCnNYb.js} +106 -106
  18. package/components/{CashierModal-BrwIBn9a.js → CashierModal-BfZMj1i-.js} +35 -35
  19. package/components/{CashierModal-ZfKvGxFq.js → CashierModal-CYI7bxDr.js} +40 -40
  20. package/components/{CashierNotifications-dn6rnyK_.js → CashierNotifications-CpgeC0kF.js} +18 -18
  21. package/components/{CashierNotifications-C48iLynX.js → CashierNotifications-DvJFewVg.js} +19 -19
  22. package/components/{CashierPage-D1XOiV_V.js → CashierPage-BKWkbJW6.js} +178 -178
  23. package/components/{CashierPage-DHASkcsL.js → CashierPage-C4r1i50f.js} +105 -105
  24. package/components/{CashierPage-CeDNrFtr.cjs → CashierPage-kGJubDte.cjs} +1 -1
  25. package/components/{CashierReceiptPage-BnvakxJQ.js → CashierReceiptPage-DDMJsK6z.js} +28 -28
  26. package/components/{CashierReceiptPage--u9KEoCs.js → CashierReceiptPage-DWndIJa1.js} +28 -28
  27. package/components/{CashierReceiptPage-DT0yYD3A.cjs → CashierReceiptPage-DmuLKB8M.cjs} +1 -1
  28. package/components/{CashierSessionExpirationModal-BM6h05_P.js → CashierSessionExpirationModal-BD4B34aW.js} +55 -46
  29. package/components/{CashierSessionExpirationModal-DQBxk3nF.cjs → CashierSessionExpirationModal-CeGlJ6-1.cjs} +2 -2
  30. package/components/{CashierSessionExpirationModal-DT7l33oM.js → CashierSessionExpirationModal-FGz_M2t-.js} +55 -46
  31. package/components/{CashierSpinner-y6HodxHT.js → CashierSpinner-CW0tb4Ek.js} +14 -14
  32. package/components/{CashierSpinner-BAfTKICK.js → CashierSpinner-CnPYs9vs.js} +17 -17
  33. package/components/{CashierTransactionHistory-75SCP1rv.cjs → CashierTransactionHistory-BlFQrW3i.cjs} +1 -1
  34. package/components/{CashierTransactionHistory-DxaRw8iZ.js → CashierTransactionHistory-O_qcBjOW.js} +82 -82
  35. package/components/{CashierTransactionHistory-CfdEK8dI.js → CashierTransactionHistory-uaJLF9xZ.js} +95 -95
  36. package/components/{CashierVerifications-Bt9z1qXM.js → CashierVerifications-ByXxafXw.js} +47 -47
  37. package/components/{CashierVerifications-BTorcj-t.cjs → CashierVerifications-C1qMSpvx.cjs} +1 -1
  38. package/components/{CashierVerifications-BvPWg9O1.js → CashierVerifications-DP4ipiwr.js} +137 -137
  39. package/components/{CashierVideoModal-DHNu0BQz.js → CashierVideoModal-D5QKr-_P.js} +38 -38
  40. package/components/{CashierVideoModal-CVDvqrcy.js → CashierVideoModal-onqH-Fiw.js} +39 -39
  41. package/es2015/cashier-page.cjs +1 -1
  42. package/es2015/cashier-page.js +1 -1
  43. package/esnext/cashier-page.js +1 -1
  44. package/package.json +1 -1
  45. package/stencil/index-97d17652-BD-QREJe.js +558 -0
  46. package/stencil/index-97d17652-DJqGt8q2.js +542 -0
  47. package/stencil/index-97d17652-tiiCeQFu.cjs +1 -0
  48. package/stencil/{ui-image-DJSOH8ZL.cjs → ui-image-BMiZteNE.cjs} +1 -1
  49. package/stencil/{ui-image-BY8ZO6br.js → ui-image-BW8AeEVd.js} +1 -1
  50. package/stencil/{ui-image-DfVgiF6v.js → ui-image-CX3MBBZL.js} +1 -1
  51. package/stencil/{ui-image-b7b48fe5-BXmf73Ou.js → ui-image-b7b48fe5-2Ir9VtWc.js} +1 -1
  52. package/stencil/{ui-image-b7b48fe5-c0NIgcTj.js → ui-image-b7b48fe5-AJGQkQBu.js} +1 -1
  53. package/stencil/{ui-image-b7b48fe5-DaWM2RbJ.cjs → ui-image-b7b48fe5-pdIH5TBa.cjs} +1 -1
  54. package/stencil/{ui-image_2-Cdo33umq.cjs → ui-image_2-BGf0VFLf.cjs} +1 -1
  55. package/stencil/{ui-image_2-L-CYescb.js → ui-image_2-Dh5Eqdlm.js} +2 -2
  56. package/stencil/{ui-image_2-DbQ7SENq.js → ui-image_2-_K8Pt3w9.js} +2 -2
  57. package/stencil/index-97d17652-B0NIExnR.js +0 -558
  58. package/stencil/index-97d17652-D6HPqRtr.js +0 -542
  59. package/stencil/index-97d17652-DNpK20ur.cjs +0 -1
@@ -1,6 +1,6 @@
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";
1
+ import { S as Oe, b as Me, f as y, c as Be, a as Le, d as xe, g as w, j as V, I as T, k as D, n as J, v as C, w as X, K as Q, h as A, E as b, M as qe, l as k, A as H, y as Fe, z as ze, C as Ie } from "./CashierConfirmModal-CV61pzu0.js";
2
+ import { a as Ee, i as Re, $ as Ue, b as He } from "./CashierError-ePGalbvr.js";
3
+ import { d as $, u as je, x as Ne } from "./CashierMethodDetails-DrHlWgeS.js";
4
4
  function ee(t, i) {
5
5
  Ee(t, i);
6
6
  }
@@ -67,44 +67,44 @@ const ie = {
67
67
  };
68
68
  if (typeof window < "u") {
69
69
  let t = function(i) {
70
- return function(...o) {
70
+ return function(...r) {
71
71
  try {
72
- return i.apply(this, o);
73
- } catch (n) {
74
- if (n instanceof DOMException && n.message.includes("has already been used with this registry") || n.message.includes("Cannot define multiple custom elements with the same tag name"))
72
+ return i.apply(this, r);
73
+ } catch (s) {
74
+ if (s instanceof DOMException && s.message.includes("has already been used with this registry") || s.message.includes("Cannot define multiple custom elements with the same tag name"))
75
75
  return !1;
76
- throw n;
76
+ throw s;
77
77
  }
78
78
  };
79
79
  };
80
- customElements.define = t(customElements.define), import("./CashierVideoModal-CVDvqrcy.js").then(({ default: i }) => {
80
+ customElements.define = t(customElements.define), import("./CashierVideoModal-D5QKr-_P.js").then(({ default: i }) => {
81
81
  !customElements.get("cashier-video-modal") && customElements.define("cashier-video-modal", i.element);
82
82
  });
83
83
  }
84
84
  function 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)}");
85
+ xe(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 te(t, i, o) {
88
- const n = t.slice();
89
- return n[53] = i[o], n[55] = o, n;
87
+ function te(t, i, r) {
88
+ const s = t.slice();
89
+ return s[53] = i[r], s[55] = r, s;
90
90
  }
91
- function oe(t) {
92
- let i, o, n, c, d = Q(
91
+ function re(t) {
92
+ let i, r, s, 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] = se(te(t, d, a));
97
+ f[a] = ne(te(t, d, a));
98
98
  let h = (
99
99
  /*videoExists*/
100
- t[7] && ne(t)
100
+ t[7] && se(t)
101
101
  );
102
102
  return {
103
103
  c() {
104
104
  i = w("div");
105
105
  for (let a = 0; a < f.length; a += 1)
106
106
  f[a].c();
107
- o = A(), h && h.c(), n = A(), c = w("cashier-video-modal"), V(i, "class", "CashierVerificationsWrapper"), b(
107
+ r = A(), h && h.c(), s = A(), c = w("cashier-video-modal"), V(i, "class", "CashierVerificationsWrapper"), b(
108
108
  c,
109
109
  "clientstylingurl",
110
110
  /*clientstylingurl*/
@@ -127,10 +127,10 @@ function oe(t) {
127
127
  );
128
128
  },
129
129
  m(a, u) {
130
- C(a, i, u);
131
- for (let s = 0; s < f.length; s += 1)
132
- f[s] && f[s].m(i, null);
133
- C(a, o, u), h && h.m(a, u), C(a, n, u), C(a, c, u);
130
+ D(a, i, u);
131
+ for (let n = 0; n < f.length; n += 1)
132
+ f[n] && f[n].m(i, null);
133
+ D(a, r, u), h && h.m(a, u), D(a, s, u), D(a, c, u);
134
134
  },
135
135
  p(a, u) {
136
136
  if (u[0] & /*allVerificationsVisible, showAllVerifications, displayMessages*/
@@ -139,17 +139,17 @@ function oe(t) {
139
139
  /*displayMessages*/
140
140
  a[4]
141
141
  );
142
- let s;
143
- for (s = 0; s < d.length; s += 1) {
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));
142
+ let n;
143
+ for (n = 0; n < d.length; n += 1) {
144
+ const P = te(a, d, n);
145
+ f[n] ? f[n].p(P, u) : (f[n] = ne(P), f[n].c(), f[n].m(i, null));
146
146
  }
147
- for (; s < f.length; s += 1)
148
- f[s].d(1);
147
+ for (; n < f.length; n += 1)
148
+ f[n].d(1);
149
149
  f.length = d.length;
150
150
  }
151
151
  /*videoExists*/
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*/
152
+ a[7] ? h ? h.p(a, u) : (h = se(a), h.c(), h.m(s.parentNode, s)) : h && (h.d(1), h = null), u[0] & /*clientstylingurl*/
153
153
  2 && b(
154
154
  c,
155
155
  "clientstylingurl",
@@ -176,12 +176,12 @@ function oe(t) {
176
176
  );
177
177
  },
178
178
  d(a) {
179
- a && (D(i), D(o), D(n), D(c)), xe(f, a), h && h.d(a);
179
+ a && (C(i), C(r), C(s), C(c)), qe(f, a), h && h.d(a);
180
180
  }
181
181
  };
182
182
  }
183
- function re(t) {
184
- let i, o, n;
183
+ function oe(t) {
184
+ let i, r, s;
185
185
  function c(...d) {
186
186
  return (
187
187
  /*click_handler*/
@@ -197,24 +197,24 @@ function re(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 = H(i, "click", c), o = !0);
200
+ D(d, i, f), r || (s = H(i, "click", c), r = !0);
201
201
  },
202
202
  p(d, f) {
203
203
  t = d;
204
204
  },
205
205
  d(d) {
206
- d && D(i), o = !1, n();
206
+ d && C(i), r = !1, s();
207
207
  }
208
208
  };
209
209
  }
210
- function se(t) {
211
- let i, o, n, c, d = (
210
+ function ne(t) {
211
+ let i, r, s, c, d = (
212
212
  /*message*/
213
213
  t[53] + ""
214
- ), f, h, a, u, s = (
214
+ ), f, h, a, u, n = (
215
215
  /*displayMessages*/
216
216
  t[4].length > 1 && /*index*/
217
- t[55] === 0 && re(t)
217
+ t[55] === 0 && oe(t)
218
218
  );
219
219
  function P(...p) {
220
220
  return (
@@ -228,7 +228,7 @@ function se(t) {
228
228
  }
229
229
  return {
230
230
  c() {
231
- i = w("div"), o = w("div"), o.innerHTML = '<svg width="64px" height="64px" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" stroke="#ffffff"><g id="SVGRepo_bgCarrier" stroke-width="0"></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"></g><g id="SVGRepo_iconCarrier"><path d="M4.39254 16.2614C2.64803 13.1941 1.66074 9.71783 1.51646 6.15051C1.50127 5.77507 1.70918 5.42812 2.04153 5.25282L11.5335 0.246091C11.8254 0.0920859 12.1746 0.0920859 12.4665 0.246091L21.9585 5.25282C22.2908 5.42812 22.4987 5.77507 22.4835 6.15051C22.3393 9.71783 21.352 13.1941 19.6075 16.2614C17.8618 19.3307 15.4169 21.8869 12.4986 23.7001C12.1931 23.8899 11.8069 23.8899 11.5014 23.7001C8.58313 21.8869 6.13817 19.3307 4.39254 16.2614Z" fill="#fa9200"></path><path d="M8.25 12.75L11.25 15L17.25 9" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path></g></svg>', n = A(), c = w("p"), f = A(), s && s.c(), h = A(), V(o, "class", "IconVerification"), V(c, "class", "text"), V(i, "class", "CashierVerificationMessage"), T(
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"), f = A(), n && n.c(), h = A(), V(r, "class", "IconVerification"), V(c, "class", "text"), V(i, "class", "CashierVerificationMessage"), T(
232
232
  i,
233
233
  "ShowAll",
234
234
  /*allVerificationsVisible*/
@@ -236,14 +236,14 @@ function se(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 = H(i, "click", P), a = !0);
239
+ D(p, i, g), k(i, r), k(i, s), k(i, c), c.innerHTML = d, k(i, f), n && n.m(i, null), k(i, h), a || (u = 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
244
  t[53] + "") && (c.innerHTML = d), /*displayMessages*/
245
245
  t[4].length > 1 && /*index*/
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*/
246
+ t[55] === 0 ? n ? n.p(t, g) : (n = oe(t), n.c(), n.m(i, h)) : n && (n.d(1), n = null), g[0] & /*allVerificationsVisible*/
247
247
  32 && T(
248
248
  i,
249
249
  "ShowAll",
@@ -252,36 +252,36 @@ function se(t) {
252
252
  );
253
253
  },
254
254
  d(p) {
255
- p && D(i), s && s.d(), a = !1, u();
255
+ p && C(i), n && n.d(), a = !1, u();
256
256
  }
257
257
  };
258
258
  }
259
- function ne(t) {
260
- let i, o, n, c, d = (
259
+ function se(t) {
260
+ let i, r, s, 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 = ze(d), V(o, "class", "IconVideo"), V(c, "class", "CashierVerificationVideoLink"), T(
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"), f = Fe(d), V(r, "class", "IconVideo"), V(c, "class", "CashierVerificationVideoLink"), T(
267
267
  c,
268
268
  "CashierVerificationVideoLinkDesktop",
269
269
  /*desktopView*/
270
270
  t[6]
271
271
  ), V(i, "class", "CashierVerificationVideo");
272
272
  },
273
- m(u, s) {
274
- C(u, i, s), k(i, o), k(i, n), k(i, c), k(c, f), h || (a = H(
273
+ m(u, n) {
274
+ D(u, i, n), k(i, r), k(i, s), k(i, c), k(c, f), h || (a = H(
275
275
  c,
276
276
  "click",
277
277
  /*click_handler_2*/
278
278
  t[21]
279
279
  ), h = !0);
280
280
  },
281
- p(u, s) {
282
- s[0] & /*$_*/
281
+ p(u, n) {
282
+ n[0] & /*$_*/
283
283
  512 && d !== (d = /*$_*/
284
- u[9]("verification.video.how-to") + "") && Fe(f, d), s[0] & /*desktopView*/
284
+ u[9]("verification.video.how-to") + "") && ze(f, d), n[0] & /*desktopView*/
285
285
  64 && T(
286
286
  c,
287
287
  "CashierVerificationVideoLinkDesktop",
@@ -290,49 +290,49 @@ function ne(t) {
290
290
  );
291
291
  },
292
292
  d(u) {
293
- u && D(i), h = !1, a();
293
+ u && C(i), h = !1, a();
294
294
  }
295
295
  };
296
296
  }
297
297
  function Ye(t) {
298
- let i, o = (
298
+ let i, r = (
299
299
  /*displayMessages*/
300
- t[4] && oe(t)
300
+ t[4] && re(t)
301
301
  );
302
302
  return {
303
303
  c() {
304
- i = w("div"), o && o.c(), V(i, "class", "CashierVerifications"), T(
304
+ i = w("div"), r && r.c(), V(i, "class", "CashierVerifications"), T(
305
305
  i,
306
306
  "CashierVerificationsDesktop",
307
307
  /*desktopView*/
308
308
  t[6]
309
309
  );
310
310
  },
311
- m(n, c) {
312
- C(n, i, c), o && o.m(i, null), t[22](i);
311
+ m(s, c) {
312
+ D(s, i, c), r && r.m(i, null), t[22](i);
313
313
  },
314
- p(n, c) {
314
+ p(s, c) {
315
315
  /*displayMessages*/
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*/
316
+ s[4] ? r ? r.p(s, c) : (r = re(s), r.c(), r.m(i, null)) : r && (r.d(1), r = null), c[0] & /*desktopView*/
317
317
  64 && T(
318
318
  i,
319
319
  "CashierVerificationsDesktop",
320
320
  /*desktopView*/
321
- n[6]
321
+ s[6]
322
322
  );
323
323
  },
324
- i: Z,
325
- o: Z,
326
- d(n) {
327
- n && D(i), o && o.d(), t[22](null);
324
+ i: J,
325
+ o: J,
326
+ d(s) {
327
+ s && C(i), r && r.d(), t[22](null);
328
328
  }
329
329
  };
330
330
  }
331
331
  const Ge = "verification_explanation_video_widgets.MP4";
332
- function Je(t, i, o) {
333
- let n, c;
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 = "";
332
+ function Ze(t, i, r) {
333
+ let s, c;
334
+ X(t, He, (e) => r(9, s = e)), X(t, Ne, (e) => r(28, c = e)), $.extend(je);
335
+ let { endpoint: d } = i, { lang: f = "en" } = i, { translationurl: h = "" } = i, { clientstyling: a = "" } = i, { clientstylingurl: u = "" } = i, { session: n = "" } = i, { customerid: P = "" } = i, { ismobileview: p = "" } = i, { playersession: g = "" } = i, S, j = /* @__PURE__ */ new Set(), N = /* @__PURE__ */ new Set(), B, 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,10 +345,10 @@ function Je(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 B;
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 ae = [
353
353
  m.InProgress,
354
354
  m.Referred,
@@ -356,12 +356,12 @@ function Je(t, i, o) {
356
356
  ], le = () => {
357
357
  let e = h;
358
358
  if (e)
359
- return fetch(e).then((r) => r.json()).then((r) => {
360
- Object.keys(r).forEach((l) => {
361
- ee(l, r[l]);
359
+ return fetch(e).then((o) => o.json()).then((o) => {
360
+ Object.keys(o).forEach((l) => {
361
+ ee(l, o[l]);
362
362
  });
363
- }).catch((r) => {
364
- console.log(r);
363
+ }).catch((o) => {
364
+ console.log(o);
365
365
  });
366
366
  };
367
367
  Object.keys(ie).forEach((e) => {
@@ -373,37 +373,37 @@ function Je(t, i, o) {
373
373
  let e = document.createElement("style");
374
374
  e.innerHTML = a, S.appendChild(e);
375
375
  }, de = () => {
376
- let e = new URL(u), r = document.createElement("style");
376
+ let e = new URL(u), o = document.createElement("style");
377
377
  fetch(e.href).then((l) => l.text()).then((l) => {
378
- r.innerHTML = l, setTimeout(
378
+ o.innerHTML = l, setTimeout(
379
379
  () => {
380
- S.appendChild(r);
380
+ S.appendChild(o);
381
381
  },
382
382
  1
383
383
  );
384
384
  });
385
385
  }, K = () => {
386
- o(18, L = me());
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", $.utc().format("YYYY-MM-DD HH:mm:ss.SSS"));
386
+ r(18, L = me());
387
+ const e = new URL(`${d}/v1/player/${P}/verification/GetKYCCustomerStatus?language=${f}`), o = new Headers();
388
+ o.append("accept", "application/json"), o.append("Content-Type", "application/json"), o.append("x-sessionid", `${g}`), o.append("X-Client-Request-Timestamp", $.utc().format("YYYY-MM-DD HH:mm:ss.SSS"));
389
389
  const l = {
390
390
  method: "POST",
391
- headers: r,
391
+ headers: o,
392
392
  body: JSON.stringify({})
393
393
  };
394
394
  fetch(e, l).then((v) => v.json()).then((v) => {
395
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());
396
+ B = pe(U), B.VerificationStatuses.forEach((x) => {
397
+ x.VerificationUrlType !== "Widget" && j.add(x.Vendor);
398
+ }), r(4, q = G());
399
399
  });
400
- }, ue = (e) => e ? e.sort((r, l) => new Date(l.Created).getTime() - new Date(r.Created).getTime()) : [], he = () => {
400
+ }, ue = (e) => e ? e.sort((o, l) => new Date(l.Created).getTime() - new Date(o.Created).getTime()) : [], he = () => {
401
401
  c && K();
402
402
  }, me = () => {
403
- let e = (s || c).split(".")[1];
403
+ let e = (n || c).split(".")[1];
404
404
  if (e) {
405
- let r = JSON.parse(atob(e));
406
- return r.cdn + "/cashier/operator-assets/" + r?.mid;
405
+ let o = JSON.parse(atob(e));
406
+ return o.cdn + "/cashier/operator-assets/" + o?.mid;
407
407
  }
408
408
  return "";
409
409
  }, pe = (e) => {
@@ -412,13 +412,13 @@ function Je(t, i, o) {
412
412
  VerificationSummaryStatus: m.Unverified,
413
413
  VerificationStatuses: []
414
414
  };
415
- const r = ve(e);
416
- if (r && r.length) {
417
- const l = ge(r);
415
+ const o = ve(e);
416
+ if (o && o.length) {
417
+ const l = ge(o);
418
418
  return {
419
419
  VerificationSummaryStatus: l.Status,
420
420
  VerificationUrl: l.Flags?.DeferredUrlKey,
421
- VerificationStatuses: Y(r, l.Status)
421
+ VerificationStatuses: Y(o, l.Status)
422
422
  };
423
423
  } else
424
424
  return {
@@ -426,85 +426,85 @@ function Je(t, i, o) {
426
426
  VerificationStatuses: Y(e, [m.Failed])
427
427
  };
428
428
  }, ge = (e) => e.reduce(
429
- (r, l) => r ? new Date(r) < new Date(l) ? l : r : l,
429
+ (o, l) => o ? new Date(o) < new Date(l) ? l : o : l,
430
430
  0
431
- ), Y = (e, r) => e.filter((l) => r.includes(l.Status)).map((l) => ({
431
+ ), Y = (e, o) => e.filter((l) => o.includes(l.Status)).map((l) => ({
432
432
  Type: l.Type,
433
433
  Vendor: l.VendorName,
434
434
  VerificationDocuments: l.Documents ? [...l.Documents] : [],
435
435
  VerificationUrlType: l.FlowInfo?.Type,
436
436
  VerificationUrl: l.FlowInfo?.Url
437
- })), ve = (e) => e.filter((r) => ae.includes(r.Status) ? r.FlowInfo && r.FlowInfo.Url || we(r) || ye(r) : !1), we = (e) => {
438
- const r = e.Documents && e.VendorName === O.Manual, l = e.Documents && e.Documents.some((v) => v.Status === E.Requested);
439
- return r && l;
437
+ })), ve = (e) => e.filter((o) => ae.includes(o.Status) ? o.FlowInfo && o.FlowInfo.Url || we(o) || ye(o) : !1), we = (e) => {
438
+ const o = e.Documents && e.VendorName === O.Manual, l = e.Documents && e.Documents.some((v) => v.Status === E.Requested);
439
+ return o && l;
440
440
  }, ye = (e) => e.VendorName === O.ShuftiPro && e.Status === m.Referred, G = () => {
441
- switch (M.VerificationSummaryStatus) {
441
+ switch (B.VerificationSummaryStatus) {
442
442
  case m.InProgress:
443
443
  const e = [];
444
- return N.forEach((r) => {
445
- e.push(ke(r));
444
+ return j.forEach((o) => {
445
+ e.push(ke(o));
446
446
  }), e;
447
447
  case m.Referred:
448
- return [n("verification.idenfy.referred-awaiting")];
448
+ return [s("verification.idenfy.referred-awaiting")];
449
449
  case m.Failed:
450
- return [n("verification.message.failed")];
450
+ return [s("verification.message.failed")];
451
451
  }
452
452
  }, ke = (e) => {
453
- const r = M.VerificationStatuses.filter((l) => l.Vendor === e);
453
+ const o = B.VerificationStatuses.filter((l) => l.Vendor === e);
454
454
  if (e === O.ShuftiPro)
455
- return Ve(r);
455
+ return Ve(o);
456
456
  {
457
- const l = n("verification.idenfy.link-name"), v = {
458
- link: `<a href="${r[0].VerificationUrl}" target="_blank">${l}</a>`
457
+ const l = s("verification.idenfy.link-name"), v = {
458
+ link: `<a href="${o[0].VerificationUrl}" target="_blank">${l}</a>`
459
459
  };
460
- return n("verification.idenfy.in-progress", { values: v });
460
+ return s("verification.idenfy.in-progress", { values: v });
461
461
  }
462
462
  }, Ve = (e) => {
463
- const r = [], l = {}, v = [
464
- B.Biometric,
465
- B.Documents,
466
- B.ProofOfAddress
463
+ const o = [], l = {}, v = [
464
+ M.Biometric,
465
+ M.Documents,
466
+ M.ProofOfAddress
467
467
  ];
468
468
  e.forEach((_) => {
469
- v.includes(_.Type) && (r.push(_.Type), l[_.Type] = Pe(_, be(_.Type)));
469
+ v.includes(_.Type) && (o.push(_.Type), l[_.Type] = Pe(_, be(_.Type)));
470
470
  });
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) => {
471
+ let U = o.every((_) => N.has(_)), x = `verification.shuftipro.in-progress.${o.sort().join(".")}`;
472
+ return U ? s("verification.shuftipro.validations-started") : s(x, { values: l });
473
+ }, Pe = (e, o) => `<a class="verificationLink ${e.Type}" href=" ${e.VerificationUrl} " target="_blank">${o}</a>`, be = (e) => s(`verification.shuftipro.link-name.${e}`), R = (e, o) => {
474
474
  if (e.stopPropagation(), e.target && (e.target.href || e.target.closest("a"))) {
475
475
  if (e.target.closest(".verificationLink")) {
476
476
  const l = e.target.className.split(" ")[1];
477
- j.add(l), o(4, q = G());
477
+ N.add(l), r(4, q = G());
478
478
  }
479
479
  return;
480
480
  }
481
- r === 0 && o(5, F = !F);
481
+ o === 0 && r(5, F = !F);
482
482
  }, De = () => {
483
- o(6, W = p === "false");
483
+ r(6, W = p === "false");
484
484
  }, Ce = () => {
485
- o(8, I = L + "/" + f + "/" + Ge);
485
+ r(8, I = L + "/" + f + "/" + Ge);
486
486
  try {
487
487
  fetch(I, { method: "HEAD" }).then((e) => {
488
- o(7, z = e.ok);
488
+ r(7, z = e.ok);
489
489
  });
490
490
  } catch {
491
- o(7, z = !1);
491
+ r(7, z = !1);
492
492
  }
493
- }, J = () => {
493
+ }, Z = () => {
494
494
  window.postMessage({ type: "ShowCashierVideoModal" }, window.location.href);
495
- }, Se = (e, r) => R(r, e), _e = (e, r) => R(r, e), Ae = () => J();
495
+ }, Se = (e, o) => R(o, e), _e = (e, o) => R(o, e), Ae = () => Z();
496
496
  function Te(e) {
497
- qe[e ? "unshift" : "push"](() => {
498
- S = e, o(3, S);
497
+ Ie[e ? "unshift" : "push"](() => {
498
+ S = e, r(3, S);
499
499
  });
500
500
  }
501
501
  return t.$$set = (e) => {
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
+ "endpoint" in e && r(12, d = e.endpoint), "lang" in e && r(13, f = e.lang), "translationurl" in e && r(14, h = e.translationurl), "clientstyling" in e && r(0, a = e.clientstyling), "clientstylingurl" in e && r(1, u = e.clientstylingurl), "session" in e && r(15, n = e.session), "customerid" in e && r(16, P = e.customerid), "ismobileview" in e && r(2, p = e.ismobileview), "playersession" in e && r(17, g = e.playersession);
503
503
  }, t.$$.update = () => {
504
504
  t.$$.dirty[0] & /*lang*/
505
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*/
506
+ 167936 && d && n && g && K(), t.$$.dirty[0] & /*endpoint, session, playersession*/
507
+ 167936 && d && !n && g && he(), t.$$.dirty[0] & /*translationurl*/
508
508
  16384 && h && le(), t.$$.dirty[0] & /*clientstyling, customStylingContainer*/
509
509
  9 && a && S && fe(), t.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
510
510
  10 && u && S && de(), t.$$.dirty[0] & /*ismobileview*/
@@ -520,13 +520,13 @@ function Je(t, i, o) {
520
520
  W,
521
521
  z,
522
522
  I,
523
- n,
523
+ s,
524
524
  R,
525
- J,
525
+ Z,
526
526
  d,
527
527
  f,
528
528
  h,
529
- s,
529
+ n,
530
530
  P,
531
531
  g,
532
532
  L,
@@ -536,14 +536,14 @@ function Je(t, i, o) {
536
536
  Te
537
537
  ];
538
538
  }
539
- class Ze extends Oe {
539
+ class Je extends Oe {
540
540
  constructor(i) {
541
- super(), Be(
541
+ super(), Me(
542
542
  this,
543
543
  i,
544
- Je,
544
+ Ze,
545
545
  Ye,
546
- Me,
546
+ Le,
547
547
  {
548
548
  endpoint: 12,
549
549
  lang: 13,
@@ -614,7 +614,7 @@ class Ze extends Oe {
614
614
  this.$$set({ playersession: i }), y();
615
615
  }
616
616
  }
617
- Ie(Ze, { endpoint: {}, lang: {}, translationurl: {}, clientstyling: {}, clientstylingurl: {}, session: {}, customerid: {}, ismobileview: {}, playersession: {} }, [], [], !0);
617
+ Be(Je, { endpoint: {}, lang: {}, translationurl: {}, clientstyling: {}, clientstylingurl: {}, session: {}, customerid: {}, ismobileview: {}, playersession: {} }, [], [], !0);
618
618
  export {
619
- Ze as default
619
+ Je as default
620
620
  };