@everymatrix/cashier-method-details 1.99.48 → 1.99.50
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-CevHMlZD.js → CashierError-BXRkT4Kk.js} +1 -1
- package/components/{CashierError-gG_Up_CU.js → CashierError-C5pF7yR6.js} +1 -1
- package/components/{CashierError-MDY6mzP3.cjs → CashierError-O21zeB_u.cjs} +1 -1
- package/components/{CashierMethodDetails-CN54xd1T.cjs → CashierMethodDetails-DZrM5wld.cjs} +17 -17
- package/components/{CashierMethodDetails-BFx1A960.js → CashierMethodDetails-HslBSxAG.js} +2374 -2372
- package/components/{CashierMethodDetails-DM5blWzU.js → CashierMethodDetails-LiDQHqpw.js} +2074 -2072
- package/components/{CashierModal-CeAqormC.cjs → CashierModal-ClxoScDo.cjs} +1 -1
- package/components/{CashierModal-C7zisZ5V.js → CashierModal-CohlKt10.js} +1 -1
- package/components/{CashierModal-GIlQPa4f.js → CashierModal-DL-BQs4T.js} +1 -1
- package/components/{CashierNotifications-Cfco4-7L.js → CashierNotifications-Q_YmNcJI.js} +1 -1
- package/components/{CashierNotifications-BI-Uwbae.js → CashierNotifications-TO3IiCjq.js} +1 -1
- package/components/{CashierNotifications-Bzhp13gU.cjs → CashierNotifications-jhuGjx4C.cjs} +1 -1
- package/components/{CashierReceiptPage-CjDq21Bx.cjs → CashierReceiptPage-B3EFdzHg.cjs} +2 -2
- package/components/{CashierReceiptPage-BQLL0r7a.js → CashierReceiptPage-C-Dm0_kZ.js} +299 -296
- package/components/{CashierReceiptPage-BXmfn0zH.js → CashierReceiptPage-CRTDkCIK.js} +312 -309
- 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
|
@@ -14,8 +14,8 @@ var Ye = (i, e, t) => new Promise((n, a) => {
|
|
|
14
14
|
}, u = (d) => d.done ? n(d.value) : Promise.resolve(d.value).then(r, o);
|
|
15
15
|
u((t = t.apply(i, e)).next());
|
|
16
16
|
});
|
|
17
|
-
import { M as
|
|
18
|
-
function Qe(i, { delay: e = 0, duration: t = 400, easing: n =
|
|
17
|
+
import { M as m1, o as f1, p as g1, $ as C1, S as h1, i as b1, s as w1, f as L, a as y1, n as pe, d as h, c as b, g, j as l, v as T1, N as Ie, O as k1, w as v1, P as _1, Q as Le, k as Fe, R as Oe, r as qe, B as x1, q as S1, u as R1, e as c, h as v, T as M1, U as D1, V as z1, b as S, t as R, W as x, X as L1, l as Re, C as He, Y as Be, Z as c1, _ as N, a0 as Ge, a1 as I1, G as B1, I as H1, J as P1, m as W1, K as A1 } from "./CashierMethodDetails-LiDQHqpw.js";
|
|
18
|
+
function Qe(i, { delay: e = 0, duration: t = 400, easing: n = m1 } = {}) {
|
|
19
19
|
const a = +getComputedStyle(i).opacity;
|
|
20
20
|
return {
|
|
21
21
|
delay: e,
|
|
@@ -25,12 +25,12 @@ function Qe(i, { delay: e = 0, duration: t = 400, easing: n = d1 } = {}) {
|
|
|
25
25
|
};
|
|
26
26
|
}
|
|
27
27
|
function Xe(i, e) {
|
|
28
|
-
|
|
28
|
+
f1(i, e);
|
|
29
29
|
}
|
|
30
|
-
function
|
|
31
|
-
|
|
30
|
+
function j1(i) {
|
|
31
|
+
g1({
|
|
32
32
|
fallbackLocale: "en"
|
|
33
|
-
}),
|
|
33
|
+
}), C1.set(i);
|
|
34
34
|
}
|
|
35
35
|
const Je = {
|
|
36
36
|
en: {
|
|
@@ -769,7 +769,7 @@ const Je = {
|
|
|
769
769
|
uploadDocuments: "Sənədləri yüklə",
|
|
770
770
|
goToHomepage: "Əsas səhifəyə keç"
|
|
771
771
|
}
|
|
772
|
-
},
|
|
772
|
+
}, Z1 = (i, e) => `${i + N1[e]}`, E1 = (i, e) => `${K1[e]}.${u1[i]}.text`, V1 = (i) => `${u1[`${i}`]}`, N1 = {
|
|
773
773
|
Success: "/txn-success.png",
|
|
774
774
|
Voided: "/txn-success.png",
|
|
775
775
|
Rejected: "/txn-failed.png",
|
|
@@ -781,7 +781,7 @@ const Je = {
|
|
|
781
781
|
PendingApprovalStage2: "/txn-pending.png",
|
|
782
782
|
PendingApprovalStage3: "/txn-pending.png",
|
|
783
783
|
PendingOfflineNotification: "/txn-pending.png"
|
|
784
|
-
},
|
|
784
|
+
}, K1 = {
|
|
785
785
|
Deposit: "deposit",
|
|
786
786
|
Withdraw: "withdrawal"
|
|
787
787
|
}, u1 = {
|
|
@@ -830,18 +830,18 @@ const Je = {
|
|
|
830
830
|
</svg>
|
|
831
831
|
`
|
|
832
832
|
};
|
|
833
|
-
function
|
|
834
|
-
|
|
833
|
+
function U1(i) {
|
|
834
|
+
y1(i, "svelte-nkabfs", '.LoadingOverlay{width:100%;height:100%;display:flex;position:relative;top:0;left:0;justify-content:center;align-items:center;z-index:100;background:transparent}.CopyTooltip{transform:translateX(-50%);color:var(--emw--color-typography, #fff);opacity:1;container-name:copy-tooltip;font-size:var(--emw--font-size-medium, 16px);line-height:calc(var(--emw--font-size-medium, 16px) + 2px);padding:15px;position:fixed;left:50%;top:40%;border-radius:var(--mmw--border-radius-large-plus, 10px);background-color:#12191f;max-width:600px;z-index:3;box-shadow:inset 0px 0px 0px 1px rgba(255, 255, 255, 0.3)}.CopyTooltip::before{content:"";position:absolute;inset:0;opacity:0.2;z-index:-1;pointer-events:none;border-radius:10px;background:linear-gradient(140deg, var(--emw--color-primary, #f9c405) 5%, var(--emw--color-black, #12191f) 65%)}.Spinner{width:40px;height:40px;border:4px solid #e0e0e0;border-top:4px solid var(--emw--color-primary, #f9c405);border-radius:50%;animation:spin 1s linear infinite}@keyframes spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}.CashierReceiptPageWidget{position:relative}.CashierReceiptPage{border-radius:var(--emw--border-radius-medium-plus, 6px);background-color:var(--emw--color-cashier-bg, var(--emw--color-background, #23281f));padding:0 0 var(--emw--spacing-small-minus, 10px) 0;margin:0 auto;position:relative;word-wrap:break-word;display:flex;flex-direction:column;justify-content:space-between;height:100%}.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.rejected{background:#e6e6e6}.ReceiptStatusWrapper{display:flex;flex-direction:column;justify-content:center;align-items:center;padding:30px 30px 0;gap:10px}.ReceiptStatusWrapper .ReceiptStatusIcon.success svg,.ReceiptStatusWrapper .ReceiptStatusIcon.success circle,.ReceiptStatusWrapper .ReceiptStatusIcon.success path{fill:var(--emw--color-valid, #41d195)}.ReceiptStatusWrapper .ReceiptStatusIcon.pending svg,.ReceiptStatusWrapper .ReceiptStatusIcon.pending circle,.ReceiptStatusWrapper .ReceiptStatusIcon.pending path{fill:var(--emw--color-pending, #ff6836)}.ReceiptStatusWrapper .ReceiptStatusIcon.failed svg,.ReceiptStatusWrapper .ReceiptStatusIcon.failed circle,.ReceiptStatusWrapper .ReceiptStatusIcon.failed path{fill:var(--emw--color-error, #ff3636)}.ReceiptStatusWrapper .ReceiptStatusText{text-align:center}.ReceiptStatusWrapper .ReceiptStatusText h3,.ReceiptStatusWrapper .ReceiptStatusText p{color:var(--emw--color-typography, var(--emw--color-white, #ffffff));padding:0;margin:10px}.ReceiptStatusWrapper .ReceiptStatusText p{font-size:14px;font-weight:200}.ReceiptStatusWrapper .TryAgainBtn,.ReceiptStatusWrapper .RefreshButton{border-radius:20px;padding:7px 20px;border:none;box-shadow:inset 0px 0px 0px 2px rgba(255, 226, 123, 0.3);color:var(--emw--color-white, #ffffff);background-color:rgba(249, 196, 8, 0.3019607843)}.ReceiptDetailsWrapper{position:relative;display:flex;flex-direction:column;border-radius:16px;box-shadow:inset 0px 0px 0px 1px rgba(255, 255, 255, 0.2);padding:20px;margin:10px;z-index:1}.ReceiptDetailsWrapper::before{content:"";position:absolute;inset:0;opacity:0.3;z-index:-1;pointer-events:none;border-radius:16px;background:linear-gradient(140deg, var(--emw--color-primary, #f9c405) 5%, var(--emw--color-cashier-bg, var(--emw--color-background, #23281f)) 40%, var(--emw--color-black, #000000) 60%)}.ReceiptDetailsWrapper .TxnId{cursor:pointer}.ReceiptDetailsWrapper .TxnId .TxnIdText{overflow:hidden;text-overflow:ellipsis;display:inline-block;white-space:nowrap}.ReceiptDetailsWrapper .Amount,.ReceiptDetailsWrapper .Status,.ReceiptDetailsWrapper .TxnId,.ReceiptDetailsWrapper .PaymentMethod,.ReceiptDetailsWrapper .PaymentTime{display:flex;justify-content:space-between;align-items:center;color:var(--emw--color-typography, var(--emw--color-white, #ffffff))}.ReceiptDetailsWrapper .Amount p,.ReceiptDetailsWrapper .Status p,.ReceiptDetailsWrapper .TxnId p,.ReceiptDetailsWrapper .PaymentMethod p,.ReceiptDetailsWrapper .PaymentTime p{font-weight:200;font-size:12px;margin-right:5px;width:auto}.ReceiptDetailsWrapper .Amount span,.ReceiptDetailsWrapper .Status span,.ReceiptDetailsWrapper .TxnId span,.ReceiptDetailsWrapper .PaymentMethod span,.ReceiptDetailsWrapper .PaymentTime span{font-size:12px;word-break:break-all;font-weight:500;max-width:70%;text-align:right}.ReceiptDetailsWrapper .Status{border-bottom:1px solid rgba(255, 255, 255, 0.276);padding-bottom:10px}.ReceiptDetailsWrapper .Status span{padding:10px;font-size:var(--emw--font-size-small, 12px);border-radius:16px}.ReceiptDetailsWrapper .Status.success span{background-color:rgba(65, 209, 149, 0.1215686275);color:var(--emw--color-valid, #41d195)}.ReceiptDetailsWrapper .Status.pending span{background-color:rgba(255, 104, 54, 0.1215686275);color:var(--emw--color-pending, #ff6836)}.ReceiptDetailsWrapper .Status.failed span{background-color:rgba(209, 65, 65, 0.1215686275);color:var(--emw--color-error, #ff3636)}.ReceiptDetailsWrapper .Status.rejected span{background-color:rgba(209, 65, 65, 0.1215686275);color:var(--emw--color-error, #ff3636)}.ReceiptDetailsWrapper .TxnId{margin-top:15px}.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}.ReceiptButtonsWrapper{display:grid;grid-template-columns:1fr 1fr 1fr;height:75px;gap:8px;margin:0 10px}.ReceiptButtonsWrapper .GoToButton{cursor:pointer;border-radius:8px;border:none;box-shadow:inset 0px 0px 0px 1px rgba(255, 255, 255, 0.2);background-color:var(--emw--color-gey-600, rgba(237, 237, 237, 0.0784313725));color:var(--emw--color-typography, var(--emw--color-white, #ffffff));font-size:12px;transition:all 0.3s ease}.ReceiptButtonsWrapper .GoToButton:hover,.ReceiptButtonsWrapper .GoToButton:active{transform:scale(1.05)}.DefaultButton{text-transform:uppercase;font-weight:var(--emw--font-weight-semibold, 600);color:var(--emw--color-cashier-bg, var(--emw--color-background, #23281f));border:none;background:var(--emw--color-primary, #f9c408);cursor:pointer;display:flex;align-items:center;justify-content:center;gap:5px;border-radius:var(--emw--border-radius-medium, 12px);min-height:44px;font-size:var(--emw--font-size-medium, 16px);font-family:inherit;margin:20px 10px;width:calc(100% - 20px);transition:background 0.3s ease}.DefaultButton:hover{box-shadow:inset 0px 0px 0px 1px rgba(255, 255, 255, 0.2);background:var(--emw--color-hover, #dbac03)}.DefaultButton:active{box-shadow:inset 0px 0px 0px 1px rgba(255, 255, 255, 0.2);background:var(--emw--color-active, #fecd1c)}.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)}@media(min-width: 750px){.CashierReceiptPage{background-color:transparent}.CashierReceiptPageWidget{position:absolute;width:calc(100% - 20px)}}.CustomButtonSvg svg{width:32px;height:32px;fill:var(--emw--color-primary)}');
|
|
835
835
|
}
|
|
836
836
|
function e1(i, e, t) {
|
|
837
837
|
const n = i.slice();
|
|
838
|
-
return n[
|
|
838
|
+
return n[72] = e[t], n[74] = t, n;
|
|
839
839
|
}
|
|
840
840
|
function t1(i, e, t) {
|
|
841
841
|
const n = i.slice();
|
|
842
|
-
return n[
|
|
842
|
+
return n[75] = e[t], n;
|
|
843
843
|
}
|
|
844
|
-
function
|
|
844
|
+
function Y1(i) {
|
|
845
845
|
let e, t, n = Oe(
|
|
846
846
|
/*userAgent*/
|
|
847
847
|
i[25]
|
|
@@ -856,18 +856,18 @@ function K1(i) {
|
|
|
856
856
|
/*txnInfo*/
|
|
857
857
|
p[15]
|
|
858
858
|
)
|
|
859
|
-
return
|
|
859
|
+
return q1;
|
|
860
860
|
if (
|
|
861
861
|
/*errorResponseCode*/
|
|
862
862
|
p[19] && !/*showErrorOutsideReceiptPage*/
|
|
863
863
|
p[20]
|
|
864
864
|
)
|
|
865
|
-
return
|
|
865
|
+
return O1;
|
|
866
866
|
}
|
|
867
867
|
let d = u(i), m = d && d(i);
|
|
868
868
|
return {
|
|
869
869
|
c() {
|
|
870
|
-
r && r.c(), e =
|
|
870
|
+
r && r.c(), e = v(), t = g("div"), o && o.c(), a = v(), m && m.c(), l(t, "class", "CashierReceiptPage");
|
|
871
871
|
},
|
|
872
872
|
m(p, C) {
|
|
873
873
|
r && r.m(p, C), b(p, e, C), b(p, t, C), o && o.m(t, null), c(t, a), m && m.m(t, null);
|
|
@@ -875,9 +875,9 @@ function K1(i) {
|
|
|
875
875
|
p(p, C) {
|
|
876
876
|
/*copied*/
|
|
877
877
|
p[23] ? r ? (r.p(p, C), C[0] & /*copied*/
|
|
878
|
-
8388608 && qe(r, 1)) : (r = n1(p), r.c(), qe(r, 1), r.m(e.parentNode, e)) : r && (
|
|
878
|
+
8388608 && qe(r, 1)) : (r = n1(p), r.c(), qe(r, 1), r.m(e.parentNode, e)) : r && (x1(), S1(r, 1, 1, () => {
|
|
879
879
|
r = null;
|
|
880
|
-
}),
|
|
880
|
+
}), R1()), C[0] & /*showverifications, displayVerifications*/
|
|
881
881
|
4194816 && (n = Oe(
|
|
882
882
|
/*userAgent*/
|
|
883
883
|
p[25]
|
|
@@ -890,11 +890,11 @@ function K1(i) {
|
|
|
890
890
|
}
|
|
891
891
|
};
|
|
892
892
|
}
|
|
893
|
-
function
|
|
893
|
+
function F1(i) {
|
|
894
894
|
let e;
|
|
895
895
|
return {
|
|
896
896
|
c() {
|
|
897
|
-
e =
|
|
897
|
+
e = g("div"), e.innerHTML = '<div class="Spinner"></div>', l(e, "class", "LoadingOverlay");
|
|
898
898
|
},
|
|
899
899
|
m(t, n) {
|
|
900
900
|
b(t, e, n);
|
|
@@ -912,7 +912,7 @@ function n1(i) {
|
|
|
912
912
|
), n, a, r, o;
|
|
913
913
|
return {
|
|
914
914
|
c() {
|
|
915
|
-
e =
|
|
915
|
+
e = g("div"), n = R(t), l(e, "class", "CopyTooltip");
|
|
916
916
|
},
|
|
917
917
|
m(u, d) {
|
|
918
918
|
b(u, e, d), c(e, n), o = !0;
|
|
@@ -923,12 +923,12 @@ function n1(i) {
|
|
|
923
923
|
u[24]("copyTransactionId") + "") && S(n, t);
|
|
924
924
|
},
|
|
925
925
|
i(u) {
|
|
926
|
-
o || (u &&
|
|
927
|
-
o && (r && r.end(1), a =
|
|
926
|
+
o || (u && D1(() => {
|
|
927
|
+
o && (r && r.end(1), a = z1(e, Qe, { duration: 100 }), a.start());
|
|
928
928
|
}), o = !0);
|
|
929
929
|
},
|
|
930
930
|
o(u) {
|
|
931
|
-
a && a.invalidate(), u && (r =
|
|
931
|
+
a && a.invalidate(), u && (r = M1(e, Qe, { duration: 1e3 })), o = !1;
|
|
932
932
|
},
|
|
933
933
|
d(u) {
|
|
934
934
|
u && h(e), u && r && r.end();
|
|
@@ -939,7 +939,7 @@ function i1(i) {
|
|
|
939
939
|
let e;
|
|
940
940
|
return {
|
|
941
941
|
c() {
|
|
942
|
-
e =
|
|
942
|
+
e = g("cashier-verifications"), x(
|
|
943
943
|
e,
|
|
944
944
|
"lang",
|
|
945
945
|
/*lang*/
|
|
@@ -1029,7 +1029,7 @@ function i1(i) {
|
|
|
1029
1029
|
}
|
|
1030
1030
|
};
|
|
1031
1031
|
}
|
|
1032
|
-
function
|
|
1032
|
+
function O1(i) {
|
|
1033
1033
|
let e, t = (
|
|
1034
1034
|
/*errorResponseCode*/
|
|
1035
1035
|
i[19] === /*ResponseCode*/
|
|
@@ -1037,7 +1037,7 @@ function Y1(i) {
|
|
|
1037
1037
|
);
|
|
1038
1038
|
return {
|
|
1039
1039
|
c() {
|
|
1040
|
-
e =
|
|
1040
|
+
e = g("cashier-error"), t && t.c(), x(
|
|
1041
1041
|
e,
|
|
1042
1042
|
"assetsurl",
|
|
1043
1043
|
/*assetsurl*/
|
|
@@ -1118,131 +1118,131 @@ function Y1(i) {
|
|
|
1118
1118
|
}
|
|
1119
1119
|
};
|
|
1120
1120
|
}
|
|
1121
|
-
function
|
|
1121
|
+
function q1(i) {
|
|
1122
1122
|
let e, t, n, a, r, o = (
|
|
1123
1123
|
/*$_*/
|
|
1124
1124
|
i[24]("amount") + ""
|
|
1125
|
-
), u, d, m, p, C,
|
|
1125
|
+
), u, d, m, p, C, _, y, w = (
|
|
1126
1126
|
/*$_*/
|
|
1127
1127
|
i[24]("status") + ""
|
|
1128
1128
|
), I, Y, Z, V = (
|
|
1129
1129
|
/*$_*/
|
|
1130
1130
|
i[24](`${/*txnStatus*/
|
|
1131
1131
|
i[21]}`) + ""
|
|
1132
|
-
), E, K,
|
|
1132
|
+
), E, K, ie, z, P, J = (
|
|
1133
1133
|
/*$_*/
|
|
1134
1134
|
i[24]("transactionId") + ""
|
|
1135
|
-
),
|
|
1135
|
+
), ae, me, F, oe = (
|
|
1136
1136
|
/*txnInfo*/
|
|
1137
1137
|
i[15].referenceId + ""
|
|
1138
|
-
),
|
|
1138
|
+
), fe, ge, Q, $, M = (
|
|
1139
1139
|
/*$_*/
|
|
1140
1140
|
i[24]("payemntMethod") + ""
|
|
1141
|
-
),
|
|
1141
|
+
), we, Me, k, re, ye, A, ee, te = (
|
|
1142
1142
|
/*$_*/
|
|
1143
1143
|
i[24]("paymentTime") + ""
|
|
1144
|
-
),
|
|
1144
|
+
), se, le, Te, ce = Ie(
|
|
1145
1145
|
/*txnInfo*/
|
|
1146
1146
|
i[15].time
|
|
1147
|
-
).format("MMM DD, YYYY, HH:mm:ss") + "", Ce,
|
|
1148
|
-
function
|
|
1147
|
+
).format("MMM DD, YYYY, HH:mm:ss") + "", Ce, he, O, ke, G, ve, ue, _e, De;
|
|
1148
|
+
function xe(f, T) {
|
|
1149
1149
|
if (
|
|
1150
1150
|
/*txnStatus*/
|
|
1151
|
-
|
|
1151
|
+
f[21] === "success"
|
|
1152
1152
|
)
|
|
1153
|
-
return
|
|
1153
|
+
return X1;
|
|
1154
1154
|
if (
|
|
1155
1155
|
/*txnStatus*/
|
|
1156
|
-
|
|
1156
|
+
f[21] === "pending"
|
|
1157
1157
|
)
|
|
1158
|
-
return
|
|
1158
|
+
return Q1;
|
|
1159
1159
|
if (
|
|
1160
1160
|
/*txnStatus*/
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1161
|
+
f[21] === "failed" || /*txnStatus*/
|
|
1162
|
+
f[21] === "rejected" || /*txnStatus*/
|
|
1163
|
+
f[21] === "canceled"
|
|
1164
1164
|
)
|
|
1165
|
-
return
|
|
1165
|
+
return G1;
|
|
1166
1166
|
}
|
|
1167
|
-
let
|
|
1167
|
+
let X = xe(i), W = X && X(i), H = (
|
|
1168
1168
|
/*displayedButtons*/
|
|
1169
1169
|
i[12].length > 0 && o1(i)
|
|
1170
1170
|
);
|
|
1171
|
-
function
|
|
1171
|
+
function Se(f, T) {
|
|
1172
1172
|
return (
|
|
1173
1173
|
/*txnInfo*/
|
|
1174
|
-
|
|
1174
|
+
f[15].type ? $1 : J1
|
|
1175
1175
|
);
|
|
1176
1176
|
}
|
|
1177
|
-
let
|
|
1177
|
+
let de = Se(i), U = de(i), j = (
|
|
1178
1178
|
/*receiptFields*/
|
|
1179
1179
|
i[16].length && s1(i)
|
|
1180
1180
|
);
|
|
1181
1181
|
return {
|
|
1182
1182
|
c() {
|
|
1183
|
-
e =
|
|
1183
|
+
e = g("div"), W && W.c(), t = v(), n = g("div"), a = g("div"), r = g("p"), u = R(o), d = v(), m = g("span"), p = R(
|
|
1184
1184
|
/*amount*/
|
|
1185
1185
|
i[17]
|
|
1186
|
-
), C =
|
|
1186
|
+
), C = v(), _ = g("div"), y = g("p"), I = R(w), Y = v(), Z = g("span"), E = R(V), ie = v(), z = g("div"), P = g("p"), ae = R(J), me = v(), F = g("span"), fe = R(oe), ge = v(), Q = g("div"), $ = g("p"), we = R(M), Me = v(), k = g("span"), re = R(
|
|
1187
1187
|
/*paymentmethod*/
|
|
1188
1188
|
i[0]
|
|
1189
|
-
),
|
|
1190
|
-
i[21]}`), l(F, "class", "TxnIdText"), l(z, "class", "TxnId"), l(
|
|
1189
|
+
), ye = v(), A = g("div"), ee = g("p"), se = R(te), le = v(), Te = g("span"), Ce = R(ce), he = v(), O = g("div"), H && H.c(), ke = v(), G = g("button"), U.c(), ve = v(), j && j.c(), ue = He(), l(e, "class", "ReceiptStatusWrapper"), l(a, "class", "Amount"), l(_, "class", K = `Status ${/*txnStatus*/
|
|
1190
|
+
i[21]}`), l(F, "class", "TxnIdText"), l(z, "class", "TxnId"), l(Q, "class", "PaymentMethod"), l(A, "class", "PaymentTime"), l(n, "class", "ReceiptDetailsWrapper"), l(O, "class", "ReceiptButtonsWrapper"), l(G, "class", "DefaultButton");
|
|
1191
1191
|
},
|
|
1192
|
-
m(
|
|
1193
|
-
b(
|
|
1194
|
-
|
|
1192
|
+
m(f, T) {
|
|
1193
|
+
b(f, e, T), W && W.m(e, null), b(f, t, T), b(f, n, T), c(n, a), c(a, r), c(r, u), c(a, d), c(a, m), c(m, p), c(n, C), c(n, _), c(_, y), c(y, I), c(_, Y), c(_, Z), c(Z, E), c(n, ie), c(n, z), c(z, P), c(P, ae), c(z, me), c(z, F), c(F, fe), c(n, ge), c(n, Q), c(Q, $), c($, we), c(Q, Me), c(Q, k), c(k, re), c(n, ye), c(n, A), c(A, ee), c(ee, se), c(A, le), c(A, Te), c(Te, Ce), b(f, he, T), b(f, O, T), H && H.m(O, null), b(f, ke, T), b(f, G, T), U.m(G, null), b(f, ve, T), j && j.m(f, T), b(f, ue, T), _e || (De = [
|
|
1194
|
+
Re(
|
|
1195
1195
|
F,
|
|
1196
1196
|
"click",
|
|
1197
1197
|
/*click_handler*/
|
|
1198
1198
|
i[45]
|
|
1199
1199
|
),
|
|
1200
|
-
|
|
1201
|
-
|
|
1200
|
+
Re(
|
|
1201
|
+
G,
|
|
1202
1202
|
"click",
|
|
1203
1203
|
/*closeReceipt*/
|
|
1204
1204
|
i[26]
|
|
1205
1205
|
)
|
|
1206
|
-
],
|
|
1206
|
+
], _e = !0);
|
|
1207
1207
|
},
|
|
1208
|
-
p(
|
|
1209
|
-
|
|
1208
|
+
p(f, T) {
|
|
1209
|
+
X === (X = xe(f)) && W ? W.p(f, T) : (W && W.d(1), W = X && X(f), W && (W.c(), W.m(e, null))), T[0] & /*$_*/
|
|
1210
1210
|
16777216 && o !== (o = /*$_*/
|
|
1211
|
-
|
|
1211
|
+
f[24]("amount") + "") && S(u, o), T[0] & /*amount*/
|
|
1212
1212
|
131072 && S(
|
|
1213
1213
|
p,
|
|
1214
1214
|
/*amount*/
|
|
1215
|
-
|
|
1215
|
+
f[17]
|
|
1216
1216
|
), T[0] & /*$_*/
|
|
1217
1217
|
16777216 && w !== (w = /*$_*/
|
|
1218
|
-
|
|
1218
|
+
f[24]("status") + "") && S(I, w), T[0] & /*$_, txnStatus*/
|
|
1219
1219
|
18874368 && V !== (V = /*$_*/
|
|
1220
|
-
|
|
1221
|
-
|
|
1220
|
+
f[24](`${/*txnStatus*/
|
|
1221
|
+
f[21]}`) + "") && S(E, V), T[0] & /*txnStatus*/
|
|
1222
1222
|
2097152 && K !== (K = `Status ${/*txnStatus*/
|
|
1223
|
-
|
|
1224
|
-
16777216 &&
|
|
1225
|
-
|
|
1226
|
-
32768 &&
|
|
1227
|
-
|
|
1228
|
-
16777216 &&
|
|
1229
|
-
|
|
1223
|
+
f[21]}`) && l(_, "class", K), T[0] & /*$_*/
|
|
1224
|
+
16777216 && J !== (J = /*$_*/
|
|
1225
|
+
f[24]("transactionId") + "") && S(ae, J), T[0] & /*txnInfo*/
|
|
1226
|
+
32768 && oe !== (oe = /*txnInfo*/
|
|
1227
|
+
f[15].referenceId + "") && S(fe, oe), T[0] & /*$_*/
|
|
1228
|
+
16777216 && M !== (M = /*$_*/
|
|
1229
|
+
f[24]("payemntMethod") + "") && S(we, M), T[0] & /*paymentmethod*/
|
|
1230
1230
|
1 && S(
|
|
1231
|
-
|
|
1231
|
+
re,
|
|
1232
1232
|
/*paymentmethod*/
|
|
1233
|
-
|
|
1233
|
+
f[0]
|
|
1234
1234
|
), T[0] & /*$_*/
|
|
1235
|
-
16777216 &&
|
|
1236
|
-
|
|
1237
|
-
32768 &&
|
|
1235
|
+
16777216 && te !== (te = /*$_*/
|
|
1236
|
+
f[24]("paymentTime") + "") && S(se, te), T[0] & /*txnInfo*/
|
|
1237
|
+
32768 && ce !== (ce = Ie(
|
|
1238
1238
|
/*txnInfo*/
|
|
1239
|
-
|
|
1240
|
-
).format("MMM DD, YYYY, HH:mm:ss") + "") && S(Ce,
|
|
1241
|
-
|
|
1242
|
-
|
|
1239
|
+
f[15].time
|
|
1240
|
+
).format("MMM DD, YYYY, HH:mm:ss") + "") && S(Ce, ce), /*displayedButtons*/
|
|
1241
|
+
f[12].length > 0 ? H ? H.p(f, T) : (H = o1(f), H.c(), H.m(O, null)) : H && (H.d(1), H = null), de === (de = Se(f)) && U ? U.p(f, T) : (U.d(1), U = de(f), U && (U.c(), U.m(G, null))), /*receiptFields*/
|
|
1242
|
+
f[16].length ? j ? j.p(f, T) : (j = s1(f), j.c(), j.m(ue.parentNode, ue)) : j && (j.d(1), j = null);
|
|
1243
1243
|
},
|
|
1244
|
-
d(
|
|
1245
|
-
|
|
1244
|
+
d(f) {
|
|
1245
|
+
f && (h(e), h(t), h(n), h(he), h(O), h(ke), h(G), h(ve), h(ue)), W && W.d(), H && H.d(), U.d(), j && j.d(f), _e = !1, L1(De);
|
|
1246
1246
|
}
|
|
1247
1247
|
};
|
|
1248
1248
|
}
|
|
@@ -1256,7 +1256,7 @@ function a1(i) {
|
|
|
1256
1256
|
), m;
|
|
1257
1257
|
return {
|
|
1258
1258
|
c() {
|
|
1259
|
-
e =
|
|
1259
|
+
e = g("div"), e.innerHTML = '<div class="ImagePlaceholder Maintenance"></div>', t = v(), n = g("span"), r = R(a), o = v(), u = g("span"), m = R(d), l(e, "slot", "icon"), l(n, "slot", "title"), l(n, "class", "CashierErrorTitle"), l(u, "slot", "text"), l(u, "class", "CashierErrorText");
|
|
1260
1260
|
},
|
|
1261
1261
|
m(p, C) {
|
|
1262
1262
|
b(p, e, C), b(p, t, C), b(p, n, C), c(n, r), b(p, o, C), b(p, u, C), c(u, m);
|
|
@@ -1273,19 +1273,19 @@ function a1(i) {
|
|
|
1273
1273
|
}
|
|
1274
1274
|
};
|
|
1275
1275
|
}
|
|
1276
|
-
function
|
|
1276
|
+
function G1(i) {
|
|
1277
1277
|
let e, t, n, a, r, o, u, d = (
|
|
1278
1278
|
/*$_*/
|
|
1279
1279
|
i[24](`${/*txnInfo*/
|
|
1280
1280
|
i[15].type.toLowerCase()}.fail.title`) + ""
|
|
1281
|
-
), m, p, C,
|
|
1281
|
+
), m, p, C, _ = (
|
|
1282
1282
|
/*$_*/
|
|
1283
1283
|
i[24](`${/*txnInfo*/
|
|
1284
1284
|
i[15].type.toLowerCase()}.fail.text`) + ""
|
|
1285
1285
|
), y;
|
|
1286
1286
|
return {
|
|
1287
1287
|
c() {
|
|
1288
|
-
e = N("svg"), t = N("circle"), n = N("rect"), a = N("path"), r =
|
|
1288
|
+
e = N("svg"), t = N("circle"), n = N("rect"), a = N("path"), r = v(), o = g("div"), u = g("h3"), m = R(d), p = v(), C = g("p"), y = R(_), l(t, "cx", "36"), l(t, "cy", "36"), l(t, "r", "36"), l(t, "fill", "#D14141"), l(t, "fill-opacity", "0.12"), l(n, "x", "19.335"), l(n, "y", "19"), l(n, "width", "33.33"), l(n, "height", "33.33"), l(n, "rx", "16.665"), l(n, "fill", "#FF3636"), l(a, "d", "M29.085 41.915L41.585 29.415M41.585 41.915L29.085 29.415"), l(a, "stroke", "black"), l(a, "stroke-width", "2.09016"), l(a, "stroke-linecap", "round"), l(a, "stroke-linejoin", "round"), l(e, "class", "ReceiptStatusIcon failed"), l(e, "width", "72"), l(e, "height", "72"), l(e, "viewBox", "0 0 72 72"), l(e, "fill", "none"), l(e, "xmlns", "http://www.w3.org/2000/svg"), l(o, "class", "ReceiptStatusText");
|
|
1289
1289
|
},
|
|
1290
1290
|
m(w, I) {
|
|
1291
1291
|
b(w, e, I), c(e, t), c(e, n), c(e, a), b(w, r, I), b(w, o, I), c(o, u), c(u, m), c(o, p), c(o, C), c(C, y);
|
|
@@ -1295,57 +1295,57 @@ function O1(i) {
|
|
|
1295
1295
|
16809984 && d !== (d = /*$_*/
|
|
1296
1296
|
w[24](`${/*txnInfo*/
|
|
1297
1297
|
w[15].type.toLowerCase()}.fail.title`) + "") && S(m, d), I[0] & /*$_, txnInfo*/
|
|
1298
|
-
16809984 &&
|
|
1298
|
+
16809984 && _ !== (_ = /*$_*/
|
|
1299
1299
|
w[24](`${/*txnInfo*/
|
|
1300
|
-
w[15].type.toLowerCase()}.fail.text`) + "") && S(y,
|
|
1300
|
+
w[15].type.toLowerCase()}.fail.text`) + "") && S(y, _);
|
|
1301
1301
|
},
|
|
1302
1302
|
d(w) {
|
|
1303
1303
|
w && (h(e), h(r), h(o));
|
|
1304
1304
|
}
|
|
1305
1305
|
};
|
|
1306
1306
|
}
|
|
1307
|
-
function
|
|
1307
|
+
function Q1(i) {
|
|
1308
1308
|
let e, t, n, a, r, o, u, d, m, p = (
|
|
1309
1309
|
/*$_*/
|
|
1310
1310
|
i[24](`${/*txnInfo*/
|
|
1311
1311
|
i[15].type.toLowerCase()}.pending.title`) + ""
|
|
1312
|
-
), C,
|
|
1312
|
+
), C, _, y, w = (
|
|
1313
1313
|
/*$_*/
|
|
1314
1314
|
i[24](`${/*txnInfo*/
|
|
1315
1315
|
i[15].type.toLowerCase()}.pending.text`) + ""
|
|
1316
1316
|
), I, Y, Z, V = (
|
|
1317
1317
|
/*$_*/
|
|
1318
1318
|
i[24]("refreshButton") + ""
|
|
1319
|
-
), E, K,
|
|
1319
|
+
), E, K, ie;
|
|
1320
1320
|
return {
|
|
1321
1321
|
c() {
|
|
1322
|
-
e = N("svg"), t = N("circle"), n = N("rect"), a = N("path"), r = N("path"), o = N("path"), u =
|
|
1322
|
+
e = N("svg"), t = N("circle"), n = N("rect"), a = N("path"), r = N("path"), o = N("path"), u = v(), d = g("div"), m = g("h3"), C = R(p), _ = v(), y = g("p"), I = R(w), Y = v(), Z = g("button"), E = R(V), l(t, "cx", "36"), l(t, "cy", "36"), l(t, "r", "36"), l(t, "fill", "#D19A41"), l(t, "fill-opacity", "0.12"), l(n, "x", "19"), l(n, "y", "19"), l(n, "width", "34"), l(n, "height", "34"), l(n, "rx", "17"), l(n, "fill", "#FF6836"), l(a, "d", "M36 46C30.4771 46 26 41.5228 26 36C26 30.4772 30.4772 26 36 26C40.4776 26 44.2257 28.9429 45.5 33H43"), l(a, "stroke", "black"), l(a, "stroke-width", "1.5"), l(a, "stroke-linecap", "round"), l(a, "stroke-linejoin", "round"), l(r, "d", "M36 32V36L38 38"), l(r, "stroke", "black"), l(r, "stroke-width", "1.5"), l(r, "stroke-linecap", "round"), l(r, "stroke-linejoin", "round"), l(o, "d", "M45.9551 37C45.9848 36.6709 46 36.3373 46 36M39 46C39.3416 45.8876 39.6753 45.7564 40 45.6078M44.7906 41C44.9835 40.6284 45.1555 40.2433 45.305 39.8462M42.1925 44.2292C42.5369 43.9441 42.8631 43.6358 43.1688 43.3065"), l(o, "stroke", "black"), l(o, "stroke-width", "1.5"), l(o, "stroke-linecap", "round"), l(o, "stroke-linejoin", "round"), l(e, "class", "ReceiptStatusIcon pending"), l(e, "width", "72"), l(e, "height", "72"), l(e, "viewBox", "0 0 72 72"), l(e, "fill", "none"), l(e, "xmlns", "http://www.w3.org/2000/svg"), l(d, "class", "ReceiptStatusText"), l(Z, "class", "RefreshButton");
|
|
1323
1323
|
},
|
|
1324
|
-
m(z,
|
|
1325
|
-
b(z, e,
|
|
1324
|
+
m(z, P) {
|
|
1325
|
+
b(z, e, P), c(e, t), c(e, n), c(e, a), c(e, r), c(e, o), b(z, u, P), b(z, d, P), c(d, m), c(m, C), c(d, _), c(d, y), c(y, I), b(z, Y, P), b(z, Z, P), c(Z, E), K || (ie = Re(
|
|
1326
1326
|
Z,
|
|
1327
1327
|
"click",
|
|
1328
|
-
/*
|
|
1328
|
+
/*refreshTxnStatus*/
|
|
1329
1329
|
i[27]
|
|
1330
1330
|
), K = !0);
|
|
1331
1331
|
},
|
|
1332
|
-
p(z,
|
|
1333
|
-
|
|
1332
|
+
p(z, P) {
|
|
1333
|
+
P[0] & /*$_, txnInfo*/
|
|
1334
1334
|
16809984 && p !== (p = /*$_*/
|
|
1335
1335
|
z[24](`${/*txnInfo*/
|
|
1336
|
-
z[15].type.toLowerCase()}.pending.title`) + "") && S(C, p),
|
|
1336
|
+
z[15].type.toLowerCase()}.pending.title`) + "") && S(C, p), P[0] & /*$_, txnInfo*/
|
|
1337
1337
|
16809984 && w !== (w = /*$_*/
|
|
1338
1338
|
z[24](`${/*txnInfo*/
|
|
1339
|
-
z[15].type.toLowerCase()}.pending.text`) + "") && S(I, w),
|
|
1339
|
+
z[15].type.toLowerCase()}.pending.text`) + "") && S(I, w), P[0] & /*$_*/
|
|
1340
1340
|
16777216 && V !== (V = /*$_*/
|
|
1341
1341
|
z[24]("refreshButton") + "") && S(E, V);
|
|
1342
1342
|
},
|
|
1343
1343
|
d(z) {
|
|
1344
|
-
z && (h(e), h(u), h(d), h(Y), h(Z)), K = !1,
|
|
1344
|
+
z && (h(e), h(u), h(d), h(Y), h(Z)), K = !1, ie();
|
|
1345
1345
|
}
|
|
1346
1346
|
};
|
|
1347
1347
|
}
|
|
1348
|
-
function
|
|
1348
|
+
function X1(i) {
|
|
1349
1349
|
let e, t, n, a, r, o, u = (
|
|
1350
1350
|
/*$_*/
|
|
1351
1351
|
i[24](`${/*txnInfo*/
|
|
@@ -1354,13 +1354,13 @@ function G1(i) {
|
|
|
1354
1354
|
/*$_*/
|
|
1355
1355
|
i[24](`${/*txnInfo*/
|
|
1356
1356
|
i[15].type.toLowerCase()}.success.text`) + ""
|
|
1357
|
-
),
|
|
1357
|
+
), _;
|
|
1358
1358
|
return {
|
|
1359
1359
|
c() {
|
|
1360
|
-
e = N("svg"), t = N("circle"), n = N("path"), a =
|
|
1360
|
+
e = N("svg"), t = N("circle"), n = N("path"), a = v(), r = g("div"), o = g("h3"), d = R(u), m = v(), p = g("p"), _ = R(C), l(t, "cx", "36"), l(t, "cy", "36"), l(t, "r", "36"), l(t, "fill", "#F9C408"), l(t, "fill-opacity", "0.12"), l(n, "d", "M36.5 19.3333C27.3167 19.3333 19.8333 26.8166 19.8333 36C19.8333 45.1833 27.3167 52.6666 36.5 52.6666C45.6833 52.6666 53.1667 45.1833 53.1667 36C53.1667 26.8166 45.6833 19.3333 36.5 19.3333ZM44.4667 32.1666L35.0167 41.6166C34.7833 41.85 34.4667 41.9833 34.1333 41.9833C33.8 41.9833 33.4833 41.85 33.25 41.6166L28.5333 36.9C28.05 36.4166 28.05 35.6166 28.5333 35.1333C29.0167 34.65 29.8167 34.65 30.3 35.1333L34.1333 38.9666L42.7 30.4C43.1833 29.9166 43.9833 29.9166 44.4667 30.4C44.95 30.8833 44.95 31.6666 44.4667 32.1666Z"), l(n, "fill", "#F9C408"), l(e, "class", "ReceiptStatusIcon success"), l(e, "width", "72"), l(e, "height", "72"), l(e, "viewBox", "0 0 72 72"), l(e, "fill", "none"), l(e, "xmlns", "http://www.w3.org/2000/svg"), l(r, "class", "ReceiptStatusText");
|
|
1361
1361
|
},
|
|
1362
1362
|
m(y, w) {
|
|
1363
|
-
b(y, e, w), c(e, t), c(e, n), b(y, a, w), b(y, r, w), c(r, o), c(o, d), c(r, m), c(r, p), c(p,
|
|
1363
|
+
b(y, e, w), c(e, t), c(e, n), b(y, a, w), b(y, r, w), c(r, o), c(o, d), c(r, m), c(r, p), c(p, _);
|
|
1364
1364
|
},
|
|
1365
1365
|
p(y, w) {
|
|
1366
1366
|
w[0] & /*$_, txnInfo*/
|
|
@@ -1369,7 +1369,7 @@ function G1(i) {
|
|
|
1369
1369
|
y[15].type.toLowerCase()}.success.title`) + "") && S(d, u), w[0] & /*$_, txnInfo*/
|
|
1370
1370
|
16809984 && C !== (C = /*$_*/
|
|
1371
1371
|
y[24](`${/*txnInfo*/
|
|
1372
|
-
y[15].type.toLowerCase()}.success.text`) + "") && S(
|
|
1372
|
+
y[15].type.toLowerCase()}.success.text`) + "") && S(_, C);
|
|
1373
1373
|
},
|
|
1374
1374
|
d(y) {
|
|
1375
1375
|
y && (h(e), h(a), h(r));
|
|
@@ -1377,7 +1377,7 @@ function G1(i) {
|
|
|
1377
1377
|
};
|
|
1378
1378
|
}
|
|
1379
1379
|
function o1(i) {
|
|
1380
|
-
let e, t =
|
|
1380
|
+
let e, t = Be(
|
|
1381
1381
|
/*displayedButtons*/
|
|
1382
1382
|
i[12]
|
|
1383
1383
|
), n = [];
|
|
@@ -1397,7 +1397,7 @@ function o1(i) {
|
|
|
1397
1397
|
p(a, r) {
|
|
1398
1398
|
if (r[0] & /*displayedButtons, handleCustomButtonClick, $_*/
|
|
1399
1399
|
285216768) {
|
|
1400
|
-
t =
|
|
1400
|
+
t = Be(
|
|
1401
1401
|
/*displayedButtons*/
|
|
1402
1402
|
a[12]
|
|
1403
1403
|
);
|
|
@@ -1417,54 +1417,54 @@ function o1(i) {
|
|
|
1417
1417
|
};
|
|
1418
1418
|
}
|
|
1419
1419
|
function r1(i) {
|
|
1420
|
-
var
|
|
1421
|
-
let e, t, n = ((
|
|
1422
|
-
i[
|
|
1420
|
+
var _;
|
|
1421
|
+
let e, t, n = ((_ = $e[`${/*btn*/
|
|
1422
|
+
i[75].type}`]) != null ? _ : "") + "", a, r = (
|
|
1423
1423
|
/*$_*/
|
|
1424
1424
|
i[24](`${/*btn*/
|
|
1425
|
-
i[
|
|
1425
|
+
i[75].translationKey}`) + ""
|
|
1426
1426
|
), o, u, d, m, p;
|
|
1427
1427
|
function C() {
|
|
1428
1428
|
return (
|
|
1429
1429
|
/*click_handler_1*/
|
|
1430
1430
|
i[46](
|
|
1431
1431
|
/*btn*/
|
|
1432
|
-
i[
|
|
1432
|
+
i[75]
|
|
1433
1433
|
)
|
|
1434
1434
|
);
|
|
1435
1435
|
}
|
|
1436
1436
|
return {
|
|
1437
1437
|
c() {
|
|
1438
|
-
e =
|
|
1439
|
-
i[
|
|
1438
|
+
e = g("button"), t = g("div"), a = v(), o = R(r), u = v(), l(t, "class", "CustomButtonSvg"), l(e, "class", d = `${/*btn*/
|
|
1439
|
+
i[75].type} GoToButton`);
|
|
1440
1440
|
},
|
|
1441
1441
|
m(y, w) {
|
|
1442
|
-
b(y, e, w), c(e, t), t.innerHTML = n, c(e, a), c(e, o), c(e, u), m || (p =
|
|
1442
|
+
b(y, e, w), c(e, t), t.innerHTML = n, c(e, a), c(e, o), c(e, u), m || (p = Re(e, "click", C), m = !0);
|
|
1443
1443
|
},
|
|
1444
1444
|
p(y, w) {
|
|
1445
1445
|
var I;
|
|
1446
1446
|
i = y, w[0] & /*displayedButtons*/
|
|
1447
1447
|
4096 && n !== (n = ((I = $e[`${/*btn*/
|
|
1448
|
-
i[
|
|
1448
|
+
i[75].type}`]) != null ? I : "") + "") && (t.innerHTML = n), w[0] & /*$_, displayedButtons*/
|
|
1449
1449
|
16781312 && r !== (r = /*$_*/
|
|
1450
1450
|
i[24](`${/*btn*/
|
|
1451
|
-
i[
|
|
1451
|
+
i[75].translationKey}`) + "") && S(o, r), w[0] & /*displayedButtons*/
|
|
1452
1452
|
4096 && d !== (d = `${/*btn*/
|
|
1453
|
-
i[
|
|
1453
|
+
i[75].type} GoToButton`) && l(e, "class", d);
|
|
1454
1454
|
},
|
|
1455
1455
|
d(y) {
|
|
1456
1456
|
y && h(e), m = !1, p();
|
|
1457
1457
|
}
|
|
1458
1458
|
};
|
|
1459
1459
|
}
|
|
1460
|
-
function
|
|
1460
|
+
function J1(i) {
|
|
1461
1461
|
let e = (
|
|
1462
1462
|
/*$_*/
|
|
1463
1463
|
i[24]("backHome") + ""
|
|
1464
1464
|
), t;
|
|
1465
1465
|
return {
|
|
1466
1466
|
c() {
|
|
1467
|
-
t =
|
|
1467
|
+
t = R(e);
|
|
1468
1468
|
},
|
|
1469
1469
|
m(n, a) {
|
|
1470
1470
|
b(n, t, a);
|
|
@@ -1479,7 +1479,7 @@ function Q1(i) {
|
|
|
1479
1479
|
}
|
|
1480
1480
|
};
|
|
1481
1481
|
}
|
|
1482
|
-
function
|
|
1482
|
+
function $1(i) {
|
|
1483
1483
|
let e = (
|
|
1484
1484
|
/*$_*/
|
|
1485
1485
|
i[24](`back${/*txnInfo*/
|
|
@@ -1487,7 +1487,7 @@ function X1(i) {
|
|
|
1487
1487
|
), t;
|
|
1488
1488
|
return {
|
|
1489
1489
|
c() {
|
|
1490
|
-
t =
|
|
1490
|
+
t = R(e);
|
|
1491
1491
|
},
|
|
1492
1492
|
m(n, a) {
|
|
1493
1493
|
b(n, t, a);
|
|
@@ -1504,7 +1504,7 @@ function X1(i) {
|
|
|
1504
1504
|
};
|
|
1505
1505
|
}
|
|
1506
1506
|
function s1(i) {
|
|
1507
|
-
let e, t =
|
|
1507
|
+
let e, t = Be(
|
|
1508
1508
|
/*receiptFields*/
|
|
1509
1509
|
i[16]
|
|
1510
1510
|
), n = [];
|
|
@@ -1524,7 +1524,7 @@ function s1(i) {
|
|
|
1524
1524
|
p(a, r) {
|
|
1525
1525
|
if (r[0] & /*openUrlInNewTab, receiptFields, qrCodeContainer, FieldTypes*/
|
|
1526
1526
|
537214976) {
|
|
1527
|
-
t =
|
|
1527
|
+
t = Be(
|
|
1528
1528
|
/*receiptFields*/
|
|
1529
1529
|
a[16]
|
|
1530
1530
|
);
|
|
@@ -1543,14 +1543,14 @@ function s1(i) {
|
|
|
1543
1543
|
}
|
|
1544
1544
|
};
|
|
1545
1545
|
}
|
|
1546
|
-
function
|
|
1546
|
+
function et(i) {
|
|
1547
1547
|
let e, t = (
|
|
1548
1548
|
/*field*/
|
|
1549
|
-
i[
|
|
1549
|
+
i[72].defaultValue + ""
|
|
1550
1550
|
), n;
|
|
1551
1551
|
return {
|
|
1552
1552
|
c() {
|
|
1553
|
-
e =
|
|
1553
|
+
e = g("span"), n = R(t), l(e, "class", "Label");
|
|
1554
1554
|
},
|
|
1555
1555
|
m(a, r) {
|
|
1556
1556
|
b(a, e, r), c(e, n);
|
|
@@ -1558,28 +1558,28 @@ function J1(i) {
|
|
|
1558
1558
|
p(a, r) {
|
|
1559
1559
|
r[0] & /*receiptFields*/
|
|
1560
1560
|
65536 && t !== (t = /*field*/
|
|
1561
|
-
a[
|
|
1561
|
+
a[72].defaultValue + "") && S(n, t);
|
|
1562
1562
|
},
|
|
1563
1563
|
d(a) {
|
|
1564
1564
|
a && h(e);
|
|
1565
1565
|
}
|
|
1566
1566
|
};
|
|
1567
1567
|
}
|
|
1568
|
-
function
|
|
1568
|
+
function tt(i) {
|
|
1569
1569
|
return { c: pe, m: pe, p: pe, d: pe };
|
|
1570
1570
|
}
|
|
1571
|
-
function
|
|
1571
|
+
function nt(i) {
|
|
1572
1572
|
let e, t = (
|
|
1573
1573
|
/*field*/
|
|
1574
|
-
i[
|
|
1574
|
+
i[72].description + ""
|
|
1575
1575
|
), n, a, r, o = (
|
|
1576
1576
|
/*field*/
|
|
1577
|
-
i[
|
|
1577
|
+
i[72].name + ""
|
|
1578
1578
|
), u, d;
|
|
1579
1579
|
return {
|
|
1580
1580
|
c() {
|
|
1581
|
-
e =
|
|
1582
|
-
i[
|
|
1581
|
+
e = g("span"), n = R(t), a = v(), r = g("a"), u = R(o), l(r, "href", d = /*field*/
|
|
1582
|
+
i[72].defaultValue), l(r, "target", "_blank"), l(r, "rel", "noopener noreferrer");
|
|
1583
1583
|
},
|
|
1584
1584
|
m(m, p) {
|
|
1585
1585
|
b(m, e, p), c(e, n), c(e, a), c(e, r), c(r, u);
|
|
@@ -1587,24 +1587,24 @@ function et(i) {
|
|
|
1587
1587
|
p(m, p) {
|
|
1588
1588
|
p[0] & /*receiptFields*/
|
|
1589
1589
|
65536 && t !== (t = /*field*/
|
|
1590
|
-
m[
|
|
1590
|
+
m[72].description + "") && S(n, t), p[0] & /*receiptFields*/
|
|
1591
1591
|
65536 && o !== (o = /*field*/
|
|
1592
|
-
m[
|
|
1592
|
+
m[72].name + "") && S(u, o), p[0] & /*receiptFields*/
|
|
1593
1593
|
65536 && d !== (d = /*field*/
|
|
1594
|
-
m[
|
|
1594
|
+
m[72].defaultValue) && l(r, "href", d);
|
|
1595
1595
|
},
|
|
1596
1596
|
d(m) {
|
|
1597
1597
|
m && h(e);
|
|
1598
1598
|
}
|
|
1599
1599
|
};
|
|
1600
1600
|
}
|
|
1601
|
-
function
|
|
1601
|
+
function it(i) {
|
|
1602
1602
|
let e, t, n;
|
|
1603
1603
|
return {
|
|
1604
1604
|
c() {
|
|
1605
|
-
e =
|
|
1606
|
-
i[
|
|
1607
|
-
i[
|
|
1605
|
+
e = g("img"), Ge(e.src, t = /*field*/
|
|
1606
|
+
i[72].defaultValue) || l(e, "src", t), l(e, "title", n = /*field*/
|
|
1607
|
+
i[72].description), l(e, "alt", "");
|
|
1608
1608
|
},
|
|
1609
1609
|
m(a, r) {
|
|
1610
1610
|
b(a, e, r);
|
|
@@ -1612,23 +1612,23 @@ function tt(i) {
|
|
|
1612
1612
|
p(a, r) {
|
|
1613
1613
|
r[0] & /*receiptFields*/
|
|
1614
1614
|
65536 && !Ge(e.src, t = /*field*/
|
|
1615
|
-
a[
|
|
1615
|
+
a[72].defaultValue) && l(e, "src", t), r[0] & /*receiptFields*/
|
|
1616
1616
|
65536 && n !== (n = /*field*/
|
|
1617
|
-
a[
|
|
1617
|
+
a[72].description) && l(e, "title", n);
|
|
1618
1618
|
},
|
|
1619
1619
|
d(a) {
|
|
1620
1620
|
a && h(e);
|
|
1621
1621
|
}
|
|
1622
1622
|
};
|
|
1623
1623
|
}
|
|
1624
|
-
function
|
|
1624
|
+
function at(i) {
|
|
1625
1625
|
let e, t = (
|
|
1626
1626
|
/*field*/
|
|
1627
|
-
i[
|
|
1627
|
+
i[72].defaultValue + ""
|
|
1628
1628
|
);
|
|
1629
1629
|
return {
|
|
1630
1630
|
c() {
|
|
1631
|
-
e =
|
|
1631
|
+
e = g("span");
|
|
1632
1632
|
},
|
|
1633
1633
|
m(n, a) {
|
|
1634
1634
|
b(n, e, a), e.innerHTML = t;
|
|
@@ -1636,38 +1636,38 @@ function nt(i) {
|
|
|
1636
1636
|
p(n, a) {
|
|
1637
1637
|
a[0] & /*receiptFields*/
|
|
1638
1638
|
65536 && t !== (t = /*field*/
|
|
1639
|
-
n[
|
|
1639
|
+
n[72].defaultValue + "") && (e.innerHTML = t);
|
|
1640
1640
|
},
|
|
1641
1641
|
d(n) {
|
|
1642
1642
|
n && h(e);
|
|
1643
1643
|
}
|
|
1644
1644
|
};
|
|
1645
1645
|
}
|
|
1646
|
-
function
|
|
1646
|
+
function ot(i) {
|
|
1647
1647
|
let e, t, n = (
|
|
1648
1648
|
/*field*/
|
|
1649
|
-
i[
|
|
1649
|
+
i[72].defaultValue + ""
|
|
1650
1650
|
), a, r, o;
|
|
1651
1651
|
function u() {
|
|
1652
1652
|
return (
|
|
1653
1653
|
/*click_handler_2*/
|
|
1654
1654
|
i[48](
|
|
1655
1655
|
/*field*/
|
|
1656
|
-
i[
|
|
1656
|
+
i[72]
|
|
1657
1657
|
)
|
|
1658
1658
|
);
|
|
1659
1659
|
}
|
|
1660
1660
|
return {
|
|
1661
1661
|
c() {
|
|
1662
|
-
e =
|
|
1662
|
+
e = g("div"), t = g("div"), a = R(n), l(e, "class", "QRCode");
|
|
1663
1663
|
},
|
|
1664
1664
|
m(d, m) {
|
|
1665
|
-
b(d, e, m), c(e, t), c(t, a), i[47](t), r || (o =
|
|
1665
|
+
b(d, e, m), c(e, t), c(t, a), i[47](t), r || (o = Re(e, "click", u), r = !0);
|
|
1666
1666
|
},
|
|
1667
1667
|
p(d, m) {
|
|
1668
1668
|
i = d, m[0] & /*receiptFields*/
|
|
1669
1669
|
65536 && n !== (n = /*field*/
|
|
1670
|
-
i[
|
|
1670
|
+
i[72].defaultValue + "") && S(a, n);
|
|
1671
1671
|
},
|
|
1672
1672
|
d(d) {
|
|
1673
1673
|
d && h(e), i[47](null), r = !1, o();
|
|
@@ -1679,20 +1679,20 @@ function l1(i) {
|
|
|
1679
1679
|
function n(o, u) {
|
|
1680
1680
|
return (
|
|
1681
1681
|
/*field*/
|
|
1682
|
-
o[
|
|
1683
|
-
o[14].QRCode ?
|
|
1682
|
+
o[72].type === /*FieldTypes*/
|
|
1683
|
+
o[14].QRCode ? ot : (
|
|
1684
1684
|
/*field*/
|
|
1685
|
-
o[
|
|
1686
|
-
o[14].Html ?
|
|
1685
|
+
o[72].type === /*FieldTypes*/
|
|
1686
|
+
o[14].Html ? at : (
|
|
1687
1687
|
/*field*/
|
|
1688
|
-
o[
|
|
1689
|
-
o[14].Image ?
|
|
1688
|
+
o[72].type === /*FieldTypes*/
|
|
1689
|
+
o[14].Image ? it : (
|
|
1690
1690
|
/*field*/
|
|
1691
|
-
o[
|
|
1692
|
-
o[14].Link ?
|
|
1691
|
+
o[72].type === /*FieldTypes*/
|
|
1692
|
+
o[14].Link ? nt : (
|
|
1693
1693
|
/*field*/
|
|
1694
|
-
o[
|
|
1695
|
-
o[14].Hidden ?
|
|
1694
|
+
o[72].type === /*FieldTypes*/
|
|
1695
|
+
o[14].Hidden ? tt : et
|
|
1696
1696
|
)
|
|
1697
1697
|
)
|
|
1698
1698
|
)
|
|
@@ -1702,7 +1702,7 @@ function l1(i) {
|
|
|
1702
1702
|
let a = n(i), r = a(i);
|
|
1703
1703
|
return {
|
|
1704
1704
|
c() {
|
|
1705
|
-
e =
|
|
1705
|
+
e = g("div"), r.c(), t = v(), l(e, "class", "ReceiptField");
|
|
1706
1706
|
},
|
|
1707
1707
|
m(o, u) {
|
|
1708
1708
|
b(o, e, u), r.m(e, null), c(e, t);
|
|
@@ -1715,18 +1715,18 @@ function l1(i) {
|
|
|
1715
1715
|
}
|
|
1716
1716
|
};
|
|
1717
1717
|
}
|
|
1718
|
-
function
|
|
1718
|
+
function rt(i) {
|
|
1719
1719
|
let e;
|
|
1720
1720
|
function t(r, o) {
|
|
1721
1721
|
return (
|
|
1722
1722
|
/*isLoading*/
|
|
1723
|
-
r[11] ?
|
|
1723
|
+
r[11] ? F1 : Y1
|
|
1724
1724
|
);
|
|
1725
1725
|
}
|
|
1726
1726
|
let n = t(i), a = n(i);
|
|
1727
1727
|
return {
|
|
1728
1728
|
c() {
|
|
1729
|
-
e =
|
|
1729
|
+
e = g("div"), a.c(), l(e, "class", "CashierReceiptPageWidget");
|
|
1730
1730
|
},
|
|
1731
1731
|
m(r, o) {
|
|
1732
1732
|
b(r, e, o), a.m(e, null), i[49](e);
|
|
@@ -1741,44 +1741,44 @@ function at(i) {
|
|
|
1741
1741
|
}
|
|
1742
1742
|
};
|
|
1743
1743
|
}
|
|
1744
|
-
let
|
|
1745
|
-
function
|
|
1744
|
+
let st = "_blank";
|
|
1745
|
+
function lt(i, e, t) {
|
|
1746
1746
|
let n;
|
|
1747
|
-
|
|
1748
|
-
let { endpoint: a } = e, { session: r } = e, { lang: o = "en" } = e, { local: u = "en-US" } = e, { showerrors: d = "true" } = e, { translationurl: m } = e, { assetsurl: p = "" } = e, { customerid: C } = e, { transactionid:
|
|
1749
|
-
var
|
|
1747
|
+
T1(i, A1, (s) => t(24, n = s)), Ie.extend(k1);
|
|
1748
|
+
let { endpoint: a } = e, { session: r } = e, { lang: o = "en" } = e, { local: u = "en-US" } = e, { showerrors: d = "true" } = e, { translationurl: m } = e, { assetsurl: p = "" } = e, { customerid: C } = e, { transactionid: _ } = e, { currencydecimals: y = "0" } = e, { type: w } = e, { clientstyling: I = "" } = e, { clientstylingurl: Y = "" } = e, { mbsource: Z = "" } = e, { showverifications: V = "true" } = e, { paymentmethod: E = "" } = e, K = !1, ie, { customsucceessbuttons: z = "" } = e, { custompendingbuttons: P = "" } = e, { customfailedbuttons: J = "" } = e, { currencysymbol: ae = "" } = e, { currencyposition: me = "" } = e, { userroles: F = "" } = e, { windowsize: oe } = e, { p2p: fe = "false" } = e, ge = [], Q = [];
|
|
1749
|
+
var $;
|
|
1750
1750
|
(function(s) {
|
|
1751
1751
|
s.Success = "Success", s.Maintenance = "Maintenance";
|
|
1752
|
-
})(
|
|
1753
|
-
var
|
|
1752
|
+
})($ || ($ = {}));
|
|
1753
|
+
var M;
|
|
1754
1754
|
(function(s) {
|
|
1755
1755
|
s.Unknown = "Unknown", s.Text = "Text", s.Boolean = "Boolean", s.Number = "Number", s.Money = "Money", s.DateTime = "DateTime", s.Lookup = "Lookup", s.IpAddress = "IpAddress", s.Date = "Date", s.Time = "Time", s.LookupCollection = "LookupCollection", s.Hidden = "Hidden", s.Label = "Label", s.Password = "Password", s.Link = "Link", s.Image = "Image", s.Html = "Html", s.QRCode = "QR";
|
|
1756
|
-
})(
|
|
1757
|
-
const
|
|
1756
|
+
})(M || (M = {}));
|
|
1757
|
+
const we = (s, [B, q]) => [
|
|
1758
1758
|
...s,
|
|
1759
|
-
...Array.isArray(B) ? [...B.map((D) => [D,
|
|
1760
|
-
],
|
|
1761
|
-
[["Unknown", 0],
|
|
1762
|
-
[["Text", 1],
|
|
1763
|
-
[["Boolean", 2],
|
|
1764
|
-
[["Number", 3],
|
|
1765
|
-
[["Money", 4],
|
|
1766
|
-
[["DateTime", 5],
|
|
1767
|
-
[["Lookup", 6],
|
|
1768
|
-
[["IpAddress", 7],
|
|
1769
|
-
[["Date", 8],
|
|
1770
|
-
[["Time", 9],
|
|
1771
|
-
[["LookupCollection", 10],
|
|
1772
|
-
[["Hidden", 11],
|
|
1773
|
-
[["Label", 12],
|
|
1774
|
-
[["Password", 13],
|
|
1775
|
-
[["Link", 14],
|
|
1776
|
-
[["Image", 15],
|
|
1777
|
-
[["Html", 19],
|
|
1778
|
-
[["QR", 20],
|
|
1779
|
-
].reduce(
|
|
1780
|
-
let
|
|
1781
|
-
const
|
|
1759
|
+
...Array.isArray(B) ? [...B.map((D) => [D, q])] : [[B, q]]
|
|
1760
|
+
], Me = new Map([
|
|
1761
|
+
[["Unknown", 0], M.Unknown],
|
|
1762
|
+
[["Text", 1], M.Text],
|
|
1763
|
+
[["Boolean", 2], M.Boolean],
|
|
1764
|
+
[["Number", 3], M.Number],
|
|
1765
|
+
[["Money", 4], M.Money],
|
|
1766
|
+
[["DateTime", 5], M.DateTime],
|
|
1767
|
+
[["Lookup", 6], M.Lookup],
|
|
1768
|
+
[["IpAddress", 7], M.IpAddress],
|
|
1769
|
+
[["Date", 8], M.Date],
|
|
1770
|
+
[["Time", 9], M.Time],
|
|
1771
|
+
[["LookupCollection", 10], M.LookupCollection],
|
|
1772
|
+
[["Hidden", 11], M.Hidden],
|
|
1773
|
+
[["Label", 12], M.Label],
|
|
1774
|
+
[["Password", 13], M.Password],
|
|
1775
|
+
[["Link", 14], M.Link],
|
|
1776
|
+
[["Image", 15], M.Image],
|
|
1777
|
+
[["Html", 19], M.Html],
|
|
1778
|
+
[["QR", 20], M.QRCode]
|
|
1779
|
+
].reduce(we, []));
|
|
1780
|
+
let k, re = [], ye, A, ee = [], te, se, le = "", Te = window.navigator.userAgent, ce = !1, Ce = !1;
|
|
1781
|
+
const he = {
|
|
1782
1782
|
promotions: {
|
|
1783
1783
|
event: "Cashier:goToPromotions",
|
|
1784
1784
|
translationKey: "goToPromotions",
|
|
@@ -1834,29 +1834,29 @@ function rt(i, e, t) {
|
|
|
1834
1834
|
translationKey: "close",
|
|
1835
1835
|
type: "CloseButton"
|
|
1836
1836
|
}
|
|
1837
|
-
},
|
|
1838
|
-
t(12,
|
|
1839
|
-
|
|
1837
|
+
}, O = (s) => {
|
|
1838
|
+
t(12, ge = []), s.split(",").forEach((q) => {
|
|
1839
|
+
he[q.trim()] && ge.push(he[q.trim()]);
|
|
1840
1840
|
});
|
|
1841
|
-
},
|
|
1842
|
-
|
|
1841
|
+
}, ke = () => {
|
|
1842
|
+
j1(o);
|
|
1843
1843
|
};
|
|
1844
|
-
|
|
1845
|
-
window.removeEventListener("message",
|
|
1844
|
+
v1(() => (window.addEventListener("message", G, !1), I1(u, ae, me, y), () => {
|
|
1845
|
+
window.removeEventListener("message", G);
|
|
1846
1846
|
}));
|
|
1847
|
-
const
|
|
1847
|
+
const G = (s) => {
|
|
1848
1848
|
var B;
|
|
1849
1849
|
switch (s.data.type) {
|
|
1850
1850
|
case "CloseReceiptInSecondTab":
|
|
1851
1851
|
(B = window.opener) == null || B.postMessage(s.data);
|
|
1852
1852
|
break;
|
|
1853
1853
|
}
|
|
1854
|
-
},
|
|
1854
|
+
}, ve = () => {
|
|
1855
1855
|
let s = m;
|
|
1856
1856
|
if (s)
|
|
1857
1857
|
return fetch(s).then((B) => B.json()).then((B) => {
|
|
1858
|
-
Object.keys(B).forEach((
|
|
1859
|
-
Xe(
|
|
1858
|
+
Object.keys(B).forEach((q) => {
|
|
1859
|
+
Xe(q, B[q]);
|
|
1860
1860
|
});
|
|
1861
1861
|
}).catch(() => {
|
|
1862
1862
|
});
|
|
@@ -1864,32 +1864,34 @@ function rt(i, e, t) {
|
|
|
1864
1864
|
Object.keys(Je).forEach((s) => {
|
|
1865
1865
|
Xe(s, Je[s]);
|
|
1866
1866
|
});
|
|
1867
|
-
const
|
|
1867
|
+
const ue = () => {
|
|
1868
1868
|
window.postMessage({ type: "CloseCashierReceiptPage" }, window.location.href);
|
|
1869
|
-
},
|
|
1869
|
+
}, _e = () => {
|
|
1870
1870
|
window.postMessage(
|
|
1871
1871
|
{
|
|
1872
1872
|
type: "ErrorResponseCode",
|
|
1873
|
-
errorResponseCode:
|
|
1874
|
-
showErrorOutsideReceiptPage:
|
|
1873
|
+
errorResponseCode: te,
|
|
1874
|
+
showErrorOutsideReceiptPage: se
|
|
1875
1875
|
},
|
|
1876
1876
|
window.location.href
|
|
1877
1877
|
);
|
|
1878
|
-
},
|
|
1878
|
+
}, De = () => {
|
|
1879
|
+
Ce || (Ce = !0, Le("cashier_receipt_refresh", { transactionType: k.type })), xe();
|
|
1880
|
+
}, xe = () => {
|
|
1879
1881
|
const s = new URL(`${a}/v1/player/${C}/payment/GetPaymentInfo`), B = new Headers();
|
|
1880
|
-
B.append("accept", "application/json"), B.append("Content-Type", "application/json"), B.append("X-SessionId", `${r}`), B.append("X-Client-Request-Timestamp",
|
|
1881
|
-
const
|
|
1882
|
+
B.append("accept", "application/json"), B.append("Content-Type", "application/json"), B.append("X-SessionId", `${r}`), B.append("X-Client-Request-Timestamp", Ie.utc().format("YYYY-MM-DD HH:mm:ss.SSS")), Q.indexOf("MM_CHANNEL_BETA") != -1 && B.append("MM_CHANNEL", "BETA");
|
|
1883
|
+
const q = {
|
|
1882
1884
|
method: "POST",
|
|
1883
1885
|
headers: B,
|
|
1884
|
-
body: JSON.stringify({ TransactionCode:
|
|
1886
|
+
body: JSON.stringify({ TransactionCode: _ })
|
|
1885
1887
|
};
|
|
1886
|
-
t(11, K = !0), fetch(s,
|
|
1888
|
+
t(11, K = !0), fetch(s, q).then((D) => D.json()).then((D) => {
|
|
1887
1889
|
var ze, Pe, We, Ae, je, Ze, Ee, Ve, Ne, Ke, Ue;
|
|
1888
|
-
if (D.ResponseCode !==
|
|
1889
|
-
t(19,
|
|
1890
|
+
if (D.ResponseCode !== $.Success) {
|
|
1891
|
+
t(19, te = D.ResponseCode), t(20, se = d.toLowerCase() === "false" || !d), _e();
|
|
1890
1892
|
return;
|
|
1891
1893
|
}
|
|
1892
|
-
switch (t(15,
|
|
1894
|
+
switch (t(15, k = {
|
|
1893
1895
|
type: D.Transaction.Type,
|
|
1894
1896
|
referenceId: D.Transaction.Code,
|
|
1895
1897
|
status: (ze = D.Transaction.Status) == null ? void 0 : ze.Status,
|
|
@@ -1897,44 +1899,45 @@ function rt(i, e, t) {
|
|
|
1897
1899
|
amount: (We = D.Transaction.Amounts[0]) == null ? void 0 : We.Amount,
|
|
1898
1900
|
currency: (Ae = D.Transaction.Amounts[0]) == null ? void 0 : Ae.Currency,
|
|
1899
1901
|
time: D.Transaction.Status.Created
|
|
1900
|
-
}), t(16,
|
|
1901
|
-
type:
|
|
1902
|
-
name:
|
|
1903
|
-
description:
|
|
1904
|
-
defaultValue:
|
|
1905
|
-
useCopyButton:
|
|
1906
|
-
usePrintButton:
|
|
1907
|
-
})) : []), D.ReceiptInfo && D.ReceiptInfo.ReceiptFields && !E && t(0, E =
|
|
1902
|
+
}), t(16, re = D.ReceiptInfo && D.ReceiptInfo.ReceiptFields ? D.ReceiptInfo.ReceiptFields.map((ne) => ({
|
|
1903
|
+
type: Me.get(ne.Type),
|
|
1904
|
+
name: ne.Name,
|
|
1905
|
+
description: ne.Description,
|
|
1906
|
+
defaultValue: ne.DefaultValue,
|
|
1907
|
+
useCopyButton: ne.UseCopyButton,
|
|
1908
|
+
usePrintButton: ne.UsePrintButton
|
|
1909
|
+
})) : []), D.ReceiptInfo && D.ReceiptInfo.ReceiptFields && !E && t(0, E = re[0].defaultValue), n(E1(k.status, k.type), { values: { errorText: k.message } }), t(17, ye = _1(Number(k.amount), k.currency)), Le("cashier_submit", {
|
|
1910
|
+
transactionType: k.type,
|
|
1911
|
+
method: E,
|
|
1912
|
+
transactionStatus: k.status
|
|
1913
|
+
}), k.status) {
|
|
1908
1914
|
case "Voided":
|
|
1909
1915
|
case "Success":
|
|
1910
|
-
if (
|
|
1911
|
-
const
|
|
1916
|
+
if (O(z || "casino, livecasino, tournaments"), t(21, le = "success"), k.type === "Deposit") {
|
|
1917
|
+
const ne = (Ze = (je = D.Transaction) == null ? void 0 : je.Flags) == null ? void 0 : Ze.NewDepositCustomer, be = (Ee = D == null ? void 0 : D.Transaction) == null ? void 0 : Ee.Payloads;
|
|
1912
1918
|
window.postMessage(
|
|
1913
1919
|
{
|
|
1914
|
-
type:
|
|
1920
|
+
type: ne === "True" ? "FirstDeposit" : "ConfirmedDeposit",
|
|
1915
1921
|
method: E,
|
|
1916
|
-
amount:
|
|
1917
|
-
currency:
|
|
1918
|
-
depositType: (Ve =
|
|
1919
|
-
publicPaymentId: (Ne =
|
|
1922
|
+
amount: k.amount,
|
|
1923
|
+
currency: k.currency,
|
|
1924
|
+
depositType: (Ve = be == null ? void 0 : be.TagManagerDepositType) != null ? Ve : "",
|
|
1925
|
+
publicPaymentId: (Ne = be == null ? void 0 : be.TagManagerCode) != null ? Ne : ""
|
|
1920
1926
|
},
|
|
1921
1927
|
window.location.href
|
|
1922
1928
|
);
|
|
1923
1929
|
}
|
|
1924
|
-
|
|
1925
|
-
|
|
1930
|
+
Le(
|
|
1931
|
+
k.type === "Deposit" ? "deposit_success" : "withdrawal_success",
|
|
1926
1932
|
{
|
|
1927
1933
|
userID: C,
|
|
1928
|
-
amount:
|
|
1929
|
-
currency:
|
|
1930
|
-
transactionId:
|
|
1934
|
+
amount: k.amount,
|
|
1935
|
+
currency: k.currency,
|
|
1936
|
+
transactionId: k.referenceId,
|
|
1931
1937
|
method: E,
|
|
1932
1938
|
isFirstDeposit: ((Ue = (Ke = D.Transaction) == null ? void 0 : Ke.Flags) == null ? void 0 : Ue.NewDepositCustomer) === "True"
|
|
1933
1939
|
}
|
|
1934
|
-
)
|
|
1935
|
-
transactionType: _.type,
|
|
1936
|
-
method: E
|
|
1937
|
-
});
|
|
1940
|
+
);
|
|
1938
1941
|
break;
|
|
1939
1942
|
case "PendingNotification":
|
|
1940
1943
|
case "PendingConfirmation":
|
|
@@ -1942,82 +1945,82 @@ function rt(i, e, t) {
|
|
|
1942
1945
|
case "PendingApprovalStage2":
|
|
1943
1946
|
case "PendingApprovalStage3":
|
|
1944
1947
|
case "PendingOfflineNotification":
|
|
1945
|
-
|
|
1948
|
+
O(P || "casino, livecasino, tournaments"), t(21, le = "pending");
|
|
1946
1949
|
break;
|
|
1947
1950
|
case "Rejected":
|
|
1948
1951
|
case "Cancelled":
|
|
1949
1952
|
case "Failed":
|
|
1950
|
-
|
|
1951
|
-
|
|
1953
|
+
O(J || "casino, livecasino, tournaments"), t(21, le = k.status.toLowerCase()), Le(
|
|
1954
|
+
k.type === "Deposit" ? "deposit_failed" : "withdrawal_failed",
|
|
1952
1955
|
{
|
|
1953
1956
|
userID: C,
|
|
1954
|
-
amount:
|
|
1955
|
-
currency:
|
|
1956
|
-
failureReason:
|
|
1957
|
+
amount: k.amount,
|
|
1958
|
+
currency: k.currency,
|
|
1959
|
+
failureReason: k.message
|
|
1957
1960
|
}
|
|
1958
|
-
), V === "true" && t(22,
|
|
1961
|
+
), V === "true" && t(22, ce = !0);
|
|
1959
1962
|
break;
|
|
1960
1963
|
default:
|
|
1961
|
-
|
|
1964
|
+
O("close");
|
|
1962
1965
|
}
|
|
1963
|
-
p ?
|
|
1966
|
+
p ? Z1(p, k.status) : V1(k.status);
|
|
1964
1967
|
}).finally(() => t(11, K = !1));
|
|
1965
|
-
},
|
|
1968
|
+
}, X = (s) => {
|
|
1966
1969
|
window.postMessage({ type: s }, window.location.href);
|
|
1967
|
-
},
|
|
1970
|
+
}, W = (s) => {
|
|
1968
1971
|
s && window.postMessage(
|
|
1969
1972
|
{
|
|
1970
1973
|
type: "NavigateTo",
|
|
1971
1974
|
path: s,
|
|
1972
|
-
target:
|
|
1975
|
+
target: st,
|
|
1973
1976
|
externalLink: !1
|
|
1974
1977
|
},
|
|
1975
1978
|
window.location.href
|
|
1976
1979
|
);
|
|
1977
1980
|
};
|
|
1978
|
-
let
|
|
1979
|
-
const
|
|
1981
|
+
let H, Se;
|
|
1982
|
+
const de = (s, B = !0) => Ye(this, null, function* () {
|
|
1980
1983
|
const D = s.currentTarget.innerHTML;
|
|
1981
1984
|
if (D && navigator.clipboard && navigator.clipboard.writeText)
|
|
1982
1985
|
try {
|
|
1983
|
-
yield navigator.clipboard.writeText(D), B && (t(23,
|
|
1986
|
+
yield navigator.clipboard.writeText(D), B && (t(23, H = !0), clearTimeout(Se), Se = setTimeout(
|
|
1984
1987
|
() => {
|
|
1985
|
-
t(23,
|
|
1988
|
+
t(23, H = !1);
|
|
1986
1989
|
},
|
|
1987
1990
|
2e3
|
|
1988
1991
|
));
|
|
1989
1992
|
} catch (ze) {
|
|
1990
1993
|
console.error("Clipboard API failed:", ze);
|
|
1991
1994
|
}
|
|
1992
|
-
}),
|
|
1993
|
-
F.length > 0 && (
|
|
1994
|
-
},
|
|
1995
|
-
function
|
|
1995
|
+
}), U = () => {
|
|
1996
|
+
F.length > 0 && (Q = F.split(","));
|
|
1997
|
+
}, j = (s) => de(s), f = (s) => X(s.event);
|
|
1998
|
+
function T(s) {
|
|
1996
1999
|
Fe[s ? "unshift" : "push"](() => {
|
|
1997
|
-
|
|
2000
|
+
ee[ee.length] = s, t(18, ee);
|
|
1998
2001
|
});
|
|
1999
2002
|
}
|
|
2000
|
-
const
|
|
2001
|
-
|
|
2003
|
+
const d1 = (s) => {
|
|
2004
|
+
W(s.description);
|
|
2002
2005
|
};
|
|
2003
|
-
function
|
|
2006
|
+
function p1(s) {
|
|
2004
2007
|
Fe[s ? "unshift" : "push"](() => {
|
|
2005
2008
|
A = s, t(10, A);
|
|
2006
2009
|
});
|
|
2007
2010
|
}
|
|
2008
2011
|
return i.$$set = (s) => {
|
|
2009
|
-
"endpoint" in s && t(1, a = s.endpoint), "session" in s && t(2, r = s.session), "lang" in s && t(3, o = s.lang), "local" in s && t(31, u = s.local), "showerrors" in s && t(32, d = s.showerrors), "translationurl" in s && t(4, m = s.translationurl), "assetsurl" in s && t(5, p = s.assetsurl), "customerid" in s && t(6, C = s.customerid), "transactionid" in s && t(33,
|
|
2012
|
+
"endpoint" in s && t(1, a = s.endpoint), "session" in s && t(2, r = s.session), "lang" in s && t(3, o = s.lang), "local" in s && t(31, u = s.local), "showerrors" in s && t(32, d = s.showerrors), "translationurl" in s && t(4, m = s.translationurl), "assetsurl" in s && t(5, p = s.assetsurl), "customerid" in s && t(6, C = s.customerid), "transactionid" in s && t(33, _ = s.transactionid), "currencydecimals" in s && t(34, y = s.currencydecimals), "type" in s && t(35, w = s.type), "clientstyling" in s && t(7, I = s.clientstyling), "clientstylingurl" in s && t(8, Y = s.clientstylingurl), "mbsource" in s && t(36, Z = s.mbsource), "showverifications" in s && t(9, V = s.showverifications), "paymentmethod" in s && t(0, E = s.paymentmethod), "customsucceessbuttons" in s && t(37, z = s.customsucceessbuttons), "custompendingbuttons" in s && t(38, P = s.custompendingbuttons), "customfailedbuttons" in s && t(39, J = s.customfailedbuttons), "currencysymbol" in s && t(40, ae = s.currencysymbol), "currencyposition" in s && t(41, me = s.currencyposition), "userroles" in s && t(42, F = s.userroles), "windowsize" in s && t(43, oe = s.windowsize), "p2p" in s && t(44, fe = s.p2p);
|
|
2010
2013
|
}, i.$$.update = () => {
|
|
2011
2014
|
i.$$.dirty[1] & /*userroles*/
|
|
2012
|
-
2048 && F &&
|
|
2015
|
+
2048 && F && U(), i.$$.dirty[0] & /*endpoint, session, customerid*/
|
|
2013
2016
|
70 | i.$$.dirty[1] & /*transactionid, showerrors*/
|
|
2014
|
-
6 && a && r && C &&
|
|
2015
|
-
8 && o &&
|
|
2016
|
-
24 && o && m &&
|
|
2017
|
-
1152 && I && A &&
|
|
2018
|
-
1280 && Y && A &&
|
|
2017
|
+
6 && a && r && C && _ && d && xe(), i.$$.dirty[0] & /*lang*/
|
|
2018
|
+
8 && o && ke(), i.$$.dirty[0] & /*lang, translationurl*/
|
|
2019
|
+
24 && o && m && ve(), i.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
2020
|
+
1152 && I && A && B1(A, I), i.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
2021
|
+
1280 && Y && A && H1(A, Y), i.$$.dirty[0] & /*customStylingContainer*/
|
|
2019
2022
|
1024 | i.$$.dirty[1] & /*mbsource*/
|
|
2020
|
-
32 && Z && A &&
|
|
2023
|
+
32 && Z && A && P1(A, `${Z}.Style`, ie);
|
|
2021
2024
|
}, [
|
|
2022
2025
|
E,
|
|
2023
2026
|
a,
|
|
@@ -2031,54 +2034,54 @@ function rt(i, e, t) {
|
|
|
2031
2034
|
V,
|
|
2032
2035
|
A,
|
|
2033
2036
|
K,
|
|
2034
|
-
|
|
2035
|
-
J,
|
|
2036
|
-
R,
|
|
2037
|
-
_,
|
|
2038
|
-
se,
|
|
2039
|
-
ke,
|
|
2037
|
+
ge,
|
|
2040
2038
|
$,
|
|
2039
|
+
M,
|
|
2040
|
+
k,
|
|
2041
|
+
re,
|
|
2042
|
+
ye,
|
|
2041
2043
|
ee,
|
|
2044
|
+
te,
|
|
2045
|
+
se,
|
|
2042
2046
|
le,
|
|
2043
2047
|
ce,
|
|
2044
|
-
|
|
2045
|
-
q,
|
|
2048
|
+
H,
|
|
2046
2049
|
n,
|
|
2047
|
-
|
|
2048
|
-
|
|
2049
|
-
|
|
2050
|
-
|
|
2051
|
-
Se,
|
|
2050
|
+
Te,
|
|
2051
|
+
ue,
|
|
2052
|
+
De,
|
|
2053
|
+
X,
|
|
2052
2054
|
W,
|
|
2055
|
+
de,
|
|
2053
2056
|
u,
|
|
2054
2057
|
d,
|
|
2055
|
-
|
|
2058
|
+
_,
|
|
2056
2059
|
y,
|
|
2057
2060
|
w,
|
|
2058
2061
|
Z,
|
|
2059
2062
|
z,
|
|
2060
|
-
|
|
2061
|
-
|
|
2062
|
-
|
|
2063
|
+
P,
|
|
2064
|
+
J,
|
|
2065
|
+
ae,
|
|
2063
2066
|
me,
|
|
2064
2067
|
F,
|
|
2065
|
-
|
|
2066
|
-
|
|
2067
|
-
we,
|
|
2068
|
-
U,
|
|
2068
|
+
oe,
|
|
2069
|
+
fe,
|
|
2069
2070
|
j,
|
|
2070
|
-
|
|
2071
|
-
T
|
|
2071
|
+
f,
|
|
2072
|
+
T,
|
|
2073
|
+
d1,
|
|
2074
|
+
p1
|
|
2072
2075
|
];
|
|
2073
2076
|
}
|
|
2074
|
-
class
|
|
2077
|
+
class ct extends h1 {
|
|
2075
2078
|
constructor(e) {
|
|
2076
|
-
super(),
|
|
2079
|
+
super(), b1(
|
|
2077
2080
|
this,
|
|
2078
2081
|
e,
|
|
2082
|
+
lt,
|
|
2079
2083
|
rt,
|
|
2080
|
-
|
|
2081
|
-
h1,
|
|
2084
|
+
w1,
|
|
2082
2085
|
{
|
|
2083
2086
|
endpoint: 1,
|
|
2084
2087
|
session: 2,
|
|
@@ -2105,7 +2108,7 @@ class st extends f1 {
|
|
|
2105
2108
|
windowsize: 43,
|
|
2106
2109
|
p2p: 44
|
|
2107
2110
|
},
|
|
2108
|
-
|
|
2111
|
+
U1,
|
|
2109
2112
|
[-1, -1, -1]
|
|
2110
2113
|
);
|
|
2111
2114
|
}
|
|
@@ -2254,7 +2257,7 @@ class st extends f1 {
|
|
|
2254
2257
|
this.$$set({ p2p: e }), L();
|
|
2255
2258
|
}
|
|
2256
2259
|
}
|
|
2257
|
-
|
|
2260
|
+
W1(ct, { endpoint: {}, session: {}, lang: {}, local: {}, showerrors: {}, translationurl: {}, assetsurl: {}, customerid: {}, transactionid: {}, currencydecimals: {}, type: {}, clientstyling: {}, clientstylingurl: {}, mbsource: {}, showverifications: {}, paymentmethod: {}, customsucceessbuttons: {}, custompendingbuttons: {}, customfailedbuttons: {}, currencysymbol: {}, currencyposition: {}, userroles: {}, windowsize: {}, p2p: {} }, [], [], !0);
|
|
2258
2261
|
export {
|
|
2259
|
-
|
|
2262
|
+
ct as default
|
|
2260
2263
|
};
|