@everymatrix/cashier-page 1.93.77 → 1.93.151

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 (78) hide show
  1. package/components/CashierCarousel-BSxG-xai.cjs +1 -0
  2. package/components/CashierCarousel-CaSLwSQZ.js +711 -0
  3. package/components/CashierCarousel-hhzygSIh.js +708 -0
  4. package/components/CashierError-8nBQ12Ro.cjs +1 -0
  5. package/components/{CashierError-Dl1PsAvl.js → CashierError-CUmyB5lN.js} +15 -14
  6. package/components/{CashierError-BtMqsFpr.js → CashierError-ChfgU3dy.js} +15 -14
  7. package/components/CashierHeader-Cxg2Bbwv.cjs +1 -0
  8. package/components/CashierHeader-CztzLdMZ.js +477 -0
  9. package/components/CashierHeader-LzICktCn.js +477 -0
  10. package/components/{CashierIframeRedirect-B_XLllRU.js → CashierIframeRedirect-Cmjb6V8k.js} +79 -94
  11. package/components/{CashierIframeRedirect-wYvtOAcP.js → CashierIframeRedirect-DPrxcEUI.js} +75 -90
  12. package/components/CashierIframeRedirect-DhxaD3C-.cjs +1 -0
  13. package/components/CashierMethodDetails-BtSiMmg9.cjs +85 -0
  14. package/components/{CashierMethodDetails-CoECDT3U.js → CashierMethodDetails-DSPP4Q1p.js} +3236 -3540
  15. package/components/{CashierMethodDetails-B-zfLkW5.js → CashierMethodDetails-JcREkr2L.js} +3469 -3781
  16. package/components/{CashierMethodsList-dTReweV9.js → CashierMethodsList-0LyVXgQ0.js} +80 -88
  17. package/components/{CashierMethodsList-Do9Fh3F4.js → CashierMethodsList-Cw44onHK.js} +89 -97
  18. package/components/CashierMethodsList-DDdnWCVs.cjs +1 -0
  19. package/components/{CashierModal-DmFWYYBv.js → CashierModal-BWJqiuUm.js} +35 -34
  20. package/components/CashierModal-CbW-aJRp.cjs +1 -0
  21. package/components/{CashierModal-Dbo2y6I0.js → CashierModal-Cx16xGm6.js} +53 -52
  22. package/components/{CashierNotifications-CCfHWtui.js → CashierNotifications-BNacIn3G.js} +27 -27
  23. package/components/{CashierNotifications-BF72AddE.js → CashierNotifications-CGPpJwPT.js} +29 -29
  24. package/components/CashierNotifications-COhg-R-t.cjs +1 -0
  25. package/components/CashierPage-BHPTJcjL.js +10233 -0
  26. package/components/CashierPage-CYk7P-lY.js +10286 -0
  27. package/components/CashierPage-DoQEkSE2.cjs +23 -0
  28. package/components/CashierReceiptPage-DQlDMGoG.cjs +29 -0
  29. package/components/{CashierReceiptPage-Bjp-HwnC.js → CashierReceiptPage-DnxAMr9D.js} +124 -121
  30. package/components/{CashierReceiptPage-BLiZ7mNE.js → CashierReceiptPage-IKLG5tQV.js} +84 -81
  31. package/components/{CashierSessionExpirationModal-CVdrjw0I.js → CashierSessionExpirationModal-BubeLoKh.js} +58 -59
  32. package/components/{CashierSessionExpirationModal-Do7XOOpQ.js → CashierSessionExpirationModal-C_2xlICF.js} +58 -59
  33. package/components/CashierSessionExpirationModal-DmrmH2xx.cjs +2 -0
  34. package/components/{CashierSpinner-BJI9qezE.js → CashierSpinner-B_Ey78yx.js} +15 -14
  35. package/components/CashierSpinner-BlRqsMug.cjs +1 -0
  36. package/components/{CashierSpinner-DOUYOomg.js → CashierSpinner-CwcwkjeV.js} +19 -18
  37. package/components/{CashierStepUp-C3MjcoUT.js → CashierStepUp-CSBqoOrt.js} +7 -6
  38. package/components/CashierStepUp-DVXV10Vd.cjs +1 -0
  39. package/components/{CashierStepUp-NMJhP_y_.js → CashierStepUp-f4sFTU4l.js} +48 -47
  40. package/components/{CashierTransactionHistory-BRaDPWFB.js → CashierTransactionHistory-1SskkrpF.js} +53 -54
  41. package/components/{CashierTransactionHistory-CABio3EJ.js → CashierTransactionHistory-BMYFeuL5.js} +53 -54
  42. package/components/CashierTransactionHistory-DlID7rkA.cjs +1 -0
  43. package/components/{CashierVerifications-C8e8v7qQ.js → CashierVerifications-BjpOrTTp.js} +148 -132
  44. package/components/{CashierVerifications-CszR8nAF.js → CashierVerifications-Dp5nS2oy.js} +155 -139
  45. package/components/CashierVerifications-truLPmcH.cjs +1 -0
  46. package/components/{TxnStatusIcon-DbrDCliI.js → TxnStatusIcon-BNxmTC8i.js} +12 -12
  47. package/components/TxnStatusIcon-CNarrbiO.cjs +1 -0
  48. package/components/{TxnStatusIcon-z17R4Qdy.js → TxnStatusIcon-DyCxSWXD.js} +1 -1
  49. package/components/{TxnTypeIcons-DA4xjdSc.js → TxnTypeIcons-D0Vb7S38.js} +1 -1
  50. package/components/TxnTypeIcons-DFWcjK5-.cjs +1 -0
  51. package/components/{TxnTypeIcons-_jm1frsR.js → TxnTypeIcons-Dtk3rc1Y.js} +1 -1
  52. package/es2015/cashier-page.cjs +1 -1
  53. package/es2015/cashier-page.js +1 -1
  54. package/esnext/cashier-page.js +1 -1
  55. package/package.json +1 -1
  56. package/components/CashierCarousel-B0fVKMjP.js +0 -5871
  57. package/components/CashierCarousel-BekweMPA.cjs +0 -23
  58. package/components/CashierCarousel-BtKQtzdv.js +0 -5833
  59. package/components/CashierError-Co7r_Zm9.cjs +0 -1
  60. package/components/CashierHeader-BPxfHV7O.js +0 -418
  61. package/components/CashierHeader-BfBH2bp5.js +0 -418
  62. package/components/CashierHeader-CCqfqjfy.cjs +0 -1
  63. package/components/CashierIframeRedirect-BjtL1epU.cjs +0 -1
  64. package/components/CashierMethodDetails-ClsKYPK5.cjs +0 -85
  65. package/components/CashierMethodsList-CX1RHQKw.cjs +0 -1
  66. package/components/CashierModal-D_cTbvqs.cjs +0 -1
  67. package/components/CashierNotifications-O-t5pi8m.cjs +0 -1
  68. package/components/CashierPage-CVtPx9LE.js +0 -4787
  69. package/components/CashierPage-CdNfJQft.cjs +0 -1
  70. package/components/CashierPage-D00hk2xv.js +0 -4753
  71. package/components/CashierReceiptPage-CAEjh0Hb.cjs +0 -26
  72. package/components/CashierSessionExpirationModal-ChfyO8Ae.cjs +0 -2
  73. package/components/CashierSpinner-BNkBVuft.cjs +0 -1
  74. package/components/CashierStepUp-BFJ7us6S.cjs +0 -1
  75. package/components/CashierTransactionHistory-BSW2OhH0.cjs +0 -1
  76. package/components/CashierVerifications-C8Gar_7s.cjs +0 -1
  77. package/components/TxnStatusIcon-BcQgw6kQ.cjs +0 -1
  78. package/components/TxnTypeIcons-keA0IcNM.cjs +0 -1
@@ -1,12 +1,12 @@
1
- import { a as Ve, i as Xe, $ as Ze, S as Je, b as Ke, s as Qe, f as y, c as $e, I as ge, d as z, h as x, r as P, w as Ne, l as pe, o as et, Q as tt, q as a, j as f, k as h, x as E, B as A, y as D, P as ot, v as st, z as me, Y as le, a0 as ye, a6 as nt, W as re, a4 as it, A as we, D as rt, E as lt, F as at, G as mt, H as ct } from "./CashierCarousel-BtKQtzdv.js";
2
- import { d as Me, u as dt, x as be } from "./CashierMethodDetails-B-zfLkW5.js";
1
+ import { a as Ve, i as Xe, $ as Je, S as Ze, b as Ke, s as Qe, f as y, d as $e, z as ge, g as z, l as x, o as P, v as Ae, q as pe, M as ye, N as et, r as tt, K as ot, m as a, n as f, p as h, w as E, O as N, x as D, C as st, y as nt, A as me, L as le, D as we, E as it, I as re, F as rt, J as Me, c as lt, B as at, R as be } from "./CashierPage-BHPTJcjL.js";
2
+ import { s as mt, a as ct, b as dt } from "./CashierHeader-LzICktCn.js";
3
3
  function ve(t, e) {
4
4
  Ve(t, e);
5
5
  }
6
6
  function ut(t) {
7
7
  Xe({
8
8
  fallbackLocale: "en"
9
- }), Ze.set(t);
9
+ }), Je.set(t);
10
10
  }
11
11
  const _e = {
12
12
  en: {
@@ -148,7 +148,7 @@ function Ce(t) {
148
148
  };
149
149
  }
150
150
  function ht(t) {
151
- let e, o = ye(
151
+ let e, o = we(
152
152
  /*paymentMethodsToShow*/
153
153
  t[11]
154
154
  ), n = [];
@@ -158,7 +158,7 @@ function ht(t) {
158
158
  c() {
159
159
  for (let s = 0; s < n.length; s += 1)
160
160
  n[s].c();
161
- e = Ne();
161
+ e = Ae();
162
162
  },
163
163
  m(s, i) {
164
164
  for (let l = 0; l < n.length; l += 1)
@@ -168,7 +168,7 @@ function ht(t) {
168
168
  p(s, i) {
169
169
  if (i[0] & /*selectedPaymentMethod, paymentMethodsToShow, selectPayMeth, $_, type, desktopView, precisionCurrenciesMap, numericCurrencyDecimals*/
170
170
  469824) {
171
- o = ye(
171
+ o = we(
172
172
  /*paymentMethodsToShow*/
173
173
  s[11]
174
174
  );
@@ -183,7 +183,7 @@ function ht(t) {
183
183
  }
184
184
  },
185
185
  d(s) {
186
- s && z(e), nt(n, s);
186
+ s && z(e), it(n, s);
187
187
  }
188
188
  };
189
189
  }
@@ -304,10 +304,10 @@ function Te(t) {
304
304
  /*payMeth*/
305
305
  (t[58].Label || /*payMeth*/
306
306
  t[58].Name) + ""
307
- ), Z, R, W, O, F, I, U = (
307
+ ), J, I, W, R, F, O, j = (
308
308
  /*$_*/
309
309
  t[17]("generalMin") + ""
310
- ), J, ee, G = re(
310
+ ), Z, ee, q = re(
311
311
  /*payMeth*/
312
312
  t[58].DisplayCurrency.MinAmountLimit,
313
313
  /*payMeth*/
@@ -330,7 +330,7 @@ function Te(t) {
330
330
  t[16]
331
331
  )
332
332
  }
333
- ) + "", te, q, j, K = (
333
+ ) + "", te, G, U, K = (
334
334
  /*$_*/
335
335
  t[17]("generalMax") + ""
336
336
  ), T, ne, oe = re(
@@ -375,13 +375,9 @@ function Te(t) {
375
375
  }
376
376
  return {
377
377
  c() {
378
- e = f("div"), o = f("div"), n = f("img"), l = P(), d = f("div"), M && M.c(), u = P(), m = f("div"), c = f("div"), g = f("span"), Z = D(X), R = P(), b && b.c(), W = P(), O = f("div"), F = f("span"), I = f("p"), J = D(U), ee = P(), te = D(G), q = P(), j = f("p"), T = D(K), ne = P(), S = D(oe), B = P(), w && w.c(), Y = P(), we(n.src, s = /*payMeth*/
379
- t[58].LogoRelativeUrl ? `${window.origin}${/*payMeth*/
380
- t[58].LogoRelativeUrl}` : (
381
- /*payMeth*/
382
- t[58].LogoUrl
383
- )) || h(n, "src", s), h(n, "alt", i = /*payMeth*/
384
- t[58].Label), h(o, "class", "MethodLogo"), h(d, "class", "MethodFavorite"), h(c, "class", "MethodTitle"), h(F, "class", "Limits"), h(O, "class", "MethodLimits"), h(m, "class", "MethodInfo"), h(e, "class", "SelectorWrapper"), le(
378
+ e = f("div"), o = f("div"), n = f("img"), l = P(), d = f("div"), M && M.c(), u = P(), m = f("div"), c = f("div"), g = f("span"), J = D(X), I = P(), b && b.c(), W = P(), R = f("div"), F = f("span"), O = f("p"), Z = D(j), ee = P(), te = D(q), G = P(), U = f("p"), T = D(K), ne = P(), S = D(oe), B = P(), w && w.c(), Y = P(), Me(n.src, s = /*payMeth*/
379
+ t[58].LogoUrl) || h(n, "src", s), h(n, "alt", i = /*payMeth*/
380
+ t[58].Label), h(o, "class", "MethodLogo"), h(d, "class", "MethodFavorite"), h(c, "class", "MethodTitle"), h(F, "class", "Limits"), h(R, "class", "MethodLimits"), h(m, "class", "MethodInfo"), h(e, "class", "SelectorWrapper"), le(
385
381
  e,
386
382
  "checked",
387
383
  /*selectedPaymentMethod*/
@@ -390,29 +386,25 @@ function Te(t) {
390
386
  );
391
387
  },
392
388
  m(V, v) {
393
- x(V, e, v), a(e, o), a(o, n), a(e, l), a(e, d), M && M.m(d, null), a(e, u), a(e, m), a(m, c), a(c, g), a(g, Z), a(m, R), b && b.m(m, null), a(m, W), a(m, O), a(O, F), a(F, I), a(I, J), a(I, ee), a(I, te), a(F, q), a(F, j), a(j, T), a(j, ne), a(j, S), a(m, B), w && w.m(m, null), a(e, Y), k || (Q = [
389
+ x(V, e, v), a(e, o), a(o, n), a(e, l), a(e, d), M && M.m(d, null), a(e, u), a(e, m), a(m, c), a(c, g), a(g, J), a(m, I), b && b.m(m, null), a(m, W), a(m, R), a(R, F), a(F, O), a(O, Z), a(O, ee), a(O, te), a(F, G), a(F, U), a(U, T), a(U, ne), a(U, S), a(m, B), w && w.m(m, null), a(e, Y), k || (Q = [
394
390
  me(e, "click", ie),
395
391
  me(e, "keyup", wt)
396
392
  ], k = !0);
397
393
  },
398
394
  p(V, v) {
399
395
  t = V, v[0] & /*paymentMethodsToShow*/
400
- 2048 && !we(n.src, s = /*payMeth*/
401
- t[58].LogoRelativeUrl ? `${window.origin}${/*payMeth*/
402
- t[58].LogoRelativeUrl}` : (
403
- /*payMeth*/
404
- t[58].LogoUrl
405
- )) && h(n, "src", s), v[0] & /*paymentMethodsToShow*/
396
+ 2048 && !Me(n.src, s = /*payMeth*/
397
+ t[58].LogoUrl) && h(n, "src", s), v[0] & /*paymentMethodsToShow*/
406
398
  2048 && i !== (i = /*payMeth*/
407
399
  t[58].Label) && h(n, "alt", i), /*payMeth*/
408
400
  t[58].isMethodPromoted ? M ? M.p(t, v) : (M = Pe(t), M.c(), M.m(d, null)) : M && (M.d(1), M = null), v[0] & /*paymentMethodsToShow*/
409
401
  2048 && X !== (X = /*payMeth*/
410
402
  (t[58].Label || /*payMeth*/
411
- t[58].Name) + "") && E(Z, X), /*desktopView*/
403
+ t[58].Name) + "") && E(J, X), /*desktopView*/
412
404
  t[13] ? b && (b.d(1), b = null) : b ? b.p(t, v) : (b = Ee(t), b.c(), b.m(m, W)), v[0] & /*$_*/
413
- 131072 && U !== (U = /*$_*/
414
- t[17]("generalMin") + "") && E(J, U), v[0] & /*paymentMethodsToShow, precisionCurrenciesMap, numericCurrencyDecimals*/
415
- 67840 && G !== (G = re(
405
+ 131072 && j !== (j = /*$_*/
406
+ t[17]("generalMin") + "") && E(Z, j), v[0] & /*paymentMethodsToShow, precisionCurrenciesMap, numericCurrencyDecimals*/
407
+ 67840 && q !== (q = re(
416
408
  /*payMeth*/
417
409
  t[58].DisplayCurrency.MinAmountLimit,
418
410
  /*payMeth*/
@@ -435,7 +427,7 @@ function Te(t) {
435
427
  t[16]
436
428
  )
437
429
  }
438
- ) + "") && E(te, G), v[0] & /*$_*/
430
+ ) + "") && E(te, q), v[0] & /*$_*/
439
431
  131072 && K !== (K = /*$_*/
440
432
  t[17]("generalMax") + "") && E(T, K), v[0] & /*paymentMethodsToShow, precisionCurrenciesMap, numericCurrencyDecimals*/
441
433
  67840 && oe !== (oe = re(
@@ -472,7 +464,7 @@ function Te(t) {
472
464
  );
473
465
  },
474
466
  d(V) {
475
- V && z(e), M && M.d(), b && b.d(), w && w.d(), k = !1, it(Q);
467
+ V && z(e), M && M.d(), b && b.d(), w && w.d(), k = !1, rt(Q);
476
468
  }
477
469
  };
478
470
  }
@@ -506,44 +498,44 @@ function Se(t) {
506
498
  }
507
499
  };
508
500
  }
509
- function Ae(t) {
501
+ function Ne(t) {
510
502
  let e, o, n;
511
503
  return {
512
504
  c() {
513
505
  e = f("cashier-error"), o = f("span"), n = D(
514
506
  /*errorMessage*/
515
507
  t[12]
516
- ), h(o, "class", "ErrorMessage"), h(o, "slot", "text"), A(
508
+ ), h(o, "class", "ErrorMessage"), h(o, "slot", "text"), N(
517
509
  e,
518
510
  "lang",
519
511
  /*lang*/
520
512
  t[0]
521
- ), A(
513
+ ), N(
522
514
  e,
523
515
  "assetsurl",
524
516
  /*assetsurl*/
525
517
  t[1]
526
- ), A(
518
+ ), N(
527
519
  e,
528
520
  "translationurl",
529
521
  /*translationurl*/
530
522
  t[2]
531
- ), A(
523
+ ), N(
532
524
  e,
533
525
  "clientstylingurl",
534
526
  /*clientstylingurl*/
535
527
  t[5]
536
- ), A(
528
+ ), N(
537
529
  e,
538
530
  "clientstyling",
539
531
  /*clientstyling*/
540
532
  t[4]
541
- ), A(
533
+ ), N(
542
534
  e,
543
535
  "mbsource",
544
536
  /*mbsource*/
545
537
  t[3]
546
- ), A(e, "hidebuttons", "true");
538
+ ), N(e, "hidebuttons", "true");
547
539
  },
548
540
  m(s, i) {
549
541
  x(s, e, i), a(e, o), a(o, n);
@@ -555,37 +547,37 @@ function Ae(t) {
555
547
  /*errorMessage*/
556
548
  s[12]
557
549
  ), i[0] & /*lang*/
558
- 1 && A(
550
+ 1 && N(
559
551
  e,
560
552
  "lang",
561
553
  /*lang*/
562
554
  s[0]
563
555
  ), i[0] & /*assetsurl*/
564
- 2 && A(
556
+ 2 && N(
565
557
  e,
566
558
  "assetsurl",
567
559
  /*assetsurl*/
568
560
  s[1]
569
561
  ), i[0] & /*translationurl*/
570
- 4 && A(
562
+ 4 && N(
571
563
  e,
572
564
  "translationurl",
573
565
  /*translationurl*/
574
566
  s[2]
575
567
  ), i[0] & /*clientstylingurl*/
576
- 32 && A(
568
+ 32 && N(
577
569
  e,
578
570
  "clientstylingurl",
579
571
  /*clientstylingurl*/
580
572
  s[5]
581
573
  ), i[0] & /*clientstyling*/
582
- 16 && A(
574
+ 16 && N(
583
575
  e,
584
576
  "clientstyling",
585
577
  /*clientstyling*/
586
578
  s[4]
587
579
  ), i[0] & /*mbsource*/
588
- 8 && A(
580
+ 8 && N(
589
581
  e,
590
582
  "mbsource",
591
583
  /*mbsource*/
@@ -603,11 +595,11 @@ function pt(t) {
603
595
  t[14] && ke(t)
604
596
  ), s = (
605
597
  /*errorMessage*/
606
- t[12] && Ae(t)
598
+ t[12] && Ne(t)
607
599
  );
608
600
  return {
609
601
  c() {
610
- n && n.c(), e = P(), s && s.c(), o = Ne();
602
+ n && n.c(), e = P(), s && s.c(), o = Ae();
611
603
  },
612
604
  m(i, l) {
613
605
  n && n.m(i, l), x(i, e, l), s && s.m(i, l), x(i, o, l);
@@ -615,7 +607,7 @@ function pt(t) {
615
607
  p(i, l) {
616
608
  /*isDataLoaded*/
617
609
  i[14] ? n ? n.p(i, l) : (n = ke(i), n.c(), n.m(e.parentNode, e)) : n && (n.d(1), n = null), /*errorMessage*/
618
- i[12] ? s ? s.p(i, l) : (s = Ae(i), s.c(), s.m(o.parentNode, o)) : s && (s.d(1), s = null);
610
+ i[12] ? s ? s.p(i, l) : (s = Ne(i), s.c(), s.m(o.parentNode, o)) : s && (s.d(1), s = null);
619
611
  },
620
612
  i: ge,
621
613
  o: ge,
@@ -628,8 +620,8 @@ const yt = "PaymentPromotion", wt = () => {
628
620
  };
629
621
  function Mt(t, e, o) {
630
622
  let n, s, i;
631
- pe(t, ct, (r) => o(17, s = r)), pe(t, be, (r) => o(42, i = r)), Me.extend(dt);
632
- let { lang: l = "en" } = e, { local: d = "en-US" } = e, { endpoint: u } = e, { paymentsession: m } = e, { playersession: c } = e, { customerid: g } = e, { assetsurl: X } = e, { currency: Z } = e, { numberofmethodsshown: R } = e, { translationurl: W = "" } = e, { mbsource: O } = e, { clientstyling: F } = e, { clientstylingurl: I } = e, { currencydecimals: U = "0" } = e, { currencysymbol: J = "" } = e, { currencyposition: ee = "" } = e, { promotedmethods: G = "false" } = e, { type: te } = e, { userroles: q = "" } = e, j, K = {}, T, ne, oe = window.navigator.userAgent, S = [], B, Y = "", k = [], Q = [], M = "", b, w = !0, ie = !1, V = !1, v = [];
623
+ pe(t, at, (r) => o(17, s = r)), pe(t, be, (r) => o(42, i = r)), ye.extend(et);
624
+ let { lang: l = "en" } = e, { local: d = "en-US" } = e, { endpoint: u } = e, { paymentsession: m } = e, { playersession: c } = e, { customerid: g } = e, { assetsurl: X } = e, { currency: J } = e, { numberofmethodsshown: I } = e, { translationurl: W = "" } = e, { mbsource: R } = e, { clientstyling: F } = e, { clientstylingurl: O } = e, { currencydecimals: j = "0" } = e, { currencysymbol: Z = "" } = e, { currencyposition: ee = "" } = e, { promotedmethods: q = "false" } = e, { type: te } = e, { userroles: G = "" } = e, U, K = {}, T, ne, oe = window.navigator.userAgent, S = [], B, Y = "", k = [], Q = [], M = "", b, w = !0, ie = !1, V = !1, v = [];
633
625
  var ae;
634
626
  (function(r) {
635
627
  r.PlayerSessionIsNotValid = "PlayerSessionIsNotValid", r.Success = "Success", r.JwtTokenError = "JwtTokenError";
@@ -651,15 +643,15 @@ function Mt(t, e, o) {
651
643
  const xe = () => {
652
644
  ut(l);
653
645
  }, Fe = (r) => {
654
- i && Re(r);
655
- }, Re = (r) => {
656
- const { currency: p } = r, _ = j !== void 0 && j !== p ? "MetadataLoading" : "DataLoading";
657
- j = p, window.postMessage({ type: _, isDataLoaded: !1 }, window.location.href);
658
- const L = new URL(`${u}/v2/player/${g}/payment/GetPaymentMetadata`), N = new Headers();
659
- N.append("accept", "application/json"), N.append("Content-Type", "application/json"), N.append("X-Client-Request-Timestamp", Me.utc().format("YYYY-MM-DD HH:mm:ss.SSS")), N.append("X-SessionId", `${c}`), N.append("X-Payment-Session-Token", `${m || i}`), v.indexOf("MM_CHANNEL_BETA") != -1 && N.append("MM_CHANNEL", "BETA");
646
+ i && Ie(r);
647
+ }, Ie = (r) => {
648
+ const { currency: p } = r, _ = U !== void 0 && U !== p ? "MetadataLoading" : "DataLoading";
649
+ U = p, window.postMessage({ type: _, isDataLoaded: !1 }, window.location.href);
650
+ const L = new URL(`${u}/v2/player/${g}/payment/GetPaymentMetadata`), A = new Headers();
651
+ A.append("accept", "application/json"), A.append("Content-Type", "application/json"), A.append("X-Client-Request-Timestamp", ye.utc().format("YYYY-MM-DD HH:mm:ss.SSS")), A.append("X-SessionId", `${c}`), A.append("X-Payment-Session-Token", `${m || i}`), v.indexOf("MM_CHANNEL_BETA") != -1 && A.append("MM_CHANNEL", "BETA");
660
652
  const H = {
661
653
  method: "POST",
662
- headers: N,
654
+ headers: A,
663
655
  mode: "cors",
664
656
  body: JSON.stringify({
665
657
  ...p && { Currency: p },
@@ -675,16 +667,16 @@ function Mt(t, e, o) {
675
667
  return;
676
668
  }
677
669
  if (C.ResponseCode !== ae.Success) {
678
- b = C.ResponseCode, Ue();
670
+ b = C.ResponseCode, je();
679
671
  return;
680
672
  }
681
- S = C.PaymentMethods?.Ordering ? Ie(C) : Oe(C), window.postMessage(
673
+ S = C.PaymentMethods?.Ordering ? Oe(C) : Re(C), window.postMessage(
682
674
  {
683
675
  type: "PromotedPaymentMethods",
684
676
  promotedPaymentMethods: Q
685
677
  },
686
678
  window.location.href
687
- ), o(10, Y = R && +R > 0 && S.length > +R ? s("showAll") : ""), o(11, k = Y ? S.slice(0, +R) : S), G == "false" && o(11, k = k.sort((se, he) => se.isMethodPromoted && !he.isMethodPromoted ? -1 : !se.isMethodPromoted && he.isMethodPromoted ? 1 : 0)), o(15, V = !k.length), window.postMessage(
679
+ ), o(10, Y = I && +I > 0 && S.length > +I ? s("showAll") : ""), o(11, k = Y ? S.slice(0, +I) : S), q == "false" && o(11, k = k.sort((se, he) => se.isMethodPromoted && !he.isMethodPromoted ? -1 : !se.isMethodPromoted && he.isMethodPromoted ? 1 : 0)), o(15, V = !k.length), window.postMessage(
688
680
  {
689
681
  type: "StartSessionCountdown",
690
682
  paymentMethodName: S[0].Name
@@ -694,22 +686,22 @@ function Mt(t, e, o) {
694
686
  }).finally(() => {
695
687
  o(14, ie = !0), window.postMessage({ type: _, isDataLoaded: !0 }, window.location.href);
696
688
  });
697
- }, Ie = (r) => {
689
+ }, Oe = (r) => {
698
690
  const p = [];
699
691
  return Q = [], r.PaymentMethods.Ordering.DefaultPaymentMethodsOrder.forEach(($) => {
700
692
  const _ = r.PaymentMethods.PaymentMethods.find((L) => L.Name === $);
701
693
  if (_) {
702
- const L = _?.Logos.find((C) => C.LogoType === "Desktop") || {}, N = _?.Logos.find((C) => C.LogoType === "Mobile") || {}, H = w ? L : N;
694
+ const L = _?.Logos.find((C) => C.LogoType === "Desktop") || {}, A = _?.Logos.find((C) => C.LogoType === "Mobile") || {}, H = w ? L : A;
703
695
  _.isMethodPromoted = ue(_.Tags), _.LogoUrl = H.LogoUrl ? `https:${H.LogoUrl}` : "", _.isMethodPromoted && Q.push(_), p.push(_);
704
696
  }
705
697
  }), p;
706
- }, Oe = (r) => {
698
+ }, Re = (r) => {
707
699
  const p = r.PaymentMethods.PaymentMethods.map((L) => ({
708
700
  ...L,
709
701
  isMethodPromoted: ue(L.Tags),
710
702
  LogoUrl: L.Logos && L.Logos.length && L.Logos[0].LogoUrl ? `https:${L.Logos[0].LogoUrl}` : ""
711
703
  })), [$, _] = p.reduce(
712
- ([L, N], H) => (H && H.isMethodPromoted ? L.push(H) : N.promo(H), [L, N]),
704
+ ([L, A], H) => (H && H.isMethodPromoted ? L.push(H) : A.promo(H), [L, A]),
713
705
  [[], []]
714
706
  );
715
707
  return Q = $, _;
@@ -723,7 +715,7 @@ function Mt(t, e, o) {
723
715
  composed: !0
724
716
  }
725
717
  ));
726
- }, Ue = () => {
718
+ }, je = () => {
727
719
  window.postMessage(
728
720
  {
729
721
  type: "ErrorResponseCode",
@@ -731,14 +723,14 @@ function Mt(t, e, o) {
731
723
  },
732
724
  window.location.href
733
725
  );
734
- }, je = () => {
735
- o(13, w = !ot(oe));
726
+ }, Ue = () => {
727
+ o(13, w = !st(oe));
736
728
  }, de = () => {
737
729
  k == S ? We() : He();
738
730
  }, He = () => {
739
731
  o(11, k = S), o(10, Y = s("showLess"));
740
732
  }, We = () => {
741
- o(11, k = S.slice(0, +R)), B && !k.find((r) => r.Name === B) && k.splice(0, 0, S.find((r) => r.Name === B)), o(10, Y = s("showAll"));
733
+ o(11, k = S.slice(0, +I)), B && !k.find((r) => r.Name === B) && k.splice(0, 0, S.find((r) => r.Name === B)), o(10, Y = s("showAll"));
742
734
  }, ue = (r) => r && r.split(",").some((p) => p === yt), fe = (r) => {
743
735
  const { data: { type: p } = {} } = r || {};
744
736
  switch (p) {
@@ -747,37 +739,37 @@ function Mt(t, e, o) {
747
739
  break;
748
740
  }
749
741
  }
750
- }, Ge = () => {
751
- q.length > 0 && (v = q.split(","));
742
+ }, qe = () => {
743
+ G.length > 0 && (v = G.split(","));
752
744
  };
753
- et(() => (je(), tt(d, J, ee, U), window.postMessage({ type: "CashierMethodsListReady" }, window.location.href), window.addEventListener("message", fe), () => {
745
+ tt(() => (Ue(), ot(d, Z, ee, j), window.postMessage({ type: "CashierMethodsListReady" }, window.location.href), window.addEventListener("message", fe), () => {
754
746
  window.removeEventListener("message", fe);
755
747
  }));
756
- const qe = (r) => ce(r), Be = () => de();
748
+ const Ge = (r) => ce(r), Be = () => de();
757
749
  function Ye(r) {
758
- st[r ? "unshift" : "push"](() => {
750
+ nt[r ? "unshift" : "push"](() => {
759
751
  T = r, o(7, T);
760
752
  });
761
753
  }
762
754
  return t.$$set = (r) => {
763
- "lang" in r && o(0, l = r.lang), "local" in r && o(20, d = r.local), "endpoint" in r && o(21, u = r.endpoint), "paymentsession" in r && o(22, m = r.paymentsession), "playersession" in r && o(23, c = r.playersession), "customerid" in r && o(24, g = r.customerid), "assetsurl" in r && o(1, X = r.assetsurl), "currency" in r && o(25, Z = r.currency), "numberofmethodsshown" in r && o(26, R = r.numberofmethodsshown), "translationurl" in r && o(2, W = r.translationurl), "mbsource" in r && o(3, O = r.mbsource), "clientstyling" in r && o(4, F = r.clientstyling), "clientstylingurl" in r && o(5, I = r.clientstylingurl), "currencydecimals" in r && o(27, U = r.currencydecimals), "currencysymbol" in r && o(28, J = r.currencysymbol), "currencyposition" in r && o(29, ee = r.currencyposition), "promotedmethods" in r && o(30, G = r.promotedmethods), "type" in r && o(6, te = r.type), "userroles" in r && o(31, q = r.userroles);
755
+ "lang" in r && o(0, l = r.lang), "local" in r && o(20, d = r.local), "endpoint" in r && o(21, u = r.endpoint), "paymentsession" in r && o(22, m = r.paymentsession), "playersession" in r && o(23, c = r.playersession), "customerid" in r && o(24, g = r.customerid), "assetsurl" in r && o(1, X = r.assetsurl), "currency" in r && o(25, J = r.currency), "numberofmethodsshown" in r && o(26, I = r.numberofmethodsshown), "translationurl" in r && o(2, W = r.translationurl), "mbsource" in r && o(3, R = r.mbsource), "clientstyling" in r && o(4, F = r.clientstyling), "clientstylingurl" in r && o(5, O = r.clientstylingurl), "currencydecimals" in r && o(27, j = r.currencydecimals), "currencysymbol" in r && o(28, Z = r.currencysymbol), "currencyposition" in r && o(29, ee = r.currencyposition), "promotedmethods" in r && o(30, q = r.promotedmethods), "type" in r && o(6, te = r.type), "userroles" in r && o(31, G = r.userroles);
764
756
  }, t.$$.update = () => {
765
757
  t.$$.dirty[1] & /*userroles*/
766
- 1 && q && Ge(), t.$$.dirty[0] & /*endpoint, paymentsession, customerid, currency*/
767
- 56623104 && u && !m && g && Fe({ currency: Z }), t.$$.dirty[0] & /*lang*/
758
+ 1 && G && qe(), t.$$.dirty[0] & /*endpoint, paymentsession, customerid, currency*/
759
+ 56623104 && u && !m && g && Fe({ currency: J }), t.$$.dirty[0] & /*lang*/
768
760
  1 && l && xe(), t.$$.dirty[0] & /*clientstyling, customStylingContainer*/
769
- 144 && F && T && rt(T, F), t.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
770
- 160 && I && T && lt(T, I), t.$$.dirty[0] & /*mbsource, customStylingContainer*/
771
- 136 && O && T && at(T, `${O}.Style`, ne), t.$$.dirty[0] & /*lang, translationurl*/
761
+ 144 && F && T && mt(T, F), t.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
762
+ 160 && O && T && ct(T, O), t.$$.dirty[0] & /*mbsource, customStylingContainer*/
763
+ 136 && R && T && dt(T, `${R}.Style`, ne), t.$$.dirty[0] & /*lang, translationurl*/
772
764
  5 && l && W && ze(), t.$$.dirty[0] & /*currencydecimals*/
773
- 134217728 && o(16, n = Number(U));
765
+ 134217728 && o(16, n = Number(j));
774
766
  }, [
775
767
  l,
776
768
  X,
777
769
  W,
778
- O,
770
+ R,
779
771
  F,
780
- I,
772
+ O,
781
773
  te,
782
774
  T,
783
775
  K,
@@ -797,19 +789,19 @@ function Mt(t, e, o) {
797
789
  m,
798
790
  c,
799
791
  g,
800
- Z,
801
- R,
802
- U,
803
792
  J,
793
+ I,
794
+ j,
795
+ Z,
804
796
  ee,
805
- G,
806
797
  q,
807
- qe,
798
+ G,
799
+ Ge,
808
800
  Be,
809
801
  Ye
810
802
  ];
811
803
  }
812
- class bt extends Je {
804
+ class bt extends Ze {
813
805
  constructor(e) {
814
806
  super(), Ke(
815
807
  this,
@@ -957,7 +949,7 @@ class bt extends Je {
957
949
  this.$$set({ userroles: e }), y();
958
950
  }
959
951
  }
960
- mt(bt, { lang: {}, local: {}, endpoint: {}, paymentsession: {}, playersession: {}, customerid: {}, assetsurl: {}, currency: {}, numberofmethodsshown: {}, translationurl: {}, mbsource: {}, clientstyling: {}, clientstylingurl: {}, currencydecimals: {}, currencysymbol: {}, currencyposition: {}, promotedmethods: {}, type: {}, userroles: {} }, [], [], !0);
952
+ lt(bt, { lang: {}, local: {}, endpoint: {}, paymentsession: {}, playersession: {}, customerid: {}, assetsurl: {}, currency: {}, numberofmethodsshown: {}, translationurl: {}, mbsource: {}, clientstyling: {}, clientstylingurl: {}, currencydecimals: {}, currencysymbol: {}, currencyposition: {}, promotedmethods: {}, type: {}, userroles: {} }, [], [], !0);
961
953
  export {
962
954
  bt as default
963
955
  };