@everymatrix/cashier-method-details 1.64.0 → 1.64.2
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-D05ZOiyZ.js → CashierError-Bisyjt8z.js} +4 -2
- package/components/{CashierError-DletG-nz.js → CashierError-DV-HLY8d.js} +4 -2
- package/components/CashierError-GVInnLO0.cjs +5 -0
- package/components/{CashierHeader-zZXvyvHx.js → CashierHeader-BmFLcvOn.js} +1 -1
- package/components/{CashierHeader-BKhW9U-k.js → CashierHeader-D5rWgCkR.js} +1 -1
- package/components/{CashierHeader-4ue0Gap7.cjs → CashierHeader-Dpm_m2-F.cjs} +1 -1
- package/components/{CashierIframeRedirect-BZbyzVJy.js → CashierIframeRedirect-BeJ3BjdP.js} +2 -2
- package/components/{CashierIframeRedirect-BT_SymGW.cjs → CashierIframeRedirect-OIn1YaZR.cjs} +1 -1
- package/components/{CashierIframeRedirect-D5Fhv5bq.js → CashierIframeRedirect-UyIC5nCY.js} +2 -2
- package/components/{CashierMethodDetails-BMLBg5tI.js → CashierMethodDetails-CbIHNNA7.js} +4 -4
- package/components/{CashierMethodDetails-DZPm8tes.cjs → CashierMethodDetails-HB5kpaqd.cjs} +1 -1
- package/components/{CashierMethodDetails-CL7ZEED9.js → CashierMethodDetails-rb98ADfQ.js} +4 -4
- package/components/{CashierReceiptPage-V1a0b-4d.js → CashierReceiptPage-CEUHu1XU.js} +167 -156
- package/components/{CashierReceiptPage-D0rwdNa6.js → CashierReceiptPage-Cy6AVN3x.js} +167 -156
- package/components/{CashierReceiptPage-C32peTEl.cjs → CashierReceiptPage-DQdoyQtR.cjs} +1 -1
- 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/components/CashierError-B90Fovz1.cjs +0 -5
@@ -1,11 +1,11 @@
|
|
1
|
-
import { S as je, b as he, s as ke, f as E, c as Ee, n as K, e as v, o as p, G as Be, m as d, p as z, q as
|
2
|
-
import { d as Ae, u as Qe } from "./CashierMethodDetails-
|
3
|
-
import { a as
|
1
|
+
import { S as je, b as he, s as ke, f as E, c as Ee, n as K, e as v, o as p, G as Be, m as d, p as z, q as w, C as G, v as a, w as we, H as Le, A as te, y as M, B as I, z as R, D as B, K as fe, L as Ze, x as Me, E as Re } from "./CashierConfirmModal-3pkCHAVZ.js";
|
2
|
+
import { d as Ae, u as Qe } from "./CashierMethodDetails-CbIHNNA7.js";
|
3
|
+
import { a as Se, i as xe, $ as De, b as Ge } from "./CashierError-DV-HLY8d.js";
|
4
4
|
function ie(A, e) {
|
5
|
-
|
5
|
+
Se(A, e);
|
6
6
|
}
|
7
7
|
function Ue(A) {
|
8
|
-
|
8
|
+
xe({
|
9
9
|
fallbackLocale: "en"
|
10
10
|
}), De.set(A);
|
11
11
|
}
|
@@ -314,36 +314,41 @@ function oe(A, e, n) {
|
|
314
314
|
function Ve(A) {
|
315
315
|
let e, n = (
|
316
316
|
/*errorResponseCode*/
|
317
|
-
A[
|
318
|
-
A[
|
317
|
+
A[17] === /*ResponseCode*/
|
318
|
+
A[8].Maintenance && re(A)
|
319
319
|
);
|
320
320
|
return {
|
321
321
|
c() {
|
322
|
-
e = z("cashier-error"), n && n.c(),
|
322
|
+
e = z("cashier-error"), n && n.c(), B(
|
323
323
|
e,
|
324
324
|
"assetsurl",
|
325
325
|
/*assetsurl*/
|
326
|
-
A[
|
327
|
-
),
|
326
|
+
A[4]
|
327
|
+
), B(
|
328
328
|
e,
|
329
329
|
"translationurl",
|
330
330
|
/*translationurl*/
|
331
|
-
A[
|
332
|
-
),
|
331
|
+
A[3]
|
332
|
+
), B(
|
333
333
|
e,
|
334
334
|
"clientstylingurl",
|
335
335
|
/*clientstylingurl*/
|
336
|
-
A[
|
337
|
-
),
|
336
|
+
A[6]
|
337
|
+
), B(
|
338
338
|
e,
|
339
339
|
"clientstyling",
|
340
340
|
/*clientstyling*/
|
341
|
-
A[
|
342
|
-
),
|
341
|
+
A[5]
|
342
|
+
), B(
|
343
|
+
e,
|
344
|
+
"lang",
|
345
|
+
/*lang*/
|
346
|
+
A[0]
|
347
|
+
), B(e, "hidebuttons", "true"), B(
|
343
348
|
e,
|
344
349
|
"errorcode",
|
345
350
|
/*errorResponseCode*/
|
346
|
-
A[
|
351
|
+
A[17]
|
347
352
|
);
|
348
353
|
},
|
349
354
|
m(t, f) {
|
@@ -351,37 +356,43 @@ function Ve(A) {
|
|
351
356
|
},
|
352
357
|
p(t, f) {
|
353
358
|
/*errorResponseCode*/
|
354
|
-
t[
|
355
|
-
t[
|
356
|
-
|
359
|
+
t[17] === /*ResponseCode*/
|
360
|
+
t[8].Maintenance ? n ? n.p(t, f) : (n = re(t), n.c(), n.m(e, null)) : n && (n.d(1), n = null), f[0] & /*assetsurl*/
|
361
|
+
16 && B(
|
357
362
|
e,
|
358
363
|
"assetsurl",
|
359
364
|
/*assetsurl*/
|
360
|
-
t[
|
365
|
+
t[4]
|
361
366
|
), f[0] & /*translationurl*/
|
362
|
-
|
367
|
+
8 && B(
|
363
368
|
e,
|
364
369
|
"translationurl",
|
365
370
|
/*translationurl*/
|
366
|
-
t[
|
371
|
+
t[3]
|
367
372
|
), f[0] & /*clientstylingurl*/
|
368
|
-
|
373
|
+
64 && B(
|
369
374
|
e,
|
370
375
|
"clientstylingurl",
|
371
376
|
/*clientstylingurl*/
|
372
|
-
t[
|
377
|
+
t[6]
|
373
378
|
), f[0] & /*clientstyling*/
|
374
|
-
|
379
|
+
32 && B(
|
375
380
|
e,
|
376
381
|
"clientstyling",
|
377
382
|
/*clientstyling*/
|
378
|
-
t[
|
383
|
+
t[5]
|
384
|
+
), f[0] & /*lang*/
|
385
|
+
1 && B(
|
386
|
+
e,
|
387
|
+
"lang",
|
388
|
+
/*lang*/
|
389
|
+
t[0]
|
379
390
|
), f[0] & /*errorResponseCode*/
|
380
|
-
|
391
|
+
131072 && B(
|
381
392
|
e,
|
382
393
|
"errorcode",
|
383
394
|
/*errorResponseCode*/
|
384
|
-
t[
|
395
|
+
t[17]
|
385
396
|
);
|
386
397
|
},
|
387
398
|
d(t) {
|
@@ -390,107 +401,107 @@ function Ve(A) {
|
|
390
401
|
};
|
391
402
|
}
|
392
403
|
function _e(A) {
|
393
|
-
let e, n, t, f, l, c, u, o, s, J,
|
404
|
+
let e, n, t, f, l, c, u, o, s, J, L, X, P, b, Q, S, x, U, T, D, C = (
|
394
405
|
/*$_*/
|
395
|
-
A[
|
406
|
+
A[19]("close") + ""
|
396
407
|
), N, F, Y, j = (
|
397
408
|
/*showcontactbutton*/
|
398
|
-
A[
|
399
|
-
A[
|
409
|
+
A[2] && /*showcontactbutton*/
|
410
|
+
A[2] !== "false" && ae(A)
|
400
411
|
), h = (
|
401
412
|
/*showclosebutton*/
|
402
|
-
A[
|
403
|
-
A[
|
413
|
+
A[1] && /*showclosebutton*/
|
414
|
+
A[1] !== "false" && se(A)
|
404
415
|
), H = (
|
405
416
|
/*txnInfo*/
|
406
|
-
A[
|
417
|
+
A[10].referenceId && ue(A)
|
407
418
|
), g = (
|
408
419
|
/*receiptFields*/
|
409
|
-
A[
|
420
|
+
A[11].length && ve(A)
|
410
421
|
);
|
411
422
|
return {
|
412
423
|
c() {
|
413
|
-
e = z("div"), j && j.c(), n =
|
424
|
+
e = z("div"), j && j.c(), n = w(), h && h.c(), t = w(), f = z("div"), l = z("img"), u = w(), o = z("div"), s = z("h2"), J = R(
|
414
425
|
/*title*/
|
415
|
-
A[
|
416
|
-
),
|
426
|
+
A[13]
|
427
|
+
), L = w(), X = z("div"), P = R(
|
417
428
|
/*subTitle*/
|
418
|
-
A[
|
419
|
-
), b =
|
429
|
+
A[12]
|
430
|
+
), b = w(), Q = z("div"), S = R(
|
420
431
|
/*text*/
|
421
|
-
A[
|
422
|
-
),
|
423
|
-
A[
|
432
|
+
A[14]
|
433
|
+
), x = w(), H && H.c(), U = w(), g && g.c(), T = w(), D = z("button"), N = R(C), a(e, "class", "HeaderButtonContainer"), G(l.src, c = /*statusImageUrl*/
|
434
|
+
A[15]) || a(l, "src", c), a(l, "class", "StatusLogo"), a(s, "class", "Title"), a(X, "class", "SubTitle"), a(o, "class", "TitleWrapper"), a(f, "class", "ReceiptWrapper"), a(Q, "class", "Text"), a(D, "class", "PrimaryButton");
|
424
435
|
},
|
425
436
|
m(r, m) {
|
426
|
-
d(r, e, m), j && j.m(e, null), p(e, n), h && h.m(e, null), d(r, t, m), d(r, f, m), p(f, l), p(f, u), p(f, o), p(o, s), p(s, J), p(o,
|
437
|
+
d(r, e, m), j && j.m(e, null), p(e, n), h && h.m(e, null), d(r, t, m), d(r, f, m), p(f, l), p(f, u), p(f, o), p(o, s), p(s, J), p(o, L), p(o, X), p(X, P), d(r, b, m), d(r, Q, m), p(Q, S), d(r, x, m), H && H.m(r, m), d(r, U, m), g && g.m(r, m), d(r, T, m), d(r, D, m), p(D, N), F || (Y = I(
|
427
438
|
D,
|
428
439
|
"click",
|
429
440
|
/*closeReceipt*/
|
430
|
-
A[
|
441
|
+
A[20]
|
431
442
|
), F = !0);
|
432
443
|
},
|
433
444
|
p(r, m) {
|
434
445
|
/*showcontactbutton*/
|
435
|
-
r[
|
436
|
-
r[
|
437
|
-
r[
|
438
|
-
r[
|
439
|
-
|
440
|
-
r[
|
441
|
-
|
446
|
+
r[2] && /*showcontactbutton*/
|
447
|
+
r[2] !== "false" ? j ? j.p(r, m) : (j = ae(r), j.c(), j.m(e, n)) : j && (j.d(1), j = null), /*showclosebutton*/
|
448
|
+
r[1] && /*showclosebutton*/
|
449
|
+
r[1] !== "false" ? h ? h.p(r, m) : (h = se(r), h.c(), h.m(e, null)) : h && (h.d(1), h = null), m[0] & /*statusImageUrl*/
|
450
|
+
32768 && !G(l.src, c = /*statusImageUrl*/
|
451
|
+
r[15]) && a(l, "src", c), m[0] & /*title*/
|
452
|
+
8192 && M(
|
442
453
|
J,
|
443
454
|
/*title*/
|
444
|
-
r[
|
455
|
+
r[13]
|
445
456
|
), m[0] & /*subTitle*/
|
446
|
-
|
457
|
+
4096 && M(
|
447
458
|
P,
|
448
459
|
/*subTitle*/
|
449
|
-
r[
|
460
|
+
r[12]
|
450
461
|
), m[0] & /*text*/
|
451
|
-
|
452
|
-
|
462
|
+
16384 && M(
|
463
|
+
S,
|
453
464
|
/*text*/
|
454
|
-
r[
|
465
|
+
r[14]
|
455
466
|
), /*txnInfo*/
|
456
|
-
r[
|
457
|
-
r[
|
458
|
-
|
459
|
-
r[
|
467
|
+
r[10].referenceId ? H ? H.p(r, m) : (H = ue(r), H.c(), H.m(U.parentNode, U)) : H && (H.d(1), H = null), /*receiptFields*/
|
468
|
+
r[11].length ? g ? g.p(r, m) : (g = ve(r), g.c(), g.m(T.parentNode, T)) : g && (g.d(1), g = null), m[0] & /*$_*/
|
469
|
+
524288 && C !== (C = /*$_*/
|
470
|
+
r[19]("close") + "") && M(N, C);
|
460
471
|
},
|
461
472
|
d(r) {
|
462
|
-
r && (v(e), v(t), v(f), v(b), v(Q), v(
|
473
|
+
r && (v(e), v(t), v(f), v(b), v(Q), v(x), v(U), v(T), v(D)), j && j.d(), h && h.d(), H && H.d(r), g && g.d(r), F = !1, Y();
|
463
474
|
}
|
464
475
|
};
|
465
476
|
}
|
466
477
|
function re(A) {
|
467
478
|
let e, n, t, f = (
|
468
479
|
/*$_*/
|
469
|
-
A[
|
480
|
+
A[19]("receipt.maintenance.title") + ""
|
470
481
|
), l, c, u, o = (
|
471
482
|
/*$_*/
|
472
|
-
A[
|
483
|
+
A[19]("receipt.maintenance.text") + ""
|
473
484
|
), s;
|
474
485
|
function J(P, b) {
|
475
486
|
return (
|
476
487
|
/*assetsurl*/
|
477
|
-
P[
|
488
|
+
P[4] ? en : $e
|
478
489
|
);
|
479
490
|
}
|
480
|
-
let
|
491
|
+
let L = J(A), X = L(A);
|
481
492
|
return {
|
482
493
|
c() {
|
483
|
-
e = z("div"), X.c(), n =
|
494
|
+
e = z("div"), X.c(), n = w(), t = z("span"), l = R(f), c = w(), u = z("span"), s = R(o), a(e, "slot", "icon"), a(t, "slot", "title"), a(t, "class", "CashierErrorTitle"), a(u, "slot", "text"), a(u, "class", "CashierErrorText");
|
484
495
|
},
|
485
496
|
m(P, b) {
|
486
497
|
d(P, e, b), X.m(e, null), d(P, n, b), d(P, t, b), p(t, l), d(P, c, b), d(P, u, b), p(u, s);
|
487
498
|
},
|
488
499
|
p(P, b) {
|
489
|
-
|
490
|
-
|
491
|
-
P[
|
492
|
-
|
493
|
-
P[
|
500
|
+
L === (L = J(P)) && X ? X.p(P, b) : (X.d(1), X = L(P), X && (X.c(), X.m(e, null))), b[0] & /*$_*/
|
501
|
+
524288 && f !== (f = /*$_*/
|
502
|
+
P[19]("receipt.maintenance.title") + "") && M(l, f), b[0] & /*$_*/
|
503
|
+
524288 && o !== (o = /*$_*/
|
504
|
+
P[19]("receipt.maintenance.text") + "") && M(s, o);
|
494
505
|
},
|
495
506
|
d(P) {
|
496
507
|
P && (v(e), v(n), v(t), v(c), v(u)), X.d();
|
@@ -517,15 +528,15 @@ function en(A) {
|
|
517
528
|
return {
|
518
529
|
c() {
|
519
530
|
e = z("img"), G(e.src, n = `${/*assetsurl*/
|
520
|
-
A[
|
531
|
+
A[4]}/maintenance.png`) || a(e, "src", n), a(e, "width", "300px"), a(e, "alt", "error");
|
521
532
|
},
|
522
533
|
m(t, f) {
|
523
534
|
d(t, e, f);
|
524
535
|
},
|
525
536
|
p(t, f) {
|
526
537
|
f[0] & /*assetsurl*/
|
527
|
-
|
528
|
-
t[
|
538
|
+
16 && !G(e.src, n = `${/*assetsurl*/
|
539
|
+
t[4]}/maintenance.png`) && a(e, "src", n);
|
529
540
|
},
|
530
541
|
d(t) {
|
531
542
|
t && v(e);
|
@@ -543,7 +554,7 @@ function ae(A) {
|
|
543
554
|
e,
|
544
555
|
"click",
|
545
556
|
/*liveChat*/
|
546
|
-
A[
|
557
|
+
A[21]
|
547
558
|
), n = !0);
|
548
559
|
},
|
549
560
|
p: K,
|
@@ -563,7 +574,7 @@ function se(A) {
|
|
563
574
|
e,
|
564
575
|
"click",
|
565
576
|
/*closeReceipt*/
|
566
|
-
A[
|
577
|
+
A[20]
|
567
578
|
), n = !0);
|
568
579
|
},
|
569
580
|
p: K,
|
@@ -575,10 +586,10 @@ function se(A) {
|
|
575
586
|
function ue(A) {
|
576
587
|
let e, n = (
|
577
588
|
/*$_*/
|
578
|
-
A[
|
589
|
+
A[19]("reference", {
|
579
590
|
values: { code: (
|
580
591
|
/*txnInfo*/
|
581
|
-
A[
|
592
|
+
A[10].referenceId
|
582
593
|
) }
|
583
594
|
}) + ""
|
584
595
|
), t;
|
@@ -591,11 +602,11 @@ function ue(A) {
|
|
591
602
|
},
|
592
603
|
p(f, l) {
|
593
604
|
l[0] & /*$_, txnInfo*/
|
594
|
-
|
595
|
-
f[
|
605
|
+
525312 && n !== (n = /*$_*/
|
606
|
+
f[19]("reference", {
|
596
607
|
values: { code: (
|
597
608
|
/*txnInfo*/
|
598
|
-
f[
|
609
|
+
f[10].referenceId
|
599
610
|
) }
|
600
611
|
}) + "") && M(t, n);
|
601
612
|
},
|
@@ -607,7 +618,7 @@ function ue(A) {
|
|
607
618
|
function ve(A) {
|
608
619
|
let e, n = fe(
|
609
620
|
/*receiptFields*/
|
610
|
-
A[
|
621
|
+
A[11]
|
611
622
|
), t = [];
|
612
623
|
for (let f = 0; f < n.length; f += 1)
|
613
624
|
t[f] = de(oe(A, n, f));
|
@@ -624,10 +635,10 @@ function ve(A) {
|
|
624
635
|
},
|
625
636
|
p(f, l) {
|
626
637
|
if (l[0] & /*openUrlInNewTab, receiptFields, qrCodeContainer, FieldTypes*/
|
627
|
-
|
638
|
+
4262400) {
|
628
639
|
n = fe(
|
629
640
|
/*receiptFields*/
|
630
|
-
f[
|
641
|
+
f[11]
|
631
642
|
);
|
632
643
|
let c;
|
633
644
|
for (c = 0; c < n.length; c += 1) {
|
@@ -658,7 +669,7 @@ function nn(A) {
|
|
658
669
|
},
|
659
670
|
p(f, l) {
|
660
671
|
l[0] & /*receiptFields*/
|
661
|
-
|
672
|
+
2048 && n !== (n = /*field*/
|
662
673
|
f[46].defaultValue + "") && M(t, n);
|
663
674
|
},
|
664
675
|
d(f) {
|
@@ -676,7 +687,7 @@ function tn(A) {
|
|
676
687
|
), u, o;
|
677
688
|
return {
|
678
689
|
c() {
|
679
|
-
e = z("span"), t = R(n), f =
|
690
|
+
e = z("span"), t = R(n), f = w(), l = z("a"), u = R(c), a(l, "href", o = /*field*/
|
680
691
|
A[46].defaultValue), a(l, "target", "_blank"), a(l, "rel", "noopener noreferrer");
|
681
692
|
},
|
682
693
|
m(s, J) {
|
@@ -684,11 +695,11 @@ function tn(A) {
|
|
684
695
|
},
|
685
696
|
p(s, J) {
|
686
697
|
J[0] & /*receiptFields*/
|
687
|
-
|
698
|
+
2048 && n !== (n = /*field*/
|
688
699
|
s[46].description + "") && M(t, n), J[0] & /*receiptFields*/
|
689
|
-
|
700
|
+
2048 && c !== (c = /*field*/
|
690
701
|
s[46].Name + "") && M(u, c), J[0] & /*receiptFields*/
|
691
|
-
|
702
|
+
2048 && o !== (o = /*field*/
|
692
703
|
s[46].defaultValue) && a(l, "href", o);
|
693
704
|
},
|
694
705
|
d(s) {
|
@@ -709,9 +720,9 @@ function fn(A) {
|
|
709
720
|
},
|
710
721
|
p(f, l) {
|
711
722
|
l[0] & /*receiptFields*/
|
712
|
-
|
723
|
+
2048 && !G(e.src, n = /*field*/
|
713
724
|
f[46].defaultValue) && a(e, "src", n), l[0] & /*receiptFields*/
|
714
|
-
|
725
|
+
2048 && t !== (t = /*field*/
|
715
726
|
f[46].description) && a(e, "title", t);
|
716
727
|
},
|
717
728
|
d(f) {
|
@@ -733,7 +744,7 @@ function An(A) {
|
|
733
744
|
},
|
734
745
|
p(t, f) {
|
735
746
|
f[0] & /*receiptFields*/
|
736
|
-
|
747
|
+
2048 && n !== (n = /*field*/
|
737
748
|
t[46].defaultValue + "") && (e.innerHTML = n);
|
738
749
|
},
|
739
750
|
d(t) {
|
@@ -764,7 +775,7 @@ function ln(A) {
|
|
764
775
|
},
|
765
776
|
p(o, s) {
|
766
777
|
A = o, s[0] & /*receiptFields*/
|
767
|
-
|
778
|
+
2048 && t !== (t = /*field*/
|
768
779
|
A[46].defaultValue + "") && M(f, t);
|
769
780
|
},
|
770
781
|
d(o) {
|
@@ -778,16 +789,16 @@ function de(A) {
|
|
778
789
|
return (
|
779
790
|
/*field*/
|
780
791
|
c[46].type === /*FieldTypes*/
|
781
|
-
c[
|
792
|
+
c[9].QRCode ? ln : (
|
782
793
|
/*field*/
|
783
794
|
c[46].type === /*FieldTypes*/
|
784
|
-
c[
|
795
|
+
c[9].Html ? An : (
|
785
796
|
/*field*/
|
786
797
|
c[46].type === /*FieldTypes*/
|
787
|
-
c[
|
798
|
+
c[9].Image ? fn : (
|
788
799
|
/*field*/
|
789
800
|
c[46].type === /*FieldTypes*/
|
790
|
-
c[
|
801
|
+
c[9].Link ? tn : nn
|
791
802
|
)
|
792
803
|
)
|
793
804
|
)
|
@@ -796,7 +807,7 @@ function de(A) {
|
|
796
807
|
let f = t(A), l = f(A);
|
797
808
|
return {
|
798
809
|
c() {
|
799
|
-
e = z("div"), l.c(), n =
|
810
|
+
e = z("div"), l.c(), n = w(), a(e, "class", "ReceiptField");
|
800
811
|
},
|
801
812
|
m(c, u) {
|
802
813
|
d(c, e, u), l.m(e, null), p(e, n);
|
@@ -814,20 +825,20 @@ function cn(A) {
|
|
814
825
|
function c(s, J) {
|
815
826
|
if (
|
816
827
|
/*txnInfo*/
|
817
|
-
s[
|
828
|
+
s[10]
|
818
829
|
)
|
819
830
|
return _e;
|
820
831
|
if (
|
821
832
|
/*errorResponseCode*/
|
822
|
-
s[
|
823
|
-
s[
|
833
|
+
s[17] && !/*showErrorOutsideReceiptPage*/
|
834
|
+
s[18]
|
824
835
|
)
|
825
836
|
return Ve;
|
826
837
|
}
|
827
838
|
let u = c(A), o = u && u(A);
|
828
839
|
return {
|
829
840
|
c() {
|
830
|
-
e = z("script"), t =
|
841
|
+
e = z("script"), t = w(), f = z("div"), l = z("div"), o && o.c(), G(e.src, n = on) || a(e, "src", n), a(l, "class", "CashierReceiptPage"), a(f, "class", "CashierReceiptPageWidget");
|
831
842
|
},
|
832
843
|
m(s, J) {
|
833
844
|
p(Ie.head, e), d(s, t, J), d(s, f, J), p(f, l), o && o.m(l, null), A[31](f);
|
@@ -845,12 +856,12 @@ function cn(A) {
|
|
845
856
|
let on = "https://cdn.rawgit.com/davidshimjs/qrcodejs/gh-pages/qrcode.min.js", rn = "_blank";
|
846
857
|
function an(A, e, n) {
|
847
858
|
let t;
|
848
|
-
we(A, Ge, (i) => n(
|
849
|
-
let { endpoint: f } = e, { session: l } = e, { lang: c = "en" } = e, { local: u = "en-US" } = e, { showerrors: o = "true" } = e, { showclosebutton: s = "false" } = e, { showcontactbutton: J = "false" } = e, { translationurl:
|
850
|
-
var
|
859
|
+
we(A, Ge, (i) => n(19, t = i)), Ae.extend(Qe);
|
860
|
+
let { endpoint: f } = e, { session: l } = e, { lang: c = "en" } = e, { local: u = "en-US" } = e, { showerrors: o = "true" } = e, { showclosebutton: s = "false" } = e, { showcontactbutton: J = "false" } = e, { translationurl: L } = e, { assetsurl: X = "" } = e, { customerid: P } = e, { transactionid: b } = e, { clientstyling: Q = "" } = e, { clientstylingurl: S = "" } = e;
|
861
|
+
var x;
|
851
862
|
(function(i) {
|
852
863
|
i.Success = "Success", i.Maintenance = "Maintenance";
|
853
|
-
})(
|
864
|
+
})(x || (x = {}));
|
854
865
|
const U = {
|
855
866
|
Success: ce,
|
856
867
|
Voided: ce,
|
@@ -868,9 +879,9 @@ function an(A, e, n) {
|
|
868
879
|
(function(i) {
|
869
880
|
i.Unknown = "Unknown", i.Text = "Text", i.Boolean = "Boolean", i.Number = "Number", i.Money = "Money", i.DateTime = "DateTime", i.Lookup = "Lookup", i.IpAddress = "IpAddress", i.Date = "Date", i.Time = "Time", i.LookupCollection = "LookupCollection", i.Hidden = "Hidden", i.Label = "Label", i.Password = "Password", i.Link = "Link", i.Image = "Image", i.Html = "Html", i.QRCode = "QR";
|
870
881
|
})(T || (T = {}));
|
871
|
-
const D = (i, [y,
|
882
|
+
const D = (i, [y, Z]) => [
|
872
883
|
...i,
|
873
|
-
...Array.isArray(y) ? [...y.map((k) => [k,
|
884
|
+
...Array.isArray(y) ? [...y.map((k) => [k, Z])] : [[y, Z]]
|
874
885
|
], C = new Map([
|
875
886
|
[["Unknown", 0], T.Unknown],
|
876
887
|
[["Text", 1], T.Text],
|
@@ -905,11 +916,11 @@ function an(A, e, n) {
|
|
905
916
|
break;
|
906
917
|
}
|
907
918
|
}, me = () => {
|
908
|
-
let i =
|
919
|
+
let i = L;
|
909
920
|
if (i)
|
910
921
|
return fetch(i).then((y) => y.json()).then((y) => {
|
911
|
-
Object.keys(y).forEach((
|
912
|
-
ie(
|
922
|
+
Object.keys(y).forEach((Z) => {
|
923
|
+
ie(Z, y[Z]);
|
913
924
|
});
|
914
925
|
}).catch((y) => {
|
915
926
|
});
|
@@ -921,9 +932,9 @@ function an(A, e, n) {
|
|
921
932
|
let i = document.createElement("style");
|
922
933
|
i.innerHTML = Q, g.appendChild(i);
|
923
934
|
}, pe = () => {
|
924
|
-
let i = new URL(
|
925
|
-
fetch(i.href).then((
|
926
|
-
y.innerHTML =
|
935
|
+
let i = new URL(S), y = document.createElement("style");
|
936
|
+
fetch(i.href).then((Z) => Z.text()).then((Z) => {
|
937
|
+
y.innerHTML = Z, setTimeout(
|
927
938
|
() => {
|
928
939
|
g.appendChild(y);
|
929
940
|
},
|
@@ -950,36 +961,36 @@ function an(A, e, n) {
|
|
950
961
|
}, be = () => {
|
951
962
|
const i = new URL(`${f}/v1/player/${P}/payment/GetPaymentInfo`), y = new Headers();
|
952
963
|
y.append("accept", "application/json"), y.append("Content-Type", "application/json"), y.append("X-SessionId", `${l}`), y.append("X-Client-Request-Timestamp", Ae.utc().format("YYYY-MM-DD HH:mm:ss.SSS"));
|
953
|
-
const
|
964
|
+
const Z = {
|
954
965
|
method: "POST",
|
955
966
|
headers: y,
|
956
967
|
body: JSON.stringify({ TransactionCode: b })
|
957
968
|
};
|
958
|
-
fetch(i,
|
959
|
-
if (k.ResponseCode !==
|
960
|
-
n(
|
969
|
+
fetch(i, Z).then((k) => k.json()).then((k) => {
|
970
|
+
if (k.ResponseCode !== x.Success) {
|
971
|
+
n(17, m = k.ResponseCode), n(18, W = o.toLowerCase() === "false" || !o), Xe();
|
961
972
|
return;
|
962
973
|
}
|
963
|
-
n(
|
974
|
+
n(10, N = {
|
964
975
|
type: k.Transaction.Type,
|
965
976
|
referenceId: k.Transaction.Code,
|
966
977
|
status: k.Transaction.Status?.Status,
|
967
978
|
message: k.Transaction.Status?.Message,
|
968
979
|
amount: k.Transaction.Amounts[0]?.Amount,
|
969
980
|
currency: k.Transaction.Amounts[0]?.Currency
|
970
|
-
}), n(
|
981
|
+
}), n(11, F = k.ReceiptInfo && k.ReceiptInfo.ReceiptFields ? k.ReceiptInfo.ReceiptFields.map((O) => ({
|
971
982
|
type: C.get(O.Type),
|
972
983
|
name: O.Name,
|
973
984
|
description: O.Description,
|
974
985
|
defaultValue: O.DefaultValue,
|
975
986
|
useCopyButton: O.UseCopyButton,
|
976
987
|
usePrintButton: O.UsePrintButton
|
977
|
-
})) : []), n(
|
988
|
+
})) : []), n(13, j = t(Fe(N.status, N.type), {
|
978
989
|
values: {
|
979
990
|
amount: ze.format(Number(N.amount)),
|
980
991
|
currency: N.currency
|
981
992
|
}
|
982
|
-
})), n(
|
993
|
+
})), n(12, Y = t(Oe(N.status, N.type))), n(14, h = t(qe(N.status, N.type), { values: { errorText: N.message } })), X ? n(15, H = Ce(X, N.status)) : n(15, H = U[N.status]);
|
983
994
|
});
|
984
995
|
}, ne = (i) => {
|
985
996
|
i && window.postMessage(
|
@@ -994,7 +1005,7 @@ function an(A, e, n) {
|
|
994
1005
|
};
|
995
1006
|
function He(i) {
|
996
1007
|
te[i ? "unshift" : "push"](() => {
|
997
|
-
r[r.length] = i, n(
|
1008
|
+
r[r.length] = i, n(16, r);
|
998
1009
|
});
|
999
1010
|
}
|
1000
1011
|
const ye = (i) => {
|
@@ -1002,27 +1013,28 @@ function an(A, e, n) {
|
|
1002
1013
|
};
|
1003
1014
|
function Ne(i) {
|
1004
1015
|
te[i ? "unshift" : "push"](() => {
|
1005
|
-
g = i, n(
|
1016
|
+
g = i, n(7, g);
|
1006
1017
|
});
|
1007
1018
|
}
|
1008
1019
|
return A.$$set = (i) => {
|
1009
|
-
"endpoint" in i && n(
|
1020
|
+
"endpoint" in i && n(23, f = i.endpoint), "session" in i && n(24, l = i.session), "lang" in i && n(0, c = i.lang), "local" in i && n(25, u = i.local), "showerrors" in i && n(26, o = i.showerrors), "showclosebutton" in i && n(1, s = i.showclosebutton), "showcontactbutton" in i && n(2, J = i.showcontactbutton), "translationurl" in i && n(3, L = i.translationurl), "assetsurl" in i && n(4, X = i.assetsurl), "customerid" in i && n(27, P = i.customerid), "transactionid" in i && n(28, b = i.transactionid), "clientstyling" in i && n(5, Q = i.clientstyling), "clientstylingurl" in i && n(6, S = i.clientstylingurl);
|
1010
1021
|
}, A.$$.update = () => {
|
1011
1022
|
A.$$.dirty[0] & /*endpoint, session, customerid, transactionid, showerrors*/
|
1012
|
-
|
1013
|
-
|
1014
|
-
|
1015
|
-
|
1016
|
-
|
1023
|
+
494927872 && f && l && P && b && o && be(), A.$$.dirty[0] & /*lang*/
|
1024
|
+
1 && c && Te(), A.$$.dirty[0] & /*lang, translationurl*/
|
1025
|
+
9 && c && L && me(), A.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
1026
|
+
160 && Q && g && Pe(), A.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
1027
|
+
192 && S && g && pe();
|
1017
1028
|
}, [
|
1029
|
+
c,
|
1018
1030
|
s,
|
1019
1031
|
J,
|
1020
|
-
|
1032
|
+
L,
|
1021
1033
|
X,
|
1022
1034
|
Q,
|
1023
|
-
x,
|
1024
|
-
g,
|
1025
1035
|
S,
|
1036
|
+
g,
|
1037
|
+
x,
|
1026
1038
|
T,
|
1027
1039
|
N,
|
1028
1040
|
F,
|
@@ -1039,7 +1051,6 @@ function an(A, e, n) {
|
|
1039
1051
|
ne,
|
1040
1052
|
f,
|
1041
1053
|
l,
|
1042
|
-
c,
|
1043
1054
|
u,
|
1044
1055
|
o,
|
1045
1056
|
P,
|
@@ -1058,38 +1069,38 @@ class sn extends je {
|
|
1058
1069
|
cn,
|
1059
1070
|
ke,
|
1060
1071
|
{
|
1061
|
-
endpoint:
|
1062
|
-
session:
|
1063
|
-
lang:
|
1072
|
+
endpoint: 23,
|
1073
|
+
session: 24,
|
1074
|
+
lang: 0,
|
1064
1075
|
local: 25,
|
1065
1076
|
showerrors: 26,
|
1066
|
-
showclosebutton:
|
1067
|
-
showcontactbutton:
|
1068
|
-
translationurl:
|
1069
|
-
assetsurl:
|
1077
|
+
showclosebutton: 1,
|
1078
|
+
showcontactbutton: 2,
|
1079
|
+
translationurl: 3,
|
1080
|
+
assetsurl: 4,
|
1070
1081
|
customerid: 27,
|
1071
1082
|
transactionid: 28,
|
1072
|
-
clientstyling:
|
1073
|
-
clientstylingurl:
|
1083
|
+
clientstyling: 5,
|
1084
|
+
clientstylingurl: 6
|
1074
1085
|
},
|
1075
1086
|
We,
|
1076
1087
|
[-1, -1]
|
1077
1088
|
);
|
1078
1089
|
}
|
1079
1090
|
get endpoint() {
|
1080
|
-
return this.$$.ctx[
|
1091
|
+
return this.$$.ctx[23];
|
1081
1092
|
}
|
1082
1093
|
set endpoint(e) {
|
1083
1094
|
this.$$set({ endpoint: e }), E();
|
1084
1095
|
}
|
1085
1096
|
get session() {
|
1086
|
-
return this.$$.ctx[
|
1097
|
+
return this.$$.ctx[24];
|
1087
1098
|
}
|
1088
1099
|
set session(e) {
|
1089
1100
|
this.$$set({ session: e }), E();
|
1090
1101
|
}
|
1091
1102
|
get lang() {
|
1092
|
-
return this.$$.ctx[
|
1103
|
+
return this.$$.ctx[0];
|
1093
1104
|
}
|
1094
1105
|
set lang(e) {
|
1095
1106
|
this.$$set({ lang: e }), E();
|
@@ -1107,25 +1118,25 @@ class sn extends je {
|
|
1107
1118
|
this.$$set({ showerrors: e }), E();
|
1108
1119
|
}
|
1109
1120
|
get showclosebutton() {
|
1110
|
-
return this.$$.ctx[
|
1121
|
+
return this.$$.ctx[1];
|
1111
1122
|
}
|
1112
1123
|
set showclosebutton(e) {
|
1113
1124
|
this.$$set({ showclosebutton: e }), E();
|
1114
1125
|
}
|
1115
1126
|
get showcontactbutton() {
|
1116
|
-
return this.$$.ctx[
|
1127
|
+
return this.$$.ctx[2];
|
1117
1128
|
}
|
1118
1129
|
set showcontactbutton(e) {
|
1119
1130
|
this.$$set({ showcontactbutton: e }), E();
|
1120
1131
|
}
|
1121
1132
|
get translationurl() {
|
1122
|
-
return this.$$.ctx[
|
1133
|
+
return this.$$.ctx[3];
|
1123
1134
|
}
|
1124
1135
|
set translationurl(e) {
|
1125
1136
|
this.$$set({ translationurl: e }), E();
|
1126
1137
|
}
|
1127
1138
|
get assetsurl() {
|
1128
|
-
return this.$$.ctx[
|
1139
|
+
return this.$$.ctx[4];
|
1129
1140
|
}
|
1130
1141
|
set assetsurl(e) {
|
1131
1142
|
this.$$set({ assetsurl: e }), E();
|
@@ -1143,13 +1154,13 @@ class sn extends je {
|
|
1143
1154
|
this.$$set({ transactionid: e }), E();
|
1144
1155
|
}
|
1145
1156
|
get clientstyling() {
|
1146
|
-
return this.$$.ctx[
|
1157
|
+
return this.$$.ctx[5];
|
1147
1158
|
}
|
1148
1159
|
set clientstyling(e) {
|
1149
1160
|
this.$$set({ clientstyling: e }), E();
|
1150
1161
|
}
|
1151
1162
|
get clientstylingurl() {
|
1152
|
-
return this.$$.ctx[
|
1163
|
+
return this.$$.ctx[6];
|
1153
1164
|
}
|
1154
1165
|
set clientstylingurl(e) {
|
1155
1166
|
this.$$set({ clientstylingurl: e }), E();
|