@everymatrix/cashier-page 1.91.0 → 1.91.2

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 (66) hide show
  1. package/components/CashierCarousel-BofZKjRf.js +672 -0
  2. package/components/CashierCarousel-CNMnDNQz.js +675 -0
  3. package/components/CashierCarousel-DQbG4edk.cjs +1 -0
  4. package/components/{CashierError-GVDugzHE.js → CashierError-DJPfXVFN.js} +342 -216
  5. package/components/{CashierError-DnW2aAAX.js → CashierError-DUP7tACy.js} +342 -216
  6. package/components/CashierError-ISlGyswL.cjs +1 -0
  7. package/components/{CashierHeader-CqlQfyVu.js → CashierHeader-DF-2cBjK.js} +1 -1
  8. package/components/{CashierHeader-BUXr5k5a.js → CashierHeader-DKJVHe7h.js} +1 -1
  9. package/components/{CashierHeader-CGkFElKE.cjs → CashierHeader-DvFR_9go.cjs} +1 -1
  10. package/components/{CashierIframeRedirect-QMqpcwCG.cjs → CashierIframeRedirect-BNEVitom.cjs} +1 -1
  11. package/components/{CashierIframeRedirect-CapiLMF8.js → CashierIframeRedirect-DRD9axM6.js} +3 -3
  12. package/components/{CashierIframeRedirect-CsmTMsox.js → CashierIframeRedirect-DZ_YLJYj.js} +3 -3
  13. package/components/CashierMethodDetails-BZKMdu3t.cjs +85 -0
  14. package/components/{CashierMethodDetails-4R1nLbe5.js → CashierMethodDetails-CKIGaxi8.js} +3135 -3193
  15. package/components/{CashierMethodDetails-BzJz0Sq0.js → CashierMethodDetails-Deaprjr2.js} +3012 -3070
  16. package/components/{CashierMethodsList-B2dSWs7J.js → CashierMethodsList-Bi2J58lb.js} +338 -345
  17. package/components/CashierMethodsList-D80YHvjG.cjs +1 -0
  18. package/components/{CashierMethodsList-HTDFcAM2.js → CashierMethodsList-gnvGqv6E.js} +280 -286
  19. package/components/{CashierModal-CN0tT1eh.js → CashierModal-D1IV_K94.js} +14 -14
  20. package/components/{CashierModal-CkBko0v-.js → CashierModal-SkRBY0vF.js} +17 -17
  21. package/components/{CashierModal-Bz8ySIyi.cjs → CashierModal-aStI-fdB.cjs} +1 -1
  22. package/components/{CashierNotifications-NRK114A1.cjs → CashierNotifications-B-qpSzxF.cjs} +1 -1
  23. package/components/{CashierNotifications-xGwuu5BE.js → CashierNotifications-BIU_bNM2.js} +1 -1
  24. package/components/{CashierNotifications-DnmURttF.js → CashierNotifications-C4Zl0QXH.js} +1 -1
  25. package/components/CashierPage-CkcgKU-E.cjs +23 -0
  26. package/components/{CashierPage-D8eAeeTg.js → CashierPage-Dj7li6Lk.js} +2882 -2715
  27. package/components/CashierPage-yP_xx26w.js +9936 -0
  28. package/components/{CashierReceiptPage-D3Sdi7w-.js → CashierReceiptPage-Bp1kvPqZ.js} +483 -472
  29. package/components/CashierReceiptPage-C2LRGXPG.cjs +26 -0
  30. package/components/{CashierReceiptPage-BS0QTi7y.js → CashierReceiptPage-DIQ5NCmX.js} +510 -499
  31. package/components/{CashierSessionExpirationModal-Cj9H9-o6.js → CashierSessionExpirationModal-B-DtrlP7.js} +2 -2
  32. package/components/{CashierSessionExpirationModal-5D6mSXhf.js → CashierSessionExpirationModal-YnQFh24c.js} +2 -2
  33. package/components/{CashierSessionExpirationModal-Da6q5YRq.cjs → CashierSessionExpirationModal-_NLQgrzL.cjs} +1 -1
  34. package/components/{CashierSpinner-BHN2tG4f.js → CashierSpinner-BCzuIyuu.js} +2 -2
  35. package/components/{CashierSpinner-D04XM1jR.js → CashierSpinner-BOQbmF2h.js} +2 -2
  36. package/components/{CashierSpinner-7mXjeifk.cjs → CashierSpinner-Dn0kfQ_K.cjs} +1 -1
  37. package/components/{CashierStepUp-hf-Itlb6.js → CashierStepUp-Bpqm3i57.js} +154 -154
  38. package/components/CashierStepUp-CpCirwQD.cjs +1 -0
  39. package/components/{CashierStepUp-CnW7UvRG.js → CashierStepUp-D79Gj8_o.js} +159 -159
  40. package/components/{CashierTransactionHistory-YWwiRGJs.js → CashierTransactionHistory-CeuEInba.js} +5 -5
  41. package/components/{CashierTransactionHistory-Nv32sGAu.cjs → CashierTransactionHistory-DkzZ_zMy.cjs} +1 -1
  42. package/components/{CashierTransactionHistory-bh1Q8Faa.js → CashierTransactionHistory-qJMjtAww.js} +5 -5
  43. package/components/{CashierVerifications-ByZEjDnF.js → CashierVerifications-BUvupwqw.js} +28 -28
  44. package/components/{CashierVerifications-BCkZLXmV.js → CashierVerifications-D954Dcmi.js} +29 -29
  45. package/components/CashierVerifications-DcShCh6T.cjs +1 -0
  46. package/components/{TxnStatusIcon-B0FD-Tlp.cjs → TxnStatusIcon-CP7WnbND.cjs} +1 -1
  47. package/components/{TxnStatusIcon-BLfcIuFx.js → TxnStatusIcon-DRjPEMAm.js} +1 -1
  48. package/components/{TxnStatusIcon-Bxy-vPn9.js → TxnStatusIcon-j6u7C3Y3.js} +1 -1
  49. package/components/{TxnTypeIcons-HG3_RpnO.cjs → TxnTypeIcons-BnhR_qpa.cjs} +1 -1
  50. package/components/{TxnTypeIcons-D3CY569A.js → TxnTypeIcons-euzGvJDK.js} +1 -1
  51. package/components/{TxnTypeIcons-rCf7ZZNL.js → TxnTypeIcons-ggzXXvn_.js} +1 -1
  52. package/es2015/cashier-page.cjs +1 -1
  53. package/es2015/cashier-page.js +2 -2
  54. package/esnext/cashier-page.js +1 -1
  55. package/package.json +1 -1
  56. package/components/CashierCarousel-DlE4b6HZ.js +0 -674
  57. package/components/CashierCarousel-EnoYVdXI.js +0 -671
  58. package/components/CashierCarousel-zKCUYR34.cjs +0 -1
  59. package/components/CashierError-DhBoZcJ7.cjs +0 -1
  60. package/components/CashierMethodDetails-BB3kQBHg.cjs +0 -85
  61. package/components/CashierMethodsList-CAhMX-rt.cjs +0 -1
  62. package/components/CashierPage-Db1WM6lI.cjs +0 -23
  63. package/components/CashierPage-hApMSijm.js +0 -9769
  64. package/components/CashierReceiptPage-C9IeXugN.cjs +0 -28
  65. package/components/CashierStepUp-CfqAbEGH.cjs +0 -1
  66. package/components/CashierVerifications-BtKAhLAo.cjs +0 -1
@@ -1,674 +0,0 @@
1
- import { a as Ne, i as Te, $ as We, S as Ae, b as Se, s as ze, f as z, c as Fe, y as se, e as V, v as P, k as R, l as c, m as g, w as I, n as A, o as p, p as Pe, q as Ie, x as pe, C as re, D as le, E as ye, F as Ve, G as Re, z as O, H as Xe, I as ne, J as be, K as Ee, A as xe, B as He } from "./CashierPage-D8eAeeTg.js";
2
- import { s as je, a as Ze, b as Ue } from "./CashierHeader-BUXr5k5a.js";
3
- function ve(e, t) {
4
- Ne(e, t);
5
- }
6
- function qe(e) {
7
- Te({
8
- fallbackLocale: "en"
9
- }), We.set(e);
10
- }
11
- const we = {
12
- en: {
13
- generalMin: "Min",
14
- generalMax: "Max",
15
- error: "Error",
16
- noFavoritePaymentMethods: "No favorite payment methods available",
17
- DepositRealTime: "Instant deposit",
18
- WithdrawRealTime: "Instant withdrawal",
19
- DepositVariable: "Variable",
20
- WithdrawVariable: "Variable",
21
- carouselTitle: "Favorite Methods",
22
- carouselSubtitle: "The most popular payment methods"
23
- },
24
- tr: {
25
- generalMin: "Min",
26
- generalMax: "Maks",
27
- error: "Hata",
28
- noFavoritePaymentMethods: "Favori ödeme yöntemi mevcut değil",
29
- DepositRealTime: "Anında para yatırma",
30
- WithdrawRealTime: "Anında para çekme",
31
- DepositVariable: "Değişken",
32
- WithdrawVariable: "Değişken",
33
- carouselTitle: "Favori Yöntemler",
34
- carouselSubtitle: "En popüler ödeme yöntemleri"
35
- },
36
- fr: {
37
- generalMin: "Min",
38
- generalMax: "Max",
39
- error: "Erreur",
40
- noFavoritePaymentMethods: "Aucun moyen de paiement favori disponible",
41
- DepositRealTime: "Dépôt instantané",
42
- WithdrawRealTime: "Retrait instantané",
43
- DepositVariable: "Variable",
44
- WithdrawVariable: "Variable",
45
- carouselTitle: "Méthodes favorites",
46
- carouselSubtitle: "Les moyens de paiement les plus populaires"
47
- }
48
- };
49
- function Be(e) {
50
- Fe(e, "svelte-1v34r4p", '*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit}.CashierCarouselWarpper{background-color:var(--emw--color-cashier-bg, var(--emw--color-background, #23281f));color:var(--emw--color-typography, var(--emw--color-white, #ffffff));height:auto;width:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;padding:20px;position:relative;overflow:hidden}.NavigationArrow{height:220px;z-index:20;display:flex;transition:all 0.3s ease;position:absolute}.NavigationArrow:hover{cursor:pointer}.NavigationArrow:hover svg{opacity:1;transform:scale(1.1);filter:drop-shadow(0 0 0.75rem var(--emw--color-black))}.NavigationArrow svg{opacity:0.6;width:32px;height:32px;align-self:center;fill:var(--emw--color-white);transition:all 0.3s ease}.NavigationArrow.Left{left:0;background:linear-gradient(to right, var(--emw--color-cashier-bg, var(--emw--color-background, #23281f)) 35%, transparent 100%)}.NavigationArrow.Right{right:0;background:linear-gradient(to left, var(--emw--color-cashier-bg, var(--emw--color-background, #23281f)) 35%, transparent 100%)}.CarouselHeader{margin-bottom:20px;text-align:center}.CarouselHeader h4{font-size:12px;text-transform:uppercase;margin:10px 0}.CarouselHeader p{color:var(--emw--color-typography, var(--emw--color-white, #ffffff));opacity:0.55;font-size:12px}.NoFavoritePaymentMethods{color:var(--emw--color-typography, var(--emw--color-white, #ffffff));font-size:12px}.CarouselCardsContainer{display:flex;justify-content:space-between;align-items:center;overflow:hidden;position:relative;max-width:100%}.Carousel{display:flex;gap:10px;height:220px;position:relative;align-items:center;transition:transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94)}.Carousel.dragging{transition:none}.VisualDotIndicator{display:flex;gap:5px;margin-top:16px}.VisualDotIndicator .Dot{border-radius:10px;background-color:var(--emw--color-primary, #f9c405);height:10px;width:10px;opacity:0.5;transition:all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);transform:scale(1)}.VisualDotIndicator .Dot.active{opacity:1;width:30px;transform:scale(1);animation:dotPulse 0.6s ease-out}@keyframes dotPulse{0%{transform:scale(0.8);opacity:0.5}50%{transform:scale(1.15)}100%{transform:scale(1);opacity:1}}.CarouselCardWrapper{border-radius:16px;box-shadow:inset 0px 0px 0px 1px rgba(255, 255, 255, 0.2);position:relative;display:flex;flex-direction:column;justify-content:space-between;gap:10px;z-index:1;padding:5px;height:115px;width:78px;transition:all 0.3s ease;cursor:pointer;user-select:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none}.CarouselCardWrapper.active{height:132px;width:100px}.CarouselCardWrapper.active::before{background:linear-gradient(140deg, var(--emw--color-primary, #f9c405) 5%, var(--emw--color-cashier-bg, var(--emw--color-background, #23281f)) 40%, var(--emw--color-black, #000000) 60%);opacity:0.3}.CarouselCardWrapper::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;border-radius:16px;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}.CarouselCardWrapper .MethodLogo img{height:20px;width:auto}.CarouselCardWrapper .MethodInfo{display:flex;flex-direction:column;gap:10px;word-break:break-word}.CarouselCardWrapper .MethodInfo .MethodTitle{font-size:var(--emw--font-size-small, 10px);font-weight:800}.CarouselCardWrapper .MethodInfo .MethodProcessingTime{color:var(--emw--color-primary, #f9c405);font-style:italic;font-size:var(--emw--font-size-x-small, 8px)}.CarouselCardWrapper .MethodInfo .MethodLimits{gap:var(--emw--spacing-small-minus, 10px);text-align:left}.CarouselCardWrapper .MethodInfo .Limits{display:flex;flex-direction:column;max-width:100%;font-size:var(--emw--font-size-x-small, 8px);font-weight:var(--emw--font-weight-normal, 300)}');
51
- }
52
- function Ce(e, t, a) {
53
- const l = e.slice();
54
- return l[40] = t[a], l[42] = a, l;
55
- }
56
- function _e(e, t, a) {
57
- const l = e.slice();
58
- return l[43] = t[a], l[42] = a, l;
59
- }
60
- function Oe(e) {
61
- let t, a = (
62
- /*$_*/
63
- e[8]("noFavoritePaymentMethods") + ""
64
- ), l;
65
- return {
66
- c() {
67
- t = g("p"), l = I(a), p(t, "class", "NoFavoritePaymentMethods");
68
- },
69
- m(s, f) {
70
- R(s, t, f), c(t, l);
71
- },
72
- p(s, f) {
73
- f[0] & /*$_*/
74
- 256 && a !== (a = /*$_*/
75
- s[8]("noFavoritePaymentMethods") + "") && P(l, a);
76
- },
77
- d(s) {
78
- s && V(t);
79
- }
80
- };
81
- }
82
- function Ge(e) {
83
- let t, a = !re(
84
- /*userAgent*/
85
- e[9]
86
- ) && /*promotedPaymentMethods*/
87
- e[5].length > 1, l, s, f, L = !re(
88
- /*userAgent*/
89
- e[9]
90
- ) && /*promotedPaymentMethods*/
91
- e[5].length > 1, C, M, b, D, N, h = a && Me(e), y = le(
92
- /*promotedPaymentMethods*/
93
- e[5]
94
- ), u = [];
95
- for (let r = 0; r < y.length; r += 1)
96
- u[r] = ke(_e(e, y, r));
97
- let d = L && De(e), m = le(Array(
98
- /*promotedPaymentMethods*/
99
- e[5].length
100
- )), v = [];
101
- for (let r = 0; r < m.length; r += 1)
102
- v[r] = Le(Ce(e, m, r));
103
- return {
104
- c() {
105
- t = g("div"), h && h.c(), l = A(), s = g("div");
106
- for (let r = 0; r < u.length; r += 1)
107
- u[r].c();
108
- f = A(), d && d.c(), M = A(), b = g("div");
109
- for (let r = 0; r < v.length; r += 1)
110
- v[r].c();
111
- p(s, "class", "Carousel"), p(t, "class", "CarouselCardsContainer"), Xe(() => (
112
- /*div1_elementresize_handler*/
113
- e[28].call(t)
114
- )), p(b, "class", "VisualDotIndicator");
115
- },
116
- m(r, o) {
117
- R(r, t, o), h && h.m(t, null), c(t, l), c(t, s);
118
- for (let n = 0; n < u.length; n += 1)
119
- u[n] && u[n].m(s, null);
120
- e[26](s), c(t, f), d && d.m(t, null), C = Re(
121
- t,
122
- /*div1_elementresize_handler*/
123
- e[28].bind(t)
124
- ), R(r, M, o), R(r, b, o);
125
- for (let n = 0; n < v.length; n += 1)
126
- v[n] && v[n].m(b, null);
127
- D || (N = [
128
- O(
129
- s,
130
- "touchstart",
131
- /*handleTouchStart*/
132
- e[11]
133
- ),
134
- O(
135
- s,
136
- "touchmove",
137
- /*handleTouchMove*/
138
- e[12]
139
- ),
140
- O(
141
- s,
142
- "touchend",
143
- /*handleTouchEnd*/
144
- e[13]
145
- )
146
- ], D = !0);
147
- },
148
- p(r, o) {
149
- if (o[0] & /*promotedPaymentMethods*/
150
- 32 && (a = !re(
151
- /*userAgent*/
152
- r[9]
153
- ) && /*promotedPaymentMethods*/
154
- r[5].length > 1), a ? h ? h.p(r, o) : (h = Me(r), h.c(), h.m(t, l)) : h && (h.d(1), h = null), o[0] & /*activeIndex, selectPayMeth, promotedPaymentMethods, precisionCurrenciesMap, numericCurrencyDecimals, $_, methodtype*/
155
- 1521) {
156
- y = le(
157
- /*promotedPaymentMethods*/
158
- r[5]
159
- );
160
- let n;
161
- for (n = 0; n < y.length; n += 1) {
162
- const T = _e(r, y, n);
163
- u[n] ? u[n].p(T, o) : (u[n] = ke(T), u[n].c(), u[n].m(s, null));
164
- }
165
- for (; n < u.length; n += 1)
166
- u[n].d(1);
167
- u.length = y.length;
168
- }
169
- if (o[0] & /*promotedPaymentMethods*/
170
- 32 && (L = !re(
171
- /*userAgent*/
172
- r[9]
173
- ) && /*promotedPaymentMethods*/
174
- r[5].length > 1), L ? d ? d.p(r, o) : (d = De(r), d.c(), d.m(t, null)) : d && (d.d(1), d = null), o[0] & /*activeIndex, promotedPaymentMethods*/
175
- 96) {
176
- m = le(Array(
177
- /*promotedPaymentMethods*/
178
- r[5].length
179
- ));
180
- let n;
181
- for (n = 0; n < m.length; n += 1) {
182
- const T = Ce(r, m, n);
183
- v[n] ? v[n].p(T, o) : (v[n] = Le(T), v[n].c(), v[n].m(b, null));
184
- }
185
- for (; n < v.length; n += 1)
186
- v[n].d(1);
187
- v.length = m.length;
188
- }
189
- },
190
- d(r) {
191
- r && (V(t), V(M), V(b)), h && h.d(), ye(u, r), e[26](null), d && d.d(), C(), ye(v, r), D = !1, Ve(N);
192
- }
193
- };
194
- }
195
- function Me(e) {
196
- let t, a, l;
197
- return {
198
- c() {
199
- t = g("div"), t.innerHTML = '<svg viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M15.9997 5.33335C21.8907 5.33335 26.6663 10.109 26.6663 16C26.6663 21.8911 21.8907 26.6667 15.9997 26.6667C10.1086 26.6667 5.33301 21.8911 5.33301 16C5.33301 10.109 10.1086 5.33335 15.9997 5.33335ZM29.333 16C29.333 8.63622 23.3635 2.66669 15.9997 2.66669C8.63588 2.66669 2.66634 8.63622 2.66634 16C2.66634 23.3638 8.63588 29.3334 15.9997 29.3334C23.3635 29.3334 29.333 23.3638 29.333 16ZM18.2758 11.0572C17.7551 10.5365 16.9109 10.5365 16.3902 11.0572L12.3902 15.0572C11.8695 15.5779 11.8695 16.4221 12.3902 16.9428L16.3902 20.9428C16.9109 21.4635 17.7551 21.4635 18.2758 20.9428C18.7965 20.4221 18.7965 19.5779 18.2758 19.0572L15.2186 16L18.2758 12.9428C18.7965 12.4221 18.7965 11.5779 18.2758 11.0572Z"></path></svg>', p(t, "class", "NavigationArrow Left");
200
- },
201
- m(s, f) {
202
- R(s, t, f), a || (l = O(
203
- t,
204
- "click",
205
- /*click_handler*/
206
- e[24]
207
- ), a = !0);
208
- },
209
- p: se,
210
- d(s) {
211
- s && V(t), a = !1, l();
212
- }
213
- };
214
- }
215
- function ke(e) {
216
- var $, ee, te, ae, i, w, k, x;
217
- let t, a, l, s, f, L, C, M, b, D = (
218
- /*method*/
219
- (e[43].Label || /*method*/
220
- e[43].Name) + ""
221
- ), N, h, y, u, d = (
222
- /*$_*/
223
- e[8](`${/*methodtype*/
224
- e[0]}${/*method*/
225
- e[43].ProcessingTime}`) + ""
226
- ), m, v, r, o, n, T = (
227
- /*$_*/
228
- e[8]("generalMin") + ""
229
- ), X, _, S = ne(
230
- /*method*/
231
- e[43].DisplayCurrency.MinAmountLimit,
232
- /*method*/
233
- e[43].DisplayCurrency.Name,
234
- {
235
- maximumFractionDigits: (
236
- /*precisionCurrenciesMap*/
237
- e[4][
238
- /*method*/
239
- (ee = ($ = e[43]) == null ? void 0 : $.DisplayCurrency) == null ? void 0 : ee.Name
240
- ] || /*numericCurrencyDecimals*/
241
- e[7]
242
- ),
243
- minimumFractionDigits: (
244
- /*precisionCurrenciesMap*/
245
- e[4][
246
- /*method*/
247
- (ae = (te = e[43]) == null ? void 0 : te.DisplayCurrency) == null ? void 0 : ae.Name
248
- ] || /*numericCurrencyDecimals*/
249
- e[7]
250
- )
251
- }
252
- ) + "", G, J, H, Z = (
253
- /*$_*/
254
- e[8]("generalMax") + ""
255
- ), U, E, q = ne(
256
- /*method*/
257
- e[43].DisplayCurrency.MaxAmountLimit,
258
- /*method*/
259
- e[43].DisplayCurrency.Name,
260
- {
261
- maximumFractionDigits: (
262
- /*precisionCurrenciesMap*/
263
- e[4][
264
- /*method*/
265
- (w = (i = e[43]) == null ? void 0 : i.DisplayCurrency) == null ? void 0 : w.Name
266
- ] || /*numericCurrencyDecimals*/
267
- e[7]
268
- ),
269
- minimumFractionDigits: (
270
- /*precisionCurrenciesMap*/
271
- e[4][
272
- /*method*/
273
- (x = (k = e[43]) == null ? void 0 : k.DisplayCurrency) == null ? void 0 : x.Name
274
- ] || /*numericCurrencyDecimals*/
275
- e[7]
276
- )
277
- }
278
- ) + "", K, Y, B, j, Q;
279
- function oe() {
280
- return (
281
- /*click_handler_1*/
282
- e[25](
283
- /*method*/
284
- e[43],
285
- /*index*/
286
- e[42]
287
- )
288
- );
289
- }
290
- return {
291
- c() {
292
- t = g("div"), a = g("div"), l = g("img"), L = A(), C = g("div"), M = g("div"), b = g("span"), N = I(D), h = A(), y = g("div"), u = g("span"), m = I(d), v = A(), r = g("div"), o = g("span"), n = g("span"), X = I(T), _ = A(), G = I(S), J = A(), H = g("span"), U = I(Z), E = A(), K = I(q), Y = A(), be(l.src, s = /*method*/
293
- e[43].LogoUrl) || p(l, "src", s), p(l, "alt", f = /*method*/
294
- e[43].Label), p(a, "class", "MethodLogo"), p(M, "class", "MethodTitle"), p(y, "class", "MethodProcessingTime"), p(o, "class", "Limits"), p(r, "class", "MethodLimits"), p(C, "class", "MethodInfo"), p(t, "class", B = `CarouselCardWrapper ${/*index*/
295
- e[42] === /*activeIndex*/
296
- e[6] ? "active" : ""}`);
297
- },
298
- m(F, W) {
299
- R(F, t, W), c(t, a), c(a, l), c(t, L), c(t, C), c(C, M), c(M, b), c(b, N), c(C, h), c(C, y), c(y, u), c(u, m), c(C, v), c(C, r), c(r, o), c(o, n), c(n, X), c(n, _), c(n, G), c(o, J), c(o, H), c(H, U), c(H, E), c(H, K), c(t, Y), j || (Q = O(t, "click", oe), j = !0);
300
- },
301
- p(F, W) {
302
- var ie, ce, ue, de, me, fe, he, ge;
303
- e = F, W[0] & /*promotedPaymentMethods*/
304
- 32 && !be(l.src, s = /*method*/
305
- e[43].LogoUrl) && p(l, "src", s), W[0] & /*promotedPaymentMethods*/
306
- 32 && f !== (f = /*method*/
307
- e[43].Label) && p(l, "alt", f), W[0] & /*promotedPaymentMethods*/
308
- 32 && D !== (D = /*method*/
309
- (e[43].Label || /*method*/
310
- e[43].Name) + "") && P(N, D), W[0] & /*$_, methodtype, promotedPaymentMethods*/
311
- 289 && d !== (d = /*$_*/
312
- e[8](`${/*methodtype*/
313
- e[0]}${/*method*/
314
- e[43].ProcessingTime}`) + "") && P(m, d), W[0] & /*$_*/
315
- 256 && T !== (T = /*$_*/
316
- e[8]("generalMin") + "") && P(X, T), W[0] & /*promotedPaymentMethods, precisionCurrenciesMap, numericCurrencyDecimals*/
317
- 176 && S !== (S = ne(
318
- /*method*/
319
- e[43].DisplayCurrency.MinAmountLimit,
320
- /*method*/
321
- e[43].DisplayCurrency.Name,
322
- {
323
- maximumFractionDigits: (
324
- /*precisionCurrenciesMap*/
325
- e[4][
326
- /*method*/
327
- (ce = (ie = e[43]) == null ? void 0 : ie.DisplayCurrency) == null ? void 0 : ce.Name
328
- ] || /*numericCurrencyDecimals*/
329
- e[7]
330
- ),
331
- minimumFractionDigits: (
332
- /*precisionCurrenciesMap*/
333
- e[4][
334
- /*method*/
335
- (de = (ue = e[43]) == null ? void 0 : ue.DisplayCurrency) == null ? void 0 : de.Name
336
- ] || /*numericCurrencyDecimals*/
337
- e[7]
338
- )
339
- }
340
- ) + "") && P(G, S), W[0] & /*$_*/
341
- 256 && Z !== (Z = /*$_*/
342
- e[8]("generalMax") + "") && P(U, Z), W[0] & /*promotedPaymentMethods, precisionCurrenciesMap, numericCurrencyDecimals*/
343
- 176 && q !== (q = ne(
344
- /*method*/
345
- e[43].DisplayCurrency.MaxAmountLimit,
346
- /*method*/
347
- e[43].DisplayCurrency.Name,
348
- {
349
- maximumFractionDigits: (
350
- /*precisionCurrenciesMap*/
351
- e[4][
352
- /*method*/
353
- (fe = (me = e[43]) == null ? void 0 : me.DisplayCurrency) == null ? void 0 : fe.Name
354
- ] || /*numericCurrencyDecimals*/
355
- e[7]
356
- ),
357
- minimumFractionDigits: (
358
- /*precisionCurrenciesMap*/
359
- e[4][
360
- /*method*/
361
- (ge = (he = e[43]) == null ? void 0 : he.DisplayCurrency) == null ? void 0 : ge.Name
362
- ] || /*numericCurrencyDecimals*/
363
- e[7]
364
- )
365
- }
366
- ) + "") && P(K, q), W[0] & /*activeIndex*/
367
- 64 && B !== (B = `CarouselCardWrapper ${/*index*/
368
- e[42] === /*activeIndex*/
369
- e[6] ? "active" : ""}`) && p(t, "class", B);
370
- },
371
- d(F) {
372
- F && V(t), j = !1, Q();
373
- }
374
- };
375
- }
376
- function De(e) {
377
- let t, a, l;
378
- return {
379
- c() {
380
- t = g("div"), t.innerHTML = '<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M16.0003 5.33335C10.1093 5.33335 5.33366 10.109 5.33366 16C5.33366 21.8911 10.1093 26.6667 16.0003 26.6667C21.8914 26.6667 26.667 21.8911 26.667 16C26.667 10.109 21.8914 5.33335 16.0003 5.33335ZM2.66699 16C2.66699 8.63622 8.63653 2.66669 16.0003 2.66669C23.3641 2.66669 29.3337 8.63622 29.3337 16C29.3337 23.3638 23.3641 29.3334 16.0003 29.3334C8.63653 29.3334 2.66699 23.3638 2.66699 16ZM13.7242 11.0572C14.2449 10.5365 15.0891 10.5365 15.6098 11.0572L19.6098 15.0572C20.1305 15.5779 20.1305 16.4221 19.6098 16.9428L15.6098 20.9428C15.0891 21.4635 14.2449 21.4635 13.7242 20.9428C13.2035 20.4221 13.2035 19.5779 13.7242 19.0572L16.7814 16L13.7242 12.9428C13.2035 12.4221 13.2035 11.5779 13.7242 11.0572Z"></path></svg>', p(t, "class", "NavigationArrow Right");
381
- },
382
- m(s, f) {
383
- R(s, t, f), a || (l = O(
384
- t,
385
- "click",
386
- /*click_handler_2*/
387
- e[27]
388
- ), a = !0);
389
- },
390
- p: se,
391
- d(s) {
392
- s && V(t), a = !1, l();
393
- }
394
- };
395
- }
396
- function Le(e) {
397
- let t, a;
398
- return {
399
- c() {
400
- t = g("div"), p(t, "class", a = `Dot ${/*index*/
401
- e[42] === /*activeIndex*/
402
- e[6] ? "active" : ""}`);
403
- },
404
- m(l, s) {
405
- R(l, t, s);
406
- },
407
- p(l, s) {
408
- s[0] & /*activeIndex*/
409
- 64 && a !== (a = `Dot ${/*index*/
410
- l[42] === /*activeIndex*/
411
- l[6] ? "active" : ""}`) && p(t, "class", a);
412
- },
413
- d(l) {
414
- l && V(t);
415
- }
416
- };
417
- }
418
- function Je(e) {
419
- let t, a, l, s, f = (
420
- /*$_*/
421
- e[8]("carouselTitle") + ""
422
- ), L, C, M, b = (
423
- /*$_*/
424
- e[8]("carouselSubtitle") + ""
425
- ), D, N;
426
- function h(d, m) {
427
- return (
428
- /*promotedPaymentMethods*/
429
- d[5].length > 0 ? Ge : Oe
430
- );
431
- }
432
- let y = h(e), u = y(e);
433
- return {
434
- c() {
435
- t = g("div"), a = g("div"), l = g("div"), s = g("h4"), L = I(f), C = A(), M = g("p"), D = I(b), N = A(), u.c(), p(l, "class", "CarouselHeader"), p(a, "class", "CashierCarouselWarpper");
436
- },
437
- m(d, m) {
438
- R(d, t, m), c(t, a), c(a, l), c(l, s), c(s, L), c(l, C), c(l, M), c(M, D), c(a, N), u.m(a, null), e[29](t);
439
- },
440
- p(d, m) {
441
- m[0] & /*$_*/
442
- 256 && f !== (f = /*$_*/
443
- d[8]("carouselTitle") + "") && P(L, f), m[0] & /*$_*/
444
- 256 && b !== (b = /*$_*/
445
- d[8]("carouselSubtitle") + "") && P(D, b), y === (y = h(d)) && u ? u.p(d, m) : (u.d(1), u = y(d), u && (u.c(), u.m(a, null)));
446
- },
447
- i: se,
448
- o: se,
449
- d(d) {
450
- d && V(t), u.d(), e[29](null);
451
- }
452
- };
453
- }
454
- function Ke(e, t, a) {
455
- let l, s;
456
- Pe(e, He, (i) => a(8, s = i));
457
- let { lang: f = "en" } = t, { local: L = "en-US" } = t, { currencysymbol: C = "true" } = t, { currencyposition: M = "" } = t, { currencydecimals: b = "0" } = t, { methodtype: D = "" } = t, { clientstyling: N = "" } = t, { clientstylingurl: h = "" } = t, { mbsource: y = "" } = t, { translationurl: u = "" } = t, d = {}, m, v, r = [], o = 0, n = !0, T = 0, X = !1, _, S, G = window.navigator.userAgent;
458
- const J = (i) => {
459
- var k, x;
460
- const { data: { type: w } = {} } = i || {};
461
- switch (w) {
462
- case "PromotedPaymentMethods": {
463
- a(5, r = (k = i == null ? void 0 : i.data) == null ? void 0 : k.promotedPaymentMethods), a(6, o = Math.floor((r.length - 1) / 2));
464
- break;
465
- }
466
- case "PrecisionCurrenciesMap": {
467
- a(4, d = ((x = i == null ? void 0 : i.data) == null ? void 0 : x.payload) || {});
468
- break;
469
- }
470
- }
471
- };
472
- Object.keys(we).forEach((i) => {
473
- ve(i, we[i]);
474
- });
475
- const H = () => {
476
- let i = u;
477
- if (i)
478
- return fetch(i).then((w) => w.json()).then((w) => {
479
- Object.keys(w).forEach((k) => {
480
- ve(k, w[k]);
481
- });
482
- }).catch((w) => {
483
- console.log(w);
484
- });
485
- }, Z = () => {
486
- qe(f);
487
- }, U = (i, w) => {
488
- a(6, o = w), a(2, _.style.transform = E(), _), i.Name, window.postMessage({ type: "SelectPayMeth", details: i }, window.location.href), dispatchEvent(new CustomEvent(
489
- "selectPayMeth",
490
- {
491
- detail: i,
492
- bubbles: !0,
493
- cancelable: !0,
494
- composed: !0
495
- }
496
- ));
497
- }, E = () => {
498
- if (r.length == 1)
499
- return "translateX(0px)";
500
- const k = 78 + 5, x = k * r.length;
501
- let F;
502
- r.length % 2 === 1 ? F = Math.floor(r.length / 2) : F = Math.floor(r.length / 2) - 0.5;
503
- let W = S - x;
504
- const ie = F - o;
505
- return `translateX(${W / 2 + ie * k - 20}px)`;
506
- }, q = (i) => {
507
- T = i.touches[0].clientX, X = !0, _.classList.add("dragging");
508
- }, K = (i) => {
509
- if (!X)
510
- return;
511
- const w = i.touches[0].clientX;
512
- Math.abs(w - T) > 10 && i.preventDefault();
513
- }, Y = (i) => {
514
- if (!X)
515
- return;
516
- X = !1, _.classList.remove("dragging");
517
- const w = i.changedTouches[0].clientX, k = T - w;
518
- Math.abs(k) > 50 && (k > 0 && o < r.length - 1 ? a(6, o++, o) : k < 0 && o > 0 && a(6, o--, o), a(2, _.style.transform = E(), _));
519
- }, B = () => {
520
- n && (a(2, _.style.transform = E(), _), n = !1);
521
- }, j = (i) => {
522
- i === "next" && o < r.length - 1 ? a(6, o++, o) : i === "prev" && o > 0 && a(6, o--, o), a(2, _.style.transform = E(), _);
523
- };
524
- Ie(() => (Ee(L, C, M, b), window.addEventListener("message", J), window.postMessage({ type: "CashierCarouselReady" }, window.location.href), _ && E(), () => {
525
- window.removeEventListener("message", J);
526
- }));
527
- const Q = () => j("prev"), oe = (i, w) => U(i, w);
528
- function $(i) {
529
- pe[i ? "unshift" : "push"](() => {
530
- _ = i, a(2, _);
531
- });
532
- }
533
- const ee = () => j("next");
534
- function te() {
535
- S = this.clientWidth, a(3, S);
536
- }
537
- function ae(i) {
538
- pe[i ? "unshift" : "push"](() => {
539
- m = i, a(1, m);
540
- });
541
- }
542
- return e.$$set = (i) => {
543
- "lang" in i && a(15, f = i.lang), "local" in i && a(16, L = i.local), "currencysymbol" in i && a(17, C = i.currencysymbol), "currencyposition" in i && a(18, M = i.currencyposition), "currencydecimals" in i && a(19, b = i.currencydecimals), "methodtype" in i && a(0, D = i.methodtype), "clientstyling" in i && a(20, N = i.clientstyling), "clientstylingurl" in i && a(21, h = i.clientstylingurl), "mbsource" in i && a(22, y = i.mbsource), "translationurl" in i && a(23, u = i.translationurl);
544
- }, e.$$.update = () => {
545
- e.$$.dirty[0] & /*lang*/
546
- 32768 && f && Z(), e.$$.dirty[0] & /*lang, translationurl*/
547
- 8421376 && f && u && H(), e.$$.dirty[0] & /*carouselContainer, carouselContainerWidth*/
548
- 12 && _ && S && B(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
549
- 1048578 && N && m && je(m, N), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
550
- 2097154 && h && m && Ze(m, h), e.$$.dirty[0] & /*mbsource, customStylingContainer*/
551
- 4194306 && y && m && Ue(m, `${y}.Style`, v), e.$$.dirty[0] & /*currencydecimals*/
552
- 524288 && a(7, l = Number(b));
553
- }, [
554
- D,
555
- m,
556
- _,
557
- S,
558
- d,
559
- r,
560
- o,
561
- l,
562
- s,
563
- G,
564
- U,
565
- q,
566
- K,
567
- Y,
568
- j,
569
- f,
570
- L,
571
- C,
572
- M,
573
- b,
574
- N,
575
- h,
576
- y,
577
- u,
578
- Q,
579
- oe,
580
- $,
581
- ee,
582
- te,
583
- ae
584
- ];
585
- }
586
- class Ye extends Ae {
587
- constructor(t) {
588
- super(), Se(
589
- this,
590
- t,
591
- Ke,
592
- Je,
593
- ze,
594
- {
595
- lang: 15,
596
- local: 16,
597
- currencysymbol: 17,
598
- currencyposition: 18,
599
- currencydecimals: 19,
600
- methodtype: 0,
601
- clientstyling: 20,
602
- clientstylingurl: 21,
603
- mbsource: 22,
604
- translationurl: 23
605
- },
606
- Be,
607
- [-1, -1]
608
- );
609
- }
610
- get lang() {
611
- return this.$$.ctx[15];
612
- }
613
- set lang(t) {
614
- this.$$set({ lang: t }), z();
615
- }
616
- get local() {
617
- return this.$$.ctx[16];
618
- }
619
- set local(t) {
620
- this.$$set({ local: t }), z();
621
- }
622
- get currencysymbol() {
623
- return this.$$.ctx[17];
624
- }
625
- set currencysymbol(t) {
626
- this.$$set({ currencysymbol: t }), z();
627
- }
628
- get currencyposition() {
629
- return this.$$.ctx[18];
630
- }
631
- set currencyposition(t) {
632
- this.$$set({ currencyposition: t }), z();
633
- }
634
- get currencydecimals() {
635
- return this.$$.ctx[19];
636
- }
637
- set currencydecimals(t) {
638
- this.$$set({ currencydecimals: t }), z();
639
- }
640
- get methodtype() {
641
- return this.$$.ctx[0];
642
- }
643
- set methodtype(t) {
644
- this.$$set({ methodtype: t }), z();
645
- }
646
- get clientstyling() {
647
- return this.$$.ctx[20];
648
- }
649
- set clientstyling(t) {
650
- this.$$set({ clientstyling: t }), z();
651
- }
652
- get clientstylingurl() {
653
- return this.$$.ctx[21];
654
- }
655
- set clientstylingurl(t) {
656
- this.$$set({ clientstylingurl: t }), z();
657
- }
658
- get mbsource() {
659
- return this.$$.ctx[22];
660
- }
661
- set mbsource(t) {
662
- this.$$set({ mbsource: t }), z();
663
- }
664
- get translationurl() {
665
- return this.$$.ctx[23];
666
- }
667
- set translationurl(t) {
668
- this.$$set({ translationurl: t }), z();
669
- }
670
- }
671
- xe(Ye, { lang: {}, local: {}, currencysymbol: {}, currencyposition: {}, currencydecimals: {}, methodtype: {}, clientstyling: {}, clientstylingurl: {}, mbsource: {}, translationurl: {} }, [], [], !0);
672
- export {
673
- Ye as default
674
- };