@everymatrix/cashier-page 1.0.69 → 1.0.71
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-CJUi-52c.cjs +4 -0
- package/components/CashierConfirmModal-DJCwaG3s.js +1067 -0
- package/components/CashierError-Bv5y8E21.cjs +5 -0
- package/components/CashierError-D1Sl93X0.js +3728 -0
- package/components/CashierHeader-BfiMdduW.cjs +1 -0
- package/components/CashierHeader-DPtk9YS7.js +354 -0
- package/components/CashierIframeRedirect-JKycDoGv.js +384 -0
- package/components/CashierIframeRedirect-euMQeO-W.cjs +1 -0
- package/components/CashierMethodDetails-CJQlWMCH.cjs +18 -0
- package/components/CashierMethodDetails-oNLo1qIb.js +7951 -0
- package/components/CashierMethodsList-CmqbF598.cjs +1 -0
- package/components/CashierMethodsList-Iun7lw-L.js +635 -0
- package/components/CashierModal-C0mhAnlZ.cjs +1 -0
- package/components/CashierModal-C_5YSQzV.js +220 -0
- package/components/CashierNotifications-Bizfd07g.js +136 -0
- package/components/CashierNotifications-DOy2PVHI.cjs +1 -0
- package/components/CashierPage-CA5Vb6Re.cjs +1 -0
- package/components/CashierPage-COmj0BRS.js +1257 -0
- package/components/CashierReceiptPage-Bm6wOvVX.cjs +1 -0
- package/components/CashierReceiptPage-g9G9PnHu.js +926 -0
- package/components/CashierSpinner-BXmEgLih.js +71 -0
- package/components/CashierSpinner-DCVKvCG4.cjs +1 -0
- package/package.json +11 -10
|
@@ -0,0 +1,1257 @@
|
|
|
1
|
+
import { S as De, b as Re, f as y, c as Be, a as Ae, d as ze, g as _, h as D, j as M, V as ce, G as Ne, k as P, l as C, T as He, n as de, v as E, w as je, H as Ie, y as O, x as Oe, E as i, A as Ue, z as U, C as Fe } from "./CashierConfirmModal-DJCwaG3s.js";
|
|
2
|
+
import { i as Ye, a as Ve, $ as Je, b as qe } from "./CashierError-D1Sl93X0.js";
|
|
3
|
+
import "./CashierIframeRedirect-JKycDoGv.js";
|
|
4
|
+
import "./CashierMethodDetails-oNLo1qIb.js";
|
|
5
|
+
Ye({
|
|
6
|
+
fallbackLocale: "en"
|
|
7
|
+
});
|
|
8
|
+
function ue(t, e) {
|
|
9
|
+
Ve(t, e);
|
|
10
|
+
}
|
|
11
|
+
function Ge(t) {
|
|
12
|
+
Je.set(t);
|
|
13
|
+
}
|
|
14
|
+
const he = {
|
|
15
|
+
en: {
|
|
16
|
+
loading: "Loading...",
|
|
17
|
+
closeModal: "CLOSE",
|
|
18
|
+
deposit: {
|
|
19
|
+
makeTxnButton: "DEPOSIT",
|
|
20
|
+
confirmText: "You're going to deposit to your account",
|
|
21
|
+
confirmTextWithAmount: "You're going to deposit {amount} {currency} to your account",
|
|
22
|
+
confirmButton: "Ok"
|
|
23
|
+
},
|
|
24
|
+
withdraw: {
|
|
25
|
+
makeTxnButton: "WITHDRAW",
|
|
26
|
+
confirmText: "You're going to withdraw from your account",
|
|
27
|
+
confirmTextWithAmount: "You're going to withdraw {amount} {currency} from your account",
|
|
28
|
+
confirmButton: "Ok"
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
hr: {
|
|
32
|
+
loading: "Učitavanje",
|
|
33
|
+
header: {
|
|
34
|
+
deposit: "Uplata",
|
|
35
|
+
withdraw: "Povlačenje"
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
tr: {
|
|
39
|
+
loading: "Yükleniyor...",
|
|
40
|
+
closeModal: "KAPAT",
|
|
41
|
+
header: {
|
|
42
|
+
deposit: "Yatır",
|
|
43
|
+
withdraw: "Çek"
|
|
44
|
+
},
|
|
45
|
+
deposit: {
|
|
46
|
+
makeTxnButton: "YATIR",
|
|
47
|
+
confirmText: "Hesabınıza yatırıyorsunuz",
|
|
48
|
+
confirmTextWithAmount: "Hesabınıza {amount} {currency} yatırıyorsunuz",
|
|
49
|
+
confirmButton: "Tamam"
|
|
50
|
+
},
|
|
51
|
+
withdraw: {
|
|
52
|
+
makeTxnButton: "ÇEK",
|
|
53
|
+
confirmText: "Hesabınızdan çekiyorsunuz",
|
|
54
|
+
confirmTextWithAmount: "Hesabınıza {amount} {currency} yatırıyorsunuz",
|
|
55
|
+
confirmButton: "Tamam"
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
};
|
|
59
|
+
var ve = /* @__PURE__ */ ((t) => (t.Deposit = "Deposit", t.Withdraw = "Withdraw", t))(ve || {}), ye = /* @__PURE__ */ ((t) => (t.Desktop = "Desktop", t.Mobile = "Mobile", t.NativeApp = "NativeApp", t))(ye || {}), I = /* @__PURE__ */ ((t) => (t.PlayerSessionIsNotValid = "PlayerSessionIsNotValid", t.Success = "Success", t.JwtTokenError = "JwtTokenError", t))(I || {});
|
|
60
|
+
if (typeof window != "undefined") {
|
|
61
|
+
let t = function(e) {
|
|
62
|
+
return function(...s) {
|
|
63
|
+
try {
|
|
64
|
+
return e.apply(this, s);
|
|
65
|
+
} catch (l) {
|
|
66
|
+
if (l instanceof DOMException && l.message.includes("has already been used with this registry") || l.message.includes("Cannot define multiple custom elements with the same tag name"))
|
|
67
|
+
return !1;
|
|
68
|
+
throw l;
|
|
69
|
+
}
|
|
70
|
+
};
|
|
71
|
+
};
|
|
72
|
+
customElements.define = t(customElements.define), import("./CashierMethodsList-Iun7lw-L.js").then(({ default: e }) => {
|
|
73
|
+
!customElements.get("cashier-methods-list") && customElements.define("cashier-methods-list", e.element);
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
if (typeof window != "undefined") {
|
|
77
|
+
let t = function(e) {
|
|
78
|
+
return function(...s) {
|
|
79
|
+
try {
|
|
80
|
+
return e.apply(this, s);
|
|
81
|
+
} catch (l) {
|
|
82
|
+
if (l instanceof DOMException && l.message.includes("has already been used with this registry") || l.message.includes("Cannot define multiple custom elements with the same tag name"))
|
|
83
|
+
return !1;
|
|
84
|
+
throw l;
|
|
85
|
+
}
|
|
86
|
+
};
|
|
87
|
+
};
|
|
88
|
+
customElements.define = t(customElements.define), import("./CashierMethodDetails-oNLo1qIb.js").then(({ default: e }) => {
|
|
89
|
+
!customElements.get("cashier-method-details") && customElements.define("cashier-method-details", e.element);
|
|
90
|
+
});
|
|
91
|
+
}
|
|
92
|
+
function Ke(t) {
|
|
93
|
+
ze(t, "svelte-1eccdep", "@keyframes svelte-1eccdep-loading-spinner{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}.DisablePage.svelte-1eccdep.svelte-1eccdep{container-type:inline-size;container-name:confirm-modal;position:absolute;width:100%;height:100%;z-index:100;top:0;left:0;background-color:transparent}.CashierPageWidget.svelte-1eccdep.svelte-1eccdep{container-type:inline-size;container-name:deposit-page;height:inherit;position:relative;box-sizing:border-box}.CashierPageWidget.svelte-1eccdep .CashierMethodDetailsWrapper.svelte-1eccdep{display:none}.CashierPageWidget.svelte-1eccdep.svelte-1eccdep:has(.Header){border-radius:6px;border:1px solid var(--mmw--color-grey-105, #E8E9EB);box-sizing:border-box}.CashierPageWidget.svelte-1eccdep:has(.Header) .CashierPage.svelte-1eccdep,.CashierPageWidget.svelte-1eccdep:has(.Header) .DisablePage.svelte-1eccdep{height:calc(100% - var(--mmw--header-height, 32px))}.CashierPageWidget.svelte-1eccdep:has(.Header) .DisablePage.svelte-1eccdep{top:var(--mmw--header-height, 32px)}.CashierMethodListWrapper.svelte-1eccdep.svelte-1eccdep{height:100%;overflow:auto;box-sizing:border-box;scrollbar-gutter:stable both-edges;padding:var(--emw--spacing-large, 20px) var(--emw--spacing-x-small, 10px) var(--emw--spacing-small, 12px) var(--emw--spacing-x-small, 10px);width:50%}.CashierMethodListWrapper.svelte-1eccdep.svelte-1eccdep::-webkit-scrollbar{border-right:none}.BothSections.svelte-1eccdep .CashierMethodDetailsWrapper.svelte-1eccdep{height:100%;overflow:auto;box-sizing:border-box;scrollbar-gutter:stable both-edges;display:block;transition:all 1s;width:50%;justify-content:center}.BothSections.svelte-1eccdep .CashierMethodListWrapper.svelte-1eccdep::-webkit-scrollbar{border-right:1px solid var(--emw--color-gray-100, #E0E0E0)}.CashierPage.svelte-1eccdep.svelte-1eccdep{position:relative;display:flex;flex-direction:row;justify-content:center;height:inherit}cashier-method-details.svelte-1eccdep.svelte-1eccdep{width:0}cashier-iframe-redirect.svelte-1eccdep.svelte-1eccdep{height:inherit;width:inherit}.IframeRedirect.svelte-1eccdep.svelte-1eccdep{display:flex;position:absolute;align-items:center;justify-content:center;width:100%;height:100%;z-index:100;top:0;left:0;background-color:var(--emw--color-white, #FFF)}@container deposit-page (max-width:750px){.CashierPage.svelte-1eccdep.svelte-1eccdep,.BothSections.svelte-1eccdep .CashierPage.svelte-1eccdep{flex-direction:column;justify-content:flex-start;gap:0}.CashierPage.svelte-1eccdep cashier-methods-list.svelte-1eccdep,.CashierPage.svelte-1eccdep cashier-method-details.svelte-1eccdep,.CashierPage.svelte-1eccdep .CashierMethodDetailsWrapper.svelte-1eccdep,.BothSections.svelte-1eccdep .CashierPage cashier-methods-list.svelte-1eccdep,.BothSections.svelte-1eccdep .CashierPage cashier-method-details.svelte-1eccdep,.BothSections.svelte-1eccdep .CashierPage .CashierMethodDetailsWrapper.svelte-1eccdep{width:100%;height:100%}cashier-method-details.svelte-1eccdep.svelte-1eccdep{display:none}.BothSections.svelte-1eccdep cashier-method-details.svelte-1eccdep{display:flex}.BothSections.svelte-1eccdep .CashierMethodListWrapper.svelte-1eccdep{display:none}.CashierMethodListWrapper.svelte-1eccdep.svelte-1eccdep{width:100%}}.svelte-1eccdep.svelte-1eccdep::-webkit-scrollbar{width:4px}.svelte-1eccdep.svelte-1eccdep::-webkit-scrollbar-track{background:transparent}.svelte-1eccdep.svelte-1eccdep::-webkit-scrollbar-thumb{background:var(--mmw--color-grey-105, #E8E9EB)}.svelte-1eccdep.svelte-1eccdep::-webkit-scrollbar-thumb:hover{background:var(--mmw--color-grey-290, #666)}");
|
|
94
|
+
}
|
|
95
|
+
function fe(t) {
|
|
96
|
+
let e;
|
|
97
|
+
return {
|
|
98
|
+
c() {
|
|
99
|
+
e = _("div"), M(e, "class", "DisablePage svelte-1eccdep");
|
|
100
|
+
},
|
|
101
|
+
m(s, l) {
|
|
102
|
+
P(s, e, l);
|
|
103
|
+
},
|
|
104
|
+
d(s) {
|
|
105
|
+
s && E(e);
|
|
106
|
+
}
|
|
107
|
+
};
|
|
108
|
+
}
|
|
109
|
+
function me(t) {
|
|
110
|
+
let e, s, l, a, p, r = (
|
|
111
|
+
/*$_*/
|
|
112
|
+
t[32]("closeModal") + ""
|
|
113
|
+
), u, c, o, h, m, f = !!/*showheader*/
|
|
114
|
+
t[10] && /*showheader*/
|
|
115
|
+
t[10] !== "false" && ge(t), w = (
|
|
116
|
+
/*redirectUrl*/
|
|
117
|
+
t[21] && /*redirectMode*/
|
|
118
|
+
t[28] === /*RedirectionModeStringEnum*/
|
|
119
|
+
t[16].Default && pe(t)
|
|
120
|
+
), b = (
|
|
121
|
+
/*showConfirmModal*/
|
|
122
|
+
t[20] && we(t)
|
|
123
|
+
);
|
|
124
|
+
return {
|
|
125
|
+
c() {
|
|
126
|
+
f && f.c(), e = D(), w && w.c(), s = D(), l = _("cashier-modal"), a = _("cashier-error"), p = _("div"), u = O(r), c = D(), b && b.c(), o = Oe(), M(p, "slot", "button"), M(p, "class", "ModalButton svelte-1eccdep"), i(
|
|
127
|
+
a,
|
|
128
|
+
"assetsurl",
|
|
129
|
+
/*assetsurl*/
|
|
130
|
+
t[8]
|
|
131
|
+
), i(
|
|
132
|
+
a,
|
|
133
|
+
"translationurl",
|
|
134
|
+
/*translationurl*/
|
|
135
|
+
t[4]
|
|
136
|
+
), i(
|
|
137
|
+
a,
|
|
138
|
+
"clientstylingurl",
|
|
139
|
+
/*clientstylingurl*/
|
|
140
|
+
t[13]
|
|
141
|
+
), i(
|
|
142
|
+
a,
|
|
143
|
+
"clientstyling",
|
|
144
|
+
/*clientstyling*/
|
|
145
|
+
t[12]
|
|
146
|
+
), i(
|
|
147
|
+
a,
|
|
148
|
+
"errorcode",
|
|
149
|
+
/*modalErrorMessage*/
|
|
150
|
+
t[29]
|
|
151
|
+
), i(a, "class", "svelte-1eccdep"), i(l, "class", "svelte-1eccdep");
|
|
152
|
+
},
|
|
153
|
+
m(d, g) {
|
|
154
|
+
f && f.m(d, g), P(d, e, g), w && w.m(d, g), P(d, s, g), P(d, l, g), C(l, a), C(a, p), C(p, u), P(d, c, g), b && b.m(d, g), P(d, o, g), h || (m = Ue(
|
|
155
|
+
p,
|
|
156
|
+
"click",
|
|
157
|
+
/*hideModal*/
|
|
158
|
+
t[34]
|
|
159
|
+
), h = !0);
|
|
160
|
+
},
|
|
161
|
+
p(d, g) {
|
|
162
|
+
/*showheader*/
|
|
163
|
+
d[10] && /*showheader*/
|
|
164
|
+
d[10] !== "false" ? f ? f.p(d, g) : (f = ge(d), f.c(), f.m(e.parentNode, e)) : f && (f.d(1), f = null), /*redirectUrl*/
|
|
165
|
+
d[21] && /*redirectMode*/
|
|
166
|
+
d[28] === /*RedirectionModeStringEnum*/
|
|
167
|
+
d[16].Default ? w ? w.p(d, g) : (w = pe(d), w.c(), w.m(s.parentNode, s)) : w && (w.d(1), w = null), g[1] & /*$_*/
|
|
168
|
+
2 && r !== (r = /*$_*/
|
|
169
|
+
d[32]("closeModal") + "") && U(u, r), g[0] & /*assetsurl*/
|
|
170
|
+
256 && i(
|
|
171
|
+
a,
|
|
172
|
+
"assetsurl",
|
|
173
|
+
/*assetsurl*/
|
|
174
|
+
d[8]
|
|
175
|
+
), g[0] & /*translationurl*/
|
|
176
|
+
16 && i(
|
|
177
|
+
a,
|
|
178
|
+
"translationurl",
|
|
179
|
+
/*translationurl*/
|
|
180
|
+
d[4]
|
|
181
|
+
), g[0] & /*clientstylingurl*/
|
|
182
|
+
8192 && i(
|
|
183
|
+
a,
|
|
184
|
+
"clientstylingurl",
|
|
185
|
+
/*clientstylingurl*/
|
|
186
|
+
d[13]
|
|
187
|
+
), g[0] & /*clientstyling*/
|
|
188
|
+
4096 && i(
|
|
189
|
+
a,
|
|
190
|
+
"clientstyling",
|
|
191
|
+
/*clientstyling*/
|
|
192
|
+
d[12]
|
|
193
|
+
), g[0] & /*modalErrorMessage*/
|
|
194
|
+
536870912 && i(
|
|
195
|
+
a,
|
|
196
|
+
"errorcode",
|
|
197
|
+
/*modalErrorMessage*/
|
|
198
|
+
d[29]
|
|
199
|
+
), /*showConfirmModal*/
|
|
200
|
+
d[20] ? b ? b.p(d, g) : (b = we(d), b.c(), b.m(o.parentNode, o)) : b && (b.d(1), b = null);
|
|
201
|
+
},
|
|
202
|
+
d(d) {
|
|
203
|
+
d && (E(e), E(s), E(l), E(c), E(o)), f && f.d(d), w && w.d(d), b && b.d(d), h = !1, m();
|
|
204
|
+
}
|
|
205
|
+
};
|
|
206
|
+
}
|
|
207
|
+
function ge(t) {
|
|
208
|
+
let e;
|
|
209
|
+
return {
|
|
210
|
+
c() {
|
|
211
|
+
e = _("cashier-header"), i(e, "class", "Header svelte-1eccdep"), i(
|
|
212
|
+
e,
|
|
213
|
+
"lang",
|
|
214
|
+
/*lang*/
|
|
215
|
+
t[2]
|
|
216
|
+
), i(
|
|
217
|
+
e,
|
|
218
|
+
"translationurl",
|
|
219
|
+
/*translationurl*/
|
|
220
|
+
t[4]
|
|
221
|
+
), i(
|
|
222
|
+
e,
|
|
223
|
+
"title",
|
|
224
|
+
/*title*/
|
|
225
|
+
t[30]
|
|
226
|
+
), i(
|
|
227
|
+
e,
|
|
228
|
+
"clientstylingurl",
|
|
229
|
+
/*clientstylingurl*/
|
|
230
|
+
t[13]
|
|
231
|
+
), i(
|
|
232
|
+
e,
|
|
233
|
+
"clientstyling",
|
|
234
|
+
/*clientstyling*/
|
|
235
|
+
t[12]
|
|
236
|
+
), i(
|
|
237
|
+
e,
|
|
238
|
+
"showbackbutton",
|
|
239
|
+
/*showHeaderBack*/
|
|
240
|
+
t[31]
|
|
241
|
+
);
|
|
242
|
+
},
|
|
243
|
+
m(s, l) {
|
|
244
|
+
P(s, e, l);
|
|
245
|
+
},
|
|
246
|
+
p(s, l) {
|
|
247
|
+
l[0] & /*lang*/
|
|
248
|
+
4 && i(
|
|
249
|
+
e,
|
|
250
|
+
"lang",
|
|
251
|
+
/*lang*/
|
|
252
|
+
s[2]
|
|
253
|
+
), l[0] & /*translationurl*/
|
|
254
|
+
16 && i(
|
|
255
|
+
e,
|
|
256
|
+
"translationurl",
|
|
257
|
+
/*translationurl*/
|
|
258
|
+
s[4]
|
|
259
|
+
), l[0] & /*title*/
|
|
260
|
+
1073741824 && i(
|
|
261
|
+
e,
|
|
262
|
+
"title",
|
|
263
|
+
/*title*/
|
|
264
|
+
s[30]
|
|
265
|
+
), l[0] & /*clientstylingurl*/
|
|
266
|
+
8192 && i(
|
|
267
|
+
e,
|
|
268
|
+
"clientstylingurl",
|
|
269
|
+
/*clientstylingurl*/
|
|
270
|
+
s[13]
|
|
271
|
+
), l[0] & /*clientstyling*/
|
|
272
|
+
4096 && i(
|
|
273
|
+
e,
|
|
274
|
+
"clientstyling",
|
|
275
|
+
/*clientstyling*/
|
|
276
|
+
s[12]
|
|
277
|
+
), l[1] & /*showHeaderBack*/
|
|
278
|
+
1 && i(
|
|
279
|
+
e,
|
|
280
|
+
"showbackbutton",
|
|
281
|
+
/*showHeaderBack*/
|
|
282
|
+
s[31]
|
|
283
|
+
);
|
|
284
|
+
},
|
|
285
|
+
d(s) {
|
|
286
|
+
s && E(e);
|
|
287
|
+
}
|
|
288
|
+
};
|
|
289
|
+
}
|
|
290
|
+
function pe(t) {
|
|
291
|
+
let e, s;
|
|
292
|
+
return {
|
|
293
|
+
c() {
|
|
294
|
+
e = _("div"), s = _("cashier-iframe-redirect"), i(
|
|
295
|
+
s,
|
|
296
|
+
"lang",
|
|
297
|
+
/*lang*/
|
|
298
|
+
t[2]
|
|
299
|
+
), i(
|
|
300
|
+
s,
|
|
301
|
+
"translationurl",
|
|
302
|
+
/*translationurl*/
|
|
303
|
+
t[4]
|
|
304
|
+
), i(
|
|
305
|
+
s,
|
|
306
|
+
"title",
|
|
307
|
+
/*title*/
|
|
308
|
+
t[30]
|
|
309
|
+
), i(
|
|
310
|
+
s,
|
|
311
|
+
"clientstylingurl",
|
|
312
|
+
/*clientstylingurl*/
|
|
313
|
+
t[13]
|
|
314
|
+
), i(
|
|
315
|
+
s,
|
|
316
|
+
"clientstyling",
|
|
317
|
+
/*clientstyling*/
|
|
318
|
+
t[12]
|
|
319
|
+
), i(
|
|
320
|
+
s,
|
|
321
|
+
"showbackbutton",
|
|
322
|
+
/*showheader*/
|
|
323
|
+
t[10]
|
|
324
|
+
), i(
|
|
325
|
+
s,
|
|
326
|
+
"iframeurl",
|
|
327
|
+
/*redirectUrl*/
|
|
328
|
+
t[21]
|
|
329
|
+
), i(s, "class", "svelte-1eccdep"), M(e, "class", "IframeRedirect svelte-1eccdep");
|
|
330
|
+
},
|
|
331
|
+
m(l, a) {
|
|
332
|
+
P(l, e, a), C(e, s);
|
|
333
|
+
},
|
|
334
|
+
p(l, a) {
|
|
335
|
+
a[0] & /*lang*/
|
|
336
|
+
4 && i(
|
|
337
|
+
s,
|
|
338
|
+
"lang",
|
|
339
|
+
/*lang*/
|
|
340
|
+
l[2]
|
|
341
|
+
), a[0] & /*translationurl*/
|
|
342
|
+
16 && i(
|
|
343
|
+
s,
|
|
344
|
+
"translationurl",
|
|
345
|
+
/*translationurl*/
|
|
346
|
+
l[4]
|
|
347
|
+
), a[0] & /*title*/
|
|
348
|
+
1073741824 && i(
|
|
349
|
+
s,
|
|
350
|
+
"title",
|
|
351
|
+
/*title*/
|
|
352
|
+
l[30]
|
|
353
|
+
), a[0] & /*clientstylingurl*/
|
|
354
|
+
8192 && i(
|
|
355
|
+
s,
|
|
356
|
+
"clientstylingurl",
|
|
357
|
+
/*clientstylingurl*/
|
|
358
|
+
l[13]
|
|
359
|
+
), a[0] & /*clientstyling*/
|
|
360
|
+
4096 && i(
|
|
361
|
+
s,
|
|
362
|
+
"clientstyling",
|
|
363
|
+
/*clientstyling*/
|
|
364
|
+
l[12]
|
|
365
|
+
), a[0] & /*showheader*/
|
|
366
|
+
1024 && i(
|
|
367
|
+
s,
|
|
368
|
+
"showbackbutton",
|
|
369
|
+
/*showheader*/
|
|
370
|
+
l[10]
|
|
371
|
+
), a[0] & /*redirectUrl*/
|
|
372
|
+
2097152 && i(
|
|
373
|
+
s,
|
|
374
|
+
"iframeurl",
|
|
375
|
+
/*redirectUrl*/
|
|
376
|
+
l[21]
|
|
377
|
+
);
|
|
378
|
+
},
|
|
379
|
+
d(l) {
|
|
380
|
+
l && E(e);
|
|
381
|
+
}
|
|
382
|
+
};
|
|
383
|
+
}
|
|
384
|
+
function we(t) {
|
|
385
|
+
let e, s, l = (
|
|
386
|
+
/*confirmAmount*/
|
|
387
|
+
(t[26] && !/*hideAmountField*/
|
|
388
|
+
t[27] ? (
|
|
389
|
+
/*$_*/
|
|
390
|
+
t[32](`${/*type*/
|
|
391
|
+
t[9].toLowerCase()}.confirmTextWithAmount`, {
|
|
392
|
+
values: {
|
|
393
|
+
amount: (
|
|
394
|
+
/*formatter*/
|
|
395
|
+
t[33].format(
|
|
396
|
+
/*confirmAmount*/
|
|
397
|
+
t[26]
|
|
398
|
+
)
|
|
399
|
+
),
|
|
400
|
+
currency: (
|
|
401
|
+
/*currency*/
|
|
402
|
+
t[6]
|
|
403
|
+
)
|
|
404
|
+
}
|
|
405
|
+
})
|
|
406
|
+
) : (
|
|
407
|
+
/*$_*/
|
|
408
|
+
t[32](`${/*type*/
|
|
409
|
+
t[9].toLowerCase()}.confirmText`)
|
|
410
|
+
)) + ""
|
|
411
|
+
), a, p, r, u = (
|
|
412
|
+
/*$_*/
|
|
413
|
+
t[32](`${/*type*/
|
|
414
|
+
t[9].toLowerCase()}.confirmButton`) + ""
|
|
415
|
+
), c;
|
|
416
|
+
return {
|
|
417
|
+
c() {
|
|
418
|
+
e = _("cashier-confirm-modal"), s = _("span"), a = O(l), p = D(), r = _("div"), c = O(u), M(s, "slot", "text"), M(s, "class", "svelte-1eccdep"), M(r, "slot", "confirm"), M(r, "class", "svelte-1eccdep"), i(
|
|
419
|
+
e,
|
|
420
|
+
"clientstylingurl",
|
|
421
|
+
/*clientstylingurl*/
|
|
422
|
+
t[13]
|
|
423
|
+
), i(
|
|
424
|
+
e,
|
|
425
|
+
"clientstyling",
|
|
426
|
+
/*clientstyling*/
|
|
427
|
+
t[12]
|
|
428
|
+
), i(e, "class", "svelte-1eccdep");
|
|
429
|
+
},
|
|
430
|
+
m(o, h) {
|
|
431
|
+
P(o, e, h), C(e, s), C(s, a), C(e, p), C(e, r), C(r, c);
|
|
432
|
+
},
|
|
433
|
+
p(o, h) {
|
|
434
|
+
h[0] & /*confirmAmount, hideAmountField, type, currency*/
|
|
435
|
+
201327168 | h[1] & /*$_*/
|
|
436
|
+
2 && l !== (l = /*confirmAmount*/
|
|
437
|
+
(o[26] && !/*hideAmountField*/
|
|
438
|
+
o[27] ? (
|
|
439
|
+
/*$_*/
|
|
440
|
+
o[32](`${/*type*/
|
|
441
|
+
o[9].toLowerCase()}.confirmTextWithAmount`, {
|
|
442
|
+
values: {
|
|
443
|
+
amount: (
|
|
444
|
+
/*formatter*/
|
|
445
|
+
o[33].format(
|
|
446
|
+
/*confirmAmount*/
|
|
447
|
+
o[26]
|
|
448
|
+
)
|
|
449
|
+
),
|
|
450
|
+
currency: (
|
|
451
|
+
/*currency*/
|
|
452
|
+
o[6]
|
|
453
|
+
)
|
|
454
|
+
}
|
|
455
|
+
})
|
|
456
|
+
) : (
|
|
457
|
+
/*$_*/
|
|
458
|
+
o[32](`${/*type*/
|
|
459
|
+
o[9].toLowerCase()}.confirmText`)
|
|
460
|
+
)) + "") && U(a, l), h[0] & /*type*/
|
|
461
|
+
512 | h[1] & /*$_*/
|
|
462
|
+
2 && u !== (u = /*$_*/
|
|
463
|
+
o[32](`${/*type*/
|
|
464
|
+
o[9].toLowerCase()}.confirmButton`) + "") && U(c, u), h[0] & /*clientstylingurl*/
|
|
465
|
+
8192 && i(
|
|
466
|
+
e,
|
|
467
|
+
"clientstylingurl",
|
|
468
|
+
/*clientstylingurl*/
|
|
469
|
+
o[13]
|
|
470
|
+
), h[0] & /*clientstyling*/
|
|
471
|
+
4096 && i(
|
|
472
|
+
e,
|
|
473
|
+
"clientstyling",
|
|
474
|
+
/*clientstyling*/
|
|
475
|
+
o[12]
|
|
476
|
+
);
|
|
477
|
+
},
|
|
478
|
+
d(o) {
|
|
479
|
+
o && E(e);
|
|
480
|
+
}
|
|
481
|
+
};
|
|
482
|
+
}
|
|
483
|
+
function Xe(t) {
|
|
484
|
+
let e, s = !/*errorResponseCode*/
|
|
485
|
+
t[25] && be(t);
|
|
486
|
+
return {
|
|
487
|
+
c() {
|
|
488
|
+
e = _("cashier-error"), s && s.c(), i(e, "class", "Error svelte-1eccdep"), i(
|
|
489
|
+
e,
|
|
490
|
+
"lang",
|
|
491
|
+
/*lang*/
|
|
492
|
+
t[2]
|
|
493
|
+
), i(
|
|
494
|
+
e,
|
|
495
|
+
"assetsurl",
|
|
496
|
+
/*assetsurl*/
|
|
497
|
+
t[8]
|
|
498
|
+
), i(
|
|
499
|
+
e,
|
|
500
|
+
"translationurl",
|
|
501
|
+
/*translationurl*/
|
|
502
|
+
t[4]
|
|
503
|
+
), i(
|
|
504
|
+
e,
|
|
505
|
+
"clientstylingurl",
|
|
506
|
+
/*clientstylingurl*/
|
|
507
|
+
t[13]
|
|
508
|
+
), i(
|
|
509
|
+
e,
|
|
510
|
+
"clientstyling",
|
|
511
|
+
/*clientstyling*/
|
|
512
|
+
t[12]
|
|
513
|
+
), i(e, "hidebuttons", "true"), i(
|
|
514
|
+
e,
|
|
515
|
+
"errorcode",
|
|
516
|
+
/*errorResponseCode*/
|
|
517
|
+
t[25]
|
|
518
|
+
);
|
|
519
|
+
},
|
|
520
|
+
m(l, a) {
|
|
521
|
+
P(l, e, a), s && s.m(e, null);
|
|
522
|
+
},
|
|
523
|
+
p(l, a) {
|
|
524
|
+
/*errorResponseCode*/
|
|
525
|
+
l[25] ? s && (s.d(1), s = null) : s ? s.p(l, a) : (s = be(l), s.c(), s.m(e, null)), a[0] & /*lang*/
|
|
526
|
+
4 && i(
|
|
527
|
+
e,
|
|
528
|
+
"lang",
|
|
529
|
+
/*lang*/
|
|
530
|
+
l[2]
|
|
531
|
+
), a[0] & /*assetsurl*/
|
|
532
|
+
256 && i(
|
|
533
|
+
e,
|
|
534
|
+
"assetsurl",
|
|
535
|
+
/*assetsurl*/
|
|
536
|
+
l[8]
|
|
537
|
+
), a[0] & /*translationurl*/
|
|
538
|
+
16 && i(
|
|
539
|
+
e,
|
|
540
|
+
"translationurl",
|
|
541
|
+
/*translationurl*/
|
|
542
|
+
l[4]
|
|
543
|
+
), a[0] & /*clientstylingurl*/
|
|
544
|
+
8192 && i(
|
|
545
|
+
e,
|
|
546
|
+
"clientstylingurl",
|
|
547
|
+
/*clientstylingurl*/
|
|
548
|
+
l[13]
|
|
549
|
+
), a[0] & /*clientstyling*/
|
|
550
|
+
4096 && i(
|
|
551
|
+
e,
|
|
552
|
+
"clientstyling",
|
|
553
|
+
/*clientstyling*/
|
|
554
|
+
l[12]
|
|
555
|
+
), a[0] & /*errorResponseCode*/
|
|
556
|
+
33554432 && i(
|
|
557
|
+
e,
|
|
558
|
+
"errorcode",
|
|
559
|
+
/*errorResponseCode*/
|
|
560
|
+
l[25]
|
|
561
|
+
);
|
|
562
|
+
},
|
|
563
|
+
d(l) {
|
|
564
|
+
l && E(e), s && s.d();
|
|
565
|
+
}
|
|
566
|
+
};
|
|
567
|
+
}
|
|
568
|
+
function Qe(t) {
|
|
569
|
+
let e, s, l, a, p, r, u;
|
|
570
|
+
return {
|
|
571
|
+
c() {
|
|
572
|
+
e = _("div"), s = _("div"), l = _("cashier-methods-list"), a = D(), p = _("div"), r = _("cashier-method-details"), i(
|
|
573
|
+
l,
|
|
574
|
+
"lang",
|
|
575
|
+
/*lang*/
|
|
576
|
+
t[2]
|
|
577
|
+
), i(
|
|
578
|
+
l,
|
|
579
|
+
"local",
|
|
580
|
+
/*local*/
|
|
581
|
+
t[3]
|
|
582
|
+
), i(
|
|
583
|
+
l,
|
|
584
|
+
"translationurl",
|
|
585
|
+
/*translationurl*/
|
|
586
|
+
t[4]
|
|
587
|
+
), i(
|
|
588
|
+
l,
|
|
589
|
+
"endpoint",
|
|
590
|
+
/*endpoint*/
|
|
591
|
+
t[0]
|
|
592
|
+
), i(
|
|
593
|
+
l,
|
|
594
|
+
"customerid",
|
|
595
|
+
/*customerid*/
|
|
596
|
+
t[5]
|
|
597
|
+
), i(
|
|
598
|
+
l,
|
|
599
|
+
"currency",
|
|
600
|
+
/*currency*/
|
|
601
|
+
t[6]
|
|
602
|
+
), i(
|
|
603
|
+
l,
|
|
604
|
+
"numberofmethodsshown",
|
|
605
|
+
/*numberofmethodsshown*/
|
|
606
|
+
t[11]
|
|
607
|
+
), i(
|
|
608
|
+
l,
|
|
609
|
+
"clientstylingurl",
|
|
610
|
+
/*clientstylingurl*/
|
|
611
|
+
t[13]
|
|
612
|
+
), i(
|
|
613
|
+
l,
|
|
614
|
+
"clientstyling",
|
|
615
|
+
/*clientstyling*/
|
|
616
|
+
t[12]
|
|
617
|
+
), i(
|
|
618
|
+
l,
|
|
619
|
+
"assetsurl",
|
|
620
|
+
/*assetsurl*/
|
|
621
|
+
t[8]
|
|
622
|
+
), i(
|
|
623
|
+
l,
|
|
624
|
+
"session",
|
|
625
|
+
/*xPaymentSessionToken*/
|
|
626
|
+
t[17]
|
|
627
|
+
), i(
|
|
628
|
+
l,
|
|
629
|
+
"ismobileview",
|
|
630
|
+
/*mobileView*/
|
|
631
|
+
t[19]
|
|
632
|
+
), i(l, "class", "svelte-1eccdep"), M(s, "class", "CashierMethodListWrapper svelte-1eccdep"), i(
|
|
633
|
+
r,
|
|
634
|
+
"lang",
|
|
635
|
+
/*lang*/
|
|
636
|
+
t[2]
|
|
637
|
+
), i(
|
|
638
|
+
r,
|
|
639
|
+
"local",
|
|
640
|
+
/*local*/
|
|
641
|
+
t[3]
|
|
642
|
+
), i(
|
|
643
|
+
r,
|
|
644
|
+
"translationurl",
|
|
645
|
+
/*translationurl*/
|
|
646
|
+
t[4]
|
|
647
|
+
), i(
|
|
648
|
+
r,
|
|
649
|
+
"endpoint",
|
|
650
|
+
/*endpoint*/
|
|
651
|
+
t[0]
|
|
652
|
+
), i(
|
|
653
|
+
r,
|
|
654
|
+
"customerid",
|
|
655
|
+
/*customerid*/
|
|
656
|
+
t[5]
|
|
657
|
+
), i(
|
|
658
|
+
r,
|
|
659
|
+
"currency",
|
|
660
|
+
/*currency*/
|
|
661
|
+
t[6]
|
|
662
|
+
), i(
|
|
663
|
+
r,
|
|
664
|
+
"amount",
|
|
665
|
+
/*amount*/
|
|
666
|
+
t[7]
|
|
667
|
+
), i(
|
|
668
|
+
r,
|
|
669
|
+
"assetsurl",
|
|
670
|
+
/*assetsurl*/
|
|
671
|
+
t[8]
|
|
672
|
+
), i(
|
|
673
|
+
r,
|
|
674
|
+
"type",
|
|
675
|
+
/*type*/
|
|
676
|
+
t[9]
|
|
677
|
+
), i(
|
|
678
|
+
r,
|
|
679
|
+
"clientstylingurl",
|
|
680
|
+
/*clientstylingurl*/
|
|
681
|
+
t[13]
|
|
682
|
+
), i(
|
|
683
|
+
r,
|
|
684
|
+
"clientstyling",
|
|
685
|
+
/*clientstyling*/
|
|
686
|
+
t[12]
|
|
687
|
+
), i(
|
|
688
|
+
r,
|
|
689
|
+
"ismobileview",
|
|
690
|
+
/*mobileView*/
|
|
691
|
+
t[19]
|
|
692
|
+
), i(r, "selectedpaymentmethodname", u = /*selectedPaymentMethod*/
|
|
693
|
+
t[18].Name), i(
|
|
694
|
+
r,
|
|
695
|
+
"session",
|
|
696
|
+
/*xPaymentSessionToken*/
|
|
697
|
+
t[17]
|
|
698
|
+
), i(
|
|
699
|
+
r,
|
|
700
|
+
"playersession",
|
|
701
|
+
/*session*/
|
|
702
|
+
t[1]
|
|
703
|
+
), i(r, "class", "svelte-1eccdep"), M(p, "class", "CashierMethodDetailsWrapper svelte-1eccdep"), M(e, "class", "CashierPage svelte-1eccdep");
|
|
704
|
+
},
|
|
705
|
+
m(c, o) {
|
|
706
|
+
P(c, e, o), C(e, s), C(s, l), C(e, a), C(e, p), C(p, r);
|
|
707
|
+
},
|
|
708
|
+
p(c, o) {
|
|
709
|
+
o[0] & /*lang*/
|
|
710
|
+
4 && i(
|
|
711
|
+
l,
|
|
712
|
+
"lang",
|
|
713
|
+
/*lang*/
|
|
714
|
+
c[2]
|
|
715
|
+
), o[0] & /*local*/
|
|
716
|
+
8 && i(
|
|
717
|
+
l,
|
|
718
|
+
"local",
|
|
719
|
+
/*local*/
|
|
720
|
+
c[3]
|
|
721
|
+
), o[0] & /*translationurl*/
|
|
722
|
+
16 && i(
|
|
723
|
+
l,
|
|
724
|
+
"translationurl",
|
|
725
|
+
/*translationurl*/
|
|
726
|
+
c[4]
|
|
727
|
+
), o[0] & /*endpoint*/
|
|
728
|
+
1 && i(
|
|
729
|
+
l,
|
|
730
|
+
"endpoint",
|
|
731
|
+
/*endpoint*/
|
|
732
|
+
c[0]
|
|
733
|
+
), o[0] & /*customerid*/
|
|
734
|
+
32 && i(
|
|
735
|
+
l,
|
|
736
|
+
"customerid",
|
|
737
|
+
/*customerid*/
|
|
738
|
+
c[5]
|
|
739
|
+
), o[0] & /*currency*/
|
|
740
|
+
64 && i(
|
|
741
|
+
l,
|
|
742
|
+
"currency",
|
|
743
|
+
/*currency*/
|
|
744
|
+
c[6]
|
|
745
|
+
), o[0] & /*numberofmethodsshown*/
|
|
746
|
+
2048 && i(
|
|
747
|
+
l,
|
|
748
|
+
"numberofmethodsshown",
|
|
749
|
+
/*numberofmethodsshown*/
|
|
750
|
+
c[11]
|
|
751
|
+
), o[0] & /*clientstylingurl*/
|
|
752
|
+
8192 && i(
|
|
753
|
+
l,
|
|
754
|
+
"clientstylingurl",
|
|
755
|
+
/*clientstylingurl*/
|
|
756
|
+
c[13]
|
|
757
|
+
), o[0] & /*clientstyling*/
|
|
758
|
+
4096 && i(
|
|
759
|
+
l,
|
|
760
|
+
"clientstyling",
|
|
761
|
+
/*clientstyling*/
|
|
762
|
+
c[12]
|
|
763
|
+
), o[0] & /*assetsurl*/
|
|
764
|
+
256 && i(
|
|
765
|
+
l,
|
|
766
|
+
"assetsurl",
|
|
767
|
+
/*assetsurl*/
|
|
768
|
+
c[8]
|
|
769
|
+
), o[0] & /*xPaymentSessionToken*/
|
|
770
|
+
131072 && i(
|
|
771
|
+
l,
|
|
772
|
+
"session",
|
|
773
|
+
/*xPaymentSessionToken*/
|
|
774
|
+
c[17]
|
|
775
|
+
), o[0] & /*mobileView*/
|
|
776
|
+
524288 && i(
|
|
777
|
+
l,
|
|
778
|
+
"ismobileview",
|
|
779
|
+
/*mobileView*/
|
|
780
|
+
c[19]
|
|
781
|
+
), o[0] & /*lang*/
|
|
782
|
+
4 && i(
|
|
783
|
+
r,
|
|
784
|
+
"lang",
|
|
785
|
+
/*lang*/
|
|
786
|
+
c[2]
|
|
787
|
+
), o[0] & /*local*/
|
|
788
|
+
8 && i(
|
|
789
|
+
r,
|
|
790
|
+
"local",
|
|
791
|
+
/*local*/
|
|
792
|
+
c[3]
|
|
793
|
+
), o[0] & /*translationurl*/
|
|
794
|
+
16 && i(
|
|
795
|
+
r,
|
|
796
|
+
"translationurl",
|
|
797
|
+
/*translationurl*/
|
|
798
|
+
c[4]
|
|
799
|
+
), o[0] & /*endpoint*/
|
|
800
|
+
1 && i(
|
|
801
|
+
r,
|
|
802
|
+
"endpoint",
|
|
803
|
+
/*endpoint*/
|
|
804
|
+
c[0]
|
|
805
|
+
), o[0] & /*customerid*/
|
|
806
|
+
32 && i(
|
|
807
|
+
r,
|
|
808
|
+
"customerid",
|
|
809
|
+
/*customerid*/
|
|
810
|
+
c[5]
|
|
811
|
+
), o[0] & /*currency*/
|
|
812
|
+
64 && i(
|
|
813
|
+
r,
|
|
814
|
+
"currency",
|
|
815
|
+
/*currency*/
|
|
816
|
+
c[6]
|
|
817
|
+
), o[0] & /*amount*/
|
|
818
|
+
128 && i(
|
|
819
|
+
r,
|
|
820
|
+
"amount",
|
|
821
|
+
/*amount*/
|
|
822
|
+
c[7]
|
|
823
|
+
), o[0] & /*assetsurl*/
|
|
824
|
+
256 && i(
|
|
825
|
+
r,
|
|
826
|
+
"assetsurl",
|
|
827
|
+
/*assetsurl*/
|
|
828
|
+
c[8]
|
|
829
|
+
), o[0] & /*type*/
|
|
830
|
+
512 && i(
|
|
831
|
+
r,
|
|
832
|
+
"type",
|
|
833
|
+
/*type*/
|
|
834
|
+
c[9]
|
|
835
|
+
), o[0] & /*clientstylingurl*/
|
|
836
|
+
8192 && i(
|
|
837
|
+
r,
|
|
838
|
+
"clientstylingurl",
|
|
839
|
+
/*clientstylingurl*/
|
|
840
|
+
c[13]
|
|
841
|
+
), o[0] & /*clientstyling*/
|
|
842
|
+
4096 && i(
|
|
843
|
+
r,
|
|
844
|
+
"clientstyling",
|
|
845
|
+
/*clientstyling*/
|
|
846
|
+
c[12]
|
|
847
|
+
), o[0] & /*mobileView*/
|
|
848
|
+
524288 && i(
|
|
849
|
+
r,
|
|
850
|
+
"ismobileview",
|
|
851
|
+
/*mobileView*/
|
|
852
|
+
c[19]
|
|
853
|
+
), o[0] & /*selectedPaymentMethod*/
|
|
854
|
+
262144 && u !== (u = /*selectedPaymentMethod*/
|
|
855
|
+
c[18].Name) && i(r, "selectedpaymentmethodname", u), o[0] & /*xPaymentSessionToken*/
|
|
856
|
+
131072 && i(
|
|
857
|
+
r,
|
|
858
|
+
"session",
|
|
859
|
+
/*xPaymentSessionToken*/
|
|
860
|
+
c[17]
|
|
861
|
+
), o[0] & /*session*/
|
|
862
|
+
2 && i(
|
|
863
|
+
r,
|
|
864
|
+
"playersession",
|
|
865
|
+
/*session*/
|
|
866
|
+
c[1]
|
|
867
|
+
);
|
|
868
|
+
},
|
|
869
|
+
d(c) {
|
|
870
|
+
c && E(e);
|
|
871
|
+
}
|
|
872
|
+
};
|
|
873
|
+
}
|
|
874
|
+
function be(t) {
|
|
875
|
+
let e, s;
|
|
876
|
+
return {
|
|
877
|
+
c() {
|
|
878
|
+
e = _("span"), s = O(
|
|
879
|
+
/*errorMessage*/
|
|
880
|
+
t[24]
|
|
881
|
+
), M(e, "slot", "text"), M(e, "class", "svelte-1eccdep");
|
|
882
|
+
},
|
|
883
|
+
m(l, a) {
|
|
884
|
+
P(l, e, a), C(e, s);
|
|
885
|
+
},
|
|
886
|
+
p(l, a) {
|
|
887
|
+
a[0] & /*errorMessage*/
|
|
888
|
+
16777216 && U(
|
|
889
|
+
s,
|
|
890
|
+
/*errorMessage*/
|
|
891
|
+
l[24]
|
|
892
|
+
);
|
|
893
|
+
},
|
|
894
|
+
d(l) {
|
|
895
|
+
l && E(e);
|
|
896
|
+
}
|
|
897
|
+
};
|
|
898
|
+
}
|
|
899
|
+
function Ze(t) {
|
|
900
|
+
let e, s, l, a, p, r = (
|
|
901
|
+
/*isProcessingTxn*/
|
|
902
|
+
t[22] && fe()
|
|
903
|
+
), u = (
|
|
904
|
+
/*lang*/
|
|
905
|
+
t[2] && me(t)
|
|
906
|
+
);
|
|
907
|
+
function c(m, f) {
|
|
908
|
+
return !/*errorMessage*/
|
|
909
|
+
m[24] && !/*errorResponseCode*/
|
|
910
|
+
m[25] ? Qe : Xe;
|
|
911
|
+
}
|
|
912
|
+
let o = c(t), h = o(t);
|
|
913
|
+
return {
|
|
914
|
+
c() {
|
|
915
|
+
e = _("div"), r && r.c(), s = D(), u && u.c(), l = D(), h.c(), M(e, "class", a = ce(
|
|
916
|
+
/*showMethodDetailsPage*/
|
|
917
|
+
t[23] ? "CashierPageWidget BothSections" : "CashierPageWidget"
|
|
918
|
+
) + " svelte-1eccdep"), Ne(() => (
|
|
919
|
+
/*div_elementresize_handler*/
|
|
920
|
+
t[40].call(e)
|
|
921
|
+
));
|
|
922
|
+
},
|
|
923
|
+
m(m, f) {
|
|
924
|
+
P(m, e, f), r && r.m(e, null), C(e, s), u && u.m(e, null), C(e, l), h.m(e, null), t[39](e), p = He(
|
|
925
|
+
e,
|
|
926
|
+
/*div_elementresize_handler*/
|
|
927
|
+
t[40].bind(e)
|
|
928
|
+
);
|
|
929
|
+
},
|
|
930
|
+
p(m, f) {
|
|
931
|
+
/*isProcessingTxn*/
|
|
932
|
+
m[22] ? r || (r = fe(), r.c(), r.m(e, s)) : r && (r.d(1), r = null), /*lang*/
|
|
933
|
+
m[2] ? u ? u.p(m, f) : (u = me(m), u.c(), u.m(e, l)) : u && (u.d(1), u = null), o === (o = c(m)) && h ? h.p(m, f) : (h.d(1), h = o(m), h && (h.c(), h.m(e, null))), f[0] & /*showMethodDetailsPage*/
|
|
934
|
+
8388608 && a !== (a = ce(
|
|
935
|
+
/*showMethodDetailsPage*/
|
|
936
|
+
m[23] ? "CashierPageWidget BothSections" : "CashierPageWidget"
|
|
937
|
+
) + " svelte-1eccdep") && M(e, "class", a);
|
|
938
|
+
},
|
|
939
|
+
i: de,
|
|
940
|
+
o: de,
|
|
941
|
+
d(m) {
|
|
942
|
+
m && E(e), r && r.d(), u && u.d(), h.d(), t[39](null), p();
|
|
943
|
+
}
|
|
944
|
+
};
|
|
945
|
+
}
|
|
946
|
+
function xe(t, e, s) {
|
|
947
|
+
let l;
|
|
948
|
+
je(t, qe, (n) => s(32, l = n));
|
|
949
|
+
var a;
|
|
950
|
+
(function(n) {
|
|
951
|
+
n.Default = "Default", n.RedirectWithRetry = "Redirect";
|
|
952
|
+
})(a || (a = {}));
|
|
953
|
+
const p = (n, [v, S]) => [
|
|
954
|
+
...n,
|
|
955
|
+
...Array.isArray(v) ? [...v.map((k) => [k, S])] : [[v, S]]
|
|
956
|
+
];
|
|
957
|
+
new Map([
|
|
958
|
+
[["Default", 0], a.Default],
|
|
959
|
+
[["Redirect", 1], a.RedirectWithRetry]
|
|
960
|
+
].reduce(p, []));
|
|
961
|
+
let { endpoint: r } = e, { session: u } = e, { lang: c = "en" } = e, { local: o = "en-US" } = e, { translationurl: h } = e, { successurl: m } = e, { failurl: f } = e, { cancelurl: w } = e, { customerid: b } = e, { currency: d } = e, { amount: g } = e, { assetsurl: G } = e, { type: B = ve.Deposit } = e, { channel: z = ye.Desktop } = e, { showheader: K = "true" } = e, { numberofmethodsshown: X } = e, { clientstyling: N = "" } = e, { clientstylingurl: H = "" } = e, Q, T = {}, _e = new Intl.NumberFormat(o, { minimumFractionDigits: 2 }), L, A, Z, F = !1, x, $, j = !1, Y, W, ee, te, se, ie, V, J;
|
|
962
|
+
const Ce = () => {
|
|
963
|
+
Ge(c);
|
|
964
|
+
}, ke = () => {
|
|
965
|
+
let n = h;
|
|
966
|
+
if (n)
|
|
967
|
+
return fetch(n).then((v) => v.json()).then((v) => {
|
|
968
|
+
Object.keys(v).forEach((S) => {
|
|
969
|
+
ue(S, v[S]);
|
|
970
|
+
});
|
|
971
|
+
}).catch((v) => {
|
|
972
|
+
console.log(v);
|
|
973
|
+
});
|
|
974
|
+
};
|
|
975
|
+
Object.keys(he).forEach((n) => {
|
|
976
|
+
ue(n, he[n]);
|
|
977
|
+
});
|
|
978
|
+
const Me = () => {
|
|
979
|
+
const n = new URL(`${r}/v2/player/${b}/payment/GetPaymentSession`), v = new Headers();
|
|
980
|
+
v.append("accept", "application/json"), v.append("Content-Type", "application/json"), v.append("X-SessionId", `${u}`);
|
|
981
|
+
const S = {
|
|
982
|
+
method: "POST",
|
|
983
|
+
mode: "cors",
|
|
984
|
+
headers: v,
|
|
985
|
+
body: JSON.stringify({
|
|
986
|
+
Channel: z,
|
|
987
|
+
Type: B,
|
|
988
|
+
SuccessUrl: m,
|
|
989
|
+
CancelUrl: w,
|
|
990
|
+
FailUrl: f,
|
|
991
|
+
Language: c
|
|
992
|
+
})
|
|
993
|
+
};
|
|
994
|
+
fetch(n, S).then((k) => k.json()).then((k) => {
|
|
995
|
+
if (k.error && s(24, Y = k.error), k.ResponseCode === I.PlayerSessionIsNotValid) {
|
|
996
|
+
s(25, W = k.ResponseCode), q();
|
|
997
|
+
return;
|
|
998
|
+
}
|
|
999
|
+
if (k.ResponseCode === I.JwtTokenError && (s(25, W = k.ResponseCode), q()), k.ResponseCode !== I.Success) {
|
|
1000
|
+
s(25, W = k.ResponseCode), q();
|
|
1001
|
+
return;
|
|
1002
|
+
}
|
|
1003
|
+
s(17, Q = k.XPaymentSessionToken);
|
|
1004
|
+
}).catch((k) => console.log(k));
|
|
1005
|
+
}, R = () => {
|
|
1006
|
+
j && le() && !W ? (s(30, V = T.Label || T.Name), s(31, J = "true")) : (s(30, V = `header.${B.toLowerCase()}`), s(31, J = "false"));
|
|
1007
|
+
}, Pe = () => {
|
|
1008
|
+
s(19, Z = le().toString()), R();
|
|
1009
|
+
}, le = () => A < 750, ne = (n) => {
|
|
1010
|
+
s(18, T.Name = n.detail.Name, T), s(18, T.Label = n.detail.Label, T), s(23, j = !0), R();
|
|
1011
|
+
}, q = () => {
|
|
1012
|
+
window.postMessage(
|
|
1013
|
+
{
|
|
1014
|
+
type: "ErrorResponseCode",
|
|
1015
|
+
errorResponseCode: W
|
|
1016
|
+
},
|
|
1017
|
+
window.location.href
|
|
1018
|
+
);
|
|
1019
|
+
}, Ee = () => {
|
|
1020
|
+
let n = document.createElement("style");
|
|
1021
|
+
n.innerHTML = N, L.appendChild(n);
|
|
1022
|
+
}, Se = () => {
|
|
1023
|
+
let n = new URL(H), v = document.createElement("style");
|
|
1024
|
+
fetch(n.href).then((S) => S.text()).then((S) => {
|
|
1025
|
+
v.innerHTML = S, setTimeout(
|
|
1026
|
+
() => {
|
|
1027
|
+
L.appendChild(v);
|
|
1028
|
+
},
|
|
1029
|
+
1
|
|
1030
|
+
), setTimeout(
|
|
1031
|
+
() => {
|
|
1032
|
+
},
|
|
1033
|
+
500
|
|
1034
|
+
);
|
|
1035
|
+
});
|
|
1036
|
+
}, re = (n) => {
|
|
1037
|
+
s(23, j = !n.detail.hideMethodDetails), R();
|
|
1038
|
+
};
|
|
1039
|
+
Ie(() => (window.addEventListener("selectPayMeth", ne, !1), window.addEventListener("hidePaymentDetails", re, !1), window.addEventListener("message", ae, !1), window.addEventListener("closeModal", oe, !1), () => {
|
|
1040
|
+
window.removeEventListener("hidePaymentDetails", re), window.removeEventListener("selectPayMeth", ne), window.removeEventListener("message", ae), window.removeEventListener("closeModal", oe);
|
|
1041
|
+
}));
|
|
1042
|
+
const Te = () => {
|
|
1043
|
+
window.postMessage({ type: "HideCashierModal" }, window.location.href);
|
|
1044
|
+
}, oe = () => {
|
|
1045
|
+
s(20, F = !1);
|
|
1046
|
+
}, ae = (n) => {
|
|
1047
|
+
n.data.type === "ShowSessionError" && s(24, Y = n.data.error), n.data.type === "ToggleDisableActionOnPage" && s(22, $ = n.data.disable), n.data.type === "ErrorResponseCode" && (s(25, W = n.data.errorResponseCode), R()), n.data.type === "ShowConfirmModal" && (s(20, F = n.data.showConfirmModal), s(26, ee = n.data.editedAmount), s(27, te = n.data.hideAmountField)), n.data.type === "RedirectInfo" && (s(21, x = n.data.redirectUrl), s(28, se = n.data.redirectMode), R()), n.data.type === "ShowCashierModal" && s(29, ie = n.data.modalErrorMessage);
|
|
1048
|
+
};
|
|
1049
|
+
function Le(n) {
|
|
1050
|
+
Fe[n ? "unshift" : "push"](() => {
|
|
1051
|
+
L = n, s(14, L);
|
|
1052
|
+
});
|
|
1053
|
+
}
|
|
1054
|
+
function We() {
|
|
1055
|
+
A = this.clientWidth, s(15, A);
|
|
1056
|
+
}
|
|
1057
|
+
return t.$$set = (n) => {
|
|
1058
|
+
"endpoint" in n && s(0, r = n.endpoint), "session" in n && s(1, u = n.session), "lang" in n && s(2, c = n.lang), "local" in n && s(3, o = n.local), "translationurl" in n && s(4, h = n.translationurl), "successurl" in n && s(35, m = n.successurl), "failurl" in n && s(36, f = n.failurl), "cancelurl" in n && s(37, w = n.cancelurl), "customerid" in n && s(5, b = n.customerid), "currency" in n && s(6, d = n.currency), "amount" in n && s(7, g = n.amount), "assetsurl" in n && s(8, G = n.assetsurl), "type" in n && s(9, B = n.type), "channel" in n && s(38, z = n.channel), "showheader" in n && s(10, K = n.showheader), "numberofmethodsshown" in n && s(11, X = n.numberofmethodsshown), "clientstyling" in n && s(12, N = n.clientstyling), "clientstylingurl" in n && s(13, H = n.clientstylingurl);
|
|
1059
|
+
}, t.$$.update = () => {
|
|
1060
|
+
t.$$.dirty[0] & /*endpoint, session, customerid, lang, type*/
|
|
1061
|
+
551 | t.$$.dirty[1] & /*channel, successurl, failurl, cancelurl*/
|
|
1062
|
+
240 && r && u && b && c && z && B && m && f && w && Me(), t.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
1063
|
+
20480 && N && L && Ee(), t.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
1064
|
+
24576 && H && L && Se(), t.$$.dirty[0] & /*lang*/
|
|
1065
|
+
4 && c && Ce(), t.$$.dirty[0] & /*lang*/
|
|
1066
|
+
4 && c && R(), t.$$.dirty[0] & /*translationurl*/
|
|
1067
|
+
16 && h && ke(), t.$$.dirty[0] & /*widgetWidth*/
|
|
1068
|
+
32768 && A && Pe();
|
|
1069
|
+
}, [
|
|
1070
|
+
r,
|
|
1071
|
+
u,
|
|
1072
|
+
c,
|
|
1073
|
+
o,
|
|
1074
|
+
h,
|
|
1075
|
+
b,
|
|
1076
|
+
d,
|
|
1077
|
+
g,
|
|
1078
|
+
G,
|
|
1079
|
+
B,
|
|
1080
|
+
K,
|
|
1081
|
+
X,
|
|
1082
|
+
N,
|
|
1083
|
+
H,
|
|
1084
|
+
L,
|
|
1085
|
+
A,
|
|
1086
|
+
a,
|
|
1087
|
+
Q,
|
|
1088
|
+
T,
|
|
1089
|
+
Z,
|
|
1090
|
+
F,
|
|
1091
|
+
x,
|
|
1092
|
+
$,
|
|
1093
|
+
j,
|
|
1094
|
+
Y,
|
|
1095
|
+
W,
|
|
1096
|
+
ee,
|
|
1097
|
+
te,
|
|
1098
|
+
se,
|
|
1099
|
+
ie,
|
|
1100
|
+
V,
|
|
1101
|
+
J,
|
|
1102
|
+
l,
|
|
1103
|
+
_e,
|
|
1104
|
+
Te,
|
|
1105
|
+
m,
|
|
1106
|
+
f,
|
|
1107
|
+
w,
|
|
1108
|
+
z,
|
|
1109
|
+
Le,
|
|
1110
|
+
We
|
|
1111
|
+
];
|
|
1112
|
+
}
|
|
1113
|
+
class $e extends De {
|
|
1114
|
+
constructor(e) {
|
|
1115
|
+
super(), Re(
|
|
1116
|
+
this,
|
|
1117
|
+
e,
|
|
1118
|
+
xe,
|
|
1119
|
+
Ze,
|
|
1120
|
+
Ae,
|
|
1121
|
+
{
|
|
1122
|
+
endpoint: 0,
|
|
1123
|
+
session: 1,
|
|
1124
|
+
lang: 2,
|
|
1125
|
+
local: 3,
|
|
1126
|
+
translationurl: 4,
|
|
1127
|
+
successurl: 35,
|
|
1128
|
+
failurl: 36,
|
|
1129
|
+
cancelurl: 37,
|
|
1130
|
+
customerid: 5,
|
|
1131
|
+
currency: 6,
|
|
1132
|
+
amount: 7,
|
|
1133
|
+
assetsurl: 8,
|
|
1134
|
+
type: 9,
|
|
1135
|
+
channel: 38,
|
|
1136
|
+
showheader: 10,
|
|
1137
|
+
numberofmethodsshown: 11,
|
|
1138
|
+
clientstyling: 12,
|
|
1139
|
+
clientstylingurl: 13
|
|
1140
|
+
},
|
|
1141
|
+
Ke,
|
|
1142
|
+
[-1, -1, -1]
|
|
1143
|
+
);
|
|
1144
|
+
}
|
|
1145
|
+
get endpoint() {
|
|
1146
|
+
return this.$$.ctx[0];
|
|
1147
|
+
}
|
|
1148
|
+
set endpoint(e) {
|
|
1149
|
+
this.$$set({ endpoint: e }), y();
|
|
1150
|
+
}
|
|
1151
|
+
get session() {
|
|
1152
|
+
return this.$$.ctx[1];
|
|
1153
|
+
}
|
|
1154
|
+
set session(e) {
|
|
1155
|
+
this.$$set({ session: e }), y();
|
|
1156
|
+
}
|
|
1157
|
+
get lang() {
|
|
1158
|
+
return this.$$.ctx[2];
|
|
1159
|
+
}
|
|
1160
|
+
set lang(e) {
|
|
1161
|
+
this.$$set({ lang: e }), y();
|
|
1162
|
+
}
|
|
1163
|
+
get local() {
|
|
1164
|
+
return this.$$.ctx[3];
|
|
1165
|
+
}
|
|
1166
|
+
set local(e) {
|
|
1167
|
+
this.$$set({ local: e }), y();
|
|
1168
|
+
}
|
|
1169
|
+
get translationurl() {
|
|
1170
|
+
return this.$$.ctx[4];
|
|
1171
|
+
}
|
|
1172
|
+
set translationurl(e) {
|
|
1173
|
+
this.$$set({ translationurl: e }), y();
|
|
1174
|
+
}
|
|
1175
|
+
get successurl() {
|
|
1176
|
+
return this.$$.ctx[35];
|
|
1177
|
+
}
|
|
1178
|
+
set successurl(e) {
|
|
1179
|
+
this.$$set({ successurl: e }), y();
|
|
1180
|
+
}
|
|
1181
|
+
get failurl() {
|
|
1182
|
+
return this.$$.ctx[36];
|
|
1183
|
+
}
|
|
1184
|
+
set failurl(e) {
|
|
1185
|
+
this.$$set({ failurl: e }), y();
|
|
1186
|
+
}
|
|
1187
|
+
get cancelurl() {
|
|
1188
|
+
return this.$$.ctx[37];
|
|
1189
|
+
}
|
|
1190
|
+
set cancelurl(e) {
|
|
1191
|
+
this.$$set({ cancelurl: e }), y();
|
|
1192
|
+
}
|
|
1193
|
+
get customerid() {
|
|
1194
|
+
return this.$$.ctx[5];
|
|
1195
|
+
}
|
|
1196
|
+
set customerid(e) {
|
|
1197
|
+
this.$$set({ customerid: e }), y();
|
|
1198
|
+
}
|
|
1199
|
+
get currency() {
|
|
1200
|
+
return this.$$.ctx[6];
|
|
1201
|
+
}
|
|
1202
|
+
set currency(e) {
|
|
1203
|
+
this.$$set({ currency: e }), y();
|
|
1204
|
+
}
|
|
1205
|
+
get amount() {
|
|
1206
|
+
return this.$$.ctx[7];
|
|
1207
|
+
}
|
|
1208
|
+
set amount(e) {
|
|
1209
|
+
this.$$set({ amount: e }), y();
|
|
1210
|
+
}
|
|
1211
|
+
get assetsurl() {
|
|
1212
|
+
return this.$$.ctx[8];
|
|
1213
|
+
}
|
|
1214
|
+
set assetsurl(e) {
|
|
1215
|
+
this.$$set({ assetsurl: e }), y();
|
|
1216
|
+
}
|
|
1217
|
+
get type() {
|
|
1218
|
+
return this.$$.ctx[9];
|
|
1219
|
+
}
|
|
1220
|
+
set type(e) {
|
|
1221
|
+
this.$$set({ type: e }), y();
|
|
1222
|
+
}
|
|
1223
|
+
get channel() {
|
|
1224
|
+
return this.$$.ctx[38];
|
|
1225
|
+
}
|
|
1226
|
+
set channel(e) {
|
|
1227
|
+
this.$$set({ channel: e }), y();
|
|
1228
|
+
}
|
|
1229
|
+
get showheader() {
|
|
1230
|
+
return this.$$.ctx[10];
|
|
1231
|
+
}
|
|
1232
|
+
set showheader(e) {
|
|
1233
|
+
this.$$set({ showheader: e }), y();
|
|
1234
|
+
}
|
|
1235
|
+
get numberofmethodsshown() {
|
|
1236
|
+
return this.$$.ctx[11];
|
|
1237
|
+
}
|
|
1238
|
+
set numberofmethodsshown(e) {
|
|
1239
|
+
this.$$set({ numberofmethodsshown: e }), y();
|
|
1240
|
+
}
|
|
1241
|
+
get clientstyling() {
|
|
1242
|
+
return this.$$.ctx[12];
|
|
1243
|
+
}
|
|
1244
|
+
set clientstyling(e) {
|
|
1245
|
+
this.$$set({ clientstyling: e }), y();
|
|
1246
|
+
}
|
|
1247
|
+
get clientstylingurl() {
|
|
1248
|
+
return this.$$.ctx[13];
|
|
1249
|
+
}
|
|
1250
|
+
set clientstylingurl(e) {
|
|
1251
|
+
this.$$set({ clientstylingurl: e }), y();
|
|
1252
|
+
}
|
|
1253
|
+
}
|
|
1254
|
+
Be($e, { endpoint: {}, session: {}, lang: {}, local: {}, translationurl: {}, successurl: {}, failurl: {}, cancelurl: {}, customerid: {}, currency: {}, amount: {}, assetsurl: {}, type: {}, channel: {}, showheader: {}, numberofmethodsshown: {}, clientstyling: {}, clientstylingurl: {} }, [], [], !0);
|
|
1255
|
+
export {
|
|
1256
|
+
$e as default
|
|
1257
|
+
};
|