@everymatrix/cashier-page 1.92.8 → 1.92.21

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 (78) hide show
  1. package/components/CashierCarousel-B-cM-nlR.js +5797 -0
  2. package/components/CashierCarousel-CXoovlrR.js +5835 -0
  3. package/components/CashierCarousel-DMrMmClP.cjs +23 -0
  4. package/components/{CashierError-C854_1dB.js → CashierError-66WHxjwV.js} +45 -44
  5. package/components/{CashierError-D638x9x-.js → CashierError-BCtelxyY.js} +46 -45
  6. package/components/CashierError-BL_rmfvV.cjs +1 -0
  7. package/components/CashierHeader-B7FnLv3f.js +397 -0
  8. package/components/CashierHeader-BbP0idUh.js +397 -0
  9. package/components/CashierHeader-PvXFHPzQ.cjs +1 -0
  10. package/components/CashierIframeRedirect-C0AQ3pLh.cjs +1 -0
  11. package/components/{CashierIframeRedirect-BUcU3T5U.js → CashierIframeRedirect-C3muwYdO.js} +106 -91
  12. package/components/{CashierIframeRedirect-BhmYmTKc.js → CashierIframeRedirect-Ti9O6xV-.js} +108 -93
  13. package/components/{CashierMethodDetails-iZTHVxaU.js → CashierMethodDetails-C7odWYEI.js} +3987 -3408
  14. package/components/CashierMethodDetails-DjLhLSey.cjs +85 -0
  15. package/components/{CashierMethodDetails-BOhUmKCH.js → CashierMethodDetails-JQOw_ppF.js} +4016 -3438
  16. package/components/{CashierMethodsList-B97v3Xuh.js → CashierMethodsList-C-7-CmRx.js} +65 -65
  17. package/components/CashierMethodsList-CNxb5rVf.cjs +1 -0
  18. package/components/{CashierMethodsList-eUczF6XC.js → CashierMethodsList-CZxMoF32.js} +56 -56
  19. package/components/{CashierModal-C4MoXHG7.js → CashierModal-B1pfSpCs.js} +36 -37
  20. package/components/{CashierModal-BUkNhHpl.js → CashierModal-BsrmgnKi.js} +32 -33
  21. package/components/CashierModal-DF8meLAZ.cjs +1 -0
  22. package/components/CashierNotifications-B8bRZMac.cjs +1 -0
  23. package/components/{CashierNotifications-BatwRhbq.js → CashierNotifications-BXxNDzMM.js} +3 -3
  24. package/components/{CashierNotifications-C0NjswTn.js → CashierNotifications-DbJuswYZ.js} +5 -5
  25. package/components/CashierPage-Bhgj76MY.js +4490 -0
  26. package/components/CashierPage-CIxAkXYb.js +4460 -0
  27. package/components/CashierPage-iIGUB5g4.cjs +1 -0
  28. package/components/CashierReceiptPage-B530KWIS.cjs +26 -0
  29. package/components/{CashierReceiptPage-CdqmVXe9.js → CashierReceiptPage-DGZSqJFO.js} +169 -156
  30. package/components/{CashierReceiptPage-2rVfG2fm.js → CashierReceiptPage-DjfCUH2F.js} +177 -164
  31. package/components/{CashierSessionExpirationModal-CK0YLZbU.js → CashierSessionExpirationModal-BKxhGCj9.js} +254 -267
  32. package/components/CashierSessionExpirationModal-C6owPr_u.cjs +2 -0
  33. package/components/{CashierSessionExpirationModal-0EbJrsdx.js → CashierSessionExpirationModal-CU8HtTwA.js} +267 -280
  34. package/components/CashierSpinner-DKYO0FtD.cjs +1 -0
  35. package/components/{CashierSpinner-hEROg29-.js → CashierSpinner-DMrM0bGx.js} +10 -11
  36. package/components/{CashierSpinner-DGz_dycp.js → CashierSpinner-gJqeYU1n.js} +12 -13
  37. package/components/{CashierStepUp-CrJocLXp.js → CashierStepUp-B530YrSp.js} +168 -169
  38. package/components/{CashierStepUp-q7iSJelQ.js → CashierStepUp-BtmD9q4i.js} +245 -246
  39. package/components/CashierStepUp-DKytvkqu.cjs +1 -0
  40. package/components/{CashierTransactionHistory-sGV35WcB.js → CashierTransactionHistory-CWxjn4dO.js} +71 -71
  41. package/components/CashierTransactionHistory-CYaB1hEN.cjs +1 -0
  42. package/components/{CashierTransactionHistory-BrgrDNsw.js → CashierTransactionHistory-D1hopcmz.js} +66 -66
  43. package/components/{CashierVerifications-yC2Ur1H-.js → CashierVerifications-B3UcXWeI.js} +142 -158
  44. package/components/{CashierVerifications-DnM9z8za.js → CashierVerifications-CWsTc0hE.js} +102 -118
  45. package/components/CashierVerifications-D3X4oFbB.cjs +1 -0
  46. package/components/TxnStatusIcon-CWkyVMIU.cjs +1 -0
  47. package/components/{TxnStatusIcon-BduMMfo6.js → TxnStatusIcon-DCSCOAn2.js} +1 -1
  48. package/components/{TxnStatusIcon-rwPr0B_L.js → TxnStatusIcon-DRFHs_0F.js} +8 -8
  49. package/components/{TxnTypeIcons-ByJ8NlBp.js → TxnTypeIcons-Bg7QJKuH.js} +1 -1
  50. package/components/TxnTypeIcons-CTQXT_j5.cjs +1 -0
  51. package/components/{TxnTypeIcons-DQrCawdt.js → TxnTypeIcons-D37zQDwq.js} +1 -1
  52. package/es2015/cashier-page.cjs +1 -1
  53. package/es2015/cashier-page.js +7 -7
  54. package/esnext/cashier-page.js +1 -1
  55. package/package.json +1 -1
  56. package/components/CashierCarousel-CFDrfBto.cjs +0 -1
  57. package/components/CashierCarousel-JhSTmzvt.js +0 -672
  58. package/components/CashierCarousel-PsCjjLe2.js +0 -675
  59. package/components/CashierError-zeIQl4g_.cjs +0 -1
  60. package/components/CashierHeader-Bp8vaWrp.cjs +0 -1
  61. package/components/CashierHeader-D-mMGt-Y.js +0 -456
  62. package/components/CashierHeader-il09PBLP.js +0 -456
  63. package/components/CashierIframeRedirect-CMcw96Fv.cjs +0 -1
  64. package/components/CashierMethodDetails-DnbNzQW6.cjs +0 -85
  65. package/components/CashierMethodsList-B_9i2Q2s.cjs +0 -1
  66. package/components/CashierModal-Dq36GGc7.cjs +0 -1
  67. package/components/CashierNotifications-BB8FN1j_.cjs +0 -1
  68. package/components/CashierPage-Cc-WWhS2.cjs +0 -23
  69. package/components/CashierPage-DRWrUyaV.js +0 -9936
  70. package/components/CashierPage-HxKce2E6.js +0 -9989
  71. package/components/CashierReceiptPage-CF7knTfT.cjs +0 -26
  72. package/components/CashierSessionExpirationModal-Dht4fdo7.cjs +0 -2
  73. package/components/CashierSpinner-D78lroyw.cjs +0 -1
  74. package/components/CashierStepUp-Dr4sPwOr.cjs +0 -1
  75. package/components/CashierTransactionHistory-sQ3KzTVb.cjs +0 -1
  76. package/components/CashierVerifications-t7V-5Qq2.cjs +0 -1
  77. package/components/TxnStatusIcon-DwP4kCaz.cjs +0 -1
  78. package/components/TxnTypeIcons-DwmzII52.cjs +0 -1
@@ -1,672 +0,0 @@
1
- import { a as Ce, i as _e, $ as Me, S as ke, b as De, s as Le, f as A, d as Ne, z as te, g as R, w as I, l as E, m as c, n as g, x as V, o as S, p, q as Te, r as Se, y as re, C as Q, D as $, E as le, F as Pe, G as We, A as q, H as Ae, I as ee, J as ne, K as Fe, c as ze, B as Ie } from "./CashierPage-DRWrUyaV.js";
2
- import { s as Ve, a as Re, b as Ee } from "./CashierHeader-il09PBLP.js";
3
- function se(e, t) {
4
- Ce(e, t);
5
- }
6
- function Xe(e) {
7
- _e({
8
- fallbackLocale: "en"
9
- }), Me.set(e);
10
- }
11
- const oe = {
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 He(e) {
50
- Ne(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 ue(e, t, a) {
57
- const l = e.slice();
58
- return l[45] = t[a], l[44] = a, l;
59
- }
60
- function je(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 Ze(e) {
83
- let t, a = !Q(
84
- /*userAgent*/
85
- e[10]
86
- ) && /*promotedPaymentMethods*/
87
- e[5].length > 1, l, s, f, D = !Q(
88
- /*userAgent*/
89
- e[10]
90
- ) && /*promotedPaymentMethods*/
91
- e[5].length > 1, C, M, v, k, L, h = a && de(e), y = $(
92
- /*promotedPaymentMethods*/
93
- e[5]
94
- ), u = [];
95
- for (let i = 0; i < y.length; i += 1)
96
- u[i] = me(ue(e, y, i));
97
- let d = D && fe(e), m = $(Array(
98
- /*promotedPaymentMethods*/
99
- e[5].length
100
- )), b = [];
101
- for (let i = 0; i < m.length; i += 1)
102
- b[i] = he(ce(e, m, i));
103
- return {
104
- c() {
105
- t = g("div"), h && h.c(), l = S(), s = g("div");
106
- for (let i = 0; i < u.length; i += 1)
107
- u[i].c();
108
- f = S(), d && d.c(), M = S(), v = g("div");
109
- for (let i = 0; i < b.length; i += 1)
110
- b[i].c();
111
- p(s, "class", "Carousel"), p(t, "class", "CarouselCardsContainer"), Ae(() => (
112
- /*div1_elementresize_handler*/
113
- e[30].call(t)
114
- )), p(v, "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), C = We(
121
- t,
122
- /*div1_elementresize_handler*/
123
- e[30].bind(t)
124
- ), E(i, M, o), E(i, v, o);
125
- for (let n = 0; n < b.length; n += 1)
126
- b[n] && b[n].m(v, null);
127
- k || (L = [
128
- q(
129
- s,
130
- "touchstart",
131
- /*handleTouchStart*/
132
- e[12]
133
- ),
134
- q(
135
- s,
136
- "touchmove",
137
- /*handleTouchMove*/
138
- e[13]
139
- ),
140
- q(
141
- s,
142
- "touchend",
143
- /*handleTouchEnd*/
144
- e[14]
145
- )
146
- ], k = !0);
147
- },
148
- p(i, o) {
149
- if (o[0] & /*promotedPaymentMethods*/
150
- 32 && (a = !Q(
151
- /*userAgent*/
152
- i[10]
153
- ) && /*promotedPaymentMethods*/
154
- i[5].length > 1), a ? h ? h.p(i, o) : (h = de(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 = $(
157
- /*promotedPaymentMethods*/
158
- i[5]
159
- );
160
- let n;
161
- for (n = 0; n < y.length; n += 1) {
162
- const N = ue(i, y, n);
163
- u[n] ? u[n].p(N, o) : (u[n] = me(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
- i[10]
173
- ) && /*promotedPaymentMethods*/
174
- i[5].length > 1), D ? d ? d.p(i, o) : (d = fe(i), d.c(), d.m(t, null)) : d && (d.d(1), d = null), o[0] & /*activeIndex, promotedPaymentMethods*/
175
- 96) {
176
- m = $(Array(
177
- /*promotedPaymentMethods*/
178
- i[5].length
179
- ));
180
- let n;
181
- for (n = 0; n < m.length; n += 1) {
182
- const N = ce(i, m, n);
183
- b[n] ? b[n].p(N, o) : (b[n] = he(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(i) {
191
- i && (R(t), R(M), R(v)), h && h.d(), le(u, i), e[28](null), d && d.d(), C(), le(b, i), k = !1, Pe(L);
192
- }
193
- };
194
- }
195
- function de(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 = q(
203
- t,
204
- "click",
205
- /*click_handler*/
206
- e[25]
207
- ), a = !0);
208
- },
209
- p: te,
210
- d(s) {
211
- s && R(t), a = !1, l();
212
- }
213
- };
214
- }
215
- function me(e) {
216
- let t, a, l, s, f, D, C, M, v, k = (
217
- /*method*/
218
- (e[45].Label || /*method*/
219
- e[45].Name) + ""
220
- ), L, h, y, u, d = (
221
- /*$_*/
222
- e[9](`${/*methodtype*/
223
- e[0]}${/*method*/
224
- e[45].ProcessingTime}`) + ""
225
- ), m, b, i, o, n, N = (
226
- /*$_*/
227
- e[9]("generalMin") + ""
228
- ), X, w, P = ee(
229
- /*method*/
230
- e[45].DisplayCurrency.MinAmountLimit,
231
- /*method*/
232
- e[45].DisplayCurrency.Name,
233
- {
234
- maximumFractionDigits: (
235
- /*precisionCurrenciesMap*/
236
- e[4][
237
- /*method*/
238
- e[45]?.DisplayCurrency?.Name
239
- ] || /*numericCurrencyDecimals*/
240
- e[8]
241
- ),
242
- minimumFractionDigits: (
243
- /*precisionCurrenciesMap*/
244
- e[4][
245
- /*method*/
246
- e[45]?.DisplayCurrency?.Name
247
- ] || /*numericCurrencyDecimals*/
248
- e[8]
249
- )
250
- }
251
- ) + "", F, K, H, Z = (
252
- /*$_*/
253
- e[9]("generalMax") + ""
254
- ), B, O, W = ee(
255
- /*method*/
256
- e[45].DisplayCurrency.MaxAmountLimit,
257
- /*method*/
258
- e[45].DisplayCurrency.Name,
259
- {
260
- maximumFractionDigits: (
261
- /*precisionCurrenciesMap*/
262
- e[4][
263
- /*method*/
264
- e[45]?.DisplayCurrency?.Name
265
- ] || /*numericCurrencyDecimals*/
266
- e[8]
267
- ),
268
- minimumFractionDigits: (
269
- /*precisionCurrenciesMap*/
270
- e[4][
271
- /*method*/
272
- e[45]?.DisplayCurrency?.Name
273
- ] || /*numericCurrencyDecimals*/
274
- e[8]
275
- )
276
- }
277
- ) + "", G, Y, U, J, x;
278
- function ae() {
279
- return (
280
- /*click_handler_1*/
281
- e[26](
282
- /*method*/
283
- e[45],
284
- /*index*/
285
- e[44]
286
- )
287
- );
288
- }
289
- return {
290
- c() {
291
- t = g("div"), a = g("div"), l = g("img"), D = S(), C = g("div"), M = g("div"), v = g("span"), L = V(k), h = S(), y = g("div"), u = g("span"), m = V(d), b = S(), i = g("div"), o = g("span"), n = g("span"), X = V(N), w = S(), F = V(P), K = S(), H = g("span"), B = V(Z), O = S(), G = V(W), Y = S(), ne(l.src, s = /*method*/
292
- e[45].LogoUrl) || p(l, "src", s), p(l, "alt", f = /*method*/
293
- e[45].Label), p(a, "class", "MethodLogo"), p(M, "class", "MethodTitle"), p(y, "class", "MethodProcessingTime"), p(o, "class", "Limits"), p(i, "class", "MethodLimits"), p(C, "class", "MethodInfo"), p(t, "class", U = `CarouselCardWrapper ${/*index*/
294
- e[44] === /*activeIndex*/
295
- e[6] ? "active" : ""}`);
296
- },
297
- m(j, T) {
298
- E(j, t, T), c(t, a), c(a, l), c(t, D), c(t, C), c(C, M), c(M, v), c(v, L), c(C, h), c(C, y), c(y, u), c(u, m), c(C, b), c(C, i), c(i, o), c(o, n), c(n, X), c(n, w), c(n, F), c(o, K), c(o, H), c(H, B), c(H, O), c(H, G), c(t, Y), e[27](t), J || (x = q(t, "click", ae), J = !0);
299
- },
300
- p(j, T) {
301
- e = j, T[0] & /*promotedPaymentMethods*/
302
- 32 && !ne(l.src, s = /*method*/
303
- e[45].LogoUrl) && p(l, "src", s), T[0] & /*promotedPaymentMethods*/
304
- 32 && f !== (f = /*method*/
305
- e[45].Label) && p(l, "alt", f), T[0] & /*promotedPaymentMethods*/
306
- 32 && k !== (k = /*method*/
307
- (e[45].Label || /*method*/
308
- e[45].Name) + "") && I(L, k), T[0] & /*$_, methodtype, promotedPaymentMethods*/
309
- 545 && d !== (d = /*$_*/
310
- e[9](`${/*methodtype*/
311
- e[0]}${/*method*/
312
- e[45].ProcessingTime}`) + "") && I(m, d), T[0] & /*$_*/
313
- 512 && N !== (N = /*$_*/
314
- e[9]("generalMin") + "") && I(X, N), T[0] & /*promotedPaymentMethods, precisionCurrenciesMap, numericCurrencyDecimals*/
315
- 304 && P !== (P = ee(
316
- /*method*/
317
- e[45].DisplayCurrency.MinAmountLimit,
318
- /*method*/
319
- e[45].DisplayCurrency.Name,
320
- {
321
- maximumFractionDigits: (
322
- /*precisionCurrenciesMap*/
323
- e[4][
324
- /*method*/
325
- e[45]?.DisplayCurrency?.Name
326
- ] || /*numericCurrencyDecimals*/
327
- e[8]
328
- ),
329
- minimumFractionDigits: (
330
- /*precisionCurrenciesMap*/
331
- e[4][
332
- /*method*/
333
- e[45]?.DisplayCurrency?.Name
334
- ] || /*numericCurrencyDecimals*/
335
- e[8]
336
- )
337
- }
338
- ) + "") && I(F, P), T[0] & /*$_*/
339
- 512 && Z !== (Z = /*$_*/
340
- e[9]("generalMax") + "") && I(B, Z), T[0] & /*promotedPaymentMethods, precisionCurrenciesMap, numericCurrencyDecimals*/
341
- 304 && W !== (W = ee(
342
- /*method*/
343
- e[45].DisplayCurrency.MaxAmountLimit,
344
- /*method*/
345
- e[45].DisplayCurrency.Name,
346
- {
347
- maximumFractionDigits: (
348
- /*precisionCurrenciesMap*/
349
- e[4][
350
- /*method*/
351
- e[45]?.DisplayCurrency?.Name
352
- ] || /*numericCurrencyDecimals*/
353
- e[8]
354
- ),
355
- minimumFractionDigits: (
356
- /*precisionCurrenciesMap*/
357
- e[4][
358
- /*method*/
359
- e[45]?.DisplayCurrency?.Name
360
- ] || /*numericCurrencyDecimals*/
361
- e[8]
362
- )
363
- }
364
- ) + "") && I(G, W), T[0] & /*activeIndex*/
365
- 64 && U !== (U = `CarouselCardWrapper ${/*index*/
366
- e[44] === /*activeIndex*/
367
- e[6] ? "active" : ""}`) && p(t, "class", U);
368
- },
369
- d(j) {
370
- j && R(t), e[27](null), J = !1, x();
371
- }
372
- };
373
- }
374
- function fe(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
- E(s, t, f), a || (l = q(
382
- t,
383
- "click",
384
- /*click_handler_2*/
385
- e[29]
386
- ), a = !0);
387
- },
388
- p: te,
389
- d(s) {
390
- s && R(t), a = !1, l();
391
- }
392
- };
393
- }
394
- function he(e) {
395
- let t, a;
396
- return {
397
- c() {
398
- t = g("div"), p(t, "class", a = `Dot ${/*index*/
399
- e[44] === /*activeIndex*/
400
- e[6] ? "active" : ""}`);
401
- },
402
- m(l, s) {
403
- E(l, t, s);
404
- },
405
- p(l, s) {
406
- s[0] & /*activeIndex*/
407
- 64 && a !== (a = `Dot ${/*index*/
408
- l[44] === /*activeIndex*/
409
- l[6] ? "active" : ""}`) && p(t, "class", a);
410
- },
411
- d(l) {
412
- l && R(t);
413
- }
414
- };
415
- }
416
- function Ue(e) {
417
- let t, a, l, s, f = (
418
- /*$_*/
419
- e[9]("carouselTitle") + ""
420
- ), D, C, M, v = (
421
- /*$_*/
422
- e[9]("carouselSubtitle") + ""
423
- ), k, L;
424
- function h(d, m) {
425
- return (
426
- /*promotedPaymentMethods*/
427
- d[5].length > 0 ? Ze : je
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 = V(f), C = S(), M = g("p"), k = V(v), L = S(), u.c(), p(l, "class", "CarouselHeader"), p(a, "class", "CashierCarouselWarpper");
434
- },
435
- m(d, m) {
436
- E(d, t, m), c(t, a), c(a, l), c(l, s), c(s, D), c(l, C), c(l, M), c(M, k), c(a, L), u.m(a, null), e[31](t);
437
- },
438
- p(d, m) {
439
- m[0] & /*$_*/
440
- 512 && f !== (f = /*$_*/
441
- d[9]("carouselTitle") + "") && I(D, f), m[0] & /*$_*/
442
- 512 && v !== (v = /*$_*/
443
- d[9]("carouselSubtitle") + "") && I(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 && R(t), u.d(), e[31](null);
449
- }
450
- };
451
- }
452
- function xe(e, t, a) {
453
- let l, s;
454
- Te(e, Ie, (r) => a(9, s = r));
455
- let { lang: f = "en" } = t, { local: D = "en-US" } = t, { currencysymbol: C = "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, i = [], o = 0, n = !0, N = 0, X = !1, w, P, F, K = window.navigator.userAgent;
456
- const H = (r) => {
457
- const { data: { type: _ } = {} } = r || {};
458
- switch (_) {
459
- case "PromotedPaymentMethods": {
460
- a(5, i = r?.data?.promotedPaymentMethods), a(6, o = Math.floor((i.length - 1) / 2));
461
- break;
462
- }
463
- case "PrecisionCurrenciesMap": {
464
- a(4, d = r?.data?.payload || {});
465
- break;
466
- }
467
- }
468
- };
469
- Object.keys(oe).forEach((r) => {
470
- se(r, oe[r]);
471
- });
472
- const Z = () => {
473
- let r = u;
474
- if (r)
475
- return fetch(r).then((_) => _.json()).then((_) => {
476
- Object.keys(_).forEach((z) => {
477
- se(z, _[z]);
478
- });
479
- }).catch((_) => {
480
- console.log(_);
481
- });
482
- }, B = () => {
483
- Xe(f);
484
- }, O = (r, _) => {
485
- a(6, o = _), a(2, w.style.transform = W(), w), r.Name, window.postMessage({ type: "SelectPayMeth", details: r }, window.location.href), dispatchEvent(new CustomEvent(
486
- "selectPayMeth",
487
- {
488
- detail: r,
489
- bubbles: !0,
490
- cancelable: !0,
491
- composed: !0
492
- }
493
- ));
494
- }, W = () => {
495
- const r = parseFloat(getComputedStyle(F).getPropertyValue("--emw-cashier-card-width")) || 78, _ = parseFloat(getComputedStyle(w).getPropertyValue("--emw-cashier-card-gap")) || 10, z = parseFloat(getComputedStyle(F).getPropertyValue("--emw-cashier-card-width-active")) || 100, ie = r + _, be = P / 2, we = o * ie + z / 2;
496
- return `translateX(${be - we}px)`;
497
- }, G = (r) => {
498
- N = r.touches[0].clientX, X = !0, w.classList.add("dragging");
499
- }, Y = (r) => {
500
- if (!X)
501
- return;
502
- const _ = r.touches[0].clientX;
503
- Math.abs(_ - N) > 10 && r.preventDefault();
504
- }, U = (r) => {
505
- if (!X)
506
- return;
507
- X = !1, w.classList.remove("dragging");
508
- const _ = r.changedTouches[0].clientX, z = N - _;
509
- Math.abs(z) > 50 && (z > 0 && o < i.length - 1 ? a(6, o++, o) : z < 0 && o > 0 && a(6, o--, o), a(2, w.style.transform = W(), w));
510
- }, J = () => {
511
- n && (a(2, w.style.transform = W(), w), n = !1);
512
- }, x = (r) => {
513
- r === "next" && o < i.length - 1 ? a(6, o++, o) : r === "prev" && o > 0 && a(6, o--, o), a(2, w.style.transform = W(), w);
514
- };
515
- Se(() => (Fe(D, C, M, v), window.addEventListener("message", H), window.postMessage({ type: "CashierCarouselReady" }, window.location.href), w && W(), () => {
516
- window.removeEventListener("message", H);
517
- }));
518
- const ae = () => x("prev"), j = (r, _) => O(r, _);
519
- function T(r) {
520
- re[r ? "unshift" : "push"](() => {
521
- F = r, a(7, F);
522
- });
523
- }
524
- function ge(r) {
525
- re[r ? "unshift" : "push"](() => {
526
- w = r, a(2, w);
527
- });
528
- }
529
- const pe = () => x("next");
530
- function ye() {
531
- P = this.clientWidth, a(3, P);
532
- }
533
- function ve(r) {
534
- re[r ? "unshift" : "push"](() => {
535
- m = r, a(1, m);
536
- });
537
- }
538
- return e.$$set = (r) => {
539
- "lang" in r && a(16, f = r.lang), "local" in r && a(17, D = r.local), "currencysymbol" in r && a(18, C = r.currencysymbol), "currencyposition" in r && a(19, M = r.currencyposition), "currencydecimals" in r && a(20, v = r.currencydecimals), "methodtype" in r && a(0, k = r.methodtype), "clientstyling" in r && a(21, L = 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);
540
- }, e.$$.update = () => {
541
- e.$$.dirty[0] & /*lang*/
542
- 65536 && f && B(), e.$$.dirty[0] & /*lang, translationurl*/
543
- 16842752 && f && u && Z(), e.$$.dirty[0] & /*carouselContainer, carouselContainerWidth*/
544
- 12 && w && P && J(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
545
- 2097154 && L && m && Ve(m, L), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
546
- 4194306 && h && m && Re(m, h), e.$$.dirty[0] & /*mbsource, customStylingContainer*/
547
- 8388610 && y && m && Ee(m, `${y}.Style`, b), e.$$.dirty[0] & /*currencydecimals*/
548
- 1048576 && a(8, l = Number(v));
549
- }, [
550
- k,
551
- m,
552
- w,
553
- P,
554
- d,
555
- i,
556
- o,
557
- F,
558
- l,
559
- s,
560
- K,
561
- O,
562
- G,
563
- Y,
564
- U,
565
- x,
566
- f,
567
- D,
568
- C,
569
- M,
570
- v,
571
- L,
572
- h,
573
- y,
574
- u,
575
- ae,
576
- j,
577
- T,
578
- ge,
579
- pe,
580
- ye,
581
- ve
582
- ];
583
- }
584
- class qe extends ke {
585
- constructor(t) {
586
- super(), De(
587
- this,
588
- t,
589
- xe,
590
- Ue,
591
- Le,
592
- {
593
- lang: 16,
594
- local: 17,
595
- currencysymbol: 18,
596
- currencyposition: 19,
597
- currencydecimals: 20,
598
- methodtype: 0,
599
- clientstyling: 21,
600
- clientstylingurl: 22,
601
- mbsource: 23,
602
- translationurl: 24
603
- },
604
- He,
605
- [-1, -1]
606
- );
607
- }
608
- get lang() {
609
- return this.$$.ctx[16];
610
- }
611
- set lang(t) {
612
- this.$$set({ lang: t }), A();
613
- }
614
- get local() {
615
- return this.$$.ctx[17];
616
- }
617
- set local(t) {
618
- this.$$set({ local: t }), A();
619
- }
620
- get currencysymbol() {
621
- return this.$$.ctx[18];
622
- }
623
- set currencysymbol(t) {
624
- this.$$set({ currencysymbol: t }), A();
625
- }
626
- get currencyposition() {
627
- return this.$$.ctx[19];
628
- }
629
- set currencyposition(t) {
630
- this.$$set({ currencyposition: t }), A();
631
- }
632
- get currencydecimals() {
633
- return this.$$.ctx[20];
634
- }
635
- set currencydecimals(t) {
636
- this.$$set({ currencydecimals: t }), A();
637
- }
638
- get methodtype() {
639
- return this.$$.ctx[0];
640
- }
641
- set methodtype(t) {
642
- this.$$set({ methodtype: t }), A();
643
- }
644
- get clientstyling() {
645
- return this.$$.ctx[21];
646
- }
647
- set clientstyling(t) {
648
- this.$$set({ clientstyling: t }), A();
649
- }
650
- get clientstylingurl() {
651
- return this.$$.ctx[22];
652
- }
653
- set clientstylingurl(t) {
654
- this.$$set({ clientstylingurl: t }), A();
655
- }
656
- get mbsource() {
657
- return this.$$.ctx[23];
658
- }
659
- set mbsource(t) {
660
- this.$$set({ mbsource: t }), A();
661
- }
662
- get translationurl() {
663
- return this.$$.ctx[24];
664
- }
665
- set translationurl(t) {
666
- this.$$set({ translationurl: t }), A();
667
- }
668
- }
669
- ze(qe, { lang: {}, local: {}, currencysymbol: {}, currencyposition: {}, currencydecimals: {}, methodtype: {}, clientstyling: {}, clientstylingurl: {}, mbsource: {}, translationurl: {} }, [], [], !0);
670
- export {
671
- qe as default
672
- };