@everymatrix/cashier-page 1.55.0 → 1.56.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 (52) hide show
  1. package/components/CashierConfirmModal-B0WZGuf5.js +1102 -0
  2. package/components/{CashierConfirmModal-Bho8FqJK.js → CashierConfirmModal-BErwh2fQ.js} +520 -433
  3. package/components/CashierConfirmModal-BVT51ZOp.cjs +4 -0
  4. package/components/{CashierError-B6UnQRtt.js → CashierError-DoHJAf67.js} +234 -214
  5. package/components/{CashierError-R8ZhIjyI.js → CashierError-Dyf5BWS1.js} +233 -213
  6. package/components/{CashierError-Dj9dAyT_.cjs → CashierError-YmV_PQP8.cjs} +16 -3
  7. package/components/{CashierHeader-Ckcwhr6m.cjs → CashierHeader-B-wIMGOV.cjs} +1 -1
  8. package/components/{CashierHeader-CGdNSxx6.js → CashierHeader-C8XVzyv9.js} +2 -2
  9. package/components/{CashierHeader-siQceHGX.js → CashierHeader-Dm79zFE4.js} +2 -2
  10. package/components/{CashierIframeRedirect-Cf280zGs.js → CashierIframeRedirect-B_5Lg8hb.js} +4 -4
  11. package/components/{CashierIframeRedirect-C7zvMq6i.cjs → CashierIframeRedirect-CXErmVjw.cjs} +1 -1
  12. package/components/{CashierIframeRedirect-BJdtHTt_.js → CashierIframeRedirect-D7qTJ1C9.js} +4 -4
  13. package/components/CashierMethodDetails-Ba0LNaer.cjs +18 -0
  14. package/components/{CashierMethodDetails-0n7uERIs.js → CashierMethodDetails-C6upoqd2.js} +1592 -1551
  15. package/components/{CashierMethodDetails-Bh0qCR4w.js → CashierMethodDetails-T4mbzimW.js} +1650 -1609
  16. package/components/{CashierMethodsList-DIGc9AUv.js → CashierMethodsList-6aZ0rauJ.js} +29 -29
  17. package/components/{CashierMethodsList-C8rrtr0q.cjs → CashierMethodsList-Ds7TEIYj.cjs} +1 -1
  18. package/components/{CashierMethodsList-CNZycJM8.js → CashierMethodsList-K1Zqnlt7.js} +45 -45
  19. package/components/{CashierModal-FkJdngyj.cjs → CashierModal-BhCdxWcE.cjs} +1 -1
  20. package/components/{CashierModal-_JYkOwJz.js → CashierModal-CpN2LT2L.js} +1 -1
  21. package/components/{CashierModal-XEf2DPsH.js → CashierModal-DB1wg0l3.js} +1 -1
  22. package/components/{CashierNotifications-Dx7SHS2Y.js → CashierNotifications-B5qfr68o.js} +1 -1
  23. package/components/{CashierNotifications-BJzRxOV_.cjs → CashierNotifications-BVAanyOB.cjs} +1 -1
  24. package/components/{CashierNotifications-n-WNsBs_.js → CashierNotifications-BmAkkuzD.js} +1 -1
  25. package/components/{CashierPage-Z3s-AE-W.js → CashierPage-CJg_L4B4.js} +927 -783
  26. package/components/{CashierPage-HjIA5R5P.cjs → CashierPage-C_as9ye4.cjs} +1 -1
  27. package/components/{CashierPage-CUsOGi4E.js → CashierPage-TC37oBbP.js} +927 -783
  28. package/components/{CashierReceiptPage-DZyFyBqS.cjs → CashierReceiptPage-BH5T05dg.cjs} +1 -1
  29. package/components/{CashierReceiptPage-DzQqg8nv.js → CashierReceiptPage-BOTRblW6.js} +178 -165
  30. package/components/{CashierReceiptPage-CS5M5RZ6.js → CashierReceiptPage-BsbiLGZK.js} +139 -127
  31. package/components/{CashierSessionExpirationModal-CdyR3b34.cjs → CashierSessionExpirationModal-CxpesQtf.cjs} +1 -1
  32. package/components/{CashierSessionExpirationModal-CBmx5SD7.js → CashierSessionExpirationModal-DZgsGvVp.js} +8 -6
  33. package/components/{CashierSessionExpirationModal-CXDh6poB.js → CashierSessionExpirationModal-V8MYd-oY.js} +8 -6
  34. package/components/{CashierSpinner-CQi2Ol7j.js → CashierSpinner-BI29nSq_.js} +1 -1
  35. package/components/{CashierSpinner-CwTAvuPD.js → CashierSpinner-FzCMnj7X.js} +1 -1
  36. package/components/{CashierSpinner-CySOWnIQ.cjs → CashierSpinner-H763izjz.cjs} +1 -1
  37. package/components/CashierTransactionHistory-8gcj3WQW.cjs +1 -0
  38. package/components/CashierTransactionHistory-BfGfxyd8.js +572 -0
  39. package/components/CashierTransactionHistory-CN06GWPY.js +572 -0
  40. package/components/{CashierVerifications-Dj7MJocZ.js → CashierVerifications-BOYrzIos.js} +4 -4
  41. package/components/{CashierVerifications-oj-eHRhw.cjs → CashierVerifications-BXTVbpjh.cjs} +1 -1
  42. package/components/{CashierVerifications-C1NppS_0.js → CashierVerifications-qhXfC9Fa.js} +4 -4
  43. package/components/{CashierVideoModal-BWI2U3UH.cjs → CashierVideoModal-CjR0Fzuu.cjs} +1 -1
  44. package/components/{CashierVideoModal-CgS8X4Od.js → CashierVideoModal-DGBQZz-C.js} +1 -1
  45. package/components/{CashierVideoModal-C8etvcxP.js → CashierVideoModal-DPG12DK0.js} +1 -1
  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
  52. package/components/CashierMethodDetails-Bs5PGaZC.cjs +0 -18
@@ -1,6 +1,6 @@
1
- import { S as Ee, b as xe, f as S, c as Te, a as Ae, d as Pe, h as _, x as Ne, k as z, n as ie, v as D, w as ze, Q as De, G as Fe, g as y, E as M, K as le, j as w, l as d, M as He, y as x, D as oe, I as Q, A as ee, z as T, r as We, C as je } from "./CashierConfirmModal-h87-4Uqk.js";
2
- import { a as Oe, i as Ue, $ as Re, b as Be } from "./CashierError-R8ZhIjyI.js";
3
- import { d as re, u as Ie } from "./CashierMethodDetails-0n7uERIs.js";
1
+ import { S as Ee, b as xe, f as S, c as Te, a as Ae, d as Pe, h as _, x as De, k as N, n as ie, v as z, w as Ne, Q as ze, G as Fe, g as y, E as M, K as le, j as w, l as d, M as He, y as x, D as oe, I as Q, A as ee, z as T, r as We, C as je } from "./CashierConfirmModal-B0WZGuf5.js";
2
+ import { a as Oe, i as Ue, $ as Re, b as Be } from "./CashierError-Dyf5BWS1.js";
3
+ import { d as re, u as Ie } from "./CashierMethodDetails-C6upoqd2.js";
4
4
  function ae(t, e) {
5
5
  Oe(t, e);
6
6
  }
@@ -67,7 +67,7 @@ function de(t) {
67
67
  );
68
68
  },
69
69
  m(s, r) {
70
- z(s, e, r);
70
+ N(s, e, r);
71
71
  },
72
72
  p(s, r) {
73
73
  r[0] & /*clientstylingurl*/
@@ -85,7 +85,7 @@ function de(t) {
85
85
  );
86
86
  },
87
87
  d(s) {
88
- s && D(e);
88
+ s && z(e);
89
89
  }
90
90
  };
91
91
  }
@@ -112,7 +112,7 @@ function ue(t) {
112
112
  r = _(), i && i.c(), a = _(), m && m.c(), w(s, "class", "CashierMethodList"), w(e, "class", "CashierMethodListWidget");
113
113
  },
114
114
  m(c, f) {
115
- z(c, e, f), d(e, s);
115
+ N(c, e, f), d(e, s);
116
116
  for (let u = 0; u < o.length; u += 1)
117
117
  o[u] && o[u].m(s, null);
118
118
  d(s, r), i && i.m(s, null), d(e, a), m && m.m(e, null), t[27](e);
@@ -139,7 +139,7 @@ function ue(t) {
139
139
  c[7] ? m ? m.p(c, f) : (m = fe(c), m.c(), m.m(e, null)) : m && (m.d(1), m = null);
140
140
  },
141
141
  d(c) {
142
- c && D(e), He(o, c), i && i.d(), m && m.d(), t[27](null);
142
+ c && z(e), He(o, c), i && i.d(), m && m.d(), t[27](null);
143
143
  }
144
144
  };
145
145
  }
@@ -157,7 +157,7 @@ function he(t) {
157
157
  /*payMeth*/
158
158
  t[48].DisplayCurrency.MinAmountLimit
159
159
  ) + ""
160
- ), N, H, L = (
160
+ ), D, H, L = (
161
161
  /*payMeth*/
162
162
  t[48].DisplayCurrency.Name + ""
163
163
  ), W, Y, E, j = (
@@ -184,7 +184,7 @@ function he(t) {
184
184
  }
185
185
  return {
186
186
  c() {
187
- e = y("div"), s = y("div"), r = y("img"), o = _(), i = y("div"), m = y("span"), f = x(c), u = _(), g = y("div"), p = y("span"), F = x(P), k = _(), N = x(C), H = _(), W = x(L), Y = _(), E = y("span"), O = x(j), I = _(), R = x(U), J = _(), V = x(G), oe(r.src, a = /*payMeth*/
187
+ e = y("div"), s = y("div"), r = y("img"), o = _(), i = y("div"), m = y("span"), f = x(c), u = _(), g = y("div"), p = y("span"), F = x(P), k = _(), D = x(C), H = _(), W = x(L), Y = _(), E = y("span"), O = x(j), I = _(), R = x(U), J = _(), V = x(G), oe(r.src, a = /*payMeth*/
188
188
  t[48].LogoUrl) || w(r, "src", a), w(r, "alt", l = /*payMeth*/
189
189
  t[48].Label), w(s, "class", "MethodLogo"), w(i, "class", "MethodTitle"), w(p, "class", "Limits"), w(E, "class", "Limits"), w(g, "class", "MethodLimits"), w(e, "class", "SelectorWrapper"), Q(
190
190
  e,
@@ -195,7 +195,7 @@ function he(t) {
195
195
  );
196
196
  },
197
197
  m(B, v) {
198
- z(B, e, v), 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, Y), d(g, E), d(E, O), d(E, I), d(E, R), d(E, J), d(E, V), q || (X = [
198
+ N(B, e, v), 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, D), d(p, H), d(p, W), d(g, Y), d(g, E), d(E, O), d(E, I), d(E, R), d(E, J), d(E, V), q || (X = [
199
199
  ee(e, "click", K),
200
200
  ee(e, "keyup", Ye)
201
201
  ], q = !0);
@@ -215,7 +215,7 @@ function he(t) {
215
215
  t[15].format(
216
216
  /*payMeth*/
217
217
  t[48].DisplayCurrency.MinAmountLimit
218
- ) + "") && T(N, C), v[0] & /*paymentMethodsToShow*/
218
+ ) + "") && T(D, C), v[0] & /*paymentMethodsToShow*/
219
219
  256 && L !== (L = /*payMeth*/
220
220
  t[48].DisplayCurrency.Name + "") && T(W, L), v[0] & /*$_*/
221
221
  16384 && j !== (j = /*$_*/
@@ -236,7 +236,7 @@ function he(t) {
236
236
  );
237
237
  },
238
238
  d(B) {
239
- B && D(e), q = !1, We(X);
239
+ B && z(e), q = !1, We(X);
240
240
  }
241
241
  };
242
242
  }
@@ -258,7 +258,7 @@ function ge(t) {
258
258
  );
259
259
  },
260
260
  m(g, p) {
261
- 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);
261
+ N(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);
262
262
  },
263
263
  p(g, p) {
264
264
  p[0] & /*$_*/
@@ -274,7 +274,7 @@ function ge(t) {
274
274
  );
275
275
  },
276
276
  d(g) {
277
- g && D(e);
277
+ g && z(e);
278
278
  }
279
279
  };
280
280
  }
@@ -288,7 +288,7 @@ function fe(t) {
288
288
  ), w(e, "class", "ShowAllButton");
289
289
  },
290
290
  m(l, o) {
291
- z(l, e, o), d(e, s), r || (a = ee(
291
+ N(l, e, o), d(e, s), r || (a = ee(
292
292
  e,
293
293
  "click",
294
294
  /*click_handler_1*/
@@ -304,7 +304,7 @@ function fe(t) {
304
304
  );
305
305
  },
306
306
  d(l) {
307
- l && D(e), r = !1, a();
307
+ l && z(e), r = !1, a();
308
308
  }
309
309
  };
310
310
  }
@@ -343,7 +343,7 @@ function pe(t) {
343
343
  ), M(e, "hidebuttons", "true");
344
344
  },
345
345
  m(a, l) {
346
- z(a, e, l), d(e, s), d(s, r);
346
+ N(a, e, l), d(e, s), d(s, r);
347
347
  },
348
348
  p(a, l) {
349
349
  l[0] & /*errorMessage*/
@@ -384,7 +384,7 @@ function pe(t) {
384
384
  );
385
385
  },
386
386
  d(a) {
387
- a && D(e);
387
+ a && z(e);
388
388
  }
389
389
  };
390
390
  }
@@ -402,10 +402,10 @@ function qe(t) {
402
402
  );
403
403
  return {
404
404
  c() {
405
- a && a.c(), e = _(), l && l.c(), s = _(), o && o.c(), r = Ne();
405
+ a && a.c(), e = _(), l && l.c(), s = _(), o && o.c(), r = De();
406
406
  },
407
407
  m(i, m) {
408
- 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);
408
+ a && a.m(i, m), N(i, e, m), l && l.m(i, m), N(i, s, m), o && o.m(i, m), N(i, r, m);
409
409
  },
410
410
  p(i, m) {
411
411
  /*showSpinner*/
@@ -417,7 +417,7 @@ function qe(t) {
417
417
  i: ie,
418
418
  o: ie,
419
419
  d(i) {
420
- i && (D(e), D(s), D(r)), a && a.d(i), l && l.d(i), o && o.d(i);
420
+ i && (z(e), z(s), z(r)), a && a.d(i), l && l.d(i), o && o.d(i);
421
421
  }
422
422
  };
423
423
  }
@@ -425,12 +425,12 @@ const Ye = () => {
425
425
  };
426
426
  function Je(t, e, s) {
427
427
  let r;
428
- ze(t, Be, (n) => s(14, r = n)), re.extend(Ie);
429
- 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, Y = new Intl.NumberFormat(l, { minimumFractionDigits: 2 }), E = "", j, O = !0, I = !1, U = !1;
428
+ Ne(t, Be, (n) => s(14, r = n)), re.extend(Ie);
429
+ 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, D, H = "", L = [], W = !0, Y = new Intl.NumberFormat(l, { minimumFractionDigits: 2 }), E = "", j, O = !0, I = !1, U = !1;
430
430
  var R;
431
431
  (function(n) {
432
432
  n.PlayerSessionIsNotValid = "PlayerSessionIsNotValid", n.Success = "Success", n.JwtTokenError = "JwtTokenError";
433
- })(R || (R = {})), De();
433
+ })(R || (R = {})), ze();
434
434
  const J = () => {
435
435
  let n = g;
436
436
  if (n)
@@ -476,9 +476,9 @@ function Je(t, e, s) {
476
476
  xPaymentSessionToken: b.XPaymentSessionToken
477
477
  },
478
478
  window.location.href
479
- );
479
+ ), window.postMessage({ type: "DataLoading", isDataLoaded: !1 });
480
480
  }).finally(() => {
481
- s(12, I = !1), s(13, U = !L.length);
481
+ s(12, I = !1), window.postMessage({ type: "DataLoading", isDataLoaded: !0 }), s(13, U = !L.length);
482
482
  });
483
483
  }, q = (n) => {
484
484
  const h = [];
@@ -496,7 +496,7 @@ function Je(t, e, s) {
496
496
  ...h,
497
497
  LogoUrl: h.Logos && h.Logos.length && h.Logos[0].LogoUrl ? `https:${h.Logos[0].LogoUrl}` : ""
498
498
  })), K = (n) => {
499
- s(6, N = n.Name), window.postMessage({ type: "SelectPayMeth", details: n }, window.location.href), dispatchEvent(new CustomEvent(
499
+ s(6, D = n.Name), window.postMessage({ type: "SelectPayMeth", details: n }, window.location.href), dispatchEvent(new CustomEvent(
500
500
  "selectPayMeth",
501
501
  {
502
502
  detail: n,
@@ -520,7 +520,7 @@ function Je(t, e, s) {
520
520
  }, we = () => {
521
521
  s(8, L = k), s(7, H = r("showLess"));
522
522
  }, ye = () => {
523
- 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"));
523
+ s(8, L = k.slice(0, +u)), D && !L.find((n) => n.Name === D) && L.splice(0, 0, k.find((n) => n.Name === D)), s(7, H = r("showAll"));
524
524
  }, be = () => {
525
525
  s(9, W = !0);
526
526
  }, Me = (n) => {
@@ -578,7 +578,7 @@ function Je(t, e, s) {
578
578
  p,
579
579
  P,
580
580
  C,
581
- N,
581
+ D,
582
582
  H,
583
583
  L,
584
584
  W,
@@ -1 +1 @@
1
- "use strict";var ye=Object.defineProperty,be=Object.defineProperties;var ve=Object.getOwnPropertyDescriptors;var K=Object.getOwnPropertySymbols;var Me=Object.prototype.hasOwnProperty,Le=Object.prototype.propertyIsEnumerable;var Q=(n,t,s)=>t in n?ye(n,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):n[t]=s,G=(n,t)=>{for(var s in t||(t={}))Me.call(t,s)&&Q(n,s,t[s]);if(K)for(var s of K(t))Le.call(t,s)&&Q(n,s,t[s]);return n},V=(n,t)=>be(n,ve(t));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CashierConfirmModal-KmRU3Mgr.cjs"),q=require("./CashierError-Dj9dAyT_.cjs"),Y=require("./CashierMethodDetails-Bs5PGaZC.cjs");function $(n,t){q.addMessages(n,t)}function ke(n){q.init({fallbackLocale:"en"}),q.$locale.set(n)}const ee={en:{generalMin:"Min",generalMax:"Max",showAll:"SHOW ALL",showLess:"SHOW LESS",error:"Error",noPaymentMethods:"No payment methods available"},uk:{generalMin:"Мін",generalMax:"Макс"},hr:{generalMin:"Minimalno",generalMax:"Maksimalno",showAll:"Prikaži sve",showLess:"Prikaži manje"},tr:{generalMin:"Min",generalMax:"Maks",showAll:"HEPSİNİ GÖSTER",showLess:"DAHA AZ GÖSTER",error:"Hata",noPaymentMethods:"Hiçbir ödeme yöntemi mevcut değil"},"en-us":{generalMin:"Min",generalMax:"Max",showAll:"SHOW ALL",showLess:"SHOW LESS"}};function Ce(n){e.append_styles(n,"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}}")}function te(n,t,s){const a=n.slice();return a[48]=t[s],a[50]=s,a}function ne(n){let t;return{c(){t=e.element("cashier-spinner"),e.set_custom_element_data(t,"clientstylingurl",n[4]),e.set_custom_element_data(t,"clientstyling",n[3])},m(s,a){e.insert(s,t,a)},p(s,a){a[0]&16&&e.set_custom_element_data(t,"clientstylingurl",s[4]),a[0]&8&&e.set_custom_element_data(t,"clientstyling",s[3])},d(s){s&&e.detach(t)}}}function se(n){let t,s,a,m,o=e.ensure_array_like(n[8]),r=[];for(let d=0;d<o.length;d+=1)r[d]=le(te(n,o,d));let i=n[13]&&!n[12]&&ie(n),c=n[7]&&oe(n);return{c(){t=e.element("div"),s=e.element("div");for(let d=0;d<r.length;d+=1)r[d].c();a=e.space(),i&&i.c(),m=e.space(),c&&c.c(),e.attr(s,"class","CashierMethodList"),e.attr(t,"class","CashierMethodListWidget")},m(d,g){e.insert(d,t,g),e.append(t,s);for(let u=0;u<r.length;u+=1)r[u]&&r[u].m(s,null);e.append(s,a),i&&i.m(s,null),e.append(t,m),c&&c.m(t,null),n[27](t)},p(d,g){if(g[0]&115008){o=e.ensure_array_like(d[8]);let u;for(u=0;u<o.length;u+=1){const p=te(d,o,u);r[u]?r[u].p(p,g):(r[u]=le(p),r[u].c(),r[u].m(s,a))}for(;u<r.length;u+=1)r[u].d(1);r.length=o.length}d[13]&&!d[12]?i?i.p(d,g):(i=ie(d),i.c(),i.m(s,null)):i&&(i.d(1),i=null),d[7]?c?c.p(d,g):(c=oe(d),c.c(),c.m(t,null)):c&&(c.d(1),c=null)},d(d){d&&e.detach(t),e.destroy_each(r,d),i&&i.d(),c&&c.d(),n[27](null)}}}function le(n){let t,s,a,m,o,r,i,c,d=(n[48].Label||n[48].Name)+"",g,u,p,f,k=n[14]("generalMin")+"",S,b,v=n[15].format(n[48].DisplayCurrency.MinAmountLimit)+"",C,x,y=n[48].DisplayCurrency.Name+"",E,W,M,T=n[14]("generalMax")+"",A,D,P=n[15].format(n[48].DisplayCurrency.MaxAmountLimit)+"",N,U,F=n[48].DisplayCurrency.Name+"",j,O,R;function B(){return n[25](n[48])}return{c(){t=e.element("div"),s=e.element("div"),a=e.element("img"),r=e.space(),i=e.element("div"),c=e.element("span"),g=e.text(d),u=e.space(),p=e.element("div"),f=e.element("span"),S=e.text(k),b=e.space(),C=e.text(v),x=e.space(),E=e.text(y),W=e.space(),M=e.element("span"),A=e.text(T),D=e.space(),N=e.text(P),U=e.space(),j=e.text(F),e.src_url_equal(a.src,m=n[48].LogoUrl)||e.attr(a,"src",m),e.attr(a,"alt",o=n[48].Label),e.attr(s,"class","MethodLogo"),e.attr(i,"class","MethodTitle"),e.attr(f,"class","Limits"),e.attr(M,"class","Limits"),e.attr(p,"class","MethodLimits"),e.attr(t,"class","SelectorWrapper"),e.toggle_class(t,"checked",n[6]===n[48].Name)},m(z,_){e.insert(z,t,_),e.append(t,s),e.append(s,a),e.append(t,r),e.append(t,i),e.append(i,c),e.append(c,g),e.append(t,u),e.append(t,p),e.append(p,f),e.append(f,S),e.append(f,b),e.append(f,C),e.append(f,x),e.append(f,E),e.append(p,W),e.append(p,M),e.append(M,A),e.append(M,D),e.append(M,N),e.append(M,U),e.append(M,j),O||(R=[e.listen(t,"click",B),e.listen(t,"keyup",xe)],O=!0)},p(z,_){n=z,_[0]&256&&!e.src_url_equal(a.src,m=n[48].LogoUrl)&&e.attr(a,"src",m),_[0]&256&&o!==(o=n[48].Label)&&e.attr(a,"alt",o),_[0]&256&&d!==(d=(n[48].Label||n[48].Name)+"")&&e.set_data(g,d),_[0]&16384&&k!==(k=n[14]("generalMin")+"")&&e.set_data(S,k),_[0]&256&&v!==(v=n[15].format(n[48].DisplayCurrency.MinAmountLimit)+"")&&e.set_data(C,v),_[0]&256&&y!==(y=n[48].DisplayCurrency.Name+"")&&e.set_data(E,y),_[0]&16384&&T!==(T=n[14]("generalMax")+"")&&e.set_data(A,T),_[0]&256&&P!==(P=n[15].format(n[48].DisplayCurrency.MaxAmountLimit)+"")&&e.set_data(N,P),_[0]&256&&F!==(F=n[48].DisplayCurrency.Name+"")&&e.set_data(j,F),_[0]&320&&e.toggle_class(t,"checked",n[6]===n[48].Name)},d(z){z&&e.detach(t),O=!1,e.run_all(R)}}}function ie(n){let t,s,a,m,o,r=n[14]("error")+"",i,c,d,g=n[14]("noPaymentMethods")+"",u;return{c(){t=e.element("div"),s=e.element("div"),a=e.element("div"),a.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>',m=e.space(),o=e.element("p"),i=e.text(r),c=e.space(),d=e.element("p"),u=e.text(g),e.attr(a,"class","IconWarning"),e.attr(o,"class","EmptyContentMessageTitle"),e.attr(s,"class","EmptyContentMessageHeader"),e.attr(d,"class","EmptyContentMessageText"),e.attr(t,"class","EmptyContentMessageWrapper"),e.toggle_class(t,"EmptyContentMessageDesktop",n[11])},m(p,f){e.insert(p,t,f),e.append(t,s),e.append(s,a),e.append(s,m),e.append(s,o),e.append(o,i),e.append(t,c),e.append(t,d),e.append(d,u)},p(p,f){f[0]&16384&&r!==(r=p[14]("error")+"")&&e.set_data(i,r),f[0]&16384&&g!==(g=p[14]("noPaymentMethods")+"")&&e.set_data(u,g),f[0]&2048&&e.toggle_class(t,"EmptyContentMessageDesktop",p[11])},d(p){p&&e.detach(t)}}}function oe(n){let t,s,a,m;return{c(){t=e.element("div"),s=e.text(n[7]),e.attr(t,"class","ShowAllButton")},m(o,r){e.insert(o,t,r),e.append(t,s),a||(m=e.listen(t,"click",n[26]),a=!0)},p(o,r){r[0]&128&&e.set_data(s,o[7])},d(o){o&&e.detach(t),a=!1,m()}}}function re(n){let t,s,a;return{c(){t=e.element("cashier-error"),s=e.element("span"),a=e.text(n[10]),e.attr(s,"slot","text"),e.set_custom_element_data(t,"lang",n[0]),e.set_custom_element_data(t,"assetsurl",n[1]),e.set_custom_element_data(t,"translationurl",n[2]),e.set_custom_element_data(t,"clientstylingurl",n[4]),e.set_custom_element_data(t,"clientstyling",n[3]),e.set_custom_element_data(t,"hidebuttons","true")},m(m,o){e.insert(m,t,o),e.append(t,s),e.append(s,a)},p(m,o){o[0]&1024&&e.set_data(a,m[10]),o[0]&1&&e.set_custom_element_data(t,"lang",m[0]),o[0]&2&&e.set_custom_element_data(t,"assetsurl",m[1]),o[0]&4&&e.set_custom_element_data(t,"translationurl",m[2]),o[0]&16&&e.set_custom_element_data(t,"clientstylingurl",m[4]),o[0]&8&&e.set_custom_element_data(t,"clientstyling",m[3])},d(m){m&&e.detach(t)}}}function Se(n){let t,s,a,m=n[12]&&ne(n),o=(n[9]||n[11])&&se(n),r=n[10]&&re(n);return{c(){m&&m.c(),t=e.space(),o&&o.c(),s=e.space(),r&&r.c(),a=e.empty()},m(i,c){m&&m.m(i,c),e.insert(i,t,c),o&&o.m(i,c),e.insert(i,s,c),r&&r.m(i,c),e.insert(i,a,c)},p(i,c){i[12]?m?m.p(i,c):(m=ne(i),m.c(),m.m(t.parentNode,t)):m&&(m.d(1),m=null),i[9]||i[11]?o?o.p(i,c):(o=se(i),o.c(),o.m(s.parentNode,s)):o&&(o.d(1),o=null),i[10]?r?r.p(i,c):(r=re(i),r.c(),r.m(a.parentNode,a)):r&&(r.d(1),r=null)},i:e.noop,o:e.noop,d(i){i&&(e.detach(t),e.detach(s),e.detach(a)),m&&m.d(i),o&&o.d(i),r&&r.d(i)}}}const xe=()=>{};function Ee(n,t,s){let a;e.component_subscribe(n,q.$format,l=>s(14,a=l)),Y.dayjs.extend(Y.utc);let{lang:m="en"}=t,{local:o="en-US"}=t,{endpoint:r}=t,{session:i}=t,{customerid:c}=t,{assetsurl:d}=t,{currency:g}=t,{numberofmethodsshown:u}=t,{translationurl:p=""}=t,{clientstyling:f=""}=t,{clientstylingurl:k=""}=t,{ismobileview:S}=t,b=[],v,C,x="",y=[],E=!0,W=new Intl.NumberFormat(o,{minimumFractionDigits:2}),M="",T,A=!0,D=!1,P=!1;var N;(function(l){l.PlayerSessionIsNotValid="PlayerSessionIsNotValid",l.Success="Success",l.JwtTokenError="JwtTokenError"})(N||(N={})),e.createEventDispatcher();const U=()=>{let l=p;if(l)return fetch(l).then(h=>h.json()).then(h=>{Object.keys(h).forEach(L=>{$(L,h[L])})}).catch(h=>{console.log(h)})};Object.keys(ee).forEach(l=>{$(l,ee[l])});const F=()=>{ke(m)},j=()=>{s(12,D=!0);const l=new URL(`${r}/v1/player/${c}/payment/GetPaymentMetadata`),h=new Headers;h.append("accept","application/json"),h.append("Content-Type","application/json"),h.append("X-Client-Request-Timestamp",Y.dayjs.utc().format("YYYY-MM-DD HH:mm:ss.SSS"));const L={method:"POST",headers:h,body:JSON.stringify({XPaymentSessionToken:i,Currency:g,Tags:{UserAgent:window.navigator.userAgent}})};fetch(l,L).then(w=>w.json()).then(w=>{var H;if(w.error){s(10,M=w.error);return}if(w.ResponseCode!==N.Success){T=w.ResponseCode,z();return}b=(H=w.PaymentMethods)!=null&&H.Ordering?O(w):R(w),s(7,x=u&&+u>0&&b.length>+u?a("showAll"):""),s(8,y=x?b.slice(0,+u):b),window.postMessage({type:"StartSessionCountdown",paymentMethodName:b[0].Name,xPaymentSessionToken:w.XPaymentSessionToken},window.location.href)}).finally(()=>{s(12,D=!1),s(13,P=!y.length)})},O=l=>{const h=[];return l.PaymentMethods.Ordering.DefaultPaymentMethodsOrder.forEach(L=>{const w=l.PaymentMethods.PaymentMethods.find(H=>H.Name===L);if(w){const H=(w==null?void 0:w.Logos.find(I=>I.LogoType==="Desktop"))||{},_e=(w==null?void 0:w.Logos.find(I=>I.LogoType==="Mobile"))||{},Z=A?H:_e;h.push(V(G({},w),{LogoUrl:Z.LogoUrl?`https:${Z.LogoUrl}`:""}))}}),h},R=l=>l.PaymentMethods.PaymentMethods.map(h=>V(G({},h),{LogoUrl:h.Logos&&h.Logos.length&&h.Logos[0].LogoUrl?`https:${h.Logos[0].LogoUrl}`:""})),B=l=>{s(6,C=l.Name),window.postMessage({type:"SelectPayMeth",details:l},window.location.href),dispatchEvent(new CustomEvent("selectPayMeth",{detail:l,bubbles:!0,cancelable:!0,composed:!0}))},z=()=>{window.postMessage({type:"ErrorResponseCode",errorResponseCode:T},window.location.href)},_=()=>{s(11,A=S==="false")},J=()=>{y==b?ce():me()},me=()=>{s(8,y=b),s(7,x=a("showLess"))},ce=()=>{s(8,y=b.slice(0,+u)),C&&!y.find(l=>l.Name===C)&&y.splice(0,0,b.find(l=>l.Name===C)),s(7,x=a("showAll"))},de=()=>{s(9,E=!0)},ue=l=>{s(9,E=!l.hideMethodsList)},he=()=>{let l=document.createElement("style");l.innerHTML=f,v.appendChild(l)},pe=()=>{let l=new URL(k),h=document.createElement("style");fetch(l.href).then(L=>L.text()).then(L=>{h.innerHTML=L,setTimeout(()=>{v.appendChild(h)},1),setTimeout(()=>{},500)})};e.onMount(()=>(window.addEventListener("message",X,!1),()=>{window.removeEventListener("message",X,!1)}));const X=l=>{switch(l.data.type){case"BackToMethodList":de();break;case"HideMethodsList":ue(l.data.details);break}},ge=l=>B(l),fe=()=>J();function we(l){e.binding_callbacks[l?"unshift":"push"](()=>{v=l,s(5,v)})}return n.$$set=l=>{"lang"in l&&s(0,m=l.lang),"local"in l&&s(18,o=l.local),"endpoint"in l&&s(19,r=l.endpoint),"session"in l&&s(20,i=l.session),"customerid"in l&&s(21,c=l.customerid),"assetsurl"in l&&s(1,d=l.assetsurl),"currency"in l&&s(22,g=l.currency),"numberofmethodsshown"in l&&s(23,u=l.numberofmethodsshown),"translationurl"in l&&s(2,p=l.translationurl),"clientstyling"in l&&s(3,f=l.clientstyling),"clientstylingurl"in l&&s(4,k=l.clientstylingurl),"ismobileview"in l&&s(24,S=l.ismobileview)},n.$$.update=()=>{n.$$.dirty[0]&3670016&&r&&i&&c&&j(),n.$$.dirty[0]&1&&m&&F(),n.$$.dirty[0]&40&&f&&v&&he(),n.$$.dirty[0]&48&&k&&v&&pe(),n.$$.dirty[0]&16777216&&S&&_(),n.$$.dirty[0]&5&&m&&p&&U()},[m,d,p,f,k,v,C,x,y,E,M,A,D,P,a,W,B,J,o,r,i,c,g,u,S,ge,fe,we]}class ae extends e.SvelteComponent{constructor(t){super(),e.init(this,t,Ee,Se,e.safe_not_equal,{lang:0,local:18,endpoint:19,session:20,customerid:21,assetsurl:1,currency:22,numberofmethodsshown:23,translationurl:2,clientstyling:3,clientstylingurl:4,ismobileview:24},Ce,[-1,-1])}get lang(){return this.$$.ctx[0]}set lang(t){this.$$set({lang:t}),e.flush()}get local(){return this.$$.ctx[18]}set local(t){this.$$set({local:t}),e.flush()}get endpoint(){return this.$$.ctx[19]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get session(){return this.$$.ctx[20]}set session(t){this.$$set({session:t}),e.flush()}get customerid(){return this.$$.ctx[21]}set customerid(t){this.$$set({customerid:t}),e.flush()}get assetsurl(){return this.$$.ctx[1]}set assetsurl(t){this.$$set({assetsurl:t}),e.flush()}get currency(){return this.$$.ctx[22]}set currency(t){this.$$set({currency:t}),e.flush()}get numberofmethodsshown(){return this.$$.ctx[23]}set numberofmethodsshown(t){this.$$set({numberofmethodsshown:t}),e.flush()}get translationurl(){return this.$$.ctx[2]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}get clientstyling(){return this.$$.ctx[3]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[4]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get ismobileview(){return this.$$.ctx[24]}set ismobileview(t){this.$$set({ismobileview:t}),e.flush()}}e.create_custom_element(ae,{lang:{},local:{},endpoint:{},session:{},customerid:{},assetsurl:{},currency:{},numberofmethodsshown:{},translationurl:{},clientstyling:{},clientstylingurl:{},ismobileview:{}},[],[],!0);exports.default=ae;
1
+ "use strict";var ye=Object.defineProperty,be=Object.defineProperties;var Me=Object.getOwnPropertyDescriptors;var K=Object.getOwnPropertySymbols;var ve=Object.prototype.hasOwnProperty,Le=Object.prototype.propertyIsEnumerable;var Q=(n,t,s)=>t in n?ye(n,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):n[t]=s,G=(n,t)=>{for(var s in t||(t={}))ve.call(t,s)&&Q(n,s,t[s]);if(K)for(var s of K(t))Le.call(t,s)&&Q(n,s,t[s]);return n},V=(n,t)=>be(n,Me(t));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CashierConfirmModal-BVT51ZOp.cjs"),q=require("./CashierError-YmV_PQP8.cjs"),Y=require("./CashierMethodDetails-Ba0LNaer.cjs");function $(n,t){q.addMessages(n,t)}function ke(n){q.init({fallbackLocale:"en"}),q.$locale.set(n)}const ee={en:{generalMin:"Min",generalMax:"Max",showAll:"SHOW ALL",showLess:"SHOW LESS",error:"Error",noPaymentMethods:"No payment methods available"},uk:{generalMin:"Мін",generalMax:"Макс"},hr:{generalMin:"Minimalno",generalMax:"Maksimalno",showAll:"Prikaži sve",showLess:"Prikaži manje"},tr:{generalMin:"Min",generalMax:"Maks",showAll:"HEPSİNİ GÖSTER",showLess:"DAHA AZ GÖSTER",error:"Hata",noPaymentMethods:"Hiçbir ödeme yöntemi mevcut değil"},"en-us":{generalMin:"Min",generalMax:"Max",showAll:"SHOW ALL",showLess:"SHOW LESS"}};function Ce(n){e.append_styles(n,"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}}")}function te(n,t,s){const a=n.slice();return a[48]=t[s],a[50]=s,a}function ne(n){let t;return{c(){t=e.element("cashier-spinner"),e.set_custom_element_data(t,"clientstylingurl",n[4]),e.set_custom_element_data(t,"clientstyling",n[3])},m(s,a){e.insert(s,t,a)},p(s,a){a[0]&16&&e.set_custom_element_data(t,"clientstylingurl",s[4]),a[0]&8&&e.set_custom_element_data(t,"clientstyling",s[3])},d(s){s&&e.detach(t)}}}function se(n){let t,s,a,m,o=e.ensure_array_like(n[8]),r=[];for(let c=0;c<o.length;c+=1)r[c]=le(te(n,o,c));let i=n[13]&&!n[12]&&ie(n),d=n[7]&&oe(n);return{c(){t=e.element("div"),s=e.element("div");for(let c=0;c<r.length;c+=1)r[c].c();a=e.space(),i&&i.c(),m=e.space(),d&&d.c(),e.attr(s,"class","CashierMethodList"),e.attr(t,"class","CashierMethodListWidget")},m(c,g){e.insert(c,t,g),e.append(t,s);for(let u=0;u<r.length;u+=1)r[u]&&r[u].m(s,null);e.append(s,a),i&&i.m(s,null),e.append(t,m),d&&d.m(t,null),n[27](t)},p(c,g){if(g[0]&115008){o=e.ensure_array_like(c[8]);let u;for(u=0;u<o.length;u+=1){const p=te(c,o,u);r[u]?r[u].p(p,g):(r[u]=le(p),r[u].c(),r[u].m(s,a))}for(;u<r.length;u+=1)r[u].d(1);r.length=o.length}c[13]&&!c[12]?i?i.p(c,g):(i=ie(c),i.c(),i.m(s,null)):i&&(i.d(1),i=null),c[7]?d?d.p(c,g):(d=oe(c),d.c(),d.m(t,null)):d&&(d.d(1),d=null)},d(c){c&&e.detach(t),e.destroy_each(r,c),i&&i.d(),d&&d.d(),n[27](null)}}}function le(n){let t,s,a,m,o,r,i,d,c=(n[48].Label||n[48].Name)+"",g,u,p,f,k=n[14]("generalMin")+"",S,b,M=n[15].format(n[48].DisplayCurrency.MinAmountLimit)+"",C,x,y=n[48].DisplayCurrency.Name+"",E,W,v,T=n[14]("generalMax")+"",A,D,P=n[15].format(n[48].DisplayCurrency.MaxAmountLimit)+"",N,U,F=n[48].DisplayCurrency.Name+"",j,O,R;function B(){return n[25](n[48])}return{c(){t=e.element("div"),s=e.element("div"),a=e.element("img"),r=e.space(),i=e.element("div"),d=e.element("span"),g=e.text(c),u=e.space(),p=e.element("div"),f=e.element("span"),S=e.text(k),b=e.space(),C=e.text(M),x=e.space(),E=e.text(y),W=e.space(),v=e.element("span"),A=e.text(T),D=e.space(),N=e.text(P),U=e.space(),j=e.text(F),e.src_url_equal(a.src,m=n[48].LogoUrl)||e.attr(a,"src",m),e.attr(a,"alt",o=n[48].Label),e.attr(s,"class","MethodLogo"),e.attr(i,"class","MethodTitle"),e.attr(f,"class","Limits"),e.attr(v,"class","Limits"),e.attr(p,"class","MethodLimits"),e.attr(t,"class","SelectorWrapper"),e.toggle_class(t,"checked",n[6]===n[48].Name)},m(z,_){e.insert(z,t,_),e.append(t,s),e.append(s,a),e.append(t,r),e.append(t,i),e.append(i,d),e.append(d,g),e.append(t,u),e.append(t,p),e.append(p,f),e.append(f,S),e.append(f,b),e.append(f,C),e.append(f,x),e.append(f,E),e.append(p,W),e.append(p,v),e.append(v,A),e.append(v,D),e.append(v,N),e.append(v,U),e.append(v,j),O||(R=[e.listen(t,"click",B),e.listen(t,"keyup",xe)],O=!0)},p(z,_){n=z,_[0]&256&&!e.src_url_equal(a.src,m=n[48].LogoUrl)&&e.attr(a,"src",m),_[0]&256&&o!==(o=n[48].Label)&&e.attr(a,"alt",o),_[0]&256&&c!==(c=(n[48].Label||n[48].Name)+"")&&e.set_data(g,c),_[0]&16384&&k!==(k=n[14]("generalMin")+"")&&e.set_data(S,k),_[0]&256&&M!==(M=n[15].format(n[48].DisplayCurrency.MinAmountLimit)+"")&&e.set_data(C,M),_[0]&256&&y!==(y=n[48].DisplayCurrency.Name+"")&&e.set_data(E,y),_[0]&16384&&T!==(T=n[14]("generalMax")+"")&&e.set_data(A,T),_[0]&256&&P!==(P=n[15].format(n[48].DisplayCurrency.MaxAmountLimit)+"")&&e.set_data(N,P),_[0]&256&&F!==(F=n[48].DisplayCurrency.Name+"")&&e.set_data(j,F),_[0]&320&&e.toggle_class(t,"checked",n[6]===n[48].Name)},d(z){z&&e.detach(t),O=!1,e.run_all(R)}}}function ie(n){let t,s,a,m,o,r=n[14]("error")+"",i,d,c,g=n[14]("noPaymentMethods")+"",u;return{c(){t=e.element("div"),s=e.element("div"),a=e.element("div"),a.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>',m=e.space(),o=e.element("p"),i=e.text(r),d=e.space(),c=e.element("p"),u=e.text(g),e.attr(a,"class","IconWarning"),e.attr(o,"class","EmptyContentMessageTitle"),e.attr(s,"class","EmptyContentMessageHeader"),e.attr(c,"class","EmptyContentMessageText"),e.attr(t,"class","EmptyContentMessageWrapper"),e.toggle_class(t,"EmptyContentMessageDesktop",n[11])},m(p,f){e.insert(p,t,f),e.append(t,s),e.append(s,a),e.append(s,m),e.append(s,o),e.append(o,i),e.append(t,d),e.append(t,c),e.append(c,u)},p(p,f){f[0]&16384&&r!==(r=p[14]("error")+"")&&e.set_data(i,r),f[0]&16384&&g!==(g=p[14]("noPaymentMethods")+"")&&e.set_data(u,g),f[0]&2048&&e.toggle_class(t,"EmptyContentMessageDesktop",p[11])},d(p){p&&e.detach(t)}}}function oe(n){let t,s,a,m;return{c(){t=e.element("div"),s=e.text(n[7]),e.attr(t,"class","ShowAllButton")},m(o,r){e.insert(o,t,r),e.append(t,s),a||(m=e.listen(t,"click",n[26]),a=!0)},p(o,r){r[0]&128&&e.set_data(s,o[7])},d(o){o&&e.detach(t),a=!1,m()}}}function re(n){let t,s,a;return{c(){t=e.element("cashier-error"),s=e.element("span"),a=e.text(n[10]),e.attr(s,"slot","text"),e.set_custom_element_data(t,"lang",n[0]),e.set_custom_element_data(t,"assetsurl",n[1]),e.set_custom_element_data(t,"translationurl",n[2]),e.set_custom_element_data(t,"clientstylingurl",n[4]),e.set_custom_element_data(t,"clientstyling",n[3]),e.set_custom_element_data(t,"hidebuttons","true")},m(m,o){e.insert(m,t,o),e.append(t,s),e.append(s,a)},p(m,o){o[0]&1024&&e.set_data(a,m[10]),o[0]&1&&e.set_custom_element_data(t,"lang",m[0]),o[0]&2&&e.set_custom_element_data(t,"assetsurl",m[1]),o[0]&4&&e.set_custom_element_data(t,"translationurl",m[2]),o[0]&16&&e.set_custom_element_data(t,"clientstylingurl",m[4]),o[0]&8&&e.set_custom_element_data(t,"clientstyling",m[3])},d(m){m&&e.detach(t)}}}function Se(n){let t,s,a,m=n[12]&&ne(n),o=(n[9]||n[11])&&se(n),r=n[10]&&re(n);return{c(){m&&m.c(),t=e.space(),o&&o.c(),s=e.space(),r&&r.c(),a=e.empty()},m(i,d){m&&m.m(i,d),e.insert(i,t,d),o&&o.m(i,d),e.insert(i,s,d),r&&r.m(i,d),e.insert(i,a,d)},p(i,d){i[12]?m?m.p(i,d):(m=ne(i),m.c(),m.m(t.parentNode,t)):m&&(m.d(1),m=null),i[9]||i[11]?o?o.p(i,d):(o=se(i),o.c(),o.m(s.parentNode,s)):o&&(o.d(1),o=null),i[10]?r?r.p(i,d):(r=re(i),r.c(),r.m(a.parentNode,a)):r&&(r.d(1),r=null)},i:e.noop,o:e.noop,d(i){i&&(e.detach(t),e.detach(s),e.detach(a)),m&&m.d(i),o&&o.d(i),r&&r.d(i)}}}const xe=()=>{};function Ee(n,t,s){let a;e.component_subscribe(n,q.$format,l=>s(14,a=l)),Y.dayjs.extend(Y.utc);let{lang:m="en"}=t,{local:o="en-US"}=t,{endpoint:r}=t,{session:i}=t,{customerid:d}=t,{assetsurl:c}=t,{currency:g}=t,{numberofmethodsshown:u}=t,{translationurl:p=""}=t,{clientstyling:f=""}=t,{clientstylingurl:k=""}=t,{ismobileview:S}=t,b=[],M,C,x="",y=[],E=!0,W=new Intl.NumberFormat(o,{minimumFractionDigits:2}),v="",T,A=!0,D=!1,P=!1;var N;(function(l){l.PlayerSessionIsNotValid="PlayerSessionIsNotValid",l.Success="Success",l.JwtTokenError="JwtTokenError"})(N||(N={})),e.createEventDispatcher();const U=()=>{let l=p;if(l)return fetch(l).then(h=>h.json()).then(h=>{Object.keys(h).forEach(L=>{$(L,h[L])})}).catch(h=>{console.log(h)})};Object.keys(ee).forEach(l=>{$(l,ee[l])});const F=()=>{ke(m)},j=()=>{s(12,D=!0);const l=new URL(`${r}/v1/player/${d}/payment/GetPaymentMetadata`),h=new Headers;h.append("accept","application/json"),h.append("Content-Type","application/json"),h.append("X-Client-Request-Timestamp",Y.dayjs.utc().format("YYYY-MM-DD HH:mm:ss.SSS"));const L={method:"POST",headers:h,body:JSON.stringify({XPaymentSessionToken:i,Currency:g,Tags:{UserAgent:window.navigator.userAgent}})};fetch(l,L).then(w=>w.json()).then(w=>{var H;if(w.error){s(10,v=w.error);return}if(w.ResponseCode!==N.Success){T=w.ResponseCode,z();return}b=(H=w.PaymentMethods)!=null&&H.Ordering?O(w):R(w),s(7,x=u&&+u>0&&b.length>+u?a("showAll"):""),s(8,y=x?b.slice(0,+u):b),window.postMessage({type:"StartSessionCountdown",paymentMethodName:b[0].Name,xPaymentSessionToken:w.XPaymentSessionToken},window.location.href),window.postMessage({type:"DataLoading",isDataLoaded:!1})}).finally(()=>{s(12,D=!1),window.postMessage({type:"DataLoading",isDataLoaded:!0}),s(13,P=!y.length)})},O=l=>{const h=[];return l.PaymentMethods.Ordering.DefaultPaymentMethodsOrder.forEach(L=>{const w=l.PaymentMethods.PaymentMethods.find(H=>H.Name===L);if(w){const H=(w==null?void 0:w.Logos.find(I=>I.LogoType==="Desktop"))||{},_e=(w==null?void 0:w.Logos.find(I=>I.LogoType==="Mobile"))||{},Z=A?H:_e;h.push(V(G({},w),{LogoUrl:Z.LogoUrl?`https:${Z.LogoUrl}`:""}))}}),h},R=l=>l.PaymentMethods.PaymentMethods.map(h=>V(G({},h),{LogoUrl:h.Logos&&h.Logos.length&&h.Logos[0].LogoUrl?`https:${h.Logos[0].LogoUrl}`:""})),B=l=>{s(6,C=l.Name),window.postMessage({type:"SelectPayMeth",details:l},window.location.href),dispatchEvent(new CustomEvent("selectPayMeth",{detail:l,bubbles:!0,cancelable:!0,composed:!0}))},z=()=>{window.postMessage({type:"ErrorResponseCode",errorResponseCode:T},window.location.href)},_=()=>{s(11,A=S==="false")},J=()=>{y==b?de():me()},me=()=>{s(8,y=b),s(7,x=a("showLess"))},de=()=>{s(8,y=b.slice(0,+u)),C&&!y.find(l=>l.Name===C)&&y.splice(0,0,b.find(l=>l.Name===C)),s(7,x=a("showAll"))},ce=()=>{s(9,E=!0)},ue=l=>{s(9,E=!l.hideMethodsList)},he=()=>{let l=document.createElement("style");l.innerHTML=f,M.appendChild(l)},pe=()=>{let l=new URL(k),h=document.createElement("style");fetch(l.href).then(L=>L.text()).then(L=>{h.innerHTML=L,setTimeout(()=>{M.appendChild(h)},1),setTimeout(()=>{},500)})};e.onMount(()=>(window.addEventListener("message",X,!1),()=>{window.removeEventListener("message",X,!1)}));const X=l=>{switch(l.data.type){case"BackToMethodList":ce();break;case"HideMethodsList":ue(l.data.details);break}},ge=l=>B(l),fe=()=>J();function we(l){e.binding_callbacks[l?"unshift":"push"](()=>{M=l,s(5,M)})}return n.$$set=l=>{"lang"in l&&s(0,m=l.lang),"local"in l&&s(18,o=l.local),"endpoint"in l&&s(19,r=l.endpoint),"session"in l&&s(20,i=l.session),"customerid"in l&&s(21,d=l.customerid),"assetsurl"in l&&s(1,c=l.assetsurl),"currency"in l&&s(22,g=l.currency),"numberofmethodsshown"in l&&s(23,u=l.numberofmethodsshown),"translationurl"in l&&s(2,p=l.translationurl),"clientstyling"in l&&s(3,f=l.clientstyling),"clientstylingurl"in l&&s(4,k=l.clientstylingurl),"ismobileview"in l&&s(24,S=l.ismobileview)},n.$$.update=()=>{n.$$.dirty[0]&3670016&&r&&i&&d&&j(),n.$$.dirty[0]&1&&m&&F(),n.$$.dirty[0]&40&&f&&M&&he(),n.$$.dirty[0]&48&&k&&M&&pe(),n.$$.dirty[0]&16777216&&S&&_(),n.$$.dirty[0]&5&&m&&p&&U()},[m,c,p,f,k,M,C,x,y,E,v,A,D,P,a,W,B,J,o,r,i,d,g,u,S,ge,fe,we]}class ae extends e.SvelteComponent{constructor(t){super(),e.init(this,t,Ee,Se,e.safe_not_equal,{lang:0,local:18,endpoint:19,session:20,customerid:21,assetsurl:1,currency:22,numberofmethodsshown:23,translationurl:2,clientstyling:3,clientstylingurl:4,ismobileview:24},Ce,[-1,-1])}get lang(){return this.$$.ctx[0]}set lang(t){this.$$set({lang:t}),e.flush()}get local(){return this.$$.ctx[18]}set local(t){this.$$set({local:t}),e.flush()}get endpoint(){return this.$$.ctx[19]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get session(){return this.$$.ctx[20]}set session(t){this.$$set({session:t}),e.flush()}get customerid(){return this.$$.ctx[21]}set customerid(t){this.$$set({customerid:t}),e.flush()}get assetsurl(){return this.$$.ctx[1]}set assetsurl(t){this.$$set({assetsurl:t}),e.flush()}get currency(){return this.$$.ctx[22]}set currency(t){this.$$set({currency:t}),e.flush()}get numberofmethodsshown(){return this.$$.ctx[23]}set numberofmethodsshown(t){this.$$set({numberofmethodsshown:t}),e.flush()}get translationurl(){return this.$$.ctx[2]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}get clientstyling(){return this.$$.ctx[3]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[4]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get ismobileview(){return this.$$.ctx[24]}set ismobileview(t){this.$$set({ismobileview:t}),e.flush()}}e.create_custom_element(ae,{lang:{},local:{},endpoint:{},session:{},customerid:{},assetsurl:{},currency:{},numberofmethodsshown:{},translationurl:{},clientstyling:{},clientstylingurl:{},ismobileview:{}},[],[],!0);exports.default=ae;
@@ -10,9 +10,9 @@ var re = (t, e, s) => e in t ? Pe(t, e, { enumerable: !0, configurable: !0, writ
10
10
  Fe.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 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-BErwh2fQ.js";
14
+ import { a as Je, i as Xe, $ as Ke, b as Qe } from "./CashierError-DoHJAf67.js";
15
+ import { d as de, u as Ze } from "./CashierMethodDetails-T4mbzimW.js";
16
16
  function ue(t, e) {
17
17
  Je(t, e);
18
18
  }
@@ -21,7 +21,7 @@ function $e(t) {
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
  }
@@ -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*/
@@ -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);
@@ -160,7 +160,7 @@ 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
166
  ), F, k, C = (
@@ -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 = x(c), u = _(), h = 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*/
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,7 +207,7 @@ 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
+ 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, h), d(h, p), d(p, F), d(p, k), d(p, N), d(p, H), d(p, W), d(h, J), d(h, E), d(E, O), d(E, I), d(E, R), d(E, X), d(E, q), Y || (K = [
211
211
  se(e, "click", Q),
212
212
  se(e, "keyup", st)
213
213
  ], Y = !0);
@@ -269,24 +269,24 @@ function ye(t) {
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
+ z(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") + "") && T(i, o), p[0] & /*$_*/
279
279
  16384 && f !== (f = /*$_*/
280
- g[14]("noPaymentMethods") + "") && T(u, f), p[0] & /*desktopView*/
280
+ h[14]("noPaymentMethods") + "") && T(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 && D(e);
290
290
  }
291
291
  };
292
292
  }
@@ -438,34 +438,34 @@ const st = () => {
438
438
  function nt(t, e, s) {
439
439
  let r;
440
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;
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: F } = e, k = [], C, N, H = "", L = [], W = !0, J = new Intl.NumberFormat(l, { minimumFractionDigits: 2 }), E = "", j, O = !0, I = !1, U = !1;
442
442
  var R;
443
443
  (function(n) {
444
444
  n.PlayerSessionIsNotValid = "PlayerSessionIsNotValid", n.Success = "Success", n.JwtTokenError = "JwtTokenError";
445
445
  })(R || (R = {})), Ie();
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,
@@ -489,23 +489,23 @@ function nt(t, e, s) {
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, U = !L.length);
495
495
  });
496
496
  }, Y = (n) => {
497
- const h = [];
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
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), {
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",
@@ -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(
@@ -573,7 +573,7 @@ function nt(t, e, s) {
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, F = 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*/
@@ -581,11 +581,11 @@ function nt(t, e, s) {
581
581
  40 && p && C && Ce(), t.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
582
582
  48 && P && C && Se(), t.$$.dirty[0] & /*ismobileview*/
583
583
  16777216 && F && M(), t.$$.dirty[0] & /*lang, translationurl*/
584
- 5 && a && g && X();
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,
@@ -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-BVT51ZOp.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,4 +1,4 @@
1
- import { R as F, S as O, b as D, f as g, c as G, a as N, d as P, x as A, k as L, t as m, p, q as I, v as j, G as J, e as K, g as y, j as h, F as M, l as v, T as Q, u as V, m as X, o as Y, U as k, B as Z, C as S } from "./CashierConfirmModal-h87-4Uqk.js";
1
+ import { R as F, S as O, b as D, f as g, c as G, a as N, d as P, x as A, k as L, t as m, p, q as I, v as j, G as J, e as K, g as y, j as h, F as M, l as v, T as Q, u as V, m as X, o as Y, U as k, B as Z, C as S } from "./CashierConfirmModal-BErwh2fQ.js";
2
2
  function x(n, { delay: t = 0, duration: e = 400, easing: i = F } = {}) {
3
3
  const l = +getComputedStyle(n).opacity;
4
4
  return {
@@ -1,4 +1,4 @@
1
- import { R as F, S as O, b as D, f as g, c as G, a as N, d as P, x as A, k as L, t as m, p, q as I, v as j, G as J, e as K, g as y, j as h, F as M, l as v, T as Q, u as V, m as X, o as Y, U as k, B as Z, C as S } from "./CashierConfirmModal-Bho8FqJK.js";
1
+ import { R as F, S as O, b as D, f as g, c as G, a as N, d as P, x as A, k as L, t as m, p, q as I, v as j, G as J, e as K, g as y, j as h, F as M, l as v, T as Q, u as V, m as X, o as Y, U as k, B as Z, C as S } from "./CashierConfirmModal-B0WZGuf5.js";
2
2
  function x(n, { delay: t = 0, duration: e = 400, easing: i = F } = {}) {
3
3
  const l = +getComputedStyle(n).opacity;
4
4
  return {
@@ -1,4 +1,4 @@
1
- import { S as C, b as v, f as d, c as _, a as k, d as N, g as h, y as b, h as z, j as S, k as E, l as f, A as L, z as p, n as x, v as M, C as T } from "./CashierConfirmModal-Bho8FqJK.js";
1
+ import { S as C, b as v, f as d, c as _, a as k, d as N, g as h, y as b, h as z, j as S, k as E, l as f, A as L, z as p, n as x, v as M, C as T } from "./CashierConfirmModal-B0WZGuf5.js";
2
2
  function H(n) {
3
3
  N(n, "svelte-ags340", ".CashierNotifications{position:absolute;z-index:2;background-color:var(--emw--color-background, #111);color:var(--emw--color-white, #fff);display:flex;border-radius:var(--emw--border-radius-medium, 4px);align-items:center;gap:var(--emw--spacing-small, 12px);font-size:var(--emw--font-size-small, 14px);padding:var(--emw--spacing-small, 12px) var(--emw--spacing-medium, 15px);min-height:50px;pointer-events:auto;bottom:0;width:calc(100% - 30px)}.CashierNotifications span,.CashierNotifications button{font-family:inherit;border:none;font-variant:normal}.CashierNotifications span{line-height:normal}.CashierNotifications button{color:var(--emw--color-primary, #7EC51E);background-color:transparent;cursor:pointer;font-size:var(--emw--font-size-medium, 16px);font-style:normal;font-weight:var(--emw--font-weight-bold, 700);font-family:inherit}");
4
4
  }
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CashierConfirmModal-KmRU3Mgr.cjs");function y(i){t.append_styles(i,"svelte-ags340",".CashierNotifications{position:absolute;z-index:2;background-color:var(--emw--color-background, #111);color:var(--emw--color-white, #fff);display:flex;border-radius:var(--emw--border-radius-medium, 4px);align-items:center;gap:var(--emw--spacing-small, 12px);font-size:var(--emw--font-size-small, 14px);padding:var(--emw--spacing-small, 12px) var(--emw--spacing-medium, 15px);min-height:50px;pointer-events:auto;bottom:0;width:calc(100% - 30px)}.CashierNotifications span,.CashierNotifications button{font-family:inherit;border:none;font-variant:normal}.CashierNotifications span{line-height:normal}.CashierNotifications button{color:var(--emw--color-primary, #7EC51E);background-color:transparent;cursor:pointer;font-size:var(--emw--font-size-medium, 16px);font-style:normal;font-weight:var(--emw--font-weight-bold, 700);font-family:inherit}")}function b(i){let e,s,c,f,o,a,l,d;return{c(){e=t.element("div"),s=t.element("span"),c=t.text(i[0]),f=t.space(),o=t.element("button"),a=t.text(i[1]),t.attr(e,"class","CashierNotifications")},m(r,u){t.insert(r,e,u),t.append(e,s),t.append(s,c),t.append(e,f),t.append(e,o),t.append(o,a),i[6](e),l||(d=t.listen(o,"click",i[3]),l=!0)},p(r,[u]){u&1&&t.set_data(c,r[0]),u&2&&t.set_data(a,r[1])},i:t.noop,o:t.noop,d(r){r&&t.detach(e),i[6](null),l=!1,d()}}}function x(i,e,s){let{text:c}=e,{button:f}=e,{clientstyling:o=""}=e,{clientstylingurl:a=""}=e,l;const d=()=>{window.postMessage({type:"NotificationButtonClick"},window.location.href)},r=()=>{let n=document.createElement("style");n.innerHTML=o,l.appendChild(n)},u=()=>{let n=new URL(a),h=document.createElement("style");fetch(n.href).then(m=>m.text()).then(m=>{h.innerHTML=m,setTimeout(()=>{l.appendChild(h)},1)})};function p(n){t.binding_callbacks[n?"unshift":"push"](()=>{l=n,s(2,l)})}return i.$$set=n=>{"text"in n&&s(0,c=n.text),"button"in n&&s(1,f=n.button),"clientstyling"in n&&s(4,o=n.clientstyling),"clientstylingurl"in n&&s(5,a=n.clientstylingurl)},i.$$.update=()=>{i.$$.dirty&20&&o&&l&&r(),i.$$.dirty&36&&a&&l&&u()},[c,f,l,d,o,a,p]}class g extends t.SvelteComponent{constructor(e){super(),t.init(this,e,x,b,t.safe_not_equal,{text:0,button:1,clientstyling:4,clientstylingurl:5},y)}get text(){return this.$$.ctx[0]}set text(e){this.$$set({text:e}),t.flush()}get button(){return this.$$.ctx[1]}set button(e){this.$$set({button:e}),t.flush()}get clientstyling(){return this.$$.ctx[4]}set clientstyling(e){this.$$set({clientstyling:e}),t.flush()}get clientstylingurl(){return this.$$.ctx[5]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),t.flush()}}t.create_custom_element(g,{text:{},button:{},clientstyling:{},clientstylingurl:{}},[],[],!0);exports.default=g;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CashierConfirmModal-BVT51ZOp.cjs");function y(i){t.append_styles(i,"svelte-ags340",".CashierNotifications{position:absolute;z-index:2;background-color:var(--emw--color-background, #111);color:var(--emw--color-white, #fff);display:flex;border-radius:var(--emw--border-radius-medium, 4px);align-items:center;gap:var(--emw--spacing-small, 12px);font-size:var(--emw--font-size-small, 14px);padding:var(--emw--spacing-small, 12px) var(--emw--spacing-medium, 15px);min-height:50px;pointer-events:auto;bottom:0;width:calc(100% - 30px)}.CashierNotifications span,.CashierNotifications button{font-family:inherit;border:none;font-variant:normal}.CashierNotifications span{line-height:normal}.CashierNotifications button{color:var(--emw--color-primary, #7EC51E);background-color:transparent;cursor:pointer;font-size:var(--emw--font-size-medium, 16px);font-style:normal;font-weight:var(--emw--font-weight-bold, 700);font-family:inherit}")}function b(i){let e,s,c,f,o,a,l,d;return{c(){e=t.element("div"),s=t.element("span"),c=t.text(i[0]),f=t.space(),o=t.element("button"),a=t.text(i[1]),t.attr(e,"class","CashierNotifications")},m(r,u){t.insert(r,e,u),t.append(e,s),t.append(s,c),t.append(e,f),t.append(e,o),t.append(o,a),i[6](e),l||(d=t.listen(o,"click",i[3]),l=!0)},p(r,[u]){u&1&&t.set_data(c,r[0]),u&2&&t.set_data(a,r[1])},i:t.noop,o:t.noop,d(r){r&&t.detach(e),i[6](null),l=!1,d()}}}function x(i,e,s){let{text:c}=e,{button:f}=e,{clientstyling:o=""}=e,{clientstylingurl:a=""}=e,l;const d=()=>{window.postMessage({type:"NotificationButtonClick"},window.location.href)},r=()=>{let n=document.createElement("style");n.innerHTML=o,l.appendChild(n)},u=()=>{let n=new URL(a),h=document.createElement("style");fetch(n.href).then(m=>m.text()).then(m=>{h.innerHTML=m,setTimeout(()=>{l.appendChild(h)},1)})};function p(n){t.binding_callbacks[n?"unshift":"push"](()=>{l=n,s(2,l)})}return i.$$set=n=>{"text"in n&&s(0,c=n.text),"button"in n&&s(1,f=n.button),"clientstyling"in n&&s(4,o=n.clientstyling),"clientstylingurl"in n&&s(5,a=n.clientstylingurl)},i.$$.update=()=>{i.$$.dirty&20&&o&&l&&r(),i.$$.dirty&36&&a&&l&&u()},[c,f,l,d,o,a,p]}class g extends t.SvelteComponent{constructor(e){super(),t.init(this,e,x,b,t.safe_not_equal,{text:0,button:1,clientstyling:4,clientstylingurl:5},y)}get text(){return this.$$.ctx[0]}set text(e){this.$$set({text:e}),t.flush()}get button(){return this.$$.ctx[1]}set button(e){this.$$set({button:e}),t.flush()}get clientstyling(){return this.$$.ctx[4]}set clientstyling(e){this.$$set({clientstyling:e}),t.flush()}get clientstylingurl(){return this.$$.ctx[5]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),t.flush()}}t.create_custom_element(g,{text:{},button:{},clientstyling:{},clientstylingurl:{}},[],[],!0);exports.default=g;
@@ -1,4 +1,4 @@
1
- import { S as C, b as v, f as d, c as _, a as k, d as N, g as h, y as b, h as z, j as S, k as E, l as f, A as L, z as p, n as x, v as M, C as T } from "./CashierConfirmModal-h87-4Uqk.js";
1
+ import { S as C, b as v, f as d, c as _, a as k, d as N, g as h, y as b, h as z, j as S, k as E, l as f, A as L, z as p, n as x, v as M, C as T } from "./CashierConfirmModal-BErwh2fQ.js";
2
2
  function H(n) {
3
3
  N(n, "svelte-ags340", ".CashierNotifications{position:absolute;z-index:2;background-color:var(--emw--color-background, #111);color:var(--emw--color-white, #fff);display:flex;border-radius:var(--emw--border-radius-medium, 4px);align-items:center;gap:var(--emw--spacing-small, 12px);font-size:var(--emw--font-size-small, 14px);padding:var(--emw--spacing-small, 12px) var(--emw--spacing-medium, 15px);min-height:50px;pointer-events:auto;bottom:0;width:calc(100% - 30px)}.CashierNotifications span,.CashierNotifications button{font-family:inherit;border:none;font-variant:normal}.CashierNotifications span{line-height:normal}.CashierNotifications button{color:var(--emw--color-primary, #7EC51E);background-color:transparent;cursor:pointer;font-size:var(--emw--font-size-medium, 16px);font-style:normal;font-weight:var(--emw--font-weight-bold, 700);font-family:inherit}");
4
4
  }