@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,738 +0,0 @@
1
- var We = Object.defineProperty, je = Object.defineProperties;
2
- var Ie = Object.getOwnPropertyDescriptors;
3
- var ie = Object.getOwnPropertySymbols;
4
- var Ue = Object.prototype.hasOwnProperty, Fe = Object.prototype.propertyIsEnumerable;
5
- var re = (t, e, s) => e in t ? We(t, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : t[e] = s, le = (t, e) => {
6
- for (var s in e || (e = {}))
7
- Ue.call(e, s) && re(t, s, e[s]);
8
- if (ie)
9
- for (var s of ie(e))
10
- Fe.call(e, s) && re(t, s, e[s]);
11
- return t;
12
- }, ae = (t, e) => je(t, Ie(e));
13
- import { a as He, i as Re, $ as qe, S as Be, b as Xe, s as Ye, f as b, c as Ge, G as ce, e as N, k as O, n as T, r as Le, p as me, q as Je, N as Ve, l as c, m as p, o as g, v as P, A as L, w as C, M as Ke, y as Qe, x as $, W as K, T as de, _ as Ze, Q as V, X as $e, z as ue, B as et, C as tt, D as st, E as ot, F as nt } from "./CashierCarousel-DuDjKitQ.js";
14
- import { d as he, u as it, x as fe } from "./CashierMethodDetails-Dmb35LVn.js";
15
- function ge(t, e) {
16
- He(t, e);
17
- }
18
- function rt(t) {
19
- Re({
20
- fallbackLocale: "en"
21
- }), qe.set(t);
22
- }
23
- const pe = {
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 lt(t) {
64
- Ge(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}}');
65
- }
66
- function ye(t, e, s) {
67
- const o = t.slice();
68
- return o[49] = e[s], o[51] = s, o;
69
- }
70
- function we(t) {
71
- let e, s, o, r, n = !/*noPaymentMethodsAvailable*/
72
- t[13] && Me(t);
73
- function l(a, y) {
74
- return (
75
- /*noPaymentMethodsAvailable*/
76
- a[13] && /*isDataLoaded*/
77
- a[12] ? ct : at
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"), n && n.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), 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);
90
- },
91
- p(a, y) {
92
- /*noPaymentMethodsAvailable*/
93
- a[13] ? n && (n.d(1), n = null) : n ? n.p(a, y) : (n = Me(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*/
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), n && n.d(), u.d(), m && m.d(), t[29](null);
98
- }
99
- };
100
- }
101
- function Me(t) {
102
- let e, s, o = (
103
- /*$_*/
104
- t[14]("otherMethodsTitle") + ""
105
- ), r, n, l, d = (
106
- /*$_*/
107
- t[14]("otherMethodsDescription") + ""
108
- ), u;
109
- return {
110
- c() {
111
- e = p("div"), s = p("h3"), r = C(o), n = 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, n), 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 at(t) {
129
- let e, s = de(
130
- /*paymentMethodsToShow*/
131
- t[9]
132
- ), o = [];
133
- for (let r = 0; r < s.length; r += 1)
134
- o[r] = be(ye(t, s, r));
135
- return {
136
- c() {
137
- for (let r = 0; r < o.length; r += 1)
138
- o[r].c();
139
- e = Le();
140
- },
141
- m(r, n) {
142
- for (let l = 0; l < o.length; l += 1)
143
- o[l] && o[l].m(r, n);
144
- O(r, e, n);
145
- },
146
- p(r, n) {
147
- if (n[0] & /*selectedPaymentMethod, paymentMethodsToShow, selectPayMeth, $_*/
148
- 49792) {
149
- s = de(
150
- /*paymentMethodsToShow*/
151
- r[9]
152
- );
153
- let l;
154
- for (l = 0; l < s.length; l += 1) {
155
- const d = ye(r, s, l);
156
- o[l] ? o[l].p(d, n) : (o[l] = be(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), Ze(o, r);
165
- }
166
- };
167
- }
168
- function ct(t) {
169
- let e, s, o, r = (
170
- /*$_*/
171
- t[14]("error") + ""
172
- ), n, l, d, u = (
173
- /*$_*/
174
- t[14]("noPaymentMethods") + ""
175
- ), m;
176
- return {
177
- c() {
178
- 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(
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, n), 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(n, 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 be(t) {
207
- let e, s, o, r, n, l, d, u, m, a = (
208
- /*payMeth*/
209
- (t[49].Label || /*payMeth*/
210
- t[49].Name) + ""
211
- ), y, q, k, _, A = (
212
- /*$_*/
213
- t[14]("generalMin") + ""
214
- ), W, U, j = V(
215
- /*payMeth*/
216
- t[49].DisplayCurrency.MinAmountLimit,
217
- /*payMeth*/
218
- t[49].DisplayCurrency.Name
219
- ) + "", F, B, v = (
220
- /*$_*/
221
- t[14]("generalMax") + ""
222
- ), X, x, E = V(
223
- /*payMeth*/
224
- t[49].DisplayCurrency.MaxAmountLimit,
225
- /*payMeth*/
226
- t[49].DisplayCurrency.Name
227
- ) + "", D, S, H, Y;
228
- function G() {
229
- return (
230
- /*click_handler*/
231
- t[27](
232
- /*payMeth*/
233
- t[49]
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), q = T(), k = p("div"), _ = p("span"), W = C(A), U = T(), F = C(j), B = C(" / "), X = C(v), x = T(), D = C(E), S = T(), ue(o.src, r = /*payMeth*/
240
- t[49].LogoUrl) || g(o, "src", r), g(o, "alt", n = /*payMeth*/
241
- 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(
242
- e,
243
- "checked",
244
- /*selectedPaymentMethod*/
245
- t[7] === /*payMeth*/
246
- t[49].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, q), c(d, k), c(k, _), c(_, W), c(_, U), c(_, F), c(_, B), c(_, X), c(_, x), c(_, D), c(e, S), H || (Y = [
251
- $(e, "click", G),
252
- $(e, "keyup", ut)
253
- ], H = !0);
254
- },
255
- p(z, M) {
256
- t = z, M[0] & /*paymentMethodsToShow*/
257
- 512 && !ue(o.src, r = /*payMeth*/
258
- t[49].LogoUrl) && g(o, "src", r), M[0] & /*paymentMethodsToShow*/
259
- 512 && n !== (n = /*payMeth*/
260
- t[49].Label) && g(o, "alt", n), M[0] & /*paymentMethodsToShow*/
261
- 512 && a !== (a = /*payMeth*/
262
- (t[49].Label || /*payMeth*/
263
- t[49].Name) + "") && P(y, a), M[0] & /*$_*/
264
- 16384 && A !== (A = /*$_*/
265
- t[14]("generalMin") + "") && P(W, A), M[0] & /*paymentMethodsToShow*/
266
- 512 && j !== (j = V(
267
- /*payMeth*/
268
- t[49].DisplayCurrency.MinAmountLimit,
269
- /*payMeth*/
270
- t[49].DisplayCurrency.Name
271
- ) + "") && P(F, j), M[0] & /*$_*/
272
- 16384 && v !== (v = /*$_*/
273
- t[14]("generalMax") + "") && P(X, v), M[0] & /*paymentMethodsToShow*/
274
- 512 && E !== (E = V(
275
- /*payMeth*/
276
- t[49].DisplayCurrency.MaxAmountLimit,
277
- /*payMeth*/
278
- t[49].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[49].Name
286
- );
287
- },
288
- d(z) {
289
- z && N(e), H = !1, $e(Y);
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(n, l) {
303
- O(n, e, l), c(e, s), o || (r = $(
304
- e,
305
- "click",
306
- /*click_handler_1*/
307
- t[28]
308
- ), o = !0);
309
- },
310
- p(n, l) {
311
- l[0] & /*methodsButtonToggleText*/
312
- 256 && P(
313
- s,
314
- /*methodsButtonToggleText*/
315
- n[8]
316
- );
317
- },
318
- d(n) {
319
- n && N(e), o = !1, r();
320
- }
321
- };
322
- }
323
- function ve(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, n) {
363
- O(r, e, n), c(e, s), c(s, o);
364
- },
365
- p(r, n) {
366
- n[0] & /*errorMessage*/
367
- 1024 && P(
368
- o,
369
- /*errorMessage*/
370
- r[10]
371
- ), n[0] & /*lang*/
372
- 1 && L(
373
- e,
374
- "lang",
375
- /*lang*/
376
- r[0]
377
- ), n[0] & /*assetsurl*/
378
- 2 && L(
379
- e,
380
- "assetsurl",
381
- /*assetsurl*/
382
- r[1]
383
- ), n[0] & /*translationurl*/
384
- 4 && L(
385
- e,
386
- "translationurl",
387
- /*translationurl*/
388
- r[2]
389
- ), n[0] & /*clientstylingurl*/
390
- 32 && L(
391
- e,
392
- "clientstylingurl",
393
- /*clientstylingurl*/
394
- r[5]
395
- ), n[0] & /*clientstyling*/
396
- 16 && L(
397
- e,
398
- "clientstyling",
399
- /*clientstyling*/
400
- r[4]
401
- ), n[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 mt(t) {
415
- let e, s, o = (
416
- /*isDataLoaded*/
417
- t[12] && we(t)
418
- ), r = (
419
- /*errorMessage*/
420
- t[10] && ve(t)
421
- );
422
- return {
423
- c() {
424
- o && o.c(), e = T(), r && r.c(), s = Le();
425
- },
426
- m(n, l) {
427
- o && o.m(n, l), O(n, e, l), r && r.m(n, l), O(n, s, l);
428
- },
429
- p(n, l) {
430
- /*isDataLoaded*/
431
- n[12] ? o ? o.p(n, l) : (o = we(n), o.c(), o.m(e.parentNode, e)) : o && (o.d(1), o = null), /*errorMessage*/
432
- n[10] ? r ? r.p(n, l) : (r = ve(n), r.c(), r.m(s.parentNode, s)) : r && (r.d(1), r = null);
433
- },
434
- i: ce,
435
- o: ce,
436
- d(n) {
437
- n && (N(e), N(s)), o && o.d(n), r && r.d(n);
438
- }
439
- };
440
- }
441
- const dt = "PaymentPromotion", ut = () => {
442
- };
443
- function ht(t, e, s) {
444
- let o, r;
445
- me(t, nt, (i) => s(14, o = i)), me(t, fe, (i) => s(35, r = i)), he.extend(it);
446
- 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: A } = e, { clientstyling: W } = e, { clientstylingurl: U } = e, { currencydecimals: j = "2" } = e, { currencysymbol: F = "" } = e, { currencyposition: B = "" } = e, v, X = window.navigator.userAgent, x = [], E, D = "", S = [], H = [], Y = "", G, z = !0, M = !1, ee = !1;
447
- var Q;
448
- (function(i) {
449
- i.PlayerSessionIsNotValid = "PlayerSessionIsNotValid", i.Success = "Success", i.JwtTokenError = "JwtTokenError";
450
- })(Q || (Q = {}));
451
- const ke = () => {
452
- let i = _;
453
- if (i)
454
- return fetch(i).then((f) => f.json()).then((f) => {
455
- Object.keys(f).forEach((I) => {
456
- ge(I, f[I]);
457
- });
458
- }).catch((f) => {
459
- console.log(f);
460
- });
461
- };
462
- Object.keys(pe).forEach((i) => {
463
- ge(i, pe[i]);
464
- });
465
- const xe = () => {
466
- rt(n);
467
- }, Ce = () => {
468
- r && te();
469
- }, te = () => {
470
- window.postMessage({ type: "DataLoading", isDataLoaded: M });
471
- const i = 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", he.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: q,
479
- Tags: { UserAgent: window.navigator.userAgent }
480
- })
481
- };
482
- fetch(i, I).then((h) => {
483
- const w = h.headers.get("X-Payment-Session-Token");
484
- return w && fe.set(w), h.json();
485
- }).then((h) => {
486
- var w;
487
- if (h.error) {
488
- s(10, Y = h.error);
489
- return;
490
- }
491
- if (h.ResponseCode !== Q.Success) {
492
- G = h.ResponseCode, Ee();
493
- return;
494
- }
495
- x = (w = h.PaymentMethods) != null && w.Ordering ? Se(h) : Pe(h), window.postMessage(
496
- {
497
- type: "PromotedPaymentMethods",
498
- promotedPaymentMethods: H
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
- }, Se = (i) => {
512
- const f = [];
513
- return i.PaymentMethods.Ordering.DefaultPaymentMethodsOrder.forEach((I) => {
514
- const h = i.PaymentMethods.PaymentMethods.find((w) => w.Name === I);
515
- if (h) {
516
- const w = (h == null ? void 0 : h.Logos.find((Z) => Z.LogoType === "Desktop")) || {}, J = (h == null ? void 0 : h.Logos.find((Z) => Z.LogoType === "Mobile")) || {}, R = z ? w : J;
517
- h.isMethodPromoted = ne(h.Tags), h.LogoUrl = R.LogoUrl ? `https:${R.LogoUrl}` : "", h.isMethodPromoted && H.push(h), f.push(h);
518
- }
519
- }), f;
520
- }, Pe = (i) => {
521
- const f = i.PaymentMethods.PaymentMethods.map((w) => ae(le({}, 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], R) => (R && R.isMethodPromoted ? w.push(R) : J.promo(R), [w, J]),
526
- [[], []]
527
- );
528
- return H = I, h;
529
- }, se = (i) => {
530
- s(7, E = i.Name), window.postMessage({ type: "SelectPayMeth", details: i }, window.location.href), dispatchEvent(new CustomEvent(
531
- "selectPayMeth",
532
- {
533
- detail: i,
534
- bubbles: !0,
535
- cancelable: !0,
536
- composed: !0
537
- }
538
- ));
539
- }, Ee = () => {
540
- window.postMessage(
541
- {
542
- type: "ErrorResponseCode",
543
- errorResponseCode: G
544
- },
545
- window.location.href
546
- );
547
- }, Te = () => {
548
- s(11, z = !Ke(X));
549
- }, oe = () => {
550
- S == x ? De() : Ae();
551
- }, Ae = () => {
552
- s(9, S = x), s(8, D = o("showLess"));
553
- }, De = () => {
554
- 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, D = o("showAll"));
555
- }, ne = (i) => i && i.split(",").some((f) => f === dt);
556
- Je(() => (Te(), Ve(l, F, B, j), () => {
557
- }));
558
- const ze = (i) => se(i), Ne = () => oe();
559
- function Oe(i) {
560
- Qe[i ? "unshift" : "push"](() => {
561
- v = i, s(6, v);
562
- });
563
- }
564
- return t.$$set = (i) => {
565
- "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, A = 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);
566
- }, t.$$.update = () => {
567
- t.$$.dirty[0] & /*endpoint, paymentsession, customerid*/
568
- 2883584 && d && u && a && te(), t.$$.dirty[0] & /*endpoint, paymentsession, customerid*/
569
- 2883584 && d && !u && a && Ce(), t.$$.dirty[0] & /*lang*/
570
- 1 && n && xe(), t.$$.dirty[0] & /*clientstyling, customStylingContainer*/
571
- 80 && W && v && et(v, W), t.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
572
- 96 && U && v && tt(v, U), t.$$.dirty[0] & /*mbsource, customStylingContainer*/
573
- 72 && A && v && st(v, `${A}.Style`), t.$$.dirty[0] & /*lang, translationurl*/
574
- 5 && n && _ && ke();
575
- }, [
576
- n,
577
- y,
578
- _,
579
- A,
580
- W,
581
- U,
582
- v,
583
- E,
584
- D,
585
- S,
586
- Y,
587
- z,
588
- M,
589
- ee,
590
- o,
591
- se,
592
- oe,
593
- l,
594
- d,
595
- u,
596
- m,
597
- a,
598
- q,
599
- k,
600
- j,
601
- F,
602
- B,
603
- ze,
604
- Ne,
605
- Oe
606
- ];
607
- }
608
- class ft extends Be {
609
- constructor(e) {
610
- super(), Xe(
611
- this,
612
- e,
613
- ht,
614
- mt,
615
- Ye,
616
- {
617
- lang: 0,
618
- local: 17,
619
- endpoint: 18,
620
- paymentsession: 19,
621
- playersession: 20,
622
- customerid: 21,
623
- assetsurl: 1,
624
- currency: 22,
625
- numberofmethodsshown: 23,
626
- translationurl: 2,
627
- mbsource: 3,
628
- clientstyling: 4,
629
- clientstylingurl: 5,
630
- currencydecimals: 24,
631
- currencysymbol: 25,
632
- currencyposition: 26
633
- },
634
- lt,
635
- [-1, -1]
636
- );
637
- }
638
- get lang() {
639
- return this.$$.ctx[0];
640
- }
641
- set lang(e) {
642
- this.$$set({ lang: e }), b();
643
- }
644
- get local() {
645
- return this.$$.ctx[17];
646
- }
647
- set local(e) {
648
- this.$$set({ local: e }), b();
649
- }
650
- get endpoint() {
651
- return this.$$.ctx[18];
652
- }
653
- set endpoint(e) {
654
- this.$$set({ endpoint: e }), b();
655
- }
656
- get paymentsession() {
657
- return this.$$.ctx[19];
658
- }
659
- set paymentsession(e) {
660
- this.$$set({ paymentsession: e }), b();
661
- }
662
- get playersession() {
663
- return this.$$.ctx[20];
664
- }
665
- set playersession(e) {
666
- this.$$set({ playersession: e }), b();
667
- }
668
- get customerid() {
669
- return this.$$.ctx[21];
670
- }
671
- set customerid(e) {
672
- this.$$set({ customerid: e }), b();
673
- }
674
- get assetsurl() {
675
- return this.$$.ctx[1];
676
- }
677
- set assetsurl(e) {
678
- this.$$set({ assetsurl: e }), b();
679
- }
680
- get currency() {
681
- return this.$$.ctx[22];
682
- }
683
- set currency(e) {
684
- this.$$set({ currency: e }), b();
685
- }
686
- get numberofmethodsshown() {
687
- return this.$$.ctx[23];
688
- }
689
- set numberofmethodsshown(e) {
690
- this.$$set({ numberofmethodsshown: e }), b();
691
- }
692
- get translationurl() {
693
- return this.$$.ctx[2];
694
- }
695
- set translationurl(e) {
696
- this.$$set({ translationurl: e }), b();
697
- }
698
- get mbsource() {
699
- return this.$$.ctx[3];
700
- }
701
- set mbsource(e) {
702
- this.$$set({ mbsource: e }), b();
703
- }
704
- get clientstyling() {
705
- return this.$$.ctx[4];
706
- }
707
- set clientstyling(e) {
708
- this.$$set({ clientstyling: e }), b();
709
- }
710
- get clientstylingurl() {
711
- return this.$$.ctx[5];
712
- }
713
- set clientstylingurl(e) {
714
- this.$$set({ clientstylingurl: e }), b();
715
- }
716
- get currencydecimals() {
717
- return this.$$.ctx[24];
718
- }
719
- set currencydecimals(e) {
720
- this.$$set({ currencydecimals: e }), b();
721
- }
722
- get currencysymbol() {
723
- return this.$$.ctx[25];
724
- }
725
- set currencysymbol(e) {
726
- this.$$set({ currencysymbol: e }), b();
727
- }
728
- get currencyposition() {
729
- return this.$$.ctx[26];
730
- }
731
- set currencyposition(e) {
732
- this.$$set({ currencyposition: e }), b();
733
- }
734
- }
735
- ot(ft, { lang: {}, local: {}, endpoint: {}, paymentsession: {}, playersession: {}, customerid: {}, assetsurl: {}, currency: {}, numberofmethodsshown: {}, translationurl: {}, mbsource: {}, clientstyling: {}, clientstylingurl: {}, currencydecimals: {}, currencysymbol: {}, currencyposition: {} }, [], [], !0);
736
- export {
737
- ft as default
738
- };