@directcryptopay/sdk 0.2.2 → 0.2.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (228) hide show
  1. package/dist/ExchangeController-CbO41bcH.js +217 -0
  2. package/dist/HelpersUtil-DHm6EVSE.js +120 -0
  3. package/dist/NavigationUtil-kj9LEOOd.js +8 -0
  4. package/dist/PhArrowCircleDown-lsK25DCk.js +73 -0
  5. package/dist/PhArrowClockwise-NeKHZ1co.js +73 -0
  6. package/dist/PhArrowDown-C9AkNvLs.js +73 -0
  7. package/dist/PhArrowLeft-RNfIQP1X.js +73 -0
  8. package/dist/PhArrowRight-DM1tna0G.js +73 -0
  9. package/dist/PhArrowSquareOut-S5XYbAZj.js +73 -0
  10. package/dist/PhArrowUp-DmktzOWy.js +73 -0
  11. package/dist/PhArrowUpRight-BkNeW_5i.js +73 -0
  12. package/dist/PhArrowsClockwise-CQ4pG76b.js +73 -0
  13. package/dist/PhArrowsDownUp-H6gxaNM6.js +73 -0
  14. package/dist/PhArrowsLeftRight-DZSsfMR6.js +73 -0
  15. package/dist/PhBank-4_9QzqIB.js +73 -0
  16. package/dist/PhBrowser-B-JSznId.js +73 -0
  17. package/dist/PhCaretDown-vV5oHMNi.js +73 -0
  18. package/dist/PhCaretLeft-BLo6Y_f4.js +73 -0
  19. package/dist/PhCaretRight-CqQN4TT3.js +73 -0
  20. package/dist/PhCaretUp-Df7UCAHy.js +73 -0
  21. package/dist/PhCheck-gtpfK4ed.js +73 -0
  22. package/dist/PhCircleHalf-Uq7dwDYw.js +73 -0
  23. package/dist/PhClock-SDCW-NmF.js +73 -0
  24. package/dist/PhCompass-B7hgtdx-.js +73 -0
  25. package/dist/PhCopy-BcnhyXCy.js +73 -0
  26. package/dist/PhCreditCard-BJjByVgu.js +73 -0
  27. package/dist/PhCurrencyDollar-B7ZXqXBy.js +73 -0
  28. package/dist/PhDesktop-B3VKPuJx.js +73 -0
  29. package/dist/PhDeviceMobile-Bnd0TYEH.js +73 -0
  30. package/dist/PhDotsThree-yyMWyZ-R.js +73 -0
  31. package/dist/PhEnvelope-67uzHbI9.js +73 -0
  32. package/dist/PhFunnelSimple-B-DCsloI.js +73 -0
  33. package/dist/PhGlobe-TMm_6qGk.js +73 -0
  34. package/dist/PhIdentificationCard-CePPD2xc.js +73 -0
  35. package/dist/PhImage-gY96WtHR.js +73 -0
  36. package/dist/PhInfo-DRQM_ZDP.js +73 -0
  37. package/dist/PhLightbulb-B0TxPfZ1.js +73 -0
  38. package/dist/PhMagnifyingGlass-B8si5_6W.js +73 -0
  39. package/dist/PhPaperPlaneRight-DVu5PLYd.js +73 -0
  40. package/dist/PhPlus-BfTsQnUz.js +73 -0
  41. package/dist/PhPower-CxYUGOWn.js +73 -0
  42. package/dist/PhPuzzlePiece-CQ4wh0gV.js +73 -0
  43. package/dist/PhQrCode-BuJ97NYJ.js +73 -0
  44. package/dist/PhQuestion-kJoP8Mja.js +73 -0
  45. package/dist/PhQuestionMark-C46ZkFpu.js +73 -0
  46. package/dist/PhSealCheck-Eh8jVqSN.js +73 -0
  47. package/dist/PhSignOut-jk97OSVt.js +73 -0
  48. package/dist/PhSpinner-CiYOhwMg.js +73 -0
  49. package/dist/PhTrash-pxerMqzd.js +73 -0
  50. package/dist/PhUser-BMg0VV4A.js +73 -0
  51. package/dist/PhVault-DYQvx5A-.js +73 -0
  52. package/dist/PhWarning-NLC5Mj87.js +73 -0
  53. package/dist/PhWarningCircle-Ch2jU9fA.js +73 -0
  54. package/dist/PhX-Bx4wpwm3.js +73 -0
  55. package/dist/SwapController-Ch0FFTEt.js +457 -0
  56. package/dist/{ccip-BIGqktC1.js → ccip-BrGhNXIM.js} +4 -4
  57. package/dist/data-capture-CpafmuCb.js +490 -0
  58. package/dist/dcp-sdk.umd.js +7400 -6589
  59. package/dist/email-Dcg4jlai.js +344 -0
  60. package/dist/embedded-wallet-DeoRdAPw.js +820 -0
  61. package/dist/features-B9Nde43h.js +274 -0
  62. package/dist/{hashTypedData-ZH9ZnWu3.js → hashTypedData-a7b8tdkO.js} +6 -6
  63. package/dist/if-defined-k21LutCn.js +10 -0
  64. package/dist/index-9vLw53Xl.js +228 -0
  65. package/dist/index-B5wUyynz.js +107 -0
  66. package/dist/index-B8LkUrww.js +86 -0
  67. package/dist/{index-CPTcEPbD.js → index-BA0VwKg0.js} +296 -298
  68. package/dist/index-BB9JJ24N.js +125 -0
  69. package/dist/index-BCkEvPQ6.js +172 -0
  70. package/dist/index-BDeO_csr.js +171 -0
  71. package/dist/index-Bb7babLF.js +1281 -0
  72. package/dist/index-BjOhprVS.js +199 -0
  73. package/dist/{index-Dy4NyE6l.js → index-BjyMgZsf.js} +7 -7
  74. package/dist/index-BkThIDLX.js +159 -0
  75. package/dist/index-BmFs6nb7.js +209 -0
  76. package/dist/{index-5mp7WkhV.js → index-C4qc4PdD.js} +2 -2
  77. package/dist/{index-BdSIrl-R.js → index-CAPvUh14.js} +578 -570
  78. package/dist/index-CBMU3PTE.js +65 -0
  79. package/dist/index-CGwPkJLF.js +355 -0
  80. package/dist/index-CNGEqX3D.js +153 -0
  81. package/dist/index-CRlCq6IB.js +7981 -0
  82. package/dist/index-Cg_o-i9X.js +118 -0
  83. package/dist/index-D1BvhCbI.js +62 -0
  84. package/dist/index-DFi8TiHc.js +128 -0
  85. package/dist/index-DLwuveL9.js +555 -0
  86. package/dist/index-DMn7ktUQ.js +56 -0
  87. package/dist/index-DOXwtuwa.js +117 -0
  88. package/dist/index-DPPOW_Tp.js +118 -0
  89. package/dist/{index-f3LXSfM5.js → index-DQpzHpW-.js} +56 -142
  90. package/dist/{index-D6h-qfpt.js → index-DXHg5C-W.js} +5 -5
  91. package/dist/index-DcYjZV4H.js +110 -0
  92. package/dist/{index-BJ7cbG3N.js → index-DeL88Lwc.js} +36769 -40177
  93. package/dist/index-DrWVlf8b.js +46 -0
  94. package/dist/index-Dsfuc4rB.js +123 -0
  95. package/dist/index-DuTny38n.js +1175 -0
  96. package/dist/{index-D5r0iSq4.js → index-Nfjb6bV0.js} +1 -1
  97. package/dist/index-WwwdQSN2.js +85 -0
  98. package/dist/index-Yha9Afch.js +174 -0
  99. package/dist/index-cbQHN7GC.js +100 -0
  100. package/dist/{index-DobBVPe4.js → index-hyG3cYsv.js} +481 -236
  101. package/dist/index-qLxmmPaL.js +257 -0
  102. package/dist/index.js +1 -1
  103. package/dist/{localBatchGatewayRequest-CjGcn5nM.js → localBatchGatewayRequest-vfcvRH0G.js} +1 -1
  104. package/dist/onramp-BSiyOX4L.js +855 -0
  105. package/dist/{parseSignature-S8VEpRHC.js → parseSignature-CdCMAPZN.js} +2312 -2313
  106. package/dist/pay-with-exchange-CduNoMEz.js +525 -0
  107. package/dist/property-Bd8U3_QP.js +618 -0
  108. package/dist/receive-CrmptJlq.js +232 -0
  109. package/dist/ref-SOwYtCZb.js +107 -0
  110. package/dist/send-oMcHMEr6.js +1166 -0
  111. package/dist/socials-C0A4-FbY.js +620 -0
  112. package/dist/swaps-CbJJ9Ciu.js +1760 -0
  113. package/dist/{transactions-DujFkB-M.js → transactions-BDfCoBS5.js} +10 -10
  114. package/dist/w3m-modal-BjsTkny7.js +1706 -0
  115. package/package.json +3 -3
  116. package/dist/ConstantsUtil-B-_-u8aQ.js +0 -6
  117. package/dist/add-sji6scSD.js +0 -19
  118. package/dist/all-wallets-B4H-890E.js +0 -10
  119. package/dist/app-store-Z433s97G.js +0 -21
  120. package/dist/apple-b8Lxj7nb.js +0 -22
  121. package/dist/arrow-bottom-M9oWWo_9.js +0 -12
  122. package/dist/arrow-bottom-circle-N9c4CXY1.js +0 -15
  123. package/dist/arrow-left-Dw8AKfwf.js +0 -12
  124. package/dist/arrow-right-DwLQZSC_.js +0 -12
  125. package/dist/arrow-top-zhUjkBe1.js +0 -12
  126. package/dist/bank-CbQdnILK.js +0 -18
  127. package/dist/browser-xAqNwt7z.js +0 -18
  128. package/dist/card-Dr1QBmWp.js +0 -18
  129. package/dist/checkmark-BhT1dTgG.js +0 -15
  130. package/dist/checkmark-bold-CPB29wqQ.js +0 -12
  131. package/dist/chevron-bottom-BhNyx2II.js +0 -12
  132. package/dist/chevron-left-CGuEjQlY.js +0 -12
  133. package/dist/chevron-right-CvIRRsqZ.js +0 -12
  134. package/dist/chevron-top-RSzCqjBd.js +0 -12
  135. package/dist/chrome-store-Cs8dAgs0.js +0 -65
  136. package/dist/clock-fhZO5otC.js +0 -12
  137. package/dist/close-BPuztrdR.js +0 -12
  138. package/dist/coinPlaceholder-C8X2i7Kh.js +0 -12
  139. package/dist/compass-WMc5huk0.js +0 -12
  140. package/dist/copy-DVAeT17y.js +0 -19
  141. package/dist/cursor-BJ4YLXfy.js +0 -7
  142. package/dist/cursor-transparent-DN2fLQN4.js +0 -16
  143. package/dist/desktop-6avxisBw.js +0 -13
  144. package/dist/disconnect-AReVI8Gk.js +0 -12
  145. package/dist/discord-CxrI30BZ.js +0 -21
  146. package/dist/email-B8dIIaay.js +0 -696
  147. package/dist/embedded-wallet-C_5hF7rM.js +0 -468
  148. package/dist/etherscan-BnAy8cIF.js +0 -10
  149. package/dist/exclamation-triangle-Bu7nHwx9.js +0 -8
  150. package/dist/extension-F0LIhvcf.js +0 -12
  151. package/dist/external-link-CP6phyaM.js +0 -12
  152. package/dist/facebook-BtQ-Io2y.js +0 -30
  153. package/dist/farcaster-BmaN1ugd.js +0 -16
  154. package/dist/filters-DpEwoOmy.js +0 -12
  155. package/dist/github-q7qO9V-b.js +0 -22
  156. package/dist/google-DH_ZE8bW.js +0 -22
  157. package/dist/help-circle-BAQVmKas.js +0 -16
  158. package/dist/id-Cj68Zwgo.js +0 -16
  159. package/dist/if-defined-CNte9B3N.js +0 -744
  160. package/dist/image-BKJDw6N-.js +0 -8
  161. package/dist/index-7toZMdtG.js +0 -573
  162. package/dist/index-B1uKzdvN.js +0 -170
  163. package/dist/index-BHFZVF-b.js +0 -257
  164. package/dist/index-BKwa5JSA.js +0 -559
  165. package/dist/index-BP4B9VUt.js +0 -54
  166. package/dist/index-BVdzXHpO.js +0 -181
  167. package/dist/index-BYND0GJ9.js +0 -146
  168. package/dist/index-BaJ0zEbh.js +0 -97
  169. package/dist/index-Bh0MPFwP.js +0 -58
  170. package/dist/index-Bsh7_qTp.js +0 -511
  171. package/dist/index-BwnXTNNg.js +0 -199
  172. package/dist/index-C0kPDbg_.js +0 -77
  173. package/dist/index-CKikVKe2.js +0 -75
  174. package/dist/index-ChVh0Hkp.js +0 -243
  175. package/dist/index-Cle_NnnS.js +0 -305
  176. package/dist/index-CmWdvIFT.js +0 -51
  177. package/dist/index-D2AMA8Bu.js +0 -65
  178. package/dist/index-DAUM8CO4.js +0 -65
  179. package/dist/index-DGjZW6uR.js +0 -78
  180. package/dist/index-DQe94z7X.js +0 -265
  181. package/dist/index-DTo6w99t.js +0 -7864
  182. package/dist/index-DYdXjap2.js +0 -320
  183. package/dist/index-DceCxNV5.js +0 -181
  184. package/dist/index-Uw9cSw0q.js +0 -294
  185. package/dist/index-qiuyrukh.js +0 -45
  186. package/dist/index-zddvaohA.js +0 -78
  187. package/dist/info-RfPsmroW.js +0 -7
  188. package/dist/info-circle-DFKHB_ZN.js +0 -16
  189. package/dist/lightbulb-B-Bykj9X.js +0 -7
  190. package/dist/mail-mBAgGuw5.js +0 -12
  191. package/dist/mobile-Dhh3ndkf.js +0 -13
  192. package/dist/more-D1h7UTvg.js +0 -15
  193. package/dist/network-placeholder-Dqynvc-t.js +0 -18
  194. package/dist/nftPlaceholder-Df7MW4MM.js +0 -12
  195. package/dist/off-BmG3cHTX.js +0 -12
  196. package/dist/onramp-C401Aenb.js +0 -1279
  197. package/dist/play-store-4q1fzL_P.js +0 -36
  198. package/dist/plus-603Gs3yG.js +0 -17
  199. package/dist/qr-code-Dgwhf6M1.js +0 -10
  200. package/dist/receive-CYXbbEUR.js +0 -186
  201. package/dist/recycle-horizontal-Bu8zZ563.js +0 -13
  202. package/dist/ref-DpmKRWBK.js +0 -41
  203. package/dist/refresh-BMZFu0mu.js +0 -12
  204. package/dist/reown-logo-BXph7ThY.js +0 -16
  205. package/dist/search-Cm_V42Y_.js +0 -12
  206. package/dist/secp256k1-C0iX1TUr.js +0 -1510
  207. package/dist/secp256k1-DOQBqE4Z.js +0 -1302
  208. package/dist/send-BSMYxDuP.js +0 -19
  209. package/dist/send-C8EeIzRB.js +0 -1038
  210. package/dist/socials-DQrHQajs.js +0 -574
  211. package/dist/swapHorizontal-98rnJewS.js +0 -12
  212. package/dist/swapHorizontalBold-C299FjEt.js +0 -12
  213. package/dist/swapHorizontalMedium-Cqm6i4WJ.js +0 -20
  214. package/dist/swapHorizontalRoundedBold-De7hFfqZ.js +0 -12
  215. package/dist/swapVertical-DSL75l8L.js +0 -12
  216. package/dist/swaps-BuTNp65Y.js +0 -1637
  217. package/dist/telegram-cJP7hgUb.js +0 -20
  218. package/dist/three-dots-DHnEh28O.js +0 -9
  219. package/dist/twitch-CR2iGcBo.js +0 -22
  220. package/dist/twitterIcon-E5TAQjOn.js +0 -10
  221. package/dist/verify-DEukUJp0.js +0 -12
  222. package/dist/verify-filled-BXsx1i_p.js +0 -12
  223. package/dist/w3m-modal-Bm7BqVng.js +0 -1037
  224. package/dist/wallet-CzyyvdrT.js +0 -12
  225. package/dist/wallet-placeholder-BrcmyGEe.js +0 -18
  226. package/dist/walletconnect-BSYogWiE.js +0 -36
  227. package/dist/warning-circle-Cgp2BW3m.js +0 -16
  228. package/dist/x-BJinLpTw.js +0 -16
@@ -1,511 +0,0 @@
1
- import { U as re, c as de } from "./if-defined-CNte9B3N.js";
2
- import { dO as ee, cE as le, cH as he, cF as fe, cG as me } from "./index-BJ7cbG3N.js";
3
- import "./index-C0kPDbg_.js";
4
- var P = { exports: {} }, pe = P.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+)?$/, W = /\[([^\]]+)]|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, B = { 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
- } }, C = 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: C, z: function(u) {
17
- var r = -u.utcOffset(), t = Math.abs(r), i = Math.floor(t / 60), n = t % 60;
18
- return (r <= 0 ? "+" : "-") + C(i, 2, "0") + ":" + C(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] = B;
31
- var k = "$isDayjsObject", Y = function(u) {
32
- return u instanceof z || !(!u || !u[k]);
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[k] = !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(U, L) {
96
- var N = h.w(n.$u ? Date.UTC(n.$y, L, U) : new Date(n.$y, L, U), n);
97
- return o ? N : N.endOf(p);
98
- }, v = function(U, L) {
99
- return h.w(n.toDate()[U].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, A = "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 E = this.$locale().weekStart || 0, J = (x < E ? x + 7 : x) - E;
108
- return g(o ? F - J : F + (6 - J), _);
109
- case p:
110
- case D:
111
- return v(A + "Hours", 0);
112
- case $:
113
- return v(A + "Minutes", 1);
114
- case y:
115
- return v(A + "Seconds", 2);
116
- case f:
117
- return v(A + "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, A = n.meridiem, E = function(L, N, V, G) {
153
- return L && (L[N] || L(i, o)) || V[N].slice(0, G);
154
- }, J = function(L) {
155
- return h.s(g % 12 || 12, L, "0");
156
- }, U = A || function(L, N, V) {
157
- var G = L < 12 ? "AM" : "PM";
158
- return V ? G.toLowerCase() : G;
159
- };
160
- return o.replace(W, (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 E(n.monthsShort, x, F, 3);
173
- case "MMMM":
174
- return E(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 E(n.weekdaysMin, i.$W, _, 2);
183
- case "ddd":
184
- return E(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 U(g, v, !0);
197
- case "A":
198
- return U(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
- })(P)), P.exports;
281
- }
282
- var ye = ge();
283
- const H = /* @__PURE__ */ ee(ye);
284
- var Q = { exports: {} }, $e = Q.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
- })(Q)), Q.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, W = T.$locale().relativeTime || f, B = 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" }], C = B.length, R = 0; R < C; R += 1) {
313
- var S = B[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 = B[R - 1]);
318
- var k = W[S.l];
319
- b && (O = b("" + O)), j = typeof k == "string" ? k.replace("%d", O) : k(O, w, S.l, q);
320
- break;
321
- }
322
- }
323
- if (w) return j;
324
- var Y = q ? W.future : W.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 Ee = 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 = Ee([
506
- de("wui-transaction-list-item-loader")
507
- ], te);
508
- export {
509
- ae as D,
510
- ce as T
511
- };