@everymatrix/cashier-page-nd 1.69.151 → 1.69.170

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 (67) hide show
  1. package/components/{CashierCarousel-DX_1kfHA.js → CashierCarousel-Cf2c1vPp.js} +1608 -1358
  2. package/components/{CashierCarousel-DuDjKitQ.js → CashierCarousel-CsnmOP94.js} +1673 -1422
  3. package/components/CashierCarousel-DHmjrgBC.cjs +23 -0
  4. package/components/{CashierError-Dj5pdnbH.js → CashierError-BDmChuIE.js} +1 -1
  5. package/components/{CashierError-DIzfHVwt.js → CashierError-BIiEXbdF.js} +1 -1
  6. package/components/{CashierError-BsqfacSj.cjs → CashierError-CLWqWwfU.cjs} +1 -1
  7. package/components/{CashierHeader-CY4-An7M.cjs → CashierHeader-CP7RROYr.cjs} +1 -1
  8. package/components/{CashierHeader-DaXYR76f.js → CashierHeader-Cecv5g56.js} +1 -1
  9. package/components/{CashierHeader-Dd8FU_0m.js → CashierHeader-Dd5b4-yJ.js} +1 -1
  10. package/components/{CashierIframeRedirect-ClbPIVvz.cjs → CashierIframeRedirect-BXrhvi-f.cjs} +1 -1
  11. package/components/{CashierIframeRedirect-5JrTRMGd.js → CashierIframeRedirect-DMYVav-v.js} +3 -3
  12. package/components/{CashierIframeRedirect-BEgb4xvK.js → CashierIframeRedirect-reE-yTgQ.js} +3 -3
  13. package/components/CashierMethodDetails-DMWm-2jm.js +9918 -0
  14. package/components/CashierMethodDetails-Dqye22rm.cjs +85 -0
  15. package/components/CashierMethodDetails-wpPiw7iF.js +9878 -0
  16. package/components/CashierMethodsList-3cUFLT6G.js +825 -0
  17. package/components/CashierMethodsList-Cu_kh22f.cjs +1 -0
  18. package/components/CashierMethodsList-DLD2m0bS.js +810 -0
  19. package/components/{CashierModal-DgwBIcQT.js → CashierModal-C-jze_SD.js} +97 -96
  20. package/components/CashierModal-DVeVHCTj.cjs +1 -0
  21. package/components/{CashierModal-1XZhW-QH.js → CashierModal-Dclaqxyx.js} +106 -105
  22. package/components/{CashierNotifications-C1skb8Vn.js → CashierNotifications-BVUb_REU.js} +1 -1
  23. package/components/{CashierNotifications-DVhKuaML.js → CashierNotifications-COlT367w.js} +1 -1
  24. package/components/{CashierNotifications-gVlDH9gi.cjs → CashierNotifications-DdrhkPqp.cjs} +1 -1
  25. package/components/CashierPage-BZrMKgWP.js +3848 -0
  26. package/components/CashierPage-CNxxSYGB.cjs +1 -0
  27. package/components/CashierPage-DXq4FlWN.js +3822 -0
  28. package/components/{CashierReceiptPage-dW6G8UgH.js → CashierReceiptPage-BDZFgJSl.js} +586 -572
  29. package/components/{CashierReceiptPage-rEA-raJj.js → CashierReceiptPage-aqMEl6Er.js} +613 -583
  30. package/components/CashierReceiptPage-fKiQGusu.cjs +26 -0
  31. package/components/{CashierSessionExpirationModal-Bbe2Jpvz.js → CashierSessionExpirationModal-BqgXO3EK.js} +40 -40
  32. package/components/{CashierSessionExpirationModal-CHK-f59-.cjs → CashierSessionExpirationModal-UM35srIk.cjs} +1 -1
  33. package/components/{CashierSessionExpirationModal-DDoD-Bbn.js → CashierSessionExpirationModal-lONAKt8s.js} +40 -40
  34. package/components/{CashierSpinner-BURxCyak.js → CashierSpinner-BQWOaYce.js} +1 -1
  35. package/components/{CashierSpinner-BHMYILka.cjs → CashierSpinner-D5McPkCt.cjs} +1 -1
  36. package/components/{CashierSpinner-DUpqDFsE.js → CashierSpinner-DZSuVNPM.js} +1 -1
  37. package/components/{CashierStepUp-BLXB3sLJ.cjs → CashierStepUp-DWd3cylJ.cjs} +1 -1
  38. package/components/{CashierStepUp-CaBwgsy_.js → CashierStepUp-DyfuU9cc.js} +1 -1
  39. package/components/{CashierStepUp-232UWyBa.js → CashierStepUp-sBUhsV5t.js} +1 -1
  40. package/components/{CashierTransactionHistory-BlfxmnQ4.js → CashierTransactionHistory-DG7eCAHQ.js} +106 -106
  41. package/components/{CashierTransactionHistory-MOjWYwaU.js → CashierTransactionHistory-EZ0xgsVJ.js} +95 -95
  42. package/components/{CashierTransactionHistory-CbVFavJI.cjs → CashierTransactionHistory-MUYg9ooO.cjs} +1 -1
  43. package/components/{CashierVerifications-7E1iKqlY.cjs → CashierVerifications-BbUQaFnO.cjs} +1 -1
  44. package/components/{CashierVerifications-CFpWClML.js → CashierVerifications-Cz6b5MUe.js} +16 -16
  45. package/components/{CashierVerifications-DCNYJqjo.js → CashierVerifications-kIOoUzVh.js} +13 -13
  46. package/components/{TxnStatusIcon-2fCCJ3vA.cjs → TxnStatusIcon-BhtPQm1B.cjs} +1 -1
  47. package/components/{TxnStatusIcon-BoQKsXYb.js → TxnStatusIcon-DMKCkAXd.js} +1 -1
  48. package/components/{TxnStatusIcon-CByIE77U.js → TxnStatusIcon-ty2g5_He.js} +1 -1
  49. package/components/{TxnTypeIcons-9fEDZE-r.js → TxnTypeIcons-B5CYl9NW.js} +1 -1
  50. package/components/{TxnTypeIcons-Be-sko7l.cjs → TxnTypeIcons-CyHXLkXz.cjs} +1 -1
  51. package/components/{TxnTypeIcons-Dol58W4_.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/CashierCarousel-CoOQIH2R.cjs +0 -23
  57. package/components/CashierMethodDetails-C_IE1JPV.js +0 -9656
  58. package/components/CashierMethodDetails-C_pwSAOD.cjs +0 -85
  59. package/components/CashierMethodDetails-Dmb35LVn.js +0 -9696
  60. package/components/CashierMethodsList-6iUrqPDI.js +0 -726
  61. package/components/CashierMethodsList-CJHTdfiB.cjs +0 -1
  62. package/components/CashierMethodsList-pNUYzgU6.js +0 -738
  63. package/components/CashierModal-DsYJUTP3.cjs +0 -1
  64. package/components/CashierPage-BGoNSnGO.js +0 -3281
  65. package/components/CashierPage-CZ3SgGIA.cjs +0 -1
  66. package/components/CashierPage-CaLazPmf.js +0 -3281
  67. package/components/CashierReceiptPage-CtS6WRaa.cjs +0 -26
@@ -1,726 +0,0 @@
1
- import { a as Ae, i as ze, $ as Ne, S as Oe, b as We, s as je, f as b, c as Ie, G as ie, e as N, k as O, n as T, r as Me, p as re, q as Ue, N as Fe, l as c, m as p, o as g, v as P, A as L, w as C, M as He, y as Re, x as $, W as K, T as le, _ as qe, Q as V, X as Be, z as ae, B as Xe, C as Ye, D as Ge, E as Je, F as Ve } from "./CashierCarousel-DX_1kfHA.js";
2
- import { d as ce, u as Ke, x as me } from "./CashierMethodDetails-C_IE1JPV.js";
3
- function de(t, e) {
4
- Ae(t, e);
5
- }
6
- function Qe(t) {
7
- ze({
8
- fallbackLocale: "en"
9
- }), Ne.set(t);
10
- }
11
- const ue = {
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 Ze(t) {
52
- Ie(t, "svelte-s330m5", '*,*::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 he(t, e, s) {
55
- const o = t.slice();
56
- return o[49] = e[s], o[51] = s, o;
57
- }
58
- function fe(t) {
59
- let e, s, o, r, n = !/*noPaymentMethodsAvailable*/
60
- t[13] && ge(t);
61
- function l(a, y) {
62
- return (
63
- /*noPaymentMethodsAvailable*/
64
- a[13] && /*isDataLoaded*/
65
- a[12] ? et : $e
66
- );
67
- }
68
- let d = l(t), u = d(t), m = (
69
- /*methodsButtonToggleText*/
70
- t[8] && ye(t)
71
- );
72
- return {
73
- c() {
74
- e = p("div"), n && n.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), n && n.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] ? n && (n.d(1), n = null) : n ? n.p(a, y) : (n = ge(a), n.c(), n.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 = ye(a), m.c(), m.m(e, null)) : m && (m.d(1), m = null);
83
- },
84
- d(a) {
85
- a && N(e), n && n.d(), u.d(), m && m.d(), t[29](null);
86
- }
87
- };
88
- }
89
- function ge(t) {
90
- let e, s, o = (
91
- /*$_*/
92
- t[14]("otherMethodsTitle") + ""
93
- ), r, n, l, d = (
94
- /*$_*/
95
- t[14]("otherMethodsDescription") + ""
96
- ), u;
97
- return {
98
- c() {
99
- e = p("div"), s = p("h3"), r = C(o), n = 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, n), 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 $e(t) {
117
- let e, s = le(
118
- /*paymentMethodsToShow*/
119
- t[9]
120
- ), o = [];
121
- for (let r = 0; r < s.length; r += 1)
122
- o[r] = pe(he(t, s, r));
123
- return {
124
- c() {
125
- for (let r = 0; r < o.length; r += 1)
126
- o[r].c();
127
- e = Me();
128
- },
129
- m(r, n) {
130
- for (let l = 0; l < o.length; l += 1)
131
- o[l] && o[l].m(r, n);
132
- O(r, e, n);
133
- },
134
- p(r, n) {
135
- if (n[0] & /*selectedPaymentMethod, paymentMethodsToShow, selectPayMeth, $_*/
136
- 49792) {
137
- s = le(
138
- /*paymentMethodsToShow*/
139
- r[9]
140
- );
141
- let l;
142
- for (l = 0; l < s.length; l += 1) {
143
- const d = he(r, s, l);
144
- o[l] ? o[l].p(d, n) : (o[l] = pe(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), qe(o, r);
153
- }
154
- };
155
- }
156
- function et(t) {
157
- let e, s, o, r = (
158
- /*$_*/
159
- t[14]("error") + ""
160
- ), n, l, d, u = (
161
- /*$_*/
162
- t[14]("noPaymentMethods") + ""
163
- ), m;
164
- return {
165
- c() {
166
- e = p("div"), s = p("div"), o = p("p"), n = 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, n), 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(n, 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 pe(t) {
195
- let e, s, o, r, n, l, d, u, m, a = (
196
- /*payMeth*/
197
- (t[49].Label || /*payMeth*/
198
- t[49].Name) + ""
199
- ), y, q, k, _, D = (
200
- /*$_*/
201
- t[14]("generalMin") + ""
202
- ), W, U, j = V(
203
- /*payMeth*/
204
- t[49].DisplayCurrency.MinAmountLimit,
205
- /*payMeth*/
206
- t[49].DisplayCurrency.Name
207
- ) + "", F, B, v = (
208
- /*$_*/
209
- t[14]("generalMax") + ""
210
- ), X, x, E = V(
211
- /*payMeth*/
212
- t[49].DisplayCurrency.MaxAmountLimit,
213
- /*payMeth*/
214
- t[49].DisplayCurrency.Name
215
- ) + "", A, S, H, Y;
216
- function G() {
217
- return (
218
- /*click_handler*/
219
- t[27](
220
- /*payMeth*/
221
- t[49]
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), q = T(), k = p("div"), _ = p("span"), W = C(D), U = T(), F = C(j), B = C(" / "), X = C(v), x = T(), A = C(E), S = T(), ae(o.src, r = /*payMeth*/
228
- t[49].LogoUrl) || g(o, "src", r), g(o, "alt", n = /*payMeth*/
229
- t[49].Label), g(s, "class", "MethodLogo"), g(u, "class", "MethodTitle"), g(_, "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[49].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, q), c(d, k), c(k, _), c(_, W), c(_, U), c(_, F), c(_, B), c(_, X), c(_, x), c(_, A), c(e, S), H || (Y = [
239
- $(e, "click", G),
240
- $(e, "keyup", ot)
241
- ], H = !0);
242
- },
243
- p(z, w) {
244
- t = z, w[0] & /*paymentMethodsToShow*/
245
- 512 && !ae(o.src, r = /*payMeth*/
246
- t[49].LogoUrl) && g(o, "src", r), w[0] & /*paymentMethodsToShow*/
247
- 512 && n !== (n = /*payMeth*/
248
- t[49].Label) && g(o, "alt", n), w[0] & /*paymentMethodsToShow*/
249
- 512 && a !== (a = /*payMeth*/
250
- (t[49].Label || /*payMeth*/
251
- t[49].Name) + "") && P(y, a), w[0] & /*$_*/
252
- 16384 && D !== (D = /*$_*/
253
- t[14]("generalMin") + "") && P(W, D), w[0] & /*paymentMethodsToShow*/
254
- 512 && j !== (j = V(
255
- /*payMeth*/
256
- t[49].DisplayCurrency.MinAmountLimit,
257
- /*payMeth*/
258
- t[49].DisplayCurrency.Name
259
- ) + "") && P(F, j), w[0] & /*$_*/
260
- 16384 && v !== (v = /*$_*/
261
- t[14]("generalMax") + "") && P(X, v), w[0] & /*paymentMethodsToShow*/
262
- 512 && E !== (E = V(
263
- /*payMeth*/
264
- t[49].DisplayCurrency.MaxAmountLimit,
265
- /*payMeth*/
266
- t[49].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[49].Name
274
- );
275
- },
276
- d(z) {
277
- z && N(e), H = !1, Be(Y);
278
- }
279
- };
280
- }
281
- function ye(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(n, l) {
291
- O(n, e, l), c(e, s), o || (r = $(
292
- e,
293
- "click",
294
- /*click_handler_1*/
295
- t[28]
296
- ), o = !0);
297
- },
298
- p(n, l) {
299
- l[0] & /*methodsButtonToggleText*/
300
- 256 && P(
301
- s,
302
- /*methodsButtonToggleText*/
303
- n[8]
304
- );
305
- },
306
- d(n) {
307
- n && N(e), o = !1, r();
308
- }
309
- };
310
- }
311
- function we(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, n) {
351
- O(r, e, n), c(e, s), c(s, o);
352
- },
353
- p(r, n) {
354
- n[0] & /*errorMessage*/
355
- 1024 && P(
356
- o,
357
- /*errorMessage*/
358
- r[10]
359
- ), n[0] & /*lang*/
360
- 1 && L(
361
- e,
362
- "lang",
363
- /*lang*/
364
- r[0]
365
- ), n[0] & /*assetsurl*/
366
- 2 && L(
367
- e,
368
- "assetsurl",
369
- /*assetsurl*/
370
- r[1]
371
- ), n[0] & /*translationurl*/
372
- 4 && L(
373
- e,
374
- "translationurl",
375
- /*translationurl*/
376
- r[2]
377
- ), n[0] & /*clientstylingurl*/
378
- 32 && L(
379
- e,
380
- "clientstylingurl",
381
- /*clientstylingurl*/
382
- r[5]
383
- ), n[0] & /*clientstyling*/
384
- 16 && L(
385
- e,
386
- "clientstyling",
387
- /*clientstyling*/
388
- r[4]
389
- ), n[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 tt(t) {
403
- let e, s, o = (
404
- /*isDataLoaded*/
405
- t[12] && fe(t)
406
- ), r = (
407
- /*errorMessage*/
408
- t[10] && we(t)
409
- );
410
- return {
411
- c() {
412
- o && o.c(), e = T(), r && r.c(), s = Me();
413
- },
414
- m(n, l) {
415
- o && o.m(n, l), O(n, e, l), r && r.m(n, l), O(n, s, l);
416
- },
417
- p(n, l) {
418
- /*isDataLoaded*/
419
- n[12] ? o ? o.p(n, l) : (o = fe(n), o.c(), o.m(e.parentNode, e)) : o && (o.d(1), o = null), /*errorMessage*/
420
- n[10] ? r ? r.p(n, l) : (r = we(n), r.c(), r.m(s.parentNode, s)) : r && (r.d(1), r = null);
421
- },
422
- i: ie,
423
- o: ie,
424
- d(n) {
425
- n && (N(e), N(s)), o && o.d(n), r && r.d(n);
426
- }
427
- };
428
- }
429
- const st = "PaymentPromotion", ot = () => {
430
- };
431
- function nt(t, e, s) {
432
- let o, r;
433
- re(t, Ve, (i) => s(14, o = i)), re(t, me, (i) => s(35, r = i)), ce.extend(Ke);
434
- let { lang: n = "en" } = e, { local: l = "en-US" } = e, { endpoint: d } = e, { paymentsession: u } = e, { playersession: m } = e, { customerid: a } = e, { assetsurl: y } = e, { currency: q } = e, { numberofmethodsshown: k } = e, { translationurl: _ = "" } = e, { mbsource: D } = e, { clientstyling: W } = e, { clientstylingurl: U } = e, { currencydecimals: j = "2" } = e, { currencysymbol: F = "" } = e, { currencyposition: B = "" } = e, v, X = window.navigator.userAgent, x = [], E, A = "", S = [], H = [], Y = "", G, z = !0, w = !1, ee = !1;
435
- var Q;
436
- (function(i) {
437
- i.PlayerSessionIsNotValid = "PlayerSessionIsNotValid", i.Success = "Success", i.JwtTokenError = "JwtTokenError";
438
- })(Q || (Q = {}));
439
- const be = () => {
440
- let i = _;
441
- if (i)
442
- return fetch(i).then((f) => f.json()).then((f) => {
443
- Object.keys(f).forEach((I) => {
444
- de(I, f[I]);
445
- });
446
- }).catch((f) => {
447
- console.log(f);
448
- });
449
- };
450
- Object.keys(ue).forEach((i) => {
451
- de(i, ue[i]);
452
- });
453
- const _e = () => {
454
- Qe(n);
455
- }, ve = () => {
456
- r && te();
457
- }, te = () => {
458
- window.postMessage({ type: "DataLoading", isDataLoaded: w });
459
- const i = new URL(`${d}/v2/player/${a}/payment/GetPaymentMetadata`), f = new Headers();
460
- f.append("accept", "application/json"), f.append("Content-Type", "application/json"), f.append("X-Client-Request-Timestamp", ce.utc().format("YYYY-MM-DD HH:mm:ss.SSS")), f.append("X-SessionId", `${m}`), f.append("X-Payment-Session-Token", `${u || r}`);
461
- const I = {
462
- method: "POST",
463
- headers: f,
464
- mode: "cors",
465
- body: JSON.stringify({
466
- Currency: q,
467
- Tags: { UserAgent: window.navigator.userAgent }
468
- })
469
- };
470
- fetch(i, I).then((h) => {
471
- const M = h.headers.get("X-Payment-Session-Token");
472
- return M && me.set(M), h.json();
473
- }).then((h) => {
474
- if (h.error) {
475
- s(10, Y = h.error);
476
- return;
477
- }
478
- if (h.ResponseCode !== Q.Success) {
479
- G = h.ResponseCode, xe();
480
- return;
481
- }
482
- x = h.PaymentMethods?.Ordering ? Le(h) : ke(h), window.postMessage(
483
- {
484
- type: "PromotedPaymentMethods",
485
- promotedPaymentMethods: H
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
- }, Le = (i) => {
499
- const f = [];
500
- return i.PaymentMethods.Ordering.DefaultPaymentMethodsOrder.forEach((I) => {
501
- const h = i.PaymentMethods.PaymentMethods.find((M) => M.Name === I);
502
- if (h) {
503
- const M = h?.Logos.find((Z) => Z.LogoType === "Desktop") || {}, J = h?.Logos.find((Z) => Z.LogoType === "Mobile") || {}, R = z ? M : J;
504
- h.isMethodPromoted = ne(h.Tags), h.LogoUrl = R.LogoUrl ? `https:${R.LogoUrl}` : "", h.isMethodPromoted && H.push(h), f.push(h);
505
- }
506
- }), f;
507
- }, ke = (i) => {
508
- const f = i.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, h] = f.reduce(
513
- ([M, J], R) => (R && R.isMethodPromoted ? M.push(R) : J.promo(R), [M, J]),
514
- [[], []]
515
- );
516
- return H = I, h;
517
- }, se = (i) => {
518
- s(7, E = i.Name), window.postMessage({ type: "SelectPayMeth", details: i }, window.location.href), dispatchEvent(new CustomEvent(
519
- "selectPayMeth",
520
- {
521
- detail: i,
522
- bubbles: !0,
523
- cancelable: !0,
524
- composed: !0
525
- }
526
- ));
527
- }, xe = () => {
528
- window.postMessage(
529
- {
530
- type: "ErrorResponseCode",
531
- errorResponseCode: G
532
- },
533
- window.location.href
534
- );
535
- }, Ce = () => {
536
- s(11, z = !He(X));
537
- }, oe = () => {
538
- S == x ? Pe() : Se();
539
- }, Se = () => {
540
- s(9, S = x), s(8, A = o("showLess"));
541
- }, Pe = () => {
542
- s(9, S = x.slice(0, +k)), E && !S.find((i) => i.Name === E) && S.splice(0, 0, x.find((i) => i.Name === E)), s(8, A = o("showAll"));
543
- }, ne = (i) => i && i.split(",").some((f) => f === st);
544
- Ue(() => (Ce(), Fe(l, F, B, j), () => {
545
- }));
546
- const Ee = (i) => se(i), Te = () => oe();
547
- function De(i) {
548
- Re[i ? "unshift" : "push"](() => {
549
- v = i, s(6, v);
550
- });
551
- }
552
- return t.$$set = (i) => {
553
- "lang" in i && s(0, n = i.lang), "local" in i && s(17, l = i.local), "endpoint" in i && s(18, d = i.endpoint), "paymentsession" in i && s(19, u = i.paymentsession), "playersession" in i && s(20, m = i.playersession), "customerid" in i && s(21, a = i.customerid), "assetsurl" in i && s(1, y = i.assetsurl), "currency" in i && s(22, q = i.currency), "numberofmethodsshown" in i && s(23, k = i.numberofmethodsshown), "translationurl" in i && s(2, _ = i.translationurl), "mbsource" in i && s(3, D = i.mbsource), "clientstyling" in i && s(4, W = i.clientstyling), "clientstylingurl" in i && s(5, U = i.clientstylingurl), "currencydecimals" in i && s(24, j = i.currencydecimals), "currencysymbol" in i && s(25, F = i.currencysymbol), "currencyposition" in i && s(26, B = i.currencyposition);
554
- }, t.$$.update = () => {
555
- t.$$.dirty[0] & /*endpoint, paymentsession, customerid*/
556
- 2883584 && d && u && a && te(), t.$$.dirty[0] & /*endpoint, paymentsession, customerid*/
557
- 2883584 && d && !u && a && ve(), t.$$.dirty[0] & /*lang*/
558
- 1 && n && _e(), t.$$.dirty[0] & /*clientstyling, customStylingContainer*/
559
- 80 && W && v && Xe(v, W), t.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
560
- 96 && U && v && Ye(v, U), t.$$.dirty[0] & /*mbsource, customStylingContainer*/
561
- 72 && D && v && Ge(v, `${D}.Style`), t.$$.dirty[0] & /*lang, translationurl*/
562
- 5 && n && _ && be();
563
- }, [
564
- n,
565
- y,
566
- _,
567
- D,
568
- W,
569
- U,
570
- v,
571
- E,
572
- A,
573
- S,
574
- Y,
575
- z,
576
- w,
577
- ee,
578
- o,
579
- se,
580
- oe,
581
- l,
582
- d,
583
- u,
584
- m,
585
- a,
586
- q,
587
- k,
588
- j,
589
- F,
590
- B,
591
- Ee,
592
- Te,
593
- De
594
- ];
595
- }
596
- class it extends Oe {
597
- constructor(e) {
598
- super(), We(
599
- this,
600
- e,
601
- nt,
602
- tt,
603
- je,
604
- {
605
- lang: 0,
606
- local: 17,
607
- endpoint: 18,
608
- paymentsession: 19,
609
- playersession: 20,
610
- customerid: 21,
611
- assetsurl: 1,
612
- currency: 22,
613
- numberofmethodsshown: 23,
614
- translationurl: 2,
615
- mbsource: 3,
616
- clientstyling: 4,
617
- clientstylingurl: 5,
618
- currencydecimals: 24,
619
- currencysymbol: 25,
620
- currencyposition: 26
621
- },
622
- Ze,
623
- [-1, -1]
624
- );
625
- }
626
- get lang() {
627
- return this.$$.ctx[0];
628
- }
629
- set lang(e) {
630
- this.$$set({ lang: e }), b();
631
- }
632
- get local() {
633
- return this.$$.ctx[17];
634
- }
635
- set local(e) {
636
- this.$$set({ local: e }), b();
637
- }
638
- get endpoint() {
639
- return this.$$.ctx[18];
640
- }
641
- set endpoint(e) {
642
- this.$$set({ endpoint: e }), b();
643
- }
644
- get paymentsession() {
645
- return this.$$.ctx[19];
646
- }
647
- set paymentsession(e) {
648
- this.$$set({ paymentsession: e }), b();
649
- }
650
- get playersession() {
651
- return this.$$.ctx[20];
652
- }
653
- set playersession(e) {
654
- this.$$set({ playersession: e }), b();
655
- }
656
- get customerid() {
657
- return this.$$.ctx[21];
658
- }
659
- set customerid(e) {
660
- this.$$set({ customerid: e }), b();
661
- }
662
- get assetsurl() {
663
- return this.$$.ctx[1];
664
- }
665
- set assetsurl(e) {
666
- this.$$set({ assetsurl: e }), b();
667
- }
668
- get currency() {
669
- return this.$$.ctx[22];
670
- }
671
- set currency(e) {
672
- this.$$set({ currency: e }), b();
673
- }
674
- get numberofmethodsshown() {
675
- return this.$$.ctx[23];
676
- }
677
- set numberofmethodsshown(e) {
678
- this.$$set({ numberofmethodsshown: e }), b();
679
- }
680
- get translationurl() {
681
- return this.$$.ctx[2];
682
- }
683
- set translationurl(e) {
684
- this.$$set({ translationurl: e }), b();
685
- }
686
- get mbsource() {
687
- return this.$$.ctx[3];
688
- }
689
- set mbsource(e) {
690
- this.$$set({ mbsource: e }), b();
691
- }
692
- get clientstyling() {
693
- return this.$$.ctx[4];
694
- }
695
- set clientstyling(e) {
696
- this.$$set({ clientstyling: e }), b();
697
- }
698
- get clientstylingurl() {
699
- return this.$$.ctx[5];
700
- }
701
- set clientstylingurl(e) {
702
- this.$$set({ clientstylingurl: e }), b();
703
- }
704
- get currencydecimals() {
705
- return this.$$.ctx[24];
706
- }
707
- set currencydecimals(e) {
708
- this.$$set({ currencydecimals: e }), b();
709
- }
710
- get currencysymbol() {
711
- return this.$$.ctx[25];
712
- }
713
- set currencysymbol(e) {
714
- this.$$set({ currencysymbol: e }), b();
715
- }
716
- get currencyposition() {
717
- return this.$$.ctx[26];
718
- }
719
- set currencyposition(e) {
720
- this.$$set({ currencyposition: e }), b();
721
- }
722
- }
723
- Je(it, { lang: {}, local: {}, endpoint: {}, paymentsession: {}, playersession: {}, customerid: {}, assetsurl: {}, currency: {}, numberofmethodsshown: {}, translationurl: {}, mbsource: {}, clientstyling: {}, clientstylingurl: {}, currencydecimals: {}, currencysymbol: {}, currencyposition: {} }, [], [], !0);
724
- export {
725
- it as default
726
- };