@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,671 +0,0 @@
1
- import { a as we, i as Ce, $ as _e, S as Me, b as ke, s as De, f as z, d as Le, z as te, g as I, w as F, l as V, m as c, n as g, x as P, o as W, p, q as Ne, r as Te, y as le, C as Q, D as $, E as ne, F as We, G as Ae, A as B, H as Se, I as ee, J as se, K as ze, c as Fe, B as Pe } from "./CashierPage-hApMSijm.js";
2
- import { s as Ie, a as Ve, b as Re } from "./CashierHeader-CqlQfyVu.js";
3
- function oe(e, t) {
4
- we(e, t);
5
- }
6
- function Xe(e) {
7
- Ce({
8
- fallbackLocale: "en"
9
- }), _e.set(e);
10
- }
11
- const ce = {
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 Ee(e) {
50
- Le(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 ue(e, t, a) {
53
- const l = e.slice();
54
- return l[40] = t[a], l[42] = a, l;
55
- }
56
- function de(e, t, a) {
57
- const l = e.slice();
58
- return l[43] = t[a], l[42] = a, l;
59
- }
60
- function xe(e) {
61
- let t, a = (
62
- /*$_*/
63
- e[8]("noFavoritePaymentMethods") + ""
64
- ), l;
65
- return {
66
- c() {
67
- t = g("p"), l = P(a), p(t, "class", "NoFavoritePaymentMethods");
68
- },
69
- m(s, f) {
70
- V(s, t, f), c(t, l);
71
- },
72
- p(s, f) {
73
- f[0] & /*$_*/
74
- 256 && a !== (a = /*$_*/
75
- s[8]("noFavoritePaymentMethods") + "") && F(l, a);
76
- },
77
- d(s) {
78
- s && I(t);
79
- }
80
- };
81
- }
82
- function He(e) {
83
- let t, a = !Q(
84
- /*userAgent*/
85
- e[9]
86
- ) && /*promotedPaymentMethods*/
87
- e[5].length > 1, l, s, f, D = !Q(
88
- /*userAgent*/
89
- e[9]
90
- ) && /*promotedPaymentMethods*/
91
- e[5].length > 1, w, M, v, k, L, h = a && me(e), y = $(
92
- /*promotedPaymentMethods*/
93
- e[5]
94
- ), u = [];
95
- for (let r = 0; r < y.length; r += 1)
96
- u[r] = fe(de(e, y, r));
97
- let d = D && he(e), m = $(Array(
98
- /*promotedPaymentMethods*/
99
- e[5].length
100
- )), b = [];
101
- for (let r = 0; r < m.length; r += 1)
102
- b[r] = ge(ue(e, m, r));
103
- return {
104
- c() {
105
- t = g("div"), h && h.c(), l = W(), s = g("div");
106
- for (let r = 0; r < u.length; r += 1)
107
- u[r].c();
108
- f = W(), d && d.c(), M = W(), v = g("div");
109
- for (let r = 0; r < b.length; r += 1)
110
- b[r].c();
111
- p(s, "class", "Carousel"), p(t, "class", "CarouselCardsContainer"), Se(() => (
112
- /*div1_elementresize_handler*/
113
- e[28].call(t)
114
- )), p(v, "class", "VisualDotIndicator");
115
- },
116
- m(r, o) {
117
- V(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), w = Ae(
121
- t,
122
- /*div1_elementresize_handler*/
123
- e[28].bind(t)
124
- ), V(r, M, o), V(r, v, o);
125
- for (let n = 0; n < b.length; n += 1)
126
- b[n] && b[n].m(v, null);
127
- k || (L = [
128
- B(
129
- s,
130
- "touchstart",
131
- /*handleTouchStart*/
132
- e[11]
133
- ),
134
- B(
135
- s,
136
- "touchmove",
137
- /*handleTouchMove*/
138
- e[12]
139
- ),
140
- B(
141
- s,
142
- "touchend",
143
- /*handleTouchEnd*/
144
- e[13]
145
- )
146
- ], k = !0);
147
- },
148
- p(r, o) {
149
- if (o[0] & /*promotedPaymentMethods*/
150
- 32 && (a = !Q(
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 = $(
157
- /*promotedPaymentMethods*/
158
- r[5]
159
- );
160
- let n;
161
- for (n = 0; n < y.length; n += 1) {
162
- const N = de(r, y, n);
163
- u[n] ? u[n].p(N, o) : (u[n] = fe(N), 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 && (D = !Q(
171
- /*userAgent*/
172
- r[9]
173
- ) && /*promotedPaymentMethods*/
174
- r[5].length > 1), D ? d ? d.p(r, o) : (d = he(r), d.c(), d.m(t, null)) : d && (d.d(1), d = null), o[0] & /*activeIndex, promotedPaymentMethods*/
175
- 96) {
176
- m = $(Array(
177
- /*promotedPaymentMethods*/
178
- r[5].length
179
- ));
180
- let n;
181
- for (n = 0; n < m.length; n += 1) {
182
- const N = ue(r, m, n);
183
- b[n] ? b[n].p(N, o) : (b[n] = ge(N), b[n].c(), b[n].m(v, null));
184
- }
185
- for (; n < b.length; n += 1)
186
- b[n].d(1);
187
- b.length = m.length;
188
- }
189
- },
190
- d(r) {
191
- r && (I(t), I(M), I(v)), h && h.d(), ne(u, r), e[26](null), d && d.d(), w(), ne(b, r), k = !1, We(L);
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
- V(s, t, f), a || (l = B(
203
- t,
204
- "click",
205
- /*click_handler*/
206
- e[24]
207
- ), a = !0);
208
- },
209
- p: te,
210
- d(s) {
211
- s && I(t), a = !1, l();
212
- }
213
- };
214
- }
215
- function fe(e) {
216
- let t, a, l, s, f, D, w, M, v, k = (
217
- /*method*/
218
- (e[43].Label || /*method*/
219
- e[43].Name) + ""
220
- ), L, h, y, u, d = (
221
- /*$_*/
222
- e[8](`${/*methodtype*/
223
- e[0]}${/*method*/
224
- e[43].ProcessingTime}`) + ""
225
- ), m, b, r, o, n, N = (
226
- /*$_*/
227
- e[8]("generalMin") + ""
228
- ), R, C, A = ee(
229
- /*method*/
230
- e[43].DisplayCurrency.MinAmountLimit,
231
- /*method*/
232
- e[43].DisplayCurrency.Name,
233
- {
234
- maximumFractionDigits: (
235
- /*precisionCurrenciesMap*/
236
- e[4][
237
- /*method*/
238
- e[43]?.DisplayCurrency?.Name
239
- ] || /*numericCurrencyDecimals*/
240
- e[7]
241
- ),
242
- minimumFractionDigits: (
243
- /*precisionCurrenciesMap*/
244
- e[4][
245
- /*method*/
246
- e[43]?.DisplayCurrency?.Name
247
- ] || /*numericCurrencyDecimals*/
248
- e[7]
249
- )
250
- }
251
- ) + "", O, G, E, j = (
252
- /*$_*/
253
- e[8]("generalMax") + ""
254
- ), Z, X, U = ee(
255
- /*method*/
256
- e[43].DisplayCurrency.MaxAmountLimit,
257
- /*method*/
258
- e[43].DisplayCurrency.Name,
259
- {
260
- maximumFractionDigits: (
261
- /*precisionCurrenciesMap*/
262
- e[4][
263
- /*method*/
264
- e[43]?.DisplayCurrency?.Name
265
- ] || /*numericCurrencyDecimals*/
266
- e[7]
267
- ),
268
- minimumFractionDigits: (
269
- /*precisionCurrenciesMap*/
270
- e[4][
271
- /*method*/
272
- e[43]?.DisplayCurrency?.Name
273
- ] || /*numericCurrencyDecimals*/
274
- e[7]
275
- )
276
- }
277
- ) + "", J, K, q, x, Y;
278
- function ae() {
279
- return (
280
- /*click_handler_1*/
281
- e[25](
282
- /*method*/
283
- e[43],
284
- /*index*/
285
- e[42]
286
- )
287
- );
288
- }
289
- return {
290
- c() {
291
- t = g("div"), a = g("div"), l = g("img"), D = W(), w = g("div"), M = g("div"), v = g("span"), L = P(k), h = W(), y = g("div"), u = g("span"), m = P(d), b = W(), r = g("div"), o = g("span"), n = g("span"), R = P(N), C = W(), O = P(A), G = W(), E = g("span"), Z = P(j), X = W(), J = P(U), K = W(), se(l.src, s = /*method*/
292
- e[43].LogoUrl) || p(l, "src", s), p(l, "alt", f = /*method*/
293
- e[43].Label), p(a, "class", "MethodLogo"), p(M, "class", "MethodTitle"), p(y, "class", "MethodProcessingTime"), p(o, "class", "Limits"), p(r, "class", "MethodLimits"), p(w, "class", "MethodInfo"), p(t, "class", q = `CarouselCardWrapper ${/*index*/
294
- e[42] === /*activeIndex*/
295
- e[6] ? "active" : ""}`);
296
- },
297
- m(H, T) {
298
- V(H, t, T), c(t, a), c(a, l), c(t, D), c(t, w), c(w, M), c(M, v), c(v, L), c(w, h), c(w, y), c(y, u), c(u, m), c(w, b), c(w, r), c(r, o), c(o, n), c(n, R), c(n, C), c(n, O), c(o, G), c(o, E), c(E, Z), c(E, X), c(E, J), c(t, K), x || (Y = B(t, "click", ae), x = !0);
299
- },
300
- p(H, T) {
301
- e = H, T[0] & /*promotedPaymentMethods*/
302
- 32 && !se(l.src, s = /*method*/
303
- e[43].LogoUrl) && p(l, "src", s), T[0] & /*promotedPaymentMethods*/
304
- 32 && f !== (f = /*method*/
305
- e[43].Label) && p(l, "alt", f), T[0] & /*promotedPaymentMethods*/
306
- 32 && k !== (k = /*method*/
307
- (e[43].Label || /*method*/
308
- e[43].Name) + "") && F(L, k), T[0] & /*$_, methodtype, promotedPaymentMethods*/
309
- 289 && d !== (d = /*$_*/
310
- e[8](`${/*methodtype*/
311
- e[0]}${/*method*/
312
- e[43].ProcessingTime}`) + "") && F(m, d), T[0] & /*$_*/
313
- 256 && N !== (N = /*$_*/
314
- e[8]("generalMin") + "") && F(R, N), T[0] & /*promotedPaymentMethods, precisionCurrenciesMap, numericCurrencyDecimals*/
315
- 176 && A !== (A = ee(
316
- /*method*/
317
- e[43].DisplayCurrency.MinAmountLimit,
318
- /*method*/
319
- e[43].DisplayCurrency.Name,
320
- {
321
- maximumFractionDigits: (
322
- /*precisionCurrenciesMap*/
323
- e[4][
324
- /*method*/
325
- e[43]?.DisplayCurrency?.Name
326
- ] || /*numericCurrencyDecimals*/
327
- e[7]
328
- ),
329
- minimumFractionDigits: (
330
- /*precisionCurrenciesMap*/
331
- e[4][
332
- /*method*/
333
- e[43]?.DisplayCurrency?.Name
334
- ] || /*numericCurrencyDecimals*/
335
- e[7]
336
- )
337
- }
338
- ) + "") && F(O, A), T[0] & /*$_*/
339
- 256 && j !== (j = /*$_*/
340
- e[8]("generalMax") + "") && F(Z, j), T[0] & /*promotedPaymentMethods, precisionCurrenciesMap, numericCurrencyDecimals*/
341
- 176 && U !== (U = ee(
342
- /*method*/
343
- e[43].DisplayCurrency.MaxAmountLimit,
344
- /*method*/
345
- e[43].DisplayCurrency.Name,
346
- {
347
- maximumFractionDigits: (
348
- /*precisionCurrenciesMap*/
349
- e[4][
350
- /*method*/
351
- e[43]?.DisplayCurrency?.Name
352
- ] || /*numericCurrencyDecimals*/
353
- e[7]
354
- ),
355
- minimumFractionDigits: (
356
- /*precisionCurrenciesMap*/
357
- e[4][
358
- /*method*/
359
- e[43]?.DisplayCurrency?.Name
360
- ] || /*numericCurrencyDecimals*/
361
- e[7]
362
- )
363
- }
364
- ) + "") && F(J, U), T[0] & /*activeIndex*/
365
- 64 && q !== (q = `CarouselCardWrapper ${/*index*/
366
- e[42] === /*activeIndex*/
367
- e[6] ? "active" : ""}`) && p(t, "class", q);
368
- },
369
- d(H) {
370
- H && I(t), x = !1, Y();
371
- }
372
- };
373
- }
374
- function he(e) {
375
- let t, a, l;
376
- return {
377
- c() {
378
- 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");
379
- },
380
- m(s, f) {
381
- V(s, t, f), a || (l = B(
382
- t,
383
- "click",
384
- /*click_handler_2*/
385
- e[27]
386
- ), a = !0);
387
- },
388
- p: te,
389
- d(s) {
390
- s && I(t), a = !1, l();
391
- }
392
- };
393
- }
394
- function ge(e) {
395
- let t, a;
396
- return {
397
- c() {
398
- t = g("div"), p(t, "class", a = `Dot ${/*index*/
399
- e[42] === /*activeIndex*/
400
- e[6] ? "active" : ""}`);
401
- },
402
- m(l, s) {
403
- V(l, t, s);
404
- },
405
- p(l, s) {
406
- s[0] & /*activeIndex*/
407
- 64 && a !== (a = `Dot ${/*index*/
408
- l[42] === /*activeIndex*/
409
- l[6] ? "active" : ""}`) && p(t, "class", a);
410
- },
411
- d(l) {
412
- l && I(t);
413
- }
414
- };
415
- }
416
- function je(e) {
417
- let t, a, l, s, f = (
418
- /*$_*/
419
- e[8]("carouselTitle") + ""
420
- ), D, w, M, v = (
421
- /*$_*/
422
- e[8]("carouselSubtitle") + ""
423
- ), k, L;
424
- function h(d, m) {
425
- return (
426
- /*promotedPaymentMethods*/
427
- d[5].length > 0 ? He : xe
428
- );
429
- }
430
- let y = h(e), u = y(e);
431
- return {
432
- c() {
433
- t = g("div"), a = g("div"), l = g("div"), s = g("h4"), D = P(f), w = W(), M = g("p"), k = P(v), L = W(), u.c(), p(l, "class", "CarouselHeader"), p(a, "class", "CashierCarouselWarpper");
434
- },
435
- m(d, m) {
436
- V(d, t, m), c(t, a), c(a, l), c(l, s), c(s, D), c(l, w), c(l, M), c(M, k), c(a, L), u.m(a, null), e[29](t);
437
- },
438
- p(d, m) {
439
- m[0] & /*$_*/
440
- 256 && f !== (f = /*$_*/
441
- d[8]("carouselTitle") + "") && F(D, f), m[0] & /*$_*/
442
- 256 && v !== (v = /*$_*/
443
- d[8]("carouselSubtitle") + "") && F(k, v), y === (y = h(d)) && u ? u.p(d, m) : (u.d(1), u = y(d), u && (u.c(), u.m(a, null)));
444
- },
445
- i: te,
446
- o: te,
447
- d(d) {
448
- d && I(t), u.d(), e[29](null);
449
- }
450
- };
451
- }
452
- function Ze(e, t, a) {
453
- let l, s;
454
- Ne(e, Pe, (i) => a(8, s = i));
455
- let { lang: f = "en" } = t, { local: D = "en-US" } = t, { currencysymbol: w = "true" } = t, { currencyposition: M = "" } = t, { currencydecimals: v = "0" } = t, { methodtype: k = "" } = t, { clientstyling: L = "" } = t, { clientstylingurl: h = "" } = t, { mbsource: y = "" } = t, { translationurl: u = "" } = t, d = {}, m, b, r = [], o = 0, n = !0, N = 0, R = !1, C, A, O = window.navigator.userAgent;
456
- const G = (i) => {
457
- const { data: { type: _ } = {} } = i || {};
458
- switch (_) {
459
- case "PromotedPaymentMethods": {
460
- a(5, r = i?.data?.promotedPaymentMethods), a(6, o = Math.floor((r.length - 1) / 2));
461
- break;
462
- }
463
- case "PrecisionCurrenciesMap": {
464
- a(4, d = i?.data?.payload || {});
465
- break;
466
- }
467
- }
468
- };
469
- Object.keys(ce).forEach((i) => {
470
- oe(i, ce[i]);
471
- });
472
- const E = () => {
473
- let i = u;
474
- if (i)
475
- return fetch(i).then((_) => _.json()).then((_) => {
476
- Object.keys(_).forEach((S) => {
477
- oe(S, _[S]);
478
- });
479
- }).catch((_) => {
480
- console.log(_);
481
- });
482
- }, j = () => {
483
- Xe(f);
484
- }, Z = (i, _) => {
485
- a(6, o = _), a(2, C.style.transform = X(), C), i.Name, window.postMessage({ type: "SelectPayMeth", details: i }, window.location.href), dispatchEvent(new CustomEvent(
486
- "selectPayMeth",
487
- {
488
- detail: i,
489
- bubbles: !0,
490
- cancelable: !0,
491
- composed: !0
492
- }
493
- ));
494
- }, X = () => {
495
- if (r.length == 1)
496
- return "translateX(0px)";
497
- const S = 78 + 5, re = S * r.length;
498
- let ie;
499
- r.length % 2 === 1 ? ie = Math.floor(r.length / 2) : ie = Math.floor(r.length / 2) - 0.5;
500
- let ve = A - re;
501
- const be = ie - o;
502
- return `translateX(${ve / 2 + be * S - 20}px)`;
503
- }, U = (i) => {
504
- N = i.touches[0].clientX, R = !0, C.classList.add("dragging");
505
- }, J = (i) => {
506
- if (!R)
507
- return;
508
- const _ = i.touches[0].clientX;
509
- Math.abs(_ - N) > 10 && i.preventDefault();
510
- }, K = (i) => {
511
- if (!R)
512
- return;
513
- R = !1, C.classList.remove("dragging");
514
- const _ = i.changedTouches[0].clientX, S = N - _;
515
- Math.abs(S) > 50 && (S > 0 && o < r.length - 1 ? a(6, o++, o) : S < 0 && o > 0 && a(6, o--, o), a(2, C.style.transform = X(), C));
516
- }, q = () => {
517
- n && (a(2, C.style.transform = X(), C), n = !1);
518
- }, x = (i) => {
519
- i === "next" && o < r.length - 1 ? a(6, o++, o) : i === "prev" && o > 0 && a(6, o--, o), a(2, C.style.transform = X(), C);
520
- };
521
- Te(() => (ze(D, w, M, v), window.addEventListener("message", G), window.postMessage({ type: "CashierCarouselReady" }, window.location.href), C && X(), () => {
522
- window.removeEventListener("message", G);
523
- }));
524
- const Y = () => x("prev"), ae = (i, _) => Z(i, _);
525
- function H(i) {
526
- le[i ? "unshift" : "push"](() => {
527
- C = i, a(2, C);
528
- });
529
- }
530
- const T = () => x("next");
531
- function pe() {
532
- A = this.clientWidth, a(3, A);
533
- }
534
- function ye(i) {
535
- le[i ? "unshift" : "push"](() => {
536
- m = i, a(1, m);
537
- });
538
- }
539
- return e.$$set = (i) => {
540
- "lang" in i && a(15, f = i.lang), "local" in i && a(16, D = i.local), "currencysymbol" in i && a(17, w = i.currencysymbol), "currencyposition" in i && a(18, M = i.currencyposition), "currencydecimals" in i && a(19, v = i.currencydecimals), "methodtype" in i && a(0, k = i.methodtype), "clientstyling" in i && a(20, L = 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);
541
- }, e.$$.update = () => {
542
- e.$$.dirty[0] & /*lang*/
543
- 32768 && f && j(), e.$$.dirty[0] & /*lang, translationurl*/
544
- 8421376 && f && u && E(), e.$$.dirty[0] & /*carouselContainer, carouselContainerWidth*/
545
- 12 && C && A && q(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
546
- 1048578 && L && m && Ie(m, L), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
547
- 2097154 && h && m && Ve(m, h), e.$$.dirty[0] & /*mbsource, customStylingContainer*/
548
- 4194306 && y && m && Re(m, `${y}.Style`, b), e.$$.dirty[0] & /*currencydecimals*/
549
- 524288 && a(7, l = Number(v));
550
- }, [
551
- k,
552
- m,
553
- C,
554
- A,
555
- d,
556
- r,
557
- o,
558
- l,
559
- s,
560
- O,
561
- Z,
562
- U,
563
- J,
564
- K,
565
- x,
566
- f,
567
- D,
568
- w,
569
- M,
570
- v,
571
- L,
572
- h,
573
- y,
574
- u,
575
- Y,
576
- ae,
577
- H,
578
- T,
579
- pe,
580
- ye
581
- ];
582
- }
583
- class Ue extends Me {
584
- constructor(t) {
585
- super(), ke(
586
- this,
587
- t,
588
- Ze,
589
- je,
590
- De,
591
- {
592
- lang: 15,
593
- local: 16,
594
- currencysymbol: 17,
595
- currencyposition: 18,
596
- currencydecimals: 19,
597
- methodtype: 0,
598
- clientstyling: 20,
599
- clientstylingurl: 21,
600
- mbsource: 22,
601
- translationurl: 23
602
- },
603
- Ee,
604
- [-1, -1]
605
- );
606
- }
607
- get lang() {
608
- return this.$$.ctx[15];
609
- }
610
- set lang(t) {
611
- this.$$set({ lang: t }), z();
612
- }
613
- get local() {
614
- return this.$$.ctx[16];
615
- }
616
- set local(t) {
617
- this.$$set({ local: t }), z();
618
- }
619
- get currencysymbol() {
620
- return this.$$.ctx[17];
621
- }
622
- set currencysymbol(t) {
623
- this.$$set({ currencysymbol: t }), z();
624
- }
625
- get currencyposition() {
626
- return this.$$.ctx[18];
627
- }
628
- set currencyposition(t) {
629
- this.$$set({ currencyposition: t }), z();
630
- }
631
- get currencydecimals() {
632
- return this.$$.ctx[19];
633
- }
634
- set currencydecimals(t) {
635
- this.$$set({ currencydecimals: t }), z();
636
- }
637
- get methodtype() {
638
- return this.$$.ctx[0];
639
- }
640
- set methodtype(t) {
641
- this.$$set({ methodtype: t }), z();
642
- }
643
- get clientstyling() {
644
- return this.$$.ctx[20];
645
- }
646
- set clientstyling(t) {
647
- this.$$set({ clientstyling: t }), z();
648
- }
649
- get clientstylingurl() {
650
- return this.$$.ctx[21];
651
- }
652
- set clientstylingurl(t) {
653
- this.$$set({ clientstylingurl: t }), z();
654
- }
655
- get mbsource() {
656
- return this.$$.ctx[22];
657
- }
658
- set mbsource(t) {
659
- this.$$set({ mbsource: t }), z();
660
- }
661
- get translationurl() {
662
- return this.$$.ctx[23];
663
- }
664
- set translationurl(t) {
665
- this.$$set({ translationurl: t }), z();
666
- }
667
- }
668
- Fe(Ue, { lang: {}, local: {}, currencysymbol: {}, currencyposition: {}, currencydecimals: {}, methodtype: {}, clientstyling: {}, clientstylingurl: {}, mbsource: {}, translationurl: {} }, [], [], !0);
669
- export {
670
- Ue as default
671
- };