@everymatrix/cashier-page 1.55.0 → 1.56.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 (51) hide show
  1. package/components/CashierConfirmModal-B_XfWSC2.cjs +4 -0
  2. package/components/{CashierConfirmModal-Bho8FqJK.js → CashierConfirmModal-CnmhfysD.js} +520 -440
  3. package/components/CashierConfirmModal-DjJI47WY.js +1095 -0
  4. package/components/{CashierError-R8ZhIjyI.js → CashierError-BhW9Bd5u.js} +340 -342
  5. package/components/{CashierError-B6UnQRtt.js → CashierError-CcFXZ705.js} +340 -342
  6. package/components/{CashierError-Dj9dAyT_.cjs → CashierError-wHAQP3_C.cjs} +3 -3
  7. package/components/{CashierHeader-Ckcwhr6m.cjs → CashierHeader-BKrGT2Ae.cjs} +1 -1
  8. package/components/{CashierHeader-siQceHGX.js → CashierHeader-BUMem-fU.js} +44 -44
  9. package/components/{CashierHeader-CGdNSxx6.js → CashierHeader-B_qUwnRz.js} +42 -42
  10. package/components/{CashierIframeRedirect-C7zvMq6i.cjs → CashierIframeRedirect-BDIr-k4X.cjs} +1 -1
  11. package/components/{CashierIframeRedirect-Cf280zGs.js → CashierIframeRedirect-DK3-V6GJ.js} +33 -33
  12. package/components/{CashierIframeRedirect-BJdtHTt_.js → CashierIframeRedirect-DiWIODGM.js} +32 -32
  13. package/components/{CashierMethodDetails-0n7uERIs.js → CashierMethodDetails-B5Y9sYOg.js} +693 -689
  14. package/components/{CashierMethodDetails-Bh0qCR4w.js → CashierMethodDetails-C-KT1A-h.js} +708 -704
  15. package/components/{CashierMethodDetails-Bs5PGaZC.cjs → CashierMethodDetails-D8AGMiCO.cjs} +3 -3
  16. package/components/{CashierMethodsList-DIGc9AUv.js → CashierMethodsList-CbNajSX5.js} +89 -89
  17. package/components/{CashierMethodsList-C8rrtr0q.cjs → CashierMethodsList-DCPVijk5.cjs} +1 -1
  18. package/components/{CashierMethodsList-CNZycJM8.js → CashierMethodsList-Q3OYWKGV.js} +100 -100
  19. package/components/{CashierModal-FkJdngyj.cjs → CashierModal-B9SMcvPJ.cjs} +1 -1
  20. package/components/{CashierModal-_JYkOwJz.js → CashierModal-BQ75P20m.js} +37 -37
  21. package/components/{CashierModal-XEf2DPsH.js → CashierModal-DoTNxAOf.js} +31 -31
  22. package/components/{CashierNotifications-Dx7SHS2Y.js → CashierNotifications-BdcWgN-t.js} +18 -18
  23. package/components/{CashierNotifications-BJzRxOV_.cjs → CashierNotifications-C5qqk3s5.cjs} +1 -1
  24. package/components/{CashierNotifications-n-WNsBs_.js → CashierNotifications-DVCfwUo9.js} +19 -19
  25. package/components/{CashierPage-Z3s-AE-W.js → CashierPage-BGaDrX6p.js} +920 -776
  26. package/components/{CashierPage-HjIA5R5P.cjs → CashierPage-C67H_0uR.cjs} +1 -1
  27. package/components/{CashierPage-CUsOGi4E.js → CashierPage-Ckv_ecQa.js} +920 -776
  28. package/components/{CashierReceiptPage-CS5M5RZ6.js → CashierReceiptPage-B6Ot4u-u.js} +76 -76
  29. package/components/{CashierReceiptPage-DzQqg8nv.js → CashierReceiptPage-Cjz4isz4.js} +76 -76
  30. package/components/{CashierReceiptPage-DZyFyBqS.cjs → CashierReceiptPage-bBNHsfW5.cjs} +1 -1
  31. package/components/{CashierSessionExpirationModal-CXDh6poB.js → CashierSessionExpirationModal-8p7dxVmt.js} +47 -56
  32. package/components/{CashierSessionExpirationModal-CdyR3b34.cjs → CashierSessionExpirationModal-CWKlvhPF.cjs} +2 -2
  33. package/components/{CashierSessionExpirationModal-CBmx5SD7.js → CashierSessionExpirationModal-CbrAJQvx.js} +47 -56
  34. package/components/{CashierSpinner-CwTAvuPD.js → CashierSpinner-Cv-DKF1H.js} +26 -26
  35. package/components/{CashierSpinner-CySOWnIQ.cjs → CashierSpinner-CxYzgF3b.cjs} +1 -1
  36. package/components/{CashierSpinner-CQi2Ol7j.js → CashierSpinner-Y3YCsQEf.js} +25 -25
  37. package/components/CashierTransactionHistory-DRX91Hoc.cjs +1 -0
  38. package/components/CashierTransactionHistory-DmVVMYYd.js +567 -0
  39. package/components/CashierTransactionHistory-SjIsxvK5.js +567 -0
  40. package/components/{CashierVerifications-Dj7MJocZ.js → CashierVerifications-Cqc-k576.js} +72 -72
  41. package/components/{CashierVerifications-oj-eHRhw.cjs → CashierVerifications-D-3Ycigl.cjs} +1 -1
  42. package/components/{CashierVerifications-C1NppS_0.js → CashierVerifications-DL2hsNCJ.js} +26 -26
  43. package/components/{CashierVideoModal-BWI2U3UH.cjs → CashierVideoModal-CBBnFyqd.cjs} +1 -1
  44. package/components/{CashierVideoModal-CgS8X4Od.js → CashierVideoModal-DkujQ3WY.js} +33 -33
  45. package/components/{CashierVideoModal-C8etvcxP.js → CashierVideoModal-YsTJSZa7.js} +37 -37
  46. package/es2015/cashier-page.cjs +1 -1
  47. package/es2015/cashier-page.js +1 -1
  48. package/esnext/cashier-page.js +1 -1
  49. package/package.json +1 -1
  50. package/components/CashierConfirmModal-KmRU3Mgr.cjs +0 -4
  51. package/components/CashierConfirmModal-h87-4Uqk.js +0 -1015
@@ -1,27 +1,27 @@
1
1
  var Pe = Object.defineProperty, Ne = Object.defineProperties;
2
2
  var ze = Object.getOwnPropertyDescriptors;
3
3
  var oe = Object.getOwnPropertySymbols;
4
- var De = Object.prototype.hasOwnProperty, Fe = Object.prototype.propertyIsEnumerable;
4
+ var De = Object.prototype.hasOwnProperty, He = Object.prototype.propertyIsEnumerable;
5
5
  var re = (t, e, s) => e in t ? Pe(t, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : t[e] = s, ee = (t, e) => {
6
6
  for (var s in e || (e = {}))
7
7
  De.call(e, s) && re(t, s, e[s]);
8
8
  if (oe)
9
9
  for (var s of oe(e))
10
- Fe.call(e, s) && re(t, s, e[s]);
10
+ He.call(e, s) && re(t, s, e[s]);
11
11
  return t;
12
12
  }, te = (t, e) => Ne(t, ze(e));
13
- import { S as He, b as We, f as S, c as je, a as Oe, d as Ue, h as _, x as Re, k as z, n as ae, v as D, w as Be, Q as Ie, G as Ge, g as b, E as v, K as me, j as y, l as d, M as Ve, y as x, D as ce, I as Z, A as se, z as T, r as qe, C as Ye } from "./CashierConfirmModal-Bho8FqJK.js";
14
- import { a as Je, i as Xe, $ as Ke, b as Qe } from "./CashierError-B6UnQRtt.js";
15
- import { d as de, u as Ze } from "./CashierMethodDetails-Bh0qCR4w.js";
13
+ import { S as Fe, b as We, s as Oe, f as S, c as Ue, n as ae, e as z, m as D, q as _, x as je, w as Re, Q as Be, H as Ie, E as v, p as b, K as me, L as Ge, o as d, v as y, y as x, z as T, A as Ve, r as qe, C as ce, J as Z, B as se, D as Je } from "./CashierConfirmModal-CnmhfysD.js";
14
+ import { a as Ye, i as Xe, $ as Ke, b as Qe } from "./CashierError-CcFXZ705.js";
15
+ import { d as de, u as Ze } from "./CashierMethodDetails-C-KT1A-h.js";
16
16
  function ue(t, e) {
17
- Je(t, e);
17
+ Ye(t, e);
18
18
  }
19
19
  function $e(t) {
20
20
  Xe({
21
21
  fallbackLocale: "en"
22
22
  }), Ke.set(t);
23
23
  }
24
- const he = {
24
+ const ge = {
25
25
  en: {
26
26
  generalMin: "Min",
27
27
  generalMax: "Max",
@@ -58,7 +58,7 @@ const he = {
58
58
  function et(t) {
59
59
  Ue(t, "svelte-1wlv0rl", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.CashierMethodList{display:flex;flex-direction:column;background:var(--emw--color-background, #fff);box-shadow:0 0 4px var(--mmw--color-black-transparency-10, rgba(0, 0, 0, 0.1));width:100%;border-radius:var(--mmw--border-radius-medium-plus, 6px);container-name:method-list;container-type:inline-size}.SelectorWrapper{display:flex;flex-direction:row;align-items:center;justify-content:left;cursor:pointer;position:relative;height:var(--mmw-method-height, 80px);box-sizing:border-box;border-bottom:1px solid var(--mmw--color-grey-105, #E8E9EB);padding:0 var(--emw--spacing-small, 12px)}.SelectorWrapper:first-child{border-radius:var(--mmw--border-radius-medium-plus, 6px) var(--mmw--border-radius-medium-plus, 6px) 0 0}.SelectorWrapper:last-child{border-radius:0 0 var(--mmw--border-radius-medium-plus, 6px) var(--mmw--border-radius-medium-plus, 6px)}.SelectorWrapper.checked{background:var(--emw--color-background-secondary, #F9F8F8)}.SelectorWrapper:not(.checked):hover{background:linear-gradient(0, var(--emw--color-background-secondary, #F9F8F8) 0%, var(--emw--color-background, #fff) 100%)}.MethodLogo{display:flex;justify-content:center;align-items:center;margin-right:var(--mmw--spacing-small, 14px);width:var(--mmw-logo-width, 110px);min-height:var(--mmw-logo-height, 64px);background:var(--emw--color-background, #FFF);border:1px solid var(--mmw--color-grey-105, #E8E9EB);border-radius:var(--mmw--border-radius-medium-plus, 6px);overflow:hidden;max-height:calc(100% - var(--emw--spacing-small, 12px) - var(--emw--spacing-small, 12px))}.MethodLogo img{width:100%;height:100%}.MethodTitle{color:var(--mmw--color-grey-10, #111);font-size:var(--emw--font-size-medium, 16px);word-break:break-all}.MethodLimits{display:flex;flex-direction:column;align-items:flex-end;margin-left:auto}.Limits{max-width:100%;white-space:nowrap;font-size:var(--emw--font-size-small, 14px);line-height:var(--emw--line-height-xl, 24px);color:var(--mmw--color-grey-290, #666);font-weight:var(--emw--font-weight-normal, 400);font-style:normal}.EmptyContentMessageWrapper{display:flex;flex-direction:column;box-sizing:border-box;background:var(--emw--color-gray-50, #F7F8FA);border-bottom:1px solid var(--mmw--color-grey-105, #E8E9EB);padding:var(--emw--spacing-small, 12px);max-height:500px}.EmptyContentMessageHeader{display:flex;gap:4px;align-items:end}.EmptyContentMessageTitle{font-size:var(--emw--font-size-small, 16px);font-weight:var(--emw--font-weight-semibold, 500);color:var(--emw--color-warning, rgb(250, 146, 0))}.EmptyContentMessageText{word-break:break-word;padding:var(--emw--spacing-small, 12px) calc(var(--emw--spacing-small, 12px) / 2);font-size:var(--emw--font-size-small, 14px)}.EmptyContentMessageDesktop p{font-size:var(--emw--font-size-medium, 16px)}.IconWarning{width:30px;display:flex}.IconWarning svg{height:18px;fill:var(--emw--color-warning, rgb(250, 146, 0))}.ShowAllButton{cursor:pointer;color:var(--mmw--color-grey-290, #666);text-align:center;font-size:var(--emw--font-size-x-small, 12px);font-style:normal;font-weight:var(--emw--font-weight-semibold, 500);font-family:inherit;background:var(--emw--color-gray-50, #F7F8FA);line-height:normal;border:1px solid var(--mmw--color-grey-105, #E8E9EB);border-radius:var(--emw--border-radius-medium, 4px);margin:var(--emw--spacing-small, 12px) auto;height:36px;display:flex;align-items:center;justify-content:center;width:80%}.ShowAllButton:hover{background:var(--emw--color-background, #fff)}@container method-list (width < 450px){.MethodLogo{min-width:var(--mmw-logo-small-width, 90px);min-height:var(--mmw-logo--small-height, 50px);overflow:hidden}.CashierMethodList .MethodTitle{display:inline-block;flex-grow:1;font-size:var(--emw--font-size-medium, 16px);line-height:120%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.CashierMethodList .MethodLimits .Limits{flex-shrink:0;font-size:var(--emw--font-size-x-small, 12px)}}@container method-list (max-width: 300px){.Limits{display:none}}");
60
60
  }
61
- function ge(t, e, s) {
61
+ function he(t, e, s) {
62
62
  const r = t.slice();
63
63
  return r[48] = e[s], r[50] = s, r;
64
64
  }
@@ -79,7 +79,7 @@ function fe(t) {
79
79
  );
80
80
  },
81
81
  m(s, r) {
82
- z(s, e, r);
82
+ D(s, e, r);
83
83
  },
84
84
  p(s, r) {
85
85
  r[0] & /*clientstylingurl*/
@@ -97,7 +97,7 @@ function fe(t) {
97
97
  );
98
98
  },
99
99
  d(s) {
100
- s && D(e);
100
+ s && z(e);
101
101
  }
102
102
  };
103
103
  }
@@ -107,7 +107,7 @@ function pe(t) {
107
107
  t[8]
108
108
  ), o = [];
109
109
  for (let c = 0; c < l.length; c += 1)
110
- o[c] = we(ge(t, l, c));
110
+ o[c] = we(he(t, l, c));
111
111
  let i = (
112
112
  /*noPaymentMethodsAvailable*/
113
113
  t[13] && !/*showSpinner*/
@@ -124,7 +124,7 @@ function pe(t) {
124
124
  r = _(), i && i.c(), a = _(), m && m.c(), y(s, "class", "CashierMethodList"), y(e, "class", "CashierMethodListWidget");
125
125
  },
126
126
  m(c, f) {
127
- z(c, e, f), d(e, s);
127
+ D(c, e, f), d(e, s);
128
128
  for (let u = 0; u < o.length; u += 1)
129
129
  o[u] && o[u].m(s, null);
130
130
  d(s, r), i && i.m(s, null), d(e, a), m && m.m(e, null), t[27](e);
@@ -138,8 +138,8 @@ function pe(t) {
138
138
  );
139
139
  let u;
140
140
  for (u = 0; u < l.length; u += 1) {
141
- const g = ge(c, l, u);
142
- o[u] ? o[u].p(g, f) : (o[u] = we(g), o[u].c(), o[u].m(s, r));
141
+ const h = he(c, l, u);
142
+ o[u] ? o[u].p(h, f) : (o[u] = we(h), o[u].c(), o[u].m(s, r));
143
143
  }
144
144
  for (; u < o.length; u += 1)
145
145
  o[u].d(1);
@@ -151,7 +151,7 @@ function pe(t) {
151
151
  c[7] ? m ? m.p(c, f) : (m = be(c), m.c(), m.m(e, null)) : m && (m.d(1), m = null);
152
152
  },
153
153
  d(c) {
154
- c && D(e), Ve(o, c), i && i.d(), m && m.d(), t[27](null);
154
+ c && z(e), Ge(o, c), i && i.d(), m && m.d(), t[27](null);
155
155
  }
156
156
  };
157
157
  }
@@ -160,22 +160,22 @@ function we(t) {
160
160
  /*payMeth*/
161
161
  (t[48].Label || /*payMeth*/
162
162
  t[48].Name) + ""
163
- ), f, u, g, p, P = (
163
+ ), f, u, h, p, P = (
164
164
  /*$_*/
165
165
  t[14]("generalMin") + ""
166
- ), F, k, C = (
166
+ ), H, k, C = (
167
167
  /*formatter*/
168
168
  t[15].format(
169
169
  /*payMeth*/
170
170
  t[48].DisplayCurrency.MinAmountLimit
171
171
  ) + ""
172
- ), N, H, L = (
172
+ ), N, F, L = (
173
173
  /*payMeth*/
174
174
  t[48].DisplayCurrency.Name + ""
175
- ), W, J, E, j = (
175
+ ), W, Y, E, O = (
176
176
  /*$_*/
177
177
  t[14]("generalMax") + ""
178
- ), O, I, U = (
178
+ ), U, I, j = (
179
179
  /*formatter*/
180
180
  t[15].format(
181
181
  /*payMeth*/
@@ -184,7 +184,7 @@ function we(t) {
184
184
  ), R, X, G = (
185
185
  /*payMeth*/
186
186
  t[48].DisplayCurrency.Name + ""
187
- ), q, Y, K;
187
+ ), q, J, K;
188
188
  function Q() {
189
189
  return (
190
190
  /*click_handler*/
@@ -196,9 +196,9 @@ function we(t) {
196
196
  }
197
197
  return {
198
198
  c() {
199
- e = b("div"), s = b("div"), r = b("img"), o = _(), i = b("div"), m = b("span"), f = x(c), u = _(), g = b("div"), p = b("span"), F = x(P), k = _(), N = x(C), H = _(), W = x(L), J = _(), E = b("span"), O = x(j), I = _(), R = x(U), X = _(), q = x(G), ce(r.src, a = /*payMeth*/
199
+ e = b("div"), s = b("div"), r = b("img"), o = _(), i = b("div"), m = b("span"), f = T(c), u = _(), h = b("div"), p = b("span"), H = T(P), k = _(), N = T(C), F = _(), W = T(L), Y = _(), E = b("span"), U = T(O), I = _(), R = T(j), X = _(), q = T(G), ce(r.src, a = /*payMeth*/
200
200
  t[48].LogoUrl) || y(r, "src", a), y(r, "alt", l = /*payMeth*/
201
- t[48].Label), y(s, "class", "MethodLogo"), y(i, "class", "MethodTitle"), y(p, "class", "Limits"), y(E, "class", "Limits"), y(g, "class", "MethodLimits"), y(e, "class", "SelectorWrapper"), Z(
201
+ t[48].Label), y(s, "class", "MethodLogo"), y(i, "class", "MethodTitle"), y(p, "class", "Limits"), y(E, "class", "Limits"), y(h, "class", "MethodLimits"), y(e, "class", "SelectorWrapper"), Z(
202
202
  e,
203
203
  "checked",
204
204
  /*selectedPaymentMethod*/
@@ -207,10 +207,10 @@ function we(t) {
207
207
  );
208
208
  },
209
209
  m(B, M) {
210
- z(B, e, M), d(e, s), d(s, r), d(e, o), d(e, i), d(i, m), d(m, f), d(e, u), d(e, g), d(g, p), d(p, F), d(p, k), d(p, N), d(p, H), d(p, W), d(g, J), d(g, E), d(E, O), d(E, I), d(E, R), d(E, X), d(E, q), Y || (K = [
210
+ D(B, e, M), d(e, s), d(s, r), d(e, o), d(e, i), d(i, m), d(m, f), d(e, u), d(e, h), d(h, p), d(p, H), d(p, k), d(p, N), d(p, F), d(p, W), d(h, Y), d(h, E), d(E, U), d(E, I), d(E, R), d(E, X), d(E, q), J || (K = [
211
211
  se(e, "click", Q),
212
212
  se(e, "keyup", st)
213
- ], Y = !0);
213
+ ], J = !0);
214
214
  },
215
215
  p(B, M) {
216
216
  t = B, M[0] & /*paymentMethodsToShow*/
@@ -220,25 +220,25 @@ function we(t) {
220
220
  t[48].Label) && y(r, "alt", l), M[0] & /*paymentMethodsToShow*/
221
221
  256 && c !== (c = /*payMeth*/
222
222
  (t[48].Label || /*payMeth*/
223
- t[48].Name) + "") && T(f, c), M[0] & /*$_*/
223
+ t[48].Name) + "") && x(f, c), M[0] & /*$_*/
224
224
  16384 && P !== (P = /*$_*/
225
- t[14]("generalMin") + "") && T(F, P), M[0] & /*paymentMethodsToShow*/
225
+ t[14]("generalMin") + "") && x(H, P), M[0] & /*paymentMethodsToShow*/
226
226
  256 && C !== (C = /*formatter*/
227
227
  t[15].format(
228
228
  /*payMeth*/
229
229
  t[48].DisplayCurrency.MinAmountLimit
230
- ) + "") && T(N, C), M[0] & /*paymentMethodsToShow*/
230
+ ) + "") && x(N, C), M[0] & /*paymentMethodsToShow*/
231
231
  256 && L !== (L = /*payMeth*/
232
- t[48].DisplayCurrency.Name + "") && T(W, L), M[0] & /*$_*/
233
- 16384 && j !== (j = /*$_*/
234
- t[14]("generalMax") + "") && T(O, j), M[0] & /*paymentMethodsToShow*/
235
- 256 && U !== (U = /*formatter*/
232
+ t[48].DisplayCurrency.Name + "") && x(W, L), M[0] & /*$_*/
233
+ 16384 && O !== (O = /*$_*/
234
+ t[14]("generalMax") + "") && x(U, O), M[0] & /*paymentMethodsToShow*/
235
+ 256 && j !== (j = /*formatter*/
236
236
  t[15].format(
237
237
  /*payMeth*/
238
238
  t[48].DisplayCurrency.MaxAmountLimit
239
- ) + "") && T(R, U), M[0] & /*paymentMethodsToShow*/
239
+ ) + "") && x(R, j), M[0] & /*paymentMethodsToShow*/
240
240
  256 && G !== (G = /*payMeth*/
241
- t[48].DisplayCurrency.Name + "") && T(q, G), M[0] & /*selectedPaymentMethod, paymentMethodsToShow*/
241
+ t[48].DisplayCurrency.Name + "") && x(q, G), M[0] & /*selectedPaymentMethod, paymentMethodsToShow*/
242
242
  320 && Z(
243
243
  e,
244
244
  "checked",
@@ -248,7 +248,7 @@ function we(t) {
248
248
  );
249
249
  },
250
250
  d(B) {
251
- B && D(e), Y = !1, qe(K);
251
+ B && z(e), J = !1, qe(K);
252
252
  }
253
253
  };
254
254
  }
@@ -262,31 +262,31 @@ function ye(t) {
262
262
  ), u;
263
263
  return {
264
264
  c() {
265
- e = b("div"), s = b("div"), r = b("div"), r.innerHTML = '<svg fill="currentColor" height="200px" width="200px" version="1.1" id="Capa_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 294.995 294.995" xml:space="preserve" stroke="#fa9200"><g id="SVGRepo_bgCarrier" stroke-width="0"></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"></g><g id="SVGRepo_iconCarrier"><g><path d="M291.874,248.279L165.605,26.526c-4.007-7.037-10.776-11.26-18.107-11.26s-14.101,4.202-18.107,11.239L3.121,248.238 c-3.979,6.989-4.164,15.013-0.493,21.326c3.67,6.313,10.663,10.165,18.705,10.165h252.329c8.042,0,15.035-3.852,18.705-10.165 C296.038,263.251,295.854,255.268,291.874,248.279z M146.665,86.229c9.665,0,17.5,7.835,17.5,17.5v63c0,9.665-7.835,17.5-17.5,17.5 c-9.665,0-17.5-7.835-17.5-17.5v-63C129.165,94.064,137,86.229,146.665,86.229z M147.498,204.005c9.665,0,17.5,7.835,17.5,17.5 c0,9.665-7.835,17.5-17.5,17.5c-9.665,0-17.5-7.835-17.5-17.5C129.998,211.84,137.833,204.005,147.498,204.005z"></path></g></g></svg>', a = _(), l = b("p"), i = x(o), m = _(), c = b("p"), u = x(f), y(r, "class", "IconWarning"), y(l, "class", "EmptyContentMessageTitle"), y(s, "class", "EmptyContentMessageHeader"), y(c, "class", "EmptyContentMessageText"), y(e, "class", "EmptyContentMessageWrapper"), Z(
265
+ e = b("div"), s = b("div"), r = b("div"), r.innerHTML = '<svg fill="currentColor" height="200px" width="200px" version="1.1" id="Capa_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 294.995 294.995" xml:space="preserve" stroke="#fa9200"><g id="SVGRepo_bgCarrier" stroke-width="0"></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"></g><g id="SVGRepo_iconCarrier"><g><path d="M291.874,248.279L165.605,26.526c-4.007-7.037-10.776-11.26-18.107-11.26s-14.101,4.202-18.107,11.239L3.121,248.238 c-3.979,6.989-4.164,15.013-0.493,21.326c3.67,6.313,10.663,10.165,18.705,10.165h252.329c8.042,0,15.035-3.852,18.705-10.165 C296.038,263.251,295.854,255.268,291.874,248.279z M146.665,86.229c9.665,0,17.5,7.835,17.5,17.5v63c0,9.665-7.835,17.5-17.5,17.5 c-9.665,0-17.5-7.835-17.5-17.5v-63C129.165,94.064,137,86.229,146.665,86.229z M147.498,204.005c9.665,0,17.5,7.835,17.5,17.5 c0,9.665-7.835,17.5-17.5,17.5c-9.665,0-17.5-7.835-17.5-17.5C129.998,211.84,137.833,204.005,147.498,204.005z"></path></g></g></svg>', a = _(), l = b("p"), i = T(o), m = _(), c = b("p"), u = T(f), y(r, "class", "IconWarning"), y(l, "class", "EmptyContentMessageTitle"), y(s, "class", "EmptyContentMessageHeader"), y(c, "class", "EmptyContentMessageText"), y(e, "class", "EmptyContentMessageWrapper"), Z(
266
266
  e,
267
267
  "EmptyContentMessageDesktop",
268
268
  /*desktopView*/
269
269
  t[11]
270
270
  );
271
271
  },
272
- m(g, p) {
273
- z(g, e, p), d(e, s), d(s, r), d(s, a), d(s, l), d(l, i), d(e, m), d(e, c), d(c, u);
272
+ m(h, p) {
273
+ D(h, e, p), d(e, s), d(s, r), d(s, a), d(s, l), d(l, i), d(e, m), d(e, c), d(c, u);
274
274
  },
275
- p(g, p) {
275
+ p(h, p) {
276
276
  p[0] & /*$_*/
277
277
  16384 && o !== (o = /*$_*/
278
- g[14]("error") + "") && T(i, o), p[0] & /*$_*/
278
+ h[14]("error") + "") && x(i, o), p[0] & /*$_*/
279
279
  16384 && f !== (f = /*$_*/
280
- g[14]("noPaymentMethods") + "") && T(u, f), p[0] & /*desktopView*/
280
+ h[14]("noPaymentMethods") + "") && x(u, f), p[0] & /*desktopView*/
281
281
  2048 && Z(
282
282
  e,
283
283
  "EmptyContentMessageDesktop",
284
284
  /*desktopView*/
285
- g[11]
285
+ h[11]
286
286
  );
287
287
  },
288
- d(g) {
289
- g && D(e);
288
+ d(h) {
289
+ h && z(e);
290
290
  }
291
291
  };
292
292
  }
@@ -294,13 +294,13 @@ function be(t) {
294
294
  let e, s, r, a;
295
295
  return {
296
296
  c() {
297
- e = b("div"), s = x(
297
+ e = b("div"), s = T(
298
298
  /*methodsButtonToggleText*/
299
299
  t[7]
300
300
  ), y(e, "class", "ShowAllButton");
301
301
  },
302
302
  m(l, o) {
303
- z(l, e, o), d(e, s), r || (a = se(
303
+ D(l, e, o), d(e, s), r || (a = se(
304
304
  e,
305
305
  "click",
306
306
  /*click_handler_1*/
@@ -309,14 +309,14 @@ function be(t) {
309
309
  },
310
310
  p(l, o) {
311
311
  o[0] & /*methodsButtonToggleText*/
312
- 128 && T(
312
+ 128 && x(
313
313
  s,
314
314
  /*methodsButtonToggleText*/
315
315
  l[7]
316
316
  );
317
317
  },
318
318
  d(l) {
319
- l && D(e), r = !1, a();
319
+ l && z(e), r = !1, a();
320
320
  }
321
321
  };
322
322
  }
@@ -324,7 +324,7 @@ function ve(t) {
324
324
  let e, s, r;
325
325
  return {
326
326
  c() {
327
- e = b("cashier-error"), s = b("span"), r = x(
327
+ e = b("cashier-error"), s = b("span"), r = T(
328
328
  /*errorMessage*/
329
329
  t[10]
330
330
  ), y(s, "slot", "text"), v(
@@ -355,11 +355,11 @@ function ve(t) {
355
355
  ), v(e, "hidebuttons", "true");
356
356
  },
357
357
  m(a, l) {
358
- z(a, e, l), d(e, s), d(s, r);
358
+ D(a, e, l), d(e, s), d(s, r);
359
359
  },
360
360
  p(a, l) {
361
361
  l[0] & /*errorMessage*/
362
- 1024 && T(
362
+ 1024 && x(
363
363
  r,
364
364
  /*errorMessage*/
365
365
  a[10]
@@ -396,7 +396,7 @@ function ve(t) {
396
396
  );
397
397
  },
398
398
  d(a) {
399
- a && D(e);
399
+ a && z(e);
400
400
  }
401
401
  };
402
402
  }
@@ -414,10 +414,10 @@ function tt(t) {
414
414
  );
415
415
  return {
416
416
  c() {
417
- a && a.c(), e = _(), l && l.c(), s = _(), o && o.c(), r = Re();
417
+ a && a.c(), e = _(), l && l.c(), s = _(), o && o.c(), r = je();
418
418
  },
419
419
  m(i, m) {
420
- a && a.m(i, m), z(i, e, m), l && l.m(i, m), z(i, s, m), o && o.m(i, m), z(i, r, m);
420
+ a && a.m(i, m), D(i, e, m), l && l.m(i, m), D(i, s, m), o && o.m(i, m), D(i, r, m);
421
421
  },
422
422
  p(i, m) {
423
423
  /*showSpinner*/
@@ -429,7 +429,7 @@ function tt(t) {
429
429
  i: ae,
430
430
  o: ae,
431
431
  d(i) {
432
- i && (D(e), D(s), D(r)), a && a.d(i), l && l.d(i), o && o.d(i);
432
+ i && (z(e), z(s), z(r)), a && a.d(i), l && l.d(i), o && o.d(i);
433
433
  }
434
434
  };
435
435
  }
@@ -437,35 +437,35 @@ const st = () => {
437
437
  };
438
438
  function nt(t, e, s) {
439
439
  let r;
440
- Be(t, Qe, (n) => s(14, r = n)), de.extend(Ze);
441
- let { lang: a = "en" } = e, { local: l = "en-US" } = e, { endpoint: o } = e, { session: i } = e, { customerid: m } = e, { assetsurl: c } = e, { currency: f } = e, { numberofmethodsshown: u } = e, { translationurl: g = "" } = e, { clientstyling: p = "" } = e, { clientstylingurl: P = "" } = e, { ismobileview: F } = e, k = [], C, N, H = "", L = [], W = !0, J = new Intl.NumberFormat(l, { minimumFractionDigits: 2 }), E = "", j, O = !0, I = !1, U = !1;
440
+ Re(t, Qe, (n) => s(14, r = n)), de.extend(Ze);
441
+ let { lang: a = "en" } = e, { local: l = "en-US" } = e, { endpoint: o } = e, { session: i } = e, { customerid: m } = e, { assetsurl: c } = e, { currency: f } = e, { numberofmethodsshown: u } = e, { translationurl: h = "" } = e, { clientstyling: p = "" } = e, { clientstylingurl: P = "" } = e, { ismobileview: H } = e, k = [], C, N, F = "", L = [], W = !0, Y = new Intl.NumberFormat(l, { minimumFractionDigits: 2 }), E = "", O, U = !0, I = !1, j = !1;
442
442
  var R;
443
443
  (function(n) {
444
444
  n.PlayerSessionIsNotValid = "PlayerSessionIsNotValid", n.Success = "Success", n.JwtTokenError = "JwtTokenError";
445
- })(R || (R = {})), Ie();
445
+ })(R || (R = {})), Be();
446
446
  const X = () => {
447
- let n = g;
447
+ let n = h;
448
448
  if (n)
449
- return fetch(n).then((h) => h.json()).then((h) => {
450
- Object.keys(h).forEach((A) => {
451
- ue(A, h[A]);
449
+ return fetch(n).then((g) => g.json()).then((g) => {
450
+ Object.keys(g).forEach((A) => {
451
+ ue(A, g[A]);
452
452
  });
453
- }).catch((h) => {
454
- console.log(h);
453
+ }).catch((g) => {
454
+ console.log(g);
455
455
  });
456
456
  };
457
- Object.keys(he).forEach((n) => {
458
- ue(n, he[n]);
457
+ Object.keys(ge).forEach((n) => {
458
+ ue(n, ge[n]);
459
459
  });
460
460
  const G = () => {
461
461
  $e(a);
462
462
  }, q = () => {
463
463
  s(12, I = !0);
464
- const n = new URL(`${o}/v1/player/${m}/payment/GetPaymentMetadata`), h = new Headers();
465
- h.append("accept", "application/json"), h.append("Content-Type", "application/json"), h.append("X-Client-Request-Timestamp", de.utc().format("YYYY-MM-DD HH:mm:ss.SSS"));
464
+ const n = new URL(`${o}/v1/player/${m}/payment/GetPaymentMetadata`), g = new Headers();
465
+ g.append("accept", "application/json"), g.append("Content-Type", "application/json"), g.append("X-Client-Request-Timestamp", de.utc().format("YYYY-MM-DD HH:mm:ss.SSS"));
466
466
  const A = {
467
467
  method: "POST",
468
- headers: h,
468
+ headers: g,
469
469
  body: JSON.stringify({
470
470
  XPaymentSessionToken: i,
471
471
  Currency: f,
@@ -479,33 +479,33 @@ function nt(t, e, s) {
479
479
  return;
480
480
  }
481
481
  if (w.ResponseCode !== R.Success) {
482
- j = w.ResponseCode, B();
482
+ O = w.ResponseCode, B();
483
483
  return;
484
484
  }
485
- k = (V = w.PaymentMethods) != null && V.Ordering ? Y(w) : K(w), s(7, H = u && +u > 0 && k.length > +u ? r("showAll") : ""), s(8, L = H ? k.slice(0, +u) : k), window.postMessage(
485
+ k = (V = w.PaymentMethods) != null && V.Ordering ? J(w) : K(w), s(7, F = u && +u > 0 && k.length > +u ? r("showAll") : ""), s(8, L = F ? k.slice(0, +u) : k), window.postMessage(
486
486
  {
487
487
  type: "StartSessionCountdown",
488
488
  paymentMethodName: k[0].Name,
489
489
  xPaymentSessionToken: w.XPaymentSessionToken
490
490
  },
491
491
  window.location.href
492
- );
492
+ ), window.postMessage({ type: "DataLoading", isDataLoaded: !1 });
493
493
  }).finally(() => {
494
- s(12, I = !1), s(13, U = !L.length);
494
+ s(12, I = !1), window.postMessage({ type: "DataLoading", isDataLoaded: !0 }), s(13, j = !L.length);
495
495
  });
496
- }, Y = (n) => {
497
- const h = [];
496
+ }, J = (n) => {
497
+ const g = [];
498
498
  return n.PaymentMethods.Ordering.DefaultPaymentMethodsOrder.forEach((A) => {
499
499
  const w = n.PaymentMethods.PaymentMethods.find((V) => V.Name === A);
500
500
  if (w) {
501
- const V = (w == null ? void 0 : w.Logos.find(($) => $.LogoType === "Desktop")) || {}, Ae = (w == null ? void 0 : w.Logos.find(($) => $.LogoType === "Mobile")) || {}, le = O ? V : Ae;
502
- h.push(te(ee({}, w), {
501
+ const V = (w == null ? void 0 : w.Logos.find(($) => $.LogoType === "Desktop")) || {}, Ae = (w == null ? void 0 : w.Logos.find(($) => $.LogoType === "Mobile")) || {}, le = U ? V : Ae;
502
+ g.push(te(ee({}, w), {
503
503
  LogoUrl: le.LogoUrl ? `https:${le.LogoUrl}` : ""
504
504
  }));
505
505
  }
506
- }), h;
507
- }, K = (n) => n.PaymentMethods.PaymentMethods.map((h) => te(ee({}, h), {
508
- LogoUrl: h.Logos && h.Logos.length && h.Logos[0].LogoUrl ? `https:${h.Logos[0].LogoUrl}` : ""
506
+ }), g;
507
+ }, K = (n) => n.PaymentMethods.PaymentMethods.map((g) => te(ee({}, g), {
508
+ LogoUrl: g.Logos && g.Logos.length && g.Logos[0].LogoUrl ? `https:${g.Logos[0].LogoUrl}` : ""
509
509
  })), Q = (n) => {
510
510
  s(6, N = n.Name), window.postMessage({ type: "SelectPayMeth", details: n }, window.location.href), dispatchEvent(new CustomEvent(
511
511
  "selectPayMeth",
@@ -520,18 +520,18 @@ function nt(t, e, s) {
520
520
  window.postMessage(
521
521
  {
522
522
  type: "ErrorResponseCode",
523
- errorResponseCode: j
523
+ errorResponseCode: O
524
524
  },
525
525
  window.location.href
526
526
  );
527
527
  }, M = () => {
528
- s(11, O = F === "false");
528
+ s(11, U = H === "false");
529
529
  }, ne = () => {
530
530
  L == k ? Le() : Me();
531
531
  }, Me = () => {
532
- s(8, L = k), s(7, H = r("showLess"));
532
+ s(8, L = k), s(7, F = r("showLess"));
533
533
  }, Le = () => {
534
- s(8, L = k.slice(0, +u)), N && !L.find((n) => n.Name === N) && L.splice(0, 0, k.find((n) => n.Name === N)), s(7, H = r("showAll"));
534
+ s(8, L = k.slice(0, +u)), N && !L.find((n) => n.Name === N) && L.splice(0, 0, k.find((n) => n.Name === N)), s(7, F = r("showAll"));
535
535
  }, _e = () => {
536
536
  s(9, W = !0);
537
537
  }, ke = (n) => {
@@ -540,11 +540,11 @@ function nt(t, e, s) {
540
540
  let n = document.createElement("style");
541
541
  n.innerHTML = p, C.appendChild(n);
542
542
  }, Se = () => {
543
- let n = new URL(P), h = document.createElement("style");
543
+ let n = new URL(P), g = document.createElement("style");
544
544
  fetch(n.href).then((A) => A.text()).then((A) => {
545
- h.innerHTML = A, setTimeout(
545
+ g.innerHTML = A, setTimeout(
546
546
  () => {
547
- C.appendChild(h);
547
+ C.appendChild(g);
548
548
  },
549
549
  1
550
550
  ), setTimeout(
@@ -554,7 +554,7 @@ function nt(t, e, s) {
554
554
  );
555
555
  });
556
556
  };
557
- Ge(() => (window.addEventListener("message", ie, !1), () => {
557
+ Ie(() => (window.addEventListener("message", ie, !1), () => {
558
558
  window.removeEventListener("message", ie, !1);
559
559
  }));
560
560
  const ie = (n) => {
@@ -568,37 +568,37 @@ function nt(t, e, s) {
568
568
  }
569
569
  }, Ee = (n) => Q(n), xe = () => ne();
570
570
  function Te(n) {
571
- Ye[n ? "unshift" : "push"](() => {
571
+ Ve[n ? "unshift" : "push"](() => {
572
572
  C = n, s(5, C);
573
573
  });
574
574
  }
575
575
  return t.$$set = (n) => {
576
- "lang" in n && s(0, a = n.lang), "local" in n && s(18, l = n.local), "endpoint" in n && s(19, o = n.endpoint), "session" in n && s(20, i = n.session), "customerid" in n && s(21, m = n.customerid), "assetsurl" in n && s(1, c = n.assetsurl), "currency" in n && s(22, f = n.currency), "numberofmethodsshown" in n && s(23, u = n.numberofmethodsshown), "translationurl" in n && s(2, g = n.translationurl), "clientstyling" in n && s(3, p = n.clientstyling), "clientstylingurl" in n && s(4, P = n.clientstylingurl), "ismobileview" in n && s(24, F = n.ismobileview);
576
+ "lang" in n && s(0, a = n.lang), "local" in n && s(18, l = n.local), "endpoint" in n && s(19, o = n.endpoint), "session" in n && s(20, i = n.session), "customerid" in n && s(21, m = n.customerid), "assetsurl" in n && s(1, c = n.assetsurl), "currency" in n && s(22, f = n.currency), "numberofmethodsshown" in n && s(23, u = n.numberofmethodsshown), "translationurl" in n && s(2, h = n.translationurl), "clientstyling" in n && s(3, p = n.clientstyling), "clientstylingurl" in n && s(4, P = n.clientstylingurl), "ismobileview" in n && s(24, H = n.ismobileview);
577
577
  }, t.$$.update = () => {
578
578
  t.$$.dirty[0] & /*endpoint, session, customerid*/
579
579
  3670016 && o && i && m && q(), t.$$.dirty[0] & /*lang*/
580
580
  1 && a && G(), t.$$.dirty[0] & /*clientstyling, customStylingContainer*/
581
581
  40 && p && C && Ce(), t.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
582
582
  48 && P && C && Se(), t.$$.dirty[0] & /*ismobileview*/
583
- 16777216 && F && M(), t.$$.dirty[0] & /*lang, translationurl*/
584
- 5 && a && g && X();
583
+ 16777216 && H && M(), t.$$.dirty[0] & /*lang, translationurl*/
584
+ 5 && a && h && X();
585
585
  }, [
586
586
  a,
587
587
  c,
588
- g,
588
+ h,
589
589
  p,
590
590
  P,
591
591
  C,
592
592
  N,
593
- H,
593
+ F,
594
594
  L,
595
595
  W,
596
596
  E,
597
- O,
598
- I,
599
597
  U,
598
+ I,
599
+ j,
600
600
  r,
601
- J,
601
+ Y,
602
602
  Q,
603
603
  ne,
604
604
  l,
@@ -607,13 +607,13 @@ function nt(t, e, s) {
607
607
  m,
608
608
  f,
609
609
  u,
610
- F,
610
+ H,
611
611
  Ee,
612
612
  xe,
613
613
  Te
614
614
  ];
615
615
  }
616
- class it extends He {
616
+ class it extends Fe {
617
617
  constructor(e) {
618
618
  super(), We(
619
619
  this,
@@ -712,7 +712,7 @@ class it extends He {
712
712
  this.$$set({ ismobileview: e }), S();
713
713
  }
714
714
  }
715
- je(it, { lang: {}, local: {}, endpoint: {}, session: {}, customerid: {}, assetsurl: {}, currency: {}, numberofmethodsshown: {}, translationurl: {}, clientstyling: {}, clientstylingurl: {}, ismobileview: {} }, [], [], !0);
715
+ Je(it, { lang: {}, local: {}, endpoint: {}, session: {}, customerid: {}, assetsurl: {}, currency: {}, numberofmethodsshown: {}, translationurl: {}, clientstyling: {}, clientstylingurl: {}, ismobileview: {} }, [], [], !0);
716
716
  export {
717
717
  it as default
718
718
  };
@@ -1 +1 @@
1
- "use strict";const t=require("./CashierConfirmModal-KmRU3Mgr.cjs");function m(i,{delay:e=0,duration:n=400,easing:l=t.identity}={}){const s=+getComputedStyle(i).opacity;return{delay:e,duration:n,easing:l,css:r=>`opacity: ${r*s}`}}function E(i){t.append_styles(i,"svelte-pil2bm","*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}.ModalWindow{display:flex;position:absolute;align-items:center;justify-content:center;width:100%;height:100%;z-index:4;top:0;left:0;background-color:var(--mmw--color-black-transparency-10, rgba(0, 0, 0, 0.1));container-type:inline-size;container-name:modal-window;border-radius:6px}.ModalContainer{background:var(--emw--color-white, #fff);border-radius:var(--emw--border-radius-medium, 4px);padding:var(--emw--spacing-large, 20px);width:400px}.ModalCloseBtn{position:absolute;display:flex;align-items:center;justify-content:center;top:10px;right:10px;padding:var(--emw--spacing-small-minus, 10px);border-radius:50%;color:var(--emw--color-white, #fff);background:var(--mmw--color-gray-transparency-85, rgba(255, 255, 255, 0.85));cursor:pointer;transition:all 150ms ease-in-out}.ModalCloseBtn svg{width:32px;height:32px}.ModalCloseBtn:hover{background:var(--emw--color-gray-transparency-20, rgba(255, 255, 255, 0.2))}@container modal-window (max-width:750px){.ModalWindow .ModalContainer{width:90%;max-width:400px}}")}const L=i=>({}),p=i=>({});function b(i){let e,n,l,s,r,c;const h=i[9].content,d=t.create_slot(h,i,i[8],p);return{c(){e=t.element("div"),n=t.element("div"),l=t.element("div"),d&&d.c(),t.attr(l,"class","ModalContainer"),t.attr(l,"part","ModalContainer"),t.attr(n,"class","ModalWindow"),t.attr(n,"part","ModalWindow"),t.attr(n,"id","Modal"),t.add_render_callback(()=>i[11].call(n)),t.attr(e,"part","CustomStylingContainer")},m(a,u){t.insert(a,e,u),t.append(e,n),t.append(n,l),d&&d.m(l,null),i[10](n),s=t.add_iframe_resize_listener(n,i[11].bind(n)),i[12](e),c=!0},p(a,u){i=a,d&&d.p&&(!c||u&256)&&t.update_slot_base(d,h,i,i[8],c?t.get_slot_changes(h,i[8],u,L):t.get_all_dirty_from_scope(i[8]),p)},i(a){c||(t.transition_in(d,a),a&&t.add_render_callback(()=>{c&&(r||(r=t.create_bidirectional_transition(n,m,i[2],!0)),r.run(1))}),c=!0)},o(a){t.transition_out(d,a),a&&(r||(r=t.create_bidirectional_transition(n,m,i[2],!1)),r.run(0)),c=!1},d(a){a&&t.detach(e),d&&d.d(a),i[10](null),s(),a&&r&&r.end(),i[12](null)}}}function H(i){let e,n,l=i[5]&&b(i);return{c(){l&&l.c(),e=t.empty()},m(s,r){l&&l.m(s,r),t.insert(s,e,r),n=!0},p(s,[r]){s[5]?l?(l.p(s,r),r&32&&t.transition_in(l,1)):(l=b(s),l.c(),t.transition_in(l,1),l.m(e.parentNode,e)):l&&(t.group_outros(),t.transition_out(l,1,1,()=>{l=null}),t.check_outros())},i(s){n||(t.transition_in(l),n=!0)},o(s){t.transition_out(l),n=!1},d(s){s&&t.detach(e),l&&l.d(s)}}}function W(i,e,n){let{$$slots:l={},$$scope:s}=e,{clientstyling:r=""}=e,{clientstylingurl:c=""}=e,{duration:h=200}=e,{width:d}=e,{height:a}=e,u,f,g=!1;const C=()=>{n(5,g=!1),window.postMessage({type:"ClosedCashierModal"},window.location.href),window.postMessage({type:"EnableScroll"},window.location.href)},w=o=>{o.data.type=="ShowCashierModal"&&(n(5,g=!0),window.postMessage({type:"DisableScroll"},window.location.href)),o.data.type=="HideCashierModal"&&C()},v=()=>{let o=document.createElement("style");o.innerHTML=r,f.appendChild(o)},k=()=>{let o=new URL(c),y=document.createElement("style");fetch(o.href).then(_=>_.text()).then(_=>{y.innerHTML=_,setTimeout(()=>{f.appendChild(y)},1)})};t.onMount(()=>(window.addEventListener("message",w,!1),()=>{window.removeEventListener("message",w)}));function S(o){t.binding_callbacks[o?"unshift":"push"](()=>{u=o,n(4,u)})}function x(){d=this.clientWidth,a=this.clientHeight,n(0,d),n(1,a)}function z(o){t.binding_callbacks[o?"unshift":"push"](()=>{f=o,n(3,f)})}return i.$$set=o=>{"clientstyling"in o&&n(6,r=o.clientstyling),"clientstylingurl"in o&&n(7,c=o.clientstylingurl),"duration"in o&&n(2,h=o.duration),"width"in o&&n(0,d=o.width),"height"in o&&n(1,a=o.height),"$$scope"in o&&n(8,s=o.$$scope)},i.$$.update=()=>{i.$$.dirty&72&&r&&f&&v(),i.$$.dirty&136&&c&&f&&k()},[d,a,h,f,u,g,r,c,s,l,S,x,z]}class M extends t.SvelteComponent{constructor(e){super(),t.init(this,e,W,H,t.safe_not_equal,{clientstyling:6,clientstylingurl:7,duration:2,width:0,height:1},E)}get clientstyling(){return this.$$.ctx[6]}set clientstyling(e){this.$$set({clientstyling:e}),t.flush()}get clientstylingurl(){return this.$$.ctx[7]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),t.flush()}get duration(){return this.$$.ctx[2]}set duration(e){this.$$set({duration:e}),t.flush()}get width(){return this.$$.ctx[0]}set width(e){this.$$set({width:e}),t.flush()}get height(){return this.$$.ctx[1]}set height(e){this.$$set({height:e}),t.flush()}}t.create_custom_element(M,{clientstyling:{},clientstylingurl:{},duration:{},width:{},height:{}},["content"],[],!0);const j=Object.freeze(Object.defineProperty({__proto__:null,default:M},Symbol.toStringTag,{value:"Module"}));exports.CashierModal_ce=j;exports.fade=m;
1
+ "use strict";const t=require("./CashierConfirmModal-B_XfWSC2.cjs");function m(i,{delay:e=0,duration:n=400,easing:l=t.identity}={}){const s=+getComputedStyle(i).opacity;return{delay:e,duration:n,easing:l,css:r=>`opacity: ${r*s}`}}function E(i){t.append_styles(i,"svelte-pil2bm","*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}.ModalWindow{display:flex;position:absolute;align-items:center;justify-content:center;width:100%;height:100%;z-index:4;top:0;left:0;background-color:var(--mmw--color-black-transparency-10, rgba(0, 0, 0, 0.1));container-type:inline-size;container-name:modal-window;border-radius:6px}.ModalContainer{background:var(--emw--color-white, #fff);border-radius:var(--emw--border-radius-medium, 4px);padding:var(--emw--spacing-large, 20px);width:400px}.ModalCloseBtn{position:absolute;display:flex;align-items:center;justify-content:center;top:10px;right:10px;padding:var(--emw--spacing-small-minus, 10px);border-radius:50%;color:var(--emw--color-white, #fff);background:var(--mmw--color-gray-transparency-85, rgba(255, 255, 255, 0.85));cursor:pointer;transition:all 150ms ease-in-out}.ModalCloseBtn svg{width:32px;height:32px}.ModalCloseBtn:hover{background:var(--emw--color-gray-transparency-20, rgba(255, 255, 255, 0.2))}@container modal-window (max-width:750px){.ModalWindow .ModalContainer{width:90%;max-width:400px}}")}const L=i=>({}),p=i=>({});function b(i){let e,n,l,s,r,c;const h=i[9].content,d=t.create_slot(h,i,i[8],p);return{c(){e=t.element("div"),n=t.element("div"),l=t.element("div"),d&&d.c(),t.attr(l,"class","ModalContainer"),t.attr(l,"part","ModalContainer"),t.attr(n,"class","ModalWindow"),t.attr(n,"part","ModalWindow"),t.attr(n,"id","Modal"),t.add_render_callback(()=>i[11].call(n)),t.attr(e,"part","CustomStylingContainer")},m(a,u){t.insert(a,e,u),t.append(e,n),t.append(n,l),d&&d.m(l,null),i[10](n),s=t.add_iframe_resize_listener(n,i[11].bind(n)),i[12](e),c=!0},p(a,u){i=a,d&&d.p&&(!c||u&256)&&t.update_slot_base(d,h,i,i[8],c?t.get_slot_changes(h,i[8],u,L):t.get_all_dirty_from_scope(i[8]),p)},i(a){c||(t.transition_in(d,a),a&&t.add_render_callback(()=>{c&&(r||(r=t.create_bidirectional_transition(n,m,i[2],!0)),r.run(1))}),c=!0)},o(a){t.transition_out(d,a),a&&(r||(r=t.create_bidirectional_transition(n,m,i[2],!1)),r.run(0)),c=!1},d(a){a&&t.detach(e),d&&d.d(a),i[10](null),s(),a&&r&&r.end(),i[12](null)}}}function H(i){let e,n,l=i[5]&&b(i);return{c(){l&&l.c(),e=t.empty()},m(s,r){l&&l.m(s,r),t.insert(s,e,r),n=!0},p(s,[r]){s[5]?l?(l.p(s,r),r&32&&t.transition_in(l,1)):(l=b(s),l.c(),t.transition_in(l,1),l.m(e.parentNode,e)):l&&(t.group_outros(),t.transition_out(l,1,1,()=>{l=null}),t.check_outros())},i(s){n||(t.transition_in(l),n=!0)},o(s){t.transition_out(l),n=!1},d(s){s&&t.detach(e),l&&l.d(s)}}}function W(i,e,n){let{$$slots:l={},$$scope:s}=e,{clientstyling:r=""}=e,{clientstylingurl:c=""}=e,{duration:h=200}=e,{width:d}=e,{height:a}=e,u,f,g=!1;const C=()=>{n(5,g=!1),window.postMessage({type:"ClosedCashierModal"},window.location.href),window.postMessage({type:"EnableScroll"},window.location.href)},w=o=>{o.data.type=="ShowCashierModal"&&(n(5,g=!0),window.postMessage({type:"DisableScroll"},window.location.href)),o.data.type=="HideCashierModal"&&C()},v=()=>{let o=document.createElement("style");o.innerHTML=r,f.appendChild(o)},k=()=>{let o=new URL(c),y=document.createElement("style");fetch(o.href).then(_=>_.text()).then(_=>{y.innerHTML=_,setTimeout(()=>{f.appendChild(y)},1)})};t.onMount(()=>(window.addEventListener("message",w,!1),()=>{window.removeEventListener("message",w)}));function S(o){t.binding_callbacks[o?"unshift":"push"](()=>{u=o,n(4,u)})}function x(){d=this.clientWidth,a=this.clientHeight,n(0,d),n(1,a)}function z(o){t.binding_callbacks[o?"unshift":"push"](()=>{f=o,n(3,f)})}return i.$$set=o=>{"clientstyling"in o&&n(6,r=o.clientstyling),"clientstylingurl"in o&&n(7,c=o.clientstylingurl),"duration"in o&&n(2,h=o.duration),"width"in o&&n(0,d=o.width),"height"in o&&n(1,a=o.height),"$$scope"in o&&n(8,s=o.$$scope)},i.$$.update=()=>{i.$$.dirty&72&&r&&f&&v(),i.$$.dirty&136&&c&&f&&k()},[d,a,h,f,u,g,r,c,s,l,S,x,z]}class M extends t.SvelteComponent{constructor(e){super(),t.init(this,e,W,H,t.safe_not_equal,{clientstyling:6,clientstylingurl:7,duration:2,width:0,height:1},E)}get clientstyling(){return this.$$.ctx[6]}set clientstyling(e){this.$$set({clientstyling:e}),t.flush()}get clientstylingurl(){return this.$$.ctx[7]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),t.flush()}get duration(){return this.$$.ctx[2]}set duration(e){this.$$set({duration:e}),t.flush()}get width(){return this.$$.ctx[0]}set width(e){this.$$set({width:e}),t.flush()}get height(){return this.$$.ctx[1]}set height(e){this.$$set({height:e}),t.flush()}}t.create_custom_element(M,{clientstyling:{},clientstylingurl:{},duration:{},width:{},height:{}},["content"],[],!0);const j=Object.freeze(Object.defineProperty({__proto__:null,default:M},Symbol.toStringTag,{value:"Module"}));exports.CashierModal_ce=j;exports.fade=m;