@everymatrix/cashier-page 1.55.0 → 1.56.0
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.
- package/components/CashierConfirmModal-B_XfWSC2.cjs +4 -0
- package/components/{CashierConfirmModal-Bho8FqJK.js → CashierConfirmModal-CnmhfysD.js} +520 -440
- package/components/CashierConfirmModal-DjJI47WY.js +1095 -0
- package/components/{CashierError-R8ZhIjyI.js → CashierError-BhW9Bd5u.js} +340 -342
- package/components/{CashierError-B6UnQRtt.js → CashierError-CcFXZ705.js} +340 -342
- package/components/{CashierError-Dj9dAyT_.cjs → CashierError-wHAQP3_C.cjs} +3 -3
- package/components/{CashierHeader-Ckcwhr6m.cjs → CashierHeader-BKrGT2Ae.cjs} +1 -1
- package/components/{CashierHeader-siQceHGX.js → CashierHeader-BUMem-fU.js} +44 -44
- package/components/{CashierHeader-CGdNSxx6.js → CashierHeader-B_qUwnRz.js} +42 -42
- package/components/{CashierIframeRedirect-C7zvMq6i.cjs → CashierIframeRedirect-BDIr-k4X.cjs} +1 -1
- package/components/{CashierIframeRedirect-Cf280zGs.js → CashierIframeRedirect-DK3-V6GJ.js} +33 -33
- package/components/{CashierIframeRedirect-BJdtHTt_.js → CashierIframeRedirect-DiWIODGM.js} +32 -32
- package/components/{CashierMethodDetails-0n7uERIs.js → CashierMethodDetails-B5Y9sYOg.js} +693 -689
- package/components/{CashierMethodDetails-Bh0qCR4w.js → CashierMethodDetails-C-KT1A-h.js} +708 -704
- package/components/{CashierMethodDetails-Bs5PGaZC.cjs → CashierMethodDetails-D8AGMiCO.cjs} +3 -3
- package/components/{CashierMethodsList-DIGc9AUv.js → CashierMethodsList-CbNajSX5.js} +89 -89
- package/components/{CashierMethodsList-C8rrtr0q.cjs → CashierMethodsList-DCPVijk5.cjs} +1 -1
- package/components/{CashierMethodsList-CNZycJM8.js → CashierMethodsList-Q3OYWKGV.js} +100 -100
- package/components/{CashierModal-FkJdngyj.cjs → CashierModal-B9SMcvPJ.cjs} +1 -1
- package/components/{CashierModal-_JYkOwJz.js → CashierModal-BQ75P20m.js} +37 -37
- package/components/{CashierModal-XEf2DPsH.js → CashierModal-DoTNxAOf.js} +31 -31
- package/components/{CashierNotifications-Dx7SHS2Y.js → CashierNotifications-BdcWgN-t.js} +18 -18
- package/components/{CashierNotifications-BJzRxOV_.cjs → CashierNotifications-C5qqk3s5.cjs} +1 -1
- package/components/{CashierNotifications-n-WNsBs_.js → CashierNotifications-DVCfwUo9.js} +19 -19
- package/components/{CashierPage-Z3s-AE-W.js → CashierPage-BGaDrX6p.js} +920 -776
- package/components/{CashierPage-HjIA5R5P.cjs → CashierPage-C67H_0uR.cjs} +1 -1
- package/components/{CashierPage-CUsOGi4E.js → CashierPage-Ckv_ecQa.js} +920 -776
- package/components/{CashierReceiptPage-CS5M5RZ6.js → CashierReceiptPage-B6Ot4u-u.js} +76 -76
- package/components/{CashierReceiptPage-DzQqg8nv.js → CashierReceiptPage-Cjz4isz4.js} +76 -76
- package/components/{CashierReceiptPage-DZyFyBqS.cjs → CashierReceiptPage-bBNHsfW5.cjs} +1 -1
- package/components/{CashierSessionExpirationModal-CXDh6poB.js → CashierSessionExpirationModal-8p7dxVmt.js} +47 -56
- package/components/{CashierSessionExpirationModal-CdyR3b34.cjs → CashierSessionExpirationModal-CWKlvhPF.cjs} +2 -2
- package/components/{CashierSessionExpirationModal-CBmx5SD7.js → CashierSessionExpirationModal-CbrAJQvx.js} +47 -56
- package/components/{CashierSpinner-CwTAvuPD.js → CashierSpinner-Cv-DKF1H.js} +26 -26
- package/components/{CashierSpinner-CySOWnIQ.cjs → CashierSpinner-CxYzgF3b.cjs} +1 -1
- package/components/{CashierSpinner-CQi2Ol7j.js → CashierSpinner-Y3YCsQEf.js} +25 -25
- package/components/CashierTransactionHistory-DRX91Hoc.cjs +1 -0
- package/components/CashierTransactionHistory-DmVVMYYd.js +567 -0
- package/components/CashierTransactionHistory-SjIsxvK5.js +567 -0
- package/components/{CashierVerifications-Dj7MJocZ.js → CashierVerifications-Cqc-k576.js} +72 -72
- package/components/{CashierVerifications-oj-eHRhw.cjs → CashierVerifications-D-3Ycigl.cjs} +1 -1
- package/components/{CashierVerifications-C1NppS_0.js → CashierVerifications-DL2hsNCJ.js} +26 -26
- package/components/{CashierVideoModal-BWI2U3UH.cjs → CashierVideoModal-CBBnFyqd.cjs} +1 -1
- package/components/{CashierVideoModal-CgS8X4Od.js → CashierVideoModal-DkujQ3WY.js} +33 -33
- package/components/{CashierVideoModal-C8etvcxP.js → CashierVideoModal-YsTJSZa7.js} +37 -37
- package/es2015/cashier-page.cjs +1 -1
- package/es2015/cashier-page.js +1 -1
- package/esnext/cashier-page.js +1 -1
- package/package.json +1 -1
- package/components/CashierConfirmModal-KmRU3Mgr.cjs +0 -4
- package/components/CashierConfirmModal-h87-4Uqk.js +0 -1015
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { S as Ee, b as xe,
|
|
2
|
-
import { a as
|
|
3
|
-
import { d as re, u as Ie } from "./CashierMethodDetails-
|
|
1
|
+
import { S as Ee, b as xe, s as Te, f as C, c as Ae, n as ie, e as N, l as z, p as _, w as Pe, v as De, Q as Ne, H as ze, E as M, o as y, K as le, L as He, m as d, q as w, x, y as T, z as Fe, r as We, B as oe, J as Q, A as ee, D as Oe } from "./CashierConfirmModal-DjJI47WY.js";
|
|
2
|
+
import { a as Ue, i as je, $ as Re, b as Be } from "./CashierError-BhW9Bd5u.js";
|
|
3
|
+
import { d as re, u as Ie } from "./CashierMethodDetails-B5Y9sYOg.js";
|
|
4
4
|
function ae(t, e) {
|
|
5
|
-
|
|
5
|
+
Ue(t, e);
|
|
6
6
|
}
|
|
7
7
|
function Ge(t) {
|
|
8
|
-
|
|
8
|
+
je({
|
|
9
9
|
fallbackLocale: "en"
|
|
10
10
|
}), Re.set(t);
|
|
11
11
|
}
|
|
@@ -44,7 +44,7 @@ const me = {
|
|
|
44
44
|
}
|
|
45
45
|
};
|
|
46
46
|
function Ve(t) {
|
|
47
|
-
|
|
47
|
+
Ae(t, "svelte-1wlv0rl", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.CashierMethodList{display:flex;flex-direction:column;background:var(--emw--color-background, #fff);box-shadow:0 0 4px var(--mmw--color-black-transparency-10, rgba(0, 0, 0, 0.1));width:100%;border-radius:var(--mmw--border-radius-medium-plus, 6px);container-name:method-list;container-type:inline-size}.SelectorWrapper{display:flex;flex-direction:row;align-items:center;justify-content:left;cursor:pointer;position:relative;height:var(--mmw-method-height, 80px);box-sizing:border-box;border-bottom:1px solid var(--mmw--color-grey-105, #E8E9EB);padding:0 var(--emw--spacing-small, 12px)}.SelectorWrapper:first-child{border-radius:var(--mmw--border-radius-medium-plus, 6px) var(--mmw--border-radius-medium-plus, 6px) 0 0}.SelectorWrapper:last-child{border-radius:0 0 var(--mmw--border-radius-medium-plus, 6px) var(--mmw--border-radius-medium-plus, 6px)}.SelectorWrapper.checked{background:var(--emw--color-background-secondary, #F9F8F8)}.SelectorWrapper:not(.checked):hover{background:linear-gradient(0, var(--emw--color-background-secondary, #F9F8F8) 0%, var(--emw--color-background, #fff) 100%)}.MethodLogo{display:flex;justify-content:center;align-items:center;margin-right:var(--mmw--spacing-small, 14px);width:var(--mmw-logo-width, 110px);min-height:var(--mmw-logo-height, 64px);background:var(--emw--color-background, #FFF);border:1px solid var(--mmw--color-grey-105, #E8E9EB);border-radius:var(--mmw--border-radius-medium-plus, 6px);overflow:hidden;max-height:calc(100% - var(--emw--spacing-small, 12px) - var(--emw--spacing-small, 12px))}.MethodLogo img{width:100%;height:100%}.MethodTitle{color:var(--mmw--color-grey-10, #111);font-size:var(--emw--font-size-medium, 16px);word-break:break-all}.MethodLimits{display:flex;flex-direction:column;align-items:flex-end;margin-left:auto}.Limits{max-width:100%;white-space:nowrap;font-size:var(--emw--font-size-small, 14px);line-height:var(--emw--line-height-xl, 24px);color:var(--mmw--color-grey-290, #666);font-weight:var(--emw--font-weight-normal, 400);font-style:normal}.EmptyContentMessageWrapper{display:flex;flex-direction:column;box-sizing:border-box;background:var(--emw--color-gray-50, #F7F8FA);border-bottom:1px solid var(--mmw--color-grey-105, #E8E9EB);padding:var(--emw--spacing-small, 12px);max-height:500px}.EmptyContentMessageHeader{display:flex;gap:4px;align-items:end}.EmptyContentMessageTitle{font-size:var(--emw--font-size-small, 16px);font-weight:var(--emw--font-weight-semibold, 500);color:var(--emw--color-warning, rgb(250, 146, 0))}.EmptyContentMessageText{word-break:break-word;padding:var(--emw--spacing-small, 12px) calc(var(--emw--spacing-small, 12px) / 2);font-size:var(--emw--font-size-small, 14px)}.EmptyContentMessageDesktop p{font-size:var(--emw--font-size-medium, 16px)}.IconWarning{width:30px;display:flex}.IconWarning svg{height:18px;fill:var(--emw--color-warning, rgb(250, 146, 0))}.ShowAllButton{cursor:pointer;color:var(--mmw--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(--mmw--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)}@container method-list (width < 450px){.MethodLogo{min-width:var(--mmw-logo-small-width, 90px);min-height:var(--mmw-logo--small-height, 50px);overflow:hidden}.CashierMethodList .MethodTitle{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}.CashierMethodList .MethodLimits .Limits{flex-shrink:0;font-size:var(--emw--font-size-x-small, 12px)}}@container method-list (max-width: 300px){.Limits{display:none}}");
|
|
48
48
|
}
|
|
49
49
|
function ce(t, e, s) {
|
|
50
50
|
const r = t.slice();
|
|
@@ -85,7 +85,7 @@ function de(t) {
|
|
|
85
85
|
);
|
|
86
86
|
},
|
|
87
87
|
d(s) {
|
|
88
|
-
s &&
|
|
88
|
+
s && N(e);
|
|
89
89
|
}
|
|
90
90
|
};
|
|
91
91
|
}
|
|
@@ -139,7 +139,7 @@ function ue(t) {
|
|
|
139
139
|
c[7] ? m ? m.p(c, f) : (m = fe(c), m.c(), m.m(e, null)) : m && (m.d(1), m = null);
|
|
140
140
|
},
|
|
141
141
|
d(c) {
|
|
142
|
-
c &&
|
|
142
|
+
c && N(e), He(o, c), i && i.d(), m && m.d(), t[27](null);
|
|
143
143
|
}
|
|
144
144
|
};
|
|
145
145
|
}
|
|
@@ -151,25 +151,25 @@ function he(t) {
|
|
|
151
151
|
), f, u, g, p, P = (
|
|
152
152
|
/*$_*/
|
|
153
153
|
t[14]("generalMin") + ""
|
|
154
|
-
),
|
|
154
|
+
), H, k, S = (
|
|
155
155
|
/*formatter*/
|
|
156
156
|
t[15].format(
|
|
157
157
|
/*payMeth*/
|
|
158
158
|
t[48].DisplayCurrency.MinAmountLimit
|
|
159
159
|
) + ""
|
|
160
|
-
),
|
|
160
|
+
), D, F, L = (
|
|
161
161
|
/*payMeth*/
|
|
162
162
|
t[48].DisplayCurrency.Name + ""
|
|
163
|
-
), W,
|
|
163
|
+
), W, J, E, O = (
|
|
164
164
|
/*$_*/
|
|
165
165
|
t[14]("generalMax") + ""
|
|
166
|
-
),
|
|
166
|
+
), U, I, j = (
|
|
167
167
|
/*formatter*/
|
|
168
168
|
t[15].format(
|
|
169
169
|
/*payMeth*/
|
|
170
170
|
t[48].DisplayCurrency.MaxAmountLimit
|
|
171
171
|
) + ""
|
|
172
|
-
), R,
|
|
172
|
+
), R, Y, G = (
|
|
173
173
|
/*payMeth*/
|
|
174
174
|
t[48].DisplayCurrency.Name + ""
|
|
175
175
|
), V, q, X;
|
|
@@ -184,7 +184,7 @@ function he(t) {
|
|
|
184
184
|
}
|
|
185
185
|
return {
|
|
186
186
|
c() {
|
|
187
|
-
e = y("div"), s = y("div"), r = y("img"), o = _(), i = y("div"), m = y("span"), f =
|
|
187
|
+
e = y("div"), s = y("div"), r = y("img"), o = _(), i = y("div"), m = y("span"), f = T(c), u = _(), g = y("div"), p = y("span"), H = T(P), k = _(), D = T(S), F = _(), W = T(L), J = _(), E = y("span"), U = T(O), I = _(), R = T(j), Y = _(), V = T(G), oe(r.src, a = /*payMeth*/
|
|
188
188
|
t[48].LogoUrl) || w(r, "src", a), w(r, "alt", l = /*payMeth*/
|
|
189
189
|
t[48].Label), w(s, "class", "MethodLogo"), w(i, "class", "MethodTitle"), w(p, "class", "Limits"), w(E, "class", "Limits"), w(g, "class", "MethodLimits"), w(e, "class", "SelectorWrapper"), Q(
|
|
190
190
|
e,
|
|
@@ -195,9 +195,9 @@ function he(t) {
|
|
|
195
195
|
);
|
|
196
196
|
},
|
|
197
197
|
m(B, v) {
|
|
198
|
-
z(B, e, v), d(e, s), d(s, r), d(e, o), d(e, i), d(i, m), d(m, f), d(e, u), d(e, g), d(g, p), d(p,
|
|
198
|
+
z(B, e, v), d(e, s), d(s, r), d(e, o), d(e, i), d(i, m), d(m, f), d(e, u), d(e, g), d(g, p), d(p, H), d(p, k), d(p, D), d(p, F), d(p, W), d(g, J), d(g, E), d(E, U), d(E, I), d(E, R), d(E, Y), d(E, V), q || (X = [
|
|
199
199
|
ee(e, "click", K),
|
|
200
|
-
ee(e, "keyup",
|
|
200
|
+
ee(e, "keyup", Je)
|
|
201
201
|
], q = !0);
|
|
202
202
|
},
|
|
203
203
|
p(B, v) {
|
|
@@ -208,25 +208,25 @@ function he(t) {
|
|
|
208
208
|
t[48].Label) && w(r, "alt", l), v[0] & /*paymentMethodsToShow*/
|
|
209
209
|
256 && c !== (c = /*payMeth*/
|
|
210
210
|
(t[48].Label || /*payMeth*/
|
|
211
|
-
t[48].Name) + "") &&
|
|
211
|
+
t[48].Name) + "") && x(f, c), v[0] & /*$_*/
|
|
212
212
|
16384 && P !== (P = /*$_*/
|
|
213
|
-
t[14]("generalMin") + "") &&
|
|
214
|
-
256 &&
|
|
213
|
+
t[14]("generalMin") + "") && x(H, P), v[0] & /*paymentMethodsToShow*/
|
|
214
|
+
256 && S !== (S = /*formatter*/
|
|
215
215
|
t[15].format(
|
|
216
216
|
/*payMeth*/
|
|
217
217
|
t[48].DisplayCurrency.MinAmountLimit
|
|
218
|
-
) + "") &&
|
|
218
|
+
) + "") && x(D, S), v[0] & /*paymentMethodsToShow*/
|
|
219
219
|
256 && L !== (L = /*payMeth*/
|
|
220
|
-
t[48].DisplayCurrency.Name + "") &&
|
|
221
|
-
16384 &&
|
|
222
|
-
t[14]("generalMax") + "") &&
|
|
223
|
-
256 &&
|
|
220
|
+
t[48].DisplayCurrency.Name + "") && x(W, L), v[0] & /*$_*/
|
|
221
|
+
16384 && O !== (O = /*$_*/
|
|
222
|
+
t[14]("generalMax") + "") && x(U, O), v[0] & /*paymentMethodsToShow*/
|
|
223
|
+
256 && j !== (j = /*formatter*/
|
|
224
224
|
t[15].format(
|
|
225
225
|
/*payMeth*/
|
|
226
226
|
t[48].DisplayCurrency.MaxAmountLimit
|
|
227
|
-
) + "") &&
|
|
227
|
+
) + "") && x(R, j), v[0] & /*paymentMethodsToShow*/
|
|
228
228
|
256 && G !== (G = /*payMeth*/
|
|
229
|
-
t[48].DisplayCurrency.Name + "") &&
|
|
229
|
+
t[48].DisplayCurrency.Name + "") && x(V, G), v[0] & /*selectedPaymentMethod, paymentMethodsToShow*/
|
|
230
230
|
320 && Q(
|
|
231
231
|
e,
|
|
232
232
|
"checked",
|
|
@@ -236,7 +236,7 @@ function he(t) {
|
|
|
236
236
|
);
|
|
237
237
|
},
|
|
238
238
|
d(B) {
|
|
239
|
-
B &&
|
|
239
|
+
B && N(e), q = !1, We(X);
|
|
240
240
|
}
|
|
241
241
|
};
|
|
242
242
|
}
|
|
@@ -250,7 +250,7 @@ function ge(t) {
|
|
|
250
250
|
), u;
|
|
251
251
|
return {
|
|
252
252
|
c() {
|
|
253
|
-
e = y("div"), s = y("div"), r = y("div"), r.innerHTML = '<svg fill="currentColor" height="200px" width="200px" version="1.1" id="Capa_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 294.995 294.995" xml:space="preserve" stroke="#fa9200"><g id="SVGRepo_bgCarrier" stroke-width="0"></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"></g><g id="SVGRepo_iconCarrier"><g><path d="M291.874,248.279L165.605,26.526c-4.007-7.037-10.776-11.26-18.107-11.26s-14.101,4.202-18.107,11.239L3.121,248.238 c-3.979,6.989-4.164,15.013-0.493,21.326c3.67,6.313,10.663,10.165,18.705,10.165h252.329c8.042,0,15.035-3.852,18.705-10.165 C296.038,263.251,295.854,255.268,291.874,248.279z M146.665,86.229c9.665,0,17.5,7.835,17.5,17.5v63c0,9.665-7.835,17.5-17.5,17.5 c-9.665,0-17.5-7.835-17.5-17.5v-63C129.165,94.064,137,86.229,146.665,86.229z M147.498,204.005c9.665,0,17.5,7.835,17.5,17.5 c0,9.665-7.835,17.5-17.5,17.5c-9.665,0-17.5-7.835-17.5-17.5C129.998,211.84,137.833,204.005,147.498,204.005z"></path></g></g></svg>', a = _(), l = y("p"), i =
|
|
253
|
+
e = y("div"), s = y("div"), r = y("div"), r.innerHTML = '<svg fill="currentColor" height="200px" width="200px" version="1.1" id="Capa_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 294.995 294.995" xml:space="preserve" stroke="#fa9200"><g id="SVGRepo_bgCarrier" stroke-width="0"></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"></g><g id="SVGRepo_iconCarrier"><g><path d="M291.874,248.279L165.605,26.526c-4.007-7.037-10.776-11.26-18.107-11.26s-14.101,4.202-18.107,11.239L3.121,248.238 c-3.979,6.989-4.164,15.013-0.493,21.326c3.67,6.313,10.663,10.165,18.705,10.165h252.329c8.042,0,15.035-3.852,18.705-10.165 C296.038,263.251,295.854,255.268,291.874,248.279z M146.665,86.229c9.665,0,17.5,7.835,17.5,17.5v63c0,9.665-7.835,17.5-17.5,17.5 c-9.665,0-17.5-7.835-17.5-17.5v-63C129.165,94.064,137,86.229,146.665,86.229z M147.498,204.005c9.665,0,17.5,7.835,17.5,17.5 c0,9.665-7.835,17.5-17.5,17.5c-9.665,0-17.5-7.835-17.5-17.5C129.998,211.84,137.833,204.005,147.498,204.005z"></path></g></g></svg>', a = _(), l = y("p"), i = T(o), m = _(), c = y("p"), u = T(f), w(r, "class", "IconWarning"), w(l, "class", "EmptyContentMessageTitle"), w(s, "class", "EmptyContentMessageHeader"), w(c, "class", "EmptyContentMessageText"), w(e, "class", "EmptyContentMessageWrapper"), Q(
|
|
254
254
|
e,
|
|
255
255
|
"EmptyContentMessageDesktop",
|
|
256
256
|
/*desktopView*/
|
|
@@ -263,9 +263,9 @@ function ge(t) {
|
|
|
263
263
|
p(g, p) {
|
|
264
264
|
p[0] & /*$_*/
|
|
265
265
|
16384 && o !== (o = /*$_*/
|
|
266
|
-
g[14]("error") + "") &&
|
|
266
|
+
g[14]("error") + "") && x(i, o), p[0] & /*$_*/
|
|
267
267
|
16384 && f !== (f = /*$_*/
|
|
268
|
-
g[14]("noPaymentMethods") + "") &&
|
|
268
|
+
g[14]("noPaymentMethods") + "") && x(u, f), p[0] & /*desktopView*/
|
|
269
269
|
2048 && Q(
|
|
270
270
|
e,
|
|
271
271
|
"EmptyContentMessageDesktop",
|
|
@@ -274,7 +274,7 @@ function ge(t) {
|
|
|
274
274
|
);
|
|
275
275
|
},
|
|
276
276
|
d(g) {
|
|
277
|
-
g &&
|
|
277
|
+
g && N(e);
|
|
278
278
|
}
|
|
279
279
|
};
|
|
280
280
|
}
|
|
@@ -282,7 +282,7 @@ function fe(t) {
|
|
|
282
282
|
let e, s, r, a;
|
|
283
283
|
return {
|
|
284
284
|
c() {
|
|
285
|
-
e = y("div"), s =
|
|
285
|
+
e = y("div"), s = T(
|
|
286
286
|
/*methodsButtonToggleText*/
|
|
287
287
|
t[7]
|
|
288
288
|
), w(e, "class", "ShowAllButton");
|
|
@@ -297,14 +297,14 @@ function fe(t) {
|
|
|
297
297
|
},
|
|
298
298
|
p(l, o) {
|
|
299
299
|
o[0] & /*methodsButtonToggleText*/
|
|
300
|
-
128 &&
|
|
300
|
+
128 && x(
|
|
301
301
|
s,
|
|
302
302
|
/*methodsButtonToggleText*/
|
|
303
303
|
l[7]
|
|
304
304
|
);
|
|
305
305
|
},
|
|
306
306
|
d(l) {
|
|
307
|
-
l &&
|
|
307
|
+
l && N(e), r = !1, a();
|
|
308
308
|
}
|
|
309
309
|
};
|
|
310
310
|
}
|
|
@@ -312,7 +312,7 @@ function pe(t) {
|
|
|
312
312
|
let e, s, r;
|
|
313
313
|
return {
|
|
314
314
|
c() {
|
|
315
|
-
e = y("cashier-error"), s = y("span"), r =
|
|
315
|
+
e = y("cashier-error"), s = y("span"), r = T(
|
|
316
316
|
/*errorMessage*/
|
|
317
317
|
t[10]
|
|
318
318
|
), w(s, "slot", "text"), M(
|
|
@@ -347,7 +347,7 @@ function pe(t) {
|
|
|
347
347
|
},
|
|
348
348
|
p(a, l) {
|
|
349
349
|
l[0] & /*errorMessage*/
|
|
350
|
-
1024 &&
|
|
350
|
+
1024 && x(
|
|
351
351
|
r,
|
|
352
352
|
/*errorMessage*/
|
|
353
353
|
a[10]
|
|
@@ -384,7 +384,7 @@ function pe(t) {
|
|
|
384
384
|
);
|
|
385
385
|
},
|
|
386
386
|
d(a) {
|
|
387
|
-
a &&
|
|
387
|
+
a && N(e);
|
|
388
388
|
}
|
|
389
389
|
};
|
|
390
390
|
}
|
|
@@ -402,7 +402,7 @@ function qe(t) {
|
|
|
402
402
|
);
|
|
403
403
|
return {
|
|
404
404
|
c() {
|
|
405
|
-
a && a.c(), e = _(), l && l.c(), s = _(), o && o.c(), r =
|
|
405
|
+
a && a.c(), e = _(), l && l.c(), s = _(), o && o.c(), r = Pe();
|
|
406
406
|
},
|
|
407
407
|
m(i, m) {
|
|
408
408
|
a && a.m(i, m), z(i, e, m), l && l.m(i, m), z(i, s, m), o && o.m(i, m), z(i, r, m);
|
|
@@ -417,21 +417,21 @@ function qe(t) {
|
|
|
417
417
|
i: ie,
|
|
418
418
|
o: ie,
|
|
419
419
|
d(i) {
|
|
420
|
-
i && (
|
|
420
|
+
i && (N(e), N(s), N(r)), a && a.d(i), l && l.d(i), o && o.d(i);
|
|
421
421
|
}
|
|
422
422
|
};
|
|
423
423
|
}
|
|
424
|
-
const
|
|
424
|
+
const Je = () => {
|
|
425
425
|
};
|
|
426
|
-
function
|
|
426
|
+
function Ye(t, e, s) {
|
|
427
427
|
let r;
|
|
428
|
-
|
|
429
|
-
let { lang: a = "en" } = e, { local: l = "en-US" } = e, { endpoint: o } = e, { session: i } = e, { customerid: m } = e, { assetsurl: c } = e, { currency: f } = e, { numberofmethodsshown: u } = e, { translationurl: g = "" } = e, { clientstyling: p = "" } = e, { clientstylingurl: P = "" } = e, { ismobileview:
|
|
428
|
+
De(t, Be, (n) => s(14, r = n)), re.extend(Ie);
|
|
429
|
+
let { lang: a = "en" } = e, { local: l = "en-US" } = e, { endpoint: o } = e, { session: i } = e, { customerid: m } = e, { assetsurl: c } = e, { currency: f } = e, { numberofmethodsshown: u } = e, { translationurl: g = "" } = e, { clientstyling: p = "" } = e, { clientstylingurl: P = "" } = e, { ismobileview: H } = e, k = [], S, D, F = "", L = [], W = !0, J = new Intl.NumberFormat(l, { minimumFractionDigits: 2 }), E = "", O, U = !0, I = !1, j = !1;
|
|
430
430
|
var R;
|
|
431
431
|
(function(n) {
|
|
432
432
|
n.PlayerSessionIsNotValid = "PlayerSessionIsNotValid", n.Success = "Success", n.JwtTokenError = "JwtTokenError";
|
|
433
|
-
})(R || (R = {})),
|
|
434
|
-
const
|
|
433
|
+
})(R || (R = {})), Ne();
|
|
434
|
+
const Y = () => {
|
|
435
435
|
let n = g;
|
|
436
436
|
if (n)
|
|
437
437
|
return fetch(n).then((h) => h.json()).then((h) => {
|
|
@@ -466,26 +466,26 @@ function Je(t, e, s) {
|
|
|
466
466
|
return;
|
|
467
467
|
}
|
|
468
468
|
if (b.ResponseCode !== R.Success) {
|
|
469
|
-
|
|
469
|
+
O = b.ResponseCode, B();
|
|
470
470
|
return;
|
|
471
471
|
}
|
|
472
|
-
k = b.PaymentMethods?.Ordering ? q(b) : X(b), s(7,
|
|
472
|
+
k = b.PaymentMethods?.Ordering ? q(b) : X(b), s(7, F = u && +u > 0 && k.length > +u ? r("showAll") : ""), s(8, L = F ? k.slice(0, +u) : k), window.postMessage(
|
|
473
473
|
{
|
|
474
474
|
type: "StartSessionCountdown",
|
|
475
475
|
paymentMethodName: k[0].Name,
|
|
476
476
|
xPaymentSessionToken: b.XPaymentSessionToken
|
|
477
477
|
},
|
|
478
478
|
window.location.href
|
|
479
|
-
);
|
|
479
|
+
), window.postMessage({ type: "DataLoading", isDataLoaded: !1 });
|
|
480
480
|
}).finally(() => {
|
|
481
|
-
s(12, I = !1), s(13,
|
|
481
|
+
s(12, I = !1), window.postMessage({ type: "DataLoading", isDataLoaded: !0 }), s(13, j = !L.length);
|
|
482
482
|
});
|
|
483
483
|
}, q = (n) => {
|
|
484
484
|
const h = [];
|
|
485
485
|
return n.PaymentMethods.Ordering.DefaultPaymentMethodsOrder.forEach((A) => {
|
|
486
486
|
const b = n.PaymentMethods.PaymentMethods.find((Z) => Z.Name === A);
|
|
487
487
|
if (b) {
|
|
488
|
-
const Z = b?.Logos.find(($) => $.LogoType === "Desktop") || {},
|
|
488
|
+
const Z = b?.Logos.find(($) => $.LogoType === "Desktop") || {}, Ce = b?.Logos.find(($) => $.LogoType === "Mobile") || {}, ne = U ? Z : Ce;
|
|
489
489
|
h.push({
|
|
490
490
|
...b,
|
|
491
491
|
LogoUrl: ne.LogoUrl ? `https:${ne.LogoUrl}` : ""
|
|
@@ -496,7 +496,7 @@ function Je(t, e, s) {
|
|
|
496
496
|
...h,
|
|
497
497
|
LogoUrl: h.Logos && h.Logos.length && h.Logos[0].LogoUrl ? `https:${h.Logos[0].LogoUrl}` : ""
|
|
498
498
|
})), K = (n) => {
|
|
499
|
-
s(6,
|
|
499
|
+
s(6, D = n.Name), window.postMessage({ type: "SelectPayMeth", details: n }, window.location.href), dispatchEvent(new CustomEvent(
|
|
500
500
|
"selectPayMeth",
|
|
501
501
|
{
|
|
502
502
|
detail: n,
|
|
@@ -509,31 +509,31 @@ function Je(t, e, s) {
|
|
|
509
509
|
window.postMessage(
|
|
510
510
|
{
|
|
511
511
|
type: "ErrorResponseCode",
|
|
512
|
-
errorResponseCode:
|
|
512
|
+
errorResponseCode: O
|
|
513
513
|
},
|
|
514
514
|
window.location.href
|
|
515
515
|
);
|
|
516
516
|
}, v = () => {
|
|
517
|
-
s(11,
|
|
517
|
+
s(11, U = H === "false");
|
|
518
518
|
}, te = () => {
|
|
519
519
|
L == k ? ye() : we();
|
|
520
520
|
}, we = () => {
|
|
521
|
-
s(8, L = k), s(7,
|
|
521
|
+
s(8, L = k), s(7, F = r("showLess"));
|
|
522
522
|
}, ye = () => {
|
|
523
|
-
s(8, L = k.slice(0, +u)),
|
|
523
|
+
s(8, L = k.slice(0, +u)), D && !L.find((n) => n.Name === D) && L.splice(0, 0, k.find((n) => n.Name === D)), s(7, F = r("showAll"));
|
|
524
524
|
}, be = () => {
|
|
525
525
|
s(9, W = !0);
|
|
526
526
|
}, Me = (n) => {
|
|
527
527
|
s(9, W = !n.hideMethodsList);
|
|
528
528
|
}, ve = () => {
|
|
529
529
|
let n = document.createElement("style");
|
|
530
|
-
n.innerHTML = p,
|
|
530
|
+
n.innerHTML = p, S.appendChild(n);
|
|
531
531
|
}, Le = () => {
|
|
532
532
|
let n = new URL(P), h = document.createElement("style");
|
|
533
533
|
fetch(n.href).then((A) => A.text()).then((A) => {
|
|
534
534
|
h.innerHTML = A, setTimeout(
|
|
535
535
|
() => {
|
|
536
|
-
|
|
536
|
+
S.appendChild(h);
|
|
537
537
|
},
|
|
538
538
|
1
|
|
539
539
|
), setTimeout(
|
|
@@ -543,7 +543,7 @@ function Je(t, e, s) {
|
|
|
543
543
|
);
|
|
544
544
|
});
|
|
545
545
|
};
|
|
546
|
-
|
|
546
|
+
ze(() => (window.addEventListener("message", se, !1), () => {
|
|
547
547
|
window.removeEventListener("message", se, !1);
|
|
548
548
|
}));
|
|
549
549
|
const se = (n) => {
|
|
@@ -556,38 +556,38 @@ function Je(t, e, s) {
|
|
|
556
556
|
break;
|
|
557
557
|
}
|
|
558
558
|
}, _e = (n) => K(n), ke = () => te();
|
|
559
|
-
function
|
|
560
|
-
|
|
561
|
-
|
|
559
|
+
function Se(n) {
|
|
560
|
+
Fe[n ? "unshift" : "push"](() => {
|
|
561
|
+
S = n, s(5, S);
|
|
562
562
|
});
|
|
563
563
|
}
|
|
564
564
|
return t.$$set = (n) => {
|
|
565
|
-
"lang" in n && s(0, a = n.lang), "local" in n && s(18, l = n.local), "endpoint" in n && s(19, o = n.endpoint), "session" in n && s(20, i = n.session), "customerid" in n && s(21, m = n.customerid), "assetsurl" in n && s(1, c = n.assetsurl), "currency" in n && s(22, f = n.currency), "numberofmethodsshown" in n && s(23, u = n.numberofmethodsshown), "translationurl" in n && s(2, g = n.translationurl), "clientstyling" in n && s(3, p = n.clientstyling), "clientstylingurl" in n && s(4, P = n.clientstylingurl), "ismobileview" in n && s(24,
|
|
565
|
+
"lang" in n && s(0, a = n.lang), "local" in n && s(18, l = n.local), "endpoint" in n && s(19, o = n.endpoint), "session" in n && s(20, i = n.session), "customerid" in n && s(21, m = n.customerid), "assetsurl" in n && s(1, c = n.assetsurl), "currency" in n && s(22, f = n.currency), "numberofmethodsshown" in n && s(23, u = n.numberofmethodsshown), "translationurl" in n && s(2, g = n.translationurl), "clientstyling" in n && s(3, p = n.clientstyling), "clientstylingurl" in n && s(4, P = n.clientstylingurl), "ismobileview" in n && s(24, H = n.ismobileview);
|
|
566
566
|
}, t.$$.update = () => {
|
|
567
567
|
t.$$.dirty[0] & /*endpoint, session, customerid*/
|
|
568
568
|
3670016 && o && i && m && V(), t.$$.dirty[0] & /*lang*/
|
|
569
569
|
1 && a && G(), t.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
570
|
-
40 && p &&
|
|
571
|
-
48 && P &&
|
|
572
|
-
16777216 &&
|
|
573
|
-
5 && a && g &&
|
|
570
|
+
40 && p && S && ve(), t.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
571
|
+
48 && P && S && Le(), t.$$.dirty[0] & /*ismobileview*/
|
|
572
|
+
16777216 && H && v(), t.$$.dirty[0] & /*lang, translationurl*/
|
|
573
|
+
5 && a && g && Y();
|
|
574
574
|
}, [
|
|
575
575
|
a,
|
|
576
576
|
c,
|
|
577
577
|
g,
|
|
578
578
|
p,
|
|
579
579
|
P,
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
580
|
+
S,
|
|
581
|
+
D,
|
|
582
|
+
F,
|
|
583
583
|
L,
|
|
584
584
|
W,
|
|
585
585
|
E,
|
|
586
|
-
O,
|
|
587
|
-
I,
|
|
588
586
|
U,
|
|
587
|
+
I,
|
|
588
|
+
j,
|
|
589
589
|
r,
|
|
590
|
-
|
|
590
|
+
J,
|
|
591
591
|
K,
|
|
592
592
|
te,
|
|
593
593
|
l,
|
|
@@ -596,10 +596,10 @@ function Je(t, e, s) {
|
|
|
596
596
|
m,
|
|
597
597
|
f,
|
|
598
598
|
u,
|
|
599
|
-
|
|
599
|
+
H,
|
|
600
600
|
_e,
|
|
601
601
|
ke,
|
|
602
|
-
|
|
602
|
+
Se
|
|
603
603
|
];
|
|
604
604
|
}
|
|
605
605
|
class Xe extends Ee {
|
|
@@ -607,9 +607,9 @@ class Xe extends Ee {
|
|
|
607
607
|
super(), xe(
|
|
608
608
|
this,
|
|
609
609
|
e,
|
|
610
|
-
|
|
610
|
+
Ye,
|
|
611
611
|
qe,
|
|
612
|
-
|
|
612
|
+
Te,
|
|
613
613
|
{
|
|
614
614
|
lang: 0,
|
|
615
615
|
local: 18,
|
|
@@ -632,76 +632,76 @@ class Xe extends Ee {
|
|
|
632
632
|
return this.$$.ctx[0];
|
|
633
633
|
}
|
|
634
634
|
set lang(e) {
|
|
635
|
-
this.$$set({ lang: e }),
|
|
635
|
+
this.$$set({ lang: e }), C();
|
|
636
636
|
}
|
|
637
637
|
get local() {
|
|
638
638
|
return this.$$.ctx[18];
|
|
639
639
|
}
|
|
640
640
|
set local(e) {
|
|
641
|
-
this.$$set({ local: e }),
|
|
641
|
+
this.$$set({ local: e }), C();
|
|
642
642
|
}
|
|
643
643
|
get endpoint() {
|
|
644
644
|
return this.$$.ctx[19];
|
|
645
645
|
}
|
|
646
646
|
set endpoint(e) {
|
|
647
|
-
this.$$set({ endpoint: e }),
|
|
647
|
+
this.$$set({ endpoint: e }), C();
|
|
648
648
|
}
|
|
649
649
|
get session() {
|
|
650
650
|
return this.$$.ctx[20];
|
|
651
651
|
}
|
|
652
652
|
set session(e) {
|
|
653
|
-
this.$$set({ session: e }),
|
|
653
|
+
this.$$set({ session: e }), C();
|
|
654
654
|
}
|
|
655
655
|
get customerid() {
|
|
656
656
|
return this.$$.ctx[21];
|
|
657
657
|
}
|
|
658
658
|
set customerid(e) {
|
|
659
|
-
this.$$set({ customerid: e }),
|
|
659
|
+
this.$$set({ customerid: e }), C();
|
|
660
660
|
}
|
|
661
661
|
get assetsurl() {
|
|
662
662
|
return this.$$.ctx[1];
|
|
663
663
|
}
|
|
664
664
|
set assetsurl(e) {
|
|
665
|
-
this.$$set({ assetsurl: e }),
|
|
665
|
+
this.$$set({ assetsurl: e }), C();
|
|
666
666
|
}
|
|
667
667
|
get currency() {
|
|
668
668
|
return this.$$.ctx[22];
|
|
669
669
|
}
|
|
670
670
|
set currency(e) {
|
|
671
|
-
this.$$set({ currency: e }),
|
|
671
|
+
this.$$set({ currency: e }), C();
|
|
672
672
|
}
|
|
673
673
|
get numberofmethodsshown() {
|
|
674
674
|
return this.$$.ctx[23];
|
|
675
675
|
}
|
|
676
676
|
set numberofmethodsshown(e) {
|
|
677
|
-
this.$$set({ numberofmethodsshown: e }),
|
|
677
|
+
this.$$set({ numberofmethodsshown: e }), C();
|
|
678
678
|
}
|
|
679
679
|
get translationurl() {
|
|
680
680
|
return this.$$.ctx[2];
|
|
681
681
|
}
|
|
682
682
|
set translationurl(e) {
|
|
683
|
-
this.$$set({ translationurl: e }),
|
|
683
|
+
this.$$set({ translationurl: e }), C();
|
|
684
684
|
}
|
|
685
685
|
get clientstyling() {
|
|
686
686
|
return this.$$.ctx[3];
|
|
687
687
|
}
|
|
688
688
|
set clientstyling(e) {
|
|
689
|
-
this.$$set({ clientstyling: e }),
|
|
689
|
+
this.$$set({ clientstyling: e }), C();
|
|
690
690
|
}
|
|
691
691
|
get clientstylingurl() {
|
|
692
692
|
return this.$$.ctx[4];
|
|
693
693
|
}
|
|
694
694
|
set clientstylingurl(e) {
|
|
695
|
-
this.$$set({ clientstylingurl: e }),
|
|
695
|
+
this.$$set({ clientstylingurl: e }), C();
|
|
696
696
|
}
|
|
697
697
|
get ismobileview() {
|
|
698
698
|
return this.$$.ctx[24];
|
|
699
699
|
}
|
|
700
700
|
set ismobileview(e) {
|
|
701
|
-
this.$$set({ ismobileview: e }),
|
|
701
|
+
this.$$set({ ismobileview: e }), C();
|
|
702
702
|
}
|
|
703
703
|
}
|
|
704
|
-
|
|
704
|
+
Oe(Xe, { lang: {}, local: {}, endpoint: {}, session: {}, customerid: {}, assetsurl: {}, currency: {}, numberofmethodsshown: {}, translationurl: {}, clientstyling: {}, clientstylingurl: {}, ismobileview: {} }, [], [], !0);
|
|
705
705
|
export {
|
|
706
706
|
Xe as default
|
|
707
707
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var ye=Object.defineProperty,be=Object.defineProperties;var ve=Object.getOwnPropertyDescriptors;var K=Object.getOwnPropertySymbols;var Me=Object.prototype.hasOwnProperty,Le=Object.prototype.propertyIsEnumerable;var Q=(n,t,s)=>t in n?ye(n,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):n[t]=s,G=(n,t)=>{for(var s in t||(t={}))Me.call(t,s)&&Q(n,s,t[s]);if(K)for(var s of K(t))Le.call(t,s)&&Q(n,s,t[s]);return n},V=(n,t)=>be(n,ve(t));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CashierConfirmModal-KmRU3Mgr.cjs"),q=require("./CashierError-Dj9dAyT_.cjs"),Y=require("./CashierMethodDetails-Bs5PGaZC.cjs");function $(n,t){q.addMessages(n,t)}function ke(n){q.init({fallbackLocale:"en"}),q.$locale.set(n)}const ee={en:{generalMin:"Min",generalMax:"Max",showAll:"SHOW ALL",showLess:"SHOW LESS",error:"Error",noPaymentMethods:"No payment methods available"},uk:{generalMin:"Мін",generalMax:"Макс"},hr:{generalMin:"Minimalno",generalMax:"Maksimalno",showAll:"Prikaži sve",showLess:"Prikaži manje"},tr:{generalMin:"Min",generalMax:"Maks",showAll:"HEPSİNİ GÖSTER",showLess:"DAHA AZ GÖSTER",error:"Hata",noPaymentMethods:"Hiçbir ödeme yöntemi mevcut değil"},"en-us":{generalMin:"Min",generalMax:"Max",showAll:"SHOW ALL",showLess:"SHOW LESS"}};function Ce(n){e.append_styles(n,"svelte-1wlv0rl","*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.CashierMethodList{display:flex;flex-direction:column;background:var(--emw--color-background, #fff);box-shadow:0 0 4px var(--mmw--color-black-transparency-10, rgba(0, 0, 0, 0.1));width:100%;border-radius:var(--mmw--border-radius-medium-plus, 6px);container-name:method-list;container-type:inline-size}.SelectorWrapper{display:flex;flex-direction:row;align-items:center;justify-content:left;cursor:pointer;position:relative;height:var(--mmw-method-height, 80px);box-sizing:border-box;border-bottom:1px solid var(--mmw--color-grey-105, #E8E9EB);padding:0 var(--emw--spacing-small, 12px)}.SelectorWrapper:first-child{border-radius:var(--mmw--border-radius-medium-plus, 6px) var(--mmw--border-radius-medium-plus, 6px) 0 0}.SelectorWrapper:last-child{border-radius:0 0 var(--mmw--border-radius-medium-plus, 6px) var(--mmw--border-radius-medium-plus, 6px)}.SelectorWrapper.checked{background:var(--emw--color-background-secondary, #F9F8F8)}.SelectorWrapper:not(.checked):hover{background:linear-gradient(0, var(--emw--color-background-secondary, #F9F8F8) 0%, var(--emw--color-background, #fff) 100%)}.MethodLogo{display:flex;justify-content:center;align-items:center;margin-right:var(--mmw--spacing-small, 14px);width:var(--mmw-logo-width, 110px);min-height:var(--mmw-logo-height, 64px);background:var(--emw--color-background, #FFF);border:1px solid var(--mmw--color-grey-105, #E8E9EB);border-radius:var(--mmw--border-radius-medium-plus, 6px);overflow:hidden;max-height:calc(100% - var(--emw--spacing-small, 12px) - var(--emw--spacing-small, 12px))}.MethodLogo img{width:100%;height:100%}.MethodTitle{color:var(--mmw--color-grey-10, #111);font-size:var(--emw--font-size-medium, 16px);word-break:break-all}.MethodLimits{display:flex;flex-direction:column;align-items:flex-end;margin-left:auto}.Limits{max-width:100%;white-space:nowrap;font-size:var(--emw--font-size-small, 14px);line-height:var(--emw--line-height-xl, 24px);color:var(--mmw--color-grey-290, #666);font-weight:var(--emw--font-weight-normal, 400);font-style:normal}.EmptyContentMessageWrapper{display:flex;flex-direction:column;box-sizing:border-box;background:var(--emw--color-gray-50, #F7F8FA);border-bottom:1px solid var(--mmw--color-grey-105, #E8E9EB);padding:var(--emw--spacing-small, 12px);max-height:500px}.EmptyContentMessageHeader{display:flex;gap:4px;align-items:end}.EmptyContentMessageTitle{font-size:var(--emw--font-size-small, 16px);font-weight:var(--emw--font-weight-semibold, 500);color:var(--emw--color-warning, rgb(250, 146, 0))}.EmptyContentMessageText{word-break:break-word;padding:var(--emw--spacing-small, 12px) calc(var(--emw--spacing-small, 12px) / 2);font-size:var(--emw--font-size-small, 14px)}.EmptyContentMessageDesktop p{font-size:var(--emw--font-size-medium, 16px)}.IconWarning{width:30px;display:flex}.IconWarning svg{height:18px;fill:var(--emw--color-warning, rgb(250, 146, 0))}.ShowAllButton{cursor:pointer;color:var(--mmw--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(--mmw--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)}@container method-list (width < 450px){.MethodLogo{min-width:var(--mmw-logo-small-width, 90px);min-height:var(--mmw-logo--small-height, 50px);overflow:hidden}.CashierMethodList .MethodTitle{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}.CashierMethodList .MethodLimits .Limits{flex-shrink:0;font-size:var(--emw--font-size-x-small, 12px)}}@container method-list (max-width: 300px){.Limits{display:none}}")}function te(n,t,s){const a=n.slice();return a[48]=t[s],a[50]=s,a}function ne(n){let t;return{c(){t=e.element("cashier-spinner"),e.set_custom_element_data(t,"clientstylingurl",n[4]),e.set_custom_element_data(t,"clientstyling",n[3])},m(s,a){e.insert(s,t,a)},p(s,a){a[0]&16&&e.set_custom_element_data(t,"clientstylingurl",s[4]),a[0]&8&&e.set_custom_element_data(t,"clientstyling",s[3])},d(s){s&&e.detach(t)}}}function se(n){let t,s,a,m,o=e.ensure_array_like(n[8]),r=[];for(let d=0;d<o.length;d+=1)r[d]=le(te(n,o,d));let i=n[13]&&!n[12]&&ie(n),c=n[7]&&oe(n);return{c(){t=e.element("div"),s=e.element("div");for(let d=0;d<r.length;d+=1)r[d].c();a=e.space(),i&&i.c(),m=e.space(),c&&c.c(),e.attr(s,"class","CashierMethodList"),e.attr(t,"class","CashierMethodListWidget")},m(d,g){e.insert(d,t,g),e.append(t,s);for(let u=0;u<r.length;u+=1)r[u]&&r[u].m(s,null);e.append(s,a),i&&i.m(s,null),e.append(t,m),c&&c.m(t,null),n[27](t)},p(d,g){if(g[0]&115008){o=e.ensure_array_like(d[8]);let u;for(u=0;u<o.length;u+=1){const p=te(d,o,u);r[u]?r[u].p(p,g):(r[u]=le(p),r[u].c(),r[u].m(s,a))}for(;u<r.length;u+=1)r[u].d(1);r.length=o.length}d[13]&&!d[12]?i?i.p(d,g):(i=ie(d),i.c(),i.m(s,null)):i&&(i.d(1),i=null),d[7]?c?c.p(d,g):(c=oe(d),c.c(),c.m(t,null)):c&&(c.d(1),c=null)},d(d){d&&e.detach(t),e.destroy_each(r,d),i&&i.d(),c&&c.d(),n[27](null)}}}function le(n){let t,s,a,m,o,r,i,c,d=(n[48].Label||n[48].Name)+"",g,u,p,f,k=n[14]("generalMin")+"",S,b,v=n[15].format(n[48].DisplayCurrency.MinAmountLimit)+"",C,x,y=n[48].DisplayCurrency.Name+"",E,W,M,T=n[14]("generalMax")+"",A,D,P=n[15].format(n[48].DisplayCurrency.MaxAmountLimit)+"",N,U,F=n[48].DisplayCurrency.Name+"",j,O,R;function B(){return n[25](n[48])}return{c(){t=e.element("div"),s=e.element("div"),a=e.element("img"),r=e.space(),i=e.element("div"),c=e.element("span"),g=e.text(d),u=e.space(),p=e.element("div"),f=e.element("span"),S=e.text(k),b=e.space(),C=e.text(v),x=e.space(),E=e.text(y),W=e.space(),M=e.element("span"),A=e.text(T),D=e.space(),N=e.text(P),U=e.space(),j=e.text(F),e.src_url_equal(a.src,m=n[48].LogoUrl)||e.attr(a,"src",m),e.attr(a,"alt",o=n[48].Label),e.attr(s,"class","MethodLogo"),e.attr(i,"class","MethodTitle"),e.attr(f,"class","Limits"),e.attr(M,"class","Limits"),e.attr(p,"class","MethodLimits"),e.attr(t,"class","SelectorWrapper"),e.toggle_class(t,"checked",n[6]===n[48].Name)},m(z,_){e.insert(z,t,_),e.append(t,s),e.append(s,a),e.append(t,r),e.append(t,i),e.append(i,c),e.append(c,g),e.append(t,u),e.append(t,p),e.append(p,f),e.append(f,S),e.append(f,b),e.append(f,C),e.append(f,x),e.append(f,E),e.append(p,W),e.append(p,M),e.append(M,A),e.append(M,D),e.append(M,N),e.append(M,U),e.append(M,j),O||(R=[e.listen(t,"click",B),e.listen(t,"keyup",xe)],O=!0)},p(z,_){n=z,_[0]&256&&!e.src_url_equal(a.src,m=n[48].LogoUrl)&&e.attr(a,"src",m),_[0]&256&&o!==(o=n[48].Label)&&e.attr(a,"alt",o),_[0]&256&&d!==(d=(n[48].Label||n[48].Name)+"")&&e.set_data(g,d),_[0]&16384&&k!==(k=n[14]("generalMin")+"")&&e.set_data(S,k),_[0]&256&&v!==(v=n[15].format(n[48].DisplayCurrency.MinAmountLimit)+"")&&e.set_data(C,v),_[0]&256&&y!==(y=n[48].DisplayCurrency.Name+"")&&e.set_data(E,y),_[0]&16384&&T!==(T=n[14]("generalMax")+"")&&e.set_data(A,T),_[0]&256&&P!==(P=n[15].format(n[48].DisplayCurrency.MaxAmountLimit)+"")&&e.set_data(N,P),_[0]&256&&F!==(F=n[48].DisplayCurrency.Name+"")&&e.set_data(j,F),_[0]&320&&e.toggle_class(t,"checked",n[6]===n[48].Name)},d(z){z&&e.detach(t),O=!1,e.run_all(R)}}}function ie(n){let t,s,a,m,o,r=n[14]("error")+"",i,c,d,g=n[14]("noPaymentMethods")+"",u;return{c(){t=e.element("div"),s=e.element("div"),a=e.element("div"),a.innerHTML='<svg fill="currentColor" height="200px" width="200px" version="1.1" id="Capa_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 294.995 294.995" xml:space="preserve" stroke="#fa9200"><g id="SVGRepo_bgCarrier" stroke-width="0"></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"></g><g id="SVGRepo_iconCarrier"><g><path d="M291.874,248.279L165.605,26.526c-4.007-7.037-10.776-11.26-18.107-11.26s-14.101,4.202-18.107,11.239L3.121,248.238 c-3.979,6.989-4.164,15.013-0.493,21.326c3.67,6.313,10.663,10.165,18.705,10.165h252.329c8.042,0,15.035-3.852,18.705-10.165 C296.038,263.251,295.854,255.268,291.874,248.279z M146.665,86.229c9.665,0,17.5,7.835,17.5,17.5v63c0,9.665-7.835,17.5-17.5,17.5 c-9.665,0-17.5-7.835-17.5-17.5v-63C129.165,94.064,137,86.229,146.665,86.229z M147.498,204.005c9.665,0,17.5,7.835,17.5,17.5 c0,9.665-7.835,17.5-17.5,17.5c-9.665,0-17.5-7.835-17.5-17.5C129.998,211.84,137.833,204.005,147.498,204.005z"></path></g></g></svg>',m=e.space(),o=e.element("p"),i=e.text(r),c=e.space(),d=e.element("p"),u=e.text(g),e.attr(a,"class","IconWarning"),e.attr(o,"class","EmptyContentMessageTitle"),e.attr(s,"class","EmptyContentMessageHeader"),e.attr(d,"class","EmptyContentMessageText"),e.attr(t,"class","EmptyContentMessageWrapper"),e.toggle_class(t,"EmptyContentMessageDesktop",n[11])},m(p,f){e.insert(p,t,f),e.append(t,s),e.append(s,a),e.append(s,m),e.append(s,o),e.append(o,i),e.append(t,c),e.append(t,d),e.append(d,u)},p(p,f){f[0]&16384&&r!==(r=p[14]("error")+"")&&e.set_data(i,r),f[0]&16384&&g!==(g=p[14]("noPaymentMethods")+"")&&e.set_data(u,g),f[0]&2048&&e.toggle_class(t,"EmptyContentMessageDesktop",p[11])},d(p){p&&e.detach(t)}}}function oe(n){let t,s,a,m;return{c(){t=e.element("div"),s=e.text(n[7]),e.attr(t,"class","ShowAllButton")},m(o,r){e.insert(o,t,r),e.append(t,s),a||(m=e.listen(t,"click",n[26]),a=!0)},p(o,r){r[0]&128&&e.set_data(s,o[7])},d(o){o&&e.detach(t),a=!1,m()}}}function re(n){let t,s,a;return{c(){t=e.element("cashier-error"),s=e.element("span"),a=e.text(n[10]),e.attr(s,"slot","text"),e.set_custom_element_data(t,"lang",n[0]),e.set_custom_element_data(t,"assetsurl",n[1]),e.set_custom_element_data(t,"translationurl",n[2]),e.set_custom_element_data(t,"clientstylingurl",n[4]),e.set_custom_element_data(t,"clientstyling",n[3]),e.set_custom_element_data(t,"hidebuttons","true")},m(m,o){e.insert(m,t,o),e.append(t,s),e.append(s,a)},p(m,o){o[0]&1024&&e.set_data(a,m[10]),o[0]&1&&e.set_custom_element_data(t,"lang",m[0]),o[0]&2&&e.set_custom_element_data(t,"assetsurl",m[1]),o[0]&4&&e.set_custom_element_data(t,"translationurl",m[2]),o[0]&16&&e.set_custom_element_data(t,"clientstylingurl",m[4]),o[0]&8&&e.set_custom_element_data(t,"clientstyling",m[3])},d(m){m&&e.detach(t)}}}function Se(n){let t,s,a,m=n[12]&&ne(n),o=(n[9]||n[11])&&se(n),r=n[10]&&re(n);return{c(){m&&m.c(),t=e.space(),o&&o.c(),s=e.space(),r&&r.c(),a=e.empty()},m(i,c){m&&m.m(i,c),e.insert(i,t,c),o&&o.m(i,c),e.insert(i,s,c),r&&r.m(i,c),e.insert(i,a,c)},p(i,c){i[12]?m?m.p(i,c):(m=ne(i),m.c(),m.m(t.parentNode,t)):m&&(m.d(1),m=null),i[9]||i[11]?o?o.p(i,c):(o=se(i),o.c(),o.m(s.parentNode,s)):o&&(o.d(1),o=null),i[10]?r?r.p(i,c):(r=re(i),r.c(),r.m(a.parentNode,a)):r&&(r.d(1),r=null)},i:e.noop,o:e.noop,d(i){i&&(e.detach(t),e.detach(s),e.detach(a)),m&&m.d(i),o&&o.d(i),r&&r.d(i)}}}const xe=()=>{};function Ee(n,t,s){let a;e.component_subscribe(n,q.$format,l=>s(14,a=l)),Y.dayjs.extend(Y.utc);let{lang:m="en"}=t,{local:o="en-US"}=t,{endpoint:r}=t,{session:i}=t,{customerid:c}=t,{assetsurl:d}=t,{currency:g}=t,{numberofmethodsshown:u}=t,{translationurl:p=""}=t,{clientstyling:f=""}=t,{clientstylingurl:k=""}=t,{ismobileview:S}=t,b=[],v,C,x="",y=[],E=!0,W=new Intl.NumberFormat(o,{minimumFractionDigits:2}),M="",T,A=!0,D=!1,P=!1;var N;(function(l){l.PlayerSessionIsNotValid="PlayerSessionIsNotValid",l.Success="Success",l.JwtTokenError="JwtTokenError"})(N||(N={})),e.createEventDispatcher();const U=()=>{let l=p;if(l)return fetch(l).then(h=>h.json()).then(h=>{Object.keys(h).forEach(L=>{$(L,h[L])})}).catch(h=>{console.log(h)})};Object.keys(ee).forEach(l=>{$(l,ee[l])});const F=()=>{ke(m)},j=()=>{s(12,D=!0);const l=new URL(`${r}/v1/player/${c}/payment/GetPaymentMetadata`),h=new Headers;h.append("accept","application/json"),h.append("Content-Type","application/json"),h.append("X-Client-Request-Timestamp",Y.dayjs.utc().format("YYYY-MM-DD HH:mm:ss.SSS"));const L={method:"POST",headers:h,body:JSON.stringify({XPaymentSessionToken:i,Currency:g,Tags:{UserAgent:window.navigator.userAgent}})};fetch(l,L).then(w=>w.json()).then(w=>{var H;if(w.error){s(10,M=w.error);return}if(w.ResponseCode!==N.Success){T=w.ResponseCode,z();return}b=(H=w.PaymentMethods)!=null&&H.Ordering?O(w):R(w),s(7,x=u&&+u>0&&b.length>+u?a("showAll"):""),s(8,y=x?b.slice(0,+u):b),window.postMessage({type:"StartSessionCountdown",paymentMethodName:b[0].Name,xPaymentSessionToken:w.XPaymentSessionToken},window.location.href)}).finally(()=>{s(12,D=!1),s(13,P=!y.length)})},O=l=>{const h=[];return l.PaymentMethods.Ordering.DefaultPaymentMethodsOrder.forEach(L=>{const w=l.PaymentMethods.PaymentMethods.find(H=>H.Name===L);if(w){const H=(w==null?void 0:w.Logos.find(I=>I.LogoType==="Desktop"))||{},_e=(w==null?void 0:w.Logos.find(I=>I.LogoType==="Mobile"))||{},Z=A?H:_e;h.push(V(G({},w),{LogoUrl:Z.LogoUrl?`https:${Z.LogoUrl}`:""}))}}),h},R=l=>l.PaymentMethods.PaymentMethods.map(h=>V(G({},h),{LogoUrl:h.Logos&&h.Logos.length&&h.Logos[0].LogoUrl?`https:${h.Logos[0].LogoUrl}`:""})),B=l=>{s(6,C=l.Name),window.postMessage({type:"SelectPayMeth",details:l},window.location.href),dispatchEvent(new CustomEvent("selectPayMeth",{detail:l,bubbles:!0,cancelable:!0,composed:!0}))},z=()=>{window.postMessage({type:"ErrorResponseCode",errorResponseCode:T},window.location.href)},_=()=>{s(11,A=S==="false")},J=()=>{y==b?ce():me()},me=()=>{s(8,y=b),s(7,x=a("showLess"))},ce=()=>{s(8,y=b.slice(0,+u)),C&&!y.find(l=>l.Name===C)&&y.splice(0,0,b.find(l=>l.Name===C)),s(7,x=a("showAll"))},de=()=>{s(9,E=!0)},ue=l=>{s(9,E=!l.hideMethodsList)},he=()=>{let l=document.createElement("style");l.innerHTML=f,v.appendChild(l)},pe=()=>{let l=new URL(k),h=document.createElement("style");fetch(l.href).then(L=>L.text()).then(L=>{h.innerHTML=L,setTimeout(()=>{v.appendChild(h)},1),setTimeout(()=>{},500)})};e.onMount(()=>(window.addEventListener("message",X,!1),()=>{window.removeEventListener("message",X,!1)}));const X=l=>{switch(l.data.type){case"BackToMethodList":de();break;case"HideMethodsList":ue(l.data.details);break}},ge=l=>B(l),fe=()=>J();function we(l){e.binding_callbacks[l?"unshift":"push"](()=>{v=l,s(5,v)})}return n.$$set=l=>{"lang"in l&&s(0,m=l.lang),"local"in l&&s(18,o=l.local),"endpoint"in l&&s(19,r=l.endpoint),"session"in l&&s(20,i=l.session),"customerid"in l&&s(21,c=l.customerid),"assetsurl"in l&&s(1,d=l.assetsurl),"currency"in l&&s(22,g=l.currency),"numberofmethodsshown"in l&&s(23,u=l.numberofmethodsshown),"translationurl"in l&&s(2,p=l.translationurl),"clientstyling"in l&&s(3,f=l.clientstyling),"clientstylingurl"in l&&s(4,k=l.clientstylingurl),"ismobileview"in l&&s(24,S=l.ismobileview)},n.$$.update=()=>{n.$$.dirty[0]&3670016&&r&&i&&c&&j(),n.$$.dirty[0]&1&&m&&F(),n.$$.dirty[0]&40&&f&&v&&he(),n.$$.dirty[0]&48&&k&&v&&pe(),n.$$.dirty[0]&16777216&&S&&_(),n.$$.dirty[0]&5&&m&&p&&U()},[m,d,p,f,k,v,C,x,y,E,M,A,D,P,a,W,B,J,o,r,i,c,g,u,S,ge,fe,we]}class ae extends e.SvelteComponent{constructor(t){super(),e.init(this,t,Ee,Se,e.safe_not_equal,{lang:0,local:18,endpoint:19,session:20,customerid:21,assetsurl:1,currency:22,numberofmethodsshown:23,translationurl:2,clientstyling:3,clientstylingurl:4,ismobileview:24},Ce,[-1,-1])}get lang(){return this.$$.ctx[0]}set lang(t){this.$$set({lang:t}),e.flush()}get local(){return this.$$.ctx[18]}set local(t){this.$$set({local:t}),e.flush()}get endpoint(){return this.$$.ctx[19]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get session(){return this.$$.ctx[20]}set session(t){this.$$set({session:t}),e.flush()}get customerid(){return this.$$.ctx[21]}set customerid(t){this.$$set({customerid:t}),e.flush()}get assetsurl(){return this.$$.ctx[1]}set assetsurl(t){this.$$set({assetsurl:t}),e.flush()}get currency(){return this.$$.ctx[22]}set currency(t){this.$$set({currency:t}),e.flush()}get numberofmethodsshown(){return this.$$.ctx[23]}set numberofmethodsshown(t){this.$$set({numberofmethodsshown:t}),e.flush()}get translationurl(){return this.$$.ctx[2]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}get clientstyling(){return this.$$.ctx[3]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[4]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get ismobileview(){return this.$$.ctx[24]}set ismobileview(t){this.$$set({ismobileview:t}),e.flush()}}e.create_custom_element(ae,{lang:{},local:{},endpoint:{},session:{},customerid:{},assetsurl:{},currency:{},numberofmethodsshown:{},translationurl:{},clientstyling:{},clientstylingurl:{},ismobileview:{}},[],[],!0);exports.default=ae;
|
|
1
|
+
"use strict";var ye=Object.defineProperty,be=Object.defineProperties;var Me=Object.getOwnPropertyDescriptors;var K=Object.getOwnPropertySymbols;var ve=Object.prototype.hasOwnProperty,Le=Object.prototype.propertyIsEnumerable;var Q=(n,t,s)=>t in n?ye(n,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):n[t]=s,G=(n,t)=>{for(var s in t||(t={}))ve.call(t,s)&&Q(n,s,t[s]);if(K)for(var s of K(t))Le.call(t,s)&&Q(n,s,t[s]);return n},V=(n,t)=>be(n,Me(t));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CashierConfirmModal-B_XfWSC2.cjs"),q=require("./CashierError-wHAQP3_C.cjs"),Y=require("./CashierMethodDetails-D8AGMiCO.cjs");function $(n,t){q.addMessages(n,t)}function ke(n){q.init({fallbackLocale:"en"}),q.$locale.set(n)}const ee={en:{generalMin:"Min",generalMax:"Max",showAll:"SHOW ALL",showLess:"SHOW LESS",error:"Error",noPaymentMethods:"No payment methods available"},uk:{generalMin:"Мін",generalMax:"Макс"},hr:{generalMin:"Minimalno",generalMax:"Maksimalno",showAll:"Prikaži sve",showLess:"Prikaži manje"},tr:{generalMin:"Min",generalMax:"Maks",showAll:"HEPSİNİ GÖSTER",showLess:"DAHA AZ GÖSTER",error:"Hata",noPaymentMethods:"Hiçbir ödeme yöntemi mevcut değil"},"en-us":{generalMin:"Min",generalMax:"Max",showAll:"SHOW ALL",showLess:"SHOW LESS"}};function Ce(n){e.append_styles(n,"svelte-1wlv0rl","*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.CashierMethodList{display:flex;flex-direction:column;background:var(--emw--color-background, #fff);box-shadow:0 0 4px var(--mmw--color-black-transparency-10, rgba(0, 0, 0, 0.1));width:100%;border-radius:var(--mmw--border-radius-medium-plus, 6px);container-name:method-list;container-type:inline-size}.SelectorWrapper{display:flex;flex-direction:row;align-items:center;justify-content:left;cursor:pointer;position:relative;height:var(--mmw-method-height, 80px);box-sizing:border-box;border-bottom:1px solid var(--mmw--color-grey-105, #E8E9EB);padding:0 var(--emw--spacing-small, 12px)}.SelectorWrapper:first-child{border-radius:var(--mmw--border-radius-medium-plus, 6px) var(--mmw--border-radius-medium-plus, 6px) 0 0}.SelectorWrapper:last-child{border-radius:0 0 var(--mmw--border-radius-medium-plus, 6px) var(--mmw--border-radius-medium-plus, 6px)}.SelectorWrapper.checked{background:var(--emw--color-background-secondary, #F9F8F8)}.SelectorWrapper:not(.checked):hover{background:linear-gradient(0, var(--emw--color-background-secondary, #F9F8F8) 0%, var(--emw--color-background, #fff) 100%)}.MethodLogo{display:flex;justify-content:center;align-items:center;margin-right:var(--mmw--spacing-small, 14px);width:var(--mmw-logo-width, 110px);min-height:var(--mmw-logo-height, 64px);background:var(--emw--color-background, #FFF);border:1px solid var(--mmw--color-grey-105, #E8E9EB);border-radius:var(--mmw--border-radius-medium-plus, 6px);overflow:hidden;max-height:calc(100% - var(--emw--spacing-small, 12px) - var(--emw--spacing-small, 12px))}.MethodLogo img{width:100%;height:100%}.MethodTitle{color:var(--mmw--color-grey-10, #111);font-size:var(--emw--font-size-medium, 16px);word-break:break-all}.MethodLimits{display:flex;flex-direction:column;align-items:flex-end;margin-left:auto}.Limits{max-width:100%;white-space:nowrap;font-size:var(--emw--font-size-small, 14px);line-height:var(--emw--line-height-xl, 24px);color:var(--mmw--color-grey-290, #666);font-weight:var(--emw--font-weight-normal, 400);font-style:normal}.EmptyContentMessageWrapper{display:flex;flex-direction:column;box-sizing:border-box;background:var(--emw--color-gray-50, #F7F8FA);border-bottom:1px solid var(--mmw--color-grey-105, #E8E9EB);padding:var(--emw--spacing-small, 12px);max-height:500px}.EmptyContentMessageHeader{display:flex;gap:4px;align-items:end}.EmptyContentMessageTitle{font-size:var(--emw--font-size-small, 16px);font-weight:var(--emw--font-weight-semibold, 500);color:var(--emw--color-warning, rgb(250, 146, 0))}.EmptyContentMessageText{word-break:break-word;padding:var(--emw--spacing-small, 12px) calc(var(--emw--spacing-small, 12px) / 2);font-size:var(--emw--font-size-small, 14px)}.EmptyContentMessageDesktop p{font-size:var(--emw--font-size-medium, 16px)}.IconWarning{width:30px;display:flex}.IconWarning svg{height:18px;fill:var(--emw--color-warning, rgb(250, 146, 0))}.ShowAllButton{cursor:pointer;color:var(--mmw--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(--mmw--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)}@container method-list (width < 450px){.MethodLogo{min-width:var(--mmw-logo-small-width, 90px);min-height:var(--mmw-logo--small-height, 50px);overflow:hidden}.CashierMethodList .MethodTitle{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}.CashierMethodList .MethodLimits .Limits{flex-shrink:0;font-size:var(--emw--font-size-x-small, 12px)}}@container method-list (max-width: 300px){.Limits{display:none}}")}function te(n,t,s){const a=n.slice();return a[48]=t[s],a[50]=s,a}function ne(n){let t;return{c(){t=e.element("cashier-spinner"),e.set_custom_element_data(t,"clientstylingurl",n[4]),e.set_custom_element_data(t,"clientstyling",n[3])},m(s,a){e.insert(s,t,a)},p(s,a){a[0]&16&&e.set_custom_element_data(t,"clientstylingurl",s[4]),a[0]&8&&e.set_custom_element_data(t,"clientstyling",s[3])},d(s){s&&e.detach(t)}}}function se(n){let t,s,a,m,o=e.ensure_array_like(n[8]),r=[];for(let c=0;c<o.length;c+=1)r[c]=le(te(n,o,c));let i=n[13]&&!n[12]&&ie(n),d=n[7]&&oe(n);return{c(){t=e.element("div"),s=e.element("div");for(let c=0;c<r.length;c+=1)r[c].c();a=e.space(),i&&i.c(),m=e.space(),d&&d.c(),e.attr(s,"class","CashierMethodList"),e.attr(t,"class","CashierMethodListWidget")},m(c,g){e.insert(c,t,g),e.append(t,s);for(let u=0;u<r.length;u+=1)r[u]&&r[u].m(s,null);e.append(s,a),i&&i.m(s,null),e.append(t,m),d&&d.m(t,null),n[27](t)},p(c,g){if(g[0]&115008){o=e.ensure_array_like(c[8]);let u;for(u=0;u<o.length;u+=1){const p=te(c,o,u);r[u]?r[u].p(p,g):(r[u]=le(p),r[u].c(),r[u].m(s,a))}for(;u<r.length;u+=1)r[u].d(1);r.length=o.length}c[13]&&!c[12]?i?i.p(c,g):(i=ie(c),i.c(),i.m(s,null)):i&&(i.d(1),i=null),c[7]?d?d.p(c,g):(d=oe(c),d.c(),d.m(t,null)):d&&(d.d(1),d=null)},d(c){c&&e.detach(t),e.destroy_each(r,c),i&&i.d(),d&&d.d(),n[27](null)}}}function le(n){let t,s,a,m,o,r,i,d,c=(n[48].Label||n[48].Name)+"",g,u,p,f,k=n[14]("generalMin")+"",S,b,M=n[15].format(n[48].DisplayCurrency.MinAmountLimit)+"",C,x,y=n[48].DisplayCurrency.Name+"",E,W,v,T=n[14]("generalMax")+"",A,D,P=n[15].format(n[48].DisplayCurrency.MaxAmountLimit)+"",N,U,F=n[48].DisplayCurrency.Name+"",j,O,R;function B(){return n[25](n[48])}return{c(){t=e.element("div"),s=e.element("div"),a=e.element("img"),r=e.space(),i=e.element("div"),d=e.element("span"),g=e.text(c),u=e.space(),p=e.element("div"),f=e.element("span"),S=e.text(k),b=e.space(),C=e.text(M),x=e.space(),E=e.text(y),W=e.space(),v=e.element("span"),A=e.text(T),D=e.space(),N=e.text(P),U=e.space(),j=e.text(F),e.src_url_equal(a.src,m=n[48].LogoUrl)||e.attr(a,"src",m),e.attr(a,"alt",o=n[48].Label),e.attr(s,"class","MethodLogo"),e.attr(i,"class","MethodTitle"),e.attr(f,"class","Limits"),e.attr(v,"class","Limits"),e.attr(p,"class","MethodLimits"),e.attr(t,"class","SelectorWrapper"),e.toggle_class(t,"checked",n[6]===n[48].Name)},m(z,_){e.insert(z,t,_),e.append(t,s),e.append(s,a),e.append(t,r),e.append(t,i),e.append(i,d),e.append(d,g),e.append(t,u),e.append(t,p),e.append(p,f),e.append(f,S),e.append(f,b),e.append(f,C),e.append(f,x),e.append(f,E),e.append(p,W),e.append(p,v),e.append(v,A),e.append(v,D),e.append(v,N),e.append(v,U),e.append(v,j),O||(R=[e.listen(t,"click",B),e.listen(t,"keyup",xe)],O=!0)},p(z,_){n=z,_[0]&256&&!e.src_url_equal(a.src,m=n[48].LogoUrl)&&e.attr(a,"src",m),_[0]&256&&o!==(o=n[48].Label)&&e.attr(a,"alt",o),_[0]&256&&c!==(c=(n[48].Label||n[48].Name)+"")&&e.set_data(g,c),_[0]&16384&&k!==(k=n[14]("generalMin")+"")&&e.set_data(S,k),_[0]&256&&M!==(M=n[15].format(n[48].DisplayCurrency.MinAmountLimit)+"")&&e.set_data(C,M),_[0]&256&&y!==(y=n[48].DisplayCurrency.Name+"")&&e.set_data(E,y),_[0]&16384&&T!==(T=n[14]("generalMax")+"")&&e.set_data(A,T),_[0]&256&&P!==(P=n[15].format(n[48].DisplayCurrency.MaxAmountLimit)+"")&&e.set_data(N,P),_[0]&256&&F!==(F=n[48].DisplayCurrency.Name+"")&&e.set_data(j,F),_[0]&320&&e.toggle_class(t,"checked",n[6]===n[48].Name)},d(z){z&&e.detach(t),O=!1,e.run_all(R)}}}function ie(n){let t,s,a,m,o,r=n[14]("error")+"",i,d,c,g=n[14]("noPaymentMethods")+"",u;return{c(){t=e.element("div"),s=e.element("div"),a=e.element("div"),a.innerHTML='<svg fill="currentColor" height="200px" width="200px" version="1.1" id="Capa_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 294.995 294.995" xml:space="preserve" stroke="#fa9200"><g id="SVGRepo_bgCarrier" stroke-width="0"></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"></g><g id="SVGRepo_iconCarrier"><g><path d="M291.874,248.279L165.605,26.526c-4.007-7.037-10.776-11.26-18.107-11.26s-14.101,4.202-18.107,11.239L3.121,248.238 c-3.979,6.989-4.164,15.013-0.493,21.326c3.67,6.313,10.663,10.165,18.705,10.165h252.329c8.042,0,15.035-3.852,18.705-10.165 C296.038,263.251,295.854,255.268,291.874,248.279z M146.665,86.229c9.665,0,17.5,7.835,17.5,17.5v63c0,9.665-7.835,17.5-17.5,17.5 c-9.665,0-17.5-7.835-17.5-17.5v-63C129.165,94.064,137,86.229,146.665,86.229z M147.498,204.005c9.665,0,17.5,7.835,17.5,17.5 c0,9.665-7.835,17.5-17.5,17.5c-9.665,0-17.5-7.835-17.5-17.5C129.998,211.84,137.833,204.005,147.498,204.005z"></path></g></g></svg>',m=e.space(),o=e.element("p"),i=e.text(r),d=e.space(),c=e.element("p"),u=e.text(g),e.attr(a,"class","IconWarning"),e.attr(o,"class","EmptyContentMessageTitle"),e.attr(s,"class","EmptyContentMessageHeader"),e.attr(c,"class","EmptyContentMessageText"),e.attr(t,"class","EmptyContentMessageWrapper"),e.toggle_class(t,"EmptyContentMessageDesktop",n[11])},m(p,f){e.insert(p,t,f),e.append(t,s),e.append(s,a),e.append(s,m),e.append(s,o),e.append(o,i),e.append(t,d),e.append(t,c),e.append(c,u)},p(p,f){f[0]&16384&&r!==(r=p[14]("error")+"")&&e.set_data(i,r),f[0]&16384&&g!==(g=p[14]("noPaymentMethods")+"")&&e.set_data(u,g),f[0]&2048&&e.toggle_class(t,"EmptyContentMessageDesktop",p[11])},d(p){p&&e.detach(t)}}}function oe(n){let t,s,a,m;return{c(){t=e.element("div"),s=e.text(n[7]),e.attr(t,"class","ShowAllButton")},m(o,r){e.insert(o,t,r),e.append(t,s),a||(m=e.listen(t,"click",n[26]),a=!0)},p(o,r){r[0]&128&&e.set_data(s,o[7])},d(o){o&&e.detach(t),a=!1,m()}}}function re(n){let t,s,a;return{c(){t=e.element("cashier-error"),s=e.element("span"),a=e.text(n[10]),e.attr(s,"slot","text"),e.set_custom_element_data(t,"lang",n[0]),e.set_custom_element_data(t,"assetsurl",n[1]),e.set_custom_element_data(t,"translationurl",n[2]),e.set_custom_element_data(t,"clientstylingurl",n[4]),e.set_custom_element_data(t,"clientstyling",n[3]),e.set_custom_element_data(t,"hidebuttons","true")},m(m,o){e.insert(m,t,o),e.append(t,s),e.append(s,a)},p(m,o){o[0]&1024&&e.set_data(a,m[10]),o[0]&1&&e.set_custom_element_data(t,"lang",m[0]),o[0]&2&&e.set_custom_element_data(t,"assetsurl",m[1]),o[0]&4&&e.set_custom_element_data(t,"translationurl",m[2]),o[0]&16&&e.set_custom_element_data(t,"clientstylingurl",m[4]),o[0]&8&&e.set_custom_element_data(t,"clientstyling",m[3])},d(m){m&&e.detach(t)}}}function Se(n){let t,s,a,m=n[12]&&ne(n),o=(n[9]||n[11])&&se(n),r=n[10]&&re(n);return{c(){m&&m.c(),t=e.space(),o&&o.c(),s=e.space(),r&&r.c(),a=e.empty()},m(i,d){m&&m.m(i,d),e.insert(i,t,d),o&&o.m(i,d),e.insert(i,s,d),r&&r.m(i,d),e.insert(i,a,d)},p(i,d){i[12]?m?m.p(i,d):(m=ne(i),m.c(),m.m(t.parentNode,t)):m&&(m.d(1),m=null),i[9]||i[11]?o?o.p(i,d):(o=se(i),o.c(),o.m(s.parentNode,s)):o&&(o.d(1),o=null),i[10]?r?r.p(i,d):(r=re(i),r.c(),r.m(a.parentNode,a)):r&&(r.d(1),r=null)},i:e.noop,o:e.noop,d(i){i&&(e.detach(t),e.detach(s),e.detach(a)),m&&m.d(i),o&&o.d(i),r&&r.d(i)}}}const xe=()=>{};function Ee(n,t,s){let a;e.component_subscribe(n,q.$format,l=>s(14,a=l)),Y.dayjs.extend(Y.utc);let{lang:m="en"}=t,{local:o="en-US"}=t,{endpoint:r}=t,{session:i}=t,{customerid:d}=t,{assetsurl:c}=t,{currency:g}=t,{numberofmethodsshown:u}=t,{translationurl:p=""}=t,{clientstyling:f=""}=t,{clientstylingurl:k=""}=t,{ismobileview:S}=t,b=[],M,C,x="",y=[],E=!0,W=new Intl.NumberFormat(o,{minimumFractionDigits:2}),v="",T,A=!0,D=!1,P=!1;var N;(function(l){l.PlayerSessionIsNotValid="PlayerSessionIsNotValid",l.Success="Success",l.JwtTokenError="JwtTokenError"})(N||(N={})),e.createEventDispatcher();const U=()=>{let l=p;if(l)return fetch(l).then(h=>h.json()).then(h=>{Object.keys(h).forEach(L=>{$(L,h[L])})}).catch(h=>{console.log(h)})};Object.keys(ee).forEach(l=>{$(l,ee[l])});const F=()=>{ke(m)},j=()=>{s(12,D=!0);const l=new URL(`${r}/v1/player/${d}/payment/GetPaymentMetadata`),h=new Headers;h.append("accept","application/json"),h.append("Content-Type","application/json"),h.append("X-Client-Request-Timestamp",Y.dayjs.utc().format("YYYY-MM-DD HH:mm:ss.SSS"));const L={method:"POST",headers:h,body:JSON.stringify({XPaymentSessionToken:i,Currency:g,Tags:{UserAgent:window.navigator.userAgent}})};fetch(l,L).then(w=>w.json()).then(w=>{var H;if(w.error){s(10,v=w.error);return}if(w.ResponseCode!==N.Success){T=w.ResponseCode,z();return}b=(H=w.PaymentMethods)!=null&&H.Ordering?O(w):R(w),s(7,x=u&&+u>0&&b.length>+u?a("showAll"):""),s(8,y=x?b.slice(0,+u):b),window.postMessage({type:"StartSessionCountdown",paymentMethodName:b[0].Name,xPaymentSessionToken:w.XPaymentSessionToken},window.location.href),window.postMessage({type:"DataLoading",isDataLoaded:!1})}).finally(()=>{s(12,D=!1),window.postMessage({type:"DataLoading",isDataLoaded:!0}),s(13,P=!y.length)})},O=l=>{const h=[];return l.PaymentMethods.Ordering.DefaultPaymentMethodsOrder.forEach(L=>{const w=l.PaymentMethods.PaymentMethods.find(H=>H.Name===L);if(w){const H=(w==null?void 0:w.Logos.find(I=>I.LogoType==="Desktop"))||{},_e=(w==null?void 0:w.Logos.find(I=>I.LogoType==="Mobile"))||{},Z=A?H:_e;h.push(V(G({},w),{LogoUrl:Z.LogoUrl?`https:${Z.LogoUrl}`:""}))}}),h},R=l=>l.PaymentMethods.PaymentMethods.map(h=>V(G({},h),{LogoUrl:h.Logos&&h.Logos.length&&h.Logos[0].LogoUrl?`https:${h.Logos[0].LogoUrl}`:""})),B=l=>{s(6,C=l.Name),window.postMessage({type:"SelectPayMeth",details:l},window.location.href),dispatchEvent(new CustomEvent("selectPayMeth",{detail:l,bubbles:!0,cancelable:!0,composed:!0}))},z=()=>{window.postMessage({type:"ErrorResponseCode",errorResponseCode:T},window.location.href)},_=()=>{s(11,A=S==="false")},J=()=>{y==b?de():me()},me=()=>{s(8,y=b),s(7,x=a("showLess"))},de=()=>{s(8,y=b.slice(0,+u)),C&&!y.find(l=>l.Name===C)&&y.splice(0,0,b.find(l=>l.Name===C)),s(7,x=a("showAll"))},ce=()=>{s(9,E=!0)},ue=l=>{s(9,E=!l.hideMethodsList)},he=()=>{let l=document.createElement("style");l.innerHTML=f,M.appendChild(l)},pe=()=>{let l=new URL(k),h=document.createElement("style");fetch(l.href).then(L=>L.text()).then(L=>{h.innerHTML=L,setTimeout(()=>{M.appendChild(h)},1),setTimeout(()=>{},500)})};e.onMount(()=>(window.addEventListener("message",X,!1),()=>{window.removeEventListener("message",X,!1)}));const X=l=>{switch(l.data.type){case"BackToMethodList":ce();break;case"HideMethodsList":ue(l.data.details);break}},ge=l=>B(l),fe=()=>J();function we(l){e.binding_callbacks[l?"unshift":"push"](()=>{M=l,s(5,M)})}return n.$$set=l=>{"lang"in l&&s(0,m=l.lang),"local"in l&&s(18,o=l.local),"endpoint"in l&&s(19,r=l.endpoint),"session"in l&&s(20,i=l.session),"customerid"in l&&s(21,d=l.customerid),"assetsurl"in l&&s(1,c=l.assetsurl),"currency"in l&&s(22,g=l.currency),"numberofmethodsshown"in l&&s(23,u=l.numberofmethodsshown),"translationurl"in l&&s(2,p=l.translationurl),"clientstyling"in l&&s(3,f=l.clientstyling),"clientstylingurl"in l&&s(4,k=l.clientstylingurl),"ismobileview"in l&&s(24,S=l.ismobileview)},n.$$.update=()=>{n.$$.dirty[0]&3670016&&r&&i&&d&&j(),n.$$.dirty[0]&1&&m&&F(),n.$$.dirty[0]&40&&f&&M&&he(),n.$$.dirty[0]&48&&k&&M&&pe(),n.$$.dirty[0]&16777216&&S&&_(),n.$$.dirty[0]&5&&m&&p&&U()},[m,c,p,f,k,M,C,x,y,E,v,A,D,P,a,W,B,J,o,r,i,d,g,u,S,ge,fe,we]}class ae extends e.SvelteComponent{constructor(t){super(),e.init(this,t,Ee,Se,e.safe_not_equal,{lang:0,local:18,endpoint:19,session:20,customerid:21,assetsurl:1,currency:22,numberofmethodsshown:23,translationurl:2,clientstyling:3,clientstylingurl:4,ismobileview:24},Ce,[-1,-1])}get lang(){return this.$$.ctx[0]}set lang(t){this.$$set({lang:t}),e.flush()}get local(){return this.$$.ctx[18]}set local(t){this.$$set({local:t}),e.flush()}get endpoint(){return this.$$.ctx[19]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get session(){return this.$$.ctx[20]}set session(t){this.$$set({session:t}),e.flush()}get customerid(){return this.$$.ctx[21]}set customerid(t){this.$$set({customerid:t}),e.flush()}get assetsurl(){return this.$$.ctx[1]}set assetsurl(t){this.$$set({assetsurl:t}),e.flush()}get currency(){return this.$$.ctx[22]}set currency(t){this.$$set({currency:t}),e.flush()}get numberofmethodsshown(){return this.$$.ctx[23]}set numberofmethodsshown(t){this.$$set({numberofmethodsshown:t}),e.flush()}get translationurl(){return this.$$.ctx[2]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}get clientstyling(){return this.$$.ctx[3]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[4]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get ismobileview(){return this.$$.ctx[24]}set ismobileview(t){this.$$set({ismobileview:t}),e.flush()}}e.create_custom_element(ae,{lang:{},local:{},endpoint:{},session:{},customerid:{},assetsurl:{},currency:{},numberofmethodsshown:{},translationurl:{},clientstyling:{},clientstylingurl:{},ismobileview:{}},[],[],!0);exports.default=ae;
|