@skip-go/widget 3.15.0 → 3.16.0-alpha.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 (482) hide show
  1. package/build/{add-B_HO3rie.js → add-CjFEnrM7.js} +1 -1
  2. package/build/add-D4id4nYR.js +19 -0
  3. package/build/add-DlT6N-B-.js +19 -0
  4. package/build/add-GPLFpWrt.js +19 -0
  5. package/build/add-f4yxtxj-.js +19 -0
  6. package/build/add-uPir4_1W.js +19 -0
  7. package/build/{all-wallets-BwinAo7s.js → all-wallets-Bhsc43kh.js} +1 -1
  8. package/build/all-wallets-BlD4cvJR.js +10 -0
  9. package/build/all-wallets-CqKII5Ae.js +10 -0
  10. package/build/all-wallets-D0vCvkGs.js +10 -0
  11. package/build/all-wallets-Drf4wgi_.js +10 -0
  12. package/build/all-wallets-jdScqKqP.js +10 -0
  13. package/build/{app-store-CQbh9n4p.js → app-store-BnPeLjq7.js} +1 -1
  14. package/build/app-store-CQNagJVv.js +21 -0
  15. package/build/app-store-CrWWx_Nt.js +21 -0
  16. package/build/app-store-DM0wVWSo.js +21 -0
  17. package/build/app-store-DemKOsap.js +21 -0
  18. package/build/app-store-U4UCIrDh.js +21 -0
  19. package/build/{apple-BO6gfbsI.js → apple-C4P6Q7iH.js} +1 -1
  20. package/build/apple-CB64NzOz.js +22 -0
  21. package/build/apple-COJF3d4n.js +22 -0
  22. package/build/apple-CSlX1AOk.js +22 -0
  23. package/build/apple-D6dUo5AR.js +22 -0
  24. package/build/apple-HxSHYrbv.js +22 -0
  25. package/build/{arrow-bottom-dwgyhE3G.js → arrow-bottom-B4XRS2kD.js} +1 -1
  26. package/build/arrow-bottom-BP-TlgF2.js +12 -0
  27. package/build/arrow-bottom-Bpy-s-pw.js +12 -0
  28. package/build/arrow-bottom-CzRTNvFG.js +12 -0
  29. package/build/arrow-bottom-DmhkGYuM.js +12 -0
  30. package/build/{arrow-bottom-circle-C5-hK95z.js → arrow-bottom-circle-BRQcYgF1.js} +1 -1
  31. package/build/arrow-bottom-circle-BS89vvI0.js +15 -0
  32. package/build/arrow-bottom-circle-CBPmIAvQ.js +15 -0
  33. package/build/arrow-bottom-circle-DJydwZ_c.js +15 -0
  34. package/build/arrow-bottom-circle-DSevHBAO.js +15 -0
  35. package/build/arrow-bottom-circle-DUpDAa-W.js +15 -0
  36. package/build/arrow-bottom-lFB0DAEi.js +12 -0
  37. package/build/{arrow-left-CX5ZwYhS.js → arrow-left-BJBBrpha.js} +1 -1
  38. package/build/arrow-left-BwAO_Y48.js +12 -0
  39. package/build/arrow-left-N00aXm4w.js +12 -0
  40. package/build/arrow-left-PBn-8hKr.js +12 -0
  41. package/build/arrow-left-k2RrDcJF.js +12 -0
  42. package/build/arrow-left-y0E7eOIa.js +12 -0
  43. package/build/{arrow-right-DaghdhvT.js → arrow-right-BUhbvY7r.js} +1 -1
  44. package/build/arrow-right-D-gAGHlo.js +12 -0
  45. package/build/arrow-right-D-skqOza.js +12 -0
  46. package/build/arrow-right-RAz_DGiZ.js +12 -0
  47. package/build/arrow-right-n3ikK8BK.js +12 -0
  48. package/build/arrow-right-vgJ8Bm4-.js +12 -0
  49. package/build/{arrow-top-Ne3rZ9Bg.js → arrow-top-BAEFlown.js} +1 -1
  50. package/build/arrow-top-BIyIZOAA.js +12 -0
  51. package/build/arrow-top-Bb4GchVA.js +12 -0
  52. package/build/arrow-top-BwYH2fN_.js +12 -0
  53. package/build/arrow-top-D1gme_2N.js +12 -0
  54. package/build/arrow-top-DWtr9wfP.js +12 -0
  55. package/build/{bank-BC2qtTiS.js → bank-BJr5GHu9.js} +1 -1
  56. package/build/bank-BVKi8z0h.js +18 -0
  57. package/build/bank-BdUCBTsu.js +18 -0
  58. package/build/bank-DMXiYHkU.js +18 -0
  59. package/build/bank-DdgivQ17.js +18 -0
  60. package/build/bank-o9LpAxV7.js +18 -0
  61. package/build/{basic-DOv90yTw.js → basic-CzqIEpym.js} +2 -2
  62. package/build/basic-DP-YMA0V.js +6930 -0
  63. package/build/basic-YhJNhdfT.js +6930 -0
  64. package/build/basic-gh5B5660.js +6930 -0
  65. package/build/basic-plHQljWG.js +6930 -0
  66. package/build/basic-tPPs7y_S.js +6930 -0
  67. package/build/{browser-NIznlSD5.js → browser-BAUc_Q2m.js} +1 -1
  68. package/build/browser-BPAhgr3g.js +18 -0
  69. package/build/browser-CJTfFHuk.js +18 -0
  70. package/build/browser-D1wVtGke.js +18 -0
  71. package/build/browser-PH-m53zw.js +18 -0
  72. package/build/browser-dwaQqas6.js +18 -0
  73. package/build/{card-DYlD5oHp.js → card-BSNOP9wr.js} +1 -1
  74. package/build/card-BYbX5ctT.js +18 -0
  75. package/build/card-C6GAlyno.js +18 -0
  76. package/build/card-Cf1ZKitJ.js +18 -0
  77. package/build/card-D7kD7RY1.js +18 -0
  78. package/build/card-pn1a6xZb.js +18 -0
  79. package/build/{checkmark-CiZalxtY.js → checkmark-54M9c1cI.js} +1 -1
  80. package/build/checkmark-8B5H5cON.js +15 -0
  81. package/build/checkmark-BU4H1Lth.js +15 -0
  82. package/build/checkmark-CB6REIte.js +15 -0
  83. package/build/checkmark-DRBH9kp4.js +15 -0
  84. package/build/checkmark-DVGxez1Y.js +15 -0
  85. package/build/{checkmark-bold-C15H5gt7.js → checkmark-bold-AfyKxQCV.js} +1 -1
  86. package/build/checkmark-bold-BKwK3fv-.js +12 -0
  87. package/build/checkmark-bold-CdInotKs.js +12 -0
  88. package/build/checkmark-bold-Clf-GfI0.js +12 -0
  89. package/build/checkmark-bold-DEIHz6J9.js +12 -0
  90. package/build/checkmark-bold-Dc2W90Da.js +12 -0
  91. package/build/{chevron-bottom-ez9GasEo.js → chevron-bottom-2xLTyLhG.js} +1 -1
  92. package/build/chevron-bottom-BATWcpzE.js +12 -0
  93. package/build/chevron-bottom-CqAsXZL7.js +12 -0
  94. package/build/chevron-bottom-DMSPASrc.js +12 -0
  95. package/build/chevron-bottom-DczmQnDY.js +12 -0
  96. package/build/chevron-bottom-Tfm9bu_9.js +12 -0
  97. package/build/{chevron-left-BphRUHEF.js → chevron-left-3padAG9Z.js} +1 -1
  98. package/build/chevron-left-BBbJCNOb.js +12 -0
  99. package/build/chevron-left-BgIQRzZ8.js +12 -0
  100. package/build/chevron-left-CN89A01b.js +12 -0
  101. package/build/chevron-left-ClqUtdHs.js +12 -0
  102. package/build/chevron-left-K5hRlN66.js +12 -0
  103. package/build/{chevron-right-DB5mOaZk.js → chevron-right-B3OKGwz7.js} +1 -1
  104. package/build/chevron-right-BNJ-iq95.js +12 -0
  105. package/build/chevron-right-CPpbPxDG.js +12 -0
  106. package/build/chevron-right-CtpSVerI.js +12 -0
  107. package/build/chevron-right-MznBOjsH.js +12 -0
  108. package/build/chevron-right-_QG-G7uJ.js +12 -0
  109. package/build/{chevron-top-HmX-6c8V.js → chevron-top-5mjQymuP.js} +1 -1
  110. package/build/chevron-top-B2gjBarO.js +12 -0
  111. package/build/chevron-top-BhmdqQ4i.js +12 -0
  112. package/build/chevron-top-DCxTnLc-.js +12 -0
  113. package/build/chevron-top-DQLMOZsV.js +12 -0
  114. package/build/chevron-top-UkCya1iC.js +12 -0
  115. package/build/{chrome-store-D_5XXCEP.js → chrome-store-BfSKu8JI.js} +1 -1
  116. package/build/chrome-store-CN7-_ajQ.js +65 -0
  117. package/build/chrome-store-CnZ-ze7z.js +65 -0
  118. package/build/chrome-store-DHPPqDOy.js +65 -0
  119. package/build/chrome-store-DjdSc1KT.js +65 -0
  120. package/build/chrome-store-zelrrcIy.js +65 -0
  121. package/build/{clock-BN8Aed4h.js → clock-BCoxfjNj.js} +1 -1
  122. package/build/clock-BZtiGSeK.js +12 -0
  123. package/build/clock-Duwne4o3.js +12 -0
  124. package/build/clock-WWDu1Dme.js +12 -0
  125. package/build/clock-WjShKWth.js +12 -0
  126. package/build/clock-vxX8rcoG.js +12 -0
  127. package/build/{close-Qtc-PPSq.js → close-6ay0_E59.js} +1 -1
  128. package/build/close-BywgSqVq.js +12 -0
  129. package/build/close-CYPzvBce.js +12 -0
  130. package/build/close-CuGtiZjM.js +12 -0
  131. package/build/close-Dtwx8lJy.js +12 -0
  132. package/build/close-JeH4v97k.js +12 -0
  133. package/build/{coinPlaceholder-ILpkPUQV.js → coinPlaceholder-7RLajcgv.js} +1 -1
  134. package/build/coinPlaceholder-C0m_BTur.js +12 -0
  135. package/build/coinPlaceholder-CyyZVTFm.js +12 -0
  136. package/build/coinPlaceholder-D35GhpM9.js +12 -0
  137. package/build/coinPlaceholder-DJ0p9Wl2.js +12 -0
  138. package/build/coinPlaceholder-DjkHraMH.js +12 -0
  139. package/build/{compass-DgnKKNXb.js → compass-BCV1Qzhz.js} +1 -1
  140. package/build/compass-CLtU5Td5.js +12 -0
  141. package/build/compass-CuaamYx9.js +12 -0
  142. package/build/compass-Doc_N3B_.js +12 -0
  143. package/build/compass-ffFR7HAp.js +12 -0
  144. package/build/compass-lfNJ3Gkb.js +12 -0
  145. package/build/{copy-DzIe7oS_.js → copy-BaH95u0i.js} +1 -1
  146. package/build/copy-CCaRuRQn.js +19 -0
  147. package/build/copy-D0zpkTqY.js +19 -0
  148. package/build/copy-d-Ik0LMH.js +19 -0
  149. package/build/copy-m8d7kJgj.js +19 -0
  150. package/build/copy-p29a0e75.js +19 -0
  151. package/build/{core-DsrEBs8c.js → core-BZ-3Tqq4.js} +4 -4
  152. package/build/core-BkD5aY9Z.js +13138 -0
  153. package/build/core-BkuIc82n.js +13138 -0
  154. package/build/core-CiQTUViJ.js +13138 -0
  155. package/build/core-CsMDwHUz.js +13138 -0
  156. package/build/core-DdKZWUZn.js +13138 -0
  157. package/build/{cursor-D3hQqPeK.js → cursor-BinQyGdt.js} +1 -1
  158. package/build/cursor-CgDh4AtE.js +7 -0
  159. package/build/cursor-CjZE7WdQ.js +7 -0
  160. package/build/cursor-CsYoLGGC.js +7 -0
  161. package/build/cursor-DpM4LL2L.js +7 -0
  162. package/build/cursor-E7zoeZKK.js +7 -0
  163. package/build/{cursor-transparent-JkKQH_-V.js → cursor-transparent-B6R-mT6Y.js} +1 -1
  164. package/build/cursor-transparent-CZG4FhoU.js +16 -0
  165. package/build/cursor-transparent-Cay0nEpb.js +16 -0
  166. package/build/cursor-transparent-DhGQV7zE.js +16 -0
  167. package/build/cursor-transparent-EWMJkFLW.js +16 -0
  168. package/build/cursor-transparent-bUKbEnIG.js +16 -0
  169. package/build/{desktop-DpshfKg-.js → desktop-B1Uy3RDk.js} +1 -1
  170. package/build/desktop-Bf12ri1v.js +13 -0
  171. package/build/desktop-CT7AjnJ7.js +13 -0
  172. package/build/desktop-CW40r5b0.js +13 -0
  173. package/build/desktop-DahDxPzY.js +13 -0
  174. package/build/desktop-DfGtVFBV.js +13 -0
  175. package/build/{disconnect-CrBXKiIV.js → disconnect-40imhcBe.js} +1 -1
  176. package/build/disconnect-B_jLD_gT.js +12 -0
  177. package/build/disconnect-DsaQThRR.js +12 -0
  178. package/build/disconnect-XEeHiMc3.js +12 -0
  179. package/build/disconnect-bvMYVI2N.js +12 -0
  180. package/build/disconnect-psejE0N-.js +12 -0
  181. package/build/{discord-Cnx2Y1yH.js → discord-BRy_gP3a.js} +1 -1
  182. package/build/discord-BcXDwu2w.js +21 -0
  183. package/build/discord-CprGksgz.js +21 -0
  184. package/build/discord-D8Wp6Hvn.js +21 -0
  185. package/build/discord-DGvg7jXV.js +21 -0
  186. package/build/discord-DN46F51w.js +21 -0
  187. package/build/{etherscan-CbY0qVqk.js → etherscan-6l_VtB0l.js} +1 -1
  188. package/build/etherscan-DMq8ZJF1.js +10 -0
  189. package/build/etherscan-D_Xg2qtH.js +10 -0
  190. package/build/etherscan-DvrVmD5z.js +10 -0
  191. package/build/etherscan-KZ13vuJR.js +10 -0
  192. package/build/etherscan-WAOCli7_.js +10 -0
  193. package/build/{exclamation-triangle-NKjfPZLb.js → exclamation-triangle-30rAiCh3.js} +1 -1
  194. package/build/exclamation-triangle-C2LVRN1w.js +8 -0
  195. package/build/exclamation-triangle-CTxHe1FG.js +8 -0
  196. package/build/exclamation-triangle-DAQNvw2S.js +8 -0
  197. package/build/exclamation-triangle-DqcNDyNP.js +8 -0
  198. package/build/exclamation-triangle-V_24Lh6l.js +8 -0
  199. package/build/{extension-uIDQW8hs.js → extension-B82M_uA3.js} +1 -1
  200. package/build/extension-BloOTbuK.js +12 -0
  201. package/build/extension-CV2B07F9.js +12 -0
  202. package/build/extension-DOfYQtmZ.js +12 -0
  203. package/build/extension-Dc3pGuwI.js +12 -0
  204. package/build/extension-DvJaFXgn.js +12 -0
  205. package/build/{external-link-BjsPt1Wk.js → external-link-B1h4E1QK.js} +1 -1
  206. package/build/external-link-BV-rWlsp.js +12 -0
  207. package/build/external-link-Bq4Ed7OB.js +12 -0
  208. package/build/external-link-CR21AxzK.js +12 -0
  209. package/build/external-link-DWHhWTVZ.js +12 -0
  210. package/build/external-link-be2z9RZz.js +12 -0
  211. package/build/{facebook-ClfYfuBg.js → facebook-4PsxasqM.js} +1 -1
  212. package/build/facebook-BclT72kF.js +30 -0
  213. package/build/facebook-CEaaqB1a.js +30 -0
  214. package/build/facebook-CKNrHocM.js +30 -0
  215. package/build/facebook-Cr_amy2f.js +30 -0
  216. package/build/facebook-DMO1Iecs.js +30 -0
  217. package/build/{farcaster-DqRk0pQP.js → farcaster-BeShaDDo.js} +1 -1
  218. package/build/farcaster-C6Uwh1gZ.js +16 -0
  219. package/build/farcaster-CNPPWIcG.js +16 -0
  220. package/build/farcaster-Cgo06ThZ.js +16 -0
  221. package/build/farcaster-DYF54NwA.js +16 -0
  222. package/build/farcaster-Irh-wBKA.js +16 -0
  223. package/build/{filters-Du7ooQTS.js → filters-BLiKGlOb.js} +1 -1
  224. package/build/filters-BrLrvsSA.js +12 -0
  225. package/build/filters-CpVtLLm6.js +12 -0
  226. package/build/filters-DfQHrYem.js +12 -0
  227. package/build/filters-M_tEfnLC.js +12 -0
  228. package/build/filters-dMWe1Fm4.js +12 -0
  229. package/build/{github-CdNilU_F.js → github-BN-wbuak.js} +1 -1
  230. package/build/github-ByTgyaMt.js +22 -0
  231. package/build/github-CBg9nfKf.js +22 -0
  232. package/build/github-CXxQ79Xm.js +22 -0
  233. package/build/github-CdVP-T-P.js +22 -0
  234. package/build/github-Cry8tAmx.js +22 -0
  235. package/build/{google-c2oawZDu.js → google-73PSJHi4.js} +1 -1
  236. package/build/google-BAEP4GbO.js +22 -0
  237. package/build/google-BJkg6W9w.js +22 -0
  238. package/build/google-BmNdddii.js +22 -0
  239. package/build/google-W5vvtYSf.js +22 -0
  240. package/build/google-ng9KpVDk.js +22 -0
  241. package/build/{help-circle-CvOp-fSu.js → help-circle-BCfZ5pu7.js} +1 -1
  242. package/build/help-circle-C5nTmCY8.js +16 -0
  243. package/build/help-circle-CCNWSZU0.js +16 -0
  244. package/build/help-circle-CQILxjqJ.js +16 -0
  245. package/build/help-circle-Cn1K23aL.js +16 -0
  246. package/build/help-circle-fbxiQYPW.js +16 -0
  247. package/build/{id--Ctq_zaG.js → id-B0vzRAkG.js} +1 -1
  248. package/build/id-BRetMXO8.js +16 -0
  249. package/build/id-CQAtoOpV.js +16 -0
  250. package/build/id-Cd_itWe2.js +16 -0
  251. package/build/id-CtLRU498.js +16 -0
  252. package/build/id-_e9FUPy6.js +16 -0
  253. package/build/{image-dOJHl8yO.js → image-BOAw23hi.js} +1 -1
  254. package/build/image-ByYyM8Nt.js +8 -0
  255. package/build/image-C-rCcBWy.js +8 -0
  256. package/build/image-CkMyH-8s.js +8 -0
  257. package/build/image-DR2LLrGO.js +8 -0
  258. package/build/image-mATJuctN.js +8 -0
  259. package/build/{index-MDqAK73O.js → index-5j66g3eU.js} +78 -78
  260. package/build/index-B3Z-1Hyi.js +56802 -0
  261. package/build/{index-78dvHrFG.js → index-BSITl6_D.js} +19 -4
  262. package/build/index-BSgSJrvV.js +58120 -0
  263. package/build/index-BesM1v1A.js +1132 -0
  264. package/build/index-CEkNRDIJ.js +1132 -0
  265. package/build/index-DBsgwuXa.js +56802 -0
  266. package/build/index-Dm9OcjUi.js +1132 -0
  267. package/build/index-Du70KdEZ.js +1132 -0
  268. package/build/index-QfEL51gz.js +58696 -0
  269. package/build/index-fLpKjhHP.js +56802 -0
  270. package/build/index-tc7Bp8ir.js +1132 -0
  271. package/build/{index.es-CBciua01.js → index.es-BCQqRsyc.js} +2 -2
  272. package/build/index.es-BR-xiwCs.js +6945 -0
  273. package/build/index.es-BxziCvgQ.js +6945 -0
  274. package/build/index.es-CInrhLRT.js +6945 -0
  275. package/build/index.es-CmXnksI_.js +6945 -0
  276. package/build/index.es-httoDOfx.js +6945 -0
  277. package/build/index.js +1 -1
  278. package/build/{info-BRRufCqo.js → info-DLYc-kfd.js} +1 -1
  279. package/build/info-DRQ-9lZT.js +7 -0
  280. package/build/info-DUq2otir.js +7 -0
  281. package/build/info-DjXyHJ5l.js +7 -0
  282. package/build/info-DwBitt7G.js +7 -0
  283. package/build/info-PT12R5ZB.js +7 -0
  284. package/build/{info-circle-Jy_GPkzG.js → info-circle-3Ym_2YkX.js} +1 -1
  285. package/build/info-circle-B7Jj3sWu.js +16 -0
  286. package/build/info-circle-BVEgRveq.js +16 -0
  287. package/build/info-circle-BkYu7qoC.js +16 -0
  288. package/build/info-circle-C7UVc5kf.js +16 -0
  289. package/build/info-circle-Dqz-JXAM.js +16 -0
  290. package/build/{lightbulb-BMcquiN6.js → lightbulb-BCFNLoLa.js} +1 -1
  291. package/build/lightbulb-C3hNC9ce.js +7 -0
  292. package/build/lightbulb-CGrTlgy5.js +7 -0
  293. package/build/lightbulb-CYAFkEje.js +7 -0
  294. package/build/lightbulb-Cw1OHThl.js +7 -0
  295. package/build/lightbulb-DJAQrYcw.js +7 -0
  296. package/build/{mail-8_fR7jwX.js → mail-BBr2qwJz.js} +1 -1
  297. package/build/mail-BoeDgrsF.js +12 -0
  298. package/build/mail-BxqeuYXR.js +12 -0
  299. package/build/mail-D3sP4QHE.js +12 -0
  300. package/build/mail-DdZ064p3.js +12 -0
  301. package/build/mail-GgAOa8SK.js +12 -0
  302. package/build/{mobile-F5pGx8Bx.js → mobile-BSO7idy4.js} +1 -1
  303. package/build/mobile-BT0AmB6E.js +13 -0
  304. package/build/mobile-BgRcI1Uz.js +13 -0
  305. package/build/mobile-D0yhUm6z.js +13 -0
  306. package/build/mobile-DEHD9PfI.js +13 -0
  307. package/build/mobile-DlKCUvDK.js +13 -0
  308. package/build/{more-CFgI-KuY.js → more-C-GXuWfl.js} +1 -1
  309. package/build/more-C2mRyiJ3.js +15 -0
  310. package/build/more-CUgoxaPB.js +15 -0
  311. package/build/more-CWbwEXur.js +15 -0
  312. package/build/more-DPKivrMT.js +15 -0
  313. package/build/more-nyjagepE.js +15 -0
  314. package/build/{network-placeholder-BK_hN7My.js → network-placeholder-BhaYZ-db.js} +1 -1
  315. package/build/network-placeholder-CGo8GEDI.js +18 -0
  316. package/build/network-placeholder-COIt6rwZ.js +18 -0
  317. package/build/network-placeholder-CkgmuaWi.js +18 -0
  318. package/build/network-placeholder-DR70kpb6.js +18 -0
  319. package/build/network-placeholder-m1t5LM7D.js +18 -0
  320. package/build/{nftPlaceholder-oYr-rfWf.js → nftPlaceholder-BICuIVGD.js} +1 -1
  321. package/build/nftPlaceholder-CFBQ3V-A.js +12 -0
  322. package/build/nftPlaceholder-CLKQb892.js +12 -0
  323. package/build/nftPlaceholder-CQXZ6b5s.js +12 -0
  324. package/build/nftPlaceholder-Cn0ZozXZ.js +12 -0
  325. package/build/nftPlaceholder-DdjxtRIo.js +12 -0
  326. package/build/{off-CsnOEEgm.js → off-BKuC9aEM.js} +1 -1
  327. package/build/off-BpTKxd8Q.js +12 -0
  328. package/build/off-CEIO6rFG.js +12 -0
  329. package/build/off-CMpxDwij.js +12 -0
  330. package/build/off-CXgVRuX_.js +12 -0
  331. package/build/off-DMeCNxNW.js +12 -0
  332. package/build/{play-store-B_WvDbNc.js → play-store-BNlBgPAS.js} +1 -1
  333. package/build/play-store-Bv-7vxoU.js +36 -0
  334. package/build/play-store-BvofIvn1.js +36 -0
  335. package/build/play-store-D8YZ0umh.js +36 -0
  336. package/build/play-store-DIZY5nGr.js +36 -0
  337. package/build/play-store-DTwl2mNd.js +36 -0
  338. package/build/{plus-B8okLAjA.js → plus-B2GoboVd.js} +1 -1
  339. package/build/plus-BRZ5gPBP.js +17 -0
  340. package/build/plus-BYgrYDyX.js +17 -0
  341. package/build/plus-Btrmn8er.js +17 -0
  342. package/build/plus-Cp68NyNG.js +17 -0
  343. package/build/plus-DwxwA8a8.js +17 -0
  344. package/build/{qr-code-CDEi03T_.js → qr-code-9Q3xm6tX.js} +1 -1
  345. package/build/qr-code-9UhL1-Zh.js +10 -0
  346. package/build/qr-code-B1PGSq1r.js +10 -0
  347. package/build/qr-code-Bm8Um9RO.js +10 -0
  348. package/build/qr-code-C704zxVN.js +10 -0
  349. package/build/qr-code-DBcBUJJw.js +10 -0
  350. package/build/{recycle-horizontal-24aKFn47.js → recycle-horizontal--DF6pDSo.js} +1 -1
  351. package/build/recycle-horizontal-9k7DJBRW.js +13 -0
  352. package/build/recycle-horizontal-DALpRChQ.js +13 -0
  353. package/build/recycle-horizontal-Dn6IdVsu.js +13 -0
  354. package/build/recycle-horizontal-DrXKW5UK.js +13 -0
  355. package/build/recycle-horizontal-DvHV8dzA.js +13 -0
  356. package/build/{refresh-D0vjJNpL.js → refresh-B1bSci50.js} +1 -1
  357. package/build/refresh-BHNwXxWw.js +12 -0
  358. package/build/refresh-C-XG3OdA.js +12 -0
  359. package/build/refresh-CNUQPoSa.js +12 -0
  360. package/build/refresh-CTdWQPLm.js +12 -0
  361. package/build/refresh-Dwf5Ry_C.js +12 -0
  362. package/build/{reown-logo-4wiuxD5R.js → reown-logo-B-CnyQu8.js} +1 -1
  363. package/build/reown-logo-BEWNxV-o.js +16 -0
  364. package/build/reown-logo-BpxOWzI5.js +16 -0
  365. package/build/reown-logo-CUqB15Fr.js +16 -0
  366. package/build/reown-logo-CzawcJJk.js +16 -0
  367. package/build/reown-logo-X0S5Uu_2.js +16 -0
  368. package/build/{search-zgJx7Q2f.js → search-BRRfpe8o.js} +1 -1
  369. package/build/search-C7oIcFuI.js +12 -0
  370. package/build/search-Dyqd4f1r.js +12 -0
  371. package/build/search-MWduGP0u.js +12 -0
  372. package/build/search-qCor-zuv.js +12 -0
  373. package/build/search-uJr-Rf-j.js +12 -0
  374. package/build/{send-BWAE9wGf.js → send-B32qjt6t.js} +1 -1
  375. package/build/send-C5Lv-anF.js +19 -0
  376. package/build/send-CCnFdr-b.js +19 -0
  377. package/build/send-CMvuiDBB.js +19 -0
  378. package/build/send-D6Yg2Chv.js +19 -0
  379. package/build/send-DKIkDEdR.js +19 -0
  380. package/build/{swapHorizontal-Bd_ajCxX.js → swapHorizontal-BmusdEtw.js} +1 -1
  381. package/build/swapHorizontal-CQGizHcq.js +12 -0
  382. package/build/swapHorizontal-CXN8ve14.js +12 -0
  383. package/build/swapHorizontal-CZwRig3R.js +12 -0
  384. package/build/swapHorizontal-CqhEWONc.js +12 -0
  385. package/build/swapHorizontal-DkO3aaWy.js +12 -0
  386. package/build/{swapHorizontalBold-DYi6XPmg.js → swapHorizontalBold-3Eekzxlh.js} +1 -1
  387. package/build/swapHorizontalBold-BAHF_35w.js +12 -0
  388. package/build/swapHorizontalBold-C8jjsNww.js +12 -0
  389. package/build/swapHorizontalBold-Cf4kZE1p.js +12 -0
  390. package/build/swapHorizontalBold-Cj-aZhKP.js +12 -0
  391. package/build/swapHorizontalBold-D8fcFdVh.js +12 -0
  392. package/build/{swapHorizontalMedium-1bZPUw5j.js → swapHorizontalMedium-B0gPxCPh.js} +1 -1
  393. package/build/swapHorizontalMedium-B2YOyyef.js +20 -0
  394. package/build/swapHorizontalMedium-C1h1LH6D.js +20 -0
  395. package/build/swapHorizontalMedium-CHi78kTY.js +20 -0
  396. package/build/swapHorizontalMedium-CyQkfA-e.js +20 -0
  397. package/build/swapHorizontalMedium-Dsyl1SYS.js +20 -0
  398. package/build/{swapHorizontalRoundedBold-Cwlx0-ww.js → swapHorizontalRoundedBold-B2cHmJDU.js} +1 -1
  399. package/build/swapHorizontalRoundedBold-BM-HbcPb.js +12 -0
  400. package/build/swapHorizontalRoundedBold-D0hYOsQO.js +12 -0
  401. package/build/swapHorizontalRoundedBold-DrqwgbU1.js +12 -0
  402. package/build/swapHorizontalRoundedBold-DtfCPyh1.js +12 -0
  403. package/build/swapHorizontalRoundedBold-_xDJjrQq.js +12 -0
  404. package/build/{swapVertical-Bg7rKbFi.js → swapVertical-BKevs-Xs.js} +1 -1
  405. package/build/swapVertical-CQLcOeyi.js +12 -0
  406. package/build/swapVertical-Cv_yO69p.js +12 -0
  407. package/build/swapVertical-DZoWfrGF.js +12 -0
  408. package/build/swapVertical-mbNOhO_n.js +12 -0
  409. package/build/swapVertical-rE7XA29z.js +12 -0
  410. package/build/{telegram-BgkCYjDg.js → telegram-B-7R2-YU.js} +1 -1
  411. package/build/telegram-BN5AMptm.js +20 -0
  412. package/build/telegram-BWTlWwCg.js +20 -0
  413. package/build/telegram-BcTcIMja.js +20 -0
  414. package/build/telegram-BxTL_opq.js +20 -0
  415. package/build/telegram-D8RtgFZN.js +20 -0
  416. package/build/{three-dots-CTsLXCIe.js → three-dots-BBoFXnBM.js} +1 -1
  417. package/build/three-dots-C5AhBMAN.js +9 -0
  418. package/build/three-dots-CByOzMHJ.js +9 -0
  419. package/build/three-dots-CG049xkD.js +9 -0
  420. package/build/three-dots-CYrXR7sH.js +9 -0
  421. package/build/three-dots-D7mTut-P.js +9 -0
  422. package/build/{twitch-Bm9QUsgn.js → twitch-1f_tRyaJ.js} +1 -1
  423. package/build/twitch-2uSpB2ny.js +22 -0
  424. package/build/twitch-CDO9mcqH.js +22 -0
  425. package/build/twitch-CIyTXBak.js +22 -0
  426. package/build/twitch-SgSg8Ftw.js +22 -0
  427. package/build/twitch-nHHS9p0r.js +22 -0
  428. package/build/{twitterIcon-ByU8Oxgt.js → twitterIcon-7GsjZC-j.js} +1 -1
  429. package/build/twitterIcon-BfHqHCQn.js +10 -0
  430. package/build/twitterIcon-Cj2JgeaU.js +10 -0
  431. package/build/twitterIcon-D0weXlXx.js +10 -0
  432. package/build/twitterIcon-D3Rx7Nur.js +10 -0
  433. package/build/twitterIcon-DUk89VSP.js +10 -0
  434. package/build/{verify-BAUlhB8a.js → verify-4t5iVZnq.js} +1 -1
  435. package/build/verify-B1IdHSvm.js +12 -0
  436. package/build/verify-BjsqAbQm.js +12 -0
  437. package/build/verify-CQSakZMb.js +12 -0
  438. package/build/verify-CsX-TaG7.js +12 -0
  439. package/build/verify-D52M7f7L.js +12 -0
  440. package/build/{verify-filled-B8vgc1uy.js → verify-filled-AFqcHqJG.js} +1 -1
  441. package/build/verify-filled-B53WWNnP.js +12 -0
  442. package/build/verify-filled-BJz7uOrP.js +12 -0
  443. package/build/verify-filled-BnzJE5KH.js +12 -0
  444. package/build/verify-filled-Ck8iH9ZZ.js +12 -0
  445. package/build/verify-filled-eSlh7VZu.js +12 -0
  446. package/build/{w3m-modal-D-PyxelX.js → w3m-modal-0FsWpWW4.js} +2 -2
  447. package/build/w3m-modal-B-flr4qk.js +1721 -0
  448. package/build/w3m-modal-B7ovP7xX.js +1721 -0
  449. package/build/w3m-modal-CUu38D_O.js +1721 -0
  450. package/build/w3m-modal-CgxQoU-X.js +1721 -0
  451. package/build/w3m-modal-CvTGNLGB.js +1721 -0
  452. package/build/{wallet-BZM-8wtO.js → wallet-BjIrHAuL.js} +1 -1
  453. package/build/wallet-Cyrm9ue6.js +12 -0
  454. package/build/wallet-D1-dL20U.js +12 -0
  455. package/build/wallet-D1o0P1MX.js +12 -0
  456. package/build/wallet-DF6o1Qjf.js +12 -0
  457. package/build/wallet-Dkm1YWKe.js +12 -0
  458. package/build/{wallet-placeholder-DvsfmFF_.js → wallet-placeholder-CJe7KhQm.js} +1 -1
  459. package/build/wallet-placeholder-DPq3hrm5.js +18 -0
  460. package/build/wallet-placeholder-DwB_mqh6.js +18 -0
  461. package/build/wallet-placeholder-QGlENrPF.js +18 -0
  462. package/build/wallet-placeholder-lFjFj0iq.js +18 -0
  463. package/build/wallet-placeholder-m1yiDaOk.js +18 -0
  464. package/build/{walletconnect-BIuzh5IB.js → walletconnect-1-5hRDpO.js} +1 -1
  465. package/build/walletconnect-B-SWHAKN.js +38 -0
  466. package/build/walletconnect-BdYqz8ZO.js +38 -0
  467. package/build/walletconnect-BppCBhY9.js +38 -0
  468. package/build/walletconnect-CJ3PrSaF.js +38 -0
  469. package/build/walletconnect-DPFi34hr.js +38 -0
  470. package/build/{warning-circle-g-maNBy5.js → warning-circle-BfVXFWdW.js} +1 -1
  471. package/build/warning-circle-C9UL1o7D.js +16 -0
  472. package/build/warning-circle-CUL1PAje.js +16 -0
  473. package/build/warning-circle-IlZU_qOD.js +16 -0
  474. package/build/warning-circle-LSb_qNNz.js +16 -0
  475. package/build/warning-circle-OESgmTDk.js +16 -0
  476. package/build/{x-CDKrnAUE.js → x-3B0HsJ_u.js} +1 -1
  477. package/build/x-B2jeAcFG.js +16 -0
  478. package/build/x-CnM_HEX7.js +16 -0
  479. package/build/x-DCS6owDT.js +16 -0
  480. package/build/x-DbOdez_3.js +16 -0
  481. package/build/x-KhJddrp6.js +16 -0
  482. package/package.json +4 -4
@@ -0,0 +1,1721 @@
1
+ import { w as withErrorBoundary, p as proxy, s as subscribeKey, q as subscribe, M as ModalController, t as SIWXUtil, R as RouterController, i, r as resetStyles, a as i$1, x, u as AlertController, e as elementStyles, o as colorStyles, h as ChainController, d as AssetUtil, j as AssetController, v as ConstantsUtil, E as EventsController, O as OptionsController, C as ConnectorController, y as AccountController, k as SnackController, A as ApiController, T as ThemeController, z as initializeTheming, b as CoreHelperUtil, g as ConstantsUtil$1 } from "./core-BkuIc82n.js";
2
+ import { c as customElement, n, r, o, U as UiHelperUtil } from "./index-BesM1v1A.js";
3
+ const state = proxy({
4
+ message: "",
5
+ open: false,
6
+ triggerRect: {
7
+ width: 0,
8
+ height: 0,
9
+ top: 0,
10
+ left: 0
11
+ },
12
+ variant: "shade"
13
+ });
14
+ const controller = {
15
+ state,
16
+ subscribe(callback) {
17
+ return subscribe(state, () => callback(state));
18
+ },
19
+ subscribeKey(key, callback) {
20
+ return subscribeKey(state, key, callback);
21
+ },
22
+ showTooltip({ message, triggerRect, variant }) {
23
+ state.open = true;
24
+ state.message = message;
25
+ state.triggerRect = triggerRect;
26
+ state.variant = variant;
27
+ },
28
+ hide() {
29
+ state.open = false;
30
+ state.message = "";
31
+ state.triggerRect = {
32
+ width: 0,
33
+ height: 0,
34
+ top: 0,
35
+ left: 0
36
+ };
37
+ }
38
+ };
39
+ const TooltipController = withErrorBoundary(controller);
40
+ const ModalUtil = {
41
+ isUnsupportedChainView() {
42
+ return RouterController.state.view === "UnsupportedChain" || RouterController.state.view === "SwitchNetwork" && RouterController.state.history.includes("UnsupportedChain");
43
+ },
44
+ async safeClose() {
45
+ if (this.isUnsupportedChainView()) {
46
+ ModalController.shake();
47
+ return;
48
+ }
49
+ const isSIWXCloseDisabled = await SIWXUtil.isSIWXCloseDisabled();
50
+ if (isSIWXCloseDisabled) {
51
+ ModalController.shake();
52
+ return;
53
+ }
54
+ ModalController.close();
55
+ }
56
+ };
57
+ const styles$a = i`
58
+ :host {
59
+ display: block;
60
+ border-radius: clamp(0px, var(--wui-border-radius-l), 44px);
61
+ box-shadow: 0 0 0 1px var(--wui-color-gray-glass-005);
62
+ background-color: var(--wui-color-modal-bg);
63
+ overflow: hidden;
64
+ }
65
+
66
+ :host([data-embedded='true']) {
67
+ box-shadow:
68
+ 0 0 0 1px var(--wui-color-gray-glass-005),
69
+ 0px 4px 12px 4px var(--w3m-card-embedded-shadow-color);
70
+ }
71
+ `;
72
+ var __decorate$a = function(decorators, target, key, desc) {
73
+ var c = arguments.length, r2 = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
74
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r2 = Reflect.decorate(decorators, target, key, desc);
75
+ else for (var i2 = decorators.length - 1; i2 >= 0; i2--) if (d = decorators[i2]) r2 = (c < 3 ? d(r2) : c > 3 ? d(target, key, r2) : d(target, key)) || r2;
76
+ return c > 3 && r2 && Object.defineProperty(target, key, r2), r2;
77
+ };
78
+ let WuiCard = class WuiCard2 extends i$1 {
79
+ render() {
80
+ return x`<slot></slot>`;
81
+ }
82
+ };
83
+ WuiCard.styles = [resetStyles, styles$a];
84
+ WuiCard = __decorate$a([
85
+ customElement("wui-card")
86
+ ], WuiCard);
87
+ const styles$9 = i`
88
+ :host {
89
+ display: flex;
90
+ align-items: center;
91
+ justify-content: center;
92
+ padding: var(--wui-spacing-s);
93
+ border-radius: var(--wui-border-radius-s);
94
+ border: 1px solid var(--wui-color-dark-glass-100);
95
+ box-sizing: border-box;
96
+ background-color: var(--wui-color-bg-325);
97
+ box-shadow: 0px 0px 16px 0px rgba(0, 0, 0, 0.25);
98
+ }
99
+
100
+ wui-flex {
101
+ width: 100%;
102
+ }
103
+
104
+ wui-text {
105
+ word-break: break-word;
106
+ flex: 1;
107
+ }
108
+
109
+ .close {
110
+ cursor: pointer;
111
+ }
112
+
113
+ .icon-box {
114
+ height: 40px;
115
+ width: 40px;
116
+ border-radius: var(--wui-border-radius-3xs);
117
+ background-color: var(--local-icon-bg-value);
118
+ }
119
+ `;
120
+ var __decorate$9 = function(decorators, target, key, desc) {
121
+ var c = arguments.length, r2 = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
122
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r2 = Reflect.decorate(decorators, target, key, desc);
123
+ else for (var i2 = decorators.length - 1; i2 >= 0; i2--) if (d = decorators[i2]) r2 = (c < 3 ? d(r2) : c > 3 ? d(target, key, r2) : d(target, key)) || r2;
124
+ return c > 3 && r2 && Object.defineProperty(target, key, r2), r2;
125
+ };
126
+ let WuiAlertBar = class WuiAlertBar2 extends i$1 {
127
+ constructor() {
128
+ super(...arguments);
129
+ this.message = "";
130
+ this.backgroundColor = "accent-100";
131
+ this.iconColor = "accent-100";
132
+ this.icon = "info";
133
+ }
134
+ render() {
135
+ this.style.cssText = `
136
+ --local-icon-bg-value: var(--wui-color-${this.backgroundColor});
137
+ `;
138
+ return x`
139
+ <wui-flex flexDirection="row" justifyContent="space-between" alignItems="center">
140
+ <wui-flex columnGap="xs" flexDirection="row" alignItems="center">
141
+ <wui-flex
142
+ flexDirection="row"
143
+ alignItems="center"
144
+ justifyContent="center"
145
+ class="icon-box"
146
+ >
147
+ <wui-icon color=${this.iconColor} size="md" name=${this.icon}></wui-icon>
148
+ </wui-flex>
149
+ <wui-text variant="small-500" color="bg-350" data-testid="wui-alertbar-text"
150
+ >${this.message}</wui-text
151
+ >
152
+ </wui-flex>
153
+ <wui-icon
154
+ class="close"
155
+ color="bg-350"
156
+ size="sm"
157
+ name="close"
158
+ @click=${this.onClose}
159
+ ></wui-icon>
160
+ </wui-flex>
161
+ `;
162
+ }
163
+ onClose() {
164
+ AlertController.close();
165
+ }
166
+ };
167
+ WuiAlertBar.styles = [resetStyles, styles$9];
168
+ __decorate$9([
169
+ n()
170
+ ], WuiAlertBar.prototype, "message", void 0);
171
+ __decorate$9([
172
+ n()
173
+ ], WuiAlertBar.prototype, "backgroundColor", void 0);
174
+ __decorate$9([
175
+ n()
176
+ ], WuiAlertBar.prototype, "iconColor", void 0);
177
+ __decorate$9([
178
+ n()
179
+ ], WuiAlertBar.prototype, "icon", void 0);
180
+ WuiAlertBar = __decorate$9([
181
+ customElement("wui-alertbar")
182
+ ], WuiAlertBar);
183
+ const styles$8 = i`
184
+ :host {
185
+ display: block;
186
+ position: absolute;
187
+ top: var(--wui-spacing-s);
188
+ left: var(--wui-spacing-l);
189
+ right: var(--wui-spacing-l);
190
+ opacity: 0;
191
+ pointer-events: none;
192
+ }
193
+ `;
194
+ var __decorate$8 = function(decorators, target, key, desc) {
195
+ var c = arguments.length, r2 = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
196
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r2 = Reflect.decorate(decorators, target, key, desc);
197
+ else for (var i2 = decorators.length - 1; i2 >= 0; i2--) if (d = decorators[i2]) r2 = (c < 3 ? d(r2) : c > 3 ? d(target, key, r2) : d(target, key)) || r2;
198
+ return c > 3 && r2 && Object.defineProperty(target, key, r2), r2;
199
+ };
200
+ const presets$1 = {
201
+ info: {
202
+ backgroundColor: "fg-350",
203
+ iconColor: "fg-325",
204
+ icon: "info"
205
+ },
206
+ success: {
207
+ backgroundColor: "success-glass-reown-020",
208
+ iconColor: "success-125",
209
+ icon: "checkmark"
210
+ },
211
+ warning: {
212
+ backgroundColor: "warning-glass-reown-020",
213
+ iconColor: "warning-100",
214
+ icon: "warningCircle"
215
+ },
216
+ error: {
217
+ backgroundColor: "error-glass-reown-020",
218
+ iconColor: "error-125",
219
+ icon: "exclamationTriangle"
220
+ }
221
+ };
222
+ let W3mAlertBar = class W3mAlertBar2 extends i$1 {
223
+ constructor() {
224
+ super();
225
+ this.unsubscribe = [];
226
+ this.open = AlertController.state.open;
227
+ this.onOpen(true);
228
+ this.unsubscribe.push(AlertController.subscribeKey("open", (val) => {
229
+ this.open = val;
230
+ this.onOpen(false);
231
+ }));
232
+ }
233
+ disconnectedCallback() {
234
+ this.unsubscribe.forEach((unsubscribe) => unsubscribe());
235
+ }
236
+ render() {
237
+ const { message, variant } = AlertController.state;
238
+ const preset = presets$1[variant];
239
+ return x`
240
+ <wui-alertbar
241
+ message=${message}
242
+ backgroundColor=${preset == null ? void 0 : preset.backgroundColor}
243
+ iconColor=${preset == null ? void 0 : preset.iconColor}
244
+ icon=${preset == null ? void 0 : preset.icon}
245
+ ></wui-alertbar>
246
+ `;
247
+ }
248
+ onOpen(isMounted) {
249
+ if (this.open) {
250
+ this.animate([
251
+ { opacity: 0, transform: "scale(0.85)" },
252
+ { opacity: 1, transform: "scale(1)" }
253
+ ], {
254
+ duration: 150,
255
+ fill: "forwards",
256
+ easing: "ease"
257
+ });
258
+ this.style.cssText = `pointer-events: auto`;
259
+ } else if (!isMounted) {
260
+ this.animate([
261
+ { opacity: 1, transform: "scale(1)" },
262
+ { opacity: 0, transform: "scale(0.85)" }
263
+ ], {
264
+ duration: 150,
265
+ fill: "forwards",
266
+ easing: "ease"
267
+ });
268
+ this.style.cssText = `pointer-events: none`;
269
+ }
270
+ }
271
+ };
272
+ W3mAlertBar.styles = styles$8;
273
+ __decorate$8([
274
+ r()
275
+ ], W3mAlertBar.prototype, "open", void 0);
276
+ W3mAlertBar = __decorate$8([
277
+ customElement("w3m-alertbar")
278
+ ], W3mAlertBar);
279
+ const styles$7 = i`
280
+ button {
281
+ border-radius: var(--local-border-radius);
282
+ color: var(--wui-color-fg-100);
283
+ padding: var(--local-padding);
284
+ }
285
+
286
+ @media (max-width: 700px) {
287
+ button {
288
+ padding: var(--wui-spacing-s);
289
+ }
290
+ }
291
+
292
+ button > wui-icon {
293
+ pointer-events: none;
294
+ }
295
+
296
+ button:disabled > wui-icon {
297
+ color: var(--wui-color-bg-300) !important;
298
+ }
299
+
300
+ button:disabled {
301
+ background-color: transparent;
302
+ }
303
+ `;
304
+ var __decorate$7 = function(decorators, target, key, desc) {
305
+ var c = arguments.length, r2 = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
306
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r2 = Reflect.decorate(decorators, target, key, desc);
307
+ else for (var i2 = decorators.length - 1; i2 >= 0; i2--) if (d = decorators[i2]) r2 = (c < 3 ? d(r2) : c > 3 ? d(target, key, r2) : d(target, key)) || r2;
308
+ return c > 3 && r2 && Object.defineProperty(target, key, r2), r2;
309
+ };
310
+ let WuiIconLink = class WuiIconLink2 extends i$1 {
311
+ constructor() {
312
+ super(...arguments);
313
+ this.size = "md";
314
+ this.disabled = false;
315
+ this.icon = "copy";
316
+ this.iconColor = "inherit";
317
+ }
318
+ render() {
319
+ const borderRadius = this.size === "lg" ? "--wui-border-radius-xs" : "--wui-border-radius-xxs";
320
+ const padding = this.size === "lg" ? "--wui-spacing-1xs" : "--wui-spacing-2xs";
321
+ this.style.cssText = `
322
+ --local-border-radius: var(${borderRadius});
323
+ --local-padding: var(${padding});
324
+ `;
325
+ return x`
326
+ <button ?disabled=${this.disabled}>
327
+ <wui-icon color=${this.iconColor} size=${this.size} name=${this.icon}></wui-icon>
328
+ </button>
329
+ `;
330
+ }
331
+ };
332
+ WuiIconLink.styles = [resetStyles, elementStyles, colorStyles, styles$7];
333
+ __decorate$7([
334
+ n()
335
+ ], WuiIconLink.prototype, "size", void 0);
336
+ __decorate$7([
337
+ n({ type: Boolean })
338
+ ], WuiIconLink.prototype, "disabled", void 0);
339
+ __decorate$7([
340
+ n()
341
+ ], WuiIconLink.prototype, "icon", void 0);
342
+ __decorate$7([
343
+ n()
344
+ ], WuiIconLink.prototype, "iconColor", void 0);
345
+ WuiIconLink = __decorate$7([
346
+ customElement("wui-icon-link")
347
+ ], WuiIconLink);
348
+ const styles$6 = i`
349
+ button {
350
+ display: block;
351
+ display: flex;
352
+ align-items: center;
353
+ padding: var(--wui-spacing-xxs);
354
+ gap: var(--wui-spacing-xxs);
355
+ transition: all var(--wui-ease-out-power-1) var(--wui-duration-md);
356
+ border-radius: var(--wui-border-radius-xxs);
357
+ }
358
+
359
+ wui-image {
360
+ border-radius: 100%;
361
+ width: var(--wui-spacing-xl);
362
+ height: var(--wui-spacing-xl);
363
+ }
364
+
365
+ wui-icon-box {
366
+ width: var(--wui-spacing-xl);
367
+ height: var(--wui-spacing-xl);
368
+ }
369
+
370
+ button:hover {
371
+ background-color: var(--wui-color-gray-glass-002);
372
+ }
373
+
374
+ button:active {
375
+ background-color: var(--wui-color-gray-glass-005);
376
+ }
377
+ `;
378
+ var __decorate$6 = function(decorators, target, key, desc) {
379
+ var c = arguments.length, r2 = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
380
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r2 = Reflect.decorate(decorators, target, key, desc);
381
+ else for (var i2 = decorators.length - 1; i2 >= 0; i2--) if (d = decorators[i2]) r2 = (c < 3 ? d(r2) : c > 3 ? d(target, key, r2) : d(target, key)) || r2;
382
+ return c > 3 && r2 && Object.defineProperty(target, key, r2), r2;
383
+ };
384
+ let WuiSelect = class WuiSelect2 extends i$1 {
385
+ constructor() {
386
+ super(...arguments);
387
+ this.imageSrc = "";
388
+ }
389
+ render() {
390
+ return x`<button>
391
+ ${this.imageTemplate()}
392
+ <wui-icon size="xs" color="fg-200" name="chevronBottom"></wui-icon>
393
+ </button>`;
394
+ }
395
+ imageTemplate() {
396
+ if (this.imageSrc) {
397
+ return x`<wui-image src=${this.imageSrc} alt="select visual"></wui-image>`;
398
+ }
399
+ return x`<wui-icon-box
400
+ size="xxs"
401
+ iconColor="fg-200"
402
+ backgroundColor="fg-100"
403
+ background="opaque"
404
+ icon="networkPlaceholder"
405
+ ></wui-icon-box>`;
406
+ }
407
+ };
408
+ WuiSelect.styles = [resetStyles, elementStyles, colorStyles, styles$6];
409
+ __decorate$6([
410
+ n()
411
+ ], WuiSelect.prototype, "imageSrc", void 0);
412
+ WuiSelect = __decorate$6([
413
+ customElement("wui-select")
414
+ ], WuiSelect);
415
+ const styles$5 = i`
416
+ :host {
417
+ height: 64px;
418
+ }
419
+
420
+ wui-text {
421
+ text-transform: capitalize;
422
+ }
423
+
424
+ wui-flex.w3m-header-title {
425
+ transform: translateY(0);
426
+ opacity: 1;
427
+ }
428
+
429
+ wui-flex.w3m-header-title[view-direction='prev'] {
430
+ animation:
431
+ slide-down-out 120ms forwards var(--wui-ease-out-power-2),
432
+ slide-down-in 120ms forwards var(--wui-ease-out-power-2);
433
+ animation-delay: 0ms, 200ms;
434
+ }
435
+
436
+ wui-flex.w3m-header-title[view-direction='next'] {
437
+ animation:
438
+ slide-up-out 120ms forwards var(--wui-ease-out-power-2),
439
+ slide-up-in 120ms forwards var(--wui-ease-out-power-2);
440
+ animation-delay: 0ms, 200ms;
441
+ }
442
+
443
+ wui-icon-link[data-hidden='true'] {
444
+ opacity: 0 !important;
445
+ pointer-events: none;
446
+ }
447
+
448
+ @keyframes slide-up-out {
449
+ from {
450
+ transform: translateY(0px);
451
+ opacity: 1;
452
+ }
453
+ to {
454
+ transform: translateY(3px);
455
+ opacity: 0;
456
+ }
457
+ }
458
+
459
+ @keyframes slide-up-in {
460
+ from {
461
+ transform: translateY(-3px);
462
+ opacity: 0;
463
+ }
464
+ to {
465
+ transform: translateY(0);
466
+ opacity: 1;
467
+ }
468
+ }
469
+
470
+ @keyframes slide-down-out {
471
+ from {
472
+ transform: translateY(0px);
473
+ opacity: 1;
474
+ }
475
+ to {
476
+ transform: translateY(-3px);
477
+ opacity: 0;
478
+ }
479
+ }
480
+
481
+ @keyframes slide-down-in {
482
+ from {
483
+ transform: translateY(3px);
484
+ opacity: 0;
485
+ }
486
+ to {
487
+ transform: translateY(0);
488
+ opacity: 1;
489
+ }
490
+ }
491
+ `;
492
+ var __decorate$5 = function(decorators, target, key, desc) {
493
+ var c = arguments.length, r2 = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
494
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r2 = Reflect.decorate(decorators, target, key, desc);
495
+ else for (var i2 = decorators.length - 1; i2 >= 0; i2--) if (d = decorators[i2]) r2 = (c < 3 ? d(r2) : c > 3 ? d(target, key, r2) : d(target, key)) || r2;
496
+ return c > 3 && r2 && Object.defineProperty(target, key, r2), r2;
497
+ };
498
+ const BETA_SCREENS = ["SmartSessionList"];
499
+ function headings() {
500
+ var _a, _b, _c, _d, _e, _f, _g;
501
+ const connectorName = (_b = (_a = RouterController.state.data) == null ? void 0 : _a.connector) == null ? void 0 : _b.name;
502
+ const walletName = (_d = (_c = RouterController.state.data) == null ? void 0 : _c.wallet) == null ? void 0 : _d.name;
503
+ const networkName = (_f = (_e = RouterController.state.data) == null ? void 0 : _e.network) == null ? void 0 : _f.name;
504
+ const name = walletName ?? connectorName;
505
+ const connectors = ConnectorController.getConnectors();
506
+ const isEmail = connectors.length === 1 && ((_g = connectors[0]) == null ? void 0 : _g.id) === "w3m-email";
507
+ return {
508
+ Connect: `Connect ${isEmail ? "Email" : ""} Wallet`,
509
+ Create: "Create Wallet",
510
+ ChooseAccountName: void 0,
511
+ Account: void 0,
512
+ AccountSettings: void 0,
513
+ AllWallets: "All Wallets",
514
+ ApproveTransaction: "Approve Transaction",
515
+ BuyInProgress: "Buy",
516
+ ConnectingExternal: name ?? "Connect Wallet",
517
+ ConnectingWalletConnect: name ?? "WalletConnect",
518
+ ConnectingWalletConnectBasic: "WalletConnect",
519
+ ConnectingSiwe: "Sign In",
520
+ Convert: "Convert",
521
+ ConvertSelectToken: "Select token",
522
+ ConvertPreview: "Preview convert",
523
+ Downloads: name ? `Get ${name}` : "Downloads",
524
+ EmailLogin: "Email Login",
525
+ EmailVerifyOtp: "Confirm Email",
526
+ EmailVerifyDevice: "Register Device",
527
+ GetWallet: "Get a wallet",
528
+ Networks: "Choose Network",
529
+ OnRampProviders: "Choose Provider",
530
+ OnRampActivity: "Activity",
531
+ OnRampTokenSelect: "Select Token",
532
+ OnRampFiatSelect: "Select Currency",
533
+ Pay: "How you pay",
534
+ Profile: void 0,
535
+ SwitchNetwork: networkName ?? "Switch Network",
536
+ SwitchAddress: "Switch Address",
537
+ Transactions: "Activity",
538
+ UnsupportedChain: "Switch Network",
539
+ UpgradeEmailWallet: "Upgrade your Wallet",
540
+ UpdateEmailWallet: "Edit Email",
541
+ UpdateEmailPrimaryOtp: "Confirm Current Email",
542
+ UpdateEmailSecondaryOtp: "Confirm New Email",
543
+ WhatIsABuy: "What is Buy?",
544
+ RegisterAccountName: "Choose name",
545
+ RegisterAccountNameSuccess: "",
546
+ WalletReceive: "Receive",
547
+ WalletCompatibleNetworks: "Compatible Networks",
548
+ Swap: "Swap",
549
+ SwapSelectToken: "Select token",
550
+ SwapPreview: "Preview swap",
551
+ WalletSend: "Send",
552
+ WalletSendPreview: "Review send",
553
+ WalletSendSelectToken: "Select Token",
554
+ WhatIsANetwork: "What is a network?",
555
+ WhatIsAWallet: "What is a wallet?",
556
+ ConnectWallets: "Connect wallet",
557
+ ConnectSocials: "All socials",
558
+ ConnectingSocial: AccountController.state.socialProvider ? AccountController.state.socialProvider : "Connect Social",
559
+ ConnectingMultiChain: "Select chain",
560
+ ConnectingFarcaster: "Farcaster",
561
+ SwitchActiveChain: "Switch chain",
562
+ SmartSessionCreated: void 0,
563
+ SmartSessionList: "Smart Sessions",
564
+ SIWXSignMessage: "Sign In",
565
+ PayLoading: "Payment in progress"
566
+ };
567
+ }
568
+ let W3mHeader = class W3mHeader2 extends i$1 {
569
+ constructor() {
570
+ super();
571
+ this.unsubscribe = [];
572
+ this.heading = headings()[RouterController.state.view];
573
+ this.network = ChainController.state.activeCaipNetwork;
574
+ this.networkImage = AssetUtil.getNetworkImage(this.network);
575
+ this.showBack = false;
576
+ this.prevHistoryLength = 1;
577
+ this.view = RouterController.state.view;
578
+ this.viewDirection = "";
579
+ this.headerText = headings()[RouterController.state.view];
580
+ this.unsubscribe.push(AssetController.subscribeNetworkImages(() => {
581
+ this.networkImage = AssetUtil.getNetworkImage(this.network);
582
+ }), RouterController.subscribeKey("view", (val) => {
583
+ setTimeout(() => {
584
+ this.view = val;
585
+ this.headerText = headings()[val];
586
+ }, ConstantsUtil.ANIMATION_DURATIONS.HeaderText);
587
+ this.onViewChange();
588
+ this.onHistoryChange();
589
+ }), ChainController.subscribeKey("activeCaipNetwork", (val) => {
590
+ this.network = val;
591
+ this.networkImage = AssetUtil.getNetworkImage(this.network);
592
+ }));
593
+ }
594
+ disconnectCallback() {
595
+ this.unsubscribe.forEach((unsubscribe) => unsubscribe());
596
+ }
597
+ render() {
598
+ return x`
599
+ <wui-flex .padding=${this.getPadding()} justifyContent="space-between" alignItems="center">
600
+ ${this.leftHeaderTemplate()} ${this.titleTemplate()} ${this.rightHeaderTemplate()}
601
+ </wui-flex>
602
+ `;
603
+ }
604
+ onWalletHelp() {
605
+ EventsController.sendEvent({ type: "track", event: "CLICK_WALLET_HELP" });
606
+ RouterController.push("WhatIsAWallet");
607
+ }
608
+ async onClose() {
609
+ await ModalUtil.safeClose();
610
+ }
611
+ rightHeaderTemplate() {
612
+ var _a, _b, _c;
613
+ const isSmartSessionsEnabled = (_c = (_b = (_a = OptionsController) == null ? void 0 : _a.state) == null ? void 0 : _b.features) == null ? void 0 : _c.smartSessions;
614
+ if (RouterController.state.view !== "Account" || !isSmartSessionsEnabled) {
615
+ return this.closeButtonTemplate();
616
+ }
617
+ return x`<wui-flex>
618
+ <wui-icon-link
619
+ icon="clock"
620
+ @click=${() => RouterController.push("SmartSessionList")}
621
+ data-testid="w3m-header-smart-sessions"
622
+ ></wui-icon-link>
623
+ ${this.closeButtonTemplate()}
624
+ </wui-flex> `;
625
+ }
626
+ closeButtonTemplate() {
627
+ return x`
628
+ <wui-icon-link
629
+ icon="close"
630
+ @click=${this.onClose.bind(this)}
631
+ data-testid="w3m-header-close"
632
+ ></wui-icon-link>
633
+ `;
634
+ }
635
+ titleTemplate() {
636
+ const isBeta = BETA_SCREENS.includes(this.view);
637
+ return x`
638
+ <wui-flex
639
+ view-direction="${this.viewDirection}"
640
+ class="w3m-header-title"
641
+ alignItems="center"
642
+ gap="xs"
643
+ >
644
+ <wui-text variant="paragraph-700" color="fg-100" data-testid="w3m-header-text"
645
+ >${this.headerText}</wui-text
646
+ >
647
+ ${isBeta ? x`<wui-tag variant="main">Beta</wui-tag>` : null}
648
+ </wui-flex>
649
+ `;
650
+ }
651
+ leftHeaderTemplate() {
652
+ var _a;
653
+ const { view } = RouterController.state;
654
+ const isConnectHelp = view === "Connect";
655
+ const isEmbeddedEnable = OptionsController.state.enableEmbedded;
656
+ const isApproveTransaction = view === "ApproveTransaction";
657
+ const isConnectingSIWEView = view === "ConnectingSiwe";
658
+ const isAccountView = view === "Account";
659
+ const enableNetworkSwitch = OptionsController.state.enableNetworkSwitch;
660
+ const shouldHideBack = isApproveTransaction || isConnectingSIWEView || isConnectHelp && isEmbeddedEnable;
661
+ if (isAccountView && enableNetworkSwitch) {
662
+ return x`<wui-select
663
+ id="dynamic"
664
+ data-testid="w3m-account-select-network"
665
+ active-network=${o((_a = this.network) == null ? void 0 : _a.name)}
666
+ @click=${this.onNetworks.bind(this)}
667
+ imageSrc=${o(this.networkImage)}
668
+ ></wui-select>`;
669
+ }
670
+ if (this.showBack && !shouldHideBack) {
671
+ return x`<wui-icon-link
672
+ data-testid="header-back"
673
+ id="dynamic"
674
+ icon="chevronLeft"
675
+ @click=${this.onGoBack.bind(this)}
676
+ ></wui-icon-link>`;
677
+ }
678
+ return x`<wui-icon-link
679
+ data-hidden=${!isConnectHelp}
680
+ id="dynamic"
681
+ icon="helpCircle"
682
+ @click=${this.onWalletHelp.bind(this)}
683
+ ></wui-icon-link>`;
684
+ }
685
+ onNetworks() {
686
+ if (this.isAllowedNetworkSwitch()) {
687
+ EventsController.sendEvent({ type: "track", event: "CLICK_NETWORKS" });
688
+ RouterController.push("Networks");
689
+ }
690
+ }
691
+ isAllowedNetworkSwitch() {
692
+ const requestedCaipNetworks = ChainController.getAllRequestedCaipNetworks();
693
+ const isMultiNetwork = requestedCaipNetworks ? requestedCaipNetworks.length > 1 : false;
694
+ const isValidNetwork = requestedCaipNetworks == null ? void 0 : requestedCaipNetworks.find(({ id }) => {
695
+ var _a;
696
+ return id === ((_a = this.network) == null ? void 0 : _a.id);
697
+ });
698
+ return isMultiNetwork || !isValidNetwork;
699
+ }
700
+ getPadding() {
701
+ if (this.heading) {
702
+ return ["l", "2l", "l", "2l"];
703
+ }
704
+ return ["0", "2l", "0", "2l"];
705
+ }
706
+ onViewChange() {
707
+ const { history } = RouterController.state;
708
+ let direction = ConstantsUtil.VIEW_DIRECTION.Next;
709
+ if (history.length < this.prevHistoryLength) {
710
+ direction = ConstantsUtil.VIEW_DIRECTION.Prev;
711
+ }
712
+ this.prevHistoryLength = history.length;
713
+ this.viewDirection = direction;
714
+ }
715
+ async onHistoryChange() {
716
+ var _a;
717
+ const { history } = RouterController.state;
718
+ const buttonEl = (_a = this.shadowRoot) == null ? void 0 : _a.querySelector("#dynamic");
719
+ if (history.length > 1 && !this.showBack && buttonEl) {
720
+ await buttonEl.animate([{ opacity: 1 }, { opacity: 0 }], {
721
+ duration: 200,
722
+ fill: "forwards",
723
+ easing: "ease"
724
+ }).finished;
725
+ this.showBack = true;
726
+ buttonEl.animate([{ opacity: 0 }, { opacity: 1 }], {
727
+ duration: 200,
728
+ fill: "forwards",
729
+ easing: "ease"
730
+ });
731
+ } else if (history.length <= 1 && this.showBack && buttonEl) {
732
+ await buttonEl.animate([{ opacity: 1 }, { opacity: 0 }], {
733
+ duration: 200,
734
+ fill: "forwards",
735
+ easing: "ease"
736
+ }).finished;
737
+ this.showBack = false;
738
+ buttonEl.animate([{ opacity: 0 }, { opacity: 1 }], {
739
+ duration: 200,
740
+ fill: "forwards",
741
+ easing: "ease"
742
+ });
743
+ }
744
+ }
745
+ onGoBack() {
746
+ RouterController.goBack();
747
+ }
748
+ };
749
+ W3mHeader.styles = styles$5;
750
+ __decorate$5([
751
+ r()
752
+ ], W3mHeader.prototype, "heading", void 0);
753
+ __decorate$5([
754
+ r()
755
+ ], W3mHeader.prototype, "network", void 0);
756
+ __decorate$5([
757
+ r()
758
+ ], W3mHeader.prototype, "networkImage", void 0);
759
+ __decorate$5([
760
+ r()
761
+ ], W3mHeader.prototype, "showBack", void 0);
762
+ __decorate$5([
763
+ r()
764
+ ], W3mHeader.prototype, "prevHistoryLength", void 0);
765
+ __decorate$5([
766
+ r()
767
+ ], W3mHeader.prototype, "view", void 0);
768
+ __decorate$5([
769
+ r()
770
+ ], W3mHeader.prototype, "viewDirection", void 0);
771
+ __decorate$5([
772
+ r()
773
+ ], W3mHeader.prototype, "headerText", void 0);
774
+ W3mHeader = __decorate$5([
775
+ customElement("w3m-header")
776
+ ], W3mHeader);
777
+ const styles$4 = i`
778
+ :host {
779
+ display: flex;
780
+ column-gap: var(--wui-spacing-s);
781
+ align-items: center;
782
+ padding: var(--wui-spacing-xs) var(--wui-spacing-m) var(--wui-spacing-xs) var(--wui-spacing-xs);
783
+ border-radius: var(--wui-border-radius-s);
784
+ border: 1px solid var(--wui-color-gray-glass-005);
785
+ box-sizing: border-box;
786
+ background-color: var(--wui-color-bg-175);
787
+ box-shadow:
788
+ 0px 14px 64px -4px rgba(0, 0, 0, 0.15),
789
+ 0px 8px 22px -6px rgba(0, 0, 0, 0.15);
790
+
791
+ max-width: 300px;
792
+ }
793
+
794
+ :host wui-loading-spinner {
795
+ margin-left: var(--wui-spacing-3xs);
796
+ }
797
+ `;
798
+ var __decorate$4 = function(decorators, target, key, desc) {
799
+ var c = arguments.length, r2 = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
800
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r2 = Reflect.decorate(decorators, target, key, desc);
801
+ else for (var i2 = decorators.length - 1; i2 >= 0; i2--) if (d = decorators[i2]) r2 = (c < 3 ? d(r2) : c > 3 ? d(target, key, r2) : d(target, key)) || r2;
802
+ return c > 3 && r2 && Object.defineProperty(target, key, r2), r2;
803
+ };
804
+ let WuiSnackbar = class WuiSnackbar2 extends i$1 {
805
+ constructor() {
806
+ super(...arguments);
807
+ this.backgroundColor = "accent-100";
808
+ this.iconColor = "accent-100";
809
+ this.icon = "checkmark";
810
+ this.message = "";
811
+ this.loading = false;
812
+ this.iconType = "default";
813
+ }
814
+ render() {
815
+ return x`
816
+ ${this.templateIcon()}
817
+ <wui-text variant="paragraph-500" color="fg-100" data-testid="wui-snackbar-message"
818
+ >${this.message}</wui-text
819
+ >
820
+ `;
821
+ }
822
+ templateIcon() {
823
+ if (this.loading) {
824
+ return x`<wui-loading-spinner size="md" color="accent-100"></wui-loading-spinner>`;
825
+ }
826
+ if (this.iconType === "default") {
827
+ return x`<wui-icon size="xl" color=${this.iconColor} name=${this.icon}></wui-icon>`;
828
+ }
829
+ return x`<wui-icon-box
830
+ size="sm"
831
+ iconSize="xs"
832
+ iconColor=${this.iconColor}
833
+ backgroundColor=${this.backgroundColor}
834
+ icon=${this.icon}
835
+ background="opaque"
836
+ ></wui-icon-box>`;
837
+ }
838
+ };
839
+ WuiSnackbar.styles = [resetStyles, styles$4];
840
+ __decorate$4([
841
+ n()
842
+ ], WuiSnackbar.prototype, "backgroundColor", void 0);
843
+ __decorate$4([
844
+ n()
845
+ ], WuiSnackbar.prototype, "iconColor", void 0);
846
+ __decorate$4([
847
+ n()
848
+ ], WuiSnackbar.prototype, "icon", void 0);
849
+ __decorate$4([
850
+ n()
851
+ ], WuiSnackbar.prototype, "message", void 0);
852
+ __decorate$4([
853
+ n()
854
+ ], WuiSnackbar.prototype, "loading", void 0);
855
+ __decorate$4([
856
+ n()
857
+ ], WuiSnackbar.prototype, "iconType", void 0);
858
+ WuiSnackbar = __decorate$4([
859
+ customElement("wui-snackbar")
860
+ ], WuiSnackbar);
861
+ const styles$3 = i`
862
+ :host {
863
+ display: block;
864
+ position: absolute;
865
+ opacity: 0;
866
+ pointer-events: none;
867
+ top: 11px;
868
+ left: 50%;
869
+ width: max-content;
870
+ }
871
+ `;
872
+ var __decorate$3 = function(decorators, target, key, desc) {
873
+ var c = arguments.length, r2 = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
874
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r2 = Reflect.decorate(decorators, target, key, desc);
875
+ else for (var i2 = decorators.length - 1; i2 >= 0; i2--) if (d = decorators[i2]) r2 = (c < 3 ? d(r2) : c > 3 ? d(target, key, r2) : d(target, key)) || r2;
876
+ return c > 3 && r2 && Object.defineProperty(target, key, r2), r2;
877
+ };
878
+ const presets = {
879
+ loading: void 0,
880
+ success: {
881
+ backgroundColor: "success-100",
882
+ iconColor: "success-100",
883
+ icon: "checkmark"
884
+ },
885
+ error: {
886
+ backgroundColor: "error-100",
887
+ iconColor: "error-100",
888
+ icon: "close"
889
+ }
890
+ };
891
+ let W3mSnackBar = class W3mSnackBar2 extends i$1 {
892
+ constructor() {
893
+ super();
894
+ this.unsubscribe = [];
895
+ this.timeout = void 0;
896
+ this.open = SnackController.state.open;
897
+ this.unsubscribe.push(SnackController.subscribeKey("open", (val) => {
898
+ this.open = val;
899
+ this.onOpen();
900
+ }));
901
+ }
902
+ disconnectedCallback() {
903
+ clearTimeout(this.timeout);
904
+ this.unsubscribe.forEach((unsubscribe) => unsubscribe());
905
+ }
906
+ render() {
907
+ const { message, variant, svg } = SnackController.state;
908
+ const preset = presets[variant];
909
+ const { icon, iconColor } = svg ?? preset ?? {};
910
+ return x`
911
+ <wui-snackbar
912
+ message=${message}
913
+ backgroundColor=${preset == null ? void 0 : preset.backgroundColor}
914
+ iconColor=${iconColor}
915
+ icon=${icon}
916
+ .loading=${variant === "loading"}
917
+ ></wui-snackbar>
918
+ `;
919
+ }
920
+ onOpen() {
921
+ clearTimeout(this.timeout);
922
+ if (this.open) {
923
+ this.animate([
924
+ { opacity: 0, transform: "translateX(-50%) scale(0.85)" },
925
+ { opacity: 1, transform: "translateX(-50%) scale(1)" }
926
+ ], {
927
+ duration: 150,
928
+ fill: "forwards",
929
+ easing: "ease"
930
+ });
931
+ if (this.timeout) {
932
+ clearTimeout(this.timeout);
933
+ }
934
+ if (SnackController.state.autoClose) {
935
+ this.timeout = setTimeout(() => SnackController.hide(), 2500);
936
+ }
937
+ } else {
938
+ this.animate([
939
+ { opacity: 1, transform: "translateX(-50%) scale(1)" },
940
+ { opacity: 0, transform: "translateX(-50%) scale(0.85)" }
941
+ ], {
942
+ duration: 150,
943
+ fill: "forwards",
944
+ easing: "ease"
945
+ });
946
+ }
947
+ }
948
+ };
949
+ W3mSnackBar.styles = styles$3;
950
+ __decorate$3([
951
+ r()
952
+ ], W3mSnackBar.prototype, "open", void 0);
953
+ W3mSnackBar = __decorate$3([
954
+ customElement("w3m-snackbar")
955
+ ], W3mSnackBar);
956
+ const styles$2 = i`
957
+ :host {
958
+ pointer-events: none;
959
+ }
960
+
961
+ :host > wui-flex {
962
+ display: var(--w3m-tooltip-display);
963
+ opacity: var(--w3m-tooltip-opacity);
964
+ padding: 9px var(--wui-spacing-s) 10px var(--wui-spacing-s);
965
+ border-radius: var(--wui-border-radius-xxs);
966
+ color: var(--wui-color-bg-100);
967
+ position: fixed;
968
+ top: var(--w3m-tooltip-top);
969
+ left: var(--w3m-tooltip-left);
970
+ transform: translate(calc(-50% + var(--w3m-tooltip-parent-width)), calc(-100% - 8px));
971
+ max-width: calc(var(--w3m-modal-width) - var(--wui-spacing-xl));
972
+ transition: opacity 0.2s var(--wui-ease-out-power-2);
973
+ will-change: opacity;
974
+ }
975
+
976
+ :host([data-variant='shade']) > wui-flex {
977
+ background-color: var(--wui-color-bg-150);
978
+ border: 1px solid var(--wui-color-gray-glass-005);
979
+ }
980
+
981
+ :host([data-variant='shade']) > wui-flex > wui-text {
982
+ color: var(--wui-color-fg-150);
983
+ }
984
+
985
+ :host([data-variant='fill']) > wui-flex {
986
+ background-color: var(--wui-color-fg-100);
987
+ border: none;
988
+ }
989
+
990
+ wui-icon {
991
+ position: absolute;
992
+ width: 12px !important;
993
+ height: 4px !important;
994
+ color: var(--wui-color-bg-150);
995
+ }
996
+
997
+ wui-icon[data-placement='top'] {
998
+ bottom: 0px;
999
+ left: 50%;
1000
+ transform: translate(-50%, 95%);
1001
+ }
1002
+
1003
+ wui-icon[data-placement='bottom'] {
1004
+ top: 0;
1005
+ left: 50%;
1006
+ transform: translate(-50%, -95%) rotate(180deg);
1007
+ }
1008
+
1009
+ wui-icon[data-placement='right'] {
1010
+ top: 50%;
1011
+ left: 0;
1012
+ transform: translate(-65%, -50%) rotate(90deg);
1013
+ }
1014
+
1015
+ wui-icon[data-placement='left'] {
1016
+ top: 50%;
1017
+ right: 0%;
1018
+ transform: translate(65%, -50%) rotate(270deg);
1019
+ }
1020
+ `;
1021
+ var __decorate$2 = function(decorators, target, key, desc) {
1022
+ var c = arguments.length, r2 = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
1023
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r2 = Reflect.decorate(decorators, target, key, desc);
1024
+ else for (var i2 = decorators.length - 1; i2 >= 0; i2--) if (d = decorators[i2]) r2 = (c < 3 ? d(r2) : c > 3 ? d(target, key, r2) : d(target, key)) || r2;
1025
+ return c > 3 && r2 && Object.defineProperty(target, key, r2), r2;
1026
+ };
1027
+ let W3mTooltip = class W3mTooltip2 extends i$1 {
1028
+ constructor() {
1029
+ super();
1030
+ this.unsubscribe = [];
1031
+ this.open = TooltipController.state.open;
1032
+ this.message = TooltipController.state.message;
1033
+ this.triggerRect = TooltipController.state.triggerRect;
1034
+ this.variant = TooltipController.state.variant;
1035
+ this.unsubscribe.push(...[
1036
+ TooltipController.subscribe((newState) => {
1037
+ this.open = newState.open;
1038
+ this.message = newState.message;
1039
+ this.triggerRect = newState.triggerRect;
1040
+ this.variant = newState.variant;
1041
+ })
1042
+ ]);
1043
+ }
1044
+ disconnectedCallback() {
1045
+ this.unsubscribe.forEach((unsubscribe) => unsubscribe());
1046
+ }
1047
+ render() {
1048
+ this.dataset["variant"] = this.variant;
1049
+ const topValue = this.triggerRect.top;
1050
+ const leftValue = this.triggerRect.left;
1051
+ this.style.cssText = `
1052
+ --w3m-tooltip-top: ${topValue}px;
1053
+ --w3m-tooltip-left: ${leftValue}px;
1054
+ --w3m-tooltip-parent-width: ${this.triggerRect.width / 2}px;
1055
+ --w3m-tooltip-display: ${this.open ? "flex" : "none"};
1056
+ --w3m-tooltip-opacity: ${this.open ? 1 : 0};
1057
+ `;
1058
+ return x`<wui-flex>
1059
+ <wui-icon data-placement="top" color="fg-100" size="inherit" name="cursor"></wui-icon>
1060
+ <wui-text color="inherit" variant="small-500">${this.message}</wui-text>
1061
+ </wui-flex>`;
1062
+ }
1063
+ };
1064
+ W3mTooltip.styles = [styles$2];
1065
+ __decorate$2([
1066
+ r()
1067
+ ], W3mTooltip.prototype, "open", void 0);
1068
+ __decorate$2([
1069
+ r()
1070
+ ], W3mTooltip.prototype, "message", void 0);
1071
+ __decorate$2([
1072
+ r()
1073
+ ], W3mTooltip.prototype, "triggerRect", void 0);
1074
+ __decorate$2([
1075
+ r()
1076
+ ], W3mTooltip.prototype, "variant", void 0);
1077
+ W3mTooltip = __decorate$2([
1078
+ customElement("w3m-tooltip"),
1079
+ customElement("w3m-tooltip")
1080
+ ], W3mTooltip);
1081
+ const styles$1 = i`
1082
+ :host {
1083
+ --prev-height: 0px;
1084
+ --new-height: 0px;
1085
+ display: block;
1086
+ }
1087
+
1088
+ div.w3m-router-container {
1089
+ transform: translateY(0);
1090
+ opacity: 1;
1091
+ }
1092
+
1093
+ div.w3m-router-container[view-direction='prev'] {
1094
+ animation:
1095
+ slide-left-out 150ms forwards ease,
1096
+ slide-left-in 150ms forwards ease;
1097
+ animation-delay: 0ms, 200ms;
1098
+ }
1099
+
1100
+ div.w3m-router-container[view-direction='next'] {
1101
+ animation:
1102
+ slide-right-out 150ms forwards ease,
1103
+ slide-right-in 150ms forwards ease;
1104
+ animation-delay: 0ms, 200ms;
1105
+ }
1106
+
1107
+ @keyframes slide-left-out {
1108
+ from {
1109
+ transform: translateX(0px);
1110
+ opacity: 1;
1111
+ }
1112
+ to {
1113
+ transform: translateX(10px);
1114
+ opacity: 0;
1115
+ }
1116
+ }
1117
+
1118
+ @keyframes slide-left-in {
1119
+ from {
1120
+ transform: translateX(-10px);
1121
+ opacity: 0;
1122
+ }
1123
+ to {
1124
+ transform: translateX(0);
1125
+ opacity: 1;
1126
+ }
1127
+ }
1128
+
1129
+ @keyframes slide-right-out {
1130
+ from {
1131
+ transform: translateX(0px);
1132
+ opacity: 1;
1133
+ }
1134
+ to {
1135
+ transform: translateX(-10px);
1136
+ opacity: 0;
1137
+ }
1138
+ }
1139
+
1140
+ @keyframes slide-right-in {
1141
+ from {
1142
+ transform: translateX(10px);
1143
+ opacity: 0;
1144
+ }
1145
+ to {
1146
+ transform: translateX(0);
1147
+ opacity: 1;
1148
+ }
1149
+ }
1150
+ `;
1151
+ var __decorate$1 = function(decorators, target, key, desc) {
1152
+ var c = arguments.length, r2 = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
1153
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r2 = Reflect.decorate(decorators, target, key, desc);
1154
+ else for (var i2 = decorators.length - 1; i2 >= 0; i2--) if (d = decorators[i2]) r2 = (c < 3 ? d(r2) : c > 3 ? d(target, key, r2) : d(target, key)) || r2;
1155
+ return c > 3 && r2 && Object.defineProperty(target, key, r2), r2;
1156
+ };
1157
+ let W3mRouter = class W3mRouter2 extends i$1 {
1158
+ constructor() {
1159
+ super();
1160
+ this.resizeObserver = void 0;
1161
+ this.prevHeight = "0px";
1162
+ this.prevHistoryLength = 1;
1163
+ this.unsubscribe = [];
1164
+ this.view = RouterController.state.view;
1165
+ this.viewDirection = "";
1166
+ this.unsubscribe.push(RouterController.subscribeKey("view", (val) => this.onViewChange(val)));
1167
+ }
1168
+ firstUpdated() {
1169
+ var _a;
1170
+ this.resizeObserver = new ResizeObserver(([content]) => {
1171
+ const height = `${content == null ? void 0 : content.contentRect.height}px`;
1172
+ if (this.prevHeight !== "0px") {
1173
+ this.style.setProperty("--prev-height", this.prevHeight);
1174
+ this.style.setProperty("--new-height", height);
1175
+ this.style.animation = "w3m-view-height 150ms forwards ease";
1176
+ this.style.height = "auto";
1177
+ }
1178
+ setTimeout(() => {
1179
+ this.prevHeight = height;
1180
+ this.style.animation = "unset";
1181
+ }, ConstantsUtil.ANIMATION_DURATIONS.ModalHeight);
1182
+ });
1183
+ (_a = this.resizeObserver) == null ? void 0 : _a.observe(this.getWrapper());
1184
+ }
1185
+ disconnectedCallback() {
1186
+ var _a;
1187
+ (_a = this.resizeObserver) == null ? void 0 : _a.unobserve(this.getWrapper());
1188
+ this.unsubscribe.forEach((unsubscribe) => unsubscribe());
1189
+ }
1190
+ render() {
1191
+ return x`<div class="w3m-router-container" view-direction="${this.viewDirection}">
1192
+ ${this.viewTemplate()}
1193
+ </div>`;
1194
+ }
1195
+ viewTemplate() {
1196
+ switch (this.view) {
1197
+ case "AccountSettings":
1198
+ return x`<w3m-account-settings-view></w3m-account-settings-view>`;
1199
+ case "Account":
1200
+ return x`<w3m-account-view></w3m-account-view>`;
1201
+ case "AllWallets":
1202
+ return x`<w3m-all-wallets-view></w3m-all-wallets-view>`;
1203
+ case "ApproveTransaction":
1204
+ return x`<w3m-approve-transaction-view></w3m-approve-transaction-view>`;
1205
+ case "BuyInProgress":
1206
+ return x`<w3m-buy-in-progress-view></w3m-buy-in-progress-view>`;
1207
+ case "ChooseAccountName":
1208
+ return x`<w3m-choose-account-name-view></w3m-choose-account-name-view>`;
1209
+ case "Connect":
1210
+ return x`<w3m-connect-view></w3m-connect-view>`;
1211
+ case "Create":
1212
+ return x`<w3m-connect-view walletGuide="explore"></w3m-connect-view>`;
1213
+ case "ConnectingWalletConnect":
1214
+ return x`<w3m-connecting-wc-view></w3m-connecting-wc-view>`;
1215
+ case "ConnectingWalletConnectBasic":
1216
+ return x`<w3m-connecting-wc-basic-view></w3m-connecting-wc-basic-view>`;
1217
+ case "ConnectingExternal":
1218
+ return x`<w3m-connecting-external-view></w3m-connecting-external-view>`;
1219
+ case "ConnectingSiwe":
1220
+ return x`<w3m-connecting-siwe-view></w3m-connecting-siwe-view>`;
1221
+ case "ConnectWallets":
1222
+ return x`<w3m-connect-wallets-view></w3m-connect-wallets-view>`;
1223
+ case "ConnectSocials":
1224
+ return x`<w3m-connect-socials-view></w3m-connect-socials-view>`;
1225
+ case "ConnectingSocial":
1226
+ return x`<w3m-connecting-social-view></w3m-connecting-social-view>`;
1227
+ case "Downloads":
1228
+ return x`<w3m-downloads-view></w3m-downloads-view>`;
1229
+ case "EmailLogin":
1230
+ return x`<w3m-email-login-view></w3m-email-login-view>`;
1231
+ case "EmailVerifyOtp":
1232
+ return x`<w3m-email-verify-otp-view></w3m-email-verify-otp-view>`;
1233
+ case "EmailVerifyDevice":
1234
+ return x`<w3m-email-verify-device-view></w3m-email-verify-device-view>`;
1235
+ case "GetWallet":
1236
+ return x`<w3m-get-wallet-view></w3m-get-wallet-view>`;
1237
+ case "Networks":
1238
+ return x`<w3m-networks-view></w3m-networks-view>`;
1239
+ case "SwitchNetwork":
1240
+ return x`<w3m-network-switch-view></w3m-network-switch-view>`;
1241
+ case "Profile":
1242
+ return x`<w3m-profile-view></w3m-profile-view>`;
1243
+ case "SwitchAddress":
1244
+ return x`<w3m-switch-address-view></w3m-switch-address-view>`;
1245
+ case "Transactions":
1246
+ return x`<w3m-transactions-view></w3m-transactions-view>`;
1247
+ case "OnRampProviders":
1248
+ return x`<w3m-onramp-providers-view></w3m-onramp-providers-view>`;
1249
+ case "OnRampActivity":
1250
+ return x`<w3m-onramp-activity-view></w3m-onramp-activity-view>`;
1251
+ case "OnRampTokenSelect":
1252
+ return x`<w3m-onramp-token-select-view></w3m-onramp-token-select-view>`;
1253
+ case "OnRampFiatSelect":
1254
+ return x`<w3m-onramp-fiat-select-view></w3m-onramp-fiat-select-view>`;
1255
+ case "UpgradeEmailWallet":
1256
+ return x`<w3m-upgrade-wallet-view></w3m-upgrade-wallet-view>`;
1257
+ case "UpdateEmailWallet":
1258
+ return x`<w3m-update-email-wallet-view></w3m-update-email-wallet-view>`;
1259
+ case "UpdateEmailPrimaryOtp":
1260
+ return x`<w3m-update-email-primary-otp-view></w3m-update-email-primary-otp-view>`;
1261
+ case "UpdateEmailSecondaryOtp":
1262
+ return x`<w3m-update-email-secondary-otp-view></w3m-update-email-secondary-otp-view>`;
1263
+ case "UnsupportedChain":
1264
+ return x`<w3m-unsupported-chain-view></w3m-unsupported-chain-view>`;
1265
+ case "Swap":
1266
+ return x`<w3m-swap-view></w3m-swap-view>`;
1267
+ case "SwapSelectToken":
1268
+ return x`<w3m-swap-select-token-view></w3m-swap-select-token-view>`;
1269
+ case "SwapPreview":
1270
+ return x`<w3m-swap-preview-view></w3m-swap-preview-view>`;
1271
+ case "WalletSend":
1272
+ return x`<w3m-wallet-send-view></w3m-wallet-send-view>`;
1273
+ case "WalletSendSelectToken":
1274
+ return x`<w3m-wallet-send-select-token-view></w3m-wallet-send-select-token-view>`;
1275
+ case "WalletSendPreview":
1276
+ return x`<w3m-wallet-send-preview-view></w3m-wallet-send-preview-view>`;
1277
+ case "WhatIsABuy":
1278
+ return x`<w3m-what-is-a-buy-view></w3m-what-is-a-buy-view>`;
1279
+ case "WalletReceive":
1280
+ return x`<w3m-wallet-receive-view></w3m-wallet-receive-view>`;
1281
+ case "WalletCompatibleNetworks":
1282
+ return x`<w3m-wallet-compatible-networks-view></w3m-wallet-compatible-networks-view>`;
1283
+ case "WhatIsAWallet":
1284
+ return x`<w3m-what-is-a-wallet-view></w3m-what-is-a-wallet-view>`;
1285
+ case "ConnectingMultiChain":
1286
+ return x`<w3m-connecting-multi-chain-view></w3m-connecting-multi-chain-view>`;
1287
+ case "WhatIsANetwork":
1288
+ return x`<w3m-what-is-a-network-view></w3m-what-is-a-network-view>`;
1289
+ case "ConnectingFarcaster":
1290
+ return x`<w3m-connecting-farcaster-view></w3m-connecting-farcaster-view>`;
1291
+ case "SwitchActiveChain":
1292
+ return x`<w3m-switch-active-chain-view></w3m-switch-active-chain-view>`;
1293
+ case "RegisterAccountName":
1294
+ return x`<w3m-register-account-name-view></w3m-register-account-name-view>`;
1295
+ case "RegisterAccountNameSuccess":
1296
+ return x`<w3m-register-account-name-success-view></w3m-register-account-name-success-view>`;
1297
+ case "SmartSessionCreated":
1298
+ return x`<w3m-smart-session-created-view></w3m-smart-session-created-view>`;
1299
+ case "SmartSessionList":
1300
+ return x`<w3m-smart-session-list-view></w3m-smart-session-list-view>`;
1301
+ case "SIWXSignMessage":
1302
+ return x`<w3m-siwx-sign-message-view></w3m-siwx-sign-message-view>`;
1303
+ case "Pay":
1304
+ return x`<w3m-pay-view></w3m-pay-view>`;
1305
+ case "PayLoading":
1306
+ return x`<w3m-pay-loading-view></w3m-pay-loading-view>`;
1307
+ default:
1308
+ return x`<w3m-connect-view></w3m-connect-view>`;
1309
+ }
1310
+ }
1311
+ onViewChange(newView) {
1312
+ TooltipController.hide();
1313
+ let direction = ConstantsUtil.VIEW_DIRECTION.Next;
1314
+ const { history } = RouterController.state;
1315
+ if (history.length < this.prevHistoryLength) {
1316
+ direction = ConstantsUtil.VIEW_DIRECTION.Prev;
1317
+ }
1318
+ this.prevHistoryLength = history.length;
1319
+ this.viewDirection = direction;
1320
+ setTimeout(() => {
1321
+ this.view = newView;
1322
+ }, ConstantsUtil.ANIMATION_DURATIONS.ViewTransition);
1323
+ }
1324
+ getWrapper() {
1325
+ var _a;
1326
+ return (_a = this.shadowRoot) == null ? void 0 : _a.querySelector("div");
1327
+ }
1328
+ };
1329
+ W3mRouter.styles = styles$1;
1330
+ __decorate$1([
1331
+ r()
1332
+ ], W3mRouter.prototype, "view", void 0);
1333
+ __decorate$1([
1334
+ r()
1335
+ ], W3mRouter.prototype, "viewDirection", void 0);
1336
+ W3mRouter = __decorate$1([
1337
+ customElement("w3m-router")
1338
+ ], W3mRouter);
1339
+ const styles = i`
1340
+ :host {
1341
+ z-index: var(--w3m-z-index);
1342
+ display: block;
1343
+ backface-visibility: hidden;
1344
+ will-change: opacity;
1345
+ position: fixed;
1346
+ top: 0;
1347
+ left: 0;
1348
+ right: 0;
1349
+ bottom: 0;
1350
+ pointer-events: none;
1351
+ opacity: 0;
1352
+ background-color: var(--wui-cover);
1353
+ transition: opacity 0.2s var(--wui-ease-out-power-2);
1354
+ will-change: opacity;
1355
+ }
1356
+
1357
+ :host(.open) {
1358
+ opacity: 1;
1359
+ }
1360
+
1361
+ :host(.appkit-modal) {
1362
+ position: relative;
1363
+ pointer-events: unset;
1364
+ background: none;
1365
+ width: 100%;
1366
+ opacity: 1;
1367
+ }
1368
+
1369
+ wui-card {
1370
+ max-width: var(--w3m-modal-width);
1371
+ width: 100%;
1372
+ position: relative;
1373
+ animation: zoom-in 0.2s var(--wui-ease-out-power-2);
1374
+ animation-fill-mode: backwards;
1375
+ outline: none;
1376
+ transition:
1377
+ border-radius var(--wui-duration-lg) var(--wui-ease-out-power-1),
1378
+ background-color var(--wui-duration-lg) var(--wui-ease-out-power-1);
1379
+ will-change: border-radius, background-color;
1380
+ }
1381
+
1382
+ :host(.appkit-modal) wui-card {
1383
+ max-width: 400px;
1384
+ }
1385
+
1386
+ wui-card[shake='true'] {
1387
+ animation:
1388
+ zoom-in 0.2s var(--wui-ease-out-power-2),
1389
+ w3m-shake 0.5s var(--wui-ease-out-power-2);
1390
+ }
1391
+
1392
+ wui-flex {
1393
+ overflow-x: hidden;
1394
+ overflow-y: auto;
1395
+ display: flex;
1396
+ align-items: center;
1397
+ justify-content: center;
1398
+ width: 100%;
1399
+ height: 100%;
1400
+ }
1401
+
1402
+ @media (max-height: 700px) and (min-width: 431px) {
1403
+ wui-flex {
1404
+ align-items: flex-start;
1405
+ }
1406
+
1407
+ wui-card {
1408
+ margin: var(--wui-spacing-xxl) 0px;
1409
+ }
1410
+ }
1411
+
1412
+ @media (max-width: 430px) {
1413
+ wui-flex {
1414
+ align-items: flex-end;
1415
+ }
1416
+
1417
+ wui-card {
1418
+ max-width: 100%;
1419
+ border-bottom-left-radius: var(--local-border-bottom-mobile-radius);
1420
+ border-bottom-right-radius: var(--local-border-bottom-mobile-radius);
1421
+ border-bottom: none;
1422
+ animation: slide-in 0.2s var(--wui-ease-out-power-2);
1423
+ }
1424
+
1425
+ wui-card[shake='true'] {
1426
+ animation:
1427
+ slide-in 0.2s var(--wui-ease-out-power-2),
1428
+ w3m-shake 0.5s var(--wui-ease-out-power-2);
1429
+ }
1430
+ }
1431
+
1432
+ @keyframes zoom-in {
1433
+ 0% {
1434
+ transform: scale(0.95) translateY(0);
1435
+ }
1436
+ 100% {
1437
+ transform: scale(1) translateY(0);
1438
+ }
1439
+ }
1440
+
1441
+ @keyframes slide-in {
1442
+ 0% {
1443
+ transform: scale(1) translateY(50px);
1444
+ }
1445
+ 100% {
1446
+ transform: scale(1) translateY(0);
1447
+ }
1448
+ }
1449
+
1450
+ @keyframes w3m-shake {
1451
+ 0% {
1452
+ transform: scale(1) rotate(0deg);
1453
+ }
1454
+ 20% {
1455
+ transform: scale(1) rotate(-1deg);
1456
+ }
1457
+ 40% {
1458
+ transform: scale(1) rotate(1.5deg);
1459
+ }
1460
+ 60% {
1461
+ transform: scale(1) rotate(-1.5deg);
1462
+ }
1463
+ 80% {
1464
+ transform: scale(1) rotate(1deg);
1465
+ }
1466
+ 100% {
1467
+ transform: scale(1) rotate(0deg);
1468
+ }
1469
+ }
1470
+
1471
+ @keyframes w3m-view-height {
1472
+ from {
1473
+ height: var(--prev-height);
1474
+ }
1475
+ to {
1476
+ height: var(--new-height);
1477
+ }
1478
+ }
1479
+ `;
1480
+ var __decorate = function(decorators, target, key, desc) {
1481
+ var c = arguments.length, r2 = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
1482
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r2 = Reflect.decorate(decorators, target, key, desc);
1483
+ else for (var i2 = decorators.length - 1; i2 >= 0; i2--) if (d = decorators[i2]) r2 = (c < 3 ? d(r2) : c > 3 ? d(target, key, r2) : d(target, key)) || r2;
1484
+ return c > 3 && r2 && Object.defineProperty(target, key, r2), r2;
1485
+ };
1486
+ const SCROLL_LOCK = "scroll-lock";
1487
+ class W3mModalBase extends i$1 {
1488
+ constructor() {
1489
+ super();
1490
+ this.unsubscribe = [];
1491
+ this.abortController = void 0;
1492
+ this.hasPrefetched = false;
1493
+ this.enableEmbedded = OptionsController.state.enableEmbedded;
1494
+ this.open = ModalController.state.open;
1495
+ this.caipAddress = ChainController.state.activeCaipAddress;
1496
+ this.caipNetwork = ChainController.state.activeCaipNetwork;
1497
+ this.shake = ModalController.state.shake;
1498
+ this.filterByNamespace = ConnectorController.state.filterByNamespace;
1499
+ this.initializeTheming();
1500
+ ApiController.prefetchAnalyticsConfig();
1501
+ this.unsubscribe.push(...[
1502
+ ModalController.subscribeKey("open", (val) => val ? this.onOpen() : this.onClose()),
1503
+ ModalController.subscribeKey("shake", (val) => this.shake = val),
1504
+ ChainController.subscribeKey("activeCaipNetwork", (val) => this.onNewNetwork(val)),
1505
+ ChainController.subscribeKey("activeCaipAddress", (val) => this.onNewAddress(val)),
1506
+ OptionsController.subscribeKey("enableEmbedded", (val) => this.enableEmbedded = val),
1507
+ ConnectorController.subscribeKey("filterByNamespace", (val) => {
1508
+ var _a;
1509
+ if (this.filterByNamespace !== val && !((_a = ChainController.getAccountData(val)) == null ? void 0 : _a.caipAddress)) {
1510
+ ApiController.fetchRecommendedWallets();
1511
+ this.filterByNamespace = val;
1512
+ }
1513
+ })
1514
+ ]);
1515
+ }
1516
+ firstUpdated() {
1517
+ if (this.caipAddress) {
1518
+ if (this.enableEmbedded) {
1519
+ ModalController.close();
1520
+ this.prefetch();
1521
+ return;
1522
+ }
1523
+ this.onNewAddress(this.caipAddress);
1524
+ }
1525
+ if (this.open) {
1526
+ this.onOpen();
1527
+ }
1528
+ if (this.enableEmbedded) {
1529
+ this.prefetch();
1530
+ }
1531
+ }
1532
+ disconnectedCallback() {
1533
+ this.unsubscribe.forEach((unsubscribe) => unsubscribe());
1534
+ this.onRemoveKeyboardListener();
1535
+ }
1536
+ render() {
1537
+ this.style.cssText = `
1538
+ --local-border-bottom-mobile-radius: ${this.enableEmbedded ? "clamp(0px, var(--wui-border-radius-l), 44px)" : "0px"};
1539
+ `;
1540
+ if (this.enableEmbedded) {
1541
+ return x`${this.contentTemplate()}
1542
+ <w3m-tooltip></w3m-tooltip> `;
1543
+ }
1544
+ return this.open ? x`
1545
+ <wui-flex @click=${this.onOverlayClick.bind(this)} data-testid="w3m-modal-overlay">
1546
+ ${this.contentTemplate()}
1547
+ </wui-flex>
1548
+ <w3m-tooltip></w3m-tooltip>
1549
+ ` : null;
1550
+ }
1551
+ contentTemplate() {
1552
+ return x` <wui-card
1553
+ shake="${this.shake}"
1554
+ data-embedded="${o(this.enableEmbedded)}"
1555
+ role="alertdialog"
1556
+ aria-modal="true"
1557
+ tabindex="0"
1558
+ data-testid="w3m-modal-card"
1559
+ >
1560
+ <w3m-header></w3m-header>
1561
+ <w3m-router></w3m-router>
1562
+ <w3m-snackbar></w3m-snackbar>
1563
+ <w3m-alertbar></w3m-alertbar>
1564
+ </wui-card>`;
1565
+ }
1566
+ async onOverlayClick(event) {
1567
+ if (event.target === event.currentTarget) {
1568
+ await this.handleClose();
1569
+ }
1570
+ }
1571
+ async handleClose() {
1572
+ await ModalUtil.safeClose();
1573
+ }
1574
+ initializeTheming() {
1575
+ const { themeVariables, themeMode } = ThemeController.state;
1576
+ const defaultThemeMode = UiHelperUtil.getColorTheme(themeMode);
1577
+ initializeTheming(themeVariables, defaultThemeMode);
1578
+ }
1579
+ onClose() {
1580
+ this.open = false;
1581
+ this.classList.remove("open");
1582
+ this.onScrollUnlock();
1583
+ SnackController.hide();
1584
+ this.onRemoveKeyboardListener();
1585
+ }
1586
+ onOpen() {
1587
+ this.open = true;
1588
+ this.classList.add("open");
1589
+ this.onScrollLock();
1590
+ this.onAddKeyboardListener();
1591
+ }
1592
+ onScrollLock() {
1593
+ const styleTag = document.createElement("style");
1594
+ styleTag.dataset["w3m"] = SCROLL_LOCK;
1595
+ styleTag.textContent = `
1596
+ body {
1597
+ touch-action: none;
1598
+ overflow: hidden;
1599
+ overscroll-behavior: contain;
1600
+ }
1601
+ w3m-modal {
1602
+ pointer-events: auto;
1603
+ }
1604
+ `;
1605
+ document.head.appendChild(styleTag);
1606
+ }
1607
+ onScrollUnlock() {
1608
+ const styleTag = document.head.querySelector(`style[data-w3m="${SCROLL_LOCK}"]`);
1609
+ if (styleTag) {
1610
+ styleTag.remove();
1611
+ }
1612
+ }
1613
+ onAddKeyboardListener() {
1614
+ var _a;
1615
+ this.abortController = new AbortController();
1616
+ const card = (_a = this.shadowRoot) == null ? void 0 : _a.querySelector("wui-card");
1617
+ card == null ? void 0 : card.focus();
1618
+ window.addEventListener("keydown", (event) => {
1619
+ if (event.key === "Escape") {
1620
+ this.handleClose();
1621
+ } else if (event.key === "Tab") {
1622
+ const { tagName } = event.target;
1623
+ if (tagName && !tagName.includes("W3M-") && !tagName.includes("WUI-")) {
1624
+ card == null ? void 0 : card.focus();
1625
+ }
1626
+ }
1627
+ }, this.abortController);
1628
+ }
1629
+ onRemoveKeyboardListener() {
1630
+ var _a;
1631
+ (_a = this.abortController) == null ? void 0 : _a.abort();
1632
+ this.abortController = void 0;
1633
+ }
1634
+ async onNewAddress(caipAddress) {
1635
+ const isSwitchingNamespace = ChainController.state.isSwitchingNamespace;
1636
+ const nextConnected = CoreHelperUtil.getPlainAddress(caipAddress);
1637
+ const isDisconnectedInSameNamespace = !nextConnected && !isSwitchingNamespace;
1638
+ const isSwitchingNamespaceAndConnected = isSwitchingNamespace && nextConnected;
1639
+ if (isDisconnectedInSameNamespace) {
1640
+ ModalController.close();
1641
+ } else if (isSwitchingNamespaceAndConnected) {
1642
+ RouterController.goBack();
1643
+ }
1644
+ await SIWXUtil.initializeIfEnabled();
1645
+ this.caipAddress = caipAddress;
1646
+ ChainController.setIsSwitchingNamespace(false);
1647
+ }
1648
+ onNewNetwork(nextCaipNetwork) {
1649
+ var _a, _b, _c;
1650
+ const prevCaipNetwork = this.caipNetwork;
1651
+ const prevCaipNetworkId = (_a = prevCaipNetwork == null ? void 0 : prevCaipNetwork.caipNetworkId) == null ? void 0 : _a.toString();
1652
+ const prevChainNamespace = prevCaipNetwork == null ? void 0 : prevCaipNetwork.chainNamespace;
1653
+ const nextNetworkId = (_b = nextCaipNetwork == null ? void 0 : nextCaipNetwork.caipNetworkId) == null ? void 0 : _b.toString();
1654
+ const nextChainNamespace = nextCaipNetwork == null ? void 0 : nextCaipNetwork.chainNamespace;
1655
+ const networkIdChanged = prevCaipNetworkId !== nextNetworkId;
1656
+ const namespaceChanged = prevChainNamespace !== nextChainNamespace;
1657
+ const isNetworkChangedInSameNamespace = networkIdChanged && !namespaceChanged;
1658
+ const wasUnsupportedNetwork = (prevCaipNetwork == null ? void 0 : prevCaipNetwork.name) === ConstantsUtil$1.UNSUPPORTED_NETWORK_NAME;
1659
+ const isConnectingExternal = RouterController.state.view === "ConnectingExternal";
1660
+ const isNotConnected = !((_c = ChainController.getAccountData(nextCaipNetwork == null ? void 0 : nextCaipNetwork.chainNamespace)) == null ? void 0 : _c.caipAddress);
1661
+ const isUnsupportedNetworkScreen = RouterController.state.view === "UnsupportedChain";
1662
+ const isModalOpen = ModalController.state.open;
1663
+ let shouldGoBack = false;
1664
+ if (isModalOpen && !isConnectingExternal) {
1665
+ if (isNotConnected) {
1666
+ if (networkIdChanged) {
1667
+ shouldGoBack = true;
1668
+ }
1669
+ } else if (isUnsupportedNetworkScreen) {
1670
+ shouldGoBack = true;
1671
+ } else if (isNetworkChangedInSameNamespace && !wasUnsupportedNetwork) {
1672
+ shouldGoBack = true;
1673
+ }
1674
+ }
1675
+ if (shouldGoBack && RouterController.state.view !== "SIWXSignMessage") {
1676
+ RouterController.goBack();
1677
+ }
1678
+ this.caipNetwork = nextCaipNetwork;
1679
+ }
1680
+ prefetch() {
1681
+ if (!this.hasPrefetched) {
1682
+ ApiController.prefetch();
1683
+ ApiController.fetchWalletsByPage({ page: 1 });
1684
+ this.hasPrefetched = true;
1685
+ }
1686
+ }
1687
+ }
1688
+ W3mModalBase.styles = styles;
1689
+ __decorate([
1690
+ n({ type: Boolean })
1691
+ ], W3mModalBase.prototype, "enableEmbedded", void 0);
1692
+ __decorate([
1693
+ r()
1694
+ ], W3mModalBase.prototype, "open", void 0);
1695
+ __decorate([
1696
+ r()
1697
+ ], W3mModalBase.prototype, "caipAddress", void 0);
1698
+ __decorate([
1699
+ r()
1700
+ ], W3mModalBase.prototype, "caipNetwork", void 0);
1701
+ __decorate([
1702
+ r()
1703
+ ], W3mModalBase.prototype, "shake", void 0);
1704
+ __decorate([
1705
+ r()
1706
+ ], W3mModalBase.prototype, "filterByNamespace", void 0);
1707
+ let W3mModal = class W3mModal2 extends W3mModalBase {
1708
+ };
1709
+ W3mModal = __decorate([
1710
+ customElement("w3m-modal")
1711
+ ], W3mModal);
1712
+ let AppKitModal = class AppKitModal2 extends W3mModalBase {
1713
+ };
1714
+ AppKitModal = __decorate([
1715
+ customElement("appkit-modal")
1716
+ ], AppKitModal);
1717
+ export {
1718
+ AppKitModal,
1719
+ W3mModal,
1720
+ W3mModalBase
1721
+ };