@cfxjs/sirius-next-common 0.1.30 → 0.1.31

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 (641) hide show
  1. package/dist/chunk-2AC7ZHUZ.js +108 -0
  2. package/dist/chunk-2AC7ZHUZ.js.map +1 -0
  3. package/dist/chunk-2AR6AKBW.js +108 -0
  4. package/dist/chunk-2AR6AKBW.js.map +1 -0
  5. package/dist/chunk-2B37TI7M.js +3629 -0
  6. package/dist/chunk-2B37TI7M.js.map +1 -0
  7. package/dist/chunk-2DQS237U.js +49 -0
  8. package/dist/chunk-2DQS237U.js.map +1 -0
  9. package/dist/chunk-2E3ZQNAA.js +105 -0
  10. package/dist/chunk-2E3ZQNAA.js.map +1 -0
  11. package/dist/chunk-2FQTYXCR.js +150 -0
  12. package/dist/chunk-2FQTYXCR.js.map +1 -0
  13. package/dist/chunk-2JSETNZP.js +49 -0
  14. package/dist/chunk-2JSETNZP.js.map +1 -0
  15. package/dist/chunk-2PCFNEA6.js +758 -0
  16. package/dist/chunk-2PCFNEA6.js.map +1 -0
  17. package/dist/chunk-2T22R5RC.js +150 -0
  18. package/dist/chunk-2T22R5RC.js.map +1 -0
  19. package/dist/chunk-2WIJJYAY.js +49 -0
  20. package/dist/chunk-2WIJJYAY.js.map +1 -0
  21. package/dist/chunk-2YQ5ZVQZ.js +127 -0
  22. package/dist/chunk-2YQ5ZVQZ.js.map +1 -0
  23. package/dist/chunk-37UXSSTW.js +108 -0
  24. package/dist/chunk-37UXSSTW.js.map +1 -0
  25. package/dist/chunk-3CALPBQ7.js +127 -0
  26. package/dist/chunk-3CALPBQ7.js.map +1 -0
  27. package/dist/chunk-3CH6GOE2.js +2324 -0
  28. package/dist/chunk-3CH6GOE2.js.map +1 -0
  29. package/dist/chunk-3DCEGH44.js +49 -0
  30. package/dist/chunk-3DCEGH44.js.map +1 -0
  31. package/dist/chunk-3TZYM3XB.js +2324 -0
  32. package/dist/chunk-3TZYM3XB.js.map +1 -0
  33. package/dist/chunk-3UOYXVKY.js +108 -0
  34. package/dist/chunk-3UOYXVKY.js.map +1 -0
  35. package/dist/chunk-3UQ7FBUS.js +212 -0
  36. package/dist/chunk-3UQ7FBUS.js.map +1 -0
  37. package/dist/chunk-3UQICWAL.js +2324 -0
  38. package/dist/chunk-3UQICWAL.js.map +1 -0
  39. package/dist/chunk-3UXPRBHP.js +63 -0
  40. package/dist/chunk-3UXPRBHP.js.map +1 -0
  41. package/dist/chunk-42BUQGDH.js +49 -0
  42. package/dist/chunk-42BUQGDH.js.map +1 -0
  43. package/dist/chunk-4CS4RZGM.js +105 -0
  44. package/dist/chunk-4CS4RZGM.js.map +1 -0
  45. package/dist/chunk-4EPLPSHC.js +141 -0
  46. package/dist/chunk-4EPLPSHC.js.map +1 -0
  47. package/dist/chunk-4FTKGTEQ.js +37 -0
  48. package/dist/chunk-4FTKGTEQ.js.map +1 -0
  49. package/dist/chunk-4HUVV4G4.js +1061 -0
  50. package/dist/chunk-4HUVV4G4.js.map +1 -0
  51. package/dist/chunk-4MRRABBI.js +108 -0
  52. package/dist/chunk-4MRRABBI.js.map +1 -0
  53. package/dist/chunk-4OD66DPK.js +127 -0
  54. package/dist/chunk-4OD66DPK.js.map +1 -0
  55. package/dist/chunk-4QAAXRTS.js +150 -0
  56. package/dist/chunk-4QAAXRTS.js.map +1 -0
  57. package/dist/chunk-4R3OW4WV.js +49 -0
  58. package/dist/chunk-4R3OW4WV.js.map +1 -0
  59. package/dist/chunk-4XGAQWSW.js +141 -0
  60. package/dist/chunk-4XGAQWSW.js.map +1 -0
  61. package/dist/chunk-56NGLTES.js +269 -0
  62. package/dist/chunk-56NGLTES.js.map +1 -0
  63. package/dist/chunk-5AT5ED4C.js +108 -0
  64. package/dist/chunk-5AT5ED4C.js.map +1 -0
  65. package/dist/chunk-5AWTR6YM.js +108 -0
  66. package/dist/chunk-5AWTR6YM.js.map +1 -0
  67. package/dist/chunk-5AZJKXQ3.js +212 -0
  68. package/dist/chunk-5AZJKXQ3.js.map +1 -0
  69. package/dist/chunk-5BPADY7H.js +108 -0
  70. package/dist/chunk-5BPADY7H.js.map +1 -0
  71. package/dist/chunk-5D2YCZH7.js +105 -0
  72. package/dist/chunk-5D2YCZH7.js.map +1 -0
  73. package/dist/chunk-5DCCPEBX.js +767 -0
  74. package/dist/chunk-5DCCPEBX.js.map +1 -0
  75. package/dist/chunk-5ETS67V7.js +105 -0
  76. package/dist/chunk-5ETS67V7.js.map +1 -0
  77. package/dist/chunk-5FAB2ET6.js +3629 -0
  78. package/dist/chunk-5FAB2ET6.js.map +1 -0
  79. package/dist/chunk-5GQIFO2C.js +37 -0
  80. package/dist/chunk-5GQIFO2C.js.map +1 -0
  81. package/dist/chunk-5LTSU66H.js +108 -0
  82. package/dist/chunk-5LTSU66H.js.map +1 -0
  83. package/dist/chunk-5NECIPUD.js +778 -0
  84. package/dist/chunk-5NECIPUD.js.map +1 -0
  85. package/dist/chunk-5UK3W5WD.js +2324 -0
  86. package/dist/chunk-5UK3W5WD.js.map +1 -0
  87. package/dist/chunk-5XWKWJAD.js +770 -0
  88. package/dist/chunk-5XWKWJAD.js.map +1 -0
  89. package/dist/chunk-63UNTPFL.js +37 -0
  90. package/dist/chunk-63UNTPFL.js.map +1 -0
  91. package/dist/chunk-643S7PF2.js +2324 -0
  92. package/dist/chunk-643S7PF2.js.map +1 -0
  93. package/dist/chunk-65TNN5BV.js +269 -0
  94. package/dist/chunk-65TNN5BV.js.map +1 -0
  95. package/dist/chunk-6BTRTTKV.js +49 -0
  96. package/dist/chunk-6BTRTTKV.js.map +1 -0
  97. package/dist/chunk-6DIZXRIZ.js +105 -0
  98. package/dist/chunk-6DIZXRIZ.js.map +1 -0
  99. package/dist/chunk-6GMQDV7F.js +2324 -0
  100. package/dist/chunk-6GMQDV7F.js.map +1 -0
  101. package/dist/chunk-6JT6D6UK.js +3629 -0
  102. package/dist/chunk-6JT6D6UK.js.map +1 -0
  103. package/dist/chunk-6KRFZ7DC.js +150 -0
  104. package/dist/chunk-6KRFZ7DC.js.map +1 -0
  105. package/dist/chunk-6LBN5Q46.js +127 -0
  106. package/dist/chunk-6LBN5Q46.js.map +1 -0
  107. package/dist/chunk-6ROOQJXE.js +2296 -0
  108. package/dist/chunk-6ROOQJXE.js.map +1 -0
  109. package/dist/chunk-6SNDJZIT.js +2324 -0
  110. package/dist/chunk-6SNDJZIT.js.map +1 -0
  111. package/dist/chunk-73J2LHWW.js +766 -0
  112. package/dist/chunk-73J2LHWW.js.map +1 -0
  113. package/dist/chunk-77N7DIV5.js +141 -0
  114. package/dist/chunk-77N7DIV5.js.map +1 -0
  115. package/dist/chunk-7EYW7NOW.js +49 -0
  116. package/dist/chunk-7EYW7NOW.js.map +1 -0
  117. package/dist/chunk-7IMRPA27.js +212 -0
  118. package/dist/chunk-7IMRPA27.js.map +1 -0
  119. package/dist/chunk-7P6QXR7Q.js +3629 -0
  120. package/dist/chunk-7P6QXR7Q.js.map +1 -0
  121. package/dist/chunk-7SNG5Q6N.js +108 -0
  122. package/dist/chunk-7SNG5Q6N.js.map +1 -0
  123. package/dist/chunk-7TUXGBWA.js +2324 -0
  124. package/dist/chunk-7TUXGBWA.js.map +1 -0
  125. package/dist/chunk-7TYFPXZM.js +127 -0
  126. package/dist/chunk-7TYFPXZM.js.map +1 -0
  127. package/dist/chunk-7YNSLQRX.js +105 -0
  128. package/dist/chunk-7YNSLQRX.js.map +1 -0
  129. package/dist/chunk-7Z5TESDO.js +2324 -0
  130. package/dist/chunk-7Z5TESDO.js.map +1 -0
  131. package/dist/chunk-A4RC4XI2.js +127 -0
  132. package/dist/chunk-A4RC4XI2.js.map +1 -0
  133. package/dist/chunk-ABOE4BMS.js +2297 -0
  134. package/dist/chunk-ABOE4BMS.js.map +1 -0
  135. package/dist/chunk-ACXJX26I.js +105 -0
  136. package/dist/chunk-ACXJX26I.js.map +1 -0
  137. package/dist/chunk-AOM2U3NI.js +127 -0
  138. package/dist/chunk-AOM2U3NI.js.map +1 -0
  139. package/dist/chunk-ARFU4MVK.js +105 -0
  140. package/dist/chunk-ARFU4MVK.js.map +1 -0
  141. package/dist/chunk-AV36QWLU.js +150 -0
  142. package/dist/chunk-AV36QWLU.js.map +1 -0
  143. package/dist/chunk-AWMDMCWK.js +49 -0
  144. package/dist/chunk-AWMDMCWK.js.map +1 -0
  145. package/dist/chunk-AWY3VNHP.js +3629 -0
  146. package/dist/chunk-AWY3VNHP.js.map +1 -0
  147. package/dist/chunk-AXJFKTN3.js +37 -0
  148. package/dist/chunk-AXJFKTN3.js.map +1 -0
  149. package/dist/chunk-AXUVM4JN.js +212 -0
  150. package/dist/chunk-AXUVM4JN.js.map +1 -0
  151. package/dist/chunk-AYQBPPP3.js +108 -0
  152. package/dist/chunk-AYQBPPP3.js.map +1 -0
  153. package/dist/chunk-B7XL2T2N.js +212 -0
  154. package/dist/chunk-B7XL2T2N.js.map +1 -0
  155. package/dist/chunk-BAGS2LKM.js +3629 -0
  156. package/dist/chunk-BAGS2LKM.js.map +1 -0
  157. package/dist/chunk-BBOUMR6V.js +49 -0
  158. package/dist/chunk-BBOUMR6V.js.map +1 -0
  159. package/dist/chunk-BFETX63Y.js +49 -0
  160. package/dist/chunk-BFETX63Y.js.map +1 -0
  161. package/dist/chunk-BFQR73CA.js +105 -0
  162. package/dist/chunk-BFQR73CA.js.map +1 -0
  163. package/dist/chunk-BK2MPMVQ.js +127 -0
  164. package/dist/chunk-BK2MPMVQ.js.map +1 -0
  165. package/dist/chunk-BKGE22HP.js +212 -0
  166. package/dist/chunk-BKGE22HP.js.map +1 -0
  167. package/dist/chunk-BM5CLWX2.js +150 -0
  168. package/dist/chunk-BM5CLWX2.js.map +1 -0
  169. package/dist/chunk-BME5LRGA.js +127 -0
  170. package/dist/chunk-BME5LRGA.js.map +1 -0
  171. package/dist/chunk-BMKWV6MT.js +150 -0
  172. package/dist/chunk-BMKWV6MT.js.map +1 -0
  173. package/dist/chunk-BR4RAVX2.js +108 -0
  174. package/dist/chunk-BR4RAVX2.js.map +1 -0
  175. package/dist/chunk-BS7B3EMS.js +108 -0
  176. package/dist/chunk-BS7B3EMS.js.map +1 -0
  177. package/dist/chunk-BSRSPJFJ.js +141 -0
  178. package/dist/chunk-BSRSPJFJ.js.map +1 -0
  179. package/dist/chunk-BWIZHOI2.js +49 -0
  180. package/dist/chunk-BWIZHOI2.js.map +1 -0
  181. package/dist/chunk-BZCTGGQY.js +127 -0
  182. package/dist/chunk-BZCTGGQY.js.map +1 -0
  183. package/dist/chunk-CBLGE6Z2.js +779 -0
  184. package/dist/chunk-CBLGE6Z2.js.map +1 -0
  185. package/dist/chunk-CLRYFOV5.js +141 -0
  186. package/dist/chunk-CLRYFOV5.js.map +1 -0
  187. package/dist/chunk-COVHTUVF.js +212 -0
  188. package/dist/chunk-COVHTUVF.js.map +1 -0
  189. package/dist/chunk-CPLGWDEN.js +49 -0
  190. package/dist/chunk-CPLGWDEN.js.map +1 -0
  191. package/dist/chunk-CS2I5M4S.js +105 -0
  192. package/dist/chunk-CS2I5M4S.js.map +1 -0
  193. package/dist/chunk-CWKNCI2W.js +127 -0
  194. package/dist/chunk-CWKNCI2W.js.map +1 -0
  195. package/dist/chunk-DAJGXKHR.js +150 -0
  196. package/dist/chunk-DAJGXKHR.js.map +1 -0
  197. package/dist/chunk-DKGHVKPK.js +212 -0
  198. package/dist/chunk-DKGHVKPK.js.map +1 -0
  199. package/dist/chunk-DNU5RBHH.js +141 -0
  200. package/dist/chunk-DNU5RBHH.js.map +1 -0
  201. package/dist/chunk-DRC2C2XE.js +127 -0
  202. package/dist/chunk-DRC2C2XE.js.map +1 -0
  203. package/dist/chunk-E5A5UOS7.js +105 -0
  204. package/dist/chunk-E5A5UOS7.js.map +1 -0
  205. package/dist/chunk-E7DZJYTC.js +105 -0
  206. package/dist/chunk-E7DZJYTC.js.map +1 -0
  207. package/dist/chunk-EAH4G6RO.js +108 -0
  208. package/dist/chunk-EAH4G6RO.js.map +1 -0
  209. package/dist/chunk-EGQYQILY.js +108 -0
  210. package/dist/chunk-EGQYQILY.js.map +1 -0
  211. package/dist/chunk-EGUK6K2E.js +3629 -0
  212. package/dist/chunk-EGUK6K2E.js.map +1 -0
  213. package/dist/chunk-EPMPPHVT.js +63 -0
  214. package/dist/chunk-EPMPPHVT.js.map +1 -0
  215. package/dist/chunk-F5N2VQVL.js +127 -0
  216. package/dist/chunk-F5N2VQVL.js.map +1 -0
  217. package/dist/chunk-FM6YARW4.js +766 -0
  218. package/dist/chunk-FM6YARW4.js.map +1 -0
  219. package/dist/chunk-FMOYEKMX.js +150 -0
  220. package/dist/chunk-FMOYEKMX.js.map +1 -0
  221. package/dist/chunk-FN7QONW6.js +141 -0
  222. package/dist/chunk-FN7QONW6.js.map +1 -0
  223. package/dist/chunk-FTFUKDYH.js +49 -0
  224. package/dist/chunk-FTFUKDYH.js.map +1 -0
  225. package/dist/chunk-FV5EI4UG.js +105 -0
  226. package/dist/chunk-FV5EI4UG.js.map +1 -0
  227. package/dist/chunk-FX7E4E72.js +758 -0
  228. package/dist/chunk-FX7E4E72.js.map +1 -0
  229. package/dist/chunk-G23MI4SY.js +49 -0
  230. package/dist/chunk-G23MI4SY.js.map +1 -0
  231. package/dist/chunk-G2FZDHRP.js +766 -0
  232. package/dist/chunk-G2FZDHRP.js.map +1 -0
  233. package/dist/chunk-G47DON3H.js +108 -0
  234. package/dist/chunk-G47DON3H.js.map +1 -0
  235. package/dist/chunk-G5H3DYSX.js +150 -0
  236. package/dist/chunk-G5H3DYSX.js.map +1 -0
  237. package/dist/chunk-G6KXPU5Y.js +49 -0
  238. package/dist/chunk-G6KXPU5Y.js.map +1 -0
  239. package/dist/chunk-G76ZVWZ5.js +3629 -0
  240. package/dist/chunk-G76ZVWZ5.js.map +1 -0
  241. package/dist/chunk-G7H5WJQA.js +127 -0
  242. package/dist/chunk-G7H5WJQA.js.map +1 -0
  243. package/dist/chunk-GETUZDGP.js +212 -0
  244. package/dist/chunk-GETUZDGP.js.map +1 -0
  245. package/dist/chunk-GOYSTFJI.js +212 -0
  246. package/dist/chunk-GOYSTFJI.js.map +1 -0
  247. package/dist/chunk-GRMZU5Y3.js +746 -0
  248. package/dist/chunk-GRMZU5Y3.js.map +1 -0
  249. package/dist/chunk-GSNT3LIT.js +141 -0
  250. package/dist/chunk-GSNT3LIT.js.map +1 -0
  251. package/dist/chunk-GWCOFAV6.js +108 -0
  252. package/dist/chunk-GWCOFAV6.js.map +1 -0
  253. package/dist/chunk-H4EKXKHX.js +49 -0
  254. package/dist/chunk-H4EKXKHX.js.map +1 -0
  255. package/dist/chunk-H5POGX4F.js +767 -0
  256. package/dist/chunk-H5POGX4F.js.map +1 -0
  257. package/dist/chunk-HCNLEH5X.js +141 -0
  258. package/dist/chunk-HCNLEH5X.js.map +1 -0
  259. package/dist/chunk-HDBSNWZF.js +63 -0
  260. package/dist/chunk-HDBSNWZF.js.map +1 -0
  261. package/dist/chunk-HI4LLWNL.js +141 -0
  262. package/dist/chunk-HI4LLWNL.js.map +1 -0
  263. package/dist/chunk-HKECWG4I.js +2296 -0
  264. package/dist/chunk-HKECWG4I.js.map +1 -0
  265. package/dist/chunk-HREO45K7.js +141 -0
  266. package/dist/chunk-HREO45K7.js.map +1 -0
  267. package/dist/chunk-HUV734CM.js +105 -0
  268. package/dist/chunk-HUV734CM.js.map +1 -0
  269. package/dist/chunk-I2HVPERU.js +212 -0
  270. package/dist/chunk-I2HVPERU.js.map +1 -0
  271. package/dist/chunk-I3SHVWGB.js +141 -0
  272. package/dist/chunk-I3SHVWGB.js.map +1 -0
  273. package/dist/chunk-I4B3KEBY.js +212 -0
  274. package/dist/chunk-I4B3KEBY.js.map +1 -0
  275. package/dist/chunk-IJNYQOSO.js +141 -0
  276. package/dist/chunk-IJNYQOSO.js.map +1 -0
  277. package/dist/chunk-ISWSG455.js +141 -0
  278. package/dist/chunk-ISWSG455.js.map +1 -0
  279. package/dist/chunk-IVQKAQFS.js +150 -0
  280. package/dist/chunk-IVQKAQFS.js.map +1 -0
  281. package/dist/chunk-J5SUNQMH.js +1062 -0
  282. package/dist/chunk-J5SUNQMH.js.map +1 -0
  283. package/dist/chunk-JAJJXQ6R.js +108 -0
  284. package/dist/chunk-JAJJXQ6R.js.map +1 -0
  285. package/dist/chunk-JEVIVCQW.js +212 -0
  286. package/dist/chunk-JEVIVCQW.js.map +1 -0
  287. package/dist/chunk-JGBJHG5S.js +49 -0
  288. package/dist/chunk-JGBJHG5S.js.map +1 -0
  289. package/dist/chunk-JLWVE6J4.js +141 -0
  290. package/dist/chunk-JLWVE6J4.js.map +1 -0
  291. package/dist/chunk-JONQGJC6.js +150 -0
  292. package/dist/chunk-JONQGJC6.js.map +1 -0
  293. package/dist/chunk-JQDLU5RP.js +150 -0
  294. package/dist/chunk-JQDLU5RP.js.map +1 -0
  295. package/dist/chunk-JT7N2FPE.js +778 -0
  296. package/dist/chunk-JT7N2FPE.js.map +1 -0
  297. package/dist/chunk-K23KIOIQ.js +127 -0
  298. package/dist/chunk-K23KIOIQ.js.map +1 -0
  299. package/dist/chunk-KBXOVA2L.js +3629 -0
  300. package/dist/chunk-KBXOVA2L.js.map +1 -0
  301. package/dist/chunk-KEGR3BC7.js +141 -0
  302. package/dist/chunk-KEGR3BC7.js.map +1 -0
  303. package/dist/chunk-KRISRRQK.js +49 -0
  304. package/dist/chunk-KRISRRQK.js.map +1 -0
  305. package/dist/chunk-KS5VQZU6.js +212 -0
  306. package/dist/chunk-KS5VQZU6.js.map +1 -0
  307. package/dist/chunk-KUBEFPJX.js +212 -0
  308. package/dist/chunk-KUBEFPJX.js.map +1 -0
  309. package/dist/chunk-KZCHRE37.js +212 -0
  310. package/dist/chunk-KZCHRE37.js.map +1 -0
  311. package/dist/chunk-L22R6ELB.js +3629 -0
  312. package/dist/chunk-L22R6ELB.js.map +1 -0
  313. package/dist/chunk-L5P4WBYC.js +108 -0
  314. package/dist/chunk-L5P4WBYC.js.map +1 -0
  315. package/dist/chunk-L6KKNETT.js +2323 -0
  316. package/dist/chunk-L6KKNETT.js.map +1 -0
  317. package/dist/chunk-LANOR6TZ.js +105 -0
  318. package/dist/chunk-LANOR6TZ.js.map +1 -0
  319. package/dist/chunk-LLMOI6VL.js +212 -0
  320. package/dist/chunk-LLMOI6VL.js.map +1 -0
  321. package/dist/chunk-LPES3U5W.js +127 -0
  322. package/dist/chunk-LPES3U5W.js.map +1 -0
  323. package/dist/chunk-M5OZBBXW.js +150 -0
  324. package/dist/chunk-M5OZBBXW.js.map +1 -0
  325. package/dist/chunk-M6OH4YB2.js +3629 -0
  326. package/dist/chunk-M6OH4YB2.js.map +1 -0
  327. package/dist/chunk-M7OSIPU7.js +108 -0
  328. package/dist/chunk-M7OSIPU7.js.map +1 -0
  329. package/dist/chunk-M7QNX2BI.js +779 -0
  330. package/dist/chunk-M7QNX2BI.js.map +1 -0
  331. package/dist/chunk-MHIOT5V4.js +49 -0
  332. package/dist/chunk-MHIOT5V4.js.map +1 -0
  333. package/dist/chunk-MID22PKC.js +150 -0
  334. package/dist/chunk-MID22PKC.js.map +1 -0
  335. package/dist/chunk-MILMNNPH.js +108 -0
  336. package/dist/chunk-MILMNNPH.js.map +1 -0
  337. package/dist/chunk-MRUMGRKZ.js +2296 -0
  338. package/dist/chunk-MRUMGRKZ.js.map +1 -0
  339. package/dist/chunk-MW63VCD7.js +2323 -0
  340. package/dist/chunk-MW63VCD7.js.map +1 -0
  341. package/dist/chunk-MWJV7N3A.js +127 -0
  342. package/dist/chunk-MWJV7N3A.js.map +1 -0
  343. package/dist/chunk-N3XXIFR7.js +105 -0
  344. package/dist/chunk-N3XXIFR7.js.map +1 -0
  345. package/dist/chunk-NBPROBMH.js +49 -0
  346. package/dist/chunk-NBPROBMH.js.map +1 -0
  347. package/dist/chunk-NBUX6ZAG.js +150 -0
  348. package/dist/chunk-NBUX6ZAG.js.map +1 -0
  349. package/dist/chunk-NH56ZTBH.js +108 -0
  350. package/dist/chunk-NH56ZTBH.js.map +1 -0
  351. package/dist/chunk-NIWODUGJ.js +212 -0
  352. package/dist/chunk-NIWODUGJ.js.map +1 -0
  353. package/dist/chunk-NKPYG7N5.js +3629 -0
  354. package/dist/chunk-NKPYG7N5.js.map +1 -0
  355. package/dist/chunk-NYECXZIF.js +3629 -0
  356. package/dist/chunk-NYECXZIF.js.map +1 -0
  357. package/dist/chunk-O3SZWPCH.js +45 -0
  358. package/dist/chunk-O3SZWPCH.js.map +1 -0
  359. package/dist/chunk-O7MIWZWE.js +141 -0
  360. package/dist/chunk-O7MIWZWE.js.map +1 -0
  361. package/dist/chunk-OCOJJLLH.js +2324 -0
  362. package/dist/chunk-OCOJJLLH.js.map +1 -0
  363. package/dist/chunk-OGY7DCWY.js +269 -0
  364. package/dist/chunk-OGY7DCWY.js.map +1 -0
  365. package/dist/chunk-OJQKHBLY.js +269 -0
  366. package/dist/chunk-OJQKHBLY.js.map +1 -0
  367. package/dist/chunk-OKODJI45.js +127 -0
  368. package/dist/chunk-OKODJI45.js.map +1 -0
  369. package/dist/chunk-OOLQDE53.js +127 -0
  370. package/dist/chunk-OOLQDE53.js.map +1 -0
  371. package/dist/chunk-ORQLZLQK.js +3629 -0
  372. package/dist/chunk-ORQLZLQK.js.map +1 -0
  373. package/dist/chunk-OTSKDKHM.js +2324 -0
  374. package/dist/chunk-OTSKDKHM.js.map +1 -0
  375. package/dist/chunk-OXQCF5AE.js +212 -0
  376. package/dist/chunk-OXQCF5AE.js.map +1 -0
  377. package/dist/chunk-OXV3WLAV.js +108 -0
  378. package/dist/chunk-OXV3WLAV.js.map +1 -0
  379. package/dist/chunk-OZGSZQRJ.js +141 -0
  380. package/dist/chunk-OZGSZQRJ.js.map +1 -0
  381. package/dist/chunk-P3FAHSAL.js +105 -0
  382. package/dist/chunk-P3FAHSAL.js.map +1 -0
  383. package/dist/chunk-P3USRJB6.js +63 -0
  384. package/dist/chunk-P3USRJB6.js.map +1 -0
  385. package/dist/chunk-P3UYW3SM.js +3629 -0
  386. package/dist/chunk-P3UYW3SM.js.map +1 -0
  387. package/dist/chunk-PEQTB3L3.js +63 -0
  388. package/dist/chunk-PEQTB3L3.js.map +1 -0
  389. package/dist/chunk-PHCEV52K.js +212 -0
  390. package/dist/chunk-PHCEV52K.js.map +1 -0
  391. package/dist/chunk-PHTN2RMZ.js +150 -0
  392. package/dist/chunk-PHTN2RMZ.js.map +1 -0
  393. package/dist/chunk-PT4KFLVX.js +127 -0
  394. package/dist/chunk-PT4KFLVX.js.map +1 -0
  395. package/dist/chunk-PXABE2QS.js +105 -0
  396. package/dist/chunk-PXABE2QS.js.map +1 -0
  397. package/dist/chunk-PZ5F4S72.js +105 -0
  398. package/dist/chunk-PZ5F4S72.js.map +1 -0
  399. package/dist/chunk-Q5L4ZFID.js +45 -0
  400. package/dist/chunk-Q5L4ZFID.js.map +1 -0
  401. package/dist/chunk-QBNAN25Q.js +3629 -0
  402. package/dist/chunk-QBNAN25Q.js.map +1 -0
  403. package/dist/chunk-QC7YXB2A.js +49 -0
  404. package/dist/chunk-QC7YXB2A.js.map +1 -0
  405. package/dist/chunk-QCF2GOD4.js +127 -0
  406. package/dist/chunk-QCF2GOD4.js.map +1 -0
  407. package/dist/chunk-QDOLY7AE.js +150 -0
  408. package/dist/chunk-QDOLY7AE.js.map +1 -0
  409. package/dist/chunk-QJ6YJACB.js +108 -0
  410. package/dist/chunk-QJ6YJACB.js.map +1 -0
  411. package/dist/chunk-QJVWIW4W.js +3629 -0
  412. package/dist/chunk-QJVWIW4W.js.map +1 -0
  413. package/dist/chunk-QPUA5EZG.js +127 -0
  414. package/dist/chunk-QPUA5EZG.js.map +1 -0
  415. package/dist/chunk-QRFTJ5PK.js +63 -0
  416. package/dist/chunk-QRFTJ5PK.js.map +1 -0
  417. package/dist/chunk-QSIQTYRK.js +150 -0
  418. package/dist/chunk-QSIQTYRK.js.map +1 -0
  419. package/dist/chunk-QZGHLUK3.js +2324 -0
  420. package/dist/chunk-QZGHLUK3.js.map +1 -0
  421. package/dist/chunk-QZYZHE4G.js +2324 -0
  422. package/dist/chunk-QZYZHE4G.js.map +1 -0
  423. package/dist/chunk-R2L6KXXE.js +212 -0
  424. package/dist/chunk-R2L6KXXE.js.map +1 -0
  425. package/dist/chunk-R5RHNLW3.js +49 -0
  426. package/dist/chunk-R5RHNLW3.js.map +1 -0
  427. package/dist/chunk-R7IIAD6L.js +3629 -0
  428. package/dist/chunk-R7IIAD6L.js.map +1 -0
  429. package/dist/chunk-RCSIFS35.js +141 -0
  430. package/dist/chunk-RCSIFS35.js.map +1 -0
  431. package/dist/chunk-RFIFIKH5.js +212 -0
  432. package/dist/chunk-RFIFIKH5.js.map +1 -0
  433. package/dist/chunk-RILCXBSP.js +141 -0
  434. package/dist/chunk-RILCXBSP.js.map +1 -0
  435. package/dist/chunk-RJ5SEZ6H.js +105 -0
  436. package/dist/chunk-RJ5SEZ6H.js.map +1 -0
  437. package/dist/chunk-RJPQCEQ6.js +127 -0
  438. package/dist/chunk-RJPQCEQ6.js.map +1 -0
  439. package/dist/chunk-RMMHHBN4.js +2324 -0
  440. package/dist/chunk-RMMHHBN4.js.map +1 -0
  441. package/dist/chunk-RS2HFIY2.js +141 -0
  442. package/dist/chunk-RS2HFIY2.js.map +1 -0
  443. package/dist/chunk-RSVS77WU.js +150 -0
  444. package/dist/chunk-RSVS77WU.js.map +1 -0
  445. package/dist/chunk-RWPM2WRI.js +150 -0
  446. package/dist/chunk-RWPM2WRI.js.map +1 -0
  447. package/dist/chunk-RZ7RCP5B.js +779 -0
  448. package/dist/chunk-RZ7RCP5B.js.map +1 -0
  449. package/dist/chunk-RZWV4WHX.js +763 -0
  450. package/dist/chunk-RZWV4WHX.js.map +1 -0
  451. package/dist/chunk-S2HBBVDW.js +150 -0
  452. package/dist/chunk-S2HBBVDW.js.map +1 -0
  453. package/dist/chunk-S5FEAS4U.js +105 -0
  454. package/dist/chunk-S5FEAS4U.js.map +1 -0
  455. package/dist/chunk-S5IQLRFT.js +141 -0
  456. package/dist/chunk-S5IQLRFT.js.map +1 -0
  457. package/dist/chunk-SAXB4ZDO.js +37 -0
  458. package/dist/chunk-SAXB4ZDO.js.map +1 -0
  459. package/dist/chunk-SBAVNLWF.js +269 -0
  460. package/dist/chunk-SBAVNLWF.js.map +1 -0
  461. package/dist/chunk-SDZ24S2Z.js +105 -0
  462. package/dist/chunk-SDZ24S2Z.js.map +1 -0
  463. package/dist/chunk-SFALBIG7.js +105 -0
  464. package/dist/chunk-SFALBIG7.js.map +1 -0
  465. package/dist/chunk-SHSHID4W.js +3629 -0
  466. package/dist/chunk-SHSHID4W.js.map +1 -0
  467. package/dist/chunk-SJGTHUQZ.js +141 -0
  468. package/dist/chunk-SJGTHUQZ.js.map +1 -0
  469. package/dist/chunk-SKHK3IPV.js +49 -0
  470. package/dist/chunk-SKHK3IPV.js.map +1 -0
  471. package/dist/chunk-SLXQ3EER.js +212 -0
  472. package/dist/chunk-SLXQ3EER.js.map +1 -0
  473. package/dist/chunk-SRT7BZXC.js +108 -0
  474. package/dist/chunk-SRT7BZXC.js.map +1 -0
  475. package/dist/chunk-SWBY4QZF.js +779 -0
  476. package/dist/chunk-SWBY4QZF.js.map +1 -0
  477. package/dist/chunk-SZYHR3C6.js +3629 -0
  478. package/dist/chunk-SZYHR3C6.js.map +1 -0
  479. package/dist/chunk-T4TPFHMN.js +2324 -0
  480. package/dist/chunk-T4TPFHMN.js.map +1 -0
  481. package/dist/chunk-TB7BKXRR.js +127 -0
  482. package/dist/chunk-TB7BKXRR.js.map +1 -0
  483. package/dist/chunk-THSJ53VG.js +2324 -0
  484. package/dist/chunk-THSJ53VG.js.map +1 -0
  485. package/dist/chunk-TLT6LNWC.js +762 -0
  486. package/dist/chunk-TLT6LNWC.js.map +1 -0
  487. package/dist/chunk-TO6QANN4.js +3629 -0
  488. package/dist/chunk-TO6QANN4.js.map +1 -0
  489. package/dist/chunk-TRQSR7DW.js +108 -0
  490. package/dist/chunk-TRQSR7DW.js.map +1 -0
  491. package/dist/chunk-U4SMFDJW.js +49 -0
  492. package/dist/chunk-U4SMFDJW.js.map +1 -0
  493. package/dist/chunk-U6VIVFW5.js +2324 -0
  494. package/dist/chunk-U6VIVFW5.js.map +1 -0
  495. package/dist/chunk-UCTOF4ZB.js +49 -0
  496. package/dist/chunk-UCTOF4ZB.js.map +1 -0
  497. package/dist/chunk-UGUV2DJS.js +141 -0
  498. package/dist/chunk-UGUV2DJS.js.map +1 -0
  499. package/dist/chunk-UVEC2ZT3.js +2324 -0
  500. package/dist/chunk-UVEC2ZT3.js.map +1 -0
  501. package/dist/chunk-UVZ7YB5Q.js +141 -0
  502. package/dist/chunk-UVZ7YB5Q.js.map +1 -0
  503. package/dist/chunk-UXTFUCX3.js +766 -0
  504. package/dist/chunk-UXTFUCX3.js.map +1 -0
  505. package/dist/chunk-V6ES4L5B.js +105 -0
  506. package/dist/chunk-V6ES4L5B.js.map +1 -0
  507. package/dist/chunk-V77JV3LI.js +105 -0
  508. package/dist/chunk-V77JV3LI.js.map +1 -0
  509. package/dist/chunk-VA5BITJE.js +1055 -0
  510. package/dist/chunk-VA5BITJE.js.map +1 -0
  511. package/dist/chunk-VAATEBIW.js +108 -0
  512. package/dist/chunk-VAATEBIW.js.map +1 -0
  513. package/dist/chunk-VAO3CU7Z.js +127 -0
  514. package/dist/chunk-VAO3CU7Z.js.map +1 -0
  515. package/dist/chunk-VAPOFMDE.js +3629 -0
  516. package/dist/chunk-VAPOFMDE.js.map +1 -0
  517. package/dist/chunk-VFFVPHNL.js +766 -0
  518. package/dist/chunk-VFFVPHNL.js.map +1 -0
  519. package/dist/chunk-VFGZAHLS.js +2324 -0
  520. package/dist/chunk-VFGZAHLS.js.map +1 -0
  521. package/dist/chunk-VGY5HS74.js +150 -0
  522. package/dist/chunk-VGY5HS74.js.map +1 -0
  523. package/dist/chunk-VVBGPWM7.js +63 -0
  524. package/dist/chunk-VVBGPWM7.js.map +1 -0
  525. package/dist/chunk-W5QDF2MZ.js +49 -0
  526. package/dist/chunk-W5QDF2MZ.js.map +1 -0
  527. package/dist/chunk-WDIFNDEX.js +108 -0
  528. package/dist/chunk-WDIFNDEX.js.map +1 -0
  529. package/dist/chunk-WKSSRTA4.js +212 -0
  530. package/dist/chunk-WKSSRTA4.js.map +1 -0
  531. package/dist/chunk-WMKO32NA.js +269 -0
  532. package/dist/chunk-WMKO32NA.js.map +1 -0
  533. package/dist/chunk-WNFHRRSN.js +141 -0
  534. package/dist/chunk-WNFHRRSN.js.map +1 -0
  535. package/dist/chunk-WOXDTLCE.js +766 -0
  536. package/dist/chunk-WOXDTLCE.js.map +1 -0
  537. package/dist/chunk-WQA63C6Q.js +127 -0
  538. package/dist/chunk-WQA63C6Q.js.map +1 -0
  539. package/dist/chunk-WQPQHQZW.js +3629 -0
  540. package/dist/chunk-WQPQHQZW.js.map +1 -0
  541. package/dist/chunk-WZLSC3BW.js +105 -0
  542. package/dist/chunk-WZLSC3BW.js.map +1 -0
  543. package/dist/chunk-XHNBO2OJ.js +127 -0
  544. package/dist/chunk-XHNBO2OJ.js.map +1 -0
  545. package/dist/chunk-XOZZONEG.js +150 -0
  546. package/dist/chunk-XOZZONEG.js.map +1 -0
  547. package/dist/chunk-XQJF2ZL3.js +212 -0
  548. package/dist/chunk-XQJF2ZL3.js.map +1 -0
  549. package/dist/chunk-XSP66P6F.js +3629 -0
  550. package/dist/chunk-XSP66P6F.js.map +1 -0
  551. package/dist/chunk-XUF35GZZ.js +127 -0
  552. package/dist/chunk-XUF35GZZ.js.map +1 -0
  553. package/dist/chunk-XZ7I2PAE.js +212 -0
  554. package/dist/chunk-XZ7I2PAE.js.map +1 -0
  555. package/dist/chunk-XZ7IRZK6.js +127 -0
  556. package/dist/chunk-XZ7IRZK6.js.map +1 -0
  557. package/dist/chunk-Y66GAXT2.js +141 -0
  558. package/dist/chunk-Y66GAXT2.js.map +1 -0
  559. package/dist/chunk-YBZ5CS5C.js +269 -0
  560. package/dist/chunk-YBZ5CS5C.js.map +1 -0
  561. package/dist/chunk-YD5Q3Y2F.js +108 -0
  562. package/dist/chunk-YD5Q3Y2F.js.map +1 -0
  563. package/dist/chunk-YG6AABZU.js +212 -0
  564. package/dist/chunk-YG6AABZU.js.map +1 -0
  565. package/dist/chunk-YHPBVKLF.js +141 -0
  566. package/dist/chunk-YHPBVKLF.js.map +1 -0
  567. package/dist/chunk-YLEMBSEW.js +2296 -0
  568. package/dist/chunk-YLEMBSEW.js.map +1 -0
  569. package/dist/chunk-YMSK4DCV.js +141 -0
  570. package/dist/chunk-YMSK4DCV.js.map +1 -0
  571. package/dist/chunk-YN7GVWUB.js +150 -0
  572. package/dist/chunk-YN7GVWUB.js.map +1 -0
  573. package/dist/chunk-YNJXTJA7.js +212 -0
  574. package/dist/chunk-YNJXTJA7.js.map +1 -0
  575. package/dist/chunk-YO6RK4HG.js +2324 -0
  576. package/dist/chunk-YO6RK4HG.js.map +1 -0
  577. package/dist/chunk-YTHROHEF.js +108 -0
  578. package/dist/chunk-YTHROHEF.js.map +1 -0
  579. package/dist/chunk-YU46EWPE.js +141 -0
  580. package/dist/chunk-YU46EWPE.js.map +1 -0
  581. package/dist/chunk-YUN3ZAZC.js +1061 -0
  582. package/dist/chunk-YUN3ZAZC.js.map +1 -0
  583. package/dist/chunk-YVA4QJBC.js +141 -0
  584. package/dist/chunk-YVA4QJBC.js.map +1 -0
  585. package/dist/chunk-YXYTN6OZ.js +766 -0
  586. package/dist/chunk-YXYTN6OZ.js.map +1 -0
  587. package/dist/chunk-YY6H5XXH.js +108 -0
  588. package/dist/chunk-YY6H5XXH.js.map +1 -0
  589. package/dist/chunk-YYM6I7YW.js +127 -0
  590. package/dist/chunk-YYM6I7YW.js.map +1 -0
  591. package/dist/chunk-Z3OTC4H5.js +212 -0
  592. package/dist/chunk-Z3OTC4H5.js.map +1 -0
  593. package/dist/chunk-Z6NZREQ5.js +3629 -0
  594. package/dist/chunk-Z6NZREQ5.js.map +1 -0
  595. package/dist/chunk-ZARVS4SN.js +105 -0
  596. package/dist/chunk-ZARVS4SN.js.map +1 -0
  597. package/dist/chunk-ZD2MHVFB.js +212 -0
  598. package/dist/chunk-ZD2MHVFB.js.map +1 -0
  599. package/dist/chunk-ZERMPYAP.js +49 -0
  600. package/dist/chunk-ZERMPYAP.js.map +1 -0
  601. package/dist/chunk-ZEZ2ISAF.js +127 -0
  602. package/dist/chunk-ZEZ2ISAF.js.map +1 -0
  603. package/dist/chunk-ZJS7CFI7.js +212 -0
  604. package/dist/chunk-ZJS7CFI7.js.map +1 -0
  605. package/dist/chunk-ZQETFQBM.js +105 -0
  606. package/dist/chunk-ZQETFQBM.js.map +1 -0
  607. package/dist/chunk-ZRVVYM5P.js +2324 -0
  608. package/dist/chunk-ZRVVYM5P.js.map +1 -0
  609. package/dist/components/AddressContainer/CoreAddressContainer.js +7 -7
  610. package/dist/components/AddressContainer/EVMAddressContainer.js +7 -7
  611. package/dist/components/AddressContainer/addressSwitcher.js +5 -5
  612. package/dist/components/AddressContainer/addressView.js +4 -4
  613. package/dist/components/AddressContainer/label.js +3 -3
  614. package/dist/components/Age/index.js +3 -3
  615. package/dist/components/CopyButton/index.js +2 -2
  616. package/dist/components/DownloadCSV/index.js +3 -3
  617. package/dist/components/Footer/index.d.ts +5 -5
  618. package/dist/components/Footer/index.js.map +1 -1
  619. package/dist/components/GasPriceDropdown/index.js +1 -1
  620. package/dist/components/IncreasePercent/index.js +1 -1
  621. package/dist/components/InfoIconWithTooltip/index.js +2 -2
  622. package/dist/components/Modal/index.js +2 -2
  623. package/dist/components/NetworkIcon/index.d.ts +9 -0
  624. package/dist/components/NetworkIcon/index.js +20 -0
  625. package/dist/components/NetworkIcon/index.js.map +1 -0
  626. package/dist/components/PhishingAddressContainer/index.js +2 -2
  627. package/dist/components/Price/index.js +2 -2
  628. package/dist/components/Radio/index.js +1 -1
  629. package/dist/components/Select/index.js +2 -2
  630. package/dist/components/Select/select.js +2 -2
  631. package/dist/components/Text/index.js +3 -3
  632. package/dist/components/Tooltip/index.js +2 -2
  633. package/dist/components/TransactionAction/coreTransactionAction.js +7 -7
  634. package/dist/components/TransactionAction/evmTransactionAction.js +7 -7
  635. package/dist/store/types.d.ts +10 -7
  636. package/dist/utils/contractManagerTool.d.ts +21 -30
  637. package/dist/utils/contractManagerTool.js +18 -23
  638. package/dist/utils/contractManagerTool.js.map +1 -1
  639. package/dist/utils/index.d.ts +10 -7
  640. package/dist/utils/index.js +5 -1
  641. package/package.json +2 -2
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/utils/index.ts"],"sourcesContent":["import BigNumber from 'bignumber.js';\nimport dayjs from 'dayjs';\nimport { type ClassValue, clsx } from 'clsx';\nimport { twMerge } from 'tailwind-merge';\nimport { LOCALSTORAGE_KEYS_MAP, getCurrencySymbol } from './constants';\nimport { fetch } from './request';\n\nexport function cn(...inputs: ClassValue[]) {\n return twMerge(clsx(inputs));\n}\n\nexport const toThousands = (num: any, delimiter = ',', prevDelimiter = ',') => {\n if ((typeof num !== 'number' || isNaN(num)) && typeof num !== 'string')\n return '';\n let str = num + '';\n return str\n .replace(new RegExp(prevDelimiter, 'igm'), '')\n .split('.')\n .reduce((acc, cur, index) => {\n if (index) {\n return `${acc}.${cur}`;\n } else {\n return cur.replace(/(\\d{1,3})(?=(\\d{3})+(?:$|\\.))/g, `$1${delimiter}`);\n }\n }, '');\n};\n\nexport const getEllipsStr = (str: string, frontNum: number, endNum: number) => {\n if (str) {\n const length = str.length;\n if (endNum === 0 && length <= frontNum) {\n return str.substring(0, frontNum);\n }\n return (\n str.substring(0, frontNum) +\n '...' +\n str.substring(length - endNum, length)\n );\n }\n return '';\n};\n\nexport const transferToLowerCase = (str: string) => {\n return str ? str.toLowerCase() : '';\n};\n\nfunction hex2asc(pStr: string) {\n let tempstr = '';\n for (let b = 0; b < pStr.length; b += 2) {\n tempstr += String.fromCharCode(parseInt(pStr.slice(b, b + 2), 16));\n }\n return tempstr;\n}\n\nexport const hex2utf8 = (pStr: string) => {\n let tempstr = '';\n try {\n tempstr = decodeURIComponent(\n pStr.replace(/\\s+/g, '').replace(/[0-9a-f]{2}/g, '%$&'),\n );\n } catch (err) {\n tempstr = hex2asc(pStr);\n }\n return tempstr;\n};\n\n// alternative of String.prototype.replaceAll\nexport const replaceAll = (str: string, find: string, replace: string) => {\n return str.replace(\n new RegExp(find.replace(/[.*+\\-?^${}()|[\\]\\\\]/g, '\\\\$&'), 'g'),\n replace,\n );\n};\n\n/**\n * 格式化字符串,向下取整\n * @param {number|string} num 数字或字符串,应尽量使用字符串格式,数字格式如果长度超过 Number.MAX_SAFE_INTEGER 或 Number.MIN_SAFE_INTEGER 可能会有精度损失\n * @param {object} opt 配置参数\n * @returns {string} 格式化后字符串格式数字\n * @todo: 支持四舍五入,向上取整\n * @todo: 支持整数位小数设置精度\n * @todo: 支持负数格式化\n */\nexport const formatNumber = (num: number | string | BigNumber, opt?: any) => {\n // 无法通过 bignumber.js 格式化的不处理\n let bNum = new BigNumber(num).toFixed();\n if (bNum === 'NaN') {\n return '';\n }\n const option = {\n precision: 3, // 保留小数精度数(注意整数位小数的精度固定为 3,原因是受千分符影响)\n keepDecimal: true, // 是否保留小数位(注意如果整数部分带有小数位,则不保留实际小数位,原因是会显示两个小数点,会误解)\n keepZero: false, // 是否保留小数位的 0(注意此配置优先级高于 precision,会清除 precision 添加的 0)\n delimiter: ',', // 自定义分隔符\n withUnit: true, // 是否显示单位\n unit: '', // 指定单位\n ...opt,\n };\n // 0. 定义返回值\n let int = '';\n let decimal = '';\n let result = '';\n /**\n * 1. 定义单位\n * K - kilo, 10³\n * M - mega, 10⁶\n * G - giga, 10⁹\n * T - tera, 10¹²\n * P - peta, 10¹⁵\n * E - exa, 10¹⁸\n * Z - zetta, 10²¹\n * Y - yotta, 10²⁴\n */\n const UNITS = ['', 'K', 'M', 'G', 'T', 'P', 'E', 'Z', 'Y'];\n // 2. 拆分出整数和小数,小数默认值为 0\n const [intStr, decimalStr = '0'] = bNum.split('.');\n // 3. 只能处理 27 位数的单位,大于 27 位的字符串从头部截断保留\n // 3.1 获取大于小数点前 27 位的数字 intStrFront\n let intStrFront = intStr ? intStr.slice(-Infinity, -27) : 0;\n // 3.2 获取小数点前 27 位数字 intStrEnd\n let intStrEnd = intStr ? intStr.slice(-27) : 0;\n // 4. intStrEnd 转千分符形式\n const intStrEndAfterToThousands = toThousands(intStrEnd, option.delimiter);\n // 5. intStrEnd 添加单位,此处不对数字有效性做验证,即可能值为 100.000,100.000k 或 000.000Y\n let intStrEndWithUnit = '';\n\n if (option.withUnit === false) {\n intStrEndWithUnit = intStrEndAfterToThousands;\n } else {\n let unitIndex = 1;\n if (option.unit !== '' && UNITS.includes(option.unit)) {\n unitIndex =\n intStrEndAfterToThousands.split(option.delimiter).length -\n UNITS.findIndex(u => u === option.unit);\n }\n if (unitIndex > 0) {\n intStrEndWithUnit = intStrEndAfterToThousands\n .split(option.delimiter)\n .reduce((prev, curr, index, arr) => {\n const len = arr.length;\n // 无单位整数,为了后面方便处理统一格式\n if (len === 1) {\n return `${curr}.000`;\n }\n if (index === 0) {\n return curr;\n } else if (index === unitIndex) {\n return `${prev}.${curr}${UNITS[len - index]}`;\n } else if (index < unitIndex) {\n return `${prev},${curr}`;\n } else {\n return prev;\n }\n }, '');\n } else {\n intStrEndWithUnit = intStrEndAfterToThousands;\n }\n }\n // 6. 格式化整数\n if (intStrFront) {\n // 如果数字长度超过 27 位,则前面的数字用千分符分割\n int = `${toThousands(intStrFront, option.delimiter)}${\n option.delimiter\n }${intStrEndWithUnit}`;\n } else {\n int = intStrEndWithUnit;\n }\n // 7. 格式化小数\n decimal = new BigNumber(`0.${decimalStr}`).toPrecision(option.precision, 1);\n // 8. 拼接整数,小数和单位\n let unit = int.slice(-1);\n let intWithoutUnit = int;\n if (int && UNITS.includes(unit)) {\n // 8.1 整数位包含单位,则不显示实际小数部分\n if (option.keepDecimal) {\n // 保留整数位整数 + 整数位小数\n intWithoutUnit = int.slice(-Infinity, -1);\n } else {\n // 仅保留整数位整数\n intWithoutUnit = intWithoutUnit.split('.')[0] || '';\n }\n result = `${intWithoutUnit}${unit}`;\n } else {\n unit = '';\n // 8.2 整数位为 0 或无单位整数,拼接小数位\n if (option.keepDecimal) {\n result = new BigNumber(int.toString().replace(/,/g, ''))\n .plus(new BigNumber(decimal))\n .toFixed(option.precision, 1);\n } else {\n result = int.split('.')[0] || '';\n }\n intWithoutUnit = result;\n }\n // 9. 处理小数部分的 0\n if (!option.keepZero) {\n result = `${new BigNumber(\n replaceAll(intWithoutUnit, option.delimiter, ''),\n ).toFormat()}${unit}`;\n }\n // 10. 格式化千分符\n result = toThousands(result);\n return result;\n};\n\nexport const roundToFixedPrecision = (\n number: number | string,\n precision: number,\n method = 'ROUND',\n) => {\n if (number === '') {\n return '--';\n }\n if (typeof number === 'string' && number.includes('<')) {\n return number;\n }\n\n const regex = /^([+-]?[0-9]*\\.?[0-9]+)(\\D*)$/;\n let matches = String(number).match(regex);\n if (!matches) {\n matches = [String(number), ''];\n }\n const suffix = matches[2] || '';\n\n const numberFormat = parseFloat(matches[1] ?? '');\n const factor = Math.pow(10, precision);\n let resultNum: number;\n\n switch (method) {\n case 'FLOOR':\n resultNum = Math.floor(numberFormat * factor) / factor;\n break;\n case 'CEIL':\n resultNum = Math.ceil(numberFormat * factor) / factor;\n break;\n case 'ROUND':\n default:\n resultNum = Math.round((numberFormat + Number.EPSILON) * factor) / factor;\n }\n return resultNum.toFixed(precision) + suffix;\n};\n\nexport const getPercent = (\n divisor: number | string | BigNumber,\n dividend: number | string | BigNumber,\n precision?: number,\n) => {\n if (Number(dividend) === 0) return 0 + '%';\n const bnDivisor = new BigNumber(divisor);\n const bnDividend = new BigNumber(dividend);\n const percentageNum = formatNumber(\n bnDivisor.dividedBy(bnDividend).multipliedBy(100).toNumber(),\n );\n if (precision || precision === 0) {\n const percentageNumPrecision = roundToFixedPrecision(\n percentageNum,\n precision,\n );\n if (percentageNumPrecision === '100.00') {\n return '100%';\n } else if (percentageNumPrecision === '0.00') {\n return '0%';\n }\n return roundToFixedPrecision(percentageNum, precision) + '%';\n }\n\n return `${percentageNum}%`;\n};\n\nexport const formatTimeStamp = (\n time: number,\n type?: 'standard' | 'timezone',\n) => {\n let result: string;\n try {\n switch (type) {\n case 'standard':\n result = dayjs(time).format('YYYY-MM-DD HH:mm:ss');\n break;\n case 'timezone':\n result = dayjs(time).format('YYYY-MM-DD HH:mm:ss Z');\n break;\n default:\n result = dayjs(time).format('YYYY-MM-DD HH:mm:ss');\n }\n } catch (error) {\n result = '';\n }\n return result;\n};\n\nexport const fromGdripToDrip = (num: number | string) =>\n new BigNumber(num).multipliedBy(10 ** 9);\n\nexport const fromCfxToDrip = (num: number | string) =>\n new BigNumber(num).multipliedBy(10 ** 18);\n\nexport const formatBalance = (\n balance: any,\n decimals = 18,\n isShowFull = false,\n opt = {},\n ltValue?: number | string,\n) => {\n try {\n const balanceValue =\n typeof balance === 'string' || typeof balance === 'number'\n ? new BigNumber(balance)\n : balance;\n const num = balanceValue.div(new BigNumber(10).pow(decimals));\n if (num.eq(0)) {\n return num.toFixed();\n }\n if (isShowFull) {\n return toThousands(num.toFixed());\n }\n if (ltValue && num.lt(ltValue)) {\n return `<${ltValue}`;\n }\n return formatNumber(num.toString(), opt);\n } catch {\n return '';\n }\n};\n\ninterface BodyElement extends HTMLBodyElement {\n createTextRange?(): Range;\n}\nexport const selectText = (element: HTMLElement) => {\n var range: any,\n selection: any,\n body = document.body as BodyElement;\n if (body.createTextRange) {\n range = body.createTextRange();\n range.moveToElementText(element);\n range.select();\n } else if (window.getSelection) {\n selection = window.getSelection();\n range = document.createRange();\n range.selectNodeContents(element);\n selection.removeAllRanges();\n selection.addRange(range);\n }\n};\n\nexport const isHash = (str: string) => {\n return /^0x[0-9a-fA-F]{64}$/.test(str);\n};\n\nexport const isBlockHash = async (str: string) => {\n if (!isHash(str)) return false;\n let isBlock = true;\n try {\n const block: any = await fetch(`/v1/block/${str}`);\n // server side will return {} when no block found\n if (!block.hash || block.code !== undefined) isBlock = false;\n } catch (err) {\n isBlock = false;\n }\n\n return isBlock;\n};\n\nexport const isTxHash = async (str: string) => {\n if (!isHash(str)) return false;\n return !(await isBlockHash(str));\n};\n\nexport function validURL(str: string) {\n var pattern = new RegExp(\n '^(https?:\\\\/\\\\/)?' + // protocol\n '((([a-z\\\\d]([a-z\\\\d-]*[a-z\\\\d])*)\\\\.)+[a-z]{2,}|' + // domain name\n '((\\\\d{1,3}\\\\.){3}\\\\d{1,3}))' + // OR ip (v4) address\n '(\\\\:\\\\d+)?(\\\\/[-a-z\\\\d%_.~+]*)*' + // port and path\n '(\\\\?[;&a-z\\\\d%_.~+=-]*)?' + // query string\n '(\\\\#[-a-z\\\\d_]*)?$',\n 'i',\n ); // fragment locator\n return !!pattern.test(str);\n}\n\nexport function byteToKb(bytes: number) {\n return bytes / 1024;\n}\n\nexport function isObject(o: any) {\n return o !== null && typeof o === 'object' && Array.isArray(o) === false;\n}\n\nexport function checkInt(value: string, type: string) {\n const num = Number(type.slice(3));\n const min = new BigNumber(2).pow(num - 1).multipliedBy(-1);\n const max = new BigNumber(2).pow(num - 1).minus(1);\n let isType = false;\n if (!isNaN(Number(value))) {\n const valNum = new BigNumber(value);\n if (\n valNum.isInteger() &&\n valNum.isGreaterThanOrEqualTo(min) &&\n valNum.isLessThanOrEqualTo(max)\n ) {\n isType = true;\n } else {\n isType = false;\n }\n } else {\n isType = false;\n }\n return [isType, num, min.toString(), max.toString()];\n}\n\nexport function checkUint(value: string, type: string) {\n const num = Number(type.slice(4));\n const min = new BigNumber(0);\n const max = new BigNumber(Math.pow(2, num)).minus(1);\n let isType = false;\n if (!isNaN(Number(value))) {\n const valNum = new BigNumber(value);\n if (\n valNum.isInteger() &&\n valNum.isGreaterThanOrEqualTo(min) &&\n valNum.isLessThanOrEqualTo(max)\n ) {\n isType = true;\n } else {\n isType = false;\n }\n } else {\n isType = false;\n }\n return [isType, num, min.toFixed(), max.toFixed()];\n}\n\nexport function isHex(num: string, withPrefix = true) {\n const reg = withPrefix ? /^0x[0-9a-f]*$/i : /^(0x)?[0-9a-f]*$/i;\n return Boolean(num.match(reg));\n}\n\nexport function isEvenLength(str: string) {\n const length = str.length;\n return length > 0 && length % 2 === 0;\n}\n\nexport function checkBytes(value: string, type: string) {\n if (type === 'byte') {\n type = 'bytes1';\n }\n const num = Number(type.slice(5));\n let isBytes = false;\n if (!value) return [isBytes, num];\n if (isHex(value) && isEvenLength(value)) {\n if (num > 0) {\n const str = value.slice(2);\n const buffer = Buffer.from(str, 'hex');\n if (buffer.length === num) {\n isBytes = true;\n } else {\n isBytes = false;\n }\n } else {\n isBytes = true;\n }\n } else {\n isBytes = false;\n }\n return [isBytes, num];\n}\n\nexport function checkCfxType(value: string | number) {\n if (isNaN(Number(value))) {\n return false;\n }\n const valNum = new BigNumber(value);\n if (valNum.isNegative()) {\n return false;\n }\n let index = String(value).indexOf('.');\n if (index !== -1) {\n if (String(value).slice(index + 1).length > 18) {\n return false;\n } else {\n return true;\n }\n } else {\n return true;\n }\n}\n\nexport const sleep = (timeout: number) =>\n new Promise(resolve => setTimeout(resolve, timeout));\n\n// get two block interval time\nexport const getTimeByBlockInterval = (\n minuend = 0,\n subtrahend = 0,\n blockInterval = 0.5,\n) => {\n const seconds = new BigNumber(minuend)\n .minus(subtrahend)\n .multipliedBy(blockInterval)\n .toNumber();\n const dayBase = 86400;\n const hourBase = 3600;\n const days = Math.floor(seconds / dayBase);\n const deltaSecond = seconds - days * 86400;\n const hours = Math.floor(deltaSecond / hourBase);\n return { days, hours, seconds };\n};\n\n/**\n *\n * @param {number|string} data\n * @returns {boolean}\n * @example\n * 0 -> true\n * . -> true\n * 0. -> true\n * .0 -> true\n * 0.0 -> true\n * 0..0 -> false\n * x -> false\n * e -> false\n * @todo support config, such as negative and exponential notation\n */\n\n/**\n *\n * @param {number|string} data\n * @returns {boolean}\n * @example\n * 0 -> true\n * . -> false\n * 11 -> true\n * 011 -> false\n * -1 -> false\n */\nexport const isSafeNumberOrNumericStringInput = (data: string) =>\n /^\\d+\\.?\\d*$|^\\.\\d*$/.test(data);\n\nexport const isZeroOrPositiveInteger = (data: string) =>\n /^(0|[1-9]\\d*)$/.test(data);\n\nexport const parseString = (v: string) => {\n console.log('v', v);\n if (typeof v === 'string' && !v.startsWith('0x')) {\n return Buffer.from(v);\n }\n return v;\n};\n\n// process datepicker initial value\nexport const getInitialDate = (minTimestamp: number, maxTimestamp: number) => {\n const startDate = dayjs('2020-10-29T00:00:00+08:00');\n const endDate = dayjs();\n const innerMinTimestamp = minTimestamp\n ? dayjs(new Date(parseInt((minTimestamp + '000') as string)))\n : startDate;\n const innerMaxTimestamp = maxTimestamp\n ? dayjs(new Date(parseInt((maxTimestamp + '000') as string)))\n : endDate;\n const disabledDateD1 = (date: dayjs.Dayjs) =>\n date &&\n (date > innerMaxTimestamp.endOf('day') ||\n date < startDate.subtract(1, 'day').endOf('day'));\n const disabledDateD2 = (date: dayjs.Dayjs) =>\n date &&\n (date < innerMinTimestamp.subtract(1, 'day').endOf('day') ||\n date > endDate.endOf('day'));\n\n return {\n minT: innerMinTimestamp,\n maxT: innerMaxTimestamp,\n dMinT: disabledDateD1,\n dMaxT: disabledDateD2,\n };\n};\n\nexport const addIPFSGateway = (\n imgURL: string,\n IPFSGatewayURL: string,\n): string => {\n if (\n typeof imgURL === 'string' &&\n typeof IPFSGatewayURL === 'string' &&\n imgURL.startsWith('ipfs://')\n ) {\n imgURL = `${IPFSGatewayURL}/${imgURL.replace('ipfs://', 'ipfs/')}`;\n }\n\n return imgURL;\n};\n\nexport const isLikeBigNumber = (obj: any) => {\n if (obj === null || typeof obj !== 'object') {\n return false;\n }\n return 's' in obj && 'e' in obj && 'c' in obj && Array.isArray(obj.c);\n};\n\ntype NestedArray = (string | number | BigNumber | NestedArray)[];\ntype NestedObject = {\n [key: string]: BigNumber | string | NestedObject | NestedObject[];\n};\nexport const convertBigNumbersToStrings: any = (input: NestedArray) => {\n return input.map((item: any) => {\n if (item instanceof Uint8Array) {\n return item;\n }\n if (Array.isArray(item)) {\n return convertBigNumbersToStrings(item);\n } else if (\n item !== null &&\n typeof item === 'object' &&\n !isLikeBigNumber(item)\n ) {\n return convertObjBigNumbersToStrings(item);\n } else if (isLikeBigNumber(item)) {\n return item.toString(10);\n } else {\n return item;\n }\n });\n};\nexport const convertObjBigNumbersToStrings: any = (input: NestedArray) => {\n const newObj: NestedObject = {};\n if (Array.isArray(input)) {\n return convertBigNumbersToStrings(input);\n }\n for (let key in input as any) {\n if (isLikeBigNumber(input[key])) {\n newObj[key] = (input[key] as BigNumber).toString(10);\n } else if (Array.isArray(input[key])) {\n newObj[key] = convertBigNumbersToStrings(input[key]);\n } else if (typeof input[key] === 'object') {\n newObj[key] = convertObjBigNumbersToStrings(input[key] as NestedObject);\n } else {\n newObj[key] = input[key];\n }\n }\n return newObj;\n};\nexport const constprocessResultArray = (resultArray: NestedArray) => {\n if (typeof resultArray === 'string') {\n return resultArray;\n }\n const processElement: any = (element: any) => {\n if (Array.isArray(element)) {\n return element.map(processElement);\n } else if (element.type && element.type === 'Buffer') {\n let result = element.data\n .map((byte: number) => ('00' + byte.toString(16)).slice(-2))\n .join('');\n if (!result.startsWith('0x')) {\n result = '0x' + result;\n }\n return result;\n } else {\n return element;\n }\n };\n\n const inputArray = Array.isArray(resultArray) ? resultArray : [resultArray];\n return inputArray.map(processElement);\n};\n\nexport const formatLargeNumber = (number: string | number | BigNumber) => {\n const num = new BigNumber(number);\n\n if (num.isNaN()) {\n return { value: null, unit: '' };\n }\n\n const T = new BigNumber(10).pow(12);\n const P = new BigNumber(10).pow(15);\n const E = new BigNumber(10).pow(18);\n\n if (num.isGreaterThanOrEqualTo(E)) {\n const result = num.dividedBy(E);\n return {\n value: result.isNaN() ? null : result.toString(),\n unit: 'E',\n };\n } else if (num.isGreaterThanOrEqualTo(P)) {\n const result = num.dividedBy(P);\n return {\n value: result.isNaN() ? null : result.toString(),\n unit: 'P',\n };\n } else if (num.isGreaterThanOrEqualTo(T)) {\n const result = num.dividedBy(T);\n return {\n value: result.isNaN() ? null : result.toString(),\n unit: 'T',\n };\n } else {\n return {\n value: num.toString(),\n unit: '',\n };\n }\n};\n\nconst EPS = new BigNumber(1e-6);\n\nexport function transferRisk(riskStr: string) {\n const riskNum = new BigNumber(riskStr);\n\n if (riskNum.isNaN()) {\n return '';\n }\n // risk > 1e-4*(1+EPS)\n if (riskNum.isGreaterThan(new BigNumber(1e-4).times(EPS.plus(1)))) {\n return 'lv3';\n }\n // risk > 1e-6*(1+EPS)\n if (riskNum.isGreaterThan(new BigNumber(1e-6).times(EPS.plus(1)))) {\n return 'lv2';\n }\n // risk > 1e-8*(1+EPS)\n if (riskNum.isGreaterThan(new BigNumber(1e-8).times(EPS.plus(1)))) {\n return 'lv1';\n }\n return 'lv0';\n}\n\nexport const mergeDeep = (...objects: any[]): any => {\n return objects.reduce((prev, obj) => {\n if (isObject(obj)) {\n Object.keys(obj).forEach(key => {\n const pVal = prev[key];\n const oVal = obj[key];\n\n if (Array.isArray(pVal) && Array.isArray(oVal)) {\n prev[key] = pVal.concat(oVal);\n } else if (isObject(pVal) && isObject(oVal)) {\n prev[key] = mergeDeep(pVal, oVal);\n } else {\n prev[key] = oVal;\n }\n });\n }\n return prev;\n }, {});\n};\n\nexport const HIDE_IN_DOT_NET =\n /.net$/.test(window.location.host) &&\n localStorage.getItem(LOCALSTORAGE_KEYS_MAP.hideInDotNet) !== 'false';\n\nexport interface NetworksType {\n url: string;\n name: string;\n id: number;\n}\n\nexport const getNetwork = (\n networks: Array<NetworksType>,\n id: number,\n): NetworksType => {\n const defaultNetwork = { url: '', name: '', id: 0 };\n if (!Array.isArray(networks)) {\n return defaultNetwork;\n }\n const matchs = networks.filter(n => n.id === id);\n\n if (matchs && matchs[0]) {\n return matchs[0];\n } else if (networks && networks[0]) {\n return networks[0];\n }\n\n return defaultNetwork;\n};\n\nexport const coreCorrespondsToEspace = (coreId: number) => {\n const correspond: { [index: number]: number } = {\n 1029: 1030,\n 1: 71,\n };\n return correspond[coreId] || 1030;\n};\n\n/**\n * 格式化字符串\n * @param {string} str\n * @param {string} type 可能取值为:tag - contract name tag, hash, address; 如果 type 为数字,则截取对应数字 + ...,默认值为 12\n */\nexport const formatString = (\n str: string,\n type?:\n | 'tag'\n | 'hash'\n | 'address'\n | 'tokenTracker'\n | 'posAddress'\n | 'hexAddress'\n | number,\n) => {\n let result: string;\n switch (type) {\n case 'tag':\n result = getEllipsStr(str, 14, 0);\n break;\n case 'hash':\n result = getEllipsStr(str, 10, 0);\n break;\n case 'address':\n result = getEllipsStr(str, 6, 4);\n break;\n case 'tokenTracker':\n result = getEllipsStr(str, 24, 0);\n break;\n case 'posAddress':\n result = getEllipsStr(str, 10, 0);\n break;\n case 'hexAddress':\n result = getEllipsStr(str, 6, 4);\n break;\n default:\n let num = 12;\n if (typeof type === 'number') num = type;\n if (str.length > num) {\n result = getEllipsStr(str, num, 0);\n } else {\n result = str;\n }\n }\n return result;\n};\n\n/**\n *\n * @param num original number\n * @param isShowFull Whether to show all numbers\n */\nexport const fromDripToGdrip = (\n num: number | string,\n isShowFull = false,\n _opt = {},\n) => {\n const opt = {\n minNum: 0.001,\n ..._opt,\n };\n const bn = new BigNumber(num);\n let result = '0';\n if (!window.isNaN(bn.toNumber()) && bn.toNumber() !== 0) {\n const divideBn = bn.dividedBy(10 ** 9);\n if (isShowFull) {\n result = toThousands(divideBn.toFixed());\n } else {\n result = divideBn.lt(opt.minNum)\n ? '< ' + new BigNumber(opt.minNum).toString()\n : formatNumber(divideBn.toFixed(), opt);\n }\n }\n return result;\n};\n/**\n *\n * @param num original number\n * @param isShowFull Whether to show all numbers\n */\nexport const fromDripToCfx = (\n num: number | string,\n isShowFull: boolean = false,\n _opt = {},\n) => {\n const opt = {\n minNum: 0.001,\n ..._opt,\n };\n const bn = new BigNumber(num);\n let result: string = '0';\n if (!window.isNaN(bn.toNumber()) && bn.toNumber() !== 0) {\n const divideBn = bn.dividedBy(10 ** 18);\n if (isShowFull) {\n result = toThousands(divideBn.toFixed());\n } else {\n result = divideBn.lt(opt.minNum)\n ? '< ' + new BigNumber(opt.minNum).toString()\n : formatNumber(divideBn.toFixed(), opt);\n }\n }\n return result;\n};\n\n/**\n * 获取给定时间戳 from 到给定时间 to 的 duration\n * @param {string | number} from syncTimestamp\n * @param {string | number} to current serverTimestamp or current browserTimestamp\n */\nexport const getDuration = (pFrom: number, pTo?: number) => {\n try {\n const to = pTo || +new Date();\n const from = pFrom * 1000;\n\n if (from > to) {\n throw new Error('invalid timestamp pair');\n }\n\n const dayjsTo = dayjs(to);\n\n const fullDay = dayjsTo.diff(from, 'day');\n const fullHour = dayjsTo.diff(from, 'hour');\n const fullMinute = dayjsTo.diff(from, 'minute');\n\n const day = dayjsTo.diff(from, 'day');\n const hour = dayjsTo.subtract(fullDay, 'day').diff(from, 'hour');\n const minute = dayjsTo.subtract(fullHour, 'hour').diff(from, 'minute');\n const second = dayjsTo.subtract(fullMinute, 'minute').diff(from, 'second');\n\n return [day, hour, minute, second];\n } catch (e) {\n return [0, 0, 0, 0];\n }\n};\n\nconst cSymbol = getCurrencySymbol();\nexport const formatPrice = (\n price: string | number,\n symbol = cSymbol,\n): [string, string] => {\n const p = new BigNumber(price);\n let precision = 2;\n\n if (p.eq(0)) {\n return ['0', ''];\n } else if (p.lt(0.0001)) {\n return [\n '<0.0001',\n formatNumber(price || 0, {\n withUnit: false,\n precision: 18,\n keepZero: false,\n }),\n ];\n } else if (p.lt(1)) {\n precision = 4;\n } else if (p.lt(10)) {\n precision = 3;\n } else {\n precision = 2;\n }\n\n return [\n symbol +\n formatNumber(price || 0, {\n withUnit: false,\n keepZero: false,\n precision,\n }),\n '',\n ];\n};\n\nexport const getIncreasePercent = (\n _base: string | number | BigNumber,\n prev: string | number | BigNumber,\n precision = 0,\n) => {\n const base = new BigNumber(_base);\n const isNegative = base.isLessThan(prev);\n const value = Number(\n base.minus(prev).dividedBy(prev).multipliedBy(100).toFixed(precision),\n );\n\n return {\n value,\n percent: getPercent(base.minus(prev), prev, precision),\n isNegative,\n };\n};\n"],"mappings":";;;;;;;;AAAA,OAAO,eAA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AI,EAAE,UAAU,IAAI,EAAE,aAAa,GAAG,EAAE,QAAQ,SAAS;AAAA,EACtE;AAEA,SAAO;AAAA,IACL;AAAA,IACA,SAAS,WAAW,KAAK,MAAM,IAAI,GAAG,MAAM,SAAS;AAAA,IACrD;AAAA,EACF;AACF;","names":[]}
@@ -0,0 +1,141 @@
1
+ import {
2
+ useENS
3
+ } from "./chunk-HDBSNWZF.js";
4
+ import {
5
+ ContractAddress,
6
+ ContractCreatedAddress,
7
+ CoreHexAddress,
8
+ InvalidAddress,
9
+ MyAddress,
10
+ PosAddress
11
+ } from "./chunk-AXUVM4JN.js";
12
+ import {
13
+ RenderAddress
14
+ } from "./chunk-CWKNCI2W.js";
15
+ import {
16
+ formatAddress,
17
+ isCoreAddress,
18
+ isCoreContractAddress,
19
+ isZeroAddress
20
+ } from "./chunk-SBAVNLWF.js";
21
+ import {
22
+ getLabelInfo
23
+ } from "./chunk-SKHK3IPV.js";
24
+ import {
25
+ getTranslations,
26
+ useGlobalData
27
+ } from "./chunk-DQGLZCIG.js";
28
+
29
+ // src/components/AddressContainer/CoreAddressContainer.tsx
30
+ import { memo } from "react";
31
+ import { withTranslation } from "react-i18next";
32
+ import _ from "lodash";
33
+ import { Fragment, jsx } from "react/jsx-runtime";
34
+ var parseProps = (props, globalData) => {
35
+ const {
36
+ alias,
37
+ ensInfo,
38
+ t,
39
+ showAddressLabel,
40
+ showNametag,
41
+ nametagInfo,
42
+ showENSLabel
43
+ } = props;
44
+ const value = props.value || "";
45
+ const cfxAddress = formatAddress(value, "base32");
46
+ let ENSMap = ensInfo || {};
47
+ const translations = getTranslations();
48
+ let aliasLabel = alias;
49
+ if (!alias && isZeroAddress(cfxAddress)) {
50
+ aliasLabel = t(translations.general.zeroAddress);
51
+ }
52
+ let prefixIcon = null;
53
+ let officalNametag = null;
54
+ let addressLabel = null;
55
+ let ENSLabel = null;
56
+ const gENSLabel = cfxAddress && ENSMap[cfxAddress]?.name;
57
+ if (cfxAddress && showAddressLabel) {
58
+ const addressLabels = globalData?.["CONFLUX_SCAN_ADDRESS_LABELS" /* addressLabel */];
59
+ const gAddressLabel = addressLabels?.[cfxAddress];
60
+ if (gAddressLabel) {
61
+ const { label } = getLabelInfo(gAddressLabel, "tag");
62
+ addressLabel = label;
63
+ }
64
+ }
65
+ if (cfxAddress && showNametag) {
66
+ const nametags = nametagInfo?.[cfxAddress];
67
+ if (nametags) {
68
+ const nametag = nametags?.nametag ?? "";
69
+ const { label } = getLabelInfo(nametag, "nametag");
70
+ officalNametag = label;
71
+ }
72
+ }
73
+ if (showENSLabel && gENSLabel) {
74
+ const { label, icon } = getLabelInfo(gENSLabel, "ens");
75
+ ENSLabel = label;
76
+ prefixIcon = icon;
77
+ }
78
+ return {
79
+ alias: aliasLabel,
80
+ prefix: prefixIcon,
81
+ nametag: officalNametag,
82
+ addressLabel,
83
+ ENSLabel,
84
+ cfxAddress
85
+ };
86
+ };
87
+ var CoreAddressContainer = withTranslation()(
88
+ memo((props) => {
89
+ const { globalData } = useGlobalData();
90
+ const unnecessaryEns = props.ensInfo || props.showENSLabel === false;
91
+ const { ens } = useENS(unnecessaryEns ? null : props.value);
92
+ if (!props.value && !props.contractCreated) {
93
+ return /* @__PURE__ */ jsx(Fragment, { children: "--" });
94
+ }
95
+ const defaultProps = {
96
+ isFull: false,
97
+ isFullNameTag: false,
98
+ link: true,
99
+ isMe: false,
100
+ showIcon: true,
101
+ verify: false,
102
+ showAddressLabel: true,
103
+ showENSLabel: true,
104
+ showNametag: true,
105
+ ensInfo: ens
106
+ };
107
+ const mergeDefaultProps = _.assign({}, defaultProps, props);
108
+ const mergeParseProps = _.merge(
109
+ {},
110
+ mergeDefaultProps,
111
+ parseProps(mergeDefaultProps, globalData)
112
+ );
113
+ if (mergeParseProps.isPosAddress) {
114
+ return PosAddress(mergeParseProps);
115
+ }
116
+ if (!mergeParseProps.value && mergeParseProps.contractCreated) {
117
+ return ContractCreatedAddress({
118
+ ...mergeParseProps,
119
+ outputType: "base32"
120
+ });
121
+ }
122
+ if (mergeParseProps.isEspaceAddress) {
123
+ return CoreHexAddress(mergeParseProps);
124
+ }
125
+ if (!isCoreAddress(mergeParseProps.value)) {
126
+ return InvalidAddress(mergeParseProps);
127
+ }
128
+ if (isCoreContractAddress(mergeParseProps.cfxAddress)) {
129
+ return ContractAddress(mergeParseProps);
130
+ }
131
+ if (mergeParseProps.isMe) {
132
+ return MyAddress(mergeParseProps);
133
+ }
134
+ return RenderAddress(mergeParseProps);
135
+ })
136
+ );
137
+
138
+ export {
139
+ CoreAddressContainer
140
+ };
141
+ //# sourceMappingURL=chunk-GSNT3LIT.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/AddressContainer/CoreAddressContainer.tsx"],"sourcesContent":["import { memo } from 'react';\nimport { WithTranslation, withTranslation } from 'react-i18next';\nimport _ from 'lodash';\nimport {\n formatAddress,\n isCoreAddress,\n isCoreContractAddress,\n isZeroAddress,\n convertCheckSum,\n} from '../../utils/address';\nimport { useGlobalData, getTranslations } from '../../store';\nimport { LOCALSTORAGE_KEYS_MAP } from '../../utils/constants';\nimport { getLabelInfo } from './label';\nimport { useENS } from '../../utils/hooks/useENS';\n\nimport { RenderAddress } from './addressView';\nimport {\n ContractCreatedAddress,\n CoreHexAddress,\n InvalidAddress,\n ContractAddress,\n MyAddress,\n PosAddress,\n} from './addressSwitcher';\nimport { GlobalDataType } from 'src/store/types';\nimport { CoreAddressContainerProps } from './types';\n\nconst parseProps = (\n props: CoreAddressContainerProps & WithTranslation,\n globalData: GlobalDataType,\n) => {\n const {\n alias,\n ensInfo,\n t,\n showAddressLabel,\n showNametag,\n nametagInfo,\n showENSLabel,\n } = props;\n const value: string = props.value || '';\n const cfxAddress = formatAddress(value, 'base32');\n\n let ENSMap = ensInfo || {};\n\n const translations = getTranslations();\n\n let aliasLabel = alias;\n if (!alias && isZeroAddress(cfxAddress)) {\n aliasLabel = t(translations.general.zeroAddress);\n }\n\n let prefixIcon: React.ReactNode = null;\n // official name tag\n let officalNametag: React.ReactNode = null;\n // private name tag\n let addressLabel: React.ReactNode = null;\n // ens name tag\n let ENSLabel: React.ReactNode = null;\n // global ens name tag\n const gENSLabel = cfxAddress && ENSMap[cfxAddress]?.name;\n\n if (cfxAddress && showAddressLabel) {\n // global private name tag\n const addressLabels = globalData?.[LOCALSTORAGE_KEYS_MAP.addressLabel];\n const gAddressLabel = addressLabels?.[cfxAddress];\n\n if (gAddressLabel) {\n const { label } = getLabelInfo(gAddressLabel, 'tag');\n addressLabel = label;\n }\n }\n\n if (cfxAddress && showNametag) {\n const nametags = nametagInfo?.[cfxAddress];\n\n if (nametags) {\n const nametag = nametags?.nametag ?? '';\n const { label } = getLabelInfo(nametag, 'nametag');\n officalNametag = label;\n }\n }\n\n if (showENSLabel && gENSLabel) {\n const { label, icon } = getLabelInfo(gENSLabel, 'ens');\n ENSLabel = label;\n prefixIcon = icon;\n }\n\n return {\n alias: aliasLabel,\n prefix: prefixIcon,\n nametag: officalNametag,\n addressLabel,\n ENSLabel,\n cfxAddress,\n };\n};\n\nexport const CoreAddressContainer = withTranslation()(\n memo((props: CoreAddressContainerProps & WithTranslation) => {\n const { globalData } = useGlobalData();\n\n // If the interface returns Ens content, there is no need to obtain it separately, or disable the display of Ens content (in most cases on the list page).\n const unnecessaryEns = props.ensInfo || props.showENSLabel === false;\n const { ens } = useENS(unnecessaryEns ? null : props.value);\n\n // If a txn receipt has no 'to' address or 'contractCreated', show -- for temp\n if (!props.value && !props.contractCreated) {\n return <>--</>;\n }\n\n const defaultProps = {\n isFull: false,\n isFullNameTag: false,\n link: true,\n isMe: false,\n showIcon: true,\n verify: false,\n showAddressLabel: true,\n showENSLabel: true,\n showNametag: true,\n ensInfo: ens,\n };\n\n const mergeDefaultProps = _.assign({}, defaultProps, props);\n\n const mergeParseProps = _.merge(\n {},\n mergeDefaultProps,\n parseProps(mergeDefaultProps, globalData),\n );\n\n if (mergeParseProps.isPosAddress) {\n return PosAddress(mergeParseProps);\n }\n\n if (!mergeParseProps.value && mergeParseProps.contractCreated) {\n return ContractCreatedAddress({\n ...mergeParseProps,\n outputType: 'base32',\n });\n }\n\n if (mergeParseProps.isEspaceAddress) {\n return CoreHexAddress(mergeParseProps);\n }\n\n if (!isCoreAddress(mergeParseProps.value)) {\n return InvalidAddress(mergeParseProps);\n }\n\n if (isCoreContractAddress(mergeParseProps.cfxAddress)) {\n return ContractAddress(mergeParseProps);\n }\n\n if (mergeParseProps.isMe) {\n return MyAddress(mergeParseProps);\n }\n\n return RenderAddress(mergeParseProps);\n }),\n);\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,SAAS,YAAY;AACrB,SAA0B,uBAAuB;AACjD,OAAO,OAAO;AA2GD;AAlFb,IAAM,aAAa,CACjB,OACA,eACG;AACH,QAAM;AAAA,IACJ;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACF,IAAI;AACJ,QAAM,QAAgB,MAAM,SAAS;AACrC,QAAM,aAAa,cAAc,OAAO,QAAQ;AAEhD,MAAI,SAAS,WAAW,CAAC;AAEzB,QAAM,eAAe,gBAAgB;AAErC,MAAI,aAAa;AACjB,MAAI,CAAC,SAAS,cAAc,UAAU,GAAG;AACvC,iBAAa,EAAE,aAAa,QAAQ,WAAW;AAAA,EACjD;AAEA,MAAI,aAA8B;AAElC,MAAI,iBAAkC;AAEtC,MAAI,eAAgC;AAEpC,MAAI,WAA4B;AAEhC,QAAM,YAAY,cAAc,OAAO,UAAU,GAAG;AAEpD,MAAI,cAAc,kBAAkB;AAElC,UAAM,gBAAgB,6DAA+C;AACrE,UAAM,gBAAgB,gBAAgB,UAAU;AAEhD,QAAI,eAAe;AACjB,YAAM,EAAE,MAAM,IAAI,aAAa,eAAe,KAAK;AACnD,qBAAe;AAAA,IACjB;AAAA,EACF;AAEA,MAAI,cAAc,aAAa;AAC7B,UAAM,WAAW,cAAc,UAAU;AAEzC,QAAI,UAAU;AACZ,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aAAO,eAAe,eAAe;AAAA,IACvC;AAEA,QAAI,CAAC,cAAc,gBAAgB,KAAK,GAAG;AACzC,aAAO,eAAe,eAAe;AAAA,IACvC;AAEA,QAAI,sBAAsB,gBAAgB,UAAU,GAAG;AACrD,aAAO,gBAAgB,eAAe;AAAA,IACxC;AAEA,QAAI,gBAAgB,MAAM;AACxB,aAAO,UAAU,eAAe;AAAA,IAClC;AAEA,WAAO,cAAc,eAAe;AAAA,EACtC,CAAC;AACH;","names":[]}
@@ -0,0 +1,108 @@
1
+ import {
2
+ ContractAddress,
3
+ ContractCreatedAddress,
4
+ InvalidAddress,
5
+ MyAddress
6
+ } from "./chunk-KS5VQZU6.js";
7
+ import {
8
+ RenderAddress
9
+ } from "./chunk-LPES3U5W.js";
10
+ import {
11
+ convertCheckSum,
12
+ formatAddress,
13
+ isEvmAddress,
14
+ isZeroAddress
15
+ } from "./chunk-OJQKHBLY.js";
16
+ import {
17
+ getLabelInfo
18
+ } from "./chunk-SKHK3IPV.js";
19
+ import {
20
+ getTranslations,
21
+ useGlobalData
22
+ } from "./chunk-DQGLZCIG.js";
23
+
24
+ // src/components/AddressContainer/EVMAddressContainer.tsx
25
+ import { memo } from "react";
26
+ import { withTranslation } from "react-i18next";
27
+ import _ from "lodash";
28
+ import { Fragment, jsx } from "react/jsx-runtime";
29
+ var parseProps = (props, globalData) => {
30
+ const { alias, t, showAddressLabel, showNametag, nametagInfo } = props;
31
+ const value = props.value || "";
32
+ const cfxAddress = formatAddress(value, "hex");
33
+ const translations = getTranslations();
34
+ let aliasLabel = alias;
35
+ if (!alias && isZeroAddress(cfxAddress)) {
36
+ aliasLabel = t(translations.general.zeroAddress);
37
+ }
38
+ let officalNametag = null;
39
+ let addressLabel = null;
40
+ if (cfxAddress && showAddressLabel) {
41
+ const addressLabels = globalData?.["CONFLUX_SCAN_ADDRESS_LABELS" /* addressLabel */];
42
+ const gAddressLabel = addressLabels?.[convertCheckSum(cfxAddress)] || addressLabels?.[cfxAddress.toLowerCase()];
43
+ if (gAddressLabel) {
44
+ const { label } = getLabelInfo(gAddressLabel, "tag");
45
+ addressLabel = label;
46
+ }
47
+ }
48
+ if (cfxAddress && showNametag) {
49
+ const nametags = nametagInfo?.[convertCheckSum(cfxAddress)] || nametagInfo?.[cfxAddress.toLowerCase()];
50
+ if (nametags) {
51
+ const nametag = nametags?.nametag ?? "";
52
+ const { label } = getLabelInfo(nametag, "nametag");
53
+ officalNametag = label;
54
+ }
55
+ }
56
+ return {
57
+ alias: aliasLabel,
58
+ nametag: officalNametag,
59
+ addressLabel,
60
+ cfxAddress
61
+ };
62
+ };
63
+ var EVMAddressContainer = withTranslation()(
64
+ memo((props) => {
65
+ const { globalData } = useGlobalData();
66
+ if (!props.value && !props.contractCreated) {
67
+ return /* @__PURE__ */ jsx(Fragment, { children: "--" });
68
+ }
69
+ const defaultProps = {
70
+ isFull: false,
71
+ isFullNameTag: false,
72
+ link: true,
73
+ isMe: false,
74
+ showIcon: true,
75
+ verify: false,
76
+ showAddressLabel: true,
77
+ showENSLabel: true,
78
+ showNametag: true
79
+ };
80
+ const mergeDefaultProps = _.assign({}, defaultProps, props);
81
+ const mergeParseProps = _.merge(
82
+ {},
83
+ mergeDefaultProps,
84
+ parseProps(mergeDefaultProps, globalData)
85
+ );
86
+ if (!mergeParseProps.value && mergeParseProps.contractCreated) {
87
+ return ContractCreatedAddress({
88
+ ...mergeParseProps,
89
+ outputType: "hex"
90
+ });
91
+ }
92
+ if (!isEvmAddress(mergeParseProps.value)) {
93
+ return InvalidAddress(mergeParseProps);
94
+ }
95
+ if (mergeParseProps.isContract) {
96
+ return ContractAddress(mergeParseProps);
97
+ }
98
+ if (mergeParseProps.isMe) {
99
+ return MyAddress(mergeParseProps);
100
+ }
101
+ return RenderAddress(mergeParseProps);
102
+ })
103
+ );
104
+
105
+ export {
106
+ EVMAddressContainer
107
+ };
108
+ //# sourceMappingURL=chunk-GWCOFAV6.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/AddressContainer/EVMAddressContainer.tsx"],"sourcesContent":["import { memo } from 'react';\nimport { WithTranslation, withTranslation } from 'react-i18next';\nimport _ from 'lodash';\nimport {\n formatAddress,\n isEvmAddress,\n isZeroAddress,\n convertCheckSum,\n} from '../../utils/address';\nimport { useGlobalData, getTranslations } from '../../store';\nimport { LOCALSTORAGE_KEYS_MAP } from '../../utils/constants';\nimport { getLabelInfo } from './label';\n\nimport { RenderAddress } from './addressView';\nimport {\n ContractCreatedAddress,\n InvalidAddress,\n ContractAddress,\n MyAddress,\n} from './addressSwitcher';\nimport { GlobalDataType } from 'src/store/types';\nimport { EVMAddressContainerProps } from './types';\n\nconst parseProps = (\n props: EVMAddressContainerProps & WithTranslation,\n globalData: GlobalDataType,\n) => {\n const { alias, t, showAddressLabel, showNametag, nametagInfo } = props;\n const value: string = props.value || '';\n const cfxAddress = formatAddress(value, 'hex');\n\n const translations = getTranslations();\n\n let aliasLabel = alias;\n if (!alias && isZeroAddress(cfxAddress)) {\n aliasLabel = t(translations.general.zeroAddress);\n }\n\n // official name tag\n let officalNametag: React.ReactNode = null;\n // private name tag\n let addressLabel: React.ReactNode = null;\n\n if (cfxAddress && showAddressLabel) {\n // global private name tag\n const addressLabels = globalData?.[LOCALSTORAGE_KEYS_MAP.addressLabel];\n const gAddressLabel =\n addressLabels?.[convertCheckSum(cfxAddress)] ||\n addressLabels?.[cfxAddress.toLowerCase()];\n\n if (gAddressLabel) {\n const { label } = getLabelInfo(gAddressLabel, 'tag');\n addressLabel = label;\n }\n }\n\n if (cfxAddress && showNametag) {\n const nametags =\n nametagInfo?.[convertCheckSum(cfxAddress)] ||\n nametagInfo?.[cfxAddress.toLowerCase()];\n\n if (nametags) {\n const nametag = nametags?.nametag ?? '';\n const { label } = getLabelInfo(nametag, 'nametag');\n officalNametag = label;\n }\n }\n\n return {\n alias: aliasLabel,\n nametag: officalNametag,\n addressLabel,\n cfxAddress,\n };\n};\n\nexport const EVMAddressContainer = withTranslation()(\n memo((props: EVMAddressContainerProps & WithTranslation) => {\n const { globalData } = useGlobalData();\n\n // If a txn receipt has no 'to' address or 'contractCreated', show -- for temp\n if (!props.value && !props.contractCreated) {\n return <>--</>;\n }\n\n const defaultProps = {\n isFull: false,\n isFullNameTag: false,\n link: true,\n isMe: false,\n showIcon: true,\n verify: false,\n showAddressLabel: true,\n showENSLabel: true,\n showNametag: true,\n };\n\n const mergeDefaultProps = _.assign({}, defaultProps, props);\n\n const mergeParseProps = _.merge(\n {},\n mergeDefaultProps,\n parseProps(mergeDefaultProps, globalData),\n );\n\n if (!mergeParseProps.value && mergeParseProps.contractCreated) {\n return ContractCreatedAddress({\n ...mergeParseProps,\n outputType: 'hex',\n });\n }\n\n if (!isEvmAddress(mergeParseProps.value)) {\n return InvalidAddress(mergeParseProps);\n }\n\n if (mergeParseProps.isContract) {\n return ContractAddress(mergeParseProps);\n }\n\n if (mergeParseProps.isMe) {\n return MyAddress(mergeParseProps);\n }\n\n return RenderAddress(mergeParseProps);\n }),\n);\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA,SAAS,YAAY;AACrB,SAA0B,uBAAuB;AACjD,OAAO,OAAO;AAgFD;AA3Db,IAAM,aAAa,CACjB,OACA,eACG;AACH,QAAM,EAAE,OAAO,GAAG,kBAAkB,aAAa,YAAY,IAAI;AACjE,QAAM,QAAgB,MAAM,SAAS;AACrC,QAAM,aAAa,cAAc,OAAO,KAAK;AAE7C,QAAM,eAAe,gBAAgB;AAErC,MAAI,aAAa;AACjB,MAAI,CAAC,SAAS,cAAc,UAAU,GAAG;AACvC,iBAAa,EAAE,aAAa,QAAQ,WAAW;AAAA,EACjD;AAGA,MAAI,iBAAkC;AAEtC,MAAI,eAAgC;AAEpC,MAAI,cAAc,kBAAkB;AAElC,UAAM,gBAAgB,6DAA+C;AACrE,UAAM,gBACJ,gBAAgB,gBAAgB,UAAU,CAAC,KAC3C,gBAAgB,WAAW,YAAY,CAAC;AAE1C,QAAI,eAAe;AACjB,YAA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AACxB,aAAO,UAAU,eAAe;AAAA,IAClC;AAEA,WAAO,cAAc,eAAe;AAAA,EACtC,CAAC;AACH;","names":[]}
@@ -0,0 +1,49 @@
1
+ import {
2
+ Tooltip
3
+ } from "./chunk-L6KKNETT.js";
4
+ import {
5
+ getTranslations
6
+ } from "./chunk-DQGLZCIG.js";
7
+
8
+ // src/components/AddressContainer/label.tsx
9
+ import { Translation } from "react-i18next";
10
+ import { Bookmark, Hash } from "@zeit-ui/react-icons";
11
+ import ICON_ENS from "./logo-cns-7CXISC6I.svg";
12
+ import { jsx } from "react/jsx-runtime";
13
+ var getLabelInfo = (label, type) => {
14
+ const translations = getTranslations();
15
+ if (label) {
16
+ let trans = "";
17
+ let icon = null;
18
+ if (type === "tag") {
19
+ trans = translations.profile.tip.label;
20
+ icon = /* @__PURE__ */ jsx(Bookmark, { color: "var(--theme-color-gray2)", size: 16 });
21
+ } else if (type === "ens") {
22
+ trans = translations.ens.label;
23
+ icon = /* @__PURE__ */ jsx(
24
+ "img",
25
+ {
26
+ src: ICON_ENS,
27
+ className: "w-[16px] h-[16px] mb-[3px] mr-[2px]",
28
+ alt: ""
29
+ }
30
+ );
31
+ } else if (type === "nametag") {
32
+ trans = translations.nametag.label;
33
+ icon = /* @__PURE__ */ jsx(Hash, { color: "var(--theme-color-gray2)", size: 16 });
34
+ }
35
+ return {
36
+ label,
37
+ icon: /* @__PURE__ */ jsx("span", { className: "mr-[2px]", children: /* @__PURE__ */ jsx(Tooltip, { title: /* @__PURE__ */ jsx(Translation, { children: (t) => t(trans) }), children: icon }) })
38
+ };
39
+ }
40
+ return {
41
+ label: "",
42
+ icon: null
43
+ };
44
+ };
45
+
46
+ export {
47
+ getLabelInfo
48
+ };
49
+ //# sourceMappingURL=chunk-H4EKXKHX.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/AddressContainer/label.tsx"],"sourcesContent":["import { Translation } from 'react-i18next';\nimport { Bookmark, Hash } from '@zeit-ui/react-icons';\nimport { Tooltip } from '../Tooltip';\nimport { getTranslations } from '../../store';\nimport ICON_ENS from '../../images/logo-cns.svg';\n\nexport const getLabelInfo = (label: string, type: string) => {\n const translations = getTranslations();\n if (label) {\n let trans: string = '';\n let icon: React.ReactNode = null;\n\n if (type === 'tag') {\n trans = translations.profile.tip.label;\n icon = <Bookmark color=\"var(--theme-color-gray2)\" size={16} />;\n } else if (type === 'ens') {\n trans = (translations as any).ens.label;\n icon = (\n <img\n src={ICON_ENS}\n className=\"w-[16px] h-[16px] mb-[3px] mr-[2px]\"\n alt=\"\"\n />\n );\n // nametag from official operational staff\n } else if (type === 'nametag') {\n trans = translations.nametag.label;\n icon = <Hash color=\"var(--theme-color-gray2)\" size={16} />;\n }\n\n return {\n label,\n icon: (\n <span className=\"mr-[2px]\">\n <Tooltip title={<Translation>{t => t(trans)}</Translation>}>\n {icon}\n </Tooltip>\n </span>\n ),\n };\n }\n\n return {\n label: '',\n icon: null,\n };\n};\n"],"mappings":";;;;;;;;AAAA,SAAS,mBAAmB;AAC5B,SAAS,UAAU,YAAY;AAG/B,OAAO,cAAc;AAUR;AARN,IAAM,eAAe,CAAC,OAAe,SAAiB;AAC3D,QAAM,eAAe,gBAAgB;AACrC,MAAI,OAAO;AACT,QAAI,QAAgB;AACpB,QAAI,OAAwB;AAE5B,QAAI,SAAS,OAAO;AAClB,cAAQ,aAAa,QAAQ,IAAI;AACjC,aAAO,oBAAC,YAAS,OAAM,4BAA2B,MAAM,IAAI;AAAA,IAC9D,WAAW,SAAS,OAAO;AACzB,cAAS,aAAqB,IAAI;AAClC,aACE;AAAA,QAAC;AAAA;AAAA,UACC,KAAK;AAAA,UACL,WAAU;AAAA,UACV,KAAI;AAAA;AAAA,MACN;AAAA,IAGJ,WAAW,SAAS,WAAW;AAC7B,cAAQ,aAAa,QAAQ;AAC7B,aAAO,oBAAC,QAAK,OAAM,4BAA2B,MAAM,IAAI;AAAA,IAC1D;AAEA,WAAO;AAAA,MACL;AAAA,MACA,MACE,oBAAC,UAAK,WAAU,YACd,8BAAC,WAAQ,OAAO,oBAAC,eAAa,iBAAK,EAAE,KAAK,GAAE,GACzC,gBACH,GACF;AAAA,IAEJ;AAAA,EACF;AAEA,SAAO;AAAA,IACL,OAAO;AAAA,IACP,MAAM;AAAA,EACR;AACF;","names":[]}