@dcl/shop 0.1.0-30362815497.commit-35ecdbf → 0.1.0-30381444187.commit-e5b9f13

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 (232) hide show
  1. package/assets/{Activity-DYOikZol.js → Activity-B63zG8uY.js} +1 -1
  2. package/assets/{AnimatedBackground-HX4woz1t.js → AnimatedBackground-CWPdO0WE.js} +1 -1
  3. package/assets/{Assets-trIla3fm.js → Assets-WnaUem5h.js} +4 -4
  4. package/assets/{Assets.styles-BN81sFiL.js → Assets.styles-Dmhspue_.js} +1 -1
  5. package/assets/{Authorizations-9b3idzYV.js → Authorizations-CAStHHID.js} +1 -1
  6. package/assets/{Button-BeodHck0.js → Button-BDUHWtxg.js} +2 -2
  7. package/assets/{Cart-DgJ2dSls.js → Cart-D-YOXeH9.js} +1 -1
  8. package/assets/{CircularProgress-DBX8-bxs.js → CircularProgress-CpOs7g9a.js} +1 -1
  9. package/assets/{Collection-BoptXS-5.js → Collection-9Fu4_XnC.js} +1 -1
  10. package/assets/{CollectionCarousel-Dsbypx_Q.js → CollectionCarousel-CzvvuUUw.js} +3 -3
  11. package/assets/{ConstantsUtil-CqaPdSAF.js → ConstantsUtil-DTrOBzCe.js} +1 -1
  12. package/assets/{ContentClient-0BEnf6CP.js → ContentClient-jyMKirlf.js} +1 -1
  13. package/assets/{Creator-Bt88BMiE.js → Creator-3NXIbePD.js} +1 -1
  14. package/assets/{DeploymentBuilder-Df9ZJakk.js → DeploymentBuilder-j08uBP-r.js} +1 -1
  15. package/assets/{ErrorNotice-D_Z5OVFI.js → ErrorNotice-BG40E5Ff.js} +1 -1
  16. package/assets/{ExchangeController-Bh5MbgEF.js → ExchangeController-CL_gVqSw.js} +1 -1
  17. package/assets/{GetCredits-CbPLtnWt.js → GetCredits-DSK7zyc2.js} +1 -1
  18. package/assets/{HelpersUtil-Bj2jMRhF.js → HelpersUtil-BfapKZKr.js} +1 -1
  19. package/assets/ImportListings-DZs_dFSO.js +5 -0
  20. package/assets/{ItemDetail-BrPctSLd.js → ItemDetail-D49gDAwf.js} +25 -25
  21. package/assets/{LoadMore-Cp-E67xI.js → LoadMore-DTUpuDyu.js} +1 -1
  22. package/assets/MarketCheckout-CoUO17KO.js +3 -0
  23. package/assets/{MenuList-CGv6Hx3E.js → MenuList-DQbLlN7L.js} +1 -1
  24. package/assets/{MyAssets-CCRHQYFa.js → MyAssets-DJ0hwGXR.js} +16 -16
  25. package/assets/{MyFavorites-CdD42WhZ.js → MyFavorites-D3n_-d0Z.js} +1 -1
  26. package/assets/{NetworkUtil-DQZGJzap.js → NetworkUtil-C1aEwuOK.js} +1 -1
  27. package/assets/{NotFound-C-faFC1M.js → NotFound-MMFCqdKn.js} +1 -1
  28. package/assets/{NotificationsBell-BoZQHliJ.js → NotificationsBell-CNLR9ard.js} +1 -1
  29. package/assets/{StoreSettings-LxpZbXrk.js → StoreSettings-CdSK69sU.js} +1 -1
  30. package/assets/{Success-DuDT9YWk.js → Success-KKN_AjMe.js} +2 -2
  31. package/assets/{SwapController-DCarrY7n.js → SwapController-BNkoWTIp.js} +1 -1
  32. package/assets/{Tooltip-QUx-0PAd.js → Tooltip-CBuz_rc2.js} +5 -5
  33. package/assets/{TradeService-WOpUOCj5.js → TradeService-Dm_ASWCN.js} +1 -1
  34. package/assets/{W3MFrameProviderSingleton-DvD-aezH.js → W3MFrameProviderSingleton-CeSRgOaN.js} +3 -3
  35. package/assets/{WebCryptoP256-KHg0PT8E.js → WebCryptoP256-GalvwmvU.js} +1 -1
  36. package/assets/{authorizations-CUAi4uqJ.js → authorizations-Ds7LRLV0.js} +1 -1
  37. package/assets/{basic-Bf_YtlYZ.js → basic-D_j1sfcj.js} +1 -1
  38. package/assets/{biconomy-ClJBQv0E.js → biconomy-YD94PgiS.js} +1 -1
  39. package/assets/{browser-BgOlLsTO.js → browser-CTzRZpIE.js} +1 -1
  40. package/assets/browser-ponyfill-6L1OGOLN.js +1 -0
  41. package/assets/{browser-ponyfill-CMZ3i8tY.js → browser-ponyfill-CI1-rMvf.js} +1 -1
  42. package/assets/{builder-BFcfggvn.js → builder-Cc8g4-4q.js} +1 -1
  43. package/assets/{buy-Tme1UHVf.js → buy-DnSS_Kop.js} +1 -1
  44. package/assets/buy-gasless-9Zn1yAMk.js +1 -0
  45. package/assets/{cart-checkout-D8_UxnB9.js → cart-checkout-BAugwPm6.js} +1 -1
  46. package/assets/{categories-CV5P_HZd.js → categories-BI9AXlDF.js} +1 -1
  47. package/assets/{ccip-BQ1iXCKX.js → ccip-CiESIEiQ.js} +1 -1
  48. package/assets/{ccip-Dt6AwyXx.js → ccip-bHN-8eS1.js} +1 -1
  49. package/assets/{chains-Bk8fyLPj.js → chains-Znt1BTfw.js} +1 -1
  50. package/assets/collection-DE3QnCpW.js +1 -0
  51. package/assets/{common-CI-kmbOq.js → common-D9tSChDa.js} +1 -1
  52. package/assets/{controller-DINKBWbu.js → controller-B2JIau8v.js} +2 -2
  53. package/assets/{core-BAP8R3XC.js → core-3cHR7yu5.js} +4 -4
  54. package/assets/{custom--eKw29PB.js → custom-BFV9Niby.js} +1 -1
  55. package/assets/{data-capture-B1VKtAVM.js → data-capture-DTqon_Ye.js} +1 -1
  56. package/assets/decimals-Bmvg-V50.js +1 -0
  57. package/assets/{decimals-CIbX1tiW.js → decimals-C4nLn1ac.js} +1 -1
  58. package/assets/{detectExtension-DObVoAzH.js → detectExtension-BgMIFAUw.js} +1 -1
  59. package/assets/{email-BLadXpqP.js → email-CN7CWhKF.js} +1 -1
  60. package/assets/{embedded-wallet-BcP4ehoH.js → embedded-wallet-Q6nTAiGf.js} +1 -1
  61. package/assets/{emotion-styled.browser.esm-CWNG-OnU.js → emotion-styled.browser.esm-DU8E1n2c.js} +1 -1
  62. package/assets/{engine-DNXrnXBq.js → engine-DoRvgWV1.js} +1 -1
  63. package/assets/{errors-DCLH44Ym.js → errors-CG6pp58g.js} +1 -1
  64. package/assets/estimate-l1-fee-DIch6QAI.js +1 -0
  65. package/assets/eth_estimateGas-JYqF9U1i.js +1 -0
  66. package/assets/{eth_getStorageAt-y8U-lfEv.js → eth_getStorageAt--oQrWy0Q.js} +1 -1
  67. package/assets/eth_getTransactionCount-BEhAgz2O.js +1 -0
  68. package/assets/{ethereum-D72JFjbG.js → ethereum-3zUUm4Pr.js} +1 -1
  69. package/assets/{ethers-BteKixT0.js → ethers-CtVvB8eG.js} +1 -1
  70. package/assets/{execute-DZFWrHQq.js → execute-UcJesME5.js} +2 -2
  71. package/assets/{extractIPFS-BVwwoxM1.js → extractIPFS-BmriCqG8.js} +1 -1
  72. package/assets/{features-CU8DRP_5.js → features-B53I2xTg.js} +1 -1
  73. package/assets/{fetchTokenMetadata-qukyHCda.js → fetchTokenMetadata-CqYkUkwH.js} +2 -2
  74. package/assets/{fortmatic-uodRBNqF.js → fortmatic-DM_o40Lo.js} +1 -1
  75. package/assets/{get-bytecode-PhqNpgKV.js → get-bytecode-C6TlbHJu.js} +1 -1
  76. package/assets/get-ecosystem-wallet-info-HoRTPbSm.js +1 -0
  77. package/assets/{getBalance-BYFNEbEM.js → getBalance-BMDqICQz.js} +2 -2
  78. package/assets/{getInstalledModules-DS4FSkHX.js → getInstalledModules-BLQxYEXn.js} +1 -1
  79. package/assets/{getNFT-CozT-FPO.js → getNFT-6TA-E6XX.js} +2 -2
  80. package/assets/getNFT-WdF3UG1j.js +1 -0
  81. package/assets/getThemeProps-HByDG2pD.js +1 -0
  82. package/assets/{hashTypedData-COw4MIw7.js → hashTypedData-BGvyK_O1.js} +1 -1
  83. package/assets/{hashTypedData-Shyia_b5.js → hashTypedData-ug9gj3v5.js} +1 -1
  84. package/assets/import-CZZ9-DX_.js +1 -0
  85. package/assets/{in-app-h5Z8xJLI.js → in-app-BXpVuL_f.js} +1 -1
  86. package/assets/{in-app-wallet-calls-DndrTTgL.js → in-app-wallet-calls-Cw2KNfOh.js} +1 -1
  87. package/assets/{index-DLY0JksW.js → index-2RpQo6sW.js} +1 -1
  88. package/assets/{index-CFFpa2x2.js → index-2jouHGho.js} +1 -1
  89. package/assets/{index-D6_4iqAn.js → index-8wx1oJ_F.js} +1 -1
  90. package/assets/{index-CPpRxy1r.js → index-B0SdAX-m.js} +1 -1
  91. package/assets/{index-5TQ09pWW.js → index-B1saYH84.js} +1 -1
  92. package/assets/{index-CdccZQ_A.js → index-B2DUxMjO.js} +1 -1
  93. package/assets/{index-Cr75_Qxi.js → index-B5JNl4HC.js} +1 -1
  94. package/assets/index-B6MKNzS8.js +1 -0
  95. package/assets/{index-BrDLym1R.js → index-B7jIFcHs.js} +2 -2
  96. package/assets/{index-rsuER-il.js → index-BBeW5CPj.js} +1 -1
  97. package/assets/{index-CJIwpbLW.js → index-BDwWglvl.js} +1 -1
  98. package/assets/{index-_DXp_lqm.js → index-BEmTYNSG.js} +1 -1
  99. package/assets/{index-C3SS5bz4.js → index-BG7lZdfP.js} +1 -1
  100. package/assets/{index-D2m2DNID.js → index-BHPkQDns.js} +1 -1
  101. package/assets/{index-DLsq0JOY.js → index-BOMAmQU7.js} +1 -1
  102. package/assets/{index-CkyS_Z8N.js → index-BQe1IsNb.js} +2 -2
  103. package/assets/{index-Ded3SJr4.js → index-BTV13rXH.js} +1 -1
  104. package/assets/{index-CMYPEZgT.js → index-BZ6S4-Qy.js} +1 -1
  105. package/assets/{index-C4-ffFyv.js → index-BeeMSgi1.js} +1 -1
  106. package/assets/{index-Dj9Oj7O6.js → index-Bq0YYsbG.js} +1 -1
  107. package/assets/{index-B-IGbYzs.js → index-BqPcUFuz.js} +1 -1
  108. package/assets/{index-5PxxT_Hi.js → index-BvrGtJes.js} +1 -1
  109. package/assets/{index-Dj-l-ING.js → index-C0ACz6_-.js} +1 -1
  110. package/assets/{index-m8asLu1c.js → index-C68XxPCY.js} +1 -1
  111. package/assets/{index-Cs14qqbg.js → index-C7TVyPoU.js} +1 -1
  112. package/assets/{index-CpnWgZnn.js → index-CDEPMu43.js} +3 -3
  113. package/assets/{index-CQzsOUTd.js → index-CEcu6qlS.js} +2 -2
  114. package/assets/{index-8yB_Vwf0.js → index-CKSJdo5m.js} +1 -1
  115. package/assets/{index-D7uajZIF.js → index-CSZuXP_O.js} +1 -1
  116. package/assets/{index-CNI9E71C.js → index-CYMsLttB.js} +1 -1
  117. package/assets/{index-C97Z675S.js → index-CaR23uYb.js} +1 -1
  118. package/assets/{index-D-DRci2G.js → index-CeKksx_X.js} +1 -1
  119. package/assets/{index-TRWztzJI.js → index-CjpRvZkq.js} +1 -1
  120. package/assets/{index-nJZkl4yb.js → index-CkWJ4sTo.js} +1 -1
  121. package/assets/{index-DZwpOX3I.js → index-CmgZ4NMC.js} +1 -1
  122. package/assets/{index-B-7JnJnf.js → index-CmgoqHgW.js} +1 -1
  123. package/assets/{index-DIlrszNn.js → index-Cy8JAEGy.js} +1 -1
  124. package/assets/{index-CxnwYMKU.js → index-D0fJ7qrq.js} +1 -1
  125. package/assets/{index-isk6Q4SE.js → index-D7r-KbUN.js} +1 -1
  126. package/assets/{index-B20SJjGI.js → index-D95ZUsPD.js} +1 -1
  127. package/assets/{index-CuziAoAD.js → index-D9gz4wTG.js} +1 -1
  128. package/assets/{index-RTTHiCT2.js → index-DGIUeX6X.js} +1 -1
  129. package/assets/{index-DSv4T_PT.js → index-DaGhU6Uz.js} +1 -1
  130. package/assets/{index-CjxT1gx4.js → index-DiGXPxzb.js} +1 -1
  131. package/assets/{index-BkDBPQKr.js → index-DpXleRYB.js} +1 -1
  132. package/assets/{index-DonfdwAp.js → index-DqLpZ4oP.js} +1 -1
  133. package/assets/{index-zSTykcGn.js → index-Dr9lSl0n.js} +1 -1
  134. package/assets/{index-PrsXxs3B.js → index-ExvBrBJ4.js} +2 -2
  135. package/assets/{index-D-sEcKqr.js → index-F-n6GV2b.js} +1 -1
  136. package/assets/{index-ClGkpWPa.js → index-F_0Er667.js} +2 -2
  137. package/assets/{index-CFuHjg6U.js → index-Fe4H2sUE.js} +1 -1
  138. package/assets/{index-CnqcuprG.js → index-FvnJRnD5.js} +3 -3
  139. package/assets/{index-FJnVr04j.js → index-G_lkaThL.js} +1 -1
  140. package/assets/{index-BSeusSHl.js → index-TmxHL85j.js} +11 -11
  141. package/assets/{index-vYDwCibh.js → index-Y77Y_U0L.js} +1 -1
  142. package/assets/{index-a0GqAWet.js → index-Z5LdHVdI.js} +1 -1
  143. package/assets/{index-0df2_JuN.js → index-_hV86vSn.js} +1 -1
  144. package/assets/{index-CF84ORMp.js → index-b39aIkkP.js} +1 -1
  145. package/assets/{index-DySNHqeZ.js → index-euFuE7ah.js} +1 -1
  146. package/assets/{index-iGJTuv1I.js → index-gxa5wyAJ.js} +3 -3
  147. package/assets/{index-9s4_sQX7.js → index-m5R1RgvV.js} +1 -1
  148. package/assets/{index-DQWUa_ga.js → index-ogLhf7-S.js} +1 -1
  149. package/assets/{index-CVi7PdPM.js → index-tFmbSlHL.js} +1 -1
  150. package/assets/{index.es-CsZiAUYy.js → index.es-CmoiU8SE.js} +1 -1
  151. package/assets/{index.es-CsQSB3db.js → index.es-DD7iT23u.js} +4 -4
  152. package/assets/{index.es-Do3Y7r2K.js → index.es-DDEozdoq.js} +1 -1
  153. package/assets/{linkAccount-6BFCh5cx.js → linkAccount-BR5_llhd.js} +1 -1
  154. package/assets/{localBatchGatewayRequest-CbxoLL2f.js → localBatchGatewayRequest-BGfmM9P7.js} +1 -1
  155. package/assets/{mana-rate-BJbe6lgb.js → mana-rate-C8zn6Vfu.js} +1 -1
  156. package/assets/{native-15jVjX8Y.js → native-BSpg_u0K.js} +1 -1
  157. package/assets/{networks-Dpsd0s9-.js → networks-CBAVrHYh.js} +1 -1
  158. package/assets/{onramp-DaQ4owbO.js → onramp-dft5bcN9.js} +1 -1
  159. package/assets/{openzeppelin-6LOIfZsS.js → openzeppelin-WekOcr_Z.js} +1 -1
  160. package/assets/{ownerOf-CFrKicrH.js → ownerOf-D9UDfElT.js} +1 -1
  161. package/assets/{parseNft-DM4WbrF2.js → parseNft-DTV6iT7B.js} +2 -2
  162. package/assets/{parseSignature-DJ5B7dkH.js → parseSignature-C7rL0b_w.js} +3 -3
  163. package/assets/{parseSignature-CJECbqyJ.js → parseSignature-DmkHq9fC.js} +1 -1
  164. package/assets/{passkeys-D0bGzkR-.js → passkeys--Px7LRhh.js} +1 -1
  165. package/assets/{pay-with-exchange-DGD6NZUT.js → pay-with-exchange-CMQeyenn.js} +1 -1
  166. package/assets/{prepare-contract-call-DUVOtgM0.js → prepare-contract-call-CHrp3EL4.js} +1 -1
  167. package/assets/{qr-overlay-C57bRh8h.js → qr-overlay-Dz377WEQ.js} +3 -3
  168. package/assets/{react-B36MyIP_.js → react-BW1xvPTF.js} +1 -1
  169. package/assets/{receive-Dig0fUc0.js → receive-CpDxltQB.js} +1 -1
  170. package/assets/{resolveImplementation-D_fazAjd.js → resolveImplementation-CFOrDNcu.js} +1 -1
  171. package/assets/{rpc-ChD_4MbV.js → rpc-CjfGBkRY.js} +1 -1
  172. package/assets/{secp256k1-N6PNU3bA.js → secp256k1-C77TwNwR.js} +1 -1
  173. package/assets/{secp256k1-BClwNS_R.js → secp256k1-DSadr9B6.js} +1 -1
  174. package/assets/{secp256k1-CJyNFsNt.js → secp256k1-Dgs0hNIB.js} +1 -1
  175. package/assets/{send-DAWm3Jv2.js → send-BMIoBrdl.js} +1 -1
  176. package/assets/{send-batch-transaction-Dg_fuCoW.js → send-batch-transaction-CZ5LHGtL.js} +1 -1
  177. package/assets/{send-eip712-transaction-BfQDidJ0.js → send-eip712-transaction-DmvWUFiv.js} +2 -2
  178. package/assets/send-gasless-transaction-DxLNFATn.js +2 -0
  179. package/assets/{send-transaction-CfoJI6V6.js → send-transaction-DVEripxy.js} +2 -2
  180. package/assets/{sendMetaTransaction-DEU_Xtzf.js → sendMetaTransaction-7YAoB-pL.js} +1 -1
  181. package/assets/{sendRawTransaction-ZYIm5xd5.js → sendRawTransaction-BXyfyJLD.js} +3 -3
  182. package/assets/{sentry-gZJVwIqQ.js → sentry-BV_ZSgtd.js} +1 -1
  183. package/assets/{serializeTransaction-CzSGVGz4.js → serializeTransaction-BkF9WfrN.js} +1 -1
  184. package/assets/{session-proposal-B0DQCL8Q.js → session-proposal-DoIVwtwv.js} +1 -1
  185. package/assets/{session-request-D7PK8aVZ.js → session-request-C3QQi3mV.js} +2 -2
  186. package/assets/{sha256-DDEIajFz.js → sha256-BImz_UXn.js} +1 -1
  187. package/assets/{signing-B8VyPC00.js → signing-BInyigJZ.js} +3 -3
  188. package/assets/{socials-KoDapNpC.js → socials-HN5nwNut.js} +1 -1
  189. package/assets/{swaps-BlxZRFZr.js → swaps-Dbu6ix4y.js} +1 -1
  190. package/assets/{thirdweb-DJf-EEOv.js → thirdweb-DY9iSWOj.js} +3 -3
  191. package/assets/{to-serializable-transaction-B1lQjM9d.js → to-serializable-transaction-DFrgce7C.js} +2 -2
  192. package/assets/{totalSupply-CGOKYv2C.js → totalSupply-D4j1WOYW.js} +1 -1
  193. package/assets/{trade-encoding-DXoI04Mc.js → trade-encoding-CcRCeIpG.js} +1 -1
  194. package/assets/{transaction-C_LVUDbA.js → transaction-BOS1fhp8.js} +1 -1
  195. package/assets/{transactionReceipt-kDTd5JL7.js → transactionReceipt-5vjrQVvz.js} +1 -1
  196. package/assets/{transactions-CehNE2A8.js → transactions-DLwOfx7v.js} +1 -1
  197. package/assets/useCreditPacks-Dft_m4Vq.js +1 -0
  198. package/assets/{useInfiniteGrid-dBP53DpO.js → useInfiniteGrid-pff93KiW.js} +1 -1
  199. package/assets/useManaRate-C5mRxzeC.js +1 -0
  200. package/assets/useSecondarySales-BRJGIRwF.js +1 -0
  201. package/assets/{useStore-Duh496VH.js → useStore-CV_90SkB.js} +2 -2
  202. package/assets/useTheme-cgcgN0ze.js +1 -0
  203. package/assets/{utils-swuB5ZX6.js → utils-B7rjkjB1.js} +1 -1
  204. package/assets/{verifyHash-PdDaV25N.js → verifyHash-BJDJ-yWB.js} +1 -1
  205. package/assets/{w3m-modal-Bt6VN9EP.js → w3m-modal-C_4vaAKJ.js} +1 -1
  206. package/assets/{w3m-modal-CywSQTgA.js → w3m-modal-Cs01ZX0b.js} +1 -1
  207. package/assets/{wait-for-tx-receipt-Cw3p4OOt.js → wait-for-tx-receipt-CYy9IgHg.js} +1 -1
  208. package/assets/{wallets-BqGvfAVQ.js → wallets-D4ZcCkX2.js} +5 -5
  209. package/assets/{web-connector-CwUgIh1D.js → web-connector-p1b6xGQr.js} +3 -3
  210. package/assets/{writeContract-BCO99ptR.js → writeContract-Cl5bVpey.js} +1 -1
  211. package/assets/{zora-sepolia-BltAzWAs.js → zora-sepolia-CVS3owSi.js} +1 -1
  212. package/assets/{zoraTestnet-81flFamw.js → zoraTestnet-Dg220Oc3.js} +1 -1
  213. package/index.html +11 -11
  214. package/package.json +2 -2
  215. package/assets/ImportListings-Dza88Ul5.js +0 -5
  216. package/assets/MarketCheckout-ClTJqeTN.js +0 -3
  217. package/assets/browser-ponyfill-lfpnveOA.js +0 -1
  218. package/assets/buy-gasless-BdW9VEKq.js +0 -1
  219. package/assets/collection-CHWj8iQW.js +0 -1
  220. package/assets/decimals-CS6j__sw.js +0 -1
  221. package/assets/estimate-l1-fee-qYVfWmvo.js +0 -1
  222. package/assets/eth_estimateGas-D2jEM0E-.js +0 -1
  223. package/assets/eth_getTransactionCount-CME439qZ.js +0 -1
  224. package/assets/get-ecosystem-wallet-info-CE-anDO0.js +0 -1
  225. package/assets/getNFT-2J_9TTUS.js +0 -1
  226. package/assets/getThemeProps-G_RkUSWj.js +0 -1
  227. package/assets/import-BgvjaGsU.js +0 -1
  228. package/assets/index-DpPUc0sl.js +0 -1
  229. package/assets/send-gasless-transaction-ZUIH6xn8.js +0 -2
  230. package/assets/useCreditPacks-Dg3_30xn.js +0 -1
  231. package/assets/useManaRate-CY5PbqWB.js +0 -1
  232. package/assets/useTheme-BRdkaoFm.js +0 -1
@@ -1,4 +1,4 @@
1
- import{r as l,j as c}from"./react-B36MyIP_.js";import{n as u,B as p,t as d}from"./index-BSeusSHl.js";const a=u.div`
1
+ import{r as l,j as c}from"./react-BW1xvPTF.js";import{s as u,B as p,t as d}from"./index-TmxHL85j.js";const a=u.div`
2
2
  display: flex;
3
3
  justify-content: center;
4
4
  padding: 28px 0 8px;
@@ -0,0 +1,3 @@
1
+ import{u as z,r as h,j as r}from"./react-BW1xvPTF.js";import{u as O,a as V,b as Y,t,c as y,C as b,f as S,d as H,e as w,g as $,i as D,h as J,j as p,k as M,l as q,s as X,B as Z}from"./index-TmxHL85j.js";import{m as j}from"./mana-rate-C8zn6Vfu.js";import{b as Q}from"./buy-DnSS_Kop.js";import{b as ee,w as re,S as ae,G as te}from"./buy-gasless-9Zn1yAMk.js";import{g as se}from"./authorizations-Ds7LRLV0.js";import{i as ie}from"./errors-CG6pp58g.js";import{E as ce}from"./ErrorNotice-BG40E5Ff.js";const F=X(Z)`
2
+ flex: 1;
3
+ `;function K(e){if(ie(e))return t("errors.rejected");const d=(e.message??"").toLowerCase();return d.includes("insufficient")?t("marketCheckout.error.insufficient",{currency:w.name}):d.includes("not found")||d.includes("no active listing")||d.includes("404")?t("marketCheckout.error.soldOrRemoved"):d.includes("your own listing")?t("errors.cantBuyOwn"):t("marketCheckout.error.generic")}function de(e){return{id:e.tradeId,tradeId:e.tradeId,name:e.name,creator:e.creator,contractAddress:e.contractAddress,itemId:e.itemId,category:e.category,wearableCategory:e.wearableCategory??void 0,rarity:e.rarity,network:e.network,chainId:e.chainId,thumbnail:e.thumbnail,priceCredits:0,gender:null,isSmart:!1}}function fe({listing:e,rate:d,onClose:A,onSold:R}){const{session:i}=O(),{data:n,isError:B}=V(i),o=Y(),N=z(),[g,f]=h.useState("confirm"),[C,E]=h.useState(t("marketCheckout.lockingPrice")),[U,v]=h.useState(null),[a,W]=h.useState(null),l=h.useRef(null),G=Math.ceil(j(e.manaWei,d)/10);h.useEffect(()=>{let u=!1;if(!i){f("error"),v(t("buyModal.signInToCheckout"));return}return(async()=>{try{const s=await $(e.tradeId);if(!s)throw new Error("not found");if(D(s,i.address))throw new Error("You can't buy your own listing.");const k=j(e.manaWei,d);if(!Number.isFinite(k)||k<=0)throw new Error("price unavailable");const{credit:m,maxCreditedValue:T,usdCents:P}=await J(i.identity,k,e.tradeId);if(u){y(i.identity,[m.id]).catch(()=>{});return}l.current=m.id,W({trade:s,credit:m,maxCreditedValue:T,usdCents:P,credits:Math.ceil(P/10)}),E("")}catch(s){if(u)return;console.error("[market] authorize failed",s),p(q(s)?"Shop Purchase Cancelled":"Shop Purchase Failed",{step:"authorize",error_code:M(s),value_usd:Math.round(j(e.manaWei,d))/100}),f("error"),v(K(s))}})(),()=>{u=!0,l.current&&i&&(y(i.identity,[l.current]).catch(()=>{}),l.current=null)}},[]);const x=!!a&&n!=null&&n.credits<a.credits;async function L(){if(!i||!a)return;if(x){p("Shop Buy Credits Prompted",{from:"item_checkout",credits_needed:a.credits,credits_balance:(n==null?void 0:n.credits)??0,shortfall:Math.max(0,a.credits-((n==null?void 0:n.credits)??0))}),y(i.identity,[a.credit.id]).catch(()=>{}),l.current=null,N("/credits");return}f("working"),v(null);let u=!1;try{E(t("marketCheckout.confirming"));const c={trade:a.trade,buyer:i.address,signer:i.signer,credits:[a.credit],maxCreditedValue:a.maxCreditedValue};let s;if(se())try{s=await ee(c),await re(s),u=!0}catch(m){if(m instanceof ae)u=!0;else if(m instanceof te)s=await Q(c);else throw m}else s=await Q(c);l.current=null,p("Shop Completed Purchase",{items:[{item_id:e.itemId??null,contract_address:e.contractAddress,token_id:null,price_usd:a.usdCents/100}],value_credits:a.credits,value_usd:a.usdCents/100,purchase_type:"item",is_primary:!0,payment_type:"credits",no_crypto_step:u,transaction_hash:s??null}),o.invalidateQueries({queryKey:["usd-balance"]}),o.invalidateQueries({queryKey:["detail-trade"]}),o.invalidateQueries({queryKey:["shop-item"]}),o.invalidateQueries({queryKey:["item-resales",e.contractAddress,e.itemId]}),o.invalidateQueries({queryKey:["shop-items"]}),o.invalidateQueries({queryKey:["catalog-items"]}),o.invalidateQueries({queryKey:["my-assets"]}),o.invalidateQueries({queryKey:["purchases"]});const k={items:[de(e)],txHash:s};N("/success",{state:k})}catch(c){console.error("[market] buy now failed",c),y(i.identity,[a.credit.id]).catch(()=>{}),l.current=null,p(q(c)?"Shop Purchase Cancelled":"Shop Purchase Failed",{step:"submit",error_code:M(c),value_usd:a.usdCents/100}),o.invalidateQueries({queryKey:["usd-balance"]}),v(K(c)),f("error");const s=(c.message??"").toLowerCase();(s.includes("not found")||s.includes("no active listing")||s.includes("404"))&&R()}}function I(){i&&a&&y(i.identity,[a.credit.id]).catch(()=>{}),l.current=null,A()}const _=g==="working";return r.jsxs("div",{className:"mkt-modal",role:"dialog","aria-modal":"true","aria-label":t("buyModal.dialogAria",{name:e.name}),children:[r.jsx("div",{className:"mkt-modal__scrim",onClick:_?void 0:I,"aria-hidden":!0}),r.jsxs("div",{className:"mkt-modal__card",children:[r.jsxs("div",{className:"mkt-modal__head",children:[r.jsx("div",{className:"mkt-modal__thumb",children:e.thumbnail?r.jsx("img",{src:e.thumbnail,alt:""}):null}),r.jsxs("div",{children:[r.jsx("div",{className:"mkt-modal__name",title:e.name,children:e.name||t("buyModal.itemFallback")}),r.jsx("span",{className:"chip chip--rarity",children:e.rarity})]})]}),r.jsx("div",{className:"mkt-modal__price",children:a?r.jsxs(r.Fragment,{children:[r.jsx("div",{className:"mkt-modal__price-label",children:t("marketCheckout.finalPrice")}),r.jsxs("div",{className:"mkt-modal__price-value",children:[r.jsx(b,{className:"mkt-modal__diamond"}),S(a.credits)]}),r.jsxs("div",{className:"mkt-modal__price-sub muted",children:[t("marketCheckout.lockedForPurchase")," · $",(a.usdCents/100).toFixed(2)]})]}):r.jsxs(r.Fragment,{children:[r.jsx("div",{className:"mkt-modal__price-label",children:t("marketCheckout.todaysPrice")}),r.jsxs("div",{className:"mkt-modal__price-value mkt-modal__price-value--approx",children:[r.jsx("span",{className:"mkt-modal__approx","aria-hidden":!0,children:"≈"}),r.jsx(b,{className:"mkt-modal__diamond"}),S(G)]}),r.jsx("div",{className:"mkt-modal__price-sub muted",children:C||t("marketCheckout.lockingPrice")})]})}),i?r.jsxs("div",{className:"mkt-modal__balance muted",children:[t("marketCheckout.yourBalance")," ",r.jsx(b,{className:"ccy-mark"})," ",H(n,B)]}):null,x?r.jsx("p",{className:"muted mkt-modal__note",children:t("marketCheckout.needMore",{currency:w.name})}):null,C&&g==="working"?r.jsx("p",{className:"muted mkt-modal__note",children:C}):null,r.jsx(ce,{message:U,className:"mkt-modal__note"}),r.jsxs("div",{className:"mkt-modal__actions",children:[r.jsx(F,{variant:"ghost",onClick:I,disabled:_,children:t("buyModal.cancel")}),r.jsx(F,{variant:"purple",onClick:()=>void L(),disabled:_||!a,children:_?t("marketCheckout.buying"):x?t("nav.getCredits",{currency:w.name}):t("marketCheckout.confirmPurchase")})]})]})]})}export{fe as M};
@@ -1,4 +1,4 @@
1
- import{Y,V as jt,W as Nt,X as Ke,Z as M,$ as Lt,a1 as Ye,a2 as Ze,bl as vt,b2 as mt,bg as ue,bo as nn,bp as we,bq as ht,br as je,bs as rn,bf as on}from"./index-BSeusSHl.js";import{h as De,R as Me,r as O,j as X,e as an,i as sn,g as ln}from"./react-B36MyIP_.js";import{u as un}from"./useTheme-BRdkaoFm.js";import{_ as cn,T as Wt}from"./Button-BeodHck0.js";function fn(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}var Fe={exports:{}},S={};/**
1
+ import{Y,V as jt,W as Nt,X as Ke,Z as M,$ as Lt,a1 as Ye,a2 as Ze,bl as vt,b2 as mt,bg as ue,bo as nn,bp as we,bq as ht,br as je,bs as rn,bf as on}from"./index-TmxHL85j.js";import{h as De,R as Me,r as O,j as X,e as an,i as sn,g as ln}from"./react-BW1xvPTF.js";import{u as un}from"./useTheme-cgcgN0ze.js";import{_ as cn,T as Wt}from"./Button-BDUHWtxg.js";function fn(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}var Fe={exports:{}},S={};/**
2
2
  * @license React
3
3
  * react-is.production.min.js
4
4
  *
@@ -1,4 +1,4 @@
1
- import{L as be,b as De,r as c,j as t}from"./react-B36MyIP_.js";import{n as a,K as s,I as k,h as Ue,t as r,e as He,L as re,u as O,B as We,M as D,N as Ye,c as we,O as Qe,P as Ve}from"./index-BSeusSHl.js";import{f as Ze}from"./import-BgvjaGsU.js";import{f as Je}from"./builder-BFcfggvn.js";import{R as U,C as Xe,a as et,F as tt,S as H,b as ae}from"./categories-CV5P_HZd.js";import{L as st}from"./LoadMore-Cp-E67xI.js";import{D as ie,F as le,R as ot,a as nt,b as rt,c as at,d as it,S as lt,e as ct,f as dt,g as mt,h as pt,i as ut,j as ft,k as xt,C as ht,l as yt,m as gt,n as bt,M as wt}from"./Assets.styles-BN81sFiL.js";import{u as St}from"./useInfiniteGrid-dBP53DpO.js";import{E as ce}from"./ErrorNotice-D_Z5OVFI.js";import{n as Se}from"./emotion-CSxEP8yM.js";import"./sentry-gZJVwIqQ.js";import"./dcl-schemas-BICTSpB5.js";import"./ethers-BteKixT0.js";import"./intl-CBcMB1D2.js";import"./buy-Tme1UHVf.js";import"./authorizations-CUAi4uqJ.js";import"./sendMetaTransaction-DEU_Xtzf.js";import"./trade-encoding-DXoI04Mc.js";import"./mana-rate-BJbe6lgb.js";import"./Tooltip-QUx-0PAd.js";a.div`
1
+ import{L as be,b as Ue,r as c,j as t}from"./react-BW1xvPTF.js";import{s as a,K as s,I as k,x as He,t as r,u as We,L as re,n as O,B as Ye,M as D,N as Qe,m as we,O as Ve,P as Ze}from"./index-TmxHL85j.js";import{f as Je}from"./import-CZZ9-DX_.js";import{f as Xe}from"./builder-Cc8g4-4q.js";import{R as U,C as et,a as tt,F as st,S as H,b as ae}from"./categories-BI9AXlDF.js";import{L as ot}from"./LoadMore-DTUpuDyu.js";import{D as ie,F as le,R as nt,a as rt,b as at,c as it,d as lt,S as ct,e as dt,f as mt,g as pt,h as ut,i as ft,j as xt,k as ht,C as yt,l as gt,m as bt,n as wt,M as St}from"./Assets.styles-Dmhspue_.js";import{u as jt}from"./useInfiniteGrid-pff93KiW.js";import{u as $t}from"./useSecondarySales-BRJGIRwF.js";import{E as ce}from"./ErrorNotice-BG40E5Ff.js";import{n as Se}from"./emotion-CSxEP8yM.js";import"./sentry-BV_ZSgtd.js";import"./dcl-schemas-BICTSpB5.js";import"./ethers-CtVvB8eG.js";import"./intl-CBcMB1D2.js";import"./buy-DnSS_Kop.js";import"./authorizations-Ds7LRLV0.js";import"./sendMetaTransaction-7YAoB-pL.js";import"./trade-encoding-CcRCeIpG.js";import"./mana-rate-C8zn6Vfu.js";import"./Tooltip-CBuz_rc2.js";a.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  gap: 4px;
@@ -81,7 +81,7 @@ import{L as be,b as De,r as c,j as t}from"./react-B36MyIP_.js";import{n as a,K a
81
81
  outline: 2px solid ${s.colors.accent};
82
82
  outline-offset: 2px;
83
83
  }
84
- `;const jt=a.div`
84
+ `;const kt=a.div`
85
85
  display: flex;
86
86
  align-items: center;
87
87
  gap: 8px;
@@ -95,12 +95,12 @@ import{L as be,b as De,r as c,j as t}from"./react-B36MyIP_.js";import{n as a,K a
95
95
  &:focus-within {
96
96
  border-color: ${s.colors.accent};
97
97
  }
98
- `,$t=a(k)`
98
+ `,It=a(k)`
99
99
  width: 18px;
100
100
  height: 18px;
101
101
  flex: none;
102
102
  color: ${s.colors.muted};
103
- `,kt=a.input`
103
+ `,Ct=a.input`
104
104
  flex: 1;
105
105
  min-width: 0;
106
106
  border: 0;
@@ -116,7 +116,7 @@ import{L as be,b as De,r as c,j as t}from"./react-B36MyIP_.js";import{n as a,K a
116
116
  &:focus {
117
117
  outline: 0;
118
118
  }
119
- `,It=a.button`
119
+ `,At=a.button`
120
120
  display: grid;
121
121
  place-items: center;
122
122
  width: 24px;
@@ -132,7 +132,7 @@ import{L as be,b as De,r as c,j as t}from"./react-B36MyIP_.js";import{n as a,K a
132
132
  outline: 2px solid ${s.colors.accent};
133
133
  outline-offset: 2px;
134
134
  }
135
- `,Ct=a(k)`
135
+ `,vt=a(k)`
136
136
  width: 12px;
137
137
  height: 12px;
138
138
  `,de=a.div`
@@ -180,7 +180,7 @@ import{L as be,b as De,r as c,j as t}from"./react-B36MyIP_.js";import{n as a,K a
180
180
  font-size: 14px;
181
181
  line-height: 1.5;
182
182
  color: ${s.colors.muted};
183
- `,At=a(be)`
183
+ `,Et=a(be)`
184
184
  margin-top: 12px;
185
185
  display: inline-flex;
186
186
  align-items: center;
@@ -198,7 +198,7 @@ import{L as be,b as De,r as c,j as t}from"./react-B36MyIP_.js";import{n as a,K a
198
198
  &:hover {
199
199
  background: ${s.colors.accentHover};
200
200
  }
201
- `,vt=a.section`
201
+ `,Tt=a.section`
202
202
  max-width: 520px;
203
203
  margin: 48px auto;
204
204
  text-align: center;
@@ -206,18 +206,18 @@ import{L as be,b as De,r as c,j as t}from"./react-B36MyIP_.js";import{n as a,K a
206
206
  flex-direction: column;
207
207
  gap: 16px;
208
208
  align-items: center;
209
- `,Et=a.h1`
209
+ `,Ft=a.h1`
210
210
  margin: 0;
211
211
  font-family: ${s.font.sans};
212
212
  font-weight: 700;
213
213
  font-size: 24px;
214
214
  color: ${s.colors.text};
215
- `,Tt=a.p`
215
+ `,Rt=a.p`
216
216
  margin: 0;
217
217
  font-family: ${s.font.sans};
218
218
  font-size: 15px;
219
219
  color: ${s.colors.muted};
220
- `,Ft=a(be)`
220
+ `,Ot=a(be)`
221
221
  display: flex;
222
222
  align-items: center;
223
223
  gap: 12px;
@@ -235,24 +235,24 @@ import{L as be,b as De,r as c,j as t}from"./react-B36MyIP_.js";import{n as a,K a
235
235
  outline: 2px solid ${s.colors.accent};
236
236
  outline-offset: 2px;
237
237
  }
238
- `,Rt=a.span`
238
+ `,_t=a.span`
239
239
  display: flex;
240
240
  flex-direction: column;
241
241
  flex: 1;
242
242
  min-width: 0;
243
243
  font-family: ${s.font.sans};
244
- `,Ot=a.strong`
244
+ `,Pt=a.strong`
245
245
  font-weight: 600;
246
246
  font-size: 14px;
247
247
  color: ${s.colors.text};
248
- `,_t=a.span`
248
+ `,zt=a.span`
249
249
  font-size: 12px;
250
250
  color: ${s.colors.muted};
251
- `,Pt=a.span`
251
+ `,Lt=a.span`
252
252
  flex: none;
253
253
  font-weight: 600;
254
254
  font-size: 13px;
255
255
  color: ${s.colors.accent};
256
256
  text-transform: uppercase;
257
257
  letter-spacing: 0.046em;
258
- `,zt=48,xe=[{key:"wearables",labelKey:"myAssets.sectionWearables",category:"wearable"},{key:"emotes",labelKey:"myAssets.sectionEmotes",category:"emote"},{key:"names",labelKey:"myAssets.sectionNames",category:"ens"},{key:"creations",labelKey:"myAssets.sectionCreations"}],W=[{key:"newest",label:"filterBar.sortNewest",server:"newest"},{key:"name",label:"filterBar.sortName",server:"name"},{key:"cheapest",label:"filterBar.sortCheapest",server:"cheapest"}];function he(o){return o==="wearables"||o==="emotes"}const ye={wearables:"wearable",emotes:"emote",names:"names",creations:""},Lt={wearable:"wearables",emote:"emotes",names:"names"};function Nt(o){return`${we.builderUrl}/names/${encodeURIComponent(o)}`}function ge(o,p){return{id:o.id,name:o.name,creator:"",contractAddress:o.contractAddress,itemId:o.itemId,category:o.category,rarity:o.rarity??"common",network:o.network,chainId:o.chainId,thumbnail:o.image,priceCredits:(p==null?void 0:p.priceCredits)??o.listingPrice??0,gender:null,isSmart:!1,tokenId:o.tokenId,issuedId:o.issuedId,tradeId:(p==null?void 0:p.tradeId)??o.tradeId}}function Mt(o,p,_){return{id:`${o.contractAddress}-${o.blockchainItemId}`,name:o.name,creator:_,contractAddress:o.contractAddress,itemId:o.blockchainItemId,category:o.category,rarity:o.rarity,network:"MATIC",chainId:we.chainId,thumbnail:o.thumbnail,priceCredits:p,gender:null,isSmart:!1}}function as(){var oe,ne;Ue({title:r("nav.myAssets"),noindex:!0});const{session:o,error:p,signIn:_,restore:Y}=He(),[je,$e]=De(),Q=je.get("section"),l=xe.some(e=>e.key===Q)?Q:"wearables",[m,P]=c.useState("all"),[x,z]=c.useState([]),[f,I]=c.useState(null),[S,ke]=c.useState("newest"),[C,V]=c.useState(""),[h,Ie]=c.useState(""),[A,y]=c.useState(!1),[Ce,Ae]=c.useState(!0),[ve,Ee]=c.useState(!1);c.useEffect(()=>{Y()},[Y]),c.useEffect(()=>{const e=setTimeout(()=>Ie(C.trim()),300);return()=>clearTimeout(e)},[C]),c.useEffect(()=>{if(!A)return;const e=i=>{i.key==="Escape"&&y(!1)};document.addEventListener("keydown",e);const n=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.removeEventListener("keydown",e),document.body.style.overflow=n}},[A]);const u=o==null?void 0:o.address,Te=xe.find(e=>e.key===l),v=he(l),Z=(W.find(e=>e.key===S)??W[0]).server,Fe=m==="on_sale"?r("filter.onSale"):m==="not_for_sale"?r("filter.notForSale"):"",Re=U.filter(e=>x.includes(e)).map(re).join(", ");function J(e){$e(n=>{const i=new URLSearchParams(n);return i.set("section",e),i},{replace:!0}),I(null),he(e)||z([]),y(!1)}function X(e){z(n=>n.includes(e)?n.filter(i=>i!==e):[...n,e])}function Oe(e){const n=Lt[e];n&&J(n)}const{items:j,total:_e,isLoading:L,isPlaceholderData:N,error:Pe,hasNextPage:ze,isFetchingNextPage:ee,fetchNextPage:Le}=St(["my-assets",u,l,m,x,f,h,Z],e=>Ye(u,{category:Te.category,first:zt,skip:e,search:h||void 0,rarities:v&&x.length?x:void 0,wearableCategories:l==="wearables"&&f?ae[f]:void 0,emoteCategories:l==="emotes"&&f?ae[f]:void 0,onlyOnSale:m==="on_sale"||void 0,sortBy:Z}).then(n=>({items:n.assets,total:n.total})),{enabled:!!u&&l!=="creations"}),M=c.useMemo(()=>l==="wearables"||l==="emotes"?[...new Set(j.map(e=>e.contractAddress))]:[],[j,l]),{data:E}=O({queryKey:["secondary-sale-state",M],enabled:M.length>0,queryFn:async()=>{const e=await Promise.all(M.map(async i=>[i,await Qe(i)])),n={};for(const[i,d]of e)for(const[b,w]of Object.entries(d))n[`${i}-${b}`]=w;return n}}),te=e=>E==null?void 0:E[`${e.contractAddress}-${e.tokenId}`],Ne=e=>!!te(e)||e.isOnSale,B=c.useMemo(()=>m==="not_for_sale"?j.filter(e=>!Ne(e)):j,[j,m,E]),{data:T,isLoading:K,isError:Me}=O({queryKey:["publishable-items",u],queryFn:()=>Je(u,o.identity),enabled:!!o&&l==="creations",retry:!1}),q=c.useMemo(()=>[...new Set((T??[]).map(e=>e.contractAddress))],[T]),{data:F}=O({queryKey:["collection-sale-state",u,q],enabled:q.length>0,queryFn:async()=>{const e=await Promise.all(q.map(async i=>[i,await Ve(i)])),n={};for(const[i,d]of e)for(const[b,w]of Object.entries(d))n[`${i}-${b}`]=w;return n}}),$=e=>F==null?void 0:F[`${e.contractAddress}-${e.blockchainItemId}`],G=c.useMemo(()=>{let e=T??[];if(m==="on_sale"?e=e.filter(i=>{var d;return(d=$(i))==null?void 0:d.isOnSale}):m==="not_for_sale"&&(e=e.filter(i=>{var d;return!((d=$(i))!=null&&d.isOnSale)})),h){const i=h.toLowerCase();e=e.filter(d=>d.name.toLowerCase().includes(i))}const n=[...e];return S==="name"?n.sort((i,d)=>i.name.localeCompare(d.name)):S==="cheapest"&&n.sort((i,d)=>{var b,w;return(((b=$(i))==null?void 0:b.priceCredits)??0)-(((w=$(d))==null?void 0:w.priceCredits)??0)}),n},[T,F,m,h,S]),{data:g}=O({queryKey:["importable",u],queryFn:()=>Ze(u),enabled:!!u}),se=((g==null?void 0:g.creations.length)??0)+((g==null?void 0:g.owned.length)??0);if(!o)return t.jsxs(vt,{children:[t.jsx(Et,{children:r("nav.myAssets")}),t.jsx(Tt,{children:r("myAssets.signInPrompt")}),t.jsx(We,{variant:"purple",onClick:()=>_(),children:r("storeSettings.signIn")}),t.jsx(ce,{message:p})]});const Be=l==="creations"?K:L||N,Ke=l==="creations"?G.length:m==="not_for_sale"?B.length:_e,R=[];if(m!=="all"&&R.push({key:"status",label:m==="on_sale"?r("filter.onSale"):r("filter.notForSale"),onRemove:()=>P("all")}),v)for(const e of U)x.includes(e)&&R.push({key:`rarity-${e}`,label:re(e),onRemove:()=>X(e)});if(v&&f){const e=(ne=(oe=Xe.find(n=>n.key===ye[l]))==null?void 0:oe.subs)==null?void 0:ne.find(n=>n.key===f);R.push({key:"sub",label:e?r(e.labelKey):f,onRemove:()=>I(null)})}function qe(){P("all"),z([]),I(null)}const Ge=t.jsxs(t.Fragment,{children:[t.jsx(et,{title:r("myAssets.assetsHeading"),category:ye[l],subCategory:f,onCategory:Oe,onSub:I,onCollections:()=>J("creations"),collections:l==="creations",extraLabelKey:"myAssets.sectionCreations",hideAll:!0}),v?t.jsxs(t.Fragment,{children:[t.jsx(ie,{}),t.jsx(le,{title:r("assets.rarity"),open:ve,onToggle:()=>Ee(e=>!e),summary:Re,headerTestId:"sidebar-section-toggle",children:t.jsx(ot,{"data-testid":"rarity-filter",children:U.map(e=>{const n=x.includes(e);return t.jsxs(nt,{type:"button",selected:n,"aria-pressed":n,onClick:()=>X(e),"data-testid":"rarity-filter-check",children:[t.jsx(rt,{color:s.rarities[e],children:n?t.jsx(at,{name:"check","aria-hidden":!0}):null}),t.jsx(it,{selected:n,children:e})]},e)})})})]}):null,t.jsx(ie,{}),t.jsx(le,{title:r("filter.status"),open:Ce,onToggle:()=>Ae(e=>!e),summary:Fe,children:[["all",r("filter.statusAll")],["on_sale",r("filter.onSale")],["not_for_sale",r("filter.notForSale")]].map(([e,n])=>t.jsxs(lt,{children:[t.jsx(ct,{type:"radio",name:"myassets-status",checked:m===e,onChange:()=>P(e)}),t.jsx(dt,{children:n})]},e))})]});return t.jsxs(mt,{"data-testid":"my-assets",children:[A?t.jsx(pt,{onClick:()=>y(!1),"aria-hidden":!0}):null,t.jsxs(ut,{className:A?"is-open":"","data-testid":"my-assets-sidebar",children:[t.jsxs(ft,{children:[t.jsx(xt,{children:r("assets.filters")}),t.jsx(ht,{onClick:()=>y(!1),"aria-label":r("assets.closeFilters"),children:"✕"})]}),t.jsx(yt,{children:Ge}),t.jsx(gt,{children:t.jsx(bt,{type:"button",onClick:()=>y(!1),children:r("assets.showItems")})})]}),t.jsxs(wt,{children:[t.jsxs(jt,{children:[t.jsx($t,{name:"search","aria-hidden":!0}),t.jsx(kt,{type:"search",value:C,placeholder:r("myAssets.searchPlaceholder"),"aria-label":r("myAssets.searchPlaceholder"),onChange:e=>V(e.target.value)}),C?t.jsx(It,{type:"button","aria-label":r("myAssets.clearSearch"),onClick:()=>V(""),children:t.jsx(Ct,{name:"close","aria-hidden":!0})}):null]}),se>0?t.jsxs(Ft,{to:"/import",children:[t.jsx("span",{"aria-hidden":!0,children:"📦"}),t.jsxs(Rt,{children:[t.jsx(Ot,{children:r("myAssets.importTitle")}),t.jsx(_t,{children:r("myAssets.importSub",{count:se})})]}),t.jsx(Pt,{children:r("myAssets.import")})]}):null,t.jsx(tt,{sort:S,onSort:ke,sortOptions:W,total:Ke,loading:Be,query:h,onOpenFilters:()=>y(!0),chips:R,onClearChips:qe}),(l==="creations"?Me:Pe)?t.jsx(ce,{message:r("myAssets.ownedError"),testId:"my-assets-error"}):null,l==="creations"?t.jsxs(t.Fragment,{children:[t.jsx(de,{"data-testid":"grid",children:K?t.jsx(H,{count:12}):G.map(e=>{const n=$(e);return t.jsx(D,{item:Mt(e,(n==null?void 0:n.priceCredits)??0,u??""),mode:"manage-link"},`${e.contractAddress}-${e.blockchainItemId}`)})}),!K&&G.length===0?t.jsxs(me,{children:[t.jsx(pe,{children:t.jsx(k,{name:"pen",size:30,"aria-hidden":!0})}),t.jsx(ue,{children:r("myAssets.emptyCreationsTitle")}),t.jsx(fe,{children:r("myAssets.nothingToPublish")})]}):null]}):t.jsxs(t.Fragment,{children:[t.jsxs(de,{"data-testid":"grid",children:[L||N?t.jsx(H,{count:12}):B.map(e=>l==="names"?t.jsx(D,{item:{...ge(e),category:"ens"},mode:"manage-link",manageHref:Nt(e.name)},e.id):t.jsx(D,{item:ge(e,te(e)),mode:"manage-link"},e.id)),ee?t.jsx(H,{count:6}):null]}),m!=="not_for_sale"?t.jsx(st,{hasNextPage:ze,isFetching:ee,onLoadMore:()=>void Le()}):null,!L&&!N&&B.length===0?t.jsxs(me,{children:[t.jsx(pe,{children:t.jsx(k,{name:l==="names"?"website":l==="emotes"?"emote-dance":"cat-upper",size:30,"aria-hidden":!0})}),t.jsx(ue,{children:l==="names"?r("myAssets.emptyNamesTitle"):r("myAssets.emptyOwnedTitle")}),t.jsx(fe,{children:l==="names"?r("myAssets.namesEmpty"):r("myAssets.ownedEmpty")}),l!=="names"?t.jsx(At,{to:"/assets",children:r("myAssets.emptyBrowse")}):null]}):null]})]})]})}export{as as MyAssets};
258
+ `,Nt=48,xe=[{key:"wearables",labelKey:"myAssets.sectionWearables",category:"wearable"},{key:"emotes",labelKey:"myAssets.sectionEmotes",category:"emote"},{key:"names",labelKey:"myAssets.sectionNames",category:"ens"},{key:"creations",labelKey:"myAssets.sectionCreations"}],W=[{key:"newest",label:"filterBar.sortNewest",server:"newest"},{key:"name",label:"filterBar.sortName",server:"name"},{key:"cheapest",label:"filterBar.sortCheapest",server:"cheapest"}];function he(o){return o==="wearables"||o==="emotes"}const ye={wearables:"wearable",emotes:"emote",names:"names",creations:""},Mt={wearable:"wearables",emote:"emotes",names:"names"};function Bt(o){return`${we.builderUrl}/names/${encodeURIComponent(o)}`}function ge(o,p){return{id:o.id,name:o.name,creator:"",contractAddress:o.contractAddress,itemId:o.itemId,category:o.category,rarity:o.rarity??"common",network:o.network,chainId:o.chainId,thumbnail:o.image,priceCredits:(p==null?void 0:p.priceCredits)??o.listingPrice??0,gender:null,isSmart:!1,tokenId:o.tokenId,issuedId:o.issuedId,tradeId:(p==null?void 0:p.tradeId)??o.tradeId}}function Kt(o,p,_){return{id:`${o.contractAddress}-${o.blockchainItemId}`,name:o.name,creator:_,contractAddress:o.contractAddress,itemId:o.blockchainItemId,category:o.category,rarity:o.rarity,network:"MATIC",chainId:we.chainId,thumbnail:o.thumbnail,priceCredits:p,gender:null,isSmart:!1}}function cs(){var oe,ne;He({title:r("nav.myAssets"),noindex:!0});const{session:o,error:p,signIn:_,restore:Y}=We(),[je,$e]=Ue(),Q=je.get("section"),l=xe.some(e=>e.key===Q)?Q:"wearables",[m,P]=c.useState("all"),[x,z]=c.useState([]),[f,I]=c.useState(null),[S,ke]=c.useState("newest"),[C,V]=c.useState(""),[h,Ie]=c.useState(""),[A,y]=c.useState(!1),[Ce,Ae]=c.useState(!0),[ve,Ee]=c.useState(!1);c.useEffect(()=>{Y()},[Y]),c.useEffect(()=>{const e=setTimeout(()=>Ie(C.trim()),300);return()=>clearTimeout(e)},[C]),c.useEffect(()=>{if(!A)return;const e=i=>{i.key==="Escape"&&y(!1)};document.addEventListener("keydown",e);const n=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.removeEventListener("keydown",e),document.body.style.overflow=n}},[A]);const u=o==null?void 0:o.address,Te=xe.find(e=>e.key===l),v=he(l),Z=(W.find(e=>e.key===S)??W[0]).server,Fe=m==="on_sale"?r("filter.onSale"):m==="not_for_sale"?r("filter.notForSale"):"",Re=U.filter(e=>x.includes(e)).map(re).join(", ");function J(e){$e(n=>{const i=new URLSearchParams(n);return i.set("section",e),i},{replace:!0}),I(null),he(e)||z([]),y(!1)}function X(e){z(n=>n.includes(e)?n.filter(i=>i!==e):[...n,e])}function Oe(e){const n=Mt[e];n&&J(n)}const{items:j,total:_e,isLoading:L,isPlaceholderData:N,error:Pe,hasNextPage:ze,isFetchingNextPage:ee,fetchNextPage:Le}=jt(["my-assets",u,l,m,x,f,h,Z],e=>Qe(u,{category:Te.category,first:Nt,skip:e,search:h||void 0,rarities:v&&x.length?x:void 0,wearableCategories:l==="wearables"&&f?ae[f]:void 0,emoteCategories:l==="emotes"&&f?ae[f]:void 0,onlyOnSale:m==="on_sale"||void 0,sortBy:Z}).then(n=>({items:n.assets,total:n.total})),{enabled:!!u&&l!=="creations"}),M=c.useMemo(()=>l==="wearables"||l==="emotes"?[...new Set(j.map(e=>e.contractAddress))]:[],[j,l]),{data:E}=O({queryKey:["secondary-sale-state",M],enabled:M.length>0,queryFn:async()=>{const e=await Promise.all(M.map(async i=>[i,await Ve(i)])),n={};for(const[i,d]of e)for(const[b,w]of Object.entries(d))n[`${i}-${b}`]=w;return n}}),te=e=>E==null?void 0:E[`${e.contractAddress}-${e.tokenId}`],Ne=e=>!!te(e)||e.isOnSale,B=c.useMemo(()=>m==="not_for_sale"?j.filter(e=>!Ne(e)):j,[j,m,E]),{data:T,isLoading:K,isError:Me}=O({queryKey:["publishable-items",u],queryFn:()=>Xe(u,o.identity),enabled:!!o&&l==="creations",retry:!1}),q=c.useMemo(()=>[...new Set((T??[]).map(e=>e.contractAddress))],[T]),{data:F}=O({queryKey:["collection-sale-state",u,q],enabled:q.length>0,queryFn:async()=>{const e=await Promise.all(q.map(async i=>[i,await Ze(i)])),n={};for(const[i,d]of e)for(const[b,w]of Object.entries(d))n[`${i}-${b}`]=w;return n}}),$=e=>F==null?void 0:F[`${e.contractAddress}-${e.blockchainItemId}`],G=c.useMemo(()=>{let e=T??[];if(m==="on_sale"?e=e.filter(i=>{var d;return(d=$(i))==null?void 0:d.isOnSale}):m==="not_for_sale"&&(e=e.filter(i=>{var d;return!((d=$(i))!=null&&d.isOnSale)})),h){const i=h.toLowerCase();e=e.filter(d=>d.name.toLowerCase().includes(i))}const n=[...e];return S==="name"?n.sort((i,d)=>i.name.localeCompare(d.name)):S==="cheapest"&&n.sort((i,d)=>{var b,w;return(((b=$(i))==null?void 0:b.priceCredits)??0)-(((w=$(d))==null?void 0:w.priceCredits)??0)}),n},[T,F,m,h,S]),Be=$t(),{data:g}=O({queryKey:["importable",u],queryFn:()=>Je(u),enabled:!!u}),se=((g==null?void 0:g.creations.length)??0)+(Be?(g==null?void 0:g.owned.length)??0:0);if(!o)return t.jsxs(Tt,{children:[t.jsx(Ft,{children:r("nav.myAssets")}),t.jsx(Rt,{children:r("myAssets.signInPrompt")}),t.jsx(Ye,{variant:"purple",onClick:()=>_(),children:r("storeSettings.signIn")}),t.jsx(ce,{message:p})]});const Ke=l==="creations"?K:L||N,qe=l==="creations"?G.length:m==="not_for_sale"?B.length:_e,R=[];if(m!=="all"&&R.push({key:"status",label:m==="on_sale"?r("filter.onSale"):r("filter.notForSale"),onRemove:()=>P("all")}),v)for(const e of U)x.includes(e)&&R.push({key:`rarity-${e}`,label:re(e),onRemove:()=>X(e)});if(v&&f){const e=(ne=(oe=et.find(n=>n.key===ye[l]))==null?void 0:oe.subs)==null?void 0:ne.find(n=>n.key===f);R.push({key:"sub",label:e?r(e.labelKey):f,onRemove:()=>I(null)})}function Ge(){P("all"),z([]),I(null)}const De=t.jsxs(t.Fragment,{children:[t.jsx(tt,{title:r("myAssets.assetsHeading"),category:ye[l],subCategory:f,onCategory:Oe,onSub:I,onCollections:()=>J("creations"),collections:l==="creations",extraLabelKey:"myAssets.sectionCreations",hideAll:!0}),v?t.jsxs(t.Fragment,{children:[t.jsx(ie,{}),t.jsx(le,{title:r("assets.rarity"),open:ve,onToggle:()=>Ee(e=>!e),summary:Re,headerTestId:"sidebar-section-toggle",children:t.jsx(nt,{"data-testid":"rarity-filter",children:U.map(e=>{const n=x.includes(e);return t.jsxs(rt,{type:"button",selected:n,"aria-pressed":n,onClick:()=>X(e),"data-testid":"rarity-filter-check",children:[t.jsx(at,{color:s.rarities[e],children:n?t.jsx(it,{name:"check","aria-hidden":!0}):null}),t.jsx(lt,{selected:n,children:e})]},e)})})})]}):null,t.jsx(ie,{}),t.jsx(le,{title:r("filter.status"),open:Ce,onToggle:()=>Ae(e=>!e),summary:Fe,children:[["all",r("filter.statusAll")],["on_sale",r("filter.onSale")],["not_for_sale",r("filter.notForSale")]].map(([e,n])=>t.jsxs(ct,{children:[t.jsx(dt,{type:"radio",name:"myassets-status",checked:m===e,onChange:()=>P(e)}),t.jsx(mt,{children:n})]},e))})]});return t.jsxs(pt,{"data-testid":"my-assets",children:[A?t.jsx(ut,{onClick:()=>y(!1),"aria-hidden":!0}):null,t.jsxs(ft,{className:A?"is-open":"","data-testid":"my-assets-sidebar",children:[t.jsxs(xt,{children:[t.jsx(ht,{children:r("assets.filters")}),t.jsx(yt,{onClick:()=>y(!1),"aria-label":r("assets.closeFilters"),children:"✕"})]}),t.jsx(gt,{children:De}),t.jsx(bt,{children:t.jsx(wt,{type:"button",onClick:()=>y(!1),children:r("assets.showItems")})})]}),t.jsxs(St,{children:[t.jsxs(kt,{children:[t.jsx(It,{name:"search","aria-hidden":!0}),t.jsx(Ct,{type:"search",value:C,placeholder:r("myAssets.searchPlaceholder"),"aria-label":r("myAssets.searchPlaceholder"),onChange:e=>V(e.target.value)}),C?t.jsx(At,{type:"button","aria-label":r("myAssets.clearSearch"),onClick:()=>V(""),children:t.jsx(vt,{name:"close","aria-hidden":!0})}):null]}),se>0?t.jsxs(Ot,{to:"/import",children:[t.jsx("span",{"aria-hidden":!0,children:"📦"}),t.jsxs(_t,{children:[t.jsx(Pt,{children:r("myAssets.importTitle")}),t.jsx(zt,{children:r("myAssets.importSub",{count:se})})]}),t.jsx(Lt,{children:r("myAssets.import")})]}):null,t.jsx(st,{sort:S,onSort:ke,sortOptions:W,total:qe,loading:Ke,query:h,onOpenFilters:()=>y(!0),chips:R,onClearChips:Ge}),(l==="creations"?Me:Pe)?t.jsx(ce,{message:r("myAssets.ownedError"),testId:"my-assets-error"}):null,l==="creations"?t.jsxs(t.Fragment,{children:[t.jsx(de,{"data-testid":"grid",children:K?t.jsx(H,{count:12}):G.map(e=>{const n=$(e);return t.jsx(D,{item:Kt(e,(n==null?void 0:n.priceCredits)??0,u??""),mode:"manage-link"},`${e.contractAddress}-${e.blockchainItemId}`)})}),!K&&G.length===0?t.jsxs(me,{children:[t.jsx(pe,{children:t.jsx(k,{name:"pen",size:30,"aria-hidden":!0})}),t.jsx(ue,{children:r("myAssets.emptyCreationsTitle")}),t.jsx(fe,{children:r("myAssets.nothingToPublish")})]}):null]}):t.jsxs(t.Fragment,{children:[t.jsxs(de,{"data-testid":"grid",children:[L||N?t.jsx(H,{count:12}):B.map(e=>l==="names"?t.jsx(D,{item:{...ge(e),category:"ens"},mode:"manage-link",manageHref:Bt(e.name)},e.id):t.jsx(D,{item:ge(e,te(e)),mode:"manage-link"},e.id)),ee?t.jsx(H,{count:6}):null]}),m!=="not_for_sale"?t.jsx(ot,{hasNextPage:ze,isFetching:ee,onLoadMore:()=>void Le()}):null,!L&&!N&&B.length===0?t.jsxs(me,{children:[t.jsx(pe,{children:t.jsx(k,{name:l==="names"?"website":l==="emotes"?"emote-dance":"cat-upper",size:30,"aria-hidden":!0})}),t.jsx(ue,{children:l==="names"?r("myAssets.emptyNamesTitle"):r("myAssets.emptyOwnedTitle")}),t.jsx(fe,{children:l==="names"?r("myAssets.namesEmpty"):r("myAssets.ownedEmpty")}),l!=="names"?t.jsx(Et,{to:"/assets",children:r("myAssets.emptyBrowse")}):null]}):null]})]})]})}export{cs as MyAssets};
@@ -1 +1 @@
1
- import{r as n,j as e,L as c}from"./react-B36MyIP_.js";import{h as l,t as s,Q as m,M as d}from"./index-BSeusSHl.js";import{L as p}from"./LoadMore-Cp-E67xI.js";import"./sentry-gZJVwIqQ.js";import"./dcl-schemas-BICTSpB5.js";import"./ethers-BteKixT0.js";import"./intl-CBcMB1D2.js";const v="data:image/svg+xml,%3csvg%20width='138'%20height='138'%20viewBox='0%200%20138%20138'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M92.7188%2021.5625V34.5'%20stroke='%23FF7158'%20stroke-width='4.3125'%20stroke-linecap='round'/%3e%3cpath%20d='M86.25%2028.0312H99.1875'%20stroke='%23FF7158'%20stroke-width='4.3125'%20stroke-linecap='round'/%3e%3cpath%20d='M24.7324%2065.5C24.732%2062.8042%2025.2665%2060.1361%2026.3037%2057.6514C27.341%2055.1665%2028.8602%2052.9151%2030.7715%2051.0293C32.6826%2049.1438%2034.9471%2047.6604%2037.4326%2046.666C39.9183%2045.6716%2042.5762%2045.1856%2045.25%2045.2354L45.3008%2045.2363H45.3516C48.581%2045.2192%2051.7779%2045.8923%2054.7305%2047.2109C56.1717%2047.8547%2057.539%2048.6448%2058.8115%2049.5674C60.1459%2050.5348%2061.3766%2051.6478%2062.4795%2052.8887L65.6426%2056.4473L68.8057%2052.8887C69.9086%2051.6478%2071.1392%2050.5348%2072.4736%2049.5674C73.7464%2048.6446%2075.1142%2047.8547%2076.5557%2047.2109C79.5083%2045.8922%2082.705%2045.2191%2085.9346%2045.2363H85.9854L86.0361%2045.2354C88.7097%2045.1856%2091.367%2045.6717%2093.8525%2046.666C96.3383%2047.6604%2098.6034%2049.1436%20100.515%2051.0293C102.426%2052.9151%20103.945%2055.1665%20104.982%2057.6514C106.02%2060.1361%20106.554%2062.8043%20106.554%2065.5V65.501C106.554%2074.0645%20102.382%2082.1039%2095.8086%2089.877C89.2296%2097.6565%2080.6704%20104.682%2072.6035%20111.289C71.1421%20112.486%2069.6963%20113.67%2068.2959%20114.832C66.7887%20116.083%2064.5293%20116.081%2063.0176%20114.818C61.4894%20113.542%2059.9072%20112.242%2058.3076%20110.928C50.2836%20104.335%2041.8192%2097.3643%2035.3242%2089.6553C28.8376%2081.9561%2024.7324%2073.9982%2024.7324%2065.501V65.5Z'%20stroke='url(%23paint0_linear_favorites_empty)'%20stroke-width='8.46429'/%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_favorites_empty'%20x1='17.6552'%20y1='80.505'%20x2='176.469'%20y2='63.4051'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23FF2D55'/%3e%3cstop%20offset='1'%20stop-color='%23FFBC5B'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e",r=24;function F(){l({title:s("nav.myFavorites"),noindex:!0});const i=m(t=>Object.values(t.items)),[a,o]=n.useState(r);return i.length===0?e.jsxs("div",{className:"favorites-empty","data-testid":"favorites-empty",children:[e.jsx("img",{className:"favorites-empty__icon",src:v,alt:"",width:138,height:138}),e.jsxs("div",{className:"favorites-empty__text",children:[e.jsx("p",{className:"favorites-empty__title",children:s("myFavorites.emptyTitle")}),e.jsx("p",{className:"favorites-empty__body",children:s("myFavorites.emptyBody")})]}),e.jsx(c,{className:"favorites-empty__cta",to:"/assets",children:s("myFavorites.emptyCta")})]}):e.jsxs("section",{className:"favorites",children:[e.jsxs("div",{className:"favorites__head",children:[e.jsx("h1",{children:s("nav.myFavorites")}),e.jsx("span",{className:"favorites__count",children:s("myFavorites.itemCount",{count:i.length})})]}),e.jsx("div",{className:"grid",children:i.slice(0,a).map(t=>e.jsx(d,{item:t},t.id))}),e.jsx(p,{hasNextPage:a<i.length,isFetching:!1,onLoadMore:()=>o(t=>t+r)})]})}export{F as MyFavorites};
1
+ import{r as n,j as e,L as c}from"./react-BW1xvPTF.js";import{x as l,t as s,Q as m,M as d}from"./index-TmxHL85j.js";import{L as p}from"./LoadMore-DTUpuDyu.js";import"./sentry-BV_ZSgtd.js";import"./dcl-schemas-BICTSpB5.js";import"./ethers-CtVvB8eG.js";import"./intl-CBcMB1D2.js";const v="data:image/svg+xml,%3csvg%20width='138'%20height='138'%20viewBox='0%200%20138%20138'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M92.7188%2021.5625V34.5'%20stroke='%23FF7158'%20stroke-width='4.3125'%20stroke-linecap='round'/%3e%3cpath%20d='M86.25%2028.0312H99.1875'%20stroke='%23FF7158'%20stroke-width='4.3125'%20stroke-linecap='round'/%3e%3cpath%20d='M24.7324%2065.5C24.732%2062.8042%2025.2665%2060.1361%2026.3037%2057.6514C27.341%2055.1665%2028.8602%2052.9151%2030.7715%2051.0293C32.6826%2049.1438%2034.9471%2047.6604%2037.4326%2046.666C39.9183%2045.6716%2042.5762%2045.1856%2045.25%2045.2354L45.3008%2045.2363H45.3516C48.581%2045.2192%2051.7779%2045.8923%2054.7305%2047.2109C56.1717%2047.8547%2057.539%2048.6448%2058.8115%2049.5674C60.1459%2050.5348%2061.3766%2051.6478%2062.4795%2052.8887L65.6426%2056.4473L68.8057%2052.8887C69.9086%2051.6478%2071.1392%2050.5348%2072.4736%2049.5674C73.7464%2048.6446%2075.1142%2047.8547%2076.5557%2047.2109C79.5083%2045.8922%2082.705%2045.2191%2085.9346%2045.2363H85.9854L86.0361%2045.2354C88.7097%2045.1856%2091.367%2045.6717%2093.8525%2046.666C96.3383%2047.6604%2098.6034%2049.1436%20100.515%2051.0293C102.426%2052.9151%20103.945%2055.1665%20104.982%2057.6514C106.02%2060.1361%20106.554%2062.8043%20106.554%2065.5V65.501C106.554%2074.0645%20102.382%2082.1039%2095.8086%2089.877C89.2296%2097.6565%2080.6704%20104.682%2072.6035%20111.289C71.1421%20112.486%2069.6963%20113.67%2068.2959%20114.832C66.7887%20116.083%2064.5293%20116.081%2063.0176%20114.818C61.4894%20113.542%2059.9072%20112.242%2058.3076%20110.928C50.2836%20104.335%2041.8192%2097.3643%2035.3242%2089.6553C28.8376%2081.9561%2024.7324%2073.9982%2024.7324%2065.501V65.5Z'%20stroke='url(%23paint0_linear_favorites_empty)'%20stroke-width='8.46429'/%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_favorites_empty'%20x1='17.6552'%20y1='80.505'%20x2='176.469'%20y2='63.4051'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23FF2D55'/%3e%3cstop%20offset='1'%20stop-color='%23FFBC5B'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e",r=24;function F(){l({title:s("nav.myFavorites"),noindex:!0});const i=m(t=>Object.values(t.items)),[a,o]=n.useState(r);return i.length===0?e.jsxs("div",{className:"favorites-empty","data-testid":"favorites-empty",children:[e.jsx("img",{className:"favorites-empty__icon",src:v,alt:"",width:138,height:138}),e.jsxs("div",{className:"favorites-empty__text",children:[e.jsx("p",{className:"favorites-empty__title",children:s("myFavorites.emptyTitle")}),e.jsx("p",{className:"favorites-empty__body",children:s("myFavorites.emptyBody")})]}),e.jsx(c,{className:"favorites-empty__cta",to:"/assets",children:s("myFavorites.emptyCta")})]}):e.jsxs("section",{className:"favorites",children:[e.jsxs("div",{className:"favorites__head",children:[e.jsx("h1",{children:s("nav.myFavorites")}),e.jsx("span",{className:"favorites__count",children:s("myFavorites.itemCount",{count:i.length})})]}),e.jsx("div",{className:"grid",children:i.slice(0,a).map(t=>e.jsx(d,{item:t},t.id))}),e.jsx(p,{hasNextPage:a<i.length,isFetching:!1,onLoadMore:()=>o(t=>t+r)})]})}export{F as MyFavorites};
@@ -1,4 +1,4 @@
1
- import{p as ee}from"./sentry-gZJVwIqQ.js";const ae="2.54.1";let T={getDocsUrl:({docsBaseUrl:r,docsPath:e="",docsSlug:t})=>e?`${r??"https://viem.sh"}${e}${t?`#${t}`:""}`:void 0,version:`viem@${ae}`};class o extends Error{constructor(e,t={}){var p;const n=(()=>{var u;return t.cause instanceof o?t.cause.details:(u=t.cause)!=null&&u.message?t.cause.message:t.details})(),a=t.cause instanceof o&&t.cause.docsPath||t.docsPath,s=(p=T.getDocsUrl)==null?void 0:p.call(T,{...t,docsPath:a}),i=[e||"An error occurred.","",...t.metaMessages?[...t.metaMessages,""]:[],...s?[`Docs: ${s}`]:[],...n?[`Details: ${n}`]:[],...T.version?[`Version: ${T.version}`]:[]].join(`
1
+ import{p as ee}from"./sentry-BV_ZSgtd.js";const ae="2.54.1";let T={getDocsUrl:({docsBaseUrl:r,docsPath:e="",docsSlug:t})=>e?`${r??"https://viem.sh"}${e}${t?`#${t}`:""}`:void 0,version:`viem@${ae}`};class o extends Error{constructor(e,t={}){var p;const n=(()=>{var u;return t.cause instanceof o?t.cause.details:(u=t.cause)!=null&&u.message?t.cause.message:t.details})(),a=t.cause instanceof o&&t.cause.docsPath||t.docsPath,s=(p=T.getDocsUrl)==null?void 0:p.call(T,{...t,docsPath:a}),i=[e||"An error occurred.","",...t.metaMessages?[...t.metaMessages,""]:[],...s?[`Docs: ${s}`]:[],...n?[`Details: ${n}`]:[],...T.version?[`Version: ${T.version}`]:[]].join(`
2
2
  `);super(i,t.cause?{cause:t.cause}:void 0),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"metaMessages",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"version",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BaseError"}),this.details=n,this.docsPath=a,this.metaMessages=t.metaMessages,this.name=t.name??this.name,this.shortMessage=e,this.version=ae}walk(e){return se(this,e)}}function se(r,e){return e!=null&&e(r)?r:r&&typeof r=="object"&&"cause"in r&&r.cause!==void 0?se(r.cause,e):e?null:r}class oe extends o{constructor({max:e,min:t,signed:n,size:a,value:s}){super(`Number "${s}" is not in safe ${a?`${a*8}-bit ${n?"signed":"unsigned"} `:""}integer range ${e?`(${t} to ${e})`:`(above ${t})`}`,{name:"IntegerOutOfRangeError"})}}class Ke extends o{constructor(e){super(`Bytes value "${e}" is not a valid boolean. The bytes array must contain a single byte of either a 0 or 1 value.`,{name:"InvalidBytesBooleanError"})}}class fe extends o{constructor(e){super(`Hex value "${e}" is not a valid boolean. The hex value must be "0x0" (false) or "0x1" (true).`,{name:"InvalidHexBooleanError"})}}class me extends o{constructor({givenSize:e,maxSize:t}){super(`Size cannot exceed ${t} bytes. Given size: ${e} bytes.`,{name:"SizeOverflowError"})}}function ie(r,{strict:e=!0}={}){return!r||typeof r!="string"?!1:e?/^0x[0-9a-fA-F]*$/.test(r):r.startsWith("0x")}function te(r){return ie(r,{strict:!1})?Math.ceil((r.length-2)/2):r.length}function v(r,{dir:e="left"}={}){let t=typeof r=="string"?r.replace("0x",""):r,n=0;for(let a=0;a<t.length-1&&t[e==="left"?a:t.length-a-1].toString()==="0";a++)n++;return t=e==="left"?t.slice(n):t.slice(0,t.length-n),typeof r=="string"?(t.length===1&&e==="right"&&(t=`${t}0`),`0x${t.length%2===1?`0${t}`:t}`):t}class Ve extends o{constructor({offset:e,position:t,size:n}){super(`Slice ${t==="start"?"starting":"ending"} at offset "${e}" is out-of-bounds (size: ${n}).`,{name:"SliceOffsetOutOfBoundsError"})}}class ue extends o{constructor({size:e,targetSize:t,type:n}){super(`${n.charAt(0).toUpperCase()}${n.slice(1).toLowerCase()} size (${e}) exceeds padding size (${t}).`,{name:"SizeExceedsPaddingSizeError"})}}class Ye extends o{constructor({size:e,targetSize:t,type:n}){super(`${n.charAt(0).toUpperCase()}${n.slice(1).toLowerCase()} is expected to be ${t} ${n} long, but is ${e} ${n} long.`,{name:"InvalidBytesLengthError"})}}function g(r,{dir:e,size:t=32}={}){return typeof r=="string"?he(r,{dir:e,size:t}):ye(r,{dir:e,size:t})}function he(r,{dir:e,size:t=32}={}){if(t===null)return r;const n=r.replace("0x","");if(n.length>t*2)throw new ue({size:Math.ceil(n.length/2),targetSize:t,type:"hex"});return`0x${n[e==="right"?"padEnd":"padStart"](t*2,"0")}`}function ye(r,{dir:e,size:t=32}={}){if(t===null)return r;if(r.length>t)throw new ue({size:r.length,targetSize:t,type:"bytes"});const n=new Uint8Array(t);for(let a=0;a<t;a++){const s=e==="right";n[s?a:t-a-1]=r[s?a:r.length-a-1]}return n}const ge=Array.from({length:256},(r,e)=>e.toString(16).padStart(2,"0"));function Xe(r,e={}){return typeof r=="number"||typeof r=="bigint"?le(r,e):typeof r=="string"?Te(r,e):typeof r=="boolean"?Ee(r,e):ce(r,e)}function Ee(r,e={}){const t=`0x${Number(r)}`;return typeof e.size=="number"?(y(t,{size:e.size}),g(t,{size:e.size})):t}function ce(r,e={}){let t="";for(let a=0;a<r.length;a++)t+=ge[r[a]];const n=`0x${t}`;return typeof e.size=="number"?(y(n,{size:e.size}),g(n,{dir:"right",size:e.size})):n}function le(r,e={}){const{signed:t,size:n}=e,a=BigInt(r);let s;n?t?s=(1n<<BigInt(n)*8n-1n)-1n:s=2n**(BigInt(n)*8n)-1n:typeof r=="number"&&(s=BigInt(Number.MAX_SAFE_INTEGER));const i=typeof s=="bigint"&&t?-s-1n:0;if(s&&a>s||a<i){const u=typeof r=="bigint"?"n":"";throw new oe({max:s?`${s}${u}`:void 0,min:`${i}${u}`,signed:t,size:n,value:`${r}${u}`})}const p=`0x${(t&&a<0?(1n<<BigInt(n*8))+BigInt(a):a).toString(16)}`;return n?g(p,{size:n}):p}const Ne=new TextEncoder;function Te(r,e={}){const t=Ne.encode(r);return ce(t,e)}const ve=new TextEncoder;function Je(r,e={}){return typeof r=="number"||typeof r=="bigint"?Oe(r,e):typeof r=="boolean"?we(r,e):ie(r)?O(r,e):Ae(r,e)}function we(r,e={}){const t=new Uint8Array(1);return t[0]=Number(r),typeof e.size=="number"?(y(t,{size:e.size}),g(t,{size:e.size})):t}const m={zero:48,nine:57,A:65,F:70,a:97,f:102};function re(r){if(r>=m.zero&&r<=m.nine)return r-m.zero;if(r>=m.A&&r<=m.F)return r-(m.A-10);if(r>=m.a&&r<=m.f)return r-(m.a-10)}function O(r,e={}){let t=r;e.size&&(y(t,{size:e.size}),t=g(t,{dir:"right",size:e.size}));let n=t.slice(2);n.length%2&&(n=`0${n}`);const a=n.length/2,s=new Uint8Array(a);for(let i=0,p=0;i<a;i++){const u=re(n.charCodeAt(p++)),E=re(n.charCodeAt(p++));if(u===void 0||E===void 0)throw new o(`Invalid byte sequence ("${n[p-2]}${n[p-1]}" in "${n}").`);s[i]=u*16+E}return s}function Oe(r,e){const t=le(r,e);return O(t)}function Ae(r,e={}){const t=ve.encode(r);return typeof e.size=="number"?(y(t,{size:e.size}),g(t,{dir:"right",size:e.size})):t}function y(r,{size:e}){if(te(r)>e)throw new me({givenSize:te(r),maxSize:e})}function Qe(r,e){const t={to:e},n=t.to;return n==="number"?Me(r,t):n==="bigint"?de(r,t):n==="string"?Ce(r,t):n==="boolean"?xe(r,t):O(r,t)}function de(r,e={}){const{signed:t}=e;e.size&&y(r,{size:e.size});const n=BigInt(r);if(!t)return n;const a=(r.length-2)/2,s=(1n<<BigInt(a)*8n-1n)-1n;return n<=s?n:n-BigInt(`0x${"f".padStart(a*2,"f")}`)-1n}function xe(r,e={}){let t=r;if(e.size&&(y(t,{size:e.size}),t=v(t)),v(t)==="0x00")return!1;if(v(t)==="0x01")return!0;throw new fe(t)}function Me(r,e={}){const t=de(r,e),n=Number(t);if(!Number.isSafeInteger(n))throw new oe({max:`${Number.MAX_SAFE_INTEGER}`,min:`${Number.MIN_SAFE_INTEGER}`,signed:e.signed,size:e.size,value:`${t}n`});return n}function Ce(r,e={}){let t=O(r);return e.size&&(y(t,{size:e.size}),t=v(t,{dir:"right"})),new TextDecoder().decode(t)}const Ze={gwei:9,wei:18},Re={ether:-9,wei:9};function Se(r,e){let t=r.toString();const n=t.startsWith("-");n&&(t=t.slice(1)),t=t.padStart(e,"0");let[a,s]=[t.slice(0,t.length-e),t.slice(t.length-e)];return s=s.replace(/(0+)$/,""),`${n?"-":""}${a||"0"}${s?`.${s}`:""}`}function w(r,e="wei"){return Se(r,Re[e])}class pe extends o{constructor({cause:e,message:t}={}){var a;const n=(a=t==null?void 0:t.replace("execution reverted: ",""))==null?void 0:a.replace("execution reverted","");super(`Execution reverted ${n?`with reason: ${n}`:"for an unknown reason"}.`,{cause:e,name:"ExecutionRevertedError"})}}Object.defineProperty(pe,"code",{enumerable:!0,configurable:!0,writable:!0,value:3});Object.defineProperty(pe,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/execution reverted|gas required exceeds allowance/});class Pe extends o{constructor({cause:e,maxFeePerGas:t}={}){super(`The fee cap (\`maxFeePerGas\`${t?` = ${w(t)} gwei`:""}) cannot be higher than the maximum allowed value (2^256-1).`,{cause:e,name:"FeeCapTooHighError"})}}Object.defineProperty(Pe,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max fee per gas higher than 2\^256-1|fee cap higher than 2\^256-1/});class _e extends o{constructor({cause:e,maxFeePerGas:t}={}){super(`The fee cap (\`maxFeePerGas\`${t?` = ${w(t)}`:""} gwei) cannot be lower than the block base fee.`,{cause:e,name:"FeeCapTooLowError"})}}Object.defineProperty(_e,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max fee per gas less than block base fee|fee cap less than block base fee|transaction is outdated/});class Ie extends o{constructor({cause:e,nonce:t}={}){super(`Nonce provided for the transaction ${t?`(${t}) `:""}is higher than the next one expected.`,{cause:e,name:"NonceTooHighError"})}}Object.defineProperty(Ie,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too high/});class $e extends o{constructor({cause:e,nonce:t}={}){super([`Nonce provided for the transaction ${t?`(${t}) `:""}is lower than the current nonce of the account.`,"Try increasing the nonce or find the latest nonce with `getTransactionCount`."].join(`
3
3
  `),{cause:e,name:"NonceTooLowError"})}}Object.defineProperty($e,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too low|transaction already imported|already known/});class Ue extends o{constructor({cause:e,nonce:t}={}){super(`Nonce provided for the transaction ${t?`(${t}) `:""}exceeds the maximum allowed nonce.`,{cause:e,name:"NonceMaxValueError"})}}Object.defineProperty(Ue,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce has max value/});class De extends o{constructor({cause:e}={}){super(["The total cost (gas * gas fee + value) of executing this transaction exceeds the balance of the account."].join(`
4
4
  `),{cause:e,metaMessages:["This error could arise when the account does not have enough funds to:"," - pay for the total gas fee,"," - pay for the value to send."," ","The cost of the transaction is calculated as `gas * gas fee + value`, where:"," - `gas` is the amount of gas needed for transaction to execute,"," - `gas fee` is the gas fee,"," - `value` is the amount of ether to send to the recipient."],name:"InsufficientFundsError"})}}Object.defineProperty(De,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/insufficient funds|exceeds transaction sender account balance/});class je extends o{constructor({cause:e,gas:t}={}){super(`The amount of gas ${t?`(${t}) `:""}provided for the transaction exceeds the limit allowed for the block.`,{cause:e,name:"IntrinsicGasTooHighError"})}}Object.defineProperty(je,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too high|gas limit reached/});class Le extends o{constructor({cause:e,gas:t}={}){super(`The amount of gas ${t?`(${t}) `:""}provided for the transaction is too low.`,{cause:e,name:"IntrinsicGasTooLowError"})}}Object.defineProperty(Le,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too low/});class ze extends o{constructor({cause:e}){super("The transaction type is not supported for this chain.",{cause:e,name:"TransactionTypeNotSupportedError"})}}Object.defineProperty(ze,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/transaction type not valid/});class Be extends o{constructor({cause:e,maxPriorityFeePerGas:t,maxFeePerGas:n}={}){super([`The provided tip (\`maxPriorityFeePerGas\`${t?` = ${w(t)} gwei`:""}) cannot be higher than the fee cap (\`maxFeePerGas\`${n?` = ${w(n)} gwei`:""}).`].join(`
@@ -1 +1 @@
1
- import{j as t,L as n}from"./react-B36MyIP_.js";import{h as s,t as o,I as e,B as a}from"./index-BSeusSHl.js";import"./sentry-gZJVwIqQ.js";import"./dcl-schemas-BICTSpB5.js";import"./ethers-BteKixT0.js";import"./intl-CBcMB1D2.js";function c(){return s({title:o("seo.notFound.title"),noindex:!0}),t.jsxs("div",{className:"notfound","data-testid":"notfound",children:[t.jsx(e,{name:"cart",className:"notfound__ico"}),t.jsx("h1",{className:"notfound__title",children:o("notFound.title")}),t.jsx("p",{className:"muted",children:o("notFound.body")}),t.jsx(a,{as:n,to:"/assets",variant:"purple",children:o("notFound.cta")})]})}export{c as NotFound,c as default};
1
+ import{j as t,L as n}from"./react-BW1xvPTF.js";import{x as s,t as o,I as e,B as a}from"./index-TmxHL85j.js";import"./sentry-BV_ZSgtd.js";import"./dcl-schemas-BICTSpB5.js";import"./ethers-CtVvB8eG.js";import"./intl-CBcMB1D2.js";function c(){return s({title:o("seo.notFound.title"),noindex:!0}),t.jsxs("div",{className:"notfound","data-testid":"notfound",children:[t.jsx(e,{name:"cart",className:"notfound__ico"}),t.jsx("h1",{className:"notfound__title",children:o("notFound.title")}),t.jsx("p",{className:"muted",children:o("notFound.body")}),t.jsx(a,{as:n,to:"/assets",variant:"purple",children:o("notFound.cta")})]})}export{c as NotFound,c as default};