@dcl/shop 1.7.1-31581211421.commit-e34f22c → 1.7.1-31588909629.commit-83201d7

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 (231) hide show
  1. package/_assets/{Activity-D8fF9C9I.js → Activity-BcCDm6Fl.js} +11 -11
  2. package/_assets/{AnimatedBackground-zIDETlWA.js → AnimatedBackground-Ln0tLHDh.js} +2 -2
  3. package/_assets/{Assets-DgIEU76P.js → Assets-S_jz0174.js} +15 -15
  4. package/_assets/{Authorizations-DJY1C-0c.js → Authorizations-DFJWblIp.js} +2 -2
  5. package/_assets/{Cart-DkTkUcH7.js → Cart-ZJ_Bppix.js} +13 -13
  6. package/_assets/{CircularProgress-Cr7ZIpc-.js → CircularProgress-rw12eVF6.js} +5 -5
  7. package/_assets/{Collection-CfO5UgmB.js → Collection-CJxBpLyz.js} +8 -8
  8. package/_assets/{CollectionCarousel-CanarvWs.js → CollectionCarousel-C_Eat7_D.js} +53 -53
  9. package/_assets/{Confetti-C3txAlaB.js → Confetti-rdNWp3rt.js} +4 -4
  10. package/_assets/{ConstantsUtil-DSh2cSM7.js → ConstantsUtil-GSXpd5w5.js} +2 -2
  11. package/_assets/{ContentClient-CtZG5oO7.js → ContentClient-CqyA1XLO.js} +2 -2
  12. package/_assets/{Creator-Co_uW2t7.js → Creator-D69p5aL5.js} +5 -5
  13. package/_assets/{DeploymentBuilder-Bqt0w7Kn.js → DeploymentBuilder-C39bHixo.js} +2 -2
  14. package/_assets/{EmotePlaybackBar-cc6YkXQm.js → EmotePlaybackBar-2S9aRBTs.js} +3 -3
  15. package/_assets/{ErrorNotice-ButdQJd0.js → ErrorNotice-DraAWK0D.js} +2 -2
  16. package/_assets/{ExchangeController-Du9bAWhk.js → ExchangeController-BsXYFx4V.js} +2 -2
  17. package/_assets/{Faq-CUpyT6yG.js → Faq-DWIztJkW.js} +2 -2
  18. package/_assets/{GetCredits-YyY7tx9W.js → GetCredits-DZa9MSNQ.js} +5 -5
  19. package/_assets/{Grow-_dZiv27c.js → Grow-C1y0GaQS.js} +2 -2
  20. package/_assets/{HelpersUtil-C0eba7rR.js → HelpersUtil-wr53cQnq.js} +2 -2
  21. package/_assets/{ItemDetail-B7cmVOoH.js → ItemDetail-Bhc_w426.js} +2 -2
  22. package/_assets/{JumpInIcon-5OTD8Ky8.js → JumpInIcon-BCg4gHDe.js} +2 -2
  23. package/_assets/{LoadMore-FmjpQQU3.js → LoadMore-DcyQqB7V.js} +2 -2
  24. package/_assets/{ManaPricingBanner.styles-BmflTPLt.js → ManaPricingBanner.styles-D8yW6YOJ.js} +2 -2
  25. package/_assets/{MyAssets-BXButX9E.js → MyAssets-DW_sO-OM.js} +3 -3
  26. package/_assets/{MyFavorites-BHS6y8Ja.js → MyFavorites-CPd575Q_.js} +3 -3
  27. package/_assets/{NetworkUtil-Dxtk5EDP.js → NetworkUtil-BdmSWRHM.js} +2 -2
  28. package/_assets/{NotFound-T8Vv1Kq7.js → NotFound-CSzZF6DS.js} +2 -2
  29. package/_assets/NotificationsBell-Dl8CPfgj.js +142 -0
  30. package/_assets/{OutfitDetail-DN4VPZ-T.js → OutfitDetail-xXFSLYGU.js} +2 -2
  31. package/_assets/{OutfitPreview-C3lXl-Vg.js → OutfitPreview-BdU0H7of.js} +3 -3
  32. package/_assets/{OutfitStudio-BYVcpvms.js → OutfitStudio-BrRYkQSY.js} +5 -5
  33. package/_assets/{StoreSettings-BfEbPiWg.js → StoreSettings-DUQx_Dt6.js} +22 -22
  34. package/_assets/{Success-BG6LmjYf.js → Success-RaPwuXOy.js} +36 -36
  35. package/_assets/{SwapController-CmEKXq9u.js → SwapController-CUK9rnop.js} +2 -2
  36. package/_assets/{Tooltip-BtEKpkLE.js → Tooltip-7mi0RVwp.js} +2 -2
  37. package/_assets/{TradeService-BbZoYxSl.js → TradeService-DRvijSJR.js} +2 -2
  38. package/_assets/{W3MFrameProviderSingleton-5eHrNQO3.js → W3MFrameProviderSingleton-Gs8pIXDu.js} +4 -4
  39. package/_assets/{WebCryptoP256-BUq5km0A.js → WebCryptoP256-l2eaCMqr.js} +2 -2
  40. package/_assets/{authorizations-BMn09P9I.js → authorizations-BzJgPMIG.js} +2 -2
  41. package/_assets/{basic-BxWXgbyb.js → basic-BZ0cc9NT.js} +2 -2
  42. package/_assets/{biconomy-DHGnsIIM.js → biconomy-lqGo3FqW.js} +2 -2
  43. package/_assets/{browseLayout.styles-B5XfuBCu.js → browseLayout.styles-BOh7KWFh.js} +2 -2
  44. package/_assets/{browser-C49ZLt-D.js → browser-DMDgib2N.js} +2 -2
  45. package/_assets/{browser-ponyfill-DDKLVv73.js → browser-ponyfill-oWMQ6W4U.js} +2 -2
  46. package/_assets/{builder-CUPlZxmr.js → builder-70Bbd4Yo.js} +2 -2
  47. package/_assets/{buy-PRtCD33t.js → buy-CdfkuQvD.js} +2 -2
  48. package/_assets/{buy-gasless-By2ertxo.js → buy-gasless-RbBehDyA.js} +2 -2
  49. package/_assets/{ccip-BDVnz0kv.js → ccip-C78V-wF_.js} +2 -2
  50. package/_assets/{ccip-BaKG6lNo.js → ccip-fjQFi5wf.js} +2 -2
  51. package/_assets/{chains-BeC3YON4.js → chains-BaSn87TI.js} +2 -2
  52. package/_assets/collectionPage.styles-DSeUlSA9.js +40 -0
  53. package/_assets/{common-BeD3phx5.js → common-BaMXvfZO.js} +2 -2
  54. package/_assets/{controller-CPH8DqfF.js → controller-CBS-P4GZ.js} +3 -3
  55. package/_assets/{core-D3kSoOJF.js → core-BkEhcNP-.js} +5 -5
  56. package/_assets/{createSvgIcon-C7IinxXu.js → createSvgIcon-DXItcdI1.js} +2 -2
  57. package/_assets/{custom-DRe-wZWg.js → custom-7TFCWmXz.js} +2 -2
  58. package/_assets/{data-capture-Ch5OTvSR.js → data-capture-CQ0Wp4M5.js} +2 -2
  59. package/_assets/{dcl-schemas-DvvPr89r.js → dcl-schemas-oZ9h4ko3.js} +2 -2
  60. package/_assets/{decimals-rDyFAXu8.js → decimals-B7uMBpx6.js} +2 -2
  61. package/_assets/{decimals-DTGPH3wS.js → decimals-DEAythTE.js} +2 -2
  62. package/_assets/{detectExtension-D30i9Jey.js → detectExtension-BTFFC3GC.js} +2 -2
  63. package/_assets/{disposePreview-C4L-N5GK.js → disposePreview-Dwj5f8OE.js} +2 -2
  64. package/_assets/{email-Co1GsAIc.js → email-NbT9DRCC.js} +2 -2
  65. package/_assets/{embedded-wallet-BYjl8-jD.js → embedded-wallet-CoT2K81g.js} +2 -2
  66. package/_assets/{emotion-styled.browser.esm-fvJWi7-5.js → emotion-styled.browser.esm-TuqOdZ1W.js} +2 -2
  67. package/_assets/{engine-CnGkO2i4.js → engine-CJ8gcBVv.js} +2 -2
  68. package/_assets/{errors-DxvcF67M.js → errors-BMWyMrL-.js} +2 -2
  69. package/_assets/{estimate-l1-fee-C92cmoPv.js → estimate-l1-fee-tyb7kf7a.js} +2 -2
  70. package/_assets/{eth_estimateGas-BHCc2QOL.js → eth_estimateGas-BRUeJfWB.js} +2 -2
  71. package/_assets/{eth_getStorageAt-GRNNZRcd.js → eth_getStorageAt-C12bKqRd.js} +2 -2
  72. package/_assets/{eth_getTransactionCount-hK3tU4Ay.js → eth_getTransactionCount-BY7KXSb0.js} +2 -2
  73. package/_assets/{ethereum-B283VA7v.js → ethereum-XoihOwzi.js} +2 -2
  74. package/_assets/{ethers-DvmxokMR.js → ethers-9NkNazYH.js} +2 -2
  75. package/_assets/{events-Cn0qN4Kt.js → events-yk_it_H_.js} +2 -2
  76. package/_assets/{execute-B7SoFNUO.js → execute-CUvhRThu.js} +3 -3
  77. package/_assets/{extractIPFS-BdmBrseY.js → extractIPFS-CqNCLsEB.js} +2 -2
  78. package/_assets/{features-Dk4Y0RzK.js → features-CMOT5j2N.js} +2 -2
  79. package/_assets/{fetchTokenMetadata-WcPywdCv.js → fetchTokenMetadata-OIU3__l7.js} +3 -3
  80. package/_assets/{field.styles-Ch3BrQO8.js → field.styles-DnIE_hBN.js} +2 -2
  81. package/_assets/{fortmatic-B_MbaAZ-.js → fortmatic-d6kDnMo1.js} +2 -2
  82. package/_assets/{get-bytecode-Dbi1a766.js → get-bytecode-DRUEP_v6.js} +2 -2
  83. package/_assets/{get-ecosystem-wallet-info-C9WnIe1B.js → get-ecosystem-wallet-info-55siV4Qh.js} +2 -2
  84. package/_assets/{getBalance-B9ludF4m.js → getBalance-BdxfgjNN.js} +3 -3
  85. package/_assets/{getInstalledModules-_5RThT9q.js → getInstalledModules-CaH96vr7.js} +2 -2
  86. package/_assets/{getNFT-DN5_6m3K.js → getNFT-1fMfvn-Y.js} +3 -3
  87. package/_assets/{getNFT-iLzcJ1g4.js → getNFT-CD8GHVnM.js} +2 -2
  88. package/_assets/{grid.styles-DikKXQiK.js → grid.styles-CG0auZKj.js} +2 -2
  89. package/_assets/{hashTypedData-DMcnbCy9.js → hashTypedData-BNp_7kH4.js} +2 -2
  90. package/_assets/{hashTypedData-Bmsonusk.js → hashTypedData-FhkMxMq8.js} +2 -2
  91. package/_assets/{in-app-C3BvMCMR.js → in-app-IiBMBdd6.js} +2 -2
  92. package/_assets/{in-app-wallet-calls-DRc-hUL-.js → in-app-wallet-calls-D3n82g7g.js} +2 -2
  93. package/_assets/{index-CiY4diDJ.js → index--DDbkKxj.js} +2 -2
  94. package/_assets/{index-_5t6eEp-.js → index-1ljXkwFR.js} +2 -2
  95. package/_assets/{index-CDdB6And.js → index-B1WSoA_d.js} +2 -2
  96. package/_assets/{index-B6JgAmho.js → index-B4reu1nx.js} +2 -2
  97. package/_assets/{index-BPGhISPl.js → index-B6IVDRLa.js} +4 -4
  98. package/_assets/{index-TtQO9tYh.js → index-BGNETsSQ.js} +2 -2
  99. package/_assets/{index-DddPvlT3.js → index-BLiBKN_P.js} +2 -2
  100. package/_assets/{index-B-J-DPRN.js → index-BOEoxcss.js} +2 -2
  101. package/_assets/{index-D6_KJwLj.js → index-BThdhVMv.js} +4 -4
  102. package/_assets/{index-D-LBw2RR.js → index-BTygCgGD.js} +2 -2
  103. package/_assets/{index-d4vkgFtT.js → index-Bbf2RIr7.js} +2 -2
  104. package/_assets/{index-F5Lfb472.js → index-BeTqS2CB.js} +2 -2
  105. package/_assets/{index-D0c52iWb.js → index-BhWSiQov.js} +2 -2
  106. package/_assets/{index-jgu2BllL.js → index-BmkjmkaR.js} +2 -2
  107. package/_assets/{index-DLUHZpBQ.js → index-Bon3We9w.js} +2 -2
  108. package/_assets/{index-f5tBnV1b.js → index-BseDzJYF.js} +2 -2
  109. package/_assets/{index-CjuRyBMi.js → index-BzAHkA9m.js} +2 -2
  110. package/_assets/{index-B_1bKbt3.js → index-C1lVVyzh.js} +2 -2
  111. package/_assets/{index-ryjNh1D9.js → index-C5Val98O.js} +2 -2
  112. package/_assets/{index-BJCMEC9C.js → index-C6DGRojo.js} +3 -3
  113. package/_assets/{index-D10KWHXY.js → index-C8_b0rdv.js} +2 -2
  114. package/_assets/{index-D7UgzWo_.js → index-CCnv5kKy.js} +2 -2
  115. package/_assets/{index-Tp3bLW1k.js → index-CDyz_tcW.js} +2 -2
  116. package/_assets/{index-BIjmCv3q.js → index-CFbo12NP.js} +2 -2
  117. package/_assets/{index-eYZdB5Hg.js → index-CLE71cHa.js} +2 -2
  118. package/_assets/{index-ByqPRYw_.js → index-CWY4y51L.js} +2 -2
  119. package/_assets/{index-oDSFAYHz.js → index-CcKOzz8r.js} +2 -2
  120. package/_assets/{index-B_axvIGX.js → index-Ced05BdA.js} +2 -2
  121. package/_assets/{index-C6H_U0z-.js → index-Cm9Y6iF_.js} +2 -2
  122. package/_assets/{index-Ba7-AMIr.js → index-CmKOdBLV.js} +3 -3
  123. package/_assets/index-CqhNARLg.js +2 -0
  124. package/_assets/{index-BCQgyOGH.js → index-CvgZI4iH.js} +2 -2
  125. package/_assets/{index-Dqdh1NEk.js → index-CwNaJ0Wt.js} +2 -2
  126. package/_assets/{index-BuZ7d-qH.js → index-CxA38i0e.js} +2 -2
  127. package/_assets/{index-P6L8Ua8L.js → index-CzFP82gq.js} +2 -2
  128. package/_assets/{index-D3RuRQFC.js → index-D2JdVXoK.js} +2 -2
  129. package/_assets/{index-CtQeRjIi.js → index-D5YZcIgK.js} +2 -2
  130. package/_assets/{index-BnTOUqVN.js → index-D5bSmdJh.js} +2 -2
  131. package/_assets/{index-BiSdYTNR.js → index-D6L7YadS.js} +4 -4
  132. package/_assets/{index-DK3Ndew3.js → index-D9u5sNyD.js} +2 -2
  133. package/_assets/{index-w8wVG0vp.js → index-DGyh0Z3B.js} +2 -2
  134. package/_assets/{index-BGmLd16T.js → index-DIu_3Qpj.js} +2 -2
  135. package/_assets/{index-C3Ylktqt.js → index-D_7ZE6rf.js} +2 -2
  136. package/_assets/{index-DHLYFIE4.js → index-Dg_QXQSF.js} +2 -2
  137. package/_assets/{index-CddeHcls.js → index-DqaF8d8U.js} +2 -2
  138. package/_assets/{index-H4gVTEKl.js → index-Dtrkx-bX.js} +2 -2
  139. package/_assets/{index-Lb3mEuHC.js → index-DwY73LjU.js} +2 -2
  140. package/_assets/{index-Cv3YqEfg.js → index-FAlRoTO7.js} +2 -2
  141. package/_assets/{index-DM1Th7nQ.js → index-FD7UdKvz.js} +2 -2
  142. package/_assets/{index-C3bIAsJx.js → index-GyRYqfnl.js} +2 -2
  143. package/_assets/{index-Dw8RNv0Y.js → index-HNVXkkkS.js} +2 -2
  144. package/_assets/{index-B8CpTEi8.js → index-Nfpcco_0.js} +2 -2
  145. package/_assets/{index-BOGfiKya.js → index-PKtaDZPX.js} +2 -2
  146. package/_assets/{index-DJy-qRqj.js → index-PVgr9kqe.js} +2 -2
  147. package/_assets/{index-DbblbeGS.js → index-QLR_j1L3.js} +2 -2
  148. package/_assets/{index-DMHt__mS.js → index-TXQq96ni.js} +2 -2
  149. package/_assets/{index-LrfHDepL.js → index-UE167sCA.js} +3 -3
  150. package/_assets/{index-LCqUgJES.js → index-UVYDSF7V.js} +3 -3
  151. package/_assets/{index-6JxLExB5.js → index-Uc6baGYa.js} +2 -2
  152. package/_assets/{index-DB525KOJ.js → index-VEVDZOLt.js} +2 -2
  153. package/_assets/{index-BB4PaZeM.js → index-_IxhqgxG.js} +2 -2
  154. package/_assets/{index-XzVT0I4Y.js → index-dyZgvxBQ.js} +2 -2
  155. package/_assets/{index-87aKdRLZ.js → index-gIgBdyus.js} +3 -3
  156. package/_assets/{index-rS8fNfOR.js → index-gQVTHUsa.js} +2 -2
  157. package/_assets/{index-D6KWV4_S.js → index-i3FBxfVM.js} +2 -2
  158. package/_assets/{index-DpiavbfG.js → index-pK0njIsP.js} +150 -94
  159. package/_assets/{index-B84gSKN3.js → index-t5SAPiy6.js} +2 -2
  160. package/_assets/{index.es-BKduOMfH.js → index.es-CnaaGjGK.js} +2 -2
  161. package/_assets/{index.es-D4Ffd079.js → index.es-Db1I5w29.js} +2 -2
  162. package/_assets/{index.es-BapACINK.js → index.es-hq4c2BaY.js} +5 -5
  163. package/_assets/{index.es-Ca0rjYkC.js → index.es-stHeeAlu.js} +2 -2
  164. package/_assets/{items-empty-BrN_d0qG.js → items-empty-DfDrX_rB.js} +2 -2
  165. package/_assets/{linkAccount-BQ8MdrsT.js → linkAccount-BxeGB-sO.js} +2 -2
  166. package/_assets/{localBatchGatewayRequest-BYqD0ZBi.js → localBatchGatewayRequest-GTeruLPs.js} +2 -2
  167. package/_assets/{native-B6MUSJPt.js → native-DcBwYWY3.js} +2 -2
  168. package/_assets/{networks-MpMcIBZk.js → networks-BBOXlvX3.js} +2 -2
  169. package/_assets/{onramp-p_FLyzYG.js → onramp-M59zJuNY.js} +2 -2
  170. package/_assets/{openzeppelin-B9OkAxse.js → openzeppelin-mNktJbao.js} +2 -2
  171. package/_assets/{ownerOf-CBsP-itJ.js → ownerOf-DD9ZdWgA.js} +2 -2
  172. package/_assets/{parseNft-Bo_RcmBD.js → parseNft-CxCwcOrH.js} +3 -3
  173. package/_assets/{parseSignature-DY4PajlY.js → parseSignature-CzoEYob3.js} +4 -4
  174. package/_assets/{parseSignature-BO9gIU49.js → parseSignature-EI8RAHZi.js} +2 -2
  175. package/_assets/{passkeys-DzhId6Di.js → passkeys-BHGHjHFg.js} +2 -2
  176. package/_assets/{pay-with-exchange-DtbU9pVf.js → pay-with-exchange-Brbk2xYM.js} +2 -2
  177. package/_assets/{prepare-contract-call-BQKZyk9t.js → prepare-contract-call-Iqn7q77l.js} +2 -2
  178. package/_assets/{qr-overlay-DuBu_rS6.js → qr-overlay-B_VlIeeu.js} +4 -4
  179. package/_assets/{react-Be4yVrKn.js → react-kphusOoP.js} +2 -2
  180. package/_assets/{receive-CjZU-PQU.js → receive-DijB46u3.js} +2 -2
  181. package/_assets/{resolveImplementation-C6Uj_xHi.js → resolveImplementation-A5tnt0DE.js} +2 -2
  182. package/_assets/{resume-buy-Dahq01t6.js → resume-buy-DWhUq2ya.js} +2 -2
  183. package/_assets/{rpc-BoD1JKAH.js → rpc-DuOgI_Dk.js} +2 -2
  184. package/_assets/{sales-empty-CdmnExhb.js → sales-empty-CZpUr8Vo.js} +2 -2
  185. package/_assets/{search-empty-DjMK9ahb.js → search-empty-CUu4COfd.js} +2 -2
  186. package/_assets/{secp256k1-GYPfXwWj.js → secp256k1-C5E_18Uw.js} +2 -2
  187. package/_assets/{secp256k1-W2jKIJ6Q.js → secp256k1-C_Xm46m9.js} +2 -2
  188. package/_assets/{secp256k1-CQyr7Z7G.js → secp256k1-Cts-N8ss.js} +2 -2
  189. package/_assets/{send-DTbiLVtT.js → send-B3iu9w43.js} +2 -2
  190. package/_assets/{send-batch-transaction-BG0DQ83r.js → send-batch-transaction-DXf1GIEI.js} +2 -2
  191. package/_assets/{send-eip712-transaction-ybR9Jhm0.js → send-eip712-transaction-VG-2gOcd.js} +3 -3
  192. package/_assets/{send-gasless-transaction-_q0EoJav.js → send-gasless-transaction-CNpkCAAs.js} +3 -3
  193. package/_assets/{send-transaction-CIMYC5HF.js → send-transaction-BIDisDgg.js} +3 -3
  194. package/_assets/{sendMetaTransaction-DgftRNSg.js → sendMetaTransaction-BOLe3OTv.js} +2 -2
  195. package/_assets/{sendRawTransaction-DnzciX08.js → sendRawTransaction-DCVrs5Dz.js} +4 -4
  196. package/_assets/{sentry-BZIVACz_.js → sentry-NePMG8c7.js} +3 -3
  197. package/_assets/{serializeTransaction-CMY-XUoZ.js → serializeTransaction-DYP2OLyd.js} +2 -2
  198. package/_assets/{session-proposal-K9lpQ49V.js → session-proposal-CXYNmdYe.js} +2 -2
  199. package/_assets/{session-request-BZM9Vq1u.js → session-request-ypQOoDpT.js} +3 -3
  200. package/_assets/{sha256-BG0hM2l9.js → sha256-ClHNgArd.js} +2 -2
  201. package/_assets/{signing-BU69uIif.js → signing-CDNvUpy8.js} +4 -4
  202. package/_assets/{skeleton.styles-CD6ZE0Jg.js → skeleton.styles-Swaf_3Kh.js} +2 -2
  203. package/_assets/{socials-CFnmGVLF.js → socials-BTsj7T0t.js} +2 -2
  204. package/_assets/{styled-BKOZxQw-.js → styled-C_vILGjH.js} +3 -3
  205. package/_assets/{swaps-CtmJI7ON.js → swaps-hUW23IS4.js} +2 -2
  206. package/_assets/{thirdweb-DbtOXE-o.js → thirdweb-Ddww8-jK.js} +4 -4
  207. package/_assets/{to-serializable-transaction-ZoNXdqiO.js → to-serializable-transaction-CI3QTKEO.js} +3 -3
  208. package/_assets/{totalSupply-BlO2EtIG.js → totalSupply-BigzDXUH.js} +2 -2
  209. package/_assets/{transaction-6bfuZAnG.js → transaction-BDOMEoLL.js} +2 -2
  210. package/_assets/{transactionReceipt-9zwmir__.js → transactionReceipt-mi8QqP-6.js} +2 -2
  211. package/_assets/{transactions-eCVVfLnC.js → transactions-CSo8LkF0.js} +2 -2
  212. package/_assets/useCreditPacks-XtadeSCm.js +2 -0
  213. package/_assets/{useInfiniteGrid-DCk1zuNn.js → useInfiniteGrid-BcNHKS4q.js} +2 -2
  214. package/_assets/{useStore-BFMDOUy4.js → useStore-Cshj1ayZ.js} +3 -3
  215. package/_assets/{useTheme-dbltkhsw.js → useTheme-C3qJ-yXp.js} +2 -2
  216. package/_assets/{utils-BekO5Uvx.js → utils-BWWfhrJP.js} +2 -2
  217. package/_assets/{verifyHash-DSm-f_mw.js → verifyHash-BZMHwARe.js} +2 -2
  218. package/_assets/{w3m-modal-D9k8hCLz.js → w3m-modal-Cuj1SP1j.js} +2 -2
  219. package/_assets/{w3m-modal-ELQZ_EA_.js → w3m-modal-DkJA0UeJ.js} +2 -2
  220. package/_assets/{wait-for-tx-receipt-m8rrYAHi.js → wait-for-tx-receipt-XHMrXN-l.js} +2 -2
  221. package/_assets/{wallets-B0p9dagW.js → wallets-CDZziKUN.js} +6 -6
  222. package/_assets/{web-connector-QPGhuRf4.js → web-connector-CYSknakR.js} +4 -4
  223. package/_assets/{writeContract-G6qV2dMI.js → writeContract-YtKzCxsz.js} +2 -2
  224. package/_assets/{zora-sepolia-lUCgTZTo.js → zora-sepolia-dnlxOXqv.js} +2 -2
  225. package/_assets/{zoraTestnet-Cow2oZL2.js → zoraTestnet-DhZrzuIj.js} +2 -2
  226. package/index.html +11 -11
  227. package/package.json +2 -2
  228. package/_assets/NotificationsBell-Bjl82A1_.js +0 -142
  229. package/_assets/collectionPage.styles-CLH0uGuY.js +0 -40
  230. package/_assets/index-D4ThpBMK.js +0 -2
  231. package/_assets/useCreditPacks-BJIunD_h.js +0 -2
@@ -1,4 +1,4 @@
1
- import{j as n,r as k}from"./react-Be4yVrKn.js";import{s as a,t as o,b as y,q as M,D as O,c1 as T,m as ce,I as K,h as N,aY as le,bO as pe,g as j,f as C,b1 as Q,Z as U,ao as he,cs as ue,ct as X,P as ge}from"./index-DpiavbfG.js";import{s as xe,i as P,A as F,g as W,r as Z,m as J,k as G,l as Y}from"./authorizations-BMn09P9I.js";import{i as fe}from"./errors-DxvcF67M.js";import{E as me}from"./ErrorNotice-ButdQJd0.js";import{k as be,l as we,m as _,n as ye,o as ve}from"./buy-PRtCD33t.js";import{s as ee,M as te,E as ae}from"./sendMetaTransaction-DgftRNSg.js";import{I as ke,C as ne}from"./ethers-DvmxokMR.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]="bd303d65-3e59-4ee9-95c7-8135abe73b0c",t._sentryDebugIdIdentifier="sentry-dbid-bd303d65-3e59-4ee9-95c7-8135abe73b0c")}catch{}})();const S="shop:resume_after_signin",je=900*1e3;function xt(t){try{sessionStorage.setItem(S,JSON.stringify({...t,at:Date.now()}))}catch{}}function ft(t){let e;try{e=sessionStorage.getItem(S)}catch{return null}if(!e)return null;try{sessionStorage.removeItem(S)}catch{}let i;try{i=JSON.parse(e)}catch{return null}return!i||i.type!==t||typeof i.at!="number"||Date.now()-i.at>je?null:i.type==="cart-checkout"?{type:"cart-checkout"}:{type:"item-buy",path:i.path}}const I="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Group%201'%3e%3cpath%20id='Vector'%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M12%202L22%2012L12%2022L2%2012L12%202ZM12%204.8L19.2%2012L12%2019.2L4.8%2012L12%204.8ZM12%2015.6C12.9548%2015.6001%2013.8705%2015.2209%2014.5457%2014.5459C15.2209%2013.8708%2015.6003%2012.9552%2015.6004%2012.0004C15.6005%2011.0456%2015.2213%2010.1299%2014.5463%209.45471C13.8712%208.7795%2012.9556%208.40011%2012.0008%208.4C11.0461%208.4%2010.1304%208.77928%209.45525%209.45442C8.78012%2010.1295%208.40083%2011.0452%208.40083%2012C8.40083%2012.9548%208.78012%2013.8705%209.45525%2014.5456C10.1304%2015.2207%2011.0461%2015.6%2012.0008%2015.6H12Z'%20fill='white'/%3e%3cg%20id='Rectangle%201'%3e%3c/g%3e%3c/g%3e%3c/svg%3e",Ce=a.div`
1
+ import{j as n,r as k}from"./react-kphusOoP.js";import{s as a,t as r,b as y,q as M,E as O,c1 as T,m as ce,I as K,h as N,aY as le,bO as pe,g as j,f as C,b1 as Q,$ as U,ap as he,cs as ue,ct as X,Q as ge}from"./index-pK0njIsP.js";import{s as xe,i as P,A as F,g as W,r as Z,m as J,k as G,l as Y}from"./authorizations-BzJgPMIG.js";import{i as fe}from"./errors-BMWyMrL-.js";import{E as me}from"./ErrorNotice-DraAWK0D.js";import{k as be,l as we,m as _,n as ye,o as ve}from"./buy-CdfkuQvD.js";import{s as ee,M as te,E as ae}from"./sendMetaTransaction-BOLe3OTv.js";import{I as ke,C as ne}from"./ethers-9NkNazYH.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]="554680ec-ac25-43a8-9b8f-8ac467cea457",t._sentryDebugIdIdentifier="sentry-dbid-554680ec-ac25-43a8-9b8f-8ac467cea457")}catch{}})();const S="shop:resume_after_signin",je=900*1e3;function xt(t){try{sessionStorage.setItem(S,JSON.stringify({...t,at:Date.now()}))}catch{}}function ft(t){let e;try{e=sessionStorage.getItem(S)}catch{return null}if(!e)return null;try{sessionStorage.removeItem(S)}catch{}let i;try{i=JSON.parse(e)}catch{return null}return!i||i.type!==t||typeof i.at!="number"||Date.now()-i.at>je?null:i.type==="cart-checkout"?{type:"cart-checkout"}:{type:"item-buy",path:i.path}}const I="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Group%201'%3e%3cpath%20id='Vector'%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M12%202L22%2012L12%2022L2%2012L12%202ZM12%204.8L19.2%2012L12%2019.2L4.8%2012L12%204.8ZM12%2015.6C12.9548%2015.6001%2013.8705%2015.2209%2014.5457%2014.5459C15.2209%2013.8708%2015.6003%2012.9552%2015.6004%2012.0004C15.6005%2011.0456%2015.2213%2010.1299%2014.5463%209.45471C13.8712%208.7795%2012.9556%208.40011%2012.0008%208.4C11.0461%208.4%2010.1304%208.77928%209.45525%209.45442C8.78012%2010.1295%208.40083%2011.0452%208.40083%2012C8.40083%2012.9548%208.78012%2013.8705%209.45525%2014.5456C10.1304%2015.2207%2011.0461%2015.6%2012.0008%2015.6H12Z'%20fill='white'/%3e%3cg%20id='Rectangle%201'%3e%3c/g%3e%3c/g%3e%3c/svg%3e",Ce=a.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  gap: 12px;
@@ -19,16 +19,16 @@ import{j as n,r as k}from"./react-Be4yVrKn.js";import{s as a,t as o,b as y,q as
19
19
  transition:
20
20
  background 0.15s ease,
21
21
  filter 0.15s ease;
22
- font-family: ${o.font.sans};
22
+ font-family: ${r.font.sans};
23
23
  font-weight: 600;
24
24
  font-size: 15px;
25
25
  line-height: 24px;
26
26
  letter-spacing: 0.46px;
27
27
  text-transform: uppercase;
28
- color: ${o.colors.softWhite};
28
+ color: ${r.colors.softWhite};
29
29
 
30
30
  &:focus-visible {
31
- outline: 2px solid ${o.colors.accent};
31
+ outline: 2px solid ${r.colors.accent};
32
32
  outline-offset: 2px;
33
33
  }
34
34
  &:disabled {
@@ -37,17 +37,17 @@ import{j as n,r as k}from"./react-Be4yVrKn.js";import{s as a,t as o,b as y,q as
37
37
  }
38
38
  `,H=a.button`
39
39
  ${ie}
40
- background: ${o.gradients.buyBtn};
40
+ background: ${r.gradients.buyBtn};
41
41
 
42
42
  &:hover:not(:disabled) {
43
43
  filter: brightness(1.08);
44
44
  }
45
45
  `,B=a.button`
46
46
  ${ie}
47
- background: ${o.colors.text2};
47
+ background: ${r.colors.text2};
48
48
 
49
49
  &:hover:not(:disabled) {
50
- background: ${o.colors.gray0};
50
+ background: ${r.colors.gray0};
51
51
  }
52
52
  `,A=a.span`
53
53
  display: inline-flex;
@@ -64,7 +64,7 @@ import{j as n,r as k}from"./react-Be4yVrKn.js";import{s as a,t as o,b as y,q as
64
64
  .ico {
65
65
  width: 24px;
66
66
  height: 24px;
67
- background: ${o.colors.softWhite};
67
+ background: ${r.colors.softWhite};
68
68
  }
69
69
  `,E=a.span`
70
70
  position: relative;
@@ -95,18 +95,18 @@ import{j as n,r as k}from"./react-Be4yVrKn.js";import{s as a,t as o,b as y,q as
95
95
  opacity: 0.7;
96
96
  `,ze=a.p`
97
97
  margin: -4px 0 0;
98
- font-family: ${o.font.sans};
98
+ font-family: ${r.font.sans};
99
99
  font-weight: 400;
100
100
  font-size: 12px;
101
101
  line-height: 1.4;
102
- color: ${o.colors.muted};
102
+ color: ${r.colors.muted};
103
103
  text-align: center;
104
- `;function mt({options:t,totalCents:e,onPay:i,busy:r=!1,creditsLabel:d,shortfall:c,showCreditsAmount:m=!0,creditsFallback:g=null}){const w=t.some(u=>u.method==="credits");return n.jsxs(Ce,{children:[!w&&g?n.jsx(H,{type:"button","data-testid":"pay-with-credits-topup",onClick:g.onClick,disabled:r,children:n.jsx("span",{children:g.label})}):null,t.map(u=>u.method==="credits"?n.jsxs(H,{type:"button","data-testid":"pay-with-credits",onClick:()=>i("credits"),disabled:r,children:[n.jsx("span",{children:d??y("buyModal.buy")}),m?n.jsxs(A,{children:[n.jsx(M,{}),n.jsx("span",{children:O(u.credits)})]}):null]},"credits"):u.method==="mana"?n.jsxs(B,{type:"button","data-testid":"pay-with-mana",onClick:()=>i("mana"),disabled:r,children:[n.jsx("span",{children:y("buyModal.buyWithMana")}),n.jsxs(A,{children:[n.jsx(E,{children:n.jsx("img",{src:I,alt:"","aria-hidden":!0})}),n.jsx("span",{children:T(u.manaWei)})]})]},"mana"):n.jsxs(B,{type:"button","data-testid":"pay-with-combined",onClick:()=>i("combined"),disabled:r,children:[n.jsx("span",{children:y("buyModal.buyWith")}),n.jsxs(A,{children:[n.jsx(M,{}),n.jsx("span",{children:O(u.credits)}),n.jsx(Ae,{children:"+"}),n.jsx(E,{children:n.jsx("img",{src:I,alt:"","aria-hidden":!0})}),n.jsx("span",{children:T(u.manaWei)}),n.jsx(Me,{children:"MANA"})]})]},"combined")),c?n.jsxs(n.Fragment,{children:[n.jsxs(B,{type:"button","data-testid":"pay-with-mana-disabled",disabled:!0,children:[n.jsx("span",{children:y("buyModal.buyWithMana")}),n.jsxs(A,{children:[n.jsx(E,{children:n.jsx("img",{src:I,alt:"","aria-hidden":!0})}),n.jsx("span",{children:T(c.manaWei)})]})]},"mana-short"),n.jsx(ze,{"data-testid":"mana-shortfall-note",children:y("buyModal.notEnoughMana")})]}):null,n.jsx("span",{hidden:!0,"data-testid":"pay-total-cents",children:e})]})}function bt(t,e){const i=(r,...d)=>void t.invalidateQueries({queryKey:e?[r,...d]:[r]});t.invalidateQueries({queryKey:["usd-balance"]}),t.invalidateQueries({queryKey:["detail-trade"]}),t.invalidateQueries({queryKey:["shop-item"]}),i("owned-token",e==null?void 0:e.contractAddress,e==null?void 0:e.tokenId),i("public-token",e==null?void 0:e.contractAddress,e==null?void 0:e.tokenId),i("item-resales",e==null?void 0:e.contractAddress,e==null?void 0:e.itemId),t.invalidateQueries({queryKey:["shop-items"]}),t.invalidateQueries({queryKey:["catalog-items"]}),t.invalidateQueries({queryKey:["overview-listings"]}),t.invalidateQueries({queryKey:["upsell-listings"]}),t.invalidateQueries({queryKey:["my-assets"]}),t.invalidateQueries({queryKey:["purchases"]}),t.invalidateQueries({queryKey:["owned-item-count"]})}const We=ce`
104
+ `;function mt({options:t,totalCents:e,onPay:i,busy:o=!1,creditsLabel:d,shortfall:c,showCreditsAmount:m=!0,creditsFallback:g=null}){const w=t.some(u=>u.method==="credits");return n.jsxs(Ce,{children:[!w&&g?n.jsx(H,{type:"button","data-testid":"pay-with-credits-topup",onClick:g.onClick,disabled:o,children:n.jsx("span",{children:g.label})}):null,t.map(u=>u.method==="credits"?n.jsxs(H,{type:"button","data-testid":"pay-with-credits",onClick:()=>i("credits"),disabled:o,children:[n.jsx("span",{children:d??y("buyModal.buy")}),m?n.jsxs(A,{children:[n.jsx(M,{}),n.jsx("span",{children:O(u.credits)})]}):null]},"credits"):u.method==="mana"?n.jsxs(B,{type:"button","data-testid":"pay-with-mana",onClick:()=>i("mana"),disabled:o,children:[n.jsx("span",{children:y("buyModal.buyWithMana")}),n.jsxs(A,{children:[n.jsx(E,{children:n.jsx("img",{src:I,alt:"","aria-hidden":!0})}),n.jsx("span",{children:T(u.manaWei)})]})]},"mana"):n.jsxs(B,{type:"button","data-testid":"pay-with-combined",onClick:()=>i("combined"),disabled:o,children:[n.jsx("span",{children:y("buyModal.buyWith")}),n.jsxs(A,{children:[n.jsx(M,{}),n.jsx("span",{children:O(u.credits)}),n.jsx(Ae,{children:"+"}),n.jsx(E,{children:n.jsx("img",{src:I,alt:"","aria-hidden":!0})}),n.jsx("span",{children:T(u.manaWei)}),n.jsx(Me,{children:"MANA"})]})]},"combined")),c?n.jsxs(n.Fragment,{children:[n.jsxs(B,{type:"button","data-testid":"pay-with-mana-disabled",disabled:!0,children:[n.jsx("span",{children:y("buyModal.buyWithMana")}),n.jsxs(A,{children:[n.jsx(E,{children:n.jsx("img",{src:I,alt:"","aria-hidden":!0})}),n.jsx("span",{children:T(c.manaWei)})]})]},"mana-short"),n.jsx(ze,{"data-testid":"mana-shortfall-note",children:y("buyModal.notEnoughMana")})]}):null,n.jsx("span",{hidden:!0,"data-testid":"pay-total-cents",children:e})]})}function bt(t,e){const i=(o,...d)=>void t.invalidateQueries({queryKey:e?[o,...d]:[o]});t.invalidateQueries({queryKey:["usd-balance"]}),t.invalidateQueries({queryKey:["detail-trade"]}),t.invalidateQueries({queryKey:["shop-item"]}),i("owned-token",e==null?void 0:e.contractAddress,e==null?void 0:e.tokenId),i("public-token",e==null?void 0:e.contractAddress,e==null?void 0:e.tokenId),i("item-resales",e==null?void 0:e.contractAddress,e==null?void 0:e.itemId),t.invalidateQueries({queryKey:["shop-items"]}),t.invalidateQueries({queryKey:["catalog-items"]}),t.invalidateQueries({queryKey:["overview-listings"]}),t.invalidateQueries({queryKey:["upsell-listings"]}),t.invalidateQueries({queryKey:["my-assets"]}),t.invalidateQueries({queryKey:["purchases"]}),t.invalidateQueries({queryKey:["owned-item-count"]})}const We=ce`
105
105
  to { transform: rotate(360deg); }
106
106
  `,$e=a.div`
107
107
  position: fixed;
108
108
  inset: 0;
109
- z-index: ${o.z.prompt};
109
+ z-index: ${r.z.prompt};
110
110
  display: flex;
111
111
  align-items: center;
112
112
  justify-content: center;
@@ -117,7 +117,7 @@ import{j as n,r as k}from"./react-Be4yVrKn.js";import{s as a,t as o,b as y,q as
117
117
  max-width: 100%;
118
118
  max-height: 92vh;
119
119
  overflow-y: auto;
120
- background: ${o.colors.white};
120
+ background: ${r.colors.white};
121
121
  border-radius: 16px;
122
122
  padding: 12px 16px 16px;
123
123
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
@@ -130,14 +130,14 @@ import{j as n,r as k}from"./react-Be4yVrKn.js";import{s as a,t as o,b as y,q as
130
130
  justify-content: space-between;
131
131
  gap: 8px;
132
132
  padding-bottom: 16px;
133
- border-bottom: 1px solid ${o.colors.gray4};
133
+ border-bottom: 1px solid ${r.colors.gray4};
134
134
  `,Be=a.h2`
135
135
  margin: 0;
136
- font-family: ${o.font.sans};
136
+ font-family: ${r.font.sans};
137
137
  font-weight: 600;
138
138
  font-size: 20px;
139
139
  line-height: 1.6;
140
- color: ${o.colors.text};
140
+ color: ${r.colors.text};
141
141
  `,Ee=a.button`
142
142
  flex: none;
143
143
  display: grid;
@@ -147,7 +147,7 @@ import{j as n,r as k}from"./react-Be4yVrKn.js";import{s as a,t as o,b as y,q as
147
147
  border: 0;
148
148
  background: none;
149
149
  cursor: pointer;
150
- color: ${o.colors.text};
150
+ color: ${r.colors.text};
151
151
 
152
152
  .ico {
153
153
  width: 18px;
@@ -158,13 +158,13 @@ import{j as n,r as k}from"./react-Be4yVrKn.js";import{s as a,t as o,b as y,q as
158
158
  cursor: default;
159
159
  }
160
160
  &:focus-visible {
161
- outline: 2px solid ${o.colors.accent};
161
+ outline: 2px solid ${r.colors.accent};
162
162
  outline-offset: 2px;
163
163
  }
164
164
  `,Se=a.span`
165
165
  margin-left: auto;
166
166
  margin-right: 12px;
167
- color: ${o.colors.muted};
167
+ color: ${r.colors.muted};
168
168
  font-size: 14px;
169
169
  white-space: nowrap;
170
170
  `,Ne=a.div`
@@ -173,19 +173,19 @@ import{j as n,r as k}from"./react-Be4yVrKn.js";import{s as a,t as o,b as y,q as
173
173
  align-items: center;
174
174
  gap: 14px;
175
175
  padding: 14px 18px;
176
- background: ${o.colors.white};
177
- border: 1px solid ${o.colors.line};
176
+ background: ${r.colors.white};
177
+ border: 1px solid ${r.colors.line};
178
178
  border-radius: 16px;
179
179
  `,Pe=a.div`
180
180
  width: 44px;
181
181
  height: 44px;
182
182
  border-radius: 10px;
183
- background: ${o.colors.media};
183
+ background: ${r.colors.media};
184
184
  overflow: hidden;
185
185
  display: flex;
186
186
  align-items: center;
187
187
  justify-content: center;
188
- color: ${o.colors.muted2};
188
+ color: ${r.colors.muted2};
189
189
 
190
190
  img {
191
191
  width: 100%;
@@ -203,32 +203,32 @@ import{j as n,r as k}from"./react-Be4yVrKn.js";import{s as a,t as o,b as y,q as
203
203
  gap: 4px;
204
204
  `,Ve=a.span`
205
205
  font-weight: 700;
206
- color: ${o.colors.text};
206
+ color: ${r.colors.text};
207
207
  `,qe=a.span`
208
208
  font-size: 13px;
209
209
  line-height: 1.45;
210
- color: ${o.colors.muted};
210
+ color: ${r.colors.muted};
211
211
  `,De=a.p`
212
212
  margin: 0;
213
213
  font-size: 12px;
214
214
  line-height: 1.5;
215
- color: ${o.colors.muted2};
215
+ color: ${r.colors.muted2};
216
216
  `,Le=a.div`
217
217
  display: flex;
218
218
  gap: 12px;
219
219
 
220
- ${o.media.maxWidth("mobile")} {
220
+ ${r.media.maxWidth("mobile")} {
221
221
  flex-direction: column-reverse;
222
222
  }
223
223
  `,Oe=a.button`
224
224
  flex: 1 1 0;
225
225
  height: 48px;
226
- border: 2px solid ${o.colors.accent};
226
+ border: 2px solid ${r.colors.accent};
227
227
  border-radius: 12px;
228
228
  background: transparent;
229
- color: ${o.colors.accent};
229
+ color: ${r.colors.accent};
230
230
  cursor: pointer;
231
- font-family: ${o.font.sans};
231
+ font-family: ${r.font.sans};
232
232
  font-weight: 600;
233
233
  font-size: 13px;
234
234
  line-height: 24px;
@@ -243,7 +243,7 @@ import{j as n,r as k}from"./react-Be4yVrKn.js";import{s as a,t as o,b as y,q as
243
243
  opacity: 0.5;
244
244
  }
245
245
  &:focus-visible {
246
- outline: 2px solid ${o.colors.accent};
246
+ outline: 2px solid ${r.colors.accent};
247
247
  outline-offset: 2px;
248
248
  }
249
249
  `,Xe=a.button`
@@ -255,10 +255,10 @@ import{j as n,r as k}from"./react-Be4yVrKn.js";import{s as a,t as o,b as y,q as
255
255
  height: 48px;
256
256
  border: 0;
257
257
  border-radius: 12px;
258
- background: ${o.colors.accent};
259
- color: ${o.colors.softWhite};
258
+ background: ${r.colors.accent};
259
+ color: ${r.colors.softWhite};
260
260
  cursor: pointer;
261
- font-family: ${o.font.sans};
261
+ font-family: ${r.font.sans};
262
262
  font-weight: 600;
263
263
  font-size: 13px;
264
264
  line-height: 24px;
@@ -266,14 +266,14 @@ import{j as n,r as k}from"./react-Be4yVrKn.js";import{s as a,t as o,b as y,q as
266
266
  text-transform: uppercase;
267
267
 
268
268
  &:hover:not(:disabled) {
269
- background: ${o.colors.accentHover};
269
+ background: ${r.colors.accentHover};
270
270
  }
271
271
  &:disabled {
272
272
  cursor: default;
273
273
  background: rgba(105, 31, 169, 0.4);
274
274
  }
275
275
  &:focus-visible {
276
- outline: 2px solid ${o.colors.accent};
276
+ outline: 2px solid ${r.colors.accent};
277
277
  outline-offset: 2px;
278
278
  }
279
279
  `,He=a.span`
@@ -281,13 +281,13 @@ import{j as n,r as k}from"./react-Be4yVrKn.js";import{s as a,t as o,b as y,q as
281
281
  height: 16px;
282
282
  border-radius: 50%;
283
283
  border: 2px solid rgba(255, 255, 255, 0.5);
284
- border-top-color: ${o.colors.white};
284
+ border-top-color: ${r.colors.white};
285
285
  animation: ${We} 0.7s linear infinite;
286
286
 
287
287
  @media (prefers-reduced-motion: reduce) {
288
288
  animation: none;
289
289
  }
290
- `;function wt({auth:t,signer:e,step:i,title:r,reason:d,name:c,image:m,icon:g,onAuthorized:w,onCancel:u,onClose:x}){const[f,p]=k.useState(!1),[l,v]=k.useState(null);async function b(){p(!0),v(null);try{await xe({auth:t,signer:e,active:!0}),w()}catch(h){fe(h)?v(y("authorizeStep.errorRejected")):(N(h,{flow:"authorize_step",kind:t.kind}),v(y("authorizeStep.errorGeneric"))),p(!1)}}return n.jsx($e,{onClick:f?void 0:x,role:"presentation","data-testid":"authorize-step-scrim",children:n.jsxs(Te,{onClick:h=>h.stopPropagation(),role:"dialog","aria-modal":"true","aria-label":r,children:[n.jsxs(Ie,{children:[n.jsx(Be,{children:r}),i&&i.total>1?n.jsx(Se,{"data-testid":"authorize-step-count",children:y("authorizeStep.stepOf",{index:i.index,total:i.total})}):null,n.jsx(Ee,{onClick:x,disabled:f,"aria-label":y("authorizeStep.close"),children:n.jsx(K,{name:"close",className:"ico"})})]}),n.jsxs(Ne,{"data-testid":"authorize-step-row",children:[n.jsx(Pe,{children:m?n.jsx("img",{src:m,alt:""}):g}),n.jsxs(Fe,{children:[n.jsx(Ve,{title:c,children:c}),n.jsx(qe,{children:d})]})]}),n.jsx(De,{children:y("authorizeStep.note")}),n.jsx(me,{message:l}),n.jsxs(Le,{children:[n.jsx(Oe,{type:"button",onClick:u,disabled:f,children:y("authorizeStep.cancel")}),n.jsx(Xe,{type:"button","data-testid":"authorize-step-action",onClick:()=>void b(),disabled:f,children:f?n.jsxs(n.Fragment,{children:[n.jsx(He,{"aria-hidden":!0}),y("authorizeStep.authorizing")]}):y("authorizeStep.authorize")})]})]})})}const yt="data:image/webp;base64,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",vt="https://cdn.decentraland.org/@dcl/shop/1.7.1-31581211421.commit-e34f22c/_assets/buy-error-22UunaPC.png";function Re(t,e){return(t+e-1n)/e}function Ke(t,e,i){return t<=0||e<=0?0n:t>=e?i:Re(i*BigInt(t),BigInt(e))}function kt(t){var u,x,f;const e=Number.isFinite(t.priceCents)?Math.max(0,Math.trunc(t.priceCents)):0,i=Number.isFinite(t.balanceCents)?Math.max(0,Math.trunc(t.balanceCents)):0,r=t.priceManaWei>0n?t.priceManaWei:0n,d=t.manaBalanceWei>0n?t.manaBalanceWei:0n;if(e<=0)return{options:[],preferred:null,manaShortfall:null};const c=[];if(i>=e&&c.push({method:"credits",creditsCents:e,credits:le(e),manaWei:0n}),r>0n&&i>0&&i<e){const p=e-i,l=Ke(p,e,r);d>=l&&c.push({method:"combined",creditsCents:i,credits:pe(i),manaWei:l})}r>0n&&d>=r&&c.push({method:"mana",creditsCents:0,credits:0,manaWei:r});const m=((u=c.find(p=>p.method==="credits"))==null?void 0:u.method)??((x=c.find(p=>p.method==="combined"))==null?void 0:x.method)??((f=c.find(p=>p.method==="mana"))==null?void 0:f.method)??null,w=!c.some(p=>p.method==="mana"||p.method==="combined")&&r>0n&&d>0n?{manaWei:d,manaCents:Qe(d,e,r),priceCents:e}:null;return{options:c,preferred:m,manaShortfall:w}}function Qe(t,e,i){return Number(t*BigInt(e)/i)}function jt(t,e){let i=Number.isFinite(e)?Math.max(0,Math.trunc(e)):0;return t.map(r=>{const d=Number.isFinite(r)?Math.max(0,Math.trunc(r)):0,c=Math.min(d,i);return i-=c,c})}function Ct(t,e){return t.options.find(i=>i.method===e)??null}async function Mt(t){const[e]=await oe({...t,trades:[t.trade]});return e}async function At(t){const[e]=await oe({...t,trades:[],mints:[t.mint]});return e}async function oe(t){const{trades:e,mints:i=[],buyer:r,signer:d,onSigned:c,manaWei:m}=t;if(e.length===0&&i.length===0)throw new Error("No items to buy");const g=new Map;for(const x of e){const f=`${x.chainId}:${x.contract.toLowerCase()}`,p=g.get(f);p?p.push(x):g.set(f,[x])}const w=new Map;for(const x of i){const f=w.get(x.chainId);f?f.push(x):w.set(x.chainId,[x])}const u=[];for(const x of g.values())u.push(await Ue({trades:x,buyer:r,signer:d,onSigned:c,requiredManaWei:m}));for(const[x,f]of w){const p=m??f.reduce((l,v)=>l+BigInt(v.item.priceWei),0n);u.push(await Ze({mints:f,chainId:x,buyer:r,signer:d,onSigned:c,requiredManaWei:p}))}return u}async function Ue(t){const{trades:e,buyer:i,signer:r,onSigned:d,requiredManaWei:c}=t,m=e[0],g=j(Q(m.contract),m.chainId),w=j(C.MANAToken,m.chainId);await P({auth:{kind:F.Allowance,contractAddress:w.address,spenderAddress:g.address,chainId:m.chainId},signer:r,requiredWei:c});const u=e.map(l=>we(l,i));if(W.enabled)try{const l=new ke(g.abi).encodeFunctionData("accept",[u]),v=Z(),b=J(r.provider,v),h=await ee(b,v,l,g,{serverURL:W.relayerUrl});return d==null||d(),await G(h,"the MANA purchase"),h}catch(l){if(l instanceof te&&l.code===ae.USER_DENIED||l instanceof Y)throw l;N(l,{flow:"buy_mana",step:"gasless_fallback"})}await U(r.provider,m.chainId);const f=await new ne(g.address,g.abi,r).accept(u,_(m.chainId));return d==null||d(),(await f.wait()).transactionHash}async function Ze(t){const{mints:e,chainId:i,buyer:r,signer:d,onSigned:c,requiredManaWei:m}=t,g=j(C.CollectionStore,i),w=j(C.MANAToken,i),u=e.map(l=>l.item);if(await P({auth:{kind:F.Allowance,contractAddress:w.address,spenderAddress:g.address,chainId:i},signer:d,requiredWei:m}),W.enabled)try{const l=ye(u,r,g.abi),v=Z(),b=J(d.provider,v),h=await ee(b,v,l,g,{serverURL:W.relayerUrl});return c==null||c(),await G(h,"the MANA purchase"),h}catch(l){if(l instanceof te&&l.code===ae.USER_DENIED||l instanceof Y)throw l;N(l,{flow:"buy_mint_mana",step:"gasless_fallback"})}await U(d.provider,i);const f=await new ne(g.address,g.abi,d).buy(ve(u,r),_(i));return c==null||c(),(await f.wait()).transactionHash}async function zt(t){const{trade:e,...i}=t;return re({target:{kind:"trade",trade:e},...i})}async function Wt(t){const{mint:e,...i}=t;return re({target:{kind:"store",mint:e},...i})}async function re(t){const{target:e,buyer:i,signer:r,credits:d,manaGapWei:c,onBroadcast:m,onReverted:g}=t;if(d.length===0)throw new Error("No credits to spend — use the MANA-only rail for that");if(c<=0n)throw new Error("No MANA gap to cover — use the credits-only rail for that");const w=se(e),u=j(C.MANAToken,w),x=j(C.CreditsManager,w);await P({auth:{kind:F.Allowance,contractAddress:u.address,spenderAddress:x.address,chainId:w},signer:r,requiredWei:c});const p=(d.reduce((l,v)=>l+BigInt(v.availableAmount),0n)+c).toString();return be({purchase:Je(e,d,p),buyer:i,signer:r,onBroadcast:m,onReverted:g})}function se(t){return t.kind==="trade"?t.trade.chainId:t.mint.chainId}function Je(t,e,i){return t.kind==="trade"?{kind:"trade",trade:t.trade,credits:e,maxCreditedValue:i}:{kind:"store",item:t.mint.item,chainId:t.mint.chainId,credits:e,maxCreditedValue:i}}function $t(t,e){const i=se(e);return t==="combined"?{spender:j(C.CreditsManager,i).address,chainId:i}:{spender:e.kind==="trade"?j(Q(e.trade.contract),i).address:j(C.CollectionStore,i).address,chainId:i}}function Tt(t){return n.jsx("svg",{viewBox:"0 0 18 18",width:"18",height:"18","aria-hidden":!0,...t,children:n.jsx("path",{d:"M4 4l10 10M14 4L4 14",stroke:"#161518",strokeWidth:"1.8",strokeLinecap:"round"})})}function It(t){return n.jsx("svg",{viewBox:"0 0 20 20",width:"24",height:"24","aria-hidden":!0,...t,children:n.jsx("path",{fill:"#f48221",d:"M10 0a10 10 0 1 1 0 20 10 10 0 0 1 0-20Zm0 2a8 8 0 1 0 0 16 8 8 0 0 0 0-16Zm0 11a1 1 0 1 1 0 2 1 1 0 0 1 0-2Zm0-8a1 1 0 0 1 1 1v5a1 1 0 1 1-2 0V6a1 1 0 0 1 1-1Z"})})}const{colors:s,gradients:V,radius:de,z:Ge}=o,Bt=a.div`
290
+ `;function wt({auth:t,signer:e,step:i,title:o,reason:d,name:c,image:m,icon:g,onAuthorized:w,onCancel:u,onClose:x}){const[f,p]=k.useState(!1),[l,v]=k.useState(null);async function b(){p(!0),v(null);try{await xe({auth:t,signer:e,active:!0}),w()}catch(h){fe(h)?v(y("authorizeStep.errorRejected")):(N(h,{flow:"authorize_step",kind:t.kind}),v(y("authorizeStep.errorGeneric"))),p(!1)}}return n.jsx($e,{onClick:f?void 0:x,role:"presentation","data-testid":"authorize-step-scrim",children:n.jsxs(Te,{onClick:h=>h.stopPropagation(),role:"dialog","aria-modal":"true","aria-label":o,children:[n.jsxs(Ie,{children:[n.jsx(Be,{children:o}),i&&i.total>1?n.jsx(Se,{"data-testid":"authorize-step-count",children:y("authorizeStep.stepOf",{index:i.index,total:i.total})}):null,n.jsx(Ee,{onClick:x,disabled:f,"aria-label":y("authorizeStep.close"),children:n.jsx(K,{name:"close",className:"ico"})})]}),n.jsxs(Ne,{"data-testid":"authorize-step-row",children:[n.jsx(Pe,{children:m?n.jsx("img",{src:m,alt:""}):g}),n.jsxs(Fe,{children:[n.jsx(Ve,{title:c,children:c}),n.jsx(qe,{children:d})]})]}),n.jsx(De,{children:y("authorizeStep.note")}),n.jsx(me,{message:l}),n.jsxs(Le,{children:[n.jsx(Oe,{type:"button",onClick:u,disabled:f,children:y("authorizeStep.cancel")}),n.jsx(Xe,{type:"button","data-testid":"authorize-step-action",onClick:()=>void b(),disabled:f,children:f?n.jsxs(n.Fragment,{children:[n.jsx(He,{"aria-hidden":!0}),y("authorizeStep.authorizing")]}):y("authorizeStep.authorize")})]})]})})}const yt="data:image/webp;base64,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",vt="https://cdn.decentraland.org/@dcl/shop/1.7.1-31588909629.commit-83201d7/_assets/buy-error-22UunaPC.png";function Re(t,e){return(t+e-1n)/e}function Ke(t,e,i){return t<=0||e<=0?0n:t>=e?i:Re(i*BigInt(t),BigInt(e))}function kt(t){var u,x,f;const e=Number.isFinite(t.priceCents)?Math.max(0,Math.trunc(t.priceCents)):0,i=Number.isFinite(t.balanceCents)?Math.max(0,Math.trunc(t.balanceCents)):0,o=t.priceManaWei>0n?t.priceManaWei:0n,d=t.manaBalanceWei>0n?t.manaBalanceWei:0n;if(e<=0)return{options:[],preferred:null,manaShortfall:null};const c=[];if(i>=e&&c.push({method:"credits",creditsCents:e,credits:le(e),manaWei:0n}),o>0n&&i>0&&i<e){const p=e-i,l=Ke(p,e,o);d>=l&&c.push({method:"combined",creditsCents:i,credits:pe(i),manaWei:l})}o>0n&&d>=o&&c.push({method:"mana",creditsCents:0,credits:0,manaWei:o});const m=((u=c.find(p=>p.method==="credits"))==null?void 0:u.method)??((x=c.find(p=>p.method==="combined"))==null?void 0:x.method)??((f=c.find(p=>p.method==="mana"))==null?void 0:f.method)??null,w=!c.some(p=>p.method==="mana"||p.method==="combined")&&o>0n&&d>0n?{manaWei:d,manaCents:Qe(d,e,o),priceCents:e}:null;return{options:c,preferred:m,manaShortfall:w}}function Qe(t,e,i){return Number(t*BigInt(e)/i)}function jt(t,e){let i=Number.isFinite(e)?Math.max(0,Math.trunc(e)):0;return t.map(o=>{const d=Number.isFinite(o)?Math.max(0,Math.trunc(o)):0,c=Math.min(d,i);return i-=c,c})}function Ct(t,e){return t.options.find(i=>i.method===e)??null}async function Mt(t){const[e]=await re({...t,trades:[t.trade]});return e}async function At(t){const[e]=await re({...t,trades:[],mints:[t.mint]});return e}async function re(t){const{trades:e,mints:i=[],buyer:o,signer:d,onSigned:c,manaWei:m}=t;if(e.length===0&&i.length===0)throw new Error("No items to buy");const g=new Map;for(const x of e){const f=`${x.chainId}:${x.contract.toLowerCase()}`,p=g.get(f);p?p.push(x):g.set(f,[x])}const w=new Map;for(const x of i){const f=w.get(x.chainId);f?f.push(x):w.set(x.chainId,[x])}const u=[];for(const x of g.values())u.push(await Ue({trades:x,buyer:o,signer:d,onSigned:c,requiredManaWei:m}));for(const[x,f]of w){const p=m??f.reduce((l,v)=>l+BigInt(v.item.priceWei),0n);u.push(await Ze({mints:f,chainId:x,buyer:o,signer:d,onSigned:c,requiredManaWei:p}))}return u}async function Ue(t){const{trades:e,buyer:i,signer:o,onSigned:d,requiredManaWei:c}=t,m=e[0],g=j(Q(m.contract),m.chainId),w=j(C.MANAToken,m.chainId);await P({auth:{kind:F.Allowance,contractAddress:w.address,spenderAddress:g.address,chainId:m.chainId},signer:o,requiredWei:c});const u=e.map(l=>we(l,i));if(W.enabled)try{const l=new ke(g.abi).encodeFunctionData("accept",[u]),v=Z(),b=J(o.provider,v),h=await ee(b,v,l,g,{serverURL:W.relayerUrl});return d==null||d(),await G(h,"the MANA purchase"),h}catch(l){if(l instanceof te&&l.code===ae.USER_DENIED||l instanceof Y)throw l;N(l,{flow:"buy_mana",step:"gasless_fallback"})}await U(o.provider,m.chainId);const f=await new ne(g.address,g.abi,o).accept(u,_(m.chainId));return d==null||d(),(await f.wait()).transactionHash}async function Ze(t){const{mints:e,chainId:i,buyer:o,signer:d,onSigned:c,requiredManaWei:m}=t,g=j(C.CollectionStore,i),w=j(C.MANAToken,i),u=e.map(l=>l.item);if(await P({auth:{kind:F.Allowance,contractAddress:w.address,spenderAddress:g.address,chainId:i},signer:d,requiredWei:m}),W.enabled)try{const l=ye(u,o,g.abi),v=Z(),b=J(d.provider,v),h=await ee(b,v,l,g,{serverURL:W.relayerUrl});return c==null||c(),await G(h,"the MANA purchase"),h}catch(l){if(l instanceof te&&l.code===ae.USER_DENIED||l instanceof Y)throw l;N(l,{flow:"buy_mint_mana",step:"gasless_fallback"})}await U(d.provider,i);const f=await new ne(g.address,g.abi,d).buy(ve(u,o),_(i));return c==null||c(),(await f.wait()).transactionHash}async function zt(t){const{trade:e,...i}=t;return oe({target:{kind:"trade",trade:e},...i})}async function Wt(t){const{mint:e,...i}=t;return oe({target:{kind:"store",mint:e},...i})}async function oe(t){const{target:e,buyer:i,signer:o,credits:d,manaGapWei:c,onBroadcast:m,onReverted:g}=t;if(d.length===0)throw new Error("No credits to spend — use the MANA-only rail for that");if(c<=0n)throw new Error("No MANA gap to cover — use the credits-only rail for that");const w=se(e),u=j(C.MANAToken,w),x=j(C.CreditsManager,w);await P({auth:{kind:F.Allowance,contractAddress:u.address,spenderAddress:x.address,chainId:w},signer:o,requiredWei:c});const p=(d.reduce((l,v)=>l+BigInt(v.availableAmount),0n)+c).toString();return be({purchase:Je(e,d,p),buyer:i,signer:o,onBroadcast:m,onReverted:g})}function se(t){return t.kind==="trade"?t.trade.chainId:t.mint.chainId}function Je(t,e,i){return t.kind==="trade"?{kind:"trade",trade:t.trade,credits:e,maxCreditedValue:i}:{kind:"store",item:t.mint.item,chainId:t.mint.chainId,credits:e,maxCreditedValue:i}}function $t(t,e){const i=se(e);return t==="combined"?{spender:j(C.CreditsManager,i).address,chainId:i}:{spender:e.kind==="trade"?j(Q(e.trade.contract),i).address:j(C.CollectionStore,i).address,chainId:i}}function Tt(t){return n.jsx("svg",{viewBox:"0 0 18 18",width:"18",height:"18","aria-hidden":!0,...t,children:n.jsx("path",{d:"M4 4l10 10M14 4L4 14",stroke:"#161518",strokeWidth:"1.8",strokeLinecap:"round"})})}function It(t){return n.jsx("svg",{viewBox:"0 0 20 20",width:"24",height:"24","aria-hidden":!0,...t,children:n.jsx("path",{fill:"#f48221",d:"M10 0a10 10 0 1 1 0 20 10 10 0 0 1 0-20Zm0 2a8 8 0 1 0 0 16 8 8 0 0 0 0-16Zm0 11a1 1 0 1 1 0 2 1 1 0 0 1 0-2Zm0-8a1 1 0 0 1 1 1v5a1 1 0 1 1-2 0V6a1 1 0 0 1 1-1Z"})})}const{colors:s,gradients:V,radius:de,z:Ge}=r,Bt=a.div`
291
291
  position: fixed;
292
292
  inset: 0;
293
293
  z-index: ${Ge.overlay};
@@ -390,7 +390,7 @@ import{j as n,r as k}from"./react-Be4yVrKn.js";import{s as a,t as o,b as y,q as
390
390
  gap: 24px;
391
391
  align-items: center;
392
392
 
393
- ${o.media.maxWidth("mobile")} {
393
+ ${r.media.maxWidth("mobile")} {
394
394
  gap: 12px;
395
395
  }
396
396
  `,Rt=a.div`
@@ -410,7 +410,7 @@ import{j as n,r as k}from"./react-Be4yVrKn.js";import{s as a,t as o,b as y,q as
410
410
  filter: drop-shadow(0.7px 2.9px 3.7px rgba(0, 0, 0, 0.1));
411
411
  }
412
412
 
413
- ${o.media.maxWidth("mobile")} {
413
+ ${r.media.maxWidth("mobile")} {
414
414
  width: 78px;
415
415
  height: 78px;
416
416
  border-radius: 7px;
@@ -430,7 +430,7 @@ import{j as n,r as k}from"./react-Be4yVrKn.js";import{s as a,t as o,b as y,q as
430
430
  overflow: hidden;
431
431
  text-overflow: ellipsis;
432
432
 
433
- ${o.media.maxWidth("mobile")} {
433
+ ${r.media.maxWidth("mobile")} {
434
434
  font-size: 16px;
435
435
  }
436
436
  `,Ut=a(he)`
@@ -438,7 +438,7 @@ import{j as n,r as k}from"./react-Be4yVrKn.js";import{s as a,t as o,b as y,q as
438
438
  line-height: 1.43;
439
439
  color: ${s.muted};
440
440
 
441
- ${o.media.maxWidth("mobile")} {
441
+ ${r.media.maxWidth("mobile")} {
442
442
  font-size: 10px;
443
443
  }
444
444
  `,Zt=a.div`
@@ -453,7 +453,7 @@ import{j as n,r as k}from"./react-Be4yVrKn.js";import{s as a,t as o,b as y,q as
453
453
  color: ${s.text2};
454
454
  }
455
455
 
456
- ${o.media.maxWidth("mobile")} {
456
+ ${r.media.maxWidth("mobile")} {
457
457
  & span {
458
458
  font-size: 20px;
459
459
  }
@@ -474,7 +474,7 @@ import{j as n,r as k}from"./react-Be4yVrKn.js";import{s as a,t as o,b as y,q as
474
474
  flex-shrink: 0;
475
475
  }
476
476
 
477
- ${o.media.maxWidth("mobile")} {
477
+ ${r.media.maxWidth("mobile")} {
478
478
  align-items: center;
479
479
  gap: 8px;
480
480
  padding: 12px 8px;
@@ -512,7 +512,7 @@ import{j as n,r as k}from"./react-Be4yVrKn.js";import{s as a,t as o,b as y,q as
512
512
  sharing a line and claimed a full row: the four landed 2/1/1, three rows tall. That extra row is
513
513
  also what pushed the total under the sticky CTAs. The tracks are minmax(0, 1fr), not 1fr, so a
514
514
  long price shrinks the text inside the tile instead of widening the column past the card. */
515
- ${o.media.maxWidth("mobile")} {
515
+ ${r.media.maxWidth("mobile")} {
516
516
  display: grid;
517
517
  grid-template-columns: repeat(2, minmax(0, 1fr));
518
518
  gap: 16px 12px;
@@ -555,7 +555,7 @@ import{j as n,r as k}from"./react-Be4yVrKn.js";import{s as a,t as o,b as y,q as
555
555
  transform: scale(1.03);
556
556
  }
557
557
 
558
- ${o.media.maxWidth("mobile")} {
558
+ ${r.media.maxWidth("mobile")} {
559
559
  height: 83px;
560
560
  gap: 6px;
561
561
  /* A grid item defaults to min-width:auto, which would let the widest price push the tile out of
@@ -579,13 +579,13 @@ import{j as n,r as k}from"./react-Be4yVrKn.js";import{s as a,t as o,b as y,q as
579
579
  `,ia=a.span`
580
580
  font-size: 14px;
581
581
  color: ${s.text};
582
- `,oa=a.div`
582
+ `,ra=a.div`
583
583
  display: flex;
584
584
  align-items: center;
585
585
  justify-content: space-between;
586
586
  border-top: 1px solid ${s.gray4};
587
587
  padding-top: 12px;
588
- `,ra=a.div`
588
+ `,oa=a.div`
589
589
  display: flex;
590
590
  align-items: center;
591
591
  gap: 8px;
@@ -773,7 +773,7 @@ import{j as n,r as k}from"./react-Be4yVrKn.js";import{s as a,t as o,b as y,q as
773
773
  text-align: center;
774
774
  }
775
775
  }
776
- `,{colors:q,media:z}=o,Ye=a.section`
776
+ `,{colors:q,media:z}=r,Ye=a.section`
777
777
  margin-top: 40px;
778
778
  `,_e=a.div`
779
779
  display: flex;
@@ -879,13 +879,13 @@ import{j as n,r as k}from"./react-Be4yVrKn.js";import{s as a,t as o,b as y,q as
879
879
  ${z.maxWidth("sm")} {
880
880
  grid-auto-columns: calc((100% - 16px) / 2);
881
881
  }
882
- `,ot=a.div`
882
+ `,rt=a.div`
883
883
  display: flex;
884
884
  align-items: center;
885
885
  justify-content: center;
886
886
  gap: 8px;
887
887
  margin-top: 18px;
888
- `,rt=a.button`
888
+ `,ot=a.button`
889
889
  width: 10px;
890
890
  height: 10px;
891
891
  border-radius: 50%;
@@ -907,5 +907,5 @@ import{j as n,r as k}from"./react-Be4yVrKn.js";import{s as a,t as o,b as y,q as
907
907
  opacity: 1;
908
908
  transform: scale(1.1);
909
909
  }
910
- `;function ya({title:t,items:e,onViewAll:i}){const r=k.useRef(null),[d,c]=k.useState(1),[m,g]=k.useState(0),[w,u]=k.useState(!0),[x,f]=k.useState(!1),p=k.useCallback(()=>{const b=r.current;if(!b)return;const{scrollLeft:h,scrollWidth:D,clientWidth:$}=b,L=Math.max(1,Math.ceil(D/$));c(L),g(Math.min(L-1,Math.round(h/$))),u(h<=1),f(h+$>=D-1)},[]);if(k.useEffect(()=>{p();const b=r.current;if(b)return b.addEventListener("scroll",p,{passive:!0}),window.addEventListener("resize",p),()=>{b.removeEventListener("scroll",p),window.removeEventListener("resize",p)}},[p,e.length]),e.length===0)return null;function l(b){const h=r.current;h&&h.scrollBy({left:b*h.clientWidth,behavior:"smooth"})}function v(b){const h=r.current;h&&h.scrollTo({left:b*h.clientWidth,behavior:"smooth"})}return n.jsxs(Ye,{"data-testid":"carousel",children:[n.jsxs(_e,{children:[n.jsx(et,{children:t}),i?n.jsxs(tt,{onClick:i,children:[y("collectionCarousel.viewAll"),n.jsx(at,{name:"chevron-down",size:16})]}):null]}),n.jsxs(nt,{children:[n.jsx(R,{"data-side":"left",onClick:()=>l(-1),"aria-label":y("collectionCarousel.scrollLeft"),disabled:w,children:n.jsx("img",{src:X,alt:"","aria-hidden":!0})}),n.jsx(it,{ref:r,children:e.map(b=>n.jsx(ge,{item:b},b.id))}),n.jsx(R,{"data-side":"right",onClick:()=>l(1),"aria-label":y("collectionCarousel.scrollRight"),disabled:x,children:n.jsx("img",{src:X,alt:"","aria-hidden":!0})})]}),d>1?n.jsx(ot,{"aria-label":y("collectionCarousel.pages"),children:Array.from({length:d}).map((b,h)=>n.jsx(rt,{"data-active":h===m||void 0,"aria-label":y("collectionCarousel.goToPage",{page:h+1}),"aria-current":h===m?"true":void 0,onClick:()=>v(h)},h))}):null]})}export{oe as $,Ht as A,qt as B,St as C,aa as D,yt as E,na as F,ia as G,Nt as H,oa as I,ra as J,sa as K,pa as L,Bt as M,da as N,kt as O,mt as P,ft as Q,ya as R,Et as S,Ft as T,wt as U,I as V,Gt as W,Vt as X,xt as Y,bt as Z,$t as _,Pt as a,jt as a0,Ke as a1,Je as a2,se as a3,ba as a4,wa as a5,Ct as a6,Mt as a7,At as a8,zt as a9,Wt as aa,Tt as b,Dt as c,Lt as d,Ot as e,Xt as f,ha as g,ua as h,vt as i,ga as j,ca as k,la as l,xa as m,fa as n,ma as o,It as p,Yt as q,_t as r,Rt as s,Kt as t,Qt as u,Ut as v,Zt as w,Jt as x,ea as y,ta as z};
911
- //# sourceMappingURL=CollectionCarousel-CanarvWs.js.map
910
+ `;function ya({title:t,items:e,onViewAll:i}){const o=k.useRef(null),[d,c]=k.useState(1),[m,g]=k.useState(0),[w,u]=k.useState(!0),[x,f]=k.useState(!1),p=k.useCallback(()=>{const b=o.current;if(!b)return;const{scrollLeft:h,scrollWidth:D,clientWidth:$}=b,L=Math.max(1,Math.ceil(D/$));c(L),g(Math.min(L-1,Math.round(h/$))),u(h<=1),f(h+$>=D-1)},[]);if(k.useEffect(()=>{p();const b=o.current;if(b)return b.addEventListener("scroll",p,{passive:!0}),window.addEventListener("resize",p),()=>{b.removeEventListener("scroll",p),window.removeEventListener("resize",p)}},[p,e.length]),e.length===0)return null;function l(b){const h=o.current;h&&h.scrollBy({left:b*h.clientWidth,behavior:"smooth"})}function v(b){const h=o.current;h&&h.scrollTo({left:b*h.clientWidth,behavior:"smooth"})}return n.jsxs(Ye,{"data-testid":"carousel",children:[n.jsxs(_e,{children:[n.jsx(et,{children:t}),i?n.jsxs(tt,{onClick:i,children:[y("collectionCarousel.viewAll"),n.jsx(at,{name:"chevron-down",size:16})]}):null]}),n.jsxs(nt,{children:[n.jsx(R,{"data-side":"left",onClick:()=>l(-1),"aria-label":y("collectionCarousel.scrollLeft"),disabled:w,children:n.jsx("img",{src:X,alt:"","aria-hidden":!0})}),n.jsx(it,{ref:o,children:e.map(b=>n.jsx(ge,{item:b},b.id))}),n.jsx(R,{"data-side":"right",onClick:()=>l(1),"aria-label":y("collectionCarousel.scrollRight"),disabled:x,children:n.jsx("img",{src:X,alt:"","aria-hidden":!0})})]}),d>1?n.jsx(rt,{"aria-label":y("collectionCarousel.pages"),children:Array.from({length:d}).map((b,h)=>n.jsx(ot,{"data-active":h===m||void 0,"aria-label":y("collectionCarousel.goToPage",{page:h+1}),"aria-current":h===m?"true":void 0,onClick:()=>v(h)},h))}):null]})}export{re as $,Ht as A,qt as B,St as C,aa as D,yt as E,na as F,ia as G,Nt as H,ra as I,oa as J,sa as K,pa as L,Bt as M,da as N,kt as O,mt as P,ft as Q,ya as R,Et as S,Ft as T,wt as U,I as V,Gt as W,Vt as X,xt as Y,bt as Z,$t as _,Pt as a,jt as a0,Ke as a1,Je as a2,se as a3,ba as a4,wa as a5,Ct as a6,Mt as a7,At as a8,zt as a9,Wt as aa,Tt as b,Dt as c,Lt as d,Ot as e,Xt as f,ha as g,ua as h,vt as i,ga as j,ca as k,la as l,xa as m,fa as n,ma as o,It as p,Yt as q,_t as r,Rt as s,Kt as t,Qt as u,Ut as v,Zt as w,Jt as x,ea as y,ta as z};
911
+ //# sourceMappingURL=CollectionCarousel-C_Eat7_D.js.map
@@ -1,5 +1,5 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["_assets/index.es-Ca0rjYkC.js","_assets/react-Be4yVrKn.js"])))=>i.map(i=>d[i]);
2
- import{s,_ as a}from"./index-DpiavbfG.js";import{r as n,j as i}from"./react-Be4yVrKn.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="74eb0b6c-47a3-49ba-9713-b9aa32ed10b4",e._sentryDebugIdIdentifier="sentry-dbid-74eb0b6c-47a3-49ba-9713-b9aa32ed10b4")}catch{}})();const o=s.div`
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["_assets/index.es-stHeeAlu.js","_assets/react-kphusOoP.js"])))=>i.map(i=>d[i]);
2
+ import{s,_ as a}from"./index-pK0njIsP.js";import{r as n,j as i}from"./react-kphusOoP.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="74eb0b6c-47a3-49ba-9713-b9aa32ed10b4",e._sentryDebugIdIdentifier="sentry-dbid-74eb0b6c-47a3-49ba-9713-b9aa32ed10b4")}catch{}})();const o=s.div`
3
3
  position: fixed;
4
4
  inset: 0;
5
5
  /**
@@ -14,5 +14,5 @@ import{s,_ as a}from"./index-DpiavbfG.js";import{r as n,j as i}from"./react-Be4y
14
14
  */
15
15
  z-index: -1;
16
16
  pointer-events: none;
17
- `,r=n.lazy(async()=>{const[{default:e},{default:t}]=await Promise.all([a(()=>import("./index.es-Ca0rjYkC.js"),__vite__mapDeps([0,1])),a(()=>import("./confettiAnimation-Btd6HRFo.js"),[])]);return{default:()=>i.jsx(e,{animationData:t,loop:1})}});function u(){const[e]=n.useState(()=>{var t;return!((t=window.matchMedia)!=null&&t.call(window,"(prefers-reduced-motion: reduce)").matches)});return e?i.jsx(o,{"aria-hidden":!0,"data-testid":"confetti",children:i.jsx(n.Suspense,{fallback:null,children:i.jsx(r,{})})}):null}export{u as C};
18
- //# sourceMappingURL=Confetti-C3txAlaB.js.map
17
+ `,r=n.lazy(async()=>{const[{default:e},{default:t}]=await Promise.all([a(()=>import("./index.es-stHeeAlu.js"),__vite__mapDeps([0,1])),a(()=>import("./confettiAnimation-Btd6HRFo.js"),[])]);return{default:()=>i.jsx(e,{animationData:t,loop:1})}});function u(){const[e]=n.useState(()=>{var t;return!((t=window.matchMedia)!=null&&t.call(window,"(prefers-reduced-motion: reduce)").matches)});return e?i.jsx(o,{"aria-hidden":!0,"data-testid":"confetti",children:i.jsx(n.Suspense,{fallback:null,children:i.jsx(r,{})})}):null}export{u as C};
18
+ //# sourceMappingURL=Confetti-rdNWp3rt.js.map
@@ -1,2 +1,2 @@
1
- import{p as o}from"./sentry-BZIVACz_.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="212e6b2b-00bf-4961-b68b-1d32c6f901a6",e._sentryDebugIdIdentifier="sentry-dbid-212e6b2b-00bf-4961-b68b-1d32c6f901a6")}catch{}})();var n={};const r={ACCOUNT_TABS:[{label:"Tokens"},{label:"Activity"}],SECURE_SITE_ORIGIN:(typeof o<"u"&&typeof n<"u"?n.NEXT_PUBLIC_SECURE_SITE_ORIGIN:void 0)||"https://secure.walletconnect.org",VIEW_DIRECTION:{Next:"next",Prev:"prev"},ANIMATION_DURATIONS:{HeaderText:120},VIEWS_WITH_LEGAL_FOOTER:["Connect","ConnectWallets","OnRampTokenSelect","OnRampFiatSelect","OnRampProviders"],VIEWS_WITH_DEFAULT_FOOTER:["Networks"]};export{r as C};
2
- //# sourceMappingURL=ConstantsUtil-DSh2cSM7.js.map
1
+ import{p as o}from"./sentry-NePMG8c7.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="212e6b2b-00bf-4961-b68b-1d32c6f901a6",e._sentryDebugIdIdentifier="sentry-dbid-212e6b2b-00bf-4961-b68b-1d32c6f901a6")}catch{}})();var n={};const r={ACCOUNT_TABS:[{label:"Tokens"},{label:"Activity"}],SECURE_SITE_ORIGIN:(typeof o<"u"&&typeof n<"u"?n.NEXT_PUBLIC_SECURE_SITE_ORIGIN:void 0)||"https://secure.walletconnect.org",VIEW_DIRECTION:{Next:"next",Prev:"prev"},ANIMATION_DURATIONS:{HeaderText:120},VIEWS_WITH_LEGAL_FOOTER:["Connect","ConnectWallets","OnRampTokenSelect","OnRampFiatSelect","OnRampProviders"],VIEWS_WITH_DEFAULT_FOOTER:["Networks"]};export{r as C};
2
+ //# sourceMappingURL=ConstantsUtil-GSXpd5w5.js.map
@@ -1,2 +1,2 @@
1
- import{g as z}from"./react-Be4yVrKn.js";import{r as W}from"./index-C3bIAsJx.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]="301fc804-8c1b-4411-89d2-c1b8b4221706",s._sentryDebugIdIdentifier="sentry-dbid-301fc804-8c1b-4411-89d2-c1b8b4221706")}catch{}})();function Y(s,d){for(var F=0;F<d.length;F++){const P=d[F];if(typeof P!="string"&&!Array.isArray(P)){for(const f in P)if(f!=="default"&&!(f in s)){const m=Object.getOwnPropertyDescriptor(P,f);m&&Object.defineProperty(s,f,m.get?m:{enumerable:!0,get:()=>P[f]})}}}return Object.freeze(Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}))}var O={},L={},D={},U={},I;function G(){if(I)return U;I=1,Object.defineProperty(U,"__esModule",{value:!0}),U.createFetchComponent=P;const s=new Set([400,401,403,404]),d=new Set(["GET","HEAD","OPTIONS","PUT","DELETE"]);async function F(f,m,y){var $;const{timeout:g,retryDelay:h,abortController:S}=y,q=S.signal;let M=y.attempts,w,_;do{w=void 0,_=void 0;let b=null;try{g&&(b=setTimeout(()=>S.abort(),g)),--M,w=await fetch(f,m)}catch(n){_=n}finally{b&&clearTimeout(b)}if(w&&(w.ok||s.has(w.status))||q.aborted||M===0)break;w&&await(($=w.body)==null?void 0:$.cancel().catch(()=>{})),await new Promise(n=>setTimeout(n,h))}while(!0);if(q.aborted)throw new Error("Request aborted (timed out)");if(!w)throw _;return w}function P(f){const m=f==null?void 0:f.defaultHeaders;async function y(g,h){const{timeout:S,method:q="GET",retryDelay:M=0,abortController:w,attempts:_,...$}={...f==null?void 0:f.defaultFetcherOptions,...h},b=w||new AbortController,n=d.has(q.toUpperCase())?_??1:1,e={...$,method:q,signal:b.signal};return m&&(e.headers={...m,...$.headers||{}}),F(g,e,{timeout:S,retryDelay:M,attempts:n,abortController:b})}return{fetch:y}}return U}var H;function X(){return H||(H=1,(function(s){Object.defineProperty(s,"__esModule",{value:!0}),s.createFetchComponent=void 0;var d=G();Object.defineProperty(s,"createFetchComponent",{enumerable:!0,get:function(){return d.createFetchComponent}})})(D)),D}const J="0.0.0-development",K={version:J};var Q;function Z(){return Q||(Q=1,(function(s){Object.defineProperty(s,"__esModule",{value:!0}),s.QueryBuilder=s.sanitizeUrl=s.mergeRequestOptions=s.convertFiltersToQueryParams=s.splitValuesIntoManyQueries=s.splitValuesIntoManyQueryBuilders=s.splitAndFetchPaginated=s.splitAndFetch=s.MAX_URL_LENGTH=s.addModelToFormData=s.getCurrentVersion=void 0;const d=X(),F=K;function P(){return F.version}s.getCurrentVersion=P;function f(n,e,i=""){for(const r in n){if(!n.hasOwnProperty(r)||n[r]===null||n[r]===void 0)continue;const t=i?`${i}[${r}]`:r;n[r]instanceof Date?e.append(t,n[r].toISOString()):n[r]instanceof Array?n[r].forEach((a,o)=>{const c=`${t}[${o}]`;f(a,e,c)}):typeof n[r]=="object"?f(n[r],e,t):e.append(t,n[r].toString())}return e}s.addModelToFormData=f;function m(n){return Array.from(new Set(n))}s.MAX_URL_LENGTH=2048;async function y({baseUrl:n,path:e,queryParams:i,fetcher:r,uniqueBy:t,options:a}){r=r||(0,d.createFetchComponent)();const o=q({baseUrl:n,path:e,queryParams:i}),c=new Map;for(const u of o)(await(await r.fetch(u,{...a,headers:{"Content-Type":"application/json"}})).json()).forEach(E=>c.set(t?E[t]:c.size,E));return Array.from(c.values())}s.splitAndFetch=y;const g=7;async function h({baseUrl:n,path:e,queryParams:i,elementsProperty:r,uniqueBy:t,options:a,fetcher:o}){o=o||(0,d.createFetchComponent)();const u=q({baseUrl:n,path:e,queryParams:i,reservedParams:new Map([["offset",g]])}),C=new Map;let E=!1;for(let v=0;v<u.length&&!E;v++){let l=u[v];for(;l&&!E;)try{const p=(await o.fetch(l,a)).json();p[r].forEach(j=>C.set(j[t],j));const T=p.pagination.next;l=T?new URL(T,l).toString():void 0}catch{E=!0}}return Array.from(C.values())}s.splitAndFetchPaginated=h;function S({queryParams:n,baseUrl:e,path:i,reservedParams:r}){const t="name"in n?new Map([[n.name,n.values]]):n;if(t.size===0)return[new b(e+i,t,r)];const o=Array.from(t.entries()).map(([l,p])=>[l,m(p)]).sort(([l,p],[A,T])=>p.length-T.length),c=new b(e+i,new Map,r);for(let l=0;l<o.length-1;l++){const[p,A]=o[l];if(!c.canSetParams(p,A))throw new Error("This library can split one query param into many HTTP requests, but it can't split more than one. You will need to do that on the client side.");c.setParams(p,A)}let u=b.clone(c);const[C,E]=o[o.length-1],v=[];for(const l of E)u.canAddParam(C,l)||(v.push(u),u=b.clone(c)),u.addParam(C,l);return v.push(u),v}s.splitValuesIntoManyQueryBuilders=S;function q(n){return S(n).map(i=>i.toString())}s.splitValuesIntoManyQueries=q;function M(n){if(!n)return new Map;const e=Object.entries(n).filter(([i,r])=>!!r).map(([i,r])=>{const t=i.endsWith("s")?i.slice(0,-1):i;let a;if(Array.isArray(r))a=[...r].filter(_).map(o=>`${o}`);else if(_(r))a=[`${r}`];else throw new Error("Query params must be either a string, a number, a boolean or an array of the types just mentioned");return[t,a]}).filter(([i,r])=>r.length>0);return new Map(e)}s.convertFiltersToQueryParams=M;function w(n,e){const i={...n==null?void 0:n.headers,...e==null?void 0:e.headers};return{...n,...e,headers:i}}s.mergeRequestOptions=w;function _(n){return typeof n=="string"||typeof n=="number"||typeof n=="boolean"}function $(n){return n=n.trim(),!n.startsWith("https://")&&!n.startsWith("http://")&&(n="https://"+n),n.endsWith("/")&&(n=n.slice(0,-1)),n}s.sanitizeUrl=$;class b{constructor(e,i=new Map,r=new Map){this.baseUrl=e,this.queryParams=i,this.reservedParams=r,this.length=this.calculateUrlLength(i,r)}canAddParam(e,i){return this.length+e.length+i.length+2<s.MAX_URL_LENGTH}addParam(e,i){if(!this.canAddParam(e,i))throw new Error(`You can't add this parameter '${e}', since it would exceed the max url length`);const r=this.queryParams.get(e),t=r||[];return t.push(i),this.queryParams.set(e,t),this.length+=this.calculateAddedLength(e,[i]),this}canSetParams(e,i){const r=new Map([...this.queryParams,[e,i]]);return this.calculateUrlLength(r,this.reservedParams)<s.MAX_URL_LENGTH}setParams(e,i){if(!this.canSetParams(e,i))throw new Error(`You can't add this parameter '${e}', since it would exceed the max url length`);return this.queryParams.set(e,i.map(r=>`${r}`)),this.length=this.calculateUrlLength(this.queryParams,this.reservedParams),this}setParam(e,i){return this.setParams(e,[i]),this}toString(){let e=this.baseUrl,i=!1;for(const[r,t]of this.queryParams)for(const a of t)i?e+=`&${r}=${a}`:(e+=`?${r}=${a}`,i=!0);return e}calculateUrlLength(e,i){let r=this.baseUrl.length;for(const[t,a]of i)this.queryParams.has(t)||(r+=t.length+2+a);for(const[t,a]of e)r+=this.calculateAddedLength(t,a);return r}static clone(e){return new b(e.baseUrl,new Map(e.queryParams),e.reservedParams)}calculateAddedLength(e,i){return this.calculateArrayLength(i)+(e.length+2)*i.length}calculateArrayLength(e){return e.map(i=>`${i}`).reduce((i,r)=>i+r.length,0)}}s.QueryBuilder=b})(L)),L}var R={},V;function x(){if(V)return R;V=1,Object.defineProperty(R,"__esModule",{value:!0}),R.retry=void 0;async function s(d,F,P,f){for(;P>0;)try{return await F()}catch(m){if(P--,P>0)console.info(`Failed to ${d}. Still have ${P} attempt/s left. Will try again in ${f}`),await new Promise(y=>setTimeout(y,f));else throw m}throw new Error("Please specify more than one attempt for the retry function")}return R.retry=s,R}var N;function ee(){if(N)return O;N=1,Object.defineProperty(O,"__esModule",{value:!0}),O.createContentClient=O.downloadContent=void 0;const s=W(),d=Z(),F=x();async function P(m,y,g,h){const{attempts:S=3,retryDelay:q=500}=h||{},M=h!=null&&h.timeout?{timeout:h.timeout}:{};return(0,F.retry)(`fetch file with hash ${g} from ${y}`,async()=>{const w=await m.fetch(`${y}/${g}`,M),_=new Uint8Array(await w.arrayBuffer());if(!(h!=null&&h.avoidChecks)&&(g.startsWith("Qm")?await(0,s.hashV0)(_):await(0,s.hashV1)(_))!==g)throw new Error(`Failed to fetch file with hash ${g} from ${y}`);return _},S,q)}O.downloadContent=P;function f(m){const{fetcher:y,logger:g}=m,h=(0,d.sanitizeUrl)(m.url),S=m==null?void 0:m.parallelConfig;async function q(t,a,o){const c=new AbortController,u=c.signal,C=(0,d.mergeRequestOptions)(o,{signal:u});return new Promise(async E=>{let v=t.length;const l=()=>{v--,v===0&&E([])},p=A=>A&&Array.isArray(A)&&A.length>0?(c.abort(),E(A),!0):!1;t.forEach(async A=>{try{const T=(0,d.sanitizeUrl)(A),j=await y.fetch(`${T}${a}`,C);if(u.aborted){l();return}const B=await j.json();p(B)||l()}catch(T){u.aborted||g==null||g.warn(`Failed to fetch from ${A}:`,T),l()}})})}async function M(t,a,o){const u=(await Promise.allSettled(t.map(async l=>{try{const p=(0,d.sanitizeUrl)(l);return await(await y.fetch(`${p}${a}`,o)).json()}catch(p){return g==null||g.warn(`Failed to fetch from ${l}:`,p),[]}}))).filter(l=>l.status==="fulfilled").map(l=>l.value||[]),C=u.flatMap(l=>l),E=u.filter(l=>l.length===0).length,v=new Map;return C.forEach(l=>{(!v.has(l.id)||l.timestamp>v.get(l.id).timestamp)&&v.set(l.id,l)}),{entities:Array.from(v.values()),emptyResults:E}}async function w(t,a){const o=new FormData;o.append("entityId",t.entityId),(0,d.addModelToFormData)(t.authChain,o,"authChain");const c=await i(Array.from(t.files.keys()),a);for(const[u,C]of t.files)(!c.has(u)||u===t.entityId)&&o.append(u,new Blob([C]),u);return o}async function _(t,a){const o=await w(t,a),c=(0,d.mergeRequestOptions)(a||{},{body:o,method:"POST"});return await y.fetch(`${h}/entities`,c)}async function $(t,a){if(t.length===0)return Promise.reject("You must set at least one pointer.");const o=(0,d.mergeRequestOptions)(a||{},{body:JSON.stringify({pointers:t}),method:"POST",headers:{"Content-Type":"application/json"}});return(await y.fetch(`${h}/entities/active`,o)).json()}async function b(t,a){if(t.length===0)return Promise.reject("You must set at least one id.");const o=(0,d.mergeRequestOptions)(a||{},{body:JSON.stringify({ids:t}),method:"POST",headers:{"Content-Type":"application/json"}}),c=(a==null?void 0:a.parallel)||S;return c!=null&&c.urls&&(c==null?void 0:c.urls.length)>0?q([h,...c.urls],"/entities/active",o):(await y.fetch(`${h}/entities/active`,o)).json()}async function n(t,a){const o=await b([t],a);return o.length===0?Promise.reject(`Failed to find an entity with id '${t}'.`):o[0]}function e(t,a){return t.length===0?Promise.reject("You must set at least one cid."):(0,d.splitAndFetch)({fetcher:y,options:a,baseUrl:h,path:"/available-content",queryParams:{name:"cid",values:t},uniqueBy:"cid"})}async function i(t,a){const c=(await e(t,a)).filter(u=>u.available).map(({cid:u})=>u);return new Set(c)}async function r(t,a){const o=(a==null?void 0:a.parallel)||S;if(!(o!=null&&o.urls)||o.urls.length===0)throw new Error("Parallel configuration is required for checking pointer consistency");const c=(0,d.mergeRequestOptions)(a||{},{body:JSON.stringify({pointers:[t]}),method:"POST",headers:{"Content-Type":"application/json"}}),u=[h,...o.urls],{entities:C,emptyResults:E}=await M(u,"/entities/active",c);if(C.length===0)return{isConsistent:!0,upToDateEntities:void 0,outdatedEntities:void 0};const v=Math.max(...C.map(T=>T.timestamp)),l=C.filter(T=>T.timestamp===v),p=C.filter(T=>T.timestamp<v);return{isConsistent:p.length===0&&E===0,upToDateEntities:l.length>0?l:void 0,outdatedEntities:p.length>0?p:void 0}}return{buildEntityFormDataForDeployment:w,fetchEntitiesByPointers:$,fetchEntitiesByIds:b,fetchEntityById:n,downloadContent:(t,a)=>P(y,h+"/contents",t,a),deploy:_,isContentAvailable:e,checkPointerConsistency:r}}return O.createContentClient=f,O}var k=ee();const te=z(k),ae=Y({__proto__:null,default:te},[k]);export{ae as C};
2
- //# sourceMappingURL=ContentClient-CtZG5oO7.js.map
1
+ import{g as z}from"./react-kphusOoP.js";import{r as W}from"./index-GyRYqfnl.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]="301fc804-8c1b-4411-89d2-c1b8b4221706",s._sentryDebugIdIdentifier="sentry-dbid-301fc804-8c1b-4411-89d2-c1b8b4221706")}catch{}})();function Y(s,d){for(var F=0;F<d.length;F++){const P=d[F];if(typeof P!="string"&&!Array.isArray(P)){for(const f in P)if(f!=="default"&&!(f in s)){const m=Object.getOwnPropertyDescriptor(P,f);m&&Object.defineProperty(s,f,m.get?m:{enumerable:!0,get:()=>P[f]})}}}return Object.freeze(Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}))}var O={},L={},D={},U={},I;function G(){if(I)return U;I=1,Object.defineProperty(U,"__esModule",{value:!0}),U.createFetchComponent=P;const s=new Set([400,401,403,404]),d=new Set(["GET","HEAD","OPTIONS","PUT","DELETE"]);async function F(f,m,y){var $;const{timeout:g,retryDelay:h,abortController:S}=y,q=S.signal;let M=y.attempts,w,_;do{w=void 0,_=void 0;let b=null;try{g&&(b=setTimeout(()=>S.abort(),g)),--M,w=await fetch(f,m)}catch(n){_=n}finally{b&&clearTimeout(b)}if(w&&(w.ok||s.has(w.status))||q.aborted||M===0)break;w&&await(($=w.body)==null?void 0:$.cancel().catch(()=>{})),await new Promise(n=>setTimeout(n,h))}while(!0);if(q.aborted)throw new Error("Request aborted (timed out)");if(!w)throw _;return w}function P(f){const m=f==null?void 0:f.defaultHeaders;async function y(g,h){const{timeout:S,method:q="GET",retryDelay:M=0,abortController:w,attempts:_,...$}={...f==null?void 0:f.defaultFetcherOptions,...h},b=w||new AbortController,n=d.has(q.toUpperCase())?_??1:1,e={...$,method:q,signal:b.signal};return m&&(e.headers={...m,...$.headers||{}}),F(g,e,{timeout:S,retryDelay:M,attempts:n,abortController:b})}return{fetch:y}}return U}var H;function X(){return H||(H=1,(function(s){Object.defineProperty(s,"__esModule",{value:!0}),s.createFetchComponent=void 0;var d=G();Object.defineProperty(s,"createFetchComponent",{enumerable:!0,get:function(){return d.createFetchComponent}})})(D)),D}const J="0.0.0-development",K={version:J};var Q;function Z(){return Q||(Q=1,(function(s){Object.defineProperty(s,"__esModule",{value:!0}),s.QueryBuilder=s.sanitizeUrl=s.mergeRequestOptions=s.convertFiltersToQueryParams=s.splitValuesIntoManyQueries=s.splitValuesIntoManyQueryBuilders=s.splitAndFetchPaginated=s.splitAndFetch=s.MAX_URL_LENGTH=s.addModelToFormData=s.getCurrentVersion=void 0;const d=X(),F=K;function P(){return F.version}s.getCurrentVersion=P;function f(n,e,i=""){for(const r in n){if(!n.hasOwnProperty(r)||n[r]===null||n[r]===void 0)continue;const t=i?`${i}[${r}]`:r;n[r]instanceof Date?e.append(t,n[r].toISOString()):n[r]instanceof Array?n[r].forEach((a,o)=>{const c=`${t}[${o}]`;f(a,e,c)}):typeof n[r]=="object"?f(n[r],e,t):e.append(t,n[r].toString())}return e}s.addModelToFormData=f;function m(n){return Array.from(new Set(n))}s.MAX_URL_LENGTH=2048;async function y({baseUrl:n,path:e,queryParams:i,fetcher:r,uniqueBy:t,options:a}){r=r||(0,d.createFetchComponent)();const o=q({baseUrl:n,path:e,queryParams:i}),c=new Map;for(const u of o)(await(await r.fetch(u,{...a,headers:{"Content-Type":"application/json"}})).json()).forEach(E=>c.set(t?E[t]:c.size,E));return Array.from(c.values())}s.splitAndFetch=y;const g=7;async function h({baseUrl:n,path:e,queryParams:i,elementsProperty:r,uniqueBy:t,options:a,fetcher:o}){o=o||(0,d.createFetchComponent)();const u=q({baseUrl:n,path:e,queryParams:i,reservedParams:new Map([["offset",g]])}),C=new Map;let E=!1;for(let v=0;v<u.length&&!E;v++){let l=u[v];for(;l&&!E;)try{const p=(await o.fetch(l,a)).json();p[r].forEach(j=>C.set(j[t],j));const T=p.pagination.next;l=T?new URL(T,l).toString():void 0}catch{E=!0}}return Array.from(C.values())}s.splitAndFetchPaginated=h;function S({queryParams:n,baseUrl:e,path:i,reservedParams:r}){const t="name"in n?new Map([[n.name,n.values]]):n;if(t.size===0)return[new b(e+i,t,r)];const o=Array.from(t.entries()).map(([l,p])=>[l,m(p)]).sort(([l,p],[A,T])=>p.length-T.length),c=new b(e+i,new Map,r);for(let l=0;l<o.length-1;l++){const[p,A]=o[l];if(!c.canSetParams(p,A))throw new Error("This library can split one query param into many HTTP requests, but it can't split more than one. You will need to do that on the client side.");c.setParams(p,A)}let u=b.clone(c);const[C,E]=o[o.length-1],v=[];for(const l of E)u.canAddParam(C,l)||(v.push(u),u=b.clone(c)),u.addParam(C,l);return v.push(u),v}s.splitValuesIntoManyQueryBuilders=S;function q(n){return S(n).map(i=>i.toString())}s.splitValuesIntoManyQueries=q;function M(n){if(!n)return new Map;const e=Object.entries(n).filter(([i,r])=>!!r).map(([i,r])=>{const t=i.endsWith("s")?i.slice(0,-1):i;let a;if(Array.isArray(r))a=[...r].filter(_).map(o=>`${o}`);else if(_(r))a=[`${r}`];else throw new Error("Query params must be either a string, a number, a boolean or an array of the types just mentioned");return[t,a]}).filter(([i,r])=>r.length>0);return new Map(e)}s.convertFiltersToQueryParams=M;function w(n,e){const i={...n==null?void 0:n.headers,...e==null?void 0:e.headers};return{...n,...e,headers:i}}s.mergeRequestOptions=w;function _(n){return typeof n=="string"||typeof n=="number"||typeof n=="boolean"}function $(n){return n=n.trim(),!n.startsWith("https://")&&!n.startsWith("http://")&&(n="https://"+n),n.endsWith("/")&&(n=n.slice(0,-1)),n}s.sanitizeUrl=$;class b{constructor(e,i=new Map,r=new Map){this.baseUrl=e,this.queryParams=i,this.reservedParams=r,this.length=this.calculateUrlLength(i,r)}canAddParam(e,i){return this.length+e.length+i.length+2<s.MAX_URL_LENGTH}addParam(e,i){if(!this.canAddParam(e,i))throw new Error(`You can't add this parameter '${e}', since it would exceed the max url length`);const r=this.queryParams.get(e),t=r||[];return t.push(i),this.queryParams.set(e,t),this.length+=this.calculateAddedLength(e,[i]),this}canSetParams(e,i){const r=new Map([...this.queryParams,[e,i]]);return this.calculateUrlLength(r,this.reservedParams)<s.MAX_URL_LENGTH}setParams(e,i){if(!this.canSetParams(e,i))throw new Error(`You can't add this parameter '${e}', since it would exceed the max url length`);return this.queryParams.set(e,i.map(r=>`${r}`)),this.length=this.calculateUrlLength(this.queryParams,this.reservedParams),this}setParam(e,i){return this.setParams(e,[i]),this}toString(){let e=this.baseUrl,i=!1;for(const[r,t]of this.queryParams)for(const a of t)i?e+=`&${r}=${a}`:(e+=`?${r}=${a}`,i=!0);return e}calculateUrlLength(e,i){let r=this.baseUrl.length;for(const[t,a]of i)this.queryParams.has(t)||(r+=t.length+2+a);for(const[t,a]of e)r+=this.calculateAddedLength(t,a);return r}static clone(e){return new b(e.baseUrl,new Map(e.queryParams),e.reservedParams)}calculateAddedLength(e,i){return this.calculateArrayLength(i)+(e.length+2)*i.length}calculateArrayLength(e){return e.map(i=>`${i}`).reduce((i,r)=>i+r.length,0)}}s.QueryBuilder=b})(L)),L}var R={},V;function x(){if(V)return R;V=1,Object.defineProperty(R,"__esModule",{value:!0}),R.retry=void 0;async function s(d,F,P,f){for(;P>0;)try{return await F()}catch(m){if(P--,P>0)console.info(`Failed to ${d}. Still have ${P} attempt/s left. Will try again in ${f}`),await new Promise(y=>setTimeout(y,f));else throw m}throw new Error("Please specify more than one attempt for the retry function")}return R.retry=s,R}var N;function ee(){if(N)return O;N=1,Object.defineProperty(O,"__esModule",{value:!0}),O.createContentClient=O.downloadContent=void 0;const s=W(),d=Z(),F=x();async function P(m,y,g,h){const{attempts:S=3,retryDelay:q=500}=h||{},M=h!=null&&h.timeout?{timeout:h.timeout}:{};return(0,F.retry)(`fetch file with hash ${g} from ${y}`,async()=>{const w=await m.fetch(`${y}/${g}`,M),_=new Uint8Array(await w.arrayBuffer());if(!(h!=null&&h.avoidChecks)&&(g.startsWith("Qm")?await(0,s.hashV0)(_):await(0,s.hashV1)(_))!==g)throw new Error(`Failed to fetch file with hash ${g} from ${y}`);return _},S,q)}O.downloadContent=P;function f(m){const{fetcher:y,logger:g}=m,h=(0,d.sanitizeUrl)(m.url),S=m==null?void 0:m.parallelConfig;async function q(t,a,o){const c=new AbortController,u=c.signal,C=(0,d.mergeRequestOptions)(o,{signal:u});return new Promise(async E=>{let v=t.length;const l=()=>{v--,v===0&&E([])},p=A=>A&&Array.isArray(A)&&A.length>0?(c.abort(),E(A),!0):!1;t.forEach(async A=>{try{const T=(0,d.sanitizeUrl)(A),j=await y.fetch(`${T}${a}`,C);if(u.aborted){l();return}const B=await j.json();p(B)||l()}catch(T){u.aborted||g==null||g.warn(`Failed to fetch from ${A}:`,T),l()}})})}async function M(t,a,o){const u=(await Promise.allSettled(t.map(async l=>{try{const p=(0,d.sanitizeUrl)(l);return await(await y.fetch(`${p}${a}`,o)).json()}catch(p){return g==null||g.warn(`Failed to fetch from ${l}:`,p),[]}}))).filter(l=>l.status==="fulfilled").map(l=>l.value||[]),C=u.flatMap(l=>l),E=u.filter(l=>l.length===0).length,v=new Map;return C.forEach(l=>{(!v.has(l.id)||l.timestamp>v.get(l.id).timestamp)&&v.set(l.id,l)}),{entities:Array.from(v.values()),emptyResults:E}}async function w(t,a){const o=new FormData;o.append("entityId",t.entityId),(0,d.addModelToFormData)(t.authChain,o,"authChain");const c=await i(Array.from(t.files.keys()),a);for(const[u,C]of t.files)(!c.has(u)||u===t.entityId)&&o.append(u,new Blob([C]),u);return o}async function _(t,a){const o=await w(t,a),c=(0,d.mergeRequestOptions)(a||{},{body:o,method:"POST"});return await y.fetch(`${h}/entities`,c)}async function $(t,a){if(t.length===0)return Promise.reject("You must set at least one pointer.");const o=(0,d.mergeRequestOptions)(a||{},{body:JSON.stringify({pointers:t}),method:"POST",headers:{"Content-Type":"application/json"}});return(await y.fetch(`${h}/entities/active`,o)).json()}async function b(t,a){if(t.length===0)return Promise.reject("You must set at least one id.");const o=(0,d.mergeRequestOptions)(a||{},{body:JSON.stringify({ids:t}),method:"POST",headers:{"Content-Type":"application/json"}}),c=(a==null?void 0:a.parallel)||S;return c!=null&&c.urls&&(c==null?void 0:c.urls.length)>0?q([h,...c.urls],"/entities/active",o):(await y.fetch(`${h}/entities/active`,o)).json()}async function n(t,a){const o=await b([t],a);return o.length===0?Promise.reject(`Failed to find an entity with id '${t}'.`):o[0]}function e(t,a){return t.length===0?Promise.reject("You must set at least one cid."):(0,d.splitAndFetch)({fetcher:y,options:a,baseUrl:h,path:"/available-content",queryParams:{name:"cid",values:t},uniqueBy:"cid"})}async function i(t,a){const c=(await e(t,a)).filter(u=>u.available).map(({cid:u})=>u);return new Set(c)}async function r(t,a){const o=(a==null?void 0:a.parallel)||S;if(!(o!=null&&o.urls)||o.urls.length===0)throw new Error("Parallel configuration is required for checking pointer consistency");const c=(0,d.mergeRequestOptions)(a||{},{body:JSON.stringify({pointers:[t]}),method:"POST",headers:{"Content-Type":"application/json"}}),u=[h,...o.urls],{entities:C,emptyResults:E}=await M(u,"/entities/active",c);if(C.length===0)return{isConsistent:!0,upToDateEntities:void 0,outdatedEntities:void 0};const v=Math.max(...C.map(T=>T.timestamp)),l=C.filter(T=>T.timestamp===v),p=C.filter(T=>T.timestamp<v);return{isConsistent:p.length===0&&E===0,upToDateEntities:l.length>0?l:void 0,outdatedEntities:p.length>0?p:void 0}}return{buildEntityFormDataForDeployment:w,fetchEntitiesByPointers:$,fetchEntitiesByIds:b,fetchEntityById:n,downloadContent:(t,a)=>P(y,h+"/contents",t,a),deploy:_,isContentAvailable:e,checkPointerConsistency:r}}return O.createContentClient=f,O}var k=ee();const te=z(k),ae=Y({__proto__:null,default:te},[k]);export{ae as C};
2
+ //# sourceMappingURL=ContentClient-CqyA1XLO.js.map
@@ -1,4 +1,4 @@
1
- import{b as ce,j as e,L as Fe,e as Le,u as Me,r as L}from"./react-Be4yVrKn.js";import{u as _e,s as ze}from"./search-empty-DjMK9ahb.js";import{u as Ae,t as Y,R as Re,i as Te,j as Be,k as De,l as We,m as Oe,n as Ge,o as Ke,v as Ue,p as He,q as qe,M as Ve,r as Je,s as Qe}from"./browseLayout.styles-B5XfuBCu.js";import{t as de,bF as Ye,a5 as Z,a4 as X,s as i,bG as Ze,z as Xe,bH as et,b as o,bI as tt,bJ as ee,B as ot,A as he,$ as ue,o as rt,v as me,bK as st,bL as it,I as te,c as at,n as nt,l as lt,as as ct,M as dt,N as ht,S as M,O as A,P as oe,bM as re,bN as ut}from"./index-DpiavbfG.js";import{T as pe}from"./skeleton.styles-CD6ZE0Jg.js";import{d as mt,P as pt,C as xt,a as gt,b as ft,c as bt,e as wt}from"./collectionPage.styles-CLH0uGuY.js";import{u as yt,L as vt}from"./useStore-BFMDOUy4.js";import{L as se}from"./LoadMore-FmjpQQU3.js";import{u as ie}from"./useInfiniteGrid-DCk1zuNn.js";import{E as R}from"./ErrorNotice-ButdQJd0.js";import{c as jt,i as kt}from"./items-empty-BrN_d0qG.js";import{G as ae}from"./grid.styles-DikKXQiK.js";import"./Tooltip-BtEKpkLE.js";import"./dcl-schemas-DvvPr89r.js";import"./sentry-BZIVACz_.js";import"./ethers-DvmxokMR.js";import"./intl-AKLEHPeO.js";(function(){try{var r=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},s=new r.Error().stack;s&&(r._sentryDebugIds=r._sentryDebugIds||{},r._sentryDebugIds[s]="c53bfd91-bf6f-48ee-b163-4b86a725f39e",r._sentryDebugIdIdentifier="sentry-dbid-c53bfd91-bf6f-48ee-b163-4b86a725f39e")}catch{}})();function Ct(r){const{gridLoading:s,gridError:a,gridCount:l,baselinePending:c,baselineError:d,baselineCount:b}=r;return s?"skeletons":a?"error":l>0?"items":c?"skeletons":d?"error":b===0?"no-creations":"filters"}const{colors:w,radius:$,media:$t}=de,St=i.article`
1
+ import{b as ce,j as e,L as Fe,e as Le,u as Me,r as L}from"./react-kphusOoP.js";import{u as _e,s as ze}from"./search-empty-CUu4COfd.js";import{u as Ae,t as Y,R as Re,i as Te,j as Be,k as De,l as We,m as Oe,n as Ge,o as Ke,v as Ue,p as He,q as qe,M as Ve,r as Qe,s as Je}from"./browseLayout.styles-BOh7KWFh.js";import{t as de,bF as Ye,a6 as Z,a5 as X,s as i,bG as Ze,z as Xe,bH as et,b as o,bI as tt,bJ as ee,B as ot,A as he,a0 as ue,o as rt,v as me,bK as st,bL as it,I as te,c as at,n as nt,l as lt,at as ct,N as dt,O as ht,S as M,P as A,Q as oe,bM as re,bN as ut}from"./index-pK0njIsP.js";import{T as pe}from"./skeleton.styles-Swaf_3Kh.js";import{d as mt,P as pt,C as xt,a as gt,b as ft,c as bt,e as wt}from"./collectionPage.styles-DSeUlSA9.js";import{u as yt,L as vt}from"./useStore-Cshj1ayZ.js";import{L as se}from"./LoadMore-DcyQqB7V.js";import{u as ie}from"./useInfiniteGrid-BcNHKS4q.js";import{E as R}from"./ErrorNotice-DraAWK0D.js";import{c as jt,i as kt}from"./items-empty-DfDrX_rB.js";import{G as ae}from"./grid.styles-CG0auZKj.js";import"./Tooltip-7mi0RVwp.js";import"./dcl-schemas-oZ9h4ko3.js";import"./sentry-NePMG8c7.js";import"./ethers-9NkNazYH.js";import"./intl-AKLEHPeO.js";(function(){try{var r=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},s=new r.Error().stack;s&&(r._sentryDebugIds=r._sentryDebugIds||{},r._sentryDebugIds[s]="90dbe867-4884-4c18-a320-f4a319bc337b",r._sentryDebugIdIdentifier="sentry-dbid-90dbe867-4884-4c18-a320-f4a319bc337b")}catch{}})();function Ct(r){const{gridLoading:s,gridError:a,gridCount:l,baselinePending:c,baselineError:d,baselineCount:b}=r;return s?"skeletons":a?"error":l>0?"items":c?"skeletons":d?"error":b===0?"no-creations":"filters"}const{colors:w,radius:$,media:$t}=de,St=i.article`
2
2
  height: 300px;
3
3
  /* No fill of its own (Figma 922:183803): the mosaic covers the top and the footer paints its own
4
4
  translucent black, so the page field is what shows through the corners. */
@@ -285,7 +285,7 @@ import{b as ce,j as e,L as Fe,e as Le,u as Me,r as L}from"./react-Be4yVrKn.js";i
285
285
  ${v.maxWidth("mobile")} {
286
286
  font-size: 16px;
287
287
  }
288
- `,Jt=i.p`
288
+ `,Qt=i.p`
289
289
  margin: 0;
290
290
  font-size: 15px;
291
291
  color: ${y.white};
@@ -295,7 +295,7 @@ import{b as ce,j as e,L as Fe,e as Le,u as Me,r as L}from"./react-Be4yVrKn.js";i
295
295
  ${v.maxWidth("mobile")} {
296
296
  font-size: 14px;
297
297
  }
298
- `,Qt=i.div`
298
+ `,Jt=i.div`
299
299
  display: flex;
300
300
  align-items: center;
301
301
  gap: 12px;
@@ -308,5 +308,5 @@ import{b as ce,j as e,L as Fe,e as Le,u as Me,r as L}from"./react-Be4yVrKn.js";i
308
308
  &:hover {
309
309
  background: ${y.blackBtn};
310
310
  }
311
- `,Zt={website:"website",twitter:"twitter",discord:"discord",facebook:"facebook"};function Xt({address:r}){var m,k;const{data:s}=ue(r),{data:a}=yt(r),l=rt(p=>{var S;return(S=p.session)==null?void 0:S.address}),c=!!l&&l.toLowerCase()===r.toLowerCase(),d=(s==null?void 0:s.name)||me(r),b=(k=(m=s==null?void 0:s.avatar)==null?void 0:m.snapshots)==null?void 0:k.face256,j=(a==null?void 0:a.cover)||mt,n=a==null?void 0:a.description,g=`${at.profileUrl}/${r}`,f=vt.filter(p=>a==null?void 0:a.links[p]),h=st(it({name:s==null?void 0:s.name,hasClaimedName:s==null?void 0:s.hasClaimedName,ethAddress:(s==null?void 0:s.ethAddress)??r}));return e.jsxs(Dt,{"aria-label":`${d} storefront`,children:[e.jsxs(Wt,{children:[e.jsx(Ot,{src:j,alt:"",loading:"eager"}),e.jsx(Gt,{"aria-hidden":!0})]}),(f.length>0||c)&&e.jsxs(Kt,{children:[f.map(p=>e.jsx(Ut,{"data-testid":"creator-hero-link",href:(a==null?void 0:a.links[p])??"",target:"_blank",rel:"noopener noreferrer",title:o(`creator.link.${p}`),"aria-label":o(`creator.link.${p}`),children:e.jsx(te,{name:Zt[p]})},p)),c&&e.jsx(Ht,{to:"/store-settings",title:o("creator.editStore"),"aria-label":o("creator.editStore"),children:e.jsx(te,{name:"pen"})})]}),e.jsxs(qt,{children:[b?e.jsx(ne,{src:b,alt:"",loading:"eager",style:{backgroundColor:h}}):e.jsx(ne,{as:"span","aria-hidden":!0,style:{backgroundColor:h}}),e.jsxs("div",{children:[e.jsx(Vt,{children:d}),n?e.jsx(Jt,{children:n}):null]}),e.jsxs(Qt,{children:[e.jsx(Yt,{"data-testid":"creator-hero-view",href:g,target:"_blank",rel:"noopener noreferrer",children:o("creator.viewProfile")}),e.jsx(Bt,{address:r,className:"creator-hero__follow"})]})]})]})}const eo=["all","on_sale","not_for_sale"],le=48;function wo(){var J,Q;const{address:r}=Le(),s=ce(),[a]=Me(),l=a.has("collections"),{data:c}=ue(r),d=(c==null?void 0:c.name)||(r?me(r):o("creator.fallbackName"));nt({title:d,description:o("seo.creator.description",{name:d}),image:(Q=(J=c==null?void 0:c.avatar)==null?void 0:J.snapshots)==null?void 0:Q.face256});const b=L.useMemo(()=>({category:"all",status:"all",subCategory:null,rarities:[],priceMin:"",priceMax:"",smart:!1,sort:"newest"}),[]),[j,n]=_e(b),{category:g,subCategory:f,rarities:h,priceMin:m,priceMax:k,smart:p,sort:S}=j,N=eo.includes(j.status)?j.status:"all",T=t=>n({status:t});Ae(`${l}:${g}:${f??""}`);const[P,E]=L.useState(!1);L.useEffect(()=>{if(!P)return;const t=Ie=>{Ie.key==="Escape"&&E(!1)};document.addEventListener("keydown",t);const x=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.removeEventListener("keydown",t),document.body.style.overflow=x}},[P]);const B=m&&!Number.isNaN(Number(m))?Number(m):void 0,D=k&&!Number.isNaN(Number(k))?Number(k):void 0,be=f?Qe[f]:void 0,we=(Y.find(t=>t.key===S)??Y[0]).server,W={creator:r,category:g,rarities:h.length?h:void 0,wearableCategories:be,minPriceCredits:B,maxPriceCredits:D,isWearableSmart:p||void 0,isOnSale:N==="all"?void 0:N==="on_sale",sortBy:we},{items:_,total:ye,isLoading:ve,isPlaceholderData:je,error:O,hasNextPage:ke,isFetchingNextPage:G,isFetchNextPageError:Ce,fetchNextPage:$e}=ie(["creator-items",W],t=>re({...W,first:le,skip:t}),{enabled:!!r&&!l}),I=lt({queryKey:["creator-item-count",r],queryFn:()=>re({creator:r,first:1}).then(t=>t.total),enabled:!!r}),u=ie(["creator-collections",r],t=>ut(r,{first:le,skip:t}).then(x=>({items:x.collections,total:x.total})),{enabled:!!r&&l});function K(t){n({category:t,subCategory:null},{drop:l?["collections"]:void 0})}function Se(){const t=new URLSearchParams(a);t.delete("collections");const x=t.toString();s({search:x?`?${x}`:""},{replace:!0})}function Ne(){if(l){Se();return}const t=new URLSearchParams(a);t.delete("collections");const x=t.toString();s({search:x?`?${x}&collections`:"?collections"},{replace:!0})}function U(t){n({rarities:h.includes(t)?h.filter(x=>x!==t):[...h,t]})}function H(){n(b)}const C=[];(g==="wearable"||g==="emote")&&C.push({key:"category",label:o(g==="emote"?"categories.emotes":"categories.wearables"),onRemove:()=>K("all")}),(B!=null||D!=null)&&C.push({key:"price",label:o("filter.price"),onRemove:()=>{n({priceMin:"",priceMax:""})}});for(const t of Re)h.includes(t)&&C.push({key:`rarity-${t}`,label:ct(t),onRemove:()=>U(t)});p&&C.push({key:"smart",label:o("filter.smart"),onRemove:()=>n({smart:!1})}),N!=="all"&&C.push({key:"status",label:N==="on_sale"?o("filter.onSale"):o("filter.notForSale"),onRemove:()=>T("all")});const F=Ct({gridLoading:ve||je,gridError:!!O,gridCount:_.length,baselinePending:I.isPending,baselineError:I.isError,baselineCount:I.data}),q=F==="skeletons",{data:V}=dt(),Ee=L.useMemo(()=>_.map(t=>({...t,priceCredits:ht(t,V)})),[_,V]),Pe=t=>t.priceCredits>0||!!t.manaWei,z=F==="items"||F==="skeletons"?null:F;return e.jsxs(pt,{children:[e.jsxs(xt,{"aria-label":o("creator.breadcrumbAria"),children:[e.jsx(gt,{onClick:()=>s("/items"),children:o("creator.breadcrumb")}),e.jsx("span",{children:"/"}),e.jsx(ft,{children:d})]}),r?e.jsx(Xt,{address:r}):null,e.jsxs(Te,{children:[P?e.jsx(Be,{onClick:()=>E(!1),"aria-hidden":!0}):null,e.jsxs(De,{"data-open":P||void 0,"data-testid":"creator-sidebar",children:[e.jsxs(We,{children:[e.jsx(Oe,{children:o("assets.filters")}),e.jsx(Ge,{onClick:()=>E(!1),"aria-label":o("assets.closeFilters"),children:"✕"})]}),e.jsx(Ke,{children:e.jsx(Ue,{category:g,subCategory:f,onCategory:K,onSub:t=>n({subCategory:t}),priceMin:m,priceMax:k,onPriceMin:t=>n({priceMin:t}),onPriceMax:t=>n({priceMax:t}),rarities:h,onToggleRarity:U,status:N,onStatus:T,smart:p,onSmart:t=>n({smart:t}),hideNames:!0,collections:l,onCollections:Ne})}),e.jsx(He,{children:e.jsx(qe,{type:"button",onClick:()=>E(!1),children:o("assets.showItems")})})]}),e.jsx(Ve,{children:l?e.jsxs(e.Fragment,{children:[e.jsx(bt,{children:e.jsx(wt,{"data-testid":"creator-collections-count","aria-busy":u.isLoading||void 0,children:u.isLoading?e.jsx(pe,{className:"skeleton",width:72,"data-testid":"creator-collections-count-skeleton","aria-hidden":!0}):o("creator.collectionsCount",{count:u.total})})}),u.error?e.jsx(R,{message:o("creator.error")}):null,e.jsx(ae,{"data-variant":"collections",children:u.isLoading?e.jsx(M,{count:9}):e.jsxs(e.Fragment,{children:[u.items.map(t=>e.jsx(Tt,{collection:t,itemCount:t.itemCount},t.contractAddress)),u.isFetchingNextPage?e.jsx(M,{count:6}):null]})}),e.jsx(se,{hasNextPage:u.hasNextPage,isFetching:u.isFetchingNextPage,isError:u.isFetchNextPageError,onLoadMore:()=>void u.fetchNextPage()}),!u.isLoading&&!u.error&&u.items.length===0?e.jsx(A,{testId:"creator-collections-empty",icon:jt,title:o("creator.collectionsEmptyTitle"),body:o("creator.collectionsEmpty"),cta:{label:o("assets.empty.cta"),to:"/items"}}):null]}):e.jsxs(e.Fragment,{children:[e.jsx(Je,{sort:S,onSort:t=>n({sort:t}),total:ye,loading:q,onOpenFilters:()=>E(!0),chips:C,onClearChips:H}),O?e.jsx(R,{message:o("creator.error"),testId:"creator-error"}):null,e.jsx(ae,{"data-testid":"creator-grid",children:q?e.jsx(M,{count:15}):e.jsxs(e.Fragment,{children:[Ee.map(t=>Pe(t)?e.jsx(oe,{item:t},t.id):e.jsx(oe,{item:t,mode:"view"},t.id)),G?e.jsx(M,{count:6}):null]})}),e.jsx(se,{hasNextPage:ke,isFetching:G,isError:Ce,onLoadMore:()=>void $e()}),z==="error"?e.jsx(R,{message:o("creator.error"),testId:"creator-empty-error"}):z==="no-creations"?e.jsx(A,{testId:"creator-empty-none",icon:kt,title:o("creator.emptyNoCreationsTitle"),body:o("creator.emptyNoCreations"),cta:{label:o("assets.empty.cta"),to:"/items"}}):z==="filters"?e.jsx(A,{testId:"creator-empty-filters",icon:ze,title:o("creator.emptyFilters.title"),body:o("creator.emptyFilters.body",{count:I.data??0}),cta:{label:o("filterBar.clearAll"),onClick:H}}):null]})})]})]})}export{wo as Creator,wo as default};
312
- //# sourceMappingURL=Creator-Co_uW2t7.js.map
311
+ `,Zt={website:"website",twitter:"twitter",discord:"discord",facebook:"facebook"};function Xt({address:r}){var m,k;const{data:s}=ue(r),{data:a}=yt(r),l=rt(p=>{var S;return(S=p.session)==null?void 0:S.address}),c=!!l&&l.toLowerCase()===r.toLowerCase(),d=(s==null?void 0:s.name)||me(r),b=(k=(m=s==null?void 0:s.avatar)==null?void 0:m.snapshots)==null?void 0:k.face256,j=(a==null?void 0:a.cover)||mt,n=a==null?void 0:a.description,g=`${at.profileUrl}/${r}`,f=vt.filter(p=>a==null?void 0:a.links[p]),h=st(it({name:s==null?void 0:s.name,hasClaimedName:s==null?void 0:s.hasClaimedName,ethAddress:(s==null?void 0:s.ethAddress)??r}));return e.jsxs(Dt,{"aria-label":`${d} storefront`,children:[e.jsxs(Wt,{children:[e.jsx(Ot,{src:j,alt:"",loading:"eager"}),e.jsx(Gt,{"aria-hidden":!0})]}),(f.length>0||c)&&e.jsxs(Kt,{children:[f.map(p=>e.jsx(Ut,{"data-testid":"creator-hero-link",href:(a==null?void 0:a.links[p])??"",target:"_blank",rel:"noopener noreferrer",title:o(`creator.link.${p}`),"aria-label":o(`creator.link.${p}`),children:e.jsx(te,{name:Zt[p]})},p)),c&&e.jsx(Ht,{to:"/store-settings",title:o("creator.editStore"),"aria-label":o("creator.editStore"),children:e.jsx(te,{name:"pen"})})]}),e.jsxs(qt,{children:[b?e.jsx(ne,{src:b,alt:"",loading:"eager",style:{backgroundColor:h}}):e.jsx(ne,{as:"span","aria-hidden":!0,style:{backgroundColor:h}}),e.jsxs("div",{children:[e.jsx(Vt,{children:d}),n?e.jsx(Qt,{children:n}):null]}),e.jsxs(Jt,{children:[e.jsx(Yt,{"data-testid":"creator-hero-view",href:g,target:"_blank",rel:"noopener noreferrer",children:o("creator.viewProfile")}),e.jsx(Bt,{address:r,className:"creator-hero__follow"})]})]})]})}const eo=["all","on_sale","not_for_sale"],le=48;function wo(){var Q,J;const{address:r}=Le(),s=ce(),[a]=Me(),l=a.has("collections"),{data:c}=ue(r),d=(c==null?void 0:c.name)||(r?me(r):o("creator.fallbackName"));nt({title:d,description:o("seo.creator.description",{name:d}),image:(J=(Q=c==null?void 0:c.avatar)==null?void 0:Q.snapshots)==null?void 0:J.face256});const b=L.useMemo(()=>({category:"all",status:"all",subCategory:null,rarities:[],priceMin:"",priceMax:"",smart:!1,sort:"newest"}),[]),[j,n]=_e(b),{category:g,subCategory:f,rarities:h,priceMin:m,priceMax:k,smart:p,sort:S}=j,N=eo.includes(j.status)?j.status:"all",T=t=>n({status:t});Ae(`${l}:${g}:${f??""}`);const[P,E]=L.useState(!1);L.useEffect(()=>{if(!P)return;const t=Ie=>{Ie.key==="Escape"&&E(!1)};document.addEventListener("keydown",t);const x=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.removeEventListener("keydown",t),document.body.style.overflow=x}},[P]);const B=m&&!Number.isNaN(Number(m))?Number(m):void 0,D=k&&!Number.isNaN(Number(k))?Number(k):void 0,be=f?Je[f]:void 0,we=(Y.find(t=>t.key===S)??Y[0]).server,W={creator:r,category:g,rarities:h.length?h:void 0,wearableCategories:be,minPriceCredits:B,maxPriceCredits:D,isWearableSmart:p||void 0,isOnSale:N==="all"?void 0:N==="on_sale",sortBy:we},{items:_,total:ye,isLoading:ve,isPlaceholderData:je,error:O,hasNextPage:ke,isFetchingNextPage:G,isFetchNextPageError:Ce,fetchNextPage:$e}=ie(["creator-items",W],t=>re({...W,first:le,skip:t}),{enabled:!!r&&!l}),I=lt({queryKey:["creator-item-count",r],queryFn:()=>re({creator:r,first:1}).then(t=>t.total),enabled:!!r}),u=ie(["creator-collections",r],t=>ut(r,{first:le,skip:t}).then(x=>({items:x.collections,total:x.total})),{enabled:!!r&&l});function K(t){n({category:t,subCategory:null},{drop:l?["collections"]:void 0})}function Se(){const t=new URLSearchParams(a);t.delete("collections");const x=t.toString();s({search:x?`?${x}`:""},{replace:!0})}function Ne(){if(l){Se();return}const t=new URLSearchParams(a);t.delete("collections");const x=t.toString();s({search:x?`?${x}&collections`:"?collections"},{replace:!0})}function U(t){n({rarities:h.includes(t)?h.filter(x=>x!==t):[...h,t]})}function H(){n(b)}const C=[];(g==="wearable"||g==="emote")&&C.push({key:"category",label:o(g==="emote"?"categories.emotes":"categories.wearables"),onRemove:()=>K("all")}),(B!=null||D!=null)&&C.push({key:"price",label:o("filter.price"),onRemove:()=>{n({priceMin:"",priceMax:""})}});for(const t of Re)h.includes(t)&&C.push({key:`rarity-${t}`,label:ct(t),onRemove:()=>U(t)});p&&C.push({key:"smart",label:o("filter.smart"),onRemove:()=>n({smart:!1})}),N!=="all"&&C.push({key:"status",label:N==="on_sale"?o("filter.onSale"):o("filter.notForSale"),onRemove:()=>T("all")});const F=Ct({gridLoading:ve||je,gridError:!!O,gridCount:_.length,baselinePending:I.isPending,baselineError:I.isError,baselineCount:I.data}),q=F==="skeletons",{data:V}=dt(),Ee=L.useMemo(()=>_.map(t=>({...t,priceCredits:ht(t,V)})),[_,V]),Pe=t=>t.priceCredits>0||!!t.manaWei,z=F==="items"||F==="skeletons"?null:F;return e.jsxs(pt,{children:[e.jsxs(xt,{"aria-label":o("creator.breadcrumbAria"),children:[e.jsx(gt,{onClick:()=>s("/items"),children:o("creator.breadcrumb")}),e.jsx("span",{children:"/"}),e.jsx(ft,{children:d})]}),r?e.jsx(Xt,{address:r}):null,e.jsxs(Te,{children:[P?e.jsx(Be,{onClick:()=>E(!1),"aria-hidden":!0}):null,e.jsxs(De,{"data-open":P||void 0,"data-testid":"creator-sidebar",children:[e.jsxs(We,{children:[e.jsx(Oe,{children:o("assets.filters")}),e.jsx(Ge,{onClick:()=>E(!1),"aria-label":o("assets.closeFilters"),children:"✕"})]}),e.jsx(Ke,{children:e.jsx(Ue,{category:g,subCategory:f,onCategory:K,onSub:t=>n({subCategory:t}),priceMin:m,priceMax:k,onPriceMin:t=>n({priceMin:t}),onPriceMax:t=>n({priceMax:t}),rarities:h,onToggleRarity:U,status:N,onStatus:T,smart:p,onSmart:t=>n({smart:t}),hideNames:!0,collections:l,onCollections:Ne})}),e.jsx(He,{children:e.jsx(qe,{type:"button",onClick:()=>E(!1),children:o("assets.showItems")})})]}),e.jsx(Ve,{children:l?e.jsxs(e.Fragment,{children:[e.jsx(bt,{children:e.jsx(wt,{"data-testid":"creator-collections-count","aria-busy":u.isLoading||void 0,children:u.isLoading?e.jsx(pe,{className:"skeleton",width:72,"data-testid":"creator-collections-count-skeleton","aria-hidden":!0}):o("creator.collectionsCount",{count:u.total})})}),u.error?e.jsx(R,{message:o("creator.error")}):null,e.jsx(ae,{"data-variant":"collections",children:u.isLoading?e.jsx(M,{count:9}):e.jsxs(e.Fragment,{children:[u.items.map(t=>e.jsx(Tt,{collection:t,itemCount:t.itemCount},t.contractAddress)),u.isFetchingNextPage?e.jsx(M,{count:6}):null]})}),e.jsx(se,{hasNextPage:u.hasNextPage,isFetching:u.isFetchingNextPage,isError:u.isFetchNextPageError,onLoadMore:()=>void u.fetchNextPage()}),!u.isLoading&&!u.error&&u.items.length===0?e.jsx(A,{testId:"creator-collections-empty",icon:jt,title:o("creator.collectionsEmptyTitle"),body:o("creator.collectionsEmpty"),cta:{label:o("assets.empty.cta"),to:"/items"}}):null]}):e.jsxs(e.Fragment,{children:[e.jsx(Qe,{sort:S,onSort:t=>n({sort:t}),total:ye,loading:q,onOpenFilters:()=>E(!0),chips:C,onClearChips:H}),O?e.jsx(R,{message:o("creator.error"),testId:"creator-error"}):null,e.jsx(ae,{"data-testid":"creator-grid",children:q?e.jsx(M,{count:15}):e.jsxs(e.Fragment,{children:[Ee.map(t=>Pe(t)?e.jsx(oe,{item:t},t.id):e.jsx(oe,{item:t,mode:"view"},t.id)),G?e.jsx(M,{count:6}):null]})}),e.jsx(se,{hasNextPage:ke,isFetching:G,isError:Ce,onLoadMore:()=>void $e()}),z==="error"?e.jsx(R,{message:o("creator.error"),testId:"creator-empty-error"}):z==="no-creations"?e.jsx(A,{testId:"creator-empty-none",icon:kt,title:o("creator.emptyNoCreationsTitle"),body:o("creator.emptyNoCreations"),cta:{label:o("assets.empty.cta"),to:"/items"}}):z==="filters"?e.jsx(A,{testId:"creator-empty-filters",icon:ze,title:o("creator.emptyFilters.title"),body:o("creator.emptyFilters.body",{count:I.data??0}),cta:{label:o("filterBar.clearAll"),onClick:H}}):null]})})]})]})}export{wo as Creator,wo as default};
312
+ //# sourceMappingURL=Creator-D69p5aL5.js.map