@everymatrix/cashier-page 1.74.3 → 1.74.4
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-1Nze3uRQ.cjs → CashierConfirmModal-C5Z0fFCo.cjs} +1 -1
- package/components/{CashierConfirmModal-CAadcioc.js → CashierConfirmModal-D6-yvknK.js} +37 -37
- package/components/{CashierConfirmModal-DDAKZDUC.js → CashierConfirmModal-DluW6utN.js} +37 -37
- package/components/{CashierError-sD7IMbO3.js → CashierError-B_HILIqI.js} +843 -845
- package/components/{CashierError-DKXwWPdS.js → CashierError-CQ8ceQ8e.js} +842 -844
- package/components/CashierError-DZ5vqVXV.cjs +18 -0
- package/components/{CashierHeader-Csl1fr7B.js → CashierHeader-CNyLXgin.js} +85 -85
- package/components/CashierHeader-Cjxrbu0V.cjs +1 -0
- package/components/{CashierHeader-DgkvmyGy.js → CashierHeader-DW3Xs1f3.js} +85 -85
- package/components/{CashierIframeRedirect-BVbylufQ.js → CashierIframeRedirect-D81gVeBk.js} +19 -19
- package/components/{CashierIframeRedirect-CfNgplrC.cjs → CashierIframeRedirect-DU1GgNLD.cjs} +1 -1
- package/components/{CashierIframeRedirect-BmpK5ow8.js → CashierIframeRedirect-IwNw_njq.js} +19 -19
- package/components/{CashierMethodDetails-DiAqx44U.js → CashierMethodDetails-BGsVDE-f.js} +1556 -1532
- package/components/CashierMethodDetails-DqkQ4_KO.cjs +86 -0
- package/components/{CashierMethodDetails-P17OdcdK.js → CashierMethodDetails-F4689jao.js} +1552 -1528
- package/components/{CashierMethodsList-CKthlCGX.js → CashierMethodsList-C6gO6002.js} +7 -7
- package/components/{CashierMethodsList-Ckph7ZrW.cjs → CashierMethodsList-CGC7CYN5.cjs} +1 -1
- package/components/{CashierMethodsList-BCVnAycL.js → CashierMethodsList-DjomymWI.js} +7 -7
- package/components/{CashierModal-BzLUXC5b.js → CashierModal-B4of2Oxh.js} +21 -21
- package/components/{CashierModal-DgJVwKgD.js → CashierModal-CvWSs-3j.js} +21 -21
- package/components/{CashierModal-BeyYHPh_.cjs → CashierModal-DSuBZJDR.cjs} +1 -1
- package/components/{CashierNotifications-Bg4FfLXd.js → CashierNotifications-CkXKlPIz.js} +7 -7
- package/components/{CashierNotifications-DQLEBAzG.cjs → CashierNotifications-JBaW5ppf.cjs} +1 -1
- package/components/{CashierNotifications-CnNs8Q-I.js → CashierNotifications-a3GpFzzw.js} +7 -7
- package/components/{CashierPage-CBJ9IN-g.js → CashierPage-BOTLH9IT.js} +417 -398
- package/components/{CashierPage-CPeiabkN.js → CashierPage-CsquU0m3.js} +417 -398
- package/components/{CashierPage-Cfx71rM-.cjs → CashierPage-DnkQ_B-E.cjs} +1 -1
- package/components/{CashierReceiptPage-B0PozTkv.js → CashierReceiptPage-C453rQDk.js} +7 -7
- package/components/{CashierReceiptPage-B6UjN5Q1.cjs → CashierReceiptPage-JWrvaB9t.cjs} +1 -1
- package/components/{CashierReceiptPage-DiS2KHAz.js → CashierReceiptPage-Z1iljI5f.js} +7 -7
- package/components/{CashierSessionExpirationModal-BAJRL4gv.cjs → CashierSessionExpirationModal-BK27R9OF.cjs} +2 -2
- package/components/{CashierSessionExpirationModal-Buy3vdjO.js → CashierSessionExpirationModal-CG6neYbz.js} +192 -192
- package/components/{CashierSessionExpirationModal-DT3oBfp2.js → CashierSessionExpirationModal-_Kgq_fo0.js} +192 -192
- package/components/{CashierSpinner-C4GQ6kb8.cjs → CashierSpinner-C0dfKfvc.cjs} +1 -1
- package/components/{CashierSpinner-BPDTwIid.js → CashierSpinner-Pf85g3j2.js} +8 -8
- package/components/{CashierSpinner-l6gUFRED.js → CashierSpinner-nZ-w8uRg.js} +8 -8
- package/components/{CashierTransactionHistory-C86tMPpk.js → CashierTransactionHistory-Dk2w-r6Z.js} +11 -11
- package/components/{CashierTransactionHistory-CKKvzN0W.cjs → CashierTransactionHistory-DmmtyBaS.cjs} +1 -1
- package/components/{CashierTransactionHistory-xBP8Taal.js → CashierTransactionHistory-Dv3ixTST.js} +11 -11
- package/components/{CashierVerifications-C7bW-1bL.js → CashierVerifications-BSnUCwe2.js} +8 -8
- package/components/{CashierVerifications-JJPCakqk.js → CashierVerifications-BWkBnubY.js} +8 -8
- package/components/{CashierVerifications-hXDF0Y0-.cjs → CashierVerifications-BXh8OOq3.cjs} +1 -1
- package/components/{CashierVideoModal-BJTlGVpX.js → CashierVideoModal-Bt_4tboX.js} +16 -16
- package/components/{CashierVideoModal-B7fVKDny.cjs → CashierVideoModal-CrKgGT0K.cjs} +1 -1
- package/components/{CashierVideoModal-C02JNbWy.js → CashierVideoModal-Olu5n2I9.js} +16 -16
- package/components/{TxnStatusIcon-DKKXQdof.cjs → TxnStatusIcon-Bk0oBxLN.cjs} +1 -1
- package/components/{TxnStatusIcon-Bg9sJj0e.js → TxnStatusIcon-DIdoWxaS.js} +4 -4
- package/components/{TxnStatusIcon-BiT0IpnZ.js → TxnStatusIcon-DN0llRTe.js} +4 -4
- package/components/{TxnTypeIcons-9BTCQOTk.js → TxnTypeIcons-BPVFmF5k.js} +1 -1
- package/components/{TxnTypeIcons-BDSLNTNd.js → TxnTypeIcons-BuQgMseI.js} +1 -1
- package/components/{TxnTypeIcons-Dbv7Pgop.cjs → TxnTypeIcons-CVoF9ajj.cjs} +1 -1
- 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/{index-97d17652-DIpvPU9H.js → index-97d17652-BD-QREJe.js} +151 -151
- package/stencil/{index-97d17652-C7V2DWFg.js → index-97d17652-DJqGt8q2.js} +147 -147
- package/stencil/index-97d17652-tiiCeQFu.cjs +1 -0
- package/stencil/index-b2193545-BhpttWPO.cjs +1 -0
- package/stencil/{index-b2193545-CfiRkmy3.js → index-b2193545-DWKmtYUG.js} +169 -169
- package/stencil/{index-b2193545-B5WVVmva.js → index-b2193545-Dfy4Cgny.js} +176 -176
- package/stencil/{ui-image-am9MgSQ8.js → ui-image-4dZyD9yF.js} +1 -1
- package/stencil/{ui-image-DCPAt25-.js → ui-image-6u7OR3Eo.js} +1 -1
- package/stencil/{ui-image-CNNeJmP0.cjs → ui-image-CER01gdl.cjs} +1 -1
- package/stencil/{ui-image-b7b48fe5-B-k0kWgx.js → ui-image-b7b48fe5-2Ir9VtWc.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-D8-wEkoZ.js → ui-image-b7b48fe5-AJGQkQBu.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-yceZ9WkN.cjs → ui-image-b7b48fe5-pdIH5TBa.cjs} +1 -1
- package/stencil/{ui-image_2-Ha_4GYwN.cjs → ui-image_2-BGf0VFLf.cjs} +1 -1
- package/stencil/{ui-image_2-z5LhXZY2.js → ui-image_2-Dh5Eqdlm.js} +2 -2
- package/stencil/{ui-image_2-CzFe50WB.js → ui-image_2-_K8Pt3w9.js} +2 -2
- package/stencil/{ui-skeleton-vQGsM2TX.js → ui-skeleton-BTr272EW.js} +2 -2
- package/stencil/{ui-skeleton-D1L4lwNZ.js → ui-skeleton-P4PO_42z.js} +2 -2
- package/stencil/{ui-skeleton-ae35c6f2-Biyf8F-y.js → ui-skeleton-ae35c6f2-BIdXBK8D.js} +1 -1
- package/stencil/{ui-skeleton-ae35c6f2-CzSGP5Of.js → ui-skeleton-ae35c6f2-C7WHUwAT.js} +1 -1
- package/stencil/{ui-skeleton-ae35c6f2-CFTNuZYA.cjs → ui-skeleton-ae35c6f2-D-MGUxCy.cjs} +1 -1
- package/stencil/{ui-skeleton-DuT40Wl3.cjs → ui-skeleton-gIFE_2eg.cjs} +1 -1
- package/components/CashierError-CK3QkcBi.cjs +0 -18
- package/components/CashierHeader-DuCdkwLD.cjs +0 -1
- package/components/CashierMethodDetails-Cv7OCjGx.cjs +0 -86
- package/stencil/index-97d17652-BgKdDb-e.cjs +0 -1
- package/stencil/index-b2193545-B1ZEoKQs.cjs +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CashierConfirmModal-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CashierConfirmModal-C5Z0fFCo.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;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { S as h, b as d, f as o, c as f, a as m, d as y, g, j as p, k, n as c, v as b, x,
|
|
1
|
+
import { S as h, b as d, f as o, c as f, a as m, d as y, g, j as p, k, n as c, v as b, x, y as S, z as v, F as w, G as _ } from "./CashierConfirmModal-DluW6utN.js";
|
|
2
2
|
function C(e) {
|
|
3
3
|
y(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}}");
|
|
4
4
|
}
|
|
5
|
-
function
|
|
5
|
+
function z(e) {
|
|
6
6
|
let t;
|
|
7
7
|
return {
|
|
8
8
|
c() {
|
|
@@ -19,12 +19,12 @@ function j(e) {
|
|
|
19
19
|
}
|
|
20
20
|
};
|
|
21
21
|
}
|
|
22
|
-
function
|
|
22
|
+
function j(e, t, i) {
|
|
23
23
|
let { clientstyling: r = "" } = t, { clientstylingurl: a = "" } = t, { mbsource: l = "" } = t, s;
|
|
24
24
|
x(() => () => {
|
|
25
25
|
});
|
|
26
26
|
function u(n) {
|
|
27
|
-
|
|
27
|
+
w[n ? "unshift" : "push"](() => {
|
|
28
28
|
s = n, i(0, s);
|
|
29
29
|
});
|
|
30
30
|
}
|
|
@@ -32,9 +32,9 @@ function z(e, t, i) {
|
|
|
32
32
|
"clientstyling" in n && i(1, r = n.clientstyling), "clientstylingurl" in n && i(2, a = n.clientstylingurl), "mbsource" in n && i(3, l = n.mbsource);
|
|
33
33
|
}, e.$$.update = () => {
|
|
34
34
|
e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
35
|
-
3 && r && s &&
|
|
36
|
-
5 && a && s &&
|
|
37
|
-
9 && l && s &&
|
|
35
|
+
3 && r && s && _(s, r), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
36
|
+
5 && a && s && S(s, a), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
37
|
+
9 && l && s && v(s, `${l}.Style`);
|
|
38
38
|
}, [s, r, a, l, u];
|
|
39
39
|
}
|
|
40
40
|
class L extends h {
|
|
@@ -42,8 +42,8 @@ class L extends h {
|
|
|
42
42
|
super(), d(
|
|
43
43
|
this,
|
|
44
44
|
t,
|
|
45
|
-
z,
|
|
46
45
|
j,
|
|
46
|
+
z,
|
|
47
47
|
m,
|
|
48
48
|
{
|
|
49
49
|
clientstyling: 1,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { S as h, b as d, f as o, c as f, a as m, d as y, g, j as p, k, n as c, v as b, x,
|
|
1
|
+
import { S as h, b as d, f as o, c as f, a as m, d as y, g, j as p, k, n as c, v as b, x, y as S, z as v, F as w, G as _ } from "./CashierConfirmModal-D6-yvknK.js";
|
|
2
2
|
function C(e) {
|
|
3
3
|
y(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}}");
|
|
4
4
|
}
|
|
5
|
-
function
|
|
5
|
+
function z(e) {
|
|
6
6
|
let t;
|
|
7
7
|
return {
|
|
8
8
|
c() {
|
|
@@ -19,12 +19,12 @@ function j(e) {
|
|
|
19
19
|
}
|
|
20
20
|
};
|
|
21
21
|
}
|
|
22
|
-
function
|
|
22
|
+
function j(e, t, i) {
|
|
23
23
|
let { clientstyling: r = "" } = t, { clientstylingurl: a = "" } = t, { mbsource: l = "" } = t, s;
|
|
24
24
|
x(() => () => {
|
|
25
25
|
});
|
|
26
26
|
function u(n) {
|
|
27
|
-
|
|
27
|
+
w[n ? "unshift" : "push"](() => {
|
|
28
28
|
s = n, i(0, s);
|
|
29
29
|
});
|
|
30
30
|
}
|
|
@@ -32,9 +32,9 @@ function z(e, t, i) {
|
|
|
32
32
|
"clientstyling" in n && i(1, r = n.clientstyling), "clientstylingurl" in n && i(2, a = n.clientstylingurl), "mbsource" in n && i(3, l = n.mbsource);
|
|
33
33
|
}, e.$$.update = () => {
|
|
34
34
|
e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
35
|
-
3 && r && s &&
|
|
36
|
-
5 && a && s &&
|
|
37
|
-
9 && l && s &&
|
|
35
|
+
3 && r && s && _(s, r), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
36
|
+
5 && a && s && S(s, a), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
37
|
+
9 && l && s && v(s, `${l}.Style`);
|
|
38
38
|
}, [s, r, a, l, u];
|
|
39
39
|
}
|
|
40
40
|
class L extends h {
|
|
@@ -42,8 +42,8 @@ class L extends h {
|
|
|
42
42
|
super(), d(
|
|
43
43
|
this,
|
|
44
44
|
t,
|
|
45
|
-
z,
|
|
46
45
|
j,
|
|
46
|
+
z,
|
|
47
47
|
m,
|
|
48
48
|
{
|
|
49
49
|
clientstyling: 1,
|
package/components/{CashierTransactionHistory-C86tMPpk.js → CashierTransactionHistory-Dk2w-r6Z.js}
RENAMED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { S as lt, b as it, f as E, c as at, a as nt, d as ot, g as k, j as u, k as j, p as B, q as pe, t as N, v as A, w as rt, x as ct,
|
|
2
|
-
import { f as Ee } from "./CashierModal-
|
|
3
|
-
import { i as pt, a as vt, $ as kt, b as gt } from "./CashierError-
|
|
4
|
-
import { d as ue } from "./CashierMethodDetails-
|
|
5
|
-
import "../stencil/ui-image-
|
|
6
|
-
import { T as xt } from "./TxnTypeIcons-
|
|
7
|
-
import { T as yt } from "./TxnStatusIcon-
|
|
1
|
+
import { S as lt, b as it, f as E, c as at, a as nt, d as ot, g as k, j as u, k as j, p as B, q as pe, t as N, v as A, w as rt, x as ct, y as ht, z as ut, E as ve, F as dt, G as ft, I as $, n as M, N as ee, h as F, B as T, L as te, l as r, C as R, P as Ce, J as Ke, Y as Qe, Z as mt, A as $e, D as Se, _ as Ie, R as be, H as ze, $ as et, a0 as tt, a1 as st } from "./CashierConfirmModal-DluW6utN.js";
|
|
2
|
+
import { f as Ee } from "./CashierModal-CvWSs-3j.js";
|
|
3
|
+
import { i as pt, a as vt, $ as kt, b as gt } from "./CashierError-CQ8ceQ8e.js";
|
|
4
|
+
import { d as ue } from "./CashierMethodDetails-BGsVDE-f.js";
|
|
5
|
+
import "../stencil/ui-image-6u7OR3Eo.js";
|
|
6
|
+
import { T as xt } from "./TxnTypeIcons-BPVFmF5k.js";
|
|
7
|
+
import { T as yt } from "./TxnStatusIcon-DN0llRTe.js";
|
|
8
8
|
pt({
|
|
9
9
|
fallbackLocale: "en"
|
|
10
10
|
});
|
|
@@ -1107,7 +1107,7 @@ function zt(l, e, t) {
|
|
|
1107
1107
|
css: (S) => `overflow: hidden; transform: translateY(${(1 - S) * 20}px); opacity: ${S}`
|
|
1108
1108
|
}), xe = (n) => Q(n), W = (n) => re(n), ce = (n) => Q(n, !1);
|
|
1109
1109
|
function he(n) {
|
|
1110
|
-
|
|
1110
|
+
dt[n ? "unshift" : "push"](() => {
|
|
1111
1111
|
z = n, t(6, z);
|
|
1112
1112
|
});
|
|
1113
1113
|
}
|
|
@@ -1116,11 +1116,11 @@ function zt(l, e, t) {
|
|
|
1116
1116
|
}, l.$$.update = () => {
|
|
1117
1117
|
l.$$.dirty[0] & /*lang*/
|
|
1118
1118
|
262144 && o && fe(), l.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
1119
|
-
65 && a && z &&
|
|
1120
|
-
66 && v && z &&
|
|
1119
|
+
65 && a && z && ft(z, a), l.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
1120
|
+
66 && v && z && ht(z, v), l.$$.dirty[0] & /*endpoint, session, customerid, lang, fromdate, todate, page, calculateprofit*/
|
|
1121
1121
|
252641280 && i && c && h && o && D && L && _ && I && ke(), l.$$.dirty[0] & /*translationurl*/
|
|
1122
1122
|
1048576 && w && oe(), l.$$.dirty[0] & /*mbsource, customStylingContainer*/
|
|
1123
|
-
4194368 && g && z &&
|
|
1123
|
+
4194368 && g && z && ut(z, `${g}.Style`);
|
|
1124
1124
|
}, [
|
|
1125
1125
|
a,
|
|
1126
1126
|
v,
|
package/components/{CashierTransactionHistory-CKKvzN0W.cjs → CashierTransactionHistory-DmmtyBaS.cjs}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CashierConfirmModal-1Nze3uRQ.cjs"),_e=require("./CashierModal-BeyYHPh_.cjs"),re=require("./CashierError-CK3QkcBi.cjs"),K=require("./CashierMethodDetails-Cv7OCjGx.cjs");require("../stencil/ui-image-CNNeJmP0.cjs");const Ae=require("./TxnTypeIcons-Dbv7Pgop.cjs"),Ie=require("./TxnStatusIcon-DKKXQdof.cjs");re.init({fallbackLocale:"en"});function ve(s,t){re.addMessages(s,t)}function Pe(s){re.$locale.set(s)}const ge={en:{transactionHistoryTitle:"Transaction History",transactionCodeTitle:"ID",transactionDateTitle:"Date",transactionDateTimeTitle:"Date",transactionTypeTitle:"Type",transactionStatusTitle:"Status",transactionStatusIconTitle:"Status",transactionTypeIconTitle:"Type",copyTransactionId:"Transaction Id copied to clipboard",transactionAmountTitle:"Amount",transactionPaymentMethodTitle:"Payment Method",transactionRejectionNoteTitle:"Rejection Note",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",transactionDateTimeTitle:"Tarih",transactionTypeTitle:"Tip",transactionStatusTitle:"Durum",transactionStatusIconTitle:"Durum",transactionTypeIconTitle:"Tip",transactionAmountTitle:"Tutar",transactionRejectionNoteTitle:"Reddetme Notu",transactionPaymentMethodTitle:"Ödeme Yöntemi",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 ze(s){e.append_styles(s,"svelte-cx3kh",'.svelte-cx3kh.svelte-cx3kh,.svelte-cx3kh.svelte-cx3kh::before,.svelte-cx3kh.svelte-cx3kh::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-style:inherit}.CopyTooltip.svelte-cx3kh.svelte-cx3kh{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-cx3kh.svelte-cx3kh{position:relative}.CashierTransactionHistory.svelte-cx3kh.svelte-cx3kh{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-cx3kh table.svelte-cx3kh{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;text-align:center;margin-bottom:var(--emw--spacing-small-minus, 10px)}.CashierTransactionHistory.svelte-cx3kh table.svelte-cx3kh:not(:last-child){margin-bottom:var(--emw--spacing-large, 20px)}.CashierTransactionHistory.svelte-cx3kh thead tr.svelte-cx3kh{border-bottom:1px solid var(--mmw--color-grey-105, #E8E9EB);color:var(--mmw--color-grey-10, #111);height:50px}.CashierTransactionHistory.svelte-cx3kh tbody tr.svelte-cx3kh{color:var(--mmw--color-grey-290, #666)}.CashierTransactionHistory.svelte-cx3kh tbody tr.svelte-cx3kh:not(:last-child):not(.Expanded){border-bottom:1px solid #E8E9EB}.CashierTransactionHistory.svelte-cx3kh .TypeIcon.svelte-cx3kh{display:flex}.CashierTransactionHistory.svelte-cx3kh .StatusIcon svg.svelte-cx3kh{flex:0 0 auto;width:18px;height:18px}.CashierTransactionHistory.svelte-cx3kh .StatusIcon span.svelte-cx3kh{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:left}.CashierTransactionHistory.svelte-cx3kh td.svelte-cx3kh{max-width:250px;vertical-align:middle;height:40px;line-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-cx3kh td:last-child .CashierTransactionHistoryStatusText.svelte-cx3kh{width:calc(100% - var(--emw--spacing-2x-small-plus, 6px) * 3 - 5px);display:block}.CashierTransactionHistory.svelte-cx3kh td.svelte-cx3kh:first-child{text-align:left}.CashierTransactionHistory.svelte-cx3kh td .ExpandedContent.svelte-cx3kh{line-height:100%}.CashierTransactionHistory.svelte-cx3kh tr.svelte-cx3kh{position:relative}.CashierTransactionHistory.svelte-cx3kh tr.svelte-cx3kh:not(.ExpandedRow):not(.CashierTransactionHistoryHeader):not(.AllowExpand):hover{background:var(--emw--color-gray-50, #F7F8FA)}@container transaction-history (width < 750px){.CashierTransactionHistory.svelte-cx3kh .CopyTooltip.svelte-cx3kh{width:100%}.CashierTransactionHistory.svelte-cx3kh td.svelte-cx3kh:has(.Code){max-width:135px}.CashierTransactionHistory.svelte-cx3kh td.svelte-cx3kh{padding:0 var(--emw--spacing-small, 12px) 0 var(--emw--spacing-small, 12px)}}@container transaction-history (width < 475px){.CashierTransactionHistory.svelte-cx3kh .CashierTransactionHistoryWrapper.svelte-cx3kh{padding:0 var(--emw--spacing-2x-small-plus, 6px)}.CashierTransactionHistory.svelte-cx3kh td.svelte-cx3kh{padding:0 var(--emw--spacing-2x-small-plus, 6px)}.CashierTransactionHistory.svelte-cx3kh td.svelte-cx3kh:first-child{width:40px;text-align:left}}@container transaction-history (width < 350px){.CashierTransactionHistory.svelte-cx3kh table.svelte-cx3kh{table-layout:fixed}.CashierTransactionHistory.svelte-cx3kh table td.svelte-cx3kh{padding:0 0 0 var(--emw--spacing-small, 5px)}}.CashierTransactionHistoryWrapper.svelte-cx3kh.svelte-cx3kh{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-cx3kh.svelte-cx3kh{display:none;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}.Code.svelte-cx3kh.svelte-cx3kh{cursor:pointer;-webkit-user-select:none;-ms-user-select:none;user-select:none;line-height:inherit;display:inline}.StatusIcon.svelte-cx3kh.svelte-cx3kh{display:flex;align-items:center;justify-content:center;gap:var(--emw--spacing-x-small, 6px)}.CashierTransactionHistoryStatus.svelte-cx3kh.svelte-cx3kh{display:flex;gap:5px}.Amount.Withdraw.svelte-cx3kh.svelte-cx3kh:before{content:"-"}.Amount.Deposit.svelte-cx3kh.svelte-cx3kh:before{content:"+"}.Amount.Deposit.Success.svelte-cx3kh.svelte-cx3kh{color:var(--emw--color-primary-dark, #4b975d)}.CashierTransactionHistoryStatusText.svelte-cx3kh.svelte-cx3kh{line-height:calc(var(--emw--font-size-medium, 16px) + 2px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.CashierTransactionHistoryContent.svelte-cx3kh.svelte-cx3kh{width:100%;overflow:hidden}.CashierTransactionHistoryIcon.svelte-cx3kh.svelte-cx3kh{vertical-align:middle;height:var(--emw--font-size-medium, 16px);width:var(--emw--font-size-medium, 16px)}.TransactionHistoryRow.svelte-cx3kh.svelte-cx3kh{cursor:pointer}.ShortHistory.svelte-cx3kh .CashierTransactionHistoryTitle.svelte-cx3kh{display:inline-block}.ShortHistory.svelte-cx3kh .TransactionHistoryRow.svelte-cx3kh{cursor:auto}.ShortHistory.svelte-cx3kh .TransactionHistoryRow.svelte-cx3kh:hover{background:unset}.ExpandedContent.svelte-cx3kh.svelte-cx3kh{padding:var(--emw--spacing-large, 30px) var(--emw--spacing-small, 12px);position:relative;display:flex;flex-wrap:wrap;gap:var(--emw--spacing-small, 12px)}.ExpandedContent.svelte-cx3kh .DetailsLogo.svelte-cx3kh{width:65px;position:absolute;top:var(--emw--spacing-large, 30px);right:var(--emw--spacing-small, 12px)}.StaticDetails.svelte-cx3kh.svelte-cx3kh,.DynamicDetails.svelte-cx3kh.svelte-cx3kh{display:flex;flex-direction:column;gap:var(--emw--spacing-small, 12px);width:100%}.StaticDetails.svelte-cx3kh .DetailsTitle.svelte-cx3kh,.DynamicDetails.svelte-cx3kh .DetailsTitle.svelte-cx3kh{color:var(--mmw--color-grey-10, #111);font-size:var(--emw--font-size-medium, 16px);padding-right:6px}.StaticDetails.svelte-cx3kh .DetailsValue.svelte-cx3kh,.DynamicDetails.svelte-cx3kh .DetailsValue.svelte-cx3kh{color:var(--mmw--color-grey-290, #666);font-size:var(--emw--font-size-medium, 16px);white-space:normal;overflow-wrap:break-word;max-width:100%;word-break:normal}.DetailsRow.svelte-cx3kh.svelte-cx3kh{display:flex;align-items:center;flex-wrap:wrap;word-break:normal;overflow-wrap:break-word;white-space:normal}td.svelte-cx3kh.svelte-cx3kh:has(.Code){max-width:250px}td.svelte-cx3kh.svelte-cx3kh:has(.Code):hover{background:var(--emw--color-gray-50, #F7F8FA)}.CopyCode.svelte-cx3kh.svelte-cx3kh{display:inline-flex;gap:6px;align-items:center;cursor:pointer;border-radius:var(--mmw--border-radius-medium-plus, 6px);padding:4px 6px;max-width:60%}.CopyCode.svelte-cx3kh.svelte-cx3kh:hover{background:var(--emw--color-gray-50, #F7F8FA)}.CopyCode.svelte-cx3kh span.svelte-cx3kh{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:inline-block}.CopyCode.svelte-cx3kh svg.svelte-cx3kh{flex-shrink:0}')}function ke(s,t,n){const a=s.slice();return a[42]=t[n],a[44]=n,a}function xe(s,t,n){const a=s.slice();return a[45]=t[n][0],a[46]=t[n][1],a}function ye(s,t,n){const a=s.slice();return a[49]=t[n],a[44]=n,a}function we(s,t,n){const a=s.slice();return a[49]=t[n],a[44]=n,a}function Ee(s){let t;return{c(){t=e.element("cashier-spinner"),e.set_custom_element_data(t,"clientstylingurl",s[1]),e.set_custom_element_data(t,"clientstyling",s[0]),e.set_custom_element_data(t,"class","svelte-cx3kh")},m(n,a){e.insert(n,t,a)},p(n,a){a[0]&2&&e.set_custom_element_data(t,"clientstylingurl",n[1]),a[0]&1&&e.set_custom_element_data(t,"clientstyling",n[0])},i:e.noop,o:e.noop,d(n){n&&e.detach(t)}}}function Me(s){let t,n,a,l=s[12]("transactionHistoryTitle")+"",c,r,d,i,m,x,p,u,_,g,k=s[8]&&Te(s),S=e.ensure_array_like(s[10]),T=[];for(let h=0;h<S.length;h+=1)T[h]=be(we(s,S,h));let R=e.ensure_array_like(s[7]),y=[];for(let h=0;h<R.length;h+=1)y[h]=je(ke(s,R,h));const q=h=>e.transition_out(y[h],1,1,()=>{y[h]=null});return{c(){t=e.element("div"),k&&k.c(),n=e.space(),a=e.element("h3"),c=e.text(l),r=e.space(),d=e.element("div"),i=e.element("div"),m=e.element("table"),x=e.element("thead"),p=e.element("tr");for(let h=0;h<T.length;h+=1)T[h].c();u=e.space(),_=e.element("tbody");for(let h=0;h<y.length;h+=1)y[h].c();e.attr(a,"class","CashierTransactionHistoryTitle svelte-cx3kh"),e.attr(p,"class","CashierTransactionHistoryHeader svelte-cx3kh"),e.attr(x,"class","svelte-cx3kh"),e.attr(_,"class","svelte-cx3kh"),e.attr(m,"class","svelte-cx3kh"),e.attr(i,"class","CashierTransactionHistoryContent svelte-cx3kh"),e.attr(d,"class","CashierTransactionHistoryWrapper svelte-cx3kh"),e.attr(t,"class","CashierTransactionHistory svelte-cx3kh"),e.toggle_class(t,"ShortHistory",s[3]==="true")},m(h,w){e.insert(h,t,w),k&&k.m(t,null),e.append(t,n),e.append(t,a),e.append(a,c),e.append(t,r),e.append(t,d),e.append(d,i),e.append(i,m),e.append(m,x),e.append(x,p);for(let f=0;f<T.length;f+=1)T[f]&&T[f].m(p,null);e.append(m,u),e.append(m,_);for(let f=0;f<y.length;f+=1)y[f]&&y[f].m(_,null);s[31](t),g=!0},p(h,w){if(h[8]?k?(k.p(h,w),w[0]&256&&e.transition_in(k,1)):(k=Te(h),k.c(),e.transition_in(k,1),k.m(t,n)):k&&(e.group_outros(),e.transition_out(k,1,1,()=>{k=null}),e.check_outros()),(!g||w[0]&4096)&&l!==(l=h[12]("transactionHistoryTitle")+"")&&e.set_data(c,l),w[0]&5120){S=e.ensure_array_like(h[10]);let f;for(f=0;f<S.length;f+=1){const H=we(h,S,f);T[f]?T[f].p(H,w):(T[f]=be(H),T[f].c(),T[f].m(p,null))}for(;f<T.length;f+=1)T[f].d(1);T.length=S.length}if(w[0]&32184){R=e.ensure_array_like(h[7]);let f;for(f=0;f<R.length;f+=1){const H=ke(h,R,f);y[f]?(y[f].p(H,w),e.transition_in(y[f],1)):(y[f]=je(H),y[f].c(),e.transition_in(y[f],1),y[f].m(_,null))}for(e.group_outros(),f=R.length;f<y.length;f+=1)q(f);e.check_outros()}(!g||w[0]&8)&&e.toggle_class(t,"ShortHistory",h[3]==="true")},i(h){if(!g){e.transition_in(k);for(let w=0;w<R.length;w+=1)e.transition_in(y[w]);g=!0}},o(h){e.transition_out(k),y=y.filter(Boolean);for(let w=0;w<y.length;w+=1)e.transition_out(y[w]);g=!1},d(h){h&&e.detach(t),k&&k.d(),e.destroy_each(T,h),e.destroy_each(y,h),s[31](null)}}}function Te(s){let t,n=s[12]("copyTransactionId")+"",a,l,c,r;return{c(){t=e.element("div"),a=e.text(n),e.attr(t,"class","CopyTooltip svelte-cx3kh")},m(d,i){e.insert(d,t,i),e.append(t,a),r=!0},p(d,i){s=d,(!r||i[0]&4096)&&n!==(n=s[12]("copyTransactionId")+"")&&e.set_data(a,n)},i(d){r||(d&&e.add_render_callback(()=>{r&&(c&&c.end(1),l=e.create_in_transition(t,_e.fade,{duration:100}),l.start())}),r=!0)},o(d){l&&l.invalidate(),d&&(c=e.create_out_transition(t,_e.fade,{duration:s[2]})),r=!1},d(d){d&&e.detach(t),d&&c&&c.end()}}}function be(s){let t,n=s[12](`transaction${s[49]}Title`)+"",a;return{c(){t=e.element("td"),a=e.text(n),e.attr(t,"class","svelte-cx3kh")},m(l,c){e.insert(l,t,c),e.append(t,a)},p(l,c){c[0]&5120&&n!==(n=l[12](`transaction${l[49]}Title`)+"")&&e.set_data(a,n)},d(l){l&&e.detach(t)}}}function Ne(s){let t,n=s[42][s[49]]+"",a;return{c(){t=e.element("span"),a=e.text(n),e.attr(t,"class","svelte-cx3kh")},m(l,c){e.insert(l,t,c),e.append(t,a)},p(l,c){c[0]&1152&&n!==(n=l[42][l[49]]+"")&&e.set_data(a,n)},i:e.noop,o:e.noop,d(l){l&&e.detach(t)}}}function Le(s){let t=K.dayjs(s[42].DateTime).format(s[5])+"",n;return{c(){n=e.text(t)},m(a,l){e.insert(a,n,l)},p(a,l){l[0]&160&&t!==(t=K.dayjs(a[42].DateTime).format(a[5])+"")&&e.set_data(n,t)},i:e.noop,o:e.noop,d(a){a&&e.detach(n)}}}function Oe(s){let t=K.dayjs(s[42].Date).format(s[4])+"",n;return{c(){n=e.text(t)},m(a,l){e.insert(a,n,l)},p(a,l){l[0]&144&&t!==(t=K.dayjs(a[42].Date).format(a[4])+"")&&e.set_data(n,t)},i:e.noop,o:e.noop,d(a){a&&e.detach(n)}}}function Ve(s){let t=s[12](`transactionStatus.${s[42].Status}`)+"",n;return{c(){n=e.text(t)},m(a,l){e.insert(a,n,l)},p(a,l){l[0]&4224&&t!==(t=a[12](`transactionStatus.${a[42].Status}`)+"")&&e.set_data(n,t)},i:e.noop,o:e.noop,d(a){a&&e.detach(n)}}}function qe(s){let t,n,a=s[12](`transactionStatus.${s[42].Status}`)+"",l,c;return t=new Ie.TxnStatusIcon({props:{status:s[42].Status}}),{c(){e.create_component(t.$$.fragment),n=e.space(),l=e.text(a)},m(r,d){e.mount_component(t,r,d),e.insert(r,n,d),e.insert(r,l,d),c=!0},p(r,d){const i={};d[0]&128&&(i.status=r[42].Status),t.$set(i),(!c||d[0]&4224)&&a!==(a=r[12](`transactionStatus.${r[42].Status}`)+"")&&e.set_data(l,a)},i(r){c||(e.transition_in(t.$$.fragment,r),c=!0)},o(r){e.transition_out(t.$$.fragment,r),c=!1},d(r){r&&(e.detach(n),e.detach(l)),e.destroy_component(t,r)}}}function Ue(s){let t,n=s[42].Amount+"",a,l,c=s[42].Currency+"",r,d;return{c(){t=e.element("span"),a=e.text(n),l=e.space(),r=e.text(c),e.attr(t,"class",d="Amount "+s[42].Type+" "+s[42].Status+" svelte-cx3kh")},m(i,m){e.insert(i,t,m),e.append(t,a),e.append(t,l),e.append(t,r)},p(i,m){m[0]&128&&n!==(n=i[42].Amount+"")&&e.set_data(a,n),m[0]&128&&c!==(c=i[42].Currency+"")&&e.set_data(r,c),m[0]&128&&d!==(d="Amount "+i[42].Type+" "+i[42].Status+" svelte-cx3kh")&&e.attr(t,"class",d)},i:e.noop,o:e.noop,d(i){i&&e.detach(t)}}}function Ye(s){let t,n=s[42].Code+"",a,l,c,r;return{c(){t=e.element("span"),a=e.text(n),e.attr(t,"data-copy",l=s[42].Code),e.attr(t,"class","svelte-cx3kh"),e.toggle_class(t,"copied",s[8])},m(d,i){e.insert(d,t,i),e.append(t,a),c||(r=e.listen(t,"click",s[28]),c=!0)},p(d,i){i[0]&128&&n!==(n=d[42].Code+"")&&e.set_data(a,n),i[0]&128&&l!==(l=d[42].Code)&&e.attr(t,"data-copy",l),i[0]&256&&e.toggle_class(t,"copied",d[8])},i:e.noop,o:e.noop,d(d){d&&e.detach(t),c=!1,r()}}}function We(s){let t,n;return t=new Ae.TxnTypeIcons({props:{type:s[42].Type}}),{c(){e.create_component(t.$$.fragment)},m(a,l){e.mount_component(t,a,l),n=!0},p(a,l){const c={};l[0]&128&&(c.type=a[42].Type),t.$set(c)},i(a){n||(e.transition_in(t.$$.fragment,a),n=!0)},o(a){e.transition_out(t.$$.fragment,a),n=!1},d(a){e.destroy_component(t,a)}}}function Be(s){let t,n=s[12](`transactionType.${s[42].Type}`)+"",a;return{c(){t=e.element("span"),a=e.text(n),e.attr(t,"class","svelte-cx3kh")},m(l,c){e.insert(l,t,c),e.append(t,a)},p(l,c){c[0]&4224&&n!==(n=l[12](`transactionType.${l[42].Type}`)+"")&&e.set_data(a,n)},i:e.noop,o:e.noop,d(l){l&&e.detach(t)}}}function Ce(s){let t,n,a,l,c,r,d;const i=[Be,We,Ye,Ue,qe,Ve,Oe,Le,Ne],m=[];function x(p,u){return p[49]==="Type"?0:p[49]==="TypeIcon"?1:p[49]==="Code"?2:p[49]==="Amount"?3:p[49]==="StatusIcon"?4:p[49]==="Status"?5:p[49]==="Date"?6:p[49]==="DateTime"?7:8}return a=x(s),l=m[a]=i[a](s),{c(){t=e.element("td"),n=e.element("span"),l.c(),r=e.space(),e.attr(n,"class",c=e.null_to_empty(s[49])+" svelte-cx3kh"),e.attr(t,"class","svelte-cx3kh")},m(p,u){e.insert(p,t,u),e.append(t,n),m[a].m(n,null),e.append(t,r),d=!0},p(p,u){let _=a;a=x(p),a===_?m[a].p(p,u):(e.group_outros(),e.transition_out(m[_],1,1,()=>{m[_]=null}),e.check_outros(),l=m[a],l?l.p(p,u):(l=m[a]=i[a](p),l.c()),e.transition_in(l,1),l.m(n,null)),(!d||u[0]&1024&&c!==(c=e.null_to_empty(p[49])+" svelte-cx3kh"))&&e.attr(n,"class",c)},i(p){d||(e.transition_in(l),d=!0)},o(p){e.transition_out(l),d=!1},d(p){p&&e.detach(t),m[a].d()}}}function De(s){let t,n,a,l,c,r,d=s[12]("transactionTypeTitle")+"",i,m,x,p,u=s[12](`transactionType.${s[42].Type}`)+"",_,g,k,S,T=s[12]("transactionDateTitle")+"",R,y,q,h,w=K.dayjs(s[42].DateTime).format(s[5])+"",f,H,E,M,U=s[12]("transactionPaymentMethodTitle")+"",N,z,Q,L,X=s[42].PaymentMethod+"",$,te,O,Y,V=s[12]("transactionCodeTitle")+"",G,ne,ae,P,J,Z=s[42].Code+"",o,v,C,D,I,W,se,pe,ue,ee,he,le,B,ie,ce,oe,fe,de,me,F=s[42].RejectionNote&&Se(s),A=s[42].PaymentFields&&He(s);return{c(){t=e.element("tr"),n=e.element("td"),a=e.element("div"),l=e.element("div"),c=e.element("div"),r=e.element("span"),i=e.text(d),m=e.text(" :"),x=e.space(),p=e.element("span"),_=e.text(u),g=e.space(),k=e.element("div"),S=e.element("span"),R=e.text(T),y=e.text(" :"),q=e.space(),h=e.element("span"),f=e.text(w),H=e.space(),E=e.element("div"),M=e.element("span"),N=e.text(U),z=e.text(" :"),Q=e.space(),L=e.element("span"),$=e.text(X),te=e.space(),O=e.element("div"),Y=e.element("span"),G=e.text(V),ne=e.text(" :"),ae=e.space(),P=e.element("span"),J=e.element("span"),o=e.text(Z),v=e.space(),C=e.svg_element("svg"),D=e.svg_element("g"),I=e.svg_element("path"),W=e.svg_element("path"),pe=e.space(),F&&F.c(),ue=e.space(),ee=e.element("div"),A&&A.c(),he=e.space(),le=e.element("div"),B=e.element("ui-image"),fe=e.space(),e.attr(r,"class","DetailsTitle svelte-cx3kh"),e.attr(p,"class","DetailsValue svelte-cx3kh"),e.attr(c,"class","DetailsRow svelte-cx3kh"),e.attr(S,"class","DetailsTitle svelte-cx3kh"),e.attr(h,"class","DetailsValue svelte-cx3kh"),e.attr(k,"class","DetailsRow svelte-cx3kh"),e.attr(M,"class","DetailsTitle svelte-cx3kh"),e.attr(L,"class","DetailsValue svelte-cx3kh"),e.attr(E,"class","DetailsRow svelte-cx3kh"),e.attr(Y,"class","DetailsTitle svelte-cx3kh"),e.attr(J,"class","svelte-cx3kh"),e.attr(I,"d","M12.6663 4.375H5.54134C4.66689 4.375 3.95801 5.1585 3.95801 6.125V14C3.95801 14.9665 4.66689 15.75 5.54134 15.75H12.6663C13.5408 15.75 14.2497 14.9665 14.2497 14V6.125C14.2497 5.1585 13.5408 4.375 12.6663 4.375Z"),e.attr(I,"stroke","#666666"),e.attr(I,"stroke-linecap","round"),e.attr(I,"stroke-linejoin","round"),e.attr(I,"class","svelte-cx3kh"),e.attr(W,"d","M3.95801 13.125H3.16634C2.74642 13.125 2.34369 12.9406 2.04676 12.6124C1.74982 12.2842 1.58301 11.8391 1.58301 11.375V3.5C1.58301 3.03587 1.74982 2.59075 2.04676 2.26256C2.34369 1.93437 2.74642 1.75 3.16634 1.75H10.2913C10.7113 1.75 11.114 1.93437 11.4109 2.26256C11.7079 2.59075 11.8747 3.03587 11.8747 3.5V4.375"),e.attr(W,"stroke","#666666"),e.attr(W,"stroke-linecap","round"),e.attr(W,"stroke-linejoin","round"),e.attr(W,"class","svelte-cx3kh"),e.attr(D,"opacity","0.5"),e.attr(D,"class","svelte-cx3kh"),e.attr(C,"xmlns","http://www.w3.org/2000/svg"),e.attr(C,"width","19"),e.attr(C,"height","19"),e.attr(C,"viewBox","0 0 19 19"),e.attr(C,"fill","none"),e.attr(C,"class","svelte-cx3kh"),e.attr(P,"data-copy",se=s[42].Code),e.attr(P,"class","DetailsValue CopyCode svelte-cx3kh"),e.attr(O,"class","DetailsRow svelte-cx3kh"),e.attr(l,"class","StaticDetails svelte-cx3kh"),e.attr(ee,"class","DynamicDetails svelte-cx3kh"),e.src_url_equal(B.src,ie=s[42].Logo)||e.set_custom_element_data(B,"src",ie),e.set_custom_element_data(B,"class","svelte-cx3kh"),e.attr(le,"class","DetailsLogo svelte-cx3kh"),e.attr(a,"class","ExpandedContent svelte-cx3kh"),e.attr(n,"colspan",oe=s[10].length),e.attr(n,"class","no-padding svelte-cx3kh"),e.attr(t,"class","ExpandedRow svelte-cx3kh")},m(b,j){e.insert(b,t,j),e.append(t,n),e.append(n,a),e.append(a,l),e.append(l,c),e.append(c,r),e.append(r,i),e.append(r,m),e.append(c,x),e.append(c,p),e.append(p,_),e.append(l,g),e.append(l,k),e.append(k,S),e.append(S,R),e.append(S,y),e.append(k,q),e.append(k,h),e.append(h,f),e.append(l,H),e.append(l,E),e.append(E,M),e.append(M,N),e.append(M,z),e.append(E,Q),e.append(E,L),e.append(L,$),e.append(l,te),e.append(l,O),e.append(O,Y),e.append(Y,G),e.append(Y,ne),e.append(O,ae),e.append(O,P),e.append(P,J),e.append(J,o),e.append(P,v),e.append(P,C),e.append(C,D),e.append(D,I),e.append(D,W),e.append(l,pe),F&&F.m(l,null),e.append(a,ue),e.append(a,ee),A&&A.m(ee,null),e.append(a,he),e.append(a,le),e.append(le,B),e.append(t,fe),de||(me=e.listen(P,"mousedown",s[30]),de=!0)},p(b,j){j[0]&4096&&d!==(d=b[12]("transactionTypeTitle")+"")&&e.set_data(i,d),j[0]&4224&&u!==(u=b[12](`transactionType.${b[42].Type}`)+"")&&e.set_data(_,u),j[0]&4096&&T!==(T=b[12]("transactionDateTitle")+"")&&e.set_data(R,T),j[0]&160&&w!==(w=K.dayjs(b[42].DateTime).format(b[5])+"")&&e.set_data(f,w),j[0]&4096&&U!==(U=b[12]("transactionPaymentMethodTitle")+"")&&e.set_data(N,U),j[0]&128&&X!==(X=b[42].PaymentMethod+"")&&e.set_data($,X),j[0]&4096&&V!==(V=b[12]("transactionCodeTitle")+"")&&e.set_data(G,V),j[0]&128&&Z!==(Z=b[42].Code+"")&&e.set_data(o,Z),j[0]&128&&se!==(se=b[42].Code)&&e.attr(P,"data-copy",se),b[42].RejectionNote?F?F.p(b,j):(F=Se(b),F.c(),F.m(l,null)):F&&(F.d(1),F=null),b[42].PaymentFields?A?A.p(b,j):(A=He(b),A.c(),A.m(ee,null)):A&&(A.d(1),A=null),j[0]&128&&!e.src_url_equal(B.src,ie=b[42].Logo)&&e.set_custom_element_data(B,"src",ie),j[0]&1024&&oe!==(oe=b[10].length)&&e.attr(n,"colspan",oe)},i(b){b&&(ce||e.add_render_callback(()=>{ce=e.create_in_transition(a,s[15],{}),ce.start()}))},o:e.noop,d(b){b&&e.detach(t),F&&F.d(),A&&A.d(),de=!1,me()}}}function Se(s){let t,n,a=s[12]("transactionRejectionNoteTitle")+"",l,c,r,d,i=s[42].RejectionNote+"",m;return{c(){t=e.element("div"),n=e.element("span"),l=e.text(a),c=e.text(" :"),r=e.space(),d=e.element("span"),m=e.text(i),e.attr(n,"class","DetailsTitle svelte-cx3kh"),e.attr(d,"class","DetailsValue svelte-cx3kh"),e.attr(t,"class","DetailsRow svelte-cx3kh")},m(x,p){e.insert(x,t,p),e.append(t,n),e.append(n,l),e.append(n,c),e.append(t,r),e.append(t,d),e.append(d,m)},p(x,p){p[0]&4096&&a!==(a=x[12]("transactionRejectionNoteTitle")+"")&&e.set_data(l,a),p[0]&128&&i!==(i=x[42].RejectionNote+"")&&e.set_data(m,i)},d(x){x&&e.detach(t)}}}function He(s){let t,n=e.ensure_array_like(Object.entries(s[42].PaymentFields)),a=[];for(let l=0;l<n.length;l+=1)a[l]=Re(xe(s,n,l));return{c(){for(let l=0;l<a.length;l+=1)a[l].c();t=e.empty()},m(l,c){for(let r=0;r<a.length;r+=1)a[r]&&a[r].m(l,c);e.insert(l,t,c)},p(l,c){if(c[0]&4224){n=e.ensure_array_like(Object.entries(l[42].PaymentFields));let r;for(r=0;r<n.length;r+=1){const d=xe(l,n,r);a[r]?a[r].p(d,c):(a[r]=Re(d),a[r].c(),a[r].m(t.parentNode,t))}for(;r<a.length;r+=1)a[r].d(1);a.length=n.length}},d(l){l&&e.detach(t),e.destroy_each(a,l)}}}function Re(s){let t,n,a=s[12](`transaction${s[45]}Detail`,{default:s[45]})+"",l,c,r,d,i=s[46]+"",m,x;return{c(){t=e.element("div"),n=e.element("span"),l=e.text(a),c=e.text(" :"),r=e.space(),d=e.element("span"),m=e.text(i),x=e.space(),e.attr(n,"class","DetailsTitle svelte-cx3kh"),e.attr(d,"class","DetailsValue svelte-cx3kh"),e.attr(t,"class","DetailsRow svelte-cx3kh")},m(p,u){e.insert(p,t,u),e.append(t,n),e.append(n,l),e.append(n,c),e.append(t,r),e.append(t,d),e.append(d,m),e.append(t,x)},p(p,u){u[0]&4224&&a!==(a=p[12](`transaction${p[45]}Detail`,{default:p[45]})+"")&&e.set_data(l,a),u[0]&128&&i!==(i=p[46]+"")&&e.set_data(m,i)},d(p){p&&e.detach(t)}}}function je(s){let t,n,a,l,c,r,d=e.ensure_array_like(s[10]),i=[];for(let u=0;u<d.length;u+=1)i[u]=Ce(ye(s,d,u));const m=u=>e.transition_out(i[u],1,1,()=>{i[u]=null});function x(){return s[29](s[44])}let p=s[11]===s[44]&&De(s);return{c(){t=e.element("tr");for(let u=0;u<i.length;u+=1)i[u].c();n=e.space(),p&&p.c(),a=e.empty(),e.attr(t,"class","TransactionHistoryRow svelte-cx3kh"),e.toggle_class(t,"AllowExpand",s[3]==="true"),e.toggle_class(t,"Expanded",s[11]===s[44])},m(u,_){e.insert(u,t,_);for(let g=0;g<i.length;g+=1)i[g]&&i[g].m(t,null);e.insert(u,n,_),p&&p.m(u,_),e.insert(u,a,_),l=!0,c||(r=e.listen(t,"click",x),c=!0)},p(u,_){if(s=u,_[0]&13744){d=e.ensure_array_like(s[10]);let g;for(g=0;g<d.length;g+=1){const k=ye(s,d,g);i[g]?(i[g].p(k,_),e.transition_in(i[g],1)):(i[g]=Ce(k),i[g].c(),e.transition_in(i[g],1),i[g].m(t,null))}for(e.group_outros(),g=d.length;g<i.length;g+=1)m(g);e.check_outros()}(!l||_[0]&8)&&e.toggle_class(t,"AllowExpand",s[3]==="true"),(!l||_[0]&2048)&&e.toggle_class(t,"Expanded",s[11]===s[44]),s[11]===s[44]?p?(p.p(s,_),_[0]&2048&&e.transition_in(p,1)):(p=De(s),p.c(),e.transition_in(p,1),p.m(a.parentNode,a)):p&&(p.d(1),p=null)},i(u){if(!l){for(let _=0;_<d.length;_+=1)e.transition_in(i[_]);e.transition_in(p),l=!0}},o(u){i=i.filter(Boolean);for(let _=0;_<i.length;_+=1)e.transition_out(i[_]);l=!1},d(u){u&&(e.detach(t),e.detach(n),e.detach(a)),e.destroy_each(i,u),p&&p.d(u),c=!1,r()}}}function Xe(s){let t,n,a,l;const c=[Me,Ee],r=[];function d(i,m){return i[7].length?0:i[9]?1:-1}return~(n=d(s))&&(a=r[n]=c[n](s)),{c(){t=e.element("div"),a&&a.c(),e.attr(t,"class","CashierTransactionHistoryContainer svelte-cx3kh")},m(i,m){e.insert(i,t,m),~n&&r[n].m(t,null),l=!0},p(i,m){let x=n;n=d(i),n===x?~n&&r[n].p(i,m):(a&&(e.group_outros(),e.transition_out(r[x],1,1,()=>{r[x]=null}),e.check_outros()),~n?(a=r[n],a?a.p(i,m):(a=r[n]=c[n](i),a.c()),e.transition_in(a,1),a.m(t,null)):a=null)},i(i){l||(e.transition_in(a),l=!0)},o(i){e.transition_out(a),l=!1},d(i){i&&e.detach(t),~n&&r[n].d()}}}function Ge(s,t,n){let a;e.component_subscribe(s,re.$format,o=>n(12,a=o));let{endpoint:l}=t,{session:c}=t,{lang:r="en"}=t,{customerid:d}=t,{clientstyling:i=""}=t,{clientstylingurl:m=""}=t,{translationurl:x}=t,{tooltipduration:p=1e3}=t,{txncount:u=3}=t,{mbsource:_=""}=t,{columns:g}=t,{page:k="0"}=t,{calculateprofit:S="false"}=t,{fromdate:T=new Date(new Date().setMonth(new Date().getMonth()-3)).toISOString()}=t,{todate:R=new Date().toISOString()}=t,{isshorttransactionhistory:y="false"}=t,{dateformat:q="DD.MM.YYYY"}=t,{datetimeformat:h="DD.MM.YYYY HH:mm:ss"}=t,w=[],f=!1,H,E,M=!1,U=[],N;var z;(function(o){o.Deposit="deposit",o.Withdraw="withdraw",o.Refund="refund",o.Unknown="unknown",o.TaxDeduction="taxDeduction"})(z||(z={}));const Q=["Authorized","Success","Failed","Rejected","PendingApprovalStage1","PendingApprovalStage2","PendingApprovalStage3","PendingNotification","PendingOfflineNotification","PendingConfirmation"];var L;(function(o){o.Authorized="Authorized",o.Success="Success",o.Failed="Failed",o.Rejected="Rejected",o.Pending="Pending"})(L||(L={})),e.onMount(()=>()=>{});const X=()=>{let o=x;if(o)return fetch(o).then(v=>v.json()).then(v=>{Object.keys(v).forEach(C=>{ve(C,v[C])})}).catch(v=>{console.log(v)})};Object.keys(ge).forEach(o=>{ve(o,ge[o])});const $=()=>{Pe(r)},te=()=>{const o=new URL(`${l}/api/v1/mm/payment/gettransactionshistory`),v=new Headers;v.append("accept","application/json"),v.append("Content-Type","application/json"),v.append("X-SessionId",`${c}`);const C={method:"POST",mode:"cors",headers:v,body:JSON.stringify({language:r,customerId:d,count:+u,page:+k,fromDate:T,toDate:R,statuses:{[z.Deposit]:Q,[z.Withdraw]:Q,[z.Refund]:["Unknown"],[z.TaxDeduction]:["Unknown"],[z.Unknown]:["Unknown"]},calculateProfit:S==="true"})};n(9,M=!0),fetch(o,C).then(D=>D.json()).then(D=>{n(7,w=O((D==null?void 0:D.items)||[]));const I={type:"TransactionsLoaded",total:D.total};S==="true"&&(I.statistic=D.statistic),window.postMessage(I,window.location.href)}).catch(D=>console.log(D)).finally(()=>n(9,M=!1))},O=o=>(n(10,U=g.split(",")),n(11,N=null),o.map(v=>{let C=v.generalFields.status;return v.generalFields.status.toLowerCase().includes("pending")&&(C=L.Pending),{Code:v.generalFields.code,Date:v.generalFields.created,DateTime:v.generalFields.created,Status:C,Type:v.generalFields.type,Amount:v.generalFields.amount,Currency:v.generalFields.currency,PaymentMethod:v.generalFields.paymentMethod,RejectionNote:v.generalFields.rejectionNote,PaymentFields:v.paymentFields&&Object.keys(v.paymentFields).length>0?v.paymentFields:null,Logo:Y(v.logos)}})||[]),Y=o=>{if(o&&o.length){const v=o.find(D=>D.logoType==="Mobile"),C=o.find(D=>D.logoType==="Desktop");return v&&v.logoUrl||C&&C.logoUrl}},V=(o,v=!0)=>{const D=o.currentTarget.dataset.copy;D&&navigator.clipboard.writeText(D).then(()=>{v&&(n(8,f=!0),clearTimeout(E),E=setTimeout(()=>{n(8,f=!1)},2e3))}).catch(I=>{console.error("Could not copy text: ",I)})},G=o=>{y!=="true"&&n(11,N=N===o?null:o)},ne=(o,v)=>({delay:0,duration:250,css:C=>`overflow: hidden; transform: translateY(${(1-C)*20}px); opacity: ${C}`}),ae=o=>V(o),P=o=>G(o),J=o=>V(o,!1);function Z(o){e.binding_callbacks[o?"unshift":"push"](()=>{H=o,n(6,H)})}return s.$$set=o=>{"endpoint"in o&&n(16,l=o.endpoint),"session"in o&&n(17,c=o.session),"lang"in o&&n(18,r=o.lang),"customerid"in o&&n(19,d=o.customerid),"clientstyling"in o&&n(0,i=o.clientstyling),"clientstylingurl"in o&&n(1,m=o.clientstylingurl),"translationurl"in o&&n(20,x=o.translationurl),"tooltipduration"in o&&n(2,p=o.tooltipduration),"txncount"in o&&n(21,u=o.txncount),"mbsource"in o&&n(22,_=o.mbsource),"columns"in o&&n(23,g=o.columns),"page"in o&&n(24,k=o.page),"calculateprofit"in o&&n(25,S=o.calculateprofit),"fromdate"in o&&n(26,T=o.fromdate),"todate"in o&&n(27,R=o.todate),"isshorttransactionhistory"in o&&n(3,y=o.isshorttransactionhistory),"dateformat"in o&&n(4,q=o.dateformat),"datetimeformat"in o&&n(5,h=o.datetimeformat)},s.$$.update=()=>{s.$$.dirty[0]&262144&&r&&$(),s.$$.dirty[0]&65&&i&&H&&e.setClientStyling(H,i),s.$$.dirty[0]&66&&m&&H&&e.setClientStylingURL(H,m),s.$$.dirty[0]&252641280&&l&&c&&d&&r&&T&&R&&k&&S&&te(),s.$$.dirty[0]&1048576&&x&&X(),s.$$.dirty[0]&4194368&&_&&H&&e.setStreamStyling(H,`${_}.Style`)},[i,m,p,y,q,h,H,w,f,M,U,N,a,V,G,ne,l,c,r,d,x,u,_,g,k,S,T,R,ae,P,J,Z]}class Fe extends e.SvelteComponent{constructor(t){super(),e.init(this,t,Ge,Xe,e.safe_not_equal,{endpoint:16,session:17,lang:18,customerid:19,clientstyling:0,clientstylingurl:1,translationurl:20,tooltipduration:2,txncount:21,mbsource:22,columns:23,page:24,calculateprofit:25,fromdate:26,todate:27,isshorttransactionhistory:3,dateformat:4,datetimeformat:5},ze,[-1,-1])}get endpoint(){return this.$$.ctx[16]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get session(){return this.$$.ctx[17]}set session(t){this.$$set({session:t}),e.flush()}get lang(){return this.$$.ctx[18]}set lang(t){this.$$set({lang:t}),e.flush()}get customerid(){return this.$$.ctx[19]}set customerid(t){this.$$set({customerid:t}),e.flush()}get clientstyling(){return this.$$.ctx[0]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[1]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get translationurl(){return this.$$.ctx[20]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}get tooltipduration(){return this.$$.ctx[2]}set tooltipduration(t){this.$$set({tooltipduration:t}),e.flush()}get txncount(){return this.$$.ctx[21]}set txncount(t){this.$$set({txncount:t}),e.flush()}get mbsource(){return this.$$.ctx[22]}set mbsource(t){this.$$set({mbsource:t}),e.flush()}get columns(){return this.$$.ctx[23]}set columns(t){this.$$set({columns:t}),e.flush()}get page(){return this.$$.ctx[24]}set page(t){this.$$set({page:t}),e.flush()}get calculateprofit(){return this.$$.ctx[25]}set calculateprofit(t){this.$$set({calculateprofit:t}),e.flush()}get fromdate(){return this.$$.ctx[26]}set fromdate(t){this.$$set({fromdate:t}),e.flush()}get todate(){return this.$$.ctx[27]}set todate(t){this.$$set({todate:t}),e.flush()}get isshorttransactionhistory(){return this.$$.ctx[3]}set isshorttransactionhistory(t){this.$$set({isshorttransactionhistory:t}),e.flush()}get dateformat(){return this.$$.ctx[4]}set dateformat(t){this.$$set({dateformat:t}),e.flush()}get datetimeformat(){return this.$$.ctx[5]}set datetimeformat(t){this.$$set({datetimeformat:t}),e.flush()}}e.create_custom_element(Fe,{endpoint:{},session:{},lang:{},customerid:{},clientstyling:{},clientstylingurl:{},translationurl:{},tooltipduration:{},txncount:{},mbsource:{},columns:{},page:{},calculateprofit:{},fromdate:{},todate:{},isshorttransactionhistory:{},dateformat:{},datetimeformat:{}},[],[],!0);exports.default=Fe;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CashierConfirmModal-C5Z0fFCo.cjs"),_e=require("./CashierModal-DSuBZJDR.cjs"),re=require("./CashierError-DZ5vqVXV.cjs"),K=require("./CashierMethodDetails-DqkQ4_KO.cjs");require("../stencil/ui-image-CER01gdl.cjs");const Ae=require("./TxnTypeIcons-CVoF9ajj.cjs"),Ie=require("./TxnStatusIcon-Bk0oBxLN.cjs");re.init({fallbackLocale:"en"});function ve(s,t){re.addMessages(s,t)}function Pe(s){re.$locale.set(s)}const ge={en:{transactionHistoryTitle:"Transaction History",transactionCodeTitle:"ID",transactionDateTitle:"Date",transactionDateTimeTitle:"Date",transactionTypeTitle:"Type",transactionStatusTitle:"Status",transactionStatusIconTitle:"Status",transactionTypeIconTitle:"Type",copyTransactionId:"Transaction Id copied to clipboard",transactionAmountTitle:"Amount",transactionPaymentMethodTitle:"Payment Method",transactionRejectionNoteTitle:"Rejection Note",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",transactionDateTimeTitle:"Tarih",transactionTypeTitle:"Tip",transactionStatusTitle:"Durum",transactionStatusIconTitle:"Durum",transactionTypeIconTitle:"Tip",transactionAmountTitle:"Tutar",transactionRejectionNoteTitle:"Reddetme Notu",transactionPaymentMethodTitle:"Ödeme Yöntemi",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 ze(s){e.append_styles(s,"svelte-cx3kh",'.svelte-cx3kh.svelte-cx3kh,.svelte-cx3kh.svelte-cx3kh::before,.svelte-cx3kh.svelte-cx3kh::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-style:inherit}.CopyTooltip.svelte-cx3kh.svelte-cx3kh{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-cx3kh.svelte-cx3kh{position:relative}.CashierTransactionHistory.svelte-cx3kh.svelte-cx3kh{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-cx3kh table.svelte-cx3kh{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;text-align:center;margin-bottom:var(--emw--spacing-small-minus, 10px)}.CashierTransactionHistory.svelte-cx3kh table.svelte-cx3kh:not(:last-child){margin-bottom:var(--emw--spacing-large, 20px)}.CashierTransactionHistory.svelte-cx3kh thead tr.svelte-cx3kh{border-bottom:1px solid var(--mmw--color-grey-105, #E8E9EB);color:var(--mmw--color-grey-10, #111);height:50px}.CashierTransactionHistory.svelte-cx3kh tbody tr.svelte-cx3kh{color:var(--mmw--color-grey-290, #666)}.CashierTransactionHistory.svelte-cx3kh tbody tr.svelte-cx3kh:not(:last-child):not(.Expanded){border-bottom:1px solid #E8E9EB}.CashierTransactionHistory.svelte-cx3kh .TypeIcon.svelte-cx3kh{display:flex}.CashierTransactionHistory.svelte-cx3kh .StatusIcon svg.svelte-cx3kh{flex:0 0 auto;width:18px;height:18px}.CashierTransactionHistory.svelte-cx3kh .StatusIcon span.svelte-cx3kh{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:left}.CashierTransactionHistory.svelte-cx3kh td.svelte-cx3kh{max-width:250px;vertical-align:middle;height:40px;line-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-cx3kh td:last-child .CashierTransactionHistoryStatusText.svelte-cx3kh{width:calc(100% - var(--emw--spacing-2x-small-plus, 6px) * 3 - 5px);display:block}.CashierTransactionHistory.svelte-cx3kh td.svelte-cx3kh:first-child{text-align:left}.CashierTransactionHistory.svelte-cx3kh td .ExpandedContent.svelte-cx3kh{line-height:100%}.CashierTransactionHistory.svelte-cx3kh tr.svelte-cx3kh{position:relative}.CashierTransactionHistory.svelte-cx3kh tr.svelte-cx3kh:not(.ExpandedRow):not(.CashierTransactionHistoryHeader):not(.AllowExpand):hover{background:var(--emw--color-gray-50, #F7F8FA)}@container transaction-history (width < 750px){.CashierTransactionHistory.svelte-cx3kh .CopyTooltip.svelte-cx3kh{width:100%}.CashierTransactionHistory.svelte-cx3kh td.svelte-cx3kh:has(.Code){max-width:135px}.CashierTransactionHistory.svelte-cx3kh td.svelte-cx3kh{padding:0 var(--emw--spacing-small, 12px) 0 var(--emw--spacing-small, 12px)}}@container transaction-history (width < 475px){.CashierTransactionHistory.svelte-cx3kh .CashierTransactionHistoryWrapper.svelte-cx3kh{padding:0 var(--emw--spacing-2x-small-plus, 6px)}.CashierTransactionHistory.svelte-cx3kh td.svelte-cx3kh{padding:0 var(--emw--spacing-2x-small-plus, 6px)}.CashierTransactionHistory.svelte-cx3kh td.svelte-cx3kh:first-child{width:40px;text-align:left}}@container transaction-history (width < 350px){.CashierTransactionHistory.svelte-cx3kh table.svelte-cx3kh{table-layout:fixed}.CashierTransactionHistory.svelte-cx3kh table td.svelte-cx3kh{padding:0 0 0 var(--emw--spacing-small, 5px)}}.CashierTransactionHistoryWrapper.svelte-cx3kh.svelte-cx3kh{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-cx3kh.svelte-cx3kh{display:none;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}.Code.svelte-cx3kh.svelte-cx3kh{cursor:pointer;-webkit-user-select:none;-ms-user-select:none;user-select:none;line-height:inherit;display:inline}.StatusIcon.svelte-cx3kh.svelte-cx3kh{display:flex;align-items:center;justify-content:center;gap:var(--emw--spacing-x-small, 6px)}.CashierTransactionHistoryStatus.svelte-cx3kh.svelte-cx3kh{display:flex;gap:5px}.Amount.Withdraw.svelte-cx3kh.svelte-cx3kh:before{content:"-"}.Amount.Deposit.svelte-cx3kh.svelte-cx3kh:before{content:"+"}.Amount.Deposit.Success.svelte-cx3kh.svelte-cx3kh{color:var(--emw--color-primary-dark, #4b975d)}.CashierTransactionHistoryStatusText.svelte-cx3kh.svelte-cx3kh{line-height:calc(var(--emw--font-size-medium, 16px) + 2px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.CashierTransactionHistoryContent.svelte-cx3kh.svelte-cx3kh{width:100%;overflow:hidden}.CashierTransactionHistoryIcon.svelte-cx3kh.svelte-cx3kh{vertical-align:middle;height:var(--emw--font-size-medium, 16px);width:var(--emw--font-size-medium, 16px)}.TransactionHistoryRow.svelte-cx3kh.svelte-cx3kh{cursor:pointer}.ShortHistory.svelte-cx3kh .CashierTransactionHistoryTitle.svelte-cx3kh{display:inline-block}.ShortHistory.svelte-cx3kh .TransactionHistoryRow.svelte-cx3kh{cursor:auto}.ShortHistory.svelte-cx3kh .TransactionHistoryRow.svelte-cx3kh:hover{background:unset}.ExpandedContent.svelte-cx3kh.svelte-cx3kh{padding:var(--emw--spacing-large, 30px) var(--emw--spacing-small, 12px);position:relative;display:flex;flex-wrap:wrap;gap:var(--emw--spacing-small, 12px)}.ExpandedContent.svelte-cx3kh .DetailsLogo.svelte-cx3kh{width:65px;position:absolute;top:var(--emw--spacing-large, 30px);right:var(--emw--spacing-small, 12px)}.StaticDetails.svelte-cx3kh.svelte-cx3kh,.DynamicDetails.svelte-cx3kh.svelte-cx3kh{display:flex;flex-direction:column;gap:var(--emw--spacing-small, 12px);width:100%}.StaticDetails.svelte-cx3kh .DetailsTitle.svelte-cx3kh,.DynamicDetails.svelte-cx3kh .DetailsTitle.svelte-cx3kh{color:var(--mmw--color-grey-10, #111);font-size:var(--emw--font-size-medium, 16px);padding-right:6px}.StaticDetails.svelte-cx3kh .DetailsValue.svelte-cx3kh,.DynamicDetails.svelte-cx3kh .DetailsValue.svelte-cx3kh{color:var(--mmw--color-grey-290, #666);font-size:var(--emw--font-size-medium, 16px);white-space:normal;overflow-wrap:break-word;max-width:100%;word-break:normal}.DetailsRow.svelte-cx3kh.svelte-cx3kh{display:flex;align-items:center;flex-wrap:wrap;word-break:normal;overflow-wrap:break-word;white-space:normal}td.svelte-cx3kh.svelte-cx3kh:has(.Code){max-width:250px}td.svelte-cx3kh.svelte-cx3kh:has(.Code):hover{background:var(--emw--color-gray-50, #F7F8FA)}.CopyCode.svelte-cx3kh.svelte-cx3kh{display:inline-flex;gap:6px;align-items:center;cursor:pointer;border-radius:var(--mmw--border-radius-medium-plus, 6px);padding:4px 6px;max-width:60%}.CopyCode.svelte-cx3kh.svelte-cx3kh:hover{background:var(--emw--color-gray-50, #F7F8FA)}.CopyCode.svelte-cx3kh span.svelte-cx3kh{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:inline-block}.CopyCode.svelte-cx3kh svg.svelte-cx3kh{flex-shrink:0}')}function ke(s,t,n){const a=s.slice();return a[42]=t[n],a[44]=n,a}function xe(s,t,n){const a=s.slice();return a[45]=t[n][0],a[46]=t[n][1],a}function ye(s,t,n){const a=s.slice();return a[49]=t[n],a[44]=n,a}function we(s,t,n){const a=s.slice();return a[49]=t[n],a[44]=n,a}function Ee(s){let t;return{c(){t=e.element("cashier-spinner"),e.set_custom_element_data(t,"clientstylingurl",s[1]),e.set_custom_element_data(t,"clientstyling",s[0]),e.set_custom_element_data(t,"class","svelte-cx3kh")},m(n,a){e.insert(n,t,a)},p(n,a){a[0]&2&&e.set_custom_element_data(t,"clientstylingurl",n[1]),a[0]&1&&e.set_custom_element_data(t,"clientstyling",n[0])},i:e.noop,o:e.noop,d(n){n&&e.detach(t)}}}function Me(s){let t,n,a,l=s[12]("transactionHistoryTitle")+"",c,r,d,i,m,x,p,u,_,g,k=s[8]&&Te(s),S=e.ensure_array_like(s[10]),T=[];for(let h=0;h<S.length;h+=1)T[h]=be(we(s,S,h));let R=e.ensure_array_like(s[7]),y=[];for(let h=0;h<R.length;h+=1)y[h]=je(ke(s,R,h));const q=h=>e.transition_out(y[h],1,1,()=>{y[h]=null});return{c(){t=e.element("div"),k&&k.c(),n=e.space(),a=e.element("h3"),c=e.text(l),r=e.space(),d=e.element("div"),i=e.element("div"),m=e.element("table"),x=e.element("thead"),p=e.element("tr");for(let h=0;h<T.length;h+=1)T[h].c();u=e.space(),_=e.element("tbody");for(let h=0;h<y.length;h+=1)y[h].c();e.attr(a,"class","CashierTransactionHistoryTitle svelte-cx3kh"),e.attr(p,"class","CashierTransactionHistoryHeader svelte-cx3kh"),e.attr(x,"class","svelte-cx3kh"),e.attr(_,"class","svelte-cx3kh"),e.attr(m,"class","svelte-cx3kh"),e.attr(i,"class","CashierTransactionHistoryContent svelte-cx3kh"),e.attr(d,"class","CashierTransactionHistoryWrapper svelte-cx3kh"),e.attr(t,"class","CashierTransactionHistory svelte-cx3kh"),e.toggle_class(t,"ShortHistory",s[3]==="true")},m(h,w){e.insert(h,t,w),k&&k.m(t,null),e.append(t,n),e.append(t,a),e.append(a,c),e.append(t,r),e.append(t,d),e.append(d,i),e.append(i,m),e.append(m,x),e.append(x,p);for(let f=0;f<T.length;f+=1)T[f]&&T[f].m(p,null);e.append(m,u),e.append(m,_);for(let f=0;f<y.length;f+=1)y[f]&&y[f].m(_,null);s[31](t),g=!0},p(h,w){if(h[8]?k?(k.p(h,w),w[0]&256&&e.transition_in(k,1)):(k=Te(h),k.c(),e.transition_in(k,1),k.m(t,n)):k&&(e.group_outros(),e.transition_out(k,1,1,()=>{k=null}),e.check_outros()),(!g||w[0]&4096)&&l!==(l=h[12]("transactionHistoryTitle")+"")&&e.set_data(c,l),w[0]&5120){S=e.ensure_array_like(h[10]);let f;for(f=0;f<S.length;f+=1){const H=we(h,S,f);T[f]?T[f].p(H,w):(T[f]=be(H),T[f].c(),T[f].m(p,null))}for(;f<T.length;f+=1)T[f].d(1);T.length=S.length}if(w[0]&32184){R=e.ensure_array_like(h[7]);let f;for(f=0;f<R.length;f+=1){const H=ke(h,R,f);y[f]?(y[f].p(H,w),e.transition_in(y[f],1)):(y[f]=je(H),y[f].c(),e.transition_in(y[f],1),y[f].m(_,null))}for(e.group_outros(),f=R.length;f<y.length;f+=1)q(f);e.check_outros()}(!g||w[0]&8)&&e.toggle_class(t,"ShortHistory",h[3]==="true")},i(h){if(!g){e.transition_in(k);for(let w=0;w<R.length;w+=1)e.transition_in(y[w]);g=!0}},o(h){e.transition_out(k),y=y.filter(Boolean);for(let w=0;w<y.length;w+=1)e.transition_out(y[w]);g=!1},d(h){h&&e.detach(t),k&&k.d(),e.destroy_each(T,h),e.destroy_each(y,h),s[31](null)}}}function Te(s){let t,n=s[12]("copyTransactionId")+"",a,l,c,r;return{c(){t=e.element("div"),a=e.text(n),e.attr(t,"class","CopyTooltip svelte-cx3kh")},m(d,i){e.insert(d,t,i),e.append(t,a),r=!0},p(d,i){s=d,(!r||i[0]&4096)&&n!==(n=s[12]("copyTransactionId")+"")&&e.set_data(a,n)},i(d){r||(d&&e.add_render_callback(()=>{r&&(c&&c.end(1),l=e.create_in_transition(t,_e.fade,{duration:100}),l.start())}),r=!0)},o(d){l&&l.invalidate(),d&&(c=e.create_out_transition(t,_e.fade,{duration:s[2]})),r=!1},d(d){d&&e.detach(t),d&&c&&c.end()}}}function be(s){let t,n=s[12](`transaction${s[49]}Title`)+"",a;return{c(){t=e.element("td"),a=e.text(n),e.attr(t,"class","svelte-cx3kh")},m(l,c){e.insert(l,t,c),e.append(t,a)},p(l,c){c[0]&5120&&n!==(n=l[12](`transaction${l[49]}Title`)+"")&&e.set_data(a,n)},d(l){l&&e.detach(t)}}}function Ne(s){let t,n=s[42][s[49]]+"",a;return{c(){t=e.element("span"),a=e.text(n),e.attr(t,"class","svelte-cx3kh")},m(l,c){e.insert(l,t,c),e.append(t,a)},p(l,c){c[0]&1152&&n!==(n=l[42][l[49]]+"")&&e.set_data(a,n)},i:e.noop,o:e.noop,d(l){l&&e.detach(t)}}}function Le(s){let t=K.dayjs(s[42].DateTime).format(s[5])+"",n;return{c(){n=e.text(t)},m(a,l){e.insert(a,n,l)},p(a,l){l[0]&160&&t!==(t=K.dayjs(a[42].DateTime).format(a[5])+"")&&e.set_data(n,t)},i:e.noop,o:e.noop,d(a){a&&e.detach(n)}}}function Oe(s){let t=K.dayjs(s[42].Date).format(s[4])+"",n;return{c(){n=e.text(t)},m(a,l){e.insert(a,n,l)},p(a,l){l[0]&144&&t!==(t=K.dayjs(a[42].Date).format(a[4])+"")&&e.set_data(n,t)},i:e.noop,o:e.noop,d(a){a&&e.detach(n)}}}function Ve(s){let t=s[12](`transactionStatus.${s[42].Status}`)+"",n;return{c(){n=e.text(t)},m(a,l){e.insert(a,n,l)},p(a,l){l[0]&4224&&t!==(t=a[12](`transactionStatus.${a[42].Status}`)+"")&&e.set_data(n,t)},i:e.noop,o:e.noop,d(a){a&&e.detach(n)}}}function qe(s){let t,n,a=s[12](`transactionStatus.${s[42].Status}`)+"",l,c;return t=new Ie.TxnStatusIcon({props:{status:s[42].Status}}),{c(){e.create_component(t.$$.fragment),n=e.space(),l=e.text(a)},m(r,d){e.mount_component(t,r,d),e.insert(r,n,d),e.insert(r,l,d),c=!0},p(r,d){const i={};d[0]&128&&(i.status=r[42].Status),t.$set(i),(!c||d[0]&4224)&&a!==(a=r[12](`transactionStatus.${r[42].Status}`)+"")&&e.set_data(l,a)},i(r){c||(e.transition_in(t.$$.fragment,r),c=!0)},o(r){e.transition_out(t.$$.fragment,r),c=!1},d(r){r&&(e.detach(n),e.detach(l)),e.destroy_component(t,r)}}}function Ue(s){let t,n=s[42].Amount+"",a,l,c=s[42].Currency+"",r,d;return{c(){t=e.element("span"),a=e.text(n),l=e.space(),r=e.text(c),e.attr(t,"class",d="Amount "+s[42].Type+" "+s[42].Status+" svelte-cx3kh")},m(i,m){e.insert(i,t,m),e.append(t,a),e.append(t,l),e.append(t,r)},p(i,m){m[0]&128&&n!==(n=i[42].Amount+"")&&e.set_data(a,n),m[0]&128&&c!==(c=i[42].Currency+"")&&e.set_data(r,c),m[0]&128&&d!==(d="Amount "+i[42].Type+" "+i[42].Status+" svelte-cx3kh")&&e.attr(t,"class",d)},i:e.noop,o:e.noop,d(i){i&&e.detach(t)}}}function Ye(s){let t,n=s[42].Code+"",a,l,c,r;return{c(){t=e.element("span"),a=e.text(n),e.attr(t,"data-copy",l=s[42].Code),e.attr(t,"class","svelte-cx3kh"),e.toggle_class(t,"copied",s[8])},m(d,i){e.insert(d,t,i),e.append(t,a),c||(r=e.listen(t,"click",s[28]),c=!0)},p(d,i){i[0]&128&&n!==(n=d[42].Code+"")&&e.set_data(a,n),i[0]&128&&l!==(l=d[42].Code)&&e.attr(t,"data-copy",l),i[0]&256&&e.toggle_class(t,"copied",d[8])},i:e.noop,o:e.noop,d(d){d&&e.detach(t),c=!1,r()}}}function We(s){let t,n;return t=new Ae.TxnTypeIcons({props:{type:s[42].Type}}),{c(){e.create_component(t.$$.fragment)},m(a,l){e.mount_component(t,a,l),n=!0},p(a,l){const c={};l[0]&128&&(c.type=a[42].Type),t.$set(c)},i(a){n||(e.transition_in(t.$$.fragment,a),n=!0)},o(a){e.transition_out(t.$$.fragment,a),n=!1},d(a){e.destroy_component(t,a)}}}function Be(s){let t,n=s[12](`transactionType.${s[42].Type}`)+"",a;return{c(){t=e.element("span"),a=e.text(n),e.attr(t,"class","svelte-cx3kh")},m(l,c){e.insert(l,t,c),e.append(t,a)},p(l,c){c[0]&4224&&n!==(n=l[12](`transactionType.${l[42].Type}`)+"")&&e.set_data(a,n)},i:e.noop,o:e.noop,d(l){l&&e.detach(t)}}}function Ce(s){let t,n,a,l,c,r,d;const i=[Be,We,Ye,Ue,qe,Ve,Oe,Le,Ne],m=[];function x(p,u){return p[49]==="Type"?0:p[49]==="TypeIcon"?1:p[49]==="Code"?2:p[49]==="Amount"?3:p[49]==="StatusIcon"?4:p[49]==="Status"?5:p[49]==="Date"?6:p[49]==="DateTime"?7:8}return a=x(s),l=m[a]=i[a](s),{c(){t=e.element("td"),n=e.element("span"),l.c(),r=e.space(),e.attr(n,"class",c=e.null_to_empty(s[49])+" svelte-cx3kh"),e.attr(t,"class","svelte-cx3kh")},m(p,u){e.insert(p,t,u),e.append(t,n),m[a].m(n,null),e.append(t,r),d=!0},p(p,u){let _=a;a=x(p),a===_?m[a].p(p,u):(e.group_outros(),e.transition_out(m[_],1,1,()=>{m[_]=null}),e.check_outros(),l=m[a],l?l.p(p,u):(l=m[a]=i[a](p),l.c()),e.transition_in(l,1),l.m(n,null)),(!d||u[0]&1024&&c!==(c=e.null_to_empty(p[49])+" svelte-cx3kh"))&&e.attr(n,"class",c)},i(p){d||(e.transition_in(l),d=!0)},o(p){e.transition_out(l),d=!1},d(p){p&&e.detach(t),m[a].d()}}}function De(s){let t,n,a,l,c,r,d=s[12]("transactionTypeTitle")+"",i,m,x,p,u=s[12](`transactionType.${s[42].Type}`)+"",_,g,k,S,T=s[12]("transactionDateTitle")+"",R,y,q,h,w=K.dayjs(s[42].DateTime).format(s[5])+"",f,H,E,M,U=s[12]("transactionPaymentMethodTitle")+"",N,z,Q,L,X=s[42].PaymentMethod+"",$,te,O,Y,V=s[12]("transactionCodeTitle")+"",G,ne,ae,P,J,Z=s[42].Code+"",o,v,C,D,I,W,se,pe,ue,ee,he,le,B,ie,ce,oe,fe,de,me,F=s[42].RejectionNote&&Se(s),A=s[42].PaymentFields&&He(s);return{c(){t=e.element("tr"),n=e.element("td"),a=e.element("div"),l=e.element("div"),c=e.element("div"),r=e.element("span"),i=e.text(d),m=e.text(" :"),x=e.space(),p=e.element("span"),_=e.text(u),g=e.space(),k=e.element("div"),S=e.element("span"),R=e.text(T),y=e.text(" :"),q=e.space(),h=e.element("span"),f=e.text(w),H=e.space(),E=e.element("div"),M=e.element("span"),N=e.text(U),z=e.text(" :"),Q=e.space(),L=e.element("span"),$=e.text(X),te=e.space(),O=e.element("div"),Y=e.element("span"),G=e.text(V),ne=e.text(" :"),ae=e.space(),P=e.element("span"),J=e.element("span"),o=e.text(Z),v=e.space(),C=e.svg_element("svg"),D=e.svg_element("g"),I=e.svg_element("path"),W=e.svg_element("path"),pe=e.space(),F&&F.c(),ue=e.space(),ee=e.element("div"),A&&A.c(),he=e.space(),le=e.element("div"),B=e.element("ui-image"),fe=e.space(),e.attr(r,"class","DetailsTitle svelte-cx3kh"),e.attr(p,"class","DetailsValue svelte-cx3kh"),e.attr(c,"class","DetailsRow svelte-cx3kh"),e.attr(S,"class","DetailsTitle svelte-cx3kh"),e.attr(h,"class","DetailsValue svelte-cx3kh"),e.attr(k,"class","DetailsRow svelte-cx3kh"),e.attr(M,"class","DetailsTitle svelte-cx3kh"),e.attr(L,"class","DetailsValue svelte-cx3kh"),e.attr(E,"class","DetailsRow svelte-cx3kh"),e.attr(Y,"class","DetailsTitle svelte-cx3kh"),e.attr(J,"class","svelte-cx3kh"),e.attr(I,"d","M12.6663 4.375H5.54134C4.66689 4.375 3.95801 5.1585 3.95801 6.125V14C3.95801 14.9665 4.66689 15.75 5.54134 15.75H12.6663C13.5408 15.75 14.2497 14.9665 14.2497 14V6.125C14.2497 5.1585 13.5408 4.375 12.6663 4.375Z"),e.attr(I,"stroke","#666666"),e.attr(I,"stroke-linecap","round"),e.attr(I,"stroke-linejoin","round"),e.attr(I,"class","svelte-cx3kh"),e.attr(W,"d","M3.95801 13.125H3.16634C2.74642 13.125 2.34369 12.9406 2.04676 12.6124C1.74982 12.2842 1.58301 11.8391 1.58301 11.375V3.5C1.58301 3.03587 1.74982 2.59075 2.04676 2.26256C2.34369 1.93437 2.74642 1.75 3.16634 1.75H10.2913C10.7113 1.75 11.114 1.93437 11.4109 2.26256C11.7079 2.59075 11.8747 3.03587 11.8747 3.5V4.375"),e.attr(W,"stroke","#666666"),e.attr(W,"stroke-linecap","round"),e.attr(W,"stroke-linejoin","round"),e.attr(W,"class","svelte-cx3kh"),e.attr(D,"opacity","0.5"),e.attr(D,"class","svelte-cx3kh"),e.attr(C,"xmlns","http://www.w3.org/2000/svg"),e.attr(C,"width","19"),e.attr(C,"height","19"),e.attr(C,"viewBox","0 0 19 19"),e.attr(C,"fill","none"),e.attr(C,"class","svelte-cx3kh"),e.attr(P,"data-copy",se=s[42].Code),e.attr(P,"class","DetailsValue CopyCode svelte-cx3kh"),e.attr(O,"class","DetailsRow svelte-cx3kh"),e.attr(l,"class","StaticDetails svelte-cx3kh"),e.attr(ee,"class","DynamicDetails svelte-cx3kh"),e.src_url_equal(B.src,ie=s[42].Logo)||e.set_custom_element_data(B,"src",ie),e.set_custom_element_data(B,"class","svelte-cx3kh"),e.attr(le,"class","DetailsLogo svelte-cx3kh"),e.attr(a,"class","ExpandedContent svelte-cx3kh"),e.attr(n,"colspan",oe=s[10].length),e.attr(n,"class","no-padding svelte-cx3kh"),e.attr(t,"class","ExpandedRow svelte-cx3kh")},m(b,j){e.insert(b,t,j),e.append(t,n),e.append(n,a),e.append(a,l),e.append(l,c),e.append(c,r),e.append(r,i),e.append(r,m),e.append(c,x),e.append(c,p),e.append(p,_),e.append(l,g),e.append(l,k),e.append(k,S),e.append(S,R),e.append(S,y),e.append(k,q),e.append(k,h),e.append(h,f),e.append(l,H),e.append(l,E),e.append(E,M),e.append(M,N),e.append(M,z),e.append(E,Q),e.append(E,L),e.append(L,$),e.append(l,te),e.append(l,O),e.append(O,Y),e.append(Y,G),e.append(Y,ne),e.append(O,ae),e.append(O,P),e.append(P,J),e.append(J,o),e.append(P,v),e.append(P,C),e.append(C,D),e.append(D,I),e.append(D,W),e.append(l,pe),F&&F.m(l,null),e.append(a,ue),e.append(a,ee),A&&A.m(ee,null),e.append(a,he),e.append(a,le),e.append(le,B),e.append(t,fe),de||(me=e.listen(P,"mousedown",s[30]),de=!0)},p(b,j){j[0]&4096&&d!==(d=b[12]("transactionTypeTitle")+"")&&e.set_data(i,d),j[0]&4224&&u!==(u=b[12](`transactionType.${b[42].Type}`)+"")&&e.set_data(_,u),j[0]&4096&&T!==(T=b[12]("transactionDateTitle")+"")&&e.set_data(R,T),j[0]&160&&w!==(w=K.dayjs(b[42].DateTime).format(b[5])+"")&&e.set_data(f,w),j[0]&4096&&U!==(U=b[12]("transactionPaymentMethodTitle")+"")&&e.set_data(N,U),j[0]&128&&X!==(X=b[42].PaymentMethod+"")&&e.set_data($,X),j[0]&4096&&V!==(V=b[12]("transactionCodeTitle")+"")&&e.set_data(G,V),j[0]&128&&Z!==(Z=b[42].Code+"")&&e.set_data(o,Z),j[0]&128&&se!==(se=b[42].Code)&&e.attr(P,"data-copy",se),b[42].RejectionNote?F?F.p(b,j):(F=Se(b),F.c(),F.m(l,null)):F&&(F.d(1),F=null),b[42].PaymentFields?A?A.p(b,j):(A=He(b),A.c(),A.m(ee,null)):A&&(A.d(1),A=null),j[0]&128&&!e.src_url_equal(B.src,ie=b[42].Logo)&&e.set_custom_element_data(B,"src",ie),j[0]&1024&&oe!==(oe=b[10].length)&&e.attr(n,"colspan",oe)},i(b){b&&(ce||e.add_render_callback(()=>{ce=e.create_in_transition(a,s[15],{}),ce.start()}))},o:e.noop,d(b){b&&e.detach(t),F&&F.d(),A&&A.d(),de=!1,me()}}}function Se(s){let t,n,a=s[12]("transactionRejectionNoteTitle")+"",l,c,r,d,i=s[42].RejectionNote+"",m;return{c(){t=e.element("div"),n=e.element("span"),l=e.text(a),c=e.text(" :"),r=e.space(),d=e.element("span"),m=e.text(i),e.attr(n,"class","DetailsTitle svelte-cx3kh"),e.attr(d,"class","DetailsValue svelte-cx3kh"),e.attr(t,"class","DetailsRow svelte-cx3kh")},m(x,p){e.insert(x,t,p),e.append(t,n),e.append(n,l),e.append(n,c),e.append(t,r),e.append(t,d),e.append(d,m)},p(x,p){p[0]&4096&&a!==(a=x[12]("transactionRejectionNoteTitle")+"")&&e.set_data(l,a),p[0]&128&&i!==(i=x[42].RejectionNote+"")&&e.set_data(m,i)},d(x){x&&e.detach(t)}}}function He(s){let t,n=e.ensure_array_like(Object.entries(s[42].PaymentFields)),a=[];for(let l=0;l<n.length;l+=1)a[l]=Re(xe(s,n,l));return{c(){for(let l=0;l<a.length;l+=1)a[l].c();t=e.empty()},m(l,c){for(let r=0;r<a.length;r+=1)a[r]&&a[r].m(l,c);e.insert(l,t,c)},p(l,c){if(c[0]&4224){n=e.ensure_array_like(Object.entries(l[42].PaymentFields));let r;for(r=0;r<n.length;r+=1){const d=xe(l,n,r);a[r]?a[r].p(d,c):(a[r]=Re(d),a[r].c(),a[r].m(t.parentNode,t))}for(;r<a.length;r+=1)a[r].d(1);a.length=n.length}},d(l){l&&e.detach(t),e.destroy_each(a,l)}}}function Re(s){let t,n,a=s[12](`transaction${s[45]}Detail`,{default:s[45]})+"",l,c,r,d,i=s[46]+"",m,x;return{c(){t=e.element("div"),n=e.element("span"),l=e.text(a),c=e.text(" :"),r=e.space(),d=e.element("span"),m=e.text(i),x=e.space(),e.attr(n,"class","DetailsTitle svelte-cx3kh"),e.attr(d,"class","DetailsValue svelte-cx3kh"),e.attr(t,"class","DetailsRow svelte-cx3kh")},m(p,u){e.insert(p,t,u),e.append(t,n),e.append(n,l),e.append(n,c),e.append(t,r),e.append(t,d),e.append(d,m),e.append(t,x)},p(p,u){u[0]&4224&&a!==(a=p[12](`transaction${p[45]}Detail`,{default:p[45]})+"")&&e.set_data(l,a),u[0]&128&&i!==(i=p[46]+"")&&e.set_data(m,i)},d(p){p&&e.detach(t)}}}function je(s){let t,n,a,l,c,r,d=e.ensure_array_like(s[10]),i=[];for(let u=0;u<d.length;u+=1)i[u]=Ce(ye(s,d,u));const m=u=>e.transition_out(i[u],1,1,()=>{i[u]=null});function x(){return s[29](s[44])}let p=s[11]===s[44]&&De(s);return{c(){t=e.element("tr");for(let u=0;u<i.length;u+=1)i[u].c();n=e.space(),p&&p.c(),a=e.empty(),e.attr(t,"class","TransactionHistoryRow svelte-cx3kh"),e.toggle_class(t,"AllowExpand",s[3]==="true"),e.toggle_class(t,"Expanded",s[11]===s[44])},m(u,_){e.insert(u,t,_);for(let g=0;g<i.length;g+=1)i[g]&&i[g].m(t,null);e.insert(u,n,_),p&&p.m(u,_),e.insert(u,a,_),l=!0,c||(r=e.listen(t,"click",x),c=!0)},p(u,_){if(s=u,_[0]&13744){d=e.ensure_array_like(s[10]);let g;for(g=0;g<d.length;g+=1){const k=ye(s,d,g);i[g]?(i[g].p(k,_),e.transition_in(i[g],1)):(i[g]=Ce(k),i[g].c(),e.transition_in(i[g],1),i[g].m(t,null))}for(e.group_outros(),g=d.length;g<i.length;g+=1)m(g);e.check_outros()}(!l||_[0]&8)&&e.toggle_class(t,"AllowExpand",s[3]==="true"),(!l||_[0]&2048)&&e.toggle_class(t,"Expanded",s[11]===s[44]),s[11]===s[44]?p?(p.p(s,_),_[0]&2048&&e.transition_in(p,1)):(p=De(s),p.c(),e.transition_in(p,1),p.m(a.parentNode,a)):p&&(p.d(1),p=null)},i(u){if(!l){for(let _=0;_<d.length;_+=1)e.transition_in(i[_]);e.transition_in(p),l=!0}},o(u){i=i.filter(Boolean);for(let _=0;_<i.length;_+=1)e.transition_out(i[_]);l=!1},d(u){u&&(e.detach(t),e.detach(n),e.detach(a)),e.destroy_each(i,u),p&&p.d(u),c=!1,r()}}}function Xe(s){let t,n,a,l;const c=[Me,Ee],r=[];function d(i,m){return i[7].length?0:i[9]?1:-1}return~(n=d(s))&&(a=r[n]=c[n](s)),{c(){t=e.element("div"),a&&a.c(),e.attr(t,"class","CashierTransactionHistoryContainer svelte-cx3kh")},m(i,m){e.insert(i,t,m),~n&&r[n].m(t,null),l=!0},p(i,m){let x=n;n=d(i),n===x?~n&&r[n].p(i,m):(a&&(e.group_outros(),e.transition_out(r[x],1,1,()=>{r[x]=null}),e.check_outros()),~n?(a=r[n],a?a.p(i,m):(a=r[n]=c[n](i),a.c()),e.transition_in(a,1),a.m(t,null)):a=null)},i(i){l||(e.transition_in(a),l=!0)},o(i){e.transition_out(a),l=!1},d(i){i&&e.detach(t),~n&&r[n].d()}}}function Ge(s,t,n){let a;e.component_subscribe(s,re.$format,o=>n(12,a=o));let{endpoint:l}=t,{session:c}=t,{lang:r="en"}=t,{customerid:d}=t,{clientstyling:i=""}=t,{clientstylingurl:m=""}=t,{translationurl:x}=t,{tooltipduration:p=1e3}=t,{txncount:u=3}=t,{mbsource:_=""}=t,{columns:g}=t,{page:k="0"}=t,{calculateprofit:S="false"}=t,{fromdate:T=new Date(new Date().setMonth(new Date().getMonth()-3)).toISOString()}=t,{todate:R=new Date().toISOString()}=t,{isshorttransactionhistory:y="false"}=t,{dateformat:q="DD.MM.YYYY"}=t,{datetimeformat:h="DD.MM.YYYY HH:mm:ss"}=t,w=[],f=!1,H,E,M=!1,U=[],N;var z;(function(o){o.Deposit="deposit",o.Withdraw="withdraw",o.Refund="refund",o.Unknown="unknown",o.TaxDeduction="taxDeduction"})(z||(z={}));const Q=["Authorized","Success","Failed","Rejected","PendingApprovalStage1","PendingApprovalStage2","PendingApprovalStage3","PendingNotification","PendingOfflineNotification","PendingConfirmation"];var L;(function(o){o.Authorized="Authorized",o.Success="Success",o.Failed="Failed",o.Rejected="Rejected",o.Pending="Pending"})(L||(L={})),e.onMount(()=>()=>{});const X=()=>{let o=x;if(o)return fetch(o).then(v=>v.json()).then(v=>{Object.keys(v).forEach(C=>{ve(C,v[C])})}).catch(v=>{console.log(v)})};Object.keys(ge).forEach(o=>{ve(o,ge[o])});const $=()=>{Pe(r)},te=()=>{const o=new URL(`${l}/api/v1/mm/payment/gettransactionshistory`),v=new Headers;v.append("accept","application/json"),v.append("Content-Type","application/json"),v.append("X-SessionId",`${c}`);const C={method:"POST",mode:"cors",headers:v,body:JSON.stringify({language:r,customerId:d,count:+u,page:+k,fromDate:T,toDate:R,statuses:{[z.Deposit]:Q,[z.Withdraw]:Q,[z.Refund]:["Unknown"],[z.TaxDeduction]:["Unknown"],[z.Unknown]:["Unknown"]},calculateProfit:S==="true"})};n(9,M=!0),fetch(o,C).then(D=>D.json()).then(D=>{n(7,w=O((D==null?void 0:D.items)||[]));const I={type:"TransactionsLoaded",total:D.total};S==="true"&&(I.statistic=D.statistic),window.postMessage(I,window.location.href)}).catch(D=>console.log(D)).finally(()=>n(9,M=!1))},O=o=>(n(10,U=g.split(",")),n(11,N=null),o.map(v=>{let C=v.generalFields.status;return v.generalFields.status.toLowerCase().includes("pending")&&(C=L.Pending),{Code:v.generalFields.code,Date:v.generalFields.created,DateTime:v.generalFields.created,Status:C,Type:v.generalFields.type,Amount:v.generalFields.amount,Currency:v.generalFields.currency,PaymentMethod:v.generalFields.paymentMethod,RejectionNote:v.generalFields.rejectionNote,PaymentFields:v.paymentFields&&Object.keys(v.paymentFields).length>0?v.paymentFields:null,Logo:Y(v.logos)}})||[]),Y=o=>{if(o&&o.length){const v=o.find(D=>D.logoType==="Mobile"),C=o.find(D=>D.logoType==="Desktop");return v&&v.logoUrl||C&&C.logoUrl}},V=(o,v=!0)=>{const D=o.currentTarget.dataset.copy;D&&navigator.clipboard.writeText(D).then(()=>{v&&(n(8,f=!0),clearTimeout(E),E=setTimeout(()=>{n(8,f=!1)},2e3))}).catch(I=>{console.error("Could not copy text: ",I)})},G=o=>{y!=="true"&&n(11,N=N===o?null:o)},ne=(o,v)=>({delay:0,duration:250,css:C=>`overflow: hidden; transform: translateY(${(1-C)*20}px); opacity: ${C}`}),ae=o=>V(o),P=o=>G(o),J=o=>V(o,!1);function Z(o){e.binding_callbacks[o?"unshift":"push"](()=>{H=o,n(6,H)})}return s.$$set=o=>{"endpoint"in o&&n(16,l=o.endpoint),"session"in o&&n(17,c=o.session),"lang"in o&&n(18,r=o.lang),"customerid"in o&&n(19,d=o.customerid),"clientstyling"in o&&n(0,i=o.clientstyling),"clientstylingurl"in o&&n(1,m=o.clientstylingurl),"translationurl"in o&&n(20,x=o.translationurl),"tooltipduration"in o&&n(2,p=o.tooltipduration),"txncount"in o&&n(21,u=o.txncount),"mbsource"in o&&n(22,_=o.mbsource),"columns"in o&&n(23,g=o.columns),"page"in o&&n(24,k=o.page),"calculateprofit"in o&&n(25,S=o.calculateprofit),"fromdate"in o&&n(26,T=o.fromdate),"todate"in o&&n(27,R=o.todate),"isshorttransactionhistory"in o&&n(3,y=o.isshorttransactionhistory),"dateformat"in o&&n(4,q=o.dateformat),"datetimeformat"in o&&n(5,h=o.datetimeformat)},s.$$.update=()=>{s.$$.dirty[0]&262144&&r&&$(),s.$$.dirty[0]&65&&i&&H&&e.setClientStyling(H,i),s.$$.dirty[0]&66&&m&&H&&e.setClientStylingURL(H,m),s.$$.dirty[0]&252641280&&l&&c&&d&&r&&T&&R&&k&&S&&te(),s.$$.dirty[0]&1048576&&x&&X(),s.$$.dirty[0]&4194368&&_&&H&&e.setStreamStyling(H,`${_}.Style`)},[i,m,p,y,q,h,H,w,f,M,U,N,a,V,G,ne,l,c,r,d,x,u,_,g,k,S,T,R,ae,P,J,Z]}class Fe extends e.SvelteComponent{constructor(t){super(),e.init(this,t,Ge,Xe,e.safe_not_equal,{endpoint:16,session:17,lang:18,customerid:19,clientstyling:0,clientstylingurl:1,translationurl:20,tooltipduration:2,txncount:21,mbsource:22,columns:23,page:24,calculateprofit:25,fromdate:26,todate:27,isshorttransactionhistory:3,dateformat:4,datetimeformat:5},ze,[-1,-1])}get endpoint(){return this.$$.ctx[16]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get session(){return this.$$.ctx[17]}set session(t){this.$$set({session:t}),e.flush()}get lang(){return this.$$.ctx[18]}set lang(t){this.$$set({lang:t}),e.flush()}get customerid(){return this.$$.ctx[19]}set customerid(t){this.$$set({customerid:t}),e.flush()}get clientstyling(){return this.$$.ctx[0]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[1]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get translationurl(){return this.$$.ctx[20]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}get tooltipduration(){return this.$$.ctx[2]}set tooltipduration(t){this.$$set({tooltipduration:t}),e.flush()}get txncount(){return this.$$.ctx[21]}set txncount(t){this.$$set({txncount:t}),e.flush()}get mbsource(){return this.$$.ctx[22]}set mbsource(t){this.$$set({mbsource:t}),e.flush()}get columns(){return this.$$.ctx[23]}set columns(t){this.$$set({columns:t}),e.flush()}get page(){return this.$$.ctx[24]}set page(t){this.$$set({page:t}),e.flush()}get calculateprofit(){return this.$$.ctx[25]}set calculateprofit(t){this.$$set({calculateprofit:t}),e.flush()}get fromdate(){return this.$$.ctx[26]}set fromdate(t){this.$$set({fromdate:t}),e.flush()}get todate(){return this.$$.ctx[27]}set todate(t){this.$$set({todate:t}),e.flush()}get isshorttransactionhistory(){return this.$$.ctx[3]}set isshorttransactionhistory(t){this.$$set({isshorttransactionhistory:t}),e.flush()}get dateformat(){return this.$$.ctx[4]}set dateformat(t){this.$$set({dateformat:t}),e.flush()}get datetimeformat(){return this.$$.ctx[5]}set datetimeformat(t){this.$$set({datetimeformat:t}),e.flush()}}e.create_custom_element(Fe,{endpoint:{},session:{},lang:{},customerid:{},clientstyling:{},clientstylingurl:{},translationurl:{},tooltipduration:{},txncount:{},mbsource:{},columns:{},page:{},calculateprofit:{},fromdate:{},todate:{},isshorttransactionhistory:{},dateformat:{},datetimeformat:{}},[],[],!0);exports.default=Fe;
|
package/components/{CashierTransactionHistory-xBP8Taal.js → CashierTransactionHistory-Dv3ixTST.js}
RENAMED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { S as lt, b as it, f as E, c as nt, a as at, d as ot, g as k, j as u, k as A, p as B, q as pe, t as N, v as P, w as rt, x as ct,
|
|
2
|
-
import { f as Ee } from "./CashierModal-
|
|
3
|
-
import { i as pt, a as vt, $ as kt, b as gt } from "./CashierError-
|
|
4
|
-
import { d as ue } from "./CashierMethodDetails-
|
|
5
|
-
import "../stencil/ui-image-
|
|
6
|
-
import { T as xt } from "./TxnTypeIcons-
|
|
7
|
-
import { T as yt } from "./TxnStatusIcon-
|
|
1
|
+
import { S as lt, b as it, f as E, c as nt, a as at, d as ot, g as k, j as u, k as A, p as B, q as pe, t as N, v as P, w as rt, x as ct, y as ht, z as ut, E as ve, F as dt, G as ft, I as $, n as M, N as ee, h as j, B as T, L as te, l as r, C as R, P as Ce, J as Ke, Y as Qe, Z as mt, A as $e, D as Se, _ as Ie, R as be, H as ze, $ as et, a0 as tt, a1 as st } from "./CashierConfirmModal-D6-yvknK.js";
|
|
2
|
+
import { f as Ee } from "./CashierModal-B4of2Oxh.js";
|
|
3
|
+
import { i as pt, a as vt, $ as kt, b as gt } from "./CashierError-B_HILIqI.js";
|
|
4
|
+
import { d as ue } from "./CashierMethodDetails-F4689jao.js";
|
|
5
|
+
import "../stencil/ui-image-4dZyD9yF.js";
|
|
6
|
+
import { T as xt } from "./TxnTypeIcons-BuQgMseI.js";
|
|
7
|
+
import { T as yt } from "./TxnStatusIcon-DIdoWxaS.js";
|
|
8
8
|
pt({
|
|
9
9
|
fallbackLocale: "en"
|
|
10
10
|
});
|
|
@@ -1107,7 +1107,7 @@ function zt(l, e, t) {
|
|
|
1107
1107
|
css: (S) => `overflow: hidden; transform: translateY(${(1 - S) * 20}px); opacity: ${S}`
|
|
1108
1108
|
}), xe = (a) => Q(a), W = (a) => re(a), ce = (a) => Q(a, !1);
|
|
1109
1109
|
function he(a) {
|
|
1110
|
-
|
|
1110
|
+
dt[a ? "unshift" : "push"](() => {
|
|
1111
1111
|
z = a, t(6, z);
|
|
1112
1112
|
});
|
|
1113
1113
|
}
|
|
@@ -1116,11 +1116,11 @@ function zt(l, e, t) {
|
|
|
1116
1116
|
}, l.$$.update = () => {
|
|
1117
1117
|
l.$$.dirty[0] & /*lang*/
|
|
1118
1118
|
262144 && o && fe(), l.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
1119
|
-
65 && n && z &&
|
|
1120
|
-
66 && v && z &&
|
|
1119
|
+
65 && n && z && ft(z, n), l.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
1120
|
+
66 && v && z && ht(z, v), l.$$.dirty[0] & /*endpoint, session, customerid, lang, fromdate, todate, page, calculateprofit*/
|
|
1121
1121
|
252641280 && i && c && h && o && D && L && _ && I && ke(), l.$$.dirty[0] & /*translationurl*/
|
|
1122
1122
|
1048576 && w && oe(), l.$$.dirty[0] & /*mbsource, customStylingContainer*/
|
|
1123
|
-
4194368 && g && z &&
|
|
1123
|
+
4194368 && g && z && ut(z, `${g}.Style`);
|
|
1124
1124
|
}, [
|
|
1125
1125
|
n,
|
|
1126
1126
|
v,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { S as Te, b as Oe, f as k, c as Be, a as Me, d as Le, g as y, j as D, L as T, k as V, n as Q, v as P, w as $, x as qe,
|
|
2
|
-
import { a as Ne, i as je, $ as He, b as We } from "./CashierError-
|
|
3
|
-
import { d as ie, u as Ye, x as Ge } from "./CashierMethodDetails-
|
|
1
|
+
import { S as Te, b as Oe, f as k, c as Be, a as Me, d as Le, g as y, j as D, L as T, k as V, n as Q, v as P, w as $, x as qe, y as xe, z as Fe, F as ze, G as Ie, N as ee, h as A, I as g, P as Ee, l as b, D as H, B as Re, C as Ue } from "./CashierConfirmModal-DluW6utN.js";
|
|
2
|
+
import { a as Ne, i as je, $ as He, b as We } from "./CashierError-CQ8ceQ8e.js";
|
|
3
|
+
import { d as ie, u as Ye, x as Ge } from "./CashierMethodDetails-BGsVDE-f.js";
|
|
4
4
|
function te(t, i) {
|
|
5
5
|
Ne(t, i);
|
|
6
6
|
}
|
|
@@ -77,7 +77,7 @@ if (typeof window < "u") {
|
|
|
77
77
|
}
|
|
78
78
|
};
|
|
79
79
|
};
|
|
80
|
-
customElements.define = t(customElements.define), import("./CashierVideoModal-
|
|
80
|
+
customElements.define = t(customElements.define), import("./CashierVideoModal-Olu5n2I9.js").then(({ default: i }) => {
|
|
81
81
|
!customElements.get("cashier-video-modal") && customElements.define("cashier-video-modal", i.element);
|
|
82
82
|
});
|
|
83
83
|
}
|
|
@@ -530,7 +530,7 @@ function ei(t, i, r) {
|
|
|
530
530
|
window.postMessage({ type: "ShowCashierVideoModal" }, window.location.href);
|
|
531
531
|
}, _e = (e, o) => N(o, e), Se = (e, o) => N(o, e), Ce = () => X();
|
|
532
532
|
function Ae(e) {
|
|
533
|
-
|
|
533
|
+
ze[e ? "unshift" : "push"](() => {
|
|
534
534
|
S = e, r(3, S);
|
|
535
535
|
});
|
|
536
536
|
}
|
|
@@ -542,11 +542,11 @@ function ei(t, i, r) {
|
|
|
542
542
|
335872 && l && a && v && K(), t.$$.dirty[0] & /*endpoint, session, playersession*/
|
|
543
543
|
335872 && l && !a && v && ue(), t.$$.dirty[0] & /*translationurl*/
|
|
544
544
|
32768 && u && ce(), t.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
545
|
-
9 && c && S &&
|
|
546
|
-
10 && h && S &&
|
|
545
|
+
9 && c && S && Ie(), t.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
546
|
+
10 && h && S && xe(), t.$$.dirty[0] & /*ismobileview*/
|
|
547
547
|
4 && p && Pe(), t.$$.dirty[0] & /*staticCdnUrl*/
|
|
548
548
|
1048576 && q && De(), t.$$.dirty[0] & /*mbsource, customStylingContainer*/
|
|
549
|
-
524296 && M && S &&
|
|
549
|
+
524296 && M && S && Fe(S, `${M}.Style`);
|
|
550
550
|
}, [
|
|
551
551
|
c,
|
|
552
552
|
h,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { S as Oe, b as Te, f as k, c as Be, a as Me, d as Le, g as y, j as D, L as T, k as V, n as Q, v as P, w as $, x as qe,
|
|
2
|
-
import { a as Ne, i as je, $ as He, b as We } from "./CashierError-
|
|
3
|
-
import { d as ie, u as Ye, x as Ge } from "./CashierMethodDetails-
|
|
1
|
+
import { S as Oe, b as Te, f as k, c as Be, a as Me, d as Le, g as y, j as D, L as T, k as V, n as Q, v as P, w as $, x as qe, y as xe, z as Fe, F as ze, G as Ie, N as ee, h as O, I as v, P as Ee, l as b, D as H, B as Re, C as Ue } from "./CashierConfirmModal-D6-yvknK.js";
|
|
2
|
+
import { a as Ne, i as je, $ as He, b as We } from "./CashierError-B_HILIqI.js";
|
|
3
|
+
import { d as ie, u as Ye, x as Ge } from "./CashierMethodDetails-F4689jao.js";
|
|
4
4
|
function te(t, i) {
|
|
5
5
|
Ne(t, i);
|
|
6
6
|
}
|
|
@@ -77,7 +77,7 @@ if (typeof window != "undefined") {
|
|
|
77
77
|
}
|
|
78
78
|
};
|
|
79
79
|
};
|
|
80
|
-
customElements.define = t(customElements.define), import("./CashierVideoModal-
|
|
80
|
+
customElements.define = t(customElements.define), import("./CashierVideoModal-Bt_4tboX.js").then(({ default: i }) => {
|
|
81
81
|
!customElements.get("cashier-video-modal") && customElements.define("cashier-video-modal", i.element);
|
|
82
82
|
});
|
|
83
83
|
}
|
|
@@ -534,7 +534,7 @@ function ei(t, i, r) {
|
|
|
534
534
|
window.postMessage({ type: "ShowCashierVideoModal" }, window.location.href);
|
|
535
535
|
}, _e = (e, o) => j(o, e), Se = (e, o) => j(o, e), Ce = () => X();
|
|
536
536
|
function Ae(e) {
|
|
537
|
-
|
|
537
|
+
ze[e ? "unshift" : "push"](() => {
|
|
538
538
|
C = e, r(3, C);
|
|
539
539
|
});
|
|
540
540
|
}
|
|
@@ -546,11 +546,11 @@ function ei(t, i, r) {
|
|
|
546
546
|
335872 && l && a && w && K(), t.$$.dirty[0] & /*endpoint, session, playersession*/
|
|
547
547
|
335872 && l && !a && w && ue(), t.$$.dirty[0] & /*translationurl*/
|
|
548
548
|
32768 && u && ce(), t.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
549
|
-
9 && c && C &&
|
|
550
|
-
10 && h && C &&
|
|
549
|
+
9 && c && C && Ie(), t.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
550
|
+
10 && h && C && xe(), t.$$.dirty[0] & /*ismobileview*/
|
|
551
551
|
4 && g && Pe(), t.$$.dirty[0] & /*staticCdnUrl*/
|
|
552
552
|
1048576 && x && De(), t.$$.dirty[0] & /*mbsource, customStylingContainer*/
|
|
553
|
-
524296 && L && C &&
|
|
553
|
+
524296 && L && C && Fe(C, `${L}.Style`);
|
|
554
554
|
}, [
|
|
555
555
|
c,
|
|
556
556
|
h,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./CashierConfirmModal-1Nze3uRQ.cjs"),T=require("./CashierError-CK3QkcBi.cjs"),O=require("./CashierMethodDetails-Cv7OCjGx.cjs");function W(r,t){T.addMessages(r,t)}function ye(r){T.init({fallbackLocale:"en"}),T.$locale.set(r)}const Y={en:{"verification.video.how-to":"How to verify yourself","verification.idenfy.referred-awaiting":"ID verification is in progress. We will inform you as soon as verification is completed and you can withdraw money back","verification.message.failed":"We apologize, but we were unable to verify your account. Please contact support team","verification.idenfy.link-name":"link","verification.idenfy.in-progress":"To withdraw funds to your account you are required to pass user verification. Please have your ID ready and follow the {link} to start verification","verification.shuftipro.in-progress.Biometric":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification.","verification.shuftipro.in-progress.Biometric.Documents":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification and {Documents} verification.","verification.shuftipro.in-progress.Biometric.Documents.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification, {Documents} verification and {ProofOfAddress} verification.","verification.shuftipro.in-progress.Biometric.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification and {ProofOfAddress} verification.","verification.shuftipro.in-progress.Documents":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Documents} verification.","verification.shuftipro.in-progress.Documents.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Documents} verification and {ProofOfAddress} verification.","verification.shuftipro.in-progress.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {ProofOfAddress} verification.","verification.shuftipro.link-name.Biometric":"Biometric","verification.shuftipro.link-name.Documents":"Documents","verification.shuftipro.link-name.ProofOfAddress":"Proof Of Address","verification.shuftipro.validations-started":"After completing verification, please proceed with the transaction"},tr:{"verification.video.how-to":"Kimlik doğrulama nasıl yapılır","verification.idenfy.referred-awaiting":"Kimlik doğrulaması işlemde. Doğrulama tamamlandığında size haber vereceğiz","verification.message.failed":"Döküman doğrulama başarısız, hesabınız doğrulanamadı","verification.idenfy.link-name":"link","verification.idenfy.in-progress":"Hesabınızdan çekim yapabilmek için kullanıcı doğrulaması gerekiyor. Lütfen kimliğinizi hazır edin ve {link} adresinden doğrulamayı başlatın","verification.shuftipro.in-progress.Biometric":"İşlemi gerçekleştirmek için kullanıcı doğrulamasını geçmeniz gerekmektedir. Doğrulamayı başlatmak için Lütfen linke tıklayın {Biometric}","verification.shuftipro.in-progress.Biometric.Documents":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification and {Documents} verification.","verification.shuftipro.in-progress.Biometric.Documents.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification, {Documents} verification and {ProofOfAddress} verification.","verification.shuftipro.in-progress.Biometric.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification and {ProofOfAddress} verification.","verification.shuftipro.in-progress.Documents":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Documents} verification.","verification.shuftipro.in-progress.Documents.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Documents} verification and {ProofOfAddress} verification.","verification.shuftipro.in-progress.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {ProofOfAddress} verification.","verification.shuftipro.link-name.Biometric":"Doğrulama Yap","verification.shuftipro.link-name.Documents":"Documents","verification.shuftipro.link-name.ProofOfAddress":"Proof Of Address","verification.shuftipro.validations-started":"Lütfen Doğrulamayı tamamladıktan sonra işleme devam ediniz"},hr:{"verification.video.how-to":"How to verify yourself","verification.idenfy.referred-awaiting":"ID verification is in progress. We will inform you as soon as verification is completed and you can withdraw money back","verification.message.failed":"We apologize, but we were unable to verify your account. Please contact support team","verification.idenfy.link-name":"link","verification.idenfy.in-progress":"To withdraw funds to your account you are required to pass user verification. Please have your ID ready and follow the {link} to start verification","verification.shuftipro.in-progress.Biometric":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification.","verification.shuftipro.in-progress.Biometric.Documents":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification and {Documents} verification.","verification.shuftipro.in-progress.Biometric.Documents.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification, {Documents} verification and {ProofOfAddress} verification.","verification.shuftipro.in-progress.Biometric.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification and {ProofOfAddress} verification.","verification.shuftipro.in-progress.Documents":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Documents} verification.","verification.shuftipro.in-progress.Documents.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Documents} verification and {ProofOfAddress} verification.","verification.shuftipro.in-progress.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {ProofOfAddress} verification.","verification.shuftipro.link-name.Biometric":"Biometric","verification.shuftipro.link-name.Documents":"Documents","verification.shuftipro.link-name.ProofOfAddress":"Proof Of Address","verification.shuftipro.validations-started":"After completing verification, please proceed with the transaction"}};if(typeof window!="undefined"){let r=function(t){return function(...o){try{return t.apply(this,o)}catch(a){if(a instanceof DOMException&&a.message.includes("has already been used with this registry")||a.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw a}}};customElements.define=r(customElements.define),Promise.resolve().then(()=>require("./CashierVideoModal-B7fVKDny.cjs")).then(({default:t})=>{!customElements.get("cashier-video-modal")&&customElements.define("cashier-video-modal",t.element)})}function ke(r){i.append_styles(r,"svelte-3ui5us","*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;-webkit-tap-highlight-color:transparent}.CashierVerifications{position:relative;box-shadow:0 0 4px var(--mmw--color-black-transparency-10, rgba(0, 0, 0, 0.1))}.CashierVerifications.CashierVerificationsDesktop{border-radius:var(--mmw--border-radius-medium-plus, 6px);overflow:hidden}.CashierVerifications.CashierVerificationsDesktop:has(.CashierVerificationMessage){margin-bottom:var(--emw--spacing-small, 12px)}.CashierVerificationsWrapper{display:flex;flex-direction:column;width:100%}.IconVerification{width:30px;display:flex}.CashierVerificationMessage{display:flex;align-items:center;box-sizing:border-box;background:var(--emw--color-gray-50, #F7F8FA);border-bottom:1px solid var(--mmw--color-grey-105, #E8E9EB);padding:0 var(--emw--spacing-small, 12px);transition:0.5s;max-height:500px}.CashierVerificationMessage:first-child{transition:none;cursor:pointer}.CashierVerificationMessage:first-child:hover{background:linear-gradient(0, var(--emw--color-gray-50, #F7F8FA) 0%, var(--emw--color-white, #fff) 100%)}.CashierVerificationMessage:not(.ShowAll):not(:first-child){max-height:0;overflow:hidden}.CashierVerificationMessage:hover .CashierVerificationChevron svg path{opacity:1}svg{height:20px}svg .IconColor{fill:var(--emw--color-warning, #ec9109)}p{color:var(--mmw--color-grey-10, #111);font-size:var(--emw--font-size-small, 14px);font-family:inherit;line-height:120%;margin:var(--emw--spacing-small, 12px)}.CashierVerificationsDesktop p{font-size:var(--emw--font-size-medium, 16px)}.text{word-break:break-word}.CashierVerificationChevron{cursor:pointer;margin-left:auto}.CashierVerificationChevron svg{transition:0.25s}.CashierVerificationChevron svg path{fill:var(--mmw--color-grey-290, #666);opacity:0.5}.CashierVerificationChevron:hover svg path{opacity:1}.ShowAll .CashierVerificationChevron svg{-o-transform:rotate(180deg);-ms-transform:rotate(180deg);-moz-transform:rotate(180deg);-webkit-transform:rotate(180deg);transform:rotate(180deg)}.CashierVerificationVideo{display:flex;width:100%;align-items:center;box-sizing:border-box;background:var(--emw--color-gray-50, #F7F8FA);border-bottom:1px solid var(--mmw--color-grey-105, #E8E9EB);padding:0 var(--emw--spacing-small, 12px);transition:0.5s;max-height:500px}.IconVideo{width:30px;display:flex;justify-content:center}.CashierVerificationVideoLink{cursor:pointer;color:var(--mmw--color-grey-10, #111);font-family:inherit;font-size:var(--emw--font-size-small, 14px);line-height:120%;margin:var(--emw--spacing-small, 12px);text-decoration:underline}.CashierVerificationVideoLinkDesktop{font-size:var(--emw--font-size-medium, 16px)}")}function K(r,t,o){const a=r.slice();return a[54]=t[o],a[56]=o,a}function _e(r){let t,o,a,s,c=i.ensure_array_like(r[4]),d=[];for(let f=0;f<c.length;f+=1)d[f]=Z(K(r,c,f));let m=r[7]&&J(r);return{c(){t=i.element("div");for(let f=0;f<d.length;f+=1)d[f].c();o=i.space(),m&&m.c(),a=i.space(),s=i.element("cashier-video-modal"),i.attr(t,"class","CashierVerificationsWrapper"),i.set_custom_element_data(s,"clientstylingurl",r[1]),i.set_custom_element_data(s,"clientstyling",r[0]),i.set_custom_element_data(s,"ismobileview",r[2]),i.set_custom_element_data(s,"videosrc",r[8])},m(f,h){i.insert(f,t,h);for(let l=0;l<d.length;l+=1)d[l]&&d[l].m(t,null);i.insert(f,o,h),m&&m.m(f,h),i.insert(f,a,h),i.insert(f,s,h)},p(f,h){if(h[0]&2096){c=i.ensure_array_like(f[4]);let l;for(l=0;l<c.length;l+=1){const y=K(f,c,l);d[l]?d[l].p(y,h):(d[l]=Z(y),d[l].c(),d[l].m(t,null))}for(;l<d.length;l+=1)d[l].d(1);d.length=c.length}f[7]?m?m.p(f,h):(m=J(f),m.c(),m.m(a.parentNode,a)):m&&(m.d(1),m=null),h[0]&2&&i.set_custom_element_data(s,"clientstylingurl",f[1]),h[0]&1&&i.set_custom_element_data(s,"clientstyling",f[0]),h[0]&4&&i.set_custom_element_data(s,"ismobileview",f[2]),h[0]&256&&i.set_custom_element_data(s,"videosrc",f[8])},d(f){f&&(i.detach(t),i.detach(o),i.detach(a),i.detach(s)),i.destroy_each(d,f),m&&m.d(f)}}}function be(r){let t;return{c(){t=i.element("cashier-spinner"),i.set_custom_element_data(t,"clientstylingurl",r[1]),i.set_custom_element_data(t,"clientstyling",r[0])},m(o,a){i.insert(o,t,a)},p(o,a){a[0]&2&&i.set_custom_element_data(t,"clientstylingurl",o[1]),a[0]&1&&i.set_custom_element_data(t,"clientstyling",o[0])},d(o){o&&i.detach(t)}}}function G(r){let t,o,a;function s(...c){return r[21](r[56],...c)}return{c(){t=i.element("span"),t.innerHTML='<svg width="25px" height="25px" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M12 1C5.92487 1 1 5.92487 1 12C1 18.0751 5.92487 23 12 23C18.0751 23 23 18.0751 23 12C23 5.92487 18.0751 1 12 1ZM8.70711 9.79289C8.31658 9.40237 7.68342 9.40237 7.29289 9.79289C6.90237 10.1834 6.90237 10.8166 7.29289 11.2071L11.2929 15.2071C11.6834 15.5976 12.3166 15.5976 12.7071 15.2071L16.7071 11.2071C17.0976 10.8166 17.0976 10.1834 16.7071 9.79289C16.3166 9.40237 15.6834 9.40237 15.2929 9.79289L12 13.0858L8.70711 9.79289Z" fill="#000000"></path></svg>',i.attr(t,"class","CashierVerificationChevron")},m(c,d){i.insert(c,t,d),o||(a=i.listen(t,"click",s),o=!0)},p(c,d){r=c},d(c){c&&i.detach(t),o=!1,a()}}}function Z(r){let t,o,a,s,c=r[54]+"",d,m,f,h,l=r[4].length>1&&r[56]===0&&G(r);function y(...v){return r[22](r[56],...v)}return{c(){t=i.element("div"),o=i.element("div"),o.innerHTML='<svg width="64px" height="64px" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" stroke="#ffffff"><g id="SVGRepo_bgCarrier" stroke-width="0"></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"></g><g id="SVGRepo_iconCarrier"><path d="M4.39254 16.2614C2.64803 13.1941 1.66074 9.71783 1.51646 6.15051C1.50127 5.77507 1.70918 5.42812 2.04153 5.25282L11.5335 0.246091C11.8254 0.0920859 12.1746 0.0920859 12.4665 0.246091L21.9585 5.25282C22.2908 5.42812 22.4987 5.77507 22.4835 6.15051C22.3393 9.71783 21.352 13.1941 19.6075 16.2614C17.8618 19.3307 15.4169 21.8869 12.4986 23.7001C12.1931 23.8899 11.8069 23.8899 11.5014 23.7001C8.58313 21.8869 6.13817 19.3307 4.39254 16.2614Z" fill="#fa9200"></path><path d="M8.25 12.75L11.25 15L17.25 9" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path></g></svg>',a=i.space(),s=i.element("p"),d=i.space(),l&&l.c(),m=i.space(),i.attr(o,"class","IconVerification"),i.attr(s,"class","text"),i.attr(t,"class","CashierVerificationMessage"),i.toggle_class(t,"ShowAll",r[5])},m(v,w){i.insert(v,t,w),i.append(t,o),i.append(t,a),i.append(t,s),s.innerHTML=c,i.append(t,d),l&&l.m(t,null),i.append(t,m),f||(h=i.listen(t,"click",y),f=!0)},p(v,w){r=v,w[0]&16&&c!==(c=r[54]+"")&&(s.innerHTML=c),r[4].length>1&&r[56]===0?l?l.p(r,w):(l=G(r),l.c(),l.m(t,m)):l&&(l.d(1),l=null),w[0]&32&&i.toggle_class(t,"ShowAll",r[5])},d(v){v&&i.detach(t),l&&l.d(),f=!1,h()}}}function J(r){let t,o,a,s,c=r[10]("verification.video.how-to")+"",d,m,f;return{c(){t=i.element("div"),o=i.element("div"),o.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M256 8C119.043 8 8 119.083 8 256c0 136.997 111.043 248 248 248s248-111.003 248-248C504 119.083 392.957 8 256 8zm0 448c-110.532 0-200-89.431-200-200 0-110.495 89.472-200 200-200 110.491 0 200 89.471 200 200 0 110.53-89.431 200-200 200zm107.244-255.2c0 67.052-72.421 68.084-72.421 92.863V300c0 6.627-5.373 12-12 12h-45.647c-6.627 0-12-5.373-12-12v-8.659c0-35.745 27.1-50.034 47.579-61.516 17.561-9.845 28.324-16.541 28.324-29.579 0-17.246-21.999-28.693-39.784-28.693-23.189 0-33.894 10.977-48.942 29.969-4.057 5.12-11.46 6.071-16.666 2.124l-27.824-21.098c-5.107-3.872-6.251-11.066-2.644-16.363C184.846 131.491 214.94 112 261.794 112c49.071 0 101.45 38.304 101.45 88.8zM298 368c0 23.159-18.841 42-42 42s-42-18.841-42-42 18.841-42 42-42 42 18.841 42 42z"></path></svg>',a=i.space(),s=i.element("div"),d=i.text(c),i.attr(o,"class","IconVideo"),i.attr(s,"class","CashierVerificationVideoLink"),i.toggle_class(s,"CashierVerificationVideoLinkDesktop",r[6]),i.attr(t,"class","CashierVerificationVideo")},m(h,l){i.insert(h,t,l),i.append(t,o),i.append(t,a),i.append(t,s),i.append(s,d),m||(f=i.listen(s,"click",r[23]),m=!0)},p(h,l){l[0]&1024&&c!==(c=h[10]("verification.video.how-to")+"")&&i.set_data(d,c),l[0]&64&&i.toggle_class(s,"CashierVerificationVideoLinkDesktop",h[6])},d(h){h&&i.detach(t),m=!1,f()}}}function Ve(r){let t;function o(c,d){if(c[9])return be;if(c[4])return _e}let a=o(r),s=a&&a(r);return{c(){t=i.element("div"),s&&s.c(),i.attr(t,"class","CashierVerifications"),i.toggle_class(t,"CashierVerificationsDesktop",r[6])},m(c,d){i.insert(c,t,d),s&&s.m(t,null),r[24](t)},p(c,d){a===(a=o(c))&&s?s.p(c,d):(s&&s.d(1),s=a&&a(c),s&&(s.c(),s.m(t,null))),d[0]&64&&i.toggle_class(t,"CashierVerificationsDesktop",c[6])},i:i.noop,o:i.noop,d(c){c&&i.detach(t),s&&s.d(),r[24](null)}}}const Pe="verification_explanation_video_widgets.MP4";function De(r,t,o){let a,s;i.component_subscribe(r,T.$format,e=>o(10,a=e)),i.component_subscribe(r,O.xPaymentSessionToken,e=>o(30,s=e)),O.dayjs.extend(O.utc);let{endpoint:c}=t,{lang:d="en"}=t,{translationurl:m=""}=t,{clientstyling:f=""}=t,{clientstylingurl:h=""}=t,{session:l=""}=t,{customerid:y=""}=t,{ismobileview:v=""}=t,{playersession:w=""}=t,{mbsource:D=""}=t,_,I=new Set,E=new Set,S,C,M,B=!0,R=!0,q=!1,L="",F=!1;var V;(function(e){e.Manual="Manual",e.ShuftiPro="ShuftiPro"})(V||(V={}));var x;(function(e){e.Requested="Requested"})(x||(x={}));var g;(function(e){e.Unknown="Unknown",e.Unverified="Unverified",e.InProgress="InProgress",e.Failed="Failed",e.Verified="Verified",e.Referred="Referred",e.True="True",e.False="False",e.AwaitingForResponse="AwaitingForResponse"})(g||(g={}));var P;(function(e){e.Unknown="Unknown",e.Documents="Documents",e.Age="Age",e.Pep="Pep",e.Sanction="Sanction",e.Aml="Aml",e.ProofOfAddress="ProofOfAddress",e.SourceOfWealth="SourceOfWealth",e.SocialMedia="SocialMedia",e.Biometric="Biometric"})(P||(P={})),i.onMount(()=>()=>{});const Q=[g.InProgress,g.Referred,g.AwaitingForResponse],$=()=>{let e=m;if(e)return fetch(e).then(n=>n.json()).then(n=>{Object.keys(n).forEach(u=>{W(u,n[u])})}).catch(n=>{console.log(n)})};Object.keys(Y).forEach(e=>{W(e,Y[e])});const ee=()=>{ye(d)},U=()=>{o(20,C=re());const e=new URL(`${c}/v1/player/${y}/verification/GetKYCCustomerStatus?language=${d}`),n=new Headers;n.append("accept","application/json"),n.append("Content-Type","application/json"),n.append("x-sessionid",`${w}`),n.append("X-Client-Request-Timestamp",O.dayjs.utc().format("YYYY-MM-DD HH:mm:ss.SSS"));const u={method:"POST",headers:n,body:JSON.stringify({})};o(9,F=!0),fetch(e,u).then(p=>p.json()).then(p=>{const k=ie(p==null?void 0:p.Verifications);S=oe(k),S.VerificationStatuses.forEach(A=>{A.VerificationUrlType!=="Widget"&&I.add(A.Vendor)}),o(4,M=H())}).finally(()=>o(9,F=!1))},ie=e=>e?e.sort((n,u)=>new Date(u.Created).getTime()-new Date(n.Created).getTime()):[],te=()=>{s&&U()},re=()=>{let e=(l||s).split(".")[1];if(e){let n=JSON.parse(atob(e));return n.cdn+"/cashier/operator-assets/"+(n==null?void 0:n.mid)}return""},oe=e=>{var u;if(!e||!e.length)return{VerificationSummaryStatus:g.Unverified,VerificationStatuses:[]};const n=se(e);if(n&&n.length){const p=ne(n);return{VerificationSummaryStatus:p.Status,VerificationUrl:(u=p.Flags)==null?void 0:u.DeferredUrlKey,VerificationStatuses:j(n,p.Status)}}else return{VerificationSummaryStatus:e.some(k=>k.Status===g.Failed)?g.Failed:g.Verified,VerificationStatuses:j(e,[g.Failed])}},ne=e=>e.reduce((n,u)=>n?new Date(n)<new Date(u)?u:n:u,0),j=(e,n)=>e.filter(u=>n.includes(u.Status)).map(u=>{var p,k;return{Type:u.Type,Vendor:u.VendorName,VerificationDocuments:u.Documents?[...u.Documents]:[],VerificationUrlType:(p=u.FlowInfo)==null?void 0:p.Type,VerificationUrl:(k=u.FlowInfo)==null?void 0:k.Url}}),se=e=>e.filter(n=>Q.includes(n.Status)?n.FlowInfo&&n.FlowInfo.Url||ae(n)||le(n):!1),ae=e=>{const n=e.Documents&&e.VendorName===V.Manual,u=e.Documents&&e.Documents.some(p=>p.Status===x.Requested);return n&&u},le=e=>e.VendorName===V.ShuftiPro&&e.Status===g.Referred,H=()=>{switch(S.VerificationSummaryStatus){case g.InProgress:const e=[];return I.forEach(n=>{e.push(ce(n))}),e;case g.Referred:return[a("verification.idenfy.referred-awaiting")];case g.Failed:return[a("verification.message.failed")]}},ce=e=>{const n=S.VerificationStatuses.filter(u=>u.Vendor===e);if(e===V.ShuftiPro)return fe(n);{const u=a("verification.idenfy.link-name"),p={link:`<a href="${n[0].VerificationUrl}" target="_blank">${u}</a>`};return a("verification.idenfy.in-progress",{values:p})}},fe=e=>{const n=[],u={},p=[P.Biometric,P.Documents,P.ProofOfAddress];e.forEach(b=>{p.includes(b.Type)&&(n.push(b.Type),u[b.Type]=de(b,ue(b.Type)))});let k=n.every(b=>E.has(b)),A=`verification.shuftipro.in-progress.${n.sort().join(".")}`;return k?a("verification.shuftipro.validations-started"):a(A,{values:u})},de=(e,n)=>`<a class="verificationLink ${e.Type}" href=" ${e.VerificationUrl} " target="_blank">${n}</a>`,ue=e=>a(`verification.shuftipro.link-name.${e}`),z=(e,n)=>{if(e.stopPropagation(),e.target&&(e.target.href||e.target.closest("a"))){if(e.target.closest(".verificationLink")){const u=e.target.className.split(" ")[1];E.add(u),o(4,M=H())}return}n===0&&o(5,B=!B)},me=()=>{o(6,R=v==="false")},he=()=>{o(8,L=C+"/"+d+"/"+Pe);try{fetch(L,{method:"HEAD"}).then(e=>{o(7,q=e.ok)})}catch(e){o(7,q=!1)}},N=()=>{window.postMessage({type:"ShowCashierVideoModal"},window.location.href)},pe=(e,n)=>z(n,e),ge=(e,n)=>z(n,e),ve=()=>N();function we(e){i.binding_callbacks[e?"unshift":"push"](()=>{_=e,o(3,_)})}return r.$$set=e=>{"endpoint"in e&&o(13,c=e.endpoint),"lang"in e&&o(14,d=e.lang),"translationurl"in e&&o(15,m=e.translationurl),"clientstyling"in e&&o(0,f=e.clientstyling),"clientstylingurl"in e&&o(1,h=e.clientstylingurl),"session"in e&&o(16,l=e.session),"customerid"in e&&o(17,y=e.customerid),"ismobileview"in e&&o(2,v=e.ismobileview),"playersession"in e&&o(18,w=e.playersession),"mbsource"in e&&o(19,D=e.mbsource)},r.$$.update=()=>{r.$$.dirty[0]&16384&&d&&ee(),r.$$.dirty[0]&335872&&c&&l&&w&&U(),r.$$.dirty[0]&335872&&c&&!l&&w&&te(),r.$$.dirty[0]&32768&&m&&$(),r.$$.dirty[0]&9&&f&&_&&i.setClientStyling(),r.$$.dirty[0]&10&&h&&_&&i.setClientStylingURL(),r.$$.dirty[0]&4&&v&&me(),r.$$.dirty[0]&1048576&&C&&he(),r.$$.dirty[0]&524296&&D&&_&&i.setStreamStyling(_,`${D}.Style`)},[f,h,v,_,M,B,R,q,L,F,a,z,N,c,d,m,l,y,w,D,C,pe,ge,ve,we]}class X extends i.SvelteComponent{constructor(t){super(),i.init(this,t,De,Ve,i.safe_not_equal,{endpoint:13,lang:14,translationurl:15,clientstyling:0,clientstylingurl:1,session:16,customerid:17,ismobileview:2,playersession:18,mbsource:19},ke,[-1,-1])}get endpoint(){return this.$$.ctx[13]}set endpoint(t){this.$$set({endpoint:t}),i.flush()}get lang(){return this.$$.ctx[14]}set lang(t){this.$$set({lang:t}),i.flush()}get translationurl(){return this.$$.ctx[15]}set translationurl(t){this.$$set({translationurl:t}),i.flush()}get clientstyling(){return this.$$.ctx[0]}set clientstyling(t){this.$$set({clientstyling:t}),i.flush()}get clientstylingurl(){return this.$$.ctx[1]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),i.flush()}get session(){return this.$$.ctx[16]}set session(t){this.$$set({session:t}),i.flush()}get customerid(){return this.$$.ctx[17]}set customerid(t){this.$$set({customerid:t}),i.flush()}get ismobileview(){return this.$$.ctx[2]}set ismobileview(t){this.$$set({ismobileview:t}),i.flush()}get playersession(){return this.$$.ctx[18]}set playersession(t){this.$$set({playersession:t}),i.flush()}get mbsource(){return this.$$.ctx[19]}set mbsource(t){this.$$set({mbsource:t}),i.flush()}}i.create_custom_element(X,{endpoint:{},lang:{},translationurl:{},clientstyling:{},clientstylingurl:{},session:{},customerid:{},ismobileview:{},playersession:{},mbsource:{}},[],[],!0);exports.default=X;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./CashierConfirmModal-C5Z0fFCo.cjs"),T=require("./CashierError-DZ5vqVXV.cjs"),O=require("./CashierMethodDetails-DqkQ4_KO.cjs");function W(r,t){T.addMessages(r,t)}function ye(r){T.init({fallbackLocale:"en"}),T.$locale.set(r)}const Y={en:{"verification.video.how-to":"How to verify yourself","verification.idenfy.referred-awaiting":"ID verification is in progress. We will inform you as soon as verification is completed and you can withdraw money back","verification.message.failed":"We apologize, but we were unable to verify your account. Please contact support team","verification.idenfy.link-name":"link","verification.idenfy.in-progress":"To withdraw funds to your account you are required to pass user verification. Please have your ID ready and follow the {link} to start verification","verification.shuftipro.in-progress.Biometric":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification.","verification.shuftipro.in-progress.Biometric.Documents":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification and {Documents} verification.","verification.shuftipro.in-progress.Biometric.Documents.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification, {Documents} verification and {ProofOfAddress} verification.","verification.shuftipro.in-progress.Biometric.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification and {ProofOfAddress} verification.","verification.shuftipro.in-progress.Documents":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Documents} verification.","verification.shuftipro.in-progress.Documents.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Documents} verification and {ProofOfAddress} verification.","verification.shuftipro.in-progress.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {ProofOfAddress} verification.","verification.shuftipro.link-name.Biometric":"Biometric","verification.shuftipro.link-name.Documents":"Documents","verification.shuftipro.link-name.ProofOfAddress":"Proof Of Address","verification.shuftipro.validations-started":"After completing verification, please proceed with the transaction"},tr:{"verification.video.how-to":"Kimlik doğrulama nasıl yapılır","verification.idenfy.referred-awaiting":"Kimlik doğrulaması işlemde. Doğrulama tamamlandığında size haber vereceğiz","verification.message.failed":"Döküman doğrulama başarısız, hesabınız doğrulanamadı","verification.idenfy.link-name":"link","verification.idenfy.in-progress":"Hesabınızdan çekim yapabilmek için kullanıcı doğrulaması gerekiyor. Lütfen kimliğinizi hazır edin ve {link} adresinden doğrulamayı başlatın","verification.shuftipro.in-progress.Biometric":"İşlemi gerçekleştirmek için kullanıcı doğrulamasını geçmeniz gerekmektedir. Doğrulamayı başlatmak için Lütfen linke tıklayın {Biometric}","verification.shuftipro.in-progress.Biometric.Documents":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification and {Documents} verification.","verification.shuftipro.in-progress.Biometric.Documents.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification, {Documents} verification and {ProofOfAddress} verification.","verification.shuftipro.in-progress.Biometric.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification and {ProofOfAddress} verification.","verification.shuftipro.in-progress.Documents":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Documents} verification.","verification.shuftipro.in-progress.Documents.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Documents} verification and {ProofOfAddress} verification.","verification.shuftipro.in-progress.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {ProofOfAddress} verification.","verification.shuftipro.link-name.Biometric":"Doğrulama Yap","verification.shuftipro.link-name.Documents":"Documents","verification.shuftipro.link-name.ProofOfAddress":"Proof Of Address","verification.shuftipro.validations-started":"Lütfen Doğrulamayı tamamladıktan sonra işleme devam ediniz"},hr:{"verification.video.how-to":"How to verify yourself","verification.idenfy.referred-awaiting":"ID verification is in progress. We will inform you as soon as verification is completed and you can withdraw money back","verification.message.failed":"We apologize, but we were unable to verify your account. Please contact support team","verification.idenfy.link-name":"link","verification.idenfy.in-progress":"To withdraw funds to your account you are required to pass user verification. Please have your ID ready and follow the {link} to start verification","verification.shuftipro.in-progress.Biometric":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification.","verification.shuftipro.in-progress.Biometric.Documents":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification and {Documents} verification.","verification.shuftipro.in-progress.Biometric.Documents.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification, {Documents} verification and {ProofOfAddress} verification.","verification.shuftipro.in-progress.Biometric.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification and {ProofOfAddress} verification.","verification.shuftipro.in-progress.Documents":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Documents} verification.","verification.shuftipro.in-progress.Documents.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Documents} verification and {ProofOfAddress} verification.","verification.shuftipro.in-progress.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {ProofOfAddress} verification.","verification.shuftipro.link-name.Biometric":"Biometric","verification.shuftipro.link-name.Documents":"Documents","verification.shuftipro.link-name.ProofOfAddress":"Proof Of Address","verification.shuftipro.validations-started":"After completing verification, please proceed with the transaction"}};if(typeof window!="undefined"){let r=function(t){return function(...o){try{return t.apply(this,o)}catch(a){if(a instanceof DOMException&&a.message.includes("has already been used with this registry")||a.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw a}}};customElements.define=r(customElements.define),Promise.resolve().then(()=>require("./CashierVideoModal-CrKgGT0K.cjs")).then(({default:t})=>{!customElements.get("cashier-video-modal")&&customElements.define("cashier-video-modal",t.element)})}function ke(r){i.append_styles(r,"svelte-3ui5us","*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;-webkit-tap-highlight-color:transparent}.CashierVerifications{position:relative;box-shadow:0 0 4px var(--mmw--color-black-transparency-10, rgba(0, 0, 0, 0.1))}.CashierVerifications.CashierVerificationsDesktop{border-radius:var(--mmw--border-radius-medium-plus, 6px);overflow:hidden}.CashierVerifications.CashierVerificationsDesktop:has(.CashierVerificationMessage){margin-bottom:var(--emw--spacing-small, 12px)}.CashierVerificationsWrapper{display:flex;flex-direction:column;width:100%}.IconVerification{width:30px;display:flex}.CashierVerificationMessage{display:flex;align-items:center;box-sizing:border-box;background:var(--emw--color-gray-50, #F7F8FA);border-bottom:1px solid var(--mmw--color-grey-105, #E8E9EB);padding:0 var(--emw--spacing-small, 12px);transition:0.5s;max-height:500px}.CashierVerificationMessage:first-child{transition:none;cursor:pointer}.CashierVerificationMessage:first-child:hover{background:linear-gradient(0, var(--emw--color-gray-50, #F7F8FA) 0%, var(--emw--color-white, #fff) 100%)}.CashierVerificationMessage:not(.ShowAll):not(:first-child){max-height:0;overflow:hidden}.CashierVerificationMessage:hover .CashierVerificationChevron svg path{opacity:1}svg{height:20px}svg .IconColor{fill:var(--emw--color-warning, #ec9109)}p{color:var(--mmw--color-grey-10, #111);font-size:var(--emw--font-size-small, 14px);font-family:inherit;line-height:120%;margin:var(--emw--spacing-small, 12px)}.CashierVerificationsDesktop p{font-size:var(--emw--font-size-medium, 16px)}.text{word-break:break-word}.CashierVerificationChevron{cursor:pointer;margin-left:auto}.CashierVerificationChevron svg{transition:0.25s}.CashierVerificationChevron svg path{fill:var(--mmw--color-grey-290, #666);opacity:0.5}.CashierVerificationChevron:hover svg path{opacity:1}.ShowAll .CashierVerificationChevron svg{-o-transform:rotate(180deg);-ms-transform:rotate(180deg);-moz-transform:rotate(180deg);-webkit-transform:rotate(180deg);transform:rotate(180deg)}.CashierVerificationVideo{display:flex;width:100%;align-items:center;box-sizing:border-box;background:var(--emw--color-gray-50, #F7F8FA);border-bottom:1px solid var(--mmw--color-grey-105, #E8E9EB);padding:0 var(--emw--spacing-small, 12px);transition:0.5s;max-height:500px}.IconVideo{width:30px;display:flex;justify-content:center}.CashierVerificationVideoLink{cursor:pointer;color:var(--mmw--color-grey-10, #111);font-family:inherit;font-size:var(--emw--font-size-small, 14px);line-height:120%;margin:var(--emw--spacing-small, 12px);text-decoration:underline}.CashierVerificationVideoLinkDesktop{font-size:var(--emw--font-size-medium, 16px)}")}function K(r,t,o){const a=r.slice();return a[54]=t[o],a[56]=o,a}function _e(r){let t,o,a,s,c=i.ensure_array_like(r[4]),d=[];for(let f=0;f<c.length;f+=1)d[f]=Z(K(r,c,f));let m=r[7]&&J(r);return{c(){t=i.element("div");for(let f=0;f<d.length;f+=1)d[f].c();o=i.space(),m&&m.c(),a=i.space(),s=i.element("cashier-video-modal"),i.attr(t,"class","CashierVerificationsWrapper"),i.set_custom_element_data(s,"clientstylingurl",r[1]),i.set_custom_element_data(s,"clientstyling",r[0]),i.set_custom_element_data(s,"ismobileview",r[2]),i.set_custom_element_data(s,"videosrc",r[8])},m(f,h){i.insert(f,t,h);for(let l=0;l<d.length;l+=1)d[l]&&d[l].m(t,null);i.insert(f,o,h),m&&m.m(f,h),i.insert(f,a,h),i.insert(f,s,h)},p(f,h){if(h[0]&2096){c=i.ensure_array_like(f[4]);let l;for(l=0;l<c.length;l+=1){const y=K(f,c,l);d[l]?d[l].p(y,h):(d[l]=Z(y),d[l].c(),d[l].m(t,null))}for(;l<d.length;l+=1)d[l].d(1);d.length=c.length}f[7]?m?m.p(f,h):(m=J(f),m.c(),m.m(a.parentNode,a)):m&&(m.d(1),m=null),h[0]&2&&i.set_custom_element_data(s,"clientstylingurl",f[1]),h[0]&1&&i.set_custom_element_data(s,"clientstyling",f[0]),h[0]&4&&i.set_custom_element_data(s,"ismobileview",f[2]),h[0]&256&&i.set_custom_element_data(s,"videosrc",f[8])},d(f){f&&(i.detach(t),i.detach(o),i.detach(a),i.detach(s)),i.destroy_each(d,f),m&&m.d(f)}}}function be(r){let t;return{c(){t=i.element("cashier-spinner"),i.set_custom_element_data(t,"clientstylingurl",r[1]),i.set_custom_element_data(t,"clientstyling",r[0])},m(o,a){i.insert(o,t,a)},p(o,a){a[0]&2&&i.set_custom_element_data(t,"clientstylingurl",o[1]),a[0]&1&&i.set_custom_element_data(t,"clientstyling",o[0])},d(o){o&&i.detach(t)}}}function G(r){let t,o,a;function s(...c){return r[21](r[56],...c)}return{c(){t=i.element("span"),t.innerHTML='<svg width="25px" height="25px" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M12 1C5.92487 1 1 5.92487 1 12C1 18.0751 5.92487 23 12 23C18.0751 23 23 18.0751 23 12C23 5.92487 18.0751 1 12 1ZM8.70711 9.79289C8.31658 9.40237 7.68342 9.40237 7.29289 9.79289C6.90237 10.1834 6.90237 10.8166 7.29289 11.2071L11.2929 15.2071C11.6834 15.5976 12.3166 15.5976 12.7071 15.2071L16.7071 11.2071C17.0976 10.8166 17.0976 10.1834 16.7071 9.79289C16.3166 9.40237 15.6834 9.40237 15.2929 9.79289L12 13.0858L8.70711 9.79289Z" fill="#000000"></path></svg>',i.attr(t,"class","CashierVerificationChevron")},m(c,d){i.insert(c,t,d),o||(a=i.listen(t,"click",s),o=!0)},p(c,d){r=c},d(c){c&&i.detach(t),o=!1,a()}}}function Z(r){let t,o,a,s,c=r[54]+"",d,m,f,h,l=r[4].length>1&&r[56]===0&&G(r);function y(...v){return r[22](r[56],...v)}return{c(){t=i.element("div"),o=i.element("div"),o.innerHTML='<svg width="64px" height="64px" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" stroke="#ffffff"><g id="SVGRepo_bgCarrier" stroke-width="0"></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"></g><g id="SVGRepo_iconCarrier"><path d="M4.39254 16.2614C2.64803 13.1941 1.66074 9.71783 1.51646 6.15051C1.50127 5.77507 1.70918 5.42812 2.04153 5.25282L11.5335 0.246091C11.8254 0.0920859 12.1746 0.0920859 12.4665 0.246091L21.9585 5.25282C22.2908 5.42812 22.4987 5.77507 22.4835 6.15051C22.3393 9.71783 21.352 13.1941 19.6075 16.2614C17.8618 19.3307 15.4169 21.8869 12.4986 23.7001C12.1931 23.8899 11.8069 23.8899 11.5014 23.7001C8.58313 21.8869 6.13817 19.3307 4.39254 16.2614Z" fill="#fa9200"></path><path d="M8.25 12.75L11.25 15L17.25 9" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path></g></svg>',a=i.space(),s=i.element("p"),d=i.space(),l&&l.c(),m=i.space(),i.attr(o,"class","IconVerification"),i.attr(s,"class","text"),i.attr(t,"class","CashierVerificationMessage"),i.toggle_class(t,"ShowAll",r[5])},m(v,w){i.insert(v,t,w),i.append(t,o),i.append(t,a),i.append(t,s),s.innerHTML=c,i.append(t,d),l&&l.m(t,null),i.append(t,m),f||(h=i.listen(t,"click",y),f=!0)},p(v,w){r=v,w[0]&16&&c!==(c=r[54]+"")&&(s.innerHTML=c),r[4].length>1&&r[56]===0?l?l.p(r,w):(l=G(r),l.c(),l.m(t,m)):l&&(l.d(1),l=null),w[0]&32&&i.toggle_class(t,"ShowAll",r[5])},d(v){v&&i.detach(t),l&&l.d(),f=!1,h()}}}function J(r){let t,o,a,s,c=r[10]("verification.video.how-to")+"",d,m,f;return{c(){t=i.element("div"),o=i.element("div"),o.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M256 8C119.043 8 8 119.083 8 256c0 136.997 111.043 248 248 248s248-111.003 248-248C504 119.083 392.957 8 256 8zm0 448c-110.532 0-200-89.431-200-200 0-110.495 89.472-200 200-200 110.491 0 200 89.471 200 200 0 110.53-89.431 200-200 200zm107.244-255.2c0 67.052-72.421 68.084-72.421 92.863V300c0 6.627-5.373 12-12 12h-45.647c-6.627 0-12-5.373-12-12v-8.659c0-35.745 27.1-50.034 47.579-61.516 17.561-9.845 28.324-16.541 28.324-29.579 0-17.246-21.999-28.693-39.784-28.693-23.189 0-33.894 10.977-48.942 29.969-4.057 5.12-11.46 6.071-16.666 2.124l-27.824-21.098c-5.107-3.872-6.251-11.066-2.644-16.363C184.846 131.491 214.94 112 261.794 112c49.071 0 101.45 38.304 101.45 88.8zM298 368c0 23.159-18.841 42-42 42s-42-18.841-42-42 18.841-42 42-42 42 18.841 42 42z"></path></svg>',a=i.space(),s=i.element("div"),d=i.text(c),i.attr(o,"class","IconVideo"),i.attr(s,"class","CashierVerificationVideoLink"),i.toggle_class(s,"CashierVerificationVideoLinkDesktop",r[6]),i.attr(t,"class","CashierVerificationVideo")},m(h,l){i.insert(h,t,l),i.append(t,o),i.append(t,a),i.append(t,s),i.append(s,d),m||(f=i.listen(s,"click",r[23]),m=!0)},p(h,l){l[0]&1024&&c!==(c=h[10]("verification.video.how-to")+"")&&i.set_data(d,c),l[0]&64&&i.toggle_class(s,"CashierVerificationVideoLinkDesktop",h[6])},d(h){h&&i.detach(t),m=!1,f()}}}function Ve(r){let t;function o(c,d){if(c[9])return be;if(c[4])return _e}let a=o(r),s=a&&a(r);return{c(){t=i.element("div"),s&&s.c(),i.attr(t,"class","CashierVerifications"),i.toggle_class(t,"CashierVerificationsDesktop",r[6])},m(c,d){i.insert(c,t,d),s&&s.m(t,null),r[24](t)},p(c,d){a===(a=o(c))&&s?s.p(c,d):(s&&s.d(1),s=a&&a(c),s&&(s.c(),s.m(t,null))),d[0]&64&&i.toggle_class(t,"CashierVerificationsDesktop",c[6])},i:i.noop,o:i.noop,d(c){c&&i.detach(t),s&&s.d(),r[24](null)}}}const Pe="verification_explanation_video_widgets.MP4";function De(r,t,o){let a,s;i.component_subscribe(r,T.$format,e=>o(10,a=e)),i.component_subscribe(r,O.xPaymentSessionToken,e=>o(30,s=e)),O.dayjs.extend(O.utc);let{endpoint:c}=t,{lang:d="en"}=t,{translationurl:m=""}=t,{clientstyling:f=""}=t,{clientstylingurl:h=""}=t,{session:l=""}=t,{customerid:y=""}=t,{ismobileview:v=""}=t,{playersession:w=""}=t,{mbsource:D=""}=t,_,I=new Set,E=new Set,S,C,M,B=!0,R=!0,q=!1,L="",F=!1;var V;(function(e){e.Manual="Manual",e.ShuftiPro="ShuftiPro"})(V||(V={}));var x;(function(e){e.Requested="Requested"})(x||(x={}));var g;(function(e){e.Unknown="Unknown",e.Unverified="Unverified",e.InProgress="InProgress",e.Failed="Failed",e.Verified="Verified",e.Referred="Referred",e.True="True",e.False="False",e.AwaitingForResponse="AwaitingForResponse"})(g||(g={}));var P;(function(e){e.Unknown="Unknown",e.Documents="Documents",e.Age="Age",e.Pep="Pep",e.Sanction="Sanction",e.Aml="Aml",e.ProofOfAddress="ProofOfAddress",e.SourceOfWealth="SourceOfWealth",e.SocialMedia="SocialMedia",e.Biometric="Biometric"})(P||(P={})),i.onMount(()=>()=>{});const Q=[g.InProgress,g.Referred,g.AwaitingForResponse],$=()=>{let e=m;if(e)return fetch(e).then(n=>n.json()).then(n=>{Object.keys(n).forEach(u=>{W(u,n[u])})}).catch(n=>{console.log(n)})};Object.keys(Y).forEach(e=>{W(e,Y[e])});const ee=()=>{ye(d)},U=()=>{o(20,C=re());const e=new URL(`${c}/v1/player/${y}/verification/GetKYCCustomerStatus?language=${d}`),n=new Headers;n.append("accept","application/json"),n.append("Content-Type","application/json"),n.append("x-sessionid",`${w}`),n.append("X-Client-Request-Timestamp",O.dayjs.utc().format("YYYY-MM-DD HH:mm:ss.SSS"));const u={method:"POST",headers:n,body:JSON.stringify({})};o(9,F=!0),fetch(e,u).then(p=>p.json()).then(p=>{const k=ie(p==null?void 0:p.Verifications);S=oe(k),S.VerificationStatuses.forEach(A=>{A.VerificationUrlType!=="Widget"&&I.add(A.Vendor)}),o(4,M=H())}).finally(()=>o(9,F=!1))},ie=e=>e?e.sort((n,u)=>new Date(u.Created).getTime()-new Date(n.Created).getTime()):[],te=()=>{s&&U()},re=()=>{let e=(l||s).split(".")[1];if(e){let n=JSON.parse(atob(e));return n.cdn+"/cashier/operator-assets/"+(n==null?void 0:n.mid)}return""},oe=e=>{var u;if(!e||!e.length)return{VerificationSummaryStatus:g.Unverified,VerificationStatuses:[]};const n=se(e);if(n&&n.length){const p=ne(n);return{VerificationSummaryStatus:p.Status,VerificationUrl:(u=p.Flags)==null?void 0:u.DeferredUrlKey,VerificationStatuses:j(n,p.Status)}}else return{VerificationSummaryStatus:e.some(k=>k.Status===g.Failed)?g.Failed:g.Verified,VerificationStatuses:j(e,[g.Failed])}},ne=e=>e.reduce((n,u)=>n?new Date(n)<new Date(u)?u:n:u,0),j=(e,n)=>e.filter(u=>n.includes(u.Status)).map(u=>{var p,k;return{Type:u.Type,Vendor:u.VendorName,VerificationDocuments:u.Documents?[...u.Documents]:[],VerificationUrlType:(p=u.FlowInfo)==null?void 0:p.Type,VerificationUrl:(k=u.FlowInfo)==null?void 0:k.Url}}),se=e=>e.filter(n=>Q.includes(n.Status)?n.FlowInfo&&n.FlowInfo.Url||ae(n)||le(n):!1),ae=e=>{const n=e.Documents&&e.VendorName===V.Manual,u=e.Documents&&e.Documents.some(p=>p.Status===x.Requested);return n&&u},le=e=>e.VendorName===V.ShuftiPro&&e.Status===g.Referred,H=()=>{switch(S.VerificationSummaryStatus){case g.InProgress:const e=[];return I.forEach(n=>{e.push(ce(n))}),e;case g.Referred:return[a("verification.idenfy.referred-awaiting")];case g.Failed:return[a("verification.message.failed")]}},ce=e=>{const n=S.VerificationStatuses.filter(u=>u.Vendor===e);if(e===V.ShuftiPro)return fe(n);{const u=a("verification.idenfy.link-name"),p={link:`<a href="${n[0].VerificationUrl}" target="_blank">${u}</a>`};return a("verification.idenfy.in-progress",{values:p})}},fe=e=>{const n=[],u={},p=[P.Biometric,P.Documents,P.ProofOfAddress];e.forEach(b=>{p.includes(b.Type)&&(n.push(b.Type),u[b.Type]=de(b,ue(b.Type)))});let k=n.every(b=>E.has(b)),A=`verification.shuftipro.in-progress.${n.sort().join(".")}`;return k?a("verification.shuftipro.validations-started"):a(A,{values:u})},de=(e,n)=>`<a class="verificationLink ${e.Type}" href=" ${e.VerificationUrl} " target="_blank">${n}</a>`,ue=e=>a(`verification.shuftipro.link-name.${e}`),z=(e,n)=>{if(e.stopPropagation(),e.target&&(e.target.href||e.target.closest("a"))){if(e.target.closest(".verificationLink")){const u=e.target.className.split(" ")[1];E.add(u),o(4,M=H())}return}n===0&&o(5,B=!B)},me=()=>{o(6,R=v==="false")},he=()=>{o(8,L=C+"/"+d+"/"+Pe);try{fetch(L,{method:"HEAD"}).then(e=>{o(7,q=e.ok)})}catch(e){o(7,q=!1)}},N=()=>{window.postMessage({type:"ShowCashierVideoModal"},window.location.href)},pe=(e,n)=>z(n,e),ge=(e,n)=>z(n,e),ve=()=>N();function we(e){i.binding_callbacks[e?"unshift":"push"](()=>{_=e,o(3,_)})}return r.$$set=e=>{"endpoint"in e&&o(13,c=e.endpoint),"lang"in e&&o(14,d=e.lang),"translationurl"in e&&o(15,m=e.translationurl),"clientstyling"in e&&o(0,f=e.clientstyling),"clientstylingurl"in e&&o(1,h=e.clientstylingurl),"session"in e&&o(16,l=e.session),"customerid"in e&&o(17,y=e.customerid),"ismobileview"in e&&o(2,v=e.ismobileview),"playersession"in e&&o(18,w=e.playersession),"mbsource"in e&&o(19,D=e.mbsource)},r.$$.update=()=>{r.$$.dirty[0]&16384&&d&&ee(),r.$$.dirty[0]&335872&&c&&l&&w&&U(),r.$$.dirty[0]&335872&&c&&!l&&w&&te(),r.$$.dirty[0]&32768&&m&&$(),r.$$.dirty[0]&9&&f&&_&&i.setClientStyling(),r.$$.dirty[0]&10&&h&&_&&i.setClientStylingURL(),r.$$.dirty[0]&4&&v&&me(),r.$$.dirty[0]&1048576&&C&&he(),r.$$.dirty[0]&524296&&D&&_&&i.setStreamStyling(_,`${D}.Style`)},[f,h,v,_,M,B,R,q,L,F,a,z,N,c,d,m,l,y,w,D,C,pe,ge,ve,we]}class X extends i.SvelteComponent{constructor(t){super(),i.init(this,t,De,Ve,i.safe_not_equal,{endpoint:13,lang:14,translationurl:15,clientstyling:0,clientstylingurl:1,session:16,customerid:17,ismobileview:2,playersession:18,mbsource:19},ke,[-1,-1])}get endpoint(){return this.$$.ctx[13]}set endpoint(t){this.$$set({endpoint:t}),i.flush()}get lang(){return this.$$.ctx[14]}set lang(t){this.$$set({lang:t}),i.flush()}get translationurl(){return this.$$.ctx[15]}set translationurl(t){this.$$set({translationurl:t}),i.flush()}get clientstyling(){return this.$$.ctx[0]}set clientstyling(t){this.$$set({clientstyling:t}),i.flush()}get clientstylingurl(){return this.$$.ctx[1]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),i.flush()}get session(){return this.$$.ctx[16]}set session(t){this.$$set({session:t}),i.flush()}get customerid(){return this.$$.ctx[17]}set customerid(t){this.$$set({customerid:t}),i.flush()}get ismobileview(){return this.$$.ctx[2]}set ismobileview(t){this.$$set({ismobileview:t}),i.flush()}get playersession(){return this.$$.ctx[18]}set playersession(t){this.$$set({playersession:t}),i.flush()}get mbsource(){return this.$$.ctx[19]}set mbsource(t){this.$$set({mbsource:t}),i.flush()}}i.create_custom_element(X,{endpoint:{},lang:{},translationurl:{},clientstyling:{},clientstylingurl:{},session:{},customerid:{},ismobileview:{},playersession:{},mbsource:{}},[],[],!0);exports.default=X;
|