@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
@@ -1,793 +0,0 @@
1
- import { a as Oe, i as Ue, $ as Ie, S as je, b as Re, s as We, f as b, c as Fe, G as le, e as N, k as z, n as x, r as _e, p as ae, q as He, O as Ye, l as c, m as y, o as p, v as S, A as L, w as C, N as qe, y as Be, x as te, W as Z, Y as ce, a4 as Ge, U as K, a0 as Xe, z as me, B as Je, C as Ve, D as Ke, E as Ze, F as Qe } from "./CashierCarousel-DKhPJU6b.js";
2
- import { d as de, u as $e, x as ue } from "./CashierMethodDetails-Cx2IVsNJ.js";
3
- function he(t, e) {
4
- Oe(t, e);
5
- }
6
- function et(t) {
7
- Ue({
8
- fallbackLocale: "en"
9
- }), Ie.set(t);
10
- }
11
- const fe = {
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 tt(t) {
36
- Fe(t, "svelte-ypvc47", '*,*::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}}');
37
- }
38
- function ge(t, e, s) {
39
- const n = t.slice();
40
- return n[52] = e[s], n[54] = s, n;
41
- }
42
- function pe(t) {
43
- let e, s, n, i, r = !/*noPaymentMethodsAvailable*/
44
- t[14] && ye(t);
45
- function l(a, g) {
46
- return (
47
- /*noPaymentMethodsAvailable*/
48
- a[14] && /*isDataLoaded*/
49
- a[13] ? ot : st
50
- );
51
- }
52
- let u = l(t), d = u(t), m = (
53
- /*methodsButtonToggleText*/
54
- t[9] && Me(t)
55
- );
56
- return {
57
- c() {
58
- e = y("div"), r && r.c(), s = x(), n = y("div"), d.c(), i = x(), m && m.c(), p(n, "class", "CashierMethodList"), p(e, "class", "CashierMethodListWidget");
59
- },
60
- m(a, g) {
61
- z(a, e, g), r && r.m(e, null), c(e, s), c(e, n), d.m(n, null), c(e, i), m && m.m(e, null), t[31](e);
62
- },
63
- p(a, g) {
64
- /*noPaymentMethodsAvailable*/
65
- a[14] ? r && (r.d(1), r = null) : r ? r.p(a, g) : (r = ye(a), r.c(), r.m(e, s)), u === (u = l(a)) && d ? d.p(a, g) : (d.d(1), d = u(a), d && (d.c(), d.m(n, null))), /*methodsButtonToggleText*/
66
- a[9] ? m ? m.p(a, g) : (m = Me(a), m.c(), m.m(e, null)) : m && (m.d(1), m = null);
67
- },
68
- d(a) {
69
- a && N(e), r && r.d(), d.d(), m && m.d(), t[31](null);
70
- }
71
- };
72
- }
73
- function ye(t) {
74
- let e, s, n = (
75
- /*$_*/
76
- t[16]("otherMethodsTitle") + ""
77
- ), i, r, l, u = (
78
- /*$_*/
79
- t[16]("otherMethodsDescription") + ""
80
- ), d;
81
- return {
82
- c() {
83
- e = y("div"), s = y("h3"), i = C(n), r = x(), l = y("p"), d = C(u), p(e, "class", "MethodsListDescription");
84
- },
85
- m(m, a) {
86
- z(m, e, a), c(e, s), c(s, i), c(e, r), c(e, l), c(l, d);
87
- },
88
- p(m, a) {
89
- a[0] & /*$_*/
90
- 65536 && n !== (n = /*$_*/
91
- m[16]("otherMethodsTitle") + "") && S(i, n), a[0] & /*$_*/
92
- 65536 && u !== (u = /*$_*/
93
- m[16]("otherMethodsDescription") + "") && S(d, u);
94
- },
95
- d(m) {
96
- m && N(e);
97
- }
98
- };
99
- }
100
- function st(t) {
101
- let e, s = ce(
102
- /*paymentMethodsToShow*/
103
- t[10]
104
- ), n = [];
105
- for (let i = 0; i < s.length; i += 1)
106
- n[i] = we(ge(t, s, i));
107
- return {
108
- c() {
109
- for (let i = 0; i < n.length; i += 1)
110
- n[i].c();
111
- e = _e();
112
- },
113
- m(i, r) {
114
- for (let l = 0; l < n.length; l += 1)
115
- n[l] && n[l].m(i, r);
116
- z(i, e, r);
117
- },
118
- p(i, r) {
119
- if (r[0] & /*selectedPaymentMethod, paymentMethodsToShow, selectPayMeth, precisionCurrenciesMap, numericCurrencyDecimals, $_*/
120
- 230784) {
121
- s = ce(
122
- /*paymentMethodsToShow*/
123
- i[10]
124
- );
125
- let l;
126
- for (l = 0; l < s.length; l += 1) {
127
- const u = ge(i, s, l);
128
- n[l] ? n[l].p(u, r) : (n[l] = we(u), 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 = s.length;
133
- }
134
- },
135
- d(i) {
136
- i && N(e), Ge(n, i);
137
- }
138
- };
139
- }
140
- function ot(t) {
141
- let e, s, n, i = (
142
- /*$_*/
143
- t[16]("error") + ""
144
- ), r, l, u, d = (
145
- /*$_*/
146
- t[16]("noPaymentMethods") + ""
147
- ), m;
148
- return {
149
- c() {
150
- e = y("div"), s = y("div"), n = y("p"), r = C(i), l = x(), u = y("p"), m = C(d), p(n, "class", "EmptyContentMessageTitle"), p(u, "class", "EmptyContentMessageText"), p(s, "class", "EmptyContentMessageContent"), p(e, "class", "EmptyContentMessageWrapper"), Z(
151
- e,
152
- "EmptyContentMessageDesktop",
153
- /*desktopView*/
154
- t[12]
155
- );
156
- },
157
- m(a, g) {
158
- z(a, e, g), c(e, s), c(s, n), c(n, r), c(s, l), c(s, u), c(u, m);
159
- },
160
- p(a, g) {
161
- g[0] & /*$_*/
162
- 65536 && i !== (i = /*$_*/
163
- a[16]("error") + "") && S(r, i), g[0] & /*$_*/
164
- 65536 && d !== (d = /*$_*/
165
- a[16]("noPaymentMethods") + "") && S(m, d), g[0] & /*desktopView*/
166
- 4096 && Z(
167
- e,
168
- "EmptyContentMessageDesktop",
169
- /*desktopView*/
170
- a[12]
171
- );
172
- },
173
- d(a) {
174
- a && N(e);
175
- }
176
- };
177
- }
178
- function we(t) {
179
- let e, s, n, i, r, l, u, d, m, a = (
180
- /*payMeth*/
181
- (t[52].Label || /*payMeth*/
182
- t[52].Name) + ""
183
- ), g, X, A, w, P = (
184
- /*$_*/
185
- t[16]("generalMin") + ""
186
- ), O, F, E = K(
187
- /*payMeth*/
188
- t[52].DisplayCurrency.MinAmountLimit,
189
- /*payMeth*/
190
- t[52].DisplayCurrency.Name,
191
- {
192
- maximumFractionDigits: (
193
- /*precisionCurrenciesMap*/
194
- t[7][
195
- /*payMeth*/
196
- t[52]?.DisplayCurrency?.Name
197
- ] || /*numericCurrencyDecimals*/
198
- t[15]
199
- ),
200
- minimumFractionDigits: (
201
- /*precisionCurrenciesMap*/
202
- t[7][
203
- /*payMeth*/
204
- t[52]?.DisplayCurrency?.Name
205
- ] || /*numericCurrencyDecimals*/
206
- t[15]
207
- )
208
- }
209
- ) + "", U, Y, I = (
210
- /*$_*/
211
- t[16]("generalMax") + ""
212
- ), q, k, B = K(
213
- /*payMeth*/
214
- t[52].DisplayCurrency.MaxAmountLimit,
215
- /*payMeth*/
216
- t[52].DisplayCurrency.Name,
217
- {
218
- maximumFractionDigits: (
219
- /*precisionCurrenciesMap*/
220
- t[7][
221
- /*payMeth*/
222
- t[52]?.DisplayCurrency?.Name
223
- ] || /*numericCurrencyDecimals*/
224
- t[15]
225
- ),
226
- minimumFractionDigits: (
227
- /*precisionCurrenciesMap*/
228
- t[7][
229
- /*payMeth*/
230
- t[52]?.DisplayCurrency?.Name
231
- ] || /*numericCurrencyDecimals*/
232
- t[15]
233
- )
234
- }
235
- ) + "", _, j, T, D;
236
- function G() {
237
- return (
238
- /*click_handler*/
239
- t[29](
240
- /*payMeth*/
241
- t[52]
242
- )
243
- );
244
- }
245
- return {
246
- c() {
247
- e = y("div"), s = y("div"), n = y("img"), l = x(), u = y("div"), d = y("div"), m = y("span"), g = C(a), X = x(), A = y("div"), w = y("span"), O = C(P), F = x(), U = C(E), Y = C(" / "), q = C(I), k = x(), _ = C(B), j = x(), me(n.src, i = /*payMeth*/
248
- t[52].LogoUrl) || p(n, "src", i), p(n, "alt", r = /*payMeth*/
249
- t[52].Label), p(s, "class", "MethodLogo"), p(d, "class", "MethodTitle"), p(w, "class", "Limits"), p(A, "class", "MethodLimits"), p(u, "class", "MethodInfo"), p(e, "class", "SelectorWrapper"), Z(
250
- e,
251
- "checked",
252
- /*selectedPaymentMethod*/
253
- t[8] === /*payMeth*/
254
- t[52].Name
255
- );
256
- },
257
- m(R, v) {
258
- z(R, e, v), c(e, s), c(s, n), c(e, l), c(e, u), c(u, d), c(d, m), c(m, g), c(u, X), c(u, A), c(A, w), c(w, O), c(w, F), c(w, U), c(w, Y), c(w, q), c(w, k), c(w, _), c(e, j), T || (D = [
259
- te(e, "click", G),
260
- te(e, "keyup", rt)
261
- ], T = !0);
262
- },
263
- p(R, v) {
264
- t = R, v[0] & /*paymentMethodsToShow*/
265
- 1024 && !me(n.src, i = /*payMeth*/
266
- t[52].LogoUrl) && p(n, "src", i), v[0] & /*paymentMethodsToShow*/
267
- 1024 && r !== (r = /*payMeth*/
268
- t[52].Label) && p(n, "alt", r), v[0] & /*paymentMethodsToShow*/
269
- 1024 && a !== (a = /*payMeth*/
270
- (t[52].Label || /*payMeth*/
271
- t[52].Name) + "") && S(g, a), v[0] & /*$_*/
272
- 65536 && P !== (P = /*$_*/
273
- t[16]("generalMin") + "") && S(O, P), v[0] & /*paymentMethodsToShow, precisionCurrenciesMap, numericCurrencyDecimals*/
274
- 33920 && E !== (E = K(
275
- /*payMeth*/
276
- t[52].DisplayCurrency.MinAmountLimit,
277
- /*payMeth*/
278
- t[52].DisplayCurrency.Name,
279
- {
280
- maximumFractionDigits: (
281
- /*precisionCurrenciesMap*/
282
- t[7][
283
- /*payMeth*/
284
- t[52]?.DisplayCurrency?.Name
285
- ] || /*numericCurrencyDecimals*/
286
- t[15]
287
- ),
288
- minimumFractionDigits: (
289
- /*precisionCurrenciesMap*/
290
- t[7][
291
- /*payMeth*/
292
- t[52]?.DisplayCurrency?.Name
293
- ] || /*numericCurrencyDecimals*/
294
- t[15]
295
- )
296
- }
297
- ) + "") && S(U, E), v[0] & /*$_*/
298
- 65536 && I !== (I = /*$_*/
299
- t[16]("generalMax") + "") && S(q, I), v[0] & /*paymentMethodsToShow, precisionCurrenciesMap, numericCurrencyDecimals*/
300
- 33920 && B !== (B = K(
301
- /*payMeth*/
302
- t[52].DisplayCurrency.MaxAmountLimit,
303
- /*payMeth*/
304
- t[52].DisplayCurrency.Name,
305
- {
306
- maximumFractionDigits: (
307
- /*precisionCurrenciesMap*/
308
- t[7][
309
- /*payMeth*/
310
- t[52]?.DisplayCurrency?.Name
311
- ] || /*numericCurrencyDecimals*/
312
- t[15]
313
- ),
314
- minimumFractionDigits: (
315
- /*precisionCurrenciesMap*/
316
- t[7][
317
- /*payMeth*/
318
- t[52]?.DisplayCurrency?.Name
319
- ] || /*numericCurrencyDecimals*/
320
- t[15]
321
- )
322
- }
323
- ) + "") && S(_, B), v[0] & /*selectedPaymentMethod, paymentMethodsToShow*/
324
- 1280 && Z(
325
- e,
326
- "checked",
327
- /*selectedPaymentMethod*/
328
- t[8] === /*payMeth*/
329
- t[52].Name
330
- );
331
- },
332
- d(R) {
333
- R && N(e), T = !1, Xe(D);
334
- }
335
- };
336
- }
337
- function Me(t) {
338
- let e, s, n, i;
339
- return {
340
- c() {
341
- e = y("div"), s = C(
342
- /*methodsButtonToggleText*/
343
- t[9]
344
- ), p(e, "class", "ShowAllButton");
345
- },
346
- m(r, l) {
347
- z(r, e, l), c(e, s), n || (i = te(
348
- e,
349
- "click",
350
- /*click_handler_1*/
351
- t[30]
352
- ), n = !0);
353
- },
354
- p(r, l) {
355
- l[0] & /*methodsButtonToggleText*/
356
- 512 && S(
357
- s,
358
- /*methodsButtonToggleText*/
359
- r[9]
360
- );
361
- },
362
- d(r) {
363
- r && N(e), n = !1, i();
364
- }
365
- };
366
- }
367
- function be(t) {
368
- let e, s, n;
369
- return {
370
- c() {
371
- e = y("cashier-error"), s = y("span"), n = C(
372
- /*errorMessage*/
373
- t[11]
374
- ), p(s, "class", "ErrorMessage"), p(s, "slot", "text"), L(
375
- e,
376
- "lang",
377
- /*lang*/
378
- t[0]
379
- ), L(
380
- e,
381
- "assetsurl",
382
- /*assetsurl*/
383
- t[1]
384
- ), L(
385
- e,
386
- "translationurl",
387
- /*translationurl*/
388
- t[2]
389
- ), L(
390
- e,
391
- "clientstylingurl",
392
- /*clientstylingurl*/
393
- t[5]
394
- ), L(
395
- e,
396
- "clientstyling",
397
- /*clientstyling*/
398
- t[4]
399
- ), L(
400
- e,
401
- "mbsource",
402
- /*mbsource*/
403
- t[3]
404
- ), L(e, "hidebuttons", "true");
405
- },
406
- m(i, r) {
407
- z(i, e, r), c(e, s), c(s, n);
408
- },
409
- p(i, r) {
410
- r[0] & /*errorMessage*/
411
- 2048 && S(
412
- n,
413
- /*errorMessage*/
414
- i[11]
415
- ), r[0] & /*lang*/
416
- 1 && L(
417
- e,
418
- "lang",
419
- /*lang*/
420
- i[0]
421
- ), r[0] & /*assetsurl*/
422
- 2 && L(
423
- e,
424
- "assetsurl",
425
- /*assetsurl*/
426
- i[1]
427
- ), r[0] & /*translationurl*/
428
- 4 && L(
429
- e,
430
- "translationurl",
431
- /*translationurl*/
432
- i[2]
433
- ), r[0] & /*clientstylingurl*/
434
- 32 && L(
435
- e,
436
- "clientstylingurl",
437
- /*clientstylingurl*/
438
- i[5]
439
- ), r[0] & /*clientstyling*/
440
- 16 && L(
441
- e,
442
- "clientstyling",
443
- /*clientstyling*/
444
- i[4]
445
- ), r[0] & /*mbsource*/
446
- 8 && L(
447
- e,
448
- "mbsource",
449
- /*mbsource*/
450
- i[3]
451
- );
452
- },
453
- d(i) {
454
- i && N(e);
455
- }
456
- };
457
- }
458
- function nt(t) {
459
- let e, s, n = (
460
- /*isDataLoaded*/
461
- t[13] && pe(t)
462
- ), i = (
463
- /*errorMessage*/
464
- t[11] && be(t)
465
- );
466
- return {
467
- c() {
468
- n && n.c(), e = x(), i && i.c(), s = _e();
469
- },
470
- m(r, l) {
471
- n && n.m(r, l), z(r, e, l), i && i.m(r, l), z(r, s, l);
472
- },
473
- p(r, l) {
474
- /*isDataLoaded*/
475
- r[13] ? n ? n.p(r, l) : (n = pe(r), n.c(), n.m(e.parentNode, e)) : n && (n.d(1), n = null), /*errorMessage*/
476
- r[11] ? i ? i.p(r, l) : (i = be(r), i.c(), i.m(s.parentNode, s)) : i && (i.d(1), i = null);
477
- },
478
- i: le,
479
- o: le,
480
- d(r) {
481
- r && (N(e), N(s)), n && n.d(r), i && i.d(r);
482
- }
483
- };
484
- }
485
- const it = "PaymentPromotion", rt = () => {
486
- };
487
- function lt(t, e, s) {
488
- let n, i, r;
489
- ae(t, Qe, (o) => s(16, i = o)), ae(t, ue, (o) => s(37, r = o)), de.extend($e);
490
- let { lang: l = "en" } = e, { local: u = "en-US" } = e, { endpoint: d } = e, { paymentsession: m } = e, { playersession: a } = e, { customerid: g } = e, { assetsurl: X } = e, { currency: A } = e, { numberofmethodsshown: w } = e, { translationurl: P = "" } = e, { mbsource: O } = e, { clientstyling: F } = e, { clientstylingurl: E } = e, { currencydecimals: U = "0" } = e, { currencysymbol: Y = "" } = e, { currencyposition: I = "" } = e, q = {}, k, B = window.navigator.userAgent, _ = [], j, T = "", D = [], G = [], R = "", v, Q = !0, J = !1, se = !1;
491
- var $;
492
- (function(o) {
493
- o.PlayerSessionIsNotValid = "PlayerSessionIsNotValid", o.Success = "Success", o.JwtTokenError = "JwtTokenError";
494
- })($ || ($ = {}));
495
- const ve = () => {
496
- let o = P;
497
- if (o)
498
- return fetch(o).then((h) => h.json()).then((h) => {
499
- Object.keys(h).forEach((W) => {
500
- he(W, h[W]);
501
- });
502
- }).catch((h) => {
503
- console.log(h);
504
- });
505
- };
506
- Object.keys(fe).forEach((o) => {
507
- he(o, fe[o]);
508
- });
509
- const Le = () => {
510
- et(l);
511
- }, ke = () => {
512
- r && Ce();
513
- }, Ce = () => {
514
- window.postMessage({ type: "DataLoading", isDataLoaded: J });
515
- const o = new URL(`${d}/v2/player/${g}/payment/GetPaymentMetadata`), h = new Headers();
516
- h.append("accept", "application/json"), h.append("Content-Type", "application/json"), h.append("X-Client-Request-Timestamp", de.utc().format("YYYY-MM-DD HH:mm:ss.SSS")), h.append("X-SessionId", `${a}`), h.append("X-Payment-Session-Token", `${m || r}`);
517
- const W = {
518
- method: "POST",
519
- headers: h,
520
- mode: "cors",
521
- body: JSON.stringify({
522
- Currency: A,
523
- Tags: { UserAgent: window.navigator.userAgent }
524
- })
525
- };
526
- fetch(o, W).then((f) => {
527
- const M = f.headers.get("X-Payment-Session-Token");
528
- return M && ue.set(M), f.json();
529
- }).then((f) => {
530
- if (f.error) {
531
- s(11, R = f.error);
532
- return;
533
- }
534
- if (f.ResponseCode !== $.Success) {
535
- v = f.ResponseCode, xe();
536
- return;
537
- }
538
- _ = f.PaymentMethods?.Ordering ? De(f) : Se(f), window.postMessage(
539
- {
540
- type: "PromotedPaymentMethods",
541
- promotedPaymentMethods: G
542
- },
543
- window.location.href
544
- ), s(9, T = w && +w > 0 && _.length > +w ? i("showAll") : ""), s(10, D = T ? _.slice(0, +w) : _), s(14, se = !D.length), window.postMessage(
545
- {
546
- type: "StartSessionCountdown",
547
- paymentMethodName: _[0].Name
548
- },
549
- window.location.href
550
- ), window.postMessage({ type: "DataLoading", isDataLoaded: J });
551
- }).finally(() => {
552
- s(13, J = !0), window.postMessage({ type: "DataLoading", isDataLoaded: J });
553
- });
554
- }, De = (o) => {
555
- const h = [];
556
- return G = [], o.PaymentMethods.Ordering.DefaultPaymentMethodsOrder.forEach((W) => {
557
- const f = o.PaymentMethods.PaymentMethods.find((M) => M.Name === W);
558
- if (f) {
559
- const M = f?.Logos.find((ee) => ee.LogoType === "Desktop") || {}, V = f?.Logos.find((ee) => ee.LogoType === "Mobile") || {}, H = Q ? M : V;
560
- f.isMethodPromoted = ie(f.Tags), f.LogoUrl = H.LogoUrl ? `https:${H.LogoUrl}` : "", f.isMethodPromoted && G.push(f), h.push(f);
561
- }
562
- }), h;
563
- }, Se = (o) => {
564
- const h = o.PaymentMethods.PaymentMethods.map((M) => ({
565
- ...M,
566
- isMethodPromoted: ie(M.Tags),
567
- LogoUrl: M.Logos && M.Logos.length && M.Logos[0].LogoUrl ? `https:${M.Logos[0].LogoUrl}` : ""
568
- })), [W, f] = h.reduce(
569
- ([M, V], H) => (H && H.isMethodPromoted ? M.push(H) : V.promo(H), [M, V]),
570
- [[], []]
571
- );
572
- return G = W, f;
573
- }, oe = (o) => {
574
- s(8, j = o.Name), window.postMessage({ type: "SelectPayMeth", details: o }, window.location.href), dispatchEvent(new CustomEvent(
575
- "selectPayMeth",
576
- {
577
- detail: o,
578
- bubbles: !0,
579
- cancelable: !0,
580
- composed: !0
581
- }
582
- ));
583
- }, xe = () => {
584
- window.postMessage(
585
- {
586
- type: "ErrorResponseCode",
587
- errorResponseCode: v
588
- },
589
- window.location.href
590
- );
591
- }, Pe = () => {
592
- s(12, Q = !qe(B));
593
- }, ne = () => {
594
- D == _ ? Te() : Ee();
595
- }, Ee = () => {
596
- s(10, D = _), s(9, T = i("showLess"));
597
- }, Te = () => {
598
- s(10, D = _.slice(0, +w)), j && !D.find((o) => o.Name === j) && D.splice(0, 0, _.find((o) => o.Name === j)), s(9, T = i("showAll"));
599
- }, ie = (o) => o && o.split(",").some((h) => h === it), re = (o) => {
600
- const { data: { type: h } = {} } = o || {};
601
- switch (h) {
602
- case "PrecisionCurrenciesMap": {
603
- s(7, q = o?.data?.payload || {});
604
- break;
605
- }
606
- }
607
- };
608
- He(() => (Pe(), Ye(u, Y, I, U), window.postMessage({ type: "CashierMethodsListReady" }, window.location.href), window.addEventListener("message", re), () => {
609
- window.removeEventListener("message", re);
610
- }));
611
- const Ne = (o) => oe(o), ze = () => ne();
612
- function Ae(o) {
613
- Be[o ? "unshift" : "push"](() => {
614
- k = o, s(6, k);
615
- });
616
- }
617
- return t.$$set = (o) => {
618
- "lang" in o && s(0, l = o.lang), "local" in o && s(19, u = o.local), "endpoint" in o && s(20, d = o.endpoint), "paymentsession" in o && s(21, m = o.paymentsession), "playersession" in o && s(22, a = o.playersession), "customerid" in o && s(23, g = o.customerid), "assetsurl" in o && s(1, X = o.assetsurl), "currency" in o && s(24, A = o.currency), "numberofmethodsshown" in o && s(25, w = o.numberofmethodsshown), "translationurl" in o && s(2, P = o.translationurl), "mbsource" in o && s(3, O = o.mbsource), "clientstyling" in o && s(4, F = o.clientstyling), "clientstylingurl" in o && s(5, E = o.clientstylingurl), "currencydecimals" in o && s(26, U = o.currencydecimals), "currencysymbol" in o && s(27, Y = o.currencysymbol), "currencyposition" in o && s(28, I = o.currencyposition);
619
- }, t.$$.update = () => {
620
- t.$$.dirty[0] & /*endpoint, paymentsession, customerid*/
621
- 11534336 && d && !m && g && ke(), t.$$.dirty[0] & /*lang*/
622
- 1 && l && Le(), t.$$.dirty[0] & /*clientstyling, customStylingContainer*/
623
- 80 && F && k && Je(k, F), t.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
624
- 96 && E && k && Ve(k, E), t.$$.dirty[0] & /*mbsource, customStylingContainer*/
625
- 72 && O && k && Ke(k, `${O}.Style`), t.$$.dirty[0] & /*lang, translationurl*/
626
- 5 && l && P && ve(), t.$$.dirty[0] & /*currencydecimals*/
627
- 67108864 && s(15, n = Number(U));
628
- }, [
629
- l,
630
- X,
631
- P,
632
- O,
633
- F,
634
- E,
635
- k,
636
- q,
637
- j,
638
- T,
639
- D,
640
- R,
641
- Q,
642
- J,
643
- se,
644
- n,
645
- i,
646
- oe,
647
- ne,
648
- u,
649
- d,
650
- m,
651
- a,
652
- g,
653
- A,
654
- w,
655
- U,
656
- Y,
657
- I,
658
- Ne,
659
- ze,
660
- Ae
661
- ];
662
- }
663
- class at extends je {
664
- constructor(e) {
665
- super(), Re(
666
- this,
667
- e,
668
- lt,
669
- nt,
670
- We,
671
- {
672
- lang: 0,
673
- local: 19,
674
- endpoint: 20,
675
- paymentsession: 21,
676
- playersession: 22,
677
- customerid: 23,
678
- assetsurl: 1,
679
- currency: 24,
680
- numberofmethodsshown: 25,
681
- translationurl: 2,
682
- mbsource: 3,
683
- clientstyling: 4,
684
- clientstylingurl: 5,
685
- currencydecimals: 26,
686
- currencysymbol: 27,
687
- currencyposition: 28
688
- },
689
- tt,
690
- [-1, -1]
691
- );
692
- }
693
- get lang() {
694
- return this.$$.ctx[0];
695
- }
696
- set lang(e) {
697
- this.$$set({ lang: e }), b();
698
- }
699
- get local() {
700
- return this.$$.ctx[19];
701
- }
702
- set local(e) {
703
- this.$$set({ local: e }), b();
704
- }
705
- get endpoint() {
706
- return this.$$.ctx[20];
707
- }
708
- set endpoint(e) {
709
- this.$$set({ endpoint: e }), b();
710
- }
711
- get paymentsession() {
712
- return this.$$.ctx[21];
713
- }
714
- set paymentsession(e) {
715
- this.$$set({ paymentsession: e }), b();
716
- }
717
- get playersession() {
718
- return this.$$.ctx[22];
719
- }
720
- set playersession(e) {
721
- this.$$set({ playersession: e }), b();
722
- }
723
- get customerid() {
724
- return this.$$.ctx[23];
725
- }
726
- set customerid(e) {
727
- this.$$set({ customerid: e }), b();
728
- }
729
- get assetsurl() {
730
- return this.$$.ctx[1];
731
- }
732
- set assetsurl(e) {
733
- this.$$set({ assetsurl: e }), b();
734
- }
735
- get currency() {
736
- return this.$$.ctx[24];
737
- }
738
- set currency(e) {
739
- this.$$set({ currency: e }), b();
740
- }
741
- get numberofmethodsshown() {
742
- return this.$$.ctx[25];
743
- }
744
- set numberofmethodsshown(e) {
745
- this.$$set({ numberofmethodsshown: e }), b();
746
- }
747
- get translationurl() {
748
- return this.$$.ctx[2];
749
- }
750
- set translationurl(e) {
751
- this.$$set({ translationurl: e }), b();
752
- }
753
- get mbsource() {
754
- return this.$$.ctx[3];
755
- }
756
- set mbsource(e) {
757
- this.$$set({ mbsource: e }), b();
758
- }
759
- get clientstyling() {
760
- return this.$$.ctx[4];
761
- }
762
- set clientstyling(e) {
763
- this.$$set({ clientstyling: e }), b();
764
- }
765
- get clientstylingurl() {
766
- return this.$$.ctx[5];
767
- }
768
- set clientstylingurl(e) {
769
- this.$$set({ clientstylingurl: e }), b();
770
- }
771
- get currencydecimals() {
772
- return this.$$.ctx[26];
773
- }
774
- set currencydecimals(e) {
775
- this.$$set({ currencydecimals: e }), b();
776
- }
777
- get currencysymbol() {
778
- return this.$$.ctx[27];
779
- }
780
- set currencysymbol(e) {
781
- this.$$set({ currencysymbol: e }), b();
782
- }
783
- get currencyposition() {
784
- return this.$$.ctx[28];
785
- }
786
- set currencyposition(e) {
787
- this.$$set({ currencyposition: e }), b();
788
- }
789
- }
790
- Ze(at, { lang: {}, local: {}, endpoint: {}, paymentsession: {}, playersession: {}, customerid: {}, assetsurl: {}, currency: {}, numberofmethodsshown: {}, translationurl: {}, mbsource: {}, clientstyling: {}, clientstylingurl: {}, currencydecimals: {}, currencysymbol: {}, currencyposition: {} }, [], [], !0);
791
- export {
792
- at as default
793
- };