@snowmonster_defi/widget 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (326) hide show
  1. package/README.md +85 -0
  2. package/dist/Arc-VDBY7LNS-DBrTWC6L.mjs +4 -0
  3. package/dist/Arc-VDBY7LNS-m3oU4SFX.js +1 -0
  4. package/dist/Brave-BRAKJXDS-B9q28yrX.js +1 -0
  5. package/dist/Brave-BRAKJXDS-CfOthErl.mjs +4 -0
  6. package/dist/Browser-76IHF3Y2-BR3yRO0Q.js +1 -0
  7. package/dist/Browser-76IHF3Y2-D5mI5yDv.mjs +4 -0
  8. package/dist/Chrome-65Q5P54Y-9eqcWmOm.js +1 -0
  9. package/dist/Chrome-65Q5P54Y-DrF9hxVd.mjs +4 -0
  10. package/dist/Edge-XSPUTORV-B8kHPG9e.js +1 -0
  11. package/dist/Edge-XSPUTORV-BPc8HSNM.mjs +4 -0
  12. package/dist/Firefox-AAHGJQIP--XXnd95e.mjs +4 -0
  13. package/dist/Firefox-AAHGJQIP-BtlH2zVc.js +1 -0
  14. package/dist/Linux-OO4TNCLJ-BzSRqE5q.js +1 -0
  15. package/dist/Linux-OO4TNCLJ-DjZl5oHj.mjs +4 -0
  16. package/dist/Macos-MW4AE7LN-34pmNxSL.js +1 -0
  17. package/dist/Macos-MW4AE7LN-DDrYwsGC.mjs +4 -0
  18. package/dist/Opera-KQZLSACL-BY-yTZwm.js +1 -0
  19. package/dist/Opera-KQZLSACL-DhwRnyeO.mjs +4 -0
  20. package/dist/Safari-ZPL37GXR-BAHe1sxY.js +1 -0
  21. package/dist/Safari-ZPL37GXR-BJMyZNGk.mjs +4 -0
  22. package/dist/Windows-PPTHQER6-8DxONxME.mjs +4 -0
  23. package/dist/Windows-PPTHQER6-BtXwY24K.js +1 -0
  24. package/dist/add-BMx827fr.js +15 -0
  25. package/dist/add-C1-3Nxd0.mjs +19 -0
  26. package/dist/all-wallets-Bw2RRXQf.js +6 -0
  27. package/dist/all-wallets-CeboYmll.mjs +10 -0
  28. package/dist/apechain-SX5YFU6N-B6iVN2eI.mjs +4 -0
  29. package/dist/apechain-SX5YFU6N-BP98RVDs.js +1 -0
  30. package/dist/app-store-C-SLhk-c.mjs +21 -0
  31. package/dist/app-store-DWCVxk5n.js +17 -0
  32. package/dist/apple-C0-QMsmX.mjs +22 -0
  33. package/dist/apple-C6JNxC7s.js +18 -0
  34. package/dist/ar_AR-44JUQ6EW-DSQ9qcs_.js +1487 -0
  35. package/dist/ar_AR-44JUQ6EW-DZr8TU0E.mjs +1490 -0
  36. package/dist/arbitrum-WURIBY6W-BS2MH6mu.js +1 -0
  37. package/dist/arbitrum-WURIBY6W-C9umEuPP.mjs +4 -0
  38. package/dist/arrow-bottom-BQlfsLH7.js +8 -0
  39. package/dist/arrow-bottom-DBsoY1j4.mjs +12 -0
  40. package/dist/arrow-bottom-circle-0d4DMC8k.mjs +15 -0
  41. package/dist/arrow-bottom-circle-BWbOWcMy.js +11 -0
  42. package/dist/arrow-left-Buye_G_C.mjs +12 -0
  43. package/dist/arrow-left-CYea8lr5.js +8 -0
  44. package/dist/arrow-right-Bz07l-7m.js +8 -0
  45. package/dist/arrow-right-NcpIvTiP.mjs +12 -0
  46. package/dist/arrow-top-BHtmjrGh.mjs +12 -0
  47. package/dist/arrow-top-CE8kNyrN.js +8 -0
  48. package/dist/assets-Q6ZU7ZJ5-DrI2eCWt.mjs +4 -0
  49. package/dist/assets-Q6ZU7ZJ5-Dy7quYMC.js +1 -0
  50. package/dist/avalanche-KOMJD3XY-BzTQlT3D.mjs +4 -0
  51. package/dist/avalanche-KOMJD3XY-Df8RTmnR.js +1 -0
  52. package/dist/bank-54nZmUNU.js +14 -0
  53. package/dist/bank-foInih1V.mjs +18 -0
  54. package/dist/base-OAXLRA4F-iT9zH1Kj.js +1 -0
  55. package/dist/base-OAXLRA4F-zGysVgz6.mjs +4 -0
  56. package/dist/basic-BoWB3br8.mjs +5718 -0
  57. package/dist/basic-DgjjeOAX.js +2128 -0
  58. package/dist/berachain-NJECWIVC-BMZnNAq4.js +1 -0
  59. package/dist/berachain-NJECWIVC-CRQ0XjnA.mjs +4 -0
  60. package/dist/blast-V555OVXZ-Bbwv3H8h.js +1 -0
  61. package/dist/blast-V555OVXZ-DfAGOAm0.mjs +4 -0
  62. package/dist/browser-BC7vNobG.mjs +18 -0
  63. package/dist/browser-b-nGXlqN.js +14 -0
  64. package/dist/bsc-N647EYR2-B1LUNwWi.js +1 -0
  65. package/dist/bsc-N647EYR2-BZ1b_4BN.mjs +4 -0
  66. package/dist/card--XvDDn3y.mjs +18 -0
  67. package/dist/card-BkMuyW1R.js +14 -0
  68. package/dist/ccip-B3WUowc8.js +1 -0
  69. package/dist/ccip-DKFQjR9A.mjs +149 -0
  70. package/dist/celo-GEP4TUHG-DGNZBO1F.js +1 -0
  71. package/dist/celo-GEP4TUHG-DjaxM9On.mjs +4 -0
  72. package/dist/checkmark-BbGho5Io.mjs +15 -0
  73. package/dist/checkmark-DXb72YHc.js +11 -0
  74. package/dist/checkmark-bold-B1F7R5EK.mjs +12 -0
  75. package/dist/checkmark-bold-DdBV1Lmi.js +8 -0
  76. package/dist/chevron-bottom-CQZ-Wq5W.js +8 -0
  77. package/dist/chevron-bottom-XyYYwAR8.mjs +12 -0
  78. package/dist/chevron-left-8n-It-m1.js +8 -0
  79. package/dist/chevron-left-DuAvtNd0.mjs +12 -0
  80. package/dist/chevron-right-D59N_heq.js +8 -0
  81. package/dist/chevron-right-W5vVm_KB.mjs +12 -0
  82. package/dist/chevron-top-CEOzd8Ij.js +8 -0
  83. package/dist/chevron-top-DFkm04W3.mjs +12 -0
  84. package/dist/chrome-store-BrkLwaGp.js +61 -0
  85. package/dist/chrome-store-CP2NiEXz.mjs +65 -0
  86. package/dist/clock-B5JaCeFx.mjs +12 -0
  87. package/dist/clock-LQXXXzZd.js +8 -0
  88. package/dist/close-CvPH2PaL.js +8 -0
  89. package/dist/close-w5A4PucI.mjs +12 -0
  90. package/dist/coinPlaceholder-DFh7VbZT.js +8 -0
  91. package/dist/coinPlaceholder-haEbTDpA.mjs +12 -0
  92. package/dist/compass-CvRkiQHa.mjs +12 -0
  93. package/dist/compass-Df_6O9--.js +8 -0
  94. package/dist/components/DexRouterWidget.d.ts +7 -0
  95. package/dist/components/Web3Provider.d.ts +6 -0
  96. package/dist/connect-UA7M4XW6-BCDqQn-T.js +1 -0
  97. package/dist/connect-UA7M4XW6-of1DMMin.mjs +4 -0
  98. package/dist/copy-CyrCMq2Q.mjs +19 -0
  99. package/dist/copy-D0w04l-Q.js +15 -0
  100. package/dist/core-BdUBRviB.js +907 -0
  101. package/dist/core-auWK_7Ox.mjs +16251 -0
  102. package/dist/create-FASO7PVG-BFLB5t7x.mjs +4 -0
  103. package/dist/create-FASO7PVG-DaZC1z5H.js +1 -0
  104. package/dist/cronos-HJPAQTAE-CWSImNSf.mjs +4 -0
  105. package/dist/cronos-HJPAQTAE-CYNBJWpC.js +1 -0
  106. package/dist/cursor-D5uRbW9D.mjs +7 -0
  107. package/dist/cursor-DFMotZ-L.js +3 -0
  108. package/dist/cursor-transparent-BanA5rDD.mjs +16 -0
  109. package/dist/cursor-transparent-Cs4NrQu6.js +12 -0
  110. package/dist/de_DE-PYAO5YD6-DRiWndek.mjs +1490 -0
  111. package/dist/de_DE-PYAO5YD6-Dd1WvOtn.js +1487 -0
  112. package/dist/degen-FQQ4XGHB-B0iCWKkK.js +1 -0
  113. package/dist/degen-FQQ4XGHB-DXAeLlGy.mjs +4 -0
  114. package/dist/desktop-6Q-_rh47.mjs +13 -0
  115. package/dist/desktop-CheS5Az_.js +9 -0
  116. package/dist/disconnect-CRF11ye0.mjs +12 -0
  117. package/dist/disconnect-DltoX_gP.js +8 -0
  118. package/dist/discord-B6nj8oD_.mjs +21 -0
  119. package/dist/discord-CqY7Pilo.js +17 -0
  120. package/dist/en_US-Y4ZOVFV4-Dn3zitY_.js +1 -0
  121. package/dist/en_US-Y4ZOVFV4-hyEPVcDM.mjs +4 -0
  122. package/dist/es_419-HRGOJ6VT-B7E9BfQ6.js +1487 -0
  123. package/dist/es_419-HRGOJ6VT-Bb7kiWEN.mjs +1490 -0
  124. package/dist/ethereum-RGGVA4PY-D0PFo6qh.js +1 -0
  125. package/dist/ethereum-RGGVA4PY-DxPcn0KS.mjs +4 -0
  126. package/dist/etherscan-CLcbtjKR.mjs +10 -0
  127. package/dist/etherscan-DxjvKQo9.js +6 -0
  128. package/dist/exclamation-triangle-CxJuBpFB.mjs +8 -0
  129. package/dist/exclamation-triangle-D9vGQKFQ.js +4 -0
  130. package/dist/extension-CSqCxcZG.js +8 -0
  131. package/dist/extension-t0E2b7ef.mjs +12 -0
  132. package/dist/external-link-B-Lcyi6R.mjs +12 -0
  133. package/dist/external-link-BoArXGTq.js +8 -0
  134. package/dist/facebook-Cnfem7th.mjs +30 -0
  135. package/dist/facebook-DOkj8R5F.js +26 -0
  136. package/dist/farcaster-BlN1w-oR.mjs +16 -0
  137. package/dist/farcaster-DKhgfKln.js +12 -0
  138. package/dist/filters-DY5tpPJB.mjs +12 -0
  139. package/dist/filters-w4oLgYuJ.js +8 -0
  140. package/dist/flow-5FQJFCTK-CVfZv3to.mjs +4 -0
  141. package/dist/flow-5FQJFCTK-zNre9dGJ.js +1 -0
  142. package/dist/fr_FR-IGGVC6RM-DaW0iy2_.js +1487 -0
  143. package/dist/fr_FR-IGGVC6RM-Kc8NKbgI.mjs +1490 -0
  144. package/dist/github-BnOjmw_1.mjs +22 -0
  145. package/dist/github-Bq8YXj-l.js +18 -0
  146. package/dist/gnosis-37ZC4RBL-DpsuNYS1.js +1 -0
  147. package/dist/gnosis-37ZC4RBL-xYLDpnHh.mjs +4 -0
  148. package/dist/google-BjbAYNIf.js +18 -0
  149. package/dist/google-ySq_VIsy.mjs +22 -0
  150. package/dist/gravity-J5YQHTYH-B97TrN9J.mjs +4 -0
  151. package/dist/gravity-J5YQHTYH-CnR8N36w.js +1 -0
  152. package/dist/hardhat-TX56IT5N-2KZA3GeI.mjs +4 -0
  153. package/dist/hardhat-TX56IT5N-Mh0k0VUo.js +1 -0
  154. package/dist/help-circle-D_pee-dG.mjs +16 -0
  155. package/dist/help-circle-MVmAyaVF.js +12 -0
  156. package/dist/hi_IN-XSKAA3MF-C9xFkabi.js +1487 -0
  157. package/dist/hi_IN-XSKAA3MF-DvyeO32P.mjs +1490 -0
  158. package/dist/hyperevm-VKPAA4SA-BrvLj9LS.js +1 -0
  159. package/dist/hyperevm-VKPAA4SA-C95vekJe.mjs +4 -0
  160. package/dist/id-ByfWOnEX.js +12 -0
  161. package/dist/id-CuusF9Qd.mjs +16 -0
  162. package/dist/id_ID-KUOB4UAL-B3IV2Afs.js +1487 -0
  163. package/dist/id_ID-KUOB4UAL-CvWLNQ5n.mjs +1490 -0
  164. package/dist/image-BlN-YE3X.js +4 -0
  165. package/dist/image-Cs26jwi7.mjs +8 -0
  166. package/dist/index-BKj9Y5tv.js +1750 -0
  167. package/dist/index-BUG5Ve0i.mjs +1037 -0
  168. package/dist/index-C8nreL9m.mjs +29619 -0
  169. package/dist/index-STIsWesT.js +394 -0
  170. package/dist/index.cjs.js +1 -0
  171. package/dist/index.d.ts +4 -0
  172. package/dist/index.es-APae9KBk.js +25 -0
  173. package/dist/index.es-e80IGd_J.mjs +11883 -0
  174. package/dist/index.es.js +9 -0
  175. package/dist/info-Cb2Tnwp9.mjs +7 -0
  176. package/dist/info-D7vY5t3I.js +3 -0
  177. package/dist/info-circle-CIVy5nVm.js +12 -0
  178. package/dist/info-circle-sI2i5HOv.mjs +16 -0
  179. package/dist/injectedWallet-AWJSZPMG-BDdjxTfh.js +1 -0
  180. package/dist/injectedWallet-AWJSZPMG-BZ4xMT5c.mjs +4 -0
  181. package/dist/ink-FZMYZWHG-BuNtRfvY.js +1 -0
  182. package/dist/ink-FZMYZWHG-DlcClk5L.mjs +4 -0
  183. package/dist/ja_JP-4WRQ63RX-BSsyVYkC.mjs +1490 -0
  184. package/dist/ja_JP-4WRQ63RX-DPg57Jtp.js +1487 -0
  185. package/dist/kaia-65D2U3PU-C3iOW87N.js +1 -0
  186. package/dist/kaia-65D2U3PU-DJdIsERb.mjs +4 -0
  187. package/dist/ko_KR-I2K7AIEP-BMvlvp6c.mjs +1490 -0
  188. package/dist/ko_KR-I2K7AIEP-DTiN0Tki.js +1487 -0
  189. package/dist/lightbulb-5NUvCVy3.js +3 -0
  190. package/dist/lightbulb-BYmcwWUA.mjs +7 -0
  191. package/dist/linea-QRMVQ5DY-C2d1pHrg.js +1 -0
  192. package/dist/linea-QRMVQ5DY-CrycDmSa.mjs +4 -0
  193. package/dist/login-UP3DZBGS-BT9d537y.mjs +4 -0
  194. package/dist/login-UP3DZBGS-C-c6uz2H.js +1 -0
  195. package/dist/mail-CT9BLct_.mjs +12 -0
  196. package/dist/mail-DAYPcxbx.js +8 -0
  197. package/dist/manta-SI27YFEJ-CBE6iXtC.js +1 -0
  198. package/dist/manta-SI27YFEJ-CFctqJ5B.mjs +4 -0
  199. package/dist/mantle-CKIUT334-CPiUOpgj.js +1 -0
  200. package/dist/mantle-CKIUT334-DZTIMdrF.mjs +4 -0
  201. package/dist/metaMaskWallet-SITXT2FV-CaDFha8m.mjs +4 -0
  202. package/dist/metaMaskWallet-SITXT2FV-CubKW4M9.js +1 -0
  203. package/dist/metamask-sdk-5m3nvPtB.js +542 -0
  204. package/dist/metamask-sdk-CPh1Wi1b.mjs +14970 -0
  205. package/dist/mobile-DNsm674z.js +9 -0
  206. package/dist/mobile-DRfo1ZAq.mjs +13 -0
  207. package/dist/monad-4KWC6TSS-Bme_0Zcf.mjs +4 -0
  208. package/dist/monad-4KWC6TSS-BnWBHM2V.js +1 -0
  209. package/dist/more-DFKbhNg4.js +11 -0
  210. package/dist/more-DvtnI5Dv.mjs +15 -0
  211. package/dist/ms_MY-6VZW6Q3Z-C_wmMLsb.mjs +1490 -0
  212. package/dist/ms_MY-6VZW6Q3Z-GeT8A_9b.js +1487 -0
  213. package/dist/network-placeholder-BPGY0Pea.js +14 -0
  214. package/dist/network-placeholder-DOmySIjI.mjs +18 -0
  215. package/dist/nftPlaceholder-CRB7uOjv.mjs +12 -0
  216. package/dist/nftPlaceholder-Dp6Tl1yi.js +8 -0
  217. package/dist/off-BVEy2I2N.js +8 -0
  218. package/dist/off-LjovEQOy.mjs +12 -0
  219. package/dist/optimism-HAF2GUT7-BT_Mx-dr.js +1 -0
  220. package/dist/optimism-HAF2GUT7-CDkFpVXG.mjs +4 -0
  221. package/dist/play-store-BwddU0Wq.mjs +36 -0
  222. package/dist/play-store-DlHvVfW-.js +32 -0
  223. package/dist/plus-C-X64_gj.mjs +17 -0
  224. package/dist/plus-ZMKluBd6.js +13 -0
  225. package/dist/polygon-WW6ZI7PM-DGanIpKH.js +1 -0
  226. package/dist/polygon-WW6ZI7PM-DMiAjxYW.mjs +4 -0
  227. package/dist/pt_BR-N3XOZ4SV-BeWb5NJg.mjs +1490 -0
  228. package/dist/pt_BR-N3XOZ4SV-E_1oHsgd.js +1487 -0
  229. package/dist/qr-code-Dhu5TPha.js +6 -0
  230. package/dist/qr-code-bLEKEk0B.mjs +10 -0
  231. package/dist/rainbowWallet-O26YNBMX-CB4dd0t7.mjs +4 -0
  232. package/dist/rainbowWallet-O26YNBMX-CqPvjISh.js +1 -0
  233. package/dist/recycle-horizontal-9JHHDd4h.js +9 -0
  234. package/dist/recycle-horizontal-CS_0PZGV.mjs +13 -0
  235. package/dist/refresh-C_qXNL0S.mjs +12 -0
  236. package/dist/refresh-DkMlARk7.js +8 -0
  237. package/dist/refresh-S4T5V5GX-BZCZ2pAn.js +1 -0
  238. package/dist/refresh-S4T5V5GX-CoT4SMY4.mjs +4 -0
  239. package/dist/reown-logo-CBPzCyQW.mjs +16 -0
  240. package/dist/reown-logo-UwMrTrcX.js +12 -0
  241. package/dist/ronin-EMCPYXZT-BVeW22BA.js +1 -0
  242. package/dist/ronin-EMCPYXZT-CMqZm7Bj.mjs +4 -0
  243. package/dist/ru_RU-IITAPRET-DRURjjb_.mjs +1490 -0
  244. package/dist/ru_RU-IITAPRET-DWVtNBKa.js +1487 -0
  245. package/dist/sanko-RHQYXGM5-BdRCo3KT.mjs +4 -0
  246. package/dist/sanko-RHQYXGM5-t_EneLtZ.js +1 -0
  247. package/dist/scan-4UYSQ56Q-Bt1XXdi3.mjs +4 -0
  248. package/dist/scan-4UYSQ56Q-DqVlbE3J.js +1 -0
  249. package/dist/scroll-5OBGQVOV-C_cEm-kG.mjs +4 -0
  250. package/dist/scroll-5OBGQVOV-DYo31pKm.js +1 -0
  251. package/dist/search-B4itLiVW.js +8 -0
  252. package/dist/search-CQuKFVAx.mjs +12 -0
  253. package/dist/secp256k1-BB5DYugF.mjs +1479 -0
  254. package/dist/secp256k1-BiRGPPqo.js +1 -0
  255. package/dist/secp256k1-CI29X52U.js +1 -0
  256. package/dist/secp256k1-Cf9t2cTM.mjs +1479 -0
  257. package/dist/send-porC6mPB.js +15 -0
  258. package/dist/send-qTi-ybzM.mjs +19 -0
  259. package/dist/sign-A7IJEUT5-BI5zSXW6.js +1 -0
  260. package/dist/sign-A7IJEUT5-BQQmgNRT.mjs +4 -0
  261. package/dist/style.css +1 -0
  262. package/dist/superposition-HG6MMR2Y-CUrWVrH0.js +1 -0
  263. package/dist/superposition-HG6MMR2Y-DHda4Hsd.mjs +4 -0
  264. package/dist/swapHorizontal-C3MNcVMo.mjs +12 -0
  265. package/dist/swapHorizontal-HantsmRd.js +8 -0
  266. package/dist/swapHorizontalBold-C_GQta-j.mjs +12 -0
  267. package/dist/swapHorizontalBold-XlXD6Scp.js +8 -0
  268. package/dist/swapHorizontalMedium-Bo6Sszm7.mjs +20 -0
  269. package/dist/swapHorizontalMedium-ChYk0TiL.js +16 -0
  270. package/dist/swapHorizontalRoundedBold-B5EvZSwz.mjs +12 -0
  271. package/dist/swapHorizontalRoundedBold-Dx_Co5wk.js +8 -0
  272. package/dist/swapVertical-cHQwpGr0.mjs +12 -0
  273. package/dist/swapVertical-fmzZLSPI.js +8 -0
  274. package/dist/telegram-BdrptLN3.mjs +20 -0
  275. package/dist/telegram-Dv7wEgKb.js +16 -0
  276. package/dist/th_TH-3ZQCKCQE-Da2m2LPy.js +1487 -0
  277. package/dist/th_TH-3ZQCKCQE-nFsMfjJa.mjs +1490 -0
  278. package/dist/three-dots-CPXRPIKy.js +5 -0
  279. package/dist/three-dots-DEs9ZhDC.mjs +9 -0
  280. package/dist/tr_TR-QUPUGMUF-DF0OeGUb.mjs +1490 -0
  281. package/dist/tr_TR-QUPUGMUF-s63Tz8WP.js +1487 -0
  282. package/dist/twitch-Ck5pSyDI.js +18 -0
  283. package/dist/twitch-IQhZ8m1X.mjs +22 -0
  284. package/dist/twitterIcon-DO8XDAwC.js +6 -0
  285. package/dist/twitterIcon-DsS9CDA5.mjs +10 -0
  286. package/dist/types/index.d.ts +51 -0
  287. package/dist/uk_UA-SSN6SV5E-Bb4huhf1.mjs +1490 -0
  288. package/dist/uk_UA-SSN6SV5E-IfMgDbzS.js +1487 -0
  289. package/dist/unichain-C5BWO2ZY-CgjeJfD4.mjs +4 -0
  290. package/dist/unichain-C5BWO2ZY-DrmDCV2p.js +1 -0
  291. package/dist/utils/constants.d.ts +6 -0
  292. package/dist/verify-CgTgRejE.js +8 -0
  293. package/dist/verify-DOD4hBvs.mjs +12 -0
  294. package/dist/verify-filled-BhxgjhKC.js +8 -0
  295. package/dist/verify-filled-QPe9Hi2W.mjs +12 -0
  296. package/dist/vi_VN-7BUVRNYY-Ba1mpr-F.js +1487 -0
  297. package/dist/vi_VN-7BUVRNYY-PCI3QRx7.mjs +1490 -0
  298. package/dist/w3m-modal-C3JE1VNb.mjs +1471 -0
  299. package/dist/w3m-modal-DLEWxfrc.js +642 -0
  300. package/dist/wallet-ByF6bf_R.mjs +12 -0
  301. package/dist/wallet-DU_BeJ1K.js +8 -0
  302. package/dist/wallet-placeholder-C3VkDDkp.js +14 -0
  303. package/dist/wallet-placeholder-DBpXjyqE.mjs +18 -0
  304. package/dist/walletConnectWallet-YHWKVTDY-DU_S15em.mjs +4 -0
  305. package/dist/walletConnectWallet-YHWKVTDY-k9TO_fWs.js +1 -0
  306. package/dist/walletconnect-B2bmSYc7.mjs +36 -0
  307. package/dist/walletconnect-DC4CEinm.js +30 -0
  308. package/dist/warning-circle-BBKO7OkV.js +12 -0
  309. package/dist/warning-circle-CYTT9cYz.mjs +16 -0
  310. package/dist/x-DG2aE2ub.mjs +16 -0
  311. package/dist/x-PLo7_AhG.js +12 -0
  312. package/dist/xdc-KJ3TDBYO-DjnCHm47.js +1 -0
  313. package/dist/xdc-KJ3TDBYO-Ie58M8Vn.mjs +4 -0
  314. package/dist/zetachain-TLDS5IPW-BRdUItmm.js +1 -0
  315. package/dist/zetachain-TLDS5IPW-CCJ72zNa.mjs +4 -0
  316. package/dist/zh_CN-HJBN674C-Bo2gNwt5.mjs +1490 -0
  317. package/dist/zh_CN-HJBN674C-Vu7Wn9i6.js +1487 -0
  318. package/dist/zh_HK-JW3WLRKE-BY2ft2ew.mjs +1490 -0
  319. package/dist/zh_HK-JW3WLRKE-COIwuLIC.js +1487 -0
  320. package/dist/zh_TW-VNNRNXY7-CyIPkoVZ.mjs +1490 -0
  321. package/dist/zh_TW-VNNRNXY7-DKIN8H5Y.js +1487 -0
  322. package/dist/zksync-DH7HK5U4-08fCIujK.mjs +4 -0
  323. package/dist/zksync-DH7HK5U4-DVKzLGnB.js +1 -0
  324. package/dist/zora-FYL5H3IO-BSEkA2hF.js +1 -0
  325. package/dist/zora-FYL5H3IO-BoL7oY8W.mjs +4 -0
  326. package/package.json +66 -0
@@ -0,0 +1,2128 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./core-BdUBRviB.js"),c=require("./index-STIsWesT.js"),bn=a.i`
2
+ :host {
3
+ position: relative;
4
+ background-color: var(--wui-color-gray-glass-002);
5
+ display: flex;
6
+ justify-content: center;
7
+ align-items: center;
8
+ width: var(--local-size);
9
+ height: var(--local-size);
10
+ border-radius: inherit;
11
+ border-radius: var(--local-border-radius);
12
+ }
13
+
14
+ :host > wui-flex {
15
+ overflow: hidden;
16
+ border-radius: inherit;
17
+ border-radius: var(--local-border-radius);
18
+ }
19
+
20
+ :host::after {
21
+ content: '';
22
+ position: absolute;
23
+ top: 0;
24
+ bottom: 0;
25
+ left: 0;
26
+ right: 0;
27
+ border-radius: inherit;
28
+ border: 1px solid var(--wui-color-gray-glass-010);
29
+ pointer-events: none;
30
+ }
31
+
32
+ :host([name='Extension'])::after {
33
+ border: 1px solid var(--wui-color-accent-glass-010);
34
+ }
35
+
36
+ :host([data-wallet-icon='allWallets']) {
37
+ background-color: var(--wui-all-wallets-bg-100);
38
+ }
39
+
40
+ :host([data-wallet-icon='allWallets'])::after {
41
+ border: 1px solid var(--wui-color-accent-glass-010);
42
+ }
43
+
44
+ wui-icon[data-parent-size='inherit'] {
45
+ width: 75%;
46
+ height: 75%;
47
+ align-items: center;
48
+ }
49
+
50
+ wui-icon[data-parent-size='sm'] {
51
+ width: 18px;
52
+ height: 18px;
53
+ }
54
+
55
+ wui-icon[data-parent-size='md'] {
56
+ width: 24px;
57
+ height: 24px;
58
+ }
59
+
60
+ wui-icon[data-parent-size='lg'] {
61
+ width: 42px;
62
+ height: 42px;
63
+ }
64
+
65
+ wui-icon[data-parent-size='full'] {
66
+ width: 100%;
67
+ height: 100%;
68
+ }
69
+
70
+ :host > wui-icon-box {
71
+ position: absolute;
72
+ overflow: hidden;
73
+ right: -1px;
74
+ bottom: -2px;
75
+ z-index: 1;
76
+ border: 2px solid var(--wui-color-bg-150, #1e1f1f);
77
+ padding: 1px;
78
+ }
79
+ `;var re=function(r,e,n,i){var o=arguments.length,t=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,n):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")t=Reflect.decorate(r,e,n,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(t=(o<3?s(t):o>3?s(e,n,t):s(e,n))||t);return o>3&&t&&Object.defineProperty(e,n,t),t};let q=class extends a.i$1{constructor(){super(...arguments),this.size="md",this.name="",this.installed=!1,this.badgeSize="xs"}render(){let e="xxs";return this.size==="lg"?e="m":this.size==="md"?e="xs":e="xxs",this.style.cssText=`
80
+ --local-border-radius: var(--wui-border-radius-${e});
81
+ --local-size: var(--wui-wallet-image-size-${this.size});
82
+ `,this.walletIcon&&(this.dataset.walletIcon=this.walletIcon),a.b`
83
+ <wui-flex justifyContent="center" alignItems="center"> ${this.templateVisual()} </wui-flex>
84
+ `}templateVisual(){return this.imageSrc?a.b`<wui-image src=${this.imageSrc} alt=${this.name}></wui-image>`:this.walletIcon?a.b`<wui-icon
85
+ data-parent-size="md"
86
+ size="md"
87
+ color="inherit"
88
+ name=${this.walletIcon}
89
+ ></wui-icon>`:a.b`<wui-icon
90
+ data-parent-size=${this.size}
91
+ size="inherit"
92
+ color="inherit"
93
+ name="walletPlaceholder"
94
+ ></wui-icon>`}};q.styles=[a.elementStyles,a.resetStyles,bn];re([c.n()],q.prototype,"size",void 0);re([c.n()],q.prototype,"name",void 0);re([c.n()],q.prototype,"imageSrc",void 0);re([c.n()],q.prototype,"walletIcon",void 0);re([c.n({type:Boolean})],q.prototype,"installed",void 0);re([c.n()],q.prototype,"badgeSize",void 0);q=re([c.customElement("wui-wallet-image")],q);const mn=a.i`
95
+ :host {
96
+ position: relative;
97
+ border-radius: var(--wui-border-radius-xxs);
98
+ width: 40px;
99
+ height: 40px;
100
+ overflow: hidden;
101
+ background: var(--wui-color-gray-glass-002);
102
+ display: flex;
103
+ justify-content: center;
104
+ align-items: center;
105
+ flex-wrap: wrap;
106
+ gap: var(--wui-spacing-4xs);
107
+ padding: 3.75px !important;
108
+ }
109
+
110
+ :host::after {
111
+ content: '';
112
+ position: absolute;
113
+ top: 0;
114
+ bottom: 0;
115
+ left: 0;
116
+ right: 0;
117
+ border-radius: inherit;
118
+ border: 1px solid var(--wui-color-gray-glass-010);
119
+ pointer-events: none;
120
+ }
121
+
122
+ :host > wui-wallet-image {
123
+ width: 14px;
124
+ height: 14px;
125
+ border-radius: var(--wui-border-radius-5xs);
126
+ }
127
+
128
+ :host > wui-flex {
129
+ padding: 2px;
130
+ position: fixed;
131
+ overflow: hidden;
132
+ left: 34px;
133
+ bottom: 8px;
134
+ background: var(--dark-background-150, #1e1f1f);
135
+ border-radius: 50%;
136
+ z-index: 2;
137
+ display: flex;
138
+ }
139
+ `;var Ft=function(r,e,n,i){var o=arguments.length,t=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,n):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")t=Reflect.decorate(r,e,n,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(t=(o<3?s(t):o>3?s(e,n,t):s(e,n))||t);return o>3&&t&&Object.defineProperty(e,n,t),t};const at=4;let Oe=class extends a.i$1{constructor(){super(...arguments),this.walletImages=[]}render(){const e=this.walletImages.length<at;return a.b`${this.walletImages.slice(0,at).map(({src:n,walletName:i})=>a.b`
140
+ <wui-wallet-image
141
+ size="inherit"
142
+ imageSrc=${n}
143
+ name=${c.o(i)}
144
+ ></wui-wallet-image>
145
+ `)}
146
+ ${e?[...Array(at-this.walletImages.length)].map(()=>a.b` <wui-wallet-image size="inherit" name=""></wui-wallet-image>`):null}
147
+ <wui-flex>
148
+ <wui-icon-box
149
+ size="xxs"
150
+ iconSize="xxs"
151
+ iconcolor="success-100"
152
+ backgroundcolor="success-100"
153
+ icon="checkmark"
154
+ background="opaque"
155
+ ></wui-icon-box>
156
+ </wui-flex>`}};Oe.styles=[a.resetStyles,mn];Ft([c.n({type:Array})],Oe.prototype,"walletImages",void 0);Oe=Ft([c.customElement("wui-all-wallets-image")],Oe);const vn=a.i`
157
+ button {
158
+ column-gap: var(--wui-spacing-s);
159
+ padding: 7px var(--wui-spacing-l) 7px var(--wui-spacing-xs);
160
+ width: 100%;
161
+ background-color: var(--wui-color-gray-glass-002);
162
+ border-radius: var(--wui-border-radius-xs);
163
+ color: var(--wui-color-fg-100);
164
+ }
165
+
166
+ button > wui-text:nth-child(2) {
167
+ display: flex;
168
+ flex: 1;
169
+ }
170
+
171
+ button:disabled {
172
+ background-color: var(--wui-color-gray-glass-015);
173
+ color: var(--wui-color-gray-glass-015);
174
+ }
175
+
176
+ button:disabled > wui-tag {
177
+ background-color: var(--wui-color-gray-glass-010);
178
+ color: var(--wui-color-fg-300);
179
+ }
180
+
181
+ wui-icon {
182
+ color: var(--wui-color-fg-200) !important;
183
+ }
184
+ `;var S=function(r,e,n,i){var o=arguments.length,t=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,n):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")t=Reflect.decorate(r,e,n,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(t=(o<3?s(t):o>3?s(e,n,t):s(e,n))||t);return o>3&&t&&Object.defineProperty(e,n,t),t};let _=class extends a.i$1{constructor(){super(...arguments),this.walletImages=[],this.imageSrc="",this.name="",this.tabIdx=void 0,this.installed=!1,this.disabled=!1,this.showAllWallets=!1,this.loading=!1,this.loadingSpinnerColor="accent-100"}render(){return a.b`
185
+ <button ?disabled=${this.disabled} tabindex=${c.o(this.tabIdx)}>
186
+ ${this.templateAllWallets()} ${this.templateWalletImage()}
187
+ <wui-text variant="paragraph-500" color="inherit">${this.name}</wui-text>
188
+ ${this.templateStatus()}
189
+ </button>
190
+ `}templateAllWallets(){return this.showAllWallets&&this.imageSrc?a.b` <wui-all-wallets-image .imageeSrc=${this.imageSrc}> </wui-all-wallets-image> `:this.showAllWallets&&this.walletIcon?a.b` <wui-wallet-image .walletIcon=${this.walletIcon} size="sm"> </wui-wallet-image> `:null}templateWalletImage(){return!this.showAllWallets&&this.imageSrc?a.b`<wui-wallet-image
191
+ size="sm"
192
+ imageSrc=${this.imageSrc}
193
+ name=${this.name}
194
+ .installed=${this.installed}
195
+ ></wui-wallet-image>`:!this.showAllWallets&&!this.imageSrc?a.b`<wui-wallet-image size="sm" name=${this.name}></wui-wallet-image>`:null}templateStatus(){return this.loading?a.b`<wui-loading-spinner
196
+ size="lg"
197
+ color=${this.loadingSpinnerColor}
198
+ ></wui-loading-spinner>`:this.tagLabel&&this.tagVariant?a.b`<wui-tag variant=${this.tagVariant}>${this.tagLabel}</wui-tag>`:this.icon?a.b`<wui-icon color="inherit" size="sm" name=${this.icon}></wui-icon>`:null}};_.styles=[a.resetStyles,a.elementStyles,vn];S([c.n({type:Array})],_.prototype,"walletImages",void 0);S([c.n()],_.prototype,"imageSrc",void 0);S([c.n()],_.prototype,"name",void 0);S([c.n()],_.prototype,"tagLabel",void 0);S([c.n()],_.prototype,"tagVariant",void 0);S([c.n()],_.prototype,"icon",void 0);S([c.n()],_.prototype,"walletIcon",void 0);S([c.n()],_.prototype,"tabIdx",void 0);S([c.n({type:Boolean})],_.prototype,"installed",void 0);S([c.n({type:Boolean})],_.prototype,"disabled",void 0);S([c.n({type:Boolean})],_.prototype,"showAllWallets",void 0);S([c.n({type:Boolean})],_.prototype,"loading",void 0);S([c.n({type:String})],_.prototype,"loadingSpinnerColor",void 0);_=S([c.customElement("wui-list-wallet")],_);var ge=function(r,e,n,i){var o=arguments.length,t=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,n):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")t=Reflect.decorate(r,e,n,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(t=(o<3?s(t):o>3?s(e,n,t):s(e,n))||t);return o>3&&t&&Object.defineProperty(e,n,t),t};let ee=class extends a.i$1{constructor(){super(),this.unsubscribe=[],this.tabIdx=void 0,this.connectors=a.ConnectorController.state.connectors,this.count=a.ApiController.state.count,this.filteredCount=a.ApiController.state.filteredWallets.length,this.isFetchingRecommendedWallets=a.ApiController.state.isFetchingRecommendedWallets,this.unsubscribe.push(a.ConnectorController.subscribeKey("connectors",e=>this.connectors=e),a.ApiController.subscribeKey("count",e=>this.count=e),a.ApiController.subscribeKey("filteredWallets",e=>this.filteredCount=e.length),a.ApiController.subscribeKey("isFetchingRecommendedWallets",e=>this.isFetchingRecommendedWallets=e))}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){const e=this.connectors.find(u=>u.id==="walletConnect"),{allWallets:n}=a.OptionsController.state;if(!e||n==="HIDE"||n==="ONLY_MOBILE"&&!a.CoreHelperUtil.isMobile())return null;const i=a.ApiController.state.featured.length,o=this.count+i,t=o<10?o:Math.floor(o/10)*10,s=this.filteredCount>0?this.filteredCount:t;let l=`${s}`;return this.filteredCount>0?l=`${this.filteredCount}`:s<o&&(l=`${s}+`),a.b`
199
+ <wui-list-wallet
200
+ name="All Wallets"
201
+ walletIcon="allWallets"
202
+ showAllWallets
203
+ @click=${this.onAllWallets.bind(this)}
204
+ tagLabel=${l}
205
+ tagVariant="shade"
206
+ data-testid="all-wallets"
207
+ tabIdx=${c.o(this.tabIdx)}
208
+ .loading=${this.isFetchingRecommendedWallets}
209
+ loadingSpinnerColor=${this.isFetchingRecommendedWallets?"fg-300":"accent-100"}
210
+ ></wui-list-wallet>
211
+ `}onAllWallets(){a.EventsController.sendEvent({type:"track",event:"CLICK_ALL_WALLETS"}),a.RouterController.push("AllWallets")}};ge([c.n()],ee.prototype,"tabIdx",void 0);ge([c.r()],ee.prototype,"connectors",void 0);ge([c.r()],ee.prototype,"count",void 0);ge([c.r()],ee.prototype,"filteredCount",void 0);ge([c.r()],ee.prototype,"isFetchingRecommendedWallets",void 0);ee=ge([c.customElement("w3m-all-wallets-widget")],ee);var Ct=function(r,e,n,i){var o=arguments.length,t=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,n):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")t=Reflect.decorate(r,e,n,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(t=(o<3?s(t):o>3?s(e,n,t):s(e,n))||t);return o>3&&t&&Object.defineProperty(e,n,t),t};let Le=class extends a.i$1{constructor(){super(),this.unsubscribe=[],this.tabIdx=void 0,this.connectors=a.ConnectorController.state.connectors,this.unsubscribe.push(a.ConnectorController.subscribeKey("connectors",e=>this.connectors=e))}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){const e=this.connectors.filter(n=>n.type==="ANNOUNCED");return e!=null&&e.length?a.b`
212
+ <wui-flex flexDirection="column" gap="xs">
213
+ ${e.filter(a.ConnectorUtil.showConnector).map(n=>a.b`
214
+ <wui-list-wallet
215
+ imageSrc=${c.o(a.AssetUtil.getConnectorImage(n))}
216
+ name=${n.name??"Unknown"}
217
+ @click=${()=>this.onConnector(n)}
218
+ tagVariant="success"
219
+ tagLabel="installed"
220
+ data-testid=${`wallet-selector-${n.id}`}
221
+ .installed=${!0}
222
+ tabIdx=${c.o(this.tabIdx)}
223
+ >
224
+ </wui-list-wallet>
225
+ `)}
226
+ </wui-flex>
227
+ `:(this.style.cssText="display: none",null)}onConnector(e){e.id==="walletConnect"?a.CoreHelperUtil.isMobile()?a.RouterController.push("AllWallets"):a.RouterController.push("ConnectingWalletConnect"):a.RouterController.push("ConnectingExternal",{connector:e})}};Ct([c.n()],Le.prototype,"tabIdx",void 0);Ct([c.r()],Le.prototype,"connectors",void 0);Le=Ct([c.customElement("w3m-connect-announced-widget")],Le);var Ge=function(r,e,n,i){var o=arguments.length,t=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,n):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")t=Reflect.decorate(r,e,n,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(t=(o<3?s(t):o>3?s(e,n,t):s(e,n))||t);return o>3&&t&&Object.defineProperty(e,n,t),t};let ye=class extends a.i$1{constructor(){super(),this.unsubscribe=[],this.tabIdx=void 0,this.connectors=a.ConnectorController.state.connectors,this.loading=!1,this.unsubscribe.push(a.ConnectorController.subscribeKey("connectors",e=>this.connectors=e)),a.CoreHelperUtil.isTelegram()&&a.CoreHelperUtil.isIos()&&(this.loading=!a.ConnectionController.state.wcUri,this.unsubscribe.push(a.ConnectionController.subscribeKey("wcUri",e=>this.loading=!e)))}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){const{customWallets:e}=a.OptionsController.state;if(!(e!=null&&e.length))return this.style.cssText="display: none",null;const n=this.filterOutDuplicateWallets(e);return a.b`<wui-flex flexDirection="column" gap="xs">
228
+ ${n.map(i=>a.b`
229
+ <wui-list-wallet
230
+ imageSrc=${c.o(a.AssetUtil.getWalletImage(i))}
231
+ name=${i.name??"Unknown"}
232
+ @click=${()=>this.onConnectWallet(i)}
233
+ data-testid=${`wallet-selector-${i.id}`}
234
+ tabIdx=${c.o(this.tabIdx)}
235
+ ?loading=${this.loading}
236
+ >
237
+ </wui-list-wallet>
238
+ `)}
239
+ </wui-flex>`}filterOutDuplicateWallets(e){const n=a.StorageUtil.getRecentWallets(),i=this.connectors.map(l=>{var u;return(u=l.info)==null?void 0:u.rdns}).filter(Boolean),o=n.map(l=>l.rdns).filter(Boolean),t=i.concat(o);if(t.includes("io.metamask.mobile")&&a.CoreHelperUtil.isMobile()){const l=t.indexOf("io.metamask.mobile");t[l]="io.metamask"}return e.filter(l=>!t.includes(String(l==null?void 0:l.rdns)))}onConnectWallet(e){this.loading||a.RouterController.push("ConnectingWalletConnect",{wallet:e})}};Ge([c.n()],ye.prototype,"tabIdx",void 0);Ge([c.r()],ye.prototype,"connectors",void 0);Ge([c.r()],ye.prototype,"loading",void 0);ye=Ge([c.customElement("w3m-connect-custom-widget")],ye);var $t=function(r,e,n,i){var o=arguments.length,t=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,n):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")t=Reflect.decorate(r,e,n,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(t=(o<3?s(t):o>3?s(e,n,t):s(e,n))||t);return o>3&&t&&Object.defineProperty(e,n,t),t};let Be=class extends a.i$1{constructor(){super(),this.unsubscribe=[],this.tabIdx=void 0,this.connectors=a.ConnectorController.state.connectors,this.unsubscribe.push(a.ConnectorController.subscribeKey("connectors",e=>this.connectors=e))}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){const i=this.connectors.filter(o=>o.type==="EXTERNAL").filter(a.ConnectorUtil.showConnector).filter(o=>o.id!==a.ConstantsUtil$1.CONNECTOR_ID.COINBASE_SDK);return i!=null&&i.length?a.b`
240
+ <wui-flex flexDirection="column" gap="xs">
241
+ ${i.map(o=>a.b`
242
+ <wui-list-wallet
243
+ imageSrc=${c.o(a.AssetUtil.getConnectorImage(o))}
244
+ .installed=${!0}
245
+ name=${o.name??"Unknown"}
246
+ data-testid=${`wallet-selector-external-${o.id}`}
247
+ @click=${()=>this.onConnector(o)}
248
+ tabIdx=${c.o(this.tabIdx)}
249
+ >
250
+ </wui-list-wallet>
251
+ `)}
252
+ </wui-flex>
253
+ `:(this.style.cssText="display: none",null)}onConnector(e){a.RouterController.push("ConnectingExternal",{connector:e})}};$t([c.n()],Be.prototype,"tabIdx",void 0);$t([c.r()],Be.prototype,"connectors",void 0);Be=$t([c.customElement("w3m-connect-external-widget")],Be);var Rt=function(r,e,n,i){var o=arguments.length,t=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,n):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")t=Reflect.decorate(r,e,n,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(t=(o<3?s(t):o>3?s(e,n,t):s(e,n))||t);return o>3&&t&&Object.defineProperty(e,n,t),t};let Ue=class extends a.i$1{constructor(){super(...arguments),this.tabIdx=void 0,this.wallets=[]}render(){return this.wallets.length?a.b`
254
+ <wui-flex flexDirection="column" gap="xs">
255
+ ${this.wallets.map(e=>a.b`
256
+ <wui-list-wallet
257
+ data-testid=${`wallet-selector-featured-${e.id}`}
258
+ imageSrc=${c.o(a.AssetUtil.getWalletImage(e))}
259
+ name=${e.name??"Unknown"}
260
+ @click=${()=>this.onConnectWallet(e)}
261
+ tabIdx=${c.o(this.tabIdx)}
262
+ >
263
+ </wui-list-wallet>
264
+ `)}
265
+ </wui-flex>
266
+ `:(this.style.cssText="display: none",null)}onConnectWallet(e){a.ConnectorController.selectWalletConnector(e)}};Rt([c.n()],Ue.prototype,"tabIdx",void 0);Rt([c.n()],Ue.prototype,"wallets",void 0);Ue=Rt([c.customElement("w3m-connect-featured-widget")],Ue);var Et=function(r,e,n,i){var o=arguments.length,t=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,n):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")t=Reflect.decorate(r,e,n,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(t=(o<3?s(t):o>3?s(e,n,t):s(e,n))||t);return o>3&&t&&Object.defineProperty(e,n,t),t};let ke=class extends a.i$1{constructor(){super(...arguments),this.tabIdx=void 0,this.connectors=[]}render(){const e=this.connectors.filter(a.ConnectorUtil.showConnector);return e.length===0?(this.style.cssText="display: none",null):a.b`
267
+ <wui-flex flexDirection="column" gap="xs">
268
+ ${e.map(n=>a.b`
269
+ <wui-list-wallet
270
+ imageSrc=${c.o(a.AssetUtil.getConnectorImage(n))}
271
+ .installed=${!0}
272
+ name=${n.name??"Unknown"}
273
+ tagVariant="success"
274
+ tagLabel="installed"
275
+ data-testid=${`wallet-selector-${n.id}`}
276
+ @click=${()=>this.onConnector(n)}
277
+ tabIdx=${c.o(this.tabIdx)}
278
+ >
279
+ </wui-list-wallet>
280
+ `)}
281
+ </wui-flex>
282
+ `}onConnector(e){a.ConnectorController.setActiveConnector(e),a.RouterController.push("ConnectingExternal",{connector:e})}};Et([c.n()],ke.prototype,"tabIdx",void 0);Et([c.n()],ke.prototype,"connectors",void 0);ke=Et([c.customElement("w3m-connect-injected-widget")],ke);var _t=function(r,e,n,i){var o=arguments.length,t=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,n):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")t=Reflect.decorate(r,e,n,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(t=(o<3?s(t):o>3?s(e,n,t):s(e,n))||t);return o>3&&t&&Object.defineProperty(e,n,t),t};let je=class extends a.i$1{constructor(){super(),this.unsubscribe=[],this.tabIdx=void 0,this.connectors=a.ConnectorController.state.connectors,this.unsubscribe.push(a.ConnectorController.subscribeKey("connectors",e=>this.connectors=e))}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){const e=this.connectors.filter(n=>n.type==="MULTI_CHAIN"&&n.name!=="WalletConnect");return e!=null&&e.length?a.b`
283
+ <wui-flex flexDirection="column" gap="xs">
284
+ ${e.map(n=>a.b`
285
+ <wui-list-wallet
286
+ imageSrc=${c.o(a.AssetUtil.getConnectorImage(n))}
287
+ .installed=${!0}
288
+ name=${n.name??"Unknown"}
289
+ tagVariant="shade"
290
+ tagLabel="multichain"
291
+ data-testid=${`wallet-selector-${n.id}`}
292
+ @click=${()=>this.onConnector(n)}
293
+ tabIdx=${c.o(this.tabIdx)}
294
+ >
295
+ </wui-list-wallet>
296
+ `)}
297
+ </wui-flex>
298
+ `:(this.style.cssText="display: none",null)}onConnector(e){a.ConnectorController.setActiveConnector(e),a.RouterController.push("ConnectingMultiChain")}};_t([c.n()],je.prototype,"tabIdx",void 0);_t([c.r()],je.prototype,"connectors",void 0);je=_t([c.customElement("w3m-connect-multi-chain-widget")],je);var Ye=function(r,e,n,i){var o=arguments.length,t=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,n):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")t=Reflect.decorate(r,e,n,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(t=(o<3?s(t):o>3?s(e,n,t):s(e,n))||t);return o>3&&t&&Object.defineProperty(e,n,t),t};let xe=class extends a.i$1{constructor(){super(),this.unsubscribe=[],this.tabIdx=void 0,this.connectors=a.ConnectorController.state.connectors,this.loading=!1,this.unsubscribe.push(a.ConnectorController.subscribeKey("connectors",e=>this.connectors=e)),a.CoreHelperUtil.isTelegram()&&a.CoreHelperUtil.isIos()&&(this.loading=!a.ConnectionController.state.wcUri,this.unsubscribe.push(a.ConnectionController.subscribeKey("wcUri",e=>this.loading=!e)))}render(){const n=a.StorageUtil.getRecentWallets().filter(i=>!a.WalletUtil.isExcluded(i)).filter(i=>!this.hasWalletConnector(i)).filter(i=>this.isWalletCompatibleWithCurrentChain(i));return n.length?a.b`
299
+ <wui-flex flexDirection="column" gap="xs">
300
+ ${n.map(i=>a.b`
301
+ <wui-list-wallet
302
+ imageSrc=${c.o(a.AssetUtil.getWalletImage(i))}
303
+ name=${i.name??"Unknown"}
304
+ @click=${()=>this.onConnectWallet(i)}
305
+ tagLabel="recent"
306
+ tagVariant="shade"
307
+ tabIdx=${c.o(this.tabIdx)}
308
+ ?loading=${this.loading}
309
+ >
310
+ </wui-list-wallet>
311
+ `)}
312
+ </wui-flex>
313
+ `:(this.style.cssText="display: none",null)}onConnectWallet(e){this.loading||a.ConnectorController.selectWalletConnector(e)}hasWalletConnector(e){return this.connectors.some(n=>n.id===e.id||n.name===e.name)}isWalletCompatibleWithCurrentChain(e){const n=a.ChainController.state.activeChain;return n&&e.chains?e.chains.some(i=>{const o=i.split(":")[0];return n===o}):!0}};Ye([c.n()],xe.prototype,"tabIdx",void 0);Ye([c.r()],xe.prototype,"connectors",void 0);Ye([c.r()],xe.prototype,"loading",void 0);xe=Ye([c.customElement("w3m-connect-recent-widget")],xe);var Je=function(r,e,n,i){var o=arguments.length,t=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,n):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")t=Reflect.decorate(r,e,n,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(t=(o<3?s(t):o>3?s(e,n,t):s(e,n))||t);return o>3&&t&&Object.defineProperty(e,n,t),t};let Ce=class extends a.i$1{constructor(){super(),this.unsubscribe=[],this.tabIdx=void 0,this.wallets=[],this.loading=!1,a.CoreHelperUtil.isTelegram()&&a.CoreHelperUtil.isIos()&&(this.loading=!a.ConnectionController.state.wcUri,this.unsubscribe.push(a.ConnectionController.subscribeKey("wcUri",e=>this.loading=!e)))}render(){const{connectors:e}=a.ConnectorController.state,{customWallets:n,featuredWalletIds:i}=a.OptionsController.state,o=a.StorageUtil.getRecentWallets(),t=e.find(C=>C.id==="walletConnect"),l=e.filter(C=>C.type==="INJECTED"||C.type==="ANNOUNCED"||C.type==="MULTI_CHAIN").filter(C=>C.name!=="Browser Wallet");if(!t)return null;if(i||n||!this.wallets.length)return this.style.cssText="display: none",null;const u=l.length+o.length,h=Math.max(0,2-u),d=a.WalletUtil.filterOutDuplicateWallets(this.wallets).slice(0,h);return d.length?a.b`
314
+ <wui-flex flexDirection="column" gap="xs">
315
+ ${d.map(C=>a.b`
316
+ <wui-list-wallet
317
+ imageSrc=${c.o(a.AssetUtil.getWalletImage(C))}
318
+ name=${(C==null?void 0:C.name)??"Unknown"}
319
+ @click=${()=>this.onConnectWallet(C)}
320
+ tabIdx=${c.o(this.tabIdx)}
321
+ ?loading=${this.loading}
322
+ >
323
+ </wui-list-wallet>
324
+ `)}
325
+ </wui-flex>
326
+ `:(this.style.cssText="display: none",null)}onConnectWallet(e){if(this.loading)return;const n=a.ConnectorController.getConnector(e.id,e.rdns);n?a.RouterController.push("ConnectingExternal",{connector:n}):a.RouterController.push("ConnectingWalletConnect",{wallet:e})}};Je([c.n()],Ce.prototype,"tabIdx",void 0);Je([c.n()],Ce.prototype,"wallets",void 0);Je([c.r()],Ce.prototype,"loading",void 0);Ce=Je([c.customElement("w3m-connect-recommended-widget")],Ce);var Qe=function(r,e,n,i){var o=arguments.length,t=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,n):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")t=Reflect.decorate(r,e,n,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(t=(o<3?s(t):o>3?s(e,n,t):s(e,n))||t);return o>3&&t&&Object.defineProperty(e,n,t),t};let $e=class extends a.i$1{constructor(){super(),this.unsubscribe=[],this.tabIdx=void 0,this.connectors=a.ConnectorController.state.connectors,this.connectorImages=a.AssetController.state.connectorImages,this.unsubscribe.push(a.ConnectorController.subscribeKey("connectors",e=>this.connectors=e),a.AssetController.subscribeKey("connectorImages",e=>this.connectorImages=e))}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){if(a.CoreHelperUtil.isMobile())return this.style.cssText="display: none",null;const e=this.connectors.find(i=>i.id==="walletConnect");if(!e)return this.style.cssText="display: none",null;const n=e.imageUrl||this.connectorImages[(e==null?void 0:e.imageId)??""];return a.b`
327
+ <wui-list-wallet
328
+ imageSrc=${c.o(n)}
329
+ name=${e.name??"Unknown"}
330
+ @click=${()=>this.onConnector(e)}
331
+ tagLabel="qr code"
332
+ tagVariant="main"
333
+ tabIdx=${c.o(this.tabIdx)}
334
+ data-testid="wallet-selector-walletconnect"
335
+ >
336
+ </wui-list-wallet>
337
+ `}onConnector(e){a.ConnectorController.setActiveConnector(e),a.RouterController.push("ConnectingWalletConnect")}};Qe([c.n()],$e.prototype,"tabIdx",void 0);Qe([c.r()],$e.prototype,"connectors",void 0);Qe([c.r()],$e.prototype,"connectorImages",void 0);$e=Qe([c.customElement("w3m-connect-walletconnect-widget")],$e);const yn=a.i`
338
+ :host {
339
+ margin-top: var(--wui-spacing-3xs);
340
+ }
341
+ wui-separator {
342
+ margin: var(--wui-spacing-m) calc(var(--wui-spacing-m) * -1) var(--wui-spacing-xs)
343
+ calc(var(--wui-spacing-m) * -1);
344
+ width: calc(100% + var(--wui-spacing-s) * 2);
345
+ }
346
+ `;var Ee=function(r,e,n,i){var o=arguments.length,t=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,n):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")t=Reflect.decorate(r,e,n,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(t=(o<3?s(t):o>3?s(e,n,t):s(e,n))||t);return o>3&&t&&Object.defineProperty(e,n,t),t};let te=class extends a.i$1{constructor(){super(),this.unsubscribe=[],this.tabIdx=void 0,this.connectors=a.ConnectorController.state.connectors,this.recommended=a.ApiController.state.recommended,this.featured=a.ApiController.state.featured,this.unsubscribe.push(a.ConnectorController.subscribeKey("connectors",e=>this.connectors=e),a.ApiController.subscribeKey("recommended",e=>this.recommended=e),a.ApiController.subscribeKey("featured",e=>this.featured=e))}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){return a.b`
347
+ <wui-flex flexDirection="column" gap="xs"> ${this.connectorListTemplate()} </wui-flex>
348
+ `}connectorListTemplate(){const{custom:e,recent:n,announced:i,injected:o,multiChain:t,recommended:s,featured:l,external:u}=a.ConnectorUtil.getConnectorsByType(this.connectors,this.recommended,this.featured);return a.ConnectorUtil.getConnectorTypeOrder({custom:e,recent:n,announced:i,injected:o,multiChain:t,recommended:s,featured:l,external:u}).map(d=>{switch(d){case"injected":return a.b`
349
+ ${t.length?a.b`<w3m-connect-multi-chain-widget
350
+ tabIdx=${c.o(this.tabIdx)}
351
+ ></w3m-connect-multi-chain-widget>`:null}
352
+ ${i.length?a.b`<w3m-connect-announced-widget
353
+ tabIdx=${c.o(this.tabIdx)}
354
+ ></w3m-connect-announced-widget>`:null}
355
+ ${o.length?a.b`<w3m-connect-injected-widget
356
+ .connectors=${o}
357
+ tabIdx=${c.o(this.tabIdx)}
358
+ ></w3m-connect-injected-widget>`:null}
359
+ `;case"walletConnect":return a.b`<w3m-connect-walletconnect-widget
360
+ tabIdx=${c.o(this.tabIdx)}
361
+ ></w3m-connect-walletconnect-widget>`;case"recent":return a.b`<w3m-connect-recent-widget
362
+ tabIdx=${c.o(this.tabIdx)}
363
+ ></w3m-connect-recent-widget>`;case"featured":return a.b`<w3m-connect-featured-widget
364
+ .wallets=${l}
365
+ tabIdx=${c.o(this.tabIdx)}
366
+ ></w3m-connect-featured-widget>`;case"custom":return a.b`<w3m-connect-custom-widget
367
+ tabIdx=${c.o(this.tabIdx)}
368
+ ></w3m-connect-custom-widget>`;case"external":return a.b`<w3m-connect-external-widget
369
+ tabIdx=${c.o(this.tabIdx)}
370
+ ></w3m-connect-external-widget>`;case"recommended":return a.b`<w3m-connect-recommended-widget
371
+ .wallets=${s}
372
+ tabIdx=${c.o(this.tabIdx)}
373
+ ></w3m-connect-recommended-widget>`;default:return console.warn(`Unknown connector type: ${d}`),null}})}};te.styles=yn;Ee([c.n()],te.prototype,"tabIdx",void 0);Ee([c.r()],te.prototype,"connectors",void 0);Ee([c.r()],te.prototype,"recommended",void 0);Ee([c.r()],te.prototype,"featured",void 0);te=Ee([c.customElement("w3m-connector-list")],te);const xn=a.i`
374
+ :host {
375
+ display: inline-flex;
376
+ background-color: var(--wui-color-gray-glass-002);
377
+ border-radius: var(--wui-border-radius-3xl);
378
+ padding: var(--wui-spacing-3xs);
379
+ position: relative;
380
+ height: 36px;
381
+ min-height: 36px;
382
+ overflow: hidden;
383
+ }
384
+
385
+ :host::before {
386
+ content: '';
387
+ position: absolute;
388
+ pointer-events: none;
389
+ top: 4px;
390
+ left: 4px;
391
+ display: block;
392
+ width: var(--local-tab-width);
393
+ height: 28px;
394
+ border-radius: var(--wui-border-radius-3xl);
395
+ background-color: var(--wui-color-gray-glass-002);
396
+ box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-002);
397
+ transform: translateX(calc(var(--local-tab) * var(--local-tab-width)));
398
+ transition: transform var(--wui-ease-out-power-1) var(--wui-duration-md);
399
+ will-change: background-color, opacity;
400
+ }
401
+
402
+ :host([data-type='flex'])::before {
403
+ left: 3px;
404
+ transform: translateX(calc((var(--local-tab) * 34px) + (var(--local-tab) * 4px)));
405
+ }
406
+
407
+ :host([data-type='flex']) {
408
+ display: flex;
409
+ padding: 0px 0px 0px 12px;
410
+ gap: 4px;
411
+ }
412
+
413
+ :host([data-type='flex']) > button > wui-text {
414
+ position: absolute;
415
+ left: 18px;
416
+ opacity: 0;
417
+ }
418
+
419
+ button[data-active='true'] > wui-icon,
420
+ button[data-active='true'] > wui-text {
421
+ color: var(--wui-color-fg-100);
422
+ }
423
+
424
+ button[data-active='false'] > wui-icon,
425
+ button[data-active='false'] > wui-text {
426
+ color: var(--wui-color-fg-200);
427
+ }
428
+
429
+ button[data-active='true']:disabled,
430
+ button[data-active='false']:disabled {
431
+ background-color: transparent;
432
+ opacity: 0.5;
433
+ cursor: not-allowed;
434
+ }
435
+
436
+ button[data-active='true']:disabled > wui-text {
437
+ color: var(--wui-color-fg-200);
438
+ }
439
+
440
+ button[data-active='false']:disabled > wui-text {
441
+ color: var(--wui-color-fg-300);
442
+ }
443
+
444
+ button > wui-icon,
445
+ button > wui-text {
446
+ pointer-events: none;
447
+ transition: color var(--wui-e ase-out-power-1) var(--wui-duration-md);
448
+ will-change: color;
449
+ }
450
+
451
+ button {
452
+ width: var(--local-tab-width);
453
+ transition: background-color var(--wui-ease-out-power-1) var(--wui-duration-md);
454
+ will-change: background-color;
455
+ }
456
+
457
+ :host([data-type='flex']) > button {
458
+ width: 34px;
459
+ position: relative;
460
+ display: flex;
461
+ justify-content: flex-start;
462
+ }
463
+
464
+ button:hover:enabled,
465
+ button:active:enabled {
466
+ background-color: transparent !important;
467
+ }
468
+
469
+ button:hover:enabled > wui-icon,
470
+ button:active:enabled > wui-icon {
471
+ transition: all var(--wui-ease-out-power-1) var(--wui-duration-lg);
472
+ color: var(--wui-color-fg-125);
473
+ }
474
+
475
+ button:hover:enabled > wui-text,
476
+ button:active:enabled > wui-text {
477
+ transition: all var(--wui-ease-out-power-1) var(--wui-duration-lg);
478
+ color: var(--wui-color-fg-125);
479
+ }
480
+
481
+ button {
482
+ border-radius: var(--wui-border-radius-3xl);
483
+ }
484
+ `;var X=function(r,e,n,i){var o=arguments.length,t=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,n):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")t=Reflect.decorate(r,e,n,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(t=(o<3?s(t):o>3?s(e,n,t):s(e,n))||t);return o>3&&t&&Object.defineProperty(e,n,t),t};let z=class extends a.i$1{constructor(){super(...arguments),this.tabs=[],this.onTabChange=()=>null,this.buttons=[],this.disabled=!1,this.localTabWidth="100px",this.activeTab=0,this.isDense=!1}render(){return this.isDense=this.tabs.length>3,this.style.cssText=`
485
+ --local-tab: ${this.activeTab};
486
+ --local-tab-width: ${this.localTabWidth};
487
+ `,this.dataset.type=this.isDense?"flex":"block",this.tabs.map((e,n)=>{var o;const i=n===this.activeTab;return a.b`
488
+ <button
489
+ ?disabled=${this.disabled}
490
+ @click=${()=>this.onTabClick(n)}
491
+ data-active=${i}
492
+ data-testid="tab-${(o=e.label)==null?void 0:o.toLowerCase()}"
493
+ >
494
+ ${this.iconTemplate(e)}
495
+ <wui-text variant="small-600" color="inherit"> ${e.label} </wui-text>
496
+ </button>
497
+ `})}firstUpdated(){this.shadowRoot&&this.isDense&&(this.buttons=[...this.shadowRoot.querySelectorAll("button")],setTimeout(()=>{this.animateTabs(0,!0)},0))}iconTemplate(e){return e.icon?a.b`<wui-icon size="xs" color="inherit" name=${e.icon}></wui-icon>`:null}onTabClick(e){this.buttons&&this.animateTabs(e,!1),this.activeTab=e,this.onTabChange(e)}animateTabs(e,n){const i=this.buttons[this.activeTab],o=this.buttons[e],t=i==null?void 0:i.querySelector("wui-text"),s=o==null?void 0:o.querySelector("wui-text"),l=o==null?void 0:o.getBoundingClientRect(),u=s==null?void 0:s.getBoundingClientRect();i&&t&&!n&&e!==this.activeTab&&(t.animate([{opacity:0}],{duration:50,easing:"ease",fill:"forwards"}),i.animate([{width:"34px"}],{duration:500,easing:"ease",fill:"forwards"})),o&&l&&u&&s&&(e!==this.activeTab||n)&&(this.localTabWidth=`${Math.round(l.width+u.width)+6}px`,o.animate([{width:`${l.width+u.width}px`}],{duration:n?0:500,fill:"forwards",easing:"ease"}),s.animate([{opacity:1}],{duration:n?0:125,delay:n?0:200,fill:"forwards",easing:"ease"}))}};z.styles=[a.resetStyles,a.elementStyles,xn];X([c.n({type:Array})],z.prototype,"tabs",void 0);X([c.n()],z.prototype,"onTabChange",void 0);X([c.n({type:Array})],z.prototype,"buttons",void 0);X([c.n({type:Boolean})],z.prototype,"disabled",void 0);X([c.n()],z.prototype,"localTabWidth",void 0);X([c.r()],z.prototype,"activeTab",void 0);X([c.r()],z.prototype,"isDense",void 0);z=X([c.customElement("wui-tabs")],z);var Wt=function(r,e,n,i){var o=arguments.length,t=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,n):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")t=Reflect.decorate(r,e,n,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(t=(o<3?s(t):o>3?s(e,n,t):s(e,n))||t);return o>3&&t&&Object.defineProperty(e,n,t),t};let ze=class extends a.i$1{constructor(){super(...arguments),this.platformTabs=[],this.unsubscribe=[],this.platforms=[],this.onSelectPlatfrom=void 0}disconnectCallback(){this.unsubscribe.forEach(e=>e())}render(){const e=this.generateTabs();return a.b`
498
+ <wui-flex justifyContent="center" .padding=${["0","0","l","0"]}>
499
+ <wui-tabs .tabs=${e} .onTabChange=${this.onTabChange.bind(this)}></wui-tabs>
500
+ </wui-flex>
501
+ `}generateTabs(){const e=this.platforms.map(n=>n==="browser"?{label:"Browser",icon:"extension",platform:"browser"}:n==="mobile"?{label:"Mobile",icon:"mobile",platform:"mobile"}:n==="qrcode"?{label:"Mobile",icon:"mobile",platform:"qrcode"}:n==="web"?{label:"Webapp",icon:"browser",platform:"web"}:n==="desktop"?{label:"Desktop",icon:"desktop",platform:"desktop"}:{label:"Browser",icon:"extension",platform:"unsupported"});return this.platformTabs=e.map(({platform:n})=>n),e}onTabChange(e){var i;const n=this.platformTabs[e];n&&((i=this.onSelectPlatfrom)==null||i.call(this,n))}};Wt([c.n({type:Array})],ze.prototype,"platforms",void 0);Wt([c.n()],ze.prototype,"onSelectPlatfrom",void 0);ze=Wt([c.customElement("w3m-connecting-header")],ze);const Cn=a.i`
502
+ :host {
503
+ width: var(--local-width);
504
+ position: relative;
505
+ }
506
+
507
+ button {
508
+ border: none;
509
+ border-radius: var(--local-border-radius);
510
+ width: var(--local-width);
511
+ white-space: nowrap;
512
+ }
513
+
514
+ /* -- Sizes --------------------------------------------------- */
515
+ button[data-size='md'] {
516
+ padding: 8.2px var(--wui-spacing-l) 9px var(--wui-spacing-l);
517
+ height: 36px;
518
+ }
519
+
520
+ button[data-size='md'][data-icon-left='true'][data-icon-right='false'] {
521
+ padding: 8.2px var(--wui-spacing-l) 9px var(--wui-spacing-s);
522
+ }
523
+
524
+ button[data-size='md'][data-icon-right='true'][data-icon-left='false'] {
525
+ padding: 8.2px var(--wui-spacing-s) 9px var(--wui-spacing-l);
526
+ }
527
+
528
+ button[data-size='lg'] {
529
+ padding: var(--wui-spacing-m) var(--wui-spacing-2l);
530
+ height: 48px;
531
+ }
532
+
533
+ /* -- Variants --------------------------------------------------------- */
534
+ button[data-variant='main'] {
535
+ background-color: var(--wui-color-accent-100);
536
+ color: var(--wui-color-inverse-100);
537
+ border: none;
538
+ box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-010);
539
+ }
540
+
541
+ button[data-variant='inverse'] {
542
+ background-color: var(--wui-color-inverse-100);
543
+ color: var(--wui-color-inverse-000);
544
+ border: none;
545
+ box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-010);
546
+ }
547
+
548
+ button[data-variant='accent'] {
549
+ background-color: var(--wui-color-accent-glass-010);
550
+ color: var(--wui-color-accent-100);
551
+ border: none;
552
+ box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-005);
553
+ }
554
+
555
+ button[data-variant='accent-error'] {
556
+ background: var(--wui-color-error-glass-015);
557
+ color: var(--wui-color-error-100);
558
+ border: none;
559
+ box-shadow: inset 0 0 0 1px var(--wui-color-error-glass-010);
560
+ }
561
+
562
+ button[data-variant='accent-success'] {
563
+ background: var(--wui-color-success-glass-015);
564
+ color: var(--wui-color-success-100);
565
+ border: none;
566
+ box-shadow: inset 0 0 0 1px var(--wui-color-success-glass-010);
567
+ }
568
+
569
+ button[data-variant='neutral'] {
570
+ background: transparent;
571
+ color: var(--wui-color-fg-100);
572
+ border: none;
573
+ box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-005);
574
+ }
575
+
576
+ /* -- Focus states --------------------------------------------------- */
577
+ button[data-variant='main']:focus-visible:enabled {
578
+ background-color: var(--wui-color-accent-090);
579
+ box-shadow:
580
+ inset 0 0 0 1px var(--wui-color-accent-100),
581
+ 0 0 0 4px var(--wui-color-accent-glass-020);
582
+ }
583
+ button[data-variant='inverse']:focus-visible:enabled {
584
+ background-color: var(--wui-color-inverse-100);
585
+ box-shadow:
586
+ inset 0 0 0 1px var(--wui-color-gray-glass-010),
587
+ 0 0 0 4px var(--wui-color-accent-glass-020);
588
+ }
589
+ button[data-variant='accent']:focus-visible:enabled {
590
+ background-color: var(--wui-color-accent-glass-010);
591
+ box-shadow:
592
+ inset 0 0 0 1px var(--wui-color-accent-100),
593
+ 0 0 0 4px var(--wui-color-accent-glass-020);
594
+ }
595
+ button[data-variant='accent-error']:focus-visible:enabled {
596
+ background: var(--wui-color-error-glass-015);
597
+ box-shadow:
598
+ inset 0 0 0 1px var(--wui-color-error-100),
599
+ 0 0 0 4px var(--wui-color-error-glass-020);
600
+ }
601
+ button[data-variant='accent-success']:focus-visible:enabled {
602
+ background: var(--wui-color-success-glass-015);
603
+ box-shadow:
604
+ inset 0 0 0 1px var(--wui-color-success-100),
605
+ 0 0 0 4px var(--wui-color-success-glass-020);
606
+ }
607
+ button[data-variant='neutral']:focus-visible:enabled {
608
+ background: var(--wui-color-gray-glass-005);
609
+ box-shadow:
610
+ inset 0 0 0 1px var(--wui-color-gray-glass-010),
611
+ 0 0 0 4px var(--wui-color-gray-glass-002);
612
+ }
613
+
614
+ /* -- Hover & Active states ----------------------------------------------------------- */
615
+ @media (hover: hover) and (pointer: fine) {
616
+ button[data-variant='main']:hover:enabled {
617
+ background-color: var(--wui-color-accent-090);
618
+ }
619
+
620
+ button[data-variant='main']:active:enabled {
621
+ background-color: var(--wui-color-accent-080);
622
+ }
623
+
624
+ button[data-variant='accent']:hover:enabled {
625
+ background-color: var(--wui-color-accent-glass-015);
626
+ }
627
+
628
+ button[data-variant='accent']:active:enabled {
629
+ background-color: var(--wui-color-accent-glass-020);
630
+ }
631
+
632
+ button[data-variant='accent-error']:hover:enabled {
633
+ background: var(--wui-color-error-glass-020);
634
+ color: var(--wui-color-error-100);
635
+ }
636
+
637
+ button[data-variant='accent-error']:active:enabled {
638
+ background: var(--wui-color-error-glass-030);
639
+ color: var(--wui-color-error-100);
640
+ }
641
+
642
+ button[data-variant='accent-success']:hover:enabled {
643
+ background: var(--wui-color-success-glass-020);
644
+ color: var(--wui-color-success-100);
645
+ }
646
+
647
+ button[data-variant='accent-success']:active:enabled {
648
+ background: var(--wui-color-success-glass-030);
649
+ color: var(--wui-color-success-100);
650
+ }
651
+
652
+ button[data-variant='neutral']:hover:enabled {
653
+ background: var(--wui-color-gray-glass-002);
654
+ }
655
+
656
+ button[data-variant='neutral']:active:enabled {
657
+ background: var(--wui-color-gray-glass-005);
658
+ }
659
+
660
+ button[data-size='lg'][data-icon-left='true'][data-icon-right='false'] {
661
+ padding-left: var(--wui-spacing-m);
662
+ }
663
+
664
+ button[data-size='lg'][data-icon-right='true'][data-icon-left='false'] {
665
+ padding-right: var(--wui-spacing-m);
666
+ }
667
+ }
668
+
669
+ /* -- Disabled state --------------------------------------------------- */
670
+ button:disabled {
671
+ background-color: var(--wui-color-gray-glass-002);
672
+ box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-002);
673
+ color: var(--wui-color-gray-glass-020);
674
+ cursor: not-allowed;
675
+ }
676
+
677
+ button > wui-text {
678
+ transition: opacity var(--wui-ease-out-power-1) var(--wui-duration-md);
679
+ will-change: opacity;
680
+ opacity: var(--local-opacity-100);
681
+ }
682
+
683
+ ::slotted(*) {
684
+ transition: opacity var(--wui-ease-out-power-1) var(--wui-duration-md);
685
+ will-change: opacity;
686
+ opacity: var(--local-opacity-100);
687
+ }
688
+
689
+ wui-loading-spinner {
690
+ position: absolute;
691
+ left: 50%;
692
+ top: 50%;
693
+ transform: translate(-50%, -50%);
694
+ opacity: var(--local-opacity-000);
695
+ }
696
+ `;var D=function(r,e,n,i){var o=arguments.length,t=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,n):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")t=Reflect.decorate(r,e,n,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(t=(o<3?s(t):o>3?s(e,n,t):s(e,n))||t);return o>3&&t&&Object.defineProperty(e,n,t),t};const Ut={main:"inverse-100",inverse:"inverse-000",accent:"accent-100","accent-error":"error-100","accent-success":"success-100",neutral:"fg-100",disabled:"gray-glass-020"},$n={lg:"paragraph-600",md:"small-600"},Rn={lg:"md",md:"md"};let P=class extends a.i$1{constructor(){super(...arguments),this.size="lg",this.disabled=!1,this.fullWidth=!1,this.loading=!1,this.variant="main",this.hasIconLeft=!1,this.hasIconRight=!1,this.borderRadius="m"}render(){this.style.cssText=`
697
+ --local-width: ${this.fullWidth?"100%":"auto"};
698
+ --local-opacity-100: ${this.loading?0:1};
699
+ --local-opacity-000: ${this.loading?1:0};
700
+ --local-border-radius: var(--wui-border-radius-${this.borderRadius});
701
+ `;const e=this.textVariant??$n[this.size];return a.b`
702
+ <button
703
+ data-variant=${this.variant}
704
+ data-icon-left=${this.hasIconLeft}
705
+ data-icon-right=${this.hasIconRight}
706
+ data-size=${this.size}
707
+ ?disabled=${this.disabled}
708
+ >
709
+ ${this.loadingTemplate()}
710
+ <slot name="iconLeft" @slotchange=${()=>this.handleSlotLeftChange()}></slot>
711
+ <wui-text variant=${e} color="inherit">
712
+ <slot></slot>
713
+ </wui-text>
714
+ <slot name="iconRight" @slotchange=${()=>this.handleSlotRightChange()}></slot>
715
+ </button>
716
+ `}handleSlotLeftChange(){this.hasIconLeft=!0}handleSlotRightChange(){this.hasIconRight=!0}loadingTemplate(){if(this.loading){const e=Rn[this.size],n=this.disabled?Ut.disabled:Ut[this.variant];return a.b`<wui-loading-spinner color=${n} size=${e}></wui-loading-spinner>`}return a.b``}};P.styles=[a.resetStyles,a.elementStyles,Cn];D([c.n()],P.prototype,"size",void 0);D([c.n({type:Boolean})],P.prototype,"disabled",void 0);D([c.n({type:Boolean})],P.prototype,"fullWidth",void 0);D([c.n({type:Boolean})],P.prototype,"loading",void 0);D([c.n()],P.prototype,"variant",void 0);D([c.n({type:Boolean})],P.prototype,"hasIconLeft",void 0);D([c.n({type:Boolean})],P.prototype,"hasIconRight",void 0);D([c.n()],P.prototype,"borderRadius",void 0);D([c.n()],P.prototype,"textVariant",void 0);P=D([c.customElement("wui-button")],P);const En=a.i`
717
+ button {
718
+ padding: var(--wui-spacing-4xs) var(--wui-spacing-xxs);
719
+ border-radius: var(--wui-border-radius-3xs);
720
+ background-color: transparent;
721
+ color: var(--wui-color-accent-100);
722
+ }
723
+
724
+ button:disabled {
725
+ background-color: transparent;
726
+ color: var(--wui-color-gray-glass-015);
727
+ }
728
+
729
+ button:hover {
730
+ background-color: var(--wui-color-gray-glass-005);
731
+ }
732
+ `;var Xe=function(r,e,n,i){var o=arguments.length,t=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,n):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")t=Reflect.decorate(r,e,n,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(t=(o<3?s(t):o>3?s(e,n,t):s(e,n))||t);return o>3&&t&&Object.defineProperty(e,n,t),t};let se=class extends a.i$1{constructor(){super(...arguments),this.tabIdx=void 0,this.disabled=!1,this.color="inherit"}render(){return a.b`
733
+ <button ?disabled=${this.disabled} tabindex=${c.o(this.tabIdx)}>
734
+ <slot name="iconLeft"></slot>
735
+ <wui-text variant="small-600" color=${this.color}>
736
+ <slot></slot>
737
+ </wui-text>
738
+ <slot name="iconRight"></slot>
739
+ </button>
740
+ `}};se.styles=[a.resetStyles,a.elementStyles,En];Xe([c.n()],se.prototype,"tabIdx",void 0);Xe([c.n({type:Boolean})],se.prototype,"disabled",void 0);Xe([c.n()],se.prototype,"color",void 0);se=Xe([c.customElement("wui-link")],se);const _n=a.i`
741
+ :host {
742
+ display: block;
743
+ width: var(--wui-box-size-md);
744
+ height: var(--wui-box-size-md);
745
+ }
746
+
747
+ svg {
748
+ width: var(--wui-box-size-md);
749
+ height: var(--wui-box-size-md);
750
+ }
751
+
752
+ rect {
753
+ fill: none;
754
+ stroke: var(--wui-color-accent-100);
755
+ stroke-width: 4px;
756
+ stroke-linecap: round;
757
+ animation: dash 1s linear infinite;
758
+ }
759
+
760
+ @keyframes dash {
761
+ to {
762
+ stroke-dashoffset: 0px;
763
+ }
764
+ }
765
+ `;var qt=function(r,e,n,i){var o=arguments.length,t=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,n):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")t=Reflect.decorate(r,e,n,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(t=(o<3?s(t):o>3?s(e,n,t):s(e,n))||t);return o>3&&t&&Object.defineProperty(e,n,t),t};let De=class extends a.i$1{constructor(){super(...arguments),this.radius=36}render(){return this.svgLoaderTemplate()}svgLoaderTemplate(){const e=this.radius>50?50:this.radius,i=36-e,o=116+i,t=245+i,s=360+i*1.75;return a.b`
766
+ <svg viewBox="0 0 110 110" width="110" height="110">
767
+ <rect
768
+ x="2"
769
+ y="2"
770
+ width="106"
771
+ height="106"
772
+ rx=${e}
773
+ stroke-dasharray="${o} ${t}"
774
+ stroke-dashoffset=${s}
775
+ />
776
+ </svg>
777
+ `}};De.styles=[a.resetStyles,_n];qt([c.n({type:Number})],De.prototype,"radius",void 0);De=qt([c.customElement("wui-loading-thumbnail")],De);const Wn=a.i`
778
+ button {
779
+ border: none;
780
+ border-radius: var(--wui-border-radius-3xl);
781
+ }
782
+
783
+ button[data-variant='main'] {
784
+ background-color: var(--wui-color-accent-100);
785
+ color: var(--wui-color-inverse-100);
786
+ box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-010);
787
+ }
788
+
789
+ button[data-variant='accent'] {
790
+ background-color: var(--wui-color-accent-glass-010);
791
+ color: var(--wui-color-accent-100);
792
+ box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-005);
793
+ }
794
+
795
+ button[data-variant='gray'] {
796
+ background-color: transparent;
797
+ color: var(--wui-color-fg-200);
798
+ box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-010);
799
+ }
800
+
801
+ button[data-variant='shade'] {
802
+ background-color: transparent;
803
+ color: var(--wui-color-accent-100);
804
+ box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-010);
805
+ }
806
+
807
+ button[data-size='sm'] {
808
+ height: 32px;
809
+ padding: 0 var(--wui-spacing-s);
810
+ }
811
+
812
+ button[data-size='md'] {
813
+ height: 40px;
814
+ padding: 0 var(--wui-spacing-l);
815
+ }
816
+
817
+ button[data-size='sm'] > wui-image {
818
+ width: 16px;
819
+ height: 16px;
820
+ }
821
+
822
+ button[data-size='md'] > wui-image {
823
+ width: 24px;
824
+ height: 24px;
825
+ }
826
+
827
+ button[data-size='sm'] > wui-icon {
828
+ width: 12px;
829
+ height: 12px;
830
+ }
831
+
832
+ button[data-size='md'] > wui-icon {
833
+ width: 14px;
834
+ height: 14px;
835
+ }
836
+
837
+ wui-image {
838
+ border-radius: var(--wui-border-radius-3xl);
839
+ overflow: hidden;
840
+ }
841
+
842
+ button.disabled > wui-icon,
843
+ button.disabled > wui-image {
844
+ filter: grayscale(1);
845
+ }
846
+
847
+ button[data-variant='main'] > wui-image {
848
+ box-shadow: inset 0 0 0 1px var(--wui-color-accent-090);
849
+ }
850
+
851
+ button[data-variant='shade'] > wui-image,
852
+ button[data-variant='gray'] > wui-image {
853
+ box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-010);
854
+ }
855
+
856
+ @media (hover: hover) and (pointer: fine) {
857
+ button[data-variant='main']:focus-visible {
858
+ background-color: var(--wui-color-accent-090);
859
+ }
860
+
861
+ button[data-variant='main']:hover:enabled {
862
+ background-color: var(--wui-color-accent-090);
863
+ }
864
+
865
+ button[data-variant='main']:active:enabled {
866
+ background-color: var(--wui-color-accent-080);
867
+ }
868
+
869
+ button[data-variant='accent']:hover:enabled {
870
+ background-color: var(--wui-color-accent-glass-015);
871
+ }
872
+
873
+ button[data-variant='accent']:active:enabled {
874
+ background-color: var(--wui-color-accent-glass-020);
875
+ }
876
+
877
+ button[data-variant='shade']:focus-visible,
878
+ button[data-variant='gray']:focus-visible,
879
+ button[data-variant='shade']:hover,
880
+ button[data-variant='gray']:hover {
881
+ background-color: var(--wui-color-gray-glass-002);
882
+ }
883
+
884
+ button[data-variant='gray']:active,
885
+ button[data-variant='shade']:active {
886
+ background-color: var(--wui-color-gray-glass-005);
887
+ }
888
+ }
889
+
890
+ button.disabled {
891
+ color: var(--wui-color-gray-glass-020);
892
+ background-color: var(--wui-color-gray-glass-002);
893
+ box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-002);
894
+ pointer-events: none;
895
+ }
896
+ `;var ae=function(r,e,n,i){var o=arguments.length,t=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,n):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")t=Reflect.decorate(r,e,n,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(t=(o<3?s(t):o>3?s(e,n,t):s(e,n))||t);return o>3&&t&&Object.defineProperty(e,n,t),t};let K=class extends a.i$1{constructor(){super(...arguments),this.variant="accent",this.imageSrc="",this.disabled=!1,this.icon="externalLink",this.size="md",this.text=""}render(){const e=this.size==="sm"?"small-600":"paragraph-600";return a.b`
897
+ <button
898
+ class=${this.disabled?"disabled":""}
899
+ data-variant=${this.variant}
900
+ data-size=${this.size}
901
+ >
902
+ ${this.imageSrc?a.b`<wui-image src=${this.imageSrc}></wui-image>`:null}
903
+ <wui-text variant=${e} color="inherit"> ${this.text} </wui-text>
904
+ <wui-icon name=${this.icon} color="inherit" size="inherit"></wui-icon>
905
+ </button>
906
+ `}};K.styles=[a.resetStyles,a.elementStyles,Wn];ae([c.n()],K.prototype,"variant",void 0);ae([c.n()],K.prototype,"imageSrc",void 0);ae([c.n({type:Boolean})],K.prototype,"disabled",void 0);ae([c.n()],K.prototype,"icon",void 0);ae([c.n()],K.prototype,"size",void 0);ae([c.n()],K.prototype,"text",void 0);K=ae([c.customElement("wui-chip-button")],K);const In=a.i`
907
+ wui-flex {
908
+ width: 100%;
909
+ background-color: var(--wui-color-gray-glass-002);
910
+ border-radius: var(--wui-border-radius-xs);
911
+ }
912
+ `;var Ze=function(r,e,n,i){var o=arguments.length,t=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,n):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")t=Reflect.decorate(r,e,n,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(t=(o<3?s(t):o>3?s(e,n,t):s(e,n))||t);return o>3&&t&&Object.defineProperty(e,n,t),t};let le=class extends a.i$1{constructor(){super(...arguments),this.disabled=!1,this.label="",this.buttonLabel=""}render(){return a.b`
913
+ <wui-flex
914
+ justifyContent="space-between"
915
+ alignItems="center"
916
+ .padding=${["1xs","2l","1xs","2l"]}
917
+ >
918
+ <wui-text variant="paragraph-500" color="fg-200">${this.label}</wui-text>
919
+ <wui-chip-button size="sm" variant="shade" text=${this.buttonLabel} icon="chevronRight">
920
+ </wui-chip-button>
921
+ </wui-flex>
922
+ `}};le.styles=[a.resetStyles,a.elementStyles,In];Ze([c.n({type:Boolean})],le.prototype,"disabled",void 0);Ze([c.n()],le.prototype,"label",void 0);Ze([c.n()],le.prototype,"buttonLabel",void 0);le=Ze([c.customElement("wui-cta-button")],le);const Sn=a.i`
923
+ :host {
924
+ display: block;
925
+ padding: 0 var(--wui-spacing-xl) var(--wui-spacing-xl);
926
+ }
927
+ `;var Kt=function(r,e,n,i){var o=arguments.length,t=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,n):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")t=Reflect.decorate(r,e,n,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(t=(o<3?s(t):o>3?s(e,n,t):s(e,n))||t);return o>3&&t&&Object.defineProperty(e,n,t),t};let Ne=class extends a.i$1{constructor(){super(...arguments),this.wallet=void 0}render(){if(!this.wallet)return this.style.display="none",null;const{name:e,app_store:n,play_store:i,chrome_store:o,homepage:t}=this.wallet,s=a.CoreHelperUtil.isMobile(),l=a.CoreHelperUtil.isIos(),u=a.CoreHelperUtil.isAndroid(),h=[n,i,t,o].filter(Boolean).length>1,d=c.UiHelperUtil.getTruncateString({string:e,charsStart:12,charsEnd:0,truncate:"end"});return h&&!s?a.b`
928
+ <wui-cta-button
929
+ label=${`Don't have ${d}?`}
930
+ buttonLabel="Get"
931
+ @click=${()=>a.RouterController.push("Downloads",{wallet:this.wallet})}
932
+ ></wui-cta-button>
933
+ `:!h&&t?a.b`
934
+ <wui-cta-button
935
+ label=${`Don't have ${d}?`}
936
+ buttonLabel="Get"
937
+ @click=${this.onHomePage.bind(this)}
938
+ ></wui-cta-button>
939
+ `:n&&l?a.b`
940
+ <wui-cta-button
941
+ label=${`Don't have ${d}?`}
942
+ buttonLabel="Get"
943
+ @click=${this.onAppStore.bind(this)}
944
+ ></wui-cta-button>
945
+ `:i&&u?a.b`
946
+ <wui-cta-button
947
+ label=${`Don't have ${d}?`}
948
+ buttonLabel="Get"
949
+ @click=${this.onPlayStore.bind(this)}
950
+ ></wui-cta-button>
951
+ `:(this.style.display="none",null)}onAppStore(){var e;(e=this.wallet)!=null&&e.app_store&&a.CoreHelperUtil.openHref(this.wallet.app_store,"_blank")}onPlayStore(){var e;(e=this.wallet)!=null&&e.play_store&&a.CoreHelperUtil.openHref(this.wallet.play_store,"_blank")}onHomePage(){var e;(e=this.wallet)!=null&&e.homepage&&a.CoreHelperUtil.openHref(this.wallet.homepage,"_blank")}};Ne.styles=[Sn];Kt([c.n({type:Object})],Ne.prototype,"wallet",void 0);Ne=Kt([c.customElement("w3m-mobile-download-links")],Ne);const Tn=a.i`
952
+ @keyframes shake {
953
+ 0% {
954
+ transform: translateX(0);
955
+ }
956
+ 25% {
957
+ transform: translateX(3px);
958
+ }
959
+ 50% {
960
+ transform: translateX(-3px);
961
+ }
962
+ 75% {
963
+ transform: translateX(3px);
964
+ }
965
+ 100% {
966
+ transform: translateX(0);
967
+ }
968
+ }
969
+
970
+ wui-flex:first-child:not(:only-child) {
971
+ position: relative;
972
+ }
973
+
974
+ wui-loading-thumbnail {
975
+ position: absolute;
976
+ }
977
+
978
+ wui-icon-box {
979
+ position: absolute;
980
+ right: calc(var(--wui-spacing-3xs) * -1);
981
+ bottom: calc(var(--wui-spacing-3xs) * -1);
982
+ opacity: 0;
983
+ transform: scale(0.5);
984
+ transition-property: opacity, transform;
985
+ transition-duration: var(--wui-duration-lg);
986
+ transition-timing-function: var(--wui-ease-out-power-2);
987
+ will-change: opacity, transform;
988
+ }
989
+
990
+ wui-text[align='center'] {
991
+ width: 100%;
992
+ padding: 0px var(--wui-spacing-l);
993
+ }
994
+
995
+ [data-error='true'] wui-icon-box {
996
+ opacity: 1;
997
+ transform: scale(1);
998
+ }
999
+
1000
+ [data-error='true'] > wui-flex:first-child {
1001
+ animation: shake 250ms cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
1002
+ }
1003
+
1004
+ [data-retry='false'] wui-link {
1005
+ display: none;
1006
+ }
1007
+
1008
+ [data-retry='true'] wui-link {
1009
+ display: block;
1010
+ opacity: 1;
1011
+ }
1012
+ `;var N=function(r,e,n,i){var o=arguments.length,t=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,n):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")t=Reflect.decorate(r,e,n,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(t=(o<3?s(t):o>3?s(e,n,t):s(e,n))||t);return o>3&&t&&Object.defineProperty(e,n,t),t};class W extends a.i$1{constructor(){var e,n,i,o,t;super(),this.wallet=(e=a.RouterController.state.data)==null?void 0:e.wallet,this.connector=(n=a.RouterController.state.data)==null?void 0:n.connector,this.timeout=void 0,this.secondaryBtnIcon="refresh",this.onConnect=void 0,this.onRender=void 0,this.onAutoConnect=void 0,this.isWalletConnect=!0,this.unsubscribe=[],this.imageSrc=a.AssetUtil.getWalletImage(this.wallet)??a.AssetUtil.getConnectorImage(this.connector),this.name=((i=this.wallet)==null?void 0:i.name)??((o=this.connector)==null?void 0:o.name)??"Wallet",this.isRetrying=!1,this.uri=a.ConnectionController.state.wcUri,this.error=a.ConnectionController.state.wcError,this.ready=!1,this.showRetry=!1,this.secondaryBtnLabel="Try again",this.secondaryLabel="Accept connection request in the wallet",this.isLoading=!1,this.isMobile=!1,this.onRetry=void 0,this.unsubscribe.push(a.ConnectionController.subscribeKey("wcUri",s=>{var l;this.uri=s,this.isRetrying&&this.onRetry&&(this.isRetrying=!1,(l=this.onConnect)==null||l.call(this))}),a.ConnectionController.subscribeKey("wcError",s=>this.error=s)),(a.CoreHelperUtil.isTelegram()||a.CoreHelperUtil.isSafari())&&a.CoreHelperUtil.isIos()&&a.ConnectionController.state.wcUri&&((t=this.onConnect)==null||t.call(this))}firstUpdated(){var e;(e=this.onAutoConnect)==null||e.call(this),this.showRetry=!this.onAutoConnect}disconnectedCallback(){this.unsubscribe.forEach(e=>e()),a.ConnectionController.setWcError(!1),clearTimeout(this.timeout)}render(){var i;(i=this.onRender)==null||i.call(this),this.onShowRetry();const e=this.error?"Connection can be declined if a previous request is still active":this.secondaryLabel;let n=`Continue in ${this.name}`;return this.error&&(n="Connection declined"),a.b`
1013
+ <wui-flex
1014
+ data-error=${c.o(this.error)}
1015
+ data-retry=${this.showRetry}
1016
+ flexDirection="column"
1017
+ alignItems="center"
1018
+ .padding=${["3xl","xl","xl","xl"]}
1019
+ gap="xl"
1020
+ >
1021
+ <wui-flex justifyContent="center" alignItems="center">
1022
+ <wui-wallet-image size="lg" imageSrc=${c.o(this.imageSrc)}></wui-wallet-image>
1023
+
1024
+ ${this.error?null:this.loaderTemplate()}
1025
+
1026
+ <wui-icon-box
1027
+ backgroundColor="error-100"
1028
+ background="opaque"
1029
+ iconColor="error-100"
1030
+ icon="close"
1031
+ size="sm"
1032
+ border
1033
+ borderColor="wui-color-bg-125"
1034
+ ></wui-icon-box>
1035
+ </wui-flex>
1036
+
1037
+ <wui-flex flexDirection="column" alignItems="center" gap="xs">
1038
+ <wui-text variant="paragraph-500" color=${this.error?"error-100":"fg-100"}>
1039
+ ${n}
1040
+ </wui-text>
1041
+ <wui-text align="center" variant="small-500" color="fg-200">${e}</wui-text>
1042
+ </wui-flex>
1043
+
1044
+ ${this.secondaryBtnLabel?a.b`
1045
+ <wui-button
1046
+ variant="accent"
1047
+ size="md"
1048
+ ?disabled=${this.isRetrying||this.isLoading}
1049
+ @click=${this.onTryAgain.bind(this)}
1050
+ data-testid="w3m-connecting-widget-secondary-button"
1051
+ >
1052
+ <wui-icon color="inherit" slot="iconLeft" name=${this.secondaryBtnIcon}></wui-icon>
1053
+ ${this.secondaryBtnLabel}
1054
+ </wui-button>
1055
+ `:null}
1056
+ </wui-flex>
1057
+
1058
+ ${this.isWalletConnect?a.b`
1059
+ <wui-flex .padding=${["0","xl","xl","xl"]} justifyContent="center">
1060
+ <wui-link @click=${this.onCopyUri} color="fg-200" data-testid="wui-link-copy">
1061
+ <wui-icon size="xs" color="fg-200" slot="iconLeft" name="copy"></wui-icon>
1062
+ Copy link
1063
+ </wui-link>
1064
+ </wui-flex>
1065
+ `:null}
1066
+
1067
+ <w3m-mobile-download-links .wallet=${this.wallet}></w3m-mobile-download-links>
1068
+ `}onShowRetry(){var e;if(this.error&&!this.showRetry){this.showRetry=!0;const n=(e=this.shadowRoot)==null?void 0:e.querySelector("wui-button");n==null||n.animate([{opacity:0},{opacity:1}],{fill:"forwards",easing:"ease"})}}onTryAgain(){var e,n;a.ConnectionController.setWcError(!1),this.onRetry?(this.isRetrying=!0,(e=this.onRetry)==null||e.call(this)):(n=this.onConnect)==null||n.call(this)}loaderTemplate(){const e=a.ThemeController.state.themeVariables["--w3m-border-radius-master"],n=e?parseInt(e.replace("px",""),10):4;return a.b`<wui-loading-thumbnail radius=${n*9}></wui-loading-thumbnail>`}onCopyUri(){try{this.uri&&(a.CoreHelperUtil.copyToClopboard(this.uri),a.SnackController.showSuccess("Link copied"))}catch{a.SnackController.showError("Failed to copy")}}}W.styles=Tn;N([c.r()],W.prototype,"isRetrying",void 0);N([c.r()],W.prototype,"uri",void 0);N([c.r()],W.prototype,"error",void 0);N([c.r()],W.prototype,"ready",void 0);N([c.r()],W.prototype,"showRetry",void 0);N([c.r()],W.prototype,"secondaryBtnLabel",void 0);N([c.r()],W.prototype,"secondaryLabel",void 0);N([c.r()],W.prototype,"isLoading",void 0);N([c.n({type:Boolean})],W.prototype,"isMobile",void 0);N([c.n()],W.prototype,"onRetry",void 0);var An=function(r,e,n,i){var o=arguments.length,t=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,n):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")t=Reflect.decorate(r,e,n,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(t=(o<3?s(t):o>3?s(e,n,t):s(e,n))||t);return o>3&&t&&Object.defineProperty(e,n,t),t};let kt=class extends W{constructor(){if(super(),!this.wallet)throw new Error("w3m-connecting-wc-browser: No wallet provided");this.onConnect=this.onConnectProxy.bind(this),this.onAutoConnect=this.onConnectProxy.bind(this),a.EventsController.sendEvent({type:"track",event:"SELECT_WALLET",properties:{name:this.wallet.name,platform:"browser"}})}async onConnectProxy(){var e;try{this.error=!1;const{connectors:n}=a.ConnectorController.state,i=n.find(o=>{var t,s,l;return o.type==="ANNOUNCED"&&((t=o.info)==null?void 0:t.rdns)===((s=this.wallet)==null?void 0:s.rdns)||o.type==="INJECTED"||o.name===((l=this.wallet)==null?void 0:l.name)});if(i)await a.ConnectionController.connectExternal(i,i.chain);else throw new Error("w3m-connecting-wc-browser: No connector found");a.ModalController.close(),a.EventsController.sendEvent({type:"track",event:"CONNECT_SUCCESS",properties:{method:"browser",name:((e=this.wallet)==null?void 0:e.name)||"Unknown"}})}catch(n){a.EventsController.sendEvent({type:"track",event:"CONNECT_ERROR",properties:{message:(n==null?void 0:n.message)??"Unknown"}}),this.error=!0}}};kt=An([c.customElement("w3m-connecting-wc-browser")],kt);var Pn=function(r,e,n,i){var o=arguments.length,t=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,n):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")t=Reflect.decorate(r,e,n,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(t=(o<3?s(t):o>3?s(e,n,t):s(e,n))||t);return o>3&&t&&Object.defineProperty(e,n,t),t};let jt=class extends W{constructor(){if(super(),!this.wallet)throw new Error("w3m-connecting-wc-desktop: No wallet provided");this.onConnect=this.onConnectProxy.bind(this),this.onRender=this.onRenderProxy.bind(this),a.EventsController.sendEvent({type:"track",event:"SELECT_WALLET",properties:{name:this.wallet.name,platform:"desktop"}})}onRenderProxy(){var e;!this.ready&&this.uri&&(this.ready=!0,(e=this.onConnect)==null||e.call(this))}onConnectProxy(){var e;if((e=this.wallet)!=null&&e.desktop_link&&this.uri)try{this.error=!1;const{desktop_link:n,name:i}=this.wallet,{redirect:o,href:t}=a.CoreHelperUtil.formatNativeUrl(n,this.uri);a.ConnectionController.setWcLinking({name:i,href:t}),a.ConnectionController.setRecentWallet(this.wallet),a.CoreHelperUtil.openHref(o,"_blank")}catch{this.error=!0}}};jt=Pn([c.customElement("w3m-connecting-wc-desktop")],jt);var we=function(r,e,n,i){var o=arguments.length,t=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,n):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")t=Reflect.decorate(r,e,n,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(t=(o<3?s(t):o>3?s(e,n,t):s(e,n))||t);return o>3&&t&&Object.defineProperty(e,n,t),t};let ne=class extends W{constructor(){if(super(),this.btnLabelTimeout=void 0,this.redirectDeeplink=void 0,this.redirectUniversalLink=void 0,this.target=void 0,this.preferUniversalLinks=a.OptionsController.state.experimental_preferUniversalLinks,this.isLoading=!0,this.onConnect=()=>{var e;if((e=this.wallet)!=null&&e.mobile_link&&this.uri)try{this.error=!1;const{mobile_link:n,link_mode:i,name:o}=this.wallet,{redirect:t,redirectUniversalLink:s,href:l}=a.CoreHelperUtil.formatNativeUrl(n,this.uri,i);this.redirectDeeplink=t,this.redirectUniversalLink=s,this.target=a.CoreHelperUtil.isIframe()?"_top":"_self",a.ConnectionController.setWcLinking({name:o,href:l}),a.ConnectionController.setRecentWallet(this.wallet),this.preferUniversalLinks&&this.redirectUniversalLink?a.CoreHelperUtil.openHref(this.redirectUniversalLink,this.target):a.CoreHelperUtil.openHref(this.redirectDeeplink,this.target)}catch(n){a.EventsController.sendEvent({type:"track",event:"CONNECT_PROXY_ERROR",properties:{message:n instanceof Error?n.message:"Error parsing the deeplink",uri:this.uri,mobile_link:this.wallet.mobile_link,name:this.wallet.name}}),this.error=!0}},!this.wallet)throw new Error("w3m-connecting-wc-mobile: No wallet provided");this.secondaryBtnLabel="Open",this.secondaryLabel=a.ConstantsUtil$2.CONNECT_LABELS.MOBILE,this.secondaryBtnIcon="externalLink",this.onHandleURI(),this.unsubscribe.push(a.ConnectionController.subscribeKey("wcUri",()=>{this.onHandleURI()})),a.EventsController.sendEvent({type:"track",event:"SELECT_WALLET",properties:{name:this.wallet.name,platform:"mobile"}})}disconnectedCallback(){super.disconnectedCallback(),clearTimeout(this.btnLabelTimeout)}onHandleURI(){var e;this.isLoading=!this.uri,!this.ready&&this.uri&&(this.ready=!0,(e=this.onConnect)==null||e.call(this))}onTryAgain(){var e;a.ConnectionController.setWcError(!1),(e=this.onConnect)==null||e.call(this)}};we([c.r()],ne.prototype,"redirectDeeplink",void 0);we([c.r()],ne.prototype,"redirectUniversalLink",void 0);we([c.r()],ne.prototype,"target",void 0);we([c.r()],ne.prototype,"preferUniversalLinks",void 0);we([c.r()],ne.prototype,"isLoading",void 0);ne=we([c.customElement("w3m-connecting-wc-mobile")],ne);var _e={},On=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then},Gt={},A={};let It;const Ln=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];A.getSymbolSize=function(e){if(!e)throw new Error('"version" cannot be null or undefined');if(e<1||e>40)throw new Error('"version" should be in range from 1 to 40');return e*4+17};A.getSymbolTotalCodewords=function(e){return Ln[e]};A.getBCHDigit=function(r){let e=0;for(;r!==0;)e++,r>>>=1;return e};A.setToSJISFunction=function(e){if(typeof e!="function")throw new Error('"toSJISFunc" is not a valid function.');It=e};A.isKanjiModeEnabled=function(){return typeof It<"u"};A.toSJIS=function(e){return It(e)};var et={};(function(r){r.L={bit:1},r.M={bit:0},r.Q={bit:3},r.H={bit:2};function e(n){if(typeof n!="string")throw new Error("Param is not a string");switch(n.toLowerCase()){case"l":case"low":return r.L;case"m":case"medium":return r.M;case"q":case"quartile":return r.Q;case"h":case"high":return r.H;default:throw new Error("Unknown EC Level: "+n)}}r.isValid=function(i){return i&&typeof i.bit<"u"&&i.bit>=0&&i.bit<4},r.from=function(i,o){if(r.isValid(i))return i;try{return e(i)}catch{return o}}})(et);function Yt(){this.buffer=[],this.length=0}Yt.prototype={get:function(r){const e=Math.floor(r/8);return(this.buffer[e]>>>7-r%8&1)===1},put:function(r,e){for(let n=0;n<e;n++)this.putBit((r>>>e-n-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(r){const e=Math.floor(this.length/8);this.buffer.length<=e&&this.buffer.push(0),r&&(this.buffer[e]|=128>>>this.length%8),this.length++}};var Bn=Yt;function We(r){if(!r||r<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=r,this.data=new Uint8Array(r*r),this.reservedBit=new Uint8Array(r*r)}We.prototype.set=function(r,e,n,i){const o=r*this.size+e;this.data[o]=n,i&&(this.reservedBit[o]=!0)};We.prototype.get=function(r,e){return this.data[r*this.size+e]};We.prototype.xor=function(r,e,n){this.data[r*this.size+e]^=n};We.prototype.isReserved=function(r,e){return this.reservedBit[r*this.size+e]};var Un=We,Jt={};(function(r){const e=A.getSymbolSize;r.getRowColCoords=function(i){if(i===1)return[];const o=Math.floor(i/7)+2,t=e(i),s=t===145?26:Math.ceil((t-13)/(2*o-2))*2,l=[t-7];for(let u=1;u<o-1;u++)l[u]=l[u-1]-s;return l.push(6),l.reverse()},r.getPositions=function(i){const o=[],t=r.getRowColCoords(i),s=t.length;for(let l=0;l<s;l++)for(let u=0;u<s;u++)l===0&&u===0||l===0&&u===s-1||l===s-1&&u===0||o.push([t[l],t[u]]);return o}})(Jt);var Qt={};const kn=A.getSymbolSize,zt=7;Qt.getPositions=function(e){const n=kn(e);return[[0,0],[n-zt,0],[0,n-zt]]};var Xt={};(function(r){r.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};const e={N1:3,N2:3,N3:40,N4:10};r.isValid=function(o){return o!=null&&o!==""&&!isNaN(o)&&o>=0&&o<=7},r.from=function(o){return r.isValid(o)?parseInt(o,10):void 0},r.getPenaltyN1=function(o){const t=o.size;let s=0,l=0,u=0,h=null,d=null;for(let C=0;C<t;C++){l=u=0,h=d=null;for(let v=0;v<t;v++){let m=o.get(C,v);m===h?l++:(l>=5&&(s+=e.N1+(l-5)),h=m,l=1),m=o.get(v,C),m===d?u++:(u>=5&&(s+=e.N1+(u-5)),d=m,u=1)}l>=5&&(s+=e.N1+(l-5)),u>=5&&(s+=e.N1+(u-5))}return s},r.getPenaltyN2=function(o){const t=o.size;let s=0;for(let l=0;l<t-1;l++)for(let u=0;u<t-1;u++){const h=o.get(l,u)+o.get(l,u+1)+o.get(l+1,u)+o.get(l+1,u+1);(h===4||h===0)&&s++}return s*e.N2},r.getPenaltyN3=function(o){const t=o.size;let s=0,l=0,u=0;for(let h=0;h<t;h++){l=u=0;for(let d=0;d<t;d++)l=l<<1&2047|o.get(h,d),d>=10&&(l===1488||l===93)&&s++,u=u<<1&2047|o.get(d,h),d>=10&&(u===1488||u===93)&&s++}return s*e.N3},r.getPenaltyN4=function(o){let t=0;const s=o.data.length;for(let u=0;u<s;u++)t+=o.data[u];return Math.abs(Math.ceil(t*100/s/5)-10)*e.N4};function n(i,o,t){switch(i){case r.Patterns.PATTERN000:return(o+t)%2===0;case r.Patterns.PATTERN001:return o%2===0;case r.Patterns.PATTERN010:return t%3===0;case r.Patterns.PATTERN011:return(o+t)%3===0;case r.Patterns.PATTERN100:return(Math.floor(o/2)+Math.floor(t/3))%2===0;case r.Patterns.PATTERN101:return o*t%2+o*t%3===0;case r.Patterns.PATTERN110:return(o*t%2+o*t%3)%2===0;case r.Patterns.PATTERN111:return(o*t%3+(o+t)%2)%2===0;default:throw new Error("bad maskPattern:"+i)}}r.applyMask=function(o,t){const s=t.size;for(let l=0;l<s;l++)for(let u=0;u<s;u++)t.isReserved(u,l)||t.xor(u,l,n(o,u,l))},r.getBestMask=function(o,t){const s=Object.keys(r.Patterns).length;let l=0,u=1/0;for(let h=0;h<s;h++){t(h),r.applyMask(h,o);const d=r.getPenaltyN1(o)+r.getPenaltyN2(o)+r.getPenaltyN3(o)+r.getPenaltyN4(o);r.applyMask(h,o),d<u&&(u=d,l=h)}return l}})(Xt);var tt={};const J=et,Ae=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],Pe=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];tt.getBlocksCount=function(e,n){switch(n){case J.L:return Ae[(e-1)*4+0];case J.M:return Ae[(e-1)*4+1];case J.Q:return Ae[(e-1)*4+2];case J.H:return Ae[(e-1)*4+3];default:return}};tt.getTotalCodewordsCount=function(e,n){switch(n){case J.L:return Pe[(e-1)*4+0];case J.M:return Pe[(e-1)*4+1];case J.Q:return Pe[(e-1)*4+2];case J.H:return Pe[(e-1)*4+3];default:return}};var Zt={},nt={};const ve=new Uint8Array(512),Me=new Uint8Array(256);(function(){let e=1;for(let n=0;n<255;n++)ve[n]=e,Me[e]=n,e<<=1,e&256&&(e^=285);for(let n=255;n<512;n++)ve[n]=ve[n-255]})();nt.log=function(e){if(e<1)throw new Error("log("+e+")");return Me[e]};nt.exp=function(e){return ve[e]};nt.mul=function(e,n){return e===0||n===0?0:ve[Me[e]+Me[n]]};(function(r){const e=nt;r.mul=function(i,o){const t=new Uint8Array(i.length+o.length-1);for(let s=0;s<i.length;s++)for(let l=0;l<o.length;l++)t[s+l]^=e.mul(i[s],o[l]);return t},r.mod=function(i,o){let t=new Uint8Array(i);for(;t.length-o.length>=0;){const s=t[0];for(let u=0;u<o.length;u++)t[u]^=e.mul(o[u],s);let l=0;for(;l<t.length&&t[l]===0;)l++;t=t.slice(l)}return t},r.generateECPolynomial=function(i){let o=new Uint8Array([1]);for(let t=0;t<i;t++)o=r.mul(o,new Uint8Array([1,e.exp(t)]));return o}})(Zt);const en=Zt;function St(r){this.genPoly=void 0,this.degree=r,this.degree&&this.initialize(this.degree)}St.prototype.initialize=function(e){this.degree=e,this.genPoly=en.generateECPolynomial(this.degree)};St.prototype.encode=function(e){if(!this.genPoly)throw new Error("Encoder not initialized");const n=new Uint8Array(e.length+this.degree);n.set(e);const i=en.mod(n,this.genPoly),o=this.degree-i.length;if(o>0){const t=new Uint8Array(this.degree);return t.set(i,o),t}return i};var jn=St,tn={},Z={},Tt={};Tt.isValid=function(e){return!isNaN(e)&&e>=1&&e<=40};var M={};const nn="[0-9]+",zn="[A-Z $%*+\\-./:]+";let Re="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";Re=Re.replace(/u/g,"\\u");const Dn="(?:(?![A-Z0-9 $%*+\\-./:]|"+Re+`)(?:.|[\r
1069
+ ]))+`;M.KANJI=new RegExp(Re,"g");M.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g");M.BYTE=new RegExp(Dn,"g");M.NUMERIC=new RegExp(nn,"g");M.ALPHANUMERIC=new RegExp(zn,"g");const Nn=new RegExp("^"+Re+"$"),Mn=new RegExp("^"+nn+"$"),Hn=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");M.testKanji=function(e){return Nn.test(e)};M.testNumeric=function(e){return Mn.test(e)};M.testAlphanumeric=function(e){return Hn.test(e)};(function(r){const e=Tt,n=M;r.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},r.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},r.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},r.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},r.MIXED={bit:-1},r.getCharCountIndicator=function(t,s){if(!t.ccBits)throw new Error("Invalid mode: "+t);if(!e.isValid(s))throw new Error("Invalid version: "+s);return s>=1&&s<10?t.ccBits[0]:s<27?t.ccBits[1]:t.ccBits[2]},r.getBestModeForData=function(t){return n.testNumeric(t)?r.NUMERIC:n.testAlphanumeric(t)?r.ALPHANUMERIC:n.testKanji(t)?r.KANJI:r.BYTE},r.toString=function(t){if(t&&t.id)return t.id;throw new Error("Invalid mode")},r.isValid=function(t){return t&&t.bit&&t.ccBits};function i(o){if(typeof o!="string")throw new Error("Param is not a string");switch(o.toLowerCase()){case"numeric":return r.NUMERIC;case"alphanumeric":return r.ALPHANUMERIC;case"kanji":return r.KANJI;case"byte":return r.BYTE;default:throw new Error("Unknown mode: "+o)}}r.from=function(t,s){if(r.isValid(t))return t;try{return i(t)}catch{return s}}})(Z);(function(r){const e=A,n=tt,i=et,o=Z,t=Tt,s=7973,l=e.getBCHDigit(s);function u(v,m,y){for(let b=1;b<=40;b++)if(m<=r.getCapacity(b,y,v))return b}function h(v,m){return o.getCharCountIndicator(v,m)+4}function d(v,m){let y=0;return v.forEach(function(b){const x=h(b.mode,m);y+=x+b.getBitsLength()}),y}function C(v,m){for(let y=1;y<=40;y++)if(d(v,y)<=r.getCapacity(y,m,o.MIXED))return y}r.from=function(m,y){return t.isValid(m)?parseInt(m,10):y},r.getCapacity=function(m,y,b){if(!t.isValid(m))throw new Error("Invalid QR Code version");typeof b>"u"&&(b=o.BYTE);const x=e.getSymbolTotalCodewords(m),g=n.getTotalCodewordsCount(m,y),f=(x-g)*8;if(b===o.MIXED)return f;const w=f-h(b,m);switch(b){case o.NUMERIC:return Math.floor(w/10*3);case o.ALPHANUMERIC:return Math.floor(w/11*2);case o.KANJI:return Math.floor(w/13);case o.BYTE:default:return Math.floor(w/8)}},r.getBestVersionForData=function(m,y){let b;const x=i.from(y,i.M);if(Array.isArray(m)){if(m.length>1)return C(m,x);if(m.length===0)return 1;b=m[0]}else b=m;return u(b.mode,b.getLength(),x)},r.getEncodedBits=function(m){if(!t.isValid(m)||m<7)throw new Error("Invalid QR Code version");let y=m<<12;for(;e.getBCHDigit(y)-l>=0;)y^=s<<e.getBCHDigit(y)-l;return m<<12|y}})(tn);var on={};const ft=A,rn=1335,Vn=21522,Dt=ft.getBCHDigit(rn);on.getEncodedBits=function(e,n){const i=e.bit<<3|n;let o=i<<10;for(;ft.getBCHDigit(o)-Dt>=0;)o^=rn<<ft.getBCHDigit(o)-Dt;return(i<<10|o)^Vn};var an={};const Fn=Z;function ce(r){this.mode=Fn.NUMERIC,this.data=r.toString()}ce.getBitsLength=function(e){return 10*Math.floor(e/3)+(e%3?e%3*3+1:0)};ce.prototype.getLength=function(){return this.data.length};ce.prototype.getBitsLength=function(){return ce.getBitsLength(this.data.length)};ce.prototype.write=function(e){let n,i,o;for(n=0;n+3<=this.data.length;n+=3)i=this.data.substr(n,3),o=parseInt(i,10),e.put(o,10);const t=this.data.length-n;t>0&&(i=this.data.substr(n),o=parseInt(i,10),e.put(o,t*3+1))};var qn=ce;const Kn=Z,st=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function ue(r){this.mode=Kn.ALPHANUMERIC,this.data=r}ue.getBitsLength=function(e){return 11*Math.floor(e/2)+6*(e%2)};ue.prototype.getLength=function(){return this.data.length};ue.prototype.getBitsLength=function(){return ue.getBitsLength(this.data.length)};ue.prototype.write=function(e){let n;for(n=0;n+2<=this.data.length;n+=2){let i=st.indexOf(this.data[n])*45;i+=st.indexOf(this.data[n+1]),e.put(i,11)}this.data.length%2&&e.put(st.indexOf(this.data[n]),6)};var Gn=ue,Yn=function(e){for(var n=[],i=e.length,o=0;o<i;o++){var t=e.charCodeAt(o);if(t>=55296&&t<=56319&&i>o+1){var s=e.charCodeAt(o+1);s>=56320&&s<=57343&&(t=(t-55296)*1024+s-56320+65536,o+=1)}if(t<128){n.push(t);continue}if(t<2048){n.push(t>>6|192),n.push(t&63|128);continue}if(t<55296||t>=57344&&t<65536){n.push(t>>12|224),n.push(t>>6&63|128),n.push(t&63|128);continue}if(t>=65536&&t<=1114111){n.push(t>>18|240),n.push(t>>12&63|128),n.push(t>>6&63|128),n.push(t&63|128);continue}n.push(239,191,189)}return new Uint8Array(n).buffer};const Jn=Yn,Qn=Z;function de(r){this.mode=Qn.BYTE,typeof r=="string"&&(r=Jn(r)),this.data=new Uint8Array(r)}de.getBitsLength=function(e){return e*8};de.prototype.getLength=function(){return this.data.length};de.prototype.getBitsLength=function(){return de.getBitsLength(this.data.length)};de.prototype.write=function(r){for(let e=0,n=this.data.length;e<n;e++)r.put(this.data[e],8)};var Xn=de;const Zn=Z,ei=A;function he(r){this.mode=Zn.KANJI,this.data=r}he.getBitsLength=function(e){return e*13};he.prototype.getLength=function(){return this.data.length};he.prototype.getBitsLength=function(){return he.getBitsLength(this.data.length)};he.prototype.write=function(r){let e;for(e=0;e<this.data.length;e++){let n=ei.toSJIS(this.data[e]);if(n>=33088&&n<=40956)n-=33088;else if(n>=57408&&n<=60351)n-=49472;else throw new Error("Invalid SJIS character: "+this.data[e]+`
1070
+ Make sure your charset is UTF-8`);n=(n>>>8&255)*192+(n&255),r.put(n,13)}};var ti=he,sn={exports:{}};(function(r){var e={single_source_shortest_paths:function(n,i,o){var t={},s={};s[i]=0;var l=e.PriorityQueue.make();l.push(i,0);for(var u,h,d,C,v,m,y,b,x;!l.empty();){u=l.pop(),h=u.value,C=u.cost,v=n[h]||{};for(d in v)v.hasOwnProperty(d)&&(m=v[d],y=C+m,b=s[d],x=typeof s[d]>"u",(x||b>y)&&(s[d]=y,l.push(d,y),t[d]=h))}if(typeof o<"u"&&typeof s[o]>"u"){var g=["Could not find a path from ",i," to ",o,"."].join("");throw new Error(g)}return t},extract_shortest_path_from_predecessor_list:function(n,i){for(var o=[],t=i;t;)o.push(t),n[t],t=n[t];return o.reverse(),o},find_path:function(n,i,o){var t=e.single_source_shortest_paths(n,i,o);return e.extract_shortest_path_from_predecessor_list(t,o)},PriorityQueue:{make:function(n){var i=e.PriorityQueue,o={},t;n=n||{};for(t in i)i.hasOwnProperty(t)&&(o[t]=i[t]);return o.queue=[],o.sorter=n.sorter||i.default_sorter,o},default_sorter:function(n,i){return n.cost-i.cost},push:function(n,i){var o={value:n,cost:i};this.queue.push(o),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};r.exports=e})(sn);var ni=sn.exports;(function(r){const e=Z,n=qn,i=Gn,o=Xn,t=ti,s=M,l=A,u=ni;function h(g){return unescape(encodeURIComponent(g)).length}function d(g,f,w){const p=[];let $;for(;($=g.exec(w))!==null;)p.push({data:$[0],index:$.index,mode:f,length:$[0].length});return p}function C(g){const f=d(s.NUMERIC,e.NUMERIC,g),w=d(s.ALPHANUMERIC,e.ALPHANUMERIC,g);let p,$;return l.isKanjiModeEnabled()?(p=d(s.BYTE,e.BYTE,g),$=d(s.KANJI,e.KANJI,g)):(p=d(s.BYTE_KANJI,e.BYTE,g),$=[]),f.concat(w,p,$).sort(function(E,B){return E.index-B.index}).map(function(E){return{data:E.data,mode:E.mode,length:E.length}})}function v(g,f){switch(f){case e.NUMERIC:return n.getBitsLength(g);case e.ALPHANUMERIC:return i.getBitsLength(g);case e.KANJI:return t.getBitsLength(g);case e.BYTE:return o.getBitsLength(g)}}function m(g){return g.reduce(function(f,w){const p=f.length-1>=0?f[f.length-1]:null;return p&&p.mode===w.mode?(f[f.length-1].data+=w.data,f):(f.push(w),f)},[])}function y(g){const f=[];for(let w=0;w<g.length;w++){const p=g[w];switch(p.mode){case e.NUMERIC:f.push([p,{data:p.data,mode:e.ALPHANUMERIC,length:p.length},{data:p.data,mode:e.BYTE,length:p.length}]);break;case e.ALPHANUMERIC:f.push([p,{data:p.data,mode:e.BYTE,length:p.length}]);break;case e.KANJI:f.push([p,{data:p.data,mode:e.BYTE,length:h(p.data)}]);break;case e.BYTE:f.push([{data:p.data,mode:e.BYTE,length:h(p.data)}])}}return f}function b(g,f){const w={},p={start:{}};let $=["start"];for(let R=0;R<g.length;R++){const E=g[R],B=[];for(let Y=0;Y<E.length;Y++){const j=E[Y],me=""+R+Y;B.push(me),w[me]={node:j,lastCount:0},p[me]={};for(let rt=0;rt<$.length;rt++){const V=$[rt];w[V]&&w[V].node.mode===j.mode?(p[V][me]=v(w[V].lastCount+j.length,j.mode)-v(w[V].lastCount,j.mode),w[V].lastCount+=j.length):(w[V]&&(w[V].lastCount=j.length),p[V][me]=v(j.length,j.mode)+4+e.getCharCountIndicator(j.mode,f))}}$=B}for(let R=0;R<$.length;R++)p[$[R]].end=0;return{map:p,table:w}}function x(g,f){let w;const p=e.getBestModeForData(g);if(w=e.from(f,p),w!==e.BYTE&&w.bit<p.bit)throw new Error('"'+g+'" cannot be encoded with mode '+e.toString(w)+`.
1071
+ Suggested mode is: `+e.toString(p));switch(w===e.KANJI&&!l.isKanjiModeEnabled()&&(w=e.BYTE),w){case e.NUMERIC:return new n(g);case e.ALPHANUMERIC:return new i(g);case e.KANJI:return new t(g);case e.BYTE:return new o(g)}}r.fromArray=function(f){return f.reduce(function(w,p){return typeof p=="string"?w.push(x(p,null)):p.data&&w.push(x(p.data,p.mode)),w},[])},r.fromString=function(f,w){const p=C(f,l.isKanjiModeEnabled()),$=y(p),R=b($,w),E=u.find_path(R.map,"start","end"),B=[];for(let Y=1;Y<E.length-1;Y++)B.push(R.table[E[Y]].node);return r.fromArray(m(B))},r.rawSplit=function(f){return r.fromArray(C(f,l.isKanjiModeEnabled()))}})(an);const it=A,lt=et,ii=Bn,oi=Un,ri=Jt,ai=Qt,gt=Xt,wt=tt,si=jn,He=tn,li=on,ci=Z,ct=an;function ui(r,e){const n=r.size,i=ai.getPositions(e);for(let o=0;o<i.length;o++){const t=i[o][0],s=i[o][1];for(let l=-1;l<=7;l++)if(!(t+l<=-1||n<=t+l))for(let u=-1;u<=7;u++)s+u<=-1||n<=s+u||(l>=0&&l<=6&&(u===0||u===6)||u>=0&&u<=6&&(l===0||l===6)||l>=2&&l<=4&&u>=2&&u<=4?r.set(t+l,s+u,!0,!0):r.set(t+l,s+u,!1,!0))}}function di(r){const e=r.size;for(let n=8;n<e-8;n++){const i=n%2===0;r.set(n,6,i,!0),r.set(6,n,i,!0)}}function hi(r,e){const n=ri.getPositions(e);for(let i=0;i<n.length;i++){const o=n[i][0],t=n[i][1];for(let s=-2;s<=2;s++)for(let l=-2;l<=2;l++)s===-2||s===2||l===-2||l===2||s===0&&l===0?r.set(o+s,t+l,!0,!0):r.set(o+s,t+l,!1,!0)}}function pi(r,e){const n=r.size,i=He.getEncodedBits(e);let o,t,s;for(let l=0;l<18;l++)o=Math.floor(l/3),t=l%3+n-8-3,s=(i>>l&1)===1,r.set(o,t,s,!0),r.set(t,o,s,!0)}function ut(r,e,n){const i=r.size,o=li.getEncodedBits(e,n);let t,s;for(t=0;t<15;t++)s=(o>>t&1)===1,t<6?r.set(t,8,s,!0):t<8?r.set(t+1,8,s,!0):r.set(i-15+t,8,s,!0),t<8?r.set(8,i-t-1,s,!0):t<9?r.set(8,15-t-1+1,s,!0):r.set(8,15-t-1,s,!0);r.set(i-8,8,1,!0)}function fi(r,e){const n=r.size;let i=-1,o=n-1,t=7,s=0;for(let l=n-1;l>0;l-=2)for(l===6&&l--;;){for(let u=0;u<2;u++)if(!r.isReserved(o,l-u)){let h=!1;s<e.length&&(h=(e[s]>>>t&1)===1),r.set(o,l-u,h),t--,t===-1&&(s++,t=7)}if(o+=i,o<0||n<=o){o-=i,i=-i;break}}}function gi(r,e,n){const i=new ii;n.forEach(function(u){i.put(u.mode.bit,4),i.put(u.getLength(),ci.getCharCountIndicator(u.mode,r)),u.write(i)});const o=it.getSymbolTotalCodewords(r),t=wt.getTotalCodewordsCount(r,e),s=(o-t)*8;for(i.getLengthInBits()+4<=s&&i.put(0,4);i.getLengthInBits()%8!==0;)i.putBit(0);const l=(s-i.getLengthInBits())/8;for(let u=0;u<l;u++)i.put(u%2?17:236,8);return wi(i,r,e)}function wi(r,e,n){const i=it.getSymbolTotalCodewords(e),o=wt.getTotalCodewordsCount(e,n),t=i-o,s=wt.getBlocksCount(e,n),l=i%s,u=s-l,h=Math.floor(i/s),d=Math.floor(t/s),C=d+1,v=h-d,m=new si(v);let y=0;const b=new Array(s),x=new Array(s);let g=0;const f=new Uint8Array(r.buffer);for(let E=0;E<s;E++){const B=E<u?d:C;b[E]=f.slice(y,y+B),x[E]=m.encode(b[E]),y+=B,g=Math.max(g,B)}const w=new Uint8Array(i);let p=0,$,R;for($=0;$<g;$++)for(R=0;R<s;R++)$<b[R].length&&(w[p++]=b[R][$]);for($=0;$<v;$++)for(R=0;R<s;R++)w[p++]=x[R][$];return w}function bi(r,e,n,i){let o;if(Array.isArray(r))o=ct.fromArray(r);else if(typeof r=="string"){let h=e;if(!h){const d=ct.rawSplit(r);h=He.getBestVersionForData(d,n)}o=ct.fromString(r,h||40)}else throw new Error("Invalid data");const t=He.getBestVersionForData(o,n);if(!t)throw new Error("The amount of data is too big to be stored in a QR Code");if(!e)e=t;else if(e<t)throw new Error(`
1072
+ The chosen QR Code version cannot contain this amount of data.
1073
+ Minimum version required to store current data is: `+t+`.
1074
+ `);const s=gi(e,n,o),l=it.getSymbolSize(e),u=new oi(l);return ui(u,e),di(u),hi(u,e),ut(u,n,0),e>=7&&pi(u,e),fi(u,s),isNaN(i)&&(i=gt.getBestMask(u,ut.bind(null,u,n))),gt.applyMask(i,u),ut(u,n,i),{modules:u,version:e,errorCorrectionLevel:n,maskPattern:i,segments:o}}Gt.create=function(e,n){if(typeof e>"u"||e==="")throw new Error("No input text");let i=lt.M,o,t;return typeof n<"u"&&(i=lt.from(n.errorCorrectionLevel,lt.M),o=He.from(n.version),t=gt.from(n.maskPattern),n.toSJISFunc&&it.setToSJISFunction(n.toSJISFunc)),bi(e,o,i,t)};var ln={},At={};(function(r){function e(n){if(typeof n=="number"&&(n=n.toString()),typeof n!="string")throw new Error("Color should be defined as hex string");let i=n.slice().replace("#","").split("");if(i.length<3||i.length===5||i.length>8)throw new Error("Invalid hex color: "+n);(i.length===3||i.length===4)&&(i=Array.prototype.concat.apply([],i.map(function(t){return[t,t]}))),i.length===6&&i.push("F","F");const o=parseInt(i.join(""),16);return{r:o>>24&255,g:o>>16&255,b:o>>8&255,a:o&255,hex:"#"+i.slice(0,6).join("")}}r.getOptions=function(i){i||(i={}),i.color||(i.color={});const o=typeof i.margin>"u"||i.margin===null||i.margin<0?4:i.margin,t=i.width&&i.width>=21?i.width:void 0,s=i.scale||4;return{width:t,scale:t?4:s,margin:o,color:{dark:e(i.color.dark||"#000000ff"),light:e(i.color.light||"#ffffffff")},type:i.type,rendererOpts:i.rendererOpts||{}}},r.getScale=function(i,o){return o.width&&o.width>=i+o.margin*2?o.width/(i+o.margin*2):o.scale},r.getImageWidth=function(i,o){const t=r.getScale(i,o);return Math.floor((i+o.margin*2)*t)},r.qrToImageData=function(i,o,t){const s=o.modules.size,l=o.modules.data,u=r.getScale(s,t),h=Math.floor((s+t.margin*2)*u),d=t.margin*u,C=[t.color.light,t.color.dark];for(let v=0;v<h;v++)for(let m=0;m<h;m++){let y=(v*h+m)*4,b=t.color.light;if(v>=d&&m>=d&&v<h-d&&m<h-d){const x=Math.floor((v-d)/u),g=Math.floor((m-d)/u);b=C[l[x*s+g]?1:0]}i[y++]=b.r,i[y++]=b.g,i[y++]=b.b,i[y]=b.a}}})(At);(function(r){const e=At;function n(o,t,s){o.clearRect(0,0,t.width,t.height),t.style||(t.style={}),t.height=s,t.width=s,t.style.height=s+"px",t.style.width=s+"px"}function i(){try{return document.createElement("canvas")}catch{throw new Error("You need to specify a canvas element")}}r.render=function(t,s,l){let u=l,h=s;typeof u>"u"&&(!s||!s.getContext)&&(u=s,s=void 0),s||(h=i()),u=e.getOptions(u);const d=e.getImageWidth(t.modules.size,u),C=h.getContext("2d"),v=C.createImageData(d,d);return e.qrToImageData(v.data,t,u),n(C,h,d),C.putImageData(v,0,0),h},r.renderToDataURL=function(t,s,l){let u=l;typeof u>"u"&&(!s||!s.getContext)&&(u=s,s=void 0),u||(u={});const h=r.render(t,s,u),d=u.type||"image/png",C=u.rendererOpts||{};return h.toDataURL(d,C.quality)}})(ln);var cn={};const mi=At;function Nt(r,e){const n=r.a/255,i=e+'="'+r.hex+'"';return n<1?i+" "+e+'-opacity="'+n.toFixed(2).slice(1)+'"':i}function dt(r,e,n){let i=r+e;return typeof n<"u"&&(i+=" "+n),i}function vi(r,e,n){let i="",o=0,t=!1,s=0;for(let l=0;l<r.length;l++){const u=Math.floor(l%e),h=Math.floor(l/e);!u&&!t&&(t=!0),r[l]?(s++,l>0&&u>0&&r[l-1]||(i+=t?dt("M",u+n,.5+h+n):dt("m",o,0),o=0,t=!1),u+1<e&&r[l+1]||(i+=dt("h",s),s=0)):o++}return i}cn.render=function(e,n,i){const o=mi.getOptions(n),t=e.modules.size,s=e.modules.data,l=t+o.margin*2,u=o.color.light.a?"<path "+Nt(o.color.light,"fill")+' d="M0 0h'+l+"v"+l+'H0z"/>':"",h="<path "+Nt(o.color.dark,"stroke")+' d="'+vi(s,t,o.margin)+'"/>',d='viewBox="0 0 '+l+" "+l+'"',v='<svg xmlns="http://www.w3.org/2000/svg" '+(o.width?'width="'+o.width+'" height="'+o.width+'" ':"")+d+' shape-rendering="crispEdges">'+u+h+`</svg>
1075
+ `;return typeof i=="function"&&i(null,v),v};const yi=On,bt=Gt,un=ln,xi=cn;function Pt(r,e,n,i,o){const t=[].slice.call(arguments,1),s=t.length,l=typeof t[s-1]=="function";if(!l&&!yi())throw new Error("Callback required as last argument");if(l){if(s<2)throw new Error("Too few arguments provided");s===2?(o=n,n=e,e=i=void 0):s===3&&(e.getContext&&typeof o>"u"?(o=i,i=void 0):(o=i,i=n,n=e,e=void 0))}else{if(s<1)throw new Error("Too few arguments provided");return s===1?(n=e,e=i=void 0):s===2&&!e.getContext&&(i=n,n=e,e=void 0),new Promise(function(u,h){try{const d=bt.create(n,i);u(r(d,e,i))}catch(d){h(d)}})}try{const u=bt.create(n,i);o(null,r(u,e,i))}catch(u){o(u)}}_e.create=bt.create;_e.toCanvas=Pt.bind(null,un.render);_e.toDataURL=Pt.bind(null,un.renderToDataURL);_e.toString=Pt.bind(null,function(r,e,n){return xi.render(r,n)});const Ci=.1,Mt=2.5,F=7;function ht(r,e,n){return r===e?!1:(r-e<0?e-r:r-e)<=n+Ci}function $i(r,e){const n=Array.prototype.slice.call(_e.create(r,{errorCorrectionLevel:e}).modules.data,0),i=Math.sqrt(n.length);return n.reduce((o,t,s)=>(s%i===0?o.push([t]):o[o.length-1].push(t))&&o,[])}const Ri={generate({uri:r,size:e,logoSize:n,dotColor:i="#141414"}){const o="transparent",s=[],l=$i(r,"Q"),u=e/l.length,h=[{x:0,y:0},{x:1,y:0},{x:0,y:1}];h.forEach(({x:b,y:x})=>{const g=(l.length-F)*u*b,f=(l.length-F)*u*x,w=.45;for(let p=0;p<h.length;p+=1){const $=u*(F-p*2);s.push(a.w`
1076
+ <rect
1077
+ fill=${p===2?i:o}
1078
+ width=${p===0?$-5:$}
1079
+ rx= ${p===0?($-5)*w:$*w}
1080
+ ry= ${p===0?($-5)*w:$*w}
1081
+ stroke=${i}
1082
+ stroke-width=${p===0?5:0}
1083
+ height=${p===0?$-5:$}
1084
+ x= ${p===0?f+u*p+5/2:f+u*p}
1085
+ y= ${p===0?g+u*p+5/2:g+u*p}
1086
+ />
1087
+ `)}});const d=Math.floor((n+25)/u),C=l.length/2-d/2,v=l.length/2+d/2-1,m=[];l.forEach((b,x)=>{b.forEach((g,f)=>{if(l[x][f]&&!(x<F&&f<F||x>l.length-(F+1)&&f<F||x<F&&f>l.length-(F+1))&&!(x>C&&x<v&&f>C&&f<v)){const w=x*u+u/2,p=f*u+u/2;m.push([w,p])}})});const y={};return m.forEach(([b,x])=>{var g;y[b]?(g=y[b])==null||g.push(x):y[b]=[x]}),Object.entries(y).map(([b,x])=>{const g=x.filter(f=>x.every(w=>!ht(f,w,u)));return[Number(b),g]}).forEach(([b,x])=>{x.forEach(g=>{s.push(a.w`<circle cx=${b} cy=${g} fill=${i} r=${u/Mt} />`)})}),Object.entries(y).filter(([b,x])=>x.length>1).map(([b,x])=>{const g=x.filter(f=>x.some(w=>ht(f,w,u)));return[Number(b),g]}).map(([b,x])=>{x.sort((f,w)=>f<w?-1:1);const g=[];for(const f of x){const w=g.find(p=>p.some($=>ht(f,$,u)));w?w.push(f):g.push([f])}return[b,g.map(f=>[f[0],f[f.length-1]])]}).forEach(([b,x])=>{x.forEach(([g,f])=>{s.push(a.w`
1088
+ <line
1089
+ x1=${b}
1090
+ x2=${b}
1091
+ y1=${g}
1092
+ y2=${f}
1093
+ stroke=${i}
1094
+ stroke-width=${u/(Mt/2)}
1095
+ stroke-linecap="round"
1096
+ />
1097
+ `)})}),s}},Ei=a.i`
1098
+ :host {
1099
+ position: relative;
1100
+ user-select: none;
1101
+ display: block;
1102
+ overflow: hidden;
1103
+ aspect-ratio: 1 / 1;
1104
+ width: var(--local-size);
1105
+ }
1106
+
1107
+ :host([data-theme='dark']) {
1108
+ border-radius: clamp(0px, var(--wui-border-radius-l), 40px);
1109
+ background-color: var(--wui-color-inverse-100);
1110
+ padding: var(--wui-spacing-l);
1111
+ }
1112
+
1113
+ :host([data-theme='light']) {
1114
+ box-shadow: 0 0 0 1px var(--wui-color-bg-125);
1115
+ background-color: var(--wui-color-bg-125);
1116
+ }
1117
+
1118
+ :host([data-clear='true']) > wui-icon {
1119
+ display: none;
1120
+ }
1121
+
1122
+ svg:first-child,
1123
+ wui-image,
1124
+ wui-icon {
1125
+ position: absolute;
1126
+ top: 50%;
1127
+ left: 50%;
1128
+ transform: translateY(-50%) translateX(-50%);
1129
+ }
1130
+
1131
+ wui-image {
1132
+ width: 25%;
1133
+ height: 25%;
1134
+ border-radius: var(--wui-border-radius-xs);
1135
+ }
1136
+
1137
+ wui-icon {
1138
+ width: 100%;
1139
+ height: 100%;
1140
+ color: var(--local-icon-color) !important;
1141
+ transform: translateY(-50%) translateX(-50%) scale(0.25);
1142
+ }
1143
+ `;var G=function(r,e,n,i){var o=arguments.length,t=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,n):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")t=Reflect.decorate(r,e,n,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(t=(o<3?s(t):o>3?s(e,n,t):s(e,n))||t);return o>3&&t&&Object.defineProperty(e,n,t),t};const _i="#3396ff";let U=class extends a.i$1{constructor(){super(...arguments),this.uri="",this.size=0,this.theme="dark",this.imageSrc=void 0,this.alt=void 0,this.arenaClear=void 0,this.farcaster=void 0}render(){return this.dataset.theme=this.theme,this.dataset.clear=String(this.arenaClear),this.style.cssText=`
1144
+ --local-size: ${this.size}px;
1145
+ --local-icon-color: ${this.color??_i}
1146
+ `,a.b`${this.templateVisual()} ${this.templateSvg()}`}templateSvg(){const e=this.theme==="light"?this.size:this.size-32;return a.w`
1147
+ <svg height=${e} width=${e}>
1148
+ ${Ri.generate({uri:this.uri,size:e,logoSize:this.arenaClear?0:e/4,dotColor:this.color})}
1149
+ </svg>
1150
+ `}templateVisual(){return this.imageSrc?a.b`<wui-image src=${this.imageSrc} alt=${this.alt??"logo"}></wui-image>`:this.farcaster?a.b`<wui-icon
1151
+ class="farcaster"
1152
+ size="inherit"
1153
+ color="inherit"
1154
+ name="farcaster"
1155
+ ></wui-icon>`:a.b`<wui-icon size="inherit" color="inherit" name="walletConnect"></wui-icon>`}};U.styles=[a.resetStyles,Ei];G([c.n()],U.prototype,"uri",void 0);G([c.n({type:Number})],U.prototype,"size",void 0);G([c.n()],U.prototype,"theme",void 0);G([c.n()],U.prototype,"imageSrc",void 0);G([c.n()],U.prototype,"alt",void 0);G([c.n()],U.prototype,"color",void 0);G([c.n({type:Boolean})],U.prototype,"arenaClear",void 0);G([c.n({type:Boolean})],U.prototype,"farcaster",void 0);U=G([c.customElement("wui-qr-code")],U);const Wi=a.i`
1156
+ :host {
1157
+ display: block;
1158
+ box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-005);
1159
+ background: linear-gradient(
1160
+ 120deg,
1161
+ var(--wui-color-bg-200) 5%,
1162
+ var(--wui-color-bg-200) 48%,
1163
+ var(--wui-color-bg-300) 55%,
1164
+ var(--wui-color-bg-300) 60%,
1165
+ var(--wui-color-bg-300) calc(60% + 10px),
1166
+ var(--wui-color-bg-200) calc(60% + 12px),
1167
+ var(--wui-color-bg-200) 100%
1168
+ );
1169
+ background-size: 250%;
1170
+ animation: shimmer 3s linear infinite reverse;
1171
+ }
1172
+
1173
+ :host([variant='light']) {
1174
+ background: linear-gradient(
1175
+ 120deg,
1176
+ var(--wui-color-bg-150) 5%,
1177
+ var(--wui-color-bg-150) 48%,
1178
+ var(--wui-color-bg-200) 55%,
1179
+ var(--wui-color-bg-200) 60%,
1180
+ var(--wui-color-bg-200) calc(60% + 10px),
1181
+ var(--wui-color-bg-150) calc(60% + 12px),
1182
+ var(--wui-color-bg-150) 100%
1183
+ );
1184
+ background-size: 250%;
1185
+ }
1186
+
1187
+ @keyframes shimmer {
1188
+ from {
1189
+ background-position: -250% 0;
1190
+ }
1191
+ to {
1192
+ background-position: 250% 0;
1193
+ }
1194
+ }
1195
+ `;var Ie=function(r,e,n,i){var o=arguments.length,t=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,n):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")t=Reflect.decorate(r,e,n,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(t=(o<3?s(t):o>3?s(e,n,t):s(e,n))||t);return o>3&&t&&Object.defineProperty(e,n,t),t};let ie=class extends a.i$1{constructor(){super(...arguments),this.width="",this.height="",this.borderRadius="m",this.variant="default"}render(){return this.style.cssText=`
1196
+ width: ${this.width};
1197
+ height: ${this.height};
1198
+ border-radius: ${`clamp(0px,var(--wui-border-radius-${this.borderRadius}), 40px)`};
1199
+ `,a.b`<slot></slot>`}};ie.styles=[Wi];Ie([c.n()],ie.prototype,"width",void 0);Ie([c.n()],ie.prototype,"height",void 0);Ie([c.n()],ie.prototype,"borderRadius",void 0);Ie([c.n()],ie.prototype,"variant",void 0);ie=Ie([c.customElement("wui-shimmer")],ie);const Ii="https://reown.com",Si=a.i`
1200
+ .reown-logo {
1201
+ height: var(--wui-spacing-xxl);
1202
+ }
1203
+
1204
+ a {
1205
+ text-decoration: none;
1206
+ cursor: pointer;
1207
+ }
1208
+
1209
+ a:hover {
1210
+ opacity: 0.9;
1211
+ }
1212
+ `;var Ti=function(r,e,n,i){var o=arguments.length,t=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,n):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")t=Reflect.decorate(r,e,n,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(t=(o<3?s(t):o>3?s(e,n,t):s(e,n))||t);return o>3&&t&&Object.defineProperty(e,n,t),t};let mt=class extends a.i$1{render(){return a.b`
1213
+ <a
1214
+ data-testid="ux-branding-reown"
1215
+ href=${Ii}
1216
+ rel="noreferrer"
1217
+ target="_blank"
1218
+ style="text-decoration: none;"
1219
+ >
1220
+ <wui-flex
1221
+ justifyContent="center"
1222
+ alignItems="center"
1223
+ gap="xs"
1224
+ .padding=${["0","0","l","0"]}
1225
+ >
1226
+ <wui-text variant="small-500" color="fg-100"> UX by </wui-text>
1227
+ <wui-icon name="reown" size="xxxl" class="reown-logo"></wui-icon>
1228
+ </wui-flex>
1229
+ </a>
1230
+ `}};mt.styles=[a.resetStyles,a.elementStyles,Si];mt=Ti([c.customElement("wui-ux-by-reown")],mt);const Ai=a.i`
1231
+ @keyframes fadein {
1232
+ from {
1233
+ opacity: 0;
1234
+ }
1235
+ to {
1236
+ opacity: 1;
1237
+ }
1238
+ }
1239
+
1240
+ wui-shimmer {
1241
+ width: 100%;
1242
+ aspect-ratio: 1 / 1;
1243
+ border-radius: clamp(0px, var(--wui-border-radius-l), 40px) !important;
1244
+ }
1245
+
1246
+ wui-qr-code {
1247
+ opacity: 0;
1248
+ animation-duration: 200ms;
1249
+ animation-timing-function: ease;
1250
+ animation-name: fadein;
1251
+ animation-fill-mode: forwards;
1252
+ }
1253
+ `;var Pi=function(r,e,n,i){var o=arguments.length,t=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,n):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")t=Reflect.decorate(r,e,n,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(t=(o<3?s(t):o>3?s(e,n,t):s(e,n))||t);return o>3&&t&&Object.defineProperty(e,n,t),t};let vt=class extends W{constructor(){var e;super(),this.forceUpdate=()=>{this.requestUpdate()},window.addEventListener("resize",this.forceUpdate),a.EventsController.sendEvent({type:"track",event:"SELECT_WALLET",properties:{name:((e=this.wallet)==null?void 0:e.name)??"WalletConnect",platform:"qrcode"}})}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this.unsubscribe)==null||e.forEach(n=>n()),window.removeEventListener("resize",this.forceUpdate)}render(){return this.onRenderProxy(),a.b`
1254
+ <wui-flex
1255
+ flexDirection="column"
1256
+ alignItems="center"
1257
+ .padding=${["0","xl","xl","xl"]}
1258
+ gap="xl"
1259
+ >
1260
+ <wui-shimmer borderRadius="l" width="100%"> ${this.qrCodeTemplate()} </wui-shimmer>
1261
+
1262
+ <wui-text variant="paragraph-500" color="fg-100">
1263
+ Scan this QR Code with your phone
1264
+ </wui-text>
1265
+ ${this.copyTemplate()}
1266
+ </wui-flex>
1267
+ <w3m-mobile-download-links .wallet=${this.wallet}></w3m-mobile-download-links>
1268
+ `}onRenderProxy(){!this.ready&&this.uri&&(this.timeout=setTimeout(()=>{this.ready=!0},200))}qrCodeTemplate(){if(!this.uri||!this.ready)return null;const e=this.getBoundingClientRect().width-40,n=this.wallet?this.wallet.name:void 0;return a.ConnectionController.setWcLinking(void 0),a.ConnectionController.setRecentWallet(this.wallet),a.b` <wui-qr-code
1269
+ size=${e}
1270
+ theme=${a.ThemeController.state.themeMode}
1271
+ uri=${this.uri}
1272
+ imageSrc=${c.o(a.AssetUtil.getWalletImage(this.wallet))}
1273
+ color=${c.o(a.ThemeController.state.themeVariables["--w3m-qr-color"])}
1274
+ alt=${c.o(n)}
1275
+ data-testid="wui-qr-code"
1276
+ ></wui-qr-code>`}copyTemplate(){const e=!this.uri||!this.ready;return a.b`<wui-link
1277
+ .disabled=${e}
1278
+ @click=${this.onCopyUri}
1279
+ color="fg-200"
1280
+ data-testid="copy-wc2-uri"
1281
+ >
1282
+ <wui-icon size="xs" color="fg-200" slot="iconLeft" name="copy"></wui-icon>
1283
+ Copy link
1284
+ </wui-link>`}};vt.styles=Ai;vt=Pi([c.customElement("w3m-connecting-wc-qrcode")],vt);var Oi=function(r,e,n,i){var o=arguments.length,t=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,n):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")t=Reflect.decorate(r,e,n,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(t=(o<3?s(t):o>3?s(e,n,t):s(e,n))||t);return o>3&&t&&Object.defineProperty(e,n,t),t};let Ht=class extends a.i$1{constructor(){var e;if(super(),this.wallet=(e=a.RouterController.state.data)==null?void 0:e.wallet,!this.wallet)throw new Error("w3m-connecting-wc-unsupported: No wallet provided");a.EventsController.sendEvent({type:"track",event:"SELECT_WALLET",properties:{name:this.wallet.name,platform:"browser"}})}render(){return a.b`
1285
+ <wui-flex
1286
+ flexDirection="column"
1287
+ alignItems="center"
1288
+ .padding=${["3xl","xl","xl","xl"]}
1289
+ gap="xl"
1290
+ >
1291
+ <wui-wallet-image
1292
+ size="lg"
1293
+ imageSrc=${c.o(a.AssetUtil.getWalletImage(this.wallet))}
1294
+ ></wui-wallet-image>
1295
+
1296
+ <wui-text variant="paragraph-500" color="fg-100">Not Detected</wui-text>
1297
+ </wui-flex>
1298
+
1299
+ <w3m-mobile-download-links .wallet=${this.wallet}></w3m-mobile-download-links>
1300
+ `}};Ht=Oi([c.customElement("w3m-connecting-wc-unsupported")],Ht);var dn=function(r,e,n,i){var o=arguments.length,t=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,n):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")t=Reflect.decorate(r,e,n,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(t=(o<3?s(t):o>3?s(e,n,t):s(e,n))||t);return o>3&&t&&Object.defineProperty(e,n,t),t};let yt=class extends W{constructor(){if(super(),this.isLoading=!0,!this.wallet)throw new Error("w3m-connecting-wc-web: No wallet provided");this.onConnect=this.onConnectProxy.bind(this),this.secondaryBtnLabel="Open",this.secondaryLabel=a.ConstantsUtil$2.CONNECT_LABELS.MOBILE,this.secondaryBtnIcon="externalLink",this.updateLoadingState(),this.unsubscribe.push(a.ConnectionController.subscribeKey("wcUri",()=>{this.updateLoadingState()})),a.EventsController.sendEvent({type:"track",event:"SELECT_WALLET",properties:{name:this.wallet.name,platform:"web"}})}updateLoadingState(){this.isLoading=!this.uri}onConnectProxy(){var e;if((e=this.wallet)!=null&&e.webapp_link&&this.uri)try{this.error=!1;const{webapp_link:n,name:i}=this.wallet,{redirect:o,href:t}=a.CoreHelperUtil.formatUniversalUrl(n,this.uri);a.ConnectionController.setWcLinking({name:i,href:t}),a.ConnectionController.setRecentWallet(this.wallet),a.CoreHelperUtil.openHref(o,"_blank")}catch{this.error=!0}}};dn([c.r()],yt.prototype,"isLoading",void 0);yt=dn([c.customElement("w3m-connecting-wc-web")],yt);var Se=function(r,e,n,i){var o=arguments.length,t=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,n):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")t=Reflect.decorate(r,e,n,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(t=(o<3?s(t):o>3?s(e,n,t):s(e,n))||t);return o>3&&t&&Object.defineProperty(e,n,t),t};let pe=class extends a.i$1{constructor(){var e;super(),this.wallet=(e=a.RouterController.state.data)==null?void 0:e.wallet,this.unsubscribe=[],this.platform=void 0,this.platforms=[],this.isSiwxEnabled=!!a.OptionsController.state.siwx,this.remoteFeatures=a.OptionsController.state.remoteFeatures,this.determinePlatforms(),this.initializeConnection(),this.unsubscribe.push(a.OptionsController.subscribeKey("remoteFeatures",n=>this.remoteFeatures=n))}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){return a.b`
1301
+ ${this.headerTemplate()}
1302
+ <div>${this.platformTemplate()}</div>
1303
+ ${this.reownBrandingTemplate()}
1304
+ `}reownBrandingTemplate(){var e;return(e=this.remoteFeatures)!=null&&e.reownBranding?a.b`<wui-ux-by-reown></wui-ux-by-reown>`:null}async initializeConnection(e=!1){if(!(this.platform==="browser"||a.OptionsController.state.manualWCControl&&!e))try{const{wcPairingExpiry:n,status:i}=a.ConnectionController.state;(e||a.OptionsController.state.enableEmbedded||a.CoreHelperUtil.isPairingExpired(n)||i==="connecting")&&(await a.ConnectionController.connectWalletConnect(),this.isSiwxEnabled||a.ModalController.close())}catch(n){a.EventsController.sendEvent({type:"track",event:"CONNECT_ERROR",properties:{message:(n==null?void 0:n.message)??"Unknown"}}),a.ConnectionController.setWcError(!0),a.SnackController.showError(n.message??"Connection error"),a.ConnectionController.resetWcConnection(),a.RouterController.goBack()}}determinePlatforms(){if(!this.wallet){this.platforms.push("qrcode"),this.platform="qrcode";return}if(this.platform)return;const{mobile_link:e,desktop_link:n,webapp_link:i,injected:o,rdns:t}=this.wallet,s=o==null?void 0:o.map(({injected_id:y})=>y).filter(Boolean),l=[...t?[t]:s??[]],u=a.OptionsController.state.isUniversalProvider?!1:l.length,h=e,d=i,C=a.ConnectionController.checkInstalled(l),v=u&&C,m=n&&!a.CoreHelperUtil.isMobile();v&&!a.ChainController.state.noAdapters&&this.platforms.push("browser"),h&&this.platforms.push(a.CoreHelperUtil.isMobile()?"mobile":"qrcode"),d&&this.platforms.push("web"),m&&this.platforms.push("desktop"),!v&&u&&!a.ChainController.state.noAdapters&&this.platforms.push("unsupported"),this.platform=this.platforms[0]}platformTemplate(){switch(this.platform){case"browser":return a.b`<w3m-connecting-wc-browser></w3m-connecting-wc-browser>`;case"web":return a.b`<w3m-connecting-wc-web></w3m-connecting-wc-web>`;case"desktop":return a.b`
1305
+ <w3m-connecting-wc-desktop .onRetry=${()=>this.initializeConnection(!0)}>
1306
+ </w3m-connecting-wc-desktop>
1307
+ `;case"mobile":return a.b`
1308
+ <w3m-connecting-wc-mobile isMobile .onRetry=${()=>this.initializeConnection(!0)}>
1309
+ </w3m-connecting-wc-mobile>
1310
+ `;case"qrcode":return a.b`<w3m-connecting-wc-qrcode></w3m-connecting-wc-qrcode>`;default:return a.b`<w3m-connecting-wc-unsupported></w3m-connecting-wc-unsupported>`}}headerTemplate(){return this.platforms.length>1?a.b`
1311
+ <w3m-connecting-header
1312
+ .platforms=${this.platforms}
1313
+ .onSelectPlatfrom=${this.onSelectPlatform.bind(this)}
1314
+ >
1315
+ </w3m-connecting-header>
1316
+ `:null}async onSelectPlatform(e){var i;const n=(i=this.shadowRoot)==null?void 0:i.querySelector("div");n&&(await n.animate([{opacity:1},{opacity:0}],{duration:200,fill:"forwards",easing:"ease"}).finished,this.platform=e,n.animate([{opacity:0},{opacity:1}],{duration:200,fill:"forwards",easing:"ease"}))}};Se([c.r()],pe.prototype,"platform",void 0);Se([c.r()],pe.prototype,"platforms",void 0);Se([c.r()],pe.prototype,"isSiwxEnabled",void 0);Se([c.r()],pe.prototype,"remoteFeatures",void 0);pe=Se([c.customElement("w3m-connecting-wc-view")],pe);var hn=function(r,e,n,i){var o=arguments.length,t=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,n):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")t=Reflect.decorate(r,e,n,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(t=(o<3?s(t):o>3?s(e,n,t):s(e,n))||t);return o>3&&t&&Object.defineProperty(e,n,t),t};exports.W3mConnectingWcBasicView=class extends a.i$1{constructor(){super(...arguments),this.isMobile=a.CoreHelperUtil.isMobile()}render(){if(this.isMobile){const{featured:e,recommended:n}=a.ApiController.state,{customWallets:i}=a.OptionsController.state,o=a.StorageUtil.getRecentWallets(),t=e.length||n.length||(i==null?void 0:i.length)||o.length;return a.b`<wui-flex
1317
+ flexDirection="column"
1318
+ gap="xs"
1319
+ .margin=${["3xs","s","s","s"]}
1320
+ >
1321
+ ${t?a.b`<w3m-connector-list></w3m-connector-list>`:null}
1322
+ <w3m-all-wallets-widget></w3m-all-wallets-widget>
1323
+ </wui-flex>`}return a.b`<wui-flex flexDirection="column" .padding=${["0","0","l","0"]}>
1324
+ <w3m-connecting-wc-view></w3m-connecting-wc-view>
1325
+ <wui-flex flexDirection="column" .padding=${["0","m","0","m"]}>
1326
+ <w3m-all-wallets-widget></w3m-all-wallets-widget> </wui-flex
1327
+ ></wui-flex>`}};hn([c.r()],exports.W3mConnectingWcBasicView.prototype,"isMobile",void 0);exports.W3mConnectingWcBasicView=hn([c.customElement("w3m-connecting-wc-basic-view")],exports.W3mConnectingWcBasicView);/**
1328
+ * @license
1329
+ * Copyright 2020 Google LLC
1330
+ * SPDX-License-Identifier: BSD-3-Clause
1331
+ */const Ot=()=>new Li;class Li{}const pt=new WeakMap,Lt=c.e(class extends c.f{render(r){return a.A}update(r,[e]){var i;const n=e!==this.G;return n&&this.G!==void 0&&this.rt(void 0),(n||this.lt!==this.ct)&&(this.G=e,this.ht=(i=r.options)==null?void 0:i.host,this.rt(this.ct=r.element)),a.A}rt(r){if(this.isConnected||(r=void 0),typeof this.G=="function"){const e=this.ht??globalThis;let n=pt.get(e);n===void 0&&(n=new WeakMap,pt.set(e,n)),n.get(this.G)!==void 0&&this.G.call(this.ht,void 0),n.set(this.G,r),r!==void 0&&this.G.call(this.ht,r)}else this.G.value=r}get lt(){var r,e;return typeof this.G=="function"?(r=pt.get(this.ht??globalThis))==null?void 0:r.get(this.G):(e=this.G)==null?void 0:e.value}disconnected(){this.lt===this.ct&&this.rt(void 0)}reconnected(){this.rt(this.ct)}}),Bi=a.i`
1332
+ :host {
1333
+ display: flex;
1334
+ align-items: center;
1335
+ justify-content: center;
1336
+ }
1337
+
1338
+ label {
1339
+ position: relative;
1340
+ display: inline-block;
1341
+ width: 32px;
1342
+ height: 22px;
1343
+ }
1344
+
1345
+ input {
1346
+ width: 0;
1347
+ height: 0;
1348
+ opacity: 0;
1349
+ }
1350
+
1351
+ span {
1352
+ position: absolute;
1353
+ cursor: pointer;
1354
+ top: 0;
1355
+ left: 0;
1356
+ right: 0;
1357
+ bottom: 0;
1358
+ background-color: var(--wui-color-blue-100);
1359
+ border-width: 1px;
1360
+ border-style: solid;
1361
+ border-color: var(--wui-color-gray-glass-002);
1362
+ border-radius: 999px;
1363
+ transition:
1364
+ background-color var(--wui-ease-inout-power-1) var(--wui-duration-md),
1365
+ border-color var(--wui-ease-inout-power-1) var(--wui-duration-md);
1366
+ will-change: background-color, border-color;
1367
+ }
1368
+
1369
+ span:before {
1370
+ position: absolute;
1371
+ content: '';
1372
+ height: 16px;
1373
+ width: 16px;
1374
+ left: 3px;
1375
+ top: 2px;
1376
+ background-color: var(--wui-color-inverse-100);
1377
+ transition: transform var(--wui-ease-inout-power-1) var(--wui-duration-lg);
1378
+ will-change: transform;
1379
+ border-radius: 50%;
1380
+ }
1381
+
1382
+ input:checked + span {
1383
+ border-color: var(--wui-color-gray-glass-005);
1384
+ background-color: var(--wui-color-blue-100);
1385
+ }
1386
+
1387
+ input:not(:checked) + span {
1388
+ background-color: var(--wui-color-gray-glass-010);
1389
+ }
1390
+
1391
+ input:checked + span:before {
1392
+ transform: translateX(calc(100% - 7px));
1393
+ }
1394
+ `;var pn=function(r,e,n,i){var o=arguments.length,t=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,n):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")t=Reflect.decorate(r,e,n,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(t=(o<3?s(t):o>3?s(e,n,t):s(e,n))||t);return o>3&&t&&Object.defineProperty(e,n,t),t};let Ve=class extends a.i$1{constructor(){super(...arguments),this.inputElementRef=Ot(),this.checked=void 0}render(){return a.b`
1395
+ <label>
1396
+ <input
1397
+ ${Lt(this.inputElementRef)}
1398
+ type="checkbox"
1399
+ ?checked=${c.o(this.checked)}
1400
+ @change=${this.dispatchChangeEvent.bind(this)}
1401
+ />
1402
+ <span></span>
1403
+ </label>
1404
+ `}dispatchChangeEvent(){var e;this.dispatchEvent(new CustomEvent("switchChange",{detail:(e=this.inputElementRef.value)==null?void 0:e.checked,bubbles:!0,composed:!0}))}};Ve.styles=[a.resetStyles,a.elementStyles,a.colorStyles,Bi];pn([c.n({type:Boolean})],Ve.prototype,"checked",void 0);Ve=pn([c.customElement("wui-switch")],Ve);const Ui=a.i`
1405
+ :host {
1406
+ height: 100%;
1407
+ }
1408
+
1409
+ button {
1410
+ display: flex;
1411
+ align-items: center;
1412
+ justify-content: center;
1413
+ column-gap: var(--wui-spacing-1xs);
1414
+ padding: var(--wui-spacing-xs) var(--wui-spacing-s);
1415
+ background-color: var(--wui-color-gray-glass-002);
1416
+ border-radius: var(--wui-border-radius-xs);
1417
+ box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-002);
1418
+ transition: background-color var(--wui-ease-out-power-1) var(--wui-duration-md);
1419
+ will-change: background-color;
1420
+ cursor: pointer;
1421
+ }
1422
+
1423
+ wui-switch {
1424
+ pointer-events: none;
1425
+ }
1426
+ `;var fn=function(r,e,n,i){var o=arguments.length,t=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,n):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")t=Reflect.decorate(r,e,n,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(t=(o<3?s(t):o>3?s(e,n,t):s(e,n))||t);return o>3&&t&&Object.defineProperty(e,n,t),t};let Fe=class extends a.i$1{constructor(){super(...arguments),this.checked=void 0}render(){return a.b`
1427
+ <button>
1428
+ <wui-icon size="xl" name="walletConnectBrown"></wui-icon>
1429
+ <wui-switch ?checked=${c.o(this.checked)}></wui-switch>
1430
+ </button>
1431
+ `}};Fe.styles=[a.resetStyles,a.elementStyles,Ui];fn([c.n({type:Boolean})],Fe.prototype,"checked",void 0);Fe=fn([c.customElement("wui-certified-switch")],Fe);const ki=a.i`
1432
+ button {
1433
+ background-color: var(--wui-color-fg-300);
1434
+ border-radius: var(--wui-border-radius-4xs);
1435
+ width: 16px;
1436
+ height: 16px;
1437
+ }
1438
+
1439
+ button:disabled {
1440
+ background-color: var(--wui-color-bg-300);
1441
+ }
1442
+
1443
+ wui-icon {
1444
+ color: var(--wui-color-bg-200) !important;
1445
+ }
1446
+
1447
+ button:focus-visible {
1448
+ background-color: var(--wui-color-fg-250);
1449
+ border: 1px solid var(--wui-color-accent-100);
1450
+ }
1451
+
1452
+ @media (hover: hover) and (pointer: fine) {
1453
+ button:hover:enabled {
1454
+ background-color: var(--wui-color-fg-250);
1455
+ }
1456
+
1457
+ button:active:enabled {
1458
+ background-color: var(--wui-color-fg-225);
1459
+ }
1460
+ }
1461
+ `;var gn=function(r,e,n,i){var o=arguments.length,t=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,n):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")t=Reflect.decorate(r,e,n,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(t=(o<3?s(t):o>3?s(e,n,t):s(e,n))||t);return o>3&&t&&Object.defineProperty(e,n,t),t};let qe=class extends a.i$1{constructor(){super(...arguments),this.icon="copy"}render(){return a.b`
1462
+ <button>
1463
+ <wui-icon color="inherit" size="xxs" name=${this.icon}></wui-icon>
1464
+ </button>
1465
+ `}};qe.styles=[a.resetStyles,a.elementStyles,ki];gn([c.n()],qe.prototype,"icon",void 0);qe=gn([c.customElement("wui-input-element")],qe);const ji=a.i`
1466
+ :host {
1467
+ position: relative;
1468
+ width: 100%;
1469
+ display: inline-block;
1470
+ color: var(--wui-color-fg-275);
1471
+ }
1472
+
1473
+ input {
1474
+ width: 100%;
1475
+ border-radius: var(--wui-border-radius-xs);
1476
+ box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-002);
1477
+ background: var(--wui-color-gray-glass-002);
1478
+ font-size: var(--wui-font-size-paragraph);
1479
+ letter-spacing: var(--wui-letter-spacing-paragraph);
1480
+ color: var(--wui-color-fg-100);
1481
+ transition:
1482
+ background-color var(--wui-ease-inout-power-1) var(--wui-duration-md),
1483
+ border-color var(--wui-ease-inout-power-1) var(--wui-duration-md),
1484
+ box-shadow var(--wui-ease-inout-power-1) var(--wui-duration-md);
1485
+ will-change: background-color, border-color, box-shadow;
1486
+ caret-color: var(--wui-color-accent-100);
1487
+ }
1488
+
1489
+ input:disabled {
1490
+ cursor: not-allowed;
1491
+ border: 1px solid var(--wui-color-gray-glass-010);
1492
+ }
1493
+
1494
+ input:disabled::placeholder,
1495
+ input:disabled + wui-icon {
1496
+ color: var(--wui-color-fg-300);
1497
+ }
1498
+
1499
+ input::placeholder {
1500
+ color: var(--wui-color-fg-275);
1501
+ }
1502
+
1503
+ input:focus:enabled {
1504
+ background-color: var(--wui-color-gray-glass-005);
1505
+ -webkit-box-shadow:
1506
+ inset 0 0 0 1px var(--wui-color-accent-100),
1507
+ 0px 0px 0px 4px var(--wui-box-shadow-blue);
1508
+ -moz-box-shadow:
1509
+ inset 0 0 0 1px var(--wui-color-accent-100),
1510
+ 0px 0px 0px 4px var(--wui-box-shadow-blue);
1511
+ box-shadow:
1512
+ inset 0 0 0 1px var(--wui-color-accent-100),
1513
+ 0px 0px 0px 4px var(--wui-box-shadow-blue);
1514
+ }
1515
+
1516
+ input:hover:enabled {
1517
+ background-color: var(--wui-color-gray-glass-005);
1518
+ }
1519
+
1520
+ wui-icon {
1521
+ position: absolute;
1522
+ top: 50%;
1523
+ transform: translateY(-50%);
1524
+ pointer-events: none;
1525
+ }
1526
+
1527
+ .wui-size-sm {
1528
+ padding: 9px var(--wui-spacing-m) 10px var(--wui-spacing-s);
1529
+ }
1530
+
1531
+ wui-icon + .wui-size-sm {
1532
+ padding: 9px var(--wui-spacing-m) 10px 36px;
1533
+ }
1534
+
1535
+ wui-icon[data-input='sm'] {
1536
+ left: var(--wui-spacing-s);
1537
+ }
1538
+
1539
+ .wui-size-md {
1540
+ padding: 15px var(--wui-spacing-m) var(--wui-spacing-l) var(--wui-spacing-m);
1541
+ }
1542
+
1543
+ wui-icon + .wui-size-md,
1544
+ wui-loading-spinner + .wui-size-md {
1545
+ padding: 10.5px var(--wui-spacing-3xl) 10.5px var(--wui-spacing-3xl);
1546
+ }
1547
+
1548
+ wui-icon[data-input='md'] {
1549
+ left: var(--wui-spacing-l);
1550
+ }
1551
+
1552
+ .wui-size-lg {
1553
+ padding: var(--wui-spacing-s) var(--wui-spacing-s) var(--wui-spacing-s) var(--wui-spacing-l);
1554
+ letter-spacing: var(--wui-letter-spacing-medium-title);
1555
+ font-size: var(--wui-font-size-medium-title);
1556
+ font-weight: var(--wui-font-weight-light);
1557
+ line-height: 130%;
1558
+ color: var(--wui-color-fg-100);
1559
+ height: 64px;
1560
+ }
1561
+
1562
+ .wui-padding-right-xs {
1563
+ padding-right: var(--wui-spacing-xs);
1564
+ }
1565
+
1566
+ .wui-padding-right-s {
1567
+ padding-right: var(--wui-spacing-s);
1568
+ }
1569
+
1570
+ .wui-padding-right-m {
1571
+ padding-right: var(--wui-spacing-m);
1572
+ }
1573
+
1574
+ .wui-padding-right-l {
1575
+ padding-right: var(--wui-spacing-l);
1576
+ }
1577
+
1578
+ .wui-padding-right-xl {
1579
+ padding-right: var(--wui-spacing-xl);
1580
+ }
1581
+
1582
+ .wui-padding-right-2xl {
1583
+ padding-right: var(--wui-spacing-2xl);
1584
+ }
1585
+
1586
+ .wui-padding-right-3xl {
1587
+ padding-right: var(--wui-spacing-3xl);
1588
+ }
1589
+
1590
+ .wui-padding-right-4xl {
1591
+ padding-right: var(--wui-spacing-4xl);
1592
+ }
1593
+
1594
+ .wui-padding-right-5xl {
1595
+ padding-right: var(--wui-spacing-5xl);
1596
+ }
1597
+
1598
+ wui-icon + .wui-size-lg,
1599
+ wui-loading-spinner + .wui-size-lg {
1600
+ padding-left: 50px;
1601
+ }
1602
+
1603
+ wui-icon[data-input='lg'] {
1604
+ left: var(--wui-spacing-l);
1605
+ }
1606
+
1607
+ .wui-size-mdl {
1608
+ padding: 17.25px var(--wui-spacing-m) 17.25px var(--wui-spacing-m);
1609
+ }
1610
+ wui-icon + .wui-size-mdl,
1611
+ wui-loading-spinner + .wui-size-mdl {
1612
+ padding: 17.25px var(--wui-spacing-3xl) 17.25px 40px;
1613
+ }
1614
+ wui-icon[data-input='mdl'] {
1615
+ left: var(--wui-spacing-m);
1616
+ }
1617
+
1618
+ input:placeholder-shown ~ ::slotted(wui-input-element),
1619
+ input:placeholder-shown ~ ::slotted(wui-icon) {
1620
+ opacity: 0;
1621
+ pointer-events: none;
1622
+ }
1623
+
1624
+ input::-webkit-outer-spin-button,
1625
+ input::-webkit-inner-spin-button {
1626
+ -webkit-appearance: none;
1627
+ margin: 0;
1628
+ }
1629
+
1630
+ input[type='number'] {
1631
+ -moz-appearance: textfield;
1632
+ }
1633
+
1634
+ ::slotted(wui-input-element),
1635
+ ::slotted(wui-icon) {
1636
+ position: absolute;
1637
+ top: 50%;
1638
+ transform: translateY(-50%);
1639
+ }
1640
+
1641
+ ::slotted(wui-input-element) {
1642
+ right: var(--wui-spacing-m);
1643
+ }
1644
+
1645
+ ::slotted(wui-icon) {
1646
+ right: 0px;
1647
+ }
1648
+ `;var H=function(r,e,n,i){var o=arguments.length,t=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,n):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")t=Reflect.decorate(r,e,n,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(t=(o<3?s(t):o>3?s(e,n,t):s(e,n))||t);return o>3&&t&&Object.defineProperty(e,n,t),t};let O=class extends a.i$1{constructor(){super(...arguments),this.inputElementRef=Ot(),this.size="md",this.disabled=!1,this.placeholder="",this.type="text",this.value=""}render(){const e=`wui-padding-right-${this.inputRightPadding}`,i={[`wui-size-${this.size}`]:!0,[e]:!!this.inputRightPadding};return a.b`${this.templateIcon()}
1649
+ <input
1650
+ data-testid="wui-input-text"
1651
+ ${Lt(this.inputElementRef)}
1652
+ class=${c.e$1(i)}
1653
+ type=${this.type}
1654
+ enterkeyhint=${c.o(this.enterKeyHint)}
1655
+ ?disabled=${this.disabled}
1656
+ placeholder=${this.placeholder}
1657
+ @input=${this.dispatchInputChangeEvent.bind(this)}
1658
+ .value=${this.value||""}
1659
+ tabindex=${c.o(this.tabIdx)}
1660
+ />
1661
+ <slot></slot>`}templateIcon(){return this.icon?a.b`<wui-icon
1662
+ data-input=${this.size}
1663
+ size=${this.size}
1664
+ color="inherit"
1665
+ name=${this.icon}
1666
+ ></wui-icon>`:null}dispatchInputChangeEvent(){var e;this.dispatchEvent(new CustomEvent("inputChange",{detail:(e=this.inputElementRef.value)==null?void 0:e.value,bubbles:!0,composed:!0}))}};O.styles=[a.resetStyles,a.elementStyles,ji];H([c.n()],O.prototype,"size",void 0);H([c.n()],O.prototype,"icon",void 0);H([c.n({type:Boolean})],O.prototype,"disabled",void 0);H([c.n()],O.prototype,"placeholder",void 0);H([c.n()],O.prototype,"type",void 0);H([c.n()],O.prototype,"keyHint",void 0);H([c.n()],O.prototype,"value",void 0);H([c.n()],O.prototype,"inputRightPadding",void 0);H([c.n()],O.prototype,"tabIdx",void 0);O=H([c.customElement("wui-input-text")],O);const zi=a.i`
1667
+ :host {
1668
+ position: relative;
1669
+ display: inline-block;
1670
+ width: 100%;
1671
+ }
1672
+ `;var Di=function(r,e,n,i){var o=arguments.length,t=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,n):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")t=Reflect.decorate(r,e,n,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(t=(o<3?s(t):o>3?s(e,n,t):s(e,n))||t);return o>3&&t&&Object.defineProperty(e,n,t),t};let xt=class extends a.i$1{constructor(){super(...arguments),this.inputComponentRef=Ot()}render(){return a.b`
1673
+ <wui-input-text
1674
+ ${Lt(this.inputComponentRef)}
1675
+ placeholder="Search wallet"
1676
+ icon="search"
1677
+ type="search"
1678
+ enterKeyHint="search"
1679
+ size="sm"
1680
+ >
1681
+ <wui-input-element @click=${this.clearValue} icon="close"></wui-input-element>
1682
+ </wui-input-text>
1683
+ `}clearValue(){const e=this.inputComponentRef.value,n=e==null?void 0:e.inputElementRef.value;n&&(n.value="",n.focus(),n.dispatchEvent(new Event("input")))}};xt.styles=[a.resetStyles,zi];xt=Di([c.customElement("wui-search-bar")],xt);const Ni=a.w`<svg viewBox="0 0 48 54" fill="none">
1684
+ <path
1685
+ d="M43.4605 10.7248L28.0485 1.61089C25.5438 0.129705 22.4562 0.129705 19.9515 1.61088L4.53951 10.7248C2.03626 12.2051 0.5 14.9365 0.5 17.886V36.1139C0.5 39.0635 2.03626 41.7949 4.53951 43.2752L19.9515 52.3891C22.4562 53.8703 25.5438 53.8703 28.0485 52.3891L43.4605 43.2752C45.9637 41.7949 47.5 39.0635 47.5 36.114V17.8861C47.5 14.9365 45.9637 12.2051 43.4605 10.7248Z"
1686
+ />
1687
+ </svg>`,Mi=a.i`
1688
+ :host {
1689
+ display: flex;
1690
+ flex-direction: column;
1691
+ align-items: center;
1692
+ width: 104px;
1693
+ row-gap: var(--wui-spacing-xs);
1694
+ padding: var(--wui-spacing-xs) 10px;
1695
+ background-color: var(--wui-color-gray-glass-002);
1696
+ border-radius: clamp(0px, var(--wui-border-radius-xs), 20px);
1697
+ position: relative;
1698
+ }
1699
+
1700
+ wui-shimmer[data-type='network'] {
1701
+ border: none;
1702
+ -webkit-clip-path: var(--wui-path-network);
1703
+ clip-path: var(--wui-path-network);
1704
+ }
1705
+
1706
+ svg {
1707
+ position: absolute;
1708
+ width: 48px;
1709
+ height: 54px;
1710
+ z-index: 1;
1711
+ }
1712
+
1713
+ svg > path {
1714
+ stroke: var(--wui-color-gray-glass-010);
1715
+ stroke-width: 1px;
1716
+ }
1717
+
1718
+ @media (max-width: 350px) {
1719
+ :host {
1720
+ width: 100%;
1721
+ }
1722
+ }
1723
+ `;var wn=function(r,e,n,i){var o=arguments.length,t=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,n):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")t=Reflect.decorate(r,e,n,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(t=(o<3?s(t):o>3?s(e,n,t):s(e,n))||t);return o>3&&t&&Object.defineProperty(e,n,t),t};let Ke=class extends a.i$1{constructor(){super(...arguments),this.type="wallet"}render(){return a.b`
1724
+ ${this.shimmerTemplate()}
1725
+ <wui-shimmer width="56px" height="20px" borderRadius="xs"></wui-shimmer>
1726
+ `}shimmerTemplate(){return this.type==="network"?a.b` <wui-shimmer
1727
+ data-type=${this.type}
1728
+ width="48px"
1729
+ height="54px"
1730
+ borderRadius="xs"
1731
+ ></wui-shimmer>
1732
+ ${Ni}`:a.b`<wui-shimmer width="56px" height="56px" borderRadius="xs"></wui-shimmer>`}};Ke.styles=[a.resetStyles,a.elementStyles,Mi];wn([c.n()],Ke.prototype,"type",void 0);Ke=wn([c.customElement("wui-card-select-loader")],Ke);const Hi=a.i`
1733
+ :host {
1734
+ display: grid;
1735
+ width: inherit;
1736
+ height: inherit;
1737
+ }
1738
+ `;var L=function(r,e,n,i){var o=arguments.length,t=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,n):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")t=Reflect.decorate(r,e,n,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(t=(o<3?s(t):o>3?s(e,n,t):s(e,n))||t);return o>3&&t&&Object.defineProperty(e,n,t),t};let I=class extends a.i$1{render(){return this.style.cssText=`
1739
+ grid-template-rows: ${this.gridTemplateRows};
1740
+ grid-template-columns: ${this.gridTemplateColumns};
1741
+ justify-items: ${this.justifyItems};
1742
+ align-items: ${this.alignItems};
1743
+ justify-content: ${this.justifyContent};
1744
+ align-content: ${this.alignContent};
1745
+ column-gap: ${this.columnGap&&`var(--wui-spacing-${this.columnGap})`};
1746
+ row-gap: ${this.rowGap&&`var(--wui-spacing-${this.rowGap})`};
1747
+ gap: ${this.gap&&`var(--wui-spacing-${this.gap})`};
1748
+ padding-top: ${this.padding&&c.UiHelperUtil.getSpacingStyles(this.padding,0)};
1749
+ padding-right: ${this.padding&&c.UiHelperUtil.getSpacingStyles(this.padding,1)};
1750
+ padding-bottom: ${this.padding&&c.UiHelperUtil.getSpacingStyles(this.padding,2)};
1751
+ padding-left: ${this.padding&&c.UiHelperUtil.getSpacingStyles(this.padding,3)};
1752
+ margin-top: ${this.margin&&c.UiHelperUtil.getSpacingStyles(this.margin,0)};
1753
+ margin-right: ${this.margin&&c.UiHelperUtil.getSpacingStyles(this.margin,1)};
1754
+ margin-bottom: ${this.margin&&c.UiHelperUtil.getSpacingStyles(this.margin,2)};
1755
+ margin-left: ${this.margin&&c.UiHelperUtil.getSpacingStyles(this.margin,3)};
1756
+ `,a.b`<slot></slot>`}};I.styles=[a.resetStyles,Hi];L([c.n()],I.prototype,"gridTemplateRows",void 0);L([c.n()],I.prototype,"gridTemplateColumns",void 0);L([c.n()],I.prototype,"justifyItems",void 0);L([c.n()],I.prototype,"alignItems",void 0);L([c.n()],I.prototype,"justifyContent",void 0);L([c.n()],I.prototype,"alignContent",void 0);L([c.n()],I.prototype,"columnGap",void 0);L([c.n()],I.prototype,"rowGap",void 0);L([c.n()],I.prototype,"gap",void 0);L([c.n()],I.prototype,"padding",void 0);L([c.n()],I.prototype,"margin",void 0);I=L([c.customElement("wui-grid")],I);const Vi=a.i`
1757
+ button {
1758
+ display: flex;
1759
+ flex-direction: column;
1760
+ justify-content: center;
1761
+ align-items: center;
1762
+ cursor: pointer;
1763
+ width: 104px;
1764
+ row-gap: var(--wui-spacing-xs);
1765
+ padding: var(--wui-spacing-s) var(--wui-spacing-0);
1766
+ background-color: var(--wui-color-gray-glass-002);
1767
+ border-radius: clamp(0px, var(--wui-border-radius-xs), 20px);
1768
+ transition:
1769
+ color var(--wui-duration-lg) var(--wui-ease-out-power-1),
1770
+ background-color var(--wui-duration-lg) var(--wui-ease-out-power-1),
1771
+ border-radius var(--wui-duration-lg) var(--wui-ease-out-power-1);
1772
+ will-change: background-color, color, border-radius;
1773
+ outline: none;
1774
+ border: none;
1775
+ }
1776
+
1777
+ button > wui-flex > wui-text {
1778
+ color: var(--wui-color-fg-100);
1779
+ max-width: 86px;
1780
+ white-space: nowrap;
1781
+ overflow: hidden;
1782
+ text-overflow: ellipsis;
1783
+ justify-content: center;
1784
+ }
1785
+
1786
+ button > wui-flex > wui-text.certified {
1787
+ max-width: 66px;
1788
+ }
1789
+
1790
+ button:hover:enabled {
1791
+ background-color: var(--wui-color-gray-glass-005);
1792
+ }
1793
+
1794
+ button:disabled > wui-flex > wui-text {
1795
+ color: var(--wui-color-gray-glass-015);
1796
+ }
1797
+
1798
+ [data-selected='true'] {
1799
+ background-color: var(--wui-color-accent-glass-020);
1800
+ }
1801
+
1802
+ @media (hover: hover) and (pointer: fine) {
1803
+ [data-selected='true']:hover:enabled {
1804
+ background-color: var(--wui-color-accent-glass-015);
1805
+ }
1806
+ }
1807
+
1808
+ [data-selected='true']:active:enabled {
1809
+ background-color: var(--wui-color-accent-glass-010);
1810
+ }
1811
+
1812
+ @media (max-width: 350px) {
1813
+ button {
1814
+ width: 100%;
1815
+ }
1816
+ }
1817
+ `;var Te=function(r,e,n,i){var o=arguments.length,t=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,n):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")t=Reflect.decorate(r,e,n,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(t=(o<3?s(t):o>3?s(e,n,t):s(e,n))||t);return o>3&&t&&Object.defineProperty(e,n,t),t};let oe=class extends a.i$1{constructor(){super(),this.observer=new IntersectionObserver(()=>{}),this.visible=!1,this.imageSrc=void 0,this.imageLoading=!1,this.wallet=void 0,this.observer=new IntersectionObserver(e=>{e.forEach(n=>{n.isIntersecting?(this.visible=!0,this.fetchImageSrc()):this.visible=!1})},{threshold:.01})}firstUpdated(){this.observer.observe(this)}disconnectedCallback(){this.observer.disconnect()}render(){var n,i;const e=((n=this.wallet)==null?void 0:n.badge_type)==="certified";return a.b`
1818
+ <button>
1819
+ ${this.imageTemplate()}
1820
+ <wui-flex flexDirection="row" alignItems="center" justifyContent="center" gap="3xs">
1821
+ <wui-text
1822
+ variant="tiny-500"
1823
+ color="inherit"
1824
+ class=${c.o(e?"certified":void 0)}
1825
+ >${(i=this.wallet)==null?void 0:i.name}</wui-text
1826
+ >
1827
+ ${e?a.b`<wui-icon size="sm" name="walletConnectBrown"></wui-icon>`:null}
1828
+ </wui-flex>
1829
+ </button>
1830
+ `}imageTemplate(){var e,n;return!this.visible&&!this.imageSrc||this.imageLoading?this.shimmerTemplate():a.b`
1831
+ <wui-wallet-image
1832
+ size="md"
1833
+ imageSrc=${c.o(this.imageSrc)}
1834
+ name=${(e=this.wallet)==null?void 0:e.name}
1835
+ .installed=${(n=this.wallet)==null?void 0:n.installed}
1836
+ badgeSize="sm"
1837
+ >
1838
+ </wui-wallet-image>
1839
+ `}shimmerTemplate(){return a.b`<wui-shimmer width="56px" height="56px" borderRadius="xs"></wui-shimmer>`}async fetchImageSrc(){this.wallet&&(this.imageSrc=a.AssetUtil.getWalletImage(this.wallet),!this.imageSrc&&(this.imageLoading=!0,this.imageSrc=await a.AssetUtil.fetchWalletImage(this.wallet.image_id),this.imageLoading=!1))}};oe.styles=Vi;Te([c.r()],oe.prototype,"visible",void 0);Te([c.r()],oe.prototype,"imageSrc",void 0);Te([c.r()],oe.prototype,"imageLoading",void 0);Te([c.n()],oe.prototype,"wallet",void 0);oe=Te([c.customElement("w3m-all-wallets-list-item")],oe);const Fi=a.i`
1840
+ wui-grid {
1841
+ max-height: clamp(360px, 400px, 80vh);
1842
+ overflow: scroll;
1843
+ scrollbar-width: none;
1844
+ grid-auto-rows: min-content;
1845
+ grid-template-columns: repeat(auto-fill, 104px);
1846
+ }
1847
+
1848
+ @media (max-width: 350px) {
1849
+ wui-grid {
1850
+ grid-template-columns: repeat(2, 1fr);
1851
+ }
1852
+ }
1853
+
1854
+ wui-grid[data-scroll='false'] {
1855
+ overflow: hidden;
1856
+ }
1857
+
1858
+ wui-grid::-webkit-scrollbar {
1859
+ display: none;
1860
+ }
1861
+
1862
+ wui-loading-spinner {
1863
+ padding-top: var(--wui-spacing-l);
1864
+ padding-bottom: var(--wui-spacing-l);
1865
+ justify-content: center;
1866
+ grid-column: 1 / span 4;
1867
+ }
1868
+ `;var be=function(r,e,n,i){var o=arguments.length,t=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,n):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")t=Reflect.decorate(r,e,n,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(t=(o<3?s(t):o>3?s(e,n,t):s(e,n))||t);return o>3&&t&&Object.defineProperty(e,n,t),t};const Vt="local-paginator";let Q=class extends a.i$1{constructor(){super(),this.unsubscribe=[],this.paginationObserver=void 0,this.loading=!a.ApiController.state.wallets.length,this.wallets=a.ApiController.state.wallets,this.recommended=a.ApiController.state.recommended,this.featured=a.ApiController.state.featured,this.filteredWallets=a.ApiController.state.filteredWallets,this.unsubscribe.push(a.ApiController.subscribeKey("wallets",e=>this.wallets=e),a.ApiController.subscribeKey("recommended",e=>this.recommended=e),a.ApiController.subscribeKey("featured",e=>this.featured=e),a.ApiController.subscribeKey("filteredWallets",e=>this.filteredWallets=e))}firstUpdated(){this.initialFetch(),this.createPaginationObserver()}disconnectedCallback(){var e;this.unsubscribe.forEach(n=>n()),(e=this.paginationObserver)==null||e.disconnect()}render(){return a.b`
1869
+ <wui-grid
1870
+ data-scroll=${!this.loading}
1871
+ .padding=${["0","s","s","s"]}
1872
+ columnGap="xxs"
1873
+ rowGap="l"
1874
+ justifyContent="space-between"
1875
+ >
1876
+ ${this.loading?this.shimmerTemplate(16):this.walletsTemplate()}
1877
+ ${this.paginationLoaderTemplate()}
1878
+ </wui-grid>
1879
+ `}async initialFetch(){var n;this.loading=!0;const e=(n=this.shadowRoot)==null?void 0:n.querySelector("wui-grid");e&&(await a.ApiController.fetchWalletsByPage({page:1}),await e.animate([{opacity:1},{opacity:0}],{duration:200,fill:"forwards",easing:"ease"}).finished,this.loading=!1,e.animate([{opacity:0},{opacity:1}],{duration:200,fill:"forwards",easing:"ease"}))}shimmerTemplate(e,n){return[...Array(e)].map(()=>a.b`
1880
+ <wui-card-select-loader type="wallet" id=${c.o(n)}></wui-card-select-loader>
1881
+ `)}walletsTemplate(){var i;const e=((i=this.filteredWallets)==null?void 0:i.length)>0?a.CoreHelperUtil.uniqueBy([...this.featured,...this.recommended,...this.filteredWallets],"id"):a.CoreHelperUtil.uniqueBy([...this.featured,...this.recommended,...this.wallets],"id");return a.WalletUtil.markWalletsAsInstalled(e).map(o=>a.b`
1882
+ <w3m-all-wallets-list-item
1883
+ @click=${()=>this.onConnectWallet(o)}
1884
+ .wallet=${o}
1885
+ ></w3m-all-wallets-list-item>
1886
+ `)}paginationLoaderTemplate(){const{wallets:e,recommended:n,featured:i,count:o}=a.ApiController.state,t=window.innerWidth<352?3:4,s=e.length+n.length;let u=Math.ceil(s/t)*t-s+t;return u-=e.length?i.length%t:0,o===0&&i.length>0?null:o===0||[...i,...e,...n].length<o?this.shimmerTemplate(u,Vt):null}createPaginationObserver(){var n;const e=(n=this.shadowRoot)==null?void 0:n.querySelector(`#${Vt}`);e&&(this.paginationObserver=new IntersectionObserver(([i])=>{if(i!=null&&i.isIntersecting&&!this.loading){const{page:o,count:t,wallets:s}=a.ApiController.state;s.length<t&&a.ApiController.fetchWalletsByPage({page:o+1})}}),this.paginationObserver.observe(e))}onConnectWallet(e){a.ConnectorController.selectWalletConnector(e)}};Q.styles=Fi;be([c.r()],Q.prototype,"loading",void 0);be([c.r()],Q.prototype,"wallets",void 0);be([c.r()],Q.prototype,"recommended",void 0);be([c.r()],Q.prototype,"featured",void 0);be([c.r()],Q.prototype,"filteredWallets",void 0);Q=be([c.customElement("w3m-all-wallets-list")],Q);const qi=a.i`
1887
+ wui-grid,
1888
+ wui-loading-spinner,
1889
+ wui-flex {
1890
+ height: 360px;
1891
+ }
1892
+
1893
+ wui-grid {
1894
+ overflow: scroll;
1895
+ scrollbar-width: none;
1896
+ grid-auto-rows: min-content;
1897
+ grid-template-columns: repeat(auto-fill, 104px);
1898
+ }
1899
+
1900
+ wui-grid[data-scroll='false'] {
1901
+ overflow: hidden;
1902
+ }
1903
+
1904
+ wui-grid::-webkit-scrollbar {
1905
+ display: none;
1906
+ }
1907
+
1908
+ wui-loading-spinner {
1909
+ justify-content: center;
1910
+ align-items: center;
1911
+ }
1912
+
1913
+ @media (max-width: 350px) {
1914
+ wui-grid {
1915
+ grid-template-columns: repeat(2, 1fr);
1916
+ }
1917
+ }
1918
+ `;var ot=function(r,e,n,i){var o=arguments.length,t=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,n):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")t=Reflect.decorate(r,e,n,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(t=(o<3?s(t):o>3?s(e,n,t):s(e,n))||t);return o>3&&t&&Object.defineProperty(e,n,t),t};let fe=class extends a.i$1{constructor(){super(...arguments),this.prevQuery="",this.prevBadge=void 0,this.loading=!0,this.query=""}render(){return this.onSearch(),this.loading?a.b`<wui-loading-spinner color="accent-100"></wui-loading-spinner>`:this.walletsTemplate()}async onSearch(){(this.query.trim()!==this.prevQuery.trim()||this.badge!==this.prevBadge)&&(this.prevQuery=this.query,this.prevBadge=this.badge,this.loading=!0,await a.ApiController.searchWallet({search:this.query,badge:this.badge}),this.loading=!1)}walletsTemplate(){const{search:e}=a.ApiController.state,n=a.WalletUtil.markWalletsAsInstalled(e);return e.length?a.b`
1919
+ <wui-grid
1920
+ data-testid="wallet-list"
1921
+ .padding=${["0","s","s","s"]}
1922
+ rowGap="l"
1923
+ columnGap="xs"
1924
+ justifyContent="space-between"
1925
+ >
1926
+ ${n.map(i=>a.b`
1927
+ <w3m-all-wallets-list-item
1928
+ @click=${()=>this.onConnectWallet(i)}
1929
+ .wallet=${i}
1930
+ data-testid="wallet-search-item-${i.id}"
1931
+ ></w3m-all-wallets-list-item>
1932
+ `)}
1933
+ </wui-grid>
1934
+ `:a.b`
1935
+ <wui-flex
1936
+ data-testid="no-wallet-found"
1937
+ justifyContent="center"
1938
+ alignItems="center"
1939
+ gap="s"
1940
+ flexDirection="column"
1941
+ >
1942
+ <wui-icon-box
1943
+ size="lg"
1944
+ iconColor="fg-200"
1945
+ backgroundColor="fg-300"
1946
+ icon="wallet"
1947
+ background="transparent"
1948
+ ></wui-icon-box>
1949
+ <wui-text data-testid="no-wallet-found-text" color="fg-200" variant="paragraph-500">
1950
+ No Wallet found
1951
+ </wui-text>
1952
+ </wui-flex>
1953
+ `}onConnectWallet(e){a.ConnectorController.selectWalletConnector(e)}};fe.styles=qi;ot([c.r()],fe.prototype,"loading",void 0);ot([c.n()],fe.prototype,"query",void 0);ot([c.n()],fe.prototype,"badge",void 0);fe=ot([c.customElement("w3m-all-wallets-search")],fe);var Bt=function(r,e,n,i){var o=arguments.length,t=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,n):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")t=Reflect.decorate(r,e,n,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(t=(o<3?s(t):o>3?s(e,n,t):s(e,n))||t);return o>3&&t&&Object.defineProperty(e,n,t),t};exports.W3mAllWalletsView=class extends a.i$1{constructor(){super(...arguments),this.search="",this.onDebouncedSearch=a.CoreHelperUtil.debounce(e=>{this.search=e})}render(){const e=this.search.length>=2;return a.b`
1954
+ <wui-flex .padding=${["0","s","s","s"]} gap="xs">
1955
+ <wui-search-bar @inputChange=${this.onInputChange.bind(this)}></wui-search-bar>
1956
+ <wui-certified-switch
1957
+ ?checked=${this.badge}
1958
+ @click=${this.onClick.bind(this)}
1959
+ data-testid="wui-certified-switch"
1960
+ ></wui-certified-switch>
1961
+ ${this.qrButtonTemplate()}
1962
+ </wui-flex>
1963
+ ${e||this.badge?a.b`<w3m-all-wallets-search
1964
+ query=${this.search}
1965
+ badge=${c.o(this.badge)}
1966
+ ></w3m-all-wallets-search>`:a.b`<w3m-all-wallets-list badge=${c.o(this.badge)}></w3m-all-wallets-list>`}
1967
+ `}onInputChange(e){this.onDebouncedSearch(e.detail)}onClick(){if(this.badge==="certified"){this.badge=void 0;return}this.badge="certified",a.SnackController.showSvg("Only WalletConnect certified",{icon:"walletConnectBrown",iconColor:"accent-100"})}qrButtonTemplate(){return a.CoreHelperUtil.isMobile()?a.b`
1968
+ <wui-icon-box
1969
+ size="lg"
1970
+ iconSize="xl"
1971
+ iconColor="accent-100"
1972
+ backgroundColor="accent-100"
1973
+ icon="qrCode"
1974
+ background="transparent"
1975
+ border
1976
+ borderColor="wui-accent-glass-010"
1977
+ @click=${this.onWalletConnectQr.bind(this)}
1978
+ ></wui-icon-box>
1979
+ `:null}onWalletConnectQr(){a.RouterController.push("ConnectingWalletConnect")}};Bt([c.r()],exports.W3mAllWalletsView.prototype,"search",void 0);Bt([c.r()],exports.W3mAllWalletsView.prototype,"badge",void 0);exports.W3mAllWalletsView=Bt([c.customElement("w3m-all-wallets-view")],exports.W3mAllWalletsView);const Ki=a.i`
1980
+ button {
1981
+ column-gap: var(--wui-spacing-s);
1982
+ padding: 11px 18px 11px var(--wui-spacing-s);
1983
+ width: 100%;
1984
+ background-color: var(--wui-color-gray-glass-002);
1985
+ border-radius: var(--wui-border-radius-xs);
1986
+ color: var(--wui-color-fg-250);
1987
+ transition:
1988
+ color var(--wui-ease-out-power-1) var(--wui-duration-md),
1989
+ background-color var(--wui-ease-out-power-1) var(--wui-duration-md);
1990
+ will-change: color, background-color;
1991
+ }
1992
+
1993
+ button[data-iconvariant='square'],
1994
+ button[data-iconvariant='square-blue'] {
1995
+ padding: 6px 18px 6px 9px;
1996
+ }
1997
+
1998
+ button > wui-flex {
1999
+ flex: 1;
2000
+ }
2001
+
2002
+ button > wui-image {
2003
+ width: 32px;
2004
+ height: 32px;
2005
+ box-shadow: 0 0 0 2px var(--wui-color-gray-glass-005);
2006
+ border-radius: var(--wui-border-radius-3xl);
2007
+ }
2008
+
2009
+ button > wui-icon {
2010
+ width: 36px;
2011
+ height: 36px;
2012
+ transition: opacity var(--wui-ease-out-power-1) var(--wui-duration-md);
2013
+ will-change: opacity;
2014
+ }
2015
+
2016
+ button > wui-icon-box[data-variant='blue'] {
2017
+ box-shadow: 0 0 0 2px var(--wui-color-accent-glass-005);
2018
+ }
2019
+
2020
+ button > wui-icon-box[data-variant='overlay'] {
2021
+ box-shadow: 0 0 0 2px var(--wui-color-gray-glass-005);
2022
+ }
2023
+
2024
+ button > wui-icon-box[data-variant='square-blue'] {
2025
+ border-radius: var(--wui-border-radius-3xs);
2026
+ position: relative;
2027
+ border: none;
2028
+ width: 36px;
2029
+ height: 36px;
2030
+ }
2031
+
2032
+ button > wui-icon-box[data-variant='square-blue']::after {
2033
+ content: '';
2034
+ position: absolute;
2035
+ top: 0;
2036
+ bottom: 0;
2037
+ left: 0;
2038
+ right: 0;
2039
+ border-radius: inherit;
2040
+ border: 1px solid var(--wui-color-accent-glass-010);
2041
+ pointer-events: none;
2042
+ }
2043
+
2044
+ button > wui-icon:last-child {
2045
+ width: 14px;
2046
+ height: 14px;
2047
+ }
2048
+
2049
+ button:disabled {
2050
+ color: var(--wui-color-gray-glass-020);
2051
+ }
2052
+
2053
+ button[data-loading='true'] > wui-icon {
2054
+ opacity: 0;
2055
+ }
2056
+
2057
+ wui-loading-spinner {
2058
+ position: absolute;
2059
+ right: 18px;
2060
+ top: 50%;
2061
+ transform: translateY(-50%);
2062
+ }
2063
+ `;var k=function(r,e,n,i){var o=arguments.length,t=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,n):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")t=Reflect.decorate(r,e,n,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(t=(o<3?s(t):o>3?s(e,n,t):s(e,n))||t);return o>3&&t&&Object.defineProperty(e,n,t),t};let T=class extends a.i$1{constructor(){super(...arguments),this.tabIdx=void 0,this.variant="icon",this.disabled=!1,this.imageSrc=void 0,this.alt=void 0,this.chevron=!1,this.loading=!1}render(){return a.b`
2064
+ <button
2065
+ ?disabled=${this.loading?!0:!!this.disabled}
2066
+ data-loading=${this.loading}
2067
+ data-iconvariant=${c.o(this.iconVariant)}
2068
+ tabindex=${c.o(this.tabIdx)}
2069
+ >
2070
+ ${this.loadingTemplate()} ${this.visualTemplate()}
2071
+ <wui-flex gap="3xs">
2072
+ <slot></slot>
2073
+ </wui-flex>
2074
+ ${this.chevronTemplate()}
2075
+ </button>
2076
+ `}visualTemplate(){if(this.variant==="image"&&this.imageSrc)return a.b`<wui-image src=${this.imageSrc} alt=${this.alt??"list item"}></wui-image>`;if(this.iconVariant==="square"&&this.icon&&this.variant==="icon")return a.b`<wui-icon name=${this.icon}></wui-icon>`;if(this.variant==="icon"&&this.icon&&this.iconVariant){const e=["blue","square-blue"].includes(this.iconVariant)?"accent-100":"fg-200",n=this.iconVariant==="square-blue"?"mdl":"md",i=this.iconSize?this.iconSize:n;return a.b`
2077
+ <wui-icon-box
2078
+ data-variant=${this.iconVariant}
2079
+ icon=${this.icon}
2080
+ iconSize=${i}
2081
+ background="transparent"
2082
+ iconColor=${e}
2083
+ backgroundColor=${e}
2084
+ size=${n}
2085
+ ></wui-icon-box>
2086
+ `}return null}loadingTemplate(){return this.loading?a.b`<wui-loading-spinner
2087
+ data-testid="wui-list-item-loading-spinner"
2088
+ color="fg-300"
2089
+ ></wui-loading-spinner>`:a.b``}chevronTemplate(){return this.chevron?a.b`<wui-icon size="inherit" color="fg-200" name="chevronRight"></wui-icon>`:null}};T.styles=[a.resetStyles,a.elementStyles,Ki];k([c.n()],T.prototype,"icon",void 0);k([c.n()],T.prototype,"iconSize",void 0);k([c.n()],T.prototype,"tabIdx",void 0);k([c.n()],T.prototype,"variant",void 0);k([c.n()],T.prototype,"iconVariant",void 0);k([c.n({type:Boolean})],T.prototype,"disabled",void 0);k([c.n()],T.prototype,"imageSrc",void 0);k([c.n()],T.prototype,"alt",void 0);k([c.n({type:Boolean})],T.prototype,"chevron",void 0);k([c.n({type:Boolean})],T.prototype,"loading",void 0);T=k([c.customElement("wui-list-item")],T);var Gi=function(r,e,n,i){var o=arguments.length,t=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,n):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")t=Reflect.decorate(r,e,n,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(t=(o<3?s(t):o>3?s(e,n,t):s(e,n))||t);return o>3&&t&&Object.defineProperty(e,n,t),t};exports.W3mDownloadsView=class extends a.i$1{constructor(){var e;super(...arguments),this.wallet=(e=a.RouterController.state.data)==null?void 0:e.wallet}render(){if(!this.wallet)throw new Error("w3m-downloads-view");return a.b`
2090
+ <wui-flex gap="xs" flexDirection="column" .padding=${["s","s","l","s"]}>
2091
+ ${this.chromeTemplate()} ${this.iosTemplate()} ${this.androidTemplate()}
2092
+ ${this.homepageTemplate()}
2093
+ </wui-flex>
2094
+ `}chromeTemplate(){var e;return(e=this.wallet)!=null&&e.chrome_store?a.b`<wui-list-item
2095
+ variant="icon"
2096
+ icon="chromeStore"
2097
+ iconVariant="square"
2098
+ @click=${this.onChromeStore.bind(this)}
2099
+ chevron
2100
+ >
2101
+ <wui-text variant="paragraph-500" color="fg-100">Chrome Extension</wui-text>
2102
+ </wui-list-item>`:null}iosTemplate(){var e;return(e=this.wallet)!=null&&e.app_store?a.b`<wui-list-item
2103
+ variant="icon"
2104
+ icon="appStore"
2105
+ iconVariant="square"
2106
+ @click=${this.onAppStore.bind(this)}
2107
+ chevron
2108
+ >
2109
+ <wui-text variant="paragraph-500" color="fg-100">iOS App</wui-text>
2110
+ </wui-list-item>`:null}androidTemplate(){var e;return(e=this.wallet)!=null&&e.play_store?a.b`<wui-list-item
2111
+ variant="icon"
2112
+ icon="playStore"
2113
+ iconVariant="square"
2114
+ @click=${this.onPlayStore.bind(this)}
2115
+ chevron
2116
+ >
2117
+ <wui-text variant="paragraph-500" color="fg-100">Android App</wui-text>
2118
+ </wui-list-item>`:null}homepageTemplate(){var e;return(e=this.wallet)!=null&&e.homepage?a.b`
2119
+ <wui-list-item
2120
+ variant="icon"
2121
+ icon="browser"
2122
+ iconVariant="square-blue"
2123
+ @click=${this.onHomePage.bind(this)}
2124
+ chevron
2125
+ >
2126
+ <wui-text variant="paragraph-500" color="fg-100">Website</wui-text>
2127
+ </wui-list-item>
2128
+ `:null}onChromeStore(){var e;(e=this.wallet)!=null&&e.chrome_store&&a.CoreHelperUtil.openHref(this.wallet.chrome_store,"_blank")}onAppStore(){var e;(e=this.wallet)!=null&&e.app_store&&a.CoreHelperUtil.openHref(this.wallet.app_store,"_blank")}onPlayStore(){var e;(e=this.wallet)!=null&&e.play_store&&a.CoreHelperUtil.openHref(this.wallet.play_store,"_blank")}onHomePage(){var e;(e=this.wallet)!=null&&e.homepage&&a.CoreHelperUtil.openHref(this.wallet.homepage,"_blank")}};exports.W3mDownloadsView=Gi([c.customElement("w3m-downloads-view")],exports.W3mDownloadsView);