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