@directcryptopay/sdk 0.1.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 (141) hide show
  1. package/README.md +357 -0
  2. package/dist/ConstantsUtil-B-_-u8aQ.js +6 -0
  3. package/dist/add-KF4m4jFK.js +19 -0
  4. package/dist/all-wallets-D6NAjQgX.js +10 -0
  5. package/dist/app-store-D7TTn-EO.js +21 -0
  6. package/dist/apple-DjX2E2hE.js +22 -0
  7. package/dist/arrow-bottom-C0YrNJYB.js +12 -0
  8. package/dist/arrow-bottom-circle-Dlxvx_XG.js +15 -0
  9. package/dist/arrow-left-x8_-lUyK.js +12 -0
  10. package/dist/arrow-right-BTZybj80.js +12 -0
  11. package/dist/arrow-top-LzH7iLCp.js +12 -0
  12. package/dist/bank-23jp-IV_.js +18 -0
  13. package/dist/browser-EjoorDid.js +18 -0
  14. package/dist/card-DGgWwtwC.js +18 -0
  15. package/dist/ccip-BMANewTU.js +150 -0
  16. package/dist/checkmark-B1qcQhBo.js +15 -0
  17. package/dist/checkmark-bold-Cyc4IEEJ.js +12 -0
  18. package/dist/chevron-bottom-ClHs08rB.js +12 -0
  19. package/dist/chevron-left-O8h_551_.js +12 -0
  20. package/dist/chevron-right-DP3xpyIA.js +12 -0
  21. package/dist/chevron-top-CuwkBUs9.js +12 -0
  22. package/dist/chrome-store-zfT_aJ3R.js +65 -0
  23. package/dist/clock-DHZqivIS.js +12 -0
  24. package/dist/close-Cp9rNAw4.js +12 -0
  25. package/dist/coinPlaceholder-U7-T1KKQ.js +12 -0
  26. package/dist/compass-Ds5-PRSR.js +12 -0
  27. package/dist/copy-Jg4HdIMf.js +19 -0
  28. package/dist/core/api.d.ts +30 -0
  29. package/dist/core/config.d.ts +59 -0
  30. package/dist/core/logic.d.ts +2 -0
  31. package/dist/core/wallet.d.ts +34 -0
  32. package/dist/cursor-DmMevduB.js +7 -0
  33. package/dist/cursor-transparent-Dn9-1SV8.js +16 -0
  34. package/dist/dcp-sdk.umd.js +12000 -0
  35. package/dist/dcp.d.ts +10 -0
  36. package/dist/desktop-C4udXXlZ.js +13 -0
  37. package/dist/disconnect-wd1BYLxt.js +12 -0
  38. package/dist/discord-DthxuCAP.js +21 -0
  39. package/dist/email-B3jSnUFE.js +696 -0
  40. package/dist/embedded-wallet-CJHmoBI2.js +468 -0
  41. package/dist/etherscan-Cjp4xfMW.js +10 -0
  42. package/dist/exclamation-triangle-CRNR5WOy.js +8 -0
  43. package/dist/extension-Cydk0mZt.js +12 -0
  44. package/dist/external-link-CuPTAoq9.js +12 -0
  45. package/dist/facebook-CghqXmdf.js +30 -0
  46. package/dist/farcaster-BREqMX4y.js +16 -0
  47. package/dist/filters-Dn_Ys7ew.js +12 -0
  48. package/dist/github-C-A7JmIY.js +22 -0
  49. package/dist/google-CCdM_naE.js +22 -0
  50. package/dist/hashTypedData-D2Qmzscs.js +197 -0
  51. package/dist/help-circle-DIH4vyj3.js +16 -0
  52. package/dist/id-DkJ0gBuy.js +16 -0
  53. package/dist/if-defined-BciplFKz.js +744 -0
  54. package/dist/image-qMjyiXM0.js +8 -0
  55. package/dist/index--3Zp0jAb.js +45 -0
  56. package/dist/index-1adX-Fit.js +65 -0
  57. package/dist/index-AvC0IGDl.js +7864 -0
  58. package/dist/index-B2-vKLd8.js +276 -0
  59. package/dist/index-B2iDt0TJ.js +146 -0
  60. package/dist/index-B5zkXsLJ.js +320 -0
  61. package/dist/index-B7K86vWu.js +1742 -0
  62. package/dist/index-BBkcvSiY.js +511 -0
  63. package/dist/index-BdjxQs66.js +181 -0
  64. package/dist/index-Bijd4_Ns.js +294 -0
  65. package/dist/index-BpXOsxzU.js +387 -0
  66. package/dist/index-C1QEJL-2.js +572 -0
  67. package/dist/index-C27dwOyE.js +243 -0
  68. package/dist/index-C4BX3QW8.js +58 -0
  69. package/dist/index-CMPIqsB1.js +170 -0
  70. package/dist/index-CTYngdl0.js +21991 -0
  71. package/dist/index-CUdQyyFn.js +51 -0
  72. package/dist/index-CX60z_g2.js +573 -0
  73. package/dist/index-CppCc1n8.js +65 -0
  74. package/dist/index-CqVegmN4.js +559 -0
  75. package/dist/index-CuiyMA8F.js +78 -0
  76. package/dist/index-CwB_qRfM.js +305 -0
  77. package/dist/index-CxOF7GqE.js +265 -0
  78. package/dist/index-D-IzHD_8.js +54 -0
  79. package/dist/index-DRNiFv9I.js +218 -0
  80. package/dist/index-Da8oZh8H.js +838 -0
  81. package/dist/index-DiHImG4L.js +44236 -0
  82. package/dist/index-DmOMXRG1.js +181 -0
  83. package/dist/index-DoSYqTQg.js +199 -0
  84. package/dist/index-DpHXq5_E.js +603 -0
  85. package/dist/index-DtCsAVBg.js +78 -0
  86. package/dist/index-Ij6XA6_4.js +77 -0
  87. package/dist/index-SzyBYfzA.js +8490 -0
  88. package/dist/index-eW8y-mXH.js +257 -0
  89. package/dist/index-fxzIDZsb.js +75 -0
  90. package/dist/index-lbhz9evJ.js +97 -0
  91. package/dist/index.d.ts +3 -0
  92. package/dist/index.js +4 -0
  93. package/dist/info-DMIGgjkL.js +7 -0
  94. package/dist/info-circle-CJuIKZSx.js +16 -0
  95. package/dist/lightbulb-qFT6WEWV.js +7 -0
  96. package/dist/localBatchGatewayRequest-CsMVMFBc.js +91 -0
  97. package/dist/mail-DoYgQvOt.js +12 -0
  98. package/dist/mobile-URtsh7o-.js +13 -0
  99. package/dist/more-DoQd10TF.js +15 -0
  100. package/dist/network-placeholder-BBA2Ue6C.js +18 -0
  101. package/dist/nftPlaceholder-C9RXWz9k.js +12 -0
  102. package/dist/off-YcuDQczT.js +12 -0
  103. package/dist/onramp-BfqDIx4o.js +1279 -0
  104. package/dist/parseSignature-280HB24T.js +3560 -0
  105. package/dist/play-store-sFaloG_r.js +36 -0
  106. package/dist/plus-l0wekSht.js +17 -0
  107. package/dist/qr-code-CihrUU4G.js +10 -0
  108. package/dist/receive-dfY1Cu-g.js +186 -0
  109. package/dist/recycle-horizontal-nXu6YaPw.js +13 -0
  110. package/dist/ref-huAzXCX0.js +41 -0
  111. package/dist/refresh-D2ZbVeNC.js +12 -0
  112. package/dist/reown-logo-BMaTMJmc.js +16 -0
  113. package/dist/search-YVM9q3J-.js +12 -0
  114. package/dist/secp256k1-BrysY3Sv.js +1302 -0
  115. package/dist/secp256k1-DPQgTBwQ.js +1510 -0
  116. package/dist/send-BwQZPKxI.js +19 -0
  117. package/dist/send-GyetMVu1.js +1038 -0
  118. package/dist/socials-B0W91J9k.js +574 -0
  119. package/dist/swapHorizontal-Dy_oQEkp.js +12 -0
  120. package/dist/swapHorizontalBold-C4JpaMpc.js +12 -0
  121. package/dist/swapHorizontalMedium-D5NuVZFh.js +20 -0
  122. package/dist/swapHorizontalRoundedBold-Bq4P2MCj.js +12 -0
  123. package/dist/swapVertical-CVQ8Mg03.js +12 -0
  124. package/dist/swaps-CA04SSdK.js +1637 -0
  125. package/dist/telegram-BP4SgW_L.js +20 -0
  126. package/dist/three-dots-BJYGJ-dQ.js +9 -0
  127. package/dist/transactions-Bq-98Tsg.js +37 -0
  128. package/dist/twitch-DTATWo9M.js +22 -0
  129. package/dist/twitterIcon-D5UWPInb.js +10 -0
  130. package/dist/types.d.ts +128 -0
  131. package/dist/ui/Modal.d.ts +9 -0
  132. package/dist/ui/index.d.ts +6 -0
  133. package/dist/verify-Byvj8Wi1.js +12 -0
  134. package/dist/verify-filled-B40taNm0.js +12 -0
  135. package/dist/w3m-modal-HV6SE74G.js +1037 -0
  136. package/dist/wallet-Cp-6Kk88.js +12 -0
  137. package/dist/wallet-placeholder-C3juwA9o.js +18 -0
  138. package/dist/walletconnect-CRkIiLCx.js +36 -0
  139. package/dist/warning-circle-DtvCLwG4.js +16 -0
  140. package/dist/x-Cqyx5eCt.js +16 -0
  141. package/package.json +70 -0
@@ -0,0 +1,511 @@
1
+ import { U as re, c as de } from "./if-defined-BciplFKz.js";
2
+ import { dJ as ee, cz as le, cC as he, cA as fe, cB as me } from "./index-DiHImG4L.js";
3
+ import "./index-Ij6XA6_4.js";
4
+ var Q = { exports: {} }, pe = Q.exports, ie;
5
+ function ge() {
6
+ return ie || (ie = 1, (function(e, d) {
7
+ (function(a, c) {
8
+ e.exports = c();
9
+ })(pe, (function() {
10
+ var a = 1e3, c = 6e4, m = 36e5, l = "millisecond", f = "second", y = "minute", $ = "hour", p = "day", w = "week", T = "month", I = "quarter", b = "year", D = "date", j = "Invalid Date", q = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, B = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, C = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(u) {
11
+ var r = ["th", "st", "nd", "rd"], t = u % 100;
12
+ return "[" + u + (r[(t - 20) % 10] || r[t] || r[0]) + "]";
13
+ } }, W = function(u, r, t) {
14
+ var i = String(u);
15
+ return !i || i.length >= r ? u : "" + Array(r + 1 - i.length).join(t) + u;
16
+ }, R = { s: W, z: function(u) {
17
+ var r = -u.utcOffset(), t = Math.abs(r), i = Math.floor(t / 60), n = t % 60;
18
+ return (r <= 0 ? "+" : "-") + W(i, 2, "0") + ":" + W(n, 2, "0");
19
+ }, m: function u(r, t) {
20
+ if (r.date() < t.date()) return -u(t, r);
21
+ var i = 12 * (t.year() - r.year()) + (t.month() - r.month()), n = r.clone().add(i, T), o = t - n < 0, s = r.clone().add(i + (o ? -1 : 1), T);
22
+ return +(-(i + (t - n) / (o ? n - s : s - n)) || 0);
23
+ }, a: function(u) {
24
+ return u < 0 ? Math.ceil(u) || 0 : Math.floor(u);
25
+ }, p: function(u) {
26
+ return { M: T, y: b, w, d: p, D, h: $, m: y, s: f, ms: l, Q: I }[u] || String(u || "").toLowerCase().replace(/s$/, "");
27
+ }, u: function(u) {
28
+ return u === void 0;
29
+ } }, S = "en", O = {};
30
+ O[S] = C;
31
+ var A = "$isDayjsObject", Y = function(u) {
32
+ return u instanceof Z || !(!u || !u[A]);
33
+ }, z = function u(r, t, i) {
34
+ var n;
35
+ if (!r) return S;
36
+ if (typeof r == "string") {
37
+ var o = r.toLowerCase();
38
+ O[o] && (n = o), t && (O[o] = t, n = o);
39
+ var s = r.split("-");
40
+ if (!n && s.length > 1) return u(s[0]);
41
+ } else {
42
+ var g = r.name;
43
+ O[g] = r, n = g;
44
+ }
45
+ return !i && n && (S = n), n || !i && S;
46
+ }, M = function(u, r) {
47
+ if (Y(u)) return u.clone();
48
+ var t = typeof r == "object" ? r : {};
49
+ return t.date = u, t.args = arguments, new Z(t);
50
+ }, h = R;
51
+ h.l = z, h.i = Y, h.w = function(u, r) {
52
+ return M(u, { locale: r.$L, utc: r.$u, x: r.$x, $offset: r.$offset });
53
+ };
54
+ var Z = (function() {
55
+ function u(t) {
56
+ this.$L = z(t.locale, null, !0), this.parse(t), this.$x = this.$x || t.x || {}, this[A] = !0;
57
+ }
58
+ var r = u.prototype;
59
+ return r.parse = function(t) {
60
+ this.$d = (function(i) {
61
+ var n = i.date, o = i.utc;
62
+ if (n === null) return /* @__PURE__ */ new Date(NaN);
63
+ if (h.u(n)) return /* @__PURE__ */ new Date();
64
+ if (n instanceof Date) return new Date(n);
65
+ if (typeof n == "string" && !/Z$/i.test(n)) {
66
+ var s = n.match(q);
67
+ if (s) {
68
+ var g = s[2] - 1 || 0, v = (s[7] || "0").substring(0, 3);
69
+ return o ? new Date(Date.UTC(s[1], g, s[3] || 1, s[4] || 0, s[5] || 0, s[6] || 0, v)) : new Date(s[1], g, s[3] || 1, s[4] || 0, s[5] || 0, s[6] || 0, v);
70
+ }
71
+ }
72
+ return new Date(n);
73
+ })(t), this.init();
74
+ }, r.init = function() {
75
+ var t = this.$d;
76
+ this.$y = t.getFullYear(), this.$M = t.getMonth(), this.$D = t.getDate(), this.$W = t.getDay(), this.$H = t.getHours(), this.$m = t.getMinutes(), this.$s = t.getSeconds(), this.$ms = t.getMilliseconds();
77
+ }, r.$utils = function() {
78
+ return h;
79
+ }, r.isValid = function() {
80
+ return this.$d.toString() !== j;
81
+ }, r.isSame = function(t, i) {
82
+ var n = M(t);
83
+ return this.startOf(i) <= n && n <= this.endOf(i);
84
+ }, r.isAfter = function(t, i) {
85
+ return M(t) < this.startOf(i);
86
+ }, r.isBefore = function(t, i) {
87
+ return this.endOf(i) < M(t);
88
+ }, r.$g = function(t, i, n) {
89
+ return h.u(t) ? this[i] : this.set(n, t);
90
+ }, r.unix = function() {
91
+ return Math.floor(this.valueOf() / 1e3);
92
+ }, r.valueOf = function() {
93
+ return this.$d.getTime();
94
+ }, r.startOf = function(t, i) {
95
+ var n = this, o = !!h.u(i) || i, s = h.p(t), g = function(k, L) {
96
+ var N = h.w(n.$u ? Date.UTC(n.$y, L, k) : new Date(n.$y, L, k), n);
97
+ return o ? N : N.endOf(p);
98
+ }, v = function(k, L) {
99
+ return h.w(n.toDate()[k].apply(n.toDate("s"), (o ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(L)), n);
100
+ }, x = this.$W, _ = this.$M, F = this.$D, E = "set" + (this.$u ? "UTC" : "");
101
+ switch (s) {
102
+ case b:
103
+ return o ? g(1, 0) : g(31, 11);
104
+ case T:
105
+ return o ? g(1, _) : g(0, _ + 1);
106
+ case w:
107
+ var U = this.$locale().weekStart || 0, J = (x < U ? x + 7 : x) - U;
108
+ return g(o ? F - J : F + (6 - J), _);
109
+ case p:
110
+ case D:
111
+ return v(E + "Hours", 0);
112
+ case $:
113
+ return v(E + "Minutes", 1);
114
+ case y:
115
+ return v(E + "Seconds", 2);
116
+ case f:
117
+ return v(E + "Milliseconds", 3);
118
+ default:
119
+ return this.clone();
120
+ }
121
+ }, r.endOf = function(t) {
122
+ return this.startOf(t, !1);
123
+ }, r.$set = function(t, i) {
124
+ var n, o = h.p(t), s = "set" + (this.$u ? "UTC" : ""), g = (n = {}, n[p] = s + "Date", n[D] = s + "Date", n[T] = s + "Month", n[b] = s + "FullYear", n[$] = s + "Hours", n[y] = s + "Minutes", n[f] = s + "Seconds", n[l] = s + "Milliseconds", n)[o], v = o === p ? this.$D + (i - this.$W) : i;
125
+ if (o === T || o === b) {
126
+ var x = this.clone().set(D, 1);
127
+ x.$d[g](v), x.init(), this.$d = x.set(D, Math.min(this.$D, x.daysInMonth())).$d;
128
+ } else g && this.$d[g](v);
129
+ return this.init(), this;
130
+ }, r.set = function(t, i) {
131
+ return this.clone().$set(t, i);
132
+ }, r.get = function(t) {
133
+ return this[h.p(t)]();
134
+ }, r.add = function(t, i) {
135
+ var n, o = this;
136
+ t = Number(t);
137
+ var s = h.p(i), g = function(_) {
138
+ var F = M(o);
139
+ return h.w(F.date(F.date() + Math.round(_ * t)), o);
140
+ };
141
+ if (s === T) return this.set(T, this.$M + t);
142
+ if (s === b) return this.set(b, this.$y + t);
143
+ if (s === p) return g(1);
144
+ if (s === w) return g(7);
145
+ var v = (n = {}, n[y] = c, n[$] = m, n[f] = a, n)[s] || 1, x = this.$d.getTime() + t * v;
146
+ return h.w(x, this);
147
+ }, r.subtract = function(t, i) {
148
+ return this.add(-1 * t, i);
149
+ }, r.format = function(t) {
150
+ var i = this, n = this.$locale();
151
+ if (!this.isValid()) return n.invalidDate || j;
152
+ var o = t || "YYYY-MM-DDTHH:mm:ssZ", s = h.z(this), g = this.$H, v = this.$m, x = this.$M, _ = n.weekdays, F = n.months, E = n.meridiem, U = function(L, N, V, P) {
153
+ return L && (L[N] || L(i, o)) || V[N].slice(0, P);
154
+ }, J = function(L) {
155
+ return h.s(g % 12 || 12, L, "0");
156
+ }, k = E || function(L, N, V) {
157
+ var P = L < 12 ? "AM" : "PM";
158
+ return V ? P.toLowerCase() : P;
159
+ };
160
+ return o.replace(B, (function(L, N) {
161
+ return N || (function(V) {
162
+ switch (V) {
163
+ case "YY":
164
+ return String(i.$y).slice(-2);
165
+ case "YYYY":
166
+ return h.s(i.$y, 4, "0");
167
+ case "M":
168
+ return x + 1;
169
+ case "MM":
170
+ return h.s(x + 1, 2, "0");
171
+ case "MMM":
172
+ return U(n.monthsShort, x, F, 3);
173
+ case "MMMM":
174
+ return U(F, x);
175
+ case "D":
176
+ return i.$D;
177
+ case "DD":
178
+ return h.s(i.$D, 2, "0");
179
+ case "d":
180
+ return String(i.$W);
181
+ case "dd":
182
+ return U(n.weekdaysMin, i.$W, _, 2);
183
+ case "ddd":
184
+ return U(n.weekdaysShort, i.$W, _, 3);
185
+ case "dddd":
186
+ return _[i.$W];
187
+ case "H":
188
+ return String(g);
189
+ case "HH":
190
+ return h.s(g, 2, "0");
191
+ case "h":
192
+ return J(1);
193
+ case "hh":
194
+ return J(2);
195
+ case "a":
196
+ return k(g, v, !0);
197
+ case "A":
198
+ return k(g, v, !1);
199
+ case "m":
200
+ return String(v);
201
+ case "mm":
202
+ return h.s(v, 2, "0");
203
+ case "s":
204
+ return String(i.$s);
205
+ case "ss":
206
+ return h.s(i.$s, 2, "0");
207
+ case "SSS":
208
+ return h.s(i.$ms, 3, "0");
209
+ case "Z":
210
+ return s;
211
+ }
212
+ return null;
213
+ })(L) || s.replace(":", "");
214
+ }));
215
+ }, r.utcOffset = function() {
216
+ return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
217
+ }, r.diff = function(t, i, n) {
218
+ var o, s = this, g = h.p(i), v = M(t), x = (v.utcOffset() - this.utcOffset()) * c, _ = this - v, F = function() {
219
+ return h.m(s, v);
220
+ };
221
+ switch (g) {
222
+ case b:
223
+ o = F() / 12;
224
+ break;
225
+ case T:
226
+ o = F();
227
+ break;
228
+ case I:
229
+ o = F() / 3;
230
+ break;
231
+ case w:
232
+ o = (_ - x) / 6048e5;
233
+ break;
234
+ case p:
235
+ o = (_ - x) / 864e5;
236
+ break;
237
+ case $:
238
+ o = _ / m;
239
+ break;
240
+ case y:
241
+ o = _ / c;
242
+ break;
243
+ case f:
244
+ o = _ / a;
245
+ break;
246
+ default:
247
+ o = _;
248
+ }
249
+ return n ? o : h.a(o);
250
+ }, r.daysInMonth = function() {
251
+ return this.endOf(T).$D;
252
+ }, r.$locale = function() {
253
+ return O[this.$L];
254
+ }, r.locale = function(t, i) {
255
+ if (!t) return this.$L;
256
+ var n = this.clone(), o = z(t, i, !0);
257
+ return o && (n.$L = o), n;
258
+ }, r.clone = function() {
259
+ return h.w(this.$d, this);
260
+ }, r.toDate = function() {
261
+ return new Date(this.valueOf());
262
+ }, r.toJSON = function() {
263
+ return this.isValid() ? this.toISOString() : null;
264
+ }, r.toISOString = function() {
265
+ return this.$d.toISOString();
266
+ }, r.toString = function() {
267
+ return this.$d.toUTCString();
268
+ }, u;
269
+ })(), ne = Z.prototype;
270
+ return M.prototype = ne, [["$ms", l], ["$s", f], ["$m", y], ["$H", $], ["$W", p], ["$M", T], ["$y", b], ["$D", D]].forEach((function(u) {
271
+ ne[u[1]] = function(r) {
272
+ return this.$g(r, u[0], u[1]);
273
+ };
274
+ })), M.extend = function(u, r) {
275
+ return u.$i || (u(r, Z, M), u.$i = !0), M;
276
+ }, M.locale = z, M.isDayjs = Y, M.unix = function(u) {
277
+ return M(1e3 * u);
278
+ }, M.en = O[S], M.Ls = O, M.p = {}, M;
279
+ }));
280
+ })(Q)), Q.exports;
281
+ }
282
+ var ye = ge();
283
+ const H = /* @__PURE__ */ ee(ye);
284
+ var G = { exports: {} }, $e = G.exports, ue;
285
+ function ve() {
286
+ return ue || (ue = 1, (function(e, d) {
287
+ (function(a, c) {
288
+ e.exports = c();
289
+ })($e, (function() {
290
+ return { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(a) {
291
+ var c = ["th", "st", "nd", "rd"], m = a % 100;
292
+ return "[" + a + (c[(m - 20) % 10] || c[m] || c[0]) + "]";
293
+ } };
294
+ }));
295
+ })(G)), G.exports;
296
+ }
297
+ var Te = ve();
298
+ const Me = /* @__PURE__ */ ee(Te);
299
+ var X = { exports: {} }, xe = X.exports, oe;
300
+ function we() {
301
+ return oe || (oe = 1, (function(e, d) {
302
+ (function(a, c) {
303
+ e.exports = c();
304
+ })(xe, (function() {
305
+ return function(a, c, m) {
306
+ a = a || {};
307
+ var l = c.prototype, f = { future: "in %s", past: "%s ago", s: "a few seconds", m: "a minute", mm: "%d minutes", h: "an hour", hh: "%d hours", d: "a day", dd: "%d days", M: "a month", MM: "%d months", y: "a year", yy: "%d years" };
308
+ function y(p, w, T, I) {
309
+ return l.fromToBase(p, w, T, I);
310
+ }
311
+ m.en.relativeTime = f, l.fromToBase = function(p, w, T, I, b) {
312
+ for (var D, j, q, B = T.$locale().relativeTime || f, C = a.thresholds || [{ l: "s", r: 44, d: "second" }, { l: "m", r: 89 }, { l: "mm", r: 44, d: "minute" }, { l: "h", r: 89 }, { l: "hh", r: 21, d: "hour" }, { l: "d", r: 35 }, { l: "dd", r: 25, d: "day" }, { l: "M", r: 45 }, { l: "MM", r: 10, d: "month" }, { l: "y", r: 17 }, { l: "yy", d: "year" }], W = C.length, R = 0; R < W; R += 1) {
313
+ var S = C[R];
314
+ S.d && (D = I ? m(p).diff(T, S.d, !0) : T.diff(p, S.d, !0));
315
+ var O = (a.rounding || Math.round)(Math.abs(D));
316
+ if (q = D > 0, O <= S.r || !S.r) {
317
+ O <= 1 && R > 0 && (S = C[R - 1]);
318
+ var A = B[S.l];
319
+ b && (O = b("" + O)), j = typeof A == "string" ? A.replace("%d", O) : A(O, w, S.l, q);
320
+ break;
321
+ }
322
+ }
323
+ if (w) return j;
324
+ var Y = q ? B.future : B.past;
325
+ return typeof Y == "function" ? Y(j) : Y.replace("%s", j);
326
+ }, l.to = function(p, w) {
327
+ return y(p, w, this, !0);
328
+ }, l.from = function(p, w) {
329
+ return y(p, w, this);
330
+ };
331
+ var $ = function(p) {
332
+ return p.$u ? m.utc() : m();
333
+ };
334
+ l.toNow = function(p) {
335
+ return this.to($(this), p);
336
+ }, l.fromNow = function(p) {
337
+ return this.from($(this), p);
338
+ };
339
+ };
340
+ }));
341
+ })(X)), X.exports;
342
+ }
343
+ var De = we();
344
+ const _e = /* @__PURE__ */ ee(De);
345
+ var K = { exports: {} }, be = K.exports, se;
346
+ function Se() {
347
+ return se || (se = 1, (function(e, d) {
348
+ (function(a, c) {
349
+ e.exports = c();
350
+ })(be, (function() {
351
+ return function(a, c, m) {
352
+ m.updateLocale = function(l, f) {
353
+ var y = m.Ls[l];
354
+ if (y) return (f ? Object.keys(f) : []).forEach((function($) {
355
+ y[$] = f[$];
356
+ })), y;
357
+ };
358
+ };
359
+ }));
360
+ })(K)), K.exports;
361
+ }
362
+ var Oe = Se();
363
+ const Le = /* @__PURE__ */ ee(Oe);
364
+ H.extend(_e);
365
+ H.extend(Le);
366
+ const Fe = {
367
+ ...Me,
368
+ name: "en-web3-modal",
369
+ relativeTime: {
370
+ future: "in %s",
371
+ past: "%s ago",
372
+ s: "%d sec",
373
+ m: "1 min",
374
+ mm: "%d min",
375
+ h: "1 hr",
376
+ hh: "%d hrs",
377
+ d: "1 d",
378
+ dd: "%d d",
379
+ M: "1 mo",
380
+ MM: "%d mo",
381
+ y: "1 yr",
382
+ yy: "%d yr"
383
+ }
384
+ }, Ie = [
385
+ "January",
386
+ "February",
387
+ "March",
388
+ "April",
389
+ "May",
390
+ "June",
391
+ "July",
392
+ "August",
393
+ "September",
394
+ "October",
395
+ "November",
396
+ "December"
397
+ ];
398
+ H.locale("en-web3-modal", Fe);
399
+ const ae = {
400
+ getMonthNameByIndex(e) {
401
+ return Ie[e];
402
+ },
403
+ getYear(e = (/* @__PURE__ */ new Date()).toISOString()) {
404
+ return H(e).year();
405
+ },
406
+ getRelativeDateFromNow(e) {
407
+ return H(e).locale("en-web3-modal").fromNow(!0);
408
+ },
409
+ formatDate(e, d = "DD MMM") {
410
+ return H(e).format(d);
411
+ }
412
+ }, Ne = 3, je = ["receive", "deposit", "borrow", "claim"], Re = ["withdraw", "repay", "burn"], ce = {
413
+ getTransactionGroupTitle(e, d) {
414
+ const a = ae.getYear(), c = ae.getMonthNameByIndex(d);
415
+ return e === a ? c : `${c} ${e}`;
416
+ },
417
+ getTransactionImages(e) {
418
+ const [d, a] = e, c = !!d && (e == null ? void 0 : e.every((f) => !!f.nft_info)), m = (e == null ? void 0 : e.length) > 1;
419
+ return (e == null ? void 0 : e.length) === 2 && !c ? [this.getTransactionImage(d), this.getTransactionImage(a)] : m ? e.map((f) => this.getTransactionImage(f)) : [this.getTransactionImage(d)];
420
+ },
421
+ getTransactionImage(e) {
422
+ return {
423
+ type: ce.getTransactionTransferTokenType(e),
424
+ url: ce.getTransactionImageURL(e)
425
+ };
426
+ },
427
+ getTransactionImageURL(e) {
428
+ var m, l, f, y, $;
429
+ let d;
430
+ const a = !!(e != null && e.nft_info), c = !!(e != null && e.fungible_info);
431
+ return e && a ? d = (f = (l = (m = e == null ? void 0 : e.nft_info) == null ? void 0 : m.content) == null ? void 0 : l.preview) == null ? void 0 : f.url : e && c && (d = ($ = (y = e == null ? void 0 : e.fungible_info) == null ? void 0 : y.icon) == null ? void 0 : $.url), d;
432
+ },
433
+ getTransactionTransferTokenType(e) {
434
+ if (e != null && e.fungible_info)
435
+ return "FUNGIBLE";
436
+ if (e != null && e.nft_info)
437
+ return "NFT";
438
+ },
439
+ getTransactionDescriptions(e) {
440
+ var T, I, b;
441
+ const d = (T = e == null ? void 0 : e.metadata) == null ? void 0 : T.operationType, a = e == null ? void 0 : e.transfers, c = ((I = e == null ? void 0 : e.transfers) == null ? void 0 : I.length) > 0, m = ((b = e == null ? void 0 : e.transfers) == null ? void 0 : b.length) > 1, l = c && (a == null ? void 0 : a.every((D) => !!(D != null && D.fungible_info))), [f, y] = a;
442
+ let $ = this.getTransferDescription(f), p = this.getTransferDescription(y);
443
+ if (!c)
444
+ return (d === "send" || d === "receive") && l ? ($ = re.getTruncateString({
445
+ string: e == null ? void 0 : e.metadata.sentFrom,
446
+ charsStart: 4,
447
+ charsEnd: 6,
448
+ truncate: "middle"
449
+ }), p = re.getTruncateString({
450
+ string: e == null ? void 0 : e.metadata.sentTo,
451
+ charsStart: 4,
452
+ charsEnd: 6,
453
+ truncate: "middle"
454
+ }), [$, p]) : [e.metadata.status];
455
+ if (m)
456
+ return a.map((D) => this.getTransferDescription(D));
457
+ let w = "";
458
+ return je.includes(d) ? w = "+" : Re.includes(d) && (w = "-"), $ = w.concat($), [$];
459
+ },
460
+ getTransferDescription(e) {
461
+ var a;
462
+ let d = "";
463
+ return e && (e != null && e.nft_info ? d = ((a = e == null ? void 0 : e.nft_info) == null ? void 0 : a.name) || "-" : e != null && e.fungible_info && (d = this.getFungibleTransferDescription(e) || "-")), d;
464
+ },
465
+ getFungibleTransferDescription(e) {
466
+ var c;
467
+ return e ? [this.getQuantityFixedValue(e == null ? void 0 : e.quantity.numeric), (c = e == null ? void 0 : e.fungible_info) == null ? void 0 : c.symbol].join(" ").trim() : null;
468
+ },
469
+ getQuantityFixedValue(e) {
470
+ return e ? parseFloat(e).toFixed(Ne) : null;
471
+ }
472
+ }, Ye = le`
473
+ :host > wui-flex:first-child {
474
+ column-gap: var(--wui-spacing-s);
475
+ padding: 7px var(--wui-spacing-l) 7px var(--wui-spacing-xs);
476
+ width: 100%;
477
+ }
478
+
479
+ wui-flex {
480
+ display: flex;
481
+ flex: 1;
482
+ }
483
+ `;
484
+ var Ue = function(e, d, a, c) {
485
+ var m = arguments.length, l = m < 3 ? d : c === null ? c = Object.getOwnPropertyDescriptor(d, a) : c, f;
486
+ if (typeof Reflect == "object" && typeof Reflect.decorate == "function") l = Reflect.decorate(e, d, a, c);
487
+ else for (var y = e.length - 1; y >= 0; y--) (f = e[y]) && (l = (m < 3 ? f(l) : m > 3 ? f(d, a, l) : f(d, a)) || l);
488
+ return m > 3 && l && Object.defineProperty(d, a, l), l;
489
+ };
490
+ let te = class extends fe {
491
+ render() {
492
+ return me`
493
+ <wui-flex alignItems="center">
494
+ <wui-shimmer width="40px" height="40px"></wui-shimmer>
495
+ <wui-flex flexDirection="column" gap="2xs">
496
+ <wui-shimmer width="72px" height="16px" borderRadius="4xs"></wui-shimmer>
497
+ <wui-shimmer width="148px" height="14px" borderRadius="4xs"></wui-shimmer>
498
+ </wui-flex>
499
+ <wui-shimmer width="24px" height="12px" borderRadius="5xs"></wui-shimmer>
500
+ </wui-flex>
501
+ `;
502
+ }
503
+ };
504
+ te.styles = [he, Ye];
505
+ te = Ue([
506
+ de("wui-transaction-list-item-loader")
507
+ ], te);
508
+ export {
509
+ ae as D,
510
+ ce as T
511
+ };
@@ -0,0 +1,181 @@
1
+ import { cz as h, cC as b, cD as w, cA as g, cB as r } from "./index-DiHImG4L.js";
2
+ import { n as o, c as v, o as p } from "./if-defined-BciplFKz.js";
3
+ import "./index-CUdQyyFn.js";
4
+ import "./index-lbhz9evJ.js";
5
+ import "./index-fxzIDZsb.js";
6
+ const x = h`
7
+ button {
8
+ column-gap: var(--wui-spacing-s);
9
+ padding: 11px 18px 11px var(--wui-spacing-s);
10
+ width: 100%;
11
+ background-color: var(--wui-color-gray-glass-002);
12
+ border-radius: var(--wui-border-radius-xs);
13
+ color: var(--wui-color-fg-250);
14
+ transition:
15
+ color var(--wui-ease-out-power-1) var(--wui-duration-md),
16
+ background-color var(--wui-ease-out-power-1) var(--wui-duration-md);
17
+ will-change: color, background-color;
18
+ }
19
+
20
+ button[data-iconvariant='square'],
21
+ button[data-iconvariant='square-blue'] {
22
+ padding: 6px 18px 6px 9px;
23
+ }
24
+
25
+ button > wui-flex {
26
+ flex: 1;
27
+ }
28
+
29
+ button > wui-image {
30
+ width: 32px;
31
+ height: 32px;
32
+ box-shadow: 0 0 0 2px var(--wui-color-gray-glass-005);
33
+ border-radius: var(--wui-border-radius-3xl);
34
+ }
35
+
36
+ button > wui-icon {
37
+ width: 36px;
38
+ height: 36px;
39
+ transition: opacity var(--wui-ease-out-power-1) var(--wui-duration-md);
40
+ will-change: opacity;
41
+ }
42
+
43
+ button > wui-icon-box[data-variant='blue'] {
44
+ box-shadow: 0 0 0 2px var(--wui-color-accent-glass-005);
45
+ }
46
+
47
+ button > wui-icon-box[data-variant='overlay'] {
48
+ box-shadow: 0 0 0 2px var(--wui-color-gray-glass-005);
49
+ }
50
+
51
+ button > wui-icon-box[data-variant='square-blue'] {
52
+ border-radius: var(--wui-border-radius-3xs);
53
+ position: relative;
54
+ border: none;
55
+ width: 36px;
56
+ height: 36px;
57
+ }
58
+
59
+ button > wui-icon-box[data-variant='square-blue']::after {
60
+ content: '';
61
+ position: absolute;
62
+ top: 0;
63
+ bottom: 0;
64
+ left: 0;
65
+ right: 0;
66
+ border-radius: inherit;
67
+ border: 1px solid var(--wui-color-accent-glass-010);
68
+ pointer-events: none;
69
+ }
70
+
71
+ button > wui-icon:last-child {
72
+ width: 14px;
73
+ height: 14px;
74
+ }
75
+
76
+ button:disabled {
77
+ color: var(--wui-color-gray-glass-020);
78
+ }
79
+
80
+ button[data-loading='true'] > wui-icon {
81
+ opacity: 0;
82
+ }
83
+
84
+ wui-loading-spinner {
85
+ position: absolute;
86
+ right: 18px;
87
+ top: 50%;
88
+ transform: translateY(-50%);
89
+ }
90
+ `;
91
+ var t = function(u, a, e, s) {
92
+ var l = arguments.length, n = l < 3 ? a : s === null ? s = Object.getOwnPropertyDescriptor(a, e) : s, c;
93
+ if (typeof Reflect == "object" && typeof Reflect.decorate == "function") n = Reflect.decorate(u, a, e, s);
94
+ else for (var d = u.length - 1; d >= 0; d--) (c = u[d]) && (n = (l < 3 ? c(n) : l > 3 ? c(a, e, n) : c(a, e)) || n);
95
+ return l > 3 && n && Object.defineProperty(a, e, n), n;
96
+ };
97
+ let i = class extends g {
98
+ constructor() {
99
+ super(...arguments), this.tabIdx = void 0, this.variant = "icon", this.disabled = !1, this.imageSrc = void 0, this.alt = void 0, this.chevron = !1, this.loading = !1;
100
+ }
101
+ render() {
102
+ return r`
103
+ <button
104
+ ?disabled=${this.loading ? !0 : !!this.disabled}
105
+ data-loading=${this.loading}
106
+ data-iconvariant=${p(this.iconVariant)}
107
+ tabindex=${p(this.tabIdx)}
108
+ >
109
+ ${this.loadingTemplate()} ${this.visualTemplate()}
110
+ <wui-flex gap="3xs">
111
+ <slot></slot>
112
+ </wui-flex>
113
+ ${this.chevronTemplate()}
114
+ </button>
115
+ `;
116
+ }
117
+ visualTemplate() {
118
+ if (this.variant === "image" && this.imageSrc)
119
+ return r`<wui-image src=${this.imageSrc} alt=${this.alt ?? "list item"}></wui-image>`;
120
+ if (this.iconVariant === "square" && this.icon && this.variant === "icon")
121
+ return r`<wui-icon name=${this.icon}></wui-icon>`;
122
+ if (this.variant === "icon" && this.icon && this.iconVariant) {
123
+ const a = ["blue", "square-blue"].includes(this.iconVariant) ? "accent-100" : "fg-200", e = this.iconVariant === "square-blue" ? "mdl" : "md", s = this.iconSize ? this.iconSize : e;
124
+ return r`
125
+ <wui-icon-box
126
+ data-variant=${this.iconVariant}
127
+ icon=${this.icon}
128
+ iconSize=${s}
129
+ background="transparent"
130
+ iconColor=${a}
131
+ backgroundColor=${a}
132
+ size=${e}
133
+ ></wui-icon-box>
134
+ `;
135
+ }
136
+ return null;
137
+ }
138
+ loadingTemplate() {
139
+ return this.loading ? r`<wui-loading-spinner
140
+ data-testid="wui-list-item-loading-spinner"
141
+ color="fg-300"
142
+ ></wui-loading-spinner>` : r``;
143
+ }
144
+ chevronTemplate() {
145
+ return this.chevron ? r`<wui-icon size="inherit" color="fg-200" name="chevronRight"></wui-icon>` : null;
146
+ }
147
+ };
148
+ i.styles = [b, w, x];
149
+ t([
150
+ o()
151
+ ], i.prototype, "icon", void 0);
152
+ t([
153
+ o()
154
+ ], i.prototype, "iconSize", void 0);
155
+ t([
156
+ o()
157
+ ], i.prototype, "tabIdx", void 0);
158
+ t([
159
+ o()
160
+ ], i.prototype, "variant", void 0);
161
+ t([
162
+ o()
163
+ ], i.prototype, "iconVariant", void 0);
164
+ t([
165
+ o({ type: Boolean })
166
+ ], i.prototype, "disabled", void 0);
167
+ t([
168
+ o()
169
+ ], i.prototype, "imageSrc", void 0);
170
+ t([
171
+ o()
172
+ ], i.prototype, "alt", void 0);
173
+ t([
174
+ o({ type: Boolean })
175
+ ], i.prototype, "chevron", void 0);
176
+ t([
177
+ o({ type: Boolean })
178
+ ], i.prototype, "loading", void 0);
179
+ i = t([
180
+ v("wui-list-item")
181
+ ], i);