@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,748 +0,0 @@
1
- var We = Object.defineProperty, je = Object.defineProperties;
2
- var Ie = Object.getOwnPropertyDescriptors;
3
- var re = Object.getOwnPropertySymbols;
4
- var He = Object.prototype.hasOwnProperty, Re = Object.prototype.propertyIsEnumerable;
5
- var le = (t, e, s) => e in t ? We(t, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : t[e] = s, ae = (t, e) => {
6
- for (var s in e || (e = {}))
7
- He.call(e, s) && le(t, s, e[s]);
8
- if (re)
9
- for (var s of re(e))
10
- Re.call(e, s) && le(t, s, e[s]);
11
- return t;
12
- }, ce = (t, e) => je(t, Ie(e));
13
- import { a as Ye, i as qe, $ as Be, S as Ge, b as Xe, s as Fe, f as b, c as Je, G as me, e as N, k as O, n as T, r as ke, p as de, q as Ve, O as Ke, l as c, m as p, o as g, v as P, A as L, w as C, N as Ze, y as Qe, x as $, W as K, Y as ue, a4 as $e, U as V, a0 as et, z as he, B as tt, C as st, D as ot, E as nt, F as it } from "./CashierCarousel-BTxUaLd7.js";
14
- import { d as fe, u as rt, x as ge } from "./CashierMethodDetails-rTqmsVpv.js";
15
- function pe(t, e) {
16
- Ye(t, e);
17
- }
18
- function lt(t) {
19
- qe({
20
- fallbackLocale: "en"
21
- }), Be.set(t);
22
- }
23
- const ye = {
24
- en: {
25
- generalMin: "Min",
26
- generalMax: "Max",
27
- showAll: "SHOW ALL",
28
- showLess: "SHOW LESS",
29
- error: "Error",
30
- noPaymentMethods: "No payment methods available",
31
- promoLabel: "Recommended",
32
- otherMethodsTitle: "All Methods",
33
- otherMethodsDescription: "Discover our incredible selection of unique products that you won't want to miss!"
34
- },
35
- uk: {
36
- generalMin: "Мін",
37
- generalMax: "Макс"
38
- },
39
- hr: {
40
- generalMin: "Minimalno",
41
- generalMax: "Maksimalno",
42
- showAll: "Prikaži sve",
43
- showLess: "Prikaži manje"
44
- },
45
- tr: {
46
- generalMin: "Min",
47
- generalMax: "Maks",
48
- showAll: "HEPSİNİ GÖSTER",
49
- showLess: "DAHA AZ GÖSTER",
50
- error: "Hata",
51
- noPaymentMethods: "Hiçbir ödeme yöntemi mevcut değil",
52
- promoLabel: "Favori",
53
- otherMethodsTitle: "Tüm Yöntemler",
54
- otherMethodsDescription: "Kaçırmak istemeyeceğiniz benzersiz ürünlerimizden oluşan inanılmaz seçkimizi keşfedin!"
55
- },
56
- "en-us": {
57
- generalMin: "Min",
58
- generalMax: "Max",
59
- showAll: "SHOW ALL",
60
- showLess: "SHOW LESS"
61
- }
62
- };
63
- function at(t) {
64
- Je(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}}');
65
- }
66
- function we(t, e, s) {
67
- const o = t.slice();
68
- return o[52] = e[s], o[54] = s, o;
69
- }
70
- function Me(t) {
71
- let e, s, o, r, i = !/*noPaymentMethodsAvailable*/
72
- t[13] && be(t);
73
- function l(a, y) {
74
- return (
75
- /*noPaymentMethodsAvailable*/
76
- a[13] && /*isDataLoaded*/
77
- a[12] ? mt : ct
78
- );
79
- }
80
- let d = l(t), u = d(t), m = (
81
- /*methodsButtonToggleText*/
82
- t[8] && _e(t)
83
- );
84
- return {
85
- c() {
86
- 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");
87
- },
88
- m(a, y) {
89
- 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);
90
- },
91
- p(a, y) {
92
- /*noPaymentMethodsAvailable*/
93
- a[13] ? i && (i.d(1), i = null) : i ? i.p(a, y) : (i = be(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*/
94
- a[8] ? m ? m.p(a, y) : (m = _e(a), m.c(), m.m(e, null)) : m && (m.d(1), m = null);
95
- },
96
- d(a) {
97
- a && N(e), i && i.d(), u.d(), m && m.d(), t[29](null);
98
- }
99
- };
100
- }
101
- function be(t) {
102
- let e, s, o = (
103
- /*$_*/
104
- t[14]("otherMethodsTitle") + ""
105
- ), r, i, l, d = (
106
- /*$_*/
107
- t[14]("otherMethodsDescription") + ""
108
- ), u;
109
- return {
110
- c() {
111
- e = p("div"), s = p("h3"), r = C(o), i = T(), l = p("p"), u = C(d), g(e, "class", "MethodsListDescription");
112
- },
113
- m(m, a) {
114
- O(m, e, a), c(e, s), c(s, r), c(e, i), c(e, l), c(l, u);
115
- },
116
- p(m, a) {
117
- a[0] & /*$_*/
118
- 16384 && o !== (o = /*$_*/
119
- m[14]("otherMethodsTitle") + "") && P(r, o), a[0] & /*$_*/
120
- 16384 && d !== (d = /*$_*/
121
- m[14]("otherMethodsDescription") + "") && P(u, d);
122
- },
123
- d(m) {
124
- m && N(e);
125
- }
126
- };
127
- }
128
- function ct(t) {
129
- let e, s = ue(
130
- /*paymentMethodsToShow*/
131
- t[9]
132
- ), o = [];
133
- for (let r = 0; r < s.length; r += 1)
134
- o[r] = ve(we(t, s, r));
135
- return {
136
- c() {
137
- for (let r = 0; r < o.length; r += 1)
138
- o[r].c();
139
- e = ke();
140
- },
141
- m(r, i) {
142
- for (let l = 0; l < o.length; l += 1)
143
- o[l] && o[l].m(r, i);
144
- O(r, e, i);
145
- },
146
- p(r, i) {
147
- if (i[0] & /*selectedPaymentMethod, paymentMethodsToShow, selectPayMeth, $_*/
148
- 49792) {
149
- s = ue(
150
- /*paymentMethodsToShow*/
151
- r[9]
152
- );
153
- let l;
154
- for (l = 0; l < s.length; l += 1) {
155
- const d = we(r, s, l);
156
- o[l] ? o[l].p(d, i) : (o[l] = ve(d), o[l].c(), o[l].m(e.parentNode, e));
157
- }
158
- for (; l < o.length; l += 1)
159
- o[l].d(1);
160
- o.length = s.length;
161
- }
162
- },
163
- d(r) {
164
- r && N(e), $e(o, r);
165
- }
166
- };
167
- }
168
- function mt(t) {
169
- let e, s, o, r = (
170
- /*$_*/
171
- t[14]("error") + ""
172
- ), i, l, d, u = (
173
- /*$_*/
174
- t[14]("noPaymentMethods") + ""
175
- ), m;
176
- return {
177
- c() {
178
- 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(
179
- e,
180
- "EmptyContentMessageDesktop",
181
- /*desktopView*/
182
- t[11]
183
- );
184
- },
185
- m(a, y) {
186
- O(a, e, y), c(e, s), c(s, o), c(o, i), c(s, l), c(s, d), c(d, m);
187
- },
188
- p(a, y) {
189
- y[0] & /*$_*/
190
- 16384 && r !== (r = /*$_*/
191
- a[14]("error") + "") && P(i, r), y[0] & /*$_*/
192
- 16384 && u !== (u = /*$_*/
193
- a[14]("noPaymentMethods") + "") && P(m, u), y[0] & /*desktopView*/
194
- 2048 && K(
195
- e,
196
- "EmptyContentMessageDesktop",
197
- /*desktopView*/
198
- a[11]
199
- );
200
- },
201
- d(a) {
202
- a && N(e);
203
- }
204
- };
205
- }
206
- function ve(t) {
207
- let e, s, o, r, i, l, d, u, m, a = (
208
- /*payMeth*/
209
- (t[52].Label || /*payMeth*/
210
- t[52].Name) + ""
211
- ), y, H, k, v, A = (
212
- /*$_*/
213
- t[14]("generalMin") + ""
214
- ), U, R, W = V(
215
- /*payMeth*/
216
- t[52].DisplayCurrency.MinAmountLimit,
217
- /*payMeth*/
218
- t[52].DisplayCurrency.Name
219
- ) + "", Y, B, _ = (
220
- /*$_*/
221
- t[14]("generalMax") + ""
222
- ), G, x, E = V(
223
- /*payMeth*/
224
- t[52].DisplayCurrency.MaxAmountLimit,
225
- /*payMeth*/
226
- t[52].DisplayCurrency.Name
227
- ) + "", D, S, j, X;
228
- function F() {
229
- return (
230
- /*click_handler*/
231
- t[27](
232
- /*payMeth*/
233
- t[52]
234
- )
235
- );
236
- }
237
- return {
238
- c() {
239
- 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(A), R = T(), Y = C(W), B = C(" / "), G = C(_), x = T(), D = C(E), S = T(), he(o.src, r = /*payMeth*/
240
- t[52].LogoUrl) || g(o, "src", r), g(o, "alt", i = /*payMeth*/
241
- 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(
242
- e,
243
- "checked",
244
- /*selectedPaymentMethod*/
245
- t[7] === /*payMeth*/
246
- t[52].Name
247
- );
248
- },
249
- m(z, M) {
250
- O(z, e, M), 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, D), c(e, S), j || (X = [
251
- $(e, "click", F),
252
- $(e, "keyup", ht)
253
- ], j = !0);
254
- },
255
- p(z, M) {
256
- t = z, M[0] & /*paymentMethodsToShow*/
257
- 512 && !he(o.src, r = /*payMeth*/
258
- t[52].LogoUrl) && g(o, "src", r), M[0] & /*paymentMethodsToShow*/
259
- 512 && i !== (i = /*payMeth*/
260
- t[52].Label) && g(o, "alt", i), M[0] & /*paymentMethodsToShow*/
261
- 512 && a !== (a = /*payMeth*/
262
- (t[52].Label || /*payMeth*/
263
- t[52].Name) + "") && P(y, a), M[0] & /*$_*/
264
- 16384 && A !== (A = /*$_*/
265
- t[14]("generalMin") + "") && P(U, A), M[0] & /*paymentMethodsToShow*/
266
- 512 && W !== (W = V(
267
- /*payMeth*/
268
- t[52].DisplayCurrency.MinAmountLimit,
269
- /*payMeth*/
270
- t[52].DisplayCurrency.Name
271
- ) + "") && P(Y, W), M[0] & /*$_*/
272
- 16384 && _ !== (_ = /*$_*/
273
- t[14]("generalMax") + "") && P(G, _), M[0] & /*paymentMethodsToShow*/
274
- 512 && E !== (E = V(
275
- /*payMeth*/
276
- t[52].DisplayCurrency.MaxAmountLimit,
277
- /*payMeth*/
278
- t[52].DisplayCurrency.Name
279
- ) + "") && P(D, E), M[0] & /*selectedPaymentMethod, paymentMethodsToShow*/
280
- 640 && K(
281
- e,
282
- "checked",
283
- /*selectedPaymentMethod*/
284
- t[7] === /*payMeth*/
285
- t[52].Name
286
- );
287
- },
288
- d(z) {
289
- z && N(e), j = !1, et(X);
290
- }
291
- };
292
- }
293
- function _e(t) {
294
- let e, s, o, r;
295
- return {
296
- c() {
297
- e = p("div"), s = C(
298
- /*methodsButtonToggleText*/
299
- t[8]
300
- ), g(e, "class", "ShowAllButton");
301
- },
302
- m(i, l) {
303
- O(i, e, l), c(e, s), o || (r = $(
304
- e,
305
- "click",
306
- /*click_handler_1*/
307
- t[28]
308
- ), o = !0);
309
- },
310
- p(i, l) {
311
- l[0] & /*methodsButtonToggleText*/
312
- 256 && P(
313
- s,
314
- /*methodsButtonToggleText*/
315
- i[8]
316
- );
317
- },
318
- d(i) {
319
- i && N(e), o = !1, r();
320
- }
321
- };
322
- }
323
- function Le(t) {
324
- let e, s, o;
325
- return {
326
- c() {
327
- e = p("cashier-error"), s = p("span"), o = C(
328
- /*errorMessage*/
329
- t[10]
330
- ), g(s, "class", "ErrorMessage"), g(s, "slot", "text"), L(
331
- e,
332
- "lang",
333
- /*lang*/
334
- t[0]
335
- ), L(
336
- e,
337
- "assetsurl",
338
- /*assetsurl*/
339
- t[1]
340
- ), L(
341
- e,
342
- "translationurl",
343
- /*translationurl*/
344
- t[2]
345
- ), L(
346
- e,
347
- "clientstylingurl",
348
- /*clientstylingurl*/
349
- t[5]
350
- ), L(
351
- e,
352
- "clientstyling",
353
- /*clientstyling*/
354
- t[4]
355
- ), L(
356
- e,
357
- "mbsource",
358
- /*mbsource*/
359
- t[3]
360
- ), L(e, "hidebuttons", "true");
361
- },
362
- m(r, i) {
363
- O(r, e, i), c(e, s), c(s, o);
364
- },
365
- p(r, i) {
366
- i[0] & /*errorMessage*/
367
- 1024 && P(
368
- o,
369
- /*errorMessage*/
370
- r[10]
371
- ), i[0] & /*lang*/
372
- 1 && L(
373
- e,
374
- "lang",
375
- /*lang*/
376
- r[0]
377
- ), i[0] & /*assetsurl*/
378
- 2 && L(
379
- e,
380
- "assetsurl",
381
- /*assetsurl*/
382
- r[1]
383
- ), i[0] & /*translationurl*/
384
- 4 && L(
385
- e,
386
- "translationurl",
387
- /*translationurl*/
388
- r[2]
389
- ), i[0] & /*clientstylingurl*/
390
- 32 && L(
391
- e,
392
- "clientstylingurl",
393
- /*clientstylingurl*/
394
- r[5]
395
- ), i[0] & /*clientstyling*/
396
- 16 && L(
397
- e,
398
- "clientstyling",
399
- /*clientstyling*/
400
- r[4]
401
- ), i[0] & /*mbsource*/
402
- 8 && L(
403
- e,
404
- "mbsource",
405
- /*mbsource*/
406
- r[3]
407
- );
408
- },
409
- d(r) {
410
- r && N(e);
411
- }
412
- };
413
- }
414
- function dt(t) {
415
- let e, s, o = (
416
- /*isDataLoaded*/
417
- t[12] && Me(t)
418
- ), r = (
419
- /*errorMessage*/
420
- t[10] && Le(t)
421
- );
422
- return {
423
- c() {
424
- o && o.c(), e = T(), r && r.c(), s = ke();
425
- },
426
- m(i, l) {
427
- o && o.m(i, l), O(i, e, l), r && r.m(i, l), O(i, s, l);
428
- },
429
- p(i, l) {
430
- /*isDataLoaded*/
431
- i[12] ? o ? o.p(i, l) : (o = Me(i), o.c(), o.m(e.parentNode, e)) : o && (o.d(1), o = null), /*errorMessage*/
432
- i[10] ? r ? r.p(i, l) : (r = Le(i), r.c(), r.m(s.parentNode, s)) : r && (r.d(1), r = null);
433
- },
434
- i: me,
435
- o: me,
436
- d(i) {
437
- i && (N(e), N(s)), o && o.d(i), r && r.d(i);
438
- }
439
- };
440
- }
441
- const ut = "PaymentPromotion", ht = () => {
442
- };
443
- function ft(t, e, s) {
444
- let o, r;
445
- de(t, it, (n) => s(14, o = n)), de(t, ge, (n) => s(37, r = n)), fe.extend(rt);
446
- 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: A } = e, { clientstyling: U } = e, { clientstylingurl: R } = e, { currencydecimals: W = "2" } = e, { currencysymbol: Y = "" } = e, { currencyposition: B = "" } = e, _, G = window.navigator.userAgent, x = [], E, D = "", S = [], j = [], X = "", F, z = !0, M = !1, ee = !1;
447
- var Z;
448
- (function(n) {
449
- n.PlayerSessionIsNotValid = "PlayerSessionIsNotValid", n.Success = "Success", n.JwtTokenError = "JwtTokenError";
450
- })(Z || (Z = {}));
451
- const xe = () => {
452
- let n = v;
453
- if (n)
454
- return fetch(n).then((f) => f.json()).then((f) => {
455
- Object.keys(f).forEach((I) => {
456
- pe(I, f[I]);
457
- });
458
- }).catch((f) => {
459
- console.log(f);
460
- });
461
- };
462
- Object.keys(ye).forEach((n) => {
463
- pe(n, ye[n]);
464
- });
465
- const Ce = () => {
466
- lt(i);
467
- }, Se = () => {
468
- r && te();
469
- }, te = () => {
470
- window.postMessage({ type: "DataLoading", isDataLoaded: M });
471
- const n = new URL(`${d}/v2/player/${a}/payment/GetPaymentMetadata`), f = new Headers();
472
- f.append("accept", "application/json"), f.append("Content-Type", "application/json"), f.append("X-Client-Request-Timestamp", fe.utc().format("YYYY-MM-DD HH:mm:ss.SSS")), f.append("X-SessionId", `${m}`), f.append("X-Payment-Session-Token", `${u || r}`);
473
- const I = {
474
- method: "POST",
475
- headers: f,
476
- mode: "cors",
477
- body: JSON.stringify({
478
- Currency: H,
479
- Tags: { UserAgent: window.navigator.userAgent }
480
- })
481
- };
482
- fetch(n, I).then((h) => {
483
- const w = h.headers.get("X-Payment-Session-Token");
484
- return w && ge.set(w), h.json();
485
- }).then((h) => {
486
- var w;
487
- if (h.error) {
488
- s(10, X = h.error);
489
- return;
490
- }
491
- if (h.ResponseCode !== Z.Success) {
492
- F = h.ResponseCode, Te();
493
- return;
494
- }
495
- x = (w = h.PaymentMethods) != null && w.Ordering ? Pe(h) : Ee(h), window.postMessage(
496
- {
497
- type: "PromotedPaymentMethods",
498
- promotedPaymentMethods: j
499
- },
500
- window.location.href
501
- ), s(8, D = k && +k > 0 && x.length > +k ? o("showAll") : ""), s(9, S = D ? x.slice(0, +k) : x), s(13, ee = !S.length), window.postMessage(
502
- {
503
- type: "StartSessionCountdown",
504
- paymentMethodName: x[0].Name
505
- },
506
- window.location.href
507
- ), window.postMessage({ type: "DataLoading", isDataLoaded: M });
508
- }).finally(() => {
509
- s(12, M = !0), window.postMessage({ type: "DataLoading", isDataLoaded: M });
510
- });
511
- }, Pe = (n) => {
512
- const f = [];
513
- return j = [], n.PaymentMethods.Ordering.DefaultPaymentMethodsOrder.forEach((I) => {
514
- const h = n.PaymentMethods.PaymentMethods.find((w) => w.Name === I);
515
- if (h) {
516
- const w = (h == null ? void 0 : h.Logos.find((Q) => Q.LogoType === "Desktop")) || {}, J = (h == null ? void 0 : h.Logos.find((Q) => Q.LogoType === "Mobile")) || {}, q = z ? w : J;
517
- h.isMethodPromoted = ne(h.Tags), h.LogoUrl = q.LogoUrl ? `https:${q.LogoUrl}` : "", h.isMethodPromoted && j.push(h), f.push(h);
518
- }
519
- }), f;
520
- }, Ee = (n) => {
521
- const f = n.PaymentMethods.PaymentMethods.map((w) => ce(ae({}, w), {
522
- isMethodPromoted: ne(w.Tags),
523
- LogoUrl: w.Logos && w.Logos.length && w.Logos[0].LogoUrl ? `https:${w.Logos[0].LogoUrl}` : ""
524
- })), [I, h] = f.reduce(
525
- ([w, J], q) => (q && q.isMethodPromoted ? w.push(q) : J.promo(q), [w, J]),
526
- [[], []]
527
- );
528
- return j = I, h;
529
- }, se = (n) => {
530
- s(7, E = n.Name), window.postMessage({ type: "SelectPayMeth", details: n }, window.location.href), dispatchEvent(new CustomEvent(
531
- "selectPayMeth",
532
- {
533
- detail: n,
534
- bubbles: !0,
535
- cancelable: !0,
536
- composed: !0
537
- }
538
- ));
539
- }, Te = () => {
540
- window.postMessage(
541
- {
542
- type: "ErrorResponseCode",
543
- errorResponseCode: F
544
- },
545
- window.location.href
546
- );
547
- }, Ae = () => {
548
- s(11, z = !Ze(G));
549
- }, oe = () => {
550
- S == x ? ze() : De();
551
- }, De = () => {
552
- s(9, S = x), s(8, D = o("showLess"));
553
- }, ze = () => {
554
- 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, D = o("showAll"));
555
- }, ne = (n) => n && n.split(",").some((f) => f === ut), ie = (n) => {
556
- const { data: { type: f } = {} } = n || {};
557
- switch (f) {
558
- case "PrecisionCurrenciesMap": {
559
- n.data.payload;
560
- break;
561
- }
562
- }
563
- };
564
- Ve(() => (Ae(), Ke(l, Y, B, W), window.postMessage({ type: "CashierMethodsListReady" }, window.location.href), window.addEventListener("message", ie), () => {
565
- window.removeEventListener("message", ie);
566
- }));
567
- const Ne = (n) => se(n), Oe = () => oe();
568
- function Ue(n) {
569
- Qe[n ? "unshift" : "push"](() => {
570
- _ = n, s(6, _);
571
- });
572
- }
573
- return t.$$set = (n) => {
574
- "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, A = 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);
575
- }, t.$$.update = () => {
576
- t.$$.dirty[0] & /*endpoint, customerid, currency*/
577
- 6553600 && d && a && H && te(), t.$$.dirty[0] & /*endpoint, paymentsession, customerid*/
578
- 2883584 && d && !u && a && Se(), t.$$.dirty[0] & /*lang*/
579
- 1 && i && Ce(), t.$$.dirty[0] & /*clientstyling, customStylingContainer*/
580
- 80 && U && _ && tt(_, U), t.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
581
- 96 && R && _ && st(_, R), t.$$.dirty[0] & /*mbsource, customStylingContainer*/
582
- 72 && A && _ && ot(_, `${A}.Style`), t.$$.dirty[0] & /*lang, translationurl*/
583
- 5 && i && v && xe(), t.$$.dirty[0] & /*currencydecimals*/
584
- 16777216;
585
- }, [
586
- i,
587
- y,
588
- v,
589
- A,
590
- U,
591
- R,
592
- _,
593
- E,
594
- D,
595
- S,
596
- X,
597
- z,
598
- M,
599
- ee,
600
- o,
601
- se,
602
- oe,
603
- l,
604
- d,
605
- u,
606
- m,
607
- a,
608
- H,
609
- k,
610
- W,
611
- Y,
612
- B,
613
- Ne,
614
- Oe,
615
- Ue
616
- ];
617
- }
618
- class gt extends Ge {
619
- constructor(e) {
620
- super(), Xe(
621
- this,
622
- e,
623
- ft,
624
- dt,
625
- Fe,
626
- {
627
- lang: 0,
628
- local: 17,
629
- endpoint: 18,
630
- paymentsession: 19,
631
- playersession: 20,
632
- customerid: 21,
633
- assetsurl: 1,
634
- currency: 22,
635
- numberofmethodsshown: 23,
636
- translationurl: 2,
637
- mbsource: 3,
638
- clientstyling: 4,
639
- clientstylingurl: 5,
640
- currencydecimals: 24,
641
- currencysymbol: 25,
642
- currencyposition: 26
643
- },
644
- at,
645
- [-1, -1]
646
- );
647
- }
648
- get lang() {
649
- return this.$$.ctx[0];
650
- }
651
- set lang(e) {
652
- this.$$set({ lang: e }), b();
653
- }
654
- get local() {
655
- return this.$$.ctx[17];
656
- }
657
- set local(e) {
658
- this.$$set({ local: e }), b();
659
- }
660
- get endpoint() {
661
- return this.$$.ctx[18];
662
- }
663
- set endpoint(e) {
664
- this.$$set({ endpoint: e }), b();
665
- }
666
- get paymentsession() {
667
- return this.$$.ctx[19];
668
- }
669
- set paymentsession(e) {
670
- this.$$set({ paymentsession: e }), b();
671
- }
672
- get playersession() {
673
- return this.$$.ctx[20];
674
- }
675
- set playersession(e) {
676
- this.$$set({ playersession: e }), b();
677
- }
678
- get customerid() {
679
- return this.$$.ctx[21];
680
- }
681
- set customerid(e) {
682
- this.$$set({ customerid: e }), b();
683
- }
684
- get assetsurl() {
685
- return this.$$.ctx[1];
686
- }
687
- set assetsurl(e) {
688
- this.$$set({ assetsurl: e }), b();
689
- }
690
- get currency() {
691
- return this.$$.ctx[22];
692
- }
693
- set currency(e) {
694
- this.$$set({ currency: e }), b();
695
- }
696
- get numberofmethodsshown() {
697
- return this.$$.ctx[23];
698
- }
699
- set numberofmethodsshown(e) {
700
- this.$$set({ numberofmethodsshown: e }), b();
701
- }
702
- get translationurl() {
703
- return this.$$.ctx[2];
704
- }
705
- set translationurl(e) {
706
- this.$$set({ translationurl: e }), b();
707
- }
708
- get mbsource() {
709
- return this.$$.ctx[3];
710
- }
711
- set mbsource(e) {
712
- this.$$set({ mbsource: e }), b();
713
- }
714
- get clientstyling() {
715
- return this.$$.ctx[4];
716
- }
717
- set clientstyling(e) {
718
- this.$$set({ clientstyling: e }), b();
719
- }
720
- get clientstylingurl() {
721
- return this.$$.ctx[5];
722
- }
723
- set clientstylingurl(e) {
724
- this.$$set({ clientstylingurl: e }), b();
725
- }
726
- get currencydecimals() {
727
- return this.$$.ctx[24];
728
- }
729
- set currencydecimals(e) {
730
- this.$$set({ currencydecimals: e }), b();
731
- }
732
- get currencysymbol() {
733
- return this.$$.ctx[25];
734
- }
735
- set currencysymbol(e) {
736
- this.$$set({ currencysymbol: e }), b();
737
- }
738
- get currencyposition() {
739
- return this.$$.ctx[26];
740
- }
741
- set currencyposition(e) {
742
- this.$$set({ currencyposition: e }), b();
743
- }
744
- }
745
- nt(gt, { lang: {}, local: {}, endpoint: {}, paymentsession: {}, playersession: {}, customerid: {}, assetsurl: {}, currency: {}, numberofmethodsshown: {}, translationurl: {}, mbsource: {}, clientstyling: {}, clientstylingurl: {}, currencydecimals: {}, currencysymbol: {}, currencyposition: {} }, [], [], !0);
746
- export {
747
- gt as default
748
- };