@everymatrix/cashier-method-details 1.76.3 → 1.76.4
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/CashierError-BrL5CAOl.js +4630 -0
- package/components/CashierError-Ct47Rqvt.js +4593 -0
- package/components/CashierError-DqG41odi.cjs +8 -0
- package/components/{CashierMethodDetails-DIc5nHRa.js → CashierMethodDetails-CbrOmOCe.js} +2580 -2387
- package/components/{CashierMethodDetails-BWHdOaxR.js → CashierMethodDetails-D01hFlpN.js} +2883 -2690
- package/components/CashierMethodDetails-F_t0ClIg.cjs +99 -0
- package/components/CashierModal-DVQJ9P-j.cjs +1 -0
- package/components/{CashierModal-C2Nyv-oI.js → CashierModal-IWswoSQa.js} +44 -44
- package/components/{CashierModal-C513JGq3.js → CashierModal-TGUCkbyQ.js} +44 -44
- package/components/{CashierNotifications-Byw9YQwf.js → CashierNotifications-Bg9zyIhP.js} +11 -11
- package/components/{CashierNotifications-BoCKEoNK.js → CashierNotifications-CcvLHszW.js} +11 -11
- package/components/{CashierNotifications-l6v72sgJ.cjs → CashierNotifications-DOJFHpXL.cjs} +1 -1
- package/components/CashierReceiptPage-BTrjEt7P.cjs +1 -0
- package/components/CashierReceiptPage-CEHlpRZd.js +1653 -0
- package/components/CashierReceiptPage-CstRy1Kd.js +1655 -0
- package/components/{CashierSpinner-DHhR3rfC.cjs → CashierSpinner-DCqiXAYk.cjs} +1 -1
- package/components/{CashierSpinner-C6V8vmbe.js → CashierSpinner-DO7iikrx.js} +16 -16
- package/components/{CashierSpinner-DacPlkWp.js → CashierSpinner-DT2gT_0p.js} +16 -16
- package/es2015/cashier-method-details.cjs +1 -1
- package/es2015/cashier-method-details.js +1 -1
- package/esnext/cashier-method-details.js +1 -1
- package/package.json +1 -1
- package/stencil/{index-97d17652-C7V2DWFg.js → index-97d17652--F7PvMq9.js} +176 -176
- package/stencil/index-97d17652-BhLhk_xz.cjs +1 -0
- package/stencil/{index-97d17652-DIpvPU9H.js → index-97d17652-CCFHkzJw.js} +187 -187
- package/stencil/{ui-image-DJWD4G-S.cjs → ui-image-BaHsVAxH.cjs} +1 -1
- package/stencil/{ui-image-D3_FGUyo.js → ui-image-C7s6Uvn5.js} +1 -1
- package/stencil/{ui-image-CYuYAlOX.js → ui-image-CHeV8e9p.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-B-k0kWgx.js → ui-image-b7b48fe5-ByRuJtdE.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-D8-wEkoZ.js → ui-image-b7b48fe5-D6iig_uN.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-yceZ9WkN.cjs → ui-image-b7b48fe5-DG83WzAo.cjs} +1 -1
- package/stencil/{ui-image_2-z5LhXZY2.js → ui-image_2-Bm97-wkj.js} +2 -2
- package/stencil/{ui-image_2-Ha_4GYwN.cjs → ui-image_2-DdFjzzNO.cjs} +1 -1
- package/stencil/{ui-image_2-CzFe50WB.js → ui-image_2-qO3reSlr.js} +2 -2
- package/components/CashierError-Dj7N5HFs.js +0 -4660
- package/components/CashierError-DjXZbKLf.js +0 -4623
- package/components/CashierError-P9Tj6USM.cjs +0 -21
- package/components/CashierMethodDetails-Dtj10PEv.cjs +0 -86
- package/components/CashierModal-01IRo-VX.cjs +0 -1
- package/components/CashierReceiptPage-BdxwO-LT.cjs +0 -1
- package/components/CashierReceiptPage-Cpss5ybm.js +0 -1622
- package/components/CashierReceiptPage-RnRw60xK.js +0 -1620
- package/stencil/index-97d17652-BgKdDb-e.cjs +0 -1
@@ -0,0 +1,1655 @@
|
|
1
|
+
import { a as Ze, i as Xe, $ as Je, S as Fe, b as $e, s as et, f as k, e as tt, n as Z, j as d, l as m, q as h, t as u, u as nt, v as it, C as Ce, k as p, y as B, m as C, r as I, z as A, x as ie, o as $, E as F, F as ze, A as Q, M as st, N as ot, O as at, d as lt, K as rt } from "./CashierError-BrL5CAOl.js";
|
2
|
+
import { d as Te, u as ct, f as ut, a as ke, i as ye, b as ft } from "./CashierMethodDetails-D01hFlpN.js";
|
3
|
+
if (typeof window != "undefined") {
|
4
|
+
let s = function(e) {
|
5
|
+
return function(...t) {
|
6
|
+
try {
|
7
|
+
return e.apply(this, t);
|
8
|
+
} catch (n) {
|
9
|
+
if (n instanceof DOMException && n.message.includes("has already been used with this registry") || n.message.includes("Cannot define multiple custom elements with the same tag name"))
|
10
|
+
return !1;
|
11
|
+
throw n;
|
12
|
+
}
|
13
|
+
};
|
14
|
+
};
|
15
|
+
customElements.define = s(customElements.define), import("./CashierSpinner-DT2gT_0p.js").then(({ default: e }) => {
|
16
|
+
!customElements.get("cashier-spinner") && customElements.define("cashier-spinner", e.element);
|
17
|
+
});
|
18
|
+
}
|
19
|
+
function ve(s, e) {
|
20
|
+
Ze(s, e);
|
21
|
+
}
|
22
|
+
function dt(s) {
|
23
|
+
Xe({
|
24
|
+
fallbackLocale: "en"
|
25
|
+
}), Je.set(s);
|
26
|
+
}
|
27
|
+
const Pe = {
|
28
|
+
en: {
|
29
|
+
deposit: {
|
30
|
+
success: {
|
31
|
+
title: "{amount}",
|
32
|
+
subTitle: "Deposited in your account",
|
33
|
+
text: "Your deposit is successful"
|
34
|
+
},
|
35
|
+
pending: {
|
36
|
+
title: "{amount}",
|
37
|
+
subTitle: "Transaction is in progress",
|
38
|
+
text: "Thank you. Your deposit is being processed."
|
39
|
+
},
|
40
|
+
reject: {
|
41
|
+
title: "Deposit Rejected",
|
42
|
+
subTitle: " ",
|
43
|
+
text: " "
|
44
|
+
},
|
45
|
+
fail: {
|
46
|
+
title: "Error",
|
47
|
+
subTitle: " ",
|
48
|
+
text: "{errorText}"
|
49
|
+
},
|
50
|
+
cancel: {
|
51
|
+
title: "You have cancelled the transaction",
|
52
|
+
subTitle: " ",
|
53
|
+
text: " "
|
54
|
+
}
|
55
|
+
},
|
56
|
+
withdrawal: {
|
57
|
+
success: {
|
58
|
+
title: "{amount}",
|
59
|
+
subTitle: "Withdrawn from your account",
|
60
|
+
text: "Your withdrawal is successful"
|
61
|
+
},
|
62
|
+
pending: {
|
63
|
+
title: "{amount}",
|
64
|
+
subTitle: "Withdrawn from your account",
|
65
|
+
text: "Thank you. Your withdrawal is being processed."
|
66
|
+
},
|
67
|
+
reject: {
|
68
|
+
title: "Withdrawal Rejected",
|
69
|
+
subTitle: " ",
|
70
|
+
text: " "
|
71
|
+
},
|
72
|
+
fail: {
|
73
|
+
title: "Error",
|
74
|
+
subTitle: " ",
|
75
|
+
text: "{errorText}"
|
76
|
+
},
|
77
|
+
cancel: {
|
78
|
+
title: "You have cancelled the transaction",
|
79
|
+
subTitle: " ",
|
80
|
+
text: " "
|
81
|
+
}
|
82
|
+
},
|
83
|
+
reference: "Reference ID: {code}",
|
84
|
+
close: "CLOSE",
|
85
|
+
receipt: {
|
86
|
+
maintenance: {
|
87
|
+
title: "We’ll Be Back Soon",
|
88
|
+
text: "We are down for a scheduled maintenance and expect to be back online in a few minutes"
|
89
|
+
}
|
90
|
+
},
|
91
|
+
goToPromotions: "Go To Promotions",
|
92
|
+
goToSupport: "Contact Support",
|
93
|
+
goToMerchantHomePage: "Merchant's Home Website",
|
94
|
+
goToSports: "Go To Sports",
|
95
|
+
goToCasino: "Visit Casino",
|
96
|
+
setDepositLimit: "Set A Deposit Limit",
|
97
|
+
externalLink: "External Link",
|
98
|
+
uploadDocuments: "Upload Documents",
|
99
|
+
goToHomepage: "Go To Homepage"
|
100
|
+
},
|
101
|
+
tr: {
|
102
|
+
deposit: {
|
103
|
+
success: {
|
104
|
+
title: "{amount}",
|
105
|
+
subTitle: "Hesabınıza yatırıldı",
|
106
|
+
text: "Para yatırma işleminiz başarılı"
|
107
|
+
},
|
108
|
+
pending: {
|
109
|
+
title: "{amount}",
|
110
|
+
subTitle: "İşlem devam ediyor",
|
111
|
+
text: "Teşekkür ederim. Para yatırma işleminiz yapılıyor."
|
112
|
+
},
|
113
|
+
reject: {
|
114
|
+
title: "Para Yatırma Reddedildi",
|
115
|
+
subTitle: " ",
|
116
|
+
text: " "
|
117
|
+
},
|
118
|
+
fail: {
|
119
|
+
title: "Hata",
|
120
|
+
subTitle: " ",
|
121
|
+
text: "{errorText}"
|
122
|
+
},
|
123
|
+
cancel: {
|
124
|
+
title: "İşlemi iptal ettiniz",
|
125
|
+
subTitle: " ",
|
126
|
+
text: " "
|
127
|
+
}
|
128
|
+
},
|
129
|
+
withdrawal: {
|
130
|
+
success: {
|
131
|
+
title: "{amount}",
|
132
|
+
subTitle: "Hesabınızdan çekildi",
|
133
|
+
text: "Para çekme işleminiz başarılı"
|
134
|
+
},
|
135
|
+
pending: {
|
136
|
+
title: "{amount}",
|
137
|
+
subTitle: "Hesabınızdan çekildi",
|
138
|
+
text: "Teşekkür ederim. Para çekme işleminiz işleniyor."
|
139
|
+
},
|
140
|
+
reject: {
|
141
|
+
title: "Para Çekme Reddedildi",
|
142
|
+
subTitle: " ",
|
143
|
+
text: " "
|
144
|
+
},
|
145
|
+
fail: {
|
146
|
+
title: "Hata",
|
147
|
+
subTitle: " ",
|
148
|
+
text: "{errorText}"
|
149
|
+
},
|
150
|
+
cancel: {
|
151
|
+
title: "İşlemi iptal ettiniz",
|
152
|
+
subTitle: " ",
|
153
|
+
text: " "
|
154
|
+
}
|
155
|
+
},
|
156
|
+
goToPromotions: "Promosyonlara Git",
|
157
|
+
goToSupport: "Destek ile İletişime Geç",
|
158
|
+
goToMerchantHomePage: "Satıcının Ana Web Sitesi",
|
159
|
+
goToSports: "Spora Git",
|
160
|
+
goToCasino: "Casinoya Git",
|
161
|
+
setDepositLimit: "Para Yatırma Limiti Belirle",
|
162
|
+
externalLink: "Harici Bağlantı",
|
163
|
+
uploadDocuments: "Belge Yükle",
|
164
|
+
goToHomepage: "Ana Sayfaya Git",
|
165
|
+
reference: "Referans Kimliği: {code}",
|
166
|
+
close: "KAPALI",
|
167
|
+
receipt: {
|
168
|
+
maintenance: {
|
169
|
+
title: "Yakında Geri Döneceğiz",
|
170
|
+
text: "Planlı bir bakım nedeniyle kapalıyız ve birkaç dakika içinde tekrar çevrimiçi olmayı bekliyoruz"
|
171
|
+
}
|
172
|
+
}
|
173
|
+
},
|
174
|
+
"pt-br": {
|
175
|
+
deposit: {
|
176
|
+
success: {
|
177
|
+
title: "{amount}",
|
178
|
+
subTitle: "Depositado em sua conta",
|
179
|
+
text: "Seu depósito foi bem-sucedido"
|
180
|
+
},
|
181
|
+
pending: {
|
182
|
+
title: "{amount}",
|
183
|
+
subTitle: "Transação em andamento",
|
184
|
+
text: "Obrigado. Seu depósito está sendo processado."
|
185
|
+
},
|
186
|
+
reject: {
|
187
|
+
title: "Depósito Rejeitado",
|
188
|
+
subTitle: "",
|
189
|
+
text: "{errorText}"
|
190
|
+
},
|
191
|
+
fail: {
|
192
|
+
title: "Erro",
|
193
|
+
subTitle: "",
|
194
|
+
text: "{errorText}"
|
195
|
+
},
|
196
|
+
cancel: {
|
197
|
+
title: "Você cancelou a transação",
|
198
|
+
subTitle: "",
|
199
|
+
text: "{errorText}"
|
200
|
+
}
|
201
|
+
},
|
202
|
+
goToPromotions: "Ir para Promoções",
|
203
|
+
goToSupport: "Contatar Suporte",
|
204
|
+
goToMerchantHomePage: "Site Principal do Comerciante",
|
205
|
+
goToSports: "Ir para Esportes",
|
206
|
+
goToCasino: "Visitar Cassino",
|
207
|
+
setDepositLimit: "Definir Limite de Depósito",
|
208
|
+
externalLink: "Link Externo",
|
209
|
+
uploadDocuments: "Enviar Documentos",
|
210
|
+
goToHomepage: "Ir para Página Inicial",
|
211
|
+
reference: "Referência ID: {code}",
|
212
|
+
close: "VOLTAR AO PROVEDOR DE PAGAMENTO",
|
213
|
+
receipt: {
|
214
|
+
maintenance: {
|
215
|
+
title: "We’ll Be Back Soon",
|
216
|
+
text: "We are down for a scheduled maintenance and expect to be back online in a few minutes"
|
217
|
+
}
|
218
|
+
}
|
219
|
+
},
|
220
|
+
"es-mx": {
|
221
|
+
deposit: {
|
222
|
+
success: {
|
223
|
+
title: "{amount}",
|
224
|
+
subTitle: "Depositado en tu cuenta",
|
225
|
+
text: "Tu depósito fue exitoso"
|
226
|
+
},
|
227
|
+
pending: {
|
228
|
+
title: "{amount}",
|
229
|
+
subTitle: "Transacción en proceso",
|
230
|
+
text: "Gracias. Tu depósito está siendo procesado."
|
231
|
+
},
|
232
|
+
reject: {
|
233
|
+
title: "Depósito Rechazado",
|
234
|
+
subTitle: " ",
|
235
|
+
text: "{errorText}"
|
236
|
+
},
|
237
|
+
fail: {
|
238
|
+
title: "Error",
|
239
|
+
subTitle: " ",
|
240
|
+
text: "{errorText}"
|
241
|
+
},
|
242
|
+
cancel: {
|
243
|
+
title: "Has cancelado la transacción",
|
244
|
+
subTitle: " ",
|
245
|
+
text: "{errorText}"
|
246
|
+
}
|
247
|
+
},
|
248
|
+
goToPromotions: "Pergi ke Promosi",
|
249
|
+
goToSupport: "Hubungi Sokongan",
|
250
|
+
goToMerchantHomePage: "Laman Web Utama Peniaga",
|
251
|
+
goToSports: "Pergi ke Sukan",
|
252
|
+
goToCasino: "Lawati Kasino",
|
253
|
+
setDepositLimit: "Tetapkan Had Deposit",
|
254
|
+
externalLink: "Pautan Luaran",
|
255
|
+
uploadDocuments: "Muat Naik Dokumen",
|
256
|
+
goToHomepage: "Pergi ke Laman Utama",
|
257
|
+
reference: "Referencia ID: {code}",
|
258
|
+
close: "REGRESAR A PROVEEDOR DE PAGO",
|
259
|
+
receipt: {
|
260
|
+
maintenance: {
|
261
|
+
title: "We’ll Be Back Soon",
|
262
|
+
text: "We are down for a scheduled maintenance and expect to be back online in a few minutes"
|
263
|
+
}
|
264
|
+
}
|
265
|
+
},
|
266
|
+
"en-us": {
|
267
|
+
deposit: {
|
268
|
+
success: {
|
269
|
+
title: "{amount}",
|
270
|
+
subTitle: "Deposited in your account",
|
271
|
+
text: "Your deposit is successful"
|
272
|
+
},
|
273
|
+
pending: {
|
274
|
+
title: "{amount}",
|
275
|
+
subTitle: "Transaction is in progress",
|
276
|
+
text: "Thank you. Your deposit is being processed."
|
277
|
+
},
|
278
|
+
reject: {
|
279
|
+
title: "Deposit Rejected",
|
280
|
+
subTitle: " ",
|
281
|
+
text: " "
|
282
|
+
},
|
283
|
+
fail: {
|
284
|
+
title: "Error",
|
285
|
+
subTitle: " ",
|
286
|
+
text: "{errorText}"
|
287
|
+
},
|
288
|
+
cancel: {
|
289
|
+
title: "You have cancelled the transaction",
|
290
|
+
subTitle: " ",
|
291
|
+
text: " "
|
292
|
+
}
|
293
|
+
},
|
294
|
+
withdrawal: {
|
295
|
+
success: {
|
296
|
+
title: "{amount}",
|
297
|
+
subTitle: "Withdrawn from your account",
|
298
|
+
text: "Your withdrawal is successful"
|
299
|
+
},
|
300
|
+
pending: {
|
301
|
+
title: "{amount}",
|
302
|
+
subTitle: "Withdrawn from your account",
|
303
|
+
text: "Thank you. Your withdrawal is being processed."
|
304
|
+
},
|
305
|
+
reject: {
|
306
|
+
title: "Withdrawal Rejected",
|
307
|
+
subTitle: " ",
|
308
|
+
text: " "
|
309
|
+
},
|
310
|
+
fail: {
|
311
|
+
title: "Error",
|
312
|
+
subTitle: " ",
|
313
|
+
text: "{errorText}"
|
314
|
+
},
|
315
|
+
cancel: {
|
316
|
+
title: "You have cancelled the transaction",
|
317
|
+
subTitle: " ",
|
318
|
+
text: " "
|
319
|
+
}
|
320
|
+
},
|
321
|
+
goToPromotions: "Go To Promotions",
|
322
|
+
goToSupport: "Contact Support",
|
323
|
+
goToMerchantHomePage: "Merchant's Home Website",
|
324
|
+
close: "Close",
|
325
|
+
goToSports: "Go To Sports",
|
326
|
+
goToCasino: "Visit Casino",
|
327
|
+
setDepositLimit: "Set A Deposit Limit",
|
328
|
+
externalLink: "External Link",
|
329
|
+
uploadDocuments: "Upload Documents",
|
330
|
+
goToHomepage: "Go To Homepage",
|
331
|
+
reference: "Reference ID: {code}",
|
332
|
+
close: "CLOSE",
|
333
|
+
receipt: {
|
334
|
+
maintenance: {
|
335
|
+
title: "We’ll Be Back Soon",
|
336
|
+
text: "We are down for a scheduled maintenance and expect to be back online in a few minutes"
|
337
|
+
}
|
338
|
+
}
|
339
|
+
}
|
340
|
+
}, mt = (s, e) => `${s + wt[e]}`, gt = (s, e) => `${se[e]}.${ee[s]}.title`, pt = (s, e) => `${se[e]}.${ee[s]}.subTitle`, ht = (s, e) => `${se[e]}.${ee[s]}.text`, bt = (s) => `${ee[`${s}`]}`, wt = {
|
341
|
+
Success: "/txn-success.png",
|
342
|
+
Voided: "/txn-success.png",
|
343
|
+
Rejected: "/txn-failed.png",
|
344
|
+
Failed: "/txn-failed.png",
|
345
|
+
Canceled: "/txn-failed.png",
|
346
|
+
PendingNotification: "/txn-pending.png",
|
347
|
+
PendingConfirmation: "/txn-pending.png",
|
348
|
+
PendingApprovalStage1: "/txn-pending.png",
|
349
|
+
PendingApprovalStage2: "/txn-pending.png",
|
350
|
+
PendingApprovalStage3: "/txn-pending.png",
|
351
|
+
PendingOfflineNotification: "/txn-pending.png"
|
352
|
+
}, se = {
|
353
|
+
Deposit: "deposit",
|
354
|
+
Withdraw: "withdrawal"
|
355
|
+
}, ee = {
|
356
|
+
Success: "success",
|
357
|
+
Voided: "success",
|
358
|
+
Rejected: "reject",
|
359
|
+
Failed: "fail",
|
360
|
+
Canceled: "cancel",
|
361
|
+
PendingNotification: "pending",
|
362
|
+
PendingConfirmation: "pending",
|
363
|
+
PendingApprovalStage1: "pending",
|
364
|
+
PendingApprovalStage3: "pending",
|
365
|
+
PendingApprovalStage2: "pending",
|
366
|
+
PendingOfflineNotification: "pending"
|
367
|
+
};
|
368
|
+
function _t(s) {
|
369
|
+
tt(s, "svelte-131vpua", ".CashierReceiptPageWidget{height:100%;position:relative}.CashierReceiptPage{border-radius:var(--emw--border-radius-medium-plus, 6px);background:var(--emw--color-background, #fff);padding:0 0 var(--emw--spacing-small-minus, 10px) 0;margin:0 auto;position:relative;word-wrap:break-word}.ReceiptWrapper{width:100%;height:200px;border-bottom:1px solid var(--emw--color-black-transparency-10, rgba(0, 0, 0, 0.1));display:flex;align-items:flex-end;flex-direction:row-reverse;position:relative}.ReceiptWrapper .ImagePlaceholder{height:100%;width:100%;background:#E6E6E6}.ReceiptWrapper .ImagePlaceholder.success{background:#E6E6E6}.ReceiptWrapper .ImagePlaceholder.fail{background:#E6E6E6}.ReceiptWrapper .ImagePlaceholder.pending{background:#E6E6E6}.ReceiptWrapper .ImagePlaceholder.cancel{background:#E6E6E6}.ReceiptWrapper .ImagePlaceholder.reject{background:#E6E6E6}.TitleWrapper{display:flex;position:absolute;left:0;bottom:11px;flex-direction:column;justify-content:flex-end;flex-shrink:0}.Title{color:var(--emw--color-gray-10, #111);font-size:var(--emw--font-size-x-large-plus, 26px);font-weight:var(--emw--font-weight-semibold, 500);margin-bottom:0;line-height:var(--emw--font-size-x-large-plus, 26px)}.SubTitle{font-weight:var(--emw--font-weight-normal, 400);font-size:var(--emw--font-size-medium, 16px);color:var(--emw--color-gray-290, #666);margin-top:var(--emw--spacing-small, 12px)}.Text{padding:var(--emw--spacing-small, 12px) 0;font-size:var(--emw--font-size-medium, 16px);color:var(--emw--color-gray-10, #111)}.CashierErrorText{color:var(--emw--color-gray-290, #666);font-weight:var(--emw--font-weight-normal, 400);font-size:var(--emw--font-size-small, 14px);line-height:130%;text-align:center}.CashierErrorTitle{color:var(--emw--color-black, #000);font-weight:var(--emw--font-weight-semibold, 500);font-size:var(--emw--font-size-medium, 16px);line-height:125%;text-align:center}.Reference{color:var(--emw--color-gray-290, #666);font-size:var(--emw--font-size-small, 14px);font-weight:var(--emw--font-weight-normal, 400);margin:0}.DefaultButton{color:var(--emw--color-white, #FFF);border:none;background:var(--emw--color-primary, #7EC51E);cursor:pointer;display:flex;align-items:center;justify-content:center;gap:5px;border-radius:var(--emw--border-radius-medium, 5px);height:36px;font-size:var(--emw--font-size-medium, 16px);font-family:inherit;margin:var(--emw--spacing-large, 20px) 0;width:100%}.DefaultButton:hover{background:var(--emw--color-hover, #71B11B)}.DefaultButton:active{background:var(--emw--color-active, #5C950F)}.HeaderButtonContainer{position:absolute;z-index:1;right:0;top:0;display:flex;align-items:baseline;gap:var(--emw--spacing-small, 12px);padding:var(--emw--spacing-small, 12px) 0}.HeaderButtonContainer>span{cursor:pointer}.ReceiptField{font-weight:var(--emw--font-weight-normal, 400);font-size:var(--emw--font-size-medium, 16px);line-height:var(--emw--font-size-medium, 16px);color:var(--emw--color-gray-150, #666);margin:var(--emw--spacing-small, 12px)}");
|
370
|
+
}
|
371
|
+
function Le(s, e, t) {
|
372
|
+
const n = s.slice();
|
373
|
+
return n[58] = e[t], n;
|
374
|
+
}
|
375
|
+
function Se(s, e, t) {
|
376
|
+
const n = s.slice();
|
377
|
+
return n[61] = e[t], n[63] = t, n;
|
378
|
+
}
|
379
|
+
function Ct(s) {
|
380
|
+
let e;
|
381
|
+
function t(a, l) {
|
382
|
+
if (
|
383
|
+
/*txnInfo*/
|
384
|
+
a[16]
|
385
|
+
)
|
386
|
+
return yt;
|
387
|
+
if (
|
388
|
+
/*errorResponseCode*/
|
389
|
+
a[23] && !/*showErrorOutsideReceiptPage*/
|
390
|
+
a[24]
|
391
|
+
)
|
392
|
+
return kt;
|
393
|
+
}
|
394
|
+
let n = t(s), i = n && n(s);
|
395
|
+
return {
|
396
|
+
c() {
|
397
|
+
e = h("div"), i && i.c(), u(e, "class", "CashierReceiptPage");
|
398
|
+
},
|
399
|
+
m(a, l) {
|
400
|
+
m(a, e, l), i && i.m(e, null);
|
401
|
+
},
|
402
|
+
p(a, l) {
|
403
|
+
n === (n = t(a)) && i ? i.p(a, l) : (i && i.d(1), i = n && n(a), i && (i.c(), i.m(e, null)));
|
404
|
+
},
|
405
|
+
d(a) {
|
406
|
+
a && d(e), i && i.d();
|
407
|
+
}
|
408
|
+
};
|
409
|
+
}
|
410
|
+
function Tt(s) {
|
411
|
+
let e;
|
412
|
+
return {
|
413
|
+
c() {
|
414
|
+
e = h("cashier-spinner"), p(
|
415
|
+
e,
|
416
|
+
"clientstylingurl",
|
417
|
+
/*clientstylingurl*/
|
418
|
+
s[9]
|
419
|
+
), p(
|
420
|
+
e,
|
421
|
+
"clientstyling",
|
422
|
+
/*clientstyling*/
|
423
|
+
s[8]
|
424
|
+
);
|
425
|
+
},
|
426
|
+
m(t, n) {
|
427
|
+
m(t, e, n);
|
428
|
+
},
|
429
|
+
p(t, n) {
|
430
|
+
n[0] & /*clientstylingurl*/
|
431
|
+
512 && p(
|
432
|
+
e,
|
433
|
+
"clientstylingurl",
|
434
|
+
/*clientstylingurl*/
|
435
|
+
t[9]
|
436
|
+
), n[0] & /*clientstyling*/
|
437
|
+
256 && p(
|
438
|
+
e,
|
439
|
+
"clientstyling",
|
440
|
+
/*clientstyling*/
|
441
|
+
t[8]
|
442
|
+
);
|
443
|
+
},
|
444
|
+
d(t) {
|
445
|
+
t && d(e);
|
446
|
+
}
|
447
|
+
};
|
448
|
+
}
|
449
|
+
function kt(s) {
|
450
|
+
let e, t = (
|
451
|
+
/*errorResponseCode*/
|
452
|
+
s[23] === /*ResponseCode*/
|
453
|
+
s[14].Maintenance && Re(s)
|
454
|
+
);
|
455
|
+
return {
|
456
|
+
c() {
|
457
|
+
e = h("cashier-error"), t && t.c(), p(
|
458
|
+
e,
|
459
|
+
"assetsurl",
|
460
|
+
/*assetsurl*/
|
461
|
+
s[6]
|
462
|
+
), p(
|
463
|
+
e,
|
464
|
+
"translationurl",
|
465
|
+
/*translationurl*/
|
466
|
+
s[5]
|
467
|
+
), p(
|
468
|
+
e,
|
469
|
+
"clientstylingurl",
|
470
|
+
/*clientstylingurl*/
|
471
|
+
s[9]
|
472
|
+
), p(
|
473
|
+
e,
|
474
|
+
"clientstyling",
|
475
|
+
/*clientstyling*/
|
476
|
+
s[8]
|
477
|
+
), p(
|
478
|
+
e,
|
479
|
+
"lang",
|
480
|
+
/*lang*/
|
481
|
+
s[2]
|
482
|
+
), p(e, "hidebuttons", "true"), p(
|
483
|
+
e,
|
484
|
+
"errorcode",
|
485
|
+
/*errorResponseCode*/
|
486
|
+
s[23]
|
487
|
+
);
|
488
|
+
},
|
489
|
+
m(n, i) {
|
490
|
+
m(n, e, i), t && t.m(e, null);
|
491
|
+
},
|
492
|
+
p(n, i) {
|
493
|
+
/*errorResponseCode*/
|
494
|
+
n[23] === /*ResponseCode*/
|
495
|
+
n[14].Maintenance ? t ? t.p(n, i) : (t = Re(n), t.c(), t.m(e, null)) : t && (t.d(1), t = null), i[0] & /*assetsurl*/
|
496
|
+
64 && p(
|
497
|
+
e,
|
498
|
+
"assetsurl",
|
499
|
+
/*assetsurl*/
|
500
|
+
n[6]
|
501
|
+
), i[0] & /*translationurl*/
|
502
|
+
32 && p(
|
503
|
+
e,
|
504
|
+
"translationurl",
|
505
|
+
/*translationurl*/
|
506
|
+
n[5]
|
507
|
+
), i[0] & /*clientstylingurl*/
|
508
|
+
512 && p(
|
509
|
+
e,
|
510
|
+
"clientstylingurl",
|
511
|
+
/*clientstylingurl*/
|
512
|
+
n[9]
|
513
|
+
), i[0] & /*clientstyling*/
|
514
|
+
256 && p(
|
515
|
+
e,
|
516
|
+
"clientstyling",
|
517
|
+
/*clientstyling*/
|
518
|
+
n[8]
|
519
|
+
), i[0] & /*lang*/
|
520
|
+
4 && p(
|
521
|
+
e,
|
522
|
+
"lang",
|
523
|
+
/*lang*/
|
524
|
+
n[2]
|
525
|
+
), i[0] & /*errorResponseCode*/
|
526
|
+
8388608 && p(
|
527
|
+
e,
|
528
|
+
"errorcode",
|
529
|
+
/*errorResponseCode*/
|
530
|
+
n[23]
|
531
|
+
);
|
532
|
+
},
|
533
|
+
d(n) {
|
534
|
+
n && d(e), t && t.d();
|
535
|
+
}
|
536
|
+
};
|
537
|
+
}
|
538
|
+
function yt(s) {
|
539
|
+
let e, t, n, i, a, l, g, w, _, T, M, y, b, v, G, z, Y = ye(
|
540
|
+
/*userAgent*/
|
541
|
+
s[28]
|
542
|
+
) && /*showverifications*/
|
543
|
+
s[10] && /*displayVerifications*/
|
544
|
+
s[26], W, N, V, L = (
|
545
|
+
/*showcontactbutton*/
|
546
|
+
s[4] && /*showcontactbutton*/
|
547
|
+
s[4] !== "false" && De(s)
|
548
|
+
), S = (
|
549
|
+
/*showclosebutton*/
|
550
|
+
s[3] && /*showclosebutton*/
|
551
|
+
s[3] !== "false" && Ee(s)
|
552
|
+
);
|
553
|
+
function U(r, c) {
|
554
|
+
return (
|
555
|
+
/*assetsurl*/
|
556
|
+
r[6] ? St : Lt
|
557
|
+
);
|
558
|
+
}
|
559
|
+
let K = U(s), H = K(s), R = (
|
560
|
+
/*txnInfo*/
|
561
|
+
s[16].referenceId && xe(s)
|
562
|
+
), P = Y && He(s), f = (
|
563
|
+
/*receiptFields*/
|
564
|
+
s[17].length && Ie(s)
|
565
|
+
), E = (
|
566
|
+
/*displayedButtons*/
|
567
|
+
s[13].length > 0 && Be(s)
|
568
|
+
);
|
569
|
+
return {
|
570
|
+
c() {
|
571
|
+
e = h("div"), L && L.c(), t = I(), S && S.c(), n = I(), i = h("div"), H.c(), a = I(), l = h("div"), g = h("h2"), w = A(
|
572
|
+
/*title*/
|
573
|
+
s[19]
|
574
|
+
), _ = I(), T = h("div"), M = A(
|
575
|
+
/*subTitle*/
|
576
|
+
s[18]
|
577
|
+
), y = I(), b = h("div"), v = A(
|
578
|
+
/*text*/
|
579
|
+
s[20]
|
580
|
+
), G = I(), R && R.c(), z = I(), P && P.c(), W = I(), f && f.c(), N = I(), E && E.c(), V = ie(), u(e, "class", "HeaderButtonContainer"), u(g, "class", "Title"), u(T, "class", "SubTitle"), u(l, "class", "TitleWrapper"), u(i, "class", "ReceiptWrapper"), u(b, "class", "Text");
|
581
|
+
},
|
582
|
+
m(r, c) {
|
583
|
+
m(r, e, c), L && L.m(e, null), C(e, t), S && S.m(e, null), m(r, n, c), m(r, i, c), H.m(i, null), C(i, a), C(i, l), C(l, g), C(g, w), C(l, _), C(l, T), C(T, M), m(r, y, c), m(r, b, c), C(b, v), m(r, G, c), R && R.m(r, c), m(r, z, c), P && P.m(r, c), m(r, W, c), f && f.m(r, c), m(r, N, c), E && E.m(r, c), m(r, V, c);
|
584
|
+
},
|
585
|
+
p(r, c) {
|
586
|
+
/*showcontactbutton*/
|
587
|
+
r[4] && /*showcontactbutton*/
|
588
|
+
r[4] !== "false" ? L ? L.p(r, c) : (L = De(r), L.c(), L.m(e, t)) : L && (L.d(1), L = null), /*showclosebutton*/
|
589
|
+
r[3] && /*showclosebutton*/
|
590
|
+
r[3] !== "false" ? S ? S.p(r, c) : (S = Ee(r), S.c(), S.m(e, null)) : S && (S.d(1), S = null), K === (K = U(r)) && H ? H.p(r, c) : (H.d(1), H = K(r), H && (H.c(), H.m(i, a))), c[0] & /*title*/
|
591
|
+
524288 && B(
|
592
|
+
w,
|
593
|
+
/*title*/
|
594
|
+
r[19]
|
595
|
+
), c[0] & /*subTitle*/
|
596
|
+
262144 && B(
|
597
|
+
M,
|
598
|
+
/*subTitle*/
|
599
|
+
r[18]
|
600
|
+
), c[0] & /*text*/
|
601
|
+
1048576 && B(
|
602
|
+
v,
|
603
|
+
/*text*/
|
604
|
+
r[20]
|
605
|
+
), /*txnInfo*/
|
606
|
+
r[16].referenceId ? R ? R.p(r, c) : (R = xe(r), R.c(), R.m(z.parentNode, z)) : R && (R.d(1), R = null), c[0] & /*showverifications, displayVerifications*/
|
607
|
+
67109888 && (Y = ye(
|
608
|
+
/*userAgent*/
|
609
|
+
r[28]
|
610
|
+
) && /*showverifications*/
|
611
|
+
r[10] && /*displayVerifications*/
|
612
|
+
r[26]), Y ? P ? P.p(r, c) : (P = He(r), P.c(), P.m(W.parentNode, W)) : P && (P.d(1), P = null), /*receiptFields*/
|
613
|
+
r[17].length ? f ? f.p(r, c) : (f = Ie(r), f.c(), f.m(N.parentNode, N)) : f && (f.d(1), f = null), /*displayedButtons*/
|
614
|
+
r[13].length > 0 ? E ? E.p(r, c) : (E = Be(r), E.c(), E.m(V.parentNode, V)) : E && (E.d(1), E = null);
|
615
|
+
},
|
616
|
+
d(r) {
|
617
|
+
r && (d(e), d(n), d(i), d(y), d(b), d(G), d(z), d(W), d(N), d(V)), L && L.d(), S && S.d(), H.d(), R && R.d(r), P && P.d(r), f && f.d(r), E && E.d(r);
|
618
|
+
}
|
619
|
+
};
|
620
|
+
}
|
621
|
+
function Re(s) {
|
622
|
+
let e, t, n, i = (
|
623
|
+
/*$_*/
|
624
|
+
s[27]("receipt.maintenance.title") + ""
|
625
|
+
), a, l, g, w = (
|
626
|
+
/*$_*/
|
627
|
+
s[27]("receipt.maintenance.text") + ""
|
628
|
+
), _;
|
629
|
+
function T(b, v) {
|
630
|
+
return (
|
631
|
+
/*assetsurl*/
|
632
|
+
b[6] ? Pt : vt
|
633
|
+
);
|
634
|
+
}
|
635
|
+
let M = T(s), y = M(s);
|
636
|
+
return {
|
637
|
+
c() {
|
638
|
+
e = h("div"), y.c(), t = I(), n = h("span"), a = A(i), l = I(), g = h("span"), _ = A(w), u(e, "slot", "icon"), u(n, "slot", "title"), u(n, "class", "CashierErrorTitle"), u(g, "slot", "text"), u(g, "class", "CashierErrorText");
|
639
|
+
},
|
640
|
+
m(b, v) {
|
641
|
+
m(b, e, v), y.m(e, null), m(b, t, v), m(b, n, v), C(n, a), m(b, l, v), m(b, g, v), C(g, _);
|
642
|
+
},
|
643
|
+
p(b, v) {
|
644
|
+
M === (M = T(b)) && y ? y.p(b, v) : (y.d(1), y = M(b), y && (y.c(), y.m(e, null))), v[0] & /*$_*/
|
645
|
+
134217728 && i !== (i = /*$_*/
|
646
|
+
b[27]("receipt.maintenance.title") + "") && B(a, i), v[0] & /*$_*/
|
647
|
+
134217728 && w !== (w = /*$_*/
|
648
|
+
b[27]("receipt.maintenance.text") + "") && B(_, w);
|
649
|
+
},
|
650
|
+
d(b) {
|
651
|
+
b && (d(e), d(t), d(n), d(l), d(g)), y.d();
|
652
|
+
}
|
653
|
+
};
|
654
|
+
}
|
655
|
+
function vt(s) {
|
656
|
+
let e;
|
657
|
+
return {
|
658
|
+
c() {
|
659
|
+
e = h("div"), u(e, "class", "ImagePlaceholder Maintenance");
|
660
|
+
},
|
661
|
+
m(t, n) {
|
662
|
+
m(t, e, n);
|
663
|
+
},
|
664
|
+
p: Z,
|
665
|
+
d(t) {
|
666
|
+
t && d(e);
|
667
|
+
}
|
668
|
+
};
|
669
|
+
}
|
670
|
+
function Pt(s) {
|
671
|
+
let e, t;
|
672
|
+
return {
|
673
|
+
c() {
|
674
|
+
e = h("img"), Q(e.src, t = `${/*assetsurl*/
|
675
|
+
s[6]}/maintenance.png`) || u(e, "src", t), u(e, "width", "300px"), u(e, "alt", "error");
|
676
|
+
},
|
677
|
+
m(n, i) {
|
678
|
+
m(n, e, i);
|
679
|
+
},
|
680
|
+
p(n, i) {
|
681
|
+
i[0] & /*assetsurl*/
|
682
|
+
64 && !Q(e.src, t = `${/*assetsurl*/
|
683
|
+
n[6]}/maintenance.png`) && u(e, "src", t);
|
684
|
+
},
|
685
|
+
d(n) {
|
686
|
+
n && d(e);
|
687
|
+
}
|
688
|
+
};
|
689
|
+
}
|
690
|
+
function De(s) {
|
691
|
+
let e, t, n;
|
692
|
+
return {
|
693
|
+
c() {
|
694
|
+
e = h("span"), e.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M9.33279 0.00663425C7.89688 0.105453 6.49895 0.511564 5.2336 1.19749C3.96825 1.88341 2.86499 2.83313 1.9985 3.9824C0.985792 5.31809 0.356137 6.84155 0.0769857 8.63039C-0.0256619 9.28509 -0.0256619 10.7147 0.0769857 11.3694C0.505101 14.1158 1.83326 16.3704 3.9851 18.0027C5.31451 19.0117 6.84672 19.6451 8.63053 19.923C9.28522 20.0257 10.7148 20.0257 11.3695 19.923C13.803 19.5437 15.8709 18.4471 17.4232 16.7121C18.8001 15.1736 19.595 13.4737 19.923 11.3694C20.0257 10.7147 20.0257 9.28509 19.923 8.63039C19.6451 6.84655 19.0117 5.31433 18.0028 3.9849C17.1973 2.91304 16.1846 2.01398 15.0249 1.34112C13.8652 0.668249 12.5821 0.235297 11.2518 0.0679732C10.614 0.00852964 9.97311 -0.0119547 9.33279 0.00663425ZM11.3019 1.33481C14.7956 1.87685 17.641 4.45559 18.4885 7.848C18.69 8.65292 18.7288 9.00343 18.7288 9.99988C18.7288 10.6946 18.715 10.97 18.6675 11.2855C18.4018 13.0557 17.6016 14.7024 16.374 16.0052C15.1464 17.308 13.5501 18.2045 11.7988 18.5748C10.686 18.8127 9.31401 18.8127 8.20117 18.5748C4.93272 17.8788 2.33398 15.3927 1.52156 12.1868C1.31126 11.3556 1.2712 11.0101 1.2712 9.99988C1.2712 8.98966 1.31126 8.64416 1.52156 7.81295C1.91376 6.29839 2.70396 4.91631 3.81023 3.81003C4.9165 2.70374 6.29856 1.91353 7.81311 1.52133C8.0885 1.45123 8.49409 1.36986 8.7144 1.34107L9.21512 1.27347C9.46673 1.23967 10.9689 1.28349 11.3019 1.33481ZM9.5481 5.25925C8.67685 5.35439 7.88821 5.8138 7.33116 6.54987C7.12462 6.82277 7.042 7.06437 7.09332 7.25339C7.17594 7.56009 7.55398 7.71781 7.87945 7.58262C7.94079 7.55633 8.16236 7.36355 8.37016 7.15325C8.79201 6.72763 8.99981 6.59995 9.41541 6.51232C10.5533 6.27197 11.541 6.85532 11.596 7.79918C11.6086 8.02326 11.5998 8.08084 11.5259 8.24107C11.3632 8.59659 11.0177 8.88826 10.5095 9.09982C10.1439 9.24341 9.76155 9.33975 9.3716 9.38649L9.1275 9.40902L9.13876 10.5306L9.14878 11.6523L9.23265 11.8025C9.42542 12.1517 9.96745 12.2118 10.2378 11.9152C10.3793 11.7587 10.4056 11.6247 10.4256 10.9638L10.4431 10.3416L10.6635 10.2815C12.1518 9.88095 13.1433 8.66669 12.973 7.44993C12.8579 6.62248 12.3709 5.96027 11.586 5.56845C11.0778 5.31433 10.2278 5.18539 9.5481 5.25925ZM9.37285 13.0568C9.06365 13.2108 8.90092 13.4799 8.89967 13.8404C8.89717 14.6003 9.77342 15.0071 10.3405 14.5089C10.4789 14.3866 10.576 14.2244 10.6186 14.0447C10.6612 13.8649 10.6471 13.6764 10.5783 13.505C10.3755 13.0493 9.81098 12.839 9.37285 13.0568Z" fill="#111111"></path></svg>';
|
695
|
+
},
|
696
|
+
m(i, a) {
|
697
|
+
m(i, e, a), t || (n = $(
|
698
|
+
e,
|
699
|
+
"click",
|
700
|
+
/*liveChat*/
|
701
|
+
s[30]
|
702
|
+
), t = !0);
|
703
|
+
},
|
704
|
+
p: Z,
|
705
|
+
d(i) {
|
706
|
+
i && d(e), t = !1, n();
|
707
|
+
}
|
708
|
+
};
|
709
|
+
}
|
710
|
+
function Ee(s) {
|
711
|
+
let e, t, n;
|
712
|
+
return {
|
713
|
+
c() {
|
714
|
+
e = h("span"), e.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" width="13" height="20" viewBox="0 0 13 13" fill="none"><path d="M12.7711 0.229435C13.0582 0.517619 13.0755 0.973729 12.8215 1.28141L12.7711 1.33721L7.60685 6.50068L12.7711 11.6641C12.9128 11.8066 12.9944 11.998 12.999 12.1988C13.0035 12.3997 12.9308 12.5946 12.7957 12.7433C12.6606 12.892 12.4735 12.9832 12.2731 12.9979C12.0728 13.0126 11.8744 12.9497 11.7191 12.8223L11.6633 12.7719L6.49958 7.60791L1.3359 12.7719C1.19349 12.9136 1.00207 12.9952 0.801203 12.9998C0.60034 13.0044 0.405398 12.9316 0.256676 12.7965C0.107955 12.6614 0.0168256 12.4744 0.00212786 12.274C-0.0125699 12.0736 0.0502877 11.8753 0.177706 11.7199L0.228086 11.6641L5.3923 6.50068L0.228086 1.33721C0.0863637 1.1948 0.00478102 1.00338 0.000203544 0.802529C-0.00437393 0.601674 0.0684038 0.40674 0.203491 0.258024C0.338579 0.109308 0.525647 0.0181829 0.726024 0.00348576C0.9264 -0.0112114 1.12476 0.0516437 1.28011 0.179057L1.3359 0.229435L6.49958 5.39345L11.6633 0.229435C11.736 0.156695 11.8223 0.0989949 11.9174 0.0596283C12.0124 0.0202617 12.1143 0 12.2172 0C12.32 0 12.4219 0.0202617 12.5169 0.0596283C12.612 0.0989949 12.6983 0.156695 12.7711 0.229435Z" fill="#111111"></path></svg>';
|
715
|
+
},
|
716
|
+
m(i, a) {
|
717
|
+
m(i, e, a), t || (n = $(
|
718
|
+
e,
|
719
|
+
"click",
|
720
|
+
/*closeReceipt*/
|
721
|
+
s[29]
|
722
|
+
), t = !0);
|
723
|
+
},
|
724
|
+
p: Z,
|
725
|
+
d(i) {
|
726
|
+
i && d(e), t = !1, n();
|
727
|
+
}
|
728
|
+
};
|
729
|
+
}
|
730
|
+
function Lt(s) {
|
731
|
+
let e, t;
|
732
|
+
return {
|
733
|
+
c() {
|
734
|
+
e = h("div"), u(e, "class", t = `ImagePlaceholder ${/*statusImageClass*/
|
735
|
+
s[25]}`);
|
736
|
+
},
|
737
|
+
m(n, i) {
|
738
|
+
m(n, e, i);
|
739
|
+
},
|
740
|
+
p(n, i) {
|
741
|
+
i[0] & /*statusImageClass*/
|
742
|
+
33554432 && t !== (t = `ImagePlaceholder ${/*statusImageClass*/
|
743
|
+
n[25]}`) && u(e, "class", t);
|
744
|
+
},
|
745
|
+
d(n) {
|
746
|
+
n && d(e);
|
747
|
+
}
|
748
|
+
};
|
749
|
+
}
|
750
|
+
function St(s) {
|
751
|
+
let e, t;
|
752
|
+
return {
|
753
|
+
c() {
|
754
|
+
e = h("img"), Q(e.src, t = /*statusImageUrl*/
|
755
|
+
s[21]) || u(e, "src", t), u(e, "class", "StatusLogo"), u(e, "alt", "");
|
756
|
+
},
|
757
|
+
m(n, i) {
|
758
|
+
m(n, e, i);
|
759
|
+
},
|
760
|
+
p(n, i) {
|
761
|
+
i[0] & /*statusImageUrl*/
|
762
|
+
2097152 && !Q(e.src, t = /*statusImageUrl*/
|
763
|
+
n[21]) && u(e, "src", t);
|
764
|
+
},
|
765
|
+
d(n) {
|
766
|
+
n && d(e);
|
767
|
+
}
|
768
|
+
};
|
769
|
+
}
|
770
|
+
function xe(s) {
|
771
|
+
let e, t = (
|
772
|
+
/*$_*/
|
773
|
+
s[27]("reference", {
|
774
|
+
values: { code: (
|
775
|
+
/*txnInfo*/
|
776
|
+
s[16].referenceId
|
777
|
+
) }
|
778
|
+
}) + ""
|
779
|
+
), n;
|
780
|
+
return {
|
781
|
+
c() {
|
782
|
+
e = h("div"), n = A(t), u(e, "class", "Reference");
|
783
|
+
},
|
784
|
+
m(i, a) {
|
785
|
+
m(i, e, a), C(e, n);
|
786
|
+
},
|
787
|
+
p(i, a) {
|
788
|
+
a[0] & /*$_, txnInfo*/
|
789
|
+
134283264 && t !== (t = /*$_*/
|
790
|
+
i[27]("reference", {
|
791
|
+
values: { code: (
|
792
|
+
/*txnInfo*/
|
793
|
+
i[16].referenceId
|
794
|
+
) }
|
795
|
+
}) + "") && B(n, t);
|
796
|
+
},
|
797
|
+
d(i) {
|
798
|
+
i && d(e);
|
799
|
+
}
|
800
|
+
};
|
801
|
+
}
|
802
|
+
function He(s) {
|
803
|
+
let e;
|
804
|
+
return {
|
805
|
+
c() {
|
806
|
+
e = h("cashier-verifications"), p(
|
807
|
+
e,
|
808
|
+
"lang",
|
809
|
+
/*lang*/
|
810
|
+
s[2]
|
811
|
+
), p(
|
812
|
+
e,
|
813
|
+
"translationurl",
|
814
|
+
/*translationurl*/
|
815
|
+
s[5]
|
816
|
+
), p(
|
817
|
+
e,
|
818
|
+
"endpoint",
|
819
|
+
/*endpoint*/
|
820
|
+
s[0]
|
821
|
+
), p(
|
822
|
+
e,
|
823
|
+
"clientstylingurl",
|
824
|
+
/*clientstylingurl*/
|
825
|
+
s[9]
|
826
|
+
), p(
|
827
|
+
e,
|
828
|
+
"clientstyling",
|
829
|
+
/*clientstyling*/
|
830
|
+
s[8]
|
831
|
+
), p(
|
832
|
+
e,
|
833
|
+
"customerid",
|
834
|
+
/*customerid*/
|
835
|
+
s[7]
|
836
|
+
), p(
|
837
|
+
e,
|
838
|
+
"playersession",
|
839
|
+
/*session*/
|
840
|
+
s[1]
|
841
|
+
);
|
842
|
+
},
|
843
|
+
m(t, n) {
|
844
|
+
m(t, e, n);
|
845
|
+
},
|
846
|
+
p(t, n) {
|
847
|
+
n[0] & /*lang*/
|
848
|
+
4 && p(
|
849
|
+
e,
|
850
|
+
"lang",
|
851
|
+
/*lang*/
|
852
|
+
t[2]
|
853
|
+
), n[0] & /*translationurl*/
|
854
|
+
32 && p(
|
855
|
+
e,
|
856
|
+
"translationurl",
|
857
|
+
/*translationurl*/
|
858
|
+
t[5]
|
859
|
+
), n[0] & /*endpoint*/
|
860
|
+
1 && p(
|
861
|
+
e,
|
862
|
+
"endpoint",
|
863
|
+
/*endpoint*/
|
864
|
+
t[0]
|
865
|
+
), n[0] & /*clientstylingurl*/
|
866
|
+
512 && p(
|
867
|
+
e,
|
868
|
+
"clientstylingurl",
|
869
|
+
/*clientstylingurl*/
|
870
|
+
t[9]
|
871
|
+
), n[0] & /*clientstyling*/
|
872
|
+
256 && p(
|
873
|
+
e,
|
874
|
+
"clientstyling",
|
875
|
+
/*clientstyling*/
|
876
|
+
t[8]
|
877
|
+
), n[0] & /*customerid*/
|
878
|
+
128 && p(
|
879
|
+
e,
|
880
|
+
"customerid",
|
881
|
+
/*customerid*/
|
882
|
+
t[7]
|
883
|
+
), n[0] & /*session*/
|
884
|
+
2 && p(
|
885
|
+
e,
|
886
|
+
"playersession",
|
887
|
+
/*session*/
|
888
|
+
t[1]
|
889
|
+
);
|
890
|
+
},
|
891
|
+
d(t) {
|
892
|
+
t && d(e);
|
893
|
+
}
|
894
|
+
};
|
895
|
+
}
|
896
|
+
function Ie(s) {
|
897
|
+
let e, t = F(
|
898
|
+
/*receiptFields*/
|
899
|
+
s[17]
|
900
|
+
), n = [];
|
901
|
+
for (let i = 0; i < t.length; i += 1)
|
902
|
+
n[i] = Me(Se(s, t, i));
|
903
|
+
return {
|
904
|
+
c() {
|
905
|
+
for (let i = 0; i < n.length; i += 1)
|
906
|
+
n[i].c();
|
907
|
+
e = ie();
|
908
|
+
},
|
909
|
+
m(i, a) {
|
910
|
+
for (let l = 0; l < n.length; l += 1)
|
911
|
+
n[l] && n[l].m(i, a);
|
912
|
+
m(i, e, a);
|
913
|
+
},
|
914
|
+
p(i, a) {
|
915
|
+
if (a[0] & /*receiptFields, qrCodeContainer, FieldTypes*/
|
916
|
+
4358144 | a[1] & /*openUrlInNewTab*/
|
917
|
+
2) {
|
918
|
+
t = F(
|
919
|
+
/*receiptFields*/
|
920
|
+
i[17]
|
921
|
+
);
|
922
|
+
let l;
|
923
|
+
for (l = 0; l < t.length; l += 1) {
|
924
|
+
const g = Se(i, t, l);
|
925
|
+
n[l] ? n[l].p(g, a) : (n[l] = Me(g), n[l].c(), n[l].m(e.parentNode, e));
|
926
|
+
}
|
927
|
+
for (; l < n.length; l += 1)
|
928
|
+
n[l].d(1);
|
929
|
+
n.length = t.length;
|
930
|
+
}
|
931
|
+
},
|
932
|
+
d(i) {
|
933
|
+
i && d(e), ze(n, i);
|
934
|
+
}
|
935
|
+
};
|
936
|
+
}
|
937
|
+
function Rt(s) {
|
938
|
+
let e, t = (
|
939
|
+
/*field*/
|
940
|
+
s[61].defaultValue + ""
|
941
|
+
), n;
|
942
|
+
return {
|
943
|
+
c() {
|
944
|
+
e = h("span"), n = A(t), u(e, "class", "Label");
|
945
|
+
},
|
946
|
+
m(i, a) {
|
947
|
+
m(i, e, a), C(e, n);
|
948
|
+
},
|
949
|
+
p(i, a) {
|
950
|
+
a[0] & /*receiptFields*/
|
951
|
+
131072 && t !== (t = /*field*/
|
952
|
+
i[61].defaultValue + "") && B(n, t);
|
953
|
+
},
|
954
|
+
d(i) {
|
955
|
+
i && d(e);
|
956
|
+
}
|
957
|
+
};
|
958
|
+
}
|
959
|
+
function Dt(s) {
|
960
|
+
let e, t = (
|
961
|
+
/*field*/
|
962
|
+
s[61].description + ""
|
963
|
+
), n, i, a, l = (
|
964
|
+
/*field*/
|
965
|
+
s[61].name + ""
|
966
|
+
), g, w;
|
967
|
+
return {
|
968
|
+
c() {
|
969
|
+
e = h("span"), n = A(t), i = I(), a = h("a"), g = A(l), u(a, "href", w = /*field*/
|
970
|
+
s[61].defaultValue), u(a, "target", "_blank"), u(a, "rel", "noopener noreferrer");
|
971
|
+
},
|
972
|
+
m(_, T) {
|
973
|
+
m(_, e, T), C(e, n), C(e, i), C(e, a), C(a, g);
|
974
|
+
},
|
975
|
+
p(_, T) {
|
976
|
+
T[0] & /*receiptFields*/
|
977
|
+
131072 && t !== (t = /*field*/
|
978
|
+
_[61].description + "") && B(n, t), T[0] & /*receiptFields*/
|
979
|
+
131072 && l !== (l = /*field*/
|
980
|
+
_[61].name + "") && B(g, l), T[0] & /*receiptFields*/
|
981
|
+
131072 && w !== (w = /*field*/
|
982
|
+
_[61].defaultValue) && u(a, "href", w);
|
983
|
+
},
|
984
|
+
d(_) {
|
985
|
+
_ && d(e);
|
986
|
+
}
|
987
|
+
};
|
988
|
+
}
|
989
|
+
function Et(s) {
|
990
|
+
let e, t, n;
|
991
|
+
return {
|
992
|
+
c() {
|
993
|
+
e = h("img"), Q(e.src, t = /*field*/
|
994
|
+
s[61].defaultValue) || u(e, "src", t), u(e, "title", n = /*field*/
|
995
|
+
s[61].description), u(e, "alt", "");
|
996
|
+
},
|
997
|
+
m(i, a) {
|
998
|
+
m(i, e, a);
|
999
|
+
},
|
1000
|
+
p(i, a) {
|
1001
|
+
a[0] & /*receiptFields*/
|
1002
|
+
131072 && !Q(e.src, t = /*field*/
|
1003
|
+
i[61].defaultValue) && u(e, "src", t), a[0] & /*receiptFields*/
|
1004
|
+
131072 && n !== (n = /*field*/
|
1005
|
+
i[61].description) && u(e, "title", n);
|
1006
|
+
},
|
1007
|
+
d(i) {
|
1008
|
+
i && d(e);
|
1009
|
+
}
|
1010
|
+
};
|
1011
|
+
}
|
1012
|
+
function xt(s) {
|
1013
|
+
let e, t = (
|
1014
|
+
/*field*/
|
1015
|
+
s[61].defaultValue + ""
|
1016
|
+
);
|
1017
|
+
return {
|
1018
|
+
c() {
|
1019
|
+
e = h("span");
|
1020
|
+
},
|
1021
|
+
m(n, i) {
|
1022
|
+
m(n, e, i), e.innerHTML = t;
|
1023
|
+
},
|
1024
|
+
p(n, i) {
|
1025
|
+
i[0] & /*receiptFields*/
|
1026
|
+
131072 && t !== (t = /*field*/
|
1027
|
+
n[61].defaultValue + "") && (e.innerHTML = t);
|
1028
|
+
},
|
1029
|
+
d(n) {
|
1030
|
+
n && d(e);
|
1031
|
+
}
|
1032
|
+
};
|
1033
|
+
}
|
1034
|
+
function Ht(s) {
|
1035
|
+
let e, t, n = (
|
1036
|
+
/*field*/
|
1037
|
+
s[61].defaultValue + ""
|
1038
|
+
), i, a, l;
|
1039
|
+
function g() {
|
1040
|
+
return (
|
1041
|
+
/*click_handler*/
|
1042
|
+
s[44](
|
1043
|
+
/*field*/
|
1044
|
+
s[61]
|
1045
|
+
)
|
1046
|
+
);
|
1047
|
+
}
|
1048
|
+
return {
|
1049
|
+
c() {
|
1050
|
+
e = h("div"), t = h("div"), i = A(n), u(e, "class", "QRCode");
|
1051
|
+
},
|
1052
|
+
m(w, _) {
|
1053
|
+
m(w, e, _), C(e, t), C(t, i), s[43](t), a || (l = $(e, "click", g), a = !0);
|
1054
|
+
},
|
1055
|
+
p(w, _) {
|
1056
|
+
s = w, _[0] & /*receiptFields*/
|
1057
|
+
131072 && n !== (n = /*field*/
|
1058
|
+
s[61].defaultValue + "") && B(i, n);
|
1059
|
+
},
|
1060
|
+
d(w) {
|
1061
|
+
w && d(e), s[43](null), a = !1, l();
|
1062
|
+
}
|
1063
|
+
};
|
1064
|
+
}
|
1065
|
+
function Me(s) {
|
1066
|
+
let e, t;
|
1067
|
+
function n(l, g) {
|
1068
|
+
return (
|
1069
|
+
/*field*/
|
1070
|
+
l[61].type === /*FieldTypes*/
|
1071
|
+
l[15].QRCode ? Ht : (
|
1072
|
+
/*field*/
|
1073
|
+
l[61].type === /*FieldTypes*/
|
1074
|
+
l[15].Html ? xt : (
|
1075
|
+
/*field*/
|
1076
|
+
l[61].type === /*FieldTypes*/
|
1077
|
+
l[15].Image ? Et : (
|
1078
|
+
/*field*/
|
1079
|
+
l[61].type === /*FieldTypes*/
|
1080
|
+
l[15].Link ? Dt : Rt
|
1081
|
+
)
|
1082
|
+
)
|
1083
|
+
)
|
1084
|
+
);
|
1085
|
+
}
|
1086
|
+
let i = n(s), a = i(s);
|
1087
|
+
return {
|
1088
|
+
c() {
|
1089
|
+
e = h("div"), a.c(), t = I(), u(e, "class", "ReceiptField");
|
1090
|
+
},
|
1091
|
+
m(l, g) {
|
1092
|
+
m(l, e, g), a.m(e, null), C(e, t);
|
1093
|
+
},
|
1094
|
+
p(l, g) {
|
1095
|
+
i === (i = n(l)) && a ? a.p(l, g) : (a.d(1), a = i(l), a && (a.c(), a.m(e, t)));
|
1096
|
+
},
|
1097
|
+
d(l) {
|
1098
|
+
l && d(e), a.d();
|
1099
|
+
}
|
1100
|
+
};
|
1101
|
+
}
|
1102
|
+
function Be(s) {
|
1103
|
+
let e, t = F(
|
1104
|
+
/*displayedButtons*/
|
1105
|
+
s[13]
|
1106
|
+
), n = [];
|
1107
|
+
for (let i = 0; i < t.length; i += 1)
|
1108
|
+
n[i] = Ae(Le(s, t, i));
|
1109
|
+
return {
|
1110
|
+
c() {
|
1111
|
+
for (let i = 0; i < n.length; i += 1)
|
1112
|
+
n[i].c();
|
1113
|
+
e = ie();
|
1114
|
+
},
|
1115
|
+
m(i, a) {
|
1116
|
+
for (let l = 0; l < n.length; l += 1)
|
1117
|
+
n[l] && n[l].m(i, a);
|
1118
|
+
m(i, e, a);
|
1119
|
+
},
|
1120
|
+
p(i, a) {
|
1121
|
+
if (a[0] & /*displayedButtons, $_*/
|
1122
|
+
134225920 | a[1] & /*handleCustomButtonClick*/
|
1123
|
+
1) {
|
1124
|
+
t = F(
|
1125
|
+
/*displayedButtons*/
|
1126
|
+
i[13]
|
1127
|
+
);
|
1128
|
+
let l;
|
1129
|
+
for (l = 0; l < t.length; l += 1) {
|
1130
|
+
const g = Le(i, t, l);
|
1131
|
+
n[l] ? n[l].p(g, a) : (n[l] = Ae(g), n[l].c(), n[l].m(e.parentNode, e));
|
1132
|
+
}
|
1133
|
+
for (; l < n.length; l += 1)
|
1134
|
+
n[l].d(1);
|
1135
|
+
n.length = t.length;
|
1136
|
+
}
|
1137
|
+
},
|
1138
|
+
d(i) {
|
1139
|
+
i && d(e), ze(n, i);
|
1140
|
+
}
|
1141
|
+
};
|
1142
|
+
}
|
1143
|
+
function Ae(s) {
|
1144
|
+
let e, t = (
|
1145
|
+
/*$_*/
|
1146
|
+
s[27](`${/*btn*/
|
1147
|
+
s[58].translationKey}`) + ""
|
1148
|
+
), n, i, a, l, g;
|
1149
|
+
function w() {
|
1150
|
+
return (
|
1151
|
+
/*click_handler_1*/
|
1152
|
+
s[45](
|
1153
|
+
/*btn*/
|
1154
|
+
s[58]
|
1155
|
+
)
|
1156
|
+
);
|
1157
|
+
}
|
1158
|
+
return {
|
1159
|
+
c() {
|
1160
|
+
e = h("button"), n = A(t), i = I(), u(e, "class", a = `${/*btn*/
|
1161
|
+
s[58].cssClass} DefaultButton`);
|
1162
|
+
},
|
1163
|
+
m(_, T) {
|
1164
|
+
m(_, e, T), C(e, n), C(e, i), l || (g = $(e, "click", w), l = !0);
|
1165
|
+
},
|
1166
|
+
p(_, T) {
|
1167
|
+
s = _, T[0] & /*$_, displayedButtons*/
|
1168
|
+
134225920 && t !== (t = /*$_*/
|
1169
|
+
s[27](`${/*btn*/
|
1170
|
+
s[58].translationKey}`) + "") && B(n, t), T[0] & /*displayedButtons*/
|
1171
|
+
8192 && a !== (a = `${/*btn*/
|
1172
|
+
s[58].cssClass} DefaultButton`) && u(e, "class", a);
|
1173
|
+
},
|
1174
|
+
d(_) {
|
1175
|
+
_ && d(e), l = !1, g();
|
1176
|
+
}
|
1177
|
+
};
|
1178
|
+
}
|
1179
|
+
function It(s) {
|
1180
|
+
let e;
|
1181
|
+
function t(a, l) {
|
1182
|
+
return (
|
1183
|
+
/*isLoading*/
|
1184
|
+
a[12] ? Tt : Ct
|
1185
|
+
);
|
1186
|
+
}
|
1187
|
+
let n = t(s), i = n(s);
|
1188
|
+
return {
|
1189
|
+
c() {
|
1190
|
+
e = h("div"), i.c(), u(e, "class", "CashierReceiptPageWidget");
|
1191
|
+
},
|
1192
|
+
m(a, l) {
|
1193
|
+
m(a, e, l), i.m(e, null), s[46](e);
|
1194
|
+
},
|
1195
|
+
p(a, l) {
|
1196
|
+
n === (n = t(a)) && i ? i.p(a, l) : (i.d(1), i = n(a), i && (i.c(), i.m(e, null)));
|
1197
|
+
},
|
1198
|
+
i: Z,
|
1199
|
+
o: Z,
|
1200
|
+
d(a) {
|
1201
|
+
a && d(e), i.d(), s[46](null);
|
1202
|
+
}
|
1203
|
+
};
|
1204
|
+
}
|
1205
|
+
let Mt = "_blank";
|
1206
|
+
function Bt(s, e, t) {
|
1207
|
+
let n;
|
1208
|
+
nt(s, rt, (o) => t(27, n = o)), Te.extend(ct);
|
1209
|
+
let { endpoint: i } = e, { session: a } = e, { lang: l = "en" } = e, { local: g = "en-US" } = e, { showerrors: w = "true" } = e, { showclosebutton: _ = "false" } = e, { showcontactbutton: T = "false" } = e, { translationurl: M } = e, { assetsurl: y = "" } = e, { customerid: b } = e, { transactionid: v } = e, { currencydecimals: G = "2" } = e, { clientstyling: z = "" } = e, { clientstylingurl: Y = "" } = e, { mbsource: W = "" } = e, { showverifications: N = "true" } = e, V = !1, { customsucceessbuttons: L = "" } = e, { custompendingbuttons: S = "" } = e, { customfailedbuttons: U = "" } = e, { currencysymbol: K = "" } = e, { currencyposition: H = "" } = e, R = [];
|
1210
|
+
var P;
|
1211
|
+
(function(o) {
|
1212
|
+
o.Success = "Success", o.Maintenance = "Maintenance";
|
1213
|
+
})(P || (P = {}));
|
1214
|
+
var f;
|
1215
|
+
(function(o) {
|
1216
|
+
o.Unknown = "Unknown", o.Text = "Text", o.Boolean = "Boolean", o.Number = "Number", o.Money = "Money", o.DateTime = "DateTime", o.Lookup = "Lookup", o.IpAddress = "IpAddress", o.Date = "Date", o.Time = "Time", o.LookupCollection = "LookupCollection", o.Hidden = "Hidden", o.Label = "Label", o.Password = "Password", o.Link = "Link", o.Image = "Image", o.Html = "Html", o.QRCode = "QR";
|
1217
|
+
})(f || (f = {}));
|
1218
|
+
const E = (o, [D, j]) => [
|
1219
|
+
...o,
|
1220
|
+
...Array.isArray(D) ? [...D.map((x) => [x, j])] : [[D, j]]
|
1221
|
+
], r = new Map([
|
1222
|
+
[["Unknown", 0], f.Unknown],
|
1223
|
+
[["Text", 1], f.Text],
|
1224
|
+
[["Boolean", 2], f.Boolean],
|
1225
|
+
[["Number", 3], f.Number],
|
1226
|
+
[["Money", 4], f.Money],
|
1227
|
+
[["DateTime", 5], f.DateTime],
|
1228
|
+
[["Lookup", 6], f.Lookup],
|
1229
|
+
[["IpAddress", 7], f.IpAddress],
|
1230
|
+
[["Date", 8], f.Date],
|
1231
|
+
[["Time", 9], f.Time],
|
1232
|
+
[["LookupCollection", 10], f.LookupCollection],
|
1233
|
+
[["Hidden", 11], f.Hidden],
|
1234
|
+
[["Label", 12], f.Label],
|
1235
|
+
[["Password", 13], f.Password],
|
1236
|
+
[["Link", 14], f.Link],
|
1237
|
+
[["Image", 15], f.Image],
|
1238
|
+
[["Html", 19], f.Html],
|
1239
|
+
[["QR", 20], f.QRCode]
|
1240
|
+
].reduce(E, []));
|
1241
|
+
let c, oe = [], ae, le, re, ce, O, X = [], te, ne, ue = "", We = window.navigator.userAgent, fe = !1;
|
1242
|
+
const de = {
|
1243
|
+
promotions: {
|
1244
|
+
event: "Cashier:goToPromotions",
|
1245
|
+
translationKey: "goToPromotions",
|
1246
|
+
cssClass: "PromotionsButton"
|
1247
|
+
},
|
1248
|
+
support: {
|
1249
|
+
event: "Cashier:goToContact",
|
1250
|
+
translationKey: "goToSupport",
|
1251
|
+
cssClass: "SupportButton"
|
1252
|
+
},
|
1253
|
+
merchanthomepage: {
|
1254
|
+
event: "Cashier:goToVendorWebsite",
|
1255
|
+
translationKey: "goToMerchantHomePage",
|
1256
|
+
cssClass: "MerchantHomePageButton"
|
1257
|
+
},
|
1258
|
+
sports: {
|
1259
|
+
event: "Cashier:goToSports",
|
1260
|
+
translationKey: "goToSports",
|
1261
|
+
cssClass: "SportsButton"
|
1262
|
+
},
|
1263
|
+
casino: {
|
1264
|
+
event: "Cashier:goToCasino",
|
1265
|
+
translationKey: "goToCasino",
|
1266
|
+
cssClass: "CasinoButton"
|
1267
|
+
},
|
1268
|
+
externallink: {
|
1269
|
+
event: "Cashier:externalRedirect",
|
1270
|
+
translationKey: "externalLink",
|
1271
|
+
cssClass: "ExternalLinkButton"
|
1272
|
+
},
|
1273
|
+
documentupload: {
|
1274
|
+
event: "Cashier:uploadDocuments",
|
1275
|
+
translationKey: "uploadDocuments",
|
1276
|
+
cssClass: "UploadDocumentButton"
|
1277
|
+
},
|
1278
|
+
home: {
|
1279
|
+
event: "Cashier:goToHome",
|
1280
|
+
translationKey: "goToHomepage",
|
1281
|
+
cssClass: "HomeButton"
|
1282
|
+
},
|
1283
|
+
close: {
|
1284
|
+
event: "CloseCashierReceiptPage",
|
1285
|
+
translationKey: "close",
|
1286
|
+
cssClass: "CloseButton"
|
1287
|
+
}
|
1288
|
+
}, J = (o) => {
|
1289
|
+
t(13, R = []), o.split(",").forEach((j) => {
|
1290
|
+
de[j.trim()] && R.push(de[j.trim()]);
|
1291
|
+
});
|
1292
|
+
}, je = () => {
|
1293
|
+
dt(l);
|
1294
|
+
};
|
1295
|
+
it(() => (window.addEventListener("message", me, !1), ft(g, K, H, G), () => {
|
1296
|
+
window.removeEventListener("message", me);
|
1297
|
+
}));
|
1298
|
+
const me = (o) => {
|
1299
|
+
var D;
|
1300
|
+
switch (o.data.type) {
|
1301
|
+
case "CloseReceiptInSecondTab":
|
1302
|
+
(D = window.opener) == null || D.postMessage(o.data);
|
1303
|
+
break;
|
1304
|
+
}
|
1305
|
+
}, Ne = () => {
|
1306
|
+
let o = M;
|
1307
|
+
if (o)
|
1308
|
+
return fetch(o).then((D) => D.json()).then((D) => {
|
1309
|
+
Object.keys(D).forEach((j) => {
|
1310
|
+
ve(j, D[j]);
|
1311
|
+
});
|
1312
|
+
}).catch(() => {
|
1313
|
+
});
|
1314
|
+
};
|
1315
|
+
Object.keys(Pe).forEach((o) => {
|
1316
|
+
ve(o, Pe[o]);
|
1317
|
+
});
|
1318
|
+
const Ve = () => {
|
1319
|
+
window.postMessage({ type: "CloseCashierReceiptPage" }, window.location.href);
|
1320
|
+
}, Oe = () => {
|
1321
|
+
window.postMessage({ type: "LiveChatReceiptPage" }, window.location.href);
|
1322
|
+
}, Ye = () => {
|
1323
|
+
window.postMessage(
|
1324
|
+
{
|
1325
|
+
type: "ErrorResponseCode",
|
1326
|
+
errorResponseCode: te,
|
1327
|
+
showErrorOutsideReceiptPage: ne
|
1328
|
+
},
|
1329
|
+
window.location.href
|
1330
|
+
);
|
1331
|
+
}, Ke = () => {
|
1332
|
+
const o = new URL(`${i}/v1/player/${b}/payment/GetPaymentInfo`), D = new Headers();
|
1333
|
+
D.append("accept", "application/json"), D.append("Content-Type", "application/json"), D.append("X-SessionId", `${a}`), D.append("X-Client-Request-Timestamp", Te.utc().format("YYYY-MM-DD HH:mm:ss.SSS"));
|
1334
|
+
const j = {
|
1335
|
+
method: "POST",
|
1336
|
+
headers: D,
|
1337
|
+
body: JSON.stringify({ TransactionCode: v })
|
1338
|
+
};
|
1339
|
+
t(12, V = !0), fetch(o, j).then((x) => x.json()).then((x) => {
|
1340
|
+
var he, be, we, _e;
|
1341
|
+
if (x.ResponseCode !== P.Success) {
|
1342
|
+
t(23, te = x.ResponseCode), t(24, ne = w.toLowerCase() === "false" || !w), Ye();
|
1343
|
+
return;
|
1344
|
+
}
|
1345
|
+
switch (t(16, c = {
|
1346
|
+
type: x.Transaction.Type,
|
1347
|
+
referenceId: x.Transaction.Code,
|
1348
|
+
status: (he = x.Transaction.Status) == null ? void 0 : he.Status,
|
1349
|
+
message: (be = x.Transaction.Status) == null ? void 0 : be.Message,
|
1350
|
+
amount: (we = x.Transaction.Amounts[0]) == null ? void 0 : we.Amount,
|
1351
|
+
currency: (_e = x.Transaction.Amounts[0]) == null ? void 0 : _e.Currency
|
1352
|
+
}), t(17, oe = x.ReceiptInfo && x.ReceiptInfo.ReceiptFields ? x.ReceiptInfo.ReceiptFields.map((q) => ({
|
1353
|
+
type: r.get(q.Type),
|
1354
|
+
name: q.Name,
|
1355
|
+
description: q.Description,
|
1356
|
+
defaultValue: q.DefaultValue,
|
1357
|
+
useCopyButton: q.UseCopyButton,
|
1358
|
+
usePrintButton: q.UsePrintButton
|
1359
|
+
})) : []), t(19, le = n(gt(c.status, c.type), {
|
1360
|
+
values: {
|
1361
|
+
amount: ut(Number(c.amount), c.currency)
|
1362
|
+
}
|
1363
|
+
})), t(18, ae = n(pt(c.status, c.type))), t(20, re = n(ht(c.status, c.type), { values: { errorText: c.message } })), c.status) {
|
1364
|
+
case "Voided":
|
1365
|
+
case "Success":
|
1366
|
+
J(L || "sports, close"), ke(
|
1367
|
+
c.type === "Deposit" ? "deposit_success" : "withdrawal_success",
|
1368
|
+
{
|
1369
|
+
userID: b,
|
1370
|
+
amount: c.amount,
|
1371
|
+
currency: c.currency,
|
1372
|
+
failureReason: c.message
|
1373
|
+
}
|
1374
|
+
);
|
1375
|
+
break;
|
1376
|
+
case "PendingNotification":
|
1377
|
+
case "PendingConfirmation":
|
1378
|
+
case "PendingApprovalStage1":
|
1379
|
+
case "PendingApprovalStage2":
|
1380
|
+
case "PendingApprovalStage3":
|
1381
|
+
case "PendingOfflineNotification":
|
1382
|
+
J(S || "home, close");
|
1383
|
+
break;
|
1384
|
+
case "Rejected":
|
1385
|
+
case "Cancelled":
|
1386
|
+
case "Failed":
|
1387
|
+
J(U || "support, close"), ke(
|
1388
|
+
c.type === "Deposit" ? "deposit_failed" : "withdrawal_failed",
|
1389
|
+
{
|
1390
|
+
userID: b,
|
1391
|
+
amount: c.amount,
|
1392
|
+
currency: c.currency,
|
1393
|
+
failureReason: c.message
|
1394
|
+
}
|
1395
|
+
), N === "true" && t(26, fe = !0);
|
1396
|
+
break;
|
1397
|
+
default:
|
1398
|
+
J("close");
|
1399
|
+
}
|
1400
|
+
y ? t(21, ce = mt(y, c.status)) : t(25, ue = bt(c.status));
|
1401
|
+
}).finally(() => t(12, V = !1));
|
1402
|
+
}, ge = (o) => {
|
1403
|
+
window.postMessage({ type: o }, window.location.href);
|
1404
|
+
}, pe = (o) => {
|
1405
|
+
o && window.postMessage(
|
1406
|
+
{
|
1407
|
+
type: "NavigateTo",
|
1408
|
+
path: o,
|
1409
|
+
target: Mt,
|
1410
|
+
externalLink: !1
|
1411
|
+
},
|
1412
|
+
window.location.href
|
1413
|
+
);
|
1414
|
+
};
|
1415
|
+
function Ge(o) {
|
1416
|
+
Ce[o ? "unshift" : "push"](() => {
|
1417
|
+
X[X.length] = o, t(22, X);
|
1418
|
+
});
|
1419
|
+
}
|
1420
|
+
const Ue = (o) => {
|
1421
|
+
pe(o.description);
|
1422
|
+
}, qe = (o) => ge(o.event);
|
1423
|
+
function Qe(o) {
|
1424
|
+
Ce[o ? "unshift" : "push"](() => {
|
1425
|
+
O = o, t(11, O);
|
1426
|
+
});
|
1427
|
+
}
|
1428
|
+
return s.$$set = (o) => {
|
1429
|
+
"endpoint" in o && t(0, i = o.endpoint), "session" in o && t(1, a = o.session), "lang" in o && t(2, l = o.lang), "local" in o && t(33, g = o.local), "showerrors" in o && t(34, w = o.showerrors), "showclosebutton" in o && t(3, _ = o.showclosebutton), "showcontactbutton" in o && t(4, T = o.showcontactbutton), "translationurl" in o && t(5, M = o.translationurl), "assetsurl" in o && t(6, y = o.assetsurl), "customerid" in o && t(7, b = o.customerid), "transactionid" in o && t(35, v = o.transactionid), "currencydecimals" in o && t(36, G = o.currencydecimals), "clientstyling" in o && t(8, z = o.clientstyling), "clientstylingurl" in o && t(9, Y = o.clientstylingurl), "mbsource" in o && t(37, W = o.mbsource), "showverifications" in o && t(10, N = o.showverifications), "customsucceessbuttons" in o && t(38, L = o.customsucceessbuttons), "custompendingbuttons" in o && t(39, S = o.custompendingbuttons), "customfailedbuttons" in o && t(40, U = o.customfailedbuttons), "currencysymbol" in o && t(41, K = o.currencysymbol), "currencyposition" in o && t(42, H = o.currencyposition);
|
1430
|
+
}, s.$$.update = () => {
|
1431
|
+
s.$$.dirty[0] & /*endpoint, session, customerid*/
|
1432
|
+
131 | s.$$.dirty[1] & /*transactionid, showerrors*/
|
1433
|
+
24 && i && a && b && v && w && Ke(), s.$$.dirty[0] & /*lang*/
|
1434
|
+
4 && l && je(), s.$$.dirty[0] & /*lang, translationurl*/
|
1435
|
+
36 && l && M && Ne(), s.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
1436
|
+
2304 && z && O && st(O, z), s.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
1437
|
+
2560 && Y && O && ot(O, Y), s.$$.dirty[0] & /*customStylingContainer*/
|
1438
|
+
2048 | s.$$.dirty[1] & /*mbsource*/
|
1439
|
+
64 && W && O && at(O, `${W}.Style`);
|
1440
|
+
}, [
|
1441
|
+
i,
|
1442
|
+
a,
|
1443
|
+
l,
|
1444
|
+
_,
|
1445
|
+
T,
|
1446
|
+
M,
|
1447
|
+
y,
|
1448
|
+
b,
|
1449
|
+
z,
|
1450
|
+
Y,
|
1451
|
+
N,
|
1452
|
+
O,
|
1453
|
+
V,
|
1454
|
+
R,
|
1455
|
+
P,
|
1456
|
+
f,
|
1457
|
+
c,
|
1458
|
+
oe,
|
1459
|
+
ae,
|
1460
|
+
le,
|
1461
|
+
re,
|
1462
|
+
ce,
|
1463
|
+
X,
|
1464
|
+
te,
|
1465
|
+
ne,
|
1466
|
+
ue,
|
1467
|
+
fe,
|
1468
|
+
n,
|
1469
|
+
We,
|
1470
|
+
Ve,
|
1471
|
+
Oe,
|
1472
|
+
ge,
|
1473
|
+
pe,
|
1474
|
+
g,
|
1475
|
+
w,
|
1476
|
+
v,
|
1477
|
+
G,
|
1478
|
+
W,
|
1479
|
+
L,
|
1480
|
+
S,
|
1481
|
+
U,
|
1482
|
+
K,
|
1483
|
+
H,
|
1484
|
+
Ge,
|
1485
|
+
Ue,
|
1486
|
+
qe,
|
1487
|
+
Qe
|
1488
|
+
];
|
1489
|
+
}
|
1490
|
+
class At extends Fe {
|
1491
|
+
constructor(e) {
|
1492
|
+
super(), $e(
|
1493
|
+
this,
|
1494
|
+
e,
|
1495
|
+
Bt,
|
1496
|
+
It,
|
1497
|
+
et,
|
1498
|
+
{
|
1499
|
+
endpoint: 0,
|
1500
|
+
session: 1,
|
1501
|
+
lang: 2,
|
1502
|
+
local: 33,
|
1503
|
+
showerrors: 34,
|
1504
|
+
showclosebutton: 3,
|
1505
|
+
showcontactbutton: 4,
|
1506
|
+
translationurl: 5,
|
1507
|
+
assetsurl: 6,
|
1508
|
+
customerid: 7,
|
1509
|
+
transactionid: 35,
|
1510
|
+
currencydecimals: 36,
|
1511
|
+
clientstyling: 8,
|
1512
|
+
clientstylingurl: 9,
|
1513
|
+
mbsource: 37,
|
1514
|
+
showverifications: 10,
|
1515
|
+
customsucceessbuttons: 38,
|
1516
|
+
custompendingbuttons: 39,
|
1517
|
+
customfailedbuttons: 40,
|
1518
|
+
currencysymbol: 41,
|
1519
|
+
currencyposition: 42
|
1520
|
+
},
|
1521
|
+
_t,
|
1522
|
+
[-1, -1, -1]
|
1523
|
+
);
|
1524
|
+
}
|
1525
|
+
get endpoint() {
|
1526
|
+
return this.$$.ctx[0];
|
1527
|
+
}
|
1528
|
+
set endpoint(e) {
|
1529
|
+
this.$$set({ endpoint: e }), k();
|
1530
|
+
}
|
1531
|
+
get session() {
|
1532
|
+
return this.$$.ctx[1];
|
1533
|
+
}
|
1534
|
+
set session(e) {
|
1535
|
+
this.$$set({ session: e }), k();
|
1536
|
+
}
|
1537
|
+
get lang() {
|
1538
|
+
return this.$$.ctx[2];
|
1539
|
+
}
|
1540
|
+
set lang(e) {
|
1541
|
+
this.$$set({ lang: e }), k();
|
1542
|
+
}
|
1543
|
+
get local() {
|
1544
|
+
return this.$$.ctx[33];
|
1545
|
+
}
|
1546
|
+
set local(e) {
|
1547
|
+
this.$$set({ local: e }), k();
|
1548
|
+
}
|
1549
|
+
get showerrors() {
|
1550
|
+
return this.$$.ctx[34];
|
1551
|
+
}
|
1552
|
+
set showerrors(e) {
|
1553
|
+
this.$$set({ showerrors: e }), k();
|
1554
|
+
}
|
1555
|
+
get showclosebutton() {
|
1556
|
+
return this.$$.ctx[3];
|
1557
|
+
}
|
1558
|
+
set showclosebutton(e) {
|
1559
|
+
this.$$set({ showclosebutton: e }), k();
|
1560
|
+
}
|
1561
|
+
get showcontactbutton() {
|
1562
|
+
return this.$$.ctx[4];
|
1563
|
+
}
|
1564
|
+
set showcontactbutton(e) {
|
1565
|
+
this.$$set({ showcontactbutton: e }), k();
|
1566
|
+
}
|
1567
|
+
get translationurl() {
|
1568
|
+
return this.$$.ctx[5];
|
1569
|
+
}
|
1570
|
+
set translationurl(e) {
|
1571
|
+
this.$$set({ translationurl: e }), k();
|
1572
|
+
}
|
1573
|
+
get assetsurl() {
|
1574
|
+
return this.$$.ctx[6];
|
1575
|
+
}
|
1576
|
+
set assetsurl(e) {
|
1577
|
+
this.$$set({ assetsurl: e }), k();
|
1578
|
+
}
|
1579
|
+
get customerid() {
|
1580
|
+
return this.$$.ctx[7];
|
1581
|
+
}
|
1582
|
+
set customerid(e) {
|
1583
|
+
this.$$set({ customerid: e }), k();
|
1584
|
+
}
|
1585
|
+
get transactionid() {
|
1586
|
+
return this.$$.ctx[35];
|
1587
|
+
}
|
1588
|
+
set transactionid(e) {
|
1589
|
+
this.$$set({ transactionid: e }), k();
|
1590
|
+
}
|
1591
|
+
get currencydecimals() {
|
1592
|
+
return this.$$.ctx[36];
|
1593
|
+
}
|
1594
|
+
set currencydecimals(e) {
|
1595
|
+
this.$$set({ currencydecimals: e }), k();
|
1596
|
+
}
|
1597
|
+
get clientstyling() {
|
1598
|
+
return this.$$.ctx[8];
|
1599
|
+
}
|
1600
|
+
set clientstyling(e) {
|
1601
|
+
this.$$set({ clientstyling: e }), k();
|
1602
|
+
}
|
1603
|
+
get clientstylingurl() {
|
1604
|
+
return this.$$.ctx[9];
|
1605
|
+
}
|
1606
|
+
set clientstylingurl(e) {
|
1607
|
+
this.$$set({ clientstylingurl: e }), k();
|
1608
|
+
}
|
1609
|
+
get mbsource() {
|
1610
|
+
return this.$$.ctx[37];
|
1611
|
+
}
|
1612
|
+
set mbsource(e) {
|
1613
|
+
this.$$set({ mbsource: e }), k();
|
1614
|
+
}
|
1615
|
+
get showverifications() {
|
1616
|
+
return this.$$.ctx[10];
|
1617
|
+
}
|
1618
|
+
set showverifications(e) {
|
1619
|
+
this.$$set({ showverifications: e }), k();
|
1620
|
+
}
|
1621
|
+
get customsucceessbuttons() {
|
1622
|
+
return this.$$.ctx[38];
|
1623
|
+
}
|
1624
|
+
set customsucceessbuttons(e) {
|
1625
|
+
this.$$set({ customsucceessbuttons: e }), k();
|
1626
|
+
}
|
1627
|
+
get custompendingbuttons() {
|
1628
|
+
return this.$$.ctx[39];
|
1629
|
+
}
|
1630
|
+
set custompendingbuttons(e) {
|
1631
|
+
this.$$set({ custompendingbuttons: e }), k();
|
1632
|
+
}
|
1633
|
+
get customfailedbuttons() {
|
1634
|
+
return this.$$.ctx[40];
|
1635
|
+
}
|
1636
|
+
set customfailedbuttons(e) {
|
1637
|
+
this.$$set({ customfailedbuttons: e }), k();
|
1638
|
+
}
|
1639
|
+
get currencysymbol() {
|
1640
|
+
return this.$$.ctx[41];
|
1641
|
+
}
|
1642
|
+
set currencysymbol(e) {
|
1643
|
+
this.$$set({ currencysymbol: e }), k();
|
1644
|
+
}
|
1645
|
+
get currencyposition() {
|
1646
|
+
return this.$$.ctx[42];
|
1647
|
+
}
|
1648
|
+
set currencyposition(e) {
|
1649
|
+
this.$$set({ currencyposition: e }), k();
|
1650
|
+
}
|
1651
|
+
}
|
1652
|
+
lt(At, { endpoint: {}, session: {}, lang: {}, local: {}, showerrors: {}, showclosebutton: {}, showcontactbutton: {}, translationurl: {}, assetsurl: {}, customerid: {}, transactionid: {}, currencydecimals: {}, clientstyling: {}, clientstylingurl: {}, mbsource: {}, showverifications: {}, customsucceessbuttons: {}, custompendingbuttons: {}, customfailedbuttons: {}, currencysymbol: {}, currencyposition: {} }, [], [], !0);
|
1653
|
+
export {
|
1654
|
+
At as default
|
1655
|
+
};
|