@dcl/shop 1.9.3-32743160136.commit-b84a6df → 1.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (228) hide show
  1. package/_assets/{Activity-QAKKW4Vj.js → Activity-BICiX_hy.js} +8 -8
  2. package/_assets/{AnimatedBackground-RzTR5pnn.js → AnimatedBackground-C-wwvO2r.js} +2 -2
  3. package/_assets/{Assets-DL6YgWYt.js → Assets-BsdvrTNx.js} +3 -3
  4. package/_assets/{Authorizations-fcwMQvEN.js → Authorizations-D2flTp4x.js} +2 -2
  5. package/_assets/{Cart-D2KxXi3r.js → Cart-C3DizVtU.js} +2 -2
  6. package/_assets/{Collection-BbupMgKn.js → Collection-BKSgVKJb.js} +2 -2
  7. package/_assets/{CollectionCarousel-KtrjUFTp.js → CollectionCarousel-Cd2cxTqr.js} +3 -3
  8. package/_assets/{Confetti-B_SGZDIW.js → Confetti-qRAe3sEm.js} +4 -4
  9. package/_assets/{ConstantsUtil-BUQvDf5H.js → ConstantsUtil-CSNaVzH3.js} +2 -2
  10. package/_assets/{ContentClient-BAcYQSIO.js → ContentClient-IvOavf-H.js} +2 -2
  11. package/_assets/{Creator-B02TUwGa.js → Creator-B39voF2X.js} +2 -2
  12. package/_assets/{DeploymentBuilder-B77L0L_H.js → DeploymentBuilder-RK2SVoAz.js} +2 -2
  13. package/_assets/{EmotePlaybackBar-6-X8QjVO.js → EmotePlaybackBar-DBorKQ-7.js} +3 -3
  14. package/_assets/{ErrorNotice-BVVq2BBw.js → ErrorNotice-5pa_F5sz.js} +2 -2
  15. package/_assets/{ExchangeController-BKu6gC8H.js → ExchangeController-Dz_UYYR2.js} +2 -2
  16. package/_assets/{Faq-D9k3ABvT.js → Faq-CNnBIEfE.js} +2 -2
  17. package/_assets/{GetCredits-Dpn8gB9T.js → GetCredits-zQOMVKAQ.js} +2 -2
  18. package/_assets/{Grow-tHCcyL-r.js → Grow-Cp6MOXYH.js} +2 -2
  19. package/_assets/{HelpersUtil-zX6_tyAi.js → HelpersUtil-BEwPK78z.js} +2 -2
  20. package/_assets/{ItemDetail-D4i816QV.js → ItemDetail-CUt75T50.js} +2 -2
  21. package/_assets/{LoadMore-BrnolAMt.js → LoadMore-CTFjioUv.js} +2 -2
  22. package/_assets/{ManaPricingBanner.styles-CLIn26ZQ.js → ManaPricingBanner.styles-BTa9K2RR.js} +2 -2
  23. package/_assets/{MyAssets-0hzzKkK-.js → MyAssets-DFovNm57.js} +2 -2
  24. package/_assets/{MyFavorites-DI52kW4T.js → MyFavorites-Cqm7xauU.js} +2 -2
  25. package/_assets/{NetworkUtil-B_9c-U8Q.js → NetworkUtil-BclgfaOh.js} +2 -2
  26. package/_assets/{NotFound-OU0x4dCG.js → NotFound-DAmVzYXY.js} +2 -2
  27. package/_assets/{NotificationsBell-B31uvOC8.js → NotificationsBell-BVRv35rb.js} +2 -2
  28. package/_assets/{OutfitDetail-U5OMt9MB.js → OutfitDetail-BGiWMRR7.js} +2 -2
  29. package/_assets/{OutfitPreview-fsnJyCY_.js → OutfitPreview-CFubFMxC.js} +2 -2
  30. package/_assets/{OutfitStudio-1fjhOirp.js → OutfitStudio-dqbYm6LX.js} +2 -2
  31. package/_assets/{StoreSettings-Dtc2cFNu.js → StoreSettings-9grVc6lN.js} +2 -2
  32. package/_assets/{Success-DmniYPt7.js → Success-HKNsnB1Y.js} +2 -2
  33. package/_assets/{SwapController-DAEACGPq.js → SwapController-BsLXz2qh.js} +2 -2
  34. package/_assets/{TradeService-BcpRovgR.js → TradeService-dcBKxJ12.js} +2 -2
  35. package/_assets/{W3MFrameProviderSingleton-BClgaXM6.js → W3MFrameProviderSingleton-Coji1m5x.js} +4 -4
  36. package/_assets/{WebCryptoP256-Bzqct4AR.js → WebCryptoP256-BsPX1fES.js} +2 -2
  37. package/_assets/{authorizations-Bq00FRrP.js → authorizations-BnWB-XGW.js} +2 -2
  38. package/_assets/{basic-v2yN93R9.js → basic-CnVxFbpY.js} +2 -2
  39. package/_assets/{biconomy-BbyLh2rY.js → biconomy-h5mxqFn0.js} +2 -2
  40. package/_assets/{browseLayout.styles-DsbssS1X.js → browseLayout.styles-CfRRd5jq.js} +2 -2
  41. package/_assets/{browser-B3a9BIYV.js → browser-CRuQIWFp.js} +2 -2
  42. package/_assets/{browser-ponyfill-Dukw0TjS.js → browser-ponyfill-DuOHNKSs.js} +2 -2
  43. package/_assets/{builder-DysINipi.js → builder-Dx8iDFgg.js} +2 -2
  44. package/_assets/{buy-DZz-IuoV.js → buy-Cnme_X5d.js} +2 -2
  45. package/_assets/{buy-gasless-B29llLau.js → buy-gasless-DhSQJMNQ.js} +2 -2
  46. package/_assets/{categories-ByT980ve.js → categories-Dk_NiD5O.js} +2 -2
  47. package/_assets/{ccip-BRPx_ZlG.js → ccip-DvzlGkST.js} +2 -2
  48. package/_assets/{ccip-DYkZfgm6.js → ccip-x67JK5_7.js} +2 -2
  49. package/_assets/{chains-DZroLyZV.js → chains-Bamqxcmr.js} +2 -2
  50. package/_assets/collectionPage.styles-C8SZeNNm.js +40 -0
  51. package/_assets/{common-DYJHHIB9.js → common-D1XANjz0.js} +2 -2
  52. package/_assets/{controller-BOWAb87t.js → controller-DTk6Havj.js} +3 -3
  53. package/_assets/{core-Bw4v_vQY.js → core-B19c2rnF.js} +5 -5
  54. package/_assets/{createSvgIcon-CaKhLrQG.js → createSvgIcon-CT3Gwjcy.js} +2 -2
  55. package/_assets/{custom-BzZXMtsn.js → custom-fmgA8lkC.js} +2 -2
  56. package/_assets/{data-capture-BRuFpOfW.js → data-capture-DDe22HY7.js} +2 -2
  57. package/_assets/{dcl-schemas-CN-1-wGb.js → dcl-schemas-CfMjyfZx.js} +2 -2
  58. package/_assets/{decimals-BlaBlIXg.js → decimals-DwpYjDat.js} +2 -2
  59. package/_assets/{decimals-BPF9JuRG.js → decimals-kDkfNEul.js} +2 -2
  60. package/_assets/{detectExtension-Cpjv7w9d.js → detectExtension-DDD8D4gU.js} +2 -2
  61. package/_assets/{disposePreview-DvbibLHk.js → disposePreview-xjGjtRoP.js} +2 -2
  62. package/_assets/{email-DRfEf-Gg.js → email-CxWcNkcR.js} +2 -2
  63. package/_assets/{embedded-wallet-k-rK_Tzp.js → embedded-wallet-Bq17gZ2o.js} +2 -2
  64. package/_assets/{emotion-styled.browser.esm-7mw60jip.js → emotion-styled.browser.esm-D4jxZZdu.js} +2 -2
  65. package/_assets/{engine-Ds8WBhQq.js → engine-CstRCS0P.js} +2 -2
  66. package/_assets/{errors-DUsd8eGX.js → errors-C2O8i7S8.js} +2 -2
  67. package/_assets/{estimate-l1-fee-BqWlqB6P.js → estimate-l1-fee-D6wU0bu9.js} +2 -2
  68. package/_assets/{eth_estimateGas-Dj0RarmM.js → eth_estimateGas-Bwq_fGM7.js} +2 -2
  69. package/_assets/{eth_getStorageAt-C2kSbou7.js → eth_getStorageAt-CSG0CFbd.js} +2 -2
  70. package/_assets/{eth_getTransactionCount-DxqQ7LF-.js → eth_getTransactionCount-CRyqNDQC.js} +2 -2
  71. package/_assets/{ethereum-CMQLQ53m.js → ethereum-BrsO-PtF.js} +2 -2
  72. package/_assets/{ethers-3hUTVH_L.js → ethers-Dv96XuWO.js} +2 -2
  73. package/_assets/{events-BAvGtdFA.js → events-BI-hNCIc.js} +2 -2
  74. package/_assets/{execute-B-kQuKck.js → execute-DBY_k70_.js} +3 -3
  75. package/_assets/{extractIPFS-C9V9S9Vx.js → extractIPFS-BKCaGHg0.js} +2 -2
  76. package/_assets/{features-D9eM9k8d.js → features-B-lWKxpl.js} +2 -2
  77. package/_assets/{fetchTokenMetadata-1AbceoZv.js → fetchTokenMetadata-4TPAW-0J.js} +3 -3
  78. package/_assets/{field.styles-DwpKCezV.js → field.styles-DkP4EUDp.js} +2 -2
  79. package/_assets/{fortmatic-CeTGzQ72.js → fortmatic-Byi5UiOW.js} +2 -2
  80. package/_assets/{get-bytecode-B4ZUFLU7.js → get-bytecode-Cu090exg.js} +2 -2
  81. package/_assets/{get-ecosystem-wallet-info-Da9XiCOd.js → get-ecosystem-wallet-info-BtF8AVTy.js} +2 -2
  82. package/_assets/{getBalance-CJap-JGo.js → getBalance-CLerx9db.js} +3 -3
  83. package/_assets/{getInstalledModules-Do6d5mXY.js → getInstalledModules-JS9WynYq.js} +2 -2
  84. package/_assets/{getNFT-CLshkBBY.js → getNFT-DDa0Gtz6.js} +2 -2
  85. package/_assets/{getNFT-CAMw_8Xw.js → getNFT-FIIFTAk5.js} +3 -3
  86. package/_assets/{grid.styles-C5Gu9fMU.js → grid.styles--7kuSBOW.js} +2 -2
  87. package/_assets/{hashTypedData-BUtmFCdm.js → hashTypedData-BAid2zcm.js} +2 -2
  88. package/_assets/{hashTypedData-Vr7bI_tu.js → hashTypedData-CxsyK_ey.js} +2 -2
  89. package/_assets/{in-app-nwWqF9c8.js → in-app-Bdlyj-VE.js} +2 -2
  90. package/_assets/{in-app-wallet-calls-N7orXys6.js → in-app-wallet-calls-CbJr8ixd.js} +2 -2
  91. package/_assets/{index-BASnFl3W.js → index--IK1Sft8.js} +2 -2
  92. package/_assets/{index-C6yqnRel.js → index-5T7h8H5X.js} +2 -2
  93. package/_assets/{index-Casvq6JB.js → index-66a3-eV4.js} +2 -2
  94. package/_assets/{index-CKPrX-hd.js → index-B1OQapSe.js} +2 -2
  95. package/_assets/{index-DxcjAnEQ.js → index-B8DDvD5C.js} +2 -2
  96. package/_assets/{index-CTkFcWFW.js → index-BA0ecyfk.js} +2 -2
  97. package/_assets/{index-BaO4bMuZ.js → index-BAFd5X5s.js} +2 -2
  98. package/_assets/{index-mJBnQ2Dj.js → index-BIdoUXuM.js} +2 -2
  99. package/_assets/{index-C24_ekJb.js → index-BMnKJ7um.js} +2 -2
  100. package/_assets/{index-Ardj6yky.js → index-BO3CZL7c.js} +2 -2
  101. package/_assets/{index-Bl1ek_ne.js → index-BSaDYTxt.js} +2 -2
  102. package/_assets/{index-arksk5Cj.js → index-BU7bOvUQ.js} +2 -2
  103. package/_assets/{index-o602nshH.js → index-BYc2EMXr.js} +2 -2
  104. package/_assets/{index-BRZfndrv.js → index-Bhox8ufA.js} +2 -2
  105. package/_assets/{index-BmpxmYmS.js → index-BjWQloYQ.js} +2 -2
  106. package/_assets/{index-C7dG5MlC.js → index-BzKehLq1.js} +2 -2
  107. package/_assets/{index-BYVFrjrb.js → index-C-_gSOF6.js} +3 -3
  108. package/_assets/{index-j4G49haZ.js → index-C4q1d-Fd.js} +2 -2
  109. package/_assets/{index-N6bLRe9n.js → index-C6CdXJkm.js} +2 -2
  110. package/_assets/{index-CPFt5W7a.js → index-C6o6IpUT.js} +2 -2
  111. package/_assets/{index-_r_ufyIV.js → index-C7Y7jomx.js} +2 -2
  112. package/_assets/{index-CqtWNRv-.js → index-C7kKm9Pu.js} +2 -2
  113. package/_assets/{index-BQb3Wk5r.js → index-C94H9_tC.js} +2 -2
  114. package/_assets/{index-DxNecTCT.js → index-CHHUeGtc.js} +3 -3
  115. package/_assets/{index-DUZQbok2.js → index-CJxYNhjz.js} +2 -2
  116. package/_assets/{index-CW_28RYg.js → index-CMnmh3jz.js} +2 -2
  117. package/_assets/{index-DL9BGlLg.js → index-CQP1mPeG.js} +2 -2
  118. package/_assets/{index-CoOoDCex.js → index-CV5pItZG.js} +2 -2
  119. package/_assets/{index-DrBZNwIH.js → index-CXukCjj1.js} +2 -2
  120. package/_assets/{index-CyD5pQGT.js → index-ChJw9kFE.js} +2 -2
  121. package/_assets/{index-DaYk4f8v.js → index-Cj153qSg.js} +4 -4
  122. package/_assets/{index-ZsDPPnJO.js → index-ClzkdB8z.js} +2 -2
  123. package/_assets/{index-CLkhQUQ6.js → index-CoF-9wxy.js} +2 -2
  124. package/_assets/{index-DUiscdsk.js → index-CtAQFnxk.js} +2 -2
  125. package/_assets/{index-PD4xoiKM.js → index-D0ZGbOcV.js} +2 -2
  126. package/_assets/{index-CU8_wCvl.js → index-D8aZQi2T.js} +2 -2
  127. package/_assets/{index-eN8iGXCt.js → index-DEMKJ56b.js} +2 -2
  128. package/_assets/{index-7V82xXhB.js → index-DGWb-703.js} +2 -2
  129. package/_assets/{index-C7ZiEK10.js → index-DGyZchp-.js} +2 -2
  130. package/_assets/{index-C5ykZ17C.js → index-DIxEiVFV.js} +2 -2
  131. package/_assets/{index-C5IAd4qq.js → index-DRCOJh6s.js} +2 -2
  132. package/_assets/{index-eBmw3fXZ.js → index-DT71XGP-.js} +2 -2
  133. package/_assets/{index-Bk-sREBo.js → index-DTPYPqJU.js} +3 -3
  134. package/_assets/{index-otS3prm0.js → index-DTaaHeVQ.js} +2 -2
  135. package/_assets/{index-DcHviZ_A.js → index-DUzStg09.js} +2 -2
  136. package/_assets/{index-9Kw5Rztb.js → index-DYooaWId.js} +2 -2
  137. package/_assets/{index-CzJG485v.js → index-De_zfcOO.js} +4 -4
  138. package/_assets/{index-BRQaaXvE.js → index-DgXBPAm_.js} +2 -2
  139. package/_assets/{index-D7jo6ksh.js → index-DhQbUPpF.js} +2 -2
  140. package/_assets/{index-hVKWyt40.js → index-DipEvVT9.js} +2 -2
  141. package/_assets/{index-C8CrTE0H.js → index-DjkvHGdg.js} +4 -4
  142. package/_assets/{index-B-dIqjhn.js → index-Dl4hrRT2.js} +12 -12
  143. package/_assets/{index-DN4pkOIt.js → index-Dn8xuNDB.js} +2 -2
  144. package/_assets/{index-8nD-GtHU.js → index-DpKuFVdi.js} +2 -2
  145. package/_assets/{index-B5BlLi8g.js → index-DpYNYuLQ.js} +2 -2
  146. package/_assets/{index-BdeCgajO.js → index-Dy2SxTsa.js} +2 -2
  147. package/_assets/{index-CIonCZaH.js → index-JahQM-0d.js} +2 -2
  148. package/_assets/{index-D165_lhw.js → index-N3qNnxTo.js} +2 -2
  149. package/_assets/{index-CeMUz1Vt.js → index-N7hPewar.js} +2 -2
  150. package/_assets/{index-DyxdGNpO.js → index-OvuTK60o.js} +2 -2
  151. package/_assets/{index-CyMO1hqV.js → index-RC5VhbLR.js} +2 -2
  152. package/_assets/{index-GpII3RQe.js → index-WyhU4TBa.js} +2 -2
  153. package/_assets/{index-NxvojHai.js → index-X2m4MLDN.js} +3 -3
  154. package/_assets/{index-BV9RyOEp.js → index-hwQ3WWoP.js} +2 -2
  155. package/_assets/{index-FcM585jS.js → index-qzzwKbJI.js} +2 -2
  156. package/_assets/{index-BQ9y6ZaA.js → index-sPgW1Gyb.js} +2 -2
  157. package/_assets/{index-BMDWzXEE.js → index-y8riFEF7.js} +2 -2
  158. package/_assets/{index.es-N9rocrKW.js → index.es-5ighfc2K.js} +2 -2
  159. package/_assets/{index.es-Cv5GXMGv.js → index.es-BN_feL1z.js} +2 -2
  160. package/_assets/{index.es-D6r5jb9y.js → index.es-Bas2yfUy.js} +2 -2
  161. package/_assets/{index.es-BYlgbFaR.js → index.es-DAQ2POad.js} +5 -5
  162. package/_assets/items-empty-D3FNNYeD.js +2 -0
  163. package/_assets/{jump-CZr_KgFH.js → jump-Dr035GHt.js} +2 -2
  164. package/_assets/{linkAccount-DDn4BnMD.js → linkAccount-DDcAG0nl.js} +2 -2
  165. package/_assets/{localBatchGatewayRequest-D-Y_ipMD.js → localBatchGatewayRequest-C6osHWxc.js} +2 -2
  166. package/_assets/{native-EhJtXu3y.js → native-C52Z8TfX.js} +2 -2
  167. package/_assets/{networks-Bu5S3nZh.js → networks-CkG0QClb.js} +2 -2
  168. package/_assets/{onramp-DafTmJEE.js → onramp-DIygeWPQ.js} +2 -2
  169. package/_assets/{openzeppelin-DrjFStIu.js → openzeppelin-gox-REHN.js} +2 -2
  170. package/_assets/{ownerOf-C6L3B_bp.js → ownerOf-DGnXfk0_.js} +2 -2
  171. package/_assets/{parseNft-Blq_Sjtq.js → parseNft-BcJ4-C71.js} +3 -3
  172. package/_assets/{parseSignature-GSnulywH.js → parseSignature-gm5DxN9A.js} +4 -4
  173. package/_assets/{parseSignature-Q7C9dXBW.js → parseSignature-nraJiLlg.js} +2 -2
  174. package/_assets/{passkeys-BKUjWMsd.js → passkeys-C5HPgqf5.js} +2 -2
  175. package/_assets/{pay-with-exchange-ChWZJZmh.js → pay-with-exchange-Ba7yTfPB.js} +2 -2
  176. package/_assets/{prepare-contract-call-B2J2TZU4.js → prepare-contract-call-BIfjyTYu.js} +2 -2
  177. package/_assets/{qr-overlay-Dp5EKTi4.js → qr-overlay-CxWKfrGr.js} +4 -4
  178. package/_assets/{react-DcSw8tCD.js → react-D7nfuWd6.js} +2 -2
  179. package/_assets/{receive-jGBB6R5D.js → receive-CNs-u97l.js} +2 -2
  180. package/_assets/{resolveImplementation-mqgPq49O.js → resolveImplementation-_7q3dOKp.js} +2 -2
  181. package/_assets/{resume-buy-CEzVJZQm.js → resume-buy-BQxam5dL.js} +2 -2
  182. package/_assets/{rpc-DYUIG9Ju.js → rpc-WOvA0Ped.js} +2 -2
  183. package/_assets/{sales-empty-Vn4xVfP7.js → sales-empty-CCTVsons.js} +2 -2
  184. package/_assets/{search-empty-PfWp7qfl.js → search-empty-B4_pLY-K.js} +2 -2
  185. package/_assets/{secp256k1-N8bNn80H.js → secp256k1-DTLAfMHI.js} +2 -2
  186. package/_assets/{secp256k1-Bh8CfHpQ.js → secp256k1-NiwVfMiW.js} +2 -2
  187. package/_assets/{secp256k1-Dse58ee0.js → secp256k1-nmicBOFq.js} +2 -2
  188. package/_assets/{send-h29mxUrF.js → send-DMVF8o0c.js} +2 -2
  189. package/_assets/{send-batch-transaction-BpqXJtGJ.js → send-batch-transaction-DSUMPrdj.js} +2 -2
  190. package/_assets/{send-eip712-transaction-D2-3cTz5.js → send-eip712-transaction-IUeUwhLU.js} +3 -3
  191. package/_assets/{send-gasless-transaction-DvU-irYQ.js → send-gasless-transaction-DPOrkR-S.js} +3 -3
  192. package/_assets/{send-transaction-FUszabPU.js → send-transaction-cYAHoDgz.js} +3 -3
  193. package/_assets/{sendMetaTransaction-CcfiyKVp.js → sendMetaTransaction-DmChWu2Q.js} +2 -2
  194. package/_assets/{sendRawTransaction-BQgltNSJ.js → sendRawTransaction-Cnquj3L1.js} +4 -4
  195. package/_assets/{sentry-CAS3BNIy.js → sentry-CoTjVJfh.js} +3 -3
  196. package/_assets/{serializeTransaction-__k14-5R.js → serializeTransaction-Bp_Y4Oqz.js} +2 -2
  197. package/_assets/{session-proposal-C3dOHBpp.js → session-proposal-COdN5hib.js} +2 -2
  198. package/_assets/{session-request-La1Lz5pY.js → session-request-bFy7aBRa.js} +3 -3
  199. package/_assets/{sha256-CLzVl0-i.js → sha256-XcxD-HDJ.js} +2 -2
  200. package/_assets/{signing-ClZDdyWr.js → signing-CcTSfbp4.js} +4 -4
  201. package/_assets/{skeleton.styles-BideLusx.js → skeleton.styles-DBZfxDFe.js} +2 -2
  202. package/_assets/{socials-DU6TufzI.js → socials-CSee1341.js} +2 -2
  203. package/_assets/{styled-lv29vbU7.js → styled-EO0aCK0k.js} +2 -2
  204. package/_assets/{swaps-DsEkYfnN.js → swaps-y_VHcKeY.js} +2 -2
  205. package/_assets/{thirdweb-ByxuX0DY.js → thirdweb-CL9aFDQn.js} +4 -4
  206. package/_assets/{to-serializable-transaction-B9MSl050.js → to-serializable-transaction-68n-Uy9K.js} +3 -3
  207. package/_assets/{totalSupply-DOU8z336.js → totalSupply-BWWtuqmY.js} +2 -2
  208. package/_assets/{transaction-CuK5IUGr.js → transaction-xKWAbiZz.js} +2 -2
  209. package/_assets/{transactionReceipt-jeQgFWvn.js → transactionReceipt-VPc5kVRc.js} +2 -2
  210. package/_assets/{transactions-C5_JA1NE.js → transactions-CQO9InHD.js} +2 -2
  211. package/_assets/{useCreditPacks-CU0lRdPq.js → useCreditPacks-CAXhYC8D.js} +2 -2
  212. package/_assets/{useInfiniteGrid-BPtTRHIB.js → useInfiniteGrid-B88HDzOV.js} +2 -2
  213. package/_assets/{useStore-rPC8Gwuv.js → useStore-EuJEkDB4.js} +3 -3
  214. package/_assets/{useTheme-C_44BN3j.js → useTheme-Df-Vsg8U.js} +2 -2
  215. package/_assets/{utils-BV4hvYlV.js → utils-esa8OSIj.js} +2 -2
  216. package/_assets/{verifyHash-qwpY3McX.js → verifyHash-PbJswfF6.js} +2 -2
  217. package/_assets/{w3m-modal-RWmLMEhq.js → w3m-modal-Ctr3krI_.js} +2 -2
  218. package/_assets/{w3m-modal-IH0P0x8g.js → w3m-modal-X3ZNcEkC.js} +2 -2
  219. package/_assets/{wait-for-tx-receipt-CfUmETfV.js → wait-for-tx-receipt-CrqjqK2x.js} +2 -2
  220. package/_assets/{wallets-DBFKTZVz.js → wallets-ChmX60CP.js} +6 -6
  221. package/_assets/{web-connector-5O3sqPuw.js → web-connector-Bk-wpPaT.js} +4 -4
  222. package/_assets/{writeContract-CwGPT4Iu.js → writeContract-DP5yj6TY.js} +2 -2
  223. package/_assets/{zora-sepolia-CLbV2B8e.js → zora-sepolia-CZVN75mJ.js} +2 -2
  224. package/_assets/{zoraTestnet-wnoXWuLz.js → zoraTestnet-C0i-JsRg.js} +2 -2
  225. package/index.html +11 -11
  226. package/package.json +1 -1
  227. package/_assets/collectionPage.styles-Djchm0Nm.js +0 -40
  228. package/_assets/items-empty-DHu8EAf0.js +0 -2
@@ -1,4 +1,4 @@
1
- import{j as e,b as pe,r as p,L as he}from"./react-DcSw8tCD.js";import{t as A,s as n,m as ge,p as xe,b as a,C as N,B as Q,bR as re,q as O,ao as oe,ad as me,b8 as K,h as U,a5 as ue,o as fe,r as we,b7 as be,I as G,ap as ye,ar as ve,bS as je,bT as ke,bc as $e,w as H}from"./index-B-dIqjhn.js";import{c as Ce,i as Ie,R as Te,u as Se}from"./sales-empty-Vn4xVfP7.js";import{S as Le,C as ze}from"./ManaPricingBanner.styles-CLIn26ZQ.js";import{F as V}from"./Faq-D9k3ABvT.js";import{C as Y}from"./field.styles-DwpKCezV.js";import"./dcl-schemas-CN-1-wGb.js";import"./sentry-CAS3BNIy.js";import"./ethers-3hUTVH_L.js";import"./intl-AKLEHPeO.js";import"./buy-DZz-IuoV.js";import"./authorizations-Bq00FRrP.js";import"./sendMetaTransaction-CcfiyKVp.js";(function(){try{var s=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},d=new s.Error().stack;d&&(s._sentryDebugIds=s._sentryDebugIds||{},s._sentryDebugIds[d]="2ac0516f-0c80-4a04-9747-ee2e12893366",s._sentryDebugIdIdentifier="sentry-dbid-2ac0516f-0c80-4a04-9747-ee2e12893366")}catch{}})();function Ae({size:s=12,...d}){return e.jsx("svg",{viewBox:"0 0 20 20",width:s,height:s,fill:"none","aria-hidden":!0,focusable:"false",...d,children:e.jsx("path",{d:"M5 10.5l3 3 7-7.5",stroke:"#fff",strokeWidth:"2.4",strokeLinecap:"round",strokeLinejoin:"round"})})}function Re({size:s=84.837,...d}){return e.jsxs("svg",{viewBox:"0 0 84.837 84.837",width:s,height:s,fill:"none","aria-hidden":!0,focusable:"false",...d,children:[e.jsxs("g",{stroke:A.colors.errStrong,strokeWidth:"6.08696",strokeLinecap:"round",children:[e.jsx("circle",{cx:"42.4185",cy:"42.4185",r:"39.375"}),e.jsx("path",{d:"M42.4185 22.5V47.5"})]}),e.jsx("circle",{cx:"42.4185",cy:"60.75",r:"3.8",fill:A.colors.errStrong})]})}const{colors:R,radius:_e,z:Fe}=A,Ee=ge`
1
+ import{j as e,b as pe,r as p,L as he}from"./react-D7nfuWd6.js";import{t as A,s as n,m as ge,p as xe,b as a,C as N,B as Q,bR as re,q as O,ao as oe,ad as me,b8 as K,h as U,a5 as ue,o as fe,r as we,b7 as be,I as G,ap as ye,ar as ve,bS as je,bT as ke,bc as $e,w as H}from"./index-Dl4hrRT2.js";import{c as Ce,i as Ie,R as Te,u as Se}from"./sales-empty-CCTVsons.js";import{S as Le,C as ze}from"./ManaPricingBanner.styles-BTa9K2RR.js";import{F as V}from"./Faq-CNnBIEfE.js";import{C as Y}from"./field.styles-DkP4EUDp.js";import"./dcl-schemas-CfMjyfZx.js";import"./sentry-CoTjVJfh.js";import"./ethers-Dv96XuWO.js";import"./intl-AKLEHPeO.js";import"./buy-Cnme_X5d.js";import"./authorizations-BnWB-XGW.js";import"./sendMetaTransaction-DmChWu2Q.js";(function(){try{var s=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},d=new s.Error().stack;d&&(s._sentryDebugIds=s._sentryDebugIds||{},s._sentryDebugIds[d]="2ac0516f-0c80-4a04-9747-ee2e12893366",s._sentryDebugIdIdentifier="sentry-dbid-2ac0516f-0c80-4a04-9747-ee2e12893366")}catch{}})();function Ae({size:s=12,...d}){return e.jsx("svg",{viewBox:"0 0 20 20",width:s,height:s,fill:"none","aria-hidden":!0,focusable:"false",...d,children:e.jsx("path",{d:"M5 10.5l3 3 7-7.5",stroke:"#fff",strokeWidth:"2.4",strokeLinecap:"round",strokeLinejoin:"round"})})}function Re({size:s=84.837,...d}){return e.jsxs("svg",{viewBox:"0 0 84.837 84.837",width:s,height:s,fill:"none","aria-hidden":!0,focusable:"false",...d,children:[e.jsxs("g",{stroke:A.colors.errStrong,strokeWidth:"6.08696",strokeLinecap:"round",children:[e.jsx("circle",{cx:"42.4185",cy:"42.4185",r:"39.375"}),e.jsx("path",{d:"M42.4185 22.5V47.5"})]}),e.jsx("circle",{cx:"42.4185",cy:"60.75",r:"3.8",fill:A.colors.errStrong})]})}const{colors:R,radius:_e,z:Fe}=A,Ee=ge`
2
2
  0% {
3
3
  transform: scale(0);
4
4
  opacity: 0;
@@ -623,4 +623,4 @@ import{j as e,b as pe,r as p,L as he}from"./react-DcSw8tCD.js";import{t as A,s a
623
623
  }
624
624
  }
625
625
  `,W=[5e3,15e3,35e3],se=[{question:"faq.sellers.whatAreQ",answer:"faq.sellers.whatAreA"},{question:"faq.sellers.whyCreditsQ",answer:"faq.sellers.whyCreditsA"},{question:"faq.sellers.receiveCreditsQ",answer:"faq.sellers.receiveCreditsA"},{question:"faq.sellers.changePriceQ",answer:"faq.sellers.changePriceA"},{question:"faq.sellers.mustSwitchQ",answer:"faq.sellers.mustSwitchA"},{question:"faq.sellers.suggestedPriceQ",answer:"faq.sellers.suggestedPriceA"}],Wt="https://docs.decentraland.org";function Nt(s){try{return $e(BigInt(s))}catch{return null}}function ni(){const{session:s}=fe(),d=we(),{items:h,isLoading:I}=Se(),[B,y]=p.useState({}),[q,F]=p.useState(new Set),[x,E]=p.useState(null),l=p.useRef({timer:null,alive:!0,migrated:new Set});p.useEffect(()=>{const t=l.current;return t.alive=!0,()=>{t.alive=!1,t.timer&&clearTimeout(t.timer)}},[]),p.useEffect(()=>{h.length&&y(t=>{const i={...t};for(const r of h)i[r.oldTradeId]==null&&(i[r.oldTradeId]=r.suggestedCredits);return i})},[h]);const b=t=>!q.has(t),v=t=>B[t.oldTradeId]??t.suggestedCredits,w=h.filter(t=>b(t.oldTradeId)),T=w.reduce((t,i)=>t+v(i),0),j=h.length>0&&w.length===h.length,k=w.length>0&&!j;function M(t,i){const r=i.replace(/[^\d]/g,"");y(c=>({...c,[t]:r===""?0:parseInt(r,10)}))}function D(t){F(i=>{const r=new Set(i);return r.has(t)?r.delete(t):r.add(t),r})}function C(){F(j?new Set(h.map(t=>t.oldTradeId)):new Set)}function S(t){return t.map(i=>({item:i,priceCredits:Math.max(1,v(i))}))}function m(t){const i=(r=[])=>r.filter(c=>!t.has(c.oldTradeId));d.setQueriesData({queryKey:["importable"]},r=>r&&{creations:i(r.creations),owned:i(r.owned)})}function $(t){return d.getQueriesData({queryKey:["importable"]}).flatMap(([,i])=>[...(i==null?void 0:i.creations)??[],...(i==null?void 0:i.owned)??[]]).some(i=>t.has(i.oldTradeId))}function L(t){const i=l.current;i.timer&&clearTimeout(i.timer),i.timer=setTimeout(()=>{d.refetchQueries({queryKey:["importable"]}).then(()=>{if(i.alive){if(!$(i.migrated)||t+1>=W.length){i.migrated.clear();return}m(i.migrated),L(t+1)}})},W[t]-(W[t-1]??0))}function P(t){if(t.failed===0&&t.cancelled===0&&t.listed>0&&(x!=null&&x.length)){const{migrated:i}=l.current;for(const r of x)i.add(r.item.oldTradeId);m(i),L(0)}else d.invalidateQueries({queryKey:["importable"]});d.invalidateQueries({queryKey:["shop-items"]}),d.invalidateQueries({queryKey:["catalog-items"]}),d.invalidateQueries({queryKey:["overview-listings"]}),d.invalidateQueries({queryKey:["upsell-listings"]}),d.invalidateQueries({queryKey:["my-assets"]}),d.invalidateQueries({queryKey:["collection-sale-state"]}),t.failed>0?H.error(a(t.listed>0?"importListings.toastPartial":"importListings.toastFailed")):t.listed>0&&H.success(a("importListings.toastUpdated"))}return!I&&h.length===0?e.jsxs(ee,{children:[e.jsx(at,{"data-testid":"import-empty",children:e.jsxs(st,{children:[e.jsx(rt,{"aria-hidden":!0,children:e.jsx("img",{src:it,alt:"",width:85,height:85})}),e.jsxs(ot,{children:[e.jsx(dt,{children:a("importListings.emptyTitle")}),e.jsx(lt,{children:a("importListings.emptyBody")})]}),e.jsx(ct,{children:e.jsx(pt,{as:he,to:re,variant:"purple",children:a("importListings.goToMyAssets")})})]})}),e.jsx(ae,{children:e.jsx(V,{title:"faq.title",entries:se,tone:"on-dark"})})]}):e.jsxs(ee,{children:[e.jsxs(ht,{children:[e.jsxs(gt,{children:[e.jsx(xt,{children:a("importListings.title")}),e.jsxs("div",{children:[e.jsx(mt,{children:a("importListings.lede",{currency:be(N.name)})}),e.jsxs(ut,{href:Wt,target:"_blank",rel:"noopener noreferrer",children:[a("importListings.learnMore"),e.jsx(G,{name:"external-link",className:"ico","aria-hidden":!0})]})]})]}),e.jsx(ze,{tone:"on-dark"})]}),e.jsx(te,{}),e.jsxs(ft,{children:[e.jsxs(wt,{"data-testid":"import-progress",children:[e.jsx(bt,{"data-testid":"import-count",children:h.length}),a("importListings.updatePricing")]}),e.jsxs(yt,{children:[e.jsxs(vt,{children:[e.jsx(ie,{"data-tone":"on-dark",children:e.jsx(Y,{type:"checkbox",checked:j,ref:t=>{t&&(t.indeterminate=k)},"data-indeterminate":k,onChange:C,"data-testid":"import-select-all","aria-label":a("importListings.selectAllAria")})}),a("importListings.selectAll")]}),e.jsx(jt,{children:I?Array.from({length:4}).map((t,i)=>e.jsx(Ft,{},i)):h.map(t=>{const i=v(t),r=ye({...t,wearableCategory:t.wearableCategory??void 0}),c=Nt(t.manaWei);return e.jsxs(kt,{"data-off":b(t.oldTradeId)?void 0:!0,children:[e.jsxs($t,{children:[e.jsx(ie,{children:e.jsx(Y,{type:"checkbox",checked:b(t.oldTradeId),onChange:()=>D(t.oldTradeId),"data-testid":"import-row-check","aria-label":a("importListings.includeItem",{name:t.name})})}),e.jsx(Ct,{children:t.thumbnail?e.jsx("img",{src:t.thumbnail,alt:""}):null})]}),e.jsxs(It,{children:[e.jsx(Tt,{title:t.name,children:t.name||a("importListings.itemFallback")}),e.jsxs(St,{children:[e.jsx(ne,{"data-variant":"rarity",style:{background:ke(t.rarity),color:je(t.rarity)},children:ve(t.rarity)}),r?e.jsx(ne,{"data-variant":"icon",children:e.jsx(G,{name:r,"aria-hidden":!0})}):null]})]}),e.jsxs(Lt,{children:[e.jsxs(zt,{children:[e.jsx(O,{}),e.jsx(At,{"data-testid":"imp-price-input",inputMode:"numeric",value:i.toLocaleString(),onChange:g=>M(t.oldTradeId,g.target.value),"aria-label":a("importListings.priceAria",{currency:N.name,name:t.name})})]}),e.jsxs(Rt,{children:[e.jsxs("span",{children:["$",K(i).toFixed(2)]}),c?e.jsx(_t,{children:a("importListings.wasMana",{amount:c})}):null]})]})]},t.oldTradeId)})})]})]}),e.jsx(te,{}),e.jsx(ae,{children:e.jsx(V,{title:"faq.title",entries:se,tone:"on-dark"})}),e.jsx(Et,{children:e.jsxs(Mt,{children:[e.jsxs(Pt,{children:[e.jsxs(Qt,{children:[e.jsx(O,{})," ",e.jsx(oe,{credits:T})]}),e.jsx(Bt,{children:a("importListings.selectedSummary",{count:w.length,usd:K(T).toFixed(2)})})]}),e.jsx(qt,{}),e.jsx(Dt,{variant:"red","data-testid":"import-list-all",disabled:w.length===0,onClick:()=>E(S(w)),children:a("importListings.listAll",{count:w.length})})]})}),x&&s?e.jsx(tt,{queue:x,session:s,onClose:()=>E(null),onDone:P}):null]})}export{ni as ImportListings};
626
- //# sourceMappingURL=index-Bl1ek_ne.js.map
626
+ //# sourceMappingURL=index-BSaDYTxt.js.map
@@ -1,4 +1,4 @@
1
- import{i as c,b as a}from"./lit-element-wjYUA6aF.js";import{n as o,o as h}from"./class-map-DopF_Eyi.js";import{e as b,n as m}from"./ref-Uk7bJ2Ii.js";import{c as f}from"./index-BQ9y6ZaA.js";import{d as x,r as y,e as g}from"./index-C8CrTE0H.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new t.Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="4518c711-901a-4abd-b479-6ea9b290aea1",t._sentryDebugIdIdentifier="sentry-dbid-4518c711-901a-4abd-b479-6ea9b290aea1")}catch{}})();const $=x`
1
+ import{i as c,b as a}from"./lit-element-wjYUA6aF.js";import{n as o,o as h}from"./class-map-DopF_Eyi.js";import{e as b,n as m}from"./ref-Uk7bJ2Ii.js";import{c as f}from"./index-sPgW1Gyb.js";import{d as x,r as y,e as g}from"./index-DjkvHGdg.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new t.Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="4518c711-901a-4abd-b479-6ea9b290aea1",t._sentryDebugIdIdentifier="sentry-dbid-4518c711-901a-4abd-b479-6ea9b290aea1")}catch{}})();const $=x`
2
2
  :host {
3
3
  position: relative;
4
4
  width: 100%;
@@ -150,4 +150,4 @@ import{i as c,b as a}from"./lit-element-wjYUA6aF.js";import{n as o,o as h}from".
150
150
  >
151
151
  ${this.loading?a`<wui-icon name="spinner" size="md"></wui-icon>`:a`<wui-icon name="chevronRight" size="md"></wui-icon>`}
152
152
  </button>`:null}templateError(){return this.errorText?a`<wui-text variant="sm-regular" color="error">${this.errorText}</wui-text>`:null}templateWarning(){return this.warningText?a`<wui-text variant="sm-regular" color="warning">${this.warningText}</wui-text>`:null}dispatchInputChangeEvent(){var e;this.dispatchEvent(new CustomEvent("inputChange",{detail:(e=this.inputElementRef.value)==null?void 0:e.value,bubbles:!0,composed:!0}))}};i.styles=[y,g,$];n([o()],i.prototype,"icon",void 0);n([o({type:Boolean})],i.prototype,"disabled",void 0);n([o({type:Boolean})],i.prototype,"loading",void 0);n([o()],i.prototype,"placeholder",void 0);n([o()],i.prototype,"type",void 0);n([o()],i.prototype,"value",void 0);n([o()],i.prototype,"errorText",void 0);n([o()],i.prototype,"warningText",void 0);n([o()],i.prototype,"onSubmit",void 0);n([o()],i.prototype,"size",void 0);n([o({attribute:!1})],i.prototype,"onKeyDown",void 0);i=n([f("wui-input-text")],i);
153
- //# sourceMappingURL=index-arksk5Cj.js.map
153
+ //# sourceMappingURL=index-BU7bOvUQ.js.map
@@ -1,2 +1,2 @@
1
- import"./react-DcSw8tCD.js";(function(){try{var v=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},d=new v.Error().stack;d&&(v._sentryDebugIds=v._sentryDebugIds||{},v._sentryDebugIds[d]="baaaa475-91e9-4202-946c-540a970b1d88",v._sentryDebugIdIdentifier="sentry-dbid-baaaa475-91e9-4202-946c-540a970b1d88")}catch{}})();var w={exports:{}},x;function O(){return x||(x=1,(function(v){var d=Object.prototype.hasOwnProperty,f="~";function y(){}Object.create&&(y.prototype=Object.create(null),new y().__proto__||(f=!1));function m(s,t,n){this.fn=s,this.context=t,this.once=n||!1}function g(s,t,n,r,l){if(typeof n!="function")throw new TypeError("The listener must be a function");var c=new m(n,r||s,l),o=f?f+t:t;return s._events[o]?s._events[o].fn?s._events[o]=[s._events[o],c]:s._events[o].push(c):(s._events[o]=c,s._eventsCount++),s}function b(s,t){--s._eventsCount===0?s._events=new y:delete s._events[t]}function u(){this._events=new y,this._eventsCount=0}u.prototype.eventNames=function(){var t=[],n,r;if(this._eventsCount===0)return t;for(r in n=this._events)d.call(n,r)&&t.push(f?r.slice(1):r);return Object.getOwnPropertySymbols?t.concat(Object.getOwnPropertySymbols(n)):t},u.prototype.listeners=function(t){var n=f?f+t:t,r=this._events[n];if(!r)return[];if(r.fn)return[r.fn];for(var l=0,c=r.length,o=new Array(c);l<c;l++)o[l]=r[l].fn;return o},u.prototype.listenerCount=function(t){var n=f?f+t:t,r=this._events[n];return r?r.fn?1:r.length:0},u.prototype.emit=function(t,n,r,l,c,o){var a=f?f+t:t;if(!this._events[a])return!1;var e=this._events[a],p=arguments.length,h,i;if(e.fn){switch(e.once&&this.removeListener(t,e.fn,void 0,!0),p){case 1:return e.fn.call(e.context),!0;case 2:return e.fn.call(e.context,n),!0;case 3:return e.fn.call(e.context,n,r),!0;case 4:return e.fn.call(e.context,n,r,l),!0;case 5:return e.fn.call(e.context,n,r,l,c),!0;case 6:return e.fn.call(e.context,n,r,l,c,o),!0}for(i=1,h=new Array(p-1);i<p;i++)h[i-1]=arguments[i];e.fn.apply(e.context,h)}else{var E=e.length,_;for(i=0;i<E;i++)switch(e[i].once&&this.removeListener(t,e[i].fn,void 0,!0),p){case 1:e[i].fn.call(e[i].context);break;case 2:e[i].fn.call(e[i].context,n);break;case 3:e[i].fn.call(e[i].context,n,r);break;case 4:e[i].fn.call(e[i].context,n,r,l);break;default:if(!h)for(_=1,h=new Array(p-1);_<p;_++)h[_-1]=arguments[_];e[i].fn.apply(e[i].context,h)}}return!0},u.prototype.on=function(t,n,r){return g(this,t,n,r,!1)},u.prototype.once=function(t,n,r){return g(this,t,n,r,!0)},u.prototype.removeListener=function(t,n,r,l){var c=f?f+t:t;if(!this._events[c])return this;if(!n)return b(this,c),this;var o=this._events[c];if(o.fn)o.fn===n&&(!l||o.once)&&(!r||o.context===r)&&b(this,c);else{for(var a=0,e=[],p=o.length;a<p;a++)(o[a].fn!==n||l&&!o[a].once||r&&o[a].context!==r)&&e.push(o[a]);e.length?this._events[c]=e.length===1?e[0]:e:b(this,c)}return this},u.prototype.removeAllListeners=function(t){var n;return t?(n=f?f+t:t,this._events[n]&&b(this,n)):(this._events=new y,this._eventsCount=0),this},u.prototype.off=u.prototype.removeListener,u.prototype.addListener=u.prototype.on,u.prefixed=f,u.EventEmitter=u,v.exports=u})(w)),w.exports}export{O as r};
2
- //# sourceMappingURL=index-o602nshH.js.map
1
+ import"./react-D7nfuWd6.js";(function(){try{var v=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},d=new v.Error().stack;d&&(v._sentryDebugIds=v._sentryDebugIds||{},v._sentryDebugIds[d]="baaaa475-91e9-4202-946c-540a970b1d88",v._sentryDebugIdIdentifier="sentry-dbid-baaaa475-91e9-4202-946c-540a970b1d88")}catch{}})();var w={exports:{}},x;function O(){return x||(x=1,(function(v){var d=Object.prototype.hasOwnProperty,f="~";function y(){}Object.create&&(y.prototype=Object.create(null),new y().__proto__||(f=!1));function m(s,t,n){this.fn=s,this.context=t,this.once=n||!1}function g(s,t,n,r,l){if(typeof n!="function")throw new TypeError("The listener must be a function");var c=new m(n,r||s,l),o=f?f+t:t;return s._events[o]?s._events[o].fn?s._events[o]=[s._events[o],c]:s._events[o].push(c):(s._events[o]=c,s._eventsCount++),s}function b(s,t){--s._eventsCount===0?s._events=new y:delete s._events[t]}function u(){this._events=new y,this._eventsCount=0}u.prototype.eventNames=function(){var t=[],n,r;if(this._eventsCount===0)return t;for(r in n=this._events)d.call(n,r)&&t.push(f?r.slice(1):r);return Object.getOwnPropertySymbols?t.concat(Object.getOwnPropertySymbols(n)):t},u.prototype.listeners=function(t){var n=f?f+t:t,r=this._events[n];if(!r)return[];if(r.fn)return[r.fn];for(var l=0,c=r.length,o=new Array(c);l<c;l++)o[l]=r[l].fn;return o},u.prototype.listenerCount=function(t){var n=f?f+t:t,r=this._events[n];return r?r.fn?1:r.length:0},u.prototype.emit=function(t,n,r,l,c,o){var a=f?f+t:t;if(!this._events[a])return!1;var e=this._events[a],p=arguments.length,h,i;if(e.fn){switch(e.once&&this.removeListener(t,e.fn,void 0,!0),p){case 1:return e.fn.call(e.context),!0;case 2:return e.fn.call(e.context,n),!0;case 3:return e.fn.call(e.context,n,r),!0;case 4:return e.fn.call(e.context,n,r,l),!0;case 5:return e.fn.call(e.context,n,r,l,c),!0;case 6:return e.fn.call(e.context,n,r,l,c,o),!0}for(i=1,h=new Array(p-1);i<p;i++)h[i-1]=arguments[i];e.fn.apply(e.context,h)}else{var E=e.length,_;for(i=0;i<E;i++)switch(e[i].once&&this.removeListener(t,e[i].fn,void 0,!0),p){case 1:e[i].fn.call(e[i].context);break;case 2:e[i].fn.call(e[i].context,n);break;case 3:e[i].fn.call(e[i].context,n,r);break;case 4:e[i].fn.call(e[i].context,n,r,l);break;default:if(!h)for(_=1,h=new Array(p-1);_<p;_++)h[_-1]=arguments[_];e[i].fn.apply(e[i].context,h)}}return!0},u.prototype.on=function(t,n,r){return g(this,t,n,r,!1)},u.prototype.once=function(t,n,r){return g(this,t,n,r,!0)},u.prototype.removeListener=function(t,n,r,l){var c=f?f+t:t;if(!this._events[c])return this;if(!n)return b(this,c),this;var o=this._events[c];if(o.fn)o.fn===n&&(!l||o.once)&&(!r||o.context===r)&&b(this,c);else{for(var a=0,e=[],p=o.length;a<p;a++)(o[a].fn!==n||l&&!o[a].once||r&&o[a].context!==r)&&e.push(o[a]);e.length?this._events[c]=e.length===1?e[0]:e:b(this,c)}return this},u.prototype.removeAllListeners=function(t){var n;return t?(n=f?f+t:t,this._events[n]&&b(this,n)):(this._events=new y,this._eventsCount=0),this},u.prototype.off=u.prototype.removeListener,u.prototype.addListener=u.prototype.on,u.prefixed=f,u.EventEmitter=u,v.exports=u})(w)),w.exports}export{O as r};
2
+ //# sourceMappingURL=index-BYc2EMXr.js.map
@@ -1,4 +1,4 @@
1
- import{a as w,i as g,b as f}from"./lit-element-wjYUA6aF.js";import{n as y,r as h}from"./class-map-DopF_Eyi.js";import{d as v}from"./index-C8CrTE0H.js";import{c as b}from"./index-BQ9y6ZaA.js";import{j as x,e as $,i as R,p as _,R as T,M as C}from"./W3MFrameProviderSingleton-BClgaXM6.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new t.Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="ad751328-ffee-4ae0-9ad8-69a6a57c61be",t._sentryDebugIdIdentifier="sentry-dbid-ad751328-ffee-4ae0-9ad8-69a6a57c61be")}catch{}})();const s=_({message:"",open:!1,triggerRect:{width:0,height:0,top:0,left:0},variant:"shade"}),P={state:s,subscribe(t){return R(s,()=>t(s))},subscribeKey(t,e){return $(s,t,e)},showTooltip({message:t,triggerRect:e,variant:o}){s.open=!0,s.message=t,s.triggerRect=e,s.variant=o},hide(){s.open=!1,s.message="",s.triggerRect={width:0,height:0,top:0,left:0}}},a=x(P),j=w`
1
+ import{a as w,i as g,b as f}from"./lit-element-wjYUA6aF.js";import{n as y,r as h}from"./class-map-DopF_Eyi.js";import{d as v}from"./index-DjkvHGdg.js";import{c as b}from"./index-sPgW1Gyb.js";import{j as x,e as $,i as R,p as _,R as T,M as C}from"./W3MFrameProviderSingleton-Coji1m5x.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new t.Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="ad751328-ffee-4ae0-9ad8-69a6a57c61be",t._sentryDebugIdIdentifier="sentry-dbid-ad751328-ffee-4ae0-9ad8-69a6a57c61be")}catch{}})();const s=_({message:"",open:!1,triggerRect:{width:0,height:0,top:0,left:0},variant:"shade"}),P={state:s,subscribe(t){return R(s,()=>t(s))},subscribeKey(t,e){return $(s,t,e)},showTooltip({message:t,triggerRect:e,variant:o}){s.open=!0,s.message=t,s.triggerRect=e,s.variant=o},hide(){s.open=!1,s.message="",s.triggerRect={width:0,height:0,top:0,left:0}}},a=x(P),j=w`
2
2
  :host {
3
3
  width: 100%;
4
4
  display: block;
@@ -98,4 +98,4 @@ import{a as w,i as g,b as f}from"./lit-element-wjYUA6aF.js";import{n as y,r as h
98
98
  <wui-icon data-placement="top" size="inherit" name="cursor"></wui-icon>
99
99
  <wui-text color="primary" variant="sm-regular">${this.message}</wui-text>
100
100
  </wui-flex>`}};p.styles=[E];u([h()],p.prototype,"open",void 0);u([h()],p.prototype,"message",void 0);u([h()],p.prototype,"triggerRect",void 0);u([h()],p.prototype,"variant",void 0);p=u([b("w3m-tooltip")],p);
101
- //# sourceMappingURL=index-BRZfndrv.js.map
101
+ //# sourceMappingURL=index-Bhox8ufA.js.map
@@ -1,4 +1,4 @@
1
- import{w as t,a as d,i as n,b as p}from"./lit-element-wjYUA6aF.js";import{n as c}from"./class-map-DopF_Eyi.js";import{c as w,t as g}from"./index-BQ9y6ZaA.js";import{r as k}from"./index-C8CrTE0H.js";(function(){try{var l=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},i=new l.Error().stack;i&&(l._sentryDebugIds=l._sentryDebugIds||{},l._sentryDebugIds[i]="62b4cddd-8e0f-4d47-a273-78284f1ff1eb",l._sentryDebugIdIdentifier="sentry-dbid-62b4cddd-8e0f-4d47-a273-78284f1ff1eb")}catch{}})();const v=t`<svg width="64" height="64" viewBox="0 0 64 64" fill="none" xmlns="http://www.w3.org/2000/svg">
1
+ import{w as t,a as d,i as n,b as p}from"./lit-element-wjYUA6aF.js";import{n as c}from"./class-map-DopF_Eyi.js";import{c as w,t as g}from"./index-sPgW1Gyb.js";import{r as k}from"./index-DjkvHGdg.js";(function(){try{var l=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},i=new l.Error().stack;i&&(l._sentryDebugIds=l._sentryDebugIds||{},l._sentryDebugIds[i]="62b4cddd-8e0f-4d47-a273-78284f1ff1eb",l._sentryDebugIdIdentifier="sentry-dbid-62b4cddd-8e0f-4d47-a273-78284f1ff1eb")}catch{}})();const v=t`<svg width="64" height="64" viewBox="0 0 64 64" fill="none" xmlns="http://www.w3.org/2000/svg">
2
2
  <rect width="64" height="64" fill="#F7931A"/>
3
3
  <g clip-path="url(#clip0_1045_17)">
4
4
  <path d="M63.0394 39.7409C58.7654 56.8839 41.4024 67.3169 24.2574 63.0419C7.11937 58.7679 -3.31363 41.4039 0.962367 24.2619C5.23437 7.11686 22.5974 -3.31714 39.7374 0.956863C56.8814 5.23086 67.3134 22.5969 63.0394 39.7409Z" fill="#F7931A"/>
@@ -466,4 +466,4 @@ import{w as t,a as d,i as n,b as p}from"./lit-element-wjYUA6aF.js";import{n as c
466
466
  `;var f=function(l,i,C,a){var r=arguments.length,e=r<3?i:a===null?a=Object.getOwnPropertyDescriptor(i,C):a,h;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")e=Reflect.decorate(l,i,C,a);else for(var s=l.length-1;s>=0;s--)(h=l[s])&&(e=(r<3?h(e):r>3?h(i,C,e):h(i,C))||e);return r>3&&e&&Object.defineProperty(i,C,e),e};const G={browser:u,dao:M,defi:x,defiAlt:Z,eth:y,layers:E,lock:B,login:H,network:_,nft:D,noun:m,profile:b,system:j,meld:F,onrampCard:P,google:L,pencil:S,lightbulb:V,solana:A,ton:g,bitcoin:v};let o=class extends n{constructor(){super(...arguments),this.name="browser",this.size="md"}render(){return this.style.cssText=`
467
467
  --local-size: var(--apkt-visual-size-${this.size});
468
468
  `,p`${G[this.name]}`}};o.styles=[k,z];f([c()],o.prototype,"name",void 0);f([c()],o.prototype,"size",void 0);o=f([w("wui-visual")],o);
469
- //# sourceMappingURL=index-BmpxmYmS.js.map
469
+ //# sourceMappingURL=index-BjWQloYQ.js.map
@@ -1,2 +1,2 @@
1
- import{r as i,j as e,R as Ae}from"./react-DcSw8tCD.js";import{n as G}from"./dcl-schemas-CN-1-wGb.js";import{c as j}from"./index-D165_lhw.js";import{n as o,S as Ee}from"./emotion-styled.browser.esm-7mw60jip.js";import{m as ne,c7 as g,c8 as r}from"./index-B-dIqjhn.js";import"./styled-lv29vbU7.js";import"./sentry-CAS3BNIy.js";import"./ethers-3hUTVH_L.js";import"./intl-AKLEHPeO.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},n=new t.Error().stack;n&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[n]="50da5fb4-ff7e-4f5a-9f1c-d1b72f43294f",t._sentryDebugIdIdentifier="sentry-dbid-50da5fb4-ff7e-4f5a-9f1c-d1b72f43294f")}catch{}})();function y(t){return Math.floor(t).toLocaleString("en-US")}const xe=i.memo(function(n){return e.jsxs("svg",{viewBox:"0 0 90 90",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:[e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M45 89.9999C69.8528 89.9999 89.9999 69.8528 89.9999 45C89.9999 20.1472 69.8528 0 45 0C20.1472 0 0 20.1472 0 45C0 69.8528 20.1472 89.9999 45 89.9999Z",fill:"url(#dcl-nav0)"}),e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18 80.9996C25.515 86.6471 34.875 89.9996 45 89.9996C55.125 89.9996 64.485 86.6471 72 80.9996H18Z",fill:"#FF2D55"}),e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9 71.9996C11.565 75.397 14.603 78.435 18 80.9996H72C75.398 78.435 78.435 75.397 81 71.9996H9Z",fill:"#FFA25A"}),e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M60.368 62.9997H3.758C5.153 66.2172 6.93 69.2322 9 71.9997H60.39V62.9997H60.368Z",fill:"#FFC95B"}),e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M31.883 29.25V63H60.008L31.883 29.25Z",fill:"url(#dcl-nav1)"}),e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.758 63H31.883V29.25L3.758 63Z",fill:"white"}),e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M60.368 47.25V72H81L60.368 47.25Z",fill:"url(#dcl-nav2)"}),e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M39.757 72H60.367V47.25L39.757 72Z",fill:"white"}),e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M60.368 40.5C66.58 40.5 71.618 35.463 71.618 29.25C71.618 23.037 66.58 18 60.368 18C54.154 18 49.118 23.037 49.118 29.25C49.118 35.463 54.154 40.5 60.368 40.5Z",fill:"#FFC95B"}),e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M31.882 22.5C34.989 22.5 37.507 19.981 37.507 16.875C37.507 13.768 34.989 11.25 31.882 11.25C28.776 11.25 26.257 13.768 26.257 16.875C26.257 19.981 28.776 22.5 31.882 22.5Z",fill:"#FFC95B"}),e.jsxs("defs",{children:[e.jsxs("linearGradient",{id:"dcl-nav0",x1:"45",y1:"-18.64",x2:"-18.64",y2:"45",gradientUnits:"userSpaceOnUse",children:[e.jsx("stop",{stopColor:"#FF2D55"}),e.jsx("stop",{offset:"1",stopColor:"#FFBC5B"})]}),e.jsxs("linearGradient",{id:"dcl-nav1",x1:"31.873",y1:"29.25",x2:"31.873",y2:"63",gradientUnits:"userSpaceOnUse",children:[e.jsx("stop",{stopColor:"#A524B3"}),e.jsx("stop",{offset:"1",stopColor:"#FF2D55"})]}),e.jsxs("linearGradient",{id:"dcl-nav2",x1:"60.36",y1:"47.25",x2:"60.36",y2:"72",gradientUnits:"userSpaceOnUse",children:[e.jsx("stop",{stopColor:"#A524B3"}),e.jsx("stop",{offset:"1",stopColor:"#FF2D55"})]})]})]})}),He=i.memo(function(n){return e.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:[e.jsx("path",{d:"M3 6H21",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"}),e.jsx("path",{d:"M3 12H21",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"}),e.jsx("path",{d:"M3 18H21",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"})]})}),Re=i.memo(function(n){return e.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:[e.jsx("path",{d:"M6 6L18 18",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"}),e.jsx("path",{d:"M18 6L6 18",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"})]})}),ie=i.memo(function(n){return e.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:e.jsx("path",{d:"M5 7.5L10 12.5L15 7.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})}),Fe=i.memo(function(n){return e.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:e.jsx("path",{d:"M15 12.5L10 7.5L5 12.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})}),ge=i.memo(function(n){return e.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:[e.jsx("path",{d:"M12 8.66667V12.6667C12 13.0203 11.8595 13.3594 11.6095 13.6095C11.3594 13.8595 11.0203 14 10.6667 14H3.33333C2.97971 14 2.64057 13.8595 2.39052 13.6095C2.14048 13.3594 2 13.0203 2 12.6667V5.33333C2 4.97971 2.14048 4.64057 2.39052 4.39052C2.64057 4.14048 2.97971 4 3.33333 4H7.33333",stroke:"currentColor",strokeWidth:"1.33",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M10 2H14V6",stroke:"currentColor",strokeWidth:"1.33",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M6.66699 9.33333L14.0003 2",stroke:"currentColor",strokeWidth:"1.33",strokeLinecap:"round",strokeLinejoin:"round"})]})}),We=i.memo(function(n){return e.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:[e.jsx("path",{d:"M7.5 17.5H4.16667C3.72464 17.5 3.30072 17.3244 2.98816 17.0118C2.67559 16.6993 2.5 16.2754 2.5 15.8333V4.16667C2.5 3.72464 2.67559 3.30072 2.98816 2.98816C3.30072 2.67559 3.72464 2.5 4.16667 2.5H7.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M13.333 14.1667L17.4997 10.0001L13.333 5.83337",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M17.5 10H7.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]})}),re=i.memo(function(n){return e.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:[e.jsx("rect",{x:"3.5",y:"3.5",width:"7",height:"7",rx:"1.5",stroke:"currentColor",strokeWidth:"1"}),e.jsx("path",{d:"M8.5 3.5V2C8.5 1.17157 7.82843 0.5 7 0.5H2C1.17157 0.5 0.5 1.17157 0.5 2V7C0.5 7.82843 1.17157 8.5 2 8.5H3.5",stroke:"currentColor",strokeWidth:"1"})]})}),De=i.memo(function(n){return e.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:[e.jsx("path",{d:"M10 10C11.3807 10 12.5 8.88071 12.5 7.5C12.5 6.11929 11.3807 5 10 5C8.61929 5 7.5 6.11929 7.5 7.5C7.5 8.88071 8.61929 10 10 10Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M5 16.25C5 14.1789 7.23858 12.5 10 12.5C12.7614 12.5 15 14.1789 15 16.25",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]})}),Ne=i.memo(function(n){return e.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:[e.jsx("path",{d:"M15.8333 7.5L13.3333 3.33337H6.66667L4.16667 7.5L2.5 16.6667H17.5L15.8333 7.5Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M6.66667 3.33337L7.5 7.50004L10 9.16671L12.5 7.50004L13.3333 3.33337",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]})}),Ue=i.memo(function(n){return e.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:[e.jsx("path",{d:"M10 12.5C11.3807 12.5 12.5 11.3807 12.5 10C12.5 8.61929 11.3807 7.5 10 7.5C8.61929 7.5 7.5 8.61929 7.5 10C7.5 11.3807 8.61929 12.5 10 12.5Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M16.1666 10C16.1666 9.58337 16.1249 9.16671 16.0416 8.75004L17.9166 7.27087L16.4166 4.72921L14.1666 5.52087C13.5416 4.97921 12.8124 4.56254 11.9999 4.31254L11.6666 1.66671H8.33325L7.99992 4.31254C7.18742 4.56254 6.45825 4.97921 5.83325 5.52087L3.58325 4.72921L2.08325 7.27087L3.95825 8.75004C3.87492 9.16671 3.83325 9.58337 3.83325 10C3.83325 10.4167 3.87492 10.8334 3.95825 11.25L2.08325 12.7292L3.58325 15.2709L5.83325 14.4792C6.45825 15.0209 7.18742 15.4375 7.99992 15.6875L8.33325 18.3334H11.6666L11.9999 15.6875C12.8124 15.4375 13.5416 15.0209 14.1666 14.4792L16.4166 15.2709L17.9166 12.7292L16.0416 11.25C16.1249 10.8334 16.1666 10.4167 16.1666 10Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]})}),Ze=i.memo(function(n){return e.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:[e.jsx("path",{d:"M5 1.66663L2.5 4.99996V16.6666C2.5 17.1087 2.67559 17.5326 2.98816 17.8452C3.30072 18.1577 3.72464 18.3333 4.16667 18.3333H15.8333C16.2754 18.3333 16.6993 18.1577 17.0118 17.8452C17.3244 17.5326 17.5 17.1087 17.5 16.6666V4.99996L15 1.66663H5Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M2.5 5H17.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M13.3334 8.33337C13.3334 9.21743 12.9822 10.0653 12.3571 10.6904C11.7319 11.3155 10.8841 11.6667 10.0001 11.6667C9.11603 11.6667 8.26818 11.3155 7.64306 10.6904C7.01794 10.0653 6.66675 9.21743 6.66675 8.33337",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]})});i.memo(function(n){return e.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:e.jsx("path",{d:"M12 21.75C13.1 21.75 14 20.85 14 19.75H10C10 20.85 10.89 21.75 12 21.75ZM18 15.75V10.75C18 7.68 16.36 5.11 13.5 4.43V3.75C13.5 2.92 12.83 2.25 12 2.25C11.17 2.25 10.5 2.92 10.5 3.75V4.43C7.63 5.11 6 7.67 6 10.75V15.75L4 17.75V18.75H20V17.75L18 15.75Z",fill:"#FCFCFC"})})});const se=i.memo(function(n){return e.jsxs("svg",{viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:[e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20 40C25.3043 40 30.3914 37.8929 34.1421 34.1421C37.8929 30.3914 40 25.3043 40 20C40 14.6957 37.8929 9.60859 34.1421 5.85786C30.3914 2.10714 25.3043 0 20 0C14.6957 0 9.60859 2.10714 5.85786 5.85786C2.10714 9.60859 0 14.6957 0 20C0 25.3043 2.10714 30.3914 5.85786 34.1421C9.60859 37.8929 14.6957 40 20 40Z",fill:"#25292E"}),e.jsx("path",{d:"M11.7 21.1L20 26.0143L28.2857 21.1L20 32.8L11.7 21.1Z",fill:"white",fillOpacity:"0.8"}),e.jsx("path",{d:"M20 24.1857L11.7 19.2714L20 6.20001L28.3 19.2714L20 24.1857Z",fill:"white"})]})}),Ve=i.memo(function(n){return e.jsxs("svg",{viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:[e.jsx("rect",{width:"40",height:"40",rx:"20",fill:"white"}),e.jsx("path",{d:"M20 0C9 0 0 9 0 20C0 31 8.85714 40 20 40C31.1429 40 40 31.1429 40 20C40 8.85714 31 0 20 0ZM31.8571 20.1429C31.8571 20.4286 31.7143 20.8571 31.4286 21L25.7143 24.2857C25.4286 24.4286 25 24.4286 24.7143 24.2857L22.5714 23V20L25.1429 21.5714L29.1429 19.2857V14.7143L25.1429 12.4286L21.4286 14.5714V26.2857C21.4286 26.5714 21.2857 27 21 27.1429L15.2857 30.4286C15 30.5714 14.5714 30.5714 14.2857 30.4286L8.57143 27.1429C8.28571 27 8.14286 26.7143 8.14286 26.2857V19.7143C8.14286 19.4286 8.28571 19 8.57143 18.8571L14.2857 15.5714C14.5714 15.4286 15 15.4286 15.2857 15.5714L17.4286 16.8571V20L14.8571 18.4286L10.8571 20.7143V25.2857L14.8571 27.5714L18.8571 25.2857V13.7143C18.8571 13.4286 19 13 19.2857 12.8571L25 9.57143C25.2857 9.42857 25.7143 9.42857 26 9.57143L31.4286 12.8571C31.7143 13 31.8571 13.2857 31.8571 13.7143V20.1429Z",fill:"#8247E5"})]})}),Be=i.memo(function(n){return e.jsxs("svg",{viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:[e.jsx("path",{d:"M20 1C30.4286 1 39 9.57143 39 20C39 30.4286 30.4286 39 20 39C9.57143 39 1 30.4286 1 20C1 9.57143 9.57143 1 20 1Z",fill:"#2D374B",stroke:"#96BEDC",strokeWidth:"1.4"}),e.jsx("path",{d:"M16.4286 10.7143C14.2857 10.7143 12 11.2857 11 13L2 27L3 29L5 32L19 10.7143H16.4286Z",fill:"white"}),e.jsx("path",{d:"M20.8571 10.7143L7 33.5L9 36L11.5 37L27.4286 10.7143H20.8571Z",fill:"white"}),e.jsx("path",{d:"M20.1428 26.5714L27.5 37.5L32.5 34L23.8571 20.1429L20.1428 26.5714ZM36.8571 28.8571L38 27.5L28.4286 12.5714L25.1428 18.1429L34.5 33L36.4286 29.8571C36.7143 29.5714 36.8571 29.2857 37 28.8571C36.8571 29 36.8571 28.8571 36.8571 28.8571Z",fill:"#28A0F0"}),e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20.0731 2.14834C10.1438 2.14834 2.14834 10.1438 2.14834 20.0731C2.14834 29.9915 10.133 37.8517 20.0731 37.8517C29.8616 37.8517 37.8517 29.9969 37.8517 20.0731C37.8517 10.133 29.9915 2.14834 20.0731 2.14834ZM0 20.0731C0 8.95736 8.95736 0 20.0731 0C31.1996 0 40 8.96822 40 20.0731C40 31.1942 31.0372 40 20.0731 40C8.96822 40 0 31.1996 0 20.0731Z",fill:"#96BEDC"})]})}),Oe=i.memo(function(n){return e.jsxs("svg",{viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:[e.jsx("path",{d:"M40 20C40 8.95431 31.0457 0 20 0C8.95431 0 0 8.95431 0 20C0 31.0457 8.95431 40 20 40C31.0457 40 40 31.0457 40 20Z",fill:"#FF3131"}),e.jsx("path",{d:"M13.1714 26.2143C17.0286 26.2143 20.1143 23.0714 20.1143 18.5286C20.1143 15.4 18.0143 13.1 14.4286 13.1C10.5429 13.1 7.5 16.2429 7.5 20.7857C7.5 23.9286 9.64286 26.2143 13.1714 26.2143ZM14.3571 15.7143C15.8714 15.7143 16.8429 16.8714 16.8429 18.7143C16.8429 21.4286 15.2571 23.6 13.2571 23.6C11.7429 23.6 10.7714 22.4286 10.7714 20.6C10.7714 17.9 12.3571 15.7143 14.3429 15.7143H14.3571ZM23.4714 13.3143L20.7857 26H24.0143L24.8 22.2857H26.9C30.3714 22.2857 32.6286 20.3143 32.6286 17.1429C32.6286 14.8429 30.9571 13.3143 28.2 13.3143H23.4857H23.4714ZM26.1857 15.8H27.5286C28.7143 15.8 29.3857 16.3429 29.3857 17.4286C29.3857 18.8571 28.4143 19.8571 26.9 19.8571H25.3143L26.1714 15.8H26.1857Z",fill:"white"})]})}),Te=i.memo(function(n){return e.jsxs("svg",{viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:[e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20 0C31.0471 0 40 8.95286 40 20C40 31.0471 31.0471 40 20 40C8.95286 40 0 31.0471 0 20C0 8.95286 8.95286 0 20 0Z",fill:"#F0B90B"}),e.jsx("path",{d:"M10.9914 20L11.0057 25.2886L15.5 27.9314V31.0286L8.37714 26.8514V18.4543L10.9914 20ZM10.9914 14.7114V17.7929L8.37428 16.2457V13.1629L10.9914 11.6157L13.6214 13.1629L10.9929 14.7114H10.9914ZM17.3771 13.1629L19.9943 11.6157L22.6229 13.1629L19.9943 14.7114L17.3771 13.1629Z",fill:"white"}),e.jsx("path",{d:"M12.8829 24.1929V21.0957L15.5 22.6443V25.7257L12.8829 24.1929ZM17.3771 29.0414L19.9943 30.59L22.6229 29.0414V32.1229L19.9943 33.6714L17.3771 32.1229V29.0414ZM26.3771 13.1629L28.9943 11.6157L31.6229 13.1629V16.2457L28.9943 17.7929V14.7114L26.3771 13.1629ZM28.9943 25.2886L29.0086 20L31.6243 18.4514V26.85L24.5014 31.0272V27.9314L28.9943 25.2886Z",fill:"white"}),e.jsx("path",{d:"M27.1171 24.1928L24.5 25.7257V22.6443L27.1171 21.0957V24.1928Z",fill:"white"}),e.jsx("path",{d:"M27.1171 15.8072L27.1314 18.9043L22.6243 21.5472V26.85L20.0086 28.3829L17.3914 26.85V21.5486L12.8843 18.9043V15.8072L15.5129 14.26L19.9914 16.9172L24.4986 14.26L27.1271 15.8072H27.1171ZM12.8829 10.5214L19.9929 6.32858L27.1171 10.5214L24.5 12.0686L19.9943 9.41144L15.5 12.0686L12.8829 10.5214Z",fill:"white"})]})}),ze=i.memo(function(n){return e.jsxs("svg",{viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:[e.jsx("path",{d:"M20 40C31.0457 40 40 31.0457 40 20C40 8.9543 31.0457 0 20 0C8.9543 0 0 8.9543 0 20C0 31.0457 8.9543 40 20 40Z",fill:"#E84142"}),e.jsx("path",{d:"M27.0552 20.5197C27.7484 19.3226 28.8691 19.3226 29.5592 20.5197L33.8738 28.0946C34.567 29.291 34 30.2674 32.612 30.2674H23.9211C22.5513 30.2674 21.9842 29.291 22.6593 28.0946L27.0552 20.5197ZM18.709 5.93692C19.4014 4.74055 20.504 4.74055 21.1972 5.93692L22.1577 7.67194L24.4251 11.6562C24.6972 12.2182 24.8386 12.8346 24.8386 13.459C24.8386 14.0835 24.6972 14.6998 24.4251 15.2618L16.8186 28.4409C16.479 28.9688 16.0198 29.4093 15.4781 29.7267C14.9365 30.044 14.3277 30.2292 13.7011 30.2674H7.38566C6.00001 30.2674 5.43298 29.3068 6.12383 28.0946L18.709 5.93692Z",fill:"white"})]})}),_e=i.memo(function(n){return e.jsxs("svg",{viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:[e.jsx("path",{d:"M20 40C31.0457 40 40 31.0457 40 20C40 8.9543 31.0457 0 20 0C8.9543 0 0 8.9543 0 20C0 31.0457 8.9543 40 20 40Z",fill:"#13B5EC"}),e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M21.5 16.125L26 13.5V18.75L21.5 16.125ZM26 27.375L20 30.875L14 27.375V21.25L20 24.75L26 21.25V27.375ZM14 13.5L18.5 16.125L14 18.75V13.5ZM20.75 17.375L25.25 20L20.75 22.625V17.375ZM19.25 22.625L14.75 20L19.25 17.375V22.625ZM25.25 12.25L20 15.25L14.75 12.25L20 9.125L25.25 12.25ZM12.5 11.75V28.125L20 32.375L27.5 28.125V11.75L20 7.5L12.5 11.75Z",fill:"white"})]})}),$e=new Set([1,5,42,4,3,11155111]),Pe=new Set([137,80002,80001]),Ge={56:Te,10:Oe,42161:Be,250:_e,43114:ze};function le({chainId:t,...n}){const s=Ge[t];return s?e.jsx(s,{...n}):$e.has(t)?e.jsx(se,{...n}):Pe.has(t)?e.jsx(Ve,{...n}):e.jsx(se,{...n})}const Ce=i.memo(function(n){return e.jsx("svg",{width:"16",height:"16",viewBox:"0 0 13 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:e.jsx("path",{d:"M9.864 6.952C9.864 4.968 8.264 3.32 6.28 3.32C4.296 3.32 2.696 4.968 2.696 6.952C2.696 8.92 4.296 10.52 6.28 10.52C8.264 10.52 9.864 8.92 9.864 6.952ZM9.032 6.952C9.032 8.456 7.688 9.688 6.28 9.688C4.728 9.688 3.528 8.488 3.528 6.952C3.528 5.432 4.728 4.152 6.28 4.152C7.704 4.152 9.032 5.432 9.032 6.952ZM12.248 10.424V3.544L6.28 0.12L0.312 3.544V10.424L6.28 13.848L12.248 10.424ZM11.192 9.832L6.296 12.632L1.368 9.832V4.184L6.28 1.336L11.192 4.184V9.832Z",fill:"#FF2D55"})})}),be=i.memo(function(n){return e.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 0L24 12L12 24L0 12L12 0ZM12.0002 3.36001L20.6402 12L12.0002 20.64L3.36023 12L12.0002 3.36001ZM12.0009 16.32C14.3868 16.32 16.3209 14.3859 16.3209 12C16.3209 9.61415 14.3868 7.68002 12.0009 7.68002C9.61507 7.68002 7.68094 9.61415 7.68094 12C7.68094 14.3859 9.61507 16.32 12.0009 16.32Z",fill:"#FCFCFC"})})}),Ke=i.memo(function(n){return e.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:[e.jsx("path",{d:"M13.1318 0.891714L18.5 6.29015V14.0226L13.125 19.5831H6.26758L0.891602 14.0216V6.29113L6.26074 0.891714H13.1318Z",stroke:"currentColor",strokeWidth:"1.78379"}),e.jsx("path",{d:"M7.81758 5.13837C8.7606 4.70684 9.80743 4.55428 10.8344 4.69871C11.8613 4.84315 12.8255 5.27853 13.6129 5.95344L12.0562 7.76966C11.6155 7.39196 11.076 7.1483 10.5012 7.06747C9.92652 6.98664 9.34068 7.07201 8.81294 7.31351C8.28519 7.555 7.8376 7.94253 7.52307 8.43029C7.20854 8.91805 7.0402 9.48566 7.03796 10.066C7.03572 10.6464 7.19967 11.2153 7.51042 11.7054C7.82117 12.1956 8.26576 12.5866 8.79162 12.8322C9.31748 13.0777 9.90265 13.1676 10.478 13.0912C11.0533 13.0148 11.5947 12.7753 12.0383 12.4011L13.581 14.2293C12.7884 14.8981 11.8209 15.326 10.7928 15.4625C9.7648 15.599 8.71916 15.4384 7.7795 14.9996C6.83984 14.5608 6.04542 13.8621 5.49014 12.9863C4.93485 12.1104 4.64191 11.0938 4.64592 10.0568C4.64992 9.01972 4.95071 8.00549 5.51274 7.13393C6.07478 6.26236 6.87456 5.5699 7.81758 5.13837Z",fill:"currentColor"})]})}),Ye={signIn:"SIGN IN",signingIn:"SIGNING IN...",discover:"Discover",events:"Events",places:"Places",shop:"Shop",shopAll:"Shop All",wearables:"Wearables",emotes:"Emotes",names:"Names",land:"Land",merch:"Merch",create:"Create",createInDecentraland:"Create in Decentraland",publishWearablesEmotes:"Publish Wearables & Emotes",publishLand:"Manage Land",creatorDocumentation:"Creator Documentation",learn:"Learn",getStarted:"Get Started",startCreating:"Start Creating",seeWhatsNew:"See What's New",viewProfile:"View Profile",myAssets:"My Assets",accountSettings:"Account Settings",marketplaceAuthorizations:"Marketplace Authorizations",walletAddress:"User ID",addressCopied:"Copied!",logout:"Log Out",creditsExpiringIn:"Expiring in {days} days",creditsValueNote:"(1 Credit = 1 MANA in value)"};function Xe(){const t=j.get("SHOP_URL"),n=j.get("BUILDER_URL"),s=j.get("EVENTS_URL"),u=j.get("PLACES_URL"),b=j.get("CREATE_URL"),v=j.get("BLOG_URL"),m=j.get("MARKETPLACE_LANDS_URL");return{discover:{label:"discover",items:[{label:"events",url:s},{label:"places",url:u}]},shop:{label:"shop",items:[{label:"shopAll",url:t},{label:"wearables",url:`${t}/items?category=wearable`},{label:"emotes",url:`${t}/items?category=emote`},{label:"names",url:`${t}/items?category=names`},{label:"land",url:m},{label:"merch",url:"https://store.decentraland.org/",isExternal:!0}]},create:{label:"create",items:[{label:"createInDecentraland",url:b},{label:"publishWearablesEmotes",url:`${n}/collections`},{label:"publishLand",url:`${n}/land`},{label:"creatorDocumentation",url:"https://docs.decentraland.org/creator",isExternal:!0}]},learn:{label:"learn",url:v}}}let ee=null;function me(){return ee||(ee=Xe()),ee}let te=null;function qe(){return te||(te=[{label:"viewProfile",url:j.get("PROFILE_URL"),icon:"account"},{label:"myAssets",url:j.get("MARKETPLACE_MY_ASSETS_URL"),icon:"wearable"},{label:"accountSettings",url:j.get("ACCOUNT_URL"),icon:"settings"},{label:"marketplaceAuthorizations",url:j.get("MARKETPLACE_SETTINGS_URL"),icon:"shopping"}]),te}const we=["discover","shop","create"],ve="Inter, Helvetica, Arial, sans-serif",A="@media (max-width: 991px)",f="@media (min-width: 992px)",Je={navbar:1100},Qe="0px 1.333px 24px rgba(0,0,0,0.12), 0px 8px 13.333px rgba(0,0,0,0.14), 0px 4px 6.667px rgba(0,0,0,0.2)",K="rgba(38, 38, 38, 0.8)",Le="0.5px solid #5E5B67",Y="0 2px 20px 16px rgba(0, 0, 0, 0.25)",E="blur(12.5px)",je=ne({"0%":{opacity:1},"50%":{opacity:.5},"100%":{opacity:1}}),X=ne({from:{opacity:0},to:{opacity:1}}),et=ne({"0%, 100%":{transform:"rotate(0deg)"},"25%":{transform:"rotate(8deg)"},"50%":{transform:"rotate(-8deg)"},"75%":{transform:"rotate(4deg)"}}),tt=o("nav")({position:"fixed",top:0,left:0,right:0,zIndex:Je.navbar,fontFamily:ve,display:"flex",alignItems:"center",justifyContent:"space-between",boxSizing:"border-box","&::before":{content:'""',position:"absolute",top:0,left:0,right:0,bottom:0,zIndex:-1,background:"rgba(22, 21, 24, 0.75)",boxShadow:Qe,backdropFilter:"saturate(1.8) blur(20px)",WebkitBackdropFilter:"saturate(1.8) blur(20px)",transition:"background 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease"},[A]:{height:64,padding:"12px 16px"},[f]:{height:92,padding:"16px 54px","&::before":{background:"rgba(22, 21, 24, 0.4)"}}}),ot=o("div")({display:"flex",alignItems:"center",[A]:{gap:12},[f]:{gap:48},"& .mobile-only":{display:"flex",[f]:{display:"none"}},"& .desktop-only":{display:"none",[f]:{display:"flex"}}}),nt=o("div")({display:"flex",alignItems:"center",gap:16,[f]:{gap:48}}),it=o("div")({display:"flex",alignItems:"center",gap:12,[f]:{gap:24}}),rt=o("a")({display:"flex",alignItems:"center",flexShrink:0,width:40,height:40,"& svg":{width:"100%",height:"100%"}}),st=o("button")({all:"unset",display:"flex",alignItems:"center",justifyContent:"center",width:40,height:40,backgroundColor:"rgba(255, 255, 255, 0.1)",borderRadius:8,color:r.white,cursor:"pointer",flexShrink:0,transition:"background-color 0.15s ease","&:hover":{backgroundColor:"rgba(255, 255, 255, 0.15)"},"&:active":{backgroundColor:"rgba(255, 255, 255, 0.2)"},"&:focus-visible":{outline:`2px solid ${g.primary}`,outlineOffset:2},[f]:{display:"none"}}),lt=o("button")({all:"unset",boxSizing:"border-box",display:"flex",alignItems:"center",justifyContent:"center",padding:"8px 22px",border:`1px solid ${r.softWhite}`,borderRadius:6,fontFamily:ve,fontWeight:600,fontSize:15,lineHeight:"24px",letterSpacing:.46,textTransform:"uppercase",color:r.softWhite,cursor:"pointer",whiteSpace:"nowrap",transition:"background-color 0.15s ease, border-color 0.15s ease","&:hover":{backgroundColor:"rgba(255, 255, 255, 0.08)",borderColor:"rgba(255, 255, 255, 0.7)"},"&:active":{backgroundColor:"rgba(255, 255, 255, 0.12)"},"&:disabled":{opacity:.5,pointerEvents:"none"},"&:focus-visible":{outline:`2px solid ${g.primary}`,outlineOffset:2}}),at=o("div")(({open:t})=>({position:"fixed",top:64,left:0,right:0,bottom:0,zIndex:1099,pointerEvents:t?"auto":"none",backgroundColor:t?"rgba(0, 0, 0, 0.3)":"transparent",transition:"background-color 0.25s ease",[f]:{display:"none"}})),dt=o("div")(({open:t})=>({position:"fixed",top:64,left:0,right:0,zIndex:1100,maxHeight:t?"calc(100vh - 64px)":0,overflowY:"auto",background:K,backdropFilter:E,WebkitBackdropFilter:E,boxShadow:t?Y:"none",padding:t?12:"0 12px",transition:"max-height 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease",[f]:{display:"none"}})),ae=o("div")({borderBottom:"0.5px solid rgba(255, 255, 255, 0.1)"}),ct=o("a")({display:"flex",alignItems:"center",padding:"24px 16px",fontFamily:"Inter, Helvetica, Arial, sans-serif",fontWeight:600,fontSize:16,lineHeight:1.75,color:r.white,textDecoration:"none","&:hover":{color:r.gray5},"&:focus-visible":{outline:`2px solid ${g.primary}`,outlineOffset:-2}}),pt=o("button")({all:"unset",display:"flex",alignItems:"center",justifyContent:"space-between",width:"100%",padding:"24px 16px",boxSizing:"border-box",fontFamily:"Inter, Helvetica, Arial, sans-serif",fontWeight:600,fontSize:16,lineHeight:1.75,color:r.white,cursor:"pointer","&:hover":{color:r.gray5},"&:focus-visible":{outline:`2px solid ${g.primary}`,outlineOffset:-2},"& svg":{width:20,height:20,flexShrink:0,transition:"transform 0.2s ease"}}),ut=o("div")(({open:t})=>({maxHeight:t?500:0,overflow:"hidden",transition:"max-height 0.25s ease"})),ht=o("a")({display:"flex",alignItems:"center",justifyContent:"space-between",gap:8,padding:"12px 16px",fontFamily:"Inter, Helvetica, Arial, sans-serif",fontWeight:400,fontSize:16,color:r.gray4,textDecoration:"none","&:hover":{color:r.white},"&:focus-visible":{outline:`2px solid ${g.primary}`,outlineOffset:-2},"& svg":{width:16,height:16,flexShrink:0,opacity:.6}}),ke=i.memo(function({open:n,onClose:s,i18n:u}){const b=me(),[v,m]=i.useState(null),l=i.useCallback(h=>{m(a=>a===h?null:h)},[]);return e.jsxs(e.Fragment,{children:[e.jsx(at,{open:n,onClick:s}),e.jsxs(dt,{open:n,role:"navigation","aria-label":"Mobile navigation",children:[we.map(h=>{var d;const a=b[h],x=v===h;return e.jsxs(ae,{children:[e.jsxs(pt,{onClick:()=>l(h),"aria-expanded":x,children:[u[a.label],x?e.jsx(Fe,{}):e.jsx(ie,{})]}),e.jsx(ut,{open:x,children:(d=a.items)==null?void 0:d.map(c=>e.jsxs(ht,{href:c.url,target:c.isExternal?"_blank":void 0,rel:c.isExternal?"noopener noreferrer":void 0,children:[u[c.label],c.isExternal&&e.jsx(ge,{})]},c.label))})]},h)}),e.jsx(ae,{children:e.jsx(ct,{href:b.learn.url,children:u[b.learn.label]})})]})]})});ke.displayName="MobileMenu";const ft=o("div")({display:"none",[f]:{display:"flex",alignItems:"center",gap:24}}),xt=o("button")({all:"unset",display:"flex",alignItems:"center",gap:4,padding:"8px 24px",fontFamily:"Inter, Helvetica, Arial, sans-serif",fontWeight:400,fontSize:16,color:r.gray5,cursor:"pointer",borderRadius:8,whiteSpace:"nowrap",transition:"background-color 0.15s ease, color 0.15s ease","&:hover":{color:r.white,backgroundColor:"rgba(255, 255, 255, 0.08)",textShadow:"0 0 0.5px currentColor, 0 0 0.5px currentColor"},"&.active":{color:r.white,textShadow:"0 0 0.5px currentColor, 0 0 0.5px currentColor"},"&:focus-visible":{outline:`2px solid ${g.primary}`,outlineOffset:2},"& svg":{width:20,height:20,transition:"transform 0.2s ease",flexShrink:0}}),gt=o("a")({all:"unset",display:"flex",alignItems:"center",gap:4,padding:"8px 24px",fontFamily:"Inter, Helvetica, Arial, sans-serif",fontWeight:400,fontSize:16,color:r.gray5,cursor:"pointer",borderRadius:8,whiteSpace:"nowrap",transition:"background-color 0.15s ease, color 0.15s ease","&:hover":{color:r.white,backgroundColor:"rgba(255, 255, 255, 0.08)",textShadow:"0 0 0.5px currentColor, 0 0 0.5px currentColor"},"&.active":{color:r.white,textShadow:"0 0 0.5px currentColor, 0 0 0.5px currentColor"},"&:focus-visible":{outline:`2px solid ${g.primary}`,outlineOffset:2}}),Ct=o(xt)({paddingRight:16}),bt=o("div")({position:"relative",paddingBottom:8,marginBottom:-8,cursor:"pointer"}),mt=o("div")({position:"absolute",top:"100%",left:0,marginTop:2,minWidth:220,background:K,backdropFilter:E,WebkitBackdropFilter:E,border:Le,borderRadius:12,boxShadow:Y,padding:12,animation:`${X} 0.15s ease forwards`}),wt=o("a")({display:"flex",alignItems:"center",justifyContent:"space-between",gap:8,padding:"8px 16px",fontFamily:"Inter, Helvetica, Arial, sans-serif",fontWeight:400,fontSize:16,color:r.gray4,textDecoration:"none",borderRadius:12,whiteSpace:"nowrap",transition:"background-color 0.15s ease, color 0.15s ease","&:hover":{backgroundColor:"rgba(255, 255, 255, 0.06)",color:r.white},"&:focus-visible":{outline:`2px solid ${g.primary}`,outlineOffset:-2},"& svg":{width:16,height:16,flexShrink:0,opacity:.6}}),ye=i.memo(function({desktopDropdown:n,onOpenDropdown:s,onScheduleCloseDropdown:u,activePage:b,i18n:v}){const m=me();return e.jsxs(ft,{children:[we.map(l=>{var h;return e.jsxs(bt,{onMouseEnter:()=>s(l),onMouseLeave:u,children:[e.jsxs(Ct,{className:b===l?"active":void 0,"aria-expanded":n===l,"aria-haspopup":"true",onClick:()=>{var x;const a=(x=m[l].items)==null?void 0:x[0];a&&window.open(a.url,"_self")},children:[v[m[l].label],e.jsx(ie,{style:{transform:n===l?"rotate(180deg)":"rotate(0deg)",transition:"transform 0.25s ease"}})]}),n===l&&e.jsx(mt,{children:(h=m[l].items)==null?void 0:h.map(a=>e.jsxs(wt,{href:a.url,target:a.isExternal?"_blank":void 0,rel:a.isExternal?"noopener noreferrer":void 0,children:[v[a.label],a.isExternal&&e.jsx(ge,{})]},a.label))})]},l)}),e.jsx(gt,{href:m.learn.url,className:b==="learn"?"active":void 0,children:v[m.learn.label]})]})});ye.displayName="NavLinks";const vt=o("button")({all:"unset",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",flexShrink:0,borderRadius:100,backgroundColor:"#FF4BED",border:"2px solid rgba(255, 255, 255, 0.5)",overflow:"hidden",[A]:{width:40,height:40},[f]:{width:48,height:48},"&:focus-visible":{outline:`2px solid ${g.primary}`,outlineOffset:2},"&.loading":{animation:`${je} 1.5s ease-in-out infinite`}}),Lt=o("img")({borderRadius:100,objectFit:"cover",width:"100%",height:"100%"}),jt=o("div")({position:"relative"}),kt=o("div")({position:"fixed",top:92,right:54,zIndex:1201,background:K,backdropFilter:E,WebkitBackdropFilter:E,border:Le,borderRadius:12,boxShadow:Y,display:"none",padding:12,gap:24,animation:`${X} 0.15s ease forwards`,minWidth:484,[f]:{display:"flex"}}),yt=o("div")({width:151,minHeight:240,borderRadius:12,border:"0.5px solid #c640cd",background:"linear-gradient(180deg, rgba(198, 64, 205, 0.2) 0%, rgba(105, 31, 169, 0.2) 100%)",display:"flex",alignItems:"center",justifyContent:"center",overflow:"hidden",flexShrink:0}),It=o("img")({width:"100%",height:"auto",objectFit:"contain",objectPosition:"center"}),de=o("div")({display:"flex",flexDirection:"column",paddingRight:12,paddingTop:4,paddingBottom:4,flex:1,minWidth:0,[A]:{gap:12}}),Mt=o("span")({fontFamily:"Inter, Helvetica, Arial, sans-serif",fontWeight:600,fontSize:20,color:r.softWhite,marginBottom:4,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}),St=o("span")({fontFamily:"Inter, Helvetica, Arial, sans-serif",fontWeight:400,fontSize:14,color:r.gray4}),At=o("div")({display:"flex",alignItems:"center",gap:8,fontFamily:"Inter, Helvetica, Arial, sans-serif",fontWeight:400,fontSize:14,color:r.softWhite,lineHeight:1.75}),Et=o("button")({all:"unset",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",color:r.softWhite,opacity:.7,transition:"opacity 0.15s ease","&:hover":{opacity:1}}),Ht=o("a")({display:"flex",alignItems:"center",gap:12,padding:"8px 16px",borderRadius:12,fontFamily:"Inter, Helvetica, Arial, sans-serif",fontWeight:400,fontSize:16,lineHeight:1.75,color:r.gray4,textDecoration:"none",whiteSpace:"nowrap",cursor:"pointer",transition:"color 0.15s ease, background-color 0.15s ease","&:hover":{color:r.white,backgroundColor:"rgba(255, 255, 255, 0.05)"},"&:focus-visible":{outline:`2px solid ${g.primary}`,outlineOffset:2},"& svg":{width:20,height:20,flexShrink:0}}),oe=o("div")({height:.5,backgroundColor:"rgba(255, 255, 255, 0.1)",margin:"8px 0"}),Rt=o("button")({all:"unset",display:"flex",alignItems:"center",gap:12,padding:"12px 16px",borderRadius:12,fontFamily:"Inter, Helvetica, Arial, sans-serif",fontWeight:400,fontSize:16,lineHeight:1.75,color:r.gray4,cursor:"pointer",whiteSpace:"nowrap",transition:"color 0.15s ease","&:hover":{color:g.primary},"&:focus-visible":{outline:`2px solid ${g.primary}`,outlineOffset:2},"& svg":{width:18,height:18}}),Ft=o("button")(({selected:t})=>({all:"unset",position:"relative",display:"flex",alignItems:"center",gap:4,width:"100%",boxSizing:"border-box",padding:"4px 16px",paddingLeft:16,borderRadius:4,fontFamily:"Inter, Helvetica, Arial, sans-serif",fontSize:12,fontWeight:400,letterSpacing:.46,textTransform:"uppercase",color:"white",cursor:"pointer",transition:"background-color 0.15s ease, color 0.15s ease",background:t?"rgba(255, 255, 255, 0.2)":"transparent","&:hover":{background:t?"rgba(255, 255, 255, 0.2)":"rgba(255, 255, 255, 0.1)"},"& svg":{width:16,height:16,flexShrink:0},...t?{"&::before":{content:'""',position:"absolute",left:4,top:"50%",transform:"translateY(-50%)",width:8,height:8,borderRadius:4,backgroundColor:"#34CE77"}}:{}})),Wt=o("div")({position:"fixed",top:64,left:0,right:0,zIndex:1201,background:K,backdropFilter:E,WebkitBackdropFilter:E,boxShadow:Y,padding:"24px 12px",animation:`${X} 0.15s ease forwards`,[f]:{display:"none"}}),Dt=o("div")({display:"flex",alignItems:"center",gap:12,paddingBottom:8}),Nt=o("div")({width:73,height:73,borderRadius:100,border:"3px solid rgba(255, 255, 255, 0.5)",backgroundColor:"#FF4BED",overflow:"hidden",flexShrink:0,"&.loading":{animation:`${je} 1.5s ease-in-out infinite`}}),Ut=o("div")({display:"flex",flexDirection:"column",gap:2,minWidth:0}),Zt=o("span")({fontFamily:"Inter, Helvetica, Arial, sans-serif",fontWeight:600,fontSize:20,color:r.softWhite,marginBottom:4,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}),Vt=o("span")({fontFamily:"Inter, Helvetica, Arial, sans-serif",fontWeight:400,fontSize:14,color:r.gray4}),Bt=o("div")({display:"flex",alignItems:"center",gap:6,fontFamily:"Inter, Helvetica, Arial, sans-serif",fontWeight:400,fontSize:14,color:r.softWhite,lineHeight:1.75}),Ot=o("button")({all:"unset",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",color:r.softWhite,transition:"opacity 0.15s ease","&:hover":{opacity:.7},"& svg":{width:20,height:20}}),Tt=o("div")({position:"absolute",top:"calc(100% + 4px)",left:0,minWidth:150,display:"flex",flexDirection:"column",gap:2,padding:4,background:r.gray0,backdropFilter:"blur(12.5px)",WebkitBackdropFilter:"blur(12.5px)",border:"0.5px solid #5E5B67",borderRadius:8,boxShadow:"0 2px 20px rgba(0, 0, 0, 0.25)",zIndex:10}),zt=o("div")({display:"flex",alignItems:"center",flexWrap:"wrap",gap:"12px 24px",paddingTop:8,width:"100%"}),_t=o("div")({display:"flex",alignItems:"center",gap:6}),ce=o("div")(({clickable:t})=>({display:"flex",alignItems:"center",gap:2,cursor:t?"pointer":"default",color:"white"})),pe=o("span")({fontFamily:"Inter, sans-serif",fontWeight:600,fontSize:16,letterSpacing:-.8,whiteSpace:"nowrap"}),$t=o("div")({position:"relative"}),Pt=o("div")({display:"flex",alignItems:"center",gap:8,width:150,padding:"4px 4px 4px 8px",backgroundColor:r.gray0,borderRadius:8,cursor:"pointer",whiteSpace:"nowrap",boxSizing:"border-box"}),Gt=o("div")({width:16,height:16,display:"flex",flexShrink:0}),Kt=o("span")({fontFamily:"Inter, sans-serif",fontWeight:600,fontSize:15,lineHeight:"24px",letterSpacing:.46,textTransform:"uppercase",color:"white",flex:1}),Yt={account:De,wearable:Ne,settings:Ue,shopping:Ze},Xt="https://peer.decentraland.org/content/contents/";function ue(t){if(t){if(t.startsWith("http://")||t.startsWith("https://")||t.startsWith("data:"))return t;if(/^[a-zA-Z0-9]+$/.test(t))return`${Xt}${t}`}}const qt={1:"Ethereum",11155111:"Sepolia",137:"Polygon",80002:"Amoy",56:"BSC",43114:"Avalanche",42161:"Arbitrum",10:"Optimism",250:"Fantom"};function he(t){return qt[t]??`Chain ${t}`}const Ie=i.memo(function({isLoadingProfile:n,address:s,avatar:u,userCardOpen:b,onToggleUserCard:v,onClickSignOut:m,selectedChain:l,chains:h,onSelectChain:a,manaBalances:x,onClickBalance:d,i18n:c}){var B,$,P,S;const L=ue(($=(B=u==null?void 0:u.avatar)==null?void 0:B.snapshots)==null?void 0:$.face256),[H,q]=i.useState(),[N,O]=i.useState(!1);i.useEffect(()=>{O(!1)},[L]);const J=L?H===L:!1,R=ue((S=(P=u==null?void 0:u.avatar)==null?void 0:P.snapshots)==null?void 0:S.body),U=(u==null?void 0:u.name)||(s?`${s.slice(0,6)}...${s.slice(-4)}`:""),T=s?`${s.slice(0,6)}...${s.slice(-4)}`:"",[k,I]=i.useState(!1),[Z,z]=i.useState(!1),M=i.useCallback(()=>{s&&navigator.clipboard.writeText(s).then(()=>{I(!0),setTimeout(()=>I(!1),2e3)}).catch(()=>{})},[s]),Q=i.useCallback(p=>{p!==l&&(a==null||a(p)),z(!1)},[l,a]),F=l!==void 0&&h&&h.length>0||x&&Object.keys(x).length>0,V=()=>F?e.jsxs(zt,{children:[x&&e.jsxs(_t,{children:[x.ETHEREUM!==void 0&&e.jsxs(ce,{clickable:!!d,onClick:()=>d==null?void 0:d(G.Network.ETHEREUM),children:[e.jsx(Ce,{}),e.jsx(pe,{children:y(x.ETHEREUM)})]}),x.MATIC!==void 0&&e.jsxs(ce,{clickable:!!d,onClick:()=>d==null?void 0:d(G.Network.MATIC),children:[e.jsx(be,{}),e.jsx(pe,{children:y(x.MATIC)})]})]}),l!==void 0&&h&&h.length>0&&e.jsxs($t,{children:[e.jsxs(Pt,{onClick:()=>z(p=>!p),children:[e.jsx(Gt,{children:e.jsx(le,{chainId:l})}),e.jsx(Kt,{children:he(l)}),e.jsx(ie,{style:{width:20,height:20,flexShrink:0,color:"white",transform:Z?"rotate(180deg)":"rotate(0deg)",transition:"transform 0.25s ease"}})]}),Z&&e.jsx(Tt,{role:"listbox","aria-label":"Select chain",children:h.map(p=>{const w=p===l;return e.jsxs(Ft,{selected:w,role:"option","aria-selected":w,onClick:()=>Q(p),children:[e.jsx(le,{chainId:p}),he(p)]},p)})})]})]}):null,W=()=>!L||N?e.jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",width:"100%",height:"100%",padding:6},children:e.jsx(xe,{style:{width:"100%",height:"100%"}})}):e.jsx(Lt,{src:L,alt:"",onLoad:()=>q(L),onError:()=>O(!0),style:{opacity:J?1:0}}),_=()=>e.jsxs(e.Fragment,{children:[qe().map(p=>{const w=Yt[p.icon];return e.jsxs(Ht,{href:p.url,children:[w&&e.jsx(w,{}),c[p.label]]},p.label)}),e.jsx(oe,{}),e.jsxs(Rt,{onClick:m,children:[e.jsx(We,{}),c.logout]})]});return e.jsxs(e.Fragment,{children:[e.jsxs(jt,{children:[e.jsx(vt,{onClick:v,"aria-label":"User menu","aria-expanded":b,"aria-haspopup":"true",className:n?"loading":void 0,children:!n&&W()}),b&&e.jsxs(kt,{onClick:p=>p.stopPropagation(),children:[e.jsx(yt,{children:R?e.jsx(It,{src:R,alt:""}):null}),e.jsxs(de,{children:[e.jsxs("div",{style:{paddingLeft:16,paddingBottom:8,display:"flex",flexDirection:"column",gap:4},children:[e.jsx(Mt,{title:U,children:U}),e.jsxs("div",{style:{display:"flex",flexDirection:"column"},children:[e.jsx(St,{children:c.walletAddress}),e.jsxs(At,{children:[k?c.addressCopied:T,e.jsx(Et,{onClick:M,"aria-label":"Copy address",children:e.jsx(re,{})})]})]}),V()]}),e.jsx(oe,{}),_()]})]})]}),b&&e.jsxs(Wt,{"data-mobile-user-card":!0,onClick:p=>p.stopPropagation(),children:[e.jsxs(Dt,{children:[e.jsx(Nt,{className:n?"loading":void 0,children:!n&&W()}),e.jsxs(Ut,{children:[e.jsx(Zt,{title:U,children:U}),e.jsx(Vt,{children:c.walletAddress}),e.jsxs(Bt,{children:[k?c.addressCopied:T,e.jsx(Ot,{onClick:M,"aria-label":"Copy address",children:e.jsx(re,{})})]}),V()]})]}),e.jsx(oe,{}),e.jsx(de,{children:_()})]})]})});Ie.displayName="UserCardPanel";const Jt=Ae.memo(t=>e.jsxs(Ee,{viewBox:"0 0 20 21",...t,children:[e.jsx("path",{d:"M13.1318 0.891714L18.5 6.29015V14.0226L13.125 19.5831H6.26758L0.891602 14.0216V6.29113L6.26074 0.891714H13.1318Z",stroke:"currentColor",strokeWidth:"1.78379",fill:"none"}),e.jsx("path",{d:"M7.81758 5.13837C8.7606 4.70684 9.80743 4.55428 10.8344 4.69871C11.8613 4.84315 12.8255 5.27853 13.6129 5.95344L12.0562 7.76966C11.6155 7.39196 11.076 7.1483 10.5012 7.06747C9.92652 6.98664 9.34068 7.07201 8.81294 7.31351C8.28519 7.555 7.8376 7.94253 7.52307 8.43029C7.20854 8.91805 7.0402 9.48566 7.03796 10.066C7.03572 10.6464 7.19967 11.2153 7.51042 11.7054C7.82117 12.1956 8.26576 12.5866 8.79162 12.8322C9.31748 13.0777 9.90265 13.1676 10.478 13.0912C11.0533 13.0148 11.5947 12.7753 12.0383 12.4011L13.581 14.2293C12.7884 14.8981 11.8209 15.326 10.7928 15.4625C9.7648 15.599 8.71916 15.4384 7.7795 14.9996C6.83984 14.5608 6.04542 13.8621 5.49014 12.9863C4.93485 12.1104 4.64191 11.0938 4.64592 10.0568C4.64992 9.01972 4.95071 8.00549 5.51274 7.13393C6.07478 6.26236 6.87456 5.5699 7.81758 5.13837Z",fill:"currentColor"})]})),Me=o("button")({all:"unset",position:"relative",display:"flex",alignItems:"center",gap:4,cursor:"pointer",color:"#A0ABFF",fontFamily:"Inter, Helvetica, Arial, sans-serif",fontWeight:600,flexShrink:0,transition:"opacity 0.15s ease","&:hover":{opacity:.8},"&:hover .credits-tooltip":{opacity:1,pointerEvents:"auto"},"&:focus-visible":{outline:`2px solid ${g.primary}`,outlineOffset:2,borderRadius:4},"&& svg":{flexShrink:0},[A]:{fontSize:12,letterSpacing:-.6,"&& svg":{width:14,height:14}},[f]:{fontSize:16,letterSpacing:-.8,"&& svg":{width:20,height:20}}}),Qt=o("div")({position:"absolute",top:"calc(100% + 4px)",left:"50%",transform:"translateX(-50%)",background:"#43404A",padding:8,borderRadius:8,boxShadow:"0 2px 8px rgba(0,0,0,0.3)",fontFamily:"Inter, Helvetica, Arial, sans-serif",fontWeight:400,fontSize:12,lineHeight:1.4,color:"#ECEBED",whiteSpace:"normal",textAlign:"center",minWidth:140,opacity:0,pointerEvents:"none",transition:"opacity 0.15s ease",zIndex:10}),eo=o(Me)({color:r.softWhite}),to=o("div")({display:"flex",alignItems:"center",flexShrink:0,[A]:{gap:4},[f]:{gap:12}}),fe=o("button")(({clickable:t})=>({all:"unset",display:"flex",alignItems:"center",cursor:t?"pointer":"default",color:r.softWhite,fontFamily:"Inter, Helvetica, Arial, sans-serif",fontWeight:400,flexShrink:0,transition:"opacity 0.15s ease","&:hover":t?{opacity:.8}:void 0,"&:focus-visible":{outline:`2px solid ${g.primary}`,outlineOffset:2,borderRadius:4},[A]:{gap:2,fontSize:12,letterSpacing:-.6,"& svg":{width:14,height:14,flexShrink:0}},[f]:{gap:4,fontWeight:600,fontSize:16,letterSpacing:-.8,"& svg":{width:20,height:20,flexShrink:0}}})),oo=o("div")({display:"flex",flexShrink:0,[A]:{flexDirection:"column-reverse",alignItems:"flex-end",justifyContent:"center",gap:4},[f]:{flexDirection:"row",alignItems:"center",gap:24}});function no(t){const n=t-Date.now();return Math.max(0,Math.ceil(n/(1e3*60*60*24)))}const io=i.memo(function({isSignedIn:n,isSigningIn:s,isLoadingProfile:u=!1,address:b,avatar:v,i18n:m,notificationSlot:l,selectedChain:h,chains:a,onSelectChain:x,manaBalances:d,onClickBalance:c,showManaBalancesInNavbar:L=!1,creditsBalance:H,onClickCredits:q,shopCreditsBalance:N,onClickShopCredits:O,activePage:J,onToggleUserCard:R,onClickSignIn:U,onClickSignOut:T}){const k={...Ye,...m},[I,Z]=i.useState(!1),[z,M]=i.useState(null),[Q,F]=i.useState(!1),V=i.useRef(null),W=i.useRef(null),_=i.useCallback(()=>{Z(C=>(C||(M(null),F(!1)),!C))},[]),B=i.useCallback(()=>{Z(!1)},[]),$=i.useCallback(C=>{W.current&&(clearTimeout(W.current),W.current=null),M(C),F(!1)},[]),P=i.useCallback(()=>{W.current=setTimeout(()=>{M(null)},300)},[]),S=i.useCallback(()=>{M(null)},[]),p=i.useCallback(()=>{F(C=>{const D=!C;return D&&(M(null),Z(!1)),R==null||R(D),D})},[R]),w=i.useCallback(()=>{F(!1)},[]);return i.useEffect(()=>{function C(D){const Se=D.target;V.current&&!V.current.contains(Se)&&(S(),w())}return document.addEventListener("mousedown",C),()=>document.removeEventListener("mousedown",C)},[S,w]),i.useEffect(()=>{const C=()=>{w(),S()};return window.addEventListener("scroll",C,{passive:!0}),()=>window.removeEventListener("scroll",C)},[w,S]),i.useEffect(()=>{function C(D){D.key==="Escape"&&(S(),w(),B())}return document.addEventListener("keydown",C),()=>document.removeEventListener("keydown",C)},[S,w,B]),i.useEffect(()=>(I?document.body.style.overflow="hidden":document.body.style.overflow="",()=>{document.body.style.overflow=""}),[I]),e.jsxs(e.Fragment,{children:[e.jsxs(tt,{ref:V,children:[e.jsxs(ot,{children:[e.jsx(rt,{href:"https://decentraland.org","aria-label":"Decentraland Home",children:e.jsx(xe,{})}),e.jsx(ye,{desktopDropdown:z,onOpenDropdown:$,onScheduleCloseDropdown:P,activePage:J,i18n:k})]}),e.jsxs(nt,{children:[n&&e.jsxs(it,{children:[(H||N!==void 0||L&&d)&&e.jsxs(oo,{children:[H&&e.jsxs(Me,{onClick:q,"aria-label":`${y(H.balance)} credits`,children:[e.jsx(Jt,{}),y(H.balance),e.jsxs(Qt,{className:"credits-tooltip",children:[k.creditsExpiringIn.replace("{days}",String(no(H.expiresAt))),e.jsx("br",{}),k.creditsValueNote]})]}),L&&d&&e.jsxs(to,{children:[d.ETHEREUM!==void 0&&e.jsxs(fe,{clickable:!!c,onClick:c?()=>c(G.Network.ETHEREUM):void 0,"aria-label":`${y(d.ETHEREUM)} MANA on Ethereum`,children:[e.jsx(Ce,{}),y(d.ETHEREUM)]}),d.MATIC!==void 0&&e.jsxs(fe,{clickable:!!c,onClick:c?()=>c(G.Network.MATIC):void 0,"aria-label":`${y(d.MATIC)} MANA on Polygon`,children:[e.jsx(be,{}),y(d.MATIC)]})]}),N!==void 0&&e.jsxs(eo,{onClick:O,"aria-label":`${y(N)} shop credits`,children:[e.jsx(Ke,{}),y(N)]})]}),l&&e.jsx("div",{onClick:()=>{F(!1),M(null)},children:l}),e.jsx(Ie,{isLoadingProfile:u,address:b,avatar:v,userCardOpen:Q,onToggleUserCard:p,onClickSignOut:T,selectedChain:h,chains:a,onSelectChain:x,manaBalances:L?void 0:d,onClickBalance:L?void 0:c,i18n:k})]}),!n&&e.jsx(lt,{onClick:U,disabled:s,children:s?k.signingIn:k.signIn}),e.jsx(st,{onClick:_,"aria-label":I?"Close menu":"Open menu","aria-expanded":I,children:I?e.jsx(Re,{}):e.jsx(He,{})})]})]}),e.jsx(ke,{open:I,onClose:B,i18n:k})]})});io.displayName="Navbar";const xo=o("button")({all:"unset",position:"relative",display:"flex",alignItems:"center",justifyContent:"center",width:24,height:24,color:r.white,cursor:"pointer",flexShrink:0,borderRadius:4,"&.has-unread":{animation:`${et} 0.8s`,animationIterationCount:4},"&:focus-visible":{outline:`2px solid ${g.primary}`,outlineOffset:2},"& svg":{width:24,height:24}}),go=o("span")({position:"absolute",top:-4,right:-6,minWidth:16,height:16,borderRadius:8,backgroundColor:g.primary,color:"#fff",fontSize:10,fontWeight:700,fontFamily:"Inter, Helvetica, Arial, sans-serif",display:"flex",alignItems:"center",justifyContent:"center",padding:"0 4px",lineHeight:1,pointerEvents:"none"}),Co=o("div")({position:"relative"}),bo=o("div")({position:"absolute",top:"100%",right:-12,marginTop:16,width:390,maxHeight:"70vh",zIndex:1102,background:"rgba(38, 38, 38, 0.8)",backdropFilter:"blur(12.5px)",WebkitBackdropFilter:"blur(12.5px)",border:"0.5px solid #5E5B67",borderRadius:12,boxShadow:"0 2px 20px rgba(0, 0, 0, 0.25)",display:"flex",flexDirection:"column",overflow:"hidden",paddingTop:12,paddingBottom:24,animation:`${X} 0.15s ease forwards`,[A]:{position:"fixed",top:64,left:0,right:0,width:"auto",maxHeight:"calc(100vh - 64px)",borderRadius:0}}),mo=o("div")({display:"flex",alignItems:"center",justifyContent:"space-between",padding:"0 12px 12px 24px",borderBottom:"0.5px solid #5E5B67"}),wo=o("span")({fontFamily:"Inter, Helvetica, Arial, sans-serif",fontWeight:600,fontSize:20,color:"#FCFCFC"}),vo=o("div")({display:"flex",flexDirection:"column",overflowY:"auto",flex:1}),Lo=o("div")({display:"flex",alignItems:"flex-start",gap:8,padding:"8px 16px",borderRadius:8,cursor:"pointer",transition:"background-color 0.15s ease","&:hover":{backgroundColor:"rgba(255, 255, 255, 0.05)"}}),jo=o("div")({width:56,height:56,borderRadius:"50%",backgroundColor:"rgba(103, 99, 112, 0.4)",flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center",overflow:"hidden","& img, & svg":{width:48,height:48,objectFit:"cover"}}),ko=o("div")({display:"flex",flexDirection:"column",gap:2,minWidth:0,flex:1}),yo=o("span")({fontFamily:"Inter, Helvetica, Arial, sans-serif",fontWeight:600,fontSize:16,lineHeight:1.75,color:"#FCFCFC",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}),Io=o("span")({fontFamily:"Inter, Helvetica, Arial, sans-serif",fontWeight:400,fontSize:12,lineHeight:"20px",color:"#ECEBED",maxWidth:280,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}),Mo=o("span")({fontFamily:"Inter, Helvetica, Arial, sans-serif",fontWeight:400,fontSize:12,color:"#A09BA8"}),So=o("div")({width:8,height:8,borderRadius:4,backgroundColor:"#FF2D55",flexShrink:0,alignSelf:"center"}),Ao=o("div")({display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",padding:"40px 80px",gap:8,color:r.gray3,fontFamily:"Inter, Helvetica, Arial, sans-serif",fontSize:16,textAlign:"center"});export{xo as BellButton,io as Navbar,go as NotificationBadge,So as NotificationDot,Ao as NotificationEmpty,mo as NotificationHeader,ko as NotificationItemContent,Io as NotificationItemDescription,jo as NotificationItemImage,Mo as NotificationItemTime,yo as NotificationItemTitle,vo as NotificationList,Lo as NotificationListItem,bo as NotificationPanel,wo as NotificationTitle,Co as NotificationWrapper};
2
- //# sourceMappingURL=index-C7dG5MlC.js.map
1
+ import{r as i,j as e,R as Ae}from"./react-D7nfuWd6.js";import{n as G}from"./dcl-schemas-CfMjyfZx.js";import{c as j}from"./index-N3qNnxTo.js";import{n as o,S as Ee}from"./emotion-styled.browser.esm-D4jxZZdu.js";import{m as ne,c7 as g,c8 as r}from"./index-Dl4hrRT2.js";import"./styled-EO0aCK0k.js";import"./sentry-CoTjVJfh.js";import"./ethers-Dv96XuWO.js";import"./intl-AKLEHPeO.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},n=new t.Error().stack;n&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[n]="50da5fb4-ff7e-4f5a-9f1c-d1b72f43294f",t._sentryDebugIdIdentifier="sentry-dbid-50da5fb4-ff7e-4f5a-9f1c-d1b72f43294f")}catch{}})();function y(t){return Math.floor(t).toLocaleString("en-US")}const xe=i.memo(function(n){return e.jsxs("svg",{viewBox:"0 0 90 90",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:[e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M45 89.9999C69.8528 89.9999 89.9999 69.8528 89.9999 45C89.9999 20.1472 69.8528 0 45 0C20.1472 0 0 20.1472 0 45C0 69.8528 20.1472 89.9999 45 89.9999Z",fill:"url(#dcl-nav0)"}),e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18 80.9996C25.515 86.6471 34.875 89.9996 45 89.9996C55.125 89.9996 64.485 86.6471 72 80.9996H18Z",fill:"#FF2D55"}),e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9 71.9996C11.565 75.397 14.603 78.435 18 80.9996H72C75.398 78.435 78.435 75.397 81 71.9996H9Z",fill:"#FFA25A"}),e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M60.368 62.9997H3.758C5.153 66.2172 6.93 69.2322 9 71.9997H60.39V62.9997H60.368Z",fill:"#FFC95B"}),e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M31.883 29.25V63H60.008L31.883 29.25Z",fill:"url(#dcl-nav1)"}),e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.758 63H31.883V29.25L3.758 63Z",fill:"white"}),e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M60.368 47.25V72H81L60.368 47.25Z",fill:"url(#dcl-nav2)"}),e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M39.757 72H60.367V47.25L39.757 72Z",fill:"white"}),e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M60.368 40.5C66.58 40.5 71.618 35.463 71.618 29.25C71.618 23.037 66.58 18 60.368 18C54.154 18 49.118 23.037 49.118 29.25C49.118 35.463 54.154 40.5 60.368 40.5Z",fill:"#FFC95B"}),e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M31.882 22.5C34.989 22.5 37.507 19.981 37.507 16.875C37.507 13.768 34.989 11.25 31.882 11.25C28.776 11.25 26.257 13.768 26.257 16.875C26.257 19.981 28.776 22.5 31.882 22.5Z",fill:"#FFC95B"}),e.jsxs("defs",{children:[e.jsxs("linearGradient",{id:"dcl-nav0",x1:"45",y1:"-18.64",x2:"-18.64",y2:"45",gradientUnits:"userSpaceOnUse",children:[e.jsx("stop",{stopColor:"#FF2D55"}),e.jsx("stop",{offset:"1",stopColor:"#FFBC5B"})]}),e.jsxs("linearGradient",{id:"dcl-nav1",x1:"31.873",y1:"29.25",x2:"31.873",y2:"63",gradientUnits:"userSpaceOnUse",children:[e.jsx("stop",{stopColor:"#A524B3"}),e.jsx("stop",{offset:"1",stopColor:"#FF2D55"})]}),e.jsxs("linearGradient",{id:"dcl-nav2",x1:"60.36",y1:"47.25",x2:"60.36",y2:"72",gradientUnits:"userSpaceOnUse",children:[e.jsx("stop",{stopColor:"#A524B3"}),e.jsx("stop",{offset:"1",stopColor:"#FF2D55"})]})]})]})}),He=i.memo(function(n){return e.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:[e.jsx("path",{d:"M3 6H21",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"}),e.jsx("path",{d:"M3 12H21",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"}),e.jsx("path",{d:"M3 18H21",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"})]})}),Re=i.memo(function(n){return e.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:[e.jsx("path",{d:"M6 6L18 18",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"}),e.jsx("path",{d:"M18 6L6 18",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"})]})}),ie=i.memo(function(n){return e.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:e.jsx("path",{d:"M5 7.5L10 12.5L15 7.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})}),Fe=i.memo(function(n){return e.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:e.jsx("path",{d:"M15 12.5L10 7.5L5 12.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})}),ge=i.memo(function(n){return e.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:[e.jsx("path",{d:"M12 8.66667V12.6667C12 13.0203 11.8595 13.3594 11.6095 13.6095C11.3594 13.8595 11.0203 14 10.6667 14H3.33333C2.97971 14 2.64057 13.8595 2.39052 13.6095C2.14048 13.3594 2 13.0203 2 12.6667V5.33333C2 4.97971 2.14048 4.64057 2.39052 4.39052C2.64057 4.14048 2.97971 4 3.33333 4H7.33333",stroke:"currentColor",strokeWidth:"1.33",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M10 2H14V6",stroke:"currentColor",strokeWidth:"1.33",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M6.66699 9.33333L14.0003 2",stroke:"currentColor",strokeWidth:"1.33",strokeLinecap:"round",strokeLinejoin:"round"})]})}),We=i.memo(function(n){return e.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:[e.jsx("path",{d:"M7.5 17.5H4.16667C3.72464 17.5 3.30072 17.3244 2.98816 17.0118C2.67559 16.6993 2.5 16.2754 2.5 15.8333V4.16667C2.5 3.72464 2.67559 3.30072 2.98816 2.98816C3.30072 2.67559 3.72464 2.5 4.16667 2.5H7.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M13.333 14.1667L17.4997 10.0001L13.333 5.83337",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M17.5 10H7.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]})}),re=i.memo(function(n){return e.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:[e.jsx("rect",{x:"3.5",y:"3.5",width:"7",height:"7",rx:"1.5",stroke:"currentColor",strokeWidth:"1"}),e.jsx("path",{d:"M8.5 3.5V2C8.5 1.17157 7.82843 0.5 7 0.5H2C1.17157 0.5 0.5 1.17157 0.5 2V7C0.5 7.82843 1.17157 8.5 2 8.5H3.5",stroke:"currentColor",strokeWidth:"1"})]})}),De=i.memo(function(n){return e.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:[e.jsx("path",{d:"M10 10C11.3807 10 12.5 8.88071 12.5 7.5C12.5 6.11929 11.3807 5 10 5C8.61929 5 7.5 6.11929 7.5 7.5C7.5 8.88071 8.61929 10 10 10Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M5 16.25C5 14.1789 7.23858 12.5 10 12.5C12.7614 12.5 15 14.1789 15 16.25",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]})}),Ne=i.memo(function(n){return e.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:[e.jsx("path",{d:"M15.8333 7.5L13.3333 3.33337H6.66667L4.16667 7.5L2.5 16.6667H17.5L15.8333 7.5Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M6.66667 3.33337L7.5 7.50004L10 9.16671L12.5 7.50004L13.3333 3.33337",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]})}),Ue=i.memo(function(n){return e.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:[e.jsx("path",{d:"M10 12.5C11.3807 12.5 12.5 11.3807 12.5 10C12.5 8.61929 11.3807 7.5 10 7.5C8.61929 7.5 7.5 8.61929 7.5 10C7.5 11.3807 8.61929 12.5 10 12.5Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M16.1666 10C16.1666 9.58337 16.1249 9.16671 16.0416 8.75004L17.9166 7.27087L16.4166 4.72921L14.1666 5.52087C13.5416 4.97921 12.8124 4.56254 11.9999 4.31254L11.6666 1.66671H8.33325L7.99992 4.31254C7.18742 4.56254 6.45825 4.97921 5.83325 5.52087L3.58325 4.72921L2.08325 7.27087L3.95825 8.75004C3.87492 9.16671 3.83325 9.58337 3.83325 10C3.83325 10.4167 3.87492 10.8334 3.95825 11.25L2.08325 12.7292L3.58325 15.2709L5.83325 14.4792C6.45825 15.0209 7.18742 15.4375 7.99992 15.6875L8.33325 18.3334H11.6666L11.9999 15.6875C12.8124 15.4375 13.5416 15.0209 14.1666 14.4792L16.4166 15.2709L17.9166 12.7292L16.0416 11.25C16.1249 10.8334 16.1666 10.4167 16.1666 10Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]})}),Ze=i.memo(function(n){return e.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:[e.jsx("path",{d:"M5 1.66663L2.5 4.99996V16.6666C2.5 17.1087 2.67559 17.5326 2.98816 17.8452C3.30072 18.1577 3.72464 18.3333 4.16667 18.3333H15.8333C16.2754 18.3333 16.6993 18.1577 17.0118 17.8452C17.3244 17.5326 17.5 17.1087 17.5 16.6666V4.99996L15 1.66663H5Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M2.5 5H17.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M13.3334 8.33337C13.3334 9.21743 12.9822 10.0653 12.3571 10.6904C11.7319 11.3155 10.8841 11.6667 10.0001 11.6667C9.11603 11.6667 8.26818 11.3155 7.64306 10.6904C7.01794 10.0653 6.66675 9.21743 6.66675 8.33337",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]})});i.memo(function(n){return e.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:e.jsx("path",{d:"M12 21.75C13.1 21.75 14 20.85 14 19.75H10C10 20.85 10.89 21.75 12 21.75ZM18 15.75V10.75C18 7.68 16.36 5.11 13.5 4.43V3.75C13.5 2.92 12.83 2.25 12 2.25C11.17 2.25 10.5 2.92 10.5 3.75V4.43C7.63 5.11 6 7.67 6 10.75V15.75L4 17.75V18.75H20V17.75L18 15.75Z",fill:"#FCFCFC"})})});const se=i.memo(function(n){return e.jsxs("svg",{viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:[e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20 40C25.3043 40 30.3914 37.8929 34.1421 34.1421C37.8929 30.3914 40 25.3043 40 20C40 14.6957 37.8929 9.60859 34.1421 5.85786C30.3914 2.10714 25.3043 0 20 0C14.6957 0 9.60859 2.10714 5.85786 5.85786C2.10714 9.60859 0 14.6957 0 20C0 25.3043 2.10714 30.3914 5.85786 34.1421C9.60859 37.8929 14.6957 40 20 40Z",fill:"#25292E"}),e.jsx("path",{d:"M11.7 21.1L20 26.0143L28.2857 21.1L20 32.8L11.7 21.1Z",fill:"white",fillOpacity:"0.8"}),e.jsx("path",{d:"M20 24.1857L11.7 19.2714L20 6.20001L28.3 19.2714L20 24.1857Z",fill:"white"})]})}),Ve=i.memo(function(n){return e.jsxs("svg",{viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:[e.jsx("rect",{width:"40",height:"40",rx:"20",fill:"white"}),e.jsx("path",{d:"M20 0C9 0 0 9 0 20C0 31 8.85714 40 20 40C31.1429 40 40 31.1429 40 20C40 8.85714 31 0 20 0ZM31.8571 20.1429C31.8571 20.4286 31.7143 20.8571 31.4286 21L25.7143 24.2857C25.4286 24.4286 25 24.4286 24.7143 24.2857L22.5714 23V20L25.1429 21.5714L29.1429 19.2857V14.7143L25.1429 12.4286L21.4286 14.5714V26.2857C21.4286 26.5714 21.2857 27 21 27.1429L15.2857 30.4286C15 30.5714 14.5714 30.5714 14.2857 30.4286L8.57143 27.1429C8.28571 27 8.14286 26.7143 8.14286 26.2857V19.7143C8.14286 19.4286 8.28571 19 8.57143 18.8571L14.2857 15.5714C14.5714 15.4286 15 15.4286 15.2857 15.5714L17.4286 16.8571V20L14.8571 18.4286L10.8571 20.7143V25.2857L14.8571 27.5714L18.8571 25.2857V13.7143C18.8571 13.4286 19 13 19.2857 12.8571L25 9.57143C25.2857 9.42857 25.7143 9.42857 26 9.57143L31.4286 12.8571C31.7143 13 31.8571 13.2857 31.8571 13.7143V20.1429Z",fill:"#8247E5"})]})}),Be=i.memo(function(n){return e.jsxs("svg",{viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:[e.jsx("path",{d:"M20 1C30.4286 1 39 9.57143 39 20C39 30.4286 30.4286 39 20 39C9.57143 39 1 30.4286 1 20C1 9.57143 9.57143 1 20 1Z",fill:"#2D374B",stroke:"#96BEDC",strokeWidth:"1.4"}),e.jsx("path",{d:"M16.4286 10.7143C14.2857 10.7143 12 11.2857 11 13L2 27L3 29L5 32L19 10.7143H16.4286Z",fill:"white"}),e.jsx("path",{d:"M20.8571 10.7143L7 33.5L9 36L11.5 37L27.4286 10.7143H20.8571Z",fill:"white"}),e.jsx("path",{d:"M20.1428 26.5714L27.5 37.5L32.5 34L23.8571 20.1429L20.1428 26.5714ZM36.8571 28.8571L38 27.5L28.4286 12.5714L25.1428 18.1429L34.5 33L36.4286 29.8571C36.7143 29.5714 36.8571 29.2857 37 28.8571C36.8571 29 36.8571 28.8571 36.8571 28.8571Z",fill:"#28A0F0"}),e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20.0731 2.14834C10.1438 2.14834 2.14834 10.1438 2.14834 20.0731C2.14834 29.9915 10.133 37.8517 20.0731 37.8517C29.8616 37.8517 37.8517 29.9969 37.8517 20.0731C37.8517 10.133 29.9915 2.14834 20.0731 2.14834ZM0 20.0731C0 8.95736 8.95736 0 20.0731 0C31.1996 0 40 8.96822 40 20.0731C40 31.1942 31.0372 40 20.0731 40C8.96822 40 0 31.1996 0 20.0731Z",fill:"#96BEDC"})]})}),Oe=i.memo(function(n){return e.jsxs("svg",{viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:[e.jsx("path",{d:"M40 20C40 8.95431 31.0457 0 20 0C8.95431 0 0 8.95431 0 20C0 31.0457 8.95431 40 20 40C31.0457 40 40 31.0457 40 20Z",fill:"#FF3131"}),e.jsx("path",{d:"M13.1714 26.2143C17.0286 26.2143 20.1143 23.0714 20.1143 18.5286C20.1143 15.4 18.0143 13.1 14.4286 13.1C10.5429 13.1 7.5 16.2429 7.5 20.7857C7.5 23.9286 9.64286 26.2143 13.1714 26.2143ZM14.3571 15.7143C15.8714 15.7143 16.8429 16.8714 16.8429 18.7143C16.8429 21.4286 15.2571 23.6 13.2571 23.6C11.7429 23.6 10.7714 22.4286 10.7714 20.6C10.7714 17.9 12.3571 15.7143 14.3429 15.7143H14.3571ZM23.4714 13.3143L20.7857 26H24.0143L24.8 22.2857H26.9C30.3714 22.2857 32.6286 20.3143 32.6286 17.1429C32.6286 14.8429 30.9571 13.3143 28.2 13.3143H23.4857H23.4714ZM26.1857 15.8H27.5286C28.7143 15.8 29.3857 16.3429 29.3857 17.4286C29.3857 18.8571 28.4143 19.8571 26.9 19.8571H25.3143L26.1714 15.8H26.1857Z",fill:"white"})]})}),Te=i.memo(function(n){return e.jsxs("svg",{viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:[e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20 0C31.0471 0 40 8.95286 40 20C40 31.0471 31.0471 40 20 40C8.95286 40 0 31.0471 0 20C0 8.95286 8.95286 0 20 0Z",fill:"#F0B90B"}),e.jsx("path",{d:"M10.9914 20L11.0057 25.2886L15.5 27.9314V31.0286L8.37714 26.8514V18.4543L10.9914 20ZM10.9914 14.7114V17.7929L8.37428 16.2457V13.1629L10.9914 11.6157L13.6214 13.1629L10.9929 14.7114H10.9914ZM17.3771 13.1629L19.9943 11.6157L22.6229 13.1629L19.9943 14.7114L17.3771 13.1629Z",fill:"white"}),e.jsx("path",{d:"M12.8829 24.1929V21.0957L15.5 22.6443V25.7257L12.8829 24.1929ZM17.3771 29.0414L19.9943 30.59L22.6229 29.0414V32.1229L19.9943 33.6714L17.3771 32.1229V29.0414ZM26.3771 13.1629L28.9943 11.6157L31.6229 13.1629V16.2457L28.9943 17.7929V14.7114L26.3771 13.1629ZM28.9943 25.2886L29.0086 20L31.6243 18.4514V26.85L24.5014 31.0272V27.9314L28.9943 25.2886Z",fill:"white"}),e.jsx("path",{d:"M27.1171 24.1928L24.5 25.7257V22.6443L27.1171 21.0957V24.1928Z",fill:"white"}),e.jsx("path",{d:"M27.1171 15.8072L27.1314 18.9043L22.6243 21.5472V26.85L20.0086 28.3829L17.3914 26.85V21.5486L12.8843 18.9043V15.8072L15.5129 14.26L19.9914 16.9172L24.4986 14.26L27.1271 15.8072H27.1171ZM12.8829 10.5214L19.9929 6.32858L27.1171 10.5214L24.5 12.0686L19.9943 9.41144L15.5 12.0686L12.8829 10.5214Z",fill:"white"})]})}),ze=i.memo(function(n){return e.jsxs("svg",{viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:[e.jsx("path",{d:"M20 40C31.0457 40 40 31.0457 40 20C40 8.9543 31.0457 0 20 0C8.9543 0 0 8.9543 0 20C0 31.0457 8.9543 40 20 40Z",fill:"#E84142"}),e.jsx("path",{d:"M27.0552 20.5197C27.7484 19.3226 28.8691 19.3226 29.5592 20.5197L33.8738 28.0946C34.567 29.291 34 30.2674 32.612 30.2674H23.9211C22.5513 30.2674 21.9842 29.291 22.6593 28.0946L27.0552 20.5197ZM18.709 5.93692C19.4014 4.74055 20.504 4.74055 21.1972 5.93692L22.1577 7.67194L24.4251 11.6562C24.6972 12.2182 24.8386 12.8346 24.8386 13.459C24.8386 14.0835 24.6972 14.6998 24.4251 15.2618L16.8186 28.4409C16.479 28.9688 16.0198 29.4093 15.4781 29.7267C14.9365 30.044 14.3277 30.2292 13.7011 30.2674H7.38566C6.00001 30.2674 5.43298 29.3068 6.12383 28.0946L18.709 5.93692Z",fill:"white"})]})}),_e=i.memo(function(n){return e.jsxs("svg",{viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:[e.jsx("path",{d:"M20 40C31.0457 40 40 31.0457 40 20C40 8.9543 31.0457 0 20 0C8.9543 0 0 8.9543 0 20C0 31.0457 8.9543 40 20 40Z",fill:"#13B5EC"}),e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M21.5 16.125L26 13.5V18.75L21.5 16.125ZM26 27.375L20 30.875L14 27.375V21.25L20 24.75L26 21.25V27.375ZM14 13.5L18.5 16.125L14 18.75V13.5ZM20.75 17.375L25.25 20L20.75 22.625V17.375ZM19.25 22.625L14.75 20L19.25 17.375V22.625ZM25.25 12.25L20 15.25L14.75 12.25L20 9.125L25.25 12.25ZM12.5 11.75V28.125L20 32.375L27.5 28.125V11.75L20 7.5L12.5 11.75Z",fill:"white"})]})}),$e=new Set([1,5,42,4,3,11155111]),Pe=new Set([137,80002,80001]),Ge={56:Te,10:Oe,42161:Be,250:_e,43114:ze};function le({chainId:t,...n}){const s=Ge[t];return s?e.jsx(s,{...n}):$e.has(t)?e.jsx(se,{...n}):Pe.has(t)?e.jsx(Ve,{...n}):e.jsx(se,{...n})}const Ce=i.memo(function(n){return e.jsx("svg",{width:"16",height:"16",viewBox:"0 0 13 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:e.jsx("path",{d:"M9.864 6.952C9.864 4.968 8.264 3.32 6.28 3.32C4.296 3.32 2.696 4.968 2.696 6.952C2.696 8.92 4.296 10.52 6.28 10.52C8.264 10.52 9.864 8.92 9.864 6.952ZM9.032 6.952C9.032 8.456 7.688 9.688 6.28 9.688C4.728 9.688 3.528 8.488 3.528 6.952C3.528 5.432 4.728 4.152 6.28 4.152C7.704 4.152 9.032 5.432 9.032 6.952ZM12.248 10.424V3.544L6.28 0.12L0.312 3.544V10.424L6.28 13.848L12.248 10.424ZM11.192 9.832L6.296 12.632L1.368 9.832V4.184L6.28 1.336L11.192 4.184V9.832Z",fill:"#FF2D55"})})}),be=i.memo(function(n){return e.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 0L24 12L12 24L0 12L12 0ZM12.0002 3.36001L20.6402 12L12.0002 20.64L3.36023 12L12.0002 3.36001ZM12.0009 16.32C14.3868 16.32 16.3209 14.3859 16.3209 12C16.3209 9.61415 14.3868 7.68002 12.0009 7.68002C9.61507 7.68002 7.68094 9.61415 7.68094 12C7.68094 14.3859 9.61507 16.32 12.0009 16.32Z",fill:"#FCFCFC"})})}),Ke=i.memo(function(n){return e.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:[e.jsx("path",{d:"M13.1318 0.891714L18.5 6.29015V14.0226L13.125 19.5831H6.26758L0.891602 14.0216V6.29113L6.26074 0.891714H13.1318Z",stroke:"currentColor",strokeWidth:"1.78379"}),e.jsx("path",{d:"M7.81758 5.13837C8.7606 4.70684 9.80743 4.55428 10.8344 4.69871C11.8613 4.84315 12.8255 5.27853 13.6129 5.95344L12.0562 7.76966C11.6155 7.39196 11.076 7.1483 10.5012 7.06747C9.92652 6.98664 9.34068 7.07201 8.81294 7.31351C8.28519 7.555 7.8376 7.94253 7.52307 8.43029C7.20854 8.91805 7.0402 9.48566 7.03796 10.066C7.03572 10.6464 7.19967 11.2153 7.51042 11.7054C7.82117 12.1956 8.26576 12.5866 8.79162 12.8322C9.31748 13.0777 9.90265 13.1676 10.478 13.0912C11.0533 13.0148 11.5947 12.7753 12.0383 12.4011L13.581 14.2293C12.7884 14.8981 11.8209 15.326 10.7928 15.4625C9.7648 15.599 8.71916 15.4384 7.7795 14.9996C6.83984 14.5608 6.04542 13.8621 5.49014 12.9863C4.93485 12.1104 4.64191 11.0938 4.64592 10.0568C4.64992 9.01972 4.95071 8.00549 5.51274 7.13393C6.07478 6.26236 6.87456 5.5699 7.81758 5.13837Z",fill:"currentColor"})]})}),Ye={signIn:"SIGN IN",signingIn:"SIGNING IN...",discover:"Discover",events:"Events",places:"Places",shop:"Shop",shopAll:"Shop All",wearables:"Wearables",emotes:"Emotes",names:"Names",land:"Land",merch:"Merch",create:"Create",createInDecentraland:"Create in Decentraland",publishWearablesEmotes:"Publish Wearables & Emotes",publishLand:"Manage Land",creatorDocumentation:"Creator Documentation",learn:"Learn",getStarted:"Get Started",startCreating:"Start Creating",seeWhatsNew:"See What's New",viewProfile:"View Profile",myAssets:"My Assets",accountSettings:"Account Settings",marketplaceAuthorizations:"Marketplace Authorizations",walletAddress:"User ID",addressCopied:"Copied!",logout:"Log Out",creditsExpiringIn:"Expiring in {days} days",creditsValueNote:"(1 Credit = 1 MANA in value)"};function Xe(){const t=j.get("SHOP_URL"),n=j.get("BUILDER_URL"),s=j.get("EVENTS_URL"),u=j.get("PLACES_URL"),b=j.get("CREATE_URL"),v=j.get("BLOG_URL"),m=j.get("MARKETPLACE_LANDS_URL");return{discover:{label:"discover",items:[{label:"events",url:s},{label:"places",url:u}]},shop:{label:"shop",items:[{label:"shopAll",url:t},{label:"wearables",url:`${t}/items?category=wearable`},{label:"emotes",url:`${t}/items?category=emote`},{label:"names",url:`${t}/items?category=names`},{label:"land",url:m},{label:"merch",url:"https://store.decentraland.org/",isExternal:!0}]},create:{label:"create",items:[{label:"createInDecentraland",url:b},{label:"publishWearablesEmotes",url:`${n}/collections`},{label:"publishLand",url:`${n}/land`},{label:"creatorDocumentation",url:"https://docs.decentraland.org/creator",isExternal:!0}]},learn:{label:"learn",url:v}}}let ee=null;function me(){return ee||(ee=Xe()),ee}let te=null;function qe(){return te||(te=[{label:"viewProfile",url:j.get("PROFILE_URL"),icon:"account"},{label:"myAssets",url:j.get("MARKETPLACE_MY_ASSETS_URL"),icon:"wearable"},{label:"accountSettings",url:j.get("ACCOUNT_URL"),icon:"settings"},{label:"marketplaceAuthorizations",url:j.get("MARKETPLACE_SETTINGS_URL"),icon:"shopping"}]),te}const we=["discover","shop","create"],ve="Inter, Helvetica, Arial, sans-serif",A="@media (max-width: 991px)",f="@media (min-width: 992px)",Je={navbar:1100},Qe="0px 1.333px 24px rgba(0,0,0,0.12), 0px 8px 13.333px rgba(0,0,0,0.14), 0px 4px 6.667px rgba(0,0,0,0.2)",K="rgba(38, 38, 38, 0.8)",Le="0.5px solid #5E5B67",Y="0 2px 20px 16px rgba(0, 0, 0, 0.25)",E="blur(12.5px)",je=ne({"0%":{opacity:1},"50%":{opacity:.5},"100%":{opacity:1}}),X=ne({from:{opacity:0},to:{opacity:1}}),et=ne({"0%, 100%":{transform:"rotate(0deg)"},"25%":{transform:"rotate(8deg)"},"50%":{transform:"rotate(-8deg)"},"75%":{transform:"rotate(4deg)"}}),tt=o("nav")({position:"fixed",top:0,left:0,right:0,zIndex:Je.navbar,fontFamily:ve,display:"flex",alignItems:"center",justifyContent:"space-between",boxSizing:"border-box","&::before":{content:'""',position:"absolute",top:0,left:0,right:0,bottom:0,zIndex:-1,background:"rgba(22, 21, 24, 0.75)",boxShadow:Qe,backdropFilter:"saturate(1.8) blur(20px)",WebkitBackdropFilter:"saturate(1.8) blur(20px)",transition:"background 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease"},[A]:{height:64,padding:"12px 16px"},[f]:{height:92,padding:"16px 54px","&::before":{background:"rgba(22, 21, 24, 0.4)"}}}),ot=o("div")({display:"flex",alignItems:"center",[A]:{gap:12},[f]:{gap:48},"& .mobile-only":{display:"flex",[f]:{display:"none"}},"& .desktop-only":{display:"none",[f]:{display:"flex"}}}),nt=o("div")({display:"flex",alignItems:"center",gap:16,[f]:{gap:48}}),it=o("div")({display:"flex",alignItems:"center",gap:12,[f]:{gap:24}}),rt=o("a")({display:"flex",alignItems:"center",flexShrink:0,width:40,height:40,"& svg":{width:"100%",height:"100%"}}),st=o("button")({all:"unset",display:"flex",alignItems:"center",justifyContent:"center",width:40,height:40,backgroundColor:"rgba(255, 255, 255, 0.1)",borderRadius:8,color:r.white,cursor:"pointer",flexShrink:0,transition:"background-color 0.15s ease","&:hover":{backgroundColor:"rgba(255, 255, 255, 0.15)"},"&:active":{backgroundColor:"rgba(255, 255, 255, 0.2)"},"&:focus-visible":{outline:`2px solid ${g.primary}`,outlineOffset:2},[f]:{display:"none"}}),lt=o("button")({all:"unset",boxSizing:"border-box",display:"flex",alignItems:"center",justifyContent:"center",padding:"8px 22px",border:`1px solid ${r.softWhite}`,borderRadius:6,fontFamily:ve,fontWeight:600,fontSize:15,lineHeight:"24px",letterSpacing:.46,textTransform:"uppercase",color:r.softWhite,cursor:"pointer",whiteSpace:"nowrap",transition:"background-color 0.15s ease, border-color 0.15s ease","&:hover":{backgroundColor:"rgba(255, 255, 255, 0.08)",borderColor:"rgba(255, 255, 255, 0.7)"},"&:active":{backgroundColor:"rgba(255, 255, 255, 0.12)"},"&:disabled":{opacity:.5,pointerEvents:"none"},"&:focus-visible":{outline:`2px solid ${g.primary}`,outlineOffset:2}}),at=o("div")(({open:t})=>({position:"fixed",top:64,left:0,right:0,bottom:0,zIndex:1099,pointerEvents:t?"auto":"none",backgroundColor:t?"rgba(0, 0, 0, 0.3)":"transparent",transition:"background-color 0.25s ease",[f]:{display:"none"}})),dt=o("div")(({open:t})=>({position:"fixed",top:64,left:0,right:0,zIndex:1100,maxHeight:t?"calc(100vh - 64px)":0,overflowY:"auto",background:K,backdropFilter:E,WebkitBackdropFilter:E,boxShadow:t?Y:"none",padding:t?12:"0 12px",transition:"max-height 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease",[f]:{display:"none"}})),ae=o("div")({borderBottom:"0.5px solid rgba(255, 255, 255, 0.1)"}),ct=o("a")({display:"flex",alignItems:"center",padding:"24px 16px",fontFamily:"Inter, Helvetica, Arial, sans-serif",fontWeight:600,fontSize:16,lineHeight:1.75,color:r.white,textDecoration:"none","&:hover":{color:r.gray5},"&:focus-visible":{outline:`2px solid ${g.primary}`,outlineOffset:-2}}),pt=o("button")({all:"unset",display:"flex",alignItems:"center",justifyContent:"space-between",width:"100%",padding:"24px 16px",boxSizing:"border-box",fontFamily:"Inter, Helvetica, Arial, sans-serif",fontWeight:600,fontSize:16,lineHeight:1.75,color:r.white,cursor:"pointer","&:hover":{color:r.gray5},"&:focus-visible":{outline:`2px solid ${g.primary}`,outlineOffset:-2},"& svg":{width:20,height:20,flexShrink:0,transition:"transform 0.2s ease"}}),ut=o("div")(({open:t})=>({maxHeight:t?500:0,overflow:"hidden",transition:"max-height 0.25s ease"})),ht=o("a")({display:"flex",alignItems:"center",justifyContent:"space-between",gap:8,padding:"12px 16px",fontFamily:"Inter, Helvetica, Arial, sans-serif",fontWeight:400,fontSize:16,color:r.gray4,textDecoration:"none","&:hover":{color:r.white},"&:focus-visible":{outline:`2px solid ${g.primary}`,outlineOffset:-2},"& svg":{width:16,height:16,flexShrink:0,opacity:.6}}),ke=i.memo(function({open:n,onClose:s,i18n:u}){const b=me(),[v,m]=i.useState(null),l=i.useCallback(h=>{m(a=>a===h?null:h)},[]);return e.jsxs(e.Fragment,{children:[e.jsx(at,{open:n,onClick:s}),e.jsxs(dt,{open:n,role:"navigation","aria-label":"Mobile navigation",children:[we.map(h=>{var d;const a=b[h],x=v===h;return e.jsxs(ae,{children:[e.jsxs(pt,{onClick:()=>l(h),"aria-expanded":x,children:[u[a.label],x?e.jsx(Fe,{}):e.jsx(ie,{})]}),e.jsx(ut,{open:x,children:(d=a.items)==null?void 0:d.map(c=>e.jsxs(ht,{href:c.url,target:c.isExternal?"_blank":void 0,rel:c.isExternal?"noopener noreferrer":void 0,children:[u[c.label],c.isExternal&&e.jsx(ge,{})]},c.label))})]},h)}),e.jsx(ae,{children:e.jsx(ct,{href:b.learn.url,children:u[b.learn.label]})})]})]})});ke.displayName="MobileMenu";const ft=o("div")({display:"none",[f]:{display:"flex",alignItems:"center",gap:24}}),xt=o("button")({all:"unset",display:"flex",alignItems:"center",gap:4,padding:"8px 24px",fontFamily:"Inter, Helvetica, Arial, sans-serif",fontWeight:400,fontSize:16,color:r.gray5,cursor:"pointer",borderRadius:8,whiteSpace:"nowrap",transition:"background-color 0.15s ease, color 0.15s ease","&:hover":{color:r.white,backgroundColor:"rgba(255, 255, 255, 0.08)",textShadow:"0 0 0.5px currentColor, 0 0 0.5px currentColor"},"&.active":{color:r.white,textShadow:"0 0 0.5px currentColor, 0 0 0.5px currentColor"},"&:focus-visible":{outline:`2px solid ${g.primary}`,outlineOffset:2},"& svg":{width:20,height:20,transition:"transform 0.2s ease",flexShrink:0}}),gt=o("a")({all:"unset",display:"flex",alignItems:"center",gap:4,padding:"8px 24px",fontFamily:"Inter, Helvetica, Arial, sans-serif",fontWeight:400,fontSize:16,color:r.gray5,cursor:"pointer",borderRadius:8,whiteSpace:"nowrap",transition:"background-color 0.15s ease, color 0.15s ease","&:hover":{color:r.white,backgroundColor:"rgba(255, 255, 255, 0.08)",textShadow:"0 0 0.5px currentColor, 0 0 0.5px currentColor"},"&.active":{color:r.white,textShadow:"0 0 0.5px currentColor, 0 0 0.5px currentColor"},"&:focus-visible":{outline:`2px solid ${g.primary}`,outlineOffset:2}}),Ct=o(xt)({paddingRight:16}),bt=o("div")({position:"relative",paddingBottom:8,marginBottom:-8,cursor:"pointer"}),mt=o("div")({position:"absolute",top:"100%",left:0,marginTop:2,minWidth:220,background:K,backdropFilter:E,WebkitBackdropFilter:E,border:Le,borderRadius:12,boxShadow:Y,padding:12,animation:`${X} 0.15s ease forwards`}),wt=o("a")({display:"flex",alignItems:"center",justifyContent:"space-between",gap:8,padding:"8px 16px",fontFamily:"Inter, Helvetica, Arial, sans-serif",fontWeight:400,fontSize:16,color:r.gray4,textDecoration:"none",borderRadius:12,whiteSpace:"nowrap",transition:"background-color 0.15s ease, color 0.15s ease","&:hover":{backgroundColor:"rgba(255, 255, 255, 0.06)",color:r.white},"&:focus-visible":{outline:`2px solid ${g.primary}`,outlineOffset:-2},"& svg":{width:16,height:16,flexShrink:0,opacity:.6}}),ye=i.memo(function({desktopDropdown:n,onOpenDropdown:s,onScheduleCloseDropdown:u,activePage:b,i18n:v}){const m=me();return e.jsxs(ft,{children:[we.map(l=>{var h;return e.jsxs(bt,{onMouseEnter:()=>s(l),onMouseLeave:u,children:[e.jsxs(Ct,{className:b===l?"active":void 0,"aria-expanded":n===l,"aria-haspopup":"true",onClick:()=>{var x;const a=(x=m[l].items)==null?void 0:x[0];a&&window.open(a.url,"_self")},children:[v[m[l].label],e.jsx(ie,{style:{transform:n===l?"rotate(180deg)":"rotate(0deg)",transition:"transform 0.25s ease"}})]}),n===l&&e.jsx(mt,{children:(h=m[l].items)==null?void 0:h.map(a=>e.jsxs(wt,{href:a.url,target:a.isExternal?"_blank":void 0,rel:a.isExternal?"noopener noreferrer":void 0,children:[v[a.label],a.isExternal&&e.jsx(ge,{})]},a.label))})]},l)}),e.jsx(gt,{href:m.learn.url,className:b==="learn"?"active":void 0,children:v[m.learn.label]})]})});ye.displayName="NavLinks";const vt=o("button")({all:"unset",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",flexShrink:0,borderRadius:100,backgroundColor:"#FF4BED",border:"2px solid rgba(255, 255, 255, 0.5)",overflow:"hidden",[A]:{width:40,height:40},[f]:{width:48,height:48},"&:focus-visible":{outline:`2px solid ${g.primary}`,outlineOffset:2},"&.loading":{animation:`${je} 1.5s ease-in-out infinite`}}),Lt=o("img")({borderRadius:100,objectFit:"cover",width:"100%",height:"100%"}),jt=o("div")({position:"relative"}),kt=o("div")({position:"fixed",top:92,right:54,zIndex:1201,background:K,backdropFilter:E,WebkitBackdropFilter:E,border:Le,borderRadius:12,boxShadow:Y,display:"none",padding:12,gap:24,animation:`${X} 0.15s ease forwards`,minWidth:484,[f]:{display:"flex"}}),yt=o("div")({width:151,minHeight:240,borderRadius:12,border:"0.5px solid #c640cd",background:"linear-gradient(180deg, rgba(198, 64, 205, 0.2) 0%, rgba(105, 31, 169, 0.2) 100%)",display:"flex",alignItems:"center",justifyContent:"center",overflow:"hidden",flexShrink:0}),It=o("img")({width:"100%",height:"auto",objectFit:"contain",objectPosition:"center"}),de=o("div")({display:"flex",flexDirection:"column",paddingRight:12,paddingTop:4,paddingBottom:4,flex:1,minWidth:0,[A]:{gap:12}}),Mt=o("span")({fontFamily:"Inter, Helvetica, Arial, sans-serif",fontWeight:600,fontSize:20,color:r.softWhite,marginBottom:4,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}),St=o("span")({fontFamily:"Inter, Helvetica, Arial, sans-serif",fontWeight:400,fontSize:14,color:r.gray4}),At=o("div")({display:"flex",alignItems:"center",gap:8,fontFamily:"Inter, Helvetica, Arial, sans-serif",fontWeight:400,fontSize:14,color:r.softWhite,lineHeight:1.75}),Et=o("button")({all:"unset",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",color:r.softWhite,opacity:.7,transition:"opacity 0.15s ease","&:hover":{opacity:1}}),Ht=o("a")({display:"flex",alignItems:"center",gap:12,padding:"8px 16px",borderRadius:12,fontFamily:"Inter, Helvetica, Arial, sans-serif",fontWeight:400,fontSize:16,lineHeight:1.75,color:r.gray4,textDecoration:"none",whiteSpace:"nowrap",cursor:"pointer",transition:"color 0.15s ease, background-color 0.15s ease","&:hover":{color:r.white,backgroundColor:"rgba(255, 255, 255, 0.05)"},"&:focus-visible":{outline:`2px solid ${g.primary}`,outlineOffset:2},"& svg":{width:20,height:20,flexShrink:0}}),oe=o("div")({height:.5,backgroundColor:"rgba(255, 255, 255, 0.1)",margin:"8px 0"}),Rt=o("button")({all:"unset",display:"flex",alignItems:"center",gap:12,padding:"12px 16px",borderRadius:12,fontFamily:"Inter, Helvetica, Arial, sans-serif",fontWeight:400,fontSize:16,lineHeight:1.75,color:r.gray4,cursor:"pointer",whiteSpace:"nowrap",transition:"color 0.15s ease","&:hover":{color:g.primary},"&:focus-visible":{outline:`2px solid ${g.primary}`,outlineOffset:2},"& svg":{width:18,height:18}}),Ft=o("button")(({selected:t})=>({all:"unset",position:"relative",display:"flex",alignItems:"center",gap:4,width:"100%",boxSizing:"border-box",padding:"4px 16px",paddingLeft:16,borderRadius:4,fontFamily:"Inter, Helvetica, Arial, sans-serif",fontSize:12,fontWeight:400,letterSpacing:.46,textTransform:"uppercase",color:"white",cursor:"pointer",transition:"background-color 0.15s ease, color 0.15s ease",background:t?"rgba(255, 255, 255, 0.2)":"transparent","&:hover":{background:t?"rgba(255, 255, 255, 0.2)":"rgba(255, 255, 255, 0.1)"},"& svg":{width:16,height:16,flexShrink:0},...t?{"&::before":{content:'""',position:"absolute",left:4,top:"50%",transform:"translateY(-50%)",width:8,height:8,borderRadius:4,backgroundColor:"#34CE77"}}:{}})),Wt=o("div")({position:"fixed",top:64,left:0,right:0,zIndex:1201,background:K,backdropFilter:E,WebkitBackdropFilter:E,boxShadow:Y,padding:"24px 12px",animation:`${X} 0.15s ease forwards`,[f]:{display:"none"}}),Dt=o("div")({display:"flex",alignItems:"center",gap:12,paddingBottom:8}),Nt=o("div")({width:73,height:73,borderRadius:100,border:"3px solid rgba(255, 255, 255, 0.5)",backgroundColor:"#FF4BED",overflow:"hidden",flexShrink:0,"&.loading":{animation:`${je} 1.5s ease-in-out infinite`}}),Ut=o("div")({display:"flex",flexDirection:"column",gap:2,minWidth:0}),Zt=o("span")({fontFamily:"Inter, Helvetica, Arial, sans-serif",fontWeight:600,fontSize:20,color:r.softWhite,marginBottom:4,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}),Vt=o("span")({fontFamily:"Inter, Helvetica, Arial, sans-serif",fontWeight:400,fontSize:14,color:r.gray4}),Bt=o("div")({display:"flex",alignItems:"center",gap:6,fontFamily:"Inter, Helvetica, Arial, sans-serif",fontWeight:400,fontSize:14,color:r.softWhite,lineHeight:1.75}),Ot=o("button")({all:"unset",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",color:r.softWhite,transition:"opacity 0.15s ease","&:hover":{opacity:.7},"& svg":{width:20,height:20}}),Tt=o("div")({position:"absolute",top:"calc(100% + 4px)",left:0,minWidth:150,display:"flex",flexDirection:"column",gap:2,padding:4,background:r.gray0,backdropFilter:"blur(12.5px)",WebkitBackdropFilter:"blur(12.5px)",border:"0.5px solid #5E5B67",borderRadius:8,boxShadow:"0 2px 20px rgba(0, 0, 0, 0.25)",zIndex:10}),zt=o("div")({display:"flex",alignItems:"center",flexWrap:"wrap",gap:"12px 24px",paddingTop:8,width:"100%"}),_t=o("div")({display:"flex",alignItems:"center",gap:6}),ce=o("div")(({clickable:t})=>({display:"flex",alignItems:"center",gap:2,cursor:t?"pointer":"default",color:"white"})),pe=o("span")({fontFamily:"Inter, sans-serif",fontWeight:600,fontSize:16,letterSpacing:-.8,whiteSpace:"nowrap"}),$t=o("div")({position:"relative"}),Pt=o("div")({display:"flex",alignItems:"center",gap:8,width:150,padding:"4px 4px 4px 8px",backgroundColor:r.gray0,borderRadius:8,cursor:"pointer",whiteSpace:"nowrap",boxSizing:"border-box"}),Gt=o("div")({width:16,height:16,display:"flex",flexShrink:0}),Kt=o("span")({fontFamily:"Inter, sans-serif",fontWeight:600,fontSize:15,lineHeight:"24px",letterSpacing:.46,textTransform:"uppercase",color:"white",flex:1}),Yt={account:De,wearable:Ne,settings:Ue,shopping:Ze},Xt="https://peer.decentraland.org/content/contents/";function ue(t){if(t){if(t.startsWith("http://")||t.startsWith("https://")||t.startsWith("data:"))return t;if(/^[a-zA-Z0-9]+$/.test(t))return`${Xt}${t}`}}const qt={1:"Ethereum",11155111:"Sepolia",137:"Polygon",80002:"Amoy",56:"BSC",43114:"Avalanche",42161:"Arbitrum",10:"Optimism",250:"Fantom"};function he(t){return qt[t]??`Chain ${t}`}const Ie=i.memo(function({isLoadingProfile:n,address:s,avatar:u,userCardOpen:b,onToggleUserCard:v,onClickSignOut:m,selectedChain:l,chains:h,onSelectChain:a,manaBalances:x,onClickBalance:d,i18n:c}){var B,$,P,S;const L=ue(($=(B=u==null?void 0:u.avatar)==null?void 0:B.snapshots)==null?void 0:$.face256),[H,q]=i.useState(),[N,O]=i.useState(!1);i.useEffect(()=>{O(!1)},[L]);const J=L?H===L:!1,R=ue((S=(P=u==null?void 0:u.avatar)==null?void 0:P.snapshots)==null?void 0:S.body),U=(u==null?void 0:u.name)||(s?`${s.slice(0,6)}...${s.slice(-4)}`:""),T=s?`${s.slice(0,6)}...${s.slice(-4)}`:"",[k,I]=i.useState(!1),[Z,z]=i.useState(!1),M=i.useCallback(()=>{s&&navigator.clipboard.writeText(s).then(()=>{I(!0),setTimeout(()=>I(!1),2e3)}).catch(()=>{})},[s]),Q=i.useCallback(p=>{p!==l&&(a==null||a(p)),z(!1)},[l,a]),F=l!==void 0&&h&&h.length>0||x&&Object.keys(x).length>0,V=()=>F?e.jsxs(zt,{children:[x&&e.jsxs(_t,{children:[x.ETHEREUM!==void 0&&e.jsxs(ce,{clickable:!!d,onClick:()=>d==null?void 0:d(G.Network.ETHEREUM),children:[e.jsx(Ce,{}),e.jsx(pe,{children:y(x.ETHEREUM)})]}),x.MATIC!==void 0&&e.jsxs(ce,{clickable:!!d,onClick:()=>d==null?void 0:d(G.Network.MATIC),children:[e.jsx(be,{}),e.jsx(pe,{children:y(x.MATIC)})]})]}),l!==void 0&&h&&h.length>0&&e.jsxs($t,{children:[e.jsxs(Pt,{onClick:()=>z(p=>!p),children:[e.jsx(Gt,{children:e.jsx(le,{chainId:l})}),e.jsx(Kt,{children:he(l)}),e.jsx(ie,{style:{width:20,height:20,flexShrink:0,color:"white",transform:Z?"rotate(180deg)":"rotate(0deg)",transition:"transform 0.25s ease"}})]}),Z&&e.jsx(Tt,{role:"listbox","aria-label":"Select chain",children:h.map(p=>{const w=p===l;return e.jsxs(Ft,{selected:w,role:"option","aria-selected":w,onClick:()=>Q(p),children:[e.jsx(le,{chainId:p}),he(p)]},p)})})]})]}):null,W=()=>!L||N?e.jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",width:"100%",height:"100%",padding:6},children:e.jsx(xe,{style:{width:"100%",height:"100%"}})}):e.jsx(Lt,{src:L,alt:"",onLoad:()=>q(L),onError:()=>O(!0),style:{opacity:J?1:0}}),_=()=>e.jsxs(e.Fragment,{children:[qe().map(p=>{const w=Yt[p.icon];return e.jsxs(Ht,{href:p.url,children:[w&&e.jsx(w,{}),c[p.label]]},p.label)}),e.jsx(oe,{}),e.jsxs(Rt,{onClick:m,children:[e.jsx(We,{}),c.logout]})]});return e.jsxs(e.Fragment,{children:[e.jsxs(jt,{children:[e.jsx(vt,{onClick:v,"aria-label":"User menu","aria-expanded":b,"aria-haspopup":"true",className:n?"loading":void 0,children:!n&&W()}),b&&e.jsxs(kt,{onClick:p=>p.stopPropagation(),children:[e.jsx(yt,{children:R?e.jsx(It,{src:R,alt:""}):null}),e.jsxs(de,{children:[e.jsxs("div",{style:{paddingLeft:16,paddingBottom:8,display:"flex",flexDirection:"column",gap:4},children:[e.jsx(Mt,{title:U,children:U}),e.jsxs("div",{style:{display:"flex",flexDirection:"column"},children:[e.jsx(St,{children:c.walletAddress}),e.jsxs(At,{children:[k?c.addressCopied:T,e.jsx(Et,{onClick:M,"aria-label":"Copy address",children:e.jsx(re,{})})]})]}),V()]}),e.jsx(oe,{}),_()]})]})]}),b&&e.jsxs(Wt,{"data-mobile-user-card":!0,onClick:p=>p.stopPropagation(),children:[e.jsxs(Dt,{children:[e.jsx(Nt,{className:n?"loading":void 0,children:!n&&W()}),e.jsxs(Ut,{children:[e.jsx(Zt,{title:U,children:U}),e.jsx(Vt,{children:c.walletAddress}),e.jsxs(Bt,{children:[k?c.addressCopied:T,e.jsx(Ot,{onClick:M,"aria-label":"Copy address",children:e.jsx(re,{})})]}),V()]})]}),e.jsx(oe,{}),e.jsx(de,{children:_()})]})]})});Ie.displayName="UserCardPanel";const Jt=Ae.memo(t=>e.jsxs(Ee,{viewBox:"0 0 20 21",...t,children:[e.jsx("path",{d:"M13.1318 0.891714L18.5 6.29015V14.0226L13.125 19.5831H6.26758L0.891602 14.0216V6.29113L6.26074 0.891714H13.1318Z",stroke:"currentColor",strokeWidth:"1.78379",fill:"none"}),e.jsx("path",{d:"M7.81758 5.13837C8.7606 4.70684 9.80743 4.55428 10.8344 4.69871C11.8613 4.84315 12.8255 5.27853 13.6129 5.95344L12.0562 7.76966C11.6155 7.39196 11.076 7.1483 10.5012 7.06747C9.92652 6.98664 9.34068 7.07201 8.81294 7.31351C8.28519 7.555 7.8376 7.94253 7.52307 8.43029C7.20854 8.91805 7.0402 9.48566 7.03796 10.066C7.03572 10.6464 7.19967 11.2153 7.51042 11.7054C7.82117 12.1956 8.26576 12.5866 8.79162 12.8322C9.31748 13.0777 9.90265 13.1676 10.478 13.0912C11.0533 13.0148 11.5947 12.7753 12.0383 12.4011L13.581 14.2293C12.7884 14.8981 11.8209 15.326 10.7928 15.4625C9.7648 15.599 8.71916 15.4384 7.7795 14.9996C6.83984 14.5608 6.04542 13.8621 5.49014 12.9863C4.93485 12.1104 4.64191 11.0938 4.64592 10.0568C4.64992 9.01972 4.95071 8.00549 5.51274 7.13393C6.07478 6.26236 6.87456 5.5699 7.81758 5.13837Z",fill:"currentColor"})]})),Me=o("button")({all:"unset",position:"relative",display:"flex",alignItems:"center",gap:4,cursor:"pointer",color:"#A0ABFF",fontFamily:"Inter, Helvetica, Arial, sans-serif",fontWeight:600,flexShrink:0,transition:"opacity 0.15s ease","&:hover":{opacity:.8},"&:hover .credits-tooltip":{opacity:1,pointerEvents:"auto"},"&:focus-visible":{outline:`2px solid ${g.primary}`,outlineOffset:2,borderRadius:4},"&& svg":{flexShrink:0},[A]:{fontSize:12,letterSpacing:-.6,"&& svg":{width:14,height:14}},[f]:{fontSize:16,letterSpacing:-.8,"&& svg":{width:20,height:20}}}),Qt=o("div")({position:"absolute",top:"calc(100% + 4px)",left:"50%",transform:"translateX(-50%)",background:"#43404A",padding:8,borderRadius:8,boxShadow:"0 2px 8px rgba(0,0,0,0.3)",fontFamily:"Inter, Helvetica, Arial, sans-serif",fontWeight:400,fontSize:12,lineHeight:1.4,color:"#ECEBED",whiteSpace:"normal",textAlign:"center",minWidth:140,opacity:0,pointerEvents:"none",transition:"opacity 0.15s ease",zIndex:10}),eo=o(Me)({color:r.softWhite}),to=o("div")({display:"flex",alignItems:"center",flexShrink:0,[A]:{gap:4},[f]:{gap:12}}),fe=o("button")(({clickable:t})=>({all:"unset",display:"flex",alignItems:"center",cursor:t?"pointer":"default",color:r.softWhite,fontFamily:"Inter, Helvetica, Arial, sans-serif",fontWeight:400,flexShrink:0,transition:"opacity 0.15s ease","&:hover":t?{opacity:.8}:void 0,"&:focus-visible":{outline:`2px solid ${g.primary}`,outlineOffset:2,borderRadius:4},[A]:{gap:2,fontSize:12,letterSpacing:-.6,"& svg":{width:14,height:14,flexShrink:0}},[f]:{gap:4,fontWeight:600,fontSize:16,letterSpacing:-.8,"& svg":{width:20,height:20,flexShrink:0}}})),oo=o("div")({display:"flex",flexShrink:0,[A]:{flexDirection:"column-reverse",alignItems:"flex-end",justifyContent:"center",gap:4},[f]:{flexDirection:"row",alignItems:"center",gap:24}});function no(t){const n=t-Date.now();return Math.max(0,Math.ceil(n/(1e3*60*60*24)))}const io=i.memo(function({isSignedIn:n,isSigningIn:s,isLoadingProfile:u=!1,address:b,avatar:v,i18n:m,notificationSlot:l,selectedChain:h,chains:a,onSelectChain:x,manaBalances:d,onClickBalance:c,showManaBalancesInNavbar:L=!1,creditsBalance:H,onClickCredits:q,shopCreditsBalance:N,onClickShopCredits:O,activePage:J,onToggleUserCard:R,onClickSignIn:U,onClickSignOut:T}){const k={...Ye,...m},[I,Z]=i.useState(!1),[z,M]=i.useState(null),[Q,F]=i.useState(!1),V=i.useRef(null),W=i.useRef(null),_=i.useCallback(()=>{Z(C=>(C||(M(null),F(!1)),!C))},[]),B=i.useCallback(()=>{Z(!1)},[]),$=i.useCallback(C=>{W.current&&(clearTimeout(W.current),W.current=null),M(C),F(!1)},[]),P=i.useCallback(()=>{W.current=setTimeout(()=>{M(null)},300)},[]),S=i.useCallback(()=>{M(null)},[]),p=i.useCallback(()=>{F(C=>{const D=!C;return D&&(M(null),Z(!1)),R==null||R(D),D})},[R]),w=i.useCallback(()=>{F(!1)},[]);return i.useEffect(()=>{function C(D){const Se=D.target;V.current&&!V.current.contains(Se)&&(S(),w())}return document.addEventListener("mousedown",C),()=>document.removeEventListener("mousedown",C)},[S,w]),i.useEffect(()=>{const C=()=>{w(),S()};return window.addEventListener("scroll",C,{passive:!0}),()=>window.removeEventListener("scroll",C)},[w,S]),i.useEffect(()=>{function C(D){D.key==="Escape"&&(S(),w(),B())}return document.addEventListener("keydown",C),()=>document.removeEventListener("keydown",C)},[S,w,B]),i.useEffect(()=>(I?document.body.style.overflow="hidden":document.body.style.overflow="",()=>{document.body.style.overflow=""}),[I]),e.jsxs(e.Fragment,{children:[e.jsxs(tt,{ref:V,children:[e.jsxs(ot,{children:[e.jsx(rt,{href:"https://decentraland.org","aria-label":"Decentraland Home",children:e.jsx(xe,{})}),e.jsx(ye,{desktopDropdown:z,onOpenDropdown:$,onScheduleCloseDropdown:P,activePage:J,i18n:k})]}),e.jsxs(nt,{children:[n&&e.jsxs(it,{children:[(H||N!==void 0||L&&d)&&e.jsxs(oo,{children:[H&&e.jsxs(Me,{onClick:q,"aria-label":`${y(H.balance)} credits`,children:[e.jsx(Jt,{}),y(H.balance),e.jsxs(Qt,{className:"credits-tooltip",children:[k.creditsExpiringIn.replace("{days}",String(no(H.expiresAt))),e.jsx("br",{}),k.creditsValueNote]})]}),L&&d&&e.jsxs(to,{children:[d.ETHEREUM!==void 0&&e.jsxs(fe,{clickable:!!c,onClick:c?()=>c(G.Network.ETHEREUM):void 0,"aria-label":`${y(d.ETHEREUM)} MANA on Ethereum`,children:[e.jsx(Ce,{}),y(d.ETHEREUM)]}),d.MATIC!==void 0&&e.jsxs(fe,{clickable:!!c,onClick:c?()=>c(G.Network.MATIC):void 0,"aria-label":`${y(d.MATIC)} MANA on Polygon`,children:[e.jsx(be,{}),y(d.MATIC)]})]}),N!==void 0&&e.jsxs(eo,{onClick:O,"aria-label":`${y(N)} shop credits`,children:[e.jsx(Ke,{}),y(N)]})]}),l&&e.jsx("div",{onClick:()=>{F(!1),M(null)},children:l}),e.jsx(Ie,{isLoadingProfile:u,address:b,avatar:v,userCardOpen:Q,onToggleUserCard:p,onClickSignOut:T,selectedChain:h,chains:a,onSelectChain:x,manaBalances:L?void 0:d,onClickBalance:L?void 0:c,i18n:k})]}),!n&&e.jsx(lt,{onClick:U,disabled:s,children:s?k.signingIn:k.signIn}),e.jsx(st,{onClick:_,"aria-label":I?"Close menu":"Open menu","aria-expanded":I,children:I?e.jsx(Re,{}):e.jsx(He,{})})]})]}),e.jsx(ke,{open:I,onClose:B,i18n:k})]})});io.displayName="Navbar";const xo=o("button")({all:"unset",position:"relative",display:"flex",alignItems:"center",justifyContent:"center",width:24,height:24,color:r.white,cursor:"pointer",flexShrink:0,borderRadius:4,"&.has-unread":{animation:`${et} 0.8s`,animationIterationCount:4},"&:focus-visible":{outline:`2px solid ${g.primary}`,outlineOffset:2},"& svg":{width:24,height:24}}),go=o("span")({position:"absolute",top:-4,right:-6,minWidth:16,height:16,borderRadius:8,backgroundColor:g.primary,color:"#fff",fontSize:10,fontWeight:700,fontFamily:"Inter, Helvetica, Arial, sans-serif",display:"flex",alignItems:"center",justifyContent:"center",padding:"0 4px",lineHeight:1,pointerEvents:"none"}),Co=o("div")({position:"relative"}),bo=o("div")({position:"absolute",top:"100%",right:-12,marginTop:16,width:390,maxHeight:"70vh",zIndex:1102,background:"rgba(38, 38, 38, 0.8)",backdropFilter:"blur(12.5px)",WebkitBackdropFilter:"blur(12.5px)",border:"0.5px solid #5E5B67",borderRadius:12,boxShadow:"0 2px 20px rgba(0, 0, 0, 0.25)",display:"flex",flexDirection:"column",overflow:"hidden",paddingTop:12,paddingBottom:24,animation:`${X} 0.15s ease forwards`,[A]:{position:"fixed",top:64,left:0,right:0,width:"auto",maxHeight:"calc(100vh - 64px)",borderRadius:0}}),mo=o("div")({display:"flex",alignItems:"center",justifyContent:"space-between",padding:"0 12px 12px 24px",borderBottom:"0.5px solid #5E5B67"}),wo=o("span")({fontFamily:"Inter, Helvetica, Arial, sans-serif",fontWeight:600,fontSize:20,color:"#FCFCFC"}),vo=o("div")({display:"flex",flexDirection:"column",overflowY:"auto",flex:1}),Lo=o("div")({display:"flex",alignItems:"flex-start",gap:8,padding:"8px 16px",borderRadius:8,cursor:"pointer",transition:"background-color 0.15s ease","&:hover":{backgroundColor:"rgba(255, 255, 255, 0.05)"}}),jo=o("div")({width:56,height:56,borderRadius:"50%",backgroundColor:"rgba(103, 99, 112, 0.4)",flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center",overflow:"hidden","& img, & svg":{width:48,height:48,objectFit:"cover"}}),ko=o("div")({display:"flex",flexDirection:"column",gap:2,minWidth:0,flex:1}),yo=o("span")({fontFamily:"Inter, Helvetica, Arial, sans-serif",fontWeight:600,fontSize:16,lineHeight:1.75,color:"#FCFCFC",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}),Io=o("span")({fontFamily:"Inter, Helvetica, Arial, sans-serif",fontWeight:400,fontSize:12,lineHeight:"20px",color:"#ECEBED",maxWidth:280,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}),Mo=o("span")({fontFamily:"Inter, Helvetica, Arial, sans-serif",fontWeight:400,fontSize:12,color:"#A09BA8"}),So=o("div")({width:8,height:8,borderRadius:4,backgroundColor:"#FF2D55",flexShrink:0,alignSelf:"center"}),Ao=o("div")({display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",padding:"40px 80px",gap:8,color:r.gray3,fontFamily:"Inter, Helvetica, Arial, sans-serif",fontSize:16,textAlign:"center"});export{xo as BellButton,io as Navbar,go as NotificationBadge,So as NotificationDot,Ao as NotificationEmpty,mo as NotificationHeader,ko as NotificationItemContent,Io as NotificationItemDescription,jo as NotificationItemImage,Mo as NotificationItemTime,yo as NotificationItemTitle,vo as NotificationList,Lo as NotificationListItem,bo as NotificationPanel,wo as NotificationTitle,Co as NotificationWrapper};
2
+ //# sourceMappingURL=index-BzKehLq1.js.map
@@ -1,3 +1,3 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["_assets/decimals-BPF9JuRG.js","_assets/utils-BV4hvYlV.js","_assets/sentry-CAS3BNIy.js","_assets/react-DcSw8tCD.js","_assets/decimals-BlaBlIXg.js","_assets/prepare-contract-call-B2J2TZU4.js","_assets/signing-ClZDdyWr.js","_assets/index-B-dIqjhn.js","_assets/dcl-schemas-CN-1-wGb.js","_assets/ethers-3hUTVH_L.js","_assets/intl-AKLEHPeO.js","_assets/index-CKGO8NWe.css","_assets/to-serializable-transaction-B9MSl050.js","_assets/transaction-CuK5IUGr.js","_assets/get-bytecode-B4ZUFLU7.js","_assets/in-app-wallet-calls-N7orXys6.js","_assets/wait-for-tx-receipt-CfUmETfV.js","_assets/transactionReceipt-jeQgFWvn.js","_assets/sleep-fBr8OToA.js","_assets/send-batch-transaction-BpqXJtGJ.js","_assets/send-transaction-FUszabPU.js","_assets/execute-B-kQuKck.js","_assets/detectExtension-Cpjv7w9d.js"])))=>i.map(i=>d[i]);
2
- import{_ as T}from"./index-B-dIqjhn.js";import{t as V,i as ct,a as ot}from"./transaction-CuK5IUGr.js";import{e as dt,i as pt,a as F}from"./utils-BV4hvYlV.js";import{f as mt,h as q,e as $,i as ut,g as L,j as yt,t as lt}from"./to-serializable-transaction-B9MSl050.js";import{r as C,a5 as B,w as E,S as O,G as x,s as z,h as _,l as D,H as ft,k as wt,e as At,T as gt,g as K}from"./prepare-contract-call-B2J2TZU4.js";import{o as j,r as Gt}from"./execute-B-kQuKck.js";import{Z,a as Y,p as Q,m as ht,b as Tt,d as J,e as Pt}from"./signing-ClZDdyWr.js";import{t as vt,p as Lt,s as Dt}from"./send-eip712-transaction-D2-3cTz5.js";import{s as Ot}from"./send-transaction-FUszabPU.js";import{p as xt}from"./linkAccount-DDn4BnMD.js";import{g as X,E as S,h as St,a as k,b as Ct,c as _t,d as Et,e as b,D as tt,f as at,i as Ft,j as Vt,k as bt,l as It}from"./index-CzJG485v.js";import{M as Ae}from"./wallets-DBFKTZVz.js";import"./react-DcSw8tCD.js";import"./dcl-schemas-CN-1-wGb.js";import"./sentry-CAS3BNIy.js";import"./ethers-3hUTVH_L.js";import"./intl-AKLEHPeO.js";import"./detectExtension-Cpjv7w9d.js";import"./get-bytecode-B4ZUFLU7.js";import"./eth_sendRawTransaction-DYAsy3sS.js";import"./sha256-CLzVl0-i.js";import"./ethereum-CMQLQ53m.js";import"./types-BeDU9GfL.js";import"./store-80QKZ2rN.js";import"./hashTypedData-BUtmFCdm.js";import"./index-NxvojHai.js";import"./events-BAvGtdFA.js";import"./index-hVKWyt40.js";import"./index-eN8iGXCt.js";import"./index-OpYIGLSa.js";import"./index-DUiscdsk.js";import"./index-BQb3Wk5r.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new t.Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="db7ce298-d6f7-4224-ac2a-15a4fb21c77d",t._sentryDebugIdIdentifier="sentry-dbid-db7ce298-d6f7-4224-ac2a-15a4fb21c77d")}catch{}})();const Ut="0xdd62ed3e",Rt=[{name:"owner",type:"address"},{name:"spender",type:"address"}],Nt=[{type:"uint256"}];async function $t(t){return C({contract:t.contract,method:[Ut,Rt,Nt],params:[t.owner,t.spender]})}const kt="0x095ea7b3",Ht=[{name:"spender",type:"address"},{name:"value",type:"uint256"}],Mt=[{type:"bool"}];function Wt(t){const e=j(async()=>"asyncParams"in t?await t.asyncParams():t);return B({accessList:async()=>{var a;return(a=(await e()).overrides)==null?void 0:a.accessList},authorizationList:async()=>{var a;return(a=(await e()).overrides)==null?void 0:a.authorizationList},contract:t.contract,erc20Value:async()=>{var a;return(a=(await e()).overrides)==null?void 0:a.erc20Value},extraGas:async()=>{var a;return(a=(await e()).overrides)==null?void 0:a.extraGas},gas:async()=>{var a;return(a=(await e()).overrides)==null?void 0:a.gas},gasPrice:async()=>{var a;return(a=(await e()).overrides)==null?void 0:a.gasPrice},maxFeePerGas:async()=>{var a;return(a=(await e()).overrides)==null?void 0:a.maxFeePerGas},maxPriorityFeePerGas:async()=>{var a;return(a=(await e()).overrides)==null?void 0:a.maxPriorityFeePerGas},method:[kt,Ht,Mt],nonce:async()=>{var a;return(a=(await e()).overrides)==null?void 0:a.nonce},params:async()=>{const a=await e();return[a.spender,a.value]},value:async()=>{var a;return(a=(await e()).overrides)==null?void 0:a.value}})}function qt(t){return Wt({asyncParams:async()=>{let e;if("amount"in t){const{decimals:a}=await T(async()=>{const{decimals:r}=await import("./decimals-BPF9JuRG.js");return{decimals:r}},__vite__mapDeps([0,1,2,3,4,5])),i=await a(t).catch(()=>18);e=mt(t.amount.toString(),i)}else e=t.amountWei;return{overrides:{erc20Value:{amountWei:e,tokenAddress:t.contract.address},...t.overrides},spender:t.spender,value:e}},contract:t.contract})}const Bt="0xf15d424e",zt=[{name:"signer",type:"address"}],Kt=[{components:[{name:"signer",type:"address"},{name:"approvedTargets",type:"address[]"},{name:"nativeTokenLimitPerTransaction",type:"uint256"},{name:"startTimestamp",type:"uint128"},{name:"endTimestamp",type:"uint128"}],name:"permissions",type:"tuple"}];async function jt(t){return C({contract:t.contract,method:[Bt,zt,Kt],params:[t.signer]})}const Zt="0x5892e236",Yt=[{components:[{name:"signer",type:"address"},{name:"isAdmin",type:"uint8"},{name:"approvedTargets",type:"address[]"},{name:"nativeTokenLimitPerTransaction",type:"uint256"},{name:"permissionStartTimestamp",type:"uint128"},{name:"permissionEndTimestamp",type:"uint128"},{name:"reqValidityStartTimestamp",type:"uint128"},{name:"reqValidityEndTimestamp",type:"uint128"},{name:"uid",type:"bytes32"}],name:"req",type:"tuple"},{name:"signature",type:"bytes"}],Qt=[];function Jt(t){const e=j(async()=>"asyncParams"in t?await t.asyncParams():t);return B({accessList:async()=>{var a;return(a=(await e()).overrides)==null?void 0:a.accessList},authorizationList:async()=>{var a;return(a=(await e()).overrides)==null?void 0:a.authorizationList},contract:t.contract,erc20Value:async()=>{var a;return(a=(await e()).overrides)==null?void 0:a.erc20Value},extraGas:async()=>{var a;return(a=(await e()).overrides)==null?void 0:a.extraGas},gas:async()=>{var a;return(a=(await e()).overrides)==null?void 0:a.gas},gasPrice:async()=>{var a;return(a=(await e()).overrides)==null?void 0:a.gasPrice},maxFeePerGas:async()=>{var a;return(a=(await e()).overrides)==null?void 0:a.maxFeePerGas},maxPriorityFeePerGas:async()=>{var a;return(a=(await e()).overrides)==null?void 0:a.maxPriorityFeePerGas},method:[Zt,Yt,Qt],nonce:async()=>{var a;return(a=(await e()).overrides)==null?void 0:a.nonce},params:async()=>{const a=await e();return[a.req,a.signature]},value:async()=>{var a;return(a=(await e()).overrides)==null?void 0:a.value}})}function W(){return new Date(Date.now()+1e3*60*60*24*365*10)}function U(t){return vt(Math.floor(t.getTime()/1e3))}const Xt=[{name:"signer",type:"address"},{name:"isAdmin",type:"uint8"},{name:"approvedTargets",type:"address[]"},{name:"nativeTokenLimitPerTransaction",type:"uint256"},{name:"permissionStartTimestamp",type:"uint128"},{name:"permissionEndTimestamp",type:"uint128"},{name:"reqValidityStartTimestamp",type:"uint128"},{name:"reqValidityEndTimestamp",type:"uint128"},{name:"uid",type:"bytes32"}];async function ta(t){const{account:e,contract:a,req:i}=t,r=await e.signTypedData({domain:{chainId:a.chain.id,name:"Account",verifyingContract:a.address,version:"1"},message:i,primaryType:"SignerPermissionRequest",types:{SignerPermissionRequest:Xt}});return{req:i,signature:r}}async function aa(t){var i;const{target:e,permissions:a}=t;return{approvedTargets:a.approvedTargets==="*"?[Z]:a.approvedTargets,isAdmin:0,nativeTokenLimitPerTransaction:q(((i=a.nativeTokenLimitPerTransaction)==null?void 0:i.toString())||"0"),permissionEndTimestamp:U(a.permissionEndTimestamp||W()),permissionStartTimestamp:U(a.permissionStartTimestamp||new Date(0)),reqValidityEndTimestamp:U(W()),reqValidityStartTimestamp:0n,signer:e,uid:await Gt()}}function ea(t){const{contract:e,sessionKeyAddress:a,account:i,permissions:r}=t;return Jt({async asyncParams(){const{req:n,signature:c}=await ta({account:i,contract:e,req:await aa({permissions:r,target:a})});return{req:n,signature:c}},contract:e})}async function sa(t){var c;const{accountContract:e,sessionKeyAddress:a,newPermissions:i}=t;if(!await Y(e))return!0;const n=await jt({contract:e,signer:a});return!!(n.endTimestamp&&n.endTimestamp<Math.floor(Date.now()/1e3)||!na(n.approvedTargets,i.approvedTargets)||q(((c=i.nativeTokenLimitPerTransaction)==null?void 0:c.toString())??"0")>n.nativeTokenLimitPerTransaction)}function na(t,e){return e==="*"&&t.length===1&&t[0]===Z?!0:e!=="*"?e.map(a=>a.toLowerCase()).every(a=>t.map(i=>i.toLowerCase()).includes(a)):!1}const ra=2n**96n-1n,ia="0x35567e1a",ca=[{name:"sender",type:"address"},{name:"key",type:"uint192"}],oa=[{name:"nonce",type:"uint256"}];async function da(t){return C({contract:t.contract,method:[ia,ca,oa],params:[t.sender,t.key]})}const pa="0xa6193531",ma=[{components:[{name:"sender",type:"address"},{name:"nonce",type:"uint256"},{name:"initCode",type:"bytes"},{name:"callData",type:"bytes"},{name:"callGasLimit",type:"uint256"},{name:"verificationGasLimit",type:"uint256"},{name:"preVerificationGas",type:"uint256"},{name:"maxFeePerGas",type:"uint256"},{name:"maxPriorityFeePerGas",type:"uint256"},{name:"paymasterAndData",type:"bytes"},{name:"signature",type:"bytes"}],name:"userOp",type:"tuple"}],ua=[{type:"bytes32"}];async function ya(t){return C({contract:t.contract,method:[pa,ma,ua],params:[t.userOp]})}const la="0x22cdde4c",fa=[{components:[{name:"sender",type:"address"},{name:"nonce",type:"uint256"},{name:"initCode",type:"bytes"},{name:"callData",type:"bytes"},{name:"accountGasLimits",type:"bytes32"},{name:"preVerificationGas",type:"uint256"},{name:"gasFees",type:"bytes32"},{name:"paymasterAndData",type:"bytes"},{name:"signature",type:"bytes"}],name:"userOp",type:"tuple"}],wa=[{type:"bytes32"}];async function Aa(t){return C({contract:t.contract,method:[la,fa,wa],params:[t.userOp]})}function ga(t){return t.factory?E([t.factory,t.factoryData||"0x"]):"0x"}function Ga(t){return E([O(x(BigInt(t.verificationGasLimit)),{size:16}),O(x(BigInt(t.callGasLimit)),{size:16})])}function ha(t){return E([O(x(BigInt(t.maxPriorityFeePerGas)),{size:16}),O(x(BigInt(t.maxFeePerGas)),{size:16})])}function Ta(t){return t.paymaster?E([t.paymaster,O(x(BigInt(t.paymasterVerificationGasLimit||0)),{size:16}),O(x(BigInt(t.paymasterPostOpGasLimit||0)),{size:16}),t.paymasterData||"0x"]):"0x"}const Pa=t=>({accountGasLimits:Ga(t),callData:t.callData,gasFees:ha(t),initCode:ga(t),nonce:BigInt(t.nonce),paymasterAndData:Ta(t),preVerificationGas:BigInt(t.preVerificationGas),sender:t.sender,signature:t.signature});async function I(t){var A;const{userOp:e,paymasterOverride:a,client:i,chain:r,entrypointAddress:n}=t;if(a)return a(e);const c={"Content-Type":"application/json"},s=n??S,o=X(r),d={id:1,jsonrpc:"2.0",method:"pm_sponsorUserOperation",params:[St(e),s]},l=await dt(i)(o,{body:z(d),headers:c,method:"POST"});if(!l.ok){const g=await l.text()||l.statusText;throw new Error(`Paymaster error: ${l.status} - ${g}`)}const m=await l.json();if(m.result)return typeof m.result=="string"?{paymasterAndData:m.result}:(m.result.reason&&console.warn(`Paymaster policy rejected this transaction with reason: ${m.result.reason} ${m.result.policyId?`(policyId: ${m.result.policyId})`:""}`),{callGasLimit:m.result.callGasLimit?_(m.result.callGasLimit):void 0,paymaster:m.result.paymaster,paymasterAndData:m.result.paymasterAndData,paymasterData:m.result.paymasterData,paymasterPostOpGasLimit:m.result.paymasterPostOpGasLimit?_(m.result.paymasterPostOpGasLimit):void 0,paymasterVerificationGasLimit:m.result.paymasterVerificationGasLimit?_(m.result.paymasterVerificationGasLimit):void 0,preVerificationGas:m.result.preVerificationGas?_(m.result.preVerificationGas):void 0,verificationGasLimit:m.result.verificationGasLimit?_(m.result.verificationGasLimit):void 0});const w=((A=m.error)==null?void 0:A.message)||m.error||l.statusText||"unknown error";throw new Error(`Paymaster error from ${o}: ${w}`)}const H=new Set,M=t=>`${t.chain.id}:${t.address}`,et=t=>{H.add(M(t))},st=t=>{H.delete(M(t))},nt=t=>H.has(M(t));async function va(t){const e=t.timeoutMs||12e4,a=t.intervalMs||1e3,i=Date.now()+e;for(;Date.now()<i;){const r=await Ct(t);if(r)return r;await new Promise(n=>setTimeout(n,a))}throw new Error(`Timeout waiting for userOp to be mined on chain ${t.chain.id} with UserOp hash: ${t.userOpHash}`)}async function La(t){var P;const{transaction:e,accountContract:a,factoryContract:i,adminAddress:r,overrides:n,sponsorGas:c,waitForDeployment:s=!0,isDeployedOverride:o}=t,d=e.chain,y=e.client,l={bundlerUrl:n==null?void 0:n.bundlerUrl,chain:d,client:y,entrypointAddress:n==null?void 0:n.entrypointAddress},m=k(((P=t.overrides)==null?void 0:P.entrypointAddress)||S),[w,A,g,G,f]=await Promise.all([typeof o=="boolean"?o:Y(a).then(h=>h||nt(a)),$(e),D(e.gas),Da({bundlerOptions:l,chain:d,client:y,executeTx:e}),Ea({accountContract:a,chain:d,client:y,entrypointAddress:n==null?void 0:n.entrypointAddress,getNonceOverride:n==null?void 0:n.getAccountNonce})]),{maxFeePerGas:p,maxPriorityFeePerGas:u}=G;return m==="v0.7"?Oa({accountContract:a,adminAddress:r,bundlerOptions:l,callData:A,callGasLimit:g,factoryContract:i,isDeployed:w,maxFeePerGas:p,maxPriorityFeePerGas:u,nonce:f,overrides:n,sponsorGas:c,waitForDeployment:s}):xa({accountContract:a,adminAddress:r,bundlerOptions:l,callData:A,callGasLimit:g,factoryContract:i,isDeployed:w,maxFeePerGas:p,maxPriorityFeePerGas:u,nonce:f,overrides:n,sponsorGas:c,waitForDeployment:s})}async function Da(t){const{executeTx:e,bundlerOptions:a,chain:i,client:r}=t;let{maxFeePerGas:n,maxPriorityFeePerGas:c}=e;const s=(a==null?void 0:a.bundlerUrl)??X(i);if(pt(s)){const o=await _t({options:a});n=o.maxFeePerGas,c=o.maxPriorityFeePerGas}else{const[o,d]=await Promise.all([D(n),D(c)]);if(o&&d)n=o,c=d;else{const y=await ut(r,i);c=d??y.maxPriorityFeePerGas??0n,n=o??y.maxFeePerGas??0n}}return{maxFeePerGas:n,maxPriorityFeePerGas:c}}async function Oa(t){const{bundlerOptions:e,isDeployed:a,factoryContract:i,accountContract:r,adminAddress:n,sponsorGas:c,overrides:s,nonce:o,callData:d,callGasLimit:y,maxFeePerGas:l,maxPriorityFeePerGas:m,waitForDeployment:w}=t,{chain:A,client:g}=e;let G,f;a?(f="0x",w&&await rt(r)):(G=i.address,f=await $(Q({accountSalt:s==null?void 0:s.accountSalt,adminAddress:n,createAccountOverride:s==null?void 0:s.createAccount,factoryContract:i})),w&&et(r));const p={callData:d,callGasLimit:y??0n,factory:G,factoryData:f,maxFeePerGas:l,maxPriorityFeePerGas:m,nonce:o,paymaster:void 0,paymasterData:"0x",paymasterPostOpGasLimit:0n,paymasterVerificationGasLimit:0n,preVerificationGas:0n,sender:r.address,signature:tt,verificationGasLimit:0n};if(c){const u=await I({chain:A,client:g,entrypointAddress:s==null?void 0:s.entrypointAddress,paymasterOverride:s==null?void 0:s.paymaster,userOp:p});if(u.paymaster&&u.paymasterData&&(p.paymaster=u.paymaster,p.paymasterData=u.paymasterData),u.callGasLimit&&u.verificationGasLimit&&u.preVerificationGas&&u.paymasterPostOpGasLimit&&u.paymasterVerificationGasLimit)p.callGasLimit=u.callGasLimit,p.verificationGasLimit=u.verificationGasLimit,p.preVerificationGas=u.preVerificationGas,p.paymasterPostOpGasLimit=u.paymasterPostOpGasLimit,p.paymasterVerificationGasLimit=u.paymasterVerificationGasLimit;else{const P=s!=null&&s.tokenPaymaster?{[s.tokenPaymaster.tokenAddress]:{stateDiff:{[wt(At([{type:"address"},{type:"uint256"}],[r.address,s.tokenPaymaster.balanceStorageSlot]))]:gt(ht,{size:32})}}}:void 0,h=await b({options:e,userOp:p},P);p.callGasLimit=h.callGasLimit,p.verificationGasLimit=h.verificationGasLimit,p.preVerificationGas=h.preVerificationGas,p.paymasterPostOpGasLimit=s!=null&&s.tokenPaymaster?500000n:h.paymasterPostOpGasLimit||0n,p.paymasterVerificationGasLimit=h.paymasterVerificationGasLimit||0n;const v=await I({chain:A,client:g,entrypointAddress:s==null?void 0:s.entrypointAddress,paymasterOverride:s==null?void 0:s.paymaster,userOp:p});v.paymaster&&v.paymasterData&&(p.paymaster=v.paymaster,p.paymasterData=v.paymasterData)}}else{const u=await b({options:e,userOp:p});p.callGasLimit=u.callGasLimit,p.verificationGasLimit=u.verificationGasLimit,p.preVerificationGas=u.preVerificationGas,p.paymasterPostOpGasLimit=u.paymasterPostOpGasLimit||0n,p.paymasterVerificationGasLimit=u.paymasterVerificationGasLimit||0n}return{...p,signature:"0x"}}async function xa(t){const{bundlerOptions:e,isDeployed:a,factoryContract:i,accountContract:r,adminAddress:n,sponsorGas:c,overrides:s,nonce:o,callData:d,callGasLimit:y,maxFeePerGas:l,maxPriorityFeePerGas:m,waitForDeployment:w}=t,{chain:A,client:g}=e;let G;a?(G="0x",w&&await rt(r)):(G=await _a({accountSalt:s==null?void 0:s.accountSalt,adminAddress:n,createAccountOverride:s==null?void 0:s.createAccount,factoryContract:i}),w&&et(r));const f={callData:d,callGasLimit:y??0n,initCode:G,maxFeePerGas:l,maxPriorityFeePerGas:m,nonce:o,paymasterAndData:"0x",preVerificationGas:0n,sender:r.address,signature:tt,verificationGasLimit:0n};if(c){const p=await I({chain:A,client:g,entrypointAddress:s==null?void 0:s.entrypointAddress,paymasterOverride:s==null?void 0:s.paymaster,userOp:f}),u="paymasterAndData"in p?p.paymasterAndData:"0x";if(u&&u!=="0x"&&(f.paymasterAndData=u),p.callGasLimit&&p.verificationGasLimit&&p.preVerificationGas)f.callGasLimit=p.callGasLimit,f.verificationGasLimit=p.verificationGasLimit,f.preVerificationGas=p.preVerificationGas;else{const P=await b({options:e,userOp:f});if(f.callGasLimit=P.callGasLimit,f.verificationGasLimit=P.verificationGasLimit,f.preVerificationGas=P.preVerificationGas,u&&u!=="0x"){const h=await I({chain:A,client:g,entrypointAddress:s==null?void 0:s.entrypointAddress,paymasterOverride:s==null?void 0:s.paymaster,userOp:f}),v="paymasterAndData"in h?h.paymasterAndData:"0x";v&&v!=="0x"&&(f.paymasterAndData=v)}}}else{const p=await b({options:e,userOp:f});f.callGasLimit=p.callGasLimit,f.verificationGasLimit=p.verificationGasLimit,f.preVerificationGas=p.preVerificationGas}return{...f,signature:"0x"}}async function Sa(t){const{userOp:e,chain:a,entrypointAddress:i,adminAccount:r}=t,n=await Ca({chain:a,client:t.client,entrypointAddress:i,userOp:e});if(r.signMessage){const c=await r.signMessage({chainId:a.id,message:{raw:ft(n)},originalMessage:z(e)});return{...e,signature:c}}throw new Error("signMessage not implemented in signingAccount")}async function Ca(t){const{userOp:e,chain:a,entrypointAddress:i}=t,r=k(i||S);let n;if(r==="v0.7"){const c=Pa(e);n=await Aa({contract:L({address:i||at,chain:a,client:t.client}),userOp:c})}else n=await ya({contract:L({address:i||S,chain:a,client:t.client}),userOp:e});return n}async function _a(t){const{factoryContract:e,adminAddress:a,accountSalt:i,createAccountOverride:r}=t,n=Q({accountSalt:i,adminAddress:a,createAccountOverride:r,factoryContract:e});return E([e.address,await $(n)])}async function Ea(t){const{accountContract:e,chain:a,client:i,entrypointAddress:r,getNonceOverride:n}=t;return n?n(e):await da({contract:L({address:r||S,chain:a,client:i}),key:Et(),sender:e.address})}async function rt(t){const e=Date.now();for(;nt(t);){if(Date.now()-e>6e4)throw st(t),new Error("Account deployment is taking too long (over 1 minute). Please try again.");await new Promise(a=>setTimeout(a,500))}}const it=new WeakMap,R=new WeakMap;async function ye(t,e){var m,w,A,g,G,f,p;const{personalAccount:a,client:i}=t;if(!a)throw new Error("No personal account provided for smart account connection");const r=e,n=e.chain,c="gasless"in r?r.gasless:r.sponsorGas;if(await yt(n))return[ba({chain:n,connectionOptions:t,creationOptions:e,sponsorGas:c}),n];if(r.factoryAddress&&!((m=r.overrides)!=null&&m.entrypointAddress)){const u=await Ia(r.factoryAddress,i,n);u&&(r.overrides={...r.overrides,entrypointAddress:u})}(w=r.overrides)!=null&&w.tokenPaymaster&&!((A=r.overrides)!=null&&A.entrypointAddress)&&(r.overrides={...r.overrides,entrypointAddress:at});const s=r.factoryAddress??Ft((g=r.overrides)==null?void 0:g.entrypointAddress),o=L({address:s,chain:n,client:i}),d=await Tt({accountAddress:(G=r.overrides)==null?void 0:G.accountAddress,accountSalt:(f=r.overrides)==null?void 0:f.accountSalt,adminAddress:a.address,factoryContract:o,predictAddressOverride:(p=r.overrides)==null?void 0:p.predictAddress}).then(u=>u).catch(u=>{throw new Error(`Failed to get account address with factory contract ${o.address} on chain ID ${n.id}: ${(u==null?void 0:u.message)||"unknown error"}`,{cause:u})}),y=L({address:d,chain:n,client:i}),l=await Fa({...r,accountContract:y,chain:n,client:i,factoryContract:o,personalAccount:a,sponsorGas:c});if(it.set(a,l),R.set(l,a),r.sessionKey&&await sa({accountContract:y,newPermissions:r.sessionKey.permissions,sessionKeyAddress:r.sessionKey.address})){const u=ea({account:a,contract:y,permissions:r.sessionKey.permissions,sessionKeyAddress:r.sessionKey.address});await Ot({account:l,transaction:u})}return[l,n]}async function le(t){const e=R.get(t);e&&(it.delete(e),R.delete(t))}async function Fa(t){var n,c;const e=(n=t.overrides)==null?void 0:n.tokenPaymaster;if(e&&k(((c=t.overrides)==null?void 0:c.entrypointAddress)||S)!=="v0.7")throw new Error("Token paymaster is only supported for entrypoint version v0.7");const a=t.sponsorGas;let i=t.accountContract;const r={address:K(i.address),async onTransactionRequested(s){var o,d;return(d=(o=t.personalAccount).onTransactionRequested)==null?void 0:d.call(o,s)},async sendBatchTransaction(s){var m,w;const o=Pt({accountContract:i,executeBatchOverride:(m=t.overrides)==null?void 0:m.executeBatch,transactions:s});if(s.length===0)throw new Error("No transactions to send");const d=s[0];if(!d)throw new Error("No transactions to send");const y=F(d.chainId),l=await N({executeTx:o,options:{...t,accountContract:i,chain:y}});return V({chainId:y.id,client:t.client,contractAddress:((w=s[0])==null?void 0:w.to)??void 0,transactionHash:l.transactionHash,walletAddress:t.accountContract.address,walletType:"smart"}),l},async sendTransaction(s){var m,w,A;let o;if(e){await Va({accountContract:i,erc20Paymaster:e,options:t});const g=async()=>({paymaster:e.paymasterAddress,paymasterData:"0x"});o=((m=t.overrides)==null?void 0:m.paymaster)||g}else o=(w=t.overrides)==null?void 0:w.paymaster;s.chainId!==i.chain.id&&(i=L({address:r.address,chain:F(s.chainId),client:t.client}));const d=J({accountContract:i,executeOverride:(A=t.overrides)==null?void 0:A.execute,transaction:s}),y=F(s.chainId),l=await N({executeTx:d,options:{...t,accountContract:i,chain:y,overrides:{...t.overrides,paymaster:o}}});return V({chainId:y.id,client:t.client,contractAddress:s.to??void 0,transactionHash:l.transactionHash,walletAddress:t.accountContract.address,walletType:"smart"}),l},async signMessage({message:s}){var d;if((d=t.overrides)!=null&&d.signMessage)return t.overrides.signMessage({accountContract:i,adminAccount:t.personalAccount,factoryContract:t.factoryContract,message:s});const{smartAccountSignMessage:o}=await T(async()=>{const{smartAccountSignMessage:y}=await import("./signing-ClZDdyWr.js").then(l=>l.Q);return{smartAccountSignMessage:y}},__vite__mapDeps([6,5,1,2,3,7,8,9,10,11,12,13,14]));return o({accountContract:i,factoryContract:t.factoryContract,message:s,options:t})},async signTypedData(s){var d;if((d=t.overrides)!=null&&d.signTypedData)return t.overrides.signTypedData({accountContract:i,adminAccount:t.personalAccount,factoryContract:t.factoryContract,typedData:s});const{smartAccountSignTypedData:o}=await T(async()=>{const{smartAccountSignTypedData:y}=await import("./signing-ClZDdyWr.js").then(l=>l.Q);return{smartAccountSignTypedData:y}},__vite__mapDeps([6,5,1,2,3,7,8,9,10,11,12,13,14]));return o({accountContract:i,factoryContract:t.factoryContract,options:t,typedData:s})},sendCalls:async s=>{const{inAppWalletSendCalls:o}=await T(async()=>{const{inAppWalletSendCalls:w}=await import("./in-app-wallet-calls-N7orXys6.js");return{inAppWalletSendCalls:w}},__vite__mapDeps([15,16,17,5,1,2,3,12,7,8,9,10,11,13,18,19,20,21,22])),d=s.calls[0];if(!d)throw new Error("No calls to send");const y=d.client,l=d.chain||s.chain,m=await o({account:r,calls:s.calls,chain:l});return{chain:l,client:y,id:m}},getCallsStatus:async s=>{const{inAppWalletGetCallsStatus:o}=await T(async()=>{const{inAppWalletGetCallsStatus:d}=await import("./in-app-wallet-calls-N7orXys6.js");return{inAppWalletGetCallsStatus:d}},__vite__mapDeps([15,16,17,5,1,2,3,12,7,8,9,10,11,13,18,19,20,21,22]));return o(s)},getCallsStatusRaw:async s=>{const{inAppWalletGetCallsStatusRaw:o}=await T(async()=>{const{inAppWalletGetCallsStatusRaw:d}=await import("./in-app-wallet-calls-N7orXys6.js");return{inAppWalletGetCallsStatusRaw:d}},__vite__mapDeps([15,16,17,5,1,2,3,12,7,8,9,10,11,13,18,19,20,21,22]));return o(s)},getCapabilities:async s=>({[s.chainId??1]:{atomic:{status:"supported"},paymasterService:{supported:a??!1}}})};return r}async function Va(t){var y;const{accountContract:e,erc20Paymaster:a,options:i}=t,r=a.tokenAddress,n=L({address:r,chain:e.chain,client:e.client});if(await $t({contract:n,owner:e.address,spender:a.paymasterAddress})>0n)return;const s=qt({amountWei:ra-1n,contract:n,spender:a.paymasterAddress}),o=await lt({from:e.address,transaction:s}),d=J({accountContract:e,executeOverride:(y=i.overrides)==null?void 0:y.execute,transaction:o});await N({executeTx:d,options:{...i,overrides:{...i.overrides,tokenPaymaster:void 0}}})}function ba(t){const{creationOptions:e,connectionOptions:a,chain:i}=t,r={address:K(a.personalAccount.address),async onTransactionRequested(n){var c,s;return(s=(c=a.personalAccount).onTransactionRequested)==null?void 0:s.call(c,n)},async sendTransaction(n){var y,l,m,w;const c={chain:F(n.chainId),client:a.client,data:n.data,eip712:n.eip712,to:n.to??void 0,value:n.value??0n};let s=await Lt({account:r,transaction:c});if(t.sponsorGas&&!s.paymaster){const A=await Vt({options:{bundlerUrl:(y=e.overrides)==null?void 0:y.bundlerUrl,chain:i,client:a.client,entrypointAddress:(l=e.overrides)==null?void 0:l.entrypointAddress},transaction:s});s={...s,...A}}const o=await Dt({account:r,chainId:i.id,eip712Transaction:s}),d=await bt({options:{bundlerUrl:(m=e.overrides)==null?void 0:m.bundlerUrl,chain:i,client:a.client,entrypointAddress:(w=e.overrides)==null?void 0:w.entrypointAddress},signedTransaction:o,transaction:s});return V({chainId:i.id,client:a.client,contractAddress:n.to??void 0,transactionHash:d.transactionHash,walletAddress:r.address,walletType:"smart"}),{chain:i,client:a.client,transactionHash:d.transactionHash}},async signMessage({message:n}){return a.personalAccount.signMessage({message:n})},async signTypedData(n){const c=xt(n);return a.personalAccount.signTypedData(c)},sendCalls:async n=>{const{inAppWalletSendCalls:c}=await T(async()=>{const{inAppWalletSendCalls:l}=await import("./in-app-wallet-calls-N7orXys6.js");return{inAppWalletSendCalls:l}},__vite__mapDeps([15,16,17,5,1,2,3,12,7,8,9,10,11,13,18,19,20,21,22])),s=n.calls[0];if(!s)throw new Error("No calls to send");const o=s.client,d=s.chain||n.chain,y=await c({account:r,calls:n.calls,chain:d});return{chain:d,client:o,id:y}},getCallsStatus:async n=>{const{inAppWalletGetCallsStatus:c}=await T(async()=>{const{inAppWalletGetCallsStatus:s}=await import("./in-app-wallet-calls-N7orXys6.js");return{inAppWalletGetCallsStatus:s}},__vite__mapDeps([15,16,17,5,1,2,3,12,7,8,9,10,11,13,18,19,20,21,22]));return c(n)},getCallsStatusRaw:async n=>{const{inAppWalletGetCallsStatusRaw:c}=await T(async()=>{const{inAppWalletGetCallsStatusRaw:s}=await import("./in-app-wallet-calls-N7orXys6.js");return{inAppWalletGetCallsStatusRaw:s}},__vite__mapDeps([15,16,17,5,1,2,3,12,7,8,9,10,11,13,18,19,20,21,22]));return c(n)},getCapabilities:async n=>({[n.chainId??1]:{atomic:{status:"unsupported"},paymasterService:{supported:t.sponsorGas??!1}}})};return r}async function N(t){var i,r,n;const{executeTx:e,options:a}=t;try{const c=await La({accountContract:a.accountContract,adminAddress:a.personalAccount.address,factoryContract:a.factoryContract,overrides:a.overrides,sponsorGas:a.sponsorGas,transaction:e}),s=await Sa({adminAccount:a.personalAccount,chain:a.chain,client:a.client,entrypointAddress:(i=a.overrides)==null?void 0:i.entrypointAddress,userOp:c}),o={bundlerUrl:(r=a.overrides)==null?void 0:r.bundlerUrl,chain:a.chain,client:a.client,entrypointAddress:(n=a.overrides)==null?void 0:n.entrypointAddress},d=await It({options:o,userOp:s}),y=await va({...o,userOpHash:d});return V({chainId:a.chain.id,client:a.client,contractAddress:await D(e.to??void 0),transactionHash:y.transactionHash,walletAddress:a.accountContract.address,walletType:"smart"}),{chain:a.chain,client:a.client,transactionHash:y.transactionHash}}catch(c){throw ct(c)&&ot({chainId:a.chain.id,client:a.client,contractAddress:await D(e.to??void 0),error:c,transactionValue:await D(e.value),walletAddress:a.accountContract.address}),c}finally{st(a.accountContract)}}async function Ia(t,e,a){const i=L({address:t,chain:a,client:e});try{return await C({contract:i,method:"function entrypoint() public view returns (address)"})}catch{return}}export{ye as connectSmartAccount,le as disconnectSmartAccount,Ia as getEntrypointFromFactory,Ae as isSmartWallet};
3
- //# sourceMappingURL=index-BYVFrjrb.js.map
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["_assets/decimals-kDkfNEul.js","_assets/utils-esa8OSIj.js","_assets/sentry-CoTjVJfh.js","_assets/react-D7nfuWd6.js","_assets/decimals-DwpYjDat.js","_assets/prepare-contract-call-BIfjyTYu.js","_assets/signing-CcTSfbp4.js","_assets/index-Dl4hrRT2.js","_assets/dcl-schemas-CfMjyfZx.js","_assets/ethers-Dv96XuWO.js","_assets/intl-AKLEHPeO.js","_assets/index-CKGO8NWe.css","_assets/to-serializable-transaction-68n-Uy9K.js","_assets/transaction-xKWAbiZz.js","_assets/get-bytecode-Cu090exg.js","_assets/in-app-wallet-calls-CbJr8ixd.js","_assets/wait-for-tx-receipt-CrqjqK2x.js","_assets/transactionReceipt-VPc5kVRc.js","_assets/sleep-fBr8OToA.js","_assets/send-batch-transaction-DSUMPrdj.js","_assets/send-transaction-cYAHoDgz.js","_assets/execute-DBY_k70_.js","_assets/detectExtension-DDD8D4gU.js"])))=>i.map(i=>d[i]);
2
+ import{_ as T}from"./index-Dl4hrRT2.js";import{t as V,i as ct,a as ot}from"./transaction-xKWAbiZz.js";import{e as dt,i as pt,a as F}from"./utils-esa8OSIj.js";import{f as mt,h as q,e as $,i as ut,g as L,j as yt,t as lt}from"./to-serializable-transaction-68n-Uy9K.js";import{r as C,a5 as B,w as E,S as O,G as x,s as z,h as _,l as D,H as ft,k as wt,e as At,T as gt,g as K}from"./prepare-contract-call-BIfjyTYu.js";import{o as j,r as Gt}from"./execute-DBY_k70_.js";import{Z,a as Y,p as Q,m as ht,b as Tt,d as J,e as Pt}from"./signing-CcTSfbp4.js";import{t as vt,p as Lt,s as Dt}from"./send-eip712-transaction-IUeUwhLU.js";import{s as Ot}from"./send-transaction-cYAHoDgz.js";import{p as xt}from"./linkAccount-DDcAG0nl.js";import{g as X,E as S,h as St,a as k,b as Ct,c as _t,d as Et,e as b,D as tt,f as at,i as Ft,j as Vt,k as bt,l as It}from"./index-De_zfcOO.js";import{M as Ae}from"./wallets-ChmX60CP.js";import"./react-D7nfuWd6.js";import"./dcl-schemas-CfMjyfZx.js";import"./sentry-CoTjVJfh.js";import"./ethers-Dv96XuWO.js";import"./intl-AKLEHPeO.js";import"./detectExtension-DDD8D4gU.js";import"./get-bytecode-Cu090exg.js";import"./eth_sendRawTransaction-DYAsy3sS.js";import"./sha256-XcxD-HDJ.js";import"./ethereum-BrsO-PtF.js";import"./types-BeDU9GfL.js";import"./store-80QKZ2rN.js";import"./hashTypedData-BAid2zcm.js";import"./index-X2m4MLDN.js";import"./events-BI-hNCIc.js";import"./index-DipEvVT9.js";import"./index-DEMKJ56b.js";import"./index-OpYIGLSa.js";import"./index-CtAQFnxk.js";import"./index-C94H9_tC.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new t.Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="db7ce298-d6f7-4224-ac2a-15a4fb21c77d",t._sentryDebugIdIdentifier="sentry-dbid-db7ce298-d6f7-4224-ac2a-15a4fb21c77d")}catch{}})();const Ut="0xdd62ed3e",Rt=[{name:"owner",type:"address"},{name:"spender",type:"address"}],Nt=[{type:"uint256"}];async function $t(t){return C({contract:t.contract,method:[Ut,Rt,Nt],params:[t.owner,t.spender]})}const kt="0x095ea7b3",Ht=[{name:"spender",type:"address"},{name:"value",type:"uint256"}],Mt=[{type:"bool"}];function Wt(t){const e=j(async()=>"asyncParams"in t?await t.asyncParams():t);return B({accessList:async()=>{var a;return(a=(await e()).overrides)==null?void 0:a.accessList},authorizationList:async()=>{var a;return(a=(await e()).overrides)==null?void 0:a.authorizationList},contract:t.contract,erc20Value:async()=>{var a;return(a=(await e()).overrides)==null?void 0:a.erc20Value},extraGas:async()=>{var a;return(a=(await e()).overrides)==null?void 0:a.extraGas},gas:async()=>{var a;return(a=(await e()).overrides)==null?void 0:a.gas},gasPrice:async()=>{var a;return(a=(await e()).overrides)==null?void 0:a.gasPrice},maxFeePerGas:async()=>{var a;return(a=(await e()).overrides)==null?void 0:a.maxFeePerGas},maxPriorityFeePerGas:async()=>{var a;return(a=(await e()).overrides)==null?void 0:a.maxPriorityFeePerGas},method:[kt,Ht,Mt],nonce:async()=>{var a;return(a=(await e()).overrides)==null?void 0:a.nonce},params:async()=>{const a=await e();return[a.spender,a.value]},value:async()=>{var a;return(a=(await e()).overrides)==null?void 0:a.value}})}function qt(t){return Wt({asyncParams:async()=>{let e;if("amount"in t){const{decimals:a}=await T(async()=>{const{decimals:r}=await import("./decimals-kDkfNEul.js");return{decimals:r}},__vite__mapDeps([0,1,2,3,4,5])),i=await a(t).catch(()=>18);e=mt(t.amount.toString(),i)}else e=t.amountWei;return{overrides:{erc20Value:{amountWei:e,tokenAddress:t.contract.address},...t.overrides},spender:t.spender,value:e}},contract:t.contract})}const Bt="0xf15d424e",zt=[{name:"signer",type:"address"}],Kt=[{components:[{name:"signer",type:"address"},{name:"approvedTargets",type:"address[]"},{name:"nativeTokenLimitPerTransaction",type:"uint256"},{name:"startTimestamp",type:"uint128"},{name:"endTimestamp",type:"uint128"}],name:"permissions",type:"tuple"}];async function jt(t){return C({contract:t.contract,method:[Bt,zt,Kt],params:[t.signer]})}const Zt="0x5892e236",Yt=[{components:[{name:"signer",type:"address"},{name:"isAdmin",type:"uint8"},{name:"approvedTargets",type:"address[]"},{name:"nativeTokenLimitPerTransaction",type:"uint256"},{name:"permissionStartTimestamp",type:"uint128"},{name:"permissionEndTimestamp",type:"uint128"},{name:"reqValidityStartTimestamp",type:"uint128"},{name:"reqValidityEndTimestamp",type:"uint128"},{name:"uid",type:"bytes32"}],name:"req",type:"tuple"},{name:"signature",type:"bytes"}],Qt=[];function Jt(t){const e=j(async()=>"asyncParams"in t?await t.asyncParams():t);return B({accessList:async()=>{var a;return(a=(await e()).overrides)==null?void 0:a.accessList},authorizationList:async()=>{var a;return(a=(await e()).overrides)==null?void 0:a.authorizationList},contract:t.contract,erc20Value:async()=>{var a;return(a=(await e()).overrides)==null?void 0:a.erc20Value},extraGas:async()=>{var a;return(a=(await e()).overrides)==null?void 0:a.extraGas},gas:async()=>{var a;return(a=(await e()).overrides)==null?void 0:a.gas},gasPrice:async()=>{var a;return(a=(await e()).overrides)==null?void 0:a.gasPrice},maxFeePerGas:async()=>{var a;return(a=(await e()).overrides)==null?void 0:a.maxFeePerGas},maxPriorityFeePerGas:async()=>{var a;return(a=(await e()).overrides)==null?void 0:a.maxPriorityFeePerGas},method:[Zt,Yt,Qt],nonce:async()=>{var a;return(a=(await e()).overrides)==null?void 0:a.nonce},params:async()=>{const a=await e();return[a.req,a.signature]},value:async()=>{var a;return(a=(await e()).overrides)==null?void 0:a.value}})}function W(){return new Date(Date.now()+1e3*60*60*24*365*10)}function U(t){return vt(Math.floor(t.getTime()/1e3))}const Xt=[{name:"signer",type:"address"},{name:"isAdmin",type:"uint8"},{name:"approvedTargets",type:"address[]"},{name:"nativeTokenLimitPerTransaction",type:"uint256"},{name:"permissionStartTimestamp",type:"uint128"},{name:"permissionEndTimestamp",type:"uint128"},{name:"reqValidityStartTimestamp",type:"uint128"},{name:"reqValidityEndTimestamp",type:"uint128"},{name:"uid",type:"bytes32"}];async function ta(t){const{account:e,contract:a,req:i}=t,r=await e.signTypedData({domain:{chainId:a.chain.id,name:"Account",verifyingContract:a.address,version:"1"},message:i,primaryType:"SignerPermissionRequest",types:{SignerPermissionRequest:Xt}});return{req:i,signature:r}}async function aa(t){var i;const{target:e,permissions:a}=t;return{approvedTargets:a.approvedTargets==="*"?[Z]:a.approvedTargets,isAdmin:0,nativeTokenLimitPerTransaction:q(((i=a.nativeTokenLimitPerTransaction)==null?void 0:i.toString())||"0"),permissionEndTimestamp:U(a.permissionEndTimestamp||W()),permissionStartTimestamp:U(a.permissionStartTimestamp||new Date(0)),reqValidityEndTimestamp:U(W()),reqValidityStartTimestamp:0n,signer:e,uid:await Gt()}}function ea(t){const{contract:e,sessionKeyAddress:a,account:i,permissions:r}=t;return Jt({async asyncParams(){const{req:n,signature:c}=await ta({account:i,contract:e,req:await aa({permissions:r,target:a})});return{req:n,signature:c}},contract:e})}async function sa(t){var c;const{accountContract:e,sessionKeyAddress:a,newPermissions:i}=t;if(!await Y(e))return!0;const n=await jt({contract:e,signer:a});return!!(n.endTimestamp&&n.endTimestamp<Math.floor(Date.now()/1e3)||!na(n.approvedTargets,i.approvedTargets)||q(((c=i.nativeTokenLimitPerTransaction)==null?void 0:c.toString())??"0")>n.nativeTokenLimitPerTransaction)}function na(t,e){return e==="*"&&t.length===1&&t[0]===Z?!0:e!=="*"?e.map(a=>a.toLowerCase()).every(a=>t.map(i=>i.toLowerCase()).includes(a)):!1}const ra=2n**96n-1n,ia="0x35567e1a",ca=[{name:"sender",type:"address"},{name:"key",type:"uint192"}],oa=[{name:"nonce",type:"uint256"}];async function da(t){return C({contract:t.contract,method:[ia,ca,oa],params:[t.sender,t.key]})}const pa="0xa6193531",ma=[{components:[{name:"sender",type:"address"},{name:"nonce",type:"uint256"},{name:"initCode",type:"bytes"},{name:"callData",type:"bytes"},{name:"callGasLimit",type:"uint256"},{name:"verificationGasLimit",type:"uint256"},{name:"preVerificationGas",type:"uint256"},{name:"maxFeePerGas",type:"uint256"},{name:"maxPriorityFeePerGas",type:"uint256"},{name:"paymasterAndData",type:"bytes"},{name:"signature",type:"bytes"}],name:"userOp",type:"tuple"}],ua=[{type:"bytes32"}];async function ya(t){return C({contract:t.contract,method:[pa,ma,ua],params:[t.userOp]})}const la="0x22cdde4c",fa=[{components:[{name:"sender",type:"address"},{name:"nonce",type:"uint256"},{name:"initCode",type:"bytes"},{name:"callData",type:"bytes"},{name:"accountGasLimits",type:"bytes32"},{name:"preVerificationGas",type:"uint256"},{name:"gasFees",type:"bytes32"},{name:"paymasterAndData",type:"bytes"},{name:"signature",type:"bytes"}],name:"userOp",type:"tuple"}],wa=[{type:"bytes32"}];async function Aa(t){return C({contract:t.contract,method:[la,fa,wa],params:[t.userOp]})}function ga(t){return t.factory?E([t.factory,t.factoryData||"0x"]):"0x"}function Ga(t){return E([O(x(BigInt(t.verificationGasLimit)),{size:16}),O(x(BigInt(t.callGasLimit)),{size:16})])}function ha(t){return E([O(x(BigInt(t.maxPriorityFeePerGas)),{size:16}),O(x(BigInt(t.maxFeePerGas)),{size:16})])}function Ta(t){return t.paymaster?E([t.paymaster,O(x(BigInt(t.paymasterVerificationGasLimit||0)),{size:16}),O(x(BigInt(t.paymasterPostOpGasLimit||0)),{size:16}),t.paymasterData||"0x"]):"0x"}const Pa=t=>({accountGasLimits:Ga(t),callData:t.callData,gasFees:ha(t),initCode:ga(t),nonce:BigInt(t.nonce),paymasterAndData:Ta(t),preVerificationGas:BigInt(t.preVerificationGas),sender:t.sender,signature:t.signature});async function I(t){var A;const{userOp:e,paymasterOverride:a,client:i,chain:r,entrypointAddress:n}=t;if(a)return a(e);const c={"Content-Type":"application/json"},s=n??S,o=X(r),d={id:1,jsonrpc:"2.0",method:"pm_sponsorUserOperation",params:[St(e),s]},l=await dt(i)(o,{body:z(d),headers:c,method:"POST"});if(!l.ok){const g=await l.text()||l.statusText;throw new Error(`Paymaster error: ${l.status} - ${g}`)}const m=await l.json();if(m.result)return typeof m.result=="string"?{paymasterAndData:m.result}:(m.result.reason&&console.warn(`Paymaster policy rejected this transaction with reason: ${m.result.reason} ${m.result.policyId?`(policyId: ${m.result.policyId})`:""}`),{callGasLimit:m.result.callGasLimit?_(m.result.callGasLimit):void 0,paymaster:m.result.paymaster,paymasterAndData:m.result.paymasterAndData,paymasterData:m.result.paymasterData,paymasterPostOpGasLimit:m.result.paymasterPostOpGasLimit?_(m.result.paymasterPostOpGasLimit):void 0,paymasterVerificationGasLimit:m.result.paymasterVerificationGasLimit?_(m.result.paymasterVerificationGasLimit):void 0,preVerificationGas:m.result.preVerificationGas?_(m.result.preVerificationGas):void 0,verificationGasLimit:m.result.verificationGasLimit?_(m.result.verificationGasLimit):void 0});const w=((A=m.error)==null?void 0:A.message)||m.error||l.statusText||"unknown error";throw new Error(`Paymaster error from ${o}: ${w}`)}const H=new Set,M=t=>`${t.chain.id}:${t.address}`,et=t=>{H.add(M(t))},st=t=>{H.delete(M(t))},nt=t=>H.has(M(t));async function va(t){const e=t.timeoutMs||12e4,a=t.intervalMs||1e3,i=Date.now()+e;for(;Date.now()<i;){const r=await Ct(t);if(r)return r;await new Promise(n=>setTimeout(n,a))}throw new Error(`Timeout waiting for userOp to be mined on chain ${t.chain.id} with UserOp hash: ${t.userOpHash}`)}async function La(t){var P;const{transaction:e,accountContract:a,factoryContract:i,adminAddress:r,overrides:n,sponsorGas:c,waitForDeployment:s=!0,isDeployedOverride:o}=t,d=e.chain,y=e.client,l={bundlerUrl:n==null?void 0:n.bundlerUrl,chain:d,client:y,entrypointAddress:n==null?void 0:n.entrypointAddress},m=k(((P=t.overrides)==null?void 0:P.entrypointAddress)||S),[w,A,g,G,f]=await Promise.all([typeof o=="boolean"?o:Y(a).then(h=>h||nt(a)),$(e),D(e.gas),Da({bundlerOptions:l,chain:d,client:y,executeTx:e}),Ea({accountContract:a,chain:d,client:y,entrypointAddress:n==null?void 0:n.entrypointAddress,getNonceOverride:n==null?void 0:n.getAccountNonce})]),{maxFeePerGas:p,maxPriorityFeePerGas:u}=G;return m==="v0.7"?Oa({accountContract:a,adminAddress:r,bundlerOptions:l,callData:A,callGasLimit:g,factoryContract:i,isDeployed:w,maxFeePerGas:p,maxPriorityFeePerGas:u,nonce:f,overrides:n,sponsorGas:c,waitForDeployment:s}):xa({accountContract:a,adminAddress:r,bundlerOptions:l,callData:A,callGasLimit:g,factoryContract:i,isDeployed:w,maxFeePerGas:p,maxPriorityFeePerGas:u,nonce:f,overrides:n,sponsorGas:c,waitForDeployment:s})}async function Da(t){const{executeTx:e,bundlerOptions:a,chain:i,client:r}=t;let{maxFeePerGas:n,maxPriorityFeePerGas:c}=e;const s=(a==null?void 0:a.bundlerUrl)??X(i);if(pt(s)){const o=await _t({options:a});n=o.maxFeePerGas,c=o.maxPriorityFeePerGas}else{const[o,d]=await Promise.all([D(n),D(c)]);if(o&&d)n=o,c=d;else{const y=await ut(r,i);c=d??y.maxPriorityFeePerGas??0n,n=o??y.maxFeePerGas??0n}}return{maxFeePerGas:n,maxPriorityFeePerGas:c}}async function Oa(t){const{bundlerOptions:e,isDeployed:a,factoryContract:i,accountContract:r,adminAddress:n,sponsorGas:c,overrides:s,nonce:o,callData:d,callGasLimit:y,maxFeePerGas:l,maxPriorityFeePerGas:m,waitForDeployment:w}=t,{chain:A,client:g}=e;let G,f;a?(f="0x",w&&await rt(r)):(G=i.address,f=await $(Q({accountSalt:s==null?void 0:s.accountSalt,adminAddress:n,createAccountOverride:s==null?void 0:s.createAccount,factoryContract:i})),w&&et(r));const p={callData:d,callGasLimit:y??0n,factory:G,factoryData:f,maxFeePerGas:l,maxPriorityFeePerGas:m,nonce:o,paymaster:void 0,paymasterData:"0x",paymasterPostOpGasLimit:0n,paymasterVerificationGasLimit:0n,preVerificationGas:0n,sender:r.address,signature:tt,verificationGasLimit:0n};if(c){const u=await I({chain:A,client:g,entrypointAddress:s==null?void 0:s.entrypointAddress,paymasterOverride:s==null?void 0:s.paymaster,userOp:p});if(u.paymaster&&u.paymasterData&&(p.paymaster=u.paymaster,p.paymasterData=u.paymasterData),u.callGasLimit&&u.verificationGasLimit&&u.preVerificationGas&&u.paymasterPostOpGasLimit&&u.paymasterVerificationGasLimit)p.callGasLimit=u.callGasLimit,p.verificationGasLimit=u.verificationGasLimit,p.preVerificationGas=u.preVerificationGas,p.paymasterPostOpGasLimit=u.paymasterPostOpGasLimit,p.paymasterVerificationGasLimit=u.paymasterVerificationGasLimit;else{const P=s!=null&&s.tokenPaymaster?{[s.tokenPaymaster.tokenAddress]:{stateDiff:{[wt(At([{type:"address"},{type:"uint256"}],[r.address,s.tokenPaymaster.balanceStorageSlot]))]:gt(ht,{size:32})}}}:void 0,h=await b({options:e,userOp:p},P);p.callGasLimit=h.callGasLimit,p.verificationGasLimit=h.verificationGasLimit,p.preVerificationGas=h.preVerificationGas,p.paymasterPostOpGasLimit=s!=null&&s.tokenPaymaster?500000n:h.paymasterPostOpGasLimit||0n,p.paymasterVerificationGasLimit=h.paymasterVerificationGasLimit||0n;const v=await I({chain:A,client:g,entrypointAddress:s==null?void 0:s.entrypointAddress,paymasterOverride:s==null?void 0:s.paymaster,userOp:p});v.paymaster&&v.paymasterData&&(p.paymaster=v.paymaster,p.paymasterData=v.paymasterData)}}else{const u=await b({options:e,userOp:p});p.callGasLimit=u.callGasLimit,p.verificationGasLimit=u.verificationGasLimit,p.preVerificationGas=u.preVerificationGas,p.paymasterPostOpGasLimit=u.paymasterPostOpGasLimit||0n,p.paymasterVerificationGasLimit=u.paymasterVerificationGasLimit||0n}return{...p,signature:"0x"}}async function xa(t){const{bundlerOptions:e,isDeployed:a,factoryContract:i,accountContract:r,adminAddress:n,sponsorGas:c,overrides:s,nonce:o,callData:d,callGasLimit:y,maxFeePerGas:l,maxPriorityFeePerGas:m,waitForDeployment:w}=t,{chain:A,client:g}=e;let G;a?(G="0x",w&&await rt(r)):(G=await _a({accountSalt:s==null?void 0:s.accountSalt,adminAddress:n,createAccountOverride:s==null?void 0:s.createAccount,factoryContract:i}),w&&et(r));const f={callData:d,callGasLimit:y??0n,initCode:G,maxFeePerGas:l,maxPriorityFeePerGas:m,nonce:o,paymasterAndData:"0x",preVerificationGas:0n,sender:r.address,signature:tt,verificationGasLimit:0n};if(c){const p=await I({chain:A,client:g,entrypointAddress:s==null?void 0:s.entrypointAddress,paymasterOverride:s==null?void 0:s.paymaster,userOp:f}),u="paymasterAndData"in p?p.paymasterAndData:"0x";if(u&&u!=="0x"&&(f.paymasterAndData=u),p.callGasLimit&&p.verificationGasLimit&&p.preVerificationGas)f.callGasLimit=p.callGasLimit,f.verificationGasLimit=p.verificationGasLimit,f.preVerificationGas=p.preVerificationGas;else{const P=await b({options:e,userOp:f});if(f.callGasLimit=P.callGasLimit,f.verificationGasLimit=P.verificationGasLimit,f.preVerificationGas=P.preVerificationGas,u&&u!=="0x"){const h=await I({chain:A,client:g,entrypointAddress:s==null?void 0:s.entrypointAddress,paymasterOverride:s==null?void 0:s.paymaster,userOp:f}),v="paymasterAndData"in h?h.paymasterAndData:"0x";v&&v!=="0x"&&(f.paymasterAndData=v)}}}else{const p=await b({options:e,userOp:f});f.callGasLimit=p.callGasLimit,f.verificationGasLimit=p.verificationGasLimit,f.preVerificationGas=p.preVerificationGas}return{...f,signature:"0x"}}async function Sa(t){const{userOp:e,chain:a,entrypointAddress:i,adminAccount:r}=t,n=await Ca({chain:a,client:t.client,entrypointAddress:i,userOp:e});if(r.signMessage){const c=await r.signMessage({chainId:a.id,message:{raw:ft(n)},originalMessage:z(e)});return{...e,signature:c}}throw new Error("signMessage not implemented in signingAccount")}async function Ca(t){const{userOp:e,chain:a,entrypointAddress:i}=t,r=k(i||S);let n;if(r==="v0.7"){const c=Pa(e);n=await Aa({contract:L({address:i||at,chain:a,client:t.client}),userOp:c})}else n=await ya({contract:L({address:i||S,chain:a,client:t.client}),userOp:e});return n}async function _a(t){const{factoryContract:e,adminAddress:a,accountSalt:i,createAccountOverride:r}=t,n=Q({accountSalt:i,adminAddress:a,createAccountOverride:r,factoryContract:e});return E([e.address,await $(n)])}async function Ea(t){const{accountContract:e,chain:a,client:i,entrypointAddress:r,getNonceOverride:n}=t;return n?n(e):await da({contract:L({address:r||S,chain:a,client:i}),key:Et(),sender:e.address})}async function rt(t){const e=Date.now();for(;nt(t);){if(Date.now()-e>6e4)throw st(t),new Error("Account deployment is taking too long (over 1 minute). Please try again.");await new Promise(a=>setTimeout(a,500))}}const it=new WeakMap,R=new WeakMap;async function ye(t,e){var m,w,A,g,G,f,p;const{personalAccount:a,client:i}=t;if(!a)throw new Error("No personal account provided for smart account connection");const r=e,n=e.chain,c="gasless"in r?r.gasless:r.sponsorGas;if(await yt(n))return[ba({chain:n,connectionOptions:t,creationOptions:e,sponsorGas:c}),n];if(r.factoryAddress&&!((m=r.overrides)!=null&&m.entrypointAddress)){const u=await Ia(r.factoryAddress,i,n);u&&(r.overrides={...r.overrides,entrypointAddress:u})}(w=r.overrides)!=null&&w.tokenPaymaster&&!((A=r.overrides)!=null&&A.entrypointAddress)&&(r.overrides={...r.overrides,entrypointAddress:at});const s=r.factoryAddress??Ft((g=r.overrides)==null?void 0:g.entrypointAddress),o=L({address:s,chain:n,client:i}),d=await Tt({accountAddress:(G=r.overrides)==null?void 0:G.accountAddress,accountSalt:(f=r.overrides)==null?void 0:f.accountSalt,adminAddress:a.address,factoryContract:o,predictAddressOverride:(p=r.overrides)==null?void 0:p.predictAddress}).then(u=>u).catch(u=>{throw new Error(`Failed to get account address with factory contract ${o.address} on chain ID ${n.id}: ${(u==null?void 0:u.message)||"unknown error"}`,{cause:u})}),y=L({address:d,chain:n,client:i}),l=await Fa({...r,accountContract:y,chain:n,client:i,factoryContract:o,personalAccount:a,sponsorGas:c});if(it.set(a,l),R.set(l,a),r.sessionKey&&await sa({accountContract:y,newPermissions:r.sessionKey.permissions,sessionKeyAddress:r.sessionKey.address})){const u=ea({account:a,contract:y,permissions:r.sessionKey.permissions,sessionKeyAddress:r.sessionKey.address});await Ot({account:l,transaction:u})}return[l,n]}async function le(t){const e=R.get(t);e&&(it.delete(e),R.delete(t))}async function Fa(t){var n,c;const e=(n=t.overrides)==null?void 0:n.tokenPaymaster;if(e&&k(((c=t.overrides)==null?void 0:c.entrypointAddress)||S)!=="v0.7")throw new Error("Token paymaster is only supported for entrypoint version v0.7");const a=t.sponsorGas;let i=t.accountContract;const r={address:K(i.address),async onTransactionRequested(s){var o,d;return(d=(o=t.personalAccount).onTransactionRequested)==null?void 0:d.call(o,s)},async sendBatchTransaction(s){var m,w;const o=Pt({accountContract:i,executeBatchOverride:(m=t.overrides)==null?void 0:m.executeBatch,transactions:s});if(s.length===0)throw new Error("No transactions to send");const d=s[0];if(!d)throw new Error("No transactions to send");const y=F(d.chainId),l=await N({executeTx:o,options:{...t,accountContract:i,chain:y}});return V({chainId:y.id,client:t.client,contractAddress:((w=s[0])==null?void 0:w.to)??void 0,transactionHash:l.transactionHash,walletAddress:t.accountContract.address,walletType:"smart"}),l},async sendTransaction(s){var m,w,A;let o;if(e){await Va({accountContract:i,erc20Paymaster:e,options:t});const g=async()=>({paymaster:e.paymasterAddress,paymasterData:"0x"});o=((m=t.overrides)==null?void 0:m.paymaster)||g}else o=(w=t.overrides)==null?void 0:w.paymaster;s.chainId!==i.chain.id&&(i=L({address:r.address,chain:F(s.chainId),client:t.client}));const d=J({accountContract:i,executeOverride:(A=t.overrides)==null?void 0:A.execute,transaction:s}),y=F(s.chainId),l=await N({executeTx:d,options:{...t,accountContract:i,chain:y,overrides:{...t.overrides,paymaster:o}}});return V({chainId:y.id,client:t.client,contractAddress:s.to??void 0,transactionHash:l.transactionHash,walletAddress:t.accountContract.address,walletType:"smart"}),l},async signMessage({message:s}){var d;if((d=t.overrides)!=null&&d.signMessage)return t.overrides.signMessage({accountContract:i,adminAccount:t.personalAccount,factoryContract:t.factoryContract,message:s});const{smartAccountSignMessage:o}=await T(async()=>{const{smartAccountSignMessage:y}=await import("./signing-CcTSfbp4.js").then(l=>l.Q);return{smartAccountSignMessage:y}},__vite__mapDeps([6,5,1,2,3,7,8,9,10,11,12,13,14]));return o({accountContract:i,factoryContract:t.factoryContract,message:s,options:t})},async signTypedData(s){var d;if((d=t.overrides)!=null&&d.signTypedData)return t.overrides.signTypedData({accountContract:i,adminAccount:t.personalAccount,factoryContract:t.factoryContract,typedData:s});const{smartAccountSignTypedData:o}=await T(async()=>{const{smartAccountSignTypedData:y}=await import("./signing-CcTSfbp4.js").then(l=>l.Q);return{smartAccountSignTypedData:y}},__vite__mapDeps([6,5,1,2,3,7,8,9,10,11,12,13,14]));return o({accountContract:i,factoryContract:t.factoryContract,options:t,typedData:s})},sendCalls:async s=>{const{inAppWalletSendCalls:o}=await T(async()=>{const{inAppWalletSendCalls:w}=await import("./in-app-wallet-calls-CbJr8ixd.js");return{inAppWalletSendCalls:w}},__vite__mapDeps([15,16,17,5,1,2,3,12,7,8,9,10,11,13,18,19,20,21,22])),d=s.calls[0];if(!d)throw new Error("No calls to send");const y=d.client,l=d.chain||s.chain,m=await o({account:r,calls:s.calls,chain:l});return{chain:l,client:y,id:m}},getCallsStatus:async s=>{const{inAppWalletGetCallsStatus:o}=await T(async()=>{const{inAppWalletGetCallsStatus:d}=await import("./in-app-wallet-calls-CbJr8ixd.js");return{inAppWalletGetCallsStatus:d}},__vite__mapDeps([15,16,17,5,1,2,3,12,7,8,9,10,11,13,18,19,20,21,22]));return o(s)},getCallsStatusRaw:async s=>{const{inAppWalletGetCallsStatusRaw:o}=await T(async()=>{const{inAppWalletGetCallsStatusRaw:d}=await import("./in-app-wallet-calls-CbJr8ixd.js");return{inAppWalletGetCallsStatusRaw:d}},__vite__mapDeps([15,16,17,5,1,2,3,12,7,8,9,10,11,13,18,19,20,21,22]));return o(s)},getCapabilities:async s=>({[s.chainId??1]:{atomic:{status:"supported"},paymasterService:{supported:a??!1}}})};return r}async function Va(t){var y;const{accountContract:e,erc20Paymaster:a,options:i}=t,r=a.tokenAddress,n=L({address:r,chain:e.chain,client:e.client});if(await $t({contract:n,owner:e.address,spender:a.paymasterAddress})>0n)return;const s=qt({amountWei:ra-1n,contract:n,spender:a.paymasterAddress}),o=await lt({from:e.address,transaction:s}),d=J({accountContract:e,executeOverride:(y=i.overrides)==null?void 0:y.execute,transaction:o});await N({executeTx:d,options:{...i,overrides:{...i.overrides,tokenPaymaster:void 0}}})}function ba(t){const{creationOptions:e,connectionOptions:a,chain:i}=t,r={address:K(a.personalAccount.address),async onTransactionRequested(n){var c,s;return(s=(c=a.personalAccount).onTransactionRequested)==null?void 0:s.call(c,n)},async sendTransaction(n){var y,l,m,w;const c={chain:F(n.chainId),client:a.client,data:n.data,eip712:n.eip712,to:n.to??void 0,value:n.value??0n};let s=await Lt({account:r,transaction:c});if(t.sponsorGas&&!s.paymaster){const A=await Vt({options:{bundlerUrl:(y=e.overrides)==null?void 0:y.bundlerUrl,chain:i,client:a.client,entrypointAddress:(l=e.overrides)==null?void 0:l.entrypointAddress},transaction:s});s={...s,...A}}const o=await Dt({account:r,chainId:i.id,eip712Transaction:s}),d=await bt({options:{bundlerUrl:(m=e.overrides)==null?void 0:m.bundlerUrl,chain:i,client:a.client,entrypointAddress:(w=e.overrides)==null?void 0:w.entrypointAddress},signedTransaction:o,transaction:s});return V({chainId:i.id,client:a.client,contractAddress:n.to??void 0,transactionHash:d.transactionHash,walletAddress:r.address,walletType:"smart"}),{chain:i,client:a.client,transactionHash:d.transactionHash}},async signMessage({message:n}){return a.personalAccount.signMessage({message:n})},async signTypedData(n){const c=xt(n);return a.personalAccount.signTypedData(c)},sendCalls:async n=>{const{inAppWalletSendCalls:c}=await T(async()=>{const{inAppWalletSendCalls:l}=await import("./in-app-wallet-calls-CbJr8ixd.js");return{inAppWalletSendCalls:l}},__vite__mapDeps([15,16,17,5,1,2,3,12,7,8,9,10,11,13,18,19,20,21,22])),s=n.calls[0];if(!s)throw new Error("No calls to send");const o=s.client,d=s.chain||n.chain,y=await c({account:r,calls:n.calls,chain:d});return{chain:d,client:o,id:y}},getCallsStatus:async n=>{const{inAppWalletGetCallsStatus:c}=await T(async()=>{const{inAppWalletGetCallsStatus:s}=await import("./in-app-wallet-calls-CbJr8ixd.js");return{inAppWalletGetCallsStatus:s}},__vite__mapDeps([15,16,17,5,1,2,3,12,7,8,9,10,11,13,18,19,20,21,22]));return c(n)},getCallsStatusRaw:async n=>{const{inAppWalletGetCallsStatusRaw:c}=await T(async()=>{const{inAppWalletGetCallsStatusRaw:s}=await import("./in-app-wallet-calls-CbJr8ixd.js");return{inAppWalletGetCallsStatusRaw:s}},__vite__mapDeps([15,16,17,5,1,2,3,12,7,8,9,10,11,13,18,19,20,21,22]));return c(n)},getCapabilities:async n=>({[n.chainId??1]:{atomic:{status:"unsupported"},paymasterService:{supported:t.sponsorGas??!1}}})};return r}async function N(t){var i,r,n;const{executeTx:e,options:a}=t;try{const c=await La({accountContract:a.accountContract,adminAddress:a.personalAccount.address,factoryContract:a.factoryContract,overrides:a.overrides,sponsorGas:a.sponsorGas,transaction:e}),s=await Sa({adminAccount:a.personalAccount,chain:a.chain,client:a.client,entrypointAddress:(i=a.overrides)==null?void 0:i.entrypointAddress,userOp:c}),o={bundlerUrl:(r=a.overrides)==null?void 0:r.bundlerUrl,chain:a.chain,client:a.client,entrypointAddress:(n=a.overrides)==null?void 0:n.entrypointAddress},d=await It({options:o,userOp:s}),y=await va({...o,userOpHash:d});return V({chainId:a.chain.id,client:a.client,contractAddress:await D(e.to??void 0),transactionHash:y.transactionHash,walletAddress:a.accountContract.address,walletType:"smart"}),{chain:a.chain,client:a.client,transactionHash:y.transactionHash}}catch(c){throw ct(c)&&ot({chainId:a.chain.id,client:a.client,contractAddress:await D(e.to??void 0),error:c,transactionValue:await D(e.value),walletAddress:a.accountContract.address}),c}finally{st(a.accountContract)}}async function Ia(t,e,a){const i=L({address:t,chain:a,client:e});try{return await C({contract:i,method:"function entrypoint() public view returns (address)"})}catch{return}}export{ye as connectSmartAccount,le as disconnectSmartAccount,Ia as getEntrypointFromFactory,Ae as isSmartWallet};
3
+ //# sourceMappingURL=index-C-_gSOF6.js.map
@@ -1,2 +1,2 @@
1
- import"./react-DcSw8tCD.js";import{r as d}from"./index-PD4xoiKM.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},r=new e.Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="f53d6dfa-5009-445c-8e60-f330b720e284",e._sentryDebugIdIdentifier="sentry-dbid-f53d6dfa-5009-445c-8e60-f330b720e284")}catch{}})();function i(e,r){for(var o=0;o<r.length;o++){const t=r[o];if(typeof t!="string"&&!Array.isArray(t)){for(const n in t)if(n!=="default"&&!(n in e)){const f=Object.getOwnPropertyDescriptor(t,n);f&&Object.defineProperty(e,n,f.get?f:{enumerable:!0,get:()=>t[n]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var s=d();const u=i({__proto__:null},[s]);export{u as i};
2
- //# sourceMappingURL=index-j4G49haZ.js.map
1
+ import"./react-D7nfuWd6.js";import{r as d}from"./index-D0ZGbOcV.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},r=new e.Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="f53d6dfa-5009-445c-8e60-f330b720e284",e._sentryDebugIdIdentifier="sentry-dbid-f53d6dfa-5009-445c-8e60-f330b720e284")}catch{}})();function i(e,r){for(var o=0;o<r.length;o++){const t=r[o];if(typeof t!="string"&&!Array.isArray(t)){for(const n in t)if(n!=="default"&&!(n in e)){const f=Object.getOwnPropertyDescriptor(t,n);f&&Object.defineProperty(e,n,f.get?f:{enumerable:!0,get:()=>t[n]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var s=d();const u=i({__proto__:null},[s]);export{u as i};
2
+ //# sourceMappingURL=index-C4q1d-Fd.js.map