@everymatrix/cashier-page-nd 1.69.152 → 1.69.154

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 (60) hide show
  1. package/components/{CashierCarousel-Bgq1WDGU.js → CashierCarousel-Cf2c1vPp.js} +2 -2
  2. package/components/{CashierCarousel-BTxUaLd7.js → CashierCarousel-CsnmOP94.js} +266 -265
  3. package/components/{CashierCarousel-BhvSzaOX.cjs → CashierCarousel-DHmjrgBC.cjs} +6 -6
  4. package/components/{CashierError-Bx2_q1TO.js → CashierError-BDmChuIE.js} +1 -1
  5. package/components/{CashierError-B9NfoUAi.js → CashierError-BIiEXbdF.js} +1 -1
  6. package/components/{CashierError-CYzF-3cb.cjs → CashierError-CLWqWwfU.cjs} +1 -1
  7. package/components/{CashierHeader-D3GpPPeM.cjs → CashierHeader-CP7RROYr.cjs} +1 -1
  8. package/components/{CashierHeader-DP32NGGa.js → CashierHeader-Cecv5g56.js} +1 -1
  9. package/components/{CashierHeader-DlJ19rb5.js → CashierHeader-Dd5b4-yJ.js} +1 -1
  10. package/components/{CashierIframeRedirect-DuFSKTft.cjs → CashierIframeRedirect-BXrhvi-f.cjs} +1 -1
  11. package/components/{CashierIframeRedirect-CwcYsN9s.js → CashierIframeRedirect-DMYVav-v.js} +3 -3
  12. package/components/{CashierIframeRedirect-BzDP-bWe.js → CashierIframeRedirect-reE-yTgQ.js} +3 -3
  13. package/components/{CashierMethodDetails-rTqmsVpv.js → CashierMethodDetails-BUp0OXBg.js} +87 -85
  14. package/components/{CashierMethodDetails-gbr4S4TG.js → CashierMethodDetails-CmGkz8Gs.js} +402 -400
  15. package/components/{CashierMethodDetails-5T6EAzyg.cjs → CashierMethodDetails-a7w2Fpuk.cjs} +4 -4
  16. package/components/CashierMethodsList-8-1C80wc.js +810 -0
  17. package/components/CashierMethodsList-C97If7sq.cjs +1 -0
  18. package/components/CashierMethodsList-CtDIeDD9.js +825 -0
  19. package/components/{CashierModal-BeairN-j.js → CashierModal-C-jze_SD.js} +97 -96
  20. package/components/CashierModal-DVeVHCTj.cjs +1 -0
  21. package/components/{CashierModal-3_dhlwdD.js → CashierModal-Dclaqxyx.js} +106 -105
  22. package/components/{CashierNotifications-BHx0s7qr.js → CashierNotifications-BVUb_REU.js} +1 -1
  23. package/components/{CashierNotifications-ZPVuQtvF.js → CashierNotifications-COlT367w.js} +1 -1
  24. package/components/{CashierNotifications-C80Nj7ut.cjs → CashierNotifications-DdrhkPqp.cjs} +1 -1
  25. package/components/CashierPage-B0EP4g6U.cjs +1 -0
  26. package/components/{CashierPage-Bd1bJBOx.js → CashierPage-BSaar2I5.js} +445 -445
  27. package/components/{CashierPage-ClPy9v8d.js → CashierPage-Iwp2vIzz.js} +636 -636
  28. package/components/{CashierReceiptPage-CGPxr1tM.js → CashierReceiptPage-C_ThGHj9.js} +2 -2
  29. package/components/{CashierReceiptPage-BXxKVs-c.cjs → CashierReceiptPage-DKQ1TT5R.cjs} +1 -1
  30. package/components/{CashierReceiptPage-dgvFBbs8.js → CashierReceiptPage-Sbqf6VFD.js} +2 -2
  31. package/components/{CashierSessionExpirationModal-OfDuSlF9.cjs → CashierSessionExpirationModal-BfNtR7tc.cjs} +1 -1
  32. package/components/{CashierSessionExpirationModal-Cef4HAT7.js → CashierSessionExpirationModal-BhIHw0Dn.js} +3 -3
  33. package/components/{CashierSessionExpirationModal-DdfqGx2U.js → CashierSessionExpirationModal-Se0WGHHJ.js} +3 -3
  34. package/components/{CashierSpinner-Cy0PzOYE.js → CashierSpinner-BQWOaYce.js} +1 -1
  35. package/components/{CashierSpinner-cF3ogJPb.cjs → CashierSpinner-D5McPkCt.cjs} +1 -1
  36. package/components/{CashierSpinner-cCY2xkeQ.js → CashierSpinner-DZSuVNPM.js} +1 -1
  37. package/components/{CashierStepUp-DY16-lgX.cjs → CashierStepUp-DWd3cylJ.cjs} +1 -1
  38. package/components/{CashierStepUp-CZBuTZjb.js → CashierStepUp-DyfuU9cc.js} +1 -1
  39. package/components/{CashierStepUp-CrehM00S.js → CashierStepUp-sBUhsV5t.js} +1 -1
  40. package/components/{CashierTransactionHistory-DuPT0n7K.js → CashierTransactionHistory-B9Jw119p.js} +5 -5
  41. package/components/{CashierTransactionHistory-C4zYZi4B.cjs → CashierTransactionHistory-C6HNHDcy.cjs} +1 -1
  42. package/components/{CashierTransactionHistory-D-CPc9ir.js → CashierTransactionHistory-C_hM5qDU.js} +5 -5
  43. package/components/{CashierVerifications-Rk6X7RVq.js → CashierVerifications-B-GmoVz-.js} +2 -2
  44. package/components/{CashierVerifications-CMl70lXH.js → CashierVerifications-D3ppfphF.js} +2 -2
  45. package/components/{CashierVerifications-n6M_BOo7.cjs → CashierVerifications-P5L5SY5e.cjs} +1 -1
  46. package/components/{TxnStatusIcon-DI3nuEnF.cjs → TxnStatusIcon-BhtPQm1B.cjs} +1 -1
  47. package/components/{TxnStatusIcon-Bdza1shy.js → TxnStatusIcon-DMKCkAXd.js} +1 -1
  48. package/components/{TxnStatusIcon-CdlSy960.js → TxnStatusIcon-ty2g5_He.js} +1 -1
  49. package/components/{TxnTypeIcons-BAaNXMO8.js → TxnTypeIcons-B5CYl9NW.js} +1 -1
  50. package/components/{TxnTypeIcons-2RX9ugB9.cjs → TxnTypeIcons-CyHXLkXz.cjs} +1 -1
  51. package/components/{TxnTypeIcons-DL0xRj4u.js → TxnTypeIcons-D_bSXM7r.js} +1 -1
  52. package/es2015/cashier-page.cjs +1 -1
  53. package/es2015/cashier-page.js +1 -1
  54. package/esnext/cashier-page.js +1 -1
  55. package/package.json +1 -1
  56. package/components/CashierMethodsList-CGfG8qfG.js +0 -748
  57. package/components/CashierMethodsList-CKbz7q56.cjs +0 -1
  58. package/components/CashierMethodsList-D_J2ddT8.js +0 -736
  59. package/components/CashierModal-B5itoe-4.cjs +0 -1
  60. package/components/CashierPage-BZJ0SjkW.cjs +0 -1
@@ -1,736 +0,0 @@
1
- import { a as ze, i as Ne, $ as Oe, S as Ue, b as We, s as je, f as b, c as Ie, G as re, e as N, k as O, n as T, r as be, p as le, q as He, O as Re, l as c, m as p, o as g, v as P, A as L, w as C, N as Ye, y as qe, x as $, W as K, Y as ae, a4 as Be, U as V, a0 as Ge, z as ce, B as Xe, C as Fe, D as Je, E as Ve, F as Ke } from "./CashierCarousel-Bgq1WDGU.js";
2
- import { d as me, u as Ze, x as de } from "./CashierMethodDetails-gbr4S4TG.js";
3
- function ue(t, e) {
4
- ze(t, e);
5
- }
6
- function Qe(t) {
7
- Ne({
8
- fallbackLocale: "en"
9
- }), Oe.set(t);
10
- }
11
- const he = {
12
- en: {
13
- generalMin: "Min",
14
- generalMax: "Max",
15
- showAll: "SHOW ALL",
16
- showLess: "SHOW LESS",
17
- error: "Error",
18
- noPaymentMethods: "No payment methods available",
19
- promoLabel: "Recommended",
20
- otherMethodsTitle: "All Methods",
21
- otherMethodsDescription: "Discover our incredible selection of unique products that you won't want to miss!"
22
- },
23
- uk: {
24
- generalMin: "Мін",
25
- generalMax: "Макс"
26
- },
27
- hr: {
28
- generalMin: "Minimalno",
29
- generalMax: "Maksimalno",
30
- showAll: "Prikaži sve",
31
- showLess: "Prikaži manje"
32
- },
33
- tr: {
34
- generalMin: "Min",
35
- generalMax: "Maks",
36
- showAll: "HEPSİNİ GÖSTER",
37
- showLess: "DAHA AZ GÖSTER",
38
- error: "Hata",
39
- noPaymentMethods: "Hiçbir ödeme yöntemi mevcut değil",
40
- promoLabel: "Favori",
41
- otherMethodsTitle: "Tüm Yöntemler",
42
- otherMethodsDescription: "Kaçırmak istemeyeceğiniz benzersiz ürünlerimizden oluşan inanılmaz seçkimizi keşfedin!"
43
- },
44
- "en-us": {
45
- generalMin: "Min",
46
- generalMax: "Max",
47
- showAll: "SHOW ALL",
48
- showLess: "SHOW LESS"
49
- }
50
- };
51
- function $e(t) {
52
- Ie(t, "svelte-ypvc47", '*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.CashierMethodList{display:grid;grid-template-columns:1fr 1fr 1fr;max-width:100%;border-radius:var(--emw--border-radius-medium-plus, 6px);gap:10px;margin:10px}.SelectorWrapper{display:flex;flex-direction:column;align-items:center;justify-content:center;cursor:pointer;position:relative;box-sizing:border-box;padding:10px 0;border-radius:10px;box-shadow:inset 0px 0px 0px 1px rgba(255, 255, 255, 0.2);overflow:hidden;z-index:1;transition:transform 0.3s ease-in-out}.SelectorWrapper:hover{box-shadow:inset 0px 0px 7px var(--emw--color-primary);transform:scale(1.02)}.SelectorWrapper::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;border-radius:10px;background:linear-gradient(140deg, var(--emw--color-white, #f5f5f5) 5%, var(--emw--color-cashier-bg, var(--emw--color-background, #23281f)) 40%, var(--emw--color-black, #000000) 60%);opacity:0.2}.CashierMethodListWidget{background-color:var(--emw--color-cashier-bg, var(--emw--color-background, #23281f));height:100%;padding-bottom:20px}.MethodsListDescription{color:var(--emw--color-typography, var(--emw--color-white, #ffffff));padding:10px}.MethodsListDescription h3{font-size:12px;text-transform:uppercase;margin:10px 0}.MethodsListDescription p{color:white;opacity:0.55;font-size:12px}.MethodLogo img{width:100%;height:100%;max-height:35px}.MethodPromoLabel{background:var(--emw--color-button-background, #f1f3ff);color:var(--emw--color-primary, #f9c405);font-size:14px;font-weight:700;text-transform:uppercase;padding:5px 10px;min-width:100px;border-radius:10px;margin:10px;text-align:center}.MethodInfo{width:100%;max-width:100%}.MethodTitle{color:var(--emw--color-typography, var(--emw--color-white, #ffffff));text-align:center;margin:5px 10px;font-size:var(--emw--font-size-medium, 12px);word-break:break-word;font-weight:var(--emw--font-weight-bold, 700);line-height:16px}.MethodLimits{gap:var(--emw--spacing-small-minus, 10px);text-align:center;word-break:break-word;margin:5px 10px}.Limits{max-width:100%;font-size:var(--emw--font-size-small, 11px);font-weight:var(--emw--font-weight-normal, 300);font-style:normal;color:var(--emw--color-typography, var(--emw--color-white, #ffffff));opacity:0.7}.EmptyContentMessageWrapper{position:relative;display:flex;justify-content:flex-end}.EmptyContentMessageContent{display:flex;flex-direction:column;row-gap:var(--emw--spacing-small, 12px);bottom:10%}.EmptyContentMessageImg{width:250px}.EmptyContentMessageImg img{border-radius:0 0 var(--emw--border-radius-medium-plus, 6px) 0;height:100%;width:100%}.EmptyContentMessageTitle{font-size:var(--emw--font-size-medium, 20px);font-weight:var(--emw--font-weight-bold, 800);line-height:calc(var(--emw--font-size-medium, 16px) + 4px);color:var(--emw--color-primary);text-transform:uppercase}.EmptyContentMessageText{word-break:break-word;font-size:var(--emw--font-size-small, 14px);line-height:calc(var(--emw--font-size-medium, 16px) + 4px);color:var(--emw--color-typography, #fff)}.EmptyContentMessageDesktop{justify-content:flex-start}.EmptyContentMessageDesktop .EmptyContentMessageContent{bottom:auto;margin-top:10px}.EmptyContentMessageDesktop .EmptyContentMessageImg{width:auto}.EmptyContentMessageDesktop .EmptyContentMessageImg img{transform:scaleX(-1)}.IconWarning{width:30px;display:flex}.IconWarning svg{height:18px;fill:var(--emw--color-warning, rgb(250, 146, 0))}.ShowAllButton{cursor:pointer;color:var(--emw--color-grey-290, #666);text-align:center;font-size:var(--emw--font-size-x-small, 12px);font-style:normal;font-weight:var(--emw--font-weight-semibold, 500);font-family:inherit;background:var(--emw--color-gray-50, #f7f8fa);line-height:normal;border:1px solid var(--emw--color-grey-105, #e8e9eb);border-radius:var(--emw--border-radius-medium, 4px);margin:var(--emw--spacing-small, 12px) auto;height:36px;display:flex;align-items:center;justify-content:center;width:80%}.ShowAllButton:hover{background:var(--emw--color-background, #fff)}.ErrorMessage{color:var(--emw--color-typography, var(--emw--color-white, #ffffff));font-size:12px}@container method-list (width < 450px){.MethodLogo{width:var(--emw-logo-small-width, 90px);min-width:var(--emw-logo-small-width, 90px);min-height:var(--emw-logo-small-height, 30px);overflow:hidden}.CashierMethodList .MethodTitle,.MethodLimits{display:inline-block;flex-grow:1;font-size:var(--emw--font-size-medium, 16px);line-height:120%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;width:100%}.MethodInfo{flex-direction:column;align-items:start}.MethodLimits{display:flex;flex-direction:row;gap:5px}.CashierMethodList .MethodLimits .Limits{flex-shrink:0;font-size:var(--emw--font-size-x-small, 12px)}}@container method-list (max-width: 300px){.Limits{display:none}}');
53
- }
54
- function fe(t, e, s) {
55
- const o = t.slice();
56
- return o[52] = e[s], o[54] = s, o;
57
- }
58
- function ge(t) {
59
- let e, s, o, r, i = !/*noPaymentMethodsAvailable*/
60
- t[13] && pe(t);
61
- function l(a, y) {
62
- return (
63
- /*noPaymentMethodsAvailable*/
64
- a[13] && /*isDataLoaded*/
65
- a[12] ? tt : et
66
- );
67
- }
68
- let d = l(t), u = d(t), m = (
69
- /*methodsButtonToggleText*/
70
- t[8] && we(t)
71
- );
72
- return {
73
- c() {
74
- e = p("div"), i && i.c(), s = T(), o = p("div"), u.c(), r = T(), m && m.c(), g(o, "class", "CashierMethodList"), g(e, "class", "CashierMethodListWidget");
75
- },
76
- m(a, y) {
77
- O(a, e, y), i && i.m(e, null), c(e, s), c(e, o), u.m(o, null), c(e, r), m && m.m(e, null), t[29](e);
78
- },
79
- p(a, y) {
80
- /*noPaymentMethodsAvailable*/
81
- a[13] ? i && (i.d(1), i = null) : i ? i.p(a, y) : (i = pe(a), i.c(), i.m(e, s)), d === (d = l(a)) && u ? u.p(a, y) : (u.d(1), u = d(a), u && (u.c(), u.m(o, null))), /*methodsButtonToggleText*/
82
- a[8] ? m ? m.p(a, y) : (m = we(a), m.c(), m.m(e, null)) : m && (m.d(1), m = null);
83
- },
84
- d(a) {
85
- a && N(e), i && i.d(), u.d(), m && m.d(), t[29](null);
86
- }
87
- };
88
- }
89
- function pe(t) {
90
- let e, s, o = (
91
- /*$_*/
92
- t[14]("otherMethodsTitle") + ""
93
- ), r, i, l, d = (
94
- /*$_*/
95
- t[14]("otherMethodsDescription") + ""
96
- ), u;
97
- return {
98
- c() {
99
- e = p("div"), s = p("h3"), r = C(o), i = T(), l = p("p"), u = C(d), g(e, "class", "MethodsListDescription");
100
- },
101
- m(m, a) {
102
- O(m, e, a), c(e, s), c(s, r), c(e, i), c(e, l), c(l, u);
103
- },
104
- p(m, a) {
105
- a[0] & /*$_*/
106
- 16384 && o !== (o = /*$_*/
107
- m[14]("otherMethodsTitle") + "") && P(r, o), a[0] & /*$_*/
108
- 16384 && d !== (d = /*$_*/
109
- m[14]("otherMethodsDescription") + "") && P(u, d);
110
- },
111
- d(m) {
112
- m && N(e);
113
- }
114
- };
115
- }
116
- function et(t) {
117
- let e, s = ae(
118
- /*paymentMethodsToShow*/
119
- t[9]
120
- ), o = [];
121
- for (let r = 0; r < s.length; r += 1)
122
- o[r] = ye(fe(t, s, r));
123
- return {
124
- c() {
125
- for (let r = 0; r < o.length; r += 1)
126
- o[r].c();
127
- e = be();
128
- },
129
- m(r, i) {
130
- for (let l = 0; l < o.length; l += 1)
131
- o[l] && o[l].m(r, i);
132
- O(r, e, i);
133
- },
134
- p(r, i) {
135
- if (i[0] & /*selectedPaymentMethod, paymentMethodsToShow, selectPayMeth, $_*/
136
- 49792) {
137
- s = ae(
138
- /*paymentMethodsToShow*/
139
- r[9]
140
- );
141
- let l;
142
- for (l = 0; l < s.length; l += 1) {
143
- const d = fe(r, s, l);
144
- o[l] ? o[l].p(d, i) : (o[l] = ye(d), o[l].c(), o[l].m(e.parentNode, e));
145
- }
146
- for (; l < o.length; l += 1)
147
- o[l].d(1);
148
- o.length = s.length;
149
- }
150
- },
151
- d(r) {
152
- r && N(e), Be(o, r);
153
- }
154
- };
155
- }
156
- function tt(t) {
157
- let e, s, o, r = (
158
- /*$_*/
159
- t[14]("error") + ""
160
- ), i, l, d, u = (
161
- /*$_*/
162
- t[14]("noPaymentMethods") + ""
163
- ), m;
164
- return {
165
- c() {
166
- e = p("div"), s = p("div"), o = p("p"), i = C(r), l = T(), d = p("p"), m = C(u), g(o, "class", "EmptyContentMessageTitle"), g(d, "class", "EmptyContentMessageText"), g(s, "class", "EmptyContentMessageContent"), g(e, "class", "EmptyContentMessageWrapper"), K(
167
- e,
168
- "EmptyContentMessageDesktop",
169
- /*desktopView*/
170
- t[11]
171
- );
172
- },
173
- m(a, y) {
174
- O(a, e, y), c(e, s), c(s, o), c(o, i), c(s, l), c(s, d), c(d, m);
175
- },
176
- p(a, y) {
177
- y[0] & /*$_*/
178
- 16384 && r !== (r = /*$_*/
179
- a[14]("error") + "") && P(i, r), y[0] & /*$_*/
180
- 16384 && u !== (u = /*$_*/
181
- a[14]("noPaymentMethods") + "") && P(m, u), y[0] & /*desktopView*/
182
- 2048 && K(
183
- e,
184
- "EmptyContentMessageDesktop",
185
- /*desktopView*/
186
- a[11]
187
- );
188
- },
189
- d(a) {
190
- a && N(e);
191
- }
192
- };
193
- }
194
- function ye(t) {
195
- let e, s, o, r, i, l, d, u, m, a = (
196
- /*payMeth*/
197
- (t[52].Label || /*payMeth*/
198
- t[52].Name) + ""
199
- ), y, H, k, v, D = (
200
- /*$_*/
201
- t[14]("generalMin") + ""
202
- ), U, R, W = V(
203
- /*payMeth*/
204
- t[52].DisplayCurrency.MinAmountLimit,
205
- /*payMeth*/
206
- t[52].DisplayCurrency.Name
207
- ) + "", Y, B, _ = (
208
- /*$_*/
209
- t[14]("generalMax") + ""
210
- ), G, x, E = V(
211
- /*payMeth*/
212
- t[52].DisplayCurrency.MaxAmountLimit,
213
- /*payMeth*/
214
- t[52].DisplayCurrency.Name
215
- ) + "", A, S, j, X;
216
- function F() {
217
- return (
218
- /*click_handler*/
219
- t[27](
220
- /*payMeth*/
221
- t[52]
222
- )
223
- );
224
- }
225
- return {
226
- c() {
227
- e = p("div"), s = p("div"), o = p("img"), l = T(), d = p("div"), u = p("div"), m = p("span"), y = C(a), H = T(), k = p("div"), v = p("span"), U = C(D), R = T(), Y = C(W), B = C(" / "), G = C(_), x = T(), A = C(E), S = T(), ce(o.src, r = /*payMeth*/
228
- t[52].LogoUrl) || g(o, "src", r), g(o, "alt", i = /*payMeth*/
229
- t[52].Label), g(s, "class", "MethodLogo"), g(u, "class", "MethodTitle"), g(v, "class", "Limits"), g(k, "class", "MethodLimits"), g(d, "class", "MethodInfo"), g(e, "class", "SelectorWrapper"), K(
230
- e,
231
- "checked",
232
- /*selectedPaymentMethod*/
233
- t[7] === /*payMeth*/
234
- t[52].Name
235
- );
236
- },
237
- m(z, w) {
238
- O(z, e, w), c(e, s), c(s, o), c(e, l), c(e, d), c(d, u), c(u, m), c(m, y), c(d, H), c(d, k), c(k, v), c(v, U), c(v, R), c(v, Y), c(v, B), c(v, G), c(v, x), c(v, A), c(e, S), j || (X = [
239
- $(e, "click", F),
240
- $(e, "keyup", nt)
241
- ], j = !0);
242
- },
243
- p(z, w) {
244
- t = z, w[0] & /*paymentMethodsToShow*/
245
- 512 && !ce(o.src, r = /*payMeth*/
246
- t[52].LogoUrl) && g(o, "src", r), w[0] & /*paymentMethodsToShow*/
247
- 512 && i !== (i = /*payMeth*/
248
- t[52].Label) && g(o, "alt", i), w[0] & /*paymentMethodsToShow*/
249
- 512 && a !== (a = /*payMeth*/
250
- (t[52].Label || /*payMeth*/
251
- t[52].Name) + "") && P(y, a), w[0] & /*$_*/
252
- 16384 && D !== (D = /*$_*/
253
- t[14]("generalMin") + "") && P(U, D), w[0] & /*paymentMethodsToShow*/
254
- 512 && W !== (W = V(
255
- /*payMeth*/
256
- t[52].DisplayCurrency.MinAmountLimit,
257
- /*payMeth*/
258
- t[52].DisplayCurrency.Name
259
- ) + "") && P(Y, W), w[0] & /*$_*/
260
- 16384 && _ !== (_ = /*$_*/
261
- t[14]("generalMax") + "") && P(G, _), w[0] & /*paymentMethodsToShow*/
262
- 512 && E !== (E = V(
263
- /*payMeth*/
264
- t[52].DisplayCurrency.MaxAmountLimit,
265
- /*payMeth*/
266
- t[52].DisplayCurrency.Name
267
- ) + "") && P(A, E), w[0] & /*selectedPaymentMethod, paymentMethodsToShow*/
268
- 640 && K(
269
- e,
270
- "checked",
271
- /*selectedPaymentMethod*/
272
- t[7] === /*payMeth*/
273
- t[52].Name
274
- );
275
- },
276
- d(z) {
277
- z && N(e), j = !1, Ge(X);
278
- }
279
- };
280
- }
281
- function we(t) {
282
- let e, s, o, r;
283
- return {
284
- c() {
285
- e = p("div"), s = C(
286
- /*methodsButtonToggleText*/
287
- t[8]
288
- ), g(e, "class", "ShowAllButton");
289
- },
290
- m(i, l) {
291
- O(i, e, l), c(e, s), o || (r = $(
292
- e,
293
- "click",
294
- /*click_handler_1*/
295
- t[28]
296
- ), o = !0);
297
- },
298
- p(i, l) {
299
- l[0] & /*methodsButtonToggleText*/
300
- 256 && P(
301
- s,
302
- /*methodsButtonToggleText*/
303
- i[8]
304
- );
305
- },
306
- d(i) {
307
- i && N(e), o = !1, r();
308
- }
309
- };
310
- }
311
- function Me(t) {
312
- let e, s, o;
313
- return {
314
- c() {
315
- e = p("cashier-error"), s = p("span"), o = C(
316
- /*errorMessage*/
317
- t[10]
318
- ), g(s, "class", "ErrorMessage"), g(s, "slot", "text"), L(
319
- e,
320
- "lang",
321
- /*lang*/
322
- t[0]
323
- ), L(
324
- e,
325
- "assetsurl",
326
- /*assetsurl*/
327
- t[1]
328
- ), L(
329
- e,
330
- "translationurl",
331
- /*translationurl*/
332
- t[2]
333
- ), L(
334
- e,
335
- "clientstylingurl",
336
- /*clientstylingurl*/
337
- t[5]
338
- ), L(
339
- e,
340
- "clientstyling",
341
- /*clientstyling*/
342
- t[4]
343
- ), L(
344
- e,
345
- "mbsource",
346
- /*mbsource*/
347
- t[3]
348
- ), L(e, "hidebuttons", "true");
349
- },
350
- m(r, i) {
351
- O(r, e, i), c(e, s), c(s, o);
352
- },
353
- p(r, i) {
354
- i[0] & /*errorMessage*/
355
- 1024 && P(
356
- o,
357
- /*errorMessage*/
358
- r[10]
359
- ), i[0] & /*lang*/
360
- 1 && L(
361
- e,
362
- "lang",
363
- /*lang*/
364
- r[0]
365
- ), i[0] & /*assetsurl*/
366
- 2 && L(
367
- e,
368
- "assetsurl",
369
- /*assetsurl*/
370
- r[1]
371
- ), i[0] & /*translationurl*/
372
- 4 && L(
373
- e,
374
- "translationurl",
375
- /*translationurl*/
376
- r[2]
377
- ), i[0] & /*clientstylingurl*/
378
- 32 && L(
379
- e,
380
- "clientstylingurl",
381
- /*clientstylingurl*/
382
- r[5]
383
- ), i[0] & /*clientstyling*/
384
- 16 && L(
385
- e,
386
- "clientstyling",
387
- /*clientstyling*/
388
- r[4]
389
- ), i[0] & /*mbsource*/
390
- 8 && L(
391
- e,
392
- "mbsource",
393
- /*mbsource*/
394
- r[3]
395
- );
396
- },
397
- d(r) {
398
- r && N(e);
399
- }
400
- };
401
- }
402
- function st(t) {
403
- let e, s, o = (
404
- /*isDataLoaded*/
405
- t[12] && ge(t)
406
- ), r = (
407
- /*errorMessage*/
408
- t[10] && Me(t)
409
- );
410
- return {
411
- c() {
412
- o && o.c(), e = T(), r && r.c(), s = be();
413
- },
414
- m(i, l) {
415
- o && o.m(i, l), O(i, e, l), r && r.m(i, l), O(i, s, l);
416
- },
417
- p(i, l) {
418
- /*isDataLoaded*/
419
- i[12] ? o ? o.p(i, l) : (o = ge(i), o.c(), o.m(e.parentNode, e)) : o && (o.d(1), o = null), /*errorMessage*/
420
- i[10] ? r ? r.p(i, l) : (r = Me(i), r.c(), r.m(s.parentNode, s)) : r && (r.d(1), r = null);
421
- },
422
- i: re,
423
- o: re,
424
- d(i) {
425
- i && (N(e), N(s)), o && o.d(i), r && r.d(i);
426
- }
427
- };
428
- }
429
- const ot = "PaymentPromotion", nt = () => {
430
- };
431
- function it(t, e, s) {
432
- let o, r;
433
- le(t, Ke, (n) => s(14, o = n)), le(t, de, (n) => s(37, r = n)), me.extend(Ze);
434
- let { lang: i = "en" } = e, { local: l = "en-US" } = e, { endpoint: d } = e, { paymentsession: u } = e, { playersession: m } = e, { customerid: a } = e, { assetsurl: y } = e, { currency: H } = e, { numberofmethodsshown: k } = e, { translationurl: v = "" } = e, { mbsource: D } = e, { clientstyling: U } = e, { clientstylingurl: R } = e, { currencydecimals: W = "2" } = e, { currencysymbol: Y = "" } = e, { currencyposition: B = "" } = e, _, G = window.navigator.userAgent, x = [], E, A = "", S = [], j = [], X = "", F, z = !0, w = !1, ee = !1;
435
- var Z;
436
- (function(n) {
437
- n.PlayerSessionIsNotValid = "PlayerSessionIsNotValid", n.Success = "Success", n.JwtTokenError = "JwtTokenError";
438
- })(Z || (Z = {}));
439
- const ve = () => {
440
- let n = v;
441
- if (n)
442
- return fetch(n).then((h) => h.json()).then((h) => {
443
- Object.keys(h).forEach((I) => {
444
- ue(I, h[I]);
445
- });
446
- }).catch((h) => {
447
- console.log(h);
448
- });
449
- };
450
- Object.keys(he).forEach((n) => {
451
- ue(n, he[n]);
452
- });
453
- const _e = () => {
454
- Qe(i);
455
- }, Le = () => {
456
- r && te();
457
- }, te = () => {
458
- window.postMessage({ type: "DataLoading", isDataLoaded: w });
459
- const n = new URL(`${d}/v2/player/${a}/payment/GetPaymentMetadata`), h = new Headers();
460
- h.append("accept", "application/json"), h.append("Content-Type", "application/json"), h.append("X-Client-Request-Timestamp", me.utc().format("YYYY-MM-DD HH:mm:ss.SSS")), h.append("X-SessionId", `${m}`), h.append("X-Payment-Session-Token", `${u || r}`);
461
- const I = {
462
- method: "POST",
463
- headers: h,
464
- mode: "cors",
465
- body: JSON.stringify({
466
- Currency: H,
467
- Tags: { UserAgent: window.navigator.userAgent }
468
- })
469
- };
470
- fetch(n, I).then((f) => {
471
- const M = f.headers.get("X-Payment-Session-Token");
472
- return M && de.set(M), f.json();
473
- }).then((f) => {
474
- if (f.error) {
475
- s(10, X = f.error);
476
- return;
477
- }
478
- if (f.ResponseCode !== Z.Success) {
479
- F = f.ResponseCode, Ce();
480
- return;
481
- }
482
- x = f.PaymentMethods?.Ordering ? ke(f) : xe(f), window.postMessage(
483
- {
484
- type: "PromotedPaymentMethods",
485
- promotedPaymentMethods: j
486
- },
487
- window.location.href
488
- ), s(8, A = k && +k > 0 && x.length > +k ? o("showAll") : ""), s(9, S = A ? x.slice(0, +k) : x), s(13, ee = !S.length), window.postMessage(
489
- {
490
- type: "StartSessionCountdown",
491
- paymentMethodName: x[0].Name
492
- },
493
- window.location.href
494
- ), window.postMessage({ type: "DataLoading", isDataLoaded: w });
495
- }).finally(() => {
496
- s(12, w = !0), window.postMessage({ type: "DataLoading", isDataLoaded: w });
497
- });
498
- }, ke = (n) => {
499
- const h = [];
500
- return j = [], n.PaymentMethods.Ordering.DefaultPaymentMethodsOrder.forEach((I) => {
501
- const f = n.PaymentMethods.PaymentMethods.find((M) => M.Name === I);
502
- if (f) {
503
- const M = f?.Logos.find((Q) => Q.LogoType === "Desktop") || {}, J = f?.Logos.find((Q) => Q.LogoType === "Mobile") || {}, q = z ? M : J;
504
- f.isMethodPromoted = ne(f.Tags), f.LogoUrl = q.LogoUrl ? `https:${q.LogoUrl}` : "", f.isMethodPromoted && j.push(f), h.push(f);
505
- }
506
- }), h;
507
- }, xe = (n) => {
508
- const h = n.PaymentMethods.PaymentMethods.map((M) => ({
509
- ...M,
510
- isMethodPromoted: ne(M.Tags),
511
- LogoUrl: M.Logos && M.Logos.length && M.Logos[0].LogoUrl ? `https:${M.Logos[0].LogoUrl}` : ""
512
- })), [I, f] = h.reduce(
513
- ([M, J], q) => (q && q.isMethodPromoted ? M.push(q) : J.promo(q), [M, J]),
514
- [[], []]
515
- );
516
- return j = I, f;
517
- }, se = (n) => {
518
- s(7, E = n.Name), window.postMessage({ type: "SelectPayMeth", details: n }, window.location.href), dispatchEvent(new CustomEvent(
519
- "selectPayMeth",
520
- {
521
- detail: n,
522
- bubbles: !0,
523
- cancelable: !0,
524
- composed: !0
525
- }
526
- ));
527
- }, Ce = () => {
528
- window.postMessage(
529
- {
530
- type: "ErrorResponseCode",
531
- errorResponseCode: F
532
- },
533
- window.location.href
534
- );
535
- }, Se = () => {
536
- s(11, z = !Ye(G));
537
- }, oe = () => {
538
- S == x ? Ee() : Pe();
539
- }, Pe = () => {
540
- s(9, S = x), s(8, A = o("showLess"));
541
- }, Ee = () => {
542
- s(9, S = x.slice(0, +k)), E && !S.find((n) => n.Name === E) && S.splice(0, 0, x.find((n) => n.Name === E)), s(8, A = o("showAll"));
543
- }, ne = (n) => n && n.split(",").some((h) => h === ot), ie = (n) => {
544
- const { data: { type: h } = {} } = n || {};
545
- switch (h) {
546
- case "PrecisionCurrenciesMap": {
547
- n.data.payload;
548
- break;
549
- }
550
- }
551
- };
552
- He(() => (Se(), Re(l, Y, B, W), window.postMessage({ type: "CashierMethodsListReady" }, window.location.href), window.addEventListener("message", ie), () => {
553
- window.removeEventListener("message", ie);
554
- }));
555
- const Te = (n) => se(n), De = () => oe();
556
- function Ae(n) {
557
- qe[n ? "unshift" : "push"](() => {
558
- _ = n, s(6, _);
559
- });
560
- }
561
- return t.$$set = (n) => {
562
- "lang" in n && s(0, i = n.lang), "local" in n && s(17, l = n.local), "endpoint" in n && s(18, d = n.endpoint), "paymentsession" in n && s(19, u = n.paymentsession), "playersession" in n && s(20, m = n.playersession), "customerid" in n && s(21, a = n.customerid), "assetsurl" in n && s(1, y = n.assetsurl), "currency" in n && s(22, H = n.currency), "numberofmethodsshown" in n && s(23, k = n.numberofmethodsshown), "translationurl" in n && s(2, v = n.translationurl), "mbsource" in n && s(3, D = n.mbsource), "clientstyling" in n && s(4, U = n.clientstyling), "clientstylingurl" in n && s(5, R = n.clientstylingurl), "currencydecimals" in n && s(24, W = n.currencydecimals), "currencysymbol" in n && s(25, Y = n.currencysymbol), "currencyposition" in n && s(26, B = n.currencyposition);
563
- }, t.$$.update = () => {
564
- t.$$.dirty[0] & /*endpoint, customerid, currency*/
565
- 6553600 && d && a && H && te(), t.$$.dirty[0] & /*endpoint, paymentsession, customerid*/
566
- 2883584 && d && !u && a && Le(), t.$$.dirty[0] & /*lang*/
567
- 1 && i && _e(), t.$$.dirty[0] & /*clientstyling, customStylingContainer*/
568
- 80 && U && _ && Xe(_, U), t.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
569
- 96 && R && _ && Fe(_, R), t.$$.dirty[0] & /*mbsource, customStylingContainer*/
570
- 72 && D && _ && Je(_, `${D}.Style`), t.$$.dirty[0] & /*lang, translationurl*/
571
- 5 && i && v && ve(), t.$$.dirty[0] & /*currencydecimals*/
572
- 16777216;
573
- }, [
574
- i,
575
- y,
576
- v,
577
- D,
578
- U,
579
- R,
580
- _,
581
- E,
582
- A,
583
- S,
584
- X,
585
- z,
586
- w,
587
- ee,
588
- o,
589
- se,
590
- oe,
591
- l,
592
- d,
593
- u,
594
- m,
595
- a,
596
- H,
597
- k,
598
- W,
599
- Y,
600
- B,
601
- Te,
602
- De,
603
- Ae
604
- ];
605
- }
606
- class rt extends Ue {
607
- constructor(e) {
608
- super(), We(
609
- this,
610
- e,
611
- it,
612
- st,
613
- je,
614
- {
615
- lang: 0,
616
- local: 17,
617
- endpoint: 18,
618
- paymentsession: 19,
619
- playersession: 20,
620
- customerid: 21,
621
- assetsurl: 1,
622
- currency: 22,
623
- numberofmethodsshown: 23,
624
- translationurl: 2,
625
- mbsource: 3,
626
- clientstyling: 4,
627
- clientstylingurl: 5,
628
- currencydecimals: 24,
629
- currencysymbol: 25,
630
- currencyposition: 26
631
- },
632
- $e,
633
- [-1, -1]
634
- );
635
- }
636
- get lang() {
637
- return this.$$.ctx[0];
638
- }
639
- set lang(e) {
640
- this.$$set({ lang: e }), b();
641
- }
642
- get local() {
643
- return this.$$.ctx[17];
644
- }
645
- set local(e) {
646
- this.$$set({ local: e }), b();
647
- }
648
- get endpoint() {
649
- return this.$$.ctx[18];
650
- }
651
- set endpoint(e) {
652
- this.$$set({ endpoint: e }), b();
653
- }
654
- get paymentsession() {
655
- return this.$$.ctx[19];
656
- }
657
- set paymentsession(e) {
658
- this.$$set({ paymentsession: e }), b();
659
- }
660
- get playersession() {
661
- return this.$$.ctx[20];
662
- }
663
- set playersession(e) {
664
- this.$$set({ playersession: e }), b();
665
- }
666
- get customerid() {
667
- return this.$$.ctx[21];
668
- }
669
- set customerid(e) {
670
- this.$$set({ customerid: e }), b();
671
- }
672
- get assetsurl() {
673
- return this.$$.ctx[1];
674
- }
675
- set assetsurl(e) {
676
- this.$$set({ assetsurl: e }), b();
677
- }
678
- get currency() {
679
- return this.$$.ctx[22];
680
- }
681
- set currency(e) {
682
- this.$$set({ currency: e }), b();
683
- }
684
- get numberofmethodsshown() {
685
- return this.$$.ctx[23];
686
- }
687
- set numberofmethodsshown(e) {
688
- this.$$set({ numberofmethodsshown: e }), b();
689
- }
690
- get translationurl() {
691
- return this.$$.ctx[2];
692
- }
693
- set translationurl(e) {
694
- this.$$set({ translationurl: e }), b();
695
- }
696
- get mbsource() {
697
- return this.$$.ctx[3];
698
- }
699
- set mbsource(e) {
700
- this.$$set({ mbsource: e }), b();
701
- }
702
- get clientstyling() {
703
- return this.$$.ctx[4];
704
- }
705
- set clientstyling(e) {
706
- this.$$set({ clientstyling: e }), b();
707
- }
708
- get clientstylingurl() {
709
- return this.$$.ctx[5];
710
- }
711
- set clientstylingurl(e) {
712
- this.$$set({ clientstylingurl: e }), b();
713
- }
714
- get currencydecimals() {
715
- return this.$$.ctx[24];
716
- }
717
- set currencydecimals(e) {
718
- this.$$set({ currencydecimals: e }), b();
719
- }
720
- get currencysymbol() {
721
- return this.$$.ctx[25];
722
- }
723
- set currencysymbol(e) {
724
- this.$$set({ currencysymbol: e }), b();
725
- }
726
- get currencyposition() {
727
- return this.$$.ctx[26];
728
- }
729
- set currencyposition(e) {
730
- this.$$set({ currencyposition: e }), b();
731
- }
732
- }
733
- Ve(rt, { lang: {}, local: {}, endpoint: {}, paymentsession: {}, playersession: {}, customerid: {}, assetsurl: {}, currency: {}, numberofmethodsshown: {}, translationurl: {}, mbsource: {}, clientstyling: {}, clientstylingurl: {}, currencydecimals: {}, currencysymbol: {}, currencyposition: {} }, [], [], !0);
734
- export {
735
- rt as default
736
- };