@everymatrix/cashier-page 1.69.104 → 1.69.123

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 (92) hide show
  1. package/components/CashierCarousel-Bmkxhtnm.cjs +23 -0
  2. package/components/{CashierCarousel-6PpXL5Qp.js → CashierCarousel-D_wSKCMs.js} +752 -716
  3. package/components/{CashierCarousel-CukH4aEC.js → CashierCarousel-U2ysEkZo.js} +668 -632
  4. package/components/{CashierError-BbxnJqdU.cjs → CashierError-Cwm9eY8c.cjs} +1 -1
  5. package/components/{CashierError-CfHBjTAV.js → CashierError-D2jZsClG.js} +2 -2
  6. package/components/{CashierError-DUp1jL7u.js → CashierError-ZLpQCZ7N.js} +2 -2
  7. package/components/{CashierHeader-DppgdJvh.js → CashierHeader-BCCA_87T.js} +1 -1
  8. package/components/{CashierHeader-BAQT942H.cjs → CashierHeader-D40gryOj.cjs} +1 -1
  9. package/components/{CashierHeader-mNIfX_8X.js → CashierHeader-DyFARvnF.js} +1 -1
  10. package/components/{CashierIframeRedirect-D16g3FOL.cjs → CashierIframeRedirect-BKExS9o2.cjs} +1 -1
  11. package/components/{CashierIframeRedirect-CUNGOWqF.js → CashierIframeRedirect-BMGvaxHv.js} +3 -3
  12. package/components/{CashierIframeRedirect-OFn0nnKy.js → CashierIframeRedirect-Hz0t-XHA.js} +3 -3
  13. package/components/CashierMethodDetails-D0wpum5b.js +9564 -0
  14. package/components/CashierMethodDetails-FeiyXoHw.js +9523 -0
  15. package/components/CashierMethodDetails-ziUU0Tui.cjs +85 -0
  16. package/components/CashierMethodsList-CI_1-_NW.js +737 -0
  17. package/components/CashierMethodsList-PbOH7p79.cjs +1 -0
  18. package/components/CashierMethodsList-WQndorD0.js +725 -0
  19. package/components/CashierModal-Bm1ZHiKF.js +337 -0
  20. package/components/CashierModal-CZXS870r.cjs +1 -0
  21. package/components/CashierModal-DA9pYzjv.js +353 -0
  22. package/components/{CashierNotifications-TCeibGW7.cjs → CashierNotifications-AE1W98Am.cjs} +1 -1
  23. package/components/{CashierNotifications-B4mMHPzM.js → CashierNotifications-BKEjPFOe.js} +1 -1
  24. package/components/{CashierNotifications-C9N_cyjp.js → CashierNotifications-BhTVfc_q.js} +1 -1
  25. package/components/CashierPage-B2478cGI.cjs +1 -0
  26. package/components/CashierPage-Bu-Q7zGW.js +3202 -0
  27. package/components/CashierPage-DRqoyxvy.js +3202 -0
  28. package/components/{CashierReceiptPage-D3bSdrMR.js → CashierReceiptPage-BCdXtAQy.js} +687 -645
  29. package/components/CashierReceiptPage-BTnWWxrf.cjs +26 -0
  30. package/components/{CashierReceiptPage-nV_QGl-h.js → CashierReceiptPage-mprh7bxR.js} +722 -680
  31. package/components/{CashierSessionExpirationModal-Dex-iDiX.cjs → CashierSessionExpirationModal-CO21pLuC.cjs} +2 -2
  32. package/components/{CashierSessionExpirationModal-XOwOZhfl.js → CashierSessionExpirationModal-Cf9kV9t-.js} +62 -62
  33. package/components/{CashierSessionExpirationModal-DPlehL-t.js → CashierSessionExpirationModal-DmelwHmk.js} +89 -89
  34. package/components/{CashierSpinner-BQgydcZ_.js → CashierSpinner-BafoqXXx.js} +1 -1
  35. package/components/{CashierSpinner-CzYDxJhX.js → CashierSpinner-BoT5LgPd.js} +1 -1
  36. package/components/{CashierSpinner-DxJ8w6Oz.cjs → CashierSpinner-d2hvjlSo.cjs} +1 -1
  37. package/components/CashierStepUp-DAwEA9m8.js +1118 -0
  38. package/components/CashierStepUp-DHD1RjqN.js +1079 -0
  39. package/components/CashierStepUp-DPLCXGpo.cjs +1 -0
  40. package/components/{CashierTransactionHistory-BWy9gkLT.js → CashierTransactionHistory-BKgkxlMX.js} +6 -6
  41. package/components/{CashierTransactionHistory-BE1joO9K.js → CashierTransactionHistory-C8ds2Zwi.js} +6 -6
  42. package/components/{CashierTransactionHistory-TKDNzqMX.cjs → CashierTransactionHistory-CBn28kTC.cjs} +1 -1
  43. package/components/{CashierVerifications-Cz6thwea.js → CashierVerifications-B5x1jg3q.js} +9 -9
  44. package/components/{CashierVerifications-BC3_kyP4.cjs → CashierVerifications-Hi5EfxuQ.cjs} +1 -1
  45. package/components/{CashierVerifications-AUHQ5YBD.js → CashierVerifications-fksQOX8S.js} +9 -9
  46. package/components/{TxnStatusIcon-BhLc40xR.cjs → TxnStatusIcon-Bs5XHdDd.cjs} +1 -1
  47. package/components/{TxnStatusIcon-C9Qf16Sv.js → TxnStatusIcon-Ck-w1f1a.js} +1 -1
  48. package/components/{TxnStatusIcon-CllgBQ_-.js → TxnStatusIcon-ZhJG6FAv.js} +1 -1
  49. package/components/{TxnTypeIcons-D5s1NIcq.js → TxnTypeIcons-BJMvuKXL.js} +1 -1
  50. package/components/{TxnTypeIcons-DTmlDMr_.cjs → TxnTypeIcons-CPhGhukx.cjs} +1 -1
  51. package/components/{TxnTypeIcons-lLjMKCFg.js → TxnTypeIcons-OgWLkxli.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/stencil/{index-97d17652--F7PvMq9.js → index-97d17652-B6BYeRne.js} +1 -1
  57. package/stencil/{index-97d17652-CCFHkzJw.js → index-97d17652-BOr4KAqq.js} +1 -1
  58. package/stencil/{index-97d17652-BhLhk_xz.cjs → index-97d17652-zTl06Vn9.cjs} +1 -1
  59. package/stencil/{index-b2193545-B8kMF2bI.cjs → index-b2193545-B5Q7rnAU.cjs} +1 -1
  60. package/stencil/{index-b2193545-BoSqyMpB.js → index-b2193545-CF_fVoFe.js} +1 -1
  61. package/stencil/{index-b2193545-D4dOaNlR.js → index-b2193545-DfttkCgg.js} +1 -1
  62. package/stencil/{ui-image-DIEeZy5u.js → ui-image-BsYHwNhO.js} +1 -1
  63. package/stencil/{ui-image-BWJXFWH1.js → ui-image-CNaRr0ax.js} +1 -1
  64. package/stencil/{ui-image-ByEXiBzx.cjs → ui-image-IJc7Zz_R.cjs} +1 -1
  65. package/stencil/{ui-image-b7b48fe5-ByRuJtdE.js → ui-image-b7b48fe5-BKRtoUuG.js} +1 -1
  66. package/stencil/{ui-image-b7b48fe5-D6iig_uN.js → ui-image-b7b48fe5-HA45CrsG.js} +1 -1
  67. package/stencil/{ui-image-b7b48fe5-DG83WzAo.cjs → ui-image-b7b48fe5-MC0x5ZQd.cjs} +1 -1
  68. package/stencil/{ui-skeleton-ae35c6f2-8tYGV8SR.js → ui-image_2-CmVho0dS.js} +14 -12
  69. package/stencil/ui-image_2-CyqE6j_W.cjs +55 -0
  70. package/stencil/{ui-skeleton-ae35c6f2-IN_dPA5_.js → ui-image_2-Daq38JGa.js} +14 -12
  71. package/stencil/{ui-skeleton-9boHSjtG.js → ui-skeleton-B9YTz-WD.js} +2 -2
  72. package/stencil/{ui-skeleton-4-zrLsIW.js → ui-skeleton-CQ-FgYMx.js} +2 -2
  73. package/stencil/{ui-skeleton-_yJvAdAL.cjs → ui-skeleton-UxIIZ8UD.cjs} +1 -1
  74. package/stencil/ui-skeleton-ed169f8f-BEwquWmd.cjs +55 -0
  75. package/stencil/{ui-image_2-Bm97-wkj.js → ui-skeleton-ed169f8f-BMrkXoR5.js} +12 -14
  76. package/stencil/{ui-image_2-qO3reSlr.js → ui-skeleton-ed169f8f-BNn31z1X.js} +12 -14
  77. package/components/CashierCarousel-Cd1TzgE8.cjs +0 -23
  78. package/components/CashierMethodDetails-BYNgkyXG.js +0 -9006
  79. package/components/CashierMethodDetails-D6dPCYFG.cjs +0 -85
  80. package/components/CashierMethodDetails-DfoHgNtY.js +0 -9027
  81. package/components/CashierMethodsList-CuMP4TC9.cjs +0 -1
  82. package/components/CashierMethodsList-Di9Oe4JI.js +0 -691
  83. package/components/CashierMethodsList-mN4PR-DW.js +0 -703
  84. package/components/CashierModal-C19ykcBp.js +0 -237
  85. package/components/CashierModal-fzrJshmv.cjs +0 -1
  86. package/components/CashierModal-tHIgxmTG.js +0 -237
  87. package/components/CashierPage-Bz-x5NYC.js +0 -2832
  88. package/components/CashierPage-CKSxChJM.cjs +0 -1
  89. package/components/CashierPage-CS_ZG6Xb.js +0 -2832
  90. package/components/CashierReceiptPage-CiPr9s04.cjs +0 -26
  91. package/stencil/ui-image_2-DdFjzzNO.cjs +0 -55
  92. package/stencil/ui-skeleton-ae35c6f2-CKgUXOQC.cjs +0 -55
@@ -0,0 +1,737 @@
1
+ var We = Object.defineProperty, je = Object.defineProperties;
2
+ var Ie = Object.getOwnPropertyDescriptors;
3
+ var ie = Object.getOwnPropertySymbols;
4
+ var Ue = Object.prototype.hasOwnProperty, Fe = Object.prototype.propertyIsEnumerable;
5
+ var re = (t, e, s) => e in t ? We(t, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : t[e] = s, le = (t, e) => {
6
+ for (var s in e || (e = {}))
7
+ Ue.call(e, s) && re(t, s, e[s]);
8
+ if (ie)
9
+ for (var s of ie(e))
10
+ Fe.call(e, s) && re(t, s, e[s]);
11
+ return t;
12
+ }, ae = (t, e) => je(t, Ie(e));
13
+ import { a as Re, i as He, $ as qe, S as Be, b as Ye, s as Ge, f as b, c as Xe, G as ce, e as N, k as O, n as T, r as Le, p as me, q as Ve, N as Je, l as c, m as p, o as g, v as P, A as L, w as C, M as Ze, y as Ke, x as $, V as Z, R as de, Z as Qe, P as J, W as $e, z as ue, B as et, C as tt, D as st, E as ot, F as nt } from "./CashierCarousel-U2ysEkZo.js";
14
+ import { d as he, u as it, x as fe } from "./CashierMethodDetails-D0wpum5b.js";
15
+ function ge(t, e) {
16
+ Re(t, e);
17
+ }
18
+ function rt(t) {
19
+ He({
20
+ fallbackLocale: "en"
21
+ }), qe.set(t);
22
+ }
23
+ const pe = {
24
+ en: {
25
+ generalMin: "Min",
26
+ generalMax: "Max",
27
+ showAll: "SHOW ALL",
28
+ showLess: "SHOW LESS",
29
+ error: "Error",
30
+ noPaymentMethods: "No payment methods available",
31
+ promoLabel: "Recommended",
32
+ otherMethodsTitle: "All Methods",
33
+ otherMethodsDescription: "Discover our incredible selection of unique products that you won't want to miss!"
34
+ },
35
+ uk: {
36
+ generalMin: "Мін",
37
+ generalMax: "Макс"
38
+ },
39
+ hr: {
40
+ generalMin: "Minimalno",
41
+ generalMax: "Maksimalno",
42
+ showAll: "Prikaži sve",
43
+ showLess: "Prikaži manje"
44
+ },
45
+ tr: {
46
+ generalMin: "Min",
47
+ generalMax: "Maks",
48
+ showAll: "HEPSİNİ GÖSTER",
49
+ showLess: "DAHA AZ GÖSTER",
50
+ error: "Hata",
51
+ noPaymentMethods: "Hiçbir ödeme yöntemi mevcut değil",
52
+ promoLabel: "Favori",
53
+ otherMethodsTitle: "Tüm Yöntemler",
54
+ otherMethodsDescription: "Kaçırmak istemeyeceğiniz benzersiz ürünlerimizden oluşan inanılmaz seçkimizi keşfedin!"
55
+ },
56
+ "en-us": {
57
+ generalMin: "Min",
58
+ generalMax: "Max",
59
+ showAll: "SHOW ALL",
60
+ showLess: "SHOW LESS"
61
+ }
62
+ };
63
+ function lt(t) {
64
+ Xe(t, "svelte-s330m5", '*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.CashierMethodList{display:grid;grid-template-columns:1fr 1fr 1fr;max-width:100%;border-radius:var(--emw--border-radius-medium-plus, 6px);gap:10px;margin:10px}.SelectorWrapper{display:flex;flex-direction:column;align-items:center;justify-content:center;cursor:pointer;position:relative;box-sizing:border-box;padding:10px 0;border-radius:10px;box-shadow:inset 0px 0px 0px 1px rgba(255, 255, 255, 0.2);overflow:hidden;z-index:1;transition:transform 0.3s ease-in-out}.SelectorWrapper:hover{box-shadow:inset 0px 0px 7px var(--emw--color-primary);transform:scale(1.02)}.SelectorWrapper::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;border-radius:10px;background:linear-gradient(140deg, var(--emw--color-white, #f5f5f5) 5%, var(--emw--color-cashier-bg, var(--emw--color-background, #23281F)) 40%, var(--emw--color-black, #000000) 60%);opacity:0.2}.CashierMethodListWidget{background-color:var(--emw--color-cashier-bg, var(--emw--color-background, #23281F));height:100%;padding-bottom:20px}.MethodsListDescription{color:var(--emw--color-typography, var(--emw--color-white, #ffffff));padding:10px}.MethodsListDescription h3{font-size:12px;text-transform:uppercase;margin:10px 0}.MethodsListDescription p{color:white;opacity:0.55;font-size:12px}.MethodLogo img{width:100%;height:100%;max-height:35px}.MethodPromoLabel{background:var(--emw--color-button-background, #F1F3FF);color:var(--emw--color-primary, #F9C405);font-size:14px;font-weight:700;text-transform:uppercase;padding:5px 10px;min-width:100px;border-radius:10px;margin:10px;text-align:center}.MethodInfo{width:100%;max-width:100%}.MethodTitle{color:var(--emw--color-typography, var(--emw--color-white, #ffffff));text-align:center;margin:5px 10px;font-size:var(--emw--font-size-medium, 12px);word-break:break-word;font-weight:var(--emw--font-weight-bold, 700);line-height:16px}.MethodLimits{gap:var(--emw--spacing-small-minus, 10px);text-align:center;word-break:break-word;margin:5px 10px}.Limits{max-width:100%;font-size:var(--emw--font-size-small, 11px);font-weight:var(--emw--font-weight-normal, 300);font-style:normal;color:var(--emw--color-typography, var(--emw--color-white, #ffffff));opacity:0.7}.EmptyContentMessageWrapper{position:relative;display:flex;justify-content:flex-end}.EmptyContentMessageContent{display:flex;flex-direction:column;row-gap:var(--emw--spacing-small, 12px);bottom:10%}.EmptyContentMessageImg{width:250px}.EmptyContentMessageImg img{border-radius:0 0 var(--emw--border-radius-medium-plus, 6px) 0;height:100%;width:100%}.EmptyContentMessageTitle{font-size:var(--emw--font-size-medium, 20px);font-weight:var(--emw--font-weight-bold, 800);line-height:calc(var(--emw--font-size-medium, 16px) + 4px);color:var(--emw--color-primary);text-transform:uppercase}.EmptyContentMessageText{word-break:break-word;font-size:var(--emw--font-size-small, 14px);line-height:calc(var(--emw--font-size-medium, 16px) + 4px);color:var(--emw--color-typography, #fff)}.EmptyContentMessageDesktop{justify-content:flex-start}.EmptyContentMessageDesktop .EmptyContentMessageContent{bottom:auto;margin-top:10px}.EmptyContentMessageDesktop .EmptyContentMessageImg{width:auto}.EmptyContentMessageDesktop .EmptyContentMessageImg img{transform:scaleX(-1)}.IconWarning{width:30px;display:flex}.IconWarning svg{height:18px;fill:var(--emw--color-warning, rgb(250, 146, 0))}.ShowAllButton{cursor:pointer;color:var(--emw--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(--emw--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)}.ErrorMessage{color:var(--emw--color-typography, var(--emw--color-white, #ffffff));font-size:12px}@container method-list (width < 450px){.MethodLogo{width:var(--emw-logo-small-width, 90px);min-width:var(--emw-logo-small-width, 90px);min-height:var(--emw-logo-small-height, 30px);overflow:hidden}.CashierMethodList .MethodTitle,.MethodLimits{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;width:100%}.MethodInfo{flex-direction:column;align-items:start}.MethodLimits{display:flex;flex-direction:row;gap:5px}.CashierMethodList .MethodLimits .Limits{flex-shrink:0;font-size:var(--emw--font-size-x-small, 12px)}}@container method-list (max-width: 300px){.Limits{display:none}}');
65
+ }
66
+ function ye(t, e, s) {
67
+ const o = t.slice();
68
+ return o[49] = e[s], o[51] = s, o;
69
+ }
70
+ function we(t) {
71
+ let e, s, o, r, n = !/*noPaymentMethodsAvailable*/
72
+ t[13] && Me(t);
73
+ function l(a, y) {
74
+ return (
75
+ /*noPaymentMethodsAvailable*/
76
+ a[13] && /*isDataLoaded*/
77
+ a[12] ? ct : at
78
+ );
79
+ }
80
+ let d = l(t), u = d(t), m = (
81
+ /*methodsButtonToggleText*/
82
+ t[8] && _e(t)
83
+ );
84
+ return {
85
+ c() {
86
+ e = p("div"), n && n.c(), s = T(), o = p("div"), u.c(), r = T(), m && m.c(), g(o, "class", "CashierMethodList"), g(e, "class", "CashierMethodListWidget");
87
+ },
88
+ m(a, y) {
89
+ O(a, e, y), n && n.m(e, null), c(e, s), c(e, o), u.m(o, null), c(e, r), m && m.m(e, null), t[29](e);
90
+ },
91
+ p(a, y) {
92
+ /*noPaymentMethodsAvailable*/
93
+ a[13] ? n && (n.d(1), n = null) : n ? n.p(a, y) : (n = Me(a), n.c(), n.m(e, s)), d === (d = l(a)) && u ? u.p(a, y) : (u.d(1), u = d(a), u && (u.c(), u.m(o, null))), /*methodsButtonToggleText*/
94
+ a[8] ? m ? m.p(a, y) : (m = _e(a), m.c(), m.m(e, null)) : m && (m.d(1), m = null);
95
+ },
96
+ d(a) {
97
+ a && N(e), n && n.d(), u.d(), m && m.d(), t[29](null);
98
+ }
99
+ };
100
+ }
101
+ function Me(t) {
102
+ let e, s, o = (
103
+ /*$_*/
104
+ t[14]("otherMethodsTitle") + ""
105
+ ), r, n, l, d = (
106
+ /*$_*/
107
+ t[14]("otherMethodsDescription") + ""
108
+ ), u;
109
+ return {
110
+ c() {
111
+ e = p("div"), s = p("h3"), r = C(o), n = T(), l = p("p"), u = C(d), g(e, "class", "MethodsListDescription");
112
+ },
113
+ m(m, a) {
114
+ O(m, e, a), c(e, s), c(s, r), c(e, n), c(e, l), c(l, u);
115
+ },
116
+ p(m, a) {
117
+ a[0] & /*$_*/
118
+ 16384 && o !== (o = /*$_*/
119
+ m[14]("otherMethodsTitle") + "") && P(r, o), a[0] & /*$_*/
120
+ 16384 && d !== (d = /*$_*/
121
+ m[14]("otherMethodsDescription") + "") && P(u, d);
122
+ },
123
+ d(m) {
124
+ m && N(e);
125
+ }
126
+ };
127
+ }
128
+ function at(t) {
129
+ let e, s = de(
130
+ /*paymentMethodsToShow*/
131
+ t[9]
132
+ ), o = [];
133
+ for (let r = 0; r < s.length; r += 1)
134
+ o[r] = be(ye(t, s, r));
135
+ return {
136
+ c() {
137
+ for (let r = 0; r < o.length; r += 1)
138
+ o[r].c();
139
+ e = Le();
140
+ },
141
+ m(r, n) {
142
+ for (let l = 0; l < o.length; l += 1)
143
+ o[l] && o[l].m(r, n);
144
+ O(r, e, n);
145
+ },
146
+ p(r, n) {
147
+ if (n[0] & /*selectedPaymentMethod, paymentMethodsToShow, selectPayMeth, $_*/
148
+ 49792) {
149
+ s = de(
150
+ /*paymentMethodsToShow*/
151
+ r[9]
152
+ );
153
+ let l;
154
+ for (l = 0; l < s.length; l += 1) {
155
+ const d = ye(r, s, l);
156
+ o[l] ? o[l].p(d, n) : (o[l] = be(d), o[l].c(), o[l].m(e.parentNode, e));
157
+ }
158
+ for (; l < o.length; l += 1)
159
+ o[l].d(1);
160
+ o.length = s.length;
161
+ }
162
+ },
163
+ d(r) {
164
+ r && N(e), Qe(o, r);
165
+ }
166
+ };
167
+ }
168
+ function ct(t) {
169
+ let e, s, o, r = (
170
+ /*$_*/
171
+ t[14]("error") + ""
172
+ ), n, l, d, u = (
173
+ /*$_*/
174
+ t[14]("noPaymentMethods") + ""
175
+ ), m;
176
+ return {
177
+ c() {
178
+ e = p("div"), s = p("div"), o = p("p"), n = C(r), l = T(), d = p("p"), m = C(u), g(o, "class", "EmptyContentMessageTitle"), g(d, "class", "EmptyContentMessageText"), g(s, "class", "EmptyContentMessageContent"), g(e, "class", "EmptyContentMessageWrapper"), Z(
179
+ e,
180
+ "EmptyContentMessageDesktop",
181
+ /*desktopView*/
182
+ t[11]
183
+ );
184
+ },
185
+ m(a, y) {
186
+ O(a, e, y), c(e, s), c(s, o), c(o, n), c(s, l), c(s, d), c(d, m);
187
+ },
188
+ p(a, y) {
189
+ y[0] & /*$_*/
190
+ 16384 && r !== (r = /*$_*/
191
+ a[14]("error") + "") && P(n, r), y[0] & /*$_*/
192
+ 16384 && u !== (u = /*$_*/
193
+ a[14]("noPaymentMethods") + "") && P(m, u), y[0] & /*desktopView*/
194
+ 2048 && Z(
195
+ e,
196
+ "EmptyContentMessageDesktop",
197
+ /*desktopView*/
198
+ a[11]
199
+ );
200
+ },
201
+ d(a) {
202
+ a && N(e);
203
+ }
204
+ };
205
+ }
206
+ function be(t) {
207
+ let e, s, o, r, n, l, d, u, m, a = (
208
+ /*payMeth*/
209
+ (t[49].Label || /*payMeth*/
210
+ t[49].Name) + ""
211
+ ), y, q, k, _, A = (
212
+ /*$_*/
213
+ t[14]("generalMin") + ""
214
+ ), W, U, j = J(
215
+ /*payMeth*/
216
+ t[49].DisplayCurrency.MinAmountLimit,
217
+ /*payMeth*/
218
+ t[49].DisplayCurrency.Name
219
+ ) + "", F, B, v = (
220
+ /*$_*/
221
+ t[14]("generalMax") + ""
222
+ ), Y, x, E = J(
223
+ /*payMeth*/
224
+ t[49].DisplayCurrency.MaxAmountLimit,
225
+ /*payMeth*/
226
+ t[49].DisplayCurrency.Name
227
+ ) + "", D, S, R, G;
228
+ function X() {
229
+ return (
230
+ /*click_handler*/
231
+ t[27](
232
+ /*payMeth*/
233
+ t[49]
234
+ )
235
+ );
236
+ }
237
+ return {
238
+ c() {
239
+ e = p("div"), s = p("div"), o = p("img"), l = T(), d = p("div"), u = p("div"), m = p("span"), y = C(a), q = T(), k = p("div"), _ = p("span"), W = C(A), U = T(), F = C(j), B = C(" / "), Y = C(v), x = T(), D = C(E), S = T(), ue(o.src, r = /*payMeth*/
240
+ t[49].LogoUrl) || g(o, "src", r), g(o, "alt", n = /*payMeth*/
241
+ t[49].Label), g(s, "class", "MethodLogo"), g(u, "class", "MethodTitle"), g(_, "class", "Limits"), g(k, "class", "MethodLimits"), g(d, "class", "MethodInfo"), g(e, "class", "SelectorWrapper"), Z(
242
+ e,
243
+ "checked",
244
+ /*selectedPaymentMethod*/
245
+ t[7] === /*payMeth*/
246
+ t[49].Name
247
+ );
248
+ },
249
+ m(z, M) {
250
+ O(z, e, M), c(e, s), c(s, o), c(e, l), c(e, d), c(d, u), c(u, m), c(m, y), c(d, q), c(d, k), c(k, _), c(_, W), c(_, U), c(_, F), c(_, B), c(_, Y), c(_, x), c(_, D), c(e, S), R || (G = [
251
+ $(e, "click", X),
252
+ $(e, "keyup", ut)
253
+ ], R = !0);
254
+ },
255
+ p(z, M) {
256
+ t = z, M[0] & /*paymentMethodsToShow*/
257
+ 512 && !ue(o.src, r = /*payMeth*/
258
+ t[49].LogoUrl) && g(o, "src", r), M[0] & /*paymentMethodsToShow*/
259
+ 512 && n !== (n = /*payMeth*/
260
+ t[49].Label) && g(o, "alt", n), M[0] & /*paymentMethodsToShow*/
261
+ 512 && a !== (a = /*payMeth*/
262
+ (t[49].Label || /*payMeth*/
263
+ t[49].Name) + "") && P(y, a), M[0] & /*$_*/
264
+ 16384 && A !== (A = /*$_*/
265
+ t[14]("generalMin") + "") && P(W, A), M[0] & /*paymentMethodsToShow*/
266
+ 512 && j !== (j = J(
267
+ /*payMeth*/
268
+ t[49].DisplayCurrency.MinAmountLimit,
269
+ /*payMeth*/
270
+ t[49].DisplayCurrency.Name
271
+ ) + "") && P(F, j), M[0] & /*$_*/
272
+ 16384 && v !== (v = /*$_*/
273
+ t[14]("generalMax") + "") && P(Y, v), M[0] & /*paymentMethodsToShow*/
274
+ 512 && E !== (E = J(
275
+ /*payMeth*/
276
+ t[49].DisplayCurrency.MaxAmountLimit,
277
+ /*payMeth*/
278
+ t[49].DisplayCurrency.Name
279
+ ) + "") && P(D, E), M[0] & /*selectedPaymentMethod, paymentMethodsToShow*/
280
+ 640 && Z(
281
+ e,
282
+ "checked",
283
+ /*selectedPaymentMethod*/
284
+ t[7] === /*payMeth*/
285
+ t[49].Name
286
+ );
287
+ },
288
+ d(z) {
289
+ z && N(e), R = !1, $e(G);
290
+ }
291
+ };
292
+ }
293
+ function _e(t) {
294
+ let e, s, o, r;
295
+ return {
296
+ c() {
297
+ e = p("div"), s = C(
298
+ /*methodsButtonToggleText*/
299
+ t[8]
300
+ ), g(e, "class", "ShowAllButton");
301
+ },
302
+ m(n, l) {
303
+ O(n, e, l), c(e, s), o || (r = $(
304
+ e,
305
+ "click",
306
+ /*click_handler_1*/
307
+ t[28]
308
+ ), o = !0);
309
+ },
310
+ p(n, l) {
311
+ l[0] & /*methodsButtonToggleText*/
312
+ 256 && P(
313
+ s,
314
+ /*methodsButtonToggleText*/
315
+ n[8]
316
+ );
317
+ },
318
+ d(n) {
319
+ n && N(e), o = !1, r();
320
+ }
321
+ };
322
+ }
323
+ function ve(t) {
324
+ let e, s, o;
325
+ return {
326
+ c() {
327
+ e = p("cashier-error"), s = p("span"), o = C(
328
+ /*errorMessage*/
329
+ t[10]
330
+ ), g(s, "class", "ErrorMessage"), g(s, "slot", "text"), L(
331
+ e,
332
+ "lang",
333
+ /*lang*/
334
+ t[0]
335
+ ), L(
336
+ e,
337
+ "assetsurl",
338
+ /*assetsurl*/
339
+ t[1]
340
+ ), L(
341
+ e,
342
+ "translationurl",
343
+ /*translationurl*/
344
+ t[2]
345
+ ), L(
346
+ e,
347
+ "clientstylingurl",
348
+ /*clientstylingurl*/
349
+ t[5]
350
+ ), L(
351
+ e,
352
+ "clientstyling",
353
+ /*clientstyling*/
354
+ t[4]
355
+ ), L(
356
+ e,
357
+ "mbsource",
358
+ /*mbsource*/
359
+ t[3]
360
+ ), L(e, "hidebuttons", "true");
361
+ },
362
+ m(r, n) {
363
+ O(r, e, n), c(e, s), c(s, o);
364
+ },
365
+ p(r, n) {
366
+ n[0] & /*errorMessage*/
367
+ 1024 && P(
368
+ o,
369
+ /*errorMessage*/
370
+ r[10]
371
+ ), n[0] & /*lang*/
372
+ 1 && L(
373
+ e,
374
+ "lang",
375
+ /*lang*/
376
+ r[0]
377
+ ), n[0] & /*assetsurl*/
378
+ 2 && L(
379
+ e,
380
+ "assetsurl",
381
+ /*assetsurl*/
382
+ r[1]
383
+ ), n[0] & /*translationurl*/
384
+ 4 && L(
385
+ e,
386
+ "translationurl",
387
+ /*translationurl*/
388
+ r[2]
389
+ ), n[0] & /*clientstylingurl*/
390
+ 32 && L(
391
+ e,
392
+ "clientstylingurl",
393
+ /*clientstylingurl*/
394
+ r[5]
395
+ ), n[0] & /*clientstyling*/
396
+ 16 && L(
397
+ e,
398
+ "clientstyling",
399
+ /*clientstyling*/
400
+ r[4]
401
+ ), n[0] & /*mbsource*/
402
+ 8 && L(
403
+ e,
404
+ "mbsource",
405
+ /*mbsource*/
406
+ r[3]
407
+ );
408
+ },
409
+ d(r) {
410
+ r && N(e);
411
+ }
412
+ };
413
+ }
414
+ function mt(t) {
415
+ let e, s, o = (
416
+ /*isDataLoaded*/
417
+ t[12] && we(t)
418
+ ), r = (
419
+ /*errorMessage*/
420
+ t[10] && ve(t)
421
+ );
422
+ return {
423
+ c() {
424
+ o && o.c(), e = T(), r && r.c(), s = Le();
425
+ },
426
+ m(n, l) {
427
+ o && o.m(n, l), O(n, e, l), r && r.m(n, l), O(n, s, l);
428
+ },
429
+ p(n, l) {
430
+ /*isDataLoaded*/
431
+ n[12] ? o ? o.p(n, l) : (o = we(n), o.c(), o.m(e.parentNode, e)) : o && (o.d(1), o = null), /*errorMessage*/
432
+ n[10] ? r ? r.p(n, l) : (r = ve(n), r.c(), r.m(s.parentNode, s)) : r && (r.d(1), r = null);
433
+ },
434
+ i: ce,
435
+ o: ce,
436
+ d(n) {
437
+ n && (N(e), N(s)), o && o.d(n), r && r.d(n);
438
+ }
439
+ };
440
+ }
441
+ const dt = "PaymentPromotion", ut = () => {
442
+ };
443
+ function ht(t, e, s) {
444
+ let o, r;
445
+ me(t, nt, (i) => s(14, o = i)), me(t, fe, (i) => s(35, r = i)), he.extend(it);
446
+ let { lang: n = "en" } = e, { local: l = "en-US" } = e, { endpoint: d } = e, { paymentsession: u } = e, { playersession: m } = e, { customerid: a } = e, { assetsurl: y } = e, { currency: q } = e, { numberofmethodsshown: k } = e, { translationurl: _ = "" } = e, { mbsource: A } = e, { clientstyling: W } = e, { clientstylingurl: U } = e, { currencydecimals: j = "2" } = e, { currencysymbol: F = "" } = e, { currencyposition: B = "" } = e, v, Y = window.navigator.userAgent, x = [], E, D = "", S = [], R = [], G = "", X, z = !0, M = !1, ee = !1;
447
+ var K;
448
+ (function(i) {
449
+ i.PlayerSessionIsNotValid = "PlayerSessionIsNotValid", i.Success = "Success", i.JwtTokenError = "JwtTokenError";
450
+ })(K || (K = {}));
451
+ const ke = () => {
452
+ let i = _;
453
+ if (i)
454
+ return fetch(i).then((f) => f.json()).then((f) => {
455
+ Object.keys(f).forEach((I) => {
456
+ ge(I, f[I]);
457
+ });
458
+ }).catch((f) => {
459
+ console.log(f);
460
+ });
461
+ };
462
+ Object.keys(pe).forEach((i) => {
463
+ ge(i, pe[i]);
464
+ });
465
+ const xe = () => {
466
+ rt(n);
467
+ }, Ce = () => {
468
+ r && te();
469
+ }, te = () => {
470
+ window.postMessage({ type: "DataLoading", isDataLoaded: M });
471
+ const i = new URL(`${d}/v2/player/${a}/payment/GetPaymentMetadata`), f = new Headers();
472
+ f.append("accept", "application/json"), f.append("Content-Type", "application/json"), f.append("X-Client-Request-Timestamp", he.utc().format("YYYY-MM-DD HH:mm:ss.SSS")), f.append("X-SessionId", `${m}`), f.append("X-Payment-Session-Token", `${u || r}`);
473
+ const I = {
474
+ method: "POST",
475
+ headers: f,
476
+ body: JSON.stringify({
477
+ Currency: q,
478
+ Tags: { UserAgent: window.navigator.userAgent }
479
+ })
480
+ };
481
+ fetch(i, I).then((h) => {
482
+ const w = h.headers.get("X-Payment-Session-Token");
483
+ return w && fe.set(w), h.json();
484
+ }).then((h) => {
485
+ var w;
486
+ if (h.error) {
487
+ s(10, G = h.error);
488
+ return;
489
+ }
490
+ if (h.ResponseCode !== K.Success) {
491
+ X = h.ResponseCode, Ee();
492
+ return;
493
+ }
494
+ x = (w = h.PaymentMethods) != null && w.Ordering ? Se(h) : Pe(h), window.postMessage(
495
+ {
496
+ type: "PromotedPaymentMethods",
497
+ promotedPaymentMethods: R
498
+ },
499
+ window.location.href
500
+ ), s(8, D = k && +k > 0 && x.length > +k ? o("showAll") : ""), s(9, S = D ? x.slice(0, +k) : x), s(13, ee = !S.length), window.postMessage(
501
+ {
502
+ type: "StartSessionCountdown",
503
+ paymentMethodName: x[0].Name
504
+ },
505
+ window.location.href
506
+ ), window.postMessage({ type: "DataLoading", isDataLoaded: M });
507
+ }).finally(() => {
508
+ s(12, M = !0), window.postMessage({ type: "DataLoading", isDataLoaded: M });
509
+ });
510
+ }, Se = (i) => {
511
+ const f = [];
512
+ return i.PaymentMethods.Ordering.DefaultPaymentMethodsOrder.forEach((I) => {
513
+ const h = i.PaymentMethods.PaymentMethods.find((w) => w.Name === I);
514
+ if (h) {
515
+ const w = (h == null ? void 0 : h.Logos.find((Q) => Q.LogoType === "Desktop")) || {}, V = (h == null ? void 0 : h.Logos.find((Q) => Q.LogoType === "Mobile")) || {}, H = z ? w : V;
516
+ h.isMethodPromoted = ne(h.Tags), h.LogoUrl = H.LogoUrl ? `https:${H.LogoUrl}` : "", h.isMethodPromoted && R.push(h), f.push(h);
517
+ }
518
+ }), f;
519
+ }, Pe = (i) => {
520
+ const f = i.PaymentMethods.PaymentMethods.map((w) => ae(le({}, w), {
521
+ isMethodPromoted: ne(w.Tags),
522
+ LogoUrl: w.Logos && w.Logos.length && w.Logos[0].LogoUrl ? `https:${w.Logos[0].LogoUrl}` : ""
523
+ })), [I, h] = f.reduce(
524
+ ([w, V], H) => (H && H.isMethodPromoted ? w.push(H) : V.promo(H), [w, V]),
525
+ [[], []]
526
+ );
527
+ return R = I, h;
528
+ }, se = (i) => {
529
+ s(7, E = i.Name), window.postMessage({ type: "SelectPayMeth", details: i }, window.location.href), dispatchEvent(new CustomEvent(
530
+ "selectPayMeth",
531
+ {
532
+ detail: i,
533
+ bubbles: !0,
534
+ cancelable: !0,
535
+ composed: !0
536
+ }
537
+ ));
538
+ }, Ee = () => {
539
+ window.postMessage(
540
+ {
541
+ type: "ErrorResponseCode",
542
+ errorResponseCode: X
543
+ },
544
+ window.location.href
545
+ );
546
+ }, Te = () => {
547
+ s(11, z = !Ze(Y));
548
+ }, oe = () => {
549
+ S == x ? De() : Ae();
550
+ }, Ae = () => {
551
+ s(9, S = x), s(8, D = o("showLess"));
552
+ }, De = () => {
553
+ s(9, S = x.slice(0, +k)), E && !S.find((i) => i.Name === E) && S.splice(0, 0, x.find((i) => i.Name === E)), s(8, D = o("showAll"));
554
+ }, ne = (i) => i && i.split(",").some((f) => f === dt);
555
+ Ve(() => (Te(), Je(l, F, B, j), () => {
556
+ }));
557
+ const ze = (i) => se(i), Ne = () => oe();
558
+ function Oe(i) {
559
+ Ke[i ? "unshift" : "push"](() => {
560
+ v = i, s(6, v);
561
+ });
562
+ }
563
+ return t.$$set = (i) => {
564
+ "lang" in i && s(0, n = i.lang), "local" in i && s(17, l = i.local), "endpoint" in i && s(18, d = i.endpoint), "paymentsession" in i && s(19, u = i.paymentsession), "playersession" in i && s(20, m = i.playersession), "customerid" in i && s(21, a = i.customerid), "assetsurl" in i && s(1, y = i.assetsurl), "currency" in i && s(22, q = i.currency), "numberofmethodsshown" in i && s(23, k = i.numberofmethodsshown), "translationurl" in i && s(2, _ = i.translationurl), "mbsource" in i && s(3, A = i.mbsource), "clientstyling" in i && s(4, W = i.clientstyling), "clientstylingurl" in i && s(5, U = i.clientstylingurl), "currencydecimals" in i && s(24, j = i.currencydecimals), "currencysymbol" in i && s(25, F = i.currencysymbol), "currencyposition" in i && s(26, B = i.currencyposition);
565
+ }, t.$$.update = () => {
566
+ t.$$.dirty[0] & /*endpoint, paymentsession, customerid*/
567
+ 2883584 && d && u && a && te(), t.$$.dirty[0] & /*endpoint, paymentsession, customerid*/
568
+ 2883584 && d && !u && a && Ce(), t.$$.dirty[0] & /*lang*/
569
+ 1 && n && xe(), t.$$.dirty[0] & /*clientstyling, customStylingContainer*/
570
+ 80 && W && v && et(v, W), t.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
571
+ 96 && U && v && tt(v, U), t.$$.dirty[0] & /*mbsource, customStylingContainer*/
572
+ 72 && A && v && st(v, `${A}.Style`), t.$$.dirty[0] & /*lang, translationurl*/
573
+ 5 && n && _ && ke();
574
+ }, [
575
+ n,
576
+ y,
577
+ _,
578
+ A,
579
+ W,
580
+ U,
581
+ v,
582
+ E,
583
+ D,
584
+ S,
585
+ G,
586
+ z,
587
+ M,
588
+ ee,
589
+ o,
590
+ se,
591
+ oe,
592
+ l,
593
+ d,
594
+ u,
595
+ m,
596
+ a,
597
+ q,
598
+ k,
599
+ j,
600
+ F,
601
+ B,
602
+ ze,
603
+ Ne,
604
+ Oe
605
+ ];
606
+ }
607
+ class ft extends Be {
608
+ constructor(e) {
609
+ super(), Ye(
610
+ this,
611
+ e,
612
+ ht,
613
+ mt,
614
+ Ge,
615
+ {
616
+ lang: 0,
617
+ local: 17,
618
+ endpoint: 18,
619
+ paymentsession: 19,
620
+ playersession: 20,
621
+ customerid: 21,
622
+ assetsurl: 1,
623
+ currency: 22,
624
+ numberofmethodsshown: 23,
625
+ translationurl: 2,
626
+ mbsource: 3,
627
+ clientstyling: 4,
628
+ clientstylingurl: 5,
629
+ currencydecimals: 24,
630
+ currencysymbol: 25,
631
+ currencyposition: 26
632
+ },
633
+ lt,
634
+ [-1, -1]
635
+ );
636
+ }
637
+ get lang() {
638
+ return this.$$.ctx[0];
639
+ }
640
+ set lang(e) {
641
+ this.$$set({ lang: e }), b();
642
+ }
643
+ get local() {
644
+ return this.$$.ctx[17];
645
+ }
646
+ set local(e) {
647
+ this.$$set({ local: e }), b();
648
+ }
649
+ get endpoint() {
650
+ return this.$$.ctx[18];
651
+ }
652
+ set endpoint(e) {
653
+ this.$$set({ endpoint: e }), b();
654
+ }
655
+ get paymentsession() {
656
+ return this.$$.ctx[19];
657
+ }
658
+ set paymentsession(e) {
659
+ this.$$set({ paymentsession: e }), b();
660
+ }
661
+ get playersession() {
662
+ return this.$$.ctx[20];
663
+ }
664
+ set playersession(e) {
665
+ this.$$set({ playersession: e }), b();
666
+ }
667
+ get customerid() {
668
+ return this.$$.ctx[21];
669
+ }
670
+ set customerid(e) {
671
+ this.$$set({ customerid: e }), b();
672
+ }
673
+ get assetsurl() {
674
+ return this.$$.ctx[1];
675
+ }
676
+ set assetsurl(e) {
677
+ this.$$set({ assetsurl: e }), b();
678
+ }
679
+ get currency() {
680
+ return this.$$.ctx[22];
681
+ }
682
+ set currency(e) {
683
+ this.$$set({ currency: e }), b();
684
+ }
685
+ get numberofmethodsshown() {
686
+ return this.$$.ctx[23];
687
+ }
688
+ set numberofmethodsshown(e) {
689
+ this.$$set({ numberofmethodsshown: e }), b();
690
+ }
691
+ get translationurl() {
692
+ return this.$$.ctx[2];
693
+ }
694
+ set translationurl(e) {
695
+ this.$$set({ translationurl: e }), b();
696
+ }
697
+ get mbsource() {
698
+ return this.$$.ctx[3];
699
+ }
700
+ set mbsource(e) {
701
+ this.$$set({ mbsource: e }), b();
702
+ }
703
+ get clientstyling() {
704
+ return this.$$.ctx[4];
705
+ }
706
+ set clientstyling(e) {
707
+ this.$$set({ clientstyling: e }), b();
708
+ }
709
+ get clientstylingurl() {
710
+ return this.$$.ctx[5];
711
+ }
712
+ set clientstylingurl(e) {
713
+ this.$$set({ clientstylingurl: e }), b();
714
+ }
715
+ get currencydecimals() {
716
+ return this.$$.ctx[24];
717
+ }
718
+ set currencydecimals(e) {
719
+ this.$$set({ currencydecimals: e }), b();
720
+ }
721
+ get currencysymbol() {
722
+ return this.$$.ctx[25];
723
+ }
724
+ set currencysymbol(e) {
725
+ this.$$set({ currencysymbol: e }), b();
726
+ }
727
+ get currencyposition() {
728
+ return this.$$.ctx[26];
729
+ }
730
+ set currencyposition(e) {
731
+ this.$$set({ currencyposition: e }), b();
732
+ }
733
+ }
734
+ ot(ft, { lang: {}, local: {}, endpoint: {}, paymentsession: {}, playersession: {}, customerid: {}, assetsurl: {}, currency: {}, numberofmethodsshown: {}, translationurl: {}, mbsource: {}, clientstyling: {}, clientstylingurl: {}, currencydecimals: {}, currencysymbol: {}, currencyposition: {} }, [], [], !0);
735
+ export {
736
+ ft as default
737
+ };