@everymatrix/cashier-receipt-page 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-BVDqLHnG.js → CashierError--iQyDOCf.js} +74 -72
- package/components/{CashierError-Dqyj0GiB.js → CashierError-BGIOz80J.js} +4 -2
- package/components/CashierError-Bp_9Mivw.cjs +5 -0
- package/components/{CashierReceiptPage-C3BHhyjl.js → CashierReceiptPage-Cbol4ura.js} +152 -141
- package/components/{CashierReceiptPage-D-B2LEyf.cjs → CashierReceiptPage-CvoL0y2s.cjs} +1 -1
- package/components/{CashierReceiptPage-BZCJCoE4.js → CashierReceiptPage-DUcNit2N.js} +152 -141
- package/es2015/cashier-receipt-page.cjs +1 -1
- package/es2015/cashier-receipt-page.js +1 -1
- package/esnext/cashier-receipt-page.js +1 -1
- package/package.json +1 -1
- package/components/CashierError-D6dtsGDj.cjs +0 -5
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as ke, i as Ee, $ as Le, c as Ne, g as Me, b as Be, S as De, d as Ze, s as Se, f as W, e as Re, n as ae, h as y, j as S, k as N, l as k, m as
|
|
1
|
+
import { a as ke, i as Ee, $ as Le, c as Ne, g as Me, b as Be, S as De, d as Ze, s as Se, f as W, e as Re, n as ae, h as y, j as S, k as N, l as k, m as _, o as re, p as J, q as xe, r as Qe, t as ve, u as ee, v as le, w as te, x as V, y as me, z as Ue, A as Ge, B as Ce, C as Oe } from "./CashierError-BGIOz80J.js";
|
|
2
2
|
if (typeof window < "u") {
|
|
3
3
|
let f = function(e) {
|
|
4
4
|
return function(...t) {
|
|
@@ -11,7 +11,7 @@ if (typeof window < "u") {
|
|
|
11
11
|
}
|
|
12
12
|
};
|
|
13
13
|
};
|
|
14
|
-
customElements.define = f(customElements.define), import("./CashierError-
|
|
14
|
+
customElements.define = f(customElements.define), import("./CashierError-BGIOz80J.js").then((e) => e.D).then(({ default: e }) => {
|
|
15
15
|
!customElements.get("cashier-error") && customElements.define("cashier-error", e.element);
|
|
16
16
|
});
|
|
17
17
|
}
|
|
@@ -345,7 +345,7 @@ var je = { exports: {} };
|
|
|
345
345
|
return a === void 0;
|
|
346
346
|
} }, F = "en", j = {};
|
|
347
347
|
j[F] = q;
|
|
348
|
-
var I = "$isDayjsObject",
|
|
348
|
+
var I = "$isDayjsObject", $ = function(a) {
|
|
349
349
|
return a instanceof E || !(!a || !a[I]);
|
|
350
350
|
}, D = function a(u, c, d) {
|
|
351
351
|
var A;
|
|
@@ -363,12 +363,12 @@ var je = { exports: {} };
|
|
|
363
363
|
}
|
|
364
364
|
return !d && A && (F = A), A || !d && F;
|
|
365
365
|
}, X = function(a, u) {
|
|
366
|
-
if (
|
|
366
|
+
if ($(a))
|
|
367
367
|
return a.clone();
|
|
368
368
|
var c = typeof u == "object" ? u : {};
|
|
369
369
|
return c.date = a, c.args = arguments, new E(c);
|
|
370
370
|
}, z = K;
|
|
371
|
-
z.l = D, z.i =
|
|
371
|
+
z.l = D, z.i = $, z.w = function(a, u) {
|
|
372
372
|
return X(a, { locale: u.$L, utc: u.$u, x: u.$x, $offset: u.$offset });
|
|
373
373
|
};
|
|
374
374
|
var E = function() {
|
|
@@ -603,7 +603,7 @@ var je = { exports: {} };
|
|
|
603
603
|
};
|
|
604
604
|
}), X.extend = function(a, u) {
|
|
605
605
|
return a.$i || (a(u, E, X), a.$i = !0), X;
|
|
606
|
-
}, X.locale = D, X.isDayjs =
|
|
606
|
+
}, X.locale = D, X.isDayjs = $, X.unix = function(a) {
|
|
607
607
|
return X(1e3 * a);
|
|
608
608
|
}, X.en = j[F], X.Ls = j, X.p = {}, X;
|
|
609
609
|
});
|
|
@@ -649,8 +649,8 @@ var we = { exports: {} };
|
|
|
649
649
|
var j = F.match(n);
|
|
650
650
|
if (!j)
|
|
651
651
|
return null;
|
|
652
|
-
var I = ("" + j[0]).match(i) || ["-", 0, 0],
|
|
653
|
-
return D === 0 ? 0 :
|
|
652
|
+
var I = ("" + j[0]).match(i) || ["-", 0, 0], $ = I[0], D = 60 * +I[1] + +I[2];
|
|
653
|
+
return D === 0 ? 0 : $ === "+" ? D : -D;
|
|
654
654
|
}(v), v === null))
|
|
655
655
|
return this;
|
|
656
656
|
var q = Math.abs(v) <= 16 ? 60 * v : v, h = this;
|
|
@@ -703,36 +703,41 @@ function ge(f, e, t) {
|
|
|
703
703
|
function it(f) {
|
|
704
704
|
let e, t = (
|
|
705
705
|
/*errorResponseCode*/
|
|
706
|
-
f[
|
|
707
|
-
f[
|
|
706
|
+
f[17] === /*ResponseCode*/
|
|
707
|
+
f[8].Maintenance && he(f)
|
|
708
708
|
);
|
|
709
709
|
return {
|
|
710
710
|
c() {
|
|
711
|
-
e = k("cashier-error"), t && t.c(),
|
|
711
|
+
e = k("cashier-error"), t && t.c(), V(
|
|
712
712
|
e,
|
|
713
713
|
"assetsurl",
|
|
714
714
|
/*assetsurl*/
|
|
715
|
-
f[
|
|
716
|
-
),
|
|
715
|
+
f[4]
|
|
716
|
+
), V(
|
|
717
717
|
e,
|
|
718
718
|
"translationurl",
|
|
719
719
|
/*translationurl*/
|
|
720
|
-
f[
|
|
721
|
-
),
|
|
720
|
+
f[3]
|
|
721
|
+
), V(
|
|
722
722
|
e,
|
|
723
723
|
"clientstylingurl",
|
|
724
724
|
/*clientstylingurl*/
|
|
725
|
-
f[
|
|
726
|
-
),
|
|
725
|
+
f[6]
|
|
726
|
+
), V(
|
|
727
727
|
e,
|
|
728
728
|
"clientstyling",
|
|
729
729
|
/*clientstyling*/
|
|
730
|
-
f[
|
|
731
|
-
),
|
|
730
|
+
f[5]
|
|
731
|
+
), V(
|
|
732
|
+
e,
|
|
733
|
+
"lang",
|
|
734
|
+
/*lang*/
|
|
735
|
+
f[0]
|
|
736
|
+
), V(e, "hidebuttons", "true"), V(
|
|
732
737
|
e,
|
|
733
738
|
"errorcode",
|
|
734
739
|
/*errorResponseCode*/
|
|
735
|
-
f[
|
|
740
|
+
f[17]
|
|
736
741
|
);
|
|
737
742
|
},
|
|
738
743
|
m(n, i) {
|
|
@@ -740,37 +745,43 @@ function it(f) {
|
|
|
740
745
|
},
|
|
741
746
|
p(n, i) {
|
|
742
747
|
/*errorResponseCode*/
|
|
743
|
-
n[
|
|
744
|
-
n[
|
|
745
|
-
|
|
748
|
+
n[17] === /*ResponseCode*/
|
|
749
|
+
n[8].Maintenance ? t ? t.p(n, i) : (t = he(n), t.c(), t.m(e, null)) : t && (t.d(1), t = null), i[0] & /*assetsurl*/
|
|
750
|
+
16 && V(
|
|
746
751
|
e,
|
|
747
752
|
"assetsurl",
|
|
748
753
|
/*assetsurl*/
|
|
749
|
-
n[
|
|
754
|
+
n[4]
|
|
750
755
|
), i[0] & /*translationurl*/
|
|
751
|
-
|
|
756
|
+
8 && V(
|
|
752
757
|
e,
|
|
753
758
|
"translationurl",
|
|
754
759
|
/*translationurl*/
|
|
755
|
-
n[
|
|
760
|
+
n[3]
|
|
756
761
|
), i[0] & /*clientstylingurl*/
|
|
757
|
-
|
|
762
|
+
64 && V(
|
|
758
763
|
e,
|
|
759
764
|
"clientstylingurl",
|
|
760
765
|
/*clientstylingurl*/
|
|
761
|
-
n[
|
|
766
|
+
n[6]
|
|
762
767
|
), i[0] & /*clientstyling*/
|
|
763
|
-
|
|
768
|
+
32 && V(
|
|
764
769
|
e,
|
|
765
770
|
"clientstyling",
|
|
766
771
|
/*clientstyling*/
|
|
767
|
-
n[
|
|
772
|
+
n[5]
|
|
773
|
+
), i[0] & /*lang*/
|
|
774
|
+
1 && V(
|
|
775
|
+
e,
|
|
776
|
+
"lang",
|
|
777
|
+
/*lang*/
|
|
778
|
+
n[0]
|
|
768
779
|
), i[0] & /*errorResponseCode*/
|
|
769
|
-
|
|
780
|
+
131072 && V(
|
|
770
781
|
e,
|
|
771
782
|
"errorcode",
|
|
772
783
|
/*errorResponseCode*/
|
|
773
|
-
n[
|
|
784
|
+
n[17]
|
|
774
785
|
);
|
|
775
786
|
},
|
|
776
787
|
d(n) {
|
|
@@ -781,105 +792,105 @@ function it(f) {
|
|
|
781
792
|
function ft(f) {
|
|
782
793
|
let e, t, n, i, s, o, m, l, T, M, B, Z, b, H, v, x, O, q, h, K, F = (
|
|
783
794
|
/*$_*/
|
|
784
|
-
f[
|
|
785
|
-
), j, I,
|
|
795
|
+
f[19]("close") + ""
|
|
796
|
+
), j, I, $, D = (
|
|
786
797
|
/*showcontactbutton*/
|
|
787
|
-
f[
|
|
788
|
-
f[
|
|
798
|
+
f[2] && /*showcontactbutton*/
|
|
799
|
+
f[2] !== "false" && Je(f)
|
|
789
800
|
), X = (
|
|
790
801
|
/*showclosebutton*/
|
|
791
|
-
f[
|
|
792
|
-
f[
|
|
802
|
+
f[1] && /*showclosebutton*/
|
|
803
|
+
f[1] !== "false" && Xe(f)
|
|
793
804
|
), z = (
|
|
794
805
|
/*txnInfo*/
|
|
795
|
-
f[
|
|
806
|
+
f[10].referenceId && be(f)
|
|
796
807
|
), E = (
|
|
797
808
|
/*receiptFields*/
|
|
798
|
-
f[
|
|
809
|
+
f[11].length && ye(f)
|
|
799
810
|
);
|
|
800
811
|
return {
|
|
801
812
|
c() {
|
|
802
|
-
e = k("div"), D && D.c(), t =
|
|
813
|
+
e = k("div"), D && D.c(), t = _(), X && X.c(), n = _(), i = k("div"), s = k("img"), m = _(), l = k("div"), T = k("h2"), M = te(
|
|
803
814
|
/*title*/
|
|
804
|
-
f[
|
|
805
|
-
), B =
|
|
815
|
+
f[13]
|
|
816
|
+
), B = _(), Z = k("div"), b = te(
|
|
806
817
|
/*subTitle*/
|
|
807
|
-
f[
|
|
808
|
-
), H =
|
|
818
|
+
f[12]
|
|
819
|
+
), H = _(), v = k("div"), x = te(
|
|
809
820
|
/*text*/
|
|
810
|
-
f[
|
|
811
|
-
), O =
|
|
812
|
-
f[
|
|
821
|
+
f[14]
|
|
822
|
+
), O = _(), z && z.c(), q = _(), E && E.c(), h = _(), K = k("button"), j = te(F), J(e, "class", "HeaderButtonContainer"), re(s.src, o = /*statusImageUrl*/
|
|
823
|
+
f[15]) || J(s, "src", o), J(s, "class", "StatusLogo"), J(T, "class", "Title"), J(Z, "class", "SubTitle"), J(l, "class", "TitleWrapper"), J(i, "class", "ReceiptWrapper"), J(v, "class", "Text"), J(K, "class", "PrimaryButton");
|
|
813
824
|
},
|
|
814
825
|
m(p, a) {
|
|
815
|
-
N(p, e, a), D && D.m(e, null), S(e, t), X && X.m(e, null), N(p, n, a), N(p, i, a), S(i, s), S(i, m), S(i, l), S(l, T), S(T, M), S(l, B), S(l, Z), S(Z, b), N(p, H, a), N(p, v, a), S(v, x), N(p, O, a), z && z.m(p, a), N(p, q, a), E && E.m(p, a), N(p, h, a), N(p, K, a), S(K, j), I || (
|
|
826
|
+
N(p, e, a), D && D.m(e, null), S(e, t), X && X.m(e, null), N(p, n, a), N(p, i, a), S(i, s), S(i, m), S(i, l), S(l, T), S(T, M), S(l, B), S(l, Z), S(Z, b), N(p, H, a), N(p, v, a), S(v, x), N(p, O, a), z && z.m(p, a), N(p, q, a), E && E.m(p, a), N(p, h, a), N(p, K, a), S(K, j), I || ($ = le(
|
|
816
827
|
K,
|
|
817
828
|
"click",
|
|
818
829
|
/*closeReceipt*/
|
|
819
|
-
f[
|
|
830
|
+
f[20]
|
|
820
831
|
), I = !0);
|
|
821
832
|
},
|
|
822
833
|
p(p, a) {
|
|
823
834
|
/*showcontactbutton*/
|
|
824
|
-
p[
|
|
825
|
-
p[
|
|
826
|
-
p[
|
|
827
|
-
p[
|
|
828
|
-
|
|
829
|
-
p[
|
|
830
|
-
|
|
835
|
+
p[2] && /*showcontactbutton*/
|
|
836
|
+
p[2] !== "false" ? D ? D.p(p, a) : (D = Je(p), D.c(), D.m(e, t)) : D && (D.d(1), D = null), /*showclosebutton*/
|
|
837
|
+
p[1] && /*showclosebutton*/
|
|
838
|
+
p[1] !== "false" ? X ? X.p(p, a) : (X = Xe(p), X.c(), X.m(e, null)) : X && (X.d(1), X = null), a[0] & /*statusImageUrl*/
|
|
839
|
+
32768 && !re(s.src, o = /*statusImageUrl*/
|
|
840
|
+
p[15]) && J(s, "src", o), a[0] & /*title*/
|
|
841
|
+
8192 && ee(
|
|
831
842
|
M,
|
|
832
843
|
/*title*/
|
|
833
|
-
p[
|
|
844
|
+
p[13]
|
|
834
845
|
), a[0] & /*subTitle*/
|
|
835
|
-
|
|
846
|
+
4096 && ee(
|
|
836
847
|
b,
|
|
837
848
|
/*subTitle*/
|
|
838
|
-
p[
|
|
849
|
+
p[12]
|
|
839
850
|
), a[0] & /*text*/
|
|
840
|
-
|
|
851
|
+
16384 && ee(
|
|
841
852
|
x,
|
|
842
853
|
/*text*/
|
|
843
|
-
p[
|
|
854
|
+
p[14]
|
|
844
855
|
), /*txnInfo*/
|
|
845
|
-
p[
|
|
846
|
-
p[
|
|
847
|
-
|
|
848
|
-
p[
|
|
856
|
+
p[10].referenceId ? z ? z.p(p, a) : (z = be(p), z.c(), z.m(q.parentNode, q)) : z && (z.d(1), z = null), /*receiptFields*/
|
|
857
|
+
p[11].length ? E ? E.p(p, a) : (E = ye(p), E.c(), E.m(h.parentNode, h)) : E && (E.d(1), E = null), a[0] & /*$_*/
|
|
858
|
+
524288 && F !== (F = /*$_*/
|
|
859
|
+
p[19]("close") + "") && ee(j, F);
|
|
849
860
|
},
|
|
850
861
|
d(p) {
|
|
851
|
-
p && (y(e), y(n), y(i), y(H), y(v), y(O), y(q), y(h), y(K)), D && D.d(), X && X.d(), z && z.d(p), E && E.d(p), I = !1,
|
|
862
|
+
p && (y(e), y(n), y(i), y(H), y(v), y(O), y(q), y(h), y(K)), D && D.d(), X && X.d(), z && z.d(p), E && E.d(p), I = !1, $();
|
|
852
863
|
}
|
|
853
864
|
};
|
|
854
865
|
}
|
|
855
866
|
function he(f) {
|
|
856
867
|
let e, t, n, i = (
|
|
857
868
|
/*$_*/
|
|
858
|
-
f[
|
|
869
|
+
f[19]("receipt.maintenance.title") + ""
|
|
859
870
|
), s, o, m, l = (
|
|
860
871
|
/*$_*/
|
|
861
|
-
f[
|
|
872
|
+
f[19]("receipt.maintenance.text") + ""
|
|
862
873
|
), T;
|
|
863
874
|
function M(b, H) {
|
|
864
875
|
return (
|
|
865
876
|
/*assetsurl*/
|
|
866
|
-
b[
|
|
877
|
+
b[4] ? st : rt
|
|
867
878
|
);
|
|
868
879
|
}
|
|
869
880
|
let B = M(f), Z = B(f);
|
|
870
881
|
return {
|
|
871
882
|
c() {
|
|
872
|
-
e = k("div"), Z.c(), t =
|
|
883
|
+
e = k("div"), Z.c(), t = _(), n = k("span"), s = te(i), o = _(), m = k("span"), T = te(l), J(e, "slot", "icon"), J(n, "slot", "title"), J(n, "class", "CashierErrorTitle"), J(m, "slot", "text"), J(m, "class", "CashierErrorText");
|
|
873
884
|
},
|
|
874
885
|
m(b, H) {
|
|
875
886
|
N(b, e, H), Z.m(e, null), N(b, t, H), N(b, n, H), S(n, s), N(b, o, H), N(b, m, H), S(m, T);
|
|
876
887
|
},
|
|
877
888
|
p(b, H) {
|
|
878
889
|
B === (B = M(b)) && Z ? Z.p(b, H) : (Z.d(1), Z = B(b), Z && (Z.c(), Z.m(e, null))), H[0] & /*$_*/
|
|
879
|
-
|
|
880
|
-
b[
|
|
881
|
-
|
|
882
|
-
b[
|
|
890
|
+
524288 && i !== (i = /*$_*/
|
|
891
|
+
b[19]("receipt.maintenance.title") + "") && ee(s, i), H[0] & /*$_*/
|
|
892
|
+
524288 && l !== (l = /*$_*/
|
|
893
|
+
b[19]("receipt.maintenance.text") + "") && ee(T, l);
|
|
883
894
|
},
|
|
884
895
|
d(b) {
|
|
885
896
|
b && (y(e), y(t), y(n), y(o), y(m)), Z.d();
|
|
@@ -906,15 +917,15 @@ function st(f) {
|
|
|
906
917
|
return {
|
|
907
918
|
c() {
|
|
908
919
|
e = k("img"), re(e.src, t = `${/*assetsurl*/
|
|
909
|
-
f[
|
|
920
|
+
f[4]}/maintenance.png`) || J(e, "src", t), J(e, "width", "300px"), J(e, "alt", "error");
|
|
910
921
|
},
|
|
911
922
|
m(n, i) {
|
|
912
923
|
N(n, e, i);
|
|
913
924
|
},
|
|
914
925
|
p(n, i) {
|
|
915
926
|
i[0] & /*assetsurl*/
|
|
916
|
-
|
|
917
|
-
n[
|
|
927
|
+
16 && !re(e.src, t = `${/*assetsurl*/
|
|
928
|
+
n[4]}/maintenance.png`) && J(e, "src", t);
|
|
918
929
|
},
|
|
919
930
|
d(n) {
|
|
920
931
|
n && y(e);
|
|
@@ -932,7 +943,7 @@ function Je(f) {
|
|
|
932
943
|
e,
|
|
933
944
|
"click",
|
|
934
945
|
/*liveChat*/
|
|
935
|
-
f[
|
|
946
|
+
f[21]
|
|
936
947
|
), t = !0);
|
|
937
948
|
},
|
|
938
949
|
p: ae,
|
|
@@ -952,7 +963,7 @@ function Xe(f) {
|
|
|
952
963
|
e,
|
|
953
964
|
"click",
|
|
954
965
|
/*closeReceipt*/
|
|
955
|
-
f[
|
|
966
|
+
f[20]
|
|
956
967
|
), t = !0);
|
|
957
968
|
},
|
|
958
969
|
p: ae,
|
|
@@ -964,10 +975,10 @@ function Xe(f) {
|
|
|
964
975
|
function be(f) {
|
|
965
976
|
let e, t = (
|
|
966
977
|
/*$_*/
|
|
967
|
-
f[
|
|
978
|
+
f[19]("reference", {
|
|
968
979
|
values: { code: (
|
|
969
980
|
/*txnInfo*/
|
|
970
|
-
f[
|
|
981
|
+
f[10].referenceId
|
|
971
982
|
) }
|
|
972
983
|
}) + ""
|
|
973
984
|
), n;
|
|
@@ -980,11 +991,11 @@ function be(f) {
|
|
|
980
991
|
},
|
|
981
992
|
p(i, s) {
|
|
982
993
|
s[0] & /*$_, txnInfo*/
|
|
983
|
-
|
|
984
|
-
i[
|
|
994
|
+
525312 && t !== (t = /*$_*/
|
|
995
|
+
i[19]("reference", {
|
|
985
996
|
values: { code: (
|
|
986
997
|
/*txnInfo*/
|
|
987
|
-
i[
|
|
998
|
+
i[10].referenceId
|
|
988
999
|
) }
|
|
989
1000
|
}) + "") && ee(n, t);
|
|
990
1001
|
},
|
|
@@ -996,7 +1007,7 @@ function be(f) {
|
|
|
996
1007
|
function ye(f) {
|
|
997
1008
|
let e, t = me(
|
|
998
1009
|
/*receiptFields*/
|
|
999
|
-
f[
|
|
1010
|
+
f[11]
|
|
1000
1011
|
), n = [];
|
|
1001
1012
|
for (let i = 0; i < t.length; i += 1)
|
|
1002
1013
|
n[i] = He(ge(f, t, i));
|
|
@@ -1013,10 +1024,10 @@ function ye(f) {
|
|
|
1013
1024
|
},
|
|
1014
1025
|
p(i, s) {
|
|
1015
1026
|
if (s[0] & /*openUrlInNewTab, receiptFields, qrCodeContainer, FieldTypes*/
|
|
1016
|
-
|
|
1027
|
+
4262400) {
|
|
1017
1028
|
t = me(
|
|
1018
1029
|
/*receiptFields*/
|
|
1019
|
-
i[
|
|
1030
|
+
i[11]
|
|
1020
1031
|
);
|
|
1021
1032
|
let o;
|
|
1022
1033
|
for (o = 0; o < t.length; o += 1) {
|
|
@@ -1047,7 +1058,7 @@ function ct(f) {
|
|
|
1047
1058
|
},
|
|
1048
1059
|
p(i, s) {
|
|
1049
1060
|
s[0] & /*receiptFields*/
|
|
1050
|
-
|
|
1061
|
+
2048 && t !== (t = /*field*/
|
|
1051
1062
|
i[46].defaultValue + "") && ee(n, t);
|
|
1052
1063
|
},
|
|
1053
1064
|
d(i) {
|
|
@@ -1065,7 +1076,7 @@ function ot(f) {
|
|
|
1065
1076
|
), m, l;
|
|
1066
1077
|
return {
|
|
1067
1078
|
c() {
|
|
1068
|
-
e = k("span"), n = te(t), i =
|
|
1079
|
+
e = k("span"), n = te(t), i = _(), s = k("a"), m = te(o), J(s, "href", l = /*field*/
|
|
1069
1080
|
f[46].defaultValue), J(s, "target", "_blank"), J(s, "rel", "noopener noreferrer");
|
|
1070
1081
|
},
|
|
1071
1082
|
m(T, M) {
|
|
@@ -1073,11 +1084,11 @@ function ot(f) {
|
|
|
1073
1084
|
},
|
|
1074
1085
|
p(T, M) {
|
|
1075
1086
|
M[0] & /*receiptFields*/
|
|
1076
|
-
|
|
1087
|
+
2048 && t !== (t = /*field*/
|
|
1077
1088
|
T[46].description + "") && ee(n, t), M[0] & /*receiptFields*/
|
|
1078
|
-
|
|
1089
|
+
2048 && o !== (o = /*field*/
|
|
1079
1090
|
T[46].Name + "") && ee(m, o), M[0] & /*receiptFields*/
|
|
1080
|
-
|
|
1091
|
+
2048 && l !== (l = /*field*/
|
|
1081
1092
|
T[46].defaultValue) && J(s, "href", l);
|
|
1082
1093
|
},
|
|
1083
1094
|
d(T) {
|
|
@@ -1098,9 +1109,9 @@ function at(f) {
|
|
|
1098
1109
|
},
|
|
1099
1110
|
p(i, s) {
|
|
1100
1111
|
s[0] & /*receiptFields*/
|
|
1101
|
-
|
|
1112
|
+
2048 && !re(e.src, t = /*field*/
|
|
1102
1113
|
i[46].defaultValue) && J(e, "src", t), s[0] & /*receiptFields*/
|
|
1103
|
-
|
|
1114
|
+
2048 && n !== (n = /*field*/
|
|
1104
1115
|
i[46].description) && J(e, "title", n);
|
|
1105
1116
|
},
|
|
1106
1117
|
d(i) {
|
|
@@ -1122,7 +1133,7 @@ function lt(f) {
|
|
|
1122
1133
|
},
|
|
1123
1134
|
p(n, i) {
|
|
1124
1135
|
i[0] & /*receiptFields*/
|
|
1125
|
-
|
|
1136
|
+
2048 && t !== (t = /*field*/
|
|
1126
1137
|
n[46].defaultValue + "") && (e.innerHTML = t);
|
|
1127
1138
|
},
|
|
1128
1139
|
d(n) {
|
|
@@ -1153,7 +1164,7 @@ function At(f) {
|
|
|
1153
1164
|
},
|
|
1154
1165
|
p(l, T) {
|
|
1155
1166
|
f = l, T[0] & /*receiptFields*/
|
|
1156
|
-
|
|
1167
|
+
2048 && n !== (n = /*field*/
|
|
1157
1168
|
f[46].defaultValue + "") && ee(i, n);
|
|
1158
1169
|
},
|
|
1159
1170
|
d(l) {
|
|
@@ -1167,16 +1178,16 @@ function He(f) {
|
|
|
1167
1178
|
return (
|
|
1168
1179
|
/*field*/
|
|
1169
1180
|
o[46].type === /*FieldTypes*/
|
|
1170
|
-
o[
|
|
1181
|
+
o[9].QRCode ? At : (
|
|
1171
1182
|
/*field*/
|
|
1172
1183
|
o[46].type === /*FieldTypes*/
|
|
1173
|
-
o[
|
|
1184
|
+
o[9].Html ? lt : (
|
|
1174
1185
|
/*field*/
|
|
1175
1186
|
o[46].type === /*FieldTypes*/
|
|
1176
|
-
o[
|
|
1187
|
+
o[9].Image ? at : (
|
|
1177
1188
|
/*field*/
|
|
1178
1189
|
o[46].type === /*FieldTypes*/
|
|
1179
|
-
o[
|
|
1190
|
+
o[9].Link ? ot : ct
|
|
1180
1191
|
)
|
|
1181
1192
|
)
|
|
1182
1193
|
)
|
|
@@ -1185,7 +1196,7 @@ function He(f) {
|
|
|
1185
1196
|
let i = n(f), s = i(f);
|
|
1186
1197
|
return {
|
|
1187
1198
|
c() {
|
|
1188
|
-
e = k("div"), s.c(), t =
|
|
1199
|
+
e = k("div"), s.c(), t = _(), J(e, "class", "ReceiptField");
|
|
1189
1200
|
},
|
|
1190
1201
|
m(o, m) {
|
|
1191
1202
|
N(o, e, m), s.m(e, null), S(e, t);
|
|
@@ -1203,20 +1214,20 @@ function ut(f) {
|
|
|
1203
1214
|
function o(T, M) {
|
|
1204
1215
|
if (
|
|
1205
1216
|
/*txnInfo*/
|
|
1206
|
-
T[
|
|
1217
|
+
T[10]
|
|
1207
1218
|
)
|
|
1208
1219
|
return ft;
|
|
1209
1220
|
if (
|
|
1210
1221
|
/*errorResponseCode*/
|
|
1211
|
-
T[
|
|
1212
|
-
T[
|
|
1222
|
+
T[17] && !/*showErrorOutsideReceiptPage*/
|
|
1223
|
+
T[18]
|
|
1213
1224
|
)
|
|
1214
1225
|
return it;
|
|
1215
1226
|
}
|
|
1216
1227
|
let m = o(f), l = m && m(f);
|
|
1217
1228
|
return {
|
|
1218
1229
|
c() {
|
|
1219
|
-
e = k("script"), n =
|
|
1230
|
+
e = k("script"), n = _(), i = k("div"), s = k("div"), l && l.c(), re(e.src, t = dt) || J(e, "src", t), J(s, "class", "CashierReceiptPage"), J(i, "class", "CashierReceiptPageWidget");
|
|
1220
1231
|
},
|
|
1221
1232
|
m(T, M) {
|
|
1222
1233
|
S(tt.head, e), N(T, n, M), N(T, i, M), S(i, s), l && l.m(s, null), f[31](i);
|
|
@@ -1234,7 +1245,7 @@ function ut(f) {
|
|
|
1234
1245
|
let dt = "https://cdn.rawgit.com/davidshimjs/qrcodejs/gh-pages/qrcode.min.js", vt = "_blank";
|
|
1235
1246
|
function mt(f, e, t) {
|
|
1236
1247
|
let n;
|
|
1237
|
-
xe(f, Oe, (r) => t(
|
|
1248
|
+
xe(f, Oe, (r) => t(19, n = r)), Pe.extend(et);
|
|
1238
1249
|
let { endpoint: i } = e, { session: s } = e, { lang: o = "en" } = e, { local: m = "en-US" } = e, { showerrors: l = "true" } = e, { showclosebutton: T = "false" } = e, { showcontactbutton: M = "false" } = e, { translationurl: B } = e, { assetsurl: Z = "" } = e, { customerid: b } = e, { transactionid: H } = e, { clientstyling: v = "" } = e, { clientstylingurl: x = "" } = e;
|
|
1239
1250
|
var O;
|
|
1240
1251
|
(function(r) {
|
|
@@ -1280,7 +1291,7 @@ function mt(f, e, t) {
|
|
|
1280
1291
|
[["Html", 19], h.Html],
|
|
1281
1292
|
[["QR", 20], h.QRCode]
|
|
1282
1293
|
].reduce(K, []));
|
|
1283
|
-
let j, I = [],
|
|
1294
|
+
let j, I = [], $, D, X, z, E, p = [], a, u, c = new Intl.NumberFormat(m, { minimumFractionDigits: 2 });
|
|
1284
1295
|
const d = () => {
|
|
1285
1296
|
Fe(o);
|
|
1286
1297
|
};
|
|
@@ -1346,29 +1357,29 @@ function mt(f, e, t) {
|
|
|
1346
1357
|
};
|
|
1347
1358
|
fetch(r, C).then((U) => U.json()).then((U) => {
|
|
1348
1359
|
if (U.ResponseCode !== O.Success) {
|
|
1349
|
-
t(
|
|
1360
|
+
t(17, a = U.ResponseCode), t(18, u = l.toLowerCase() === "false" || !l), G();
|
|
1350
1361
|
return;
|
|
1351
1362
|
}
|
|
1352
|
-
t(
|
|
1363
|
+
t(10, j = {
|
|
1353
1364
|
type: U.Transaction.Type,
|
|
1354
1365
|
referenceId: U.Transaction.Code,
|
|
1355
1366
|
status: U.Transaction.Status?.Status,
|
|
1356
1367
|
message: U.Transaction.Status?.Message,
|
|
1357
1368
|
amount: U.Transaction.Amounts[0]?.Amount,
|
|
1358
1369
|
currency: U.Transaction.Amounts[0]?.Currency
|
|
1359
|
-
}), t(
|
|
1370
|
+
}), t(11, I = U.ReceiptInfo && U.ReceiptInfo.ReceiptFields ? U.ReceiptInfo.ReceiptFields.map((ce) => ({
|
|
1360
1371
|
type: F.get(ce.Type),
|
|
1361
1372
|
name: ce.Name,
|
|
1362
1373
|
description: ce.Description,
|
|
1363
1374
|
defaultValue: ce.DefaultValue,
|
|
1364
1375
|
useCopyButton: ce.UseCopyButton,
|
|
1365
1376
|
usePrintButton: ce.UsePrintButton
|
|
1366
|
-
})) : []), t(
|
|
1377
|
+
})) : []), t(13, D = n(Ye(j.status, j.type), {
|
|
1367
1378
|
values: {
|
|
1368
1379
|
amount: c.format(Number(j.amount)),
|
|
1369
1380
|
currency: j.currency
|
|
1370
1381
|
}
|
|
1371
|
-
})), t(
|
|
1382
|
+
})), t(12, $ = n(Ke(j.status, j.type))), t(14, X = n(Ie(j.status, j.type), { values: { errorText: j.message } })), Z ? t(15, z = qe(Z, j.status)) : t(15, z = q[j.status]);
|
|
1372
1383
|
});
|
|
1373
1384
|
}, ne = (r) => {
|
|
1374
1385
|
r && window.postMessage(
|
|
@@ -1383,7 +1394,7 @@ function mt(f, e, t) {
|
|
|
1383
1394
|
};
|
|
1384
1395
|
function ie(r) {
|
|
1385
1396
|
ve[r ? "unshift" : "push"](() => {
|
|
1386
|
-
p[p.length] = r, t(
|
|
1397
|
+
p[p.length] = r, t(16, p);
|
|
1387
1398
|
});
|
|
1388
1399
|
}
|
|
1389
1400
|
const se = (r) => {
|
|
@@ -1391,19 +1402,20 @@ function mt(f, e, t) {
|
|
|
1391
1402
|
};
|
|
1392
1403
|
function fe(r) {
|
|
1393
1404
|
ve[r ? "unshift" : "push"](() => {
|
|
1394
|
-
E = r, t(
|
|
1405
|
+
E = r, t(7, E);
|
|
1395
1406
|
});
|
|
1396
1407
|
}
|
|
1397
1408
|
return f.$$set = (r) => {
|
|
1398
|
-
"endpoint" in r && t(
|
|
1409
|
+
"endpoint" in r && t(23, i = r.endpoint), "session" in r && t(24, s = r.session), "lang" in r && t(0, o = r.lang), "local" in r && t(25, m = r.local), "showerrors" in r && t(26, l = r.showerrors), "showclosebutton" in r && t(1, T = r.showclosebutton), "showcontactbutton" in r && t(2, M = r.showcontactbutton), "translationurl" in r && t(3, B = r.translationurl), "assetsurl" in r && t(4, Z = r.assetsurl), "customerid" in r && t(27, b = r.customerid), "transactionid" in r && t(28, H = r.transactionid), "clientstyling" in r && t(5, v = r.clientstyling), "clientstylingurl" in r && t(6, x = r.clientstylingurl);
|
|
1399
1410
|
}, f.$$.update = () => {
|
|
1400
1411
|
f.$$.dirty[0] & /*endpoint, session, customerid, transactionid, showerrors*/
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1412
|
+
494927872 && i && s && b && H && l && Y(), f.$$.dirty[0] & /*lang*/
|
|
1413
|
+
1 && o && d(), f.$$.dirty[0] & /*lang, translationurl*/
|
|
1414
|
+
9 && o && B && P(), f.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
1415
|
+
160 && v && E && g(), f.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
1416
|
+
192 && x && E && w();
|
|
1406
1417
|
}, [
|
|
1418
|
+
o,
|
|
1407
1419
|
T,
|
|
1408
1420
|
M,
|
|
1409
1421
|
B,
|
|
@@ -1415,7 +1427,7 @@ function mt(f, e, t) {
|
|
|
1415
1427
|
h,
|
|
1416
1428
|
j,
|
|
1417
1429
|
I,
|
|
1418
|
-
|
|
1430
|
+
$,
|
|
1419
1431
|
D,
|
|
1420
1432
|
X,
|
|
1421
1433
|
z,
|
|
@@ -1428,7 +1440,6 @@ function mt(f, e, t) {
|
|
|
1428
1440
|
ne,
|
|
1429
1441
|
i,
|
|
1430
1442
|
s,
|
|
1431
|
-
o,
|
|
1432
1443
|
m,
|
|
1433
1444
|
l,
|
|
1434
1445
|
b,
|
|
@@ -1447,38 +1458,38 @@ class Tt extends De {
|
|
|
1447
1458
|
ut,
|
|
1448
1459
|
Se,
|
|
1449
1460
|
{
|
|
1450
|
-
endpoint:
|
|
1451
|
-
session:
|
|
1452
|
-
lang:
|
|
1461
|
+
endpoint: 23,
|
|
1462
|
+
session: 24,
|
|
1463
|
+
lang: 0,
|
|
1453
1464
|
local: 25,
|
|
1454
1465
|
showerrors: 26,
|
|
1455
|
-
showclosebutton:
|
|
1456
|
-
showcontactbutton:
|
|
1457
|
-
translationurl:
|
|
1458
|
-
assetsurl:
|
|
1466
|
+
showclosebutton: 1,
|
|
1467
|
+
showcontactbutton: 2,
|
|
1468
|
+
translationurl: 3,
|
|
1469
|
+
assetsurl: 4,
|
|
1459
1470
|
customerid: 27,
|
|
1460
1471
|
transactionid: 28,
|
|
1461
|
-
clientstyling:
|
|
1462
|
-
clientstylingurl:
|
|
1472
|
+
clientstyling: 5,
|
|
1473
|
+
clientstylingurl: 6
|
|
1463
1474
|
},
|
|
1464
1475
|
nt,
|
|
1465
1476
|
[-1, -1]
|
|
1466
1477
|
);
|
|
1467
1478
|
}
|
|
1468
1479
|
get endpoint() {
|
|
1469
|
-
return this.$$.ctx[
|
|
1480
|
+
return this.$$.ctx[23];
|
|
1470
1481
|
}
|
|
1471
1482
|
set endpoint(e) {
|
|
1472
1483
|
this.$$set({ endpoint: e }), W();
|
|
1473
1484
|
}
|
|
1474
1485
|
get session() {
|
|
1475
|
-
return this.$$.ctx[
|
|
1486
|
+
return this.$$.ctx[24];
|
|
1476
1487
|
}
|
|
1477
1488
|
set session(e) {
|
|
1478
1489
|
this.$$set({ session: e }), W();
|
|
1479
1490
|
}
|
|
1480
1491
|
get lang() {
|
|
1481
|
-
return this.$$.ctx[
|
|
1492
|
+
return this.$$.ctx[0];
|
|
1482
1493
|
}
|
|
1483
1494
|
set lang(e) {
|
|
1484
1495
|
this.$$set({ lang: e }), W();
|
|
@@ -1496,25 +1507,25 @@ class Tt extends De {
|
|
|
1496
1507
|
this.$$set({ showerrors: e }), W();
|
|
1497
1508
|
}
|
|
1498
1509
|
get showclosebutton() {
|
|
1499
|
-
return this.$$.ctx[
|
|
1510
|
+
return this.$$.ctx[1];
|
|
1500
1511
|
}
|
|
1501
1512
|
set showclosebutton(e) {
|
|
1502
1513
|
this.$$set({ showclosebutton: e }), W();
|
|
1503
1514
|
}
|
|
1504
1515
|
get showcontactbutton() {
|
|
1505
|
-
return this.$$.ctx[
|
|
1516
|
+
return this.$$.ctx[2];
|
|
1506
1517
|
}
|
|
1507
1518
|
set showcontactbutton(e) {
|
|
1508
1519
|
this.$$set({ showcontactbutton: e }), W();
|
|
1509
1520
|
}
|
|
1510
1521
|
get translationurl() {
|
|
1511
|
-
return this.$$.ctx[
|
|
1522
|
+
return this.$$.ctx[3];
|
|
1512
1523
|
}
|
|
1513
1524
|
set translationurl(e) {
|
|
1514
1525
|
this.$$set({ translationurl: e }), W();
|
|
1515
1526
|
}
|
|
1516
1527
|
get assetsurl() {
|
|
1517
|
-
return this.$$.ctx[
|
|
1528
|
+
return this.$$.ctx[4];
|
|
1518
1529
|
}
|
|
1519
1530
|
set assetsurl(e) {
|
|
1520
1531
|
this.$$set({ assetsurl: e }), W();
|
|
@@ -1532,13 +1543,13 @@ class Tt extends De {
|
|
|
1532
1543
|
this.$$set({ transactionid: e }), W();
|
|
1533
1544
|
}
|
|
1534
1545
|
get clientstyling() {
|
|
1535
|
-
return this.$$.ctx[
|
|
1546
|
+
return this.$$.ctx[5];
|
|
1536
1547
|
}
|
|
1537
1548
|
set clientstyling(e) {
|
|
1538
1549
|
this.$$set({ clientstyling: e }), W();
|
|
1539
1550
|
}
|
|
1540
1551
|
get clientstylingurl() {
|
|
1541
|
-
return this.$$.ctx[
|
|
1552
|
+
return this.$$.ctx[6];
|
|
1542
1553
|
}
|
|
1543
1554
|
set clientstylingurl(e) {
|
|
1544
1555
|
this.$$set({ clientstylingurl: e }), W();
|