@everymatrix/cashier-page-nd 1.69.182 → 1.69.200

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 (61) hide show
  1. package/components/{CashierCarousel-Dl-eMerS.cjs → CashierCarousel-1mMP8tyv.cjs} +1 -1
  2. package/components/{CashierCarousel-VzauuRzd.js → CashierCarousel-C-ucwZi1.js} +3 -3
  3. package/components/{CashierCarousel-DKhPJU6b.js → CashierCarousel-D-vvfyMH.js} +3 -3
  4. package/components/{CashierError-Bx19tshH.cjs → CashierError-D4gobknN.cjs} +1 -1
  5. package/components/{CashierError-B0qTVRew.js → CashierError-DgrBlkrw.js} +1 -1
  6. package/components/{CashierError-ZnrYSdIJ.js → CashierError-VdFGIxuP.js} +1 -1
  7. package/components/{CashierHeader-Ob55c3V1.js → CashierHeader-BV2xXjmR.js} +1 -1
  8. package/components/{CashierHeader-BgpMLlQl.cjs → CashierHeader-C8evLxKj.cjs} +1 -1
  9. package/components/{CashierHeader-Bg2nCWkL.js → CashierHeader-soZetsFk.js} +1 -1
  10. package/components/{CashierIframeRedirect-CmCpwQNx.js → CashierIframeRedirect-5wszsx82.js} +3 -3
  11. package/components/{CashierIframeRedirect-uR7lUcI4.js → CashierIframeRedirect-CegQVeZp.js} +3 -3
  12. package/components/{CashierIframeRedirect-BRzP3u6o.cjs → CashierIframeRedirect-DCgARocv.cjs} +1 -1
  13. package/components/{CashierMethodDetails-ChdTDLVs.js → CashierMethodDetails-BMCqSVkC.js} +1150 -1121
  14. package/components/{CashierMethodDetails-Bi3RswtE.cjs → CashierMethodDetails-BjRs7Uhk.cjs} +4 -4
  15. package/components/{CashierMethodDetails-Cx2IVsNJ.js → CashierMethodDetails-C5JjPUBW.js} +1244 -1215
  16. package/components/CashierMethodsList-4CKaSgLU.cjs +1 -0
  17. package/components/CashierMethodsList-CHGNta9P.js +819 -0
  18. package/components/CashierMethodsList-DVb54r5T.js +834 -0
  19. package/components/{CashierModal-CNfSMMrg.cjs → CashierModal-B1TQ14iz.cjs} +1 -1
  20. package/components/{CashierModal-CeTxvGuv.js → CashierModal-BLjsv9Hd.js} +1 -1
  21. package/components/{CashierModal-CzdREUu5.js → CashierModal-Da53CA7R.js} +1 -1
  22. package/components/{CashierNotifications-Atgdw6xY.js → CashierNotifications-BK1Gy3Hy.js} +1 -1
  23. package/components/{CashierNotifications-C7Mjn9aM.cjs → CashierNotifications-DJjkliEL.cjs} +1 -1
  24. package/components/{CashierNotifications-DaXLtFPD.js → CashierNotifications-DyaOquWi.js} +1 -1
  25. package/components/CashierPage-CGjORCMD.js +4059 -0
  26. package/components/CashierPage-CfkLr-0C.js +4085 -0
  27. package/components/CashierPage-P5drLGQO.cjs +1 -0
  28. package/components/{CashierReceiptPage-CstOT6w8.js → CashierReceiptPage-BHPQnVlq.js} +2 -2
  29. package/components/{CashierReceiptPage-DxExcFD2.js → CashierReceiptPage-CLmJCEKz.js} +2 -2
  30. package/components/{CashierReceiptPage-CjWUvqnM.cjs → CashierReceiptPage-DhT1H_2G.cjs} +1 -1
  31. package/components/{CashierSessionExpirationModal-BD6AaTfL.js → CashierSessionExpirationModal-B7bbrPJ0.js} +3 -3
  32. package/components/{CashierSessionExpirationModal-Ba45sFMo.cjs → CashierSessionExpirationModal-C5y_h8N2.cjs} +1 -1
  33. package/components/{CashierSessionExpirationModal-CeUHj8Nu.js → CashierSessionExpirationModal-DU_6VgkZ.js} +3 -3
  34. package/components/{CashierSpinner-BUjnT9BW.cjs → CashierSpinner-DhHAyFN5.cjs} +1 -1
  35. package/components/{CashierSpinner-Cfc6C4df.js → CashierSpinner-DhNiwwG8.js} +1 -1
  36. package/components/{CashierSpinner-Dansuw_c.js → CashierSpinner-VyYLuEkP.js} +1 -1
  37. package/components/{CashierStepUp-CXaxhy_1.js → CashierStepUp-C1OUcI7Z.js} +1 -1
  38. package/components/{CashierStepUp-D6fTGz14.js → CashierStepUp-DF5JAlnz.js} +1 -1
  39. package/components/{CashierStepUp-gsICNfsv.cjs → CashierStepUp-aKo7uJ4l.cjs} +1 -1
  40. package/components/{CashierTransactionHistory-B-MDFXYc.js → CashierTransactionHistory-BfLzogOQ.js} +5 -5
  41. package/components/{CashierTransactionHistory-DnDR3GCK.cjs → CashierTransactionHistory-CjJZFfNS.cjs} +1 -1
  42. package/components/{CashierTransactionHistory-BOzr1llp.js → CashierTransactionHistory-uuCB0hMp.js} +5 -5
  43. package/components/{CashierVerifications-CAoRzihg.js → CashierVerifications-B-taCfQy.js} +2 -2
  44. package/components/{CashierVerifications-CjxrWuWm.js → CashierVerifications-BtqJbStE.js} +2 -2
  45. package/components/{CashierVerifications-Ydw99mD_.cjs → CashierVerifications-CSG7BQ0D.cjs} +1 -1
  46. package/components/{TxnStatusIcon-C1C42nXE.js → TxnStatusIcon-CQ5vZzXs.js} +1 -1
  47. package/components/{TxnStatusIcon-Bm2SDwwJ.cjs → TxnStatusIcon-CWiSCMgS.cjs} +1 -1
  48. package/components/{TxnStatusIcon-BBs7yerQ.js → TxnStatusIcon-CsGhPGXz.js} +1 -1
  49. package/components/{TxnTypeIcons-BOWsICZk.cjs → TxnTypeIcons-C537E5bY.cjs} +1 -1
  50. package/components/{TxnTypeIcons-CC0HOFvg.js → TxnTypeIcons-CKeLNGyz.js} +1 -1
  51. package/components/{TxnTypeIcons-hQ7x8mMJ.js → TxnTypeIcons-MnBmprHO.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/CashierMethodsList-Bf5WVXfB.js +0 -793
  57. package/components/CashierMethodsList-D58KK82d.cjs +0 -1
  58. package/components/CashierMethodsList-Wd2Tb0nx.js +0 -808
  59. package/components/CashierPage-BJZIdTUM.cjs +0 -1
  60. package/components/CashierPage-Brtreu70.js +0 -4020
  61. package/components/CashierPage-BwHK_o5C.js +0 -3994
@@ -0,0 +1,819 @@
1
+ import { a as Fe, i as Ue, $ as We, S as Ie, b as Re, s as He, f as b, c as Ye, G as ae, e as z, k as A, n as D, r as ke, p as ce, q as qe, O as Be, l as a, m as f, o as y, v as S, A as C, w as x, N as Ge, y as Xe, x as se, W as te, Y as me, a4 as Je, U as ee, a0 as Ve, z as de, B as Ke, C as Ze, D as Qe, E as $e, F as et } from "./CashierCarousel-D-vvfyMH.js";
2
+ import { d as ue, u as tt, x as fe } from "./CashierMethodDetails-C5JjPUBW.js";
3
+ function he(t, e) {
4
+ Fe(t, e);
5
+ }
6
+ function ot(t) {
7
+ Ue({
8
+ fallbackLocale: "en"
9
+ }), We.set(t);
10
+ }
11
+ const ge = {
12
+ en: {
13
+ generalMin: "Min",
14
+ generalMax: "Max",
15
+ showAll: "SHOW ALL",
16
+ showLess: "SHOW LESS",
17
+ error: "Error",
18
+ noPaymentMethods: "No payment methods available",
19
+ promoLabel: "Recommended",
20
+ otherMethodsTitle: "All Methods",
21
+ otherMethodsDescription: "Discover our incredible selection of unique products that you won't want to miss!"
22
+ },
23
+ tr: {
24
+ generalMin: "Min",
25
+ generalMax: "Maks",
26
+ showAll: "HEPSİNİ GÖSTER",
27
+ showLess: "DAHA AZ GÖSTER",
28
+ error: "Hata",
29
+ noPaymentMethods: "Hiçbir ödeme yöntemi mevcut değil",
30
+ promoLabel: "Favori",
31
+ otherMethodsTitle: "Tüm Yöntemler",
32
+ otherMethodsDescription: "Kaçırmak istemeyeceğiniz benzersiz ürünlerimizden oluşan inanılmaz seçkimizi keşfedin!"
33
+ }
34
+ };
35
+ function st(t) {
36
+ Ye(t, "svelte-1f56cjt", '*,*::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 1fr;max-width:100%;gap:5px;margin:10px}.SelectorWrapper{display:flex;flex-direction:column;align-items:flex-start;justify-content:space-between;cursor:pointer;position:relative;box-sizing:border-box;padding:5px 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;min-height:100px}.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{margin:5px}.MethodLogo img{width:100%;height:100%;max-height:22px}.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%;height:100%;display:flex;flex-direction:column;justify-content:space-between;align-items:flex-start}.MethodTitle{color:var(--emw--color-typography, var(--emw--color-white, #ffffff));margin:5px;word-break:break-word;font-weight:var(--emw--font-weight-bold, 700);line-height:10px}.MethodLimits{word-break:break-word;margin:5px}.Limits{max-width:100%;font-weight:var(--emw--font-weight-normal, 300);font-style:normal;color:var(--emw--color-typography, var(--emw--color-white, #ffffff));opacity:0.7}.MethodFavorite{font-size:var(--emw--font-size-x-small, 8px);color:var(--emw--color-typography, #fff);background-color:var(--emw--color-red, red);border-radius:15px;margin:0 5px;line-height:10px;height:16px}.MethodFavorite p{padding:3px}@media(min-width: 499px){.MethodTitle{font-size:var(--emw--font-size-medium, 12px)}.Limits{font-size:var(--emw--font-size-small, 10px)}}@media(max-width: 500px){.SelectorWrapper{aspect-ratio:7.7/10}.MethodTitle{font-size:var(--emw--font-size-small, 10px)}.Limits{font-size:var(--emw--font-size-x-small, 8px)}}.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}');
37
+ }
38
+ function pe(t, e, o) {
39
+ const n = t.slice();
40
+ return n[53] = e[o], n[55] = o, n;
41
+ }
42
+ function ye(t) {
43
+ let e, o, n, i, r = !/*noPaymentMethodsAvailable*/
44
+ t[14] && we(t);
45
+ function l(c, p) {
46
+ return (
47
+ /*noPaymentMethodsAvailable*/
48
+ c[14] && /*isDataLoaded*/
49
+ c[13] ? it : nt
50
+ );
51
+ }
52
+ let d = l(t), u = d(t), m = (
53
+ /*methodsButtonToggleText*/
54
+ t[9] && _e(t)
55
+ );
56
+ return {
57
+ c() {
58
+ e = f("div"), r && r.c(), o = D(), n = f("div"), u.c(), i = D(), m && m.c(), y(n, "class", "CashierMethodList"), y(e, "class", "CashierMethodListWidget");
59
+ },
60
+ m(c, p) {
61
+ A(c, e, p), r && r.m(e, null), a(e, o), a(e, n), u.m(n, null), a(e, i), m && m.m(e, null), t[32](e);
62
+ },
63
+ p(c, p) {
64
+ /*noPaymentMethodsAvailable*/
65
+ c[14] ? r && (r.d(1), r = null) : r ? r.p(c, p) : (r = we(c), r.c(), r.m(e, o)), d === (d = l(c)) && u ? u.p(c, p) : (u.d(1), u = d(c), u && (u.c(), u.m(n, null))), /*methodsButtonToggleText*/
66
+ c[9] ? m ? m.p(c, p) : (m = _e(c), m.c(), m.m(e, null)) : m && (m.d(1), m = null);
67
+ },
68
+ d(c) {
69
+ c && z(e), r && r.d(), u.d(), m && m.d(), t[32](null);
70
+ }
71
+ };
72
+ }
73
+ function we(t) {
74
+ let e, o, n = (
75
+ /*$_*/
76
+ t[16]("otherMethodsTitle") + ""
77
+ ), i, r, l, d = (
78
+ /*$_*/
79
+ t[16]("otherMethodsDescription") + ""
80
+ ), u;
81
+ return {
82
+ c() {
83
+ e = f("div"), o = f("h3"), i = x(n), r = D(), l = f("p"), u = x(d), y(e, "class", "MethodsListDescription");
84
+ },
85
+ m(m, c) {
86
+ A(m, e, c), a(e, o), a(o, i), a(e, r), a(e, l), a(l, u);
87
+ },
88
+ p(m, c) {
89
+ c[0] & /*$_*/
90
+ 65536 && n !== (n = /*$_*/
91
+ m[16]("otherMethodsTitle") + "") && S(i, n), c[0] & /*$_*/
92
+ 65536 && d !== (d = /*$_*/
93
+ m[16]("otherMethodsDescription") + "") && S(u, d);
94
+ },
95
+ d(m) {
96
+ m && z(e);
97
+ }
98
+ };
99
+ }
100
+ function nt(t) {
101
+ let e, o = me(
102
+ /*paymentMethodsToShow*/
103
+ t[10]
104
+ ), n = [];
105
+ for (let i = 0; i < o.length; i += 1)
106
+ n[i] = be(pe(t, o, i));
107
+ return {
108
+ c() {
109
+ for (let i = 0; i < n.length; i += 1)
110
+ n[i].c();
111
+ e = ke();
112
+ },
113
+ m(i, r) {
114
+ for (let l = 0; l < n.length; l += 1)
115
+ n[l] && n[l].m(i, r);
116
+ A(i, e, r);
117
+ },
118
+ p(i, r) {
119
+ if (r[0] & /*selectedPaymentMethod, paymentMethodsToShow, selectPayMeth, precisionCurrenciesMap, numericCurrencyDecimals, $_*/
120
+ 230784) {
121
+ o = me(
122
+ /*paymentMethodsToShow*/
123
+ i[10]
124
+ );
125
+ let l;
126
+ for (l = 0; l < o.length; l += 1) {
127
+ const d = pe(i, o, l);
128
+ n[l] ? n[l].p(d, r) : (n[l] = be(d), n[l].c(), n[l].m(e.parentNode, e));
129
+ }
130
+ for (; l < n.length; l += 1)
131
+ n[l].d(1);
132
+ n.length = o.length;
133
+ }
134
+ },
135
+ d(i) {
136
+ i && z(e), Je(n, i);
137
+ }
138
+ };
139
+ }
140
+ function it(t) {
141
+ let e, o, n, i = (
142
+ /*$_*/
143
+ t[16]("error") + ""
144
+ ), r, l, d, u = (
145
+ /*$_*/
146
+ t[16]("noPaymentMethods") + ""
147
+ ), m;
148
+ return {
149
+ c() {
150
+ e = f("div"), o = f("div"), n = f("p"), r = x(i), l = D(), d = f("p"), m = x(u), y(n, "class", "EmptyContentMessageTitle"), y(d, "class", "EmptyContentMessageText"), y(o, "class", "EmptyContentMessageContent"), y(e, "class", "EmptyContentMessageWrapper"), te(
151
+ e,
152
+ "EmptyContentMessageDesktop",
153
+ /*desktopView*/
154
+ t[12]
155
+ );
156
+ },
157
+ m(c, p) {
158
+ A(c, e, p), a(e, o), a(o, n), a(n, r), a(o, l), a(o, d), a(d, m);
159
+ },
160
+ p(c, p) {
161
+ p[0] & /*$_*/
162
+ 65536 && i !== (i = /*$_*/
163
+ c[16]("error") + "") && S(r, i), p[0] & /*$_*/
164
+ 65536 && u !== (u = /*$_*/
165
+ c[16]("noPaymentMethods") + "") && S(m, u), p[0] & /*desktopView*/
166
+ 4096 && te(
167
+ e,
168
+ "EmptyContentMessageDesktop",
169
+ /*desktopView*/
170
+ c[12]
171
+ );
172
+ },
173
+ d(c) {
174
+ c && z(e);
175
+ }
176
+ };
177
+ }
178
+ function Me(t) {
179
+ let e;
180
+ return {
181
+ c() {
182
+ e = f("p"), e.textContent = "Favorite";
183
+ },
184
+ m(o, n) {
185
+ A(o, e, n);
186
+ },
187
+ d(o) {
188
+ o && z(e);
189
+ }
190
+ };
191
+ }
192
+ function be(t) {
193
+ let e, o, n, i, r, l, d, u, m, c, p, H = (
194
+ /*payMeth*/
195
+ (t[53].Label || /*payMeth*/
196
+ t[53].Name) + ""
197
+ ), Y, T, O, P, E, j = (
198
+ /*$_*/
199
+ t[16]("generalMin") + ""
200
+ ), F, V, U = ee(
201
+ /*payMeth*/
202
+ t[53].DisplayCurrency.MinAmountLimit,
203
+ /*payMeth*/
204
+ t[53].DisplayCurrency.Name,
205
+ {
206
+ maximumFractionDigits: (
207
+ /*precisionCurrenciesMap*/
208
+ t[7][
209
+ /*payMeth*/
210
+ t[53]?.DisplayCurrency?.Name
211
+ ] || /*numericCurrencyDecimals*/
212
+ t[15]
213
+ ),
214
+ minimumFractionDigits: (
215
+ /*precisionCurrenciesMap*/
216
+ t[7][
217
+ /*payMeth*/
218
+ t[53]?.DisplayCurrency?.Name
219
+ ] || /*numericCurrencyDecimals*/
220
+ t[15]
221
+ )
222
+ }
223
+ ) + "", q, Q, _, K = (
224
+ /*$_*/
225
+ t[16]("generalMax") + ""
226
+ ), L, W, N = ee(
227
+ /*payMeth*/
228
+ t[53].DisplayCurrency.MaxAmountLimit,
229
+ /*payMeth*/
230
+ t[53].DisplayCurrency.Name,
231
+ {
232
+ maximumFractionDigits: (
233
+ /*precisionCurrenciesMap*/
234
+ t[7][
235
+ /*payMeth*/
236
+ t[53]?.DisplayCurrency?.Name
237
+ ] || /*numericCurrencyDecimals*/
238
+ t[15]
239
+ ),
240
+ minimumFractionDigits: (
241
+ /*precisionCurrenciesMap*/
242
+ t[7][
243
+ /*payMeth*/
244
+ t[53]?.DisplayCurrency?.Name
245
+ ] || /*numericCurrencyDecimals*/
246
+ t[15]
247
+ )
248
+ }
249
+ ) + "", v, B, Z, $, M = (
250
+ /*payMeth*/
251
+ t[53].isMethodPromoted && Me()
252
+ );
253
+ function G() {
254
+ return (
255
+ /*click_handler*/
256
+ t[30](
257
+ /*payMeth*/
258
+ t[53]
259
+ )
260
+ );
261
+ }
262
+ return {
263
+ c() {
264
+ e = f("div"), o = f("div"), n = f("img"), l = D(), d = f("div"), M && M.c(), u = D(), m = f("div"), c = f("div"), p = f("span"), Y = x(H), T = D(), O = f("div"), P = f("span"), E = f("p"), F = x(j), V = D(), q = x(U), Q = D(), _ = f("p"), L = x(K), W = D(), v = x(N), B = D(), de(n.src, i = /*payMeth*/
265
+ t[53].LogoUrl) || y(n, "src", i), y(n, "alt", r = /*payMeth*/
266
+ t[53].Label), y(o, "class", "MethodLogo"), y(d, "class", "MethodFavorite"), y(c, "class", "MethodTitle"), y(P, "class", "Limits"), y(O, "class", "MethodLimits"), y(m, "class", "MethodInfo"), y(e, "class", "SelectorWrapper"), te(
267
+ e,
268
+ "checked",
269
+ /*selectedPaymentMethod*/
270
+ t[8] === /*payMeth*/
271
+ t[53].Name
272
+ );
273
+ },
274
+ m(I, k) {
275
+ A(I, e, k), 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, p), a(p, Y), a(m, T), a(m, O), a(O, P), a(P, E), a(E, F), a(E, V), a(E, q), a(P, Q), a(P, _), a(_, L), a(_, W), a(_, v), a(e, B), Z || ($ = [
276
+ se(e, "click", G),
277
+ se(e, "keyup", at)
278
+ ], Z = !0);
279
+ },
280
+ p(I, k) {
281
+ t = I, k[0] & /*paymentMethodsToShow*/
282
+ 1024 && !de(n.src, i = /*payMeth*/
283
+ t[53].LogoUrl) && y(n, "src", i), k[0] & /*paymentMethodsToShow*/
284
+ 1024 && r !== (r = /*payMeth*/
285
+ t[53].Label) && y(n, "alt", r), /*payMeth*/
286
+ t[53].isMethodPromoted ? M || (M = Me(), M.c(), M.m(d, null)) : M && (M.d(1), M = null), k[0] & /*paymentMethodsToShow*/
287
+ 1024 && H !== (H = /*payMeth*/
288
+ (t[53].Label || /*payMeth*/
289
+ t[53].Name) + "") && S(Y, H), k[0] & /*$_*/
290
+ 65536 && j !== (j = /*$_*/
291
+ t[16]("generalMin") + "") && S(F, j), k[0] & /*paymentMethodsToShow, precisionCurrenciesMap, numericCurrencyDecimals*/
292
+ 33920 && U !== (U = ee(
293
+ /*payMeth*/
294
+ t[53].DisplayCurrency.MinAmountLimit,
295
+ /*payMeth*/
296
+ t[53].DisplayCurrency.Name,
297
+ {
298
+ maximumFractionDigits: (
299
+ /*precisionCurrenciesMap*/
300
+ t[7][
301
+ /*payMeth*/
302
+ t[53]?.DisplayCurrency?.Name
303
+ ] || /*numericCurrencyDecimals*/
304
+ t[15]
305
+ ),
306
+ minimumFractionDigits: (
307
+ /*precisionCurrenciesMap*/
308
+ t[7][
309
+ /*payMeth*/
310
+ t[53]?.DisplayCurrency?.Name
311
+ ] || /*numericCurrencyDecimals*/
312
+ t[15]
313
+ )
314
+ }
315
+ ) + "") && S(q, U), k[0] & /*$_*/
316
+ 65536 && K !== (K = /*$_*/
317
+ t[16]("generalMax") + "") && S(L, K), k[0] & /*paymentMethodsToShow, precisionCurrenciesMap, numericCurrencyDecimals*/
318
+ 33920 && N !== (N = ee(
319
+ /*payMeth*/
320
+ t[53].DisplayCurrency.MaxAmountLimit,
321
+ /*payMeth*/
322
+ t[53].DisplayCurrency.Name,
323
+ {
324
+ maximumFractionDigits: (
325
+ /*precisionCurrenciesMap*/
326
+ t[7][
327
+ /*payMeth*/
328
+ t[53]?.DisplayCurrency?.Name
329
+ ] || /*numericCurrencyDecimals*/
330
+ t[15]
331
+ ),
332
+ minimumFractionDigits: (
333
+ /*precisionCurrenciesMap*/
334
+ t[7][
335
+ /*payMeth*/
336
+ t[53]?.DisplayCurrency?.Name
337
+ ] || /*numericCurrencyDecimals*/
338
+ t[15]
339
+ )
340
+ }
341
+ ) + "") && S(v, N), k[0] & /*selectedPaymentMethod, paymentMethodsToShow*/
342
+ 1280 && te(
343
+ e,
344
+ "checked",
345
+ /*selectedPaymentMethod*/
346
+ t[8] === /*payMeth*/
347
+ t[53].Name
348
+ );
349
+ },
350
+ d(I) {
351
+ I && z(e), M && M.d(), Z = !1, Ve($);
352
+ }
353
+ };
354
+ }
355
+ function _e(t) {
356
+ let e, o, n, i;
357
+ return {
358
+ c() {
359
+ e = f("div"), o = x(
360
+ /*methodsButtonToggleText*/
361
+ t[9]
362
+ ), y(e, "class", "ShowAllButton");
363
+ },
364
+ m(r, l) {
365
+ A(r, e, l), a(e, o), n || (i = se(
366
+ e,
367
+ "click",
368
+ /*click_handler_1*/
369
+ t[31]
370
+ ), n = !0);
371
+ },
372
+ p(r, l) {
373
+ l[0] & /*methodsButtonToggleText*/
374
+ 512 && S(
375
+ o,
376
+ /*methodsButtonToggleText*/
377
+ r[9]
378
+ );
379
+ },
380
+ d(r) {
381
+ r && z(e), n = !1, i();
382
+ }
383
+ };
384
+ }
385
+ function ve(t) {
386
+ let e, o, n;
387
+ return {
388
+ c() {
389
+ e = f("cashier-error"), o = f("span"), n = x(
390
+ /*errorMessage*/
391
+ t[11]
392
+ ), y(o, "class", "ErrorMessage"), y(o, "slot", "text"), C(
393
+ e,
394
+ "lang",
395
+ /*lang*/
396
+ t[0]
397
+ ), C(
398
+ e,
399
+ "assetsurl",
400
+ /*assetsurl*/
401
+ t[1]
402
+ ), C(
403
+ e,
404
+ "translationurl",
405
+ /*translationurl*/
406
+ t[2]
407
+ ), C(
408
+ e,
409
+ "clientstylingurl",
410
+ /*clientstylingurl*/
411
+ t[5]
412
+ ), C(
413
+ e,
414
+ "clientstyling",
415
+ /*clientstyling*/
416
+ t[4]
417
+ ), C(
418
+ e,
419
+ "mbsource",
420
+ /*mbsource*/
421
+ t[3]
422
+ ), C(e, "hidebuttons", "true");
423
+ },
424
+ m(i, r) {
425
+ A(i, e, r), a(e, o), a(o, n);
426
+ },
427
+ p(i, r) {
428
+ r[0] & /*errorMessage*/
429
+ 2048 && S(
430
+ n,
431
+ /*errorMessage*/
432
+ i[11]
433
+ ), r[0] & /*lang*/
434
+ 1 && C(
435
+ e,
436
+ "lang",
437
+ /*lang*/
438
+ i[0]
439
+ ), r[0] & /*assetsurl*/
440
+ 2 && C(
441
+ e,
442
+ "assetsurl",
443
+ /*assetsurl*/
444
+ i[1]
445
+ ), r[0] & /*translationurl*/
446
+ 4 && C(
447
+ e,
448
+ "translationurl",
449
+ /*translationurl*/
450
+ i[2]
451
+ ), r[0] & /*clientstylingurl*/
452
+ 32 && C(
453
+ e,
454
+ "clientstylingurl",
455
+ /*clientstylingurl*/
456
+ i[5]
457
+ ), r[0] & /*clientstyling*/
458
+ 16 && C(
459
+ e,
460
+ "clientstyling",
461
+ /*clientstyling*/
462
+ i[4]
463
+ ), r[0] & /*mbsource*/
464
+ 8 && C(
465
+ e,
466
+ "mbsource",
467
+ /*mbsource*/
468
+ i[3]
469
+ );
470
+ },
471
+ d(i) {
472
+ i && z(e);
473
+ }
474
+ };
475
+ }
476
+ function rt(t) {
477
+ let e, o, n = (
478
+ /*isDataLoaded*/
479
+ t[13] && ye(t)
480
+ ), i = (
481
+ /*errorMessage*/
482
+ t[11] && ve(t)
483
+ );
484
+ return {
485
+ c() {
486
+ n && n.c(), e = D(), i && i.c(), o = ke();
487
+ },
488
+ m(r, l) {
489
+ n && n.m(r, l), A(r, e, l), i && i.m(r, l), A(r, o, l);
490
+ },
491
+ p(r, l) {
492
+ /*isDataLoaded*/
493
+ r[13] ? n ? n.p(r, l) : (n = ye(r), n.c(), n.m(e.parentNode, e)) : n && (n.d(1), n = null), /*errorMessage*/
494
+ r[11] ? i ? i.p(r, l) : (i = ve(r), i.c(), i.m(o.parentNode, o)) : i && (i.d(1), i = null);
495
+ },
496
+ i: ae,
497
+ o: ae,
498
+ d(r) {
499
+ r && (z(e), z(o)), n && n.d(r), i && i.d(r);
500
+ }
501
+ };
502
+ }
503
+ const lt = "PaymentPromotion", at = () => {
504
+ };
505
+ function ct(t, e, o) {
506
+ let n, i, r;
507
+ ce(t, et, (s) => o(16, i = s)), ce(t, fe, (s) => o(38, r = s)), ue.extend(tt);
508
+ let { lang: l = "en" } = e, { local: d = "en-US" } = e, { endpoint: u } = e, { paymentsession: m } = e, { playersession: c } = e, { customerid: p } = e, { assetsurl: H } = e, { currency: Y } = e, { numberofmethodsshown: T } = e, { translationurl: O = "" } = e, { mbsource: P } = e, { clientstyling: E } = e, { clientstylingurl: j } = e, { currencydecimals: F = "0" } = e, { currencysymbol: V = "" } = e, { currencyposition: U = "" } = e, { promotedmethods: q = "false" } = e, Q = {}, _, K = window.navigator.userAgent, L = [], W, N = "", v = [], B = [], Z = "", $, M = !0, G = !1, I = !1;
509
+ var k;
510
+ (function(s) {
511
+ s.PlayerSessionIsNotValid = "PlayerSessionIsNotValid", s.Success = "Success", s.JwtTokenError = "JwtTokenError";
512
+ })(k || (k = {}));
513
+ const Le = () => {
514
+ let s = O;
515
+ if (s)
516
+ return fetch(s).then((h) => h.json()).then((h) => {
517
+ Object.keys(h).forEach((R) => {
518
+ he(R, h[R]);
519
+ });
520
+ }).catch((h) => {
521
+ console.log(h);
522
+ });
523
+ };
524
+ Object.keys(ge).forEach((s) => {
525
+ he(s, ge[s]);
526
+ });
527
+ const Ce = () => {
528
+ ot(l);
529
+ }, De = () => {
530
+ r && Pe();
531
+ }, Pe = () => {
532
+ window.postMessage({ type: "DataLoading", isDataLoaded: G });
533
+ const s = new URL(`${u}/v2/player/${p}/payment/GetPaymentMetadata`), h = new Headers();
534
+ h.append("accept", "application/json"), h.append("Content-Type", "application/json"), h.append("X-Client-Request-Timestamp", ue.utc().format("YYYY-MM-DD HH:mm:ss.SSS")), h.append("X-SessionId", `${c}`), h.append("X-Payment-Session-Token", `${m || r}`);
535
+ const R = {
536
+ method: "POST",
537
+ headers: h,
538
+ mode: "cors",
539
+ body: JSON.stringify({
540
+ Currency: Y,
541
+ Tags: { UserAgent: window.navigator.userAgent }
542
+ })
543
+ };
544
+ fetch(s, R).then((g) => {
545
+ const w = g.headers.get("X-Payment-Session-Token");
546
+ return w && fe.set(w), g.json();
547
+ }).then((g) => {
548
+ if (g.error) {
549
+ o(11, Z = g.error);
550
+ return;
551
+ }
552
+ if (g.ResponseCode !== k.Success) {
553
+ $ = g.ResponseCode, Te();
554
+ return;
555
+ }
556
+ L = g.PaymentMethods?.Ordering ? Se(g) : xe(g), window.postMessage(
557
+ {
558
+ type: "PromotedPaymentMethods",
559
+ promotedPaymentMethods: B
560
+ },
561
+ window.location.href
562
+ ), o(9, N = T && +T > 0 && L.length > +T ? i("showAll") : ""), o(10, v = N ? L.slice(0, +T) : L), q == "false" && o(10, v = v.sort((w, X) => w.isMethodPromoted && !X.isMethodPromoted ? -1 : !w.isMethodPromoted && X.isMethodPromoted ? 1 : 0)), o(14, I = !v.length), window.postMessage(
563
+ {
564
+ type: "StartSessionCountdown",
565
+ paymentMethodName: L[0].Name
566
+ },
567
+ window.location.href
568
+ ), window.postMessage({ type: "DataLoading", isDataLoaded: G });
569
+ }).finally(() => {
570
+ o(13, G = !0), window.postMessage({ type: "DataLoading", isDataLoaded: G });
571
+ });
572
+ }, Se = (s) => {
573
+ const h = [];
574
+ return B = [], s.PaymentMethods.Ordering.DefaultPaymentMethodsOrder.forEach((R) => {
575
+ const g = s.PaymentMethods.PaymentMethods.find((w) => w.Name === R);
576
+ if (g) {
577
+ const w = g?.Logos.find((oe) => oe.LogoType === "Desktop") || {}, X = g?.Logos.find((oe) => oe.LogoType === "Mobile") || {}, J = M ? w : X;
578
+ g.isMethodPromoted = re(g.Tags), g.LogoUrl = J.LogoUrl ? `https:${J.LogoUrl}` : "", g.isMethodPromoted && B.push(g), h.push(g);
579
+ }
580
+ }), h;
581
+ }, xe = (s) => {
582
+ const h = s.PaymentMethods.PaymentMethods.map((w) => ({
583
+ ...w,
584
+ isMethodPromoted: re(w.Tags),
585
+ LogoUrl: w.Logos && w.Logos.length && w.Logos[0].LogoUrl ? `https:${w.Logos[0].LogoUrl}` : ""
586
+ })), [R, g] = h.reduce(
587
+ ([w, X], J) => (J && J.isMethodPromoted ? w.push(J) : X.promo(J), [w, X]),
588
+ [[], []]
589
+ );
590
+ return B = R, g;
591
+ }, ne = (s) => {
592
+ o(8, W = s.Name), window.postMessage({ type: "SelectPayMeth", details: s }, window.location.href), dispatchEvent(new CustomEvent(
593
+ "selectPayMeth",
594
+ {
595
+ detail: s,
596
+ bubbles: !0,
597
+ cancelable: !0,
598
+ composed: !0
599
+ }
600
+ ));
601
+ }, Te = () => {
602
+ window.postMessage(
603
+ {
604
+ type: "ErrorResponseCode",
605
+ errorResponseCode: $
606
+ },
607
+ window.location.href
608
+ );
609
+ }, Ee = () => {
610
+ o(12, M = !Ge(K));
611
+ }, ie = () => {
612
+ v == L ? ze() : Ne();
613
+ }, Ne = () => {
614
+ o(10, v = L), o(9, N = i("showLess"));
615
+ }, ze = () => {
616
+ o(10, v = L.slice(0, +T)), W && !v.find((s) => s.Name === W) && v.splice(0, 0, L.find((s) => s.Name === W)), o(9, N = i("showAll"));
617
+ }, re = (s) => s && s.split(",").some((h) => h === lt), le = (s) => {
618
+ const { data: { type: h } = {} } = s || {};
619
+ switch (h) {
620
+ case "PrecisionCurrenciesMap": {
621
+ o(7, Q = s?.data?.payload || {});
622
+ break;
623
+ }
624
+ }
625
+ };
626
+ qe(() => (Ee(), Be(d, V, U, F), window.postMessage({ type: "CashierMethodsListReady" }, window.location.href), window.addEventListener("message", le), () => {
627
+ window.removeEventListener("message", le);
628
+ }));
629
+ const Ae = (s) => ne(s), Oe = () => ie();
630
+ function je(s) {
631
+ Xe[s ? "unshift" : "push"](() => {
632
+ _ = s, o(6, _);
633
+ });
634
+ }
635
+ return t.$$set = (s) => {
636
+ "lang" in s && o(0, l = s.lang), "local" in s && o(19, d = s.local), "endpoint" in s && o(20, u = s.endpoint), "paymentsession" in s && o(21, m = s.paymentsession), "playersession" in s && o(22, c = s.playersession), "customerid" in s && o(23, p = s.customerid), "assetsurl" in s && o(1, H = s.assetsurl), "currency" in s && o(24, Y = s.currency), "numberofmethodsshown" in s && o(25, T = s.numberofmethodsshown), "translationurl" in s && o(2, O = s.translationurl), "mbsource" in s && o(3, P = s.mbsource), "clientstyling" in s && o(4, E = s.clientstyling), "clientstylingurl" in s && o(5, j = s.clientstylingurl), "currencydecimals" in s && o(26, F = s.currencydecimals), "currencysymbol" in s && o(27, V = s.currencysymbol), "currencyposition" in s && o(28, U = s.currencyposition), "promotedmethods" in s && o(29, q = s.promotedmethods);
637
+ }, t.$$.update = () => {
638
+ t.$$.dirty[0] & /*endpoint, paymentsession, customerid*/
639
+ 11534336 && u && !m && p && De(), t.$$.dirty[0] & /*lang*/
640
+ 1 && l && Ce(), t.$$.dirty[0] & /*clientstyling, customStylingContainer*/
641
+ 80 && E && _ && Ke(_, E), t.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
642
+ 96 && j && _ && Ze(_, j), t.$$.dirty[0] & /*mbsource, customStylingContainer*/
643
+ 72 && P && _ && Qe(_, `${P}.Style`), t.$$.dirty[0] & /*lang, translationurl*/
644
+ 5 && l && O && Le(), t.$$.dirty[0] & /*currencydecimals*/
645
+ 67108864 && o(15, n = Number(F));
646
+ }, [
647
+ l,
648
+ H,
649
+ O,
650
+ P,
651
+ E,
652
+ j,
653
+ _,
654
+ Q,
655
+ W,
656
+ N,
657
+ v,
658
+ Z,
659
+ M,
660
+ G,
661
+ I,
662
+ n,
663
+ i,
664
+ ne,
665
+ ie,
666
+ d,
667
+ u,
668
+ m,
669
+ c,
670
+ p,
671
+ Y,
672
+ T,
673
+ F,
674
+ V,
675
+ U,
676
+ q,
677
+ Ae,
678
+ Oe,
679
+ je
680
+ ];
681
+ }
682
+ class mt extends Ie {
683
+ constructor(e) {
684
+ super(), Re(
685
+ this,
686
+ e,
687
+ ct,
688
+ rt,
689
+ He,
690
+ {
691
+ lang: 0,
692
+ local: 19,
693
+ endpoint: 20,
694
+ paymentsession: 21,
695
+ playersession: 22,
696
+ customerid: 23,
697
+ assetsurl: 1,
698
+ currency: 24,
699
+ numberofmethodsshown: 25,
700
+ translationurl: 2,
701
+ mbsource: 3,
702
+ clientstyling: 4,
703
+ clientstylingurl: 5,
704
+ currencydecimals: 26,
705
+ currencysymbol: 27,
706
+ currencyposition: 28,
707
+ promotedmethods: 29
708
+ },
709
+ st,
710
+ [-1, -1]
711
+ );
712
+ }
713
+ get lang() {
714
+ return this.$$.ctx[0];
715
+ }
716
+ set lang(e) {
717
+ this.$$set({ lang: e }), b();
718
+ }
719
+ get local() {
720
+ return this.$$.ctx[19];
721
+ }
722
+ set local(e) {
723
+ this.$$set({ local: e }), b();
724
+ }
725
+ get endpoint() {
726
+ return this.$$.ctx[20];
727
+ }
728
+ set endpoint(e) {
729
+ this.$$set({ endpoint: e }), b();
730
+ }
731
+ get paymentsession() {
732
+ return this.$$.ctx[21];
733
+ }
734
+ set paymentsession(e) {
735
+ this.$$set({ paymentsession: e }), b();
736
+ }
737
+ get playersession() {
738
+ return this.$$.ctx[22];
739
+ }
740
+ set playersession(e) {
741
+ this.$$set({ playersession: e }), b();
742
+ }
743
+ get customerid() {
744
+ return this.$$.ctx[23];
745
+ }
746
+ set customerid(e) {
747
+ this.$$set({ customerid: e }), b();
748
+ }
749
+ get assetsurl() {
750
+ return this.$$.ctx[1];
751
+ }
752
+ set assetsurl(e) {
753
+ this.$$set({ assetsurl: e }), b();
754
+ }
755
+ get currency() {
756
+ return this.$$.ctx[24];
757
+ }
758
+ set currency(e) {
759
+ this.$$set({ currency: e }), b();
760
+ }
761
+ get numberofmethodsshown() {
762
+ return this.$$.ctx[25];
763
+ }
764
+ set numberofmethodsshown(e) {
765
+ this.$$set({ numberofmethodsshown: e }), b();
766
+ }
767
+ get translationurl() {
768
+ return this.$$.ctx[2];
769
+ }
770
+ set translationurl(e) {
771
+ this.$$set({ translationurl: e }), b();
772
+ }
773
+ get mbsource() {
774
+ return this.$$.ctx[3];
775
+ }
776
+ set mbsource(e) {
777
+ this.$$set({ mbsource: e }), b();
778
+ }
779
+ get clientstyling() {
780
+ return this.$$.ctx[4];
781
+ }
782
+ set clientstyling(e) {
783
+ this.$$set({ clientstyling: e }), b();
784
+ }
785
+ get clientstylingurl() {
786
+ return this.$$.ctx[5];
787
+ }
788
+ set clientstylingurl(e) {
789
+ this.$$set({ clientstylingurl: e }), b();
790
+ }
791
+ get currencydecimals() {
792
+ return this.$$.ctx[26];
793
+ }
794
+ set currencydecimals(e) {
795
+ this.$$set({ currencydecimals: e }), b();
796
+ }
797
+ get currencysymbol() {
798
+ return this.$$.ctx[27];
799
+ }
800
+ set currencysymbol(e) {
801
+ this.$$set({ currencysymbol: e }), b();
802
+ }
803
+ get currencyposition() {
804
+ return this.$$.ctx[28];
805
+ }
806
+ set currencyposition(e) {
807
+ this.$$set({ currencyposition: e }), b();
808
+ }
809
+ get promotedmethods() {
810
+ return this.$$.ctx[29];
811
+ }
812
+ set promotedmethods(e) {
813
+ this.$$set({ promotedmethods: e }), b();
814
+ }
815
+ }
816
+ $e(mt, { lang: {}, local: {}, endpoint: {}, paymentsession: {}, playersession: {}, customerid: {}, assetsurl: {}, currency: {}, numberofmethodsshown: {}, translationurl: {}, mbsource: {}, clientstyling: {}, clientstylingurl: {}, currencydecimals: {}, currencysymbol: {}, currencyposition: {}, promotedmethods: {} }, [], [], !0);
817
+ export {
818
+ mt as default
819
+ };