@reown/appkit-cdn 1.8.15-viem-upgrade.0 → 1.8.15-wc-linking-reset-headless.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (429) hide show
  1. package/dist/ConstantsUtil-CbwdoWl-.js +24 -0
  2. package/dist/ConstantsUtil-CbwdoWl-.js.map +1 -0
  3. package/dist/ExchangeController-Dqyc5bBG.js +265 -0
  4. package/dist/ExchangeController-Dqyc5bBG.js.map +1 -0
  5. package/dist/HelpersUtil-DU2h_IDh.js +141 -0
  6. package/dist/HelpersUtil-DU2h_IDh.js.map +1 -0
  7. package/dist/NavigationUtil-Ci15WS4K.js +9 -0
  8. package/dist/NavigationUtil-Ci15WS4K.js.map +1 -0
  9. package/dist/PhArrowCircleDown-B41iUlWV.js +74 -0
  10. package/dist/PhArrowCircleDown-B41iUlWV.js.map +1 -0
  11. package/dist/PhArrowClockwise-BY8u5n41.js +74 -0
  12. package/dist/PhArrowClockwise-BY8u5n41.js.map +1 -0
  13. package/dist/PhArrowDown-ClD8GZ65.js +74 -0
  14. package/dist/PhArrowDown-ClD8GZ65.js.map +1 -0
  15. package/dist/PhArrowLeft-B8MXUz60.js +74 -0
  16. package/dist/PhArrowLeft-B8MXUz60.js.map +1 -0
  17. package/dist/PhArrowRight-Cewa_Slb.js +74 -0
  18. package/dist/PhArrowRight-Cewa_Slb.js.map +1 -0
  19. package/dist/PhArrowSquareOut-whgWh-lD.js +74 -0
  20. package/dist/PhArrowSquareOut-whgWh-lD.js.map +1 -0
  21. package/dist/PhArrowUp-B1HXBxie.js +74 -0
  22. package/dist/PhArrowUp-B1HXBxie.js.map +1 -0
  23. package/dist/PhArrowUpRight-CfFYe4FP.js +74 -0
  24. package/dist/PhArrowUpRight-CfFYe4FP.js.map +1 -0
  25. package/dist/PhArrowsClockwise-gL1Gkrtx.js +74 -0
  26. package/dist/PhArrowsClockwise-gL1Gkrtx.js.map +1 -0
  27. package/dist/PhArrowsDownUp-BqUEdUQr.js +74 -0
  28. package/dist/PhArrowsDownUp-BqUEdUQr.js.map +1 -0
  29. package/dist/PhArrowsLeftRight-BlZU63eY.js +74 -0
  30. package/dist/PhArrowsLeftRight-BlZU63eY.js.map +1 -0
  31. package/dist/PhBank-gbg_jlI7.js +74 -0
  32. package/dist/PhBank-gbg_jlI7.js.map +1 -0
  33. package/dist/PhBrowser-CMlD-YJw.js +74 -0
  34. package/dist/PhBrowser-CMlD-YJw.js.map +1 -0
  35. package/dist/PhCaretDown-3agTO8Jp.js +74 -0
  36. package/dist/PhCaretDown-3agTO8Jp.js.map +1 -0
  37. package/dist/PhCaretLeft-_MTni7Z5.js +74 -0
  38. package/dist/PhCaretLeft-_MTni7Z5.js.map +1 -0
  39. package/dist/PhCaretRight-Ci9fAHPG.js +74 -0
  40. package/dist/PhCaretRight-Ci9fAHPG.js.map +1 -0
  41. package/dist/PhCaretUp-vFG4Fame.js +74 -0
  42. package/dist/PhCaretUp-vFG4Fame.js.map +1 -0
  43. package/dist/PhCheck-mChGK6K_.js +74 -0
  44. package/dist/PhCheck-mChGK6K_.js.map +1 -0
  45. package/dist/PhCircleHalf-DZ7-vfxf.js +74 -0
  46. package/dist/PhCircleHalf-DZ7-vfxf.js.map +1 -0
  47. package/dist/PhClock-Bc5XWXb6.js +74 -0
  48. package/dist/PhClock-Bc5XWXb6.js.map +1 -0
  49. package/dist/PhCompass-Cu2MB-55.js +74 -0
  50. package/dist/PhCompass-Cu2MB-55.js.map +1 -0
  51. package/dist/PhCopy-BGUjyTts.js +74 -0
  52. package/dist/PhCopy-BGUjyTts.js.map +1 -0
  53. package/dist/PhCreditCard-vxFWID4B.js +74 -0
  54. package/dist/PhCreditCard-vxFWID4B.js.map +1 -0
  55. package/dist/PhCurrencyDollar-BfOoDhJr.js +74 -0
  56. package/dist/PhCurrencyDollar-BfOoDhJr.js.map +1 -0
  57. package/dist/PhDesktop-Cq6jwzbS.js +74 -0
  58. package/dist/PhDesktop-Cq6jwzbS.js.map +1 -0
  59. package/dist/PhDeviceMobile-BCtTp6jj.js +74 -0
  60. package/dist/PhDeviceMobile-BCtTp6jj.js.map +1 -0
  61. package/dist/PhDotsThree-BGgD-WIO.js +74 -0
  62. package/dist/PhDotsThree-BGgD-WIO.js.map +1 -0
  63. package/dist/PhEnvelope-CQiV0-zG.js +74 -0
  64. package/dist/PhEnvelope-CQiV0-zG.js.map +1 -0
  65. package/dist/PhFunnelSimple-BHGtxTNf.js +74 -0
  66. package/dist/PhFunnelSimple-BHGtxTNf.js.map +1 -0
  67. package/dist/PhGlobe-Q8oVkf6X.js +74 -0
  68. package/dist/PhGlobe-Q8oVkf6X.js.map +1 -0
  69. package/dist/PhIdentificationCard-Cz9LzvVR.js +74 -0
  70. package/dist/PhIdentificationCard-Cz9LzvVR.js.map +1 -0
  71. package/dist/PhImage-CP5_qKk-.js +74 -0
  72. package/dist/PhImage-CP5_qKk-.js.map +1 -0
  73. package/dist/PhInfo-CTlE1X9Z.js +74 -0
  74. package/dist/PhInfo-CTlE1X9Z.js.map +1 -0
  75. package/dist/PhLightbulb-CcLpnAAb.js +74 -0
  76. package/dist/PhLightbulb-CcLpnAAb.js.map +1 -0
  77. package/dist/PhMagnifyingGlass-n58GUAck.js +74 -0
  78. package/dist/PhMagnifyingGlass-n58GUAck.js.map +1 -0
  79. package/dist/PhPaperPlaneRight-C0sf2XV8.js +74 -0
  80. package/dist/PhPaperPlaneRight-C0sf2XV8.js.map +1 -0
  81. package/dist/PhPlus-BJxvt7Uc.js +74 -0
  82. package/dist/PhPlus-BJxvt7Uc.js.map +1 -0
  83. package/dist/PhPower-BvktxO2-.js +74 -0
  84. package/dist/PhPower-BvktxO2-.js.map +1 -0
  85. package/dist/PhPuzzlePiece-CDDyUPYo.js +74 -0
  86. package/dist/PhPuzzlePiece-CDDyUPYo.js.map +1 -0
  87. package/dist/PhQrCode-BlGI8529.js +74 -0
  88. package/dist/PhQrCode-BlGI8529.js.map +1 -0
  89. package/dist/PhQuestion-DGZj6iDZ.js +74 -0
  90. package/dist/PhQuestion-DGZj6iDZ.js.map +1 -0
  91. package/dist/PhQuestionMark-CTmeI7MQ.js +74 -0
  92. package/dist/PhQuestionMark-CTmeI7MQ.js.map +1 -0
  93. package/dist/PhSealCheck-BSlqkxnH.js +74 -0
  94. package/dist/PhSealCheck-BSlqkxnH.js.map +1 -0
  95. package/dist/PhSignOut-CEXxlRk3.js +74 -0
  96. package/dist/PhSignOut-CEXxlRk3.js.map +1 -0
  97. package/dist/PhSpinner-Do1pY8fG.js +74 -0
  98. package/dist/PhSpinner-Do1pY8fG.js.map +1 -0
  99. package/dist/PhTrash-JNKavmpg.js +74 -0
  100. package/dist/PhTrash-JNKavmpg.js.map +1 -0
  101. package/dist/PhUser-BW7E-xYg.js +74 -0
  102. package/dist/PhUser-BW7E-xYg.js.map +1 -0
  103. package/dist/PhVault-mzxUgBYN.js +74 -0
  104. package/dist/PhVault-mzxUgBYN.js.map +1 -0
  105. package/dist/PhWallet-BR9JThKU.js +74 -0
  106. package/dist/PhWallet-BR9JThKU.js.map +1 -0
  107. package/dist/PhWarning-DxuQ70WM.js +74 -0
  108. package/dist/PhWarning-DxuQ70WM.js.map +1 -0
  109. package/dist/PhWarningCircle-DCI0JC1F.js +74 -0
  110. package/dist/PhWarningCircle-DCI0JC1F.js.map +1 -0
  111. package/dist/PhX-CWNXqpGn.js +74 -0
  112. package/dist/PhX-CWNXqpGn.js.map +1 -0
  113. package/dist/SwapController-jMZttK6h.js +684 -0
  114. package/dist/SwapController-jMZttK6h.js.map +1 -0
  115. package/dist/WebCryptoP256-BBztc0iu.js +3299 -0
  116. package/dist/WebCryptoP256-BBztc0iu.js.map +1 -0
  117. package/dist/add--c4dzQ5a.js +20 -0
  118. package/dist/add--c4dzQ5a.js.map +1 -0
  119. package/dist/all-wallets-qDP3dIqp.js +11 -0
  120. package/dist/all-wallets-qDP3dIqp.js.map +1 -0
  121. package/dist/app-store-D9l7eF2W.js +22 -0
  122. package/dist/app-store-D9l7eF2W.js.map +1 -0
  123. package/dist/appkit-BelUXm_6.js +117838 -0
  124. package/dist/appkit-BelUXm_6.js.map +1 -0
  125. package/dist/appkit.js +11 -0
  126. package/dist/appkit.js.map +1 -0
  127. package/dist/apple-CpoWHbAl.js +23 -0
  128. package/dist/apple-CpoWHbAl.js.map +1 -0
  129. package/dist/arrow-bottom-Duw4wyrB.js +13 -0
  130. package/dist/arrow-bottom-Duw4wyrB.js.map +1 -0
  131. package/dist/arrow-bottom-circle-jzrzTJTi.js +16 -0
  132. package/dist/arrow-bottom-circle-jzrzTJTi.js.map +1 -0
  133. package/dist/arrow-left-DZ8261mb.js +13 -0
  134. package/dist/arrow-left-DZ8261mb.js.map +1 -0
  135. package/dist/arrow-right-BkSWH-o2.js +13 -0
  136. package/dist/arrow-right-BkSWH-o2.js.map +1 -0
  137. package/dist/arrow-top-CZ-VhKD6.js +13 -0
  138. package/dist/arrow-top-CZ-VhKD6.js.map +1 -0
  139. package/dist/async-directive-DxJWJE9R.js +73 -0
  140. package/dist/async-directive-DxJWJE9R.js.map +1 -0
  141. package/dist/bank-Dqp8PTLk.js +19 -0
  142. package/dist/bank-Dqp8PTLk.js.map +1 -0
  143. package/dist/basic-DFEi41zA.js +4914 -0
  144. package/dist/basic-DFEi41zA.js.map +1 -0
  145. package/dist/browser-5XoTmr4n.js +1991 -0
  146. package/dist/browser-5XoTmr4n.js.map +1 -0
  147. package/dist/browser-BPO6XEtY.js +19 -0
  148. package/dist/browser-BPO6XEtY.js.map +1 -0
  149. package/dist/card-V3yaUpoc.js +19 -0
  150. package/dist/card-V3yaUpoc.js.map +1 -0
  151. package/dist/ccip-BoFoMwtu.js +164 -0
  152. package/dist/ccip-BoFoMwtu.js.map +1 -0
  153. package/dist/checkmark-DSiyB22o.js +16 -0
  154. package/dist/checkmark-DSiyB22o.js.map +1 -0
  155. package/dist/checkmark-bold-Bv7-ZO8v.js +13 -0
  156. package/dist/checkmark-bold-Bv7-ZO8v.js.map +1 -0
  157. package/dist/chevron-bottom-B2TGsNMu.js +13 -0
  158. package/dist/chevron-bottom-B2TGsNMu.js.map +1 -0
  159. package/dist/chevron-left-Cwx-XOsq.js +13 -0
  160. package/dist/chevron-left-Cwx-XOsq.js.map +1 -0
  161. package/dist/chevron-right-BGnzEWju.js +13 -0
  162. package/dist/chevron-right-BGnzEWju.js.map +1 -0
  163. package/dist/chevron-top-C-e2sCE8.js +13 -0
  164. package/dist/chevron-top-C-e2sCE8.js.map +1 -0
  165. package/dist/chrome-store-Dk-JjvFO.js +66 -0
  166. package/dist/chrome-store-Dk-JjvFO.js.map +1 -0
  167. package/dist/class-map-ZEs4CrSH.js +101 -0
  168. package/dist/class-map-ZEs4CrSH.js.map +1 -0
  169. package/dist/clock-DqVZkTjt.js +13 -0
  170. package/dist/clock-DqVZkTjt.js.map +1 -0
  171. package/dist/close-iWBWiaHR.js +13 -0
  172. package/dist/close-iWBWiaHR.js.map +1 -0
  173. package/dist/clsx.m-D57qXwfE.js +21 -0
  174. package/dist/clsx.m-D57qXwfE.js.map +1 -0
  175. package/dist/coinPlaceholder-DamDZh25.js +13 -0
  176. package/dist/coinPlaceholder-DamDZh25.js.map +1 -0
  177. package/dist/compass-DK4o4OBL.js +13 -0
  178. package/dist/compass-DK4o4OBL.js.map +1 -0
  179. package/dist/copy-eQpimOO_.js +20 -0
  180. package/dist/copy-eQpimOO_.js.map +1 -0
  181. package/dist/core-Blm5BnNJ.js +16288 -0
  182. package/dist/core-Blm5BnNJ.js.map +1 -0
  183. package/dist/cursor-k5vr3_IY.js +8 -0
  184. package/dist/cursor-k5vr3_IY.js.map +1 -0
  185. package/dist/cursor-transparent-C72dSWkl.js +17 -0
  186. package/dist/cursor-transparent-C72dSWkl.js.map +1 -0
  187. package/dist/data-capture-BYDXaTJ7.js +549 -0
  188. package/dist/data-capture-BYDXaTJ7.js.map +1 -0
  189. package/dist/desktop-BKt6U1LK.js +14 -0
  190. package/dist/desktop-BKt6U1LK.js.map +1 -0
  191. package/dist/disconnect-BN2JhgmS.js +13 -0
  192. package/dist/disconnect-BN2JhgmS.js.map +1 -0
  193. package/dist/discord-BPXpxniL.js +22 -0
  194. package/dist/discord-BPXpxniL.js.map +1 -0
  195. package/dist/email-CNuZeI4u.js +421 -0
  196. package/dist/email-CNuZeI4u.js.map +1 -0
  197. package/dist/embedded-wallet-LWvrPF_o.js +952 -0
  198. package/dist/embedded-wallet-LWvrPF_o.js.map +1 -0
  199. package/dist/etherscan-DDKRPzA-.js +11 -0
  200. package/dist/etherscan-DDKRPzA-.js.map +1 -0
  201. package/dist/exclamation-triangle-D-8fgdY1.js +9 -0
  202. package/dist/exclamation-triangle-D-8fgdY1.js.map +1 -0
  203. package/dist/extension-Dxcr6kcX.js +13 -0
  204. package/dist/extension-Dxcr6kcX.js.map +1 -0
  205. package/dist/external-link-CAGwU0J9.js +13 -0
  206. package/dist/external-link-CAGwU0J9.js.map +1 -0
  207. package/dist/facebook-CLDxOaIb.js +31 -0
  208. package/dist/facebook-CLDxOaIb.js.map +1 -0
  209. package/dist/farcaster-Cw3u-UPo.js +17 -0
  210. package/dist/farcaster-Cw3u-UPo.js.map +1 -0
  211. package/dist/features-vg2POspn.js +319 -0
  212. package/dist/features-vg2POspn.js.map +1 -0
  213. package/dist/filters-COA9syz-.js +13 -0
  214. package/dist/filters-COA9syz-.js.map +1 -0
  215. package/dist/github-D7S2v9I4.js +23 -0
  216. package/dist/github-D7S2v9I4.js.map +1 -0
  217. package/dist/google-D0CqK5v9.js +23 -0
  218. package/dist/google-D0CqK5v9.js.map +1 -0
  219. package/dist/hashTypedData-CSpZpAVZ.js +262 -0
  220. package/dist/hashTypedData-CSpZpAVZ.js.map +1 -0
  221. package/dist/help-circle-DUNo_nkC.js +17 -0
  222. package/dist/help-circle-DUNo_nkC.js.map +1 -0
  223. package/dist/id-I68XskJD.js +17 -0
  224. package/dist/id-I68XskJD.js.map +1 -0
  225. package/dist/if-defined-CZFxJBnA.js +11 -0
  226. package/dist/if-defined-CZFxJBnA.js.map +1 -0
  227. package/dist/image-B5cNqRyN.js +9 -0
  228. package/dist/image-B5cNqRyN.js.map +1 -0
  229. package/dist/index-104DdYHO.js +985 -0
  230. package/dist/index-104DdYHO.js.map +1 -0
  231. package/dist/index-B3zs1e7u.js +181 -0
  232. package/dist/index-B3zs1e7u.js.map +1 -0
  233. package/dist/index-B5NSdMiU.js +218 -0
  234. package/dist/index-B5NSdMiU.js.map +1 -0
  235. package/dist/index-B6iHFF4h.js +136 -0
  236. package/dist/index-B6iHFF4h.js.map +1 -0
  237. package/dist/index-B8jsF--g.js +1582 -0
  238. package/dist/index-B8jsF--g.js.map +1 -0
  239. package/dist/index-BB3tQw2Z.js +9350 -0
  240. package/dist/index-BB3tQw2Z.js.map +1 -0
  241. package/dist/index-BKk3ruzQ.js +456 -0
  242. package/dist/index-BKk3ruzQ.js.map +1 -0
  243. package/dist/index-BLjdKVPF.js +18322 -0
  244. package/dist/index-BLjdKVPF.js.map +1 -0
  245. package/dist/index-BOoc_x7l.js +180 -0
  246. package/dist/index-BOoc_x7l.js.map +1 -0
  247. package/dist/index-BeheLXdB.js +441 -0
  248. package/dist/index-BeheLXdB.js.map +1 -0
  249. package/dist/index-BgqBk_dY.js +147 -0
  250. package/dist/index-BgqBk_dY.js.map +1 -0
  251. package/dist/index-Bnorl9_z.js +1372 -0
  252. package/dist/index-Bnorl9_z.js.map +1 -0
  253. package/dist/index-C26sVife.js +967 -0
  254. package/dist/index-C26sVife.js.map +1 -0
  255. package/dist/index-C32JOlST.js +198 -0
  256. package/dist/index-C32JOlST.js.map +1 -0
  257. package/dist/index-C78ZsEMq.js +211 -0
  258. package/dist/index-C78ZsEMq.js.map +1 -0
  259. package/dist/index-C8oew4P6.js +153 -0
  260. package/dist/index-C8oew4P6.js.map +1 -0
  261. package/dist/index-CNlrW5cy.js +126 -0
  262. package/dist/index-CNlrW5cy.js.map +1 -0
  263. package/dist/index-CWtAW9yD.js +70 -0
  264. package/dist/index-CWtAW9yD.js.map +1 -0
  265. package/dist/index-CZYTg7wq.js +7258 -0
  266. package/dist/index-CZYTg7wq.js.map +1 -0
  267. package/dist/index-CcLQYms1.js +109 -0
  268. package/dist/index-CcLQYms1.js.map +1 -0
  269. package/dist/index-Cmdv-EKc.js +3987 -0
  270. package/dist/index-Cmdv-EKc.js.map +1 -0
  271. package/dist/index-D0jIxjP5.js +611 -0
  272. package/dist/index-D0jIxjP5.js.map +1 -0
  273. package/dist/index-D1RMkx4Z.js +73 -0
  274. package/dist/index-D1RMkx4Z.js.map +1 -0
  275. package/dist/index-D80ztMVu.js +7481 -0
  276. package/dist/index-D80ztMVu.js.map +1 -0
  277. package/dist/index-D9I51xNN.js +124 -0
  278. package/dist/index-D9I51xNN.js.map +1 -0
  279. package/dist/index-DC3uHGx5.js +281 -0
  280. package/dist/index-DC3uHGx5.js.map +1 -0
  281. package/dist/index-DKaSbFmS.js +62 -0
  282. package/dist/index-DKaSbFmS.js.map +1 -0
  283. package/dist/index-DMfKX7xa.js +52 -0
  284. package/dist/index-DMfKX7xa.js.map +1 -0
  285. package/dist/index-DRONCFaf.js +521 -0
  286. package/dist/index-DRONCFaf.js.map +1 -0
  287. package/dist/index-DWU2cJP9.js +984 -0
  288. package/dist/index-DWU2cJP9.js.map +1 -0
  289. package/dist/index-Dk1HiwFn.js +110 -0
  290. package/dist/index-Dk1HiwFn.js.map +1 -0
  291. package/dist/index-DoDZtBzt.js +257 -0
  292. package/dist/index-DoDZtBzt.js.map +1 -0
  293. package/dist/index-DrMicDEk.js +8825 -0
  294. package/dist/index-DrMicDEk.js.map +1 -0
  295. package/dist/index-DwCIGVjJ.js +2277 -0
  296. package/dist/index-DwCIGVjJ.js.map +1 -0
  297. package/dist/index-G39WAG_u.js +249 -0
  298. package/dist/index-G39WAG_u.js.map +1 -0
  299. package/dist/index-LKmHdTip.js +120 -0
  300. package/dist/index-LKmHdTip.js.map +1 -0
  301. package/dist/index-Q4ByiA8h.js +92 -0
  302. package/dist/index-Q4ByiA8h.js.map +1 -0
  303. package/dist/index-WWBlLBf0.js +286 -0
  304. package/dist/index-WWBlLBf0.js.map +1 -0
  305. package/dist/index-YriocA8k.js +542 -0
  306. package/dist/index-YriocA8k.js.map +1 -0
  307. package/dist/index-iZY344lJ.js +131 -0
  308. package/dist/index-iZY344lJ.js.map +1 -0
  309. package/dist/index-jvpHgQNC.js +1178 -0
  310. package/dist/index-jvpHgQNC.js.map +1 -0
  311. package/dist/index-l79JdXA-.js +198 -0
  312. package/dist/index-l79JdXA-.js.map +1 -0
  313. package/dist/index-ln8WeuTF.js +520 -0
  314. package/dist/index-ln8WeuTF.js.map +1 -0
  315. package/dist/index-qKPbj0fN.js +147 -0
  316. package/dist/index-qKPbj0fN.js.map +1 -0
  317. package/dist/index-vbfIJzga.js +182 -0
  318. package/dist/index-vbfIJzga.js.map +1 -0
  319. package/dist/index-ydt0zLSU.js +716 -0
  320. package/dist/index-ydt0zLSU.js.map +1 -0
  321. package/dist/index.es-DRqDW831.js +8503 -0
  322. package/dist/index.es-DRqDW831.js.map +1 -0
  323. package/dist/info-2WDwQZjB.js +8 -0
  324. package/dist/info-2WDwQZjB.js.map +1 -0
  325. package/dist/info-circle-CtSQ1Thr.js +17 -0
  326. package/dist/info-circle-CtSQ1Thr.js.map +1 -0
  327. package/dist/jsxRuntime.module-xbg0Y-2w.js +14 -0
  328. package/dist/jsxRuntime.module-xbg0Y-2w.js.map +1 -0
  329. package/dist/lightbulb-BSt44yHY.js +8 -0
  330. package/dist/lightbulb-BSt44yHY.js.map +1 -0
  331. package/dist/localBatchGatewayRequest-BfhYO3yz.js +103 -0
  332. package/dist/localBatchGatewayRequest-BfhYO3yz.js.map +1 -0
  333. package/dist/mail-BrPzu8JI.js +13 -0
  334. package/dist/mail-BrPzu8JI.js.map +1 -0
  335. package/dist/metamask-sdk-BH2upH2a.js +16699 -0
  336. package/dist/metamask-sdk-BH2upH2a.js.map +1 -0
  337. package/dist/mobile-qOQzY1mQ.js +14 -0
  338. package/dist/mobile-qOQzY1mQ.js.map +1 -0
  339. package/dist/more-Q55BhoHR.js +16 -0
  340. package/dist/more-Q55BhoHR.js.map +1 -0
  341. package/dist/native-NhO1oTAz.js +17 -0
  342. package/dist/native-NhO1oTAz.js.map +1 -0
  343. package/dist/network-placeholder-CNNFAqAN.js +19 -0
  344. package/dist/network-placeholder-CNNFAqAN.js.map +1 -0
  345. package/dist/nftPlaceholder-XepUac1F.js +13 -0
  346. package/dist/nftPlaceholder-XepUac1F.js.map +1 -0
  347. package/dist/off-B5pFs_h0.js +13 -0
  348. package/dist/off-B5pFs_h0.js.map +1 -0
  349. package/dist/onramp-Cmf4-Qlj.js +979 -0
  350. package/dist/onramp-Cmf4-Qlj.js.map +1 -0
  351. package/dist/parseAbiParameters-DfJcIE_w.js +757 -0
  352. package/dist/parseAbiParameters-DfJcIE_w.js.map +1 -0
  353. package/dist/parseSignature-DLIuU8h-.js +4690 -0
  354. package/dist/parseSignature-DLIuU8h-.js.map +1 -0
  355. package/dist/pay-with-exchange-BiRfWQtt.js +603 -0
  356. package/dist/pay-with-exchange-BiRfWQtt.js.map +1 -0
  357. package/dist/play-store-CHMgTh6o.js +37 -0
  358. package/dist/play-store-CHMgTh6o.js.map +1 -0
  359. package/dist/plus-DAYpNXcX.js +18 -0
  360. package/dist/plus-DAYpNXcX.js.map +1 -0
  361. package/dist/property-8UcTqffH.js +623 -0
  362. package/dist/property-8UcTqffH.js.map +1 -0
  363. package/dist/qr-code-5EvgAs5C.js +11 -0
  364. package/dist/qr-code-5EvgAs5C.js.map +1 -0
  365. package/dist/receive-oh6JkMzT.js +262 -0
  366. package/dist/receive-oh6JkMzT.js.map +1 -0
  367. package/dist/recycle-horizontal-C0EVYvdu.js +14 -0
  368. package/dist/recycle-horizontal-C0EVYvdu.js.map +1 -0
  369. package/dist/ref-DYqCwuKj.js +43 -0
  370. package/dist/ref-DYqCwuKj.js.map +1 -0
  371. package/dist/refresh-Tz7Hx6xG.js +13 -0
  372. package/dist/refresh-Tz7Hx6xG.js.map +1 -0
  373. package/dist/reown-logo-DKFEGfm5.js +17 -0
  374. package/dist/reown-logo-DKFEGfm5.js.map +1 -0
  375. package/dist/search-DJmD5Dmk.js +13 -0
  376. package/dist/search-DJmD5Dmk.js.map +1 -0
  377. package/dist/secp256k1-ZaBTFi_B.js +2031 -0
  378. package/dist/secp256k1-ZaBTFi_B.js.map +1 -0
  379. package/dist/send-CkjE5TE2.js +1365 -0
  380. package/dist/send-CkjE5TE2.js.map +1 -0
  381. package/dist/send-DcwwYxtP.js +20 -0
  382. package/dist/send-DcwwYxtP.js.map +1 -0
  383. package/dist/socials-TnAlgPAE.js +796 -0
  384. package/dist/socials-TnAlgPAE.js.map +1 -0
  385. package/dist/swapHorizontal-Zswl5rJe.js +13 -0
  386. package/dist/swapHorizontal-Zswl5rJe.js.map +1 -0
  387. package/dist/swapHorizontalBold-NXydKsqQ.js +13 -0
  388. package/dist/swapHorizontalBold-NXydKsqQ.js.map +1 -0
  389. package/dist/swapHorizontalMedium-HEMBHJa5.js +21 -0
  390. package/dist/swapHorizontalMedium-HEMBHJa5.js.map +1 -0
  391. package/dist/swapHorizontalRoundedBold-fNHd25RU.js +13 -0
  392. package/dist/swapHorizontalRoundedBold-fNHd25RU.js.map +1 -0
  393. package/dist/swapVertical-BcCPonRa.js +13 -0
  394. package/dist/swapVertical-BcCPonRa.js.map +1 -0
  395. package/dist/swaps-Cz2XSX5K.js +2121 -0
  396. package/dist/swaps-Cz2XSX5K.js.map +1 -0
  397. package/dist/telegram-CRGTc0Vs.js +21 -0
  398. package/dist/telegram-CRGTc0Vs.js.map +1 -0
  399. package/dist/three-dots-CprpVKTn.js +10 -0
  400. package/dist/three-dots-CprpVKTn.js.map +1 -0
  401. package/dist/transactions-ItRrEBwI.js +38 -0
  402. package/dist/transactions-ItRrEBwI.js.map +1 -0
  403. package/dist/twitch-vWuHTtgh.js +23 -0
  404. package/dist/twitch-vWuHTtgh.js.map +1 -0
  405. package/dist/twitterIcon-Bo4HL4oD.js +11 -0
  406. package/dist/twitterIcon-Bo4HL4oD.js.map +1 -0
  407. package/dist/vanilla-CgG5xMJO.js +448 -0
  408. package/dist/vanilla-CgG5xMJO.js.map +1 -0
  409. package/dist/verify-PpZz6LN4.js +13 -0
  410. package/dist/verify-PpZz6LN4.js.map +1 -0
  411. package/dist/verify-filled-CUpk2g5N.js +13 -0
  412. package/dist/verify-filled-CUpk2g5N.js.map +1 -0
  413. package/dist/w3m-modal-BZQIOBsI.js +1725 -0
  414. package/dist/w3m-modal-BZQIOBsI.js.map +1 -0
  415. package/dist/w3m-modal-D5sYObzl.js +2008 -0
  416. package/dist/w3m-modal-D5sYObzl.js.map +1 -0
  417. package/dist/wallet-Blc0Swur.js +13 -0
  418. package/dist/wallet-Blc0Swur.js.map +1 -0
  419. package/dist/wallet-placeholder-DkGnPkjp.js +19 -0
  420. package/dist/wallet-placeholder-DkGnPkjp.js.map +1 -0
  421. package/dist/wallet-standard-CDzUhZ2i.js +523 -0
  422. package/dist/wallet-standard-CDzUhZ2i.js.map +1 -0
  423. package/dist/walletconnect-CfJMuRWG.js +39 -0
  424. package/dist/walletconnect-CfJMuRWG.js.map +1 -0
  425. package/dist/warning-circle-BW2kbw7R.js +17 -0
  426. package/dist/warning-circle-BW2kbw7R.js.map +1 -0
  427. package/dist/x-CT_VClTi.js +17 -0
  428. package/dist/x-CT_VClTi.js.map +1 -0
  429. package/package.json +10 -10
@@ -0,0 +1,1365 @@
1
+ import { m as css, o as i, a as CoreHelperUtil, C as ChainController, t as ConnectionController, aZ as SendController, x, R as RouterController, N as NumberUtil, a3 as ModalController, S as SnackController, d as ConstantsUtil, D as BalanceUtil, a4 as AssetUtil, r as resetStyles, n as elementStyles, b5 as AppKitError, b6 as ErrorUtil, u as ConstantsUtil$1, E as EventsController } from "./appkit-BelUXm_6.js";
2
+ import { n, r } from "./class-map-ZEs4CrSH.js";
3
+ import { c as customElement, U as UiHelperUtil } from "./index-jvpHgQNC.js";
4
+ import "./index-B5NSdMiU.js";
5
+ import "./index-CNlrW5cy.js";
6
+ import "./index-DMfKX7xa.js";
7
+ import { e, n as n$1 } from "./ref-DYqCwuKj.js";
8
+ import "./index-BOoc_x7l.js";
9
+ import "./index-LKmHdTip.js";
10
+ import "./index-C78ZsEMq.js";
11
+ import { S as SwapController } from "./SwapController-jMZttK6h.js";
12
+ import "./index-G39WAG_u.js";
13
+ import "./index-iZY344lJ.js";
14
+ import "./index-BgqBk_dY.js";
15
+ import "./index-Dk1HiwFn.js";
16
+ import { o } from "./if-defined-CZFxJBnA.js";
17
+ const styles$8 = css`
18
+ :host {
19
+ width: 100%;
20
+ height: 100px;
21
+ border-radius: ${({ borderRadius }) => borderRadius["5"]};
22
+ border: 1px solid ${({ tokens }) => tokens.theme.foregroundPrimary};
23
+ background-color: ${({ tokens }) => tokens.theme.foregroundPrimary};
24
+ transition: background-color ${({ durations }) => durations["lg"]}
25
+ ${({ easings }) => easings["ease-out-power-1"]};
26
+ will-change: background-color;
27
+ position: relative;
28
+ }
29
+
30
+ :host(:hover) {
31
+ background-color: ${({ tokens }) => tokens.theme.foregroundSecondary};
32
+ }
33
+
34
+ wui-flex {
35
+ width: 100%;
36
+ height: fit-content;
37
+ }
38
+
39
+ wui-button {
40
+ display: ruby;
41
+ color: ${({ tokens }) => tokens.theme.textPrimary};
42
+ margin: 0 ${({ spacing }) => spacing["2"]};
43
+ }
44
+
45
+ .instruction {
46
+ position: absolute;
47
+ top: 50%;
48
+ transform: translateY(-50%);
49
+ z-index: 2;
50
+ }
51
+
52
+ .paste {
53
+ display: inline-flex;
54
+ }
55
+
56
+ textarea {
57
+ background: transparent;
58
+ width: 100%;
59
+ font-family: ${({ fontFamily }) => fontFamily.regular};
60
+ font-style: normal;
61
+ font-size: ${({ textSize }) => textSize.large};
62
+ font-weight: ${({ fontWeight }) => fontWeight.regular};
63
+ line-height: ${({ typography }) => typography["lg-regular"].lineHeight};
64
+ letter-spacing: ${({ typography }) => typography["lg-regular"].letterSpacing};
65
+ color: ${({ tokens }) => tokens.theme.textSecondary};
66
+ caret-color: ${({ tokens }) => tokens.core.backgroundAccentPrimary};
67
+ box-sizing: border-box;
68
+ -webkit-appearance: none;
69
+ -moz-appearance: textfield;
70
+ padding: 0px;
71
+ border: none;
72
+ outline: none;
73
+ appearance: none;
74
+ resize: none;
75
+ overflow: hidden;
76
+ }
77
+ `;
78
+ var __decorate$8 = function(decorators, target, key, desc) {
79
+ var c = arguments.length, r2 = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
80
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r2 = Reflect.decorate(decorators, target, key, desc);
81
+ else for (var i2 = decorators.length - 1; i2 >= 0; i2--) if (d = decorators[i2]) r2 = (c < 3 ? d(r2) : c > 3 ? d(target, key, r2) : d(target, key)) || r2;
82
+ return c > 3 && r2 && Object.defineProperty(target, key, r2), r2;
83
+ };
84
+ let W3mInputAddress = class W3mInputAddress2 extends i {
85
+ constructor() {
86
+ super(...arguments);
87
+ this.inputElementRef = e();
88
+ this.instructionElementRef = e();
89
+ this.readOnly = false;
90
+ this.instructionHidden = Boolean(this.value);
91
+ this.pasting = false;
92
+ this.onDebouncedSearch = CoreHelperUtil.debounce(async (value) => {
93
+ if (!value.length) {
94
+ this.setReceiverAddress("");
95
+ return;
96
+ }
97
+ const activeChain = ChainController.state.activeChain;
98
+ const isValidAddress = CoreHelperUtil.isAddress(value, activeChain);
99
+ if (isValidAddress) {
100
+ this.setReceiverAddress(value);
101
+ return;
102
+ }
103
+ try {
104
+ const resolvedAddress = await ConnectionController.getEnsAddress(value);
105
+ if (resolvedAddress) {
106
+ SendController.setReceiverProfileName(value);
107
+ SendController.setReceiverAddress(resolvedAddress);
108
+ const avatar = await ConnectionController.getEnsAvatar(value);
109
+ SendController.setReceiverProfileImageUrl(avatar || void 0);
110
+ }
111
+ } catch (error) {
112
+ this.setReceiverAddress(value);
113
+ } finally {
114
+ SendController.setLoading(false);
115
+ }
116
+ });
117
+ }
118
+ firstUpdated() {
119
+ if (this.value) {
120
+ this.instructionHidden = true;
121
+ }
122
+ this.checkHidden();
123
+ }
124
+ render() {
125
+ if (this.readOnly) {
126
+ return x` <wui-flex
127
+ flexDirection="column"
128
+ justifyContent="center"
129
+ gap="01"
130
+ .padding=${["8", "4", "5", "4"]}
131
+ >
132
+ <textarea
133
+ spellcheck="false"
134
+ ?disabled=${true}
135
+ autocomplete="off"
136
+ .value=${this.value ?? ""}
137
+ >
138
+ ${this.value ?? ""}</textarea
139
+ >
140
+ </wui-flex>`;
141
+ }
142
+ return x` <wui-flex
143
+ @click=${this.onBoxClick.bind(this)}
144
+ flexDirection="column"
145
+ justifyContent="center"
146
+ gap="01"
147
+ .padding=${["8", "4", "5", "4"]}
148
+ >
149
+ <wui-text
150
+ ${n$1(this.instructionElementRef)}
151
+ class="instruction"
152
+ color="secondary"
153
+ variant="md-medium"
154
+ >
155
+ Type or
156
+ <wui-button
157
+ class="paste"
158
+ size="md"
159
+ variant="neutral-secondary"
160
+ iconLeft="copy"
161
+ @click=${this.onPasteClick.bind(this)}
162
+ >
163
+ <wui-icon size="sm" color="inherit" slot="iconLeft" name="copy"></wui-icon>
164
+ Paste
165
+ </wui-button>
166
+ address
167
+ </wui-text>
168
+ <textarea
169
+ spellcheck="false"
170
+ ?disabled=${!this.instructionHidden}
171
+ ${n$1(this.inputElementRef)}
172
+ @input=${this.onInputChange.bind(this)}
173
+ @blur=${this.onBlur.bind(this)}
174
+ .value=${this.value ?? ""}
175
+ autocomplete="off"
176
+ >
177
+ ${this.value ?? ""}</textarea
178
+ >
179
+ </wui-flex>`;
180
+ }
181
+ async focusInput() {
182
+ var _a;
183
+ if (this.instructionElementRef.value) {
184
+ this.instructionHidden = true;
185
+ await this.toggleInstructionFocus(false);
186
+ this.instructionElementRef.value.style.pointerEvents = "none";
187
+ (_a = this.inputElementRef.value) == null ? void 0 : _a.focus();
188
+ if (this.inputElementRef.value) {
189
+ this.inputElementRef.value.selectionStart = this.inputElementRef.value.selectionEnd = this.inputElementRef.value.value.length;
190
+ }
191
+ }
192
+ }
193
+ async focusInstruction() {
194
+ var _a;
195
+ if (this.instructionElementRef.value) {
196
+ this.instructionHidden = false;
197
+ await this.toggleInstructionFocus(true);
198
+ this.instructionElementRef.value.style.pointerEvents = "auto";
199
+ (_a = this.inputElementRef.value) == null ? void 0 : _a.blur();
200
+ }
201
+ }
202
+ async toggleInstructionFocus(focus) {
203
+ if (this.instructionElementRef.value) {
204
+ await this.instructionElementRef.value.animate([{ opacity: focus ? 0 : 1 }, { opacity: focus ? 1 : 0 }], {
205
+ duration: 100,
206
+ easing: "ease",
207
+ fill: "forwards"
208
+ }).finished;
209
+ }
210
+ }
211
+ onBoxClick() {
212
+ if (!this.value && !this.instructionHidden) {
213
+ this.focusInput();
214
+ }
215
+ }
216
+ onBlur() {
217
+ if (!this.value && this.instructionHidden && !this.pasting) {
218
+ this.focusInstruction();
219
+ }
220
+ }
221
+ checkHidden() {
222
+ if (this.instructionHidden) {
223
+ this.focusInput();
224
+ }
225
+ }
226
+ async onPasteClick() {
227
+ this.pasting = true;
228
+ const text = await navigator.clipboard.readText();
229
+ SendController.setReceiverAddress(text);
230
+ this.focusInput();
231
+ }
232
+ onInputChange(e2) {
233
+ var _a;
234
+ const element = e2.target;
235
+ this.pasting = false;
236
+ this.value = (_a = e2.target) == null ? void 0 : _a.value;
237
+ if (element.value && !this.instructionHidden) {
238
+ this.focusInput();
239
+ }
240
+ SendController.setLoading(true);
241
+ this.onDebouncedSearch(element.value);
242
+ }
243
+ setReceiverAddress(address) {
244
+ SendController.setReceiverAddress(address);
245
+ SendController.setReceiverProfileName(void 0);
246
+ SendController.setReceiverProfileImageUrl(void 0);
247
+ SendController.setLoading(false);
248
+ }
249
+ };
250
+ W3mInputAddress.styles = styles$8;
251
+ __decorate$8([
252
+ n()
253
+ ], W3mInputAddress.prototype, "value", void 0);
254
+ __decorate$8([
255
+ n({ type: Boolean })
256
+ ], W3mInputAddress.prototype, "readOnly", void 0);
257
+ __decorate$8([
258
+ r()
259
+ ], W3mInputAddress.prototype, "instructionHidden", void 0);
260
+ __decorate$8([
261
+ r()
262
+ ], W3mInputAddress.prototype, "pasting", void 0);
263
+ W3mInputAddress = __decorate$8([
264
+ customElement("w3m-input-address")
265
+ ], W3mInputAddress);
266
+ const styles$7 = css`
267
+ :host {
268
+ width: 100%;
269
+ height: 100px;
270
+ border-radius: ${({ borderRadius }) => borderRadius["5"]};
271
+ border: 1px solid ${({ tokens }) => tokens.theme.foregroundPrimary};
272
+ background-color: ${({ tokens }) => tokens.theme.foregroundPrimary};
273
+ transition: background-color ${({ durations }) => durations["lg"]}
274
+ ${({ easings }) => easings["ease-out-power-1"]};
275
+ will-change: background-color;
276
+ transition: all ${({ easings }) => easings["ease-out-power-1"]}
277
+ ${({ durations }) => durations["lg"]};
278
+ }
279
+
280
+ :host(:hover) {
281
+ background-color: ${({ tokens }) => tokens.theme.foregroundSecondary};
282
+ }
283
+
284
+ wui-flex {
285
+ width: 100%;
286
+ height: fit-content;
287
+ }
288
+
289
+ wui-button {
290
+ width: 100%;
291
+ display: flex;
292
+ justify-content: flex-end;
293
+ }
294
+
295
+ wui-input-amount {
296
+ mask-image: linear-gradient(
297
+ 270deg,
298
+ transparent 0px,
299
+ transparent 8px,
300
+ black 24px,
301
+ black 25px,
302
+ black 32px,
303
+ black 100%
304
+ );
305
+ }
306
+
307
+ .totalValue {
308
+ width: 100%;
309
+ }
310
+ `;
311
+ var __decorate$7 = function(decorators, target, key, desc) {
312
+ var c = arguments.length, r2 = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
313
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r2 = Reflect.decorate(decorators, target, key, desc);
314
+ else for (var i2 = decorators.length - 1; i2 >= 0; i2--) if (d = decorators[i2]) r2 = (c < 3 ? d(r2) : c > 3 ? d(target, key, r2) : d(target, key)) || r2;
315
+ return c > 3 && r2 && Object.defineProperty(target, key, r2), r2;
316
+ };
317
+ let W3mInputToken = class W3mInputToken2 extends i {
318
+ constructor() {
319
+ super(...arguments);
320
+ this.readOnly = false;
321
+ this.isInsufficientBalance = false;
322
+ }
323
+ render() {
324
+ const isDisabled = this.readOnly || !this.token;
325
+ return x` <wui-flex
326
+ flexDirection="column"
327
+ gap="01"
328
+ .padding=${["5", "3", "4", "3"]}
329
+ >
330
+ <wui-flex alignItems="center">
331
+ <wui-input-amount
332
+ @inputChange=${this.onInputChange.bind(this)}
333
+ ?disabled=${isDisabled}
334
+ .value=${this.sendTokenAmount ? String(this.sendTokenAmount) : ""}
335
+ ?error=${Boolean(this.isInsufficientBalance)}
336
+ ></wui-input-amount>
337
+ ${this.buttonTemplate()}
338
+ </wui-flex>
339
+ ${this.bottomTemplate()}
340
+ </wui-flex>`;
341
+ }
342
+ buttonTemplate() {
343
+ if (this.token) {
344
+ return x`<wui-token-button
345
+ text=${this.token.symbol}
346
+ imageSrc=${this.token.iconUrl}
347
+ @click=${this.handleSelectButtonClick.bind(this)}
348
+ >
349
+ </wui-token-button>`;
350
+ }
351
+ return x`<wui-button
352
+ size="md"
353
+ variant="neutral-secondary"
354
+ @click=${this.handleSelectButtonClick.bind(this)}
355
+ >Select token</wui-button
356
+ >`;
357
+ }
358
+ handleSelectButtonClick() {
359
+ if (!this.readOnly) {
360
+ RouterController.push("WalletSendSelectToken");
361
+ }
362
+ }
363
+ sendValueTemplate() {
364
+ if (!this.readOnly && this.token && this.sendTokenAmount) {
365
+ const price = this.token.price;
366
+ const totalValue = price * this.sendTokenAmount;
367
+ return x`<wui-text class="totalValue" variant="sm-regular" color="secondary"
368
+ >${totalValue ? `$${NumberUtil.formatNumberToLocalString(totalValue, 2)}` : "Incorrect value"}</wui-text
369
+ >`;
370
+ }
371
+ return null;
372
+ }
373
+ maxAmountTemplate() {
374
+ if (this.token) {
375
+ return x` <wui-text variant="sm-regular" color="secondary">
376
+ ${UiHelperUtil.roundNumber(Number(this.token.quantity.numeric), 6, 5)}
377
+ </wui-text>`;
378
+ }
379
+ return null;
380
+ }
381
+ actionTemplate() {
382
+ if (this.token) {
383
+ return x`<wui-link @click=${this.onMaxClick.bind(this)}>Max</wui-link>`;
384
+ }
385
+ return null;
386
+ }
387
+ bottomTemplate() {
388
+ if (this.readOnly) {
389
+ return null;
390
+ }
391
+ return x`<wui-flex alignItems="center" justifyContent="space-between">
392
+ ${this.sendValueTemplate()}
393
+ <wui-flex alignItems="center" gap="01" justifyContent="flex-end">
394
+ ${this.maxAmountTemplate()} ${this.actionTemplate()}
395
+ </wui-flex>
396
+ </wui-flex>`;
397
+ }
398
+ onInputChange(event) {
399
+ SendController.setTokenAmount(event.detail);
400
+ }
401
+ onMaxClick() {
402
+ if (this.token) {
403
+ const maxValue = NumberUtil.bigNumber(this.token.quantity.numeric);
404
+ SendController.setTokenAmount(Number(maxValue.toFixed(20)));
405
+ }
406
+ }
407
+ };
408
+ W3mInputToken.styles = styles$7;
409
+ __decorate$7([
410
+ n({ type: Object })
411
+ ], W3mInputToken.prototype, "token", void 0);
412
+ __decorate$7([
413
+ n({ type: Boolean })
414
+ ], W3mInputToken.prototype, "readOnly", void 0);
415
+ __decorate$7([
416
+ n({ type: Number })
417
+ ], W3mInputToken.prototype, "sendTokenAmount", void 0);
418
+ __decorate$7([
419
+ n({ type: Boolean })
420
+ ], W3mInputToken.prototype, "isInsufficientBalance", void 0);
421
+ W3mInputToken = __decorate$7([
422
+ customElement("w3m-input-token")
423
+ ], W3mInputToken);
424
+ const styles$6 = css`
425
+ :host {
426
+ display: block;
427
+ }
428
+
429
+ wui-flex {
430
+ position: relative;
431
+ }
432
+
433
+ wui-icon-box {
434
+ width: 32px;
435
+ height: 32px;
436
+ border-radius: ${({ borderRadius }) => borderRadius["10"]} !important;
437
+ border: 4px solid ${({ tokens }) => tokens.theme.backgroundPrimary};
438
+ background: ${({ tokens }) => tokens.theme.foregroundPrimary};
439
+ position: absolute;
440
+ top: 50%;
441
+ left: 50%;
442
+ transform: translate(-50%, -50%);
443
+ z-index: 3;
444
+ }
445
+
446
+ wui-button {
447
+ --local-border-radius: ${({ borderRadius }) => borderRadius["4"]} !important;
448
+ }
449
+
450
+ .inputContainer {
451
+ height: fit-content;
452
+ }
453
+ `;
454
+ var __decorate$6 = function(decorators, target, key, desc) {
455
+ var c = arguments.length, r2 = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
456
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r2 = Reflect.decorate(decorators, target, key, desc);
457
+ else for (var i2 = decorators.length - 1; i2 >= 0; i2--) if (d = decorators[i2]) r2 = (c < 3 ? d(r2) : c > 3 ? d(target, key, r2) : d(target, key)) || r2;
458
+ return c > 3 && r2 && Object.defineProperty(target, key, r2), r2;
459
+ };
460
+ const SEND_BUTTON_MESSAGE = {
461
+ INSUFFICIENT_FUNDS: "Insufficient Funds",
462
+ INCORRECT_VALUE: "Incorrect Value",
463
+ INVALID_ADDRESS: "Invalid Address",
464
+ ADD_ADDRESS: "Add Address",
465
+ ADD_AMOUNT: "Add Amount",
466
+ SELECT_TOKEN: "Select Token",
467
+ PREVIEW_SEND: "Preview Send"
468
+ };
469
+ let W3mWalletSendView = class W3mWalletSendView2 extends i {
470
+ constructor() {
471
+ var _a, _b;
472
+ super();
473
+ this.unsubscribe = [];
474
+ this.isTryingToChooseDifferentWallet = false;
475
+ this.token = SendController.state.token;
476
+ this.sendTokenAmount = SendController.state.sendTokenAmount;
477
+ this.receiverAddress = SendController.state.receiverAddress;
478
+ this.receiverProfileName = SendController.state.receiverProfileName;
479
+ this.loading = SendController.state.loading;
480
+ this.params = (_a = RouterController.state.data) == null ? void 0 : _a.send;
481
+ this.caipAddress = (_b = ChainController.getAccountData()) == null ? void 0 : _b.caipAddress;
482
+ this.message = SEND_BUTTON_MESSAGE.PREVIEW_SEND;
483
+ this.disconnecting = false;
484
+ if (this.token && !this.params) {
485
+ this.fetchBalances();
486
+ this.fetchNetworkPrice();
487
+ }
488
+ const unsubscribe = ChainController.subscribeKey("activeCaipAddress", (val) => {
489
+ if (!val && this.isTryingToChooseDifferentWallet) {
490
+ this.isTryingToChooseDifferentWallet = false;
491
+ ModalController.open({
492
+ view: "Connect",
493
+ data: {
494
+ redirectView: "WalletSend"
495
+ }
496
+ }).catch(() => null);
497
+ unsubscribe();
498
+ }
499
+ });
500
+ this.unsubscribe.push(...[
501
+ ChainController.subscribeAccountStateProp("caipAddress", (val) => {
502
+ this.caipAddress = val;
503
+ }),
504
+ SendController.subscribe((val) => {
505
+ this.token = val.token;
506
+ this.sendTokenAmount = val.sendTokenAmount;
507
+ this.receiverAddress = val.receiverAddress;
508
+ this.receiverProfileName = val.receiverProfileName;
509
+ this.loading = val.loading;
510
+ })
511
+ ]);
512
+ }
513
+ disconnectedCallback() {
514
+ this.unsubscribe.forEach((unsubscribe) => unsubscribe());
515
+ }
516
+ async firstUpdated() {
517
+ await this.handleSendParameters();
518
+ }
519
+ render() {
520
+ this.getMessage();
521
+ const isReadOnly = Boolean(this.params);
522
+ return x` <wui-flex flexDirection="column" .padding=${["0", "4", "4", "4"]}>
523
+ <wui-flex class="inputContainer" gap="2" flexDirection="column">
524
+ <w3m-input-token
525
+ .token=${this.token}
526
+ .sendTokenAmount=${this.sendTokenAmount}
527
+ ?readOnly=${isReadOnly}
528
+ ?isInsufficientBalance=${this.message === SEND_BUTTON_MESSAGE.INSUFFICIENT_FUNDS}
529
+ ></w3m-input-token>
530
+ <wui-icon-box size="md" variant="secondary" icon="arrowBottom"></wui-icon-box>
531
+ <w3m-input-address
532
+ ?readOnly=${isReadOnly}
533
+ .value=${this.receiverProfileName ? this.receiverProfileName : this.receiverAddress}
534
+ ></w3m-input-address>
535
+ </wui-flex>
536
+ ${this.buttonTemplate()}
537
+ </wui-flex>`;
538
+ }
539
+ async fetchBalances() {
540
+ await SendController.fetchTokenBalance();
541
+ SendController.fetchNetworkBalance();
542
+ }
543
+ async fetchNetworkPrice() {
544
+ await SwapController.getNetworkTokenPrice();
545
+ }
546
+ onButtonClick() {
547
+ RouterController.push("WalletSendPreview", {
548
+ send: this.params
549
+ });
550
+ }
551
+ onFundWalletClick() {
552
+ RouterController.push("FundWallet", {
553
+ redirectView: "WalletSend"
554
+ });
555
+ }
556
+ async onConnectDifferentWalletClick() {
557
+ try {
558
+ this.isTryingToChooseDifferentWallet = true;
559
+ this.disconnecting = true;
560
+ await ConnectionController.disconnect();
561
+ } finally {
562
+ this.disconnecting = false;
563
+ }
564
+ }
565
+ getMessage() {
566
+ var _a;
567
+ this.message = SEND_BUTTON_MESSAGE.PREVIEW_SEND;
568
+ if (this.receiverAddress && !CoreHelperUtil.isAddress(this.receiverAddress, ChainController.state.activeChain)) {
569
+ this.message = SEND_BUTTON_MESSAGE.INVALID_ADDRESS;
570
+ }
571
+ if (!this.receiverAddress) {
572
+ this.message = SEND_BUTTON_MESSAGE.ADD_ADDRESS;
573
+ }
574
+ if (this.sendTokenAmount && this.token && this.sendTokenAmount > Number(this.token.quantity.numeric)) {
575
+ this.message = SEND_BUTTON_MESSAGE.INSUFFICIENT_FUNDS;
576
+ }
577
+ if (!this.sendTokenAmount) {
578
+ this.message = SEND_BUTTON_MESSAGE.ADD_AMOUNT;
579
+ }
580
+ if (this.sendTokenAmount && ((_a = this.token) == null ? void 0 : _a.price)) {
581
+ const value = this.sendTokenAmount * this.token.price;
582
+ if (!value) {
583
+ this.message = SEND_BUTTON_MESSAGE.INCORRECT_VALUE;
584
+ }
585
+ }
586
+ if (!this.token) {
587
+ this.message = SEND_BUTTON_MESSAGE.SELECT_TOKEN;
588
+ }
589
+ }
590
+ buttonTemplate() {
591
+ const isDisabled = !this.message.startsWith(SEND_BUTTON_MESSAGE.PREVIEW_SEND);
592
+ const isInsufficientBalance = this.message === SEND_BUTTON_MESSAGE.INSUFFICIENT_FUNDS;
593
+ const isReadOnly = Boolean(this.params);
594
+ if (isInsufficientBalance && !isReadOnly) {
595
+ return x`
596
+ <wui-flex .margin=${["4", "0", "0", "0"]} flexDirection="column" gap="4">
597
+ <wui-button
598
+ @click=${this.onFundWalletClick.bind(this)}
599
+ size="lg"
600
+ variant="accent-secondary"
601
+ fullWidth
602
+ >
603
+ Fund Wallet
604
+ </wui-button>
605
+
606
+ <wui-separator data-testid="wui-separator" text="or"></wui-separator>
607
+
608
+ <wui-button
609
+ @click=${this.onConnectDifferentWalletClick.bind(this)}
610
+ size="lg"
611
+ variant="neutral-secondary"
612
+ fullWidth
613
+ ?loading=${this.disconnecting}
614
+ >
615
+ Connect a different wallet
616
+ </wui-button>
617
+ </wui-flex>
618
+ `;
619
+ }
620
+ return x`<wui-flex .margin=${["4", "0", "0", "0"]}>
621
+ <wui-button
622
+ @click=${this.onButtonClick.bind(this)}
623
+ ?disabled=${isDisabled}
624
+ size="lg"
625
+ variant="accent-primary"
626
+ ?loading=${this.loading}
627
+ fullWidth
628
+ >
629
+ ${this.message}
630
+ </wui-button>
631
+ </wui-flex>`;
632
+ }
633
+ async handleSendParameters() {
634
+ this.loading = true;
635
+ if (!this.params) {
636
+ this.loading = false;
637
+ return;
638
+ }
639
+ const amount = Number(this.params.amount);
640
+ if (isNaN(amount)) {
641
+ SnackController.showError("Invalid amount");
642
+ this.loading = false;
643
+ return;
644
+ }
645
+ const { namespace, chainId, assetAddress } = this.params;
646
+ if (!ConstantsUtil.SEND_PARAMS_SUPPORTED_CHAINS.includes(namespace)) {
647
+ SnackController.showError(`Chain "${namespace}" is not supported for send parameters`);
648
+ this.loading = false;
649
+ return;
650
+ }
651
+ const caipNetwork = ChainController.getCaipNetworkById(chainId, namespace);
652
+ if (!caipNetwork) {
653
+ SnackController.showError(`Network with id "${chainId}" not found`);
654
+ this.loading = false;
655
+ return;
656
+ }
657
+ try {
658
+ const { balance, name, symbol, decimals } = await BalanceUtil.fetchERC20Balance({
659
+ caipAddress: this.caipAddress,
660
+ assetAddress,
661
+ caipNetwork
662
+ });
663
+ if (!name || !symbol || !decimals || !balance) {
664
+ SnackController.showError("Token not found");
665
+ return;
666
+ }
667
+ SendController.setToken({
668
+ name,
669
+ symbol,
670
+ chainId: caipNetwork.id.toString(),
671
+ address: `${caipNetwork.chainNamespace}:${caipNetwork.id}:${assetAddress}`,
672
+ value: 0,
673
+ price: 0,
674
+ quantity: {
675
+ decimals: decimals.toString(),
676
+ numeric: balance.toString()
677
+ },
678
+ iconUrl: AssetUtil.getTokenImage(symbol) ?? ""
679
+ });
680
+ SendController.setTokenAmount(amount);
681
+ SendController.setReceiverAddress(this.params.to);
682
+ } catch (err) {
683
+ console.error("Failed to load token information:", err);
684
+ SnackController.showError("Failed to load token information");
685
+ } finally {
686
+ this.loading = false;
687
+ }
688
+ }
689
+ };
690
+ W3mWalletSendView.styles = styles$6;
691
+ __decorate$6([
692
+ r()
693
+ ], W3mWalletSendView.prototype, "token", void 0);
694
+ __decorate$6([
695
+ r()
696
+ ], W3mWalletSendView.prototype, "sendTokenAmount", void 0);
697
+ __decorate$6([
698
+ r()
699
+ ], W3mWalletSendView.prototype, "receiverAddress", void 0);
700
+ __decorate$6([
701
+ r()
702
+ ], W3mWalletSendView.prototype, "receiverProfileName", void 0);
703
+ __decorate$6([
704
+ r()
705
+ ], W3mWalletSendView.prototype, "loading", void 0);
706
+ __decorate$6([
707
+ r()
708
+ ], W3mWalletSendView.prototype, "params", void 0);
709
+ __decorate$6([
710
+ r()
711
+ ], W3mWalletSendView.prototype, "caipAddress", void 0);
712
+ __decorate$6([
713
+ r()
714
+ ], W3mWalletSendView.prototype, "message", void 0);
715
+ __decorate$6([
716
+ r()
717
+ ], W3mWalletSendView.prototype, "disconnecting", void 0);
718
+ W3mWalletSendView = __decorate$6([
719
+ customElement("w3m-wallet-send-view")
720
+ ], W3mWalletSendView);
721
+ const styles$5 = css`
722
+ .contentContainer {
723
+ height: 440px;
724
+ overflow: scroll;
725
+ scrollbar-width: none;
726
+ }
727
+
728
+ .contentContainer::-webkit-scrollbar {
729
+ display: none;
730
+ }
731
+
732
+ wui-icon-box {
733
+ width: 40px;
734
+ height: 40px;
735
+ border-radius: ${({ borderRadius }) => borderRadius["3"]};
736
+ }
737
+ `;
738
+ var __decorate$5 = function(decorators, target, key, desc) {
739
+ var c = arguments.length, r2 = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
740
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r2 = Reflect.decorate(decorators, target, key, desc);
741
+ else for (var i2 = decorators.length - 1; i2 >= 0; i2--) if (d = decorators[i2]) r2 = (c < 3 ? d(r2) : c > 3 ? d(target, key, r2) : d(target, key)) || r2;
742
+ return c > 3 && r2 && Object.defineProperty(target, key, r2), r2;
743
+ };
744
+ let W3mSendSelectTokenView = class W3mSendSelectTokenView2 extends i {
745
+ constructor() {
746
+ super();
747
+ this.unsubscribe = [];
748
+ this.tokenBalances = SendController.state.tokenBalances;
749
+ this.search = "";
750
+ this.onDebouncedSearch = CoreHelperUtil.debounce((value) => {
751
+ this.search = value;
752
+ });
753
+ this.fetchBalancesAndNetworkPrice();
754
+ this.unsubscribe.push(...[
755
+ SendController.subscribe((val) => {
756
+ this.tokenBalances = val.tokenBalances;
757
+ })
758
+ ]);
759
+ }
760
+ disconnectedCallback() {
761
+ this.unsubscribe.forEach((unsubscribe) => unsubscribe());
762
+ }
763
+ render() {
764
+ return x`
765
+ <wui-flex flexDirection="column">
766
+ ${this.templateSearchInput()} <wui-separator></wui-separator> ${this.templateTokens()}
767
+ </wui-flex>
768
+ `;
769
+ }
770
+ async fetchBalancesAndNetworkPrice() {
771
+ var _a;
772
+ if (!this.tokenBalances || ((_a = this.tokenBalances) == null ? void 0 : _a.length) === 0) {
773
+ await this.fetchBalances();
774
+ await this.fetchNetworkPrice();
775
+ }
776
+ }
777
+ async fetchBalances() {
778
+ await SendController.fetchTokenBalance();
779
+ SendController.fetchNetworkBalance();
780
+ }
781
+ async fetchNetworkPrice() {
782
+ await SwapController.getNetworkTokenPrice();
783
+ }
784
+ templateSearchInput() {
785
+ return x`
786
+ <wui-flex gap="2" padding="3">
787
+ <wui-input-text
788
+ @inputChange=${this.onInputChange.bind(this)}
789
+ class="network-search-input"
790
+ size="sm"
791
+ placeholder="Search token"
792
+ icon="search"
793
+ ></wui-input-text>
794
+ </wui-flex>
795
+ `;
796
+ }
797
+ templateTokens() {
798
+ var _a, _b;
799
+ this.tokens = (_a = this.tokenBalances) == null ? void 0 : _a.filter((token) => {
800
+ var _a2;
801
+ return token.chainId === ((_a2 = ChainController.state.activeCaipNetwork) == null ? void 0 : _a2.caipNetworkId);
802
+ });
803
+ if (this.search) {
804
+ this.filteredTokens = (_b = this.tokenBalances) == null ? void 0 : _b.filter((token) => token.name.toLowerCase().includes(this.search.toLowerCase()));
805
+ } else {
806
+ this.filteredTokens = this.tokens;
807
+ }
808
+ return x`
809
+ <wui-flex
810
+ class="contentContainer"
811
+ flexDirection="column"
812
+ .padding=${["0", "3", "0", "3"]}
813
+ >
814
+ <wui-flex justifyContent="flex-start" .padding=${["4", "3", "3", "3"]}>
815
+ <wui-text variant="md-medium" color="secondary">Your tokens</wui-text>
816
+ </wui-flex>
817
+ <wui-flex flexDirection="column" gap="2">
818
+ ${this.filteredTokens && this.filteredTokens.length > 0 ? this.filteredTokens.map((token) => x`<wui-list-token
819
+ @click=${this.handleTokenClick.bind(this, token)}
820
+ ?clickable=${true}
821
+ tokenName=${token.name}
822
+ tokenImageUrl=${token.iconUrl}
823
+ tokenAmount=${token.quantity.numeric}
824
+ tokenValue=${token.value}
825
+ tokenCurrency=${token.symbol}
826
+ ></wui-list-token>`) : x`<wui-flex
827
+ .padding=${["20", "0", "0", "0"]}
828
+ alignItems="center"
829
+ flexDirection="column"
830
+ gap="4"
831
+ >
832
+ <wui-icon-box icon="coinPlaceholder" color="default" size="lg"></wui-icon-box>
833
+ <wui-flex
834
+ class="textContent"
835
+ gap="2"
836
+ flexDirection="column"
837
+ justifyContent="center"
838
+ flexDirection="column"
839
+ >
840
+ <wui-text variant="lg-medium" align="center" color="primary">
841
+ No tokens found
842
+ </wui-text>
843
+ <wui-text variant="lg-regular" align="center" color="secondary">
844
+ Your tokens will appear here
845
+ </wui-text>
846
+ </wui-flex>
847
+ <wui-link @click=${this.onBuyClick.bind(this)}>Buy</wui-link>
848
+ </wui-flex>`}
849
+ </wui-flex>
850
+ </wui-flex>
851
+ `;
852
+ }
853
+ onBuyClick() {
854
+ RouterController.push("OnRampProviders");
855
+ }
856
+ onInputChange(event) {
857
+ this.onDebouncedSearch(event.detail);
858
+ }
859
+ handleTokenClick(token) {
860
+ SendController.setToken(token);
861
+ SendController.setTokenAmount(void 0);
862
+ RouterController.goBack();
863
+ }
864
+ };
865
+ W3mSendSelectTokenView.styles = styles$5;
866
+ __decorate$5([
867
+ r()
868
+ ], W3mSendSelectTokenView.prototype, "tokenBalances", void 0);
869
+ __decorate$5([
870
+ r()
871
+ ], W3mSendSelectTokenView.prototype, "tokens", void 0);
872
+ __decorate$5([
873
+ r()
874
+ ], W3mSendSelectTokenView.prototype, "filteredTokens", void 0);
875
+ __decorate$5([
876
+ r()
877
+ ], W3mSendSelectTokenView.prototype, "search", void 0);
878
+ W3mSendSelectTokenView = __decorate$5([
879
+ customElement("w3m-wallet-send-select-token-view")
880
+ ], W3mSendSelectTokenView);
881
+ const styles$4 = css`
882
+ :host {
883
+ height: 32px;
884
+ display: flex;
885
+ align-items: center;
886
+ gap: ${({ spacing }) => spacing[1]};
887
+ border-radius: ${({ borderRadius }) => borderRadius[32]};
888
+ background-color: ${({ tokens }) => tokens.theme.foregroundPrimary};
889
+ padding: ${({ spacing }) => spacing[1]};
890
+ padding-left: ${({ spacing }) => spacing[2]};
891
+ }
892
+
893
+ wui-avatar,
894
+ wui-image {
895
+ width: 24px;
896
+ height: 24px;
897
+ border-radius: ${({ borderRadius }) => borderRadius[16]};
898
+ }
899
+
900
+ wui-icon {
901
+ border-radius: ${({ borderRadius }) => borderRadius[16]};
902
+ }
903
+ `;
904
+ var __decorate$4 = function(decorators, target, key, desc) {
905
+ var c = arguments.length, r2 = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
906
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r2 = Reflect.decorate(decorators, target, key, desc);
907
+ else for (var i2 = decorators.length - 1; i2 >= 0; i2--) if (d = decorators[i2]) r2 = (c < 3 ? d(r2) : c > 3 ? d(target, key, r2) : d(target, key)) || r2;
908
+ return c > 3 && r2 && Object.defineProperty(target, key, r2), r2;
909
+ };
910
+ let WuiPreviewItem = class WuiPreviewItem2 extends i {
911
+ constructor() {
912
+ super(...arguments);
913
+ this.text = "";
914
+ }
915
+ render() {
916
+ return x`<wui-text variant="lg-regular" color="primary">${this.text}</wui-text>
917
+ ${this.imageTemplate()}`;
918
+ }
919
+ imageTemplate() {
920
+ if (this.address) {
921
+ return x`<wui-avatar address=${this.address} .imageSrc=${this.imageSrc}></wui-avatar>`;
922
+ } else if (this.imageSrc) {
923
+ return x`<wui-image src=${this.imageSrc}></wui-image>`;
924
+ }
925
+ return x`<wui-icon size="lg" color="inverse" name="networkPlaceholder"></wui-icon>`;
926
+ }
927
+ };
928
+ WuiPreviewItem.styles = [resetStyles, elementStyles, styles$4];
929
+ __decorate$4([
930
+ n({ type: String })
931
+ ], WuiPreviewItem.prototype, "text", void 0);
932
+ __decorate$4([
933
+ n({ type: String })
934
+ ], WuiPreviewItem.prototype, "address", void 0);
935
+ __decorate$4([
936
+ n({ type: String })
937
+ ], WuiPreviewItem.prototype, "imageSrc", void 0);
938
+ WuiPreviewItem = __decorate$4([
939
+ customElement("wui-preview-item")
940
+ ], WuiPreviewItem);
941
+ const styles$3 = css`
942
+ :host {
943
+ display: flex;
944
+ padding: ${({ spacing }) => spacing[4]} ${({ spacing }) => spacing[3]};
945
+ width: 100%;
946
+ background-color: ${({ tokens }) => tokens.theme.foregroundPrimary};
947
+ border-radius: ${({ borderRadius }) => borderRadius[4]};
948
+ }
949
+
950
+ wui-image {
951
+ width: 20px;
952
+ height: 20px;
953
+ border-radius: ${({ borderRadius }) => borderRadius[16]};
954
+ }
955
+
956
+ wui-icon {
957
+ width: 20px;
958
+ height: 20px;
959
+ }
960
+ `;
961
+ var __decorate$3 = function(decorators, target, key, desc) {
962
+ var c = arguments.length, r2 = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
963
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r2 = Reflect.decorate(decorators, target, key, desc);
964
+ else for (var i2 = decorators.length - 1; i2 >= 0; i2--) if (d = decorators[i2]) r2 = (c < 3 ? d(r2) : c > 3 ? d(target, key, r2) : d(target, key)) || r2;
965
+ return c > 3 && r2 && Object.defineProperty(target, key, r2), r2;
966
+ };
967
+ let WuiListContent = class WuiListContent2 extends i {
968
+ constructor() {
969
+ super(...arguments);
970
+ this.imageSrc = void 0;
971
+ this.textTitle = "";
972
+ this.textValue = void 0;
973
+ }
974
+ render() {
975
+ return x`
976
+ <wui-flex justifyContent="space-between" alignItems="center">
977
+ <wui-text variant="lg-regular" color="primary"> ${this.textTitle} </wui-text>
978
+ ${this.templateContent()}
979
+ </wui-flex>
980
+ `;
981
+ }
982
+ templateContent() {
983
+ if (this.imageSrc) {
984
+ return x`<wui-image src=${this.imageSrc} alt=${this.textTitle}></wui-image>`;
985
+ } else if (this.textValue) {
986
+ return x` <wui-text variant="md-regular" color="secondary"> ${this.textValue} </wui-text>`;
987
+ }
988
+ return x`<wui-icon size="inherit" color="default" name="networkPlaceholder"></wui-icon>`;
989
+ }
990
+ };
991
+ WuiListContent.styles = [resetStyles, elementStyles, styles$3];
992
+ __decorate$3([
993
+ n()
994
+ ], WuiListContent.prototype, "imageSrc", void 0);
995
+ __decorate$3([
996
+ n()
997
+ ], WuiListContent.prototype, "textTitle", void 0);
998
+ __decorate$3([
999
+ n()
1000
+ ], WuiListContent.prototype, "textValue", void 0);
1001
+ WuiListContent = __decorate$3([
1002
+ customElement("wui-list-content")
1003
+ ], WuiListContent);
1004
+ const styles$2 = css`
1005
+ :host {
1006
+ display: flex;
1007
+ width: auto;
1008
+ flex-direction: column;
1009
+ gap: ${({ spacing }) => spacing["1"]};
1010
+ border-radius: ${({ borderRadius }) => borderRadius["5"]};
1011
+ background: ${({ tokens }) => tokens.theme.foregroundPrimary};
1012
+ padding: ${({ spacing }) => spacing["3"]} ${({ spacing }) => spacing["2"]}
1013
+ ${({ spacing }) => spacing["2"]} ${({ spacing }) => spacing["2"]};
1014
+ }
1015
+
1016
+ wui-list-content {
1017
+ width: -webkit-fill-available !important;
1018
+ }
1019
+
1020
+ wui-text {
1021
+ padding: 0 ${({ spacing }) => spacing["2"]};
1022
+ }
1023
+
1024
+ wui-flex {
1025
+ margin-top: ${({ spacing }) => spacing["2"]};
1026
+ }
1027
+
1028
+ .network {
1029
+ cursor: pointer;
1030
+ transition: background-color ${({ durations }) => durations["lg"]}
1031
+ ${({ easings }) => easings["ease-out-power-1"]};
1032
+ will-change: background-color;
1033
+ }
1034
+
1035
+ .network:focus-visible {
1036
+ border: 1px solid ${({ tokens }) => tokens.core.textAccentPrimary};
1037
+ background-color: ${({ tokens }) => tokens.core.glass010};
1038
+ -webkit-box-shadow: 0px 0px 0px 4px ${({ tokens }) => tokens.core.foregroundAccent010};
1039
+ -moz-box-shadow: 0px 0px 0px 4px ${({ tokens }) => tokens.core.foregroundAccent010};
1040
+ box-shadow: 0px 0px 0px 4px ${({ tokens }) => tokens.core.foregroundAccent010};
1041
+ }
1042
+
1043
+ .network:hover {
1044
+ background-color: ${({ tokens }) => tokens.core.glass010};
1045
+ }
1046
+
1047
+ .network:active {
1048
+ background-color: ${({ tokens }) => tokens.core.glass010};
1049
+ }
1050
+ `;
1051
+ var __decorate$2 = function(decorators, target, key, desc) {
1052
+ var c = arguments.length, r2 = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
1053
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r2 = Reflect.decorate(decorators, target, key, desc);
1054
+ else for (var i2 = decorators.length - 1; i2 >= 0; i2--) if (d = decorators[i2]) r2 = (c < 3 ? d(r2) : c > 3 ? d(target, key, r2) : d(target, key)) || r2;
1055
+ return c > 3 && r2 && Object.defineProperty(target, key, r2), r2;
1056
+ };
1057
+ let W3mWalletSendDetails = class W3mWalletSendDetails2 extends i {
1058
+ constructor() {
1059
+ var _a;
1060
+ super(...arguments);
1061
+ this.params = (_a = RouterController.state.data) == null ? void 0 : _a.send;
1062
+ }
1063
+ render() {
1064
+ return x` <wui-text variant="sm-regular" color="secondary">Details</wui-text>
1065
+ <wui-flex flexDirection="column" gap="1">
1066
+ <wui-list-content
1067
+ textTitle="Address"
1068
+ textValue=${UiHelperUtil.getTruncateString({
1069
+ string: this.receiverAddress ?? "",
1070
+ charsStart: 4,
1071
+ charsEnd: 4,
1072
+ truncate: "middle"
1073
+ })}
1074
+ >
1075
+ </wui-list-content>
1076
+ ${this.networkTemplate()}
1077
+ </wui-flex>`;
1078
+ }
1079
+ networkTemplate() {
1080
+ var _a;
1081
+ if ((_a = this.caipNetwork) == null ? void 0 : _a.name) {
1082
+ return x` <wui-list-content
1083
+ @click=${() => this.onNetworkClick(this.caipNetwork)}
1084
+ class="network"
1085
+ textTitle="Network"
1086
+ imageSrc=${o(AssetUtil.getNetworkImage(this.caipNetwork))}
1087
+ ></wui-list-content>`;
1088
+ }
1089
+ return null;
1090
+ }
1091
+ onNetworkClick(network) {
1092
+ if (network && !this.params) {
1093
+ RouterController.push("Networks", { network });
1094
+ }
1095
+ }
1096
+ };
1097
+ W3mWalletSendDetails.styles = styles$2;
1098
+ __decorate$2([
1099
+ n()
1100
+ ], W3mWalletSendDetails.prototype, "receiverAddress", void 0);
1101
+ __decorate$2([
1102
+ n({ type: Object })
1103
+ ], W3mWalletSendDetails.prototype, "caipNetwork", void 0);
1104
+ __decorate$2([
1105
+ r()
1106
+ ], W3mWalletSendDetails.prototype, "params", void 0);
1107
+ W3mWalletSendDetails = __decorate$2([
1108
+ customElement("w3m-wallet-send-details")
1109
+ ], W3mWalletSendDetails);
1110
+ const styles$1 = css`
1111
+ wui-avatar,
1112
+ wui-image {
1113
+ display: ruby;
1114
+ width: 32px;
1115
+ height: 32px;
1116
+ border-radius: ${({ borderRadius }) => borderRadius["20"]};
1117
+ }
1118
+
1119
+ .sendButton {
1120
+ width: 70%;
1121
+ --local-width: 100% !important;
1122
+ --local-border-radius: ${({ borderRadius }) => borderRadius["4"]} !important;
1123
+ }
1124
+
1125
+ .cancelButton {
1126
+ width: 30%;
1127
+ --local-width: 100% !important;
1128
+ --local-border-radius: ${({ borderRadius }) => borderRadius["4"]} !important;
1129
+ }
1130
+ `;
1131
+ var __decorate$1 = function(decorators, target, key, desc) {
1132
+ var c = arguments.length, r2 = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
1133
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r2 = Reflect.decorate(decorators, target, key, desc);
1134
+ else for (var i2 = decorators.length - 1; i2 >= 0; i2--) if (d = decorators[i2]) r2 = (c < 3 ? d(r2) : c > 3 ? d(target, key, r2) : d(target, key)) || r2;
1135
+ return c > 3 && r2 && Object.defineProperty(target, key, r2), r2;
1136
+ };
1137
+ let W3mWalletSendPreviewView = class W3mWalletSendPreviewView2 extends i {
1138
+ constructor() {
1139
+ var _a;
1140
+ super();
1141
+ this.unsubscribe = [];
1142
+ this.token = SendController.state.token;
1143
+ this.sendTokenAmount = SendController.state.sendTokenAmount;
1144
+ this.receiverAddress = SendController.state.receiverAddress;
1145
+ this.receiverProfileName = SendController.state.receiverProfileName;
1146
+ this.receiverProfileImageUrl = SendController.state.receiverProfileImageUrl;
1147
+ this.caipNetwork = ChainController.state.activeCaipNetwork;
1148
+ this.loading = SendController.state.loading;
1149
+ this.params = (_a = RouterController.state.data) == null ? void 0 : _a.send;
1150
+ this.unsubscribe.push(...[
1151
+ SendController.subscribe((val) => {
1152
+ this.token = val.token;
1153
+ this.sendTokenAmount = val.sendTokenAmount;
1154
+ this.receiverAddress = val.receiverAddress;
1155
+ this.receiverProfileName = val.receiverProfileName;
1156
+ this.receiverProfileImageUrl = val.receiverProfileImageUrl;
1157
+ this.loading = val.loading;
1158
+ }),
1159
+ ChainController.subscribeKey("activeCaipNetwork", (val) => this.caipNetwork = val)
1160
+ ]);
1161
+ }
1162
+ disconnectedCallback() {
1163
+ this.unsubscribe.forEach((unsubscribe) => unsubscribe());
1164
+ }
1165
+ render() {
1166
+ var _a, _b;
1167
+ return x` <wui-flex flexDirection="column" .padding=${["0", "4", "4", "4"]}>
1168
+ <wui-flex gap="2" flexDirection="column" .padding=${["0", "2", "0", "2"]}>
1169
+ <wui-flex alignItems="center" justifyContent="space-between">
1170
+ <wui-flex flexDirection="column" gap="01">
1171
+ <wui-text variant="sm-regular" color="secondary">Send</wui-text>
1172
+ ${this.sendValueTemplate()}
1173
+ </wui-flex>
1174
+ <wui-preview-item
1175
+ text="${this.sendTokenAmount ? UiHelperUtil.roundNumber(this.sendTokenAmount, 6, 5) : "unknown"} ${(_a = this.token) == null ? void 0 : _a.symbol}"
1176
+ .imageSrc=${(_b = this.token) == null ? void 0 : _b.iconUrl}
1177
+ ></wui-preview-item>
1178
+ </wui-flex>
1179
+ <wui-flex>
1180
+ <wui-icon color="default" size="md" name="arrowBottom"></wui-icon>
1181
+ </wui-flex>
1182
+ <wui-flex alignItems="center" justifyContent="space-between">
1183
+ <wui-text variant="sm-regular" color="secondary">To</wui-text>
1184
+ <wui-preview-item
1185
+ text="${this.receiverProfileName ? UiHelperUtil.getTruncateString({
1186
+ string: this.receiverProfileName,
1187
+ charsStart: 20,
1188
+ charsEnd: 0,
1189
+ truncate: "end"
1190
+ }) : UiHelperUtil.getTruncateString({
1191
+ string: this.receiverAddress ? this.receiverAddress : "",
1192
+ charsStart: 4,
1193
+ charsEnd: 4,
1194
+ truncate: "middle"
1195
+ })}"
1196
+ address=${this.receiverAddress ?? ""}
1197
+ .imageSrc=${this.receiverProfileImageUrl ?? void 0}
1198
+ .isAddress=${true}
1199
+ ></wui-preview-item>
1200
+ </wui-flex>
1201
+ </wui-flex>
1202
+ <wui-flex flexDirection="column" .padding=${["6", "0", "0", "0"]}>
1203
+ <w3m-wallet-send-details
1204
+ .caipNetwork=${this.caipNetwork}
1205
+ .receiverAddress=${this.receiverAddress}
1206
+ ></w3m-wallet-send-details>
1207
+ <wui-flex justifyContent="center" gap="1" .padding=${["3", "0", "0", "0"]}>
1208
+ <wui-icon size="sm" color="default" name="warningCircle"></wui-icon>
1209
+ <wui-text variant="sm-regular" color="secondary">Review transaction carefully</wui-text>
1210
+ </wui-flex>
1211
+ <wui-flex justifyContent="center" gap="3" .padding=${["4", "0", "0", "0"]}>
1212
+ <wui-button
1213
+ class="cancelButton"
1214
+ @click=${this.onCancelClick.bind(this)}
1215
+ size="lg"
1216
+ variant="neutral-secondary"
1217
+ >
1218
+ Cancel
1219
+ </wui-button>
1220
+ <wui-button
1221
+ class="sendButton"
1222
+ @click=${this.onSendClick.bind(this)}
1223
+ size="lg"
1224
+ variant="accent-primary"
1225
+ .loading=${this.loading}
1226
+ >
1227
+ Send
1228
+ </wui-button>
1229
+ </wui-flex>
1230
+ </wui-flex></wui-flex
1231
+ >`;
1232
+ }
1233
+ sendValueTemplate() {
1234
+ if (!this.params && this.token && this.sendTokenAmount) {
1235
+ const price = this.token.price;
1236
+ const totalValue = price * this.sendTokenAmount;
1237
+ return x`<wui-text variant="md-regular" color="primary"
1238
+ >$${totalValue.toFixed(2)}</wui-text
1239
+ >`;
1240
+ }
1241
+ return null;
1242
+ }
1243
+ async onSendClick() {
1244
+ if (!this.sendTokenAmount || !this.receiverAddress) {
1245
+ SnackController.showError("Please enter a valid amount and receiver address");
1246
+ return;
1247
+ }
1248
+ try {
1249
+ await SendController.sendToken();
1250
+ if (this.params) {
1251
+ RouterController.reset("WalletSendConfirmed");
1252
+ } else {
1253
+ SnackController.showSuccess("Transaction started");
1254
+ RouterController.replace("Account");
1255
+ }
1256
+ } catch (error) {
1257
+ let errMessage = "Failed to send transaction. Please try again.";
1258
+ const isUserRejectedRequestError = error instanceof AppKitError && error.originalName === ErrorUtil.PROVIDER_RPC_ERROR_NAME.USER_REJECTED_REQUEST;
1259
+ if (ChainController.state.activeChain === ConstantsUtil$1.CHAIN.SOLANA || isUserRejectedRequestError) {
1260
+ if (error instanceof Error) {
1261
+ errMessage = error.message;
1262
+ }
1263
+ }
1264
+ EventsController.sendEvent({
1265
+ type: "track",
1266
+ event: isUserRejectedRequestError ? "SEND_REJECTED" : "SEND_ERROR",
1267
+ properties: SendController.getSdkEventProperties(error)
1268
+ });
1269
+ SnackController.showError(errMessage);
1270
+ }
1271
+ }
1272
+ onCancelClick() {
1273
+ RouterController.goBack();
1274
+ }
1275
+ };
1276
+ W3mWalletSendPreviewView.styles = styles$1;
1277
+ __decorate$1([
1278
+ r()
1279
+ ], W3mWalletSendPreviewView.prototype, "token", void 0);
1280
+ __decorate$1([
1281
+ r()
1282
+ ], W3mWalletSendPreviewView.prototype, "sendTokenAmount", void 0);
1283
+ __decorate$1([
1284
+ r()
1285
+ ], W3mWalletSendPreviewView.prototype, "receiverAddress", void 0);
1286
+ __decorate$1([
1287
+ r()
1288
+ ], W3mWalletSendPreviewView.prototype, "receiverProfileName", void 0);
1289
+ __decorate$1([
1290
+ r()
1291
+ ], W3mWalletSendPreviewView.prototype, "receiverProfileImageUrl", void 0);
1292
+ __decorate$1([
1293
+ r()
1294
+ ], W3mWalletSendPreviewView.prototype, "caipNetwork", void 0);
1295
+ __decorate$1([
1296
+ r()
1297
+ ], W3mWalletSendPreviewView.prototype, "loading", void 0);
1298
+ __decorate$1([
1299
+ r()
1300
+ ], W3mWalletSendPreviewView.prototype, "params", void 0);
1301
+ W3mWalletSendPreviewView = __decorate$1([
1302
+ customElement("w3m-wallet-send-preview-view")
1303
+ ], W3mWalletSendPreviewView);
1304
+ const styles = css`
1305
+ .icon-box {
1306
+ width: 64px;
1307
+ height: 64px;
1308
+ border-radius: 16px;
1309
+ background-color: ${({ spacing }) => spacing[16]};
1310
+ border: 8px solid ${({ tokens }) => tokens.theme.borderPrimary};
1311
+ border-radius: ${({ borderRadius }) => borderRadius.round};
1312
+ }
1313
+ `;
1314
+ var __decorate = function(decorators, target, key, desc) {
1315
+ var c = arguments.length, r2 = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
1316
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r2 = Reflect.decorate(decorators, target, key, desc);
1317
+ else for (var i2 = decorators.length - 1; i2 >= 0; i2--) if (d = decorators[i2]) r2 = (c < 3 ? d(r2) : c > 3 ? d(target, key, r2) : d(target, key)) || r2;
1318
+ return c > 3 && r2 && Object.defineProperty(target, key, r2), r2;
1319
+ };
1320
+ let W3mSendConfirmedView = class W3mSendConfirmedView2 extends i {
1321
+ constructor() {
1322
+ super();
1323
+ this.unsubscribe = [];
1324
+ this.unsubscribe.push(...[]);
1325
+ }
1326
+ render() {
1327
+ return x`
1328
+ <wui-flex
1329
+ flexDirection="column"
1330
+ alignItems="center"
1331
+ gap="4"
1332
+ .padding="${["1", "3", "4", "3"]}"
1333
+ >
1334
+ <wui-flex justifyContent="center" alignItems="center" class="icon-box">
1335
+ <wui-icon size="xxl" color="success" name="checkmark"></wui-icon>
1336
+ </wui-flex>
1337
+
1338
+ <wui-text variant="h6-medium" color="primary">You successfully sent asset</wui-text>
1339
+
1340
+ <wui-button
1341
+ fullWidth
1342
+ @click=${this.onCloseClick.bind(this)}
1343
+ size="lg"
1344
+ variant="neutral-secondary"
1345
+ >
1346
+ Close
1347
+ </wui-button>
1348
+ </wui-flex>
1349
+ `;
1350
+ }
1351
+ onCloseClick() {
1352
+ ModalController.close();
1353
+ }
1354
+ };
1355
+ W3mSendConfirmedView.styles = styles;
1356
+ W3mSendConfirmedView = __decorate([
1357
+ customElement("w3m-send-confirmed-view")
1358
+ ], W3mSendConfirmedView);
1359
+ export {
1360
+ W3mSendConfirmedView,
1361
+ W3mSendSelectTokenView,
1362
+ W3mWalletSendPreviewView,
1363
+ W3mWalletSendView
1364
+ };
1365
+ //# sourceMappingURL=send-CkjE5TE2.js.map