@everymatrix/cashier-page 1.63.3 → 1.64.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (73) hide show
  1. package/components/{CashierConfirmModal-sI8AKckC.js → CashierConfirmModal-4RYp7Eiq.js} +285 -304
  2. package/components/CashierConfirmModal-DMmJumcl.cjs +4 -0
  3. package/components/{CashierConfirmModal-D-5CwHBA.js → CashierConfirmModal-untxGhsx.js} +152 -171
  4. package/components/{CashierError-CUod7-ig.cjs → CashierError-BD3PpAT9.cjs} +3 -3
  5. package/components/{CashierError-mLjt_U41.js → CashierError-DHzuwwQu.js} +4 -3
  6. package/components/{CashierError-DrQLUOYB.js → CashierError-bKWdh6zs.js} +4 -3
  7. package/components/{CashierHeader-D6JTVmBy.js → CashierHeader-BDMjFf0S.js} +2 -2
  8. package/components/{CashierHeader-B-Q5sdw7.js → CashierHeader-C85_EOkn.js} +2 -2
  9. package/components/{CashierHeader-BwHhdI8N.cjs → CashierHeader-DUIiJ1ma.cjs} +1 -1
  10. package/components/{CashierIframeRedirect-BMScL4rh.js → CashierIframeRedirect-BZxYVcmF.js} +4 -4
  11. package/components/{CashierIframeRedirect-BH9XbZew.cjs → CashierIframeRedirect-C3fjCJfm.cjs} +1 -1
  12. package/components/{CashierIframeRedirect-CrbpGCc9.js → CashierIframeRedirect-CptFS2B0.js} +4 -4
  13. package/components/{CashierMethodDetails-X3KT7cWC.js → CashierMethodDetails-B8ZN94ja.js} +2548 -2559
  14. package/components/{CashierMethodDetails-2SiPbLzb.js → CashierMethodDetails-L1ZnAwA1.js} +2015 -1998
  15. package/components/CashierMethodDetails-lGOSlmya.cjs +18 -0
  16. package/components/CashierMethodsList-BCoCVos6.js +828 -0
  17. package/components/CashierMethodsList-D64LZdeg.js +839 -0
  18. package/components/CashierMethodsList-RM_bnbLo.cjs +1 -0
  19. package/components/{CashierModal-BoglqxPv.js → CashierModal-BrwIBn9a.js} +14 -14
  20. package/components/{CashierModal-BhCdxWcE.cjs → CashierModal-BuM2Yq-y.cjs} +1 -1
  21. package/components/{CashierModal-6CTryAQJ.js → CashierModal-ZfKvGxFq.js} +11 -11
  22. package/components/{CashierNotifications-BVAanyOB.cjs → CashierNotifications-BLJS7gpv.cjs} +1 -1
  23. package/components/{CashierNotifications-GwlCZVnm.js → CashierNotifications-C48iLynX.js} +1 -1
  24. package/components/{CashierNotifications-BFj3fQud.js → CashierNotifications-dn6rnyK_.js} +1 -1
  25. package/components/{CashierPage-sf6cNlqg.js → CashierPage-Bj8llrth.js} +1079 -1062
  26. package/components/{CashierPage-DZs9mSQS.js → CashierPage-CcgSS147.js} +1079 -1062
  27. package/components/CashierPage-ifqNQt6v.cjs +1 -0
  28. package/components/{CashierReceiptPage-CfRPN1Ni.cjs → CashierReceiptPage-BO4QXf-M.cjs} +1 -1
  29. package/components/{CashierReceiptPage-Cm0bscLV.js → CashierReceiptPage-BPED3qt4.js} +21 -27
  30. package/components/{CashierReceiptPage-BVVSIFXK.js → CashierReceiptPage-otjaMyRe.js} +21 -27
  31. package/components/{CashierSessionExpirationModal-BU1hZvHt.js → CashierSessionExpirationModal-BQFyVDBj.js} +430 -428
  32. package/components/CashierSessionExpirationModal-Ckg5tH-9.cjs +2 -0
  33. package/components/{CashierSessionExpirationModal-BQkwGqbw.js → CashierSessionExpirationModal-DAWM1xQ6.js} +452 -450
  34. package/components/{CashierSpinner-DO1yLcR1.js → CashierSpinner-C-ubAde7.js} +1 -1
  35. package/components/{CashierSpinner-H763izjz.cjs → CashierSpinner-D-uP0nCc.cjs} +1 -1
  36. package/components/{CashierSpinner-bxbp3WK6.js → CashierSpinner-tLPMJx6q.js} +1 -1
  37. package/components/CashierTransactionHistory-BUnmELzi.cjs +1 -0
  38. package/components/CashierTransactionHistory-CgSa7FBJ.js +569 -0
  39. package/components/CashierTransactionHistory-ZnWiNl-5.js +569 -0
  40. package/components/{CashierVerifications-7ZfhnBbV.cjs → CashierVerifications-4hUquQj9.cjs} +1 -1
  41. package/components/{CashierVerifications-DG93RP3Z.js → CashierVerifications-BL3E_m40.js} +191 -194
  42. package/components/{CashierVerifications-D2vkB0vK.js → CashierVerifications-Ckv8ml82.js} +208 -211
  43. package/components/CashierVideoModal-BZg_b6bd.cjs +1 -0
  44. package/components/{CashierVideoModal-CVEk7pqo.js → CashierVideoModal-CVDvqrcy.js} +17 -17
  45. package/components/{CashierVideoModal-BGKXfmt9.js → CashierVideoModal-DHNu0BQz.js} +17 -17
  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/stencil/{index-97d17652-DYdohc-6.js → index-97d17652-BEnqZAxL.js} +1 -1
  51. package/stencil/{index-97d17652-_wmLv9aI.cjs → index-97d17652-D5_8Vwfn.cjs} +1 -1
  52. package/stencil/{index-97d17652-__SOROv4.js → index-97d17652-WK_DbPS4.js} +1 -1
  53. package/stencil/{ui-image-DOq1UP31.cjs → ui-image-CMb1eK44.cjs} +1 -1
  54. package/stencil/{ui-image-BKZJyaUM.js → ui-image-CQQDA5b0.js} +1 -1
  55. package/stencil/{ui-image-DQIj0E8g.js → ui-image-CmwNU-jf.js} +1 -1
  56. package/stencil/{ui-image-d1314fef-CQsVQg0l.js → ui-image-b7b48fe5-Cf9Vq5pI.js} +6 -6
  57. package/stencil/ui-image-b7b48fe5-DCck2kk1.cjs +1 -0
  58. package/stencil/{ui-image-d1314fef-Juydh_ii.js → ui-image-b7b48fe5-V9vp4faA.js} +6 -6
  59. package/stencil/{ui-image_2-OR-2QD6I.js → ui-image_2-B56t6kXT.js} +2 -2
  60. package/stencil/{ui-image_2-BK3m47_O.js → ui-image_2-BncuYpLi.js} +2 -2
  61. package/stencil/{ui-image_2-DbIvpcwA.cjs → ui-image_2-YkYxLKu7.cjs} +1 -1
  62. package/components/CashierConfirmModal-BVT51ZOp.cjs +0 -4
  63. package/components/CashierMethodDetails-CZeqzZSi.cjs +0 -18
  64. package/components/CashierMethodsList-2XF73uwg.js +0 -749
  65. package/components/CashierMethodsList-COdiQOQ1.js +0 -760
  66. package/components/CashierMethodsList-lWWH-zmC.cjs +0 -1
  67. package/components/CashierPage--NwdnI0G.cjs +0 -1
  68. package/components/CashierSessionExpirationModal-Dojqx8Br.cjs +0 -2
  69. package/components/CashierTransactionHistory-BQ89x6WQ.js +0 -569
  70. package/components/CashierTransactionHistory-Bbly-EiQ.js +0 -569
  71. package/components/CashierTransactionHistory-pxuvJ-lN.cjs +0 -1
  72. package/components/CashierVideoModal-CjR0Fzuu.cjs +0 -1
  73. package/stencil/ui-image-d1314fef-Dwwl-kWw.cjs +0 -1
@@ -1,569 +0,0 @@
1
- import { S as it, b as nt, s as at, f as U, c as lt, n as X, e as W, m as N, x as ot, w as rt, K as J, L as ct, g as G, k as dt, t as ft, l as ut, y as B, o as l, p as m, q as j, z as I, v as e, A as wt, W as ht, F as mt, X as vt, J as K, B as pt, N as b, E as gt } from "./CashierConfirmModal-sI8AKckC.js";
2
- import { f as V } from "./CashierModal-6CTryAQJ.js";
3
- import { a as yt, $ as Tt, i as _t, b as bt } from "./CashierError-DrQLUOYB.js";
4
- import { d as xt } from "./CashierMethodDetails-X3KT7cWC.js";
5
- _t({
6
- fallbackLocale: "en"
7
- });
8
- function Q(a, t) {
9
- yt(a, t);
10
- }
11
- function kt(a) {
12
- Tt.set(a);
13
- }
14
- const Z = {
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: "İşlem Geçmişi",
36
- transactionIdTitle: "İşlem ID'si",
37
- transactionDateTitle: "Tarih",
38
- transactionTypeTitle: "Tip",
39
- transactionStatusTitle: "Durum",
40
- copyTransactionId: "İşlem ID’si kopyalandı",
41
- transactionStatus: {
42
- Authorized: "Onaylandı",
43
- Success: "Başarılı",
44
- Failed: "Başarısız",
45
- Rejected: "Reddedildi",
46
- Pending: "Beklemede"
47
- },
48
- transactionType: {
49
- Deposit: "Para Yatır",
50
- Withdraw: "Çekim"
51
- }
52
- }
53
- };
54
- function Ct(a, t) {
55
- if (a) {
56
- const s = document.createElement("style");
57
- s.innerHTML = t, a.appendChild(s);
58
- }
59
- }
60
- function St(a, t) {
61
- const s = new URL(t);
62
- fetch(s.href).then((i) => i.text()).then((i) => {
63
- const o = document.createElement("style");
64
- o.innerHTML = i, a && a.appendChild(o);
65
- }).catch((i) => {
66
- console.error("There was an error while trying to load client styling from URL", i);
67
- });
68
- }
69
- function Ht(a) {
70
- lt(a, "svelte-40f46w", ".svelte-40f46w.svelte-40f46w,.svelte-40f46w.svelte-40f46w::before,.svelte-40f46w.svelte-40f46w::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-style:inherit}.CopyTooltip.svelte-40f46w.svelte-40f46w{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}.CashierTransactionHistory.svelte-40f46w.svelte-40f46w{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-40f46w table.svelte-40f46w{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-40f46w table.svelte-40f46w:not(:last-child){margin-bottom:var(--emw--spacing-large, 20px)}.CashierTransactionHistory.svelte-40f46w thead tr.svelte-40f46w{border-bottom:1px solid var(--mmw--color-grey-105, #E8E9EB);color:var(--mmw--color-grey-10, #111);height:50px}.CashierTransactionHistory.svelte-40f46w tbody tr.svelte-40f46w{color:var(--mmw--color-grey-290, #666)}.CashierTransactionHistory.svelte-40f46w td.svelte-40f46w{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-40f46w tr.svelte-40f46w{position:relative}@container transaction-history (width < 750px){.CashierTransactionHistory.svelte-40f46w .CopyTooltip.svelte-40f46w{width:100%}.CashierTransactionHistory.svelte-40f46w .CashierTransactionId.svelte-40f46w{max-width:150px}.CashierTransactionHistory.svelte-40f46w td.svelte-40f46w{padding:0 var(--emw--spacing-small, 12px) 0 var(--emw--spacing-small, 12px)}}@container transaction-history (width < 475px){.CashierTransactionHistory.svelte-40f46w .CashierTransactionHistoryWrapper.svelte-40f46w{padding:0 var(--emw--spacing-2x-small-plus, 6px)}.CashierTransactionHistory.svelte-40f46w td.svelte-40f46w{padding:0 var(--emw--spacing-2x-small-plus, 6px)}.CashierTransactionHistory.svelte-40f46w td.svelte-40f46w:first-child{max-width:75px}}@container transaction-history (width < 350px){.CashierTransactionHistory.svelte-40f46w table.svelte-40f46w{table-layout:fixed}.CashierTransactionHistory.svelte-40f46w table td.svelte-40f46w{padding:0 0 0 var(--emw--spacing-small, 5px)}}.CashierTransactionHistoryWrapper.svelte-40f46w.svelte-40f46w{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-40f46w.svelte-40f46w{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-40f46w.svelte-40f46w{cursor:pointer;-webkit-user-select:none;-ms-user-select:none;user-select:none}.CashierTransactionId.svelte-40f46w.svelte-40f46w:hover{background-color:var(--emw--color-gray-50, #F7F8FA)}.CashierTransactionHistoryStatus.svelte-40f46w.svelte-40f46w{display:flex;gap:5px}.CashierTransactionHistoryStatusText.svelte-40f46w.svelte-40f46w{line-height:calc(var(--emw--font-size-medium, 16px) + 2px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.CashierTransactionHistoryContent.svelte-40f46w.svelte-40f46w{width:100%}.CashierTransactionHistoryIcon.svelte-40f46w.svelte-40f46w{vertical-align:middle;height:var(--emw--font-size-medium, 16px);width:var(--emw--font-size-medium, 16px)}");
71
- }
72
- function $(a, t, s) {
73
- const i = a.slice();
74
- return i[24] = t[s], i[26] = s, i;
75
- }
76
- function tt(a) {
77
- let t, s, i, o = (
78
- /*$_*/
79
- a[5]("transactionHistoryTitle") + ""
80
- ), c, f, u, g, x, k, v, H, L = (
81
- /*$_*/
82
- a[5]("transactionIdTitle") + ""
83
- ), z, y, C, _ = (
84
- /*$_*/
85
- a[5]("transactionDateTitle") + ""
86
- ), A, D, R, M = (
87
- /*$_*/
88
- a[5]("transactionTypeTitle") + ""
89
- ), E, Y, P, S = (
90
- /*$_*/
91
- a[5]("transactionStatusTitle") + ""
92
- ), p, n, r, d = (
93
- /*copied*/
94
- a[3] && et(a)
95
- ), O = J(
96
- /*txnHistory*/
97
- a[2]
98
- ), h = [];
99
- for (let w = 0; w < O.length; w += 1)
100
- h[w] = st($(a, O, w));
101
- return {
102
- c() {
103
- t = m("div"), d && d.c(), s = j(), i = m("h3"), c = I(o), f = j(), u = m("div"), g = m("div"), x = m("table"), k = m("thead"), v = m("tr"), H = m("td"), z = I(L), y = j(), C = m("td"), A = I(_), D = j(), R = m("td"), E = I(M), Y = j(), P = m("td"), p = I(S), n = j(), r = m("tbody");
104
- for (let w = 0; w < h.length; w += 1)
105
- h[w].c();
106
- e(i, "class", "CashierTransactionHistoryTitle svelte-40f46w"), e(H, "class", "svelte-40f46w"), e(C, "class", "svelte-40f46w"), e(R, "class", "svelte-40f46w"), e(P, "class", "svelte-40f46w"), e(v, "class", "svelte-40f46w"), e(k, "class", "svelte-40f46w"), e(r, "class", "svelte-40f46w"), e(x, "class", "svelte-40f46w"), e(g, "class", "CashierTransactionHistoryContent svelte-40f46w"), e(u, "class", "CashierTransactionHistoryWrapper svelte-40f46w"), e(t, "class", "CashierTransactionHistory svelte-40f46w");
107
- },
108
- m(w, F) {
109
- N(w, t, F), d && d.m(t, null), l(t, s), l(t, i), l(i, c), l(t, f), l(t, u), l(u, g), l(g, x), l(x, k), l(k, v), l(v, H), l(H, z), l(v, y), l(v, C), l(C, A), l(v, D), l(v, R), l(R, E), l(v, Y), l(v, P), l(P, p), l(x, n), l(x, r);
110
- for (let T = 0; T < h.length; T += 1)
111
- h[T] && h[T].m(r, null);
112
- a[16](t);
113
- },
114
- p(w, F) {
115
- if (/*copied*/
116
- w[3] ? d ? (d.p(w, F), F & /*copied*/
117
- 8 && G(d, 1)) : (d = et(w), d.c(), G(d, 1), d.m(t, s)) : d && (dt(), ft(d, 1, 1, () => {
118
- d = null;
119
- }), ut()), F & /*$_*/
120
- 32 && o !== (o = /*$_*/
121
- w[5]("transactionHistoryTitle") + "") && B(c, o), F & /*$_*/
122
- 32 && L !== (L = /*$_*/
123
- w[5]("transactionIdTitle") + "") && B(z, L), F & /*$_*/
124
- 32 && _ !== (_ = /*$_*/
125
- w[5]("transactionDateTitle") + "") && B(A, _), F & /*$_*/
126
- 32 && M !== (M = /*$_*/
127
- w[5]("transactionTypeTitle") + "") && B(E, M), F & /*$_*/
128
- 32 && S !== (S = /*$_*/
129
- w[5]("transactionStatusTitle") + "") && B(p, S), F & /*$_, txnHistory, TransactionMainStatus, copied, copyToClipboard*/
130
- 124) {
131
- O = J(
132
- /*txnHistory*/
133
- w[2]
134
- );
135
- let T;
136
- for (T = 0; T < O.length; T += 1) {
137
- const q = $(w, O, T);
138
- h[T] ? h[T].p(q, F) : (h[T] = st(q), h[T].c(), h[T].m(r, null));
139
- }
140
- for (; T < h.length; T += 1)
141
- h[T].d(1);
142
- h.length = O.length;
143
- }
144
- },
145
- d(w) {
146
- w && W(t), d && d.d(), ct(h, w), a[16](null);
147
- }
148
- };
149
- }
150
- function et(a) {
151
- let t, s = (
152
- /*$_*/
153
- a[5]("copyTransactionId") + ""
154
- ), i, o, c, f;
155
- return {
156
- c() {
157
- t = m("div"), i = I(s), e(t, "class", "CopyTooltip svelte-40f46w");
158
- },
159
- m(u, g) {
160
- N(u, t, g), l(t, i), f = !0;
161
- },
162
- p(u, g) {
163
- a = u, (!f || g & /*$_*/
164
- 32) && s !== (s = /*$_*/
165
- a[5]("copyTransactionId") + "") && B(i, s);
166
- },
167
- i(u) {
168
- f || (u && mt(() => {
169
- f && (c && c.end(1), o = vt(t, V, { duration: 100 }), o.start());
170
- }), f = !0);
171
- },
172
- o(u) {
173
- o && o.invalidate(), u && (c = ht(t, V, { duration: (
174
- /*tooltipduration*/
175
- a[0]
176
- ) })), f = !1;
177
- },
178
- d(u) {
179
- u && W(t), u && c && c.end();
180
- }
181
- };
182
- }
183
- function zt(a) {
184
- let t, s, i;
185
- return {
186
- c() {
187
- t = b("svg"), s = b("circle"), i = b("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-40f46w"), 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-40f46w"), 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-40f46w");
188
- },
189
- m(o, c) {
190
- N(o, t, c), l(t, s), l(t, i);
191
- },
192
- d(o) {
193
- o && W(t);
194
- }
195
- };
196
- }
197
- function Dt(a) {
198
- let t, s, i, o;
199
- return {
200
- c() {
201
- t = b("svg"), s = b("circle"), i = b("text"), o = I("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-40f46w"), 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-40f46w"), 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-40f46w");
202
- },
203
- m(c, f) {
204
- N(c, t, f), l(t, s), l(t, i), l(i, o);
205
- },
206
- d(c) {
207
- c && W(t);
208
- }
209
- };
210
- }
211
- function It(a) {
212
- let t, s, i;
213
- return {
214
- c() {
215
- t = b("svg"), s = b("circle"), i = b("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-40f46w"), 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-40f46w"), 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-40f46w");
216
- },
217
- m(o, c) {
218
- N(o, t, c), l(t, s), l(t, i);
219
- },
220
- d(o) {
221
- o && W(t);
222
- }
223
- };
224
- }
225
- function At(a) {
226
- let t, s, i;
227
- return {
228
- c() {
229
- t = b("svg"), s = b("circle"), i = b("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-40f46w"), 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-40f46w"), 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-40f46w");
230
- },
231
- m(o, c) {
232
- N(o, t, c), l(t, s), l(t, i);
233
- },
234
- d(o) {
235
- o && W(t);
236
- }
237
- };
238
- }
239
- function Ft(a) {
240
- let t, s, i, o;
241
- return {
242
- c() {
243
- t = b("svg"), s = b("circle"), i = b("text"), o = I("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-40f46w"), 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-40f46w"), 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-40f46w");
244
- },
245
- m(c, f) {
246
- N(c, t, f), l(t, s), l(t, i), l(i, o);
247
- },
248
- d(c) {
249
- c && W(t);
250
- }
251
- };
252
- }
253
- function st(a) {
254
- let t, s, i = (
255
- /*transaction*/
256
- a[24].Code + ""
257
- ), o, c, f, u = (
258
- /*transaction*/
259
- a[24].Date + ""
260
- ), g, x, k, v = (
261
- /*$_*/
262
- a[5](`transactionType.${/*transaction*/
263
- a[24].Type}`) + ""
264
- ), H, L, z, y, C, _, A, D = (
265
- /*$_*/
266
- a[5](`transactionStatus.${/*transaction*/
267
- a[24].Status}`) + ""
268
- ), R, M, E, Y;
269
- function P(n, r) {
270
- if (
271
- /*transaction*/
272
- n[24].Status === /*TransactionMainStatus*/
273
- n[4].Authorized
274
- )
275
- return Ft;
276
- if (
277
- /*transaction*/
278
- n[24].Status === /*TransactionMainStatus*/
279
- n[4].Failed
280
- )
281
- return At;
282
- if (
283
- /*transaction*/
284
- n[24].Status === /*TransactionMainStatus*/
285
- n[4].Pending
286
- )
287
- return It;
288
- if (
289
- /*transaction*/
290
- n[24].Status === /*TransactionMainStatus*/
291
- n[4].Rejected
292
- )
293
- return Dt;
294
- if (
295
- /*transaction*/
296
- n[24].Status === /*TransactionMainStatus*/
297
- n[4].Success
298
- )
299
- return zt;
300
- }
301
- let S = P(a), p = S && S(a);
302
- return {
303
- c() {
304
- t = m("tr"), s = m("td"), o = I(i), c = j(), f = m("td"), g = I(u), x = j(), k = m("td"), H = I(v), L = j(), z = m("td"), y = m("div"), C = m("span"), p && p.c(), _ = j(), A = m("span"), R = I(D), M = j(), e(s, "class", "CashierTransactionId svelte-40f46w"), K(
305
- s,
306
- "copied",
307
- /*copied*/
308
- a[3]
309
- ), e(f, "class", "svelte-40f46w"), e(k, "class", "svelte-40f46w"), e(C, "class", "CashierTransactionHistoryIcon svelte-40f46w"), e(A, "class", "CashierTransactionHistoryStatusText svelte-40f46w"), e(y, "class", "CashierTransactionHistoryStatus svelte-40f46w"), e(z, "class", "svelte-40f46w"), e(t, "class", "svelte-40f46w");
310
- },
311
- m(n, r) {
312
- N(n, t, r), l(t, s), l(s, o), l(t, c), l(t, f), l(f, g), l(t, x), l(t, k), l(k, H), l(t, L), l(t, z), l(z, y), l(y, C), p && p.m(C, null), l(y, _), l(y, A), l(A, R), l(t, M), E || (Y = pt(
313
- s,
314
- "mousedown",
315
- /*mousedown_handler*/
316
- a[15]
317
- ), E = !0);
318
- },
319
- p(n, r) {
320
- r & /*txnHistory*/
321
- 4 && i !== (i = /*transaction*/
322
- n[24].Code + "") && B(o, i), r & /*copied*/
323
- 8 && K(
324
- s,
325
- "copied",
326
- /*copied*/
327
- n[3]
328
- ), r & /*txnHistory*/
329
- 4 && u !== (u = /*transaction*/
330
- n[24].Date + "") && B(g, u), r & /*$_, txnHistory*/
331
- 36 && v !== (v = /*$_*/
332
- n[5](`transactionType.${/*transaction*/
333
- n[24].Type}`) + "") && B(H, v), S !== (S = P(n)) && (p && p.d(1), p = S && S(n), p && (p.c(), p.m(C, null))), r & /*$_, txnHistory*/
334
- 36 && D !== (D = /*$_*/
335
- n[5](`transactionStatus.${/*transaction*/
336
- n[24].Status}`) + "") && B(R, D);
337
- },
338
- d(n) {
339
- n && W(t), p && p.d(), E = !1, Y();
340
- }
341
- };
342
- }
343
- function jt(a) {
344
- let t, s = (
345
- /*txnHistory*/
346
- a[2].length && tt(a)
347
- );
348
- return {
349
- c() {
350
- s && s.c(), t = ot();
351
- },
352
- m(i, o) {
353
- s && s.m(i, o), N(i, t, o);
354
- },
355
- p(i, [o]) {
356
- /*txnHistory*/
357
- i[2].length ? s ? s.p(i, o) : (s = tt(i), s.c(), s.m(t.parentNode, t)) : s && (s.d(1), s = null);
358
- },
359
- i: X,
360
- o: X,
361
- d(i) {
362
- i && W(t), s && s.d(i);
363
- }
364
- };
365
- }
366
- const Lt = "DD.MM.YYYY";
367
- function Rt(a, t, s) {
368
- let i;
369
- rt(a, bt, (n) => s(5, i = n));
370
- let { endpoint: o } = t, { session: c } = t, { lang: f = "en" } = t, { customerid: u } = t, { clientstyling: g = "" } = t, { clientstylingurl: x = "" } = t, { translationurl: k } = t, { tooltipduration: v = 1e3 } = t, { txncount: H = 3 } = t, L = [], z = !1, y, C;
371
- var _;
372
- (function(n) {
373
- n.Deposit = "deposit", n.Withdraw = "withdraw", n.Refund = "refund", n.Unknown = "unknown", n.TaxDeduction = "taxDeduction";
374
- })(_ || (_ = {}));
375
- const A = [
376
- "Authorized",
377
- "Success",
378
- "Failed",
379
- "Rejected",
380
- "PendingApprovalStage1",
381
- "PendingApprovalStage2",
382
- "PendingApprovalStage3",
383
- "PendingNotification",
384
- "PendingOfflineNotification",
385
- "PendingConfirmation"
386
- ];
387
- var D;
388
- (function(n) {
389
- n.Authorized = "Authorized", n.Success = "Success", n.Failed = "Failed", n.Rejected = "Rejected", n.Pending = "Pending";
390
- })(D || (D = {}));
391
- const R = () => {
392
- let n = k;
393
- if (n)
394
- return fetch(n).then((r) => r.json()).then((r) => {
395
- Object.keys(r).forEach((d) => {
396
- Q(d, r[d]);
397
- });
398
- }).catch((r) => {
399
- console.log(r);
400
- });
401
- };
402
- Object.keys(Z).forEach((n) => {
403
- Q(n, Z[n]);
404
- });
405
- const M = () => {
406
- kt(f);
407
- }, E = () => {
408
- const n = new URL(`${o}/api/v1/mm/payment/gettransactionshistory`), r = new Headers();
409
- r.append("accept", "application/json"), r.append("Content-Type", "application/json"), r.append("X-SessionId", `${c}`);
410
- const d = new Date((/* @__PURE__ */ new Date()).setMonth((/* @__PURE__ */ new Date()).getMonth() - 3)).toISOString(), O = {
411
- method: "POST",
412
- mode: "cors",
413
- headers: r,
414
- body: JSON.stringify({
415
- language: f,
416
- customerId: u,
417
- count: H,
418
- page: 0,
419
- fromDate: d,
420
- toDate: null,
421
- statuses: {
422
- [_.Deposit]: A,
423
- [_.Withdraw]: A,
424
- [_.Refund]: ["Unknown"],
425
- [_.TaxDeduction]: ["Unknown"],
426
- [_.Unknown]: ["Unknown"]
427
- },
428
- calculateProfit: !1
429
- })
430
- };
431
- fetch(n, O).then((h) => h.json()).then((h) => {
432
- s(2, L = Y((h == null ? void 0 : h.items) || []));
433
- }).catch((h) => console.log(h));
434
- }, Y = (n) => n.map((r) => {
435
- let d = r.generalFields.status;
436
- return r.generalFields.status.toLowerCase().includes("pending") && (d = D.Pending), {
437
- Code: r.generalFields.code,
438
- Date: xt(r.generalFields.created).format(Lt),
439
- Status: d,
440
- Type: r.generalFields.type
441
- };
442
- }) || [], P = (n) => {
443
- const r = n.currentTarget;
444
- n.target === r && navigator.clipboard.writeText(r.innerText).then(() => {
445
- s(3, z = !0), clearTimeout(C), C = setTimeout(
446
- () => {
447
- s(3, z = !1);
448
- },
449
- 2e3
450
- );
451
- }).catch((d) => {
452
- console.error("Could not copy text: ", d);
453
- });
454
- }, S = (n) => P(n);
455
- function p(n) {
456
- wt[n ? "unshift" : "push"](() => {
457
- y = n, s(1, y);
458
- });
459
- }
460
- return a.$$set = (n) => {
461
- "endpoint" in n && s(7, o = n.endpoint), "session" in n && s(8, c = n.session), "lang" in n && s(9, f = n.lang), "customerid" in n && s(10, u = n.customerid), "clientstyling" in n && s(11, g = n.clientstyling), "clientstylingurl" in n && s(12, x = n.clientstylingurl), "translationurl" in n && s(13, k = n.translationurl), "tooltipduration" in n && s(0, v = n.tooltipduration), "txncount" in n && s(14, H = n.txncount);
462
- }, a.$$.update = () => {
463
- a.$$.dirty & /*lang*/
464
- 512 && f && M(), a.$$.dirty & /*clientstyling, customStylingContainer*/
465
- 2050 && g && y && Ct(y, g), a.$$.dirty & /*clientstylingurl, customStylingContainer*/
466
- 4098 && x && y && St(y, x), a.$$.dirty & /*endpoint, session, customerid, lang*/
467
- 1920 && o && c && u && f && E(), a.$$.dirty & /*translationurl*/
468
- 8192 && k && R();
469
- }, [
470
- v,
471
- y,
472
- L,
473
- z,
474
- D,
475
- i,
476
- P,
477
- o,
478
- c,
479
- f,
480
- u,
481
- g,
482
- x,
483
- k,
484
- H,
485
- S,
486
- p
487
- ];
488
- }
489
- class Pt extends it {
490
- constructor(t) {
491
- super(), nt(
492
- this,
493
- t,
494
- Rt,
495
- jt,
496
- at,
497
- {
498
- endpoint: 7,
499
- session: 8,
500
- lang: 9,
501
- customerid: 10,
502
- clientstyling: 11,
503
- clientstylingurl: 12,
504
- translationurl: 13,
505
- tooltipduration: 0,
506
- txncount: 14
507
- },
508
- Ht
509
- );
510
- }
511
- get endpoint() {
512
- return this.$$.ctx[7];
513
- }
514
- set endpoint(t) {
515
- this.$$set({ endpoint: t }), U();
516
- }
517
- get session() {
518
- return this.$$.ctx[8];
519
- }
520
- set session(t) {
521
- this.$$set({ session: t }), U();
522
- }
523
- get lang() {
524
- return this.$$.ctx[9];
525
- }
526
- set lang(t) {
527
- this.$$set({ lang: t }), U();
528
- }
529
- get customerid() {
530
- return this.$$.ctx[10];
531
- }
532
- set customerid(t) {
533
- this.$$set({ customerid: t }), U();
534
- }
535
- get clientstyling() {
536
- return this.$$.ctx[11];
537
- }
538
- set clientstyling(t) {
539
- this.$$set({ clientstyling: t }), U();
540
- }
541
- get clientstylingurl() {
542
- return this.$$.ctx[12];
543
- }
544
- set clientstylingurl(t) {
545
- this.$$set({ clientstylingurl: t }), U();
546
- }
547
- get translationurl() {
548
- return this.$$.ctx[13];
549
- }
550
- set translationurl(t) {
551
- this.$$set({ translationurl: t }), U();
552
- }
553
- get tooltipduration() {
554
- return this.$$.ctx[0];
555
- }
556
- set tooltipduration(t) {
557
- this.$$set({ tooltipduration: t }), U();
558
- }
559
- get txncount() {
560
- return this.$$.ctx[14];
561
- }
562
- set txncount(t) {
563
- this.$$set({ txncount: t }), U();
564
- }
565
- }
566
- gt(Pt, { endpoint: {}, session: {}, lang: {}, customerid: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, tooltipduration: {}, txncount: {} }, [], [], !0);
567
- export {
568
- Pt as default
569
- };
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CashierConfirmModal-BVT51ZOp.cjs"),B=require("./CashierModal-BhCdxWcE.cjs"),L=require("./CashierError-CUod7-ig.cjs"),X=require("./CashierMethodDetails-CZeqzZSi.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,e){if(i){const a=document.createElement("style");a.innerHTML=e,i.appendChild(a)}}function V(i,e){const a=new URL(e);fetch(a.href).then(n=>n.text()).then(n=>{const r=document.createElement("style");r.innerHTML=n,i&&i.appendChild(r)}).catch(n=>{console.error("There was an error while trying to load client styling from URL",n)})}function K(i){t.append_styles(i,"svelte-40f46w",".svelte-40f46w.svelte-40f46w,.svelte-40f46w.svelte-40f46w::before,.svelte-40f46w.svelte-40f46w::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-style:inherit}.CopyTooltip.svelte-40f46w.svelte-40f46w{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}.CashierTransactionHistory.svelte-40f46w.svelte-40f46w{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-40f46w table.svelte-40f46w{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-40f46w table.svelte-40f46w:not(:last-child){margin-bottom:var(--emw--spacing-large, 20px)}.CashierTransactionHistory.svelte-40f46w thead tr.svelte-40f46w{border-bottom:1px solid var(--mmw--color-grey-105, #E8E9EB);color:var(--mmw--color-grey-10, #111);height:50px}.CashierTransactionHistory.svelte-40f46w tbody tr.svelte-40f46w{color:var(--mmw--color-grey-290, #666)}.CashierTransactionHistory.svelte-40f46w td.svelte-40f46w{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-40f46w tr.svelte-40f46w{position:relative}@container transaction-history (width < 750px){.CashierTransactionHistory.svelte-40f46w .CopyTooltip.svelte-40f46w{width:100%}.CashierTransactionHistory.svelte-40f46w .CashierTransactionId.svelte-40f46w{max-width:150px}.CashierTransactionHistory.svelte-40f46w td.svelte-40f46w{padding:0 var(--emw--spacing-small, 12px) 0 var(--emw--spacing-small, 12px)}}@container transaction-history (width < 475px){.CashierTransactionHistory.svelte-40f46w .CashierTransactionHistoryWrapper.svelte-40f46w{padding:0 var(--emw--spacing-2x-small-plus, 6px)}.CashierTransactionHistory.svelte-40f46w td.svelte-40f46w{padding:0 var(--emw--spacing-2x-small-plus, 6px)}.CashierTransactionHistory.svelte-40f46w td.svelte-40f46w:first-child{max-width:75px}}@container transaction-history (width < 350px){.CashierTransactionHistory.svelte-40f46w table.svelte-40f46w{table-layout:fixed}.CashierTransactionHistory.svelte-40f46w table td.svelte-40f46w{padding:0 0 0 var(--emw--spacing-small, 5px)}}.CashierTransactionHistoryWrapper.svelte-40f46w.svelte-40f46w{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-40f46w.svelte-40f46w{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-40f46w.svelte-40f46w{cursor:pointer;-webkit-user-select:none;-ms-user-select:none;user-select:none}.CashierTransactionId.svelte-40f46w.svelte-40f46w:hover{background-color:var(--emw--color-gray-50, #F7F8FA)}.CashierTransactionHistoryStatus.svelte-40f46w.svelte-40f46w{display:flex;gap:5px}.CashierTransactionHistoryStatusText.svelte-40f46w.svelte-40f46w{line-height:calc(var(--emw--font-size-medium, 16px) + 2px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.CashierTransactionHistoryContent.svelte-40f46w.svelte-40f46w{width:100%}.CashierTransactionHistoryIcon.svelte-40f46w.svelte-40f46w{vertical-align:middle;height:var(--emw--font-size-medium, 16px);width:var(--emw--font-size-medium, 16px)}")}function O(i,e,a){const n=i.slice();return n[24]=e[a],n[26]=a,n}function W(i){let e,a,n,r=i[5]("transactionHistoryTitle")+"",o,d,f,m,_,T,h,k,z=i[5]("transactionIdTitle")+"",C,v,x,y=i[5]("transactionDateTitle")+"",H,S,I,F=i[5]("transactionTypeTitle")+"",j,R,A,b=i[5]("transactionStatusTitle")+"",w,s,l,c=i[3]&&N(i),P=t.ensure_array_like(i[2]),u=[];for(let p=0;p<P.length;p+=1)u[p]=q(O(i,P,p));return{c(){e=t.element("div"),c&&c.c(),a=t.space(),n=t.element("h3"),o=t.text(r),d=t.space(),f=t.element("div"),m=t.element("div"),_=t.element("table"),T=t.element("thead"),h=t.element("tr"),k=t.element("td"),C=t.text(z),v=t.space(),x=t.element("td"),H=t.text(y),S=t.space(),I=t.element("td"),j=t.text(F),R=t.space(),A=t.element("td"),w=t.text(b),s=t.space(),l=t.element("tbody");for(let p=0;p<u.length;p+=1)u[p].c();t.attr(n,"class","CashierTransactionHistoryTitle svelte-40f46w"),t.attr(k,"class","svelte-40f46w"),t.attr(x,"class","svelte-40f46w"),t.attr(I,"class","svelte-40f46w"),t.attr(A,"class","svelte-40f46w"),t.attr(h,"class","svelte-40f46w"),t.attr(T,"class","svelte-40f46w"),t.attr(l,"class","svelte-40f46w"),t.attr(_,"class","svelte-40f46w"),t.attr(m,"class","CashierTransactionHistoryContent svelte-40f46w"),t.attr(f,"class","CashierTransactionHistoryWrapper svelte-40f46w"),t.attr(e,"class","CashierTransactionHistory svelte-40f46w")},m(p,D){t.insert(p,e,D),c&&c.m(e,null),t.append(e,a),t.append(e,n),t.append(n,o),t.append(e,d),t.append(e,f),t.append(f,m),t.append(m,_),t.append(_,T),t.append(T,h),t.append(h,k),t.append(k,C),t.append(h,v),t.append(h,x),t.append(x,H),t.append(h,S),t.append(h,I),t.append(I,j),t.append(h,R),t.append(h,A),t.append(A,w),t.append(_,s),t.append(_,l);for(let g=0;g<u.length;g+=1)u[g]&&u[g].m(l,null);i[16](e)},p(p,D){if(p[3]?c?(c.p(p,D),D&8&&t.transition_in(c,1)):(c=N(p),c.c(),t.transition_in(c,1),c.m(e,a)):c&&(t.group_outros(),t.transition_out(c,1,1,()=>{c=null}),t.check_outros()),D&32&&r!==(r=p[5]("transactionHistoryTitle")+"")&&t.set_data(o,r),D&32&&z!==(z=p[5]("transactionIdTitle")+"")&&t.set_data(C,z),D&32&&y!==(y=p[5]("transactionDateTitle")+"")&&t.set_data(H,y),D&32&&F!==(F=p[5]("transactionTypeTitle")+"")&&t.set_data(j,F),D&32&&b!==(b=p[5]("transactionStatusTitle")+"")&&t.set_data(w,b),D&124){P=t.ensure_array_like(p[2]);let g;for(g=0;g<P.length;g+=1){const M=O(p,P,g);u[g]?u[g].p(M,D):(u[g]=q(M),u[g].c(),u[g].m(l,null))}for(;g<u.length;g+=1)u[g].d(1);u.length=P.length}},d(p){p&&t.detach(e),c&&c.d(),t.destroy_each(u,p),i[16](null)}}}function N(i){let e,a=i[5]("copyTransactionId")+"",n,r,o,d;return{c(){e=t.element("div"),n=t.text(a),t.attr(e,"class","CopyTooltip svelte-40f46w")},m(f,m){t.insert(f,e,m),t.append(e,n),d=!0},p(f,m){i=f,(!d||m&32)&&a!==(a=i[5]("copyTransactionId")+"")&&t.set_data(n,a)},i(f){d||(f&&t.add_render_callback(()=>{d&&(o&&o.end(1),r=t.create_in_transition(e,B.fade,{duration:100}),r.start())}),d=!0)},o(f){r&&r.invalidate(),f&&(o=t.create_out_transition(e,B.fade,{duration:i[0]})),d=!1},d(f){f&&t.detach(e),f&&o&&o.end()}}}function Q(i){let e,a,n;return{c(){e=t.svg_element("svg"),a=t.svg_element("circle"),n=t.svg_element("path"),t.attr(a,"cx","12"),t.attr(a,"cy","12"),t.attr(a,"r","10"),t.attr(a,"stroke","#25bf00"),t.attr(a,"stroke-width","2"),t.attr(a,"class","svelte-40f46w"),t.attr(n,"d","M8 12L11 15L16 9"),t.attr(n,"stroke","#25bf00"),t.attr(n,"stroke-width","2"),t.attr(n,"stroke-linecap","round"),t.attr(n,"stroke-linejoin","round"),t.attr(n,"class","svelte-40f46w"),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-40f46w")},m(r,o){t.insert(r,e,o),t.append(e,a),t.append(e,n)},d(r){r&&t.detach(e)}}}function Z(i){let e,a,n,r;return{c(){e=t.svg_element("svg"),a=t.svg_element("circle"),n=t.svg_element("text"),r=t.text("R"),t.attr(a,"cx","12"),t.attr(a,"cy","12"),t.attr(a,"r","10"),t.attr(a,"stroke","#dd6617d4"),t.attr(a,"stroke-width","2"),t.attr(a,"class","svelte-40f46w"),t.attr(n,"x","50%"),t.attr(n,"y","54%"),t.attr(n,"text-anchor","middle"),t.attr(n,"dominant-baseline","middle"),t.attr(n,"font-size","14"),t.attr(n,"font-weight","bold"),t.attr(n,"fill","#dd6617d4"),t.attr(n,"font-family","Arial Rounded MT Bold, Arial, sans-serif"),t.attr(n,"class","svelte-40f46w"),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-40f46w")},m(o,d){t.insert(o,e,d),t.append(e,a),t.append(e,n),t.append(n,r)},d(o){o&&t.detach(e)}}}function $(i){let e,a,n;return{c(){e=t.svg_element("svg"),a=t.svg_element("circle"),n=t.svg_element("path"),t.attr(a,"cx","12"),t.attr(a,"cy","12"),t.attr(a,"r","10"),t.attr(a,"stroke","#f0a85f"),t.attr(a,"stroke-width","2"),t.attr(a,"class","svelte-40f46w"),t.attr(n,"d","M12 7V12L15 14"),t.attr(n,"stroke","#f0a85f"),t.attr(n,"stroke-width","2"),t.attr(n,"stroke-linecap","round"),t.attr(n,"stroke-linejoin","round"),t.attr(n,"class","svelte-40f46w"),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-40f46w")},m(r,o){t.insert(r,e,o),t.append(e,a),t.append(e,n)},d(r){r&&t.detach(e)}}}function tt(i){let e,a,n;return{c(){e=t.svg_element("svg"),a=t.svg_element("circle"),n=t.svg_element("path"),t.attr(a,"cx","12"),t.attr(a,"cy","12"),t.attr(a,"r","10"),t.attr(a,"stroke","#e76049"),t.attr(a,"stroke-width","2"),t.attr(a,"class","svelte-40f46w"),t.attr(n,"d","M9 9L15 15M15 9L9 15"),t.attr(n,"stroke","#e76049"),t.attr(n,"stroke-width","2"),t.attr(n,"stroke-linecap","round"),t.attr(n,"stroke-linejoin","round"),t.attr(n,"class","svelte-40f46w"),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-40f46w")},m(r,o){t.insert(r,e,o),t.append(e,a),t.append(e,n)},d(r){r&&t.detach(e)}}}function et(i){let e,a,n,r;return{c(){e=t.svg_element("svg"),a=t.svg_element("circle"),n=t.svg_element("text"),r=t.text("A"),t.attr(a,"cx","12"),t.attr(a,"cy","12"),t.attr(a,"r","10"),t.attr(a,"stroke","#32b398"),t.attr(a,"stroke-width","2"),t.attr(a,"class","svelte-40f46w"),t.attr(n,"x","50%"),t.attr(n,"y","54%"),t.attr(n,"text-anchor","middle"),t.attr(n,"dominant-baseline","middle"),t.attr(n,"font-size","14"),t.attr(n,"font-weight","bold"),t.attr(n,"fill","#32b398"),t.attr(n,"font-family","Arial Rounded MT Bold, Arial, sans-serif"),t.attr(n,"class","svelte-40f46w"),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-40f46w")},m(o,d){t.insert(o,e,d),t.append(e,a),t.append(e,n),t.append(n,r)},d(o){o&&t.detach(e)}}}function q(i){let e,a,n=i[24].Code+"",r,o,d,f=i[24].Date+"",m,_,T,h=i[5](`transactionType.${i[24].Type}`)+"",k,z,C,v,x,y,H,S=i[5](`transactionStatus.${i[24].Status}`)+"",I,F,j,R;function A(s,l){if(s[24].Status===s[4].Authorized)return et;if(s[24].Status===s[4].Failed)return tt;if(s[24].Status===s[4].Pending)return $;if(s[24].Status===s[4].Rejected)return Z;if(s[24].Status===s[4].Success)return Q}let b=A(i),w=b&&b(i);return{c(){e=t.element("tr"),a=t.element("td"),r=t.text(n),o=t.space(),d=t.element("td"),m=t.text(f),_=t.space(),T=t.element("td"),k=t.text(h),z=t.space(),C=t.element("td"),v=t.element("div"),x=t.element("span"),w&&w.c(),y=t.space(),H=t.element("span"),I=t.text(S),F=t.space(),t.attr(a,"class","CashierTransactionId svelte-40f46w"),t.toggle_class(a,"copied",i[3]),t.attr(d,"class","svelte-40f46w"),t.attr(T,"class","svelte-40f46w"),t.attr(x,"class","CashierTransactionHistoryIcon svelte-40f46w"),t.attr(H,"class","CashierTransactionHistoryStatusText svelte-40f46w"),t.attr(v,"class","CashierTransactionHistoryStatus svelte-40f46w"),t.attr(C,"class","svelte-40f46w"),t.attr(e,"class","svelte-40f46w")},m(s,l){t.insert(s,e,l),t.append(e,a),t.append(a,r),t.append(e,o),t.append(e,d),t.append(d,m),t.append(e,_),t.append(e,T),t.append(T,k),t.append(e,z),t.append(e,C),t.append(C,v),t.append(v,x),w&&w.m(x,null),t.append(v,y),t.append(v,H),t.append(H,I),t.append(e,F),j||(R=t.listen(a,"mousedown",i[15]),j=!0)},p(s,l){l&4&&n!==(n=s[24].Code+"")&&t.set_data(r,n),l&8&&t.toggle_class(a,"copied",s[3]),l&4&&f!==(f=s[24].Date+"")&&t.set_data(m,f),l&36&&h!==(h=s[5](`transactionType.${s[24].Type}`)+"")&&t.set_data(k,h),b!==(b=A(s))&&(w&&w.d(1),w=b&&b(s),w&&(w.c(),w.m(x,null))),l&36&&S!==(S=s[5](`transactionStatus.${s[24].Status}`)+"")&&t.set_data(I,S)},d(s){s&&t.detach(e),w&&w.d(),j=!1,R()}}}function at(i){let e,a=i[2].length&&W(i);return{c(){a&&a.c(),e=t.empty()},m(n,r){a&&a.m(n,r),t.insert(n,e,r)},p(n,[r]){n[2].length?a?a.p(n,r):(a=W(n),a.c(),a.m(e.parentNode,e)):a&&(a.d(1),a=null)},i:t.noop,o:t.noop,d(n){n&&t.detach(e),a&&a.d(n)}}}const nt="DD.MM.YYYY";function st(i,e,a){let n;t.component_subscribe(i,L.$format,s=>a(5,n=s));let{endpoint:r}=e,{session:o}=e,{lang:d="en"}=e,{customerid:f}=e,{clientstyling:m=""}=e,{clientstylingurl:_=""}=e,{translationurl:T}=e,{tooltipduration:h=1e3}=e,{txncount:k=3}=e,z=[],C=!1,v,x;var y;(function(s){s.Deposit="deposit",s.Withdraw="withdraw",s.Refund="refund",s.Unknown="unknown",s.TaxDeduction="taxDeduction"})(y||(y={}));const H=["Authorized","Success","Failed","Rejected","PendingApprovalStage1","PendingApprovalStage2","PendingApprovalStage3","PendingNotification","PendingOfflineNotification","PendingConfirmation"];var S;(function(s){s.Authorized="Authorized",s.Success="Success",s.Failed="Failed",s.Rejected="Rejected",s.Pending="Pending"})(S||(S={}));const I=()=>{let s=T;if(s)return fetch(s).then(l=>l.json()).then(l=>{Object.keys(l).forEach(c=>{E(c,l[c])})}).catch(l=>{console.log(l)})};Object.keys(U).forEach(s=>{E(s,U[s])});const F=()=>{G(d)},j=()=>{const s=new URL(`${r}/api/v1/mm/payment/gettransactionshistory`),l=new Headers;l.append("accept","application/json"),l.append("Content-Type","application/json"),l.append("X-SessionId",`${o}`);const c=new Date(new Date().setMonth(new Date().getMonth()-3)).toISOString(),P={method:"POST",mode:"cors",headers:l,body:JSON.stringify({language:d,customerId:f,count:k,page:0,fromDate:c,toDate:null,statuses:{[y.Deposit]:H,[y.Withdraw]:H,[y.Refund]:["Unknown"],[y.TaxDeduction]:["Unknown"],[y.Unknown]:["Unknown"]},calculateProfit:!1})};fetch(s,P).then(u=>u.json()).then(u=>{a(2,z=R((u==null?void 0:u.items)||[]))}).catch(u=>console.log(u))},R=s=>s.map(l=>{let c=l.generalFields.status;return l.generalFields.status.toLowerCase().includes("pending")&&(c=S.Pending),{Code:l.generalFields.code,Date:X.dayjs(l.generalFields.created).format(nt),Status:c,Type:l.generalFields.type}})||[],A=s=>{const l=s.currentTarget;s.target===l&&navigator.clipboard.writeText(l.innerText).then(()=>{a(3,C=!0),clearTimeout(x),x=setTimeout(()=>{a(3,C=!1)},2e3)}).catch(c=>{console.error("Could not copy text: ",c)})},b=s=>A(s);function w(s){t.binding_callbacks[s?"unshift":"push"](()=>{v=s,a(1,v)})}return i.$$set=s=>{"endpoint"in s&&a(7,r=s.endpoint),"session"in s&&a(8,o=s.session),"lang"in s&&a(9,d=s.lang),"customerid"in s&&a(10,f=s.customerid),"clientstyling"in s&&a(11,m=s.clientstyling),"clientstylingurl"in s&&a(12,_=s.clientstylingurl),"translationurl"in s&&a(13,T=s.translationurl),"tooltipduration"in s&&a(0,h=s.tooltipduration),"txncount"in s&&a(14,k=s.txncount)},i.$$.update=()=>{i.$$.dirty&512&&d&&F(),i.$$.dirty&2050&&m&&v&&J(v,m),i.$$.dirty&4098&&_&&v&&V(v,_),i.$$.dirty&1920&&r&&o&&f&&d&&j(),i.$$.dirty&8192&&T&&I()},[h,v,z,C,S,n,A,r,o,d,f,m,_,T,k,b,w]}class Y extends t.SvelteComponent{constructor(e){super(),t.init(this,e,st,at,t.safe_not_equal,{endpoint:7,session:8,lang:9,customerid:10,clientstyling:11,clientstylingurl:12,translationurl:13,tooltipduration:0,txncount:14},K)}get endpoint(){return this.$$.ctx[7]}set endpoint(e){this.$$set({endpoint:e}),t.flush()}get session(){return this.$$.ctx[8]}set session(e){this.$$set({session:e}),t.flush()}get lang(){return this.$$.ctx[9]}set lang(e){this.$$set({lang:e}),t.flush()}get customerid(){return this.$$.ctx[10]}set customerid(e){this.$$set({customerid:e}),t.flush()}get clientstyling(){return this.$$.ctx[11]}set clientstyling(e){this.$$set({clientstyling:e}),t.flush()}get clientstylingurl(){return this.$$.ctx[12]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),t.flush()}get translationurl(){return this.$$.ctx[13]}set translationurl(e){this.$$set({translationurl:e}),t.flush()}get tooltipduration(){return this.$$.ctx[0]}set tooltipduration(e){this.$$set({tooltipduration:e}),t.flush()}get txncount(){return this.$$.ctx[14]}set txncount(e){this.$$set({txncount:e}),t.flush()}}t.create_custom_element(Y,{endpoint:{},session:{},lang:{},customerid:{},clientstyling:{},clientstylingurl:{},translationurl:{},tooltipduration:{},txncount:{}},[],[],!0);exports.default=Y;
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CashierConfirmModal-BVT51ZOp.cjs");function M(s){e.append_styles(s,"svelte-kll10v",".CashierVideoWrapper{position:absolute;width:100%;height:500px;left:0;top:0;z-index:8;background-color:var(--mmw--color-grey-light, #f3f6f9)}.CashierVideoWrapperDesktop{height:700px}.CashierVideoHeader{width:100%;height:29px;position:relative;text-transform:uppercase;text-align:right;background-color:var(--mmw--color-grey-light, #f3f6f9);font-size:var(--emw--font-size-medium, 16px);z-index:6}.CashierVideoHeader svg{padding:8px 8px 8px 15px}.CashierVideo video{object-fit:contain;width:100%;height:100%;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}.CashierVideo svg{cursor:pointer;margin-left:auto;position:absolute;right:0;z-index:6;padding:5px 13px}")}function C(s){let t,i,l,o,r,f,u,c=!s[2]&&m(s),n=s[2]&&w(s);return{c(){t=e.element("div"),c&&c.c(),i=e.space(),l=e.element("div"),n&&n.c(),o=e.space(),r=e.element("video"),f=e.element("source"),e.src_url_equal(f.src,u=s[0])||e.attr(f,"src",u),r.autoplay=!0,r.controls=!0,e.attr(r,"controlslist","nodownload"),e.attr(r,"disablepictureinpicture",""),e.attr(l,"class","CashierVideo"),e.attr(t,"class","CashierVideoWrapper"),e.attr(t,"part","CustomStylingContainer"),e.toggle_class(t,"CashierVideoWrapperDesktop",s[2])},m(d,p){e.insert(d,t,p),c&&c.m(t,null),e.append(t,i),e.append(t,l),n&&n.m(l,null),e.append(l,o),e.append(l,r),e.append(r,f),s[10](t)},p(d,p){d[2]?c&&(c.d(1),c=null):c?c.p(d,p):(c=m(d),c.c(),c.m(t,i)),d[2]?n?n.p(d,p):(n=w(d),n.c(),n.m(l,o)):n&&(n.d(1),n=null),p&1&&!e.src_url_equal(f.src,u=d[0])&&e.attr(f,"src",u),p&4&&e.toggle_class(t,"CashierVideoWrapperDesktop",d[2])},d(d){d&&e.detach(t),c&&c.d(),n&&n.d(),s[10](null)}}}function m(s){let t,i,l,o,r;return{c(){t=e.element("div"),i=e.svg_element("svg"),l=e.svg_element("path"),e.attr(l,"d","M12.7711 0.229435C13.0582 0.517619 13.0755 0.973729 12.8215 1.28141L12.7711 1.33721L7.60685 6.50068L12.7711 11.6641C12.9128 11.8066 12.9944 11.998 12.999 12.1988C13.0035 12.3997 12.9308 12.5946 12.7957 12.7433C12.6606 12.892 12.4735 12.9832 12.2731 12.9979C12.0728 13.0126 11.8744 12.9497 11.7191 12.8223L11.6633 12.7719L6.49958 7.60791L1.3359 12.7719C1.19349 12.9136 1.00207 12.9952 0.801203 12.9998C0.60034 13.0044 0.405398 12.9316 0.256676 12.7965C0.107955 12.6614 0.0168256 12.4744 0.00212786 12.274C-0.0125699 12.0736 0.0502877 11.8753 0.177706 11.7199L0.228086 11.6641L5.3923 6.50068L0.228086 1.33721C0.0863637 1.1948 0.00478102 1.00338 0.000203544 0.802529C-0.00437393 0.601674 0.0684038 0.40674 0.203491 0.258024C0.338579 0.109308 0.525647 0.0181829 0.726024 0.00348576C0.9264 -0.0112114 1.12476 0.0516437 1.28011 0.179057L1.3359 0.229435L6.49958 5.39345L11.6633 0.229435C11.736 0.156695 11.8223 0.0989949 11.9174 0.0596283C12.0124 0.0202617 12.1143 0 12.2172 0C12.32 0 12.4219 0.0202617 12.5169 0.0596283C12.612 0.0989949 12.6983 0.156695 12.7711 0.229435Z"),e.attr(l,"fill","#111111"),e.attr(i,"xmlns","http://www.w3.org/2000/svg"),e.attr(i,"width","13"),e.attr(i,"height","13"),e.attr(i,"viewBox","0 0 13 13"),e.attr(i,"fill","none"),e.attr(t,"class","CashierVideoHeader")},m(f,u){e.insert(f,t,u),e.append(t,i),e.append(i,l),o||(r=e.listen(i,"click",s[8]),o=!0)},p:e.noop,d(f){f&&e.detach(t),o=!1,r()}}}function w(s){let t,i,l,o;return{c(){t=e.svg_element("svg"),i=e.svg_element("path"),e.attr(i,"d","M12.7711 0.229435C13.0582 0.517619 13.0755 0.973729 12.8215 1.28141L12.7711 1.33721L7.60685 6.50068L12.7711 11.6641C12.9128 11.8066 12.9944 11.998 12.999 12.1988C13.0035 12.3997 12.9308 12.5946 12.7957 12.7433C12.6606 12.892 12.4735 12.9832 12.2731 12.9979C12.0728 13.0126 11.8744 12.9497 11.7191 12.8223L11.6633 12.7719L6.49958 7.60791L1.3359 12.7719C1.19349 12.9136 1.00207 12.9952 0.801203 12.9998C0.60034 13.0044 0.405398 12.9316 0.256676 12.7965C0.107955 12.6614 0.0168256 12.4744 0.00212786 12.274C-0.0125699 12.0736 0.0502877 11.8753 0.177706 11.7199L0.228086 11.6641L5.3923 6.50068L0.228086 1.33721C0.0863637 1.1948 0.00478102 1.00338 0.000203544 0.802529C-0.00437393 0.601674 0.0684038 0.40674 0.203491 0.258024C0.338579 0.109308 0.525647 0.0181829 0.726024 0.00348576C0.9264 -0.0112114 1.12476 0.0516437 1.28011 0.179057L1.3359 0.229435L6.49958 5.39345L11.6633 0.229435C11.736 0.156695 11.8223 0.0989949 11.9174 0.0596283C12.0124 0.0202617 12.1143 0 12.2172 0C12.32 0 12.4219 0.0202617 12.5169 0.0596283C12.612 0.0989949 12.6983 0.156695 12.7711 0.229435Z"),e.attr(i,"fill","#111111"),e.attr(t,"xmlns","http://www.w3.org/2000/svg"),e.attr(t,"width","13"),e.attr(t,"height","13"),e.attr(t,"viewBox","0 0 13 13"),e.attr(t,"fill","none")},m(r,f){e.insert(r,t,f),e.append(t,i),l||(o=e.listen(t,"click",s[9]),l=!0)},p:e.noop,d(r){r&&e.detach(t),l=!1,o()}}}function S(s){let t,i=s[3]&&C(s);return{c(){i&&i.c(),t=e.empty()},m(l,o){i&&i.m(l,o),e.insert(l,t,o)},p(l,[o]){l[3]?i?i.p(l,o):(i=C(l),i.c(),i.m(t.parentNode,t)):i&&(i.d(1),i=null)},i:e.noop,o:e.noop,d(l){l&&e.detach(t),i&&i.d(l)}}}function x(s,t,i){let{clientstyling:l=""}=t,{clientstylingurl:o=""}=t,{ismobileview:r}=t,{videosrc:f}=t,u=!0,c=!1,n;const d=()=>{i(3,c=!1),window.postMessage({type:"ClosedCashierVideoModal"},window.location.href),window.postMessage({type:"EnableScroll"},window.location.href)},p=a=>{a.data.type=="ShowCashierVideoModal"&&(i(3,c=!0),window.postMessage({type:"DisableScroll"},window.location.href)),a.data.type=="HideCashierVideoModal"&&d()},_=()=>{i(2,u=r==="false")},y=()=>{let a=document.createElement("style");a.innerHTML=l,n.appendChild(a)},L=()=>{let a=new URL(o),g=document.createElement("style");fetch(a.href).then(h=>h.text()).then(h=>{g.innerHTML=h,setTimeout(()=>{n.appendChild(g)},1)})};e.onMount(()=>(window.addEventListener("message",p,!1),()=>{window.removeEventListener("message",p)}));const b=()=>d(),k=()=>d();function V(a){e.binding_callbacks[a?"unshift":"push"](()=>{n=a,i(1,n)})}return s.$$set=a=>{"clientstyling"in a&&i(5,l=a.clientstyling),"clientstylingurl"in a&&i(6,o=a.clientstylingurl),"ismobileview"in a&&i(7,r=a.ismobileview),"videosrc"in a&&i(0,f=a.videosrc)},s.$$.update=()=>{s.$$.dirty&128&&r&&_(),s.$$.dirty&34&&l&&n&&y(),s.$$.dirty&66&&o&&n&&L()},[f,n,u,c,d,l,o,r,b,k,V]}class v extends e.SvelteComponent{constructor(t){super(),e.init(this,t,x,S,e.safe_not_equal,{clientstyling:5,clientstylingurl:6,ismobileview:7,videosrc:0},M)}get clientstyling(){return this.$$.ctx[5]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[6]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get ismobileview(){return this.$$.ctx[7]}set ismobileview(t){this.$$set({ismobileview:t}),e.flush()}get videosrc(){return this.$$.ctx[0]}set videosrc(t){this.$$set({videosrc:t}),e.flush()}}e.create_custom_element(v,{clientstyling:{},clientstylingurl:{},ismobileview:{},videosrc:{}},[],[],!0);exports.default=v;
@@ -1 +0,0 @@
1
- "use strict";const i=require("./index-97d17652-_wmLv9aI.cjs"),r=".HostContainer{display:block}.UiContainer{height:100%;width:100%;border-radius:inherit;object-fit:inherit}.UiContainer .Image{border-radius:inherit}.Hidden{opacity:0;transition:opacity 0.5s ease-in-out}.Visible{opacity:1;transition:opacity 0.5s ease-in-out}",a=r,n=class{constructor(e){i.registerInstance(this,e),this.src=void 0,this.width=void 0,this.height=void 0,this.alt=void 0,this.styles=void 0,this.detectDistance="200px",this.imgLoaded=!1,this.shouldLoad=!1}handleSrc(){if(!this.shouldLoad)return;const e=new Image;e.onload=()=>{this.image&&(this.image.src=this.src,this.imgLoaded=!0,e.onload=null)},e.src=this.src}componentDidLoad(){"IntersectionObserver"in window?(this.el.__uxComponent=this,window.EMUxObserver||(window.EMUxObserver=new IntersectionObserver(e=>{e.forEach(t=>{if(t.isIntersecting){const s=t.target.__uxComponent;s&&(s.shouldLoad=!0,s.handleSrc()),window.EMUxObserver.unobserve(t.target)}})},{rootMargin:this.detectDistance})),window.EMUxObserver.observe(this.el)):(this.shouldLoad=!0,this.handleSrc())}render(){return i.h(i.Host,{key:"f506ba73852f257ad80bf59ca177d2065a5f365e",class:"HostContainer"},!this.imgLoaded&&i.h("ui-skeleton",{key:"564ebfab701f827ddc2debccb7615926dbc9e876",class:"UiContainer",structure:"image",width:"100%",height:"100%"}),i.h("img",{key:"2188ca4494c10587f064acc5459ffc468948f497",ref:e=>this.image=e,src:this.shouldLoad?this.src:void 0,onLoad:()=>this.imgLoaded=!0,style:this.styles,class:`UiContainer ${this.imgLoaded?"Visible":"Hidden"}`,alt:this.alt,width:this.width,height:this.height,loading:"lazy"}))}get el(){return i.getElement(this)}static get watchers(){return{src:["handleSrc"]}}};n.style=a;exports.UiImage=n;