@everymatrix/cashier-page 1.72.2 → 1.73.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 (87) hide show
  1. package/components/{CashierConfirmModal-4RYp7Eiq.js → CashierConfirmModal-BCk4hvRj.js} +3 -3
  2. package/components/{CashierConfirmModal-untxGhsx.js → CashierConfirmModal-DXlKhIue.js} +3 -3
  3. package/components/{CashierError-Zu3Whx-d.js → CashierError-BydkW7s_.js} +2 -2
  4. package/components/{CashierError-DfpdiheS.cjs → CashierError-Dpt_Z7yL.cjs} +1 -1
  5. package/components/{CashierError-yts9rF-i.js → CashierError-Dz_HsnJl.js} +2 -2
  6. package/components/{CashierHeader-BX6LLGb8.js → CashierHeader-86wrgmgP.js} +2 -2
  7. package/components/{CashierHeader-B9cdsOYh.cjs → CashierHeader-BXKYku0i.cjs} +1 -1
  8. package/components/{CashierHeader-C9V5_NVw.js → CashierHeader-DtS_U-De.js} +2 -2
  9. package/components/CashierIframeRedirect-BARMuRTc.cjs +1 -0
  10. package/components/CashierIframeRedirect-CmqcfGcT.js +429 -0
  11. package/components/CashierIframeRedirect-Xzpx4Rjk.js +429 -0
  12. package/components/CashierMethodDetails-Cf6KUGlj.cjs +99 -0
  13. package/components/{CashierMethodDetails-DhkT1TEG.js → CashierMethodDetails-DaUlJ18Q.js} +3451 -2898
  14. package/components/{CashierMethodDetails-D1ZeLJFI.js → CashierMethodDetails-oVkmdGDk.js} +3542 -2989
  15. package/components/CashierMethodsList-BKtn4kYZ.js +859 -0
  16. package/components/CashierMethodsList-BmNbGD7c.cjs +1 -0
  17. package/components/{CashierMethodsList-z8dlFfeS.js → CashierMethodsList-bnXzA9E8.js} +397 -402
  18. package/components/CashierModal-B4b12-Am.js +229 -0
  19. package/components/CashierModal-C-yyjQ8m.cjs +1 -0
  20. package/components/CashierModal-DCgiaC4V.js +229 -0
  21. package/components/{CashierNotifications-dn6rnyK_.js → CashierNotifications-BZCaBrRm.js} +1 -1
  22. package/components/{CashierNotifications-C48iLynX.js → CashierNotifications-CWqwdi55.js} +1 -1
  23. package/components/{CashierPage-DagcI5W-.js → CashierPage-BhUYgsyn.js} +628 -475
  24. package/components/CashierPage-K6Sfcy3_.cjs +1 -0
  25. package/components/{CashierPage-BbiDGdpa.js → CashierPage-qGww6KeO.js} +629 -476
  26. package/components/CashierReceiptPage-B5GxOKJ9.cjs +1 -0
  27. package/components/CashierReceiptPage-BePAYhQV.js +1451 -0
  28. package/components/CashierReceiptPage-Hvc3tNuq.js +1453 -0
  29. package/components/CashierSessionExpirationModal-BCKPn-ln.cjs +2 -0
  30. package/components/CashierSessionExpirationModal-C24hf-_h.js +1205 -0
  31. package/components/CashierSessionExpirationModal-DfMX7unr.js +1205 -0
  32. package/components/CashierSpinner-BdeNFm1c.js +79 -0
  33. package/components/CashierSpinner-COjPdCUV.js +79 -0
  34. package/components/CashierSpinner-CpkB8Zoj.cjs +1 -0
  35. package/components/CashierTransactionHistory-BgDq7hN9.js +614 -0
  36. package/components/CashierTransactionHistory-BtkomNSc.js +614 -0
  37. package/components/CashierTransactionHistory-siYwxijY.cjs +1 -0
  38. package/components/{CashierVerifications-8ZmmqlLE.js → CashierVerifications-7QimQj7T.js} +324 -277
  39. package/components/CashierVerifications-CjEiYZ7G.cjs +1 -0
  40. package/components/{CashierVerifications-DJ8j0wXs.js → CashierVerifications-tYl7M23B.js} +332 -285
  41. package/components/{CashierVideoModal-CVDvqrcy.js → CashierVideoModal-CM_ySf75.js} +91 -94
  42. package/components/CashierVideoModal-CZSRGjh-.cjs +1 -0
  43. package/components/{CashierVideoModal-DHNu0BQz.js → CashierVideoModal-D4tXmX3D.js} +91 -94
  44. package/es2015/cashier-page.cjs +1 -1
  45. package/es2015/cashier-page.js +1 -1
  46. package/esnext/cashier-page.js +1 -1
  47. package/package.json +1 -1
  48. package/stencil/app-globals-0f993ce5-BD-Q0C8R.cjs +1 -0
  49. package/stencil/app-globals-0f993ce5-Cgk0KVAu.js +7 -0
  50. package/stencil/index-b2193545-B8kMF2bI.cjs +1 -0
  51. package/stencil/index-b2193545-BoSqyMpB.js +519 -0
  52. package/stencil/index-b2193545-D4dOaNlR.js +503 -0
  53. package/stencil/{ui-image-C7s6Uvn5.js → ui-image-BWJXFWH1.js} +1 -1
  54. package/stencil/{ui-image-BaHsVAxH.cjs → ui-image-ByEXiBzx.cjs} +1 -1
  55. package/stencil/{ui-image-CHeV8e9p.js → ui-image-DIEeZy5u.js} +1 -1
  56. package/stencil/ui-skeleton-4-zrLsIW.js +11 -0
  57. package/stencil/ui-skeleton-9boHSjtG.js +29 -0
  58. package/stencil/ui-skeleton-_yJvAdAL.cjs +1 -0
  59. package/stencil/ui-skeleton-ae35c6f2-8tYGV8SR.js +155 -0
  60. package/stencil/ui-skeleton-ae35c6f2-CKgUXOQC.cjs +55 -0
  61. package/stencil/ui-skeleton-ae35c6f2-IN_dPA5_.js +155 -0
  62. package/components/CashierIframeRedirect-3Ttb1Wdk.js +0 -378
  63. package/components/CashierIframeRedirect-BIMJNSib.js +0 -378
  64. package/components/CashierIframeRedirect-NF0DKl7A.cjs +0 -1
  65. package/components/CashierMethodDetails-Cgu5TXSP.cjs +0 -84
  66. package/components/CashierMethodsList-Bd0awrSP.js +0 -864
  67. package/components/CashierMethodsList-D4ou6zMr.cjs +0 -1
  68. package/components/CashierModal-BrwIBn9a.js +0 -232
  69. package/components/CashierModal-BuM2Yq-y.cjs +0 -1
  70. package/components/CashierModal-ZfKvGxFq.js +0 -232
  71. package/components/CashierPage-eEO1eHcj.cjs +0 -1
  72. package/components/CashierReceiptPage--SlIuxeH.js +0 -1174
  73. package/components/CashierReceiptPage-Si7b2HWz.js +0 -1172
  74. package/components/CashierReceiptPage-dUPhckvS.cjs +0 -1
  75. package/components/CashierSessionExpirationModal-BmFSh_r0.js +0 -1208
  76. package/components/CashierSessionExpirationModal-CVnU7oKj.cjs +0 -2
  77. package/components/CashierSessionExpirationModal-QHzlcCYu.js +0 -1208
  78. package/components/CashierSpinner-BAfTKICK.js +0 -71
  79. package/components/CashierSpinner-BhmndmKG.cjs +0 -1
  80. package/components/CashierSpinner-y6HodxHT.js +0 -71
  81. package/components/CashierTransactionHistory-CBJrAtki.js +0 -569
  82. package/components/CashierTransactionHistory-DwYyVBtn.cjs +0 -1
  83. package/components/CashierTransactionHistory-LW9NA8-t.js +0 -569
  84. package/components/CashierVerifications-CYRbG7DV.cjs +0 -1
  85. package/components/CashierVideoModal-BZg_b6bd.cjs +0 -1
  86. package/stencil/app-globals-0f993ce5-D-kw1sls.js +0 -5
  87. package/stencil/app-globals-0f993ce5-sCt45RkC.cjs +0 -1
@@ -0,0 +1,614 @@
1
+ import { S as it, b as nt, s as at, f as M, c as lt, n as J, e as E, m as O, p as v, v as e, w as rt, F as ot, A as ct, K as V, L as ut, g as X, k as dt, t as ht, l as ft, y as W, o as r, q as L, z as j, D as q, V as mt, G as vt, W as gt, J as K, B as pt, N as k, E as yt } from "./CashierConfirmModal-BCk4hvRj.js";
2
+ import { f as Q } from "./CashierModal-B4b12-Am.js";
3
+ import { a as wt, $ as Tt, i as bt, b as _t } from "./CashierError-BydkW7s_.js";
4
+ import { d as xt } from "./CashierMethodDetails-oVkmdGDk.js";
5
+ import { s as kt, a as Ct, b as St } from "./CashierIframeRedirect-CmqcfGcT.js";
6
+ bt({
7
+ fallbackLocale: "en"
8
+ });
9
+ function Z(a, t) {
10
+ wt(a, t);
11
+ }
12
+ function Ht(a) {
13
+ Tt.set(a);
14
+ }
15
+ const $ = {
16
+ en: {
17
+ transactionHistoryTitle: "Transaction History",
18
+ transactionIdTitle: "ID",
19
+ transactionDateTitle: "Date",
20
+ transactionTypeTitle: "Type",
21
+ transactionStatusTitle: "Status",
22
+ copyTransactionId: "Transaction Id copied to clipboard",
23
+ transactionStatus: {
24
+ Authorized: "Authorized",
25
+ Success: "Success",
26
+ Failed: "Failed",
27
+ Rejected: "Rejected",
28
+ Pending: "Pending"
29
+ },
30
+ transactionType: {
31
+ Deposit: "Deposit",
32
+ Withdraw: "Withdraw"
33
+ }
34
+ },
35
+ tr: {
36
+ transactionHistoryTitle: "İşlem Geçmişi",
37
+ transactionIdTitle: "İşlem ID'si",
38
+ transactionDateTitle: "Tarih",
39
+ transactionTypeTitle: "Tip",
40
+ transactionStatusTitle: "Durum",
41
+ copyTransactionId: "İşlem ID’si kopyalandı",
42
+ transactionStatus: {
43
+ Authorized: "Onaylandı",
44
+ Success: "Başarılı",
45
+ Failed: "Başarısız",
46
+ Rejected: "Reddedildi",
47
+ Pending: "Beklemede"
48
+ },
49
+ transactionType: {
50
+ Deposit: "Para Yatır",
51
+ Withdraw: "Çekim"
52
+ }
53
+ }
54
+ };
55
+ function Dt(a) {
56
+ lt(a, "svelte-1cus01h", ".svelte-1cus01h.svelte-1cus01h,.svelte-1cus01h.svelte-1cus01h::before,.svelte-1cus01h.svelte-1cus01h::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-style:inherit}.CopyTooltip.svelte-1cus01h.svelte-1cus01h{width:50%;display:flex;align-items:center;justify-content:center;background-color:var(--emw--color-primary, #7EC51E);position:absolute;top:-6px;left:50%;transform:translateX(-50%);color:var(--emw--color-white, #FFF);border-radius:var(--mmw--border-radius-medium-plus, 6px);z-index:1;opacity:1;container-name:copy-tooltip;font-size:var(--emw--font-size-medium, 16px);line-height:calc(var(--emw--font-size-medium, 16px) + 2px);padding:4px}.CashierTransactionHistoryContainer.svelte-1cus01h.svelte-1cus01h{position:relative}.CashierTransactionHistory.svelte-1cus01h.svelte-1cus01h{display:flex;flex-direction:column;position:relative;width:100%;row-gap:var(--emw--spacing-small, 12px);container-name:transaction-history;container-type:inline-size;margin-bottom:var(--emw--spacing-small, 12px)}.CashierTransactionHistory.svelte-1cus01h table.svelte-1cus01h{font-size:var(--emw--font-size-medium, 16px);word-break:break-all;width:100%;border-collapse:collapse;box-sizing:border-box;overflow:hidden;text-overflow:ellipsis;margin-bottom:var(--emw--spacing-small-minus, 10px)}.CashierTransactionHistory.svelte-1cus01h table.svelte-1cus01h:not(:last-child){margin-bottom:var(--emw--spacing-large, 20px)}.CashierTransactionHistory.svelte-1cus01h thead tr.svelte-1cus01h{border-bottom:1px solid var(--mmw--color-grey-105, #E8E9EB);color:var(--mmw--color-grey-10, #111);height:50px}.CashierTransactionHistory.svelte-1cus01h tbody tr.svelte-1cus01h{color:var(--mmw--color-grey-290, #666)}.CashierTransactionHistory.svelte-1cus01h td.svelte-1cus01h{max-width:250px;vertical-align:middle;height:40px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:0 var(--emw--spacing-large, 20px) 0 var(--emw--spacing-small, 12px)}.CashierTransactionHistory.svelte-1cus01h td:last-child .CashierTransactionHistoryStatusText.svelte-1cus01h{width:calc(100% - var(--emw--spacing-2x-small-plus, 6px) * 3 - 5px);display:block}.CashierTransactionHistory.svelte-1cus01h tr.svelte-1cus01h{position:relative}@container transaction-history (width < 750px){.CashierTransactionHistory.svelte-1cus01h .CopyTooltip.svelte-1cus01h{width:100%}.CashierTransactionHistory.svelte-1cus01h .CashierTransactionId.svelte-1cus01h{max-width:135px}.CashierTransactionHistory.svelte-1cus01h td.svelte-1cus01h{padding:0 var(--emw--spacing-small, 12px) 0 var(--emw--spacing-small, 12px)}}@container transaction-history (width < 475px){.CashierTransactionHistory.svelte-1cus01h .CashierTransactionHistoryWrapper.svelte-1cus01h{padding:0 var(--emw--spacing-2x-small-plus, 6px)}.CashierTransactionHistory.svelte-1cus01h td.svelte-1cus01h{padding:0 var(--emw--spacing-2x-small-plus, 6px)}.CashierTransactionHistory.svelte-1cus01h td.svelte-1cus01h:first-child{max-width:60px}}@container transaction-history (width < 350px){.CashierTransactionHistory.svelte-1cus01h table.svelte-1cus01h{table-layout:fixed}.CashierTransactionHistory.svelte-1cus01h table td.svelte-1cus01h{padding:0 0 0 var(--emw--spacing-small, 5px)}}.CashierTransactionHistoryWrapper.svelte-1cus01h.svelte-1cus01h{background:var(--emw--color-background, #fff);box-shadow:0 0 4px var(--mmw--color-black-transparency-10, rgba(0, 0, 0, 0.1));border-radius:var(--mmw--border-radius-medium-plus, 6px);width:100%;box-sizing:border-box;padding:0 var(--emw--spacing-small, 12px)}.CashierTransactionHistoryTitle.svelte-1cus01h.svelte-1cus01h{color:var(--mmw--color-grey-10, #111);font-size:var(--emw--font-size-medium, 16px);font-weight:var(--emw--font-weight-normal, 400);line-height:calc(var(--emw--font-size-medium, 16px) + 2px);text-align:left}.CashierTransactionId.svelte-1cus01h.svelte-1cus01h{cursor:pointer;-webkit-user-select:none;-ms-user-select:none;user-select:none}.CashierTransactionId.svelte-1cus01h.svelte-1cus01h:hover{background-color:var(--emw--color-gray-50, #F7F8FA)}.CashierTransactionHistoryStatus.svelte-1cus01h.svelte-1cus01h{display:flex;gap:5px}.CashierTransactionHistoryStatusText.svelte-1cus01h.svelte-1cus01h{line-height:calc(var(--emw--font-size-medium, 16px) + 2px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.CashierTransactionHistoryContent.svelte-1cus01h.svelte-1cus01h{width:100%;overflow:hidden}.CashierTransactionHistoryIcon.svelte-1cus01h.svelte-1cus01h{vertical-align:middle;height:var(--emw--font-size-medium, 16px);width:var(--emw--font-size-medium, 16px)}");
57
+ }
58
+ function tt(a, t, s) {
59
+ const i = a.slice();
60
+ return i[27] = t[s], i;
61
+ }
62
+ function zt(a) {
63
+ let t;
64
+ return {
65
+ c() {
66
+ t = v("cashier-spinner"), q(
67
+ t,
68
+ "clientstylingurl",
69
+ /*clientstylingurl*/
70
+ a[1]
71
+ ), q(
72
+ t,
73
+ "clientstyling",
74
+ /*clientstyling*/
75
+ a[0]
76
+ ), q(t, "class", "svelte-1cus01h");
77
+ },
78
+ m(s, i) {
79
+ O(s, t, i);
80
+ },
81
+ p(s, i) {
82
+ i & /*clientstylingurl*/
83
+ 2 && q(
84
+ t,
85
+ "clientstylingurl",
86
+ /*clientstylingurl*/
87
+ s[1]
88
+ ), i & /*clientstyling*/
89
+ 1 && q(
90
+ t,
91
+ "clientstyling",
92
+ /*clientstyling*/
93
+ s[0]
94
+ );
95
+ },
96
+ d(s) {
97
+ s && E(t);
98
+ }
99
+ };
100
+ }
101
+ function It(a) {
102
+ let t, s, i, l = (
103
+ /*$_*/
104
+ a[8]("transactionHistoryTitle") + ""
105
+ ), o, c, f, T, C, S, w, z, I = (
106
+ /*$_*/
107
+ a[8]("transactionIdTitle") + ""
108
+ ), P, H, g, B = (
109
+ /*$_*/
110
+ a[8]("transactionDateTitle") + ""
111
+ ), A, x, R, F = (
112
+ /*$_*/
113
+ a[8]("transactionTypeTitle") + ""
114
+ ), U, Y, N, D = (
115
+ /*$_*/
116
+ a[8]("transactionStatusTitle") + ""
117
+ ), p, u, _, n = (
118
+ /*copied*/
119
+ a[5] && et(a)
120
+ ), d = V(
121
+ /*txnHistory*/
122
+ a[4]
123
+ ), m = [];
124
+ for (let h = 0; h < d.length; h += 1)
125
+ m[h] = st(tt(a, d, h));
126
+ return {
127
+ c() {
128
+ t = v("div"), n && n.c(), s = L(), i = v("h3"), o = j(l), c = L(), f = v("div"), T = v("div"), C = v("table"), S = v("thead"), w = v("tr"), z = v("td"), P = j(I), H = L(), g = v("td"), A = j(B), x = L(), R = v("td"), U = j(F), Y = L(), N = v("td"), p = j(D), u = L(), _ = v("tbody");
129
+ for (let h = 0; h < m.length; h += 1)
130
+ m[h].c();
131
+ e(i, "class", "CashierTransactionHistoryTitle svelte-1cus01h"), e(z, "class", "svelte-1cus01h"), e(g, "class", "svelte-1cus01h"), e(R, "class", "svelte-1cus01h"), e(N, "class", "svelte-1cus01h"), e(w, "class", "svelte-1cus01h"), e(S, "class", "svelte-1cus01h"), e(_, "class", "svelte-1cus01h"), e(C, "class", "svelte-1cus01h"), e(T, "class", "CashierTransactionHistoryContent svelte-1cus01h"), e(f, "class", "CashierTransactionHistoryWrapper svelte-1cus01h"), e(t, "class", "CashierTransactionHistory svelte-1cus01h");
132
+ },
133
+ m(h, y) {
134
+ O(h, t, y), n && n.m(t, null), r(t, s), r(t, i), r(i, o), r(t, c), r(t, f), r(f, T), r(T, C), r(C, S), r(S, w), r(w, z), r(z, P), r(w, H), r(w, g), r(g, A), r(w, x), r(w, R), r(R, U), r(w, Y), r(w, N), r(N, p), r(C, u), r(C, _);
135
+ for (let b = 0; b < m.length; b += 1)
136
+ m[b] && m[b].m(_, null);
137
+ a[18](t);
138
+ },
139
+ p(h, y) {
140
+ if (/*copied*/
141
+ h[5] ? n ? (n.p(h, y), y & /*copied*/
142
+ 32 && X(n, 1)) : (n = et(h), n.c(), X(n, 1), n.m(t, s)) : n && (dt(), ht(n, 1, 1, () => {
143
+ n = null;
144
+ }), ft()), y & /*$_*/
145
+ 256 && l !== (l = /*$_*/
146
+ h[8]("transactionHistoryTitle") + "") && W(o, l), y & /*$_*/
147
+ 256 && I !== (I = /*$_*/
148
+ h[8]("transactionIdTitle") + "") && W(P, I), y & /*$_*/
149
+ 256 && B !== (B = /*$_*/
150
+ h[8]("transactionDateTitle") + "") && W(A, B), y & /*$_*/
151
+ 256 && F !== (F = /*$_*/
152
+ h[8]("transactionTypeTitle") + "") && W(U, F), y & /*$_*/
153
+ 256 && D !== (D = /*$_*/
154
+ h[8]("transactionStatusTitle") + "") && W(p, D), y & /*$_, txnHistory, TransactionMainStatus, copied, copyToClipboard*/
155
+ 944) {
156
+ d = V(
157
+ /*txnHistory*/
158
+ h[4]
159
+ );
160
+ let b;
161
+ for (b = 0; b < d.length; b += 1) {
162
+ const G = tt(h, d, b);
163
+ m[b] ? m[b].p(G, y) : (m[b] = st(G), m[b].c(), m[b].m(_, null));
164
+ }
165
+ for (; b < m.length; b += 1)
166
+ m[b].d(1);
167
+ m.length = d.length;
168
+ }
169
+ },
170
+ d(h) {
171
+ h && E(t), n && n.d(), ut(m, h), a[18](null);
172
+ }
173
+ };
174
+ }
175
+ function et(a) {
176
+ let t, s = (
177
+ /*$_*/
178
+ a[8]("copyTransactionId") + ""
179
+ ), i, l, o, c;
180
+ return {
181
+ c() {
182
+ t = v("div"), i = j(s), e(t, "class", "CopyTooltip svelte-1cus01h");
183
+ },
184
+ m(f, T) {
185
+ O(f, t, T), r(t, i), c = !0;
186
+ },
187
+ p(f, T) {
188
+ a = f, (!c || T & /*$_*/
189
+ 256) && s !== (s = /*$_*/
190
+ a[8]("copyTransactionId") + "") && W(i, s);
191
+ },
192
+ i(f) {
193
+ c || (f && vt(() => {
194
+ c && (o && o.end(1), l = gt(t, Q, { duration: 100 }), l.start());
195
+ }), c = !0);
196
+ },
197
+ o(f) {
198
+ l && l.invalidate(), f && (o = mt(t, Q, { duration: (
199
+ /*tooltipduration*/
200
+ a[2]
201
+ ) })), c = !1;
202
+ },
203
+ d(f) {
204
+ f && E(t), f && o && o.end();
205
+ }
206
+ };
207
+ }
208
+ function At(a) {
209
+ let t, s, i;
210
+ return {
211
+ c() {
212
+ t = k("svg"), s = k("circle"), i = k("path"), e(s, "cx", "12"), e(s, "cy", "12"), e(s, "r", "10"), e(s, "stroke", "#25bf00"), e(s, "stroke-width", "2"), e(s, "class", "svelte-1cus01h"), e(i, "d", "M8 12L11 15L16 9"), e(i, "stroke", "#25bf00"), e(i, "stroke-width", "2"), e(i, "stroke-linecap", "round"), e(i, "stroke-linejoin", "round"), e(i, "class", "svelte-1cus01h"), e(t, "width", "18"), e(t, "height", "18"), e(t, "viewBox", "0 0 24 24"), e(t, "fill", "none"), e(t, "xmlns", "http://www.w3.org/2000/svg"), e(t, "class", "svelte-1cus01h");
213
+ },
214
+ m(l, o) {
215
+ O(l, t, o), r(t, s), r(t, i);
216
+ },
217
+ d(l) {
218
+ l && E(t);
219
+ }
220
+ };
221
+ }
222
+ function Ft(a) {
223
+ let t, s, i, l;
224
+ return {
225
+ c() {
226
+ t = k("svg"), s = k("circle"), i = k("text"), l = j("R"), e(s, "cx", "12"), e(s, "cy", "12"), e(s, "r", "10"), e(s, "stroke", "#dd6617d4"), e(s, "stroke-width", "2"), e(s, "class", "svelte-1cus01h"), e(i, "x", "50%"), e(i, "y", "54%"), e(i, "text-anchor", "middle"), e(i, "dominant-baseline", "middle"), e(i, "font-size", "14"), e(i, "font-weight", "bold"), e(i, "fill", "#dd6617d4"), e(i, "font-family", "Arial Rounded MT Bold, Arial, sans-serif"), e(i, "class", "svelte-1cus01h"), e(t, "width", "18"), e(t, "height", "18"), e(t, "viewBox", "0 0 24 24"), e(t, "fill", "none"), e(t, "xmlns", "http://www.w3.org/2000/svg"), e(t, "class", "svelte-1cus01h");
227
+ },
228
+ m(o, c) {
229
+ O(o, t, c), r(t, s), r(t, i), r(i, l);
230
+ },
231
+ d(o) {
232
+ o && E(t);
233
+ }
234
+ };
235
+ }
236
+ function jt(a) {
237
+ let t, s, i;
238
+ return {
239
+ c() {
240
+ t = k("svg"), s = k("circle"), i = k("path"), e(s, "cx", "12"), e(s, "cy", "12"), e(s, "r", "10"), e(s, "stroke", "#f0a85f"), e(s, "stroke-width", "2"), e(s, "class", "svelte-1cus01h"), e(i, "d", "M12 7V12L15 14"), e(i, "stroke", "#f0a85f"), e(i, "stroke-width", "2"), e(i, "stroke-linecap", "round"), e(i, "stroke-linejoin", "round"), e(i, "class", "svelte-1cus01h"), e(t, "width", "18"), e(t, "height", "18"), e(t, "viewBox", "0 0 24 24"), e(t, "fill", "none"), e(t, "xmlns", "http://www.w3.org/2000/svg"), e(t, "class", "svelte-1cus01h");
241
+ },
242
+ m(l, o) {
243
+ O(l, t, o), r(t, s), r(t, i);
244
+ },
245
+ d(l) {
246
+ l && E(t);
247
+ }
248
+ };
249
+ }
250
+ function Pt(a) {
251
+ let t, s, i;
252
+ return {
253
+ c() {
254
+ t = k("svg"), s = k("circle"), i = k("path"), e(s, "cx", "12"), e(s, "cy", "12"), e(s, "r", "10"), e(s, "stroke", "#e76049"), e(s, "stroke-width", "2"), e(s, "class", "svelte-1cus01h"), e(i, "d", "M9 9L15 15M15 9L9 15"), e(i, "stroke", "#e76049"), e(i, "stroke-width", "2"), e(i, "stroke-linecap", "round"), e(i, "stroke-linejoin", "round"), e(i, "class", "svelte-1cus01h"), e(t, "width", "18"), e(t, "height", "18"), e(t, "viewBox", "0 0 24 24"), e(t, "fill", "none"), e(t, "xmlns", "http://www.w3.org/2000/svg"), e(t, "class", "svelte-1cus01h");
255
+ },
256
+ m(l, o) {
257
+ O(l, t, o), r(t, s), r(t, i);
258
+ },
259
+ d(l) {
260
+ l && E(t);
261
+ }
262
+ };
263
+ }
264
+ function Rt(a) {
265
+ let t, s, i, l;
266
+ return {
267
+ c() {
268
+ t = k("svg"), s = k("circle"), i = k("text"), l = j("A"), e(s, "cx", "12"), e(s, "cy", "12"), e(s, "r", "10"), e(s, "stroke", "#32b398"), e(s, "stroke-width", "2"), e(s, "class", "svelte-1cus01h"), e(i, "x", "50%"), e(i, "y", "54%"), e(i, "text-anchor", "middle"), e(i, "dominant-baseline", "middle"), e(i, "font-size", "14"), e(i, "font-weight", "bold"), e(i, "fill", "#32b398"), e(i, "font-family", "Arial Rounded MT Bold, Arial, sans-serif"), e(i, "class", "svelte-1cus01h"), e(t, "width", "18"), e(t, "height", "18"), e(t, "viewBox", "0 0 24 24"), e(t, "fill", "none"), e(t, "xmlns", "http://www.w3.org/2000/svg"), e(t, "class", "svelte-1cus01h");
269
+ },
270
+ m(o, c) {
271
+ O(o, t, c), r(t, s), r(t, i), r(i, l);
272
+ },
273
+ d(o) {
274
+ o && E(t);
275
+ }
276
+ };
277
+ }
278
+ function st(a) {
279
+ let t, s, i = (
280
+ /*transaction*/
281
+ a[27].Code + ""
282
+ ), l, o, c, f = (
283
+ /*transaction*/
284
+ a[27].Date + ""
285
+ ), T, C, S, w = (
286
+ /*$_*/
287
+ a[8](`transactionType.${/*transaction*/
288
+ a[27].Type}`) + ""
289
+ ), z, I, P, H, g, B, A, x = (
290
+ /*$_*/
291
+ a[8](`transactionStatus.${/*transaction*/
292
+ a[27].Status}`) + ""
293
+ ), R, F, U, Y;
294
+ function N(u, _) {
295
+ if (
296
+ /*transaction*/
297
+ u[27].Status === /*TransactionMainStatus*/
298
+ u[7].Authorized
299
+ )
300
+ return Rt;
301
+ if (
302
+ /*transaction*/
303
+ u[27].Status === /*TransactionMainStatus*/
304
+ u[7].Failed
305
+ )
306
+ return Pt;
307
+ if (
308
+ /*transaction*/
309
+ u[27].Status === /*TransactionMainStatus*/
310
+ u[7].Pending
311
+ )
312
+ return jt;
313
+ if (
314
+ /*transaction*/
315
+ u[27].Status === /*TransactionMainStatus*/
316
+ u[7].Rejected
317
+ )
318
+ return Ft;
319
+ if (
320
+ /*transaction*/
321
+ u[27].Status === /*TransactionMainStatus*/
322
+ u[7].Success
323
+ )
324
+ return At;
325
+ }
326
+ let D = N(a), p = D && D(a);
327
+ return {
328
+ c() {
329
+ t = v("tr"), s = v("td"), l = j(i), o = L(), c = v("td"), T = j(f), C = L(), S = v("td"), z = j(w), I = L(), P = v("td"), H = v("div"), g = v("span"), p && p.c(), B = L(), A = v("span"), R = j(x), F = L(), e(s, "class", "CashierTransactionId svelte-1cus01h"), K(
330
+ s,
331
+ "copied",
332
+ /*copied*/
333
+ a[5]
334
+ ), e(c, "class", "svelte-1cus01h"), e(S, "class", "svelte-1cus01h"), e(g, "class", "CashierTransactionHistoryIcon svelte-1cus01h"), e(A, "class", "CashierTransactionHistoryStatusText svelte-1cus01h"), e(H, "class", "CashierTransactionHistoryStatus svelte-1cus01h"), e(P, "class", "svelte-1cus01h"), e(t, "class", "svelte-1cus01h");
335
+ },
336
+ m(u, _) {
337
+ O(u, t, _), r(t, s), r(s, l), r(t, o), r(t, c), r(c, T), r(t, C), r(t, S), r(S, z), r(t, I), r(t, P), r(P, H), r(H, g), p && p.m(g, null), r(H, B), r(H, A), r(A, R), r(t, F), U || (Y = pt(
338
+ s,
339
+ "mousedown",
340
+ /*mousedown_handler*/
341
+ a[17]
342
+ ), U = !0);
343
+ },
344
+ p(u, _) {
345
+ _ & /*txnHistory*/
346
+ 16 && i !== (i = /*transaction*/
347
+ u[27].Code + "") && W(l, i), _ & /*copied*/
348
+ 32 && K(
349
+ s,
350
+ "copied",
351
+ /*copied*/
352
+ u[5]
353
+ ), _ & /*txnHistory*/
354
+ 16 && f !== (f = /*transaction*/
355
+ u[27].Date + "") && W(T, f), _ & /*$_, txnHistory*/
356
+ 272 && w !== (w = /*$_*/
357
+ u[8](`transactionType.${/*transaction*/
358
+ u[27].Type}`) + "") && W(z, w), D !== (D = N(u)) && (p && p.d(1), p = D && D(u), p && (p.c(), p.m(g, null))), _ & /*$_, txnHistory*/
359
+ 272 && x !== (x = /*$_*/
360
+ u[8](`transactionStatus.${/*transaction*/
361
+ u[27].Status}`) + "") && W(R, x);
362
+ },
363
+ d(u) {
364
+ u && E(t), p && p.d(), U = !1, Y();
365
+ }
366
+ };
367
+ }
368
+ function Lt(a) {
369
+ let t;
370
+ function s(o, c) {
371
+ if (
372
+ /*txnHistory*/
373
+ o[4].length
374
+ )
375
+ return It;
376
+ if (
377
+ /*isLoading*/
378
+ o[6]
379
+ )
380
+ return zt;
381
+ }
382
+ let i = s(a), l = i && i(a);
383
+ return {
384
+ c() {
385
+ t = v("div"), l && l.c(), e(t, "class", "CashierTransactionHistoryContainer svelte-1cus01h");
386
+ },
387
+ m(o, c) {
388
+ O(o, t, c), l && l.m(t, null);
389
+ },
390
+ p(o, [c]) {
391
+ i === (i = s(o)) && l ? l.p(o, c) : (l && l.d(1), l = i && i(o), l && (l.c(), l.m(t, null)));
392
+ },
393
+ i: J,
394
+ o: J,
395
+ d(o) {
396
+ o && E(t), l && l.d();
397
+ }
398
+ };
399
+ }
400
+ const Bt = "DD.MM.YYYY";
401
+ function Mt(a, t, s) {
402
+ let i;
403
+ rt(a, _t, (n) => s(8, i = n));
404
+ let { endpoint: l } = t, { session: o } = t, { lang: c = "en" } = t, { customerid: f } = t, { clientstyling: T = "" } = t, { clientstylingurl: C = "" } = t, { translationurl: S } = t, { tooltipduration: w = 1e3 } = t, { txncount: z = 3 } = t, { mbsource: I = "" } = t, P = [], H = !1, g, B, A = !1;
405
+ var x;
406
+ (function(n) {
407
+ n.Deposit = "deposit", n.Withdraw = "withdraw", n.Refund = "refund", n.Unknown = "unknown", n.TaxDeduction = "taxDeduction";
408
+ })(x || (x = {}));
409
+ const R = [
410
+ "Authorized",
411
+ "Success",
412
+ "Failed",
413
+ "Rejected",
414
+ "PendingApprovalStage1",
415
+ "PendingApprovalStage2",
416
+ "PendingApprovalStage3",
417
+ "PendingNotification",
418
+ "PendingOfflineNotification",
419
+ "PendingConfirmation"
420
+ ];
421
+ var F;
422
+ (function(n) {
423
+ n.Authorized = "Authorized", n.Success = "Success", n.Failed = "Failed", n.Rejected = "Rejected", n.Pending = "Pending";
424
+ })(F || (F = {})), ot(() => () => {
425
+ });
426
+ const U = () => {
427
+ let n = S;
428
+ if (n)
429
+ return fetch(n).then((d) => d.json()).then((d) => {
430
+ Object.keys(d).forEach((m) => {
431
+ Z(m, d[m]);
432
+ });
433
+ }).catch((d) => {
434
+ console.log(d);
435
+ });
436
+ };
437
+ Object.keys($).forEach((n) => {
438
+ Z(n, $[n]);
439
+ });
440
+ const Y = () => {
441
+ Ht(c);
442
+ }, N = () => {
443
+ const n = new URL(`${l}/api/v1/mm/payment/gettransactionshistory`), d = new Headers();
444
+ d.append("accept", "application/json"), d.append("Content-Type", "application/json"), d.append("X-SessionId", `${o}`);
445
+ const m = new Date((/* @__PURE__ */ new Date()).setMonth((/* @__PURE__ */ new Date()).getMonth() - 3)).toISOString(), h = {
446
+ method: "POST",
447
+ mode: "cors",
448
+ headers: d,
449
+ body: JSON.stringify({
450
+ language: c,
451
+ customerId: f,
452
+ count: z,
453
+ page: 0,
454
+ fromDate: m,
455
+ toDate: null,
456
+ statuses: {
457
+ [x.Deposit]: R,
458
+ [x.Withdraw]: R,
459
+ [x.Refund]: ["Unknown"],
460
+ [x.TaxDeduction]: ["Unknown"],
461
+ [x.Unknown]: ["Unknown"]
462
+ },
463
+ calculateProfit: !1
464
+ })
465
+ };
466
+ s(6, A = !0), fetch(n, h).then((y) => y.json()).then((y) => {
467
+ s(4, P = D((y == null ? void 0 : y.items) || []));
468
+ }).catch((y) => console.log(y)).finally(() => s(6, A = !1));
469
+ }, D = (n) => n.map((d) => {
470
+ let m = d.generalFields.status;
471
+ return d.generalFields.status.toLowerCase().includes("pending") && (m = F.Pending), {
472
+ Code: d.generalFields.code,
473
+ Date: xt(d.generalFields.created).format(Bt),
474
+ Status: m,
475
+ Type: d.generalFields.type
476
+ };
477
+ }) || [], p = (n) => {
478
+ const d = n.currentTarget;
479
+ n.target === d && navigator.clipboard.writeText(d.innerText).then(() => {
480
+ s(5, H = !0), clearTimeout(B), B = setTimeout(
481
+ () => {
482
+ s(5, H = !1);
483
+ },
484
+ 2e3
485
+ );
486
+ }).catch((m) => {
487
+ console.error("Could not copy text: ", m);
488
+ });
489
+ }, u = (n) => p(n);
490
+ function _(n) {
491
+ ct[n ? "unshift" : "push"](() => {
492
+ g = n, s(3, g);
493
+ });
494
+ }
495
+ return a.$$set = (n) => {
496
+ "endpoint" in n && s(10, l = n.endpoint), "session" in n && s(11, o = n.session), "lang" in n && s(12, c = n.lang), "customerid" in n && s(13, f = n.customerid), "clientstyling" in n && s(0, T = n.clientstyling), "clientstylingurl" in n && s(1, C = n.clientstylingurl), "translationurl" in n && s(14, S = n.translationurl), "tooltipduration" in n && s(2, w = n.tooltipduration), "txncount" in n && s(15, z = n.txncount), "mbsource" in n && s(16, I = n.mbsource);
497
+ }, a.$$.update = () => {
498
+ a.$$.dirty & /*lang*/
499
+ 4096 && c && Y(), a.$$.dirty & /*clientstyling, customStylingContainer*/
500
+ 9 && T && g && kt(g, T), a.$$.dirty & /*clientstylingurl, customStylingContainer*/
501
+ 10 && C && g && Ct(g, C), a.$$.dirty & /*endpoint, session, customerid, lang*/
502
+ 15360 && l && o && f && c && N(), a.$$.dirty & /*translationurl*/
503
+ 16384 && S && U(), a.$$.dirty & /*mbsource, customStylingContainer*/
504
+ 65544 && I && g && St(g, `${I}.Style`);
505
+ }, [
506
+ T,
507
+ C,
508
+ w,
509
+ g,
510
+ P,
511
+ H,
512
+ A,
513
+ F,
514
+ i,
515
+ p,
516
+ l,
517
+ o,
518
+ c,
519
+ f,
520
+ S,
521
+ z,
522
+ I,
523
+ u,
524
+ _
525
+ ];
526
+ }
527
+ class Wt extends it {
528
+ constructor(t) {
529
+ super(), nt(
530
+ this,
531
+ t,
532
+ Mt,
533
+ Lt,
534
+ at,
535
+ {
536
+ endpoint: 10,
537
+ session: 11,
538
+ lang: 12,
539
+ customerid: 13,
540
+ clientstyling: 0,
541
+ clientstylingurl: 1,
542
+ translationurl: 14,
543
+ tooltipduration: 2,
544
+ txncount: 15,
545
+ mbsource: 16
546
+ },
547
+ Dt
548
+ );
549
+ }
550
+ get endpoint() {
551
+ return this.$$.ctx[10];
552
+ }
553
+ set endpoint(t) {
554
+ this.$$set({ endpoint: t }), M();
555
+ }
556
+ get session() {
557
+ return this.$$.ctx[11];
558
+ }
559
+ set session(t) {
560
+ this.$$set({ session: t }), M();
561
+ }
562
+ get lang() {
563
+ return this.$$.ctx[12];
564
+ }
565
+ set lang(t) {
566
+ this.$$set({ lang: t }), M();
567
+ }
568
+ get customerid() {
569
+ return this.$$.ctx[13];
570
+ }
571
+ set customerid(t) {
572
+ this.$$set({ customerid: t }), M();
573
+ }
574
+ get clientstyling() {
575
+ return this.$$.ctx[0];
576
+ }
577
+ set clientstyling(t) {
578
+ this.$$set({ clientstyling: t }), M();
579
+ }
580
+ get clientstylingurl() {
581
+ return this.$$.ctx[1];
582
+ }
583
+ set clientstylingurl(t) {
584
+ this.$$set({ clientstylingurl: t }), M();
585
+ }
586
+ get translationurl() {
587
+ return this.$$.ctx[14];
588
+ }
589
+ set translationurl(t) {
590
+ this.$$set({ translationurl: t }), M();
591
+ }
592
+ get tooltipduration() {
593
+ return this.$$.ctx[2];
594
+ }
595
+ set tooltipduration(t) {
596
+ this.$$set({ tooltipduration: t }), M();
597
+ }
598
+ get txncount() {
599
+ return this.$$.ctx[15];
600
+ }
601
+ set txncount(t) {
602
+ this.$$set({ txncount: t }), M();
603
+ }
604
+ get mbsource() {
605
+ return this.$$.ctx[16];
606
+ }
607
+ set mbsource(t) {
608
+ this.$$set({ mbsource: t }), M();
609
+ }
610
+ }
611
+ yt(Wt, { endpoint: {}, session: {}, lang: {}, customerid: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, tooltipduration: {}, txncount: {}, mbsource: {} }, [], [], !0);
612
+ export {
613
+ Wt as default
614
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CashierConfirmModal-DMmJumcl.cjs"),O=require("./CashierModal-C-yyjQ8m.cjs"),L=require("./CashierError-Dpt_Z7yL.cjs"),X=require("./CashierMethodDetails-Cf6KUGlj.cjs"),M=require("./CashierIframeRedirect-BARMuRTc.cjs");L.init({fallbackLocale:"en"});function E(i,e){L.addMessages(i,e)}function G(i){L.$locale.set(i)}const U={en:{transactionHistoryTitle:"Transaction History",transactionIdTitle:"ID",transactionDateTitle:"Date",transactionTypeTitle:"Type",transactionStatusTitle:"Status",copyTransactionId:"Transaction Id copied to clipboard",transactionStatus:{Authorized:"Authorized",Success:"Success",Failed:"Failed",Rejected:"Rejected",Pending:"Pending"},transactionType:{Deposit:"Deposit",Withdraw:"Withdraw"}},tr:{transactionHistoryTitle:"İşlem Geçmişi",transactionIdTitle:"İşlem ID'si",transactionDateTitle:"Tarih",transactionTypeTitle:"Tip",transactionStatusTitle:"Durum",copyTransactionId:"İşlem ID’si kopyalandı",transactionStatus:{Authorized:"Onaylandı",Success:"Başarılı",Failed:"Başarısız",Rejected:"Reddedildi",Pending:"Beklemede"},transactionType:{Deposit:"Para Yatır",Withdraw:"Çekim"}}};function J(i){t.append_styles(i,"svelte-1cus01h",".svelte-1cus01h.svelte-1cus01h,.svelte-1cus01h.svelte-1cus01h::before,.svelte-1cus01h.svelte-1cus01h::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-style:inherit}.CopyTooltip.svelte-1cus01h.svelte-1cus01h{width:50%;display:flex;align-items:center;justify-content:center;background-color:var(--emw--color-primary, #7EC51E);position:absolute;top:-6px;left:50%;transform:translateX(-50%);color:var(--emw--color-white, #FFF);border-radius:var(--mmw--border-radius-medium-plus, 6px);z-index:1;opacity:1;container-name:copy-tooltip;font-size:var(--emw--font-size-medium, 16px);line-height:calc(var(--emw--font-size-medium, 16px) + 2px);padding:4px}.CashierTransactionHistoryContainer.svelte-1cus01h.svelte-1cus01h{position:relative}.CashierTransactionHistory.svelte-1cus01h.svelte-1cus01h{display:flex;flex-direction:column;position:relative;width:100%;row-gap:var(--emw--spacing-small, 12px);container-name:transaction-history;container-type:inline-size;margin-bottom:var(--emw--spacing-small, 12px)}.CashierTransactionHistory.svelte-1cus01h table.svelte-1cus01h{font-size:var(--emw--font-size-medium, 16px);word-break:break-all;width:100%;border-collapse:collapse;box-sizing:border-box;overflow:hidden;text-overflow:ellipsis;margin-bottom:var(--emw--spacing-small-minus, 10px)}.CashierTransactionHistory.svelte-1cus01h table.svelte-1cus01h:not(:last-child){margin-bottom:var(--emw--spacing-large, 20px)}.CashierTransactionHistory.svelte-1cus01h thead tr.svelte-1cus01h{border-bottom:1px solid var(--mmw--color-grey-105, #E8E9EB);color:var(--mmw--color-grey-10, #111);height:50px}.CashierTransactionHistory.svelte-1cus01h tbody tr.svelte-1cus01h{color:var(--mmw--color-grey-290, #666)}.CashierTransactionHistory.svelte-1cus01h td.svelte-1cus01h{max-width:250px;vertical-align:middle;height:40px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:0 var(--emw--spacing-large, 20px) 0 var(--emw--spacing-small, 12px)}.CashierTransactionHistory.svelte-1cus01h td:last-child .CashierTransactionHistoryStatusText.svelte-1cus01h{width:calc(100% - var(--emw--spacing-2x-small-plus, 6px) * 3 - 5px);display:block}.CashierTransactionHistory.svelte-1cus01h tr.svelte-1cus01h{position:relative}@container transaction-history (width < 750px){.CashierTransactionHistory.svelte-1cus01h .CopyTooltip.svelte-1cus01h{width:100%}.CashierTransactionHistory.svelte-1cus01h .CashierTransactionId.svelte-1cus01h{max-width:135px}.CashierTransactionHistory.svelte-1cus01h td.svelte-1cus01h{padding:0 var(--emw--spacing-small, 12px) 0 var(--emw--spacing-small, 12px)}}@container transaction-history (width < 475px){.CashierTransactionHistory.svelte-1cus01h .CashierTransactionHistoryWrapper.svelte-1cus01h{padding:0 var(--emw--spacing-2x-small-plus, 6px)}.CashierTransactionHistory.svelte-1cus01h td.svelte-1cus01h{padding:0 var(--emw--spacing-2x-small-plus, 6px)}.CashierTransactionHistory.svelte-1cus01h td.svelte-1cus01h:first-child{max-width:60px}}@container transaction-history (width < 350px){.CashierTransactionHistory.svelte-1cus01h table.svelte-1cus01h{table-layout:fixed}.CashierTransactionHistory.svelte-1cus01h table td.svelte-1cus01h{padding:0 0 0 var(--emw--spacing-small, 5px)}}.CashierTransactionHistoryWrapper.svelte-1cus01h.svelte-1cus01h{background:var(--emw--color-background, #fff);box-shadow:0 0 4px var(--mmw--color-black-transparency-10, rgba(0, 0, 0, 0.1));border-radius:var(--mmw--border-radius-medium-plus, 6px);width:100%;box-sizing:border-box;padding:0 var(--emw--spacing-small, 12px)}.CashierTransactionHistoryTitle.svelte-1cus01h.svelte-1cus01h{color:var(--mmw--color-grey-10, #111);font-size:var(--emw--font-size-medium, 16px);font-weight:var(--emw--font-weight-normal, 400);line-height:calc(var(--emw--font-size-medium, 16px) + 2px);text-align:left}.CashierTransactionId.svelte-1cus01h.svelte-1cus01h{cursor:pointer;-webkit-user-select:none;-ms-user-select:none;user-select:none}.CashierTransactionId.svelte-1cus01h.svelte-1cus01h:hover{background-color:var(--emw--color-gray-50, #F7F8FA)}.CashierTransactionHistoryStatus.svelte-1cus01h.svelte-1cus01h{display:flex;gap:5px}.CashierTransactionHistoryStatusText.svelte-1cus01h.svelte-1cus01h{line-height:calc(var(--emw--font-size-medium, 16px) + 2px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.CashierTransactionHistoryContent.svelte-1cus01h.svelte-1cus01h{width:100%;overflow:hidden}.CashierTransactionHistoryIcon.svelte-1cus01h.svelte-1cus01h{vertical-align:middle;height:var(--emw--font-size-medium, 16px);width:var(--emw--font-size-medium, 16px)}")}function W(i,e,s){const a=i.slice();return a[27]=e[s],a}function V(i){let e;return{c(){e=t.element("cashier-spinner"),t.set_custom_element_data(e,"clientstylingurl",i[1]),t.set_custom_element_data(e,"clientstyling",i[0]),t.set_custom_element_data(e,"class","svelte-1cus01h")},m(s,a){t.insert(s,e,a)},p(s,a){a&2&&t.set_custom_element_data(e,"clientstylingurl",s[1]),a&1&&t.set_custom_element_data(e,"clientstyling",s[0])},d(s){s&&t.detach(e)}}}function K(i){let e,s,a,r=i[8]("transactionHistoryTitle")+"",l,o,h,y,b,x,g,S,H=i[8]("transactionIdTitle")+"",I,k,m,j=i[8]("transactionDateTitle")+"",D,T,A,z=i[8]("transactionTypeTitle")+"",F,R,P,C=i[8]("transactionStatusTitle")+"",f,c,w,n=i[5]&&q(i),d=t.ensure_array_like(i[4]),p=[];for(let u=0;u<d.length;u+=1)p[u]=N(W(i,d,u));return{c(){e=t.element("div"),n&&n.c(),s=t.space(),a=t.element("h3"),l=t.text(r),o=t.space(),h=t.element("div"),y=t.element("div"),b=t.element("table"),x=t.element("thead"),g=t.element("tr"),S=t.element("td"),I=t.text(H),k=t.space(),m=t.element("td"),D=t.text(j),T=t.space(),A=t.element("td"),F=t.text(z),R=t.space(),P=t.element("td"),f=t.text(C),c=t.space(),w=t.element("tbody");for(let u=0;u<p.length;u+=1)p[u].c();t.attr(a,"class","CashierTransactionHistoryTitle svelte-1cus01h"),t.attr(S,"class","svelte-1cus01h"),t.attr(m,"class","svelte-1cus01h"),t.attr(A,"class","svelte-1cus01h"),t.attr(P,"class","svelte-1cus01h"),t.attr(g,"class","svelte-1cus01h"),t.attr(x,"class","svelte-1cus01h"),t.attr(w,"class","svelte-1cus01h"),t.attr(b,"class","svelte-1cus01h"),t.attr(y,"class","CashierTransactionHistoryContent svelte-1cus01h"),t.attr(h,"class","CashierTransactionHistoryWrapper svelte-1cus01h"),t.attr(e,"class","CashierTransactionHistory svelte-1cus01h")},m(u,v){t.insert(u,e,v),n&&n.m(e,null),t.append(e,s),t.append(e,a),t.append(a,l),t.append(e,o),t.append(e,h),t.append(h,y),t.append(y,b),t.append(b,x),t.append(x,g),t.append(g,S),t.append(S,I),t.append(g,k),t.append(g,m),t.append(m,D),t.append(g,T),t.append(g,A),t.append(A,F),t.append(g,R),t.append(g,P),t.append(P,f),t.append(b,c),t.append(b,w);for(let _=0;_<p.length;_+=1)p[_]&&p[_].m(w,null);i[18](e)},p(u,v){if(u[5]?n?(n.p(u,v),v&32&&t.transition_in(n,1)):(n=q(u),n.c(),t.transition_in(n,1),n.m(e,s)):n&&(t.group_outros(),t.transition_out(n,1,1,()=>{n=null}),t.check_outros()),v&256&&r!==(r=u[8]("transactionHistoryTitle")+"")&&t.set_data(l,r),v&256&&H!==(H=u[8]("transactionIdTitle")+"")&&t.set_data(I,H),v&256&&j!==(j=u[8]("transactionDateTitle")+"")&&t.set_data(D,j),v&256&&z!==(z=u[8]("transactionTypeTitle")+"")&&t.set_data(F,z),v&256&&C!==(C=u[8]("transactionStatusTitle")+"")&&t.set_data(f,C),v&944){d=t.ensure_array_like(u[4]);let _;for(_=0;_<d.length;_+=1){const B=W(u,d,_);p[_]?p[_].p(B,v):(p[_]=N(B),p[_].c(),p[_].m(w,null))}for(;_<p.length;_+=1)p[_].d(1);p.length=d.length}},d(u){u&&t.detach(e),n&&n.d(),t.destroy_each(p,u),i[18](null)}}}function q(i){let e,s=i[8]("copyTransactionId")+"",a,r,l,o;return{c(){e=t.element("div"),a=t.text(s),t.attr(e,"class","CopyTooltip svelte-1cus01h")},m(h,y){t.insert(h,e,y),t.append(e,a),o=!0},p(h,y){i=h,(!o||y&256)&&s!==(s=i[8]("copyTransactionId")+"")&&t.set_data(a,s)},i(h){o||(h&&t.add_render_callback(()=>{o&&(l&&l.end(1),r=t.create_in_transition(e,O.fade,{duration:100}),r.start())}),o=!0)},o(h){r&&r.invalidate(),h&&(l=t.create_out_transition(e,O.fade,{duration:i[2]})),o=!1},d(h){h&&t.detach(e),h&&l&&l.end()}}}function Q(i){let e,s,a;return{c(){e=t.svg_element("svg"),s=t.svg_element("circle"),a=t.svg_element("path"),t.attr(s,"cx","12"),t.attr(s,"cy","12"),t.attr(s,"r","10"),t.attr(s,"stroke","#25bf00"),t.attr(s,"stroke-width","2"),t.attr(s,"class","svelte-1cus01h"),t.attr(a,"d","M8 12L11 15L16 9"),t.attr(a,"stroke","#25bf00"),t.attr(a,"stroke-width","2"),t.attr(a,"stroke-linecap","round"),t.attr(a,"stroke-linejoin","round"),t.attr(a,"class","svelte-1cus01h"),t.attr(e,"width","18"),t.attr(e,"height","18"),t.attr(e,"viewBox","0 0 24 24"),t.attr(e,"fill","none"),t.attr(e,"xmlns","http://www.w3.org/2000/svg"),t.attr(e,"class","svelte-1cus01h")},m(r,l){t.insert(r,e,l),t.append(e,s),t.append(e,a)},d(r){r&&t.detach(e)}}}function Z(i){let e,s,a,r;return{c(){e=t.svg_element("svg"),s=t.svg_element("circle"),a=t.svg_element("text"),r=t.text("R"),t.attr(s,"cx","12"),t.attr(s,"cy","12"),t.attr(s,"r","10"),t.attr(s,"stroke","#dd6617d4"),t.attr(s,"stroke-width","2"),t.attr(s,"class","svelte-1cus01h"),t.attr(a,"x","50%"),t.attr(a,"y","54%"),t.attr(a,"text-anchor","middle"),t.attr(a,"dominant-baseline","middle"),t.attr(a,"font-size","14"),t.attr(a,"font-weight","bold"),t.attr(a,"fill","#dd6617d4"),t.attr(a,"font-family","Arial Rounded MT Bold, Arial, sans-serif"),t.attr(a,"class","svelte-1cus01h"),t.attr(e,"width","18"),t.attr(e,"height","18"),t.attr(e,"viewBox","0 0 24 24"),t.attr(e,"fill","none"),t.attr(e,"xmlns","http://www.w3.org/2000/svg"),t.attr(e,"class","svelte-1cus01h")},m(l,o){t.insert(l,e,o),t.append(e,s),t.append(e,a),t.append(a,r)},d(l){l&&t.detach(e)}}}function $(i){let e,s,a;return{c(){e=t.svg_element("svg"),s=t.svg_element("circle"),a=t.svg_element("path"),t.attr(s,"cx","12"),t.attr(s,"cy","12"),t.attr(s,"r","10"),t.attr(s,"stroke","#f0a85f"),t.attr(s,"stroke-width","2"),t.attr(s,"class","svelte-1cus01h"),t.attr(a,"d","M12 7V12L15 14"),t.attr(a,"stroke","#f0a85f"),t.attr(a,"stroke-width","2"),t.attr(a,"stroke-linecap","round"),t.attr(a,"stroke-linejoin","round"),t.attr(a,"class","svelte-1cus01h"),t.attr(e,"width","18"),t.attr(e,"height","18"),t.attr(e,"viewBox","0 0 24 24"),t.attr(e,"fill","none"),t.attr(e,"xmlns","http://www.w3.org/2000/svg"),t.attr(e,"class","svelte-1cus01h")},m(r,l){t.insert(r,e,l),t.append(e,s),t.append(e,a)},d(r){r&&t.detach(e)}}}function tt(i){let e,s,a;return{c(){e=t.svg_element("svg"),s=t.svg_element("circle"),a=t.svg_element("path"),t.attr(s,"cx","12"),t.attr(s,"cy","12"),t.attr(s,"r","10"),t.attr(s,"stroke","#e76049"),t.attr(s,"stroke-width","2"),t.attr(s,"class","svelte-1cus01h"),t.attr(a,"d","M9 9L15 15M15 9L9 15"),t.attr(a,"stroke","#e76049"),t.attr(a,"stroke-width","2"),t.attr(a,"stroke-linecap","round"),t.attr(a,"stroke-linejoin","round"),t.attr(a,"class","svelte-1cus01h"),t.attr(e,"width","18"),t.attr(e,"height","18"),t.attr(e,"viewBox","0 0 24 24"),t.attr(e,"fill","none"),t.attr(e,"xmlns","http://www.w3.org/2000/svg"),t.attr(e,"class","svelte-1cus01h")},m(r,l){t.insert(r,e,l),t.append(e,s),t.append(e,a)},d(r){r&&t.detach(e)}}}function et(i){let e,s,a,r;return{c(){e=t.svg_element("svg"),s=t.svg_element("circle"),a=t.svg_element("text"),r=t.text("A"),t.attr(s,"cx","12"),t.attr(s,"cy","12"),t.attr(s,"r","10"),t.attr(s,"stroke","#32b398"),t.attr(s,"stroke-width","2"),t.attr(s,"class","svelte-1cus01h"),t.attr(a,"x","50%"),t.attr(a,"y","54%"),t.attr(a,"text-anchor","middle"),t.attr(a,"dominant-baseline","middle"),t.attr(a,"font-size","14"),t.attr(a,"font-weight","bold"),t.attr(a,"fill","#32b398"),t.attr(a,"font-family","Arial Rounded MT Bold, Arial, sans-serif"),t.attr(a,"class","svelte-1cus01h"),t.attr(e,"width","18"),t.attr(e,"height","18"),t.attr(e,"viewBox","0 0 24 24"),t.attr(e,"fill","none"),t.attr(e,"xmlns","http://www.w3.org/2000/svg"),t.attr(e,"class","svelte-1cus01h")},m(l,o){t.insert(l,e,o),t.append(e,s),t.append(e,a),t.append(a,r)},d(l){l&&t.detach(e)}}}function N(i){let e,s,a=i[27].Code+"",r,l,o,h=i[27].Date+"",y,b,x,g=i[8](`transactionType.${i[27].Type}`)+"",S,H,I,k,m,j,D,T=i[8](`transactionStatus.${i[27].Status}`)+"",A,z,F,R;function P(c,w){if(c[27].Status===c[7].Authorized)return et;if(c[27].Status===c[7].Failed)return tt;if(c[27].Status===c[7].Pending)return $;if(c[27].Status===c[7].Rejected)return Z;if(c[27].Status===c[7].Success)return Q}let C=P(i),f=C&&C(i);return{c(){e=t.element("tr"),s=t.element("td"),r=t.text(a),l=t.space(),o=t.element("td"),y=t.text(h),b=t.space(),x=t.element("td"),S=t.text(g),H=t.space(),I=t.element("td"),k=t.element("div"),m=t.element("span"),f&&f.c(),j=t.space(),D=t.element("span"),A=t.text(T),z=t.space(),t.attr(s,"class","CashierTransactionId svelte-1cus01h"),t.toggle_class(s,"copied",i[5]),t.attr(o,"class","svelte-1cus01h"),t.attr(x,"class","svelte-1cus01h"),t.attr(m,"class","CashierTransactionHistoryIcon svelte-1cus01h"),t.attr(D,"class","CashierTransactionHistoryStatusText svelte-1cus01h"),t.attr(k,"class","CashierTransactionHistoryStatus svelte-1cus01h"),t.attr(I,"class","svelte-1cus01h"),t.attr(e,"class","svelte-1cus01h")},m(c,w){t.insert(c,e,w),t.append(e,s),t.append(s,r),t.append(e,l),t.append(e,o),t.append(o,y),t.append(e,b),t.append(e,x),t.append(x,S),t.append(e,H),t.append(e,I),t.append(I,k),t.append(k,m),f&&f.m(m,null),t.append(k,j),t.append(k,D),t.append(D,A),t.append(e,z),F||(R=t.listen(s,"mousedown",i[17]),F=!0)},p(c,w){w&16&&a!==(a=c[27].Code+"")&&t.set_data(r,a),w&32&&t.toggle_class(s,"copied",c[5]),w&16&&h!==(h=c[27].Date+"")&&t.set_data(y,h),w&272&&g!==(g=c[8](`transactionType.${c[27].Type}`)+"")&&t.set_data(S,g),C!==(C=P(c))&&(f&&f.d(1),f=C&&C(c),f&&(f.c(),f.m(m,null))),w&272&&T!==(T=c[8](`transactionStatus.${c[27].Status}`)+"")&&t.set_data(A,T)},d(c){c&&t.detach(e),f&&f.d(),F=!1,R()}}}function st(i){let e;function s(l,o){if(l[4].length)return K;if(l[6])return V}let a=s(i),r=a&&a(i);return{c(){e=t.element("div"),r&&r.c(),t.attr(e,"class","CashierTransactionHistoryContainer svelte-1cus01h")},m(l,o){t.insert(l,e,o),r&&r.m(e,null)},p(l,[o]){a===(a=s(l))&&r?r.p(l,o):(r&&r.d(1),r=a&&a(l),r&&(r.c(),r.m(e,null)))},i:t.noop,o:t.noop,d(l){l&&t.detach(e),r&&r.d()}}}const at="DD.MM.YYYY";function nt(i,e,s){let a;t.component_subscribe(i,L.$format,n=>s(8,a=n));let{endpoint:r}=e,{session:l}=e,{lang:o="en"}=e,{customerid:h}=e,{clientstyling:y=""}=e,{clientstylingurl:b=""}=e,{translationurl:x}=e,{tooltipduration:g=1e3}=e,{txncount:S=3}=e,{mbsource:H=""}=e,I=[],k=!1,m,j,D=!1;var T;(function(n){n.Deposit="deposit",n.Withdraw="withdraw",n.Refund="refund",n.Unknown="unknown",n.TaxDeduction="taxDeduction"})(T||(T={}));const A=["Authorized","Success","Failed","Rejected","PendingApprovalStage1","PendingApprovalStage2","PendingApprovalStage3","PendingNotification","PendingOfflineNotification","PendingConfirmation"];var z;(function(n){n.Authorized="Authorized",n.Success="Success",n.Failed="Failed",n.Rejected="Rejected",n.Pending="Pending"})(z||(z={})),t.onMount(()=>()=>{});const F=()=>{let n=x;if(n)return fetch(n).then(d=>d.json()).then(d=>{Object.keys(d).forEach(p=>{E(p,d[p])})}).catch(d=>{console.log(d)})};Object.keys(U).forEach(n=>{E(n,U[n])});const R=()=>{G(o)},P=()=>{const n=new URL(`${r}/api/v1/mm/payment/gettransactionshistory`),d=new Headers;d.append("accept","application/json"),d.append("Content-Type","application/json"),d.append("X-SessionId",`${l}`);const p=new Date(new Date().setMonth(new Date().getMonth()-3)).toISOString(),u={method:"POST",mode:"cors",headers:d,body:JSON.stringify({language:o,customerId:h,count:S,page:0,fromDate:p,toDate:null,statuses:{[T.Deposit]:A,[T.Withdraw]:A,[T.Refund]:["Unknown"],[T.TaxDeduction]:["Unknown"],[T.Unknown]:["Unknown"]},calculateProfit:!1})};s(6,D=!0),fetch(n,u).then(v=>v.json()).then(v=>{s(4,I=C((v==null?void 0:v.items)||[]))}).catch(v=>console.log(v)).finally(()=>s(6,D=!1))},C=n=>n.map(d=>{let p=d.generalFields.status;return d.generalFields.status.toLowerCase().includes("pending")&&(p=z.Pending),{Code:d.generalFields.code,Date:X.dayjs(d.generalFields.created).format(at),Status:p,Type:d.generalFields.type}})||[],f=n=>{const d=n.currentTarget;n.target===d&&navigator.clipboard.writeText(d.innerText).then(()=>{s(5,k=!0),clearTimeout(j),j=setTimeout(()=>{s(5,k=!1)},2e3)}).catch(p=>{console.error("Could not copy text: ",p)})},c=n=>f(n);function w(n){t.binding_callbacks[n?"unshift":"push"](()=>{m=n,s(3,m)})}return i.$$set=n=>{"endpoint"in n&&s(10,r=n.endpoint),"session"in n&&s(11,l=n.session),"lang"in n&&s(12,o=n.lang),"customerid"in n&&s(13,h=n.customerid),"clientstyling"in n&&s(0,y=n.clientstyling),"clientstylingurl"in n&&s(1,b=n.clientstylingurl),"translationurl"in n&&s(14,x=n.translationurl),"tooltipduration"in n&&s(2,g=n.tooltipduration),"txncount"in n&&s(15,S=n.txncount),"mbsource"in n&&s(16,H=n.mbsource)},i.$$.update=()=>{i.$$.dirty&4096&&o&&R(),i.$$.dirty&9&&y&&m&&M.setClientStyling(m,y),i.$$.dirty&10&&b&&m&&M.setClientStylingURL(m,b),i.$$.dirty&15360&&r&&l&&h&&o&&P(),i.$$.dirty&16384&&x&&F(),i.$$.dirty&65544&&H&&m&&M.setStreamStyling(m,`${H}.Style`)},[y,b,g,m,I,k,D,z,a,f,r,l,o,h,x,S,H,c,w]}class Y extends t.SvelteComponent{constructor(e){super(),t.init(this,e,nt,st,t.safe_not_equal,{endpoint:10,session:11,lang:12,customerid:13,clientstyling:0,clientstylingurl:1,translationurl:14,tooltipduration:2,txncount:15,mbsource:16},J)}get endpoint(){return this.$$.ctx[10]}set endpoint(e){this.$$set({endpoint:e}),t.flush()}get session(){return this.$$.ctx[11]}set session(e){this.$$set({session:e}),t.flush()}get lang(){return this.$$.ctx[12]}set lang(e){this.$$set({lang:e}),t.flush()}get customerid(){return this.$$.ctx[13]}set customerid(e){this.$$set({customerid:e}),t.flush()}get clientstyling(){return this.$$.ctx[0]}set clientstyling(e){this.$$set({clientstyling:e}),t.flush()}get clientstylingurl(){return this.$$.ctx[1]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),t.flush()}get translationurl(){return this.$$.ctx[14]}set translationurl(e){this.$$set({translationurl:e}),t.flush()}get tooltipduration(){return this.$$.ctx[2]}set tooltipduration(e){this.$$set({tooltipduration:e}),t.flush()}get txncount(){return this.$$.ctx[15]}set txncount(e){this.$$set({txncount:e}),t.flush()}get mbsource(){return this.$$.ctx[16]}set mbsource(e){this.$$set({mbsource:e}),t.flush()}}t.create_custom_element(Y,{endpoint:{},session:{},lang:{},customerid:{},clientstyling:{},clientstylingurl:{},translationurl:{},tooltipduration:{},txncount:{},mbsource:{}},[],[],!0);exports.default=Y;