@everymatrix/cashier-page 1.73.0 → 1.73.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/{CashierConfirmModal-BCk4hvRj.js → CashierConfirmModal-Bl65cs4j.js} +505 -470
- package/components/CashierConfirmModal-Dbth1Vwp.cjs +4 -0
- package/components/{CashierConfirmModal-DXlKhIue.js → CashierConfirmModal-DiJy6WCC.js} +359 -324
- package/components/CashierError-CUi7dlhw.cjs +5 -0
- package/components/CashierError-DT8XXsZb.js +3798 -0
- package/components/CashierError-sabBjpnx.js +3798 -0
- package/components/{CashierHeader-DtS_U-De.js → CashierHeader-B_TbzRzY.js} +181 -184
- package/components/CashierHeader-C87PEbuI.cjs +1 -0
- package/components/{CashierHeader-86wrgmgP.js → CashierHeader-CRNLSN-X.js} +182 -185
- package/components/{CashierIframeRedirect-Xzpx4Rjk.js → CashierIframeRedirect-DcI_fdtE.js} +79 -109
- package/components/CashierIframeRedirect-q6Z4Yxd2.cjs +1 -0
- package/components/{CashierIframeRedirect-CmqcfGcT.js → CashierIframeRedirect-zBfOGfH0.js} +79 -109
- package/components/{CashierMethodDetails-oVkmdGDk.js → CashierMethodDetails-BSFTmQGh.js} +985 -999
- package/components/{CashierMethodDetails-Cf6KUGlj.cjs → CashierMethodDetails-Bn2T2uqA.cjs} +6 -6
- package/components/{CashierMethodDetails-DaUlJ18Q.js → CashierMethodDetails-Dw38VRXT.js} +977 -991
- package/components/{CashierMethodsList-bnXzA9E8.js → CashierMethodsList-BoxBSxdg.js} +372 -392
- package/components/CashierMethodsList-BraJmcfY.cjs +1 -0
- package/components/{CashierMethodsList-BKtn4kYZ.js → CashierMethodsList-DpB8OQgM.js} +354 -374
- package/components/CashierModal-BUzTqeZq.cjs +1 -0
- package/components/{CashierModal-B4b12-Am.js → CashierModal-C9DRbWKa.js} +24 -25
- package/components/{CashierModal-DCgiaC4V.js → CashierModal-l0r5lSbV.js} +28 -29
- package/components/{CashierNotifications-CWqwdi55.js → CashierNotifications-BRaPHw0O.js} +3 -3
- package/components/{CashierNotifications-BLJS7gpv.cjs → CashierNotifications-BrGm-gyx.cjs} +1 -1
- package/components/{CashierNotifications-BZCaBrRm.js → CashierNotifications-C60PYJS0.js} +9 -9
- package/components/{CashierPage-K6Sfcy3_.cjs → CashierPage-9Ld9PtFx.cjs} +1 -1
- package/components/{CashierPage-qGww6KeO.js → CashierPage-DPeHCblC.js} +617 -533
- package/components/{CashierPage-BhUYgsyn.js → CashierPage-Kr04tUC9.js} +612 -528
- package/components/{CashierReceiptPage-Hvc3tNuq.js → CashierReceiptPage-BJsytdmQ.js} +47 -47
- package/components/{CashierReceiptPage-BePAYhQV.js → CashierReceiptPage-D8xJxpP4.js} +47 -47
- package/components/CashierReceiptPage-Y3xANFuN.cjs +1 -0
- package/components/CashierSessionExpirationModal-B5KZiMN1.cjs +2 -0
- package/components/{CashierSessionExpirationModal-DfMX7unr.js → CashierSessionExpirationModal-CLmExJ5_.js} +13 -14
- package/components/{CashierSessionExpirationModal-C24hf-_h.js → CashierSessionExpirationModal-COQu8IVr.js} +13 -14
- package/components/{CashierSpinner-BdeNFm1c.js → CashierSpinner-CC_b-bLQ.js} +10 -11
- package/components/{CashierSpinner-COjPdCUV.js → CashierSpinner-DGvxbV84.js} +6 -7
- package/components/CashierSpinner-Dek1XIlD.cjs +1 -0
- package/components/{CashierTransactionHistory-BtkomNSc.js → CashierTransactionHistory-BtCGDpsh.js} +83 -84
- package/components/{CashierTransactionHistory-BgDq7hN9.js → CashierTransactionHistory-_dzkXj9B.js} +69 -70
- package/components/CashierTransactionHistory-yWcSzIDX.cjs +1 -0
- package/components/{CashierVerifications-7QimQj7T.js → CashierVerifications-CFZOQaUC.js} +31 -32
- package/components/CashierVerifications-Deeuh5dM.cjs +1 -0
- package/components/{CashierVerifications-tYl7M23B.js → CashierVerifications-df_pAaWn.js} +31 -32
- package/components/CashierVideoModal-BVDx9GT8.cjs +1 -0
- package/components/{CashierVideoModal-D4tXmX3D.js → CashierVideoModal-C4pk_kaX.js} +28 -29
- package/components/{CashierVideoModal-CM_ySf75.js → CashierVideoModal-DfOU6IDE.js} +35 -36
- package/es2015/cashier-page.cjs +1 -1
- package/es2015/cashier-page.js +1 -1
- package/esnext/cashier-page.js +1 -1
- package/package.json +1 -1
- package/components/CashierConfirmModal-DMmJumcl.cjs +0 -4
- package/components/CashierError-BydkW7s_.js +0 -3800
- package/components/CashierError-Dpt_Z7yL.cjs +0 -5
- package/components/CashierError-Dz_HsnJl.js +0 -3800
- package/components/CashierHeader-BXKYku0i.cjs +0 -1
- package/components/CashierIframeRedirect-BARMuRTc.cjs +0 -1
- package/components/CashierMethodsList-BmNbGD7c.cjs +0 -1
- package/components/CashierModal-C-yyjQ8m.cjs +0 -1
- package/components/CashierReceiptPage-B5GxOKJ9.cjs +0 -1
- package/components/CashierSessionExpirationModal-BCKPn-ln.cjs +0 -2
- package/components/CashierSpinner-CpkB8Zoj.cjs +0 -1
- package/components/CashierTransactionHistory-siYwxijY.cjs +0 -1
- package/components/CashierVerifications-CjEiYZ7G.cjs +0 -1
- package/components/CashierVideoModal-CZSRGjh-.cjs +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CashierConfirmModal-Dbth1Vwp.cjs");function h(n){t.append_styles(n,"svelte-sjjtuo",".CashierSpinner{display:block;width:var(--emw--spinner-size, 32px);height:var(--emw--spinner-size, 32px);position:absolute;top:var(--emw--spinner-top-position, 50%);left:var(--emw--spinner-left-position, 50%);transform:translate(-50%, -50%);z-index:1}.CashierSpinner .spinner{animation:rotate 2s linear infinite;transform-origin:center center}.CashierSpinner .spinner .path{stroke-dasharray:1, 200;stroke-dashoffset:0;animation:dash 1.5s ease-in-out infinite;stroke-linecap:round;stroke-width:var(--emw--stroke-width, 2px);stroke:var(--emw--spinner-color, #2dcc70)}@keyframes rotate{100%{transform:rotate(360deg)}}@keyframes dash{0%{stroke-dasharray:1, 200;stroke-dashoffset:0}50%{stroke-dasharray:89, 200;stroke-dashoffset:-35px}100%{stroke-dasharray:89, 200;stroke-dashoffset:-124px}}")}function d(n){let e;return{c(){e=t.element("div"),e.innerHTML='<svg class="spinner" viewBox="25 25 50 50"><circle class="path" cx="50" cy="50" r="20" fill="none" stroke-miterlimit="10"></circle></svg>',t.attr(e,"class","CashierSpinner")},m(r,l){t.insert(r,e,l),n[4](e)},p:t.noop,i:t.noop,o:t.noop,d(r){r&&t.detach(e),n[4](null)}}}function f(n,e,r){let{clientstyling:l=""}=e,{clientstylingurl:o=""}=e,{mbsource:a=""}=e,i;t.onMount(()=>()=>{});function u(s){t.binding_callbacks[s?"unshift":"push"](()=>{i=s,r(0,i)})}return n.$$set=s=>{"clientstyling"in s&&r(1,l=s.clientstyling),"clientstylingurl"in s&&r(2,o=s.clientstylingurl),"mbsource"in s&&r(3,a=s.mbsource)},n.$$.update=()=>{n.$$.dirty&3&&l&&i&&t.setClientStyling(i,l),n.$$.dirty&5&&o&&i&&t.setClientStylingURL(i,o),n.$$.dirty&9&&a&&i&&t.setStreamStyling(i,`${a}.Style`)},[i,l,o,a,u]}class c extends t.SvelteComponent{constructor(e){super(),t.init(this,e,f,d,t.safe_not_equal,{clientstyling:1,clientstylingurl:2,mbsource:3},h)}get clientstyling(){return this.$$.ctx[1]}set clientstyling(e){this.$$set({clientstyling:e}),t.flush()}get clientstylingurl(){return this.$$.ctx[2]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),t.flush()}get mbsource(){return this.$$.ctx[3]}set mbsource(e){this.$$set({mbsource:e}),t.flush()}}t.create_custom_element(c,{clientstyling:{},clientstylingurl:{},mbsource:{}},[],[],!0);exports.default=c;
|
package/components/{CashierTransactionHistory-BtkomNSc.js → CashierTransactionHistory-BtCGDpsh.js}
RENAMED
|
@@ -1,16 +1,15 @@
|
|
|
1
|
-
import { S as it, b as nt, s as at, f as M, c as lt, n as J, e as E, m as
|
|
2
|
-
import { f as
|
|
3
|
-
import { a as
|
|
4
|
-
import { d as
|
|
5
|
-
|
|
6
|
-
bt({
|
|
1
|
+
import { S as it, b as nt, s as at, f as M, c as lt, n as J, e as E, m as U, p as v, v as e, w as rt, x as ot, B as ct, N as X, O as ut, g as Q, k as dt, t as ht, l as ft, z as O, o as r, q as L, A as j, E as q, Y as mt, J as vt, Z as gt, M as V, C as pt, Q as k, F as yt, G as wt, H as Tt, I as _t } from "./CashierConfirmModal-Bl65cs4j.js";
|
|
2
|
+
import { f as Z } from "./CashierModal-C9DRbWKa.js";
|
|
3
|
+
import { a as bt, $ as xt, i as kt, b as Ct } from "./CashierError-sabBjpnx.js";
|
|
4
|
+
import { d as St } from "./CashierMethodDetails-BSFTmQGh.js";
|
|
5
|
+
kt({
|
|
7
6
|
fallbackLocale: "en"
|
|
8
7
|
});
|
|
9
|
-
function
|
|
10
|
-
|
|
8
|
+
function K(a, t) {
|
|
9
|
+
bt(a, t);
|
|
11
10
|
}
|
|
12
11
|
function Ht(a) {
|
|
13
|
-
|
|
12
|
+
xt.set(a);
|
|
14
13
|
}
|
|
15
14
|
const $ = {
|
|
16
15
|
en: {
|
|
@@ -52,14 +51,14 @@ const $ = {
|
|
|
52
51
|
}
|
|
53
52
|
}
|
|
54
53
|
};
|
|
55
|
-
function
|
|
54
|
+
function zt(a) {
|
|
56
55
|
lt(a, "svelte-1cus01h", ".svelte-1cus01h.svelte-1cus01h,.svelte-1cus01h.svelte-1cus01h::before,.svelte-1cus01h.svelte-1cus01h::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-style:inherit}.CopyTooltip.svelte-1cus01h.svelte-1cus01h{width:50%;display:flex;align-items:center;justify-content:center;background-color:var(--emw--color-primary, #7EC51E);position:absolute;top:-6px;left:50%;transform:translateX(-50%);color:var(--emw--color-white, #FFF);border-radius:var(--mmw--border-radius-medium-plus, 6px);z-index:1;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:4px}.CashierTransactionHistoryContainer.svelte-1cus01h.svelte-1cus01h{position:relative}.CashierTransactionHistory.svelte-1cus01h.svelte-1cus01h{display:flex;flex-direction:column;position:relative;width:100%;row-gap:var(--emw--spacing-small, 12px);container-name:transaction-history;container-type:inline-size;margin-bottom:var(--emw--spacing-small, 12px)}.CashierTransactionHistory.svelte-1cus01h table.svelte-1cus01h{font-size:var(--emw--font-size-medium, 16px);word-break:break-all;width:100%;border-collapse:collapse;box-sizing:border-box;overflow:hidden;text-overflow:ellipsis;margin-bottom:var(--emw--spacing-small-minus, 10px)}.CashierTransactionHistory.svelte-1cus01h table.svelte-1cus01h:not(:last-child){margin-bottom:var(--emw--spacing-large, 20px)}.CashierTransactionHistory.svelte-1cus01h thead tr.svelte-1cus01h{border-bottom:1px solid var(--mmw--color-grey-105, #E8E9EB);color:var(--mmw--color-grey-10, #111);height:50px}.CashierTransactionHistory.svelte-1cus01h tbody tr.svelte-1cus01h{color:var(--mmw--color-grey-290, #666)}.CashierTransactionHistory.svelte-1cus01h td.svelte-1cus01h{max-width:250px;vertical-align:middle;height:40px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:0 var(--emw--spacing-large, 20px) 0 var(--emw--spacing-small, 12px)}.CashierTransactionHistory.svelte-1cus01h td:last-child .CashierTransactionHistoryStatusText.svelte-1cus01h{width:calc(100% - var(--emw--spacing-2x-small-plus, 6px) * 3 - 5px);display:block}.CashierTransactionHistory.svelte-1cus01h tr.svelte-1cus01h{position:relative}@container transaction-history (width < 750px){.CashierTransactionHistory.svelte-1cus01h .CopyTooltip.svelte-1cus01h{width:100%}.CashierTransactionHistory.svelte-1cus01h .CashierTransactionId.svelte-1cus01h{max-width:135px}.CashierTransactionHistory.svelte-1cus01h td.svelte-1cus01h{padding:0 var(--emw--spacing-small, 12px) 0 var(--emw--spacing-small, 12px)}}@container transaction-history (width < 475px){.CashierTransactionHistory.svelte-1cus01h .CashierTransactionHistoryWrapper.svelte-1cus01h{padding:0 var(--emw--spacing-2x-small-plus, 6px)}.CashierTransactionHistory.svelte-1cus01h td.svelte-1cus01h{padding:0 var(--emw--spacing-2x-small-plus, 6px)}.CashierTransactionHistory.svelte-1cus01h td.svelte-1cus01h:first-child{max-width:60px}}@container transaction-history (width < 350px){.CashierTransactionHistory.svelte-1cus01h table.svelte-1cus01h{table-layout:fixed}.CashierTransactionHistory.svelte-1cus01h table td.svelte-1cus01h{padding:0 0 0 var(--emw--spacing-small, 5px)}}.CashierTransactionHistoryWrapper.svelte-1cus01h.svelte-1cus01h{background:var(--emw--color-background, #fff);box-shadow:0 0 4px var(--mmw--color-black-transparency-10, rgba(0, 0, 0, 0.1));border-radius:var(--mmw--border-radius-medium-plus, 6px);width:100%;box-sizing:border-box;padding:0 var(--emw--spacing-small, 12px)}.CashierTransactionHistoryTitle.svelte-1cus01h.svelte-1cus01h{color:var(--mmw--color-grey-10, #111);font-size:var(--emw--font-size-medium, 16px);font-weight:var(--emw--font-weight-normal, 400);line-height:calc(var(--emw--font-size-medium, 16px) + 2px);text-align:left}.CashierTransactionId.svelte-1cus01h.svelte-1cus01h{cursor:pointer;-webkit-user-select:none;-ms-user-select:none;user-select:none}.CashierTransactionId.svelte-1cus01h.svelte-1cus01h:hover{background-color:var(--emw--color-gray-50, #F7F8FA)}.CashierTransactionHistoryStatus.svelte-1cus01h.svelte-1cus01h{display:flex;gap:5px}.CashierTransactionHistoryStatusText.svelte-1cus01h.svelte-1cus01h{line-height:calc(var(--emw--font-size-medium, 16px) + 2px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.CashierTransactionHistoryContent.svelte-1cus01h.svelte-1cus01h{width:100%;overflow:hidden}.CashierTransactionHistoryIcon.svelte-1cus01h.svelte-1cus01h{vertical-align:middle;height:var(--emw--font-size-medium, 16px);width:var(--emw--font-size-medium, 16px)}");
|
|
57
56
|
}
|
|
58
57
|
function tt(a, t, s) {
|
|
59
58
|
const i = a.slice();
|
|
60
59
|
return i[27] = t[s], i;
|
|
61
60
|
}
|
|
62
|
-
function
|
|
61
|
+
function Dt(a) {
|
|
63
62
|
let t;
|
|
64
63
|
return {
|
|
65
64
|
c() {
|
|
@@ -76,7 +75,7 @@ function zt(a) {
|
|
|
76
75
|
), q(t, "class", "svelte-1cus01h");
|
|
77
76
|
},
|
|
78
77
|
m(s, i) {
|
|
79
|
-
|
|
78
|
+
U(s, t, i);
|
|
80
79
|
},
|
|
81
80
|
p(s, i) {
|
|
82
81
|
i & /*clientstylingurl*/
|
|
@@ -102,7 +101,7 @@ function It(a) {
|
|
|
102
101
|
let t, s, i, l = (
|
|
103
102
|
/*$_*/
|
|
104
103
|
a[8]("transactionHistoryTitle") + ""
|
|
105
|
-
), o, c, f, T, C, S, w,
|
|
104
|
+
), o, c, f, T, C, S, w, D, I = (
|
|
106
105
|
/*$_*/
|
|
107
106
|
a[8]("transactionIdTitle") + ""
|
|
108
107
|
), P, H, g, B = (
|
|
@@ -111,13 +110,13 @@ function It(a) {
|
|
|
111
110
|
), A, x, R, F = (
|
|
112
111
|
/*$_*/
|
|
113
112
|
a[8]("transactionTypeTitle") + ""
|
|
114
|
-
),
|
|
113
|
+
), W, Y, N, z = (
|
|
115
114
|
/*$_*/
|
|
116
115
|
a[8]("transactionStatusTitle") + ""
|
|
117
|
-
), p, u,
|
|
116
|
+
), p, u, b, n = (
|
|
118
117
|
/*copied*/
|
|
119
118
|
a[5] && et(a)
|
|
120
|
-
), d =
|
|
119
|
+
), d = X(
|
|
121
120
|
/*txnHistory*/
|
|
122
121
|
a[4]
|
|
123
122
|
), m = [];
|
|
@@ -125,45 +124,45 @@ function It(a) {
|
|
|
125
124
|
m[h] = st(tt(a, d, h));
|
|
126
125
|
return {
|
|
127
126
|
c() {
|
|
128
|
-
t = v("div"), n && n.c(), s = L(), i = v("h3"), o = j(l), c = L(), f = v("div"), T = v("div"), C = v("table"), S = v("thead"), w = v("tr"),
|
|
127
|
+
t = v("div"), n && n.c(), s = L(), i = v("h3"), o = j(l), c = L(), f = v("div"), T = v("div"), C = v("table"), S = v("thead"), w = v("tr"), D = v("td"), P = j(I), H = L(), g = v("td"), A = j(B), x = L(), R = v("td"), W = j(F), Y = L(), N = v("td"), p = j(z), u = L(), b = v("tbody");
|
|
129
128
|
for (let h = 0; h < m.length; h += 1)
|
|
130
129
|
m[h].c();
|
|
131
|
-
e(i, "class", "CashierTransactionHistoryTitle svelte-1cus01h"), e(
|
|
130
|
+
e(i, "class", "CashierTransactionHistoryTitle svelte-1cus01h"), e(D, "class", "svelte-1cus01h"), e(g, "class", "svelte-1cus01h"), e(R, "class", "svelte-1cus01h"), e(N, "class", "svelte-1cus01h"), e(w, "class", "svelte-1cus01h"), e(S, "class", "svelte-1cus01h"), e(b, "class", "svelte-1cus01h"), e(C, "class", "svelte-1cus01h"), e(T, "class", "CashierTransactionHistoryContent svelte-1cus01h"), e(f, "class", "CashierTransactionHistoryWrapper svelte-1cus01h"), e(t, "class", "CashierTransactionHistory svelte-1cus01h");
|
|
132
131
|
},
|
|
133
132
|
m(h, y) {
|
|
134
|
-
|
|
135
|
-
for (let
|
|
136
|
-
m[
|
|
133
|
+
U(h, t, y), n && n.m(t, null), r(t, s), r(t, i), r(i, o), r(t, c), r(t, f), r(f, T), r(T, C), r(C, S), r(S, w), r(w, D), r(D, P), r(w, H), r(w, g), r(g, A), r(w, x), r(w, R), r(R, W), r(w, Y), r(w, N), r(N, p), r(C, u), r(C, b);
|
|
134
|
+
for (let _ = 0; _ < m.length; _ += 1)
|
|
135
|
+
m[_] && m[_].m(b, null);
|
|
137
136
|
a[18](t);
|
|
138
137
|
},
|
|
139
138
|
p(h, y) {
|
|
140
139
|
if (/*copied*/
|
|
141
140
|
h[5] ? n ? (n.p(h, y), y & /*copied*/
|
|
142
|
-
32 &&
|
|
141
|
+
32 && Q(n, 1)) : (n = et(h), n.c(), Q(n, 1), n.m(t, s)) : n && (dt(), ht(n, 1, 1, () => {
|
|
143
142
|
n = null;
|
|
144
143
|
}), ft()), y & /*$_*/
|
|
145
144
|
256 && l !== (l = /*$_*/
|
|
146
|
-
h[8]("transactionHistoryTitle") + "") &&
|
|
145
|
+
h[8]("transactionHistoryTitle") + "") && O(o, l), y & /*$_*/
|
|
147
146
|
256 && I !== (I = /*$_*/
|
|
148
|
-
h[8]("transactionIdTitle") + "") &&
|
|
147
|
+
h[8]("transactionIdTitle") + "") && O(P, I), y & /*$_*/
|
|
149
148
|
256 && B !== (B = /*$_*/
|
|
150
|
-
h[8]("transactionDateTitle") + "") &&
|
|
149
|
+
h[8]("transactionDateTitle") + "") && O(A, B), y & /*$_*/
|
|
151
150
|
256 && F !== (F = /*$_*/
|
|
152
|
-
h[8]("transactionTypeTitle") + "") && W
|
|
153
|
-
256 &&
|
|
154
|
-
h[8]("transactionStatusTitle") + "") &&
|
|
151
|
+
h[8]("transactionTypeTitle") + "") && O(W, F), y & /*$_*/
|
|
152
|
+
256 && z !== (z = /*$_*/
|
|
153
|
+
h[8]("transactionStatusTitle") + "") && O(p, z), y & /*$_, txnHistory, TransactionMainStatus, copied, copyToClipboard*/
|
|
155
154
|
944) {
|
|
156
|
-
d =
|
|
155
|
+
d = X(
|
|
157
156
|
/*txnHistory*/
|
|
158
157
|
h[4]
|
|
159
158
|
);
|
|
160
|
-
let
|
|
161
|
-
for (
|
|
162
|
-
const G = tt(h, d,
|
|
163
|
-
m[
|
|
159
|
+
let _;
|
|
160
|
+
for (_ = 0; _ < d.length; _ += 1) {
|
|
161
|
+
const G = tt(h, d, _);
|
|
162
|
+
m[_] ? m[_].p(G, y) : (m[_] = st(G), m[_].c(), m[_].m(b, null));
|
|
164
163
|
}
|
|
165
|
-
for (;
|
|
166
|
-
m[
|
|
164
|
+
for (; _ < m.length; _ += 1)
|
|
165
|
+
m[_].d(1);
|
|
167
166
|
m.length = d.length;
|
|
168
167
|
}
|
|
169
168
|
},
|
|
@@ -182,20 +181,20 @@ function et(a) {
|
|
|
182
181
|
t = v("div"), i = j(s), e(t, "class", "CopyTooltip svelte-1cus01h");
|
|
183
182
|
},
|
|
184
183
|
m(f, T) {
|
|
185
|
-
|
|
184
|
+
U(f, t, T), r(t, i), c = !0;
|
|
186
185
|
},
|
|
187
186
|
p(f, T) {
|
|
188
187
|
a = f, (!c || T & /*$_*/
|
|
189
188
|
256) && s !== (s = /*$_*/
|
|
190
|
-
a[8]("copyTransactionId") + "") &&
|
|
189
|
+
a[8]("copyTransactionId") + "") && O(i, s);
|
|
191
190
|
},
|
|
192
191
|
i(f) {
|
|
193
192
|
c || (f && vt(() => {
|
|
194
|
-
c && (o && o.end(1), l = gt(t,
|
|
193
|
+
c && (o && o.end(1), l = gt(t, Z, { duration: 100 }), l.start());
|
|
195
194
|
}), c = !0);
|
|
196
195
|
},
|
|
197
196
|
o(f) {
|
|
198
|
-
l && l.invalidate(), f && (o = mt(t,
|
|
197
|
+
l && l.invalidate(), f && (o = mt(t, Z, { duration: (
|
|
199
198
|
/*tooltipduration*/
|
|
200
199
|
a[2]
|
|
201
200
|
) })), c = !1;
|
|
@@ -212,7 +211,7 @@ function At(a) {
|
|
|
212
211
|
t = k("svg"), s = k("circle"), i = k("path"), e(s, "cx", "12"), e(s, "cy", "12"), e(s, "r", "10"), e(s, "stroke", "#25bf00"), e(s, "stroke-width", "2"), e(s, "class", "svelte-1cus01h"), e(i, "d", "M8 12L11 15L16 9"), e(i, "stroke", "#25bf00"), e(i, "stroke-width", "2"), e(i, "stroke-linecap", "round"), e(i, "stroke-linejoin", "round"), e(i, "class", "svelte-1cus01h"), e(t, "width", "18"), e(t, "height", "18"), e(t, "viewBox", "0 0 24 24"), e(t, "fill", "none"), e(t, "xmlns", "http://www.w3.org/2000/svg"), e(t, "class", "svelte-1cus01h");
|
|
213
212
|
},
|
|
214
213
|
m(l, o) {
|
|
215
|
-
|
|
214
|
+
U(l, t, o), r(t, s), r(t, i);
|
|
216
215
|
},
|
|
217
216
|
d(l) {
|
|
218
217
|
l && E(t);
|
|
@@ -226,7 +225,7 @@ function Ft(a) {
|
|
|
226
225
|
t = k("svg"), s = k("circle"), i = k("text"), l = j("R"), e(s, "cx", "12"), e(s, "cy", "12"), e(s, "r", "10"), e(s, "stroke", "#dd6617d4"), e(s, "stroke-width", "2"), e(s, "class", "svelte-1cus01h"), e(i, "x", "50%"), e(i, "y", "54%"), e(i, "text-anchor", "middle"), e(i, "dominant-baseline", "middle"), e(i, "font-size", "14"), e(i, "font-weight", "bold"), e(i, "fill", "#dd6617d4"), e(i, "font-family", "Arial Rounded MT Bold, Arial, sans-serif"), e(i, "class", "svelte-1cus01h"), e(t, "width", "18"), e(t, "height", "18"), e(t, "viewBox", "0 0 24 24"), e(t, "fill", "none"), e(t, "xmlns", "http://www.w3.org/2000/svg"), e(t, "class", "svelte-1cus01h");
|
|
227
226
|
},
|
|
228
227
|
m(o, c) {
|
|
229
|
-
|
|
228
|
+
U(o, t, c), r(t, s), r(t, i), r(i, l);
|
|
230
229
|
},
|
|
231
230
|
d(o) {
|
|
232
231
|
o && E(t);
|
|
@@ -240,7 +239,7 @@ function jt(a) {
|
|
|
240
239
|
t = k("svg"), s = k("circle"), i = k("path"), e(s, "cx", "12"), e(s, "cy", "12"), e(s, "r", "10"), e(s, "stroke", "#f0a85f"), e(s, "stroke-width", "2"), e(s, "class", "svelte-1cus01h"), e(i, "d", "M12 7V12L15 14"), e(i, "stroke", "#f0a85f"), e(i, "stroke-width", "2"), e(i, "stroke-linecap", "round"), e(i, "stroke-linejoin", "round"), e(i, "class", "svelte-1cus01h"), e(t, "width", "18"), e(t, "height", "18"), e(t, "viewBox", "0 0 24 24"), e(t, "fill", "none"), e(t, "xmlns", "http://www.w3.org/2000/svg"), e(t, "class", "svelte-1cus01h");
|
|
241
240
|
},
|
|
242
241
|
m(l, o) {
|
|
243
|
-
|
|
242
|
+
U(l, t, o), r(t, s), r(t, i);
|
|
244
243
|
},
|
|
245
244
|
d(l) {
|
|
246
245
|
l && E(t);
|
|
@@ -254,7 +253,7 @@ function Pt(a) {
|
|
|
254
253
|
t = k("svg"), s = k("circle"), i = k("path"), e(s, "cx", "12"), e(s, "cy", "12"), e(s, "r", "10"), e(s, "stroke", "#e76049"), e(s, "stroke-width", "2"), e(s, "class", "svelte-1cus01h"), e(i, "d", "M9 9L15 15M15 9L9 15"), e(i, "stroke", "#e76049"), e(i, "stroke-width", "2"), e(i, "stroke-linecap", "round"), e(i, "stroke-linejoin", "round"), e(i, "class", "svelte-1cus01h"), e(t, "width", "18"), e(t, "height", "18"), e(t, "viewBox", "0 0 24 24"), e(t, "fill", "none"), e(t, "xmlns", "http://www.w3.org/2000/svg"), e(t, "class", "svelte-1cus01h");
|
|
255
254
|
},
|
|
256
255
|
m(l, o) {
|
|
257
|
-
|
|
256
|
+
U(l, t, o), r(t, s), r(t, i);
|
|
258
257
|
},
|
|
259
258
|
d(l) {
|
|
260
259
|
l && E(t);
|
|
@@ -268,7 +267,7 @@ function Rt(a) {
|
|
|
268
267
|
t = k("svg"), s = k("circle"), i = k("text"), l = j("A"), e(s, "cx", "12"), e(s, "cy", "12"), e(s, "r", "10"), e(s, "stroke", "#32b398"), e(s, "stroke-width", "2"), e(s, "class", "svelte-1cus01h"), e(i, "x", "50%"), e(i, "y", "54%"), e(i, "text-anchor", "middle"), e(i, "dominant-baseline", "middle"), e(i, "font-size", "14"), e(i, "font-weight", "bold"), e(i, "fill", "#32b398"), e(i, "font-family", "Arial Rounded MT Bold, Arial, sans-serif"), e(i, "class", "svelte-1cus01h"), e(t, "width", "18"), e(t, "height", "18"), e(t, "viewBox", "0 0 24 24"), e(t, "fill", "none"), e(t, "xmlns", "http://www.w3.org/2000/svg"), e(t, "class", "svelte-1cus01h");
|
|
269
268
|
},
|
|
270
269
|
m(o, c) {
|
|
271
|
-
|
|
270
|
+
U(o, t, c), r(t, s), r(t, i), r(i, l);
|
|
272
271
|
},
|
|
273
272
|
d(o) {
|
|
274
273
|
o && E(t);
|
|
@@ -286,12 +285,12 @@ function st(a) {
|
|
|
286
285
|
/*$_*/
|
|
287
286
|
a[8](`transactionType.${/*transaction*/
|
|
288
287
|
a[27].Type}`) + ""
|
|
289
|
-
),
|
|
288
|
+
), D, I, P, H, g, B, A, x = (
|
|
290
289
|
/*$_*/
|
|
291
290
|
a[8](`transactionStatus.${/*transaction*/
|
|
292
291
|
a[27].Status}`) + ""
|
|
293
|
-
), R, F,
|
|
294
|
-
function N(u,
|
|
292
|
+
), R, F, W, Y;
|
|
293
|
+
function N(u, b) {
|
|
295
294
|
if (
|
|
296
295
|
/*transaction*/
|
|
297
296
|
u[27].Status === /*TransactionMainStatus*/
|
|
@@ -323,45 +322,45 @@ function st(a) {
|
|
|
323
322
|
)
|
|
324
323
|
return At;
|
|
325
324
|
}
|
|
326
|
-
let
|
|
325
|
+
let z = N(a), p = z && z(a);
|
|
327
326
|
return {
|
|
328
327
|
c() {
|
|
329
|
-
t = v("tr"), s = v("td"), l = j(i), o = L(), c = v("td"), T = j(f), C = L(), S = v("td"),
|
|
328
|
+
t = v("tr"), s = v("td"), l = j(i), o = L(), c = v("td"), T = j(f), C = L(), S = v("td"), D = j(w), I = L(), P = v("td"), H = v("div"), g = v("span"), p && p.c(), B = L(), A = v("span"), R = j(x), F = L(), e(s, "class", "CashierTransactionId svelte-1cus01h"), V(
|
|
330
329
|
s,
|
|
331
330
|
"copied",
|
|
332
331
|
/*copied*/
|
|
333
332
|
a[5]
|
|
334
333
|
), e(c, "class", "svelte-1cus01h"), e(S, "class", "svelte-1cus01h"), e(g, "class", "CashierTransactionHistoryIcon svelte-1cus01h"), e(A, "class", "CashierTransactionHistoryStatusText svelte-1cus01h"), e(H, "class", "CashierTransactionHistoryStatus svelte-1cus01h"), e(P, "class", "svelte-1cus01h"), e(t, "class", "svelte-1cus01h");
|
|
335
334
|
},
|
|
336
|
-
m(u,
|
|
337
|
-
|
|
335
|
+
m(u, b) {
|
|
336
|
+
U(u, t, b), r(t, s), r(s, l), r(t, o), r(t, c), r(c, T), r(t, C), r(t, S), r(S, D), r(t, I), r(t, P), r(P, H), r(H, g), p && p.m(g, null), r(H, B), r(H, A), r(A, R), r(t, F), W || (Y = pt(
|
|
338
337
|
s,
|
|
339
338
|
"mousedown",
|
|
340
339
|
/*mousedown_handler*/
|
|
341
340
|
a[17]
|
|
342
|
-
),
|
|
341
|
+
), W = !0);
|
|
343
342
|
},
|
|
344
|
-
p(u,
|
|
345
|
-
|
|
343
|
+
p(u, b) {
|
|
344
|
+
b & /*txnHistory*/
|
|
346
345
|
16 && i !== (i = /*transaction*/
|
|
347
|
-
u[27].Code + "") &&
|
|
348
|
-
32 &&
|
|
346
|
+
u[27].Code + "") && O(l, i), b & /*copied*/
|
|
347
|
+
32 && V(
|
|
349
348
|
s,
|
|
350
349
|
"copied",
|
|
351
350
|
/*copied*/
|
|
352
351
|
u[5]
|
|
353
|
-
),
|
|
352
|
+
), b & /*txnHistory*/
|
|
354
353
|
16 && f !== (f = /*transaction*/
|
|
355
|
-
u[27].Date + "") &&
|
|
354
|
+
u[27].Date + "") && O(T, f), b & /*$_, txnHistory*/
|
|
356
355
|
272 && w !== (w = /*$_*/
|
|
357
356
|
u[8](`transactionType.${/*transaction*/
|
|
358
|
-
u[27].Type}`) + "") &&
|
|
357
|
+
u[27].Type}`) + "") && O(D, w), z !== (z = N(u)) && (p && p.d(1), p = z && z(u), p && (p.c(), p.m(g, null))), b & /*$_, txnHistory*/
|
|
359
358
|
272 && x !== (x = /*$_*/
|
|
360
359
|
u[8](`transactionStatus.${/*transaction*/
|
|
361
|
-
u[27].Status}`) + "") &&
|
|
360
|
+
u[27].Status}`) + "") && O(R, x);
|
|
362
361
|
},
|
|
363
362
|
d(u) {
|
|
364
|
-
u && E(t), p && p.d(),
|
|
363
|
+
u && E(t), p && p.d(), W = !1, Y();
|
|
365
364
|
}
|
|
366
365
|
};
|
|
367
366
|
}
|
|
@@ -377,7 +376,7 @@ function Lt(a) {
|
|
|
377
376
|
/*isLoading*/
|
|
378
377
|
o[6]
|
|
379
378
|
)
|
|
380
|
-
return
|
|
379
|
+
return Dt;
|
|
381
380
|
}
|
|
382
381
|
let i = s(a), l = i && i(a);
|
|
383
382
|
return {
|
|
@@ -385,7 +384,7 @@ function Lt(a) {
|
|
|
385
384
|
t = v("div"), l && l.c(), e(t, "class", "CashierTransactionHistoryContainer svelte-1cus01h");
|
|
386
385
|
},
|
|
387
386
|
m(o, c) {
|
|
388
|
-
|
|
387
|
+
U(o, t, c), l && l.m(t, null);
|
|
389
388
|
},
|
|
390
389
|
p(o, [c]) {
|
|
391
390
|
i === (i = s(o)) && l ? l.p(o, c) : (l && l.d(1), l = i && i(o), l && (l.c(), l.m(t, null)));
|
|
@@ -400,8 +399,8 @@ function Lt(a) {
|
|
|
400
399
|
const Bt = "DD.MM.YYYY";
|
|
401
400
|
function Mt(a, t, s) {
|
|
402
401
|
let i;
|
|
403
|
-
rt(a,
|
|
404
|
-
let { endpoint: l } = t, { session: o } = t, { lang: c = "en" } = t, { customerid: f } = t, { clientstyling: T = "" } = t, { clientstylingurl: C = "" } = t, { translationurl: S } = t, { tooltipduration: w = 1e3 } = t, { txncount:
|
|
402
|
+
rt(a, Ct, (n) => s(8, i = n));
|
|
403
|
+
let { endpoint: l } = t, { session: o } = t, { lang: c = "en" } = t, { customerid: f } = t, { clientstyling: T = "" } = t, { clientstylingurl: C = "" } = t, { translationurl: S } = t, { tooltipduration: w = 1e3 } = t, { txncount: D = 3 } = t, { mbsource: I = "" } = t, P = [], H = !1, g, B, A = !1;
|
|
405
404
|
var x;
|
|
406
405
|
(function(n) {
|
|
407
406
|
n.Deposit = "deposit", n.Withdraw = "withdraw", n.Refund = "refund", n.Unknown = "unknown", n.TaxDeduction = "taxDeduction";
|
|
@@ -423,19 +422,19 @@ function Mt(a, t, s) {
|
|
|
423
422
|
n.Authorized = "Authorized", n.Success = "Success", n.Failed = "Failed", n.Rejected = "Rejected", n.Pending = "Pending";
|
|
424
423
|
})(F || (F = {})), ot(() => () => {
|
|
425
424
|
});
|
|
426
|
-
const
|
|
425
|
+
const W = () => {
|
|
427
426
|
let n = S;
|
|
428
427
|
if (n)
|
|
429
428
|
return fetch(n).then((d) => d.json()).then((d) => {
|
|
430
429
|
Object.keys(d).forEach((m) => {
|
|
431
|
-
|
|
430
|
+
K(m, d[m]);
|
|
432
431
|
});
|
|
433
432
|
}).catch((d) => {
|
|
434
433
|
console.log(d);
|
|
435
434
|
});
|
|
436
435
|
};
|
|
437
436
|
Object.keys($).forEach((n) => {
|
|
438
|
-
|
|
437
|
+
K(n, $[n]);
|
|
439
438
|
});
|
|
440
439
|
const Y = () => {
|
|
441
440
|
Ht(c);
|
|
@@ -449,7 +448,7 @@ function Mt(a, t, s) {
|
|
|
449
448
|
body: JSON.stringify({
|
|
450
449
|
language: c,
|
|
451
450
|
customerId: f,
|
|
452
|
-
count:
|
|
451
|
+
count: D,
|
|
453
452
|
page: 0,
|
|
454
453
|
fromDate: m,
|
|
455
454
|
toDate: null,
|
|
@@ -464,13 +463,13 @@ function Mt(a, t, s) {
|
|
|
464
463
|
})
|
|
465
464
|
};
|
|
466
465
|
s(6, A = !0), fetch(n, h).then((y) => y.json()).then((y) => {
|
|
467
|
-
s(4, P =
|
|
466
|
+
s(4, P = z((y == null ? void 0 : y.items) || []));
|
|
468
467
|
}).catch((y) => console.log(y)).finally(() => s(6, A = !1));
|
|
469
|
-
},
|
|
468
|
+
}, z = (n) => n.map((d) => {
|
|
470
469
|
let m = d.generalFields.status;
|
|
471
470
|
return d.generalFields.status.toLowerCase().includes("pending") && (m = F.Pending), {
|
|
472
471
|
Code: d.generalFields.code,
|
|
473
|
-
Date:
|
|
472
|
+
Date: St(d.generalFields.created).format(Bt),
|
|
474
473
|
Status: m,
|
|
475
474
|
Type: d.generalFields.type
|
|
476
475
|
};
|
|
@@ -487,21 +486,21 @@ function Mt(a, t, s) {
|
|
|
487
486
|
console.error("Could not copy text: ", m);
|
|
488
487
|
});
|
|
489
488
|
}, u = (n) => p(n);
|
|
490
|
-
function
|
|
489
|
+
function b(n) {
|
|
491
490
|
ct[n ? "unshift" : "push"](() => {
|
|
492
491
|
g = n, s(3, g);
|
|
493
492
|
});
|
|
494
493
|
}
|
|
495
494
|
return a.$$set = (n) => {
|
|
496
|
-
"endpoint" in n && s(10, l = n.endpoint), "session" in n && s(11, o = n.session), "lang" in n && s(12, c = n.lang), "customerid" in n && s(13, f = n.customerid), "clientstyling" in n && s(0, T = n.clientstyling), "clientstylingurl" in n && s(1, C = n.clientstylingurl), "translationurl" in n && s(14, S = n.translationurl), "tooltipduration" in n && s(2, w = n.tooltipduration), "txncount" in n && s(15,
|
|
495
|
+
"endpoint" in n && s(10, l = n.endpoint), "session" in n && s(11, o = n.session), "lang" in n && s(12, c = n.lang), "customerid" in n && s(13, f = n.customerid), "clientstyling" in n && s(0, T = n.clientstyling), "clientstylingurl" in n && s(1, C = n.clientstylingurl), "translationurl" in n && s(14, S = n.translationurl), "tooltipduration" in n && s(2, w = n.tooltipduration), "txncount" in n && s(15, D = n.txncount), "mbsource" in n && s(16, I = n.mbsource);
|
|
497
496
|
}, a.$$.update = () => {
|
|
498
497
|
a.$$.dirty & /*lang*/
|
|
499
498
|
4096 && c && Y(), a.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
500
|
-
9 && T && g &&
|
|
501
|
-
10 && C && g &&
|
|
499
|
+
9 && T && g && yt(g, T), a.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
500
|
+
10 && C && g && wt(g, C), a.$$.dirty & /*endpoint, session, customerid, lang*/
|
|
502
501
|
15360 && l && o && f && c && N(), a.$$.dirty & /*translationurl*/
|
|
503
|
-
16384 && S &&
|
|
504
|
-
65544 && I && g &&
|
|
502
|
+
16384 && S && W(), a.$$.dirty & /*mbsource, customStylingContainer*/
|
|
503
|
+
65544 && I && g && Tt(g, `${I}.Style`);
|
|
505
504
|
}, [
|
|
506
505
|
T,
|
|
507
506
|
C,
|
|
@@ -518,13 +517,13 @@ function Mt(a, t, s) {
|
|
|
518
517
|
c,
|
|
519
518
|
f,
|
|
520
519
|
S,
|
|
521
|
-
|
|
520
|
+
D,
|
|
522
521
|
I,
|
|
523
522
|
u,
|
|
524
|
-
|
|
523
|
+
b
|
|
525
524
|
];
|
|
526
525
|
}
|
|
527
|
-
class
|
|
526
|
+
class Ot extends it {
|
|
528
527
|
constructor(t) {
|
|
529
528
|
super(), nt(
|
|
530
529
|
this,
|
|
@@ -544,7 +543,7 @@ class Wt extends it {
|
|
|
544
543
|
txncount: 15,
|
|
545
544
|
mbsource: 16
|
|
546
545
|
},
|
|
547
|
-
|
|
546
|
+
zt
|
|
548
547
|
);
|
|
549
548
|
}
|
|
550
549
|
get endpoint() {
|
|
@@ -608,7 +607,7 @@ class Wt extends it {
|
|
|
608
607
|
this.$$set({ mbsource: t }), M();
|
|
609
608
|
}
|
|
610
609
|
}
|
|
611
|
-
|
|
610
|
+
_t(Ot, { endpoint: {}, session: {}, lang: {}, customerid: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, tooltipduration: {}, txncount: {}, mbsource: {} }, [], [], !0);
|
|
612
611
|
export {
|
|
613
|
-
|
|
612
|
+
Ot as default
|
|
614
613
|
};
|