@everymatrix/cashier-page 1.72.2 → 1.73.1
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-4RYp7Eiq.js → CashierConfirmModal-BCk4hvRj.js} +3 -3
- package/components/{CashierConfirmModal-untxGhsx.js → CashierConfirmModal-DXlKhIue.js} +3 -3
- package/components/{CashierError-Zu3Whx-d.js → CashierError-BydkW7s_.js} +2 -2
- package/components/{CashierError-DfpdiheS.cjs → CashierError-Dpt_Z7yL.cjs} +1 -1
- package/components/{CashierError-yts9rF-i.js → CashierError-Dz_HsnJl.js} +2 -2
- package/components/{CashierHeader-BX6LLGb8.js → CashierHeader-86wrgmgP.js} +2 -2
- package/components/{CashierHeader-B9cdsOYh.cjs → CashierHeader-BXKYku0i.cjs} +1 -1
- package/components/{CashierHeader-C9V5_NVw.js → CashierHeader-DtS_U-De.js} +2 -2
- package/components/CashierIframeRedirect-BARMuRTc.cjs +1 -0
- package/components/CashierIframeRedirect-CmqcfGcT.js +429 -0
- package/components/CashierIframeRedirect-Xzpx4Rjk.js +429 -0
- package/components/{CashierMethodDetails-D1ZeLJFI.js → CashierMethodDetails-B1jSb3IC.js} +3506 -2966
- package/components/{CashierMethodDetails-DhkT1TEG.js → CashierMethodDetails-CZ1Xj4bB.js} +3415 -2875
- package/components/CashierMethodDetails-D9tO8F-N.cjs +99 -0
- package/components/CashierMethodsList-BoP67Zj_.js +828 -0
- package/components/CashierMethodsList-F_QBfadW.cjs +1 -0
- package/components/{CashierMethodsList-Bd0awrSP.js → CashierMethodsList-pOyUlgCs.js} +372 -396
- package/components/CashierModal-B4b12-Am.js +229 -0
- package/components/CashierModal-C-yyjQ8m.cjs +1 -0
- package/components/CashierModal-DCgiaC4V.js +229 -0
- package/components/{CashierNotifications-dn6rnyK_.js → CashierNotifications-BZCaBrRm.js} +1 -1
- package/components/{CashierNotifications-C48iLynX.js → CashierNotifications-CWqwdi55.js} +1 -1
- package/components/{CashierPage-DagcI5W-.js → CashierPage-B14Zambu.js} +824 -587
- package/components/{CashierPage-BbiDGdpa.js → CashierPage-BVN_y5LM.js} +824 -587
- package/components/CashierPage-BZCoKtSr.cjs +1 -0
- package/components/CashierReceiptPage-BM8IB2en.js +1451 -0
- package/components/CashierReceiptPage-DY4vYKOg.cjs +1 -0
- package/components/CashierReceiptPage-hbrIFE7Z.js +1453 -0
- package/components/CashierSessionExpirationModal-4QgY4tj0.js +1205 -0
- package/components/CashierSessionExpirationModal-B-JloK58.cjs +2 -0
- package/components/CashierSessionExpirationModal-BZjFbzTF.js +1205 -0
- package/components/CashierSpinner-BdeNFm1c.js +79 -0
- package/components/CashierSpinner-COjPdCUV.js +79 -0
- package/components/CashierSpinner-CpkB8Zoj.cjs +1 -0
- package/components/CashierTransactionHistory-BRRK3_Wm.cjs +1 -0
- package/components/CashierTransactionHistory-DwBe7fCZ.js +614 -0
- package/components/CashierTransactionHistory-DzdL--gs.js +614 -0
- package/components/{CashierVerifications-8ZmmqlLE.js → CashierVerifications-Ct5BMC4Z.js} +324 -277
- package/components/CashierVerifications-DEJgktmX.cjs +1 -0
- package/components/{CashierVerifications-DJ8j0wXs.js → CashierVerifications-bo5F0ePz.js} +332 -285
- package/components/CashierVideoModal-8I67tMwv.cjs +1 -0
- package/components/{CashierVideoModal-CVDvqrcy.js → CashierVideoModal-CQLJKJAK.js} +91 -94
- package/components/{CashierVideoModal-DHNu0BQz.js → CashierVideoModal-CzRdJr4V.js} +91 -94
- 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/stencil/app-globals-0f993ce5-BD-Q0C8R.cjs +1 -0
- package/stencil/app-globals-0f993ce5-Cgk0KVAu.js +7 -0
- package/stencil/index-b2193545-B8kMF2bI.cjs +1 -0
- package/stencil/index-b2193545-BoSqyMpB.js +519 -0
- package/stencil/index-b2193545-D4dOaNlR.js +503 -0
- package/stencil/{ui-image-C7s6Uvn5.js → ui-image-BWJXFWH1.js} +1 -1
- package/stencil/{ui-image-BaHsVAxH.cjs → ui-image-ByEXiBzx.cjs} +1 -1
- package/stencil/{ui-image-CHeV8e9p.js → ui-image-DIEeZy5u.js} +1 -1
- package/stencil/ui-skeleton-4-zrLsIW.js +11 -0
- package/stencil/ui-skeleton-9boHSjtG.js +29 -0
- package/stencil/ui-skeleton-_yJvAdAL.cjs +1 -0
- package/stencil/ui-skeleton-ae35c6f2-8tYGV8SR.js +155 -0
- package/stencil/ui-skeleton-ae35c6f2-CKgUXOQC.cjs +55 -0
- package/stencil/ui-skeleton-ae35c6f2-IN_dPA5_.js +155 -0
- package/components/CashierIframeRedirect-3Ttb1Wdk.js +0 -378
- package/components/CashierIframeRedirect-BIMJNSib.js +0 -378
- package/components/CashierIframeRedirect-NF0DKl7A.cjs +0 -1
- package/components/CashierMethodDetails-Cgu5TXSP.cjs +0 -84
- package/components/CashierMethodsList-D4ou6zMr.cjs +0 -1
- package/components/CashierMethodsList-z8dlFfeS.js +0 -852
- package/components/CashierModal-BrwIBn9a.js +0 -232
- package/components/CashierModal-BuM2Yq-y.cjs +0 -1
- package/components/CashierModal-ZfKvGxFq.js +0 -232
- package/components/CashierPage-eEO1eHcj.cjs +0 -1
- package/components/CashierReceiptPage--SlIuxeH.js +0 -1174
- package/components/CashierReceiptPage-Si7b2HWz.js +0 -1172
- package/components/CashierReceiptPage-dUPhckvS.cjs +0 -1
- package/components/CashierSessionExpirationModal-BmFSh_r0.js +0 -1208
- package/components/CashierSessionExpirationModal-CVnU7oKj.cjs +0 -2
- package/components/CashierSessionExpirationModal-QHzlcCYu.js +0 -1208
- package/components/CashierSpinner-BAfTKICK.js +0 -71
- package/components/CashierSpinner-BhmndmKG.cjs +0 -1
- package/components/CashierSpinner-y6HodxHT.js +0 -71
- package/components/CashierTransactionHistory-CBJrAtki.js +0 -569
- package/components/CashierTransactionHistory-DwYyVBtn.cjs +0 -1
- package/components/CashierTransactionHistory-LW9NA8-t.js +0 -569
- package/components/CashierVerifications-CYRbG7DV.cjs +0 -1
- package/components/CashierVideoModal-BZg_b6bd.cjs +0 -1
- package/stencil/app-globals-0f993ce5-D-kw1sls.js +0 -5
- package/stencil/app-globals-0f993ce5-sCt45RkC.cjs +0 -1
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { S as m, b as f, s as h, f as o, c as d, n as c, e as y, m as g, p, v as k, F as b, A as S, E as x } from "./CashierConfirmModal-BCk4hvRj.js";
|
|
2
|
+
import { s as v, a as w, b as _ } from "./CashierIframeRedirect-CmqcfGcT.js";
|
|
3
|
+
function C(e) {
|
|
4
|
+
d(e, "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}}");
|
|
5
|
+
}
|
|
6
|
+
function z(e) {
|
|
7
|
+
let t;
|
|
8
|
+
return {
|
|
9
|
+
c() {
|
|
10
|
+
t = p("div"), t.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>', k(t, "class", "CashierSpinner");
|
|
11
|
+
},
|
|
12
|
+
m(i, r) {
|
|
13
|
+
g(i, t, r), e[4](t);
|
|
14
|
+
},
|
|
15
|
+
p: c,
|
|
16
|
+
i: c,
|
|
17
|
+
o: c,
|
|
18
|
+
d(i) {
|
|
19
|
+
i && y(t), e[4](null);
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
function j(e, t, i) {
|
|
24
|
+
let { clientstyling: r = "" } = t, { clientstylingurl: a = "" } = t, { mbsource: l = "" } = t, s;
|
|
25
|
+
b(() => () => {
|
|
26
|
+
});
|
|
27
|
+
function u(n) {
|
|
28
|
+
S[n ? "unshift" : "push"](() => {
|
|
29
|
+
s = n, i(0, s);
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
return e.$$set = (n) => {
|
|
33
|
+
"clientstyling" in n && i(1, r = n.clientstyling), "clientstylingurl" in n && i(2, a = n.clientstylingurl), "mbsource" in n && i(3, l = n.mbsource);
|
|
34
|
+
}, e.$$.update = () => {
|
|
35
|
+
e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
36
|
+
3 && r && s && v(s, r), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
37
|
+
5 && a && s && w(s, a), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
38
|
+
9 && l && s && _(s, `${l}.Style`);
|
|
39
|
+
}, [s, r, a, l, u];
|
|
40
|
+
}
|
|
41
|
+
class L extends m {
|
|
42
|
+
constructor(t) {
|
|
43
|
+
super(), f(
|
|
44
|
+
this,
|
|
45
|
+
t,
|
|
46
|
+
j,
|
|
47
|
+
z,
|
|
48
|
+
h,
|
|
49
|
+
{
|
|
50
|
+
clientstyling: 1,
|
|
51
|
+
clientstylingurl: 2,
|
|
52
|
+
mbsource: 3
|
|
53
|
+
},
|
|
54
|
+
C
|
|
55
|
+
);
|
|
56
|
+
}
|
|
57
|
+
get clientstyling() {
|
|
58
|
+
return this.$$.ctx[1];
|
|
59
|
+
}
|
|
60
|
+
set clientstyling(t) {
|
|
61
|
+
this.$$set({ clientstyling: t }), o();
|
|
62
|
+
}
|
|
63
|
+
get clientstylingurl() {
|
|
64
|
+
return this.$$.ctx[2];
|
|
65
|
+
}
|
|
66
|
+
set clientstylingurl(t) {
|
|
67
|
+
this.$$set({ clientstylingurl: t }), o();
|
|
68
|
+
}
|
|
69
|
+
get mbsource() {
|
|
70
|
+
return this.$$.ctx[3];
|
|
71
|
+
}
|
|
72
|
+
set mbsource(t) {
|
|
73
|
+
this.$$set({ mbsource: t }), o();
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
x(L, { clientstyling: {}, clientstylingurl: {}, mbsource: {} }, [], [], !0);
|
|
77
|
+
export {
|
|
78
|
+
L as default
|
|
79
|
+
};
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { S as m, b as f, s as h, f as o, c as d, n as c, e as y, l as g, o as p, q as k, F as b, z as S, E as x } from "./CashierConfirmModal-DXlKhIue.js";
|
|
2
|
+
import { s as v, a as w, b as _ } from "./CashierIframeRedirect-Xzpx4Rjk.js";
|
|
3
|
+
function C(e) {
|
|
4
|
+
d(e, "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}}");
|
|
5
|
+
}
|
|
6
|
+
function z(e) {
|
|
7
|
+
let t;
|
|
8
|
+
return {
|
|
9
|
+
c() {
|
|
10
|
+
t = p("div"), t.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>', k(t, "class", "CashierSpinner");
|
|
11
|
+
},
|
|
12
|
+
m(i, r) {
|
|
13
|
+
g(i, t, r), e[4](t);
|
|
14
|
+
},
|
|
15
|
+
p: c,
|
|
16
|
+
i: c,
|
|
17
|
+
o: c,
|
|
18
|
+
d(i) {
|
|
19
|
+
i && y(t), e[4](null);
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
function j(e, t, i) {
|
|
24
|
+
let { clientstyling: r = "" } = t, { clientstylingurl: a = "" } = t, { mbsource: l = "" } = t, s;
|
|
25
|
+
b(() => () => {
|
|
26
|
+
});
|
|
27
|
+
function u(n) {
|
|
28
|
+
S[n ? "unshift" : "push"](() => {
|
|
29
|
+
s = n, i(0, s);
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
return e.$$set = (n) => {
|
|
33
|
+
"clientstyling" in n && i(1, r = n.clientstyling), "clientstylingurl" in n && i(2, a = n.clientstylingurl), "mbsource" in n && i(3, l = n.mbsource);
|
|
34
|
+
}, e.$$.update = () => {
|
|
35
|
+
e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
36
|
+
3 && r && s && v(s, r), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
37
|
+
5 && a && s && w(s, a), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
38
|
+
9 && l && s && _(s, `${l}.Style`);
|
|
39
|
+
}, [s, r, a, l, u];
|
|
40
|
+
}
|
|
41
|
+
class q extends m {
|
|
42
|
+
constructor(t) {
|
|
43
|
+
super(), f(
|
|
44
|
+
this,
|
|
45
|
+
t,
|
|
46
|
+
j,
|
|
47
|
+
z,
|
|
48
|
+
h,
|
|
49
|
+
{
|
|
50
|
+
clientstyling: 1,
|
|
51
|
+
clientstylingurl: 2,
|
|
52
|
+
mbsource: 3
|
|
53
|
+
},
|
|
54
|
+
C
|
|
55
|
+
);
|
|
56
|
+
}
|
|
57
|
+
get clientstyling() {
|
|
58
|
+
return this.$$.ctx[1];
|
|
59
|
+
}
|
|
60
|
+
set clientstyling(t) {
|
|
61
|
+
this.$$set({ clientstyling: t }), o();
|
|
62
|
+
}
|
|
63
|
+
get clientstylingurl() {
|
|
64
|
+
return this.$$.ctx[2];
|
|
65
|
+
}
|
|
66
|
+
set clientstylingurl(t) {
|
|
67
|
+
this.$$set({ clientstylingurl: t }), o();
|
|
68
|
+
}
|
|
69
|
+
get mbsource() {
|
|
70
|
+
return this.$$.ctx[3];
|
|
71
|
+
}
|
|
72
|
+
set mbsource(t) {
|
|
73
|
+
this.$$set({ mbsource: t }), o();
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
x(q, { clientstyling: {}, clientstylingurl: {}, mbsource: {} }, [], [], !0);
|
|
77
|
+
export {
|
|
78
|
+
q as default
|
|
79
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CashierConfirmModal-DMmJumcl.cjs"),c=require("./CashierIframeRedirect-BARMuRTc.cjs");function d(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 f(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,o){t.insert(r,e,o),n[4](e)},p:t.noop,i:t.noop,o:t.noop,d(r){r&&t.detach(e),n[4](null)}}}function m(n,e,r){let{clientstyling:o=""}=e,{clientstylingurl:l=""}=e,{mbsource:a=""}=e,i;t.onMount(()=>()=>{});function h(s){t.binding_callbacks[s?"unshift":"push"](()=>{i=s,r(0,i)})}return n.$$set=s=>{"clientstyling"in s&&r(1,o=s.clientstyling),"clientstylingurl"in s&&r(2,l=s.clientstylingurl),"mbsource"in s&&r(3,a=s.mbsource)},n.$$.update=()=>{n.$$.dirty&3&&o&&i&&c.setClientStyling(i,o),n.$$.dirty&5&&l&&i&&c.setClientStylingURL(i,l),n.$$.dirty&9&&a&&i&&c.setStreamStyling(i,`${a}.Style`)},[i,o,l,a,h]}class u extends t.SvelteComponent{constructor(e){super(),t.init(this,e,m,f,t.safe_not_equal,{clientstyling:1,clientstylingurl:2,mbsource:3},d)}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(u,{clientstyling:{},clientstylingurl:{},mbsource:{}},[],[],!0);exports.default=u;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CashierConfirmModal-DMmJumcl.cjs"),O=require("./CashierModal-C-yyjQ8m.cjs"),L=require("./CashierError-Dpt_Z7yL.cjs"),X=require("./CashierMethodDetails-D9tO8F-N.cjs"),M=require("./CashierIframeRedirect-BARMuRTc.cjs");L.init({fallbackLocale:"en"});function E(i,e){L.addMessages(i,e)}function G(i){L.$locale.set(i)}const U={en:{transactionHistoryTitle:"Transaction History",transactionIdTitle:"ID",transactionDateTitle:"Date",transactionTypeTitle:"Type",transactionStatusTitle:"Status",copyTransactionId:"Transaction Id copied to clipboard",transactionStatus:{Authorized:"Authorized",Success:"Success",Failed:"Failed",Rejected:"Rejected",Pending:"Pending"},transactionType:{Deposit:"Deposit",Withdraw:"Withdraw"}},tr:{transactionHistoryTitle:"İşlem Geçmişi",transactionIdTitle:"İşlem ID'si",transactionDateTitle:"Tarih",transactionTypeTitle:"Tip",transactionStatusTitle:"Durum",copyTransactionId:"İşlem ID’si kopyalandı",transactionStatus:{Authorized:"Onaylandı",Success:"Başarılı",Failed:"Başarısız",Rejected:"Reddedildi",Pending:"Beklemede"},transactionType:{Deposit:"Para Yatır",Withdraw:"Çekim"}}};function J(i){t.append_styles(i,"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)}")}function W(i,e,s){const a=i.slice();return a[27]=e[s],a}function V(i){let e;return{c(){e=t.element("cashier-spinner"),t.set_custom_element_data(e,"clientstylingurl",i[1]),t.set_custom_element_data(e,"clientstyling",i[0]),t.set_custom_element_data(e,"class","svelte-1cus01h")},m(s,a){t.insert(s,e,a)},p(s,a){a&2&&t.set_custom_element_data(e,"clientstylingurl",s[1]),a&1&&t.set_custom_element_data(e,"clientstyling",s[0])},d(s){s&&t.detach(e)}}}function K(i){let e,s,a,r=i[8]("transactionHistoryTitle")+"",l,o,h,y,b,x,g,S,H=i[8]("transactionIdTitle")+"",I,k,m,j=i[8]("transactionDateTitle")+"",D,T,A,z=i[8]("transactionTypeTitle")+"",F,R,P,C=i[8]("transactionStatusTitle")+"",f,c,w,n=i[5]&&q(i),d=t.ensure_array_like(i[4]),p=[];for(let u=0;u<d.length;u+=1)p[u]=N(W(i,d,u));return{c(){e=t.element("div"),n&&n.c(),s=t.space(),a=t.element("h3"),l=t.text(r),o=t.space(),h=t.element("div"),y=t.element("div"),b=t.element("table"),x=t.element("thead"),g=t.element("tr"),S=t.element("td"),I=t.text(H),k=t.space(),m=t.element("td"),D=t.text(j),T=t.space(),A=t.element("td"),F=t.text(z),R=t.space(),P=t.element("td"),f=t.text(C),c=t.space(),w=t.element("tbody");for(let u=0;u<p.length;u+=1)p[u].c();t.attr(a,"class","CashierTransactionHistoryTitle svelte-1cus01h"),t.attr(S,"class","svelte-1cus01h"),t.attr(m,"class","svelte-1cus01h"),t.attr(A,"class","svelte-1cus01h"),t.attr(P,"class","svelte-1cus01h"),t.attr(g,"class","svelte-1cus01h"),t.attr(x,"class","svelte-1cus01h"),t.attr(w,"class","svelte-1cus01h"),t.attr(b,"class","svelte-1cus01h"),t.attr(y,"class","CashierTransactionHistoryContent svelte-1cus01h"),t.attr(h,"class","CashierTransactionHistoryWrapper svelte-1cus01h"),t.attr(e,"class","CashierTransactionHistory svelte-1cus01h")},m(u,v){t.insert(u,e,v),n&&n.m(e,null),t.append(e,s),t.append(e,a),t.append(a,l),t.append(e,o),t.append(e,h),t.append(h,y),t.append(y,b),t.append(b,x),t.append(x,g),t.append(g,S),t.append(S,I),t.append(g,k),t.append(g,m),t.append(m,D),t.append(g,T),t.append(g,A),t.append(A,F),t.append(g,R),t.append(g,P),t.append(P,f),t.append(b,c),t.append(b,w);for(let _=0;_<p.length;_+=1)p[_]&&p[_].m(w,null);i[18](e)},p(u,v){if(u[5]?n?(n.p(u,v),v&32&&t.transition_in(n,1)):(n=q(u),n.c(),t.transition_in(n,1),n.m(e,s)):n&&(t.group_outros(),t.transition_out(n,1,1,()=>{n=null}),t.check_outros()),v&256&&r!==(r=u[8]("transactionHistoryTitle")+"")&&t.set_data(l,r),v&256&&H!==(H=u[8]("transactionIdTitle")+"")&&t.set_data(I,H),v&256&&j!==(j=u[8]("transactionDateTitle")+"")&&t.set_data(D,j),v&256&&z!==(z=u[8]("transactionTypeTitle")+"")&&t.set_data(F,z),v&256&&C!==(C=u[8]("transactionStatusTitle")+"")&&t.set_data(f,C),v&944){d=t.ensure_array_like(u[4]);let _;for(_=0;_<d.length;_+=1){const B=W(u,d,_);p[_]?p[_].p(B,v):(p[_]=N(B),p[_].c(),p[_].m(w,null))}for(;_<p.length;_+=1)p[_].d(1);p.length=d.length}},d(u){u&&t.detach(e),n&&n.d(),t.destroy_each(p,u),i[18](null)}}}function q(i){let e,s=i[8]("copyTransactionId")+"",a,r,l,o;return{c(){e=t.element("div"),a=t.text(s),t.attr(e,"class","CopyTooltip svelte-1cus01h")},m(h,y){t.insert(h,e,y),t.append(e,a),o=!0},p(h,y){i=h,(!o||y&256)&&s!==(s=i[8]("copyTransactionId")+"")&&t.set_data(a,s)},i(h){o||(h&&t.add_render_callback(()=>{o&&(l&&l.end(1),r=t.create_in_transition(e,O.fade,{duration:100}),r.start())}),o=!0)},o(h){r&&r.invalidate(),h&&(l=t.create_out_transition(e,O.fade,{duration:i[2]})),o=!1},d(h){h&&t.detach(e),h&&l&&l.end()}}}function Q(i){let e,s,a;return{c(){e=t.svg_element("svg"),s=t.svg_element("circle"),a=t.svg_element("path"),t.attr(s,"cx","12"),t.attr(s,"cy","12"),t.attr(s,"r","10"),t.attr(s,"stroke","#25bf00"),t.attr(s,"stroke-width","2"),t.attr(s,"class","svelte-1cus01h"),t.attr(a,"d","M8 12L11 15L16 9"),t.attr(a,"stroke","#25bf00"),t.attr(a,"stroke-width","2"),t.attr(a,"stroke-linecap","round"),t.attr(a,"stroke-linejoin","round"),t.attr(a,"class","svelte-1cus01h"),t.attr(e,"width","18"),t.attr(e,"height","18"),t.attr(e,"viewBox","0 0 24 24"),t.attr(e,"fill","none"),t.attr(e,"xmlns","http://www.w3.org/2000/svg"),t.attr(e,"class","svelte-1cus01h")},m(r,l){t.insert(r,e,l),t.append(e,s),t.append(e,a)},d(r){r&&t.detach(e)}}}function Z(i){let e,s,a,r;return{c(){e=t.svg_element("svg"),s=t.svg_element("circle"),a=t.svg_element("text"),r=t.text("R"),t.attr(s,"cx","12"),t.attr(s,"cy","12"),t.attr(s,"r","10"),t.attr(s,"stroke","#dd6617d4"),t.attr(s,"stroke-width","2"),t.attr(s,"class","svelte-1cus01h"),t.attr(a,"x","50%"),t.attr(a,"y","54%"),t.attr(a,"text-anchor","middle"),t.attr(a,"dominant-baseline","middle"),t.attr(a,"font-size","14"),t.attr(a,"font-weight","bold"),t.attr(a,"fill","#dd6617d4"),t.attr(a,"font-family","Arial Rounded MT Bold, Arial, sans-serif"),t.attr(a,"class","svelte-1cus01h"),t.attr(e,"width","18"),t.attr(e,"height","18"),t.attr(e,"viewBox","0 0 24 24"),t.attr(e,"fill","none"),t.attr(e,"xmlns","http://www.w3.org/2000/svg"),t.attr(e,"class","svelte-1cus01h")},m(l,o){t.insert(l,e,o),t.append(e,s),t.append(e,a),t.append(a,r)},d(l){l&&t.detach(e)}}}function $(i){let e,s,a;return{c(){e=t.svg_element("svg"),s=t.svg_element("circle"),a=t.svg_element("path"),t.attr(s,"cx","12"),t.attr(s,"cy","12"),t.attr(s,"r","10"),t.attr(s,"stroke","#f0a85f"),t.attr(s,"stroke-width","2"),t.attr(s,"class","svelte-1cus01h"),t.attr(a,"d","M12 7V12L15 14"),t.attr(a,"stroke","#f0a85f"),t.attr(a,"stroke-width","2"),t.attr(a,"stroke-linecap","round"),t.attr(a,"stroke-linejoin","round"),t.attr(a,"class","svelte-1cus01h"),t.attr(e,"width","18"),t.attr(e,"height","18"),t.attr(e,"viewBox","0 0 24 24"),t.attr(e,"fill","none"),t.attr(e,"xmlns","http://www.w3.org/2000/svg"),t.attr(e,"class","svelte-1cus01h")},m(r,l){t.insert(r,e,l),t.append(e,s),t.append(e,a)},d(r){r&&t.detach(e)}}}function tt(i){let e,s,a;return{c(){e=t.svg_element("svg"),s=t.svg_element("circle"),a=t.svg_element("path"),t.attr(s,"cx","12"),t.attr(s,"cy","12"),t.attr(s,"r","10"),t.attr(s,"stroke","#e76049"),t.attr(s,"stroke-width","2"),t.attr(s,"class","svelte-1cus01h"),t.attr(a,"d","M9 9L15 15M15 9L9 15"),t.attr(a,"stroke","#e76049"),t.attr(a,"stroke-width","2"),t.attr(a,"stroke-linecap","round"),t.attr(a,"stroke-linejoin","round"),t.attr(a,"class","svelte-1cus01h"),t.attr(e,"width","18"),t.attr(e,"height","18"),t.attr(e,"viewBox","0 0 24 24"),t.attr(e,"fill","none"),t.attr(e,"xmlns","http://www.w3.org/2000/svg"),t.attr(e,"class","svelte-1cus01h")},m(r,l){t.insert(r,e,l),t.append(e,s),t.append(e,a)},d(r){r&&t.detach(e)}}}function et(i){let e,s,a,r;return{c(){e=t.svg_element("svg"),s=t.svg_element("circle"),a=t.svg_element("text"),r=t.text("A"),t.attr(s,"cx","12"),t.attr(s,"cy","12"),t.attr(s,"r","10"),t.attr(s,"stroke","#32b398"),t.attr(s,"stroke-width","2"),t.attr(s,"class","svelte-1cus01h"),t.attr(a,"x","50%"),t.attr(a,"y","54%"),t.attr(a,"text-anchor","middle"),t.attr(a,"dominant-baseline","middle"),t.attr(a,"font-size","14"),t.attr(a,"font-weight","bold"),t.attr(a,"fill","#32b398"),t.attr(a,"font-family","Arial Rounded MT Bold, Arial, sans-serif"),t.attr(a,"class","svelte-1cus01h"),t.attr(e,"width","18"),t.attr(e,"height","18"),t.attr(e,"viewBox","0 0 24 24"),t.attr(e,"fill","none"),t.attr(e,"xmlns","http://www.w3.org/2000/svg"),t.attr(e,"class","svelte-1cus01h")},m(l,o){t.insert(l,e,o),t.append(e,s),t.append(e,a),t.append(a,r)},d(l){l&&t.detach(e)}}}function N(i){let e,s,a=i[27].Code+"",r,l,o,h=i[27].Date+"",y,b,x,g=i[8](`transactionType.${i[27].Type}`)+"",S,H,I,k,m,j,D,T=i[8](`transactionStatus.${i[27].Status}`)+"",A,z,F,R;function P(c,w){if(c[27].Status===c[7].Authorized)return et;if(c[27].Status===c[7].Failed)return tt;if(c[27].Status===c[7].Pending)return $;if(c[27].Status===c[7].Rejected)return Z;if(c[27].Status===c[7].Success)return Q}let C=P(i),f=C&&C(i);return{c(){e=t.element("tr"),s=t.element("td"),r=t.text(a),l=t.space(),o=t.element("td"),y=t.text(h),b=t.space(),x=t.element("td"),S=t.text(g),H=t.space(),I=t.element("td"),k=t.element("div"),m=t.element("span"),f&&f.c(),j=t.space(),D=t.element("span"),A=t.text(T),z=t.space(),t.attr(s,"class","CashierTransactionId svelte-1cus01h"),t.toggle_class(s,"copied",i[5]),t.attr(o,"class","svelte-1cus01h"),t.attr(x,"class","svelte-1cus01h"),t.attr(m,"class","CashierTransactionHistoryIcon svelte-1cus01h"),t.attr(D,"class","CashierTransactionHistoryStatusText svelte-1cus01h"),t.attr(k,"class","CashierTransactionHistoryStatus svelte-1cus01h"),t.attr(I,"class","svelte-1cus01h"),t.attr(e,"class","svelte-1cus01h")},m(c,w){t.insert(c,e,w),t.append(e,s),t.append(s,r),t.append(e,l),t.append(e,o),t.append(o,y),t.append(e,b),t.append(e,x),t.append(x,S),t.append(e,H),t.append(e,I),t.append(I,k),t.append(k,m),f&&f.m(m,null),t.append(k,j),t.append(k,D),t.append(D,A),t.append(e,z),F||(R=t.listen(s,"mousedown",i[17]),F=!0)},p(c,w){w&16&&a!==(a=c[27].Code+"")&&t.set_data(r,a),w&32&&t.toggle_class(s,"copied",c[5]),w&16&&h!==(h=c[27].Date+"")&&t.set_data(y,h),w&272&&g!==(g=c[8](`transactionType.${c[27].Type}`)+"")&&t.set_data(S,g),C!==(C=P(c))&&(f&&f.d(1),f=C&&C(c),f&&(f.c(),f.m(m,null))),w&272&&T!==(T=c[8](`transactionStatus.${c[27].Status}`)+"")&&t.set_data(A,T)},d(c){c&&t.detach(e),f&&f.d(),F=!1,R()}}}function st(i){let e;function s(l,o){if(l[4].length)return K;if(l[6])return V}let a=s(i),r=a&&a(i);return{c(){e=t.element("div"),r&&r.c(),t.attr(e,"class","CashierTransactionHistoryContainer svelte-1cus01h")},m(l,o){t.insert(l,e,o),r&&r.m(e,null)},p(l,[o]){a===(a=s(l))&&r?r.p(l,o):(r&&r.d(1),r=a&&a(l),r&&(r.c(),r.m(e,null)))},i:t.noop,o:t.noop,d(l){l&&t.detach(e),r&&r.d()}}}const at="DD.MM.YYYY";function nt(i,e,s){let a;t.component_subscribe(i,L.$format,n=>s(8,a=n));let{endpoint:r}=e,{session:l}=e,{lang:o="en"}=e,{customerid:h}=e,{clientstyling:y=""}=e,{clientstylingurl:b=""}=e,{translationurl:x}=e,{tooltipduration:g=1e3}=e,{txncount:S=3}=e,{mbsource:H=""}=e,I=[],k=!1,m,j,D=!1;var T;(function(n){n.Deposit="deposit",n.Withdraw="withdraw",n.Refund="refund",n.Unknown="unknown",n.TaxDeduction="taxDeduction"})(T||(T={}));const A=["Authorized","Success","Failed","Rejected","PendingApprovalStage1","PendingApprovalStage2","PendingApprovalStage3","PendingNotification","PendingOfflineNotification","PendingConfirmation"];var z;(function(n){n.Authorized="Authorized",n.Success="Success",n.Failed="Failed",n.Rejected="Rejected",n.Pending="Pending"})(z||(z={})),t.onMount(()=>()=>{});const F=()=>{let n=x;if(n)return fetch(n).then(d=>d.json()).then(d=>{Object.keys(d).forEach(p=>{E(p,d[p])})}).catch(d=>{console.log(d)})};Object.keys(U).forEach(n=>{E(n,U[n])});const R=()=>{G(o)},P=()=>{const n=new URL(`${r}/api/v1/mm/payment/gettransactionshistory`),d=new Headers;d.append("accept","application/json"),d.append("Content-Type","application/json"),d.append("X-SessionId",`${l}`);const p=new Date(new Date().setMonth(new Date().getMonth()-3)).toISOString(),u={method:"POST",mode:"cors",headers:d,body:JSON.stringify({language:o,customerId:h,count:S,page:0,fromDate:p,toDate:null,statuses:{[T.Deposit]:A,[T.Withdraw]:A,[T.Refund]:["Unknown"],[T.TaxDeduction]:["Unknown"],[T.Unknown]:["Unknown"]},calculateProfit:!1})};s(6,D=!0),fetch(n,u).then(v=>v.json()).then(v=>{s(4,I=C((v==null?void 0:v.items)||[]))}).catch(v=>console.log(v)).finally(()=>s(6,D=!1))},C=n=>n.map(d=>{let p=d.generalFields.status;return d.generalFields.status.toLowerCase().includes("pending")&&(p=z.Pending),{Code:d.generalFields.code,Date:X.dayjs(d.generalFields.created).format(at),Status:p,Type:d.generalFields.type}})||[],f=n=>{const d=n.currentTarget;n.target===d&&navigator.clipboard.writeText(d.innerText).then(()=>{s(5,k=!0),clearTimeout(j),j=setTimeout(()=>{s(5,k=!1)},2e3)}).catch(p=>{console.error("Could not copy text: ",p)})},c=n=>f(n);function w(n){t.binding_callbacks[n?"unshift":"push"](()=>{m=n,s(3,m)})}return i.$$set=n=>{"endpoint"in n&&s(10,r=n.endpoint),"session"in n&&s(11,l=n.session),"lang"in n&&s(12,o=n.lang),"customerid"in n&&s(13,h=n.customerid),"clientstyling"in n&&s(0,y=n.clientstyling),"clientstylingurl"in n&&s(1,b=n.clientstylingurl),"translationurl"in n&&s(14,x=n.translationurl),"tooltipduration"in n&&s(2,g=n.tooltipduration),"txncount"in n&&s(15,S=n.txncount),"mbsource"in n&&s(16,H=n.mbsource)},i.$$.update=()=>{i.$$.dirty&4096&&o&&R(),i.$$.dirty&9&&y&&m&&M.setClientStyling(m,y),i.$$.dirty&10&&b&&m&&M.setClientStylingURL(m,b),i.$$.dirty&15360&&r&&l&&h&&o&&P(),i.$$.dirty&16384&&x&&F(),i.$$.dirty&65544&&H&&m&&M.setStreamStyling(m,`${H}.Style`)},[y,b,g,m,I,k,D,z,a,f,r,l,o,h,x,S,H,c,w]}class Y extends t.SvelteComponent{constructor(e){super(),t.init(this,e,nt,st,t.safe_not_equal,{endpoint:10,session:11,lang:12,customerid:13,clientstyling:0,clientstylingurl:1,translationurl:14,tooltipduration:2,txncount:15,mbsource:16},J)}get endpoint(){return this.$$.ctx[10]}set endpoint(e){this.$$set({endpoint:e}),t.flush()}get session(){return this.$$.ctx[11]}set session(e){this.$$set({session:e}),t.flush()}get lang(){return this.$$.ctx[12]}set lang(e){this.$$set({lang:e}),t.flush()}get customerid(){return this.$$.ctx[13]}set customerid(e){this.$$set({customerid:e}),t.flush()}get clientstyling(){return this.$$.ctx[0]}set clientstyling(e){this.$$set({clientstyling:e}),t.flush()}get clientstylingurl(){return this.$$.ctx[1]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),t.flush()}get translationurl(){return this.$$.ctx[14]}set translationurl(e){this.$$set({translationurl:e}),t.flush()}get tooltipduration(){return this.$$.ctx[2]}set tooltipduration(e){this.$$set({tooltipduration:e}),t.flush()}get txncount(){return this.$$.ctx[15]}set txncount(e){this.$$set({txncount:e}),t.flush()}get mbsource(){return this.$$.ctx[16]}set mbsource(e){this.$$set({mbsource:e}),t.flush()}}t.create_custom_element(Y,{endpoint:{},session:{},lang:{},customerid:{},clientstyling:{},clientstylingurl:{},translationurl:{},tooltipduration:{},txncount:{},mbsource:{}},[],[],!0);exports.default=Y;
|