@dcl/shop 1.6.4-31478985898.commit-31fbca5 → 1.6.4-31480376613.commit-0bb9931

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 (230) hide show
  1. package/_assets/{Activity-DVeOPtLf.js → Activity-D8Y6G4Y1.js} +4 -4
  2. package/_assets/{AnimatedBackground-uc285a1z.js → AnimatedBackground-C7qBwvsp.js} +3 -3
  3. package/_assets/{Assets-BxVtKqBD.js → Assets-D1Myk4mW.js} +3 -3
  4. package/_assets/{Authorizations-wlFFAYck.js → Authorizations-DHZOpUMW.js} +2 -2
  5. package/_assets/{Cart-Cvb-mLkq.js → Cart-Dn2sNZbI.js} +2 -2
  6. package/_assets/{CircularProgress-B42WjiMu.js → CircularProgress-D7nr8zvc.js} +2 -2
  7. package/_assets/{Collection-CePSkIc7.js → Collection-D_wOHgFg.js} +2 -2
  8. package/_assets/{CollectionCarousel-DekM0Fbc.js → CollectionCarousel-DCt4NWvX.js} +118 -120
  9. package/_assets/{Confetti-DyEmp5aX.js → Confetti-MCo50BBJ.js} +4 -4
  10. package/_assets/{ConstantsUtil-Cv0P8XJd.js → ConstantsUtil-lBURo-5M.js} +2 -2
  11. package/_assets/{ContentClient-DeOOQcyg.js → ContentClient-D47cn4cd.js} +2 -2
  12. package/_assets/{Creator-DZqtuM7q.js → Creator-BTvR4L5i.js} +57 -53
  13. package/_assets/{DeploymentBuilder-Du6kFotx.js → DeploymentBuilder-qk7PnHQx.js} +2 -2
  14. package/_assets/{ErrorNotice-O5DWS_gB.js → ErrorNotice-BF2OJpNh.js} +2 -2
  15. package/_assets/{ExchangeController-C7RzKdOT.js → ExchangeController-DA7i527B.js} +2 -2
  16. package/_assets/{Faq-BlFxXYzr.js → Faq-DaK46DZt.js} +2 -2
  17. package/_assets/{GetCredits-B9CV0EDm.js → GetCredits-CPwkY6zf.js} +2 -2
  18. package/_assets/{Grow-DyAIXXvH.js → Grow-jPHmsNlR.js} +2 -2
  19. package/_assets/{HelpersUtil-W6HAeXTg.js → HelpersUtil-BDeLwE1U.js} +2 -2
  20. package/_assets/{ItemDetail-BHJZT0cj.js → ItemDetail-DgCCo4Ga.js} +2 -2
  21. package/_assets/{JumpInIcon-CFdWShnC.js → JumpInIcon-DCKe9LOU.js} +2 -2
  22. package/_assets/LazyEmoteControls-DnslqPZG.js +3 -0
  23. package/_assets/{LoadMore-Dh1voaGI.js → LoadMore-rKbDGkef.js} +2 -2
  24. package/_assets/{ManaPricingBanner.styles-DUiuySqa.js → ManaPricingBanner.styles-YalgApkM.js} +2 -2
  25. package/_assets/{MyAssets-D30SC0fa.js → MyAssets-Do--yjZ7.js} +2 -2
  26. package/_assets/{MyFavorites-CfcjuE_v.js → MyFavorites-DaSWflmb.js} +2 -2
  27. package/_assets/{NetworkUtil-Dk9MYhv-.js → NetworkUtil-DXqn8-PK.js} +2 -2
  28. package/_assets/{NotFound-DkFkk_mt.js → NotFound-C9IH0Jog.js} +2 -2
  29. package/_assets/{NotificationsBell-D8pVTaBp.js → NotificationsBell-DeI14Ker.js} +2 -2
  30. package/_assets/{OutfitDetail-DL9KkMIP.js → OutfitDetail-Buecr6Xb.js} +9 -11
  31. package/_assets/{OutfitPreview-DPkjJ61X.js → OutfitPreview-CXccjyME.js} +2 -2
  32. package/_assets/{OutfitStudio-DNQsP0eA.js → OutfitStudio-CIrUif98.js} +2 -2
  33. package/_assets/{StoreSettings-Db0uvaPg.js → StoreSettings-DiDEymfb.js} +22 -22
  34. package/_assets/{Success-BV7pp9BJ.js → Success-W72Gr_yr.js} +2 -2
  35. package/_assets/{SwapController-Dea0YNZV.js → SwapController-CwiooA4W.js} +2 -2
  36. package/_assets/{Tooltip-dXqttMoC.js → Tooltip-B3I8arON.js} +2 -2
  37. package/_assets/{TradeService-CiF_cbGA.js → TradeService-a_NBc4yW.js} +2 -2
  38. package/_assets/{W3MFrameProviderSingleton-ogn_NV29.js → W3MFrameProviderSingleton-D3pkilIG.js} +4 -4
  39. package/_assets/{WebCryptoP256-KcgFdR3n.js → WebCryptoP256-BgkA904K.js} +2 -2
  40. package/_assets/{authorizations-CMvgyyUD.js → authorizations-zGupbQDs.js} +2 -2
  41. package/_assets/{basic-BdsPj4SA.js → basic-DchQuRu2.js} +2 -2
  42. package/_assets/{biconomy-ekjRN8Rx.js → biconomy-CsEB28IW.js} +2 -2
  43. package/_assets/{browseLayout.styles-CEp4MDDk.js → browseLayout.styles-g9AiUl5C.js} +2 -2
  44. package/_assets/{browser-DkZP29Je.js → browser-C14MabGh.js} +2 -2
  45. package/_assets/{browser-ponyfill-CtL8GT9R.js → browser-ponyfill-NoPd19Nq.js} +2 -2
  46. package/_assets/{builder-Bz1fAUOf.js → builder-CxSl0afD.js} +2 -2
  47. package/_assets/{buy-wfLbpSzF.js → buy-CZ48Qb0B.js} +2 -2
  48. package/_assets/{buy-gasless-DGSUe6ir.js → buy-gasless-6eHLQLUv.js} +2 -2
  49. package/_assets/{ccip-DROOg7Sw.js → ccip-DZYHSe6i.js} +2 -2
  50. package/_assets/{ccip-CF8WPBkz.js → ccip-DqGck39w.js} +2 -2
  51. package/_assets/{chains-C2NUxzBf.js → chains-7s4Wyd5G.js} +2 -2
  52. package/_assets/collectionPage.styles-BG7xsIyB.js +40 -0
  53. package/_assets/{common-BuITO6vc.js → common-BKs8BygA.js} +2 -2
  54. package/_assets/{controller-DZ9hs146.js → controller-DtoJ-OaD.js} +3 -3
  55. package/_assets/{core-BNITS073.js → core-xPw2YS_6.js} +5 -5
  56. package/_assets/{createSvgIcon-kwj-xCck.js → createSvgIcon-TWSMDLRV.js} +4 -4
  57. package/_assets/{custom-B62cLRsz.js → custom-DX-ni0bf.js} +2 -2
  58. package/_assets/{data-capture-CYUDrcxg.js → data-capture-DDUt2YHs.js} +2 -2
  59. package/_assets/{dcl-schemas-BUryvO70.js → dcl-schemas-GQNC2S4Z.js} +2 -2
  60. package/_assets/{decimals-sMSiFRNg.js → decimals-CriYb_mR.js} +2 -2
  61. package/_assets/{decimals-xKUe12oD.js → decimals-dM6NWaYC.js} +2 -2
  62. package/_assets/{detectExtension-CD9G4Gli.js → detectExtension-DKO4W8XW.js} +2 -2
  63. package/_assets/{disposePreview-D2GvvC0L.js → disposePreview-Cy4cRo5W.js} +2 -2
  64. package/_assets/{email-B29w2LoR.js → email-BpdO4wU1.js} +2 -2
  65. package/_assets/{embedded-wallet-bBwdHdK8.js → embedded-wallet-CGXhcRnj.js} +2 -2
  66. package/_assets/{emotion-styled.browser.esm-DGympv_c.js → emotion-styled.browser.esm-DqxM2tFY.js} +2 -2
  67. package/_assets/{engine-DhNHSBL6.js → engine-KDQOQrhD.js} +2 -2
  68. package/_assets/{errors-C_vPWg1W.js → errors-Brkvnldx.js} +2 -2
  69. package/_assets/{estimate-l1-fee-uGZjwLef.js → estimate-l1-fee-CXjO5G6B.js} +2 -2
  70. package/_assets/{eth_estimateGas-6lbcdN1r.js → eth_estimateGas-Az-d7u81.js} +2 -2
  71. package/_assets/{eth_getStorageAt-TRGXKtot.js → eth_getStorageAt-DUjWCRH_.js} +2 -2
  72. package/_assets/{eth_getTransactionCount-DBzJycS6.js → eth_getTransactionCount-DUedgx_K.js} +2 -2
  73. package/_assets/{ethereum-COFYAd6O.js → ethereum-CGqNaPv8.js} +2 -2
  74. package/_assets/{ethers-CRWPmA0X.js → ethers-CUPuVG6E.js} +2 -2
  75. package/_assets/{events-BZ-pVC1L.js → events-BR9mruU0.js} +2 -2
  76. package/_assets/{execute-DnK9v44q.js → execute-C99VvcVc.js} +3 -3
  77. package/_assets/{extractIPFS-B7M3UGIo.js → extractIPFS-BZARbAAN.js} +2 -2
  78. package/_assets/{features-CO_OuV9E.js → features-DOohSNgk.js} +2 -2
  79. package/_assets/{fetchTokenMetadata-CqABkJEe.js → fetchTokenMetadata-BDnZO97p.js} +3 -3
  80. package/_assets/{field.styles-SEH7hwZF.js → field.styles-TKt4L2KD.js} +2 -2
  81. package/_assets/{fortmatic-D-RZAjM7.js → fortmatic-BaGeZDMU.js} +2 -2
  82. package/_assets/{get-bytecode-f2xYFEz3.js → get-bytecode-BixykfJN.js} +2 -2
  83. package/_assets/{get-ecosystem-wallet-info-BAS2mjuz.js → get-ecosystem-wallet-info-BRBLaxAB.js} +2 -2
  84. package/_assets/{getBalance-BYXHWklf.js → getBalance-DPyDJTKl.js} +3 -3
  85. package/_assets/{getInstalledModules-BZv1uFUK.js → getInstalledModules-COw1E-0h.js} +2 -2
  86. package/_assets/{getNFT-DtnerbZ-.js → getNFT-BJqA-Dy5.js} +2 -2
  87. package/_assets/{getNFT-Ca7RzhHw.js → getNFT-BZ6gJSTz.js} +3 -3
  88. package/_assets/{grid.styles-BI20Xc9c.js → grid.styles-J0kTBoI2.js} +2 -2
  89. package/_assets/{hashTypedData-DRAgUpH6.js → hashTypedData-BsX3fUxc.js} +2 -2
  90. package/_assets/{hashTypedData-BGuNkVCC.js → hashTypedData-DcXkmV5f.js} +2 -2
  91. package/_assets/{in-app-CdEM3J_F.js → in-app-DZydcaQ1.js} +2 -2
  92. package/_assets/{in-app-wallet-calls-C_06Xgr2.js → in-app-wallet-calls-95DziyxS.js} +2 -2
  93. package/_assets/{index-DIAzCxP5.js → index-8LX2pFjK.js} +2 -2
  94. package/_assets/{index-CZCKf2Ul.js → index-B0z-GyUF.js} +2 -2
  95. package/_assets/{index-Devjdp12.js → index-B3lay0v6.js} +2 -2
  96. package/_assets/{index-B9iqXPZP.js → index-B47oSrUZ.js} +2 -2
  97. package/_assets/{index-CGfpmkR6.js → index-B4NGc66i.js} +2 -2
  98. package/_assets/{index-Cb_9pwPk.js → index-B52RzpJA.js} +2 -2
  99. package/_assets/{index-B1tqp8mp.js → index-B9vrVQnr.js} +3 -3
  100. package/_assets/{index-DOK9QzKz.js → index-BAqO9-Bf.js} +2 -2
  101. package/_assets/{index-DG-qr12v.js → index-BEWPbHqK.js} +2 -2
  102. package/_assets/{index-Cyf77meS.js → index-BGfUDEWl.js} +2 -2
  103. package/_assets/{index-CCCb1GG0.js → index-BL18QLtU.js} +3 -3
  104. package/_assets/{index-C6chrdS2.js → index-BMDu2mdy.js} +2 -2
  105. package/_assets/{index-BlJuRPvz.js → index-BN1rpNEw.js} +2 -2
  106. package/_assets/{index-BYO8wHKO.js → index-BVUfE7bm.js} +2 -2
  107. package/_assets/{index-DSd3E_98.js → index-BVfTPvK9.js} +2 -2
  108. package/_assets/{index-Ck3jUyHs.js → index-BWmu3BiF.js} +2 -2
  109. package/_assets/{index-BcRw5b4o.js → index-BX41uI4v.js} +3 -3
  110. package/_assets/{index-D5_fPVsN.js → index-BZE48mP9.js} +2 -2
  111. package/_assets/{index-CDtrCfgI.js → index-B__8UZ2Y.js} +2 -2
  112. package/_assets/{index-QKH5zWvb.js → index-B_wakS41.js} +2 -2
  113. package/_assets/{index-CcilsUDs.js → index-BcBannTx.js} +2 -2
  114. package/_assets/{index-DkvemK3W.js → index-BcULiBCS.js} +2 -2
  115. package/_assets/{index-DsUnb8HI.js → index-BeDNyZpj.js} +4 -4
  116. package/_assets/{index-hi5HC9v9.js → index-BhEa9XGv.js} +2 -2
  117. package/_assets/{index-Cx3kPoCi.js → index-BjeFPZ5z.js} +2 -2
  118. package/_assets/{index-DoZwh81D.js → index-BnsHRBeE.js} +2 -2
  119. package/_assets/{index-BziOkvVE.js → index-BrKObU0x.js} +2 -2
  120. package/_assets/{index-DI5BdeNe.js → index-Bs6whiAj.js} +2 -2
  121. package/_assets/index-Bu7oJJ0x.js +2 -0
  122. package/_assets/{index-CFpZ07WR.js → index-BwYOC1g7.js} +2 -2
  123. package/_assets/{index-qwuSUSEd.js → index-By5RPCnU.js} +2 -2
  124. package/_assets/{index-shiAYG1_.js → index-C-nlat3H.js} +2 -2
  125. package/_assets/{index-enqpoQZg.js → index-C7ue1mzF.js} +2 -2
  126. package/_assets/{index-Co8HzLJz.js → index-CBxXauNU.js} +2 -2
  127. package/_assets/{index-CHUfGH6w.js → index-CD6ZAwbw.js} +2 -2
  128. package/_assets/{index-BiLWobv8.js → index-CFMzpbyt.js} +2 -2
  129. package/_assets/{index-C5E1bgq2.js → index-CI24MaW_.js} +2 -2
  130. package/_assets/{index-4qiISaCi.js → index-CLWFGmUC.js} +2 -2
  131. package/_assets/{index-BxNzm2wN.js → index-CPyWbAeJ.js} +4 -4
  132. package/_assets/{index-Duxp543S.js → index-CUheiI-E.js} +2 -2
  133. package/_assets/{index-CwyXNm4D.js → index-CZasRrEA.js} +2 -2
  134. package/_assets/{index-6lxGroUL.js → index-Clbb31dZ.js} +2 -2
  135. package/_assets/{index-Xly-UBRa.js → index-CuhZ_hWz.js} +2 -2
  136. package/_assets/{index-Cz0qQOE1.js → index-Cw2Mzm-8.js} +458 -455
  137. package/_assets/{index-Bk8wrgLD.js → index-CxTOZKg9.js} +2 -2
  138. package/_assets/{index-CQza4zuC.js → index-CyBLTYa7.js} +2 -2
  139. package/_assets/{index-Cp0o35ah.js → index-D8eojdJO.js} +2 -2
  140. package/_assets/{index-Cp6MZoQt.js → index-DIQ7F0eH.js} +2 -2
  141. package/_assets/{index-DVTD3AUQ.js → index-DOslveRj.js} +2 -2
  142. package/_assets/{index-CVw7w72L.js → index-DPvR_Oj-.js} +2 -2
  143. package/_assets/{index-Cn1gm1Ym.js → index-DQCm5vaX.js} +2 -2
  144. package/_assets/{index-CIBYB4zB.js → index-DWInL6jk.js} +2 -2
  145. package/_assets/{index-rN70zLJH.js → index-D_5cEpKH.js} +2 -2
  146. package/_assets/{index-ClCN70OC.js → index-DajzqRze.js} +2 -2
  147. package/_assets/{index-D58MXeIs.js → index-DsoyNhv-.js} +2 -2
  148. package/_assets/{index-r5KrxblH.js → index-HraWNoBF.js} +2 -2
  149. package/_assets/{index-CQ5qEN2n.js → index-MWJqCMed.js} +2 -2
  150. package/_assets/{index-r2YK9u0Z.js → index-Uej0dSK3.js} +2 -2
  151. package/_assets/{index-B6AQvxjh.js → index-WV7ah7AN.js} +2 -2
  152. package/_assets/{index-WdqO9Tkd.js → index-WVfEF4b3.js} +2 -2
  153. package/_assets/{index-kwR044iF.js → index-g1PYBhHE.js} +2 -2
  154. package/_assets/{index-CQDgvknI.js → index-hDG9ZZQ9.js} +2 -2
  155. package/_assets/{index-BvVJEZcA.js → index-oMtL-8Re.js} +3 -3
  156. package/_assets/{index-CeGjDTdH.js → index-pqSlHrGo.js} +2 -2
  157. package/_assets/{index-DJrGAvLX.js → index-qKSuRCD6.js} +2 -2
  158. package/_assets/{index-DrJvzp_6.js → index-r8KGLAPF.js} +4 -4
  159. package/_assets/{index-VDE_kROn.js → index-vvKQ8mTM.js} +2 -2
  160. package/_assets/{index.es-NClsdIFf.js → index.es-BgTosg8l.js} +2 -2
  161. package/_assets/{index.es-C3BJn6UF.js → index.es-DOcz4_Vt.js} +2 -2
  162. package/_assets/{index.es-D_vtHMYt.js → index.es-DTC1ULyQ.js} +2 -2
  163. package/_assets/{index.es-CPt4V6aJ.js → index.es-Diay8m1a.js} +5 -5
  164. package/_assets/{items-empty-DFeUTHZo.js → items-empty-rljSVFED.js} +2 -2
  165. package/_assets/{linkAccount-CKB3ZaS5.js → linkAccount-CW__m-WC.js} +2 -2
  166. package/_assets/{localBatchGatewayRequest-ZBtklTXW.js → localBatchGatewayRequest-u70ohVze.js} +2 -2
  167. package/_assets/{native-Kg14VA_4.js → native-Bo3oXbRP.js} +2 -2
  168. package/_assets/{networks-60sp_NgH.js → networks-DRc-xttk.js} +2 -2
  169. package/_assets/{onramp-CELHtmtZ.js → onramp-DR2jE7ju.js} +2 -2
  170. package/_assets/{openzeppelin-cf4VvTc8.js → openzeppelin-Bk9vo-GM.js} +2 -2
  171. package/_assets/{ownerOf-BhcGEc-I.js → ownerOf-BODrSAnN.js} +2 -2
  172. package/_assets/{parseNft-LIdDVhDS.js → parseNft-DQbWG72w.js} +3 -3
  173. package/_assets/{parseSignature-1aExBqV4.js → parseSignature-D8LS2zK_.js} +2 -2
  174. package/_assets/{parseSignature-CJMtiIwp.js → parseSignature-pmUjv56d.js} +4 -4
  175. package/_assets/{passkeys-nhhAU60J.js → passkeys-C7wzWFTM.js} +2 -2
  176. package/_assets/{pay-with-exchange-DgeyGPVn.js → pay-with-exchange-BjDhbRAJ.js} +2 -2
  177. package/_assets/{prepare-contract-call-BbEg4n8j.js → prepare-contract-call-nLDmJVit.js} +2 -2
  178. package/_assets/{qr-overlay-HbGsO4Z5.js → qr-overlay-CIPmMXer.js} +4 -4
  179. package/_assets/{react-D4a12AOU.js → react-BHaOXxRY.js} +2 -2
  180. package/_assets/{receive-BCrE03-Z.js → receive-CcNZE2if.js} +2 -2
  181. package/_assets/{resolveImplementation-C5sqvijE.js → resolveImplementation-DXWpYEj6.js} +2 -2
  182. package/_assets/{resume-buy-CHwHfFfB.js → resume-buy-BVqIQtWn.js} +2 -2
  183. package/_assets/{rpc-C7WeNti2.js → rpc-ClZWzOlg.js} +2 -2
  184. package/_assets/{sales-empty-CJxxUih1.js → sales-empty-CGZEK996.js} +2 -2
  185. package/_assets/{search-empty-DPwDXNY4.js → search-empty-BCkNykRb.js} +2 -2
  186. package/_assets/{secp256k1-BSnPfa7U.js → secp256k1-Cd3k2XKF.js} +2 -2
  187. package/_assets/{secp256k1-DC-G0tgu.js → secp256k1-CjE2VWX5.js} +2 -2
  188. package/_assets/{secp256k1-Bx3LBAeO.js → secp256k1-DYJNbcF0.js} +2 -2
  189. package/_assets/{send-CgleiSpE.js → send-D5zRhoBQ.js} +2 -2
  190. package/_assets/{send-batch-transaction-cYIkyvAw.js → send-batch-transaction-DItZkY3I.js} +2 -2
  191. package/_assets/{send-eip712-transaction-BxZIvVqr.js → send-eip712-transaction-DI-Pj8UW.js} +3 -3
  192. package/_assets/{send-gasless-transaction-AJDfVbJ4.js → send-gasless-transaction-H_PFa7sP.js} +3 -3
  193. package/_assets/{send-transaction-BoDsRVsN.js → send-transaction-BiXKHFMN.js} +3 -3
  194. package/_assets/{sendMetaTransaction-de0lLWkt.js → sendMetaTransaction-Bekk2SqJ.js} +2 -2
  195. package/_assets/{sendRawTransaction-C1ZY7G1i.js → sendRawTransaction-D1OfMqA1.js} +4 -4
  196. package/_assets/{sentry-BtNPB732.js → sentry-Dpl2Rzxy.js} +3 -3
  197. package/_assets/{serializeTransaction-aJNSlVZ6.js → serializeTransaction-F_XNOr0Z.js} +2 -2
  198. package/_assets/{session-proposal-Bbb5UBSn.js → session-proposal-DB1yG9nH.js} +2 -2
  199. package/_assets/{session-request-BfOWY71p.js → session-request-j7iOt29A.js} +3 -3
  200. package/_assets/{sha256-EKFH5bRv.js → sha256-Di1SVFod.js} +2 -2
  201. package/_assets/{signing-Dpnklb6L.js → signing-DxdCqlSy.js} +4 -4
  202. package/_assets/{skeleton.styles-BL4LJ9kq.js → skeleton.styles-zgOid3nY.js} +2 -2
  203. package/_assets/{socials-DSQSzS2Q.js → socials-DJAqKU-U.js} +2 -2
  204. package/_assets/{styled-CYOyCcUc.js → styled-6v9MWELU.js} +3 -3
  205. package/_assets/{swaps-BUpcbYAs.js → swaps-B-Tp5Qv4.js} +2 -2
  206. package/_assets/{thirdweb-X_F9t3tR.js → thirdweb-BOZWFkQA.js} +4 -4
  207. package/_assets/{to-serializable-transaction-DKGuimc2.js → to-serializable-transaction-CRendAr2.js} +3 -3
  208. package/_assets/{totalSupply-CxFOFC8z.js → totalSupply-DgwOpDBe.js} +2 -2
  209. package/_assets/{transaction-rj-Pg9to.js → transaction-DkGLxYnP.js} +2 -2
  210. package/_assets/{transactionReceipt-CY_RewkL.js → transactionReceipt-BcMA8FhJ.js} +2 -2
  211. package/_assets/{transactions-B9vcPjQ7.js → transactions-DejHNyTK.js} +2 -2
  212. package/_assets/{useCreditPacks-Bp1eg_w0.js → useCreditPacks-BPDUvy8q.js} +2 -2
  213. package/_assets/{useInfiniteGrid-M4PKTc7a.js → useInfiniteGrid-CFkyIjyn.js} +2 -2
  214. package/_assets/{useStore-B36FT3vD.js → useStore-BsXE3VXt.js} +3 -3
  215. package/_assets/{useTheme-JAlwl5Yc.js → useTheme-BcK-N9Fs.js} +2 -2
  216. package/_assets/{utils-B5_GBgrt.js → utils-K367Ne2k.js} +2 -2
  217. package/_assets/{verifyHash-CUIwmQhj.js → verifyHash-BHb926ge.js} +2 -2
  218. package/_assets/{w3m-modal-CoWmp_Gq.js → w3m-modal-1cxICjRk.js} +2 -2
  219. package/_assets/{w3m-modal-C0ut0dVU.js → w3m-modal-y2XhCIMG.js} +2 -2
  220. package/_assets/{wait-for-tx-receipt-CUutkyU_.js → wait-for-tx-receipt-DFNZcCoK.js} +2 -2
  221. package/_assets/{wallets-Ce1PXa5T.js → wallets-DPBqMg7o.js} +6 -6
  222. package/_assets/{web-connector-BzUsckyf.js → web-connector-Bgql32Uf.js} +4 -4
  223. package/_assets/{writeContract-BK7D3bgA.js → writeContract-CWEmZuYp.js} +2 -2
  224. package/_assets/{zora-sepolia-B1bVixk1.js → zora-sepolia-c_zFjBRj.js} +2 -2
  225. package/_assets/{zoraTestnet-CRvf7ato.js → zoraTestnet-B8xtjMH5.js} +2 -2
  226. package/index.html +11 -11
  227. package/package.json +2 -2
  228. package/_assets/LazyEmoteControls-DXGDL3dL.js +0 -3
  229. package/_assets/collectionPage.styles-dCa1qivP.js +0 -40
  230. package/_assets/index-k8uxRcKj.js +0 -2
@@ -1,5 +1,5 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["_assets/index.es-NClsdIFf.js","_assets/react-D4a12AOU.js"])))=>i.map(i=>d[i]);
2
- import{s as a,_ as s}from"./index-Cz0qQOE1.js";import{r as n,j as i}from"./react-D4a12AOU.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]="35c43689-6978-4a77-8261-0bcc592afc63",t._sentryDebugIdIdentifier="sentry-dbid-35c43689-6978-4a77-8261-0bcc592afc63")}catch{}})();const o=a.div`
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["_assets/index.es-BgTosg8l.js","_assets/react-BHaOXxRY.js"])))=>i.map(i=>d[i]);
2
+ import{s as a,_ as s}from"./index-Cw2Mzm-8.js";import{r as n,j as i}from"./react-BHaOXxRY.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]="35c43689-6978-4a77-8261-0bcc592afc63",t._sentryDebugIdIdentifier="sentry-dbid-35c43689-6978-4a77-8261-0bcc592afc63")}catch{}})();const o=a.div`
3
3
  position: fixed;
4
4
  inset: 0;
5
5
  /**
@@ -14,5 +14,5 @@ import{s as a,_ as s}from"./index-Cz0qQOE1.js";import{r as n,j as i}from"./react
14
14
  */
15
15
  z-index: -1;
16
16
  pointer-events: none;
17
- `,r=n.lazy(async()=>{const[{default:t},{default:e}]=await Promise.all([s(()=>import("./index.es-NClsdIFf.js"),__vite__mapDeps([0,1])),s(()=>import("./confettiAnimation-Btd6HRFo.js"),[])]);return{default:()=>i.jsx(t,{animationData:e,loop:1})}});function u(){const[t]=n.useState(()=>{var e;return!((e=window.matchMedia)!=null&&e.call(window,"(prefers-reduced-motion: reduce)").matches)});return t?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-DyEmp5aX.js.map
17
+ `,r=n.lazy(async()=>{const[{default:t},{default:e}]=await Promise.all([s(()=>import("./index.es-BgTosg8l.js"),__vite__mapDeps([0,1])),s(()=>import("./confettiAnimation-Btd6HRFo.js"),[])]);return{default:()=>i.jsx(t,{animationData:e,loop:1})}});function u(){const[t]=n.useState(()=>{var e;return!((e=window.matchMedia)!=null&&e.call(window,"(prefers-reduced-motion: reduce)").matches)});return t?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-MCo50BBJ.js.map
@@ -1,2 +1,2 @@
1
- import{p as o}from"./sentry-BtNPB732.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-Cv0P8XJd.js.map
1
+ import{p as o}from"./sentry-Dpl2Rzxy.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-lBURo-5M.js.map
@@ -1,2 +1,2 @@
1
- import{g as z}from"./react-D4a12AOU.js";import{r as W}from"./index-shiAYG1_.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]="b5cbc840-4978-4a00-873f-df4f7c0409aa",s._sentryDebugIdIdentifier="sentry-dbid-b5cbc840-4978-4a00-873f-df4f7c0409aa")}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-DeOOQcyg.js.map
1
+ import{g as z}from"./react-BHaOXxRY.js";import{r as W}from"./index-C-nlat3H.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]="b5cbc840-4978-4a00-873f-df4f7c0409aa",s._sentryDebugIdIdentifier="sentry-dbid-b5cbc840-4978-4a00-873f-df4f7c0409aa")}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-D47cn4cd.js.map
@@ -1,10 +1,9 @@
1
- import{b as le,j as e,L as Ie,d as Le,u as Me,r as I}from"./react-D4a12AOU.js";import{u as _e,s as Ae}from"./search-empty-DPwDXNY4.js";import{u as Re,t as Y,R as ze,i as Be,j as Te,k as De,l as We,m as Oe,n as Ge,o as Ue,v as He,p as Ke,q as Ve,M as qe,r as Qe,s as Ye}from"./browseLayout.styles-CEp4MDDk.js";import{t as ce,bz as Ze,H as Z,G as J,s,bA as Je,z as Xe,bB as et,b as o,bC as tt,bD as X,B as ot,A as de,V as he,o as rt,v as ue,bE as it,bF as st,I as ee,c as at,n as nt,l as lt,a6 as ct,ah as dt,ai as ht,ak as L,aj as A,al as te,bG as oe,bH as ut}from"./index-Cz0qQOE1.js";import{T as me}from"./skeleton.styles-BL4LJ9kq.js";import{d as mt,P as pt,C as xt,a as gt,b as ft,c as bt,e as yt}from"./collectionPage.styles-dCa1qivP.js";import{u as wt,L as vt}from"./useStore-B36FT3vD.js";import{L as re}from"./LoadMore-Dh1voaGI.js";import{u as ie}from"./useInfiniteGrid-M4PKTc7a.js";import{E as R}from"./ErrorNotice-O5DWS_gB.js";import{c as jt,i as kt}from"./items-empty-DFeUTHZo.js";import{G as se}from"./grid.styles-BI20Xc9c.js";import"./Tooltip-dXqttMoC.js";import"./dcl-schemas-BUryvO70.js";import"./sentry-BtNPB732.js";import"./ethers-CRWPmA0X.js";import"./intl-AKLEHPeO.js";(function(){try{var r=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},i=new r.Error().stack;i&&(r._sentryDebugIds=r._sentryDebugIds||{},r._sentryDebugIds[i]="597c217b-2b6c-42c7-875f-bd66a833f31c",r._sentryDebugIdIdentifier="sentry-dbid-597c217b-2b6c-42c7-875f-bd66a833f31c")}catch{}})();function Ct(r){const{gridLoading:i,gridError:a,gridCount:l,baselinePending:c,baselineError:d,baselineCount:b}=r;return i?"skeletons":a?"error":l>0?"items":c?"skeletons":d?"error":b===0?"no-creations":"filters"}const{colors:y,radius:pe,media:$t}=ce,St=s.article`
1
+ import{b as ce,j as e,L as Ie,d as Le,u as Me,r as L}from"./react-BHaOXxRY.js";import{u as _e,s as ze}from"./search-empty-BCkNykRb.js";import{u as Ae,t as Z,R as Re,i as Be,j as Te,k as De,l as We,m as Oe,n as Ge,o as Ue,v as He,p as Ke,q as Ve,M as qe,r as Qe,s as Ye}from"./browseLayout.styles-g9AiUl5C.js";import{t as de,bz as Ze,H as J,G as X,s as i,bA as Je,z as Xe,bB as et,b as o,bC as tt,bD as ee,B as ot,A as he,V as ue,o as rt,v as me,bE as st,bF as it,I as te,c as at,n as nt,l as lt,a6 as ct,ah as dt,ai as ht,ak as M,aj as A,al as oe,bG as re,bH as ut}from"./index-Cw2Mzm-8.js";import{T as pe}from"./skeleton.styles-zgOid3nY.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-BG7xsIyB.js";import{u as yt,L as vt}from"./useStore-BsXE3VXt.js";import{L as se}from"./LoadMore-rKbDGkef.js";import{u as ie}from"./useInfiniteGrid-CFkyIjyn.js";import{E as R}from"./ErrorNotice-BF2OJpNh.js";import{c as jt,i as kt}from"./items-empty-rljSVFED.js";import{G as ae}from"./grid.styles-J0kTBoI2.js";import"./Tooltip-B3I8arON.js";import"./dcl-schemas-GQNC2S4Z.js";import"./sentry-Dpl2Rzxy.js";import"./ethers-CUPuVG6E.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]="589f684c-525f-4bcd-9308-08a76e7f3f5a",r._sentryDebugIdIdentifier="sentry-dbid-589f684c-525f-4bcd-9308-08a76e7f3f5a")}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. */
5
5
  background: transparent;
6
- border-radius: ${pe.card};
7
- overflow: hidden;
6
+ border-radius: ${$.card};
8
7
  position: relative;
9
8
  isolation: isolate;
10
9
  display: flex;
@@ -17,10 +16,10 @@ import{b as le,j as e,L as Ie,d as Le,u as Me,r as I}from"./react-D4a12AOU.js";i
17
16
  }
18
17
 
19
18
  &:focus-visible {
20
- ${Z};
19
+ ${J};
21
20
  }
22
21
  &:focus-visible::after {
23
- ${J};
22
+ ${X};
24
23
  }
25
24
 
26
25
  // The swap is a pointer affordance only: keyboard focus must not hide the creator row, whose profile
@@ -28,10 +27,13 @@ import{b as le,j as e,L as Ie,d as Le,u as Me,r as I}from"./react-D4a12AOU.js";i
28
27
  // already opens the collection.
29
28
  @media (hover: hover) {
30
29
  &:hover {
31
- ${Z};
30
+ ${J};
31
+ /* No zoom, unlike AssetCard — the footer row already swaps, and scaling would nudge every label.
32
+ z-index still matters: the ring and glow paint outside the box, under the next card otherwise. */
33
+ z-index: 1;
32
34
  }
33
35
  &:hover::after {
34
- ${J};
36
+ ${X};
35
37
  }
36
38
  &:hover [data-view] {
37
39
  visibility: visible;
@@ -40,36 +42,38 @@ import{b as le,j as e,L as Ie,d as Le,u as Me,r as I}from"./react-D4a12AOU.js";i
40
42
  visibility: hidden;
41
43
  }
42
44
  }
43
- `,Nt=s.div`
45
+ `,Nt=i.div`
44
46
  position: relative;
45
47
  flex: 1;
46
48
  min-height: 0;
47
- background: ${y.media};
49
+ background: ${w.media};
48
50
  overflow: hidden;
49
- `,Et=s.img`
51
+ border-radius: ${$.card} ${$.card} 0 0;
52
+ `,Et=i.img`
50
53
  width: 100%;
51
54
  height: 100%;
52
55
  object-fit: cover;
53
56
  display: block;
54
- `,Pt=s(Je)`
57
+ `,Pt=i(Je)`
55
58
  & [data-testid='coll-thumb-cell'] img {
56
59
  object-fit: contain;
57
60
  padding: 10px;
58
61
  }
59
- `,Ft=s.div`
62
+ `,Ft=i.div`
60
63
  flex: 0 0 102px;
61
64
  height: 102px;
62
65
  padding: 12px 12px 16px 16px;
63
66
  display: flex;
64
67
  flex-direction: column;
65
68
  gap: 8px;
66
- background: ${y.overlay};
67
- `,It=s.h3`
69
+ background: ${w.overlay};
70
+ border-radius: 0 0 ${$.card} ${$.card};
71
+ `,It=i.h3`
68
72
  margin: 0;
69
73
  font-weight: 700;
70
74
  font-size: 16px;
71
75
  line-height: 1.6;
72
- color: ${y.white};
76
+ color: ${w.white};
73
77
  white-space: nowrap;
74
78
  overflow: hidden;
75
79
  text-overflow: ellipsis;
@@ -77,7 +81,7 @@ import{b as le,j as e,L as Ie,d as Le,u as Me,r as I}from"./react-D4a12AOU.js";i
77
81
  ${$t.maxWidth("mobile")} {
78
82
  font-size: 16px;
79
83
  }
80
- `,Lt=s.div`
84
+ `,Lt=i.div`
81
85
  flex: 1;
82
86
  min-height: 0;
83
87
  display: grid;
@@ -87,14 +91,14 @@ import{b as le,j as e,L as Ie,d as Le,u as Me,r as I}from"./react-D4a12AOU.js";i
87
91
  & > * {
88
92
  grid-area: stack;
89
93
  }
90
- `,Mt=s.div`
94
+ `,Mt=i.div`
91
95
  display: flex;
92
96
  align-items: center;
93
97
  justify-content: space-between;
94
98
  gap: 10px;
95
- `,_t=s(Xe)`
99
+ `,_t=i(Xe)`
96
100
  min-width: 0;
97
- color: ${y.gray4};
101
+ color: ${w.gray4};
98
102
 
99
103
  & [data-avatar] {
100
104
  width: 24px;
@@ -104,28 +108,28 @@ import{b as le,j as e,L as Ie,d as Le,u as Me,r as I}from"./react-D4a12AOU.js";i
104
108
  font-size: 14px;
105
109
  }
106
110
  & [data-testid='creator-display'] {
107
- color: ${y.white};
111
+ color: ${w.white};
108
112
  font-weight: 600;
109
113
  }
110
- `,At=s.span`
114
+ `,zt=i.span`
111
115
  min-width: 0;
112
- `,Rt=s.span`
116
+ `,At=i.span`
113
117
  flex: none;
114
- color: ${y.gray4};
118
+ color: ${w.gray4};
115
119
  font-weight: 600;
116
120
  font-size: 14px;
117
121
  white-space: nowrap;
118
- `,zt=s.button`
122
+ `,Rt=i.button`
119
123
  visibility: hidden;
120
124
  width: 100%;
121
125
  height: 46px;
122
126
  display: flex;
123
127
  align-items: center;
124
128
  justify-content: center;
125
- background: ${y.overlay};
126
- color: ${y.softWhite};
129
+ background: ${w.overlay};
130
+ color: ${w.softWhite};
127
131
  border: 0;
128
- border-radius: ${pe.card};
132
+ border-radius: ${$.card};
129
133
  font-weight: 600;
130
134
  font-size: 13px;
131
135
  line-height: 24px;
@@ -135,9 +139,9 @@ import{b as le,j as e,L as Ie,d as Le,u as Me,r as I}from"./react-D4a12AOU.js";i
135
139
 
136
140
  &:hover,
137
141
  &:active {
138
- background: ${y.text2};
142
+ background: ${w.text2};
139
143
  }
140
- `;function Bt({collection:r,cover:i,itemCount:a}){const l=le(),{contractAddress:c,name:d,creator:b}=r,j=i==null||a==null,{data:n}=et(c,j),g=i==null?(n==null?void 0:n.items)??[]:[],f=a??(n==null?void 0:n.total);function h(){l(`/collection/${c}`)}return e.jsxs(St,{"data-testid":"coll-card",role:"link",tabIndex:0,onClick:h,onKeyDown:m=>{(m.key==="Enter"||m.key===" ")&&(m.preventDefault(),h())},children:[e.jsx(Nt,{children:i?e.jsx(Et,{"data-testid":"coll-card-img",src:i,alt:"",loading:"lazy"}):g.length>0?e.jsx(Pt,{items:g,tinted:!1}):null}),e.jsxs(Ft,{children:[e.jsx(It,{title:d,children:d}),e.jsxs(Lt,{children:[e.jsxs(Mt,{"data-meta":!0,"data-testid":"coll-card-meta",children:[b?e.jsx(_t,{address:b,linkToProfile:!0}):e.jsx(At,{children:" "}),e.jsx(Rt,{"data-testid":"coll-card-count","aria-busy":f==null||void 0,children:f==null?e.jsx(me,{className:"skeleton",width:54,"data-testid":"coll-card-count-skeleton","aria-hidden":!0}):o("collectionCard.itemCount",{count:f})})]}),e.jsx(zt,{"data-view":!0,"data-testid":"coll-card-view",onClick:m=>{m.stopPropagation(),h()},tabIndex:-1,children:o("collectionCard.viewCollection")})]})]})]})}function Tt({address:r,className:i=""}){const a=tt(),l=X(d=>d.followed.includes(r.toLowerCase())),c=X(d=>d.toggle);return!a||!r?null:e.jsx(ot,{type:"button",size:"sm",variant:l?"ghost":"outline",className:i||void 0,"data-testid":"follow-button","aria-pressed":l,title:l?o("creator.unfollowTitle"):o("creator.followTitle"),onClick:()=>c(r),children:l?o("creator.following"):o("creator.follow")})}const{colors:w,radius:xe,media:v}=ce,ge=de`
144
+ `;function Bt({collection:r,cover:s,itemCount:a}){const l=ce(),{contractAddress:c,name:d,creator:b}=r,j=s==null||a==null,{data:n}=et(c,j),g=s==null?(n==null?void 0:n.items)??[]:[],f=a??(n==null?void 0:n.total);function h(){l(`/collection/${c}`)}return e.jsxs(St,{"data-testid":"coll-card",role:"link",tabIndex:0,onClick:h,onKeyDown:m=>{(m.key==="Enter"||m.key===" ")&&(m.preventDefault(),h())},children:[e.jsx(Nt,{children:s?e.jsx(Et,{"data-testid":"coll-card-img",src:s,alt:"",loading:"lazy"}):g.length>0?e.jsx(Pt,{items:g,tinted:!1}):null}),e.jsxs(Ft,{children:[e.jsx(It,{title:d,children:d}),e.jsxs(Lt,{children:[e.jsxs(Mt,{"data-meta":!0,"data-testid":"coll-card-meta",children:[b?e.jsx(_t,{address:b,linkToProfile:!0}):e.jsx(zt,{children:" "}),e.jsx(At,{"data-testid":"coll-card-count","aria-busy":f==null||void 0,children:f==null?e.jsx(pe,{className:"skeleton",width:54,"data-testid":"coll-card-count-skeleton","aria-hidden":!0}):o("collectionCard.itemCount",{count:f})})]}),e.jsx(Rt,{"data-view":!0,"data-testid":"coll-card-view",onClick:m=>{m.stopPropagation(),h()},tabIndex:-1,children:o("collectionCard.viewCollection")})]})]})]})}function Tt({address:r,className:s=""}){const a=tt(),l=ee(d=>d.followed.includes(r.toLowerCase())),c=ee(d=>d.toggle);return!a||!r?null:e.jsx(ot,{type:"button",size:"sm",variant:l?"ghost":"outline",className:s||void 0,"data-testid":"follow-button","aria-pressed":l,title:l?o("creator.unfollowTitle"):o("creator.followTitle"),onClick:()=>c(r),children:l?o("creator.following"):o("creator.follow")})}const{colors:y,radius:xe,media:v}=de,ge=he`
141
145
  display: inline-flex;
142
146
  align-items: center;
143
147
  justify-content: center;
@@ -145,13 +149,13 @@ import{b as le,j as e,L as Ie,d as Le,u as Me,r as I}from"./react-D4a12AOU.js";i
145
149
  padding: 0 28px;
146
150
  border-radius: ${xe.btn};
147
151
  background: rgba(0, 0, 0, 0.5);
148
- color: ${w.white};
152
+ color: ${y.white};
149
153
  font-weight: 600;
150
154
  font-size: 13px;
151
155
  text-transform: uppercase;
152
156
  letter-spacing: 0.046em;
153
157
  text-decoration: none;
154
- `,Dt=s.section`
158
+ `,Dt=i.section`
155
159
  position: relative;
156
160
  border-radius: ${xe.card};
157
161
  overflow: hidden;
@@ -165,26 +169,26 @@ import{b as le,j as e,L as Ie,d as Le,u as Me,r as I}from"./react-D4a12AOU.js";i
165
169
  ${ge};
166
170
  }
167
171
  && .creator-hero__follow:hover:not(:disabled) {
168
- background: ${w.blackBtn};
172
+ background: ${y.blackBtn};
169
173
  }
170
174
 
171
175
  ${v.maxWidth("mobile")} {
172
176
  min-height: 260px;
173
177
  }
174
- `,Wt=s.div`
178
+ `,Wt=i.div`
175
179
  position: absolute;
176
180
  inset: 0;
177
181
  z-index: 0;
178
- `,Ot=s.img`
182
+ `,Ot=i.img`
179
183
  width: 100%;
180
184
  height: 100%;
181
185
  object-fit: cover;
182
186
  display: block;
183
- `,Gt=s.div`
187
+ `,Gt=i.div`
184
188
  position: absolute;
185
189
  inset: 0;
186
190
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.5) 100%);
187
- `,Ut=s.div`
191
+ `,Ut=i.div`
188
192
  position: absolute;
189
193
  top: 16px;
190
194
  right: 16px;
@@ -198,11 +202,11 @@ import{b as le,j as e,L as Ie,d as Le,u as Me,r as I}from"./react-D4a12AOU.js";i
198
202
  right: 12px;
199
203
  gap: 6px;
200
204
  }
201
- `,fe=de`
205
+ `,fe=he`
202
206
  display: flex;
203
207
  align-items: center;
204
208
  justify-content: center;
205
- color: ${w.white};
209
+ color: ${y.white};
206
210
  transition: opacity 0.15s linear;
207
211
 
208
212
  &:hover {
@@ -218,14 +222,14 @@ import{b as le,j as e,L as Ie,d as Le,u as Me,r as I}from"./react-D4a12AOU.js";i
218
222
  height: 30px;
219
223
  }
220
224
  }
221
- `,Ht=s.a`
225
+ `,Ht=i.a`
222
226
  ${fe};
223
- `,Kt=s(Ie)`
227
+ `,Kt=i(Ie)`
224
228
  ${fe};
225
229
  width: 32px;
226
230
  height: 32px;
227
231
  border-radius: 50%;
228
- border: 2px solid ${w.white};
232
+ border: 2px solid ${y.white};
229
233
  transition: background-color 0.15s linear;
230
234
 
231
235
  &:hover {
@@ -244,7 +248,7 @@ import{b as le,j as e,L as Ie,d as Le,u as Me,r as I}from"./react-D4a12AOU.js";i
244
248
  height: 14px;
245
249
  }
246
250
  }
247
- `,Vt=s.div`
251
+ `,Vt=i.div`
248
252
  position: relative;
249
253
  z-index: 1;
250
254
  display: flex;
@@ -257,13 +261,13 @@ import{b as le,j as e,L as Ie,d as Le,u as Me,r as I}from"./react-D4a12AOU.js";i
257
261
  ${v.maxWidth("mobile")} {
258
262
  padding: 56px 16px 24px;
259
263
  }
260
- `,ae=s.img`
264
+ `,ne=i.img`
261
265
  display: block;
262
266
  width: 112px;
263
267
  height: 112px;
264
268
  border-radius: 50%;
265
269
  object-fit: cover;
266
- border: 4px solid ${w.white};
270
+ border: 4px solid ${y.white};
267
271
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
268
272
  background: #ff4bed;
269
273
 
@@ -271,38 +275,38 @@ import{b as le,j as e,L as Ie,d as Le,u as Me,r as I}from"./react-D4a12AOU.js";i
271
275
  width: 88px;
272
276
  height: 88px;
273
277
  }
274
- `,qt=s.h2`
278
+ `,qt=i.h2`
275
279
  margin: 0;
276
280
  font-size: 18px;
277
281
  font-weight: 700;
278
- color: ${w.white};
282
+ color: ${y.white};
279
283
  line-height: 1.6;
280
284
 
281
285
  ${v.maxWidth("mobile")} {
282
286
  font-size: 16px;
283
287
  }
284
- `,Qt=s.p`
288
+ `,Qt=i.p`
285
289
  margin: 0;
286
290
  font-size: 15px;
287
- color: ${w.white};
291
+ color: ${y.white};
288
292
  line-height: 1.6;
289
293
  max-width: 520px;
290
294
 
291
295
  ${v.maxWidth("mobile")} {
292
296
  font-size: 14px;
293
297
  }
294
- `,Yt=s.div`
298
+ `,Yt=i.div`
295
299
  display: flex;
296
300
  align-items: center;
297
301
  gap: 12px;
298
302
  flex-wrap: wrap;
299
303
  justify-content: center;
300
- `,Zt=s.a`
304
+ `,Zt=i.a`
301
305
  ${ge};
302
306
  transition: background 0.15s ease;
303
307
 
304
308
  &:hover {
305
- background: ${w.blackBtn};
309
+ background: ${y.blackBtn};
306
310
  }
307
- `,Jt={website:"website",twitter:"twitter",discord:"discord",facebook:"facebook"};function Xt({address:r}){var m,k;const{data:i}=he(r),{data:a}=wt(r),l=rt(p=>{var $;return($=p.session)==null?void 0:$.address}),c=!!l&&l.toLowerCase()===r.toLowerCase(),d=(i==null?void 0:i.name)||ue(r),b=(k=(m=i==null?void 0:i.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=it(st({name:i==null?void 0:i.name,hasClaimedName:i==null?void 0:i.hasClaimedName,ethAddress:(i==null?void 0:i.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(Ut,{children:[f.map(p=>e.jsx(Ht,{"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(ee,{name:Jt[p]})},p)),c&&e.jsx(Kt,{to:"/store-settings",title:o("creator.editStore"),"aria-label":o("creator.editStore"),children:e.jsx(ee,{name:"pen"})})]}),e.jsxs(Vt,{children:[b?e.jsx(ae,{src:b,alt:"",loading:"eager",style:{backgroundColor:h}}):e.jsx(ae,{as:"span","aria-hidden":!0,style:{backgroundColor:h}}),e.jsxs("div",{children:[e.jsx(qt,{children:d}),n?e.jsx(Qt,{children:n}):null]}),e.jsxs(Yt,{children:[e.jsx(Zt,{"data-testid":"creator-hero-view",href:g,target:"_blank",rel:"noopener noreferrer",children:o("creator.viewProfile")}),e.jsx(Tt,{address:r,className:"creator-hero__follow"})]})]})]})}const eo=["all","on_sale","not_for_sale"],ne=48;function yo(){var q,Q;const{address:r}=Le(),i=le(),[a]=Me(),l=a.has("collections"),{data:c}=he(r),d=(c==null?void 0:c.name)||(r?ue(r):o("creator.fallbackName"));nt({title:d,description:o("seo.creator.description",{name:d}),image:(Q=(q=c==null?void 0:c.avatar)==null?void 0:q.snapshots)==null?void 0:Q.face256});const b=I.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:$}=j,S=eo.includes(j.status)?j.status:"all",z=t=>n({status:t});Re(`${l}:${g}:${f??""}`);const[E,N]=I.useState(!1);I.useEffect(()=>{if(!E)return;const t=Fe=>{Fe.key==="Escape"&&N(!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}},[E]);const B=m&&!Number.isNaN(Number(m))?Number(m):void 0,T=k&&!Number.isNaN(Number(k))?Number(k):void 0,be=f?Ye[f]:void 0,ye=(Y.find(t=>t.key===$)??Y[0]).server,D={creator:r,category:g,rarities:h.length?h:void 0,wearableCategories:be,minPriceCredits:B,maxPriceCredits:T,isWearableSmart:p||void 0,isOnSale:S==="all"?void 0:S==="on_sale",sortBy:ye},{items:M,total:we,isLoading:ve,isPlaceholderData:je,error:W,hasNextPage:ke,isFetchingNextPage:O,isFetchNextPageError:Ce,fetchNextPage:$e}=ie(["creator-items",D],t=>oe({...D,first:ne,skip:t}),{enabled:!!r&&!l}),P=lt({queryKey:["creator-item-count",r],queryFn:()=>oe({creator:r,first:1}).then(t=>t.total),enabled:!!r}),u=ie(["creator-collections",r],t=>ut(r,{first:ne,skip:t}).then(x=>({items:x.collections,total:x.total})),{enabled:!!r&&l});function G(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();i({search:x?`?${x}`:""},{replace:!0})}function Ne(){if(l){Se();return}const t=new URLSearchParams(a);t.delete("collections");const x=t.toString();i({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:()=>G("all")}),(B!=null||T!=null)&&C.push({key:"price",label:o("filter.price"),onRemove:()=>{n({priceMin:"",priceMax:""})}});for(const t of ze)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})}),S!=="all"&&C.push({key:"status",label:S==="on_sale"?o("filter.onSale"):o("filter.notForSale"),onRemove:()=>z("all")});const F=Ct({gridLoading:ve||je,gridError:!!W,gridCount:M.length,baselinePending:P.isPending,baselineError:P.isError,baselineCount:P.data}),K=F==="skeletons",{data:V}=dt(),Ee=I.useMemo(()=>M.map(t=>({...t,priceCredits:ht(t,V)})),[M,V]),Pe=t=>t.priceCredits>0||!!t.manaWei,_=F==="items"||F==="skeletons"?null:F;return e.jsxs(pt,{children:[e.jsxs(xt,{"aria-label":o("creator.breadcrumbAria"),children:[e.jsx(gt,{onClick:()=>i("/items"),children:o("creator.breadcrumb")}),e.jsx("span",{children:"/"}),e.jsx(ft,{children:d})]}),r?e.jsx(Xt,{address:r}):null,e.jsxs(Be,{children:[E?e.jsx(Te,{onClick:()=>N(!1),"aria-hidden":!0}):null,e.jsxs(De,{"data-open":E||void 0,"data-testid":"creator-sidebar",children:[e.jsxs(We,{children:[e.jsx(Oe,{children:o("assets.filters")}),e.jsx(Ge,{onClick:()=>N(!1),"aria-label":o("assets.closeFilters"),children:"✕"})]}),e.jsx(Ue,{children:e.jsx(He,{category:g,subCategory:f,onCategory:G,onSub:t=>n({subCategory:t}),priceMin:m,priceMax:k,onPriceMin:t=>n({priceMin:t}),onPriceMax:t=>n({priceMax:t}),rarities:h,onToggleRarity:U,status:S,onStatus:z,smart:p,onSmart:t=>n({smart:t}),hideNames:!0,collections:l,onCollections:Ne})}),e.jsx(Ke,{children:e.jsx(Ve,{type:"button",onClick:()=>N(!1),children:o("assets.showItems")})})]}),e.jsx(qe,{children:l?e.jsxs(e.Fragment,{children:[e.jsx(bt,{children:e.jsx(yt,{"data-testid":"creator-collections-count","aria-busy":u.isLoading||void 0,children:u.isLoading?e.jsx(me,{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(se,{"data-variant":"collections",children:u.isLoading?e.jsx(L,{count:9}):e.jsxs(e.Fragment,{children:[u.items.map(t=>e.jsx(Bt,{collection:t,itemCount:t.itemCount},t.contractAddress)),u.isFetchingNextPage?e.jsx(L,{count:6}):null]})}),e.jsx(re,{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:$,onSort:t=>n({sort:t}),total:we,loading:K,onOpenFilters:()=>N(!0),chips:C,onClearChips:H}),W?e.jsx(R,{message:o("creator.error"),testId:"creator-error"}):null,e.jsx(se,{"data-testid":"creator-grid",children:K?e.jsx(L,{count:15}):e.jsxs(e.Fragment,{children:[Ee.map(t=>Pe(t)?e.jsx(te,{item:t},t.id):e.jsx(te,{item:t,mode:"view"},t.id)),O?e.jsx(L,{count:6}):null]})}),e.jsx(re,{hasNextPage:ke,isFetching:O,isError:Ce,onLoadMore:()=>void $e()}),_==="error"?e.jsx(R,{message:o("creator.error"),testId:"creator-empty-error"}):_==="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"}}):_==="filters"?e.jsx(A,{testId:"creator-empty-filters",icon:Ae,title:o("creator.emptyFilters.title"),body:o("creator.emptyFilters.body",{count:P.data??0}),cta:{label:o("filterBar.clearAll"),onClick:H}}):null]})})]})]})}export{yo as Creator,yo as default};
308
- //# sourceMappingURL=Creator-DZqtuM7q.js.map
311
+ `,Jt={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(Ut,{children:[f.map(p=>e.jsx(Ht,{"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:Jt[p]})},p)),c&&e.jsx(Kt,{to:"/store-settings",title:o("creator.editStore"),"aria-label":o("creator.editStore"),children:e.jsx(te,{name:"pen"})})]}),e.jsxs(Vt,{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(qt,{children:d}),n?e.jsx(Qt,{children:n}):null]}),e.jsxs(Yt,{children:[e.jsx(Zt,{"data-testid":"creator-hero-view",href:g,target:"_blank",rel:"noopener noreferrer",children:o("creator.viewProfile")}),e.jsx(Tt,{address:r,className:"creator-hero__follow"})]})]})]})}const eo=["all","on_sale","not_for_sale"],le=48;function wo(){var Q,Y;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:(Y=(Q=c==null?void 0:c.avatar)==null?void 0:Q.snapshots)==null?void 0:Y.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",B=t=>n({status:t});Ae(`${l}:${g}:${f??""}`);const[P,E]=L.useState(!1);L.useEffect(()=>{if(!P)return;const t=Fe=>{Fe.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 T=m&&!Number.isNaN(Number(m))?Number(m):void 0,D=k&&!Number.isNaN(Number(k))?Number(k):void 0,be=f?Ye[f]:void 0,we=(Z.find(t=>t.key===S)??Z[0]).server,W={creator:r,category:g,rarities:h.length?h:void 0,wearableCategories:be,minPriceCredits:T,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}),F=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 U(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 H(t){n({rarities:h.includes(t)?h.filter(x=>x!==t):[...h,t]})}function K(){n(b)}const C=[];(g==="wearable"||g==="emote")&&C.push({key:"category",label:o(g==="emote"?"categories.emotes":"categories.wearables"),onRemove:()=>U("all")}),(T!=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:()=>H(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:()=>B("all")});const I=Ct({gridLoading:ve||je,gridError:!!O,gridCount:_.length,baselinePending:F.isPending,baselineError:F.isError,baselineCount:F.data}),V=I==="skeletons",{data:q}=dt(),Ee=L.useMemo(()=>_.map(t=>({...t,priceCredits:ht(t,q)})),[_,q]),Pe=t=>t.priceCredits>0||!!t.manaWei,z=I==="items"||I==="skeletons"?null:I;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(Be,{children:[P?e.jsx(Te,{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(Ue,{children:e.jsx(He,{category:g,subCategory:f,onCategory:U,onSub:t=>n({subCategory:t}),priceMin:m,priceMax:k,onPriceMin:t=>n({priceMin:t}),onPriceMax:t=>n({priceMax:t}),rarities:h,onToggleRarity:H,status:N,onStatus:B,smart:p,onSmart:t=>n({smart:t}),hideNames:!0,collections:l,onCollections:Ne})}),e.jsx(Ke,{children:e.jsx(Ve,{type:"button",onClick:()=>E(!1),children:o("assets.showItems")})})]}),e.jsx(qe,{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(Bt,{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:V,onOpenFilters:()=>E(!0),chips:C,onClearChips:K}),O?e.jsx(R,{message:o("creator.error"),testId:"creator-error"}):null,e.jsx(ae,{"data-testid":"creator-grid",children:V?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:F.data??0}),cta:{label:o("filterBar.clearAll"),onClick:K}}):null]})})]})]})}export{wo as Creator,wo as default};
312
+ //# sourceMappingURL=Creator-BTvR4L5i.js.map
@@ -1,4 +1,4 @@
1
- import{g as I}from"./react-D4a12AOU.js";import{r as H}from"./index-shiAYG1_.js";import{r as M}from"./dcl-schemas-BUryvO70.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},u=new o.Error().stack;u&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[u]="cbf0d28c-3b1e-4d72-899f-c0f7415e2f66",o._sentryDebugIdIdentifier="sentry-dbid-cbf0d28c-3b1e-4d72-899f-c0f7415e2f66")}catch{}})();function O(o,u){for(var w=0;w<u.length;w++){const h=u[w];if(typeof h!="string"&&!Array.isArray(h)){for(const b in h)if(b!=="default"&&!(b in o)){const g=Object.getOwnPropertyDescriptor(h,b);g&&Object.defineProperty(o,b,g.get?g:{enumerable:!0,get:()=>h[b]})}}}return Object.freeze(Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}))}var c={},F;function C(){if(F)return c;F=1,Object.defineProperty(c,"__esModule",{value:!0}),c.getHashesByKey=c.buildEntityWithoutNewFiles=c.buildEntity=c.buildEntityAndFile=void 0;const o=H(),u=M();async function w({type:n,pointers:t,timestamp:e,content:i,metadata:r}){var a;if(t.length===0)throw new Error("All entities must have at least one pointer.");const d={version:"v3",type:n,pointers:t,timestamp:e,content:i,metadata:r};if(i){const s=new Set;for(const p of i){const E=p.file.toLowerCase();if(s.has(E))throw new Error(`Error creating the deployable entity: Decentraland's file system is case insensitive, the file ${JSON.stringify(p.file)} is repeated`);s.add(E)}}const f=new TextEncoder().encode(JSON.stringify(d)),l={id:await(0,o.hashV1)(f),...d};if(!u.Entity.validate(l))throw new Error(`Generated entity is not valid:
1
+ import{g as I}from"./react-BHaOXxRY.js";import{r as H}from"./index-C-nlat3H.js";import{r as M}from"./dcl-schemas-GQNC2S4Z.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},u=new o.Error().stack;u&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[u]="cbf0d28c-3b1e-4d72-899f-c0f7415e2f66",o._sentryDebugIdIdentifier="sentry-dbid-cbf0d28c-3b1e-4d72-899f-c0f7415e2f66")}catch{}})();function O(o,u){for(var w=0;w<u.length;w++){const h=u[w];if(typeof h!="string"&&!Array.isArray(h)){for(const b in h)if(b!=="default"&&!(b in o)){const g=Object.getOwnPropertyDescriptor(h,b);g&&Object.defineProperty(o,b,g.get?g:{enumerable:!0,get:()=>h[b]})}}}return Object.freeze(Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}))}var c={},F;function C(){if(F)return c;F=1,Object.defineProperty(c,"__esModule",{value:!0}),c.getHashesByKey=c.buildEntityWithoutNewFiles=c.buildEntity=c.buildEntityAndFile=void 0;const o=H(),u=M();async function w({type:n,pointers:t,timestamp:e,content:i,metadata:r}){var a;if(t.length===0)throw new Error("All entities must have at least one pointer.");const d={version:"v3",type:n,pointers:t,timestamp:e,content:i,metadata:r};if(i){const s=new Set;for(const p of i){const E=p.file.toLowerCase();if(s.has(E))throw new Error(`Error creating the deployable entity: Decentraland's file system is case insensitive, the file ${JSON.stringify(p.file)} is repeated`);s.add(E)}}const f=new TextEncoder().encode(JSON.stringify(d)),l={id:await(0,o.hashV1)(f),...d};if(!u.Entity.validate(l))throw new Error(`Generated entity is not valid:
2
2
  `+((a=u.Entity.validate.errors)===null||a===void 0?void 0:a.map(s=>s.message).join(`
3
3
  `)));return{entity:l,entityFile:f}}c.buildEntityAndFile=w;async function h({type:n,pointers:t,files:e,metadata:i,timestamp:r}){const a=Array.from(e||[]).map(([l,s])=>({key:l,content:s})),d=await Promise.all(a.map(async({key:l,content:s})=>({key:l,content:s,hash:await(0,o.hashV1)(s)}))),f=new Map(d.map(({hash:l,key:s})=>[s,l])),y=new Map(d.map(({hash:l,content:s})=>[l,s]));return g(n,t,{hashesByKey:f,filesByHash:y,metadata:i,timestamp:r})}c.buildEntity=h;async function b(n,{contentUrl:t,type:e,pointers:i,hashesByKey:r,metadata:a,timestamp:d}){const f=r??a?m(a):void 0;if(f&&D(e,f)){const y=await _(n,t,f),l=await A(y,a);return h({type:e,pointers:i,files:y,metadata:l,timestamp:d})}return g(e,i,{hashesByKey:r,metadata:a,timestamp:d})}c.buildEntityWithoutNewFiles=b;async function g(n,t,e){if(t.length===0)throw new Error("All entities must have at least one pointer.");const i=e!=null&&e.hashesByKey?e==null?void 0:e.hashesByKey:new Map,r=Array.from(i.entries()).map(([l,s])=>({file:l,hash:s})),a=e!=null&&e.timestamp?e==null?void 0:e.timestamp:Date.now(),{entity:d,entityFile:f}=await w({type:n,pointers:t,timestamp:a,content:r,metadata:e==null?void 0:e.metadata}),y=e!=null&&e.filesByHash?e.filesByHash:new Map;return y.set(d.id,f),{files:y,entityId:d.id}}function D(n,t){return n===u.EntityType.PROFILE&&Array.from(t).some(([,e])=>e.toLowerCase().startsWith("qm"))}async function v(n,t){const i=await(await n.fetch(t)).arrayBuffer();return new Uint8Array(i)}async function _(n,t,e){const i=e.get("body.png"),r=e.get("face256.png"),a=new URL(`${t}/contents/${i}`).toString(),d=new URL(`${t}/contents/${r}`).toString(),[f,y]=await Promise.all([v(n,a),v(n,d)]);return new Map([["body.png",f],["face256.png",y]])}async function A(n,t){return t&&(t.avatars=await Promise.all(t.avatars.map(async e=>{const i={face256:"",body:""},r=n.get("face256.png");r&&(i.face256=await(0,o.hashV1)(r));const a=n.get("body.png");return a&&(i.body=await(0,o.hashV1)(a)),e.avatar.snapshots=i,e})),t)}function m(n){const t=n.avatars[0];if(t.avatar.snapshots)return new Map([["body.png",t.avatar.snapshots.body],["face256.png",t.avatar.snapshots.face256]])}return c.getHashesByKey=m,c}var B=C();const P=I(B),j=O({__proto__:null,default:P},[B]);export{j as D};
4
- //# sourceMappingURL=DeploymentBuilder-Du6kFotx.js.map
4
+ //# sourceMappingURL=DeploymentBuilder-qk7PnHQx.js.map
@@ -1,2 +1,2 @@
1
- import{j as n}from"./react-D4a12AOU.js";import{I as o}from"./index-Cz0qQOE1.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},r=new e.Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="c67eed24-9c07-42e3-aafe-ecbed75d6f90",e._sentryDebugIdIdentifier="sentry-dbid-c67eed24-9c07-42e3-aafe-ecbed75d6f90")}catch{}})();function i({message:e,className:r,testId:t}){return e?n.jsxs("p",{className:r?`error-notice ${r}`:"error-notice","data-testid":t,role:"alert",children:[n.jsx(o,{name:"alert",className:"error-notice__ico",size:18}),n.jsx("span",{className:"error-notice__msg",children:e})]}):null}export{i as E};
2
- //# sourceMappingURL=ErrorNotice-O5DWS_gB.js.map
1
+ import{j as n}from"./react-BHaOXxRY.js";import{I as o}from"./index-Cw2Mzm-8.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},r=new e.Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="c67eed24-9c07-42e3-aafe-ecbed75d6f90",e._sentryDebugIdIdentifier="sentry-dbid-c67eed24-9c07-42e3-aafe-ecbed75d6f90")}catch{}})();function i({message:e,className:r,testId:t}){return e?n.jsxs("p",{className:r?`error-notice ${r}`:"error-notice","data-testid":t,role:"alert",children:[n.jsx(o,{name:"alert",className:"error-notice__ico",size:18}),n.jsx("span",{className:"error-notice__msg",children:e})]}):null}export{i as E};
2
+ //# sourceMappingURL=ErrorNotice-BF2OJpNh.js.map
@@ -1,2 +1,2 @@
1
- import{C as d,E as h,b as f,S as E,d as k,O as U,N as A,g as P,B as x,e as N,i as I,p as _}from"./W3MFrameProviderSingleton-ogn_NV29.js";import{g as L,a as D,f as b,b as v,c as T}from"./index-BxNzm2wN.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},n=new t.Error().stack;n&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[n]="2e843c02-a22e-49c4-b6ee-9f2215391692",t._sentryDebugIdIdentifier="sentry-dbid-2e843c02-a22e-49c4-b6ee-9f2215391692")}catch{}})();const W=0,C={paymentAsset:null,amount:null,tokenAmount:0,priceLoading:!1,error:null,exchanges:[],isLoading:!1,currentPayment:void 0,isPaymentInProgress:!1,paymentId:"",assets:[]},e=_(C),m={state:e,subscribe(t){return I(e,()=>t(e))},subscribeKey(t,n){return N(e,t,n)},resetState(){Object.assign(e,{...C})},async getAssetsForNetwork(t){const n=T(t),s=await m.getAssetsImageAndPrice(n),r=n.map(a=>{var c,o,p,l;const u=a.asset==="native"?P():`${a.network}:${a.asset}`,i=s.find(S=>{var y,g,w;return((w=(g=(y=S.fungibles)==null?void 0:y[0])==null?void 0:g.address)==null?void 0:w.toLowerCase())===u.toLowerCase()});return{...a,price:((o=(c=i==null?void 0:i.fungibles)==null?void 0:c[0])==null?void 0:o.price)||1,metadata:{...a.metadata,iconUrl:(l=(p=i==null?void 0:i.fungibles)==null?void 0:p[0])==null?void 0:l.iconUrl}}});return e.assets=r,r},async getAssetsImageAndPrice(t){const n=t.map(r=>r.asset==="native"?P():`${r.network}:${r.asset}`);return await Promise.all(n.map(r=>x.fetchTokenPrice({addresses:[r]})))},getTokenAmount(){var s;if(!((s=e==null?void 0:e.paymentAsset)!=null&&s.price))throw new Error("Cannot get token price");const t=A.bigNumber(e.amount??0).round(8),n=A.bigNumber(e.paymentAsset.price).round(8);return t.div(n).round(8).toNumber()},setAmount(t){var n;e.amount=t,(n=e.paymentAsset)!=null&&n.price&&(e.tokenAmount=m.getTokenAmount())},setPaymentAsset(t){e.paymentAsset=t},isPayWithExchangeEnabled(){var t;return(t=U.state.remoteFeatures)==null?void 0:t.payWithExchange},isPayWithExchangeSupported(){return m.isPayWithExchangeEnabled()&&d.state.activeCaipNetwork&&k.PAY_WITH_EXCHANGE_SUPPORTED_CHAIN_NAMESPACES.includes(d.state.activeCaipNetwork.chainNamespace)},async fetchExchanges(){var t;try{const n=m.isPayWithExchangeSupported();if(!e.paymentAsset||!n){e.exchanges=[],e.isLoading=!1;return}e.isLoading=!0;const s=await v({page:W,asset:b(e.paymentAsset.network,e.paymentAsset.asset),amount:((t=e.amount)==null?void 0:t.toString())??"0"});e.exchanges=s.exchanges.slice(0,2)}catch{throw E.showError("Unable to get exchanges"),new Error("Unable to get exchanges")}finally{e.isLoading=!1}},async getPayUrl(t,n){try{const s=Number(n.amount),r=await D({exchangeId:t,asset:b(n.network,n.asset),amount:s.toString(),recipient:`${n.network}:${n.recipient}`});return h.sendEvent({type:"track",event:"PAY_EXCHANGE_SELECTED",properties:{exchange:{id:t},configuration:{network:n.network,asset:n.asset,recipient:n.recipient,amount:s},currentPayment:{type:"exchange",exchangeId:t},source:"fund-from-exchange",headless:!1}}),r}catch(s){throw s instanceof Error&&s.message.includes("is not supported")?new Error("Asset not supported"):new Error(s.message)}},async handlePayWithExchange(t){var n;try{const s=(n=d.getAccountData())==null?void 0:n.address;if(!s)throw new Error("No account connected");if(!e.paymentAsset)throw new Error("No payment asset selected");const r=f.returnOpenHref("","popupWindow","scrollbar=yes,width=480,height=720");if(!r)throw new Error("Could not create popup window");e.isPaymentInProgress=!0,e.paymentId=crypto.randomUUID(),e.currentPayment={type:"exchange",exchangeId:t};const{network:a,asset:u}=e.paymentAsset,i={network:a,asset:u,amount:e.tokenAmount,recipient:s},c=await m.getPayUrl(t,i);if(!c){try{r.close()}catch(o){console.error("Unable to close popup window",o)}throw new Error("Unable to initiate payment")}e.currentPayment.sessionId=c.sessionId,e.currentPayment.status="IN_PROGRESS",e.currentPayment.exchangeId=t,r.location.href=c.url}catch{e.error="Unable to initiate payment",E.showError(e.error)}},async waitUntilComplete({exchangeId:t,sessionId:n,paymentId:s,retries:r=20}){const a=await m.getBuyStatus(t,n,s);if(a.status==="SUCCESS"||a.status==="FAILED")return a;if(r===0)throw new Error("Unable to get deposit status");return await new Promise(u=>{setTimeout(u,5e3)}),m.waitUntilComplete({exchangeId:t,sessionId:n,paymentId:s,retries:r-1})},async getBuyStatus(t,n,s){var r,a,u,i,c;try{if(!e.currentPayment)throw new Error("No current payment");const o=await L({sessionId:n,exchangeId:t});if(e.currentPayment.status=o.status,o.status==="SUCCESS"||o.status==="FAILED"){const p=(r=d.getAccountData())==null?void 0:r.address;e.currentPayment.result=o.txHash,e.isPaymentInProgress=!1,h.sendEvent({type:"track",event:o.status==="SUCCESS"?"PAY_SUCCESS":"PAY_ERROR",properties:{message:o.status==="FAILED"?f.parseError(e.error):void 0,source:"fund-from-exchange",paymentId:s,configuration:{network:((a=e.paymentAsset)==null?void 0:a.network)||"",asset:((u=e.paymentAsset)==null?void 0:u.asset)||"",recipient:p||"",amount:e.amount??0},currentPayment:{type:"exchange",exchangeId:(i=e.currentPayment)==null?void 0:i.exchangeId,sessionId:(c=e.currentPayment)==null?void 0:c.sessionId,result:o.txHash}}})}return o}catch{return{status:"UNKNOWN",txHash:""}}},reset(){e.currentPayment=void 0,e.isPaymentInProgress=!1,e.paymentId="",e.paymentAsset=null,e.amount=0,e.tokenAmount=0,e.priceLoading=!1,e.error=null,e.exchanges=[],e.isLoading=!1}};export{m as E};
2
- //# sourceMappingURL=ExchangeController-C7RzKdOT.js.map
1
+ import{C as d,E as h,b as f,S as E,d as k,O as U,N as A,g as P,B as x,e as N,i as I,p as _}from"./W3MFrameProviderSingleton-D3pkilIG.js";import{g as L,a as D,f as b,b as v,c as T}from"./index-CPyWbAeJ.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},n=new t.Error().stack;n&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[n]="2e843c02-a22e-49c4-b6ee-9f2215391692",t._sentryDebugIdIdentifier="sentry-dbid-2e843c02-a22e-49c4-b6ee-9f2215391692")}catch{}})();const W=0,C={paymentAsset:null,amount:null,tokenAmount:0,priceLoading:!1,error:null,exchanges:[],isLoading:!1,currentPayment:void 0,isPaymentInProgress:!1,paymentId:"",assets:[]},e=_(C),m={state:e,subscribe(t){return I(e,()=>t(e))},subscribeKey(t,n){return N(e,t,n)},resetState(){Object.assign(e,{...C})},async getAssetsForNetwork(t){const n=T(t),s=await m.getAssetsImageAndPrice(n),r=n.map(a=>{var c,o,p,l;const u=a.asset==="native"?P():`${a.network}:${a.asset}`,i=s.find(S=>{var y,g,w;return((w=(g=(y=S.fungibles)==null?void 0:y[0])==null?void 0:g.address)==null?void 0:w.toLowerCase())===u.toLowerCase()});return{...a,price:((o=(c=i==null?void 0:i.fungibles)==null?void 0:c[0])==null?void 0:o.price)||1,metadata:{...a.metadata,iconUrl:(l=(p=i==null?void 0:i.fungibles)==null?void 0:p[0])==null?void 0:l.iconUrl}}});return e.assets=r,r},async getAssetsImageAndPrice(t){const n=t.map(r=>r.asset==="native"?P():`${r.network}:${r.asset}`);return await Promise.all(n.map(r=>x.fetchTokenPrice({addresses:[r]})))},getTokenAmount(){var s;if(!((s=e==null?void 0:e.paymentAsset)!=null&&s.price))throw new Error("Cannot get token price");const t=A.bigNumber(e.amount??0).round(8),n=A.bigNumber(e.paymentAsset.price).round(8);return t.div(n).round(8).toNumber()},setAmount(t){var n;e.amount=t,(n=e.paymentAsset)!=null&&n.price&&(e.tokenAmount=m.getTokenAmount())},setPaymentAsset(t){e.paymentAsset=t},isPayWithExchangeEnabled(){var t;return(t=U.state.remoteFeatures)==null?void 0:t.payWithExchange},isPayWithExchangeSupported(){return m.isPayWithExchangeEnabled()&&d.state.activeCaipNetwork&&k.PAY_WITH_EXCHANGE_SUPPORTED_CHAIN_NAMESPACES.includes(d.state.activeCaipNetwork.chainNamespace)},async fetchExchanges(){var t;try{const n=m.isPayWithExchangeSupported();if(!e.paymentAsset||!n){e.exchanges=[],e.isLoading=!1;return}e.isLoading=!0;const s=await v({page:W,asset:b(e.paymentAsset.network,e.paymentAsset.asset),amount:((t=e.amount)==null?void 0:t.toString())??"0"});e.exchanges=s.exchanges.slice(0,2)}catch{throw E.showError("Unable to get exchanges"),new Error("Unable to get exchanges")}finally{e.isLoading=!1}},async getPayUrl(t,n){try{const s=Number(n.amount),r=await D({exchangeId:t,asset:b(n.network,n.asset),amount:s.toString(),recipient:`${n.network}:${n.recipient}`});return h.sendEvent({type:"track",event:"PAY_EXCHANGE_SELECTED",properties:{exchange:{id:t},configuration:{network:n.network,asset:n.asset,recipient:n.recipient,amount:s},currentPayment:{type:"exchange",exchangeId:t},source:"fund-from-exchange",headless:!1}}),r}catch(s){throw s instanceof Error&&s.message.includes("is not supported")?new Error("Asset not supported"):new Error(s.message)}},async handlePayWithExchange(t){var n;try{const s=(n=d.getAccountData())==null?void 0:n.address;if(!s)throw new Error("No account connected");if(!e.paymentAsset)throw new Error("No payment asset selected");const r=f.returnOpenHref("","popupWindow","scrollbar=yes,width=480,height=720");if(!r)throw new Error("Could not create popup window");e.isPaymentInProgress=!0,e.paymentId=crypto.randomUUID(),e.currentPayment={type:"exchange",exchangeId:t};const{network:a,asset:u}=e.paymentAsset,i={network:a,asset:u,amount:e.tokenAmount,recipient:s},c=await m.getPayUrl(t,i);if(!c){try{r.close()}catch(o){console.error("Unable to close popup window",o)}throw new Error("Unable to initiate payment")}e.currentPayment.sessionId=c.sessionId,e.currentPayment.status="IN_PROGRESS",e.currentPayment.exchangeId=t,r.location.href=c.url}catch{e.error="Unable to initiate payment",E.showError(e.error)}},async waitUntilComplete({exchangeId:t,sessionId:n,paymentId:s,retries:r=20}){const a=await m.getBuyStatus(t,n,s);if(a.status==="SUCCESS"||a.status==="FAILED")return a;if(r===0)throw new Error("Unable to get deposit status");return await new Promise(u=>{setTimeout(u,5e3)}),m.waitUntilComplete({exchangeId:t,sessionId:n,paymentId:s,retries:r-1})},async getBuyStatus(t,n,s){var r,a,u,i,c;try{if(!e.currentPayment)throw new Error("No current payment");const o=await L({sessionId:n,exchangeId:t});if(e.currentPayment.status=o.status,o.status==="SUCCESS"||o.status==="FAILED"){const p=(r=d.getAccountData())==null?void 0:r.address;e.currentPayment.result=o.txHash,e.isPaymentInProgress=!1,h.sendEvent({type:"track",event:o.status==="SUCCESS"?"PAY_SUCCESS":"PAY_ERROR",properties:{message:o.status==="FAILED"?f.parseError(e.error):void 0,source:"fund-from-exchange",paymentId:s,configuration:{network:((a=e.paymentAsset)==null?void 0:a.network)||"",asset:((u=e.paymentAsset)==null?void 0:u.asset)||"",recipient:p||"",amount:e.amount??0},currentPayment:{type:"exchange",exchangeId:(i=e.currentPayment)==null?void 0:i.exchangeId,sessionId:(c=e.currentPayment)==null?void 0:c.sessionId,result:o.txHash}}})}return o}catch{return{status:"UNKNOWN",txHash:""}}},reset(){e.currentPayment=void 0,e.isPaymentInProgress=!1,e.paymentId="",e.paymentAsset=null,e.amount=0,e.tokenAmount=0,e.priceLoading=!1,e.error=null,e.exchanges=[],e.isLoading=!1}};export{m as E};
2
+ //# sourceMappingURL=ExchangeController-DA7i527B.js.map
@@ -1,4 +1,4 @@
1
- import{r as x,j as o}from"./react-D4a12AOU.js";import{t as e,s as a,b as h,I as w}from"./index-Cz0qQOE1.js";(function(){try{var i=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},s=new i.Error().stack;s&&(i._sentryDebugIds=i._sentryDebugIds||{},i._sentryDebugIds[s]="25e1e28b-e95e-44f5-9c49-6561c3eb67b7",i._sentryDebugIdIdentifier="sentry-dbid-25e1e28b-e95e-44f5-9c49-6561c3eb67b7")}catch{}})();const m=a.section`
1
+ import{r as x,j as o}from"./react-BHaOXxRY.js";import{t as e,s as a,b as h,I as w}from"./index-Cw2Mzm-8.js";(function(){try{var i=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},s=new i.Error().stack;s&&(i._sentryDebugIds=i._sentryDebugIds||{},i._sentryDebugIds[s]="25e1e28b-e95e-44f5-9c49-6561c3eb67b7",i._sentryDebugIdIdentifier="sentry-dbid-25e1e28b-e95e-44f5-9c49-6561c3eb67b7")}catch{}})();const m=a.section`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  gap: 36px;
@@ -172,4 +172,4 @@ import{r as x,j as o}from"./react-D4a12AOU.js";import{t as e,s as a,b as h,I as
172
172
  }
173
173
  `;function S({title:i,entries:s,tone:l="light",className:u}){const[f,g]=x.useState(()=>new Set),p=x.useId();function b(t){g(n=>{const r=new Set(n);return r.delete(t)||r.add(t),r})}return o.jsxs(m,{className:u,"data-tone":l,"data-testid":"faq",children:[o.jsx(k,{"data-testid":"faq-title",children:h(i)}),o.jsx(v,{children:s.map(t=>{const n=f.has(t.question),r=`${p}-panel-${t.question}`,c=`${p}-header-${t.question}`;return o.jsxs($,{"data-open":n,"data-testid":"faq-item",children:[o.jsxs(y,{type:"button",onClick:()=>b(t.question),id:c,"aria-expanded":n,"aria-controls":n?r:void 0,"data-open":n,"data-testid":"faq-question",children:[o.jsx(q,{children:h(t.question)}),o.jsx(I,{"data-open":n,"aria-hidden":!0,children:o.jsx(w,{name:"chevron-up-line",size:36})})]}),n&&o.jsx(j,{id:r,role:"region","aria-labelledby":c,"data-testid":"faq-answer",children:h(t.answer).split(`
174
174
  `).map(d=>d.trim()).filter(Boolean).map(d=>o.jsx("p",{children:d},d))})]},t.question)})})]})}export{S as F};
175
- //# sourceMappingURL=Faq-BlFxXYzr.js.map
175
+ //# sourceMappingURL=Faq-DaK46DZt.js.map
@@ -1,4 +1,4 @@
1
- import{b as ue,u as xe,r as l,j as t}from"./react-D4a12AOU.js";import{s as i,t as e,m as F,n as ge,b as o,C as h,o as fe,r as me,R as x,aI as be,h as U,aS as D,bR as we,az as N,q as ie,I as ye,a3 as ke,bS as Q}from"./index-Cz0qQOE1.js";import{C as ve}from"./Confetti-DyEmp5aX.js";import{F as Ce}from"./Faq-BlFxXYzr.js";import{R as H}from"./resume-buy-CHwHfFfB.js";import{u as $e,b as je,R as Se,c as Pe,i as _e,d as Ae}from"./useCreditPacks-Bp1eg_w0.js";import"./dcl-schemas-BUryvO70.js";import"./sentry-BtNPB732.js";import"./ethers-CRWPmA0X.js";import"./intl-AKLEHPeO.js";(function(){try{var s=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},n=new s.Error().stack;n&&(s._sentryDebugIds=s._sentryDebugIds||{},s._sentryDebugIds[n]="43e40e08-aebd-4b24-8e83-2e156ba047c6",s._sentryDebugIdIdentifier="sentry-dbid-43e40e08-aebd-4b24-8e83-2e156ba047c6")}catch{}})();const _="https://cdn.decentraland.org/@dcl/shop/1.6.4-31478985898.commit-31fbca5/_assets/pack-coins-BDh1ZDbh.webp",re="https://cdn.decentraland.org/@dcl/shop/1.6.4-31478985898.commit-31fbca5/_assets/pack-stacks-D-V2jSHW.webp",ne="https://cdn.decentraland.org/@dcl/shop/1.6.4-31478985898.commit-31fbca5/_assets/pack-chest-BX_j84xW.webp",Re="https://cdn.decentraland.org/@dcl/shop/1.6.4-31478985898.commit-31fbca5/_assets/credit-coin-CmcTCd5i.webp",K="data:image/svg+xml,%3csvg%20width='60'%20height='60'%20viewBox='0%200%2060%2060'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20width='60'%20height='60'%20rx='30'%20fill='%2334CE77'/%3e%3cpath%20d='M21.6583%2046.1067L11.4656%2036.0591C10.1688%2034.829%2010.1905%2032.7207%2011.4769%2031.4622L13.6868%2029.3591C14.9732%2028.1006%2017.1615%2028.1058%2018.4582%2029.3359L23.8747%2034.6197L41.9704%2015.6527C43.2568%2014.3942%2045.4291%2014.2093%2046.7258%2015.4394L48.8765%2017.3628C50.1732%2018.5929%2050.3491%2020.6844%2049.0626%2021.9429L26.6112%2045.8766C25.1433%2047.342%2022.955%2047.3368%2021.6583%2046.1067Z'%20fill='%23FCFCFC'/%3e%3c/svg%3e",O="linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0)",Te=i.div`
1
+ import{b as ue,u as xe,r as l,j as t}from"./react-BHaOXxRY.js";import{s as i,t as e,m as F,n as ge,b as o,C as h,o as fe,r as me,R as x,aI as be,h as U,aS as D,bR as we,az as N,q as ie,I as ye,a3 as ke,bS as Q}from"./index-Cw2Mzm-8.js";import{C as ve}from"./Confetti-MCo50BBJ.js";import{F as Ce}from"./Faq-DaK46DZt.js";import{R as H}from"./resume-buy-BVqIQtWn.js";import{u as $e,b as je,R as Se,c as Pe,i as _e,d as Ae}from"./useCreditPacks-BPDUvy8q.js";import"./dcl-schemas-GQNC2S4Z.js";import"./sentry-Dpl2Rzxy.js";import"./ethers-CUPuVG6E.js";import"./intl-AKLEHPeO.js";(function(){try{var s=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},n=new s.Error().stack;n&&(s._sentryDebugIds=s._sentryDebugIds||{},s._sentryDebugIds[n]="2a243e0e-323a-4c5b-a190-568f88873a03",s._sentryDebugIdIdentifier="sentry-dbid-2a243e0e-323a-4c5b-a190-568f88873a03")}catch{}})();const _="https://cdn.decentraland.org/@dcl/shop/1.6.4-31480376613.commit-0bb9931/_assets/pack-coins-BDh1ZDbh.webp",re="https://cdn.decentraland.org/@dcl/shop/1.6.4-31480376613.commit-0bb9931/_assets/pack-stacks-D-V2jSHW.webp",ne="https://cdn.decentraland.org/@dcl/shop/1.6.4-31480376613.commit-0bb9931/_assets/pack-chest-BX_j84xW.webp",Re="https://cdn.decentraland.org/@dcl/shop/1.6.4-31480376613.commit-0bb9931/_assets/credit-coin-CmcTCd5i.webp",K="data:image/svg+xml,%3csvg%20width='60'%20height='60'%20viewBox='0%200%2060%2060'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20width='60'%20height='60'%20rx='30'%20fill='%2334CE77'/%3e%3cpath%20d='M21.6583%2046.1067L11.4656%2036.0591C10.1688%2034.829%2010.1905%2032.7207%2011.4769%2031.4622L13.6868%2029.3591C14.9732%2028.1006%2017.1615%2028.1058%2018.4582%2029.3359L23.8747%2034.6197L41.9704%2015.6527C43.2568%2014.3942%2045.4291%2014.2093%2046.7258%2015.4394L48.8765%2017.3628C50.1732%2018.5929%2050.3491%2020.6844%2049.0626%2021.9429L26.6112%2045.8766C25.1433%2047.342%2022.955%2047.3368%2021.6583%2046.1067Z'%20fill='%23FCFCFC'/%3e%3c/svg%3e",O="linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0)",Te=i.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  gap: 24px;
@@ -807,4 +807,4 @@ import{b as ue,u as xe,r as l,j as t}from"./react-D4a12AOU.js";import{s as i,t a
807
807
  font-family: ${e.font.sans};
808
808
  color: ${e.colors.err};
809
809
  `,v=_e()?"mock":"stripe",ee=[_,_,re,ne],zt={pack_5:_,pack_10:_,pack_25:re,pack_50:ne};function se(s,n){return zt[s.id]??ee[n%ee.length]}function Bt(s,n){return s.artUrl??se(s,n)}const Ft=[{question:"faq.buyers.whatAreQ",answer:"faq.buyers.whatAreA"},{question:"faq.buyers.whatCanIBuyQ",answer:"faq.buyers.whatCanIBuyA"},{question:"faq.buyers.whereBuyQ",answer:"faq.buyers.whereBuyA"},{question:"faq.buyers.whereUseQ",answer:"faq.buyers.whereUseA"},{question:"faq.buyers.expireQ",answer:"faq.buyers.expireA"},{question:"faq.buyers.transferQ",answer:"faq.buyers.transferA"}];function te(s){const n=s;if((n==null?void 0:n.name)==="AbortError")return o("getCredits.errorCanceled");const g=((n==null?void 0:n.message)??"").toLowerCase();return g.includes("sign in")?o("getCredits.errorSignIn",{currency:h.name}):g.includes("timed out")?o("getCredits.errorTimeout",{currency:h.name}):o("getCredits.errorGeneric")}function Ht(){var L;ge({title:o("nav.getCredits",{currency:h.name}),noindex:!0});const s=ue(),{session:n,signIn:g,restored:a}=fe(),m=me(),[b,$]=xe(),{packs:w,isLoading:ae}=$e(),[f,p]=l.useState("select"),[d,I]=l.useState(null),[j,q]=l.useState(null),de=(j!=null?(L=w.find(r=>r.credits===j))==null?void 0:L.artUrl:void 0)??Re,[ce,y]=l.useState(null),[le,S]=l.useState(!1),R=l.useRef(null);l.useEffect(()=>()=>{var r;return(r=R.current)==null?void 0:r.abort()},[]);const E=l.useCallback(()=>{$(r=>{const c=new URLSearchParams(r);return c.delete("order"),c.delete("canceled"),c},{replace:!0})},[$]),T=l.useCallback(async r=>{p("processing");const c=new AbortController;R.current=c;try{const u=await je(r,{signal:c.signal,address:n==null?void 0:n.address,identity:n==null?void 0:n.identity});if(u.status==="credited"){const k=u.creditsGranted??(d==null?void 0:d.credits)??0;q(k>0?k:null),p("success"),x("Shop Completed Buy Credits",{order_id:r,pack_usd:(d==null?void 0:d.usd)??null,credits:k>0?k:null,provider:v}),m.invalidateQueries({queryKey:["usd-balance"]});try{if(sessionStorage.getItem(Se)){const P={resumeCheckout:!0,...k>0?{creditsAdded:k}:{}};s("/cart",{state:P});return}}catch{}try{const P=sessionStorage.getItem(H);if(P){sessionStorage.removeItem(H);const G=JSON.parse(P),M=be(G);if(M){s(M,{state:{item:G,resumeBuy:!0}});return}}}catch{}}else u.status==="abandoned"||u.status==="initiated"?(x("Shop Buy Credits Cancelled",{order_id:r,provider:v,step:"grant"}),m.invalidateQueries({queryKey:["usd-balance"]}),S(!0),p("select")):u.status==="failed"?(x("Shop Buy Credits Failed",{step:"grant",error_code:"grant_failed",pack_usd:(d==null?void 0:d.usd)??null}),y(u.error??o("getCredits.errorGrant",{currency:h.name})),p("error")):(x("Shop Buy Credits Pending",{step:"grant",pack_usd:(d==null?void 0:d.usd)??null}),m.invalidateQueries({queryKey:["usd-balance"]}),p("pending"))}catch(u){U(u,{flow:"get_credits",step:"grant",order_id:r}),x("Shop Buy Credits Failed",{step:"grant",error_code:D(u),pack_usd:(d==null?void 0:d.usd)??null}),y(te(u)),p("error")}},[d,n,m,s]),pe=l.useCallback(async r=>{if(!n){g();return}y(null),S(!1),I(r),p(v==="mock"?"processing":"redirecting"),x("Shop Started Buy Credits",{pack_usd:r.usd,credits:r.credits,provider:v});try{const c=await Pe(r.id,{address:n.address,identity:n.identity});if(c.mock)T(c.orderId);else if(c.url)x("Shop Redirected To Stripe",{order_id:c.orderId,pack_usd:r.usd,credits:r.credits}),window.location.href=c.url;else throw new Error("Checkout did not return a redirect url")}catch(c){U(c,{flow:"get_credits",step:"checkout",provider:v}),x("Shop Buy Credits Failed",{step:"checkout",error_code:D(c),pack_usd:r.usd}),y(te(c)),p("error")}},[n,g,T]),z=l.useRef(!1),W=l.useRef(null);l.useEffect(()=>{if(z.current)return;const r=b.get("order");if(b.get("canceled")!=null){if(r&&!a)return;z.current=!0,x("Shop Buy Credits Cancelled",{order_id:r,provider:v}),r&&n&&we(r,n.identity),E(),S(!0),p("select");return}if(r){if(p("processing"),!n){a&&(x("Shop Buy Credits Failed",{step:"grant",error_code:"no_identity",pack_usd:(d==null?void 0:d.usd)??null}),y(o("getCredits.errorSignInAfterPay",{currency:h.name})),p("error"));return}z.current=!0,E(),T(r)}},[b,n,a]);function B(){var r;(r=R.current)==null||r.abort(),p("select"),I(null),q(null),y(null),S(!1)}function he(){const r=W.current;if(!r)return;const c=window.matchMedia("(prefers-reduced-motion: reduce)").matches;r.scrollIntoView({behavior:c?"auto":"smooth",block:"center"}),r.focus({preventScroll:!0})}return t.jsxs(Te,{children:[(f==="select"||f==="redirecting")&&t.jsxs(t.Fragment,{children:[t.jsx(ze,{"data-testid":"credits-hero",children:t.jsxs(Be,{children:[t.jsxs(Ie,{$hidden:f==="redirecting",children:[t.jsxs(qe,{children:[t.jsx(Ee,{children:o("getCredits.title")}),t.jsxs(We,{children:[t.jsx(Le,{children:o("getCredits.subtitle")}),t.jsx(Ge,{type:"button",onClick:he,"data-testid":"credits-learn-more",children:o("getCredits.learnMore")})]})]}),le&&t.jsx(Me,{role:"status",children:o("getCredits.canceledNote")}),t.jsx(It,{packs:w,loading:ae,onSelect:r=>void pe(r)})]}),f==="redirecting"&&t.jsxs(Je,{role:"status","aria-live":"polite",children:[t.jsx(rt,{src:N,alt:"",width:72,height:72}),t.jsx(et,{children:o("getCredits.redirecting")})]})]})}),t.jsx(Fe,{ref:W,tabIndex:-1,"data-testid":"credits-faq",children:t.jsx(Ce,{title:"faq.title",entries:Ft,tone:"on-dark"})})]}),f==="processing"&&t.jsxs(it,{role:"status","aria-live":"polite",children:[t.jsx(oe,{src:N,alt:"",width:61,height:61}),t.jsxs(nt,{children:[t.jsxs(ot,{children:[t.jsx("strong",{children:o("getCredits.processing")}),"…"]}),t.jsxs(st,{"aria-hidden":!0,children:[t.jsx(dt,{children:t.jsx(ct,{})}),t.jsx(lt,{children:"1/1"})]})]})]}),f==="success"&&t.jsx(J,{children:t.jsxs(pt,{role:"status","aria-live":"polite",children:[t.jsx(ve,{}),t.jsxs(ht,{children:[t.jsx(ut,{src:K,alt:"",width:60,height:60}),t.jsxs(xt,{children:[t.jsx("strong",{children:o("getCredits.successTitle")})," ",o("getCredits.successBody",{currency:h.name})]})]}),j!=null&&t.jsx(gt,{children:t.jsxs(ft,{children:[t.jsx(mt,{src:de,alt:"",width:93,height:93}),t.jsxs(bt,{children:[t.jsx(ie,{}),t.jsxs("span",{children:[t.jsx(wt,{children:o("getCredits.creditsAmount",{credits:j,currency:h.name})})," ",t.jsx(yt,{children:o("getCredits.creditsAdded")})]})]})]})}),t.jsxs(kt,{children:[t.jsx(C,{"data-variant":"outline",onClick:B,children:o("getCredits.buyMore",{currency:h.name})}),t.jsx(C,{onClick:()=>s("/items"),children:o("getCredits.startShopping")})]})]})}),f==="pending"&&t.jsx(J,{children:t.jsxs(Ct,{role:"status","aria-live":"polite","data-testid":"credits-pending",children:[t.jsxs($t,{children:[t.jsx(jt,{src:K,alt:"",width:32,height:32}),t.jsx(St,{children:o("getCredits.pendingTitle",{currency:h.name})})]}),t.jsx(Pt,{children:o("getCredits.pendingBody")}),t.jsxs(_t,{children:[t.jsx(C,{"data-variant":"outline",onClick:()=>s("/items"),children:o("getCredits.goShopping")}),t.jsx(C,{"data-variant":"ruby",onClick:B,children:o("getCredits.gotIt")})]})]})}),f==="error"&&t.jsxs(vt,{role:"alert",children:[t.jsx(At,{"data-tone":"error",children:o("getCredits.errorTitle")}),t.jsx(Tt,{children:ce}),t.jsx(Rt,{children:t.jsx(C,{onClick:B,children:o("getCredits.tryAgain")})})]})]})}function It({packs:s,loading:n,onSelect:g}){return n?t.jsx(Y,{"aria-busy":"true","aria-label":o("getCredits.packsLoading",{currency:h.name}),children:[0,1,2,3].map(a=>t.jsxs(V,{as:"div","data-skeleton":"true","data-testid":"pack-skeleton","aria-hidden":!0,children:[t.jsxs(X,{children:[t.jsxs(Z,{children:[t.jsx(Ye,{}),t.jsx(Ve,{})]}),t.jsx(Xe,{})]}),t.jsx(Ze,{})]},a))}):t.jsx(Y,{children:s.map((a,m)=>{const b=Ae(a,s);return t.jsxs(V,{type:"button","data-testid":"pack","data-best":a.bestValue?"true":void 0,onClick:()=>g(a),"aria-label":b?o("getCredits.packAriaBonus",{amount:Q(a.credits),usd:a.usd,bonus:b.bonus,baseline:b.baseline}):o("getCredits.packAria",{amount:Q(a.credits),usd:a.usd}),children:[a.bestValue&&t.jsxs(Ue,{children:[t.jsx(ye,{name:"star-rounded"}),o("getCredits.packBadge")]}),t.jsxs(X,{children:[t.jsxs(Z,{children:[t.jsxs(De,{children:[t.jsx(ie,{}),t.jsx(Ne,{children:t.jsx(ke,{credits:a.credits})})]}),t.jsx(Qe,{children:o("getCredits.packUnit",{currency:h.name})})]}),t.jsx(He,{children:t.jsx("img",{src:Bt(a,m),alt:"",loading:"lazy",width:507,height:507,onError:$=>{const w=$.currentTarget;w.dataset.artFallback||(w.dataset.artFallback="done",w.src=se(a,m))}})})]}),t.jsxs(Ke,{children:["$",a.usd.toFixed(2)]})]},a.id)})})}export{Ht as GetCredits,Ht as default};
810
- //# sourceMappingURL=GetCredits-B9CV0EDm.js.map
810
+ //# sourceMappingURL=GetCredits-CPwkY6zf.js.map