@everymatrix/cashier-page 1.54.12 → 1.56.0

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.
Files changed (51) hide show
  1. package/components/CashierConfirmModal-B_XfWSC2.cjs +4 -0
  2. package/components/{CashierConfirmModal-T9FhMxP2.js → CashierConfirmModal-CnmhfysD.js} +509 -429
  3. package/components/CashierConfirmModal-DjJI47WY.js +1095 -0
  4. package/components/{CashierError-D3O2fglb.js → CashierError-BhW9Bd5u.js} +1 -1
  5. package/components/{CashierError-CXr1Ga3A.js → CashierError-CcFXZ705.js} +1 -1
  6. package/components/{CashierError-pt2isP4C.cjs → CashierError-wHAQP3_C.cjs} +1 -1
  7. package/components/{CashierHeader-CYvR5CZu.cjs → CashierHeader-BKrGT2Ae.cjs} +1 -1
  8. package/components/{CashierHeader-DXoV0-sU.js → CashierHeader-BUMem-fU.js} +2 -2
  9. package/components/{CashierHeader-CI7jIwvA.js → CashierHeader-B_qUwnRz.js} +2 -2
  10. package/components/{CashierIframeRedirect-DJX1MABE.cjs → CashierIframeRedirect-BDIr-k4X.cjs} +1 -1
  11. package/components/{CashierIframeRedirect-Bj6yzWbz.js → CashierIframeRedirect-DK3-V6GJ.js} +4 -4
  12. package/components/{CashierIframeRedirect-DZRW06O3.js → CashierIframeRedirect-DiWIODGM.js} +4 -4
  13. package/components/{CashierMethodDetails-WRu0moNB.js → CashierMethodDetails-B5Y9sYOg.js} +668 -664
  14. package/components/{CashierMethodDetails-BHM-R2f6.js → CashierMethodDetails-C-KT1A-h.js} +683 -679
  15. package/components/{CashierMethodDetails-BL4YJCfG.cjs → CashierMethodDetails-D8AGMiCO.cjs} +3 -3
  16. package/components/{CashierMethodsList-DvJ5AeVH.js → CashierMethodsList-CbNajSX5.js} +61 -61
  17. package/components/{CashierMethodsList-fL4dP0q6.cjs → CashierMethodsList-DCPVijk5.cjs} +1 -1
  18. package/components/{CashierMethodsList-Bwo2B3ZI.js → CashierMethodsList-Q3OYWKGV.js} +58 -58
  19. package/components/{CashierModal-FkJdngyj.cjs → CashierModal-B9SMcvPJ.cjs} +1 -1
  20. package/components/{CashierModal-CZ_PAOXO.js → CashierModal-BQ75P20m.js} +1 -1
  21. package/components/{CashierModal-DnFkgCZP.js → CashierModal-DoTNxAOf.js} +1 -1
  22. package/components/{CashierNotifications-BCI1m1DC.js → CashierNotifications-BdcWgN-t.js} +1 -1
  23. package/components/{CashierNotifications-BJzRxOV_.cjs → CashierNotifications-C5qqk3s5.cjs} +1 -1
  24. package/components/{CashierNotifications-u0zBDLtX.js → CashierNotifications-DVCfwUo9.js} +1 -1
  25. package/components/{CashierPage-r3LOURHg.js → CashierPage-BGaDrX6p.js} +931 -783
  26. package/components/{CashierPage-DFljONz-.cjs → CashierPage-C67H_0uR.cjs} +1 -1
  27. package/components/{CashierPage-DZ_m9jSo.js → CashierPage-Ckv_ecQa.js} +931 -783
  28. package/components/{CashierReceiptPage-CrsgQKKv.js → CashierReceiptPage-B6Ot4u-u.js} +3 -3
  29. package/components/{CashierReceiptPage-BpeCx1F0.js → CashierReceiptPage-Cjz4isz4.js} +3 -3
  30. package/components/{CashierReceiptPage-BkkEn2jf.cjs → CashierReceiptPage-bBNHsfW5.cjs} +1 -1
  31. package/components/{CashierSessionExpirationModal-C1yl8YfD.js → CashierSessionExpirationModal-8p7dxVmt.js} +4 -4
  32. package/components/{CashierSessionExpirationModal-DNA0exph.cjs → CashierSessionExpirationModal-CWKlvhPF.cjs} +1 -1
  33. package/components/{CashierSessionExpirationModal-eZ-ggsNl.js → CashierSessionExpirationModal-CbrAJQvx.js} +4 -4
  34. package/components/{CashierSpinner-BjkjegeG.js → CashierSpinner-Cv-DKF1H.js} +1 -1
  35. package/components/{CashierSpinner-CySOWnIQ.cjs → CashierSpinner-CxYzgF3b.cjs} +1 -1
  36. package/components/{CashierSpinner-C4PbqmeQ.js → CashierSpinner-Y3YCsQEf.js} +1 -1
  37. package/components/CashierTransactionHistory-DRX91Hoc.cjs +1 -0
  38. package/components/CashierTransactionHistory-DmVVMYYd.js +567 -0
  39. package/components/CashierTransactionHistory-SjIsxvK5.js +567 -0
  40. package/components/{CashierVerifications-C8WlwUzI.js → CashierVerifications-Cqc-k576.js} +4 -4
  41. package/components/{CashierVerifications-BD1cym0W.cjs → CashierVerifications-D-3Ycigl.cjs} +1 -1
  42. package/components/{CashierVerifications-B-jBO3Nx.js → CashierVerifications-DL2hsNCJ.js} +4 -4
  43. package/components/{CashierVideoModal-BWI2U3UH.cjs → CashierVideoModal-CBBnFyqd.cjs} +1 -1
  44. package/components/{CashierVideoModal-CeguehvU.js → CashierVideoModal-DkujQ3WY.js} +1 -1
  45. package/components/{CashierVideoModal-CEfQgtP6.js → CashierVideoModal-YsTJSZa7.js} +1 -1
  46. package/es2015/cashier-page.cjs +1 -1
  47. package/es2015/cashier-page.js +1 -1
  48. package/esnext/cashier-page.js +1 -1
  49. package/package.json +1 -1
  50. package/components/CashierConfirmModal-Bop0eOiK.js +0 -1015
  51. package/components/CashierConfirmModal-KmRU3Mgr.cjs +0 -4
@@ -0,0 +1,567 @@
1
+ import { S as ie, b as se, s as ne, f as G, c as ae, n as B, e as E, m as U, x as re, w as oe, K as Y, L as de, g as q, k as ce, t as ue, l as he, y as P, o as s, p as m, q as j, z as I, v as t, A as fe, W as ge, F as pe, X as ve, J as X, B as me, N as f, D as be } from "./CashierConfirmModal-CnmhfysD.js";
2
+ import { f as J } from "./CashierModal-BQ75P20m.js";
3
+ import { a as ke, $ as we, i as ye, b as Te } from "./CashierError-CcFXZ705.js";
4
+ import { d as _e } from "./CashierMethodDetails-C-KT1A-h.js";
5
+ ye({
6
+ fallbackLocale: "en"
7
+ });
8
+ function K(a, e) {
9
+ ke(a, e);
10
+ }
11
+ function xe(a) {
12
+ we.set(a);
13
+ }
14
+ const Q = {
15
+ en: {
16
+ transactionHistoryTitle: "Transaction History",
17
+ transactionIdTitle: "ID",
18
+ transactionDateTitle: "Date",
19
+ transactionTypeTitle: "Type",
20
+ transactionStatusTitle: "Status",
21
+ copyTransactionId: "Transaction Id copied to clipboard",
22
+ transactionStatus: {
23
+ Authorized: "Authorized",
24
+ Success: "Success",
25
+ Failed: "Failed",
26
+ Rejected: "Rejected",
27
+ Pending: "Pending"
28
+ },
29
+ transactionType: {
30
+ Deposit: "Deposit",
31
+ Withdraw: "Withdraw"
32
+ }
33
+ },
34
+ tr: {
35
+ transactionHistoryTitle: "Transaction History",
36
+ transactionIdTitle: "ID",
37
+ transactionDateTitle: "Date",
38
+ transactionTypeTitle: "Type",
39
+ transactionStatusTitle: "Status",
40
+ copyTransactionId: "Transaction Id copied to clipboard",
41
+ transactionStatus: {
42
+ Authorized: "Authorized",
43
+ Success: "Success",
44
+ Failed: "Failed",
45
+ Rejected: "Rejected",
46
+ Pending: "Pending"
47
+ },
48
+ transactionType: {
49
+ Deposit: "Yatırma",
50
+ Withdraw: "Çekim"
51
+ }
52
+ }
53
+ };
54
+ function Ce(a, e) {
55
+ if (a) {
56
+ const l = document.createElement("style");
57
+ l.innerHTML = e, a.appendChild(l);
58
+ }
59
+ }
60
+ function He(a, e) {
61
+ const l = new URL(e);
62
+ fetch(l.href).then((i) => i.text()).then((i) => {
63
+ const r = document.createElement("style");
64
+ r.innerHTML = i, a && a.appendChild(r);
65
+ }).catch((i) => {
66
+ console.error("There was an error while trying to load client styling from URL", i);
67
+ });
68
+ }
69
+ function Se(a) {
70
+ ae(a, "svelte-1klbu7d", ".svelte-1klbu7d.svelte-1klbu7d,.svelte-1klbu7d.svelte-1klbu7d::before,.svelte-1klbu7d.svelte-1klbu7d::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-style:inherit}.CopyTooltip.svelte-1klbu7d.svelte-1klbu7d{width:calc(50% - var(--emw--spacing-x-small, 10px) - var(--emw--spacing-x-small, 10px));display:flex;align-items:center;justify-content:center;background-color:var(--emw--color-primary, #7EC51E);position:absolute;top:0;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)}.CashierTransactionHistory.svelte-1klbu7d.svelte-1klbu7d{display:flex;flex-direction:column;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-1klbu7d table.svelte-1klbu7d{font-size:var(--emw--font-size-medium, 16px);word-break:break-all;width:100%;border-collapse:collapse;box-sizing:border-box;overflow:hidden;text-overflow:ellipsis;margin-bottom:var(--emw--spacing-small-minus, 10px)}.CashierTransactionHistory.svelte-1klbu7d table.svelte-1klbu7d:not(:last-child){margin-bottom:var(--emw--spacing-large, 20px)}.CashierTransactionHistory.svelte-1klbu7d thead tr.svelte-1klbu7d{border-bottom:1px solid var(--mmw--color-grey-105, #E8E9EB);color:var(--mmw--color-grey-10, #111);height:50px}.CashierTransactionHistory.svelte-1klbu7d tbody tr.svelte-1klbu7d{color:var(--mmw--color-grey-290, #666)}.CashierTransactionHistory.svelte-1klbu7d td.svelte-1klbu7d{max-width:250px;vertical-align:middle;height:40px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:0 var(--emw--spacing-large, 20px) 0 var(--emw--spacing-small, 12px)}.CashierTransactionHistory.svelte-1klbu7d tr.svelte-1klbu7d{position:relative}@container deposit-page (max-width: 750px){.CashierTransactionHistory.svelte-1klbu7d .CopyTooltip.svelte-1klbu7d{left:0;transform:none;width:100%;font-size:var(--emw--font-size-small, 14px);line-height:calc(var(--emw--font-size-small, 14px) + 2px);border-radius:0 0 var(--mmw--border-radius-medium-plus, 6px) var(--mmw--border-radius-medium-plus, 6px)}.CashierTransactionHistory.svelte-1klbu7d .CashierTransactionHistoryStatus.svelte-1klbu7d{line-height:calc(var(--emw--font-size-small, 14px) + 2px)}}@container transaction-history (width < 750px){.CashierTransactionHistory.svelte-1klbu7d .CashierTransactionHistoryWrapper.svelte-1klbu7d{width:100%;padding:0;margin:0}.CashierTransactionHistory.svelte-1klbu7d table.svelte-1klbu7d{font-size:var(--emw--font-size-small, 14px);line-height:calc(var(--emw--font-size-small, 14px) + 2px)}.CashierTransactionHistory.svelte-1klbu7d table.svelte-1klbu7d:last-child{margin-bottom:0}.CashierTransactionHistory.svelte-1klbu7d thead tr.svelte-1klbu7d{height:unset}.CashierTransactionHistory.svelte-1klbu7d td.svelte-1klbu7d{height:25px;padding:0 0 0 var(--emw--spacing-small, 12px)}.CashierTransactionHistory.svelte-1klbu7d td.svelte-1klbu7d:first-child{max-width:187px}.CashierTransactionHistory.svelte-1klbu7d td.svelte-1klbu7d:not(:first-child){min-width:max-content}.CashierTransactionHistory.svelte-1klbu7d td.svelte-1klbu7d:last-child{padding-right:var(--emw--spacing-2x-small-plus, 6px)}.CashierTransactionHistory.svelte-1klbu7d .CashierTransactionHistoryIcon svg.svelte-1klbu7d{height:14px;width:14px}}@container transaction-history (width < 450px){.CashierTransactionHistory.svelte-1klbu7d td.svelte-1klbu7d{padding-right:var(--emw--spacing-2x-small-plus, 6px)}.CashierTransactionHistory.svelte-1klbu7d td.svelte-1klbu7d:first-child{max-width:85px}}@container transaction-history (width < 350px){.CashierTransactionHistory.svelte-1klbu7d td.svelte-1klbu7d{padding:0 0 0 var(--emw--spacing-small, 5px)}}@container transaction-history (width < 350px){.CashierTransactionHistory.svelte-1klbu7d table.svelte-1klbu7d{table-layout:fixed}}.CashierTransactionHistoryWrapper.svelte-1klbu7d.svelte-1klbu7d{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-1klbu7d.svelte-1klbu7d{color:var(--mmw--color-grey-10, #111);font-size:var(--emw--font-size-medium, 16px);font-weight:var(--emw--font-weight-normal, 400);line-height:calc(var(--emw--font-size-medium, 16px) + 2px);text-align:left}.CashierTransactionId.svelte-1klbu7d.svelte-1klbu7d{cursor:pointer;-webkit-user-select:none;-ms-user-select:none;user-select:none}.CashierTransactionId.svelte-1klbu7d.svelte-1klbu7d:hover{background-color:var(--emw--color-gray-50, #F7F8FA)}.CashierTransactionHistoryStatus.svelte-1klbu7d.svelte-1klbu7d{line-height:calc(var(--emw--font-size-medium, 16px) + 2px)}.CashierTransactionHistoryContent.svelte-1klbu7d.svelte-1klbu7d{width:100%}.CashierTransactionHistoryIcon.svelte-1klbu7d.svelte-1klbu7d{vertical-align:middle;height:var(--emw--font-size-medium, 16px);width:var(--emw--font-size-medium, 16px)}");
71
+ }
72
+ function $(a, e, l) {
73
+ const i = a.slice();
74
+ return i[24] = e[l], i[26] = l, i;
75
+ }
76
+ function ee(a) {
77
+ let e, l, i, r = (
78
+ /*$_*/
79
+ a[5]("transactionHistoryTitle") + ""
80
+ ), d, o, c, g, k, C, w, z, F = (
81
+ /*$_*/
82
+ a[5]("transactionIdTitle") + ""
83
+ ), H, x, L, y = (
84
+ /*$_*/
85
+ a[5]("transactionDateTitle") + ""
86
+ ), R, D, M, A = (
87
+ /*$_*/
88
+ a[5]("transactionTypeTitle") + ""
89
+ ), W, N, S, b = (
90
+ /*$_*/
91
+ a[5]("transactionStatusTitle") + ""
92
+ ), h, n, p, v = (
93
+ /*copied*/
94
+ a[3] && te(a)
95
+ ), Z = Y(
96
+ /*txnHistory*/
97
+ a[2]
98
+ ), T = [];
99
+ for (let u = 0; u < Z.length; u += 1)
100
+ T[u] = le($(a, Z, u));
101
+ return {
102
+ c() {
103
+ e = m("div"), v && v.c(), l = j(), i = m("h3"), d = I(r), o = j(), c = m("div"), g = m("div"), k = m("table"), C = m("thead"), w = m("tr"), z = m("td"), H = I(F), x = j(), L = m("td"), R = I(y), D = j(), M = m("td"), W = I(A), N = j(), S = m("td"), h = I(b), n = j(), p = m("tbody");
104
+ for (let u = 0; u < T.length; u += 1)
105
+ T[u].c();
106
+ t(i, "class", "CashierTransactionHistoryTitle svelte-1klbu7d"), t(z, "class", "svelte-1klbu7d"), t(L, "class", "svelte-1klbu7d"), t(M, "class", "svelte-1klbu7d"), t(S, "class", "svelte-1klbu7d"), t(w, "class", "svelte-1klbu7d"), t(C, "class", "svelte-1klbu7d"), t(p, "class", "svelte-1klbu7d"), t(k, "class", "svelte-1klbu7d"), t(g, "class", "CashierTransactionHistoryContent svelte-1klbu7d"), t(c, "class", "CashierTransactionHistoryWrapper svelte-1klbu7d"), t(e, "class", "CashierTransactionHistory svelte-1klbu7d");
107
+ },
108
+ m(u, V) {
109
+ U(u, e, V), v && v.m(e, null), s(e, l), s(e, i), s(i, d), s(e, o), s(e, c), s(c, g), s(g, k), s(k, C), s(C, w), s(w, z), s(z, H), s(w, x), s(w, L), s(L, R), s(w, D), s(w, M), s(M, W), s(w, N), s(w, S), s(S, h), s(k, n), s(k, p);
110
+ for (let _ = 0; _ < T.length; _ += 1)
111
+ T[_] && T[_].m(p, null);
112
+ a[16](e);
113
+ },
114
+ p(u, V) {
115
+ if (/*copied*/
116
+ u[3] ? v ? (v.p(u, V), V & /*copied*/
117
+ 8 && q(v, 1)) : (v = te(u), v.c(), q(v, 1), v.m(e, l)) : v && (ce(), ue(v, 1, 1, () => {
118
+ v = null;
119
+ }), he()), V & /*$_*/
120
+ 32 && r !== (r = /*$_*/
121
+ u[5]("transactionHistoryTitle") + "") && P(d, r), V & /*$_*/
122
+ 32 && F !== (F = /*$_*/
123
+ u[5]("transactionIdTitle") + "") && P(H, F), V & /*$_*/
124
+ 32 && y !== (y = /*$_*/
125
+ u[5]("transactionDateTitle") + "") && P(R, y), V & /*$_*/
126
+ 32 && A !== (A = /*$_*/
127
+ u[5]("transactionTypeTitle") + "") && P(W, A), V & /*$_*/
128
+ 32 && b !== (b = /*$_*/
129
+ u[5]("transactionStatusTitle") + "") && P(h, b), V & /*$_, txnHistory, TransactionMainStatus, copied, copyToClipboard*/
130
+ 124) {
131
+ Z = Y(
132
+ /*txnHistory*/
133
+ u[2]
134
+ );
135
+ let _;
136
+ for (_ = 0; _ < Z.length; _ += 1) {
137
+ const O = $(u, Z, _);
138
+ T[_] ? T[_].p(O, V) : (T[_] = le(O), T[_].c(), T[_].m(p, null));
139
+ }
140
+ for (; _ < T.length; _ += 1)
141
+ T[_].d(1);
142
+ T.length = Z.length;
143
+ }
144
+ },
145
+ d(u) {
146
+ u && E(e), v && v.d(), de(T, u), a[16](null);
147
+ }
148
+ };
149
+ }
150
+ function te(a) {
151
+ let e, l = (
152
+ /*$_*/
153
+ a[5]("copyTransactionId") + ""
154
+ ), i, r, d, o;
155
+ return {
156
+ c() {
157
+ e = m("div"), i = I(l), t(e, "class", "CopyTooltip svelte-1klbu7d");
158
+ },
159
+ m(c, g) {
160
+ U(c, e, g), s(e, i), o = !0;
161
+ },
162
+ p(c, g) {
163
+ a = c, (!o || g & /*$_*/
164
+ 32) && l !== (l = /*$_*/
165
+ a[5]("copyTransactionId") + "") && P(i, l);
166
+ },
167
+ i(c) {
168
+ o || (c && pe(() => {
169
+ o && (d && d.end(1), r = ve(e, J, { duration: (
170
+ /*tooltipduration*/
171
+ a[0]
172
+ ) }), r.start());
173
+ }), o = !0);
174
+ },
175
+ o(c) {
176
+ r && r.invalidate(), c && (d = ge(e, J, { duration: (
177
+ /*tooltipduration*/
178
+ a[0]
179
+ ) })), o = !1;
180
+ },
181
+ d(c) {
182
+ c && E(e), c && d && d.end();
183
+ }
184
+ };
185
+ }
186
+ function ze(a) {
187
+ let e, l, i, r, d;
188
+ return {
189
+ c() {
190
+ e = f("svg"), l = f("g"), i = f("g"), r = f("g"), d = f("path"), t(l, "id", "SVGRepo_bgCarrier"), t(l, "stroke-width", "0"), t(l, "class", "svelte-1klbu7d"), t(i, "id", "SVGRepo_tracerCarrier"), t(i, "stroke-linecap", "round"), t(i, "stroke-linejoin", "round"), t(i, "class", "svelte-1klbu7d"), t(d, "fill-rule", "evenodd"), t(d, "clip-rule", "evenodd"), t(d, "d", "M22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12ZM16.0303 8.96967C16.3232 9.26256 16.3232 9.73744 16.0303 10.0303L11.0303 15.0303C10.7374 15.3232 10.2626 15.3232 9.96967 15.0303L7.96967 13.0303C7.67678 12.7374 7.67678 12.2626 7.96967 11.9697C8.26256 11.6768 8.73744 11.6768 9.03033 11.9697L10.5 13.4393L12.7348 11.2045L14.9697 8.96967C15.2626 8.67678 15.7374 8.67678 16.0303 8.96967Z"), t(d, "fill", "#7EC51E"), t(d, "class", "svelte-1klbu7d"), t(r, "id", "SVGRepo_iconCarrier"), t(r, "class", "svelte-1klbu7d"), t(e, "width", "16px"), t(e, "height", "16px"), t(e, "viewBox", "0 0 24 24"), t(e, "fill", "none"), t(e, "xmlns", "http://www.w3.org/2000/svg"), t(e, "class", "svelte-1klbu7d");
191
+ },
192
+ m(o, c) {
193
+ U(o, e, c), s(e, l), s(e, i), s(e, r), s(r, d);
194
+ },
195
+ d(o) {
196
+ o && E(e);
197
+ }
198
+ };
199
+ }
200
+ function Re(a) {
201
+ let e, l, i, r, d, o, c;
202
+ return {
203
+ c() {
204
+ e = f("svg"), l = f("g"), i = f("rect"), r = f("g"), d = f("g"), o = f("text"), c = I("R j"), t(i, "x", "-2.4"), t(i, "y", "-2.4"), t(i, "width", "28.80"), t(i, "height", "28.80"), t(i, "rx", "14.4"), t(i, "fill", "#dd6617d4"), t(i, "class", "svelte-1klbu7d"), t(l, "id", "SVGRepo_bgCarrier"), t(l, "stroke-width", "0"), t(l, "class", "svelte-1klbu7d"), t(r, "id", "SVGRepo_tracerCarrier"), t(r, "stroke-linecap", "round"), t(r, "stroke-linejoin", "round"), t(r, "class", "svelte-1klbu7d"), t(o, "x", "42%"), t(o, "y", "50%"), t(o, "dominant-baseline", "middle"), t(o, "text-anchor", "middle"), t(o, "font-family", "Arial"), t(o, "font-size", "16"), t(o, "fill", "#ffffff"), t(o, "class", "svelte-1klbu7d"), t(d, "id", "SVGRepo_iconCarrier"), t(d, "class", "svelte-1klbu7d"), t(e, "width", "16px"), t(e, "height", "16px"), t(e, "viewBox", "-2.4 -2.4 28.80 28.80"), t(e, "fill", "none"), t(e, "xmlns", "http://www.w3.org/2000/svg"), t(e, "class", "svelte-1klbu7d");
205
+ },
206
+ m(g, k) {
207
+ U(g, e, k), s(e, l), s(l, i), s(e, r), s(e, d), s(d, o), s(o, c);
208
+ },
209
+ d(g) {
210
+ g && E(e);
211
+ }
212
+ };
213
+ }
214
+ function De(a) {
215
+ let e, l, i, r, d, o, c;
216
+ return {
217
+ c() {
218
+ e = f("svg"), l = f("g"), i = f("rect"), r = f("g"), d = f("g"), o = f("path"), c = f("path"), t(i, "x", "-2.4"), t(i, "y", "-2.4"), t(i, "width", "28.80"), t(i, "height", "28.80"), t(i, "rx", "14.4"), t(i, "fill", "#dd6617d4"), t(i, "class", "svelte-1klbu7d"), t(l, "id", "SVGRepo_bgCarrier"), t(l, "stroke-width", "0"), t(l, "class", "svelte-1klbu7d"), t(r, "id", "SVGRepo_tracerCarrier"), t(r, "stroke-linecap", "round"), t(r, "stroke-linejoin", "round"), t(r, "class", "svelte-1klbu7d"), t(o, "d", "M13 6H11V7C11 7.55228 11.4477 8 12 8C12.5523 8 13 7.55228 13 7V6Z"), t(o, "fill", "#ffffff"), t(o, "class", "svelte-1klbu7d"), t(c, "fill-rule", "evenodd"), t(c, "clip-rule", "evenodd"), t(c, "d", "M6 2V4H7V7C7 9.76142 9.23858 12 12 12C9.23858 12 7 14.2386 7 17V20H6V22H18V20H17V17C17 14.2386 14.7614 12 12 12C14.7614 12 17 9.76142 17 7V4H18V2H6ZM9 4H15V7C15 8.65685 13.6569 10 12 10C10.3431 10 9 8.65685 9 7V4ZM9 17V20H15V17C15 15.3431 13.6569 14 12 14C10.3431 14 9 15.3431 9 17Z"), t(c, "fill", "#ffffff"), t(c, "class", "svelte-1klbu7d"), t(d, "id", "SVGRepo_iconCarrier"), t(d, "class", "svelte-1klbu7d"), t(e, "width", "16px"), t(e, "height", "16px"), t(e, "viewBox", "-2.4 -2.4 28.80 28.80"), t(e, "fill", "none"), t(e, "xmlns", "http://www.w3.org/2000/svg"), t(e, "class", "svelte-1klbu7d");
219
+ },
220
+ m(g, k) {
221
+ U(g, e, k), s(e, l), s(l, i), s(e, r), s(e, d), s(d, o), s(d, c);
222
+ },
223
+ d(g) {
224
+ g && E(e);
225
+ }
226
+ };
227
+ }
228
+ function Ve(a) {
229
+ let e, l, i, r, d;
230
+ return {
231
+ c() {
232
+ e = f("svg"), l = f("g"), i = f("g"), r = f("g"), d = f("path"), t(l, "id", "SVGRepo_bgCarrier"), t(l, "stroke-width", "0"), t(l, "class", "svelte-1klbu7d"), t(i, "id", "SVGRepo_tracerCarrier"), t(i, "stroke-linecap", "round"), t(i, "stroke-linejoin", "round"), t(i, "class", "svelte-1klbu7d"), t(d, "d", "M960 0c530.193 0 960 429.807 960 960s-429.807 960-960 960S0 1490.193 0 960 429.807 0 960 0Zm-9.838 1342.685c-84.47 0-153.19 68.721-153.19 153.19 0 84.47 68.72 153.192 153.19 153.192s153.19-68.721 153.19-153.191-68.72-153.19-153.19-153.19ZM1153.658 320H746.667l99.118 898.623h208.755L1153.658 320Z"), t(d, "fill-rule", "evenodd"), t(d, "class", "svelte-1klbu7d"), t(r, "id", "SVGRepo_iconCarrier"), t(r, "class", "svelte-1klbu7d"), t(e, "fill", "#ed0909"), t(e, "width", "16px"), t(e, "height", "16px"), t(e, "viewBox", "0 0 1920 1920"), t(e, "xmlns", "http://www.w3.org/2000/svg"), t(e, "class", "svelte-1klbu7d");
233
+ },
234
+ m(o, c) {
235
+ U(o, e, c), s(e, l), s(e, i), s(e, r), s(r, d);
236
+ },
237
+ d(o) {
238
+ o && E(e);
239
+ }
240
+ };
241
+ }
242
+ function je(a) {
243
+ let e, l, i, r, d, o;
244
+ return {
245
+ c() {
246
+ e = f("svg"), l = f("g"), i = f("g"), r = f("g"), d = f("circle"), o = f("path"), t(l, "id", "SVGRepo_bgCarrier"), t(l, "stroke-width", "0"), t(l, "class", "svelte-1klbu7d"), t(i, "id", "SVGRepo_tracerCarrier"), t(i, "stroke-linecap", "round"), t(i, "stroke-linejoin", "round"), t(i, "class", "svelte-1klbu7d"), t(d, "cx", "32"), t(d, "cy", "32"), t(d, "r", "30"), t(d, "fill", "#4fd1d9"), t(d, "class", "svelte-1klbu7d"), t(o, "d", "M28.6 17.5h6.9l10.3 29h-6.6l-1.9-6H26.6l-2 6h-6.3l10.3-29m-.4 18h7.4L32 24.1l-3.8 11.4"), t(o, "fill", "#ffffff"), t(o, "class", "svelte-1klbu7d"), t(r, "id", "SVGRepo_iconCarrier"), t(r, "class", "svelte-1klbu7d"), t(e, "width", "14px"), t(e, "height", "14px"), t(e, "viewBox", "0 0 64 64"), t(e, "xmlns", "http://www.w3.org/2000/svg"), t(e, "xmlns:xlink", "http://www.w3.org/1999/xlink"), t(e, "aria-hidden", "true"), t(e, "role", "img"), t(e, "class", "iconify iconify--emojione svelte-1klbu7d"), t(e, "preserveAspectRatio", "xMidYMid meet"), t(e, "fill", "#000000");
247
+ },
248
+ m(c, g) {
249
+ U(c, e, g), s(e, l), s(e, i), s(e, r), s(r, d), s(r, o);
250
+ },
251
+ d(c) {
252
+ c && E(e);
253
+ }
254
+ };
255
+ }
256
+ function le(a) {
257
+ let e, l, i = (
258
+ /*transaction*/
259
+ a[24].Code + ""
260
+ ), r, d, o, c = (
261
+ /*transaction*/
262
+ a[24].Date + ""
263
+ ), g, k, C, w = (
264
+ /*$_*/
265
+ a[5](`transactionType.${/*transaction*/
266
+ a[24].Type}`) + ""
267
+ ), z, F, H, x, L, y, R = (
268
+ /*$_*/
269
+ a[5](`transactionStatus.${/*transaction*/
270
+ a[24].Status}`) + ""
271
+ ), D, M, A, W;
272
+ function N(h, n) {
273
+ if (
274
+ /*transaction*/
275
+ h[24].Status === /*TransactionMainStatus*/
276
+ h[4].Authorized
277
+ ) return je;
278
+ if (
279
+ /*transaction*/
280
+ h[24].Status === /*TransactionMainStatus*/
281
+ h[4].Failed
282
+ ) return Ve;
283
+ if (
284
+ /*transaction*/
285
+ h[24].Status === /*TransactionMainStatus*/
286
+ h[4].Pending
287
+ ) return De;
288
+ if (
289
+ /*transaction*/
290
+ h[24].Status === /*TransactionMainStatus*/
291
+ h[4].Rejected
292
+ ) return Re;
293
+ if (
294
+ /*transaction*/
295
+ h[24].Status === /*TransactionMainStatus*/
296
+ h[4].Success
297
+ ) return ze;
298
+ }
299
+ let S = N(a), b = S && S(a);
300
+ return {
301
+ c() {
302
+ e = m("tr"), l = m("td"), r = I(i), d = j(), o = m("td"), g = I(c), k = j(), C = m("td"), z = I(w), F = j(), H = m("td"), x = m("span"), b && b.c(), L = j(), y = m("span"), D = I(R), M = j(), t(l, "class", "CashierTransactionId svelte-1klbu7d"), X(
303
+ l,
304
+ "copied",
305
+ /*copied*/
306
+ a[3]
307
+ ), t(o, "class", "svelte-1klbu7d"), t(C, "class", "svelte-1klbu7d"), t(x, "class", "CashierTransactionHistoryIcon svelte-1klbu7d"), t(y, "class", "CashierTransactionHistoryStatus svelte-1klbu7d"), t(H, "class", "svelte-1klbu7d"), t(e, "class", "svelte-1klbu7d");
308
+ },
309
+ m(h, n) {
310
+ U(h, e, n), s(e, l), s(l, r), s(e, d), s(e, o), s(o, g), s(e, k), s(e, C), s(C, z), s(e, F), s(e, H), s(H, x), b && b.m(x, null), s(H, L), s(H, y), s(y, D), s(e, M), A || (W = me(
311
+ l,
312
+ "mousedown",
313
+ /*mousedown_handler*/
314
+ a[15]
315
+ ), A = !0);
316
+ },
317
+ p(h, n) {
318
+ n & /*txnHistory*/
319
+ 4 && i !== (i = /*transaction*/
320
+ h[24].Code + "") && P(r, i), n & /*copied*/
321
+ 8 && X(
322
+ l,
323
+ "copied",
324
+ /*copied*/
325
+ h[3]
326
+ ), n & /*txnHistory*/
327
+ 4 && c !== (c = /*transaction*/
328
+ h[24].Date + "") && P(g, c), n & /*$_, txnHistory*/
329
+ 36 && w !== (w = /*$_*/
330
+ h[5](`transactionType.${/*transaction*/
331
+ h[24].Type}`) + "") && P(z, w), S !== (S = N(h)) && (b && b.d(1), b = S && S(h), b && (b.c(), b.m(x, null))), n & /*$_, txnHistory*/
332
+ 36 && R !== (R = /*$_*/
333
+ h[5](`transactionStatus.${/*transaction*/
334
+ h[24].Status}`) + "") && P(D, R);
335
+ },
336
+ d(h) {
337
+ h && E(e), b && b.d(), A = !1, W();
338
+ }
339
+ };
340
+ }
341
+ function Ie(a) {
342
+ let e, l = (
343
+ /*txnHistory*/
344
+ a[2].length && ee(a)
345
+ );
346
+ return {
347
+ c() {
348
+ l && l.c(), e = re();
349
+ },
350
+ m(i, r) {
351
+ l && l.m(i, r), U(i, e, r);
352
+ },
353
+ p(i, [r]) {
354
+ /*txnHistory*/
355
+ i[2].length ? l ? l.p(i, r) : (l = ee(i), l.c(), l.m(e.parentNode, e)) : l && (l.d(1), l = null);
356
+ },
357
+ i: B,
358
+ o: B,
359
+ d(i) {
360
+ i && E(e), l && l.d(i);
361
+ }
362
+ };
363
+ }
364
+ const Fe = "DD.MM.YYYY";
365
+ function Le(a, e, l) {
366
+ let i;
367
+ oe(a, Te, (n) => l(5, i = n));
368
+ let { endpoint: r } = e, { session: d } = e, { lang: o = "en" } = e, { customerid: c } = e, { clientstyling: g = "" } = e, { clientstylingurl: k = "" } = e, { translationurl: C } = e, { tooltipduration: w = 1e3 } = e, { txncount: z = 3 } = e, F = [], H = !1, x, L;
369
+ var y;
370
+ (function(n) {
371
+ n.Deposit = "deposit", n.Withdraw = "withdraw", n.Refund = "refund", n.Unknown = "unknown", n.TaxDeduction = "taxDeduction";
372
+ })(y || (y = {}));
373
+ const R = [
374
+ "Authorized",
375
+ "Success",
376
+ "Failed",
377
+ "Rejected",
378
+ "PendingApprovalStage1",
379
+ "PendingApprovalStage2",
380
+ "PendingApprovalStage3",
381
+ "PendingNotification",
382
+ "PendingOfflineNotification",
383
+ "PendingConfirmation"
384
+ ];
385
+ var D;
386
+ (function(n) {
387
+ n.Authorized = "Authorized", n.Success = "Success", n.Failed = "Failed", n.Rejected = "Rejected", n.Pending = "Pending";
388
+ })(D || (D = {}));
389
+ const M = () => {
390
+ let n = C;
391
+ if (n)
392
+ return fetch(n).then((p) => p.json()).then((p) => {
393
+ Object.keys(p).forEach((v) => {
394
+ K(v, p[v]);
395
+ });
396
+ }).catch((p) => {
397
+ console.log(p);
398
+ });
399
+ };
400
+ Object.keys(Q).forEach((n) => {
401
+ K(n, Q[n]);
402
+ });
403
+ const A = () => {
404
+ xe(o);
405
+ }, W = () => {
406
+ const n = new URL(`${r}/api/v1/mm/payment/gettransactionshistory`), p = new Headers();
407
+ p.append("accept", "application/json"), p.append("Content-Type", "application/json"), p.append("X-SessionId", `${d}`);
408
+ const v = new Date((/* @__PURE__ */ new Date()).setMonth((/* @__PURE__ */ new Date()).getMonth() - 3)).toISOString(), Z = new Date((/* @__PURE__ */ new Date()).setHours((/* @__PURE__ */ new Date()).getHours() + 24)).toISOString(), T = {
409
+ method: "POST",
410
+ mode: "cors",
411
+ headers: p,
412
+ body: JSON.stringify({
413
+ language: o,
414
+ customerId: c,
415
+ count: z,
416
+ page: 0,
417
+ fromDate: v,
418
+ toDate: Z,
419
+ statuses: {
420
+ [y.Deposit]: R,
421
+ [y.Withdraw]: R,
422
+ [y.Refund]: ["Unknown"],
423
+ [y.TaxDeduction]: ["Unknown"],
424
+ [y.Unknown]: ["Unknown"]
425
+ },
426
+ calculateProfit: !1
427
+ })
428
+ };
429
+ fetch(n, T).then((u) => u.json()).then((u) => {
430
+ l(2, F = N((u == null ? void 0 : u.items) || []));
431
+ }).catch((u) => console.log(u));
432
+ }, N = (n) => n.map((p) => {
433
+ let v = p.generalFields.status;
434
+ return p.generalFields.status.toLowerCase().includes("pending") && (v = D.Pending), {
435
+ Code: p.generalFields.code,
436
+ Date: _e(p.generalFields.created).format(Fe),
437
+ Status: v,
438
+ Type: p.generalFields.type
439
+ };
440
+ }) || [], S = (n) => {
441
+ const p = n.currentTarget;
442
+ n.target === p && navigator.clipboard.writeText(p.innerText).then(() => {
443
+ l(3, H = !0), clearTimeout(L), L = setTimeout(
444
+ () => {
445
+ l(3, H = !1);
446
+ },
447
+ 2e3
448
+ );
449
+ }).catch((v) => {
450
+ console.error("Could not copy text: ", v);
451
+ });
452
+ }, b = (n) => S(n);
453
+ function h(n) {
454
+ fe[n ? "unshift" : "push"](() => {
455
+ x = n, l(1, x);
456
+ });
457
+ }
458
+ return a.$$set = (n) => {
459
+ "endpoint" in n && l(7, r = n.endpoint), "session" in n && l(8, d = n.session), "lang" in n && l(9, o = n.lang), "customerid" in n && l(10, c = n.customerid), "clientstyling" in n && l(11, g = n.clientstyling), "clientstylingurl" in n && l(12, k = n.clientstylingurl), "translationurl" in n && l(13, C = n.translationurl), "tooltipduration" in n && l(0, w = n.tooltipduration), "txncount" in n && l(14, z = n.txncount);
460
+ }, a.$$.update = () => {
461
+ a.$$.dirty & /*lang*/
462
+ 512 && o && A(), a.$$.dirty & /*clientstyling, customStylingContainer*/
463
+ 2050 && g && x && Ce(x, g), a.$$.dirty & /*clientstylingurl, customStylingContainer*/
464
+ 4098 && k && x && He(x, k), a.$$.dirty & /*endpoint, session, customerid, lang*/
465
+ 1920 && r && d && c && o && W(), a.$$.dirty & /*translationurl*/
466
+ 8192 && C && M();
467
+ }, [
468
+ w,
469
+ x,
470
+ F,
471
+ H,
472
+ D,
473
+ i,
474
+ S,
475
+ r,
476
+ d,
477
+ o,
478
+ c,
479
+ g,
480
+ k,
481
+ C,
482
+ z,
483
+ b,
484
+ h
485
+ ];
486
+ }
487
+ class Ae extends ie {
488
+ constructor(e) {
489
+ super(), se(
490
+ this,
491
+ e,
492
+ Le,
493
+ Ie,
494
+ ne,
495
+ {
496
+ endpoint: 7,
497
+ session: 8,
498
+ lang: 9,
499
+ customerid: 10,
500
+ clientstyling: 11,
501
+ clientstylingurl: 12,
502
+ translationurl: 13,
503
+ tooltipduration: 0,
504
+ txncount: 14
505
+ },
506
+ Se
507
+ );
508
+ }
509
+ get endpoint() {
510
+ return this.$$.ctx[7];
511
+ }
512
+ set endpoint(e) {
513
+ this.$$set({ endpoint: e }), G();
514
+ }
515
+ get session() {
516
+ return this.$$.ctx[8];
517
+ }
518
+ set session(e) {
519
+ this.$$set({ session: e }), G();
520
+ }
521
+ get lang() {
522
+ return this.$$.ctx[9];
523
+ }
524
+ set lang(e) {
525
+ this.$$set({ lang: e }), G();
526
+ }
527
+ get customerid() {
528
+ return this.$$.ctx[10];
529
+ }
530
+ set customerid(e) {
531
+ this.$$set({ customerid: e }), G();
532
+ }
533
+ get clientstyling() {
534
+ return this.$$.ctx[11];
535
+ }
536
+ set clientstyling(e) {
537
+ this.$$set({ clientstyling: e }), G();
538
+ }
539
+ get clientstylingurl() {
540
+ return this.$$.ctx[12];
541
+ }
542
+ set clientstylingurl(e) {
543
+ this.$$set({ clientstylingurl: e }), G();
544
+ }
545
+ get translationurl() {
546
+ return this.$$.ctx[13];
547
+ }
548
+ set translationurl(e) {
549
+ this.$$set({ translationurl: e }), G();
550
+ }
551
+ get tooltipduration() {
552
+ return this.$$.ctx[0];
553
+ }
554
+ set tooltipduration(e) {
555
+ this.$$set({ tooltipduration: e }), G();
556
+ }
557
+ get txncount() {
558
+ return this.$$.ctx[14];
559
+ }
560
+ set txncount(e) {
561
+ this.$$set({ txncount: e }), G();
562
+ }
563
+ }
564
+ be(Ae, { endpoint: {}, session: {}, lang: {}, customerid: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, tooltipduration: {}, txncount: {} }, [], [], !0);
565
+ export {
566
+ Ae as default
567
+ };
@@ -1,6 +1,6 @@
1
- import { S as Ce, b as _e, s as Se, f as b, c as Ae, n as G, e as C, J as O, l as _, o as w, q as V, v as Oe, K as Y, L as Te, E as D, p as A, z as Me, m as k, A as H, x as Be, y as Le, D as Ie } from "./CashierConfirmModal-Bop0eOiK.js";
2
- import { a as qe, i as xe, $ as Ee, b as Fe } from "./CashierError-D3O2fglb.js";
3
- import { d as J, u as ze } from "./CashierMethodDetails-WRu0moNB.js";
1
+ import { S as Ce, b as _e, s as Se, f as b, c as Ae, n as G, e as C, J as O, l as _, o as w, q as V, v as Oe, K as Y, L as Te, E as D, p as A, z as Me, m as k, A as H, x as Be, y as Le, D as Ie } from "./CashierConfirmModal-DjJI47WY.js";
2
+ import { a as qe, i as xe, $ as Ee, b as Fe } from "./CashierError-BhW9Bd5u.js";
3
+ import { d as J, u as ze } from "./CashierMethodDetails-B5Y9sYOg.js";
4
4
  function Z(t, i) {
5
5
  qe(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-CEfQgtP6.js").then(({ default: i }) => {
80
+ customElements.define = t(customElements.define), import("./CashierVideoModal-YsTJSZa7.js").then(({ default: i }) => {
81
81
  !customElements.get("cashier-video-modal") && customElements.define("cashier-video-modal", i.element);
82
82
  });
83
83
  }