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