@dcl/shop 1.17.1 → 1.17.2-36157867735.commit-7431f7b

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 (251) hide show
  1. package/_assets/{Activity-BNjXw97e.js → Activity-CE6Jeo_T.js} +9 -9
  2. package/_assets/{AnimatedBackground-kFDegzCM.js → AnimatedBackground-D5MFl62Y.js} +3 -3
  3. package/_assets/{Assets-D_dCmUv0.js → Assets-COp5lo1c.js} +7 -7
  4. package/_assets/{Cart-BPv_4JHc.js → Cart-CXTYKHB4.js} +5 -5
  5. package/_assets/{Collection-2qp7F46n.js → Collection-D6GAA887.js} +7 -7
  6. package/_assets/{CollectionCarousel-CXiZiW-S.js → CollectionCarousel-C_r2HthR.js} +7 -7
  7. package/_assets/{Confetti-Bsu2ytMi.js → Confetti-DPZN6qJi.js} +4 -4
  8. package/_assets/{ConstantsUtil-czCTnHYO.js → ConstantsUtil-C6ody29O.js} +2 -2
  9. package/_assets/{ContentClient-CIV5rrAt.js → ContentClient-C03rRrUz.js} +2 -2
  10. package/_assets/{Creator-CIH3WU3e.js → Creator-Chq_3FKW.js} +7 -7
  11. package/_assets/{CreditPackPicker-Cf2WXrfD.js → CreditPackPicker-yPm96IIv.js} +2 -2
  12. package/_assets/{CreditRate-DjCL9hVD.js → CreditRate-BxqKLfaA.js} +6 -6
  13. package/_assets/{DeploymentBuilder-C3NqEfXH.js → DeploymentBuilder-B2QubYgD.js} +2 -2
  14. package/_assets/{EmotePlaybackBar-Bq7TckV0.js → EmotePlaybackBar-Cp9UGu_L.js} +3 -3
  15. package/_assets/{ErrorNotice-DSZ4YOzl.js → ErrorNotice-D_6j8-7f.js} +2 -2
  16. package/_assets/{Event-D__OUwpc.js → Event-v8GnBTyC.js} +2 -2
  17. package/_assets/{ExchangeController-BlkQV8ix.js → ExchangeController-CE3cQOVu.js} +2 -2
  18. package/_assets/{Faq-Daw98w_f.js → Faq-Dfduj2eM.js} +2 -2
  19. package/_assets/{Filters-COsCKlQM.js → Filters-CdMOVmbU.js} +2 -2
  20. package/_assets/{GetCredits-uaIm_-xy.js → GetCredits-BS--XoK-.js} +2 -2
  21. package/_assets/{Grow-nApzPG32.js → Grow-CPeuefrF.js} +2 -2
  22. package/_assets/{HelpersUtil-Dhc8srsx.js → HelpersUtil-B_SruwGa.js} +2 -2
  23. package/_assets/IssueModal-D_PS_2Xk.js +323 -0
  24. package/_assets/ItemDetail-DBAHPIQO.js +3090 -0
  25. package/_assets/{LoadMore-D8gtSgyc.js → LoadMore-CM5ykem-.js} +2 -2
  26. package/_assets/{ManaPricingBanner-CiV8R5vd.js → ManaPricingBanner-CZzRxND3.js} +2 -2
  27. package/_assets/{ManaPricingBanner.styles-BNQ_wLgO.js → ManaPricingBanner.styles-B10EKkra.js} +2 -2
  28. package/_assets/{MyAssets-XbkBS3DE.js → MyAssets-Fhl2lazZ.js} +2 -2
  29. package/_assets/{MyFavorites-lktPT4tc.js → MyFavorites-DqyQ-SFM.js} +10 -10
  30. package/_assets/MyStore-B5e7oQJa.js +1691 -0
  31. package/_assets/{NetworkUtil-BwvINT8v.js → NetworkUtil-iL8rkdmy.js} +2 -2
  32. package/_assets/{NotFound-CIueRHHs.js → NotFound-sBVYlhk3.js} +2 -2
  33. package/_assets/NotificationsBell-TdDjFO5P.js +142 -0
  34. package/_assets/{OutfitDetail-MDYbLLf8.js → OutfitDetail-BBsCNaaP.js} +3 -3
  35. package/_assets/{OutfitPreview-C52GjMv6.js → OutfitPreview-BTJ-IIEH.js} +3 -3
  36. package/_assets/{OutfitStudio-uomtfIa1.js → OutfitStudio-DXHZfbf9.js} +10 -10
  37. package/_assets/{PaymentMethodStep-aQUg-E9d.js → PaymentMethodStep-Ob8YI_SL.js} +5 -5
  38. package/_assets/{SaleCountdown-BC6cklIs.js → SaleCountdown-KX9dNqTp.js} +2 -2
  39. package/_assets/{Spinner-NI6IZA5A.js → Spinner-DKskpIEZ.js} +2 -2
  40. package/_assets/{StoreSettings-BrdRpaVU.js → StoreSettings-Bia_W-8Q.js} +8 -8
  41. package/_assets/{Success-Bsg9-DNo.js → Success-2dVHPO-2.js} +2 -2
  42. package/_assets/{SwapController-DVbKfkaS.js → SwapController-CbFqSpFg.js} +2 -2
  43. package/_assets/{Tooltip-DIRWGOxl.js → Tooltip-DFrRznAp.js} +2 -2
  44. package/_assets/{TradeService-CK7xu_Fq.js → TradeService-CDS_PfTn.js} +2 -2
  45. package/_assets/{W3MFrameProviderSingleton-BWvDpNTL.js → W3MFrameProviderSingleton-C4KtItmg.js} +4 -4
  46. package/_assets/{WebCryptoP256-pa_zJ5z4.js → WebCryptoP256-CbiRbOjq.js} +2 -2
  47. package/_assets/{basic-Mlwb1YPe.js → basic-BufXGp2F.js} +2 -2
  48. package/_assets/{biconomy-CIvkhhfY.js → biconomy-BR1CMfhe.js} +2 -2
  49. package/_assets/{browseLayout.styles-D3u_lxUV.js → browseLayout.styles-DF9DTUfO.js} +2 -2
  50. package/_assets/{browser-BnRQXFFw.js → browser-DqwPlfZs.js} +2 -2
  51. package/_assets/{browser-ponyfill-Dmn_2mUU.js → browser-ponyfill-DqHLL_k5.js} +2 -2
  52. package/_assets/{browser-lYIugjhZ.js → browser-qc2dUFk5.js} +2 -2
  53. package/_assets/{buy-MeE-N2le.js → buy-BiTHthT9.js} +2 -2
  54. package/_assets/{buy-gasless-ZiYiDzb-.js → buy-gasless-CTp90Dvn.js} +2 -2
  55. package/_assets/{ccip-D2v4Tmss.js → ccip-DZfLdErH.js} +2 -2
  56. package/_assets/{ccip-D9Kr5HJY.js → ccip-rfpBm5bL.js} +2 -2
  57. package/_assets/{chains-CfHTI0IT.js → chains-BWqZ-nYk.js} +2 -2
  58. package/_assets/{collectionPage.styles-Drt5ivqQ.js → collectionPage.styles-Db2PBFNG.js} +4 -4
  59. package/_assets/{common-BkGfzbjV.js → common-BfXnUVAM.js} +2 -2
  60. package/_assets/{controller-B1XkQ-8T.js → controller-ZXDDsCxP.js} +3 -3
  61. package/_assets/{core-8MNjsO3A.js → core-DfE8LCjh.js} +5 -5
  62. package/_assets/{createSvgIcon-BKu0ThNd.js → createSvgIcon-BUkltLfu.js} +2 -2
  63. package/_assets/{crumbs.styles-IWrGqGTW.js → crumbs.styles-R8odPxFR.js} +2 -2
  64. package/_assets/{custom-RQn4QL1O.js → custom-DKOD0xYg.js} +2 -2
  65. package/_assets/{data-capture-BCz6ZuJe.js → data-capture-C3eH7C_s.js} +2 -2
  66. package/_assets/{dcl-schemas-BgQanFex.js → dcl-schemas-BW3BbT5l.js} +2 -2
  67. package/_assets/{decimals-DQ6egFLl.js → decimals-BI0yoEux.js} +2 -2
  68. package/_assets/{decimals-Yu9nfiap.js → decimals-DQJMb7J9.js} +2 -2
  69. package/_assets/{detectExtension-mxrpMjPD.js → detectExtension-C_GbFz5_.js} +2 -2
  70. package/_assets/{disposePreview-DPlzBDEC.js → disposePreview-5Jddp9do.js} +2 -2
  71. package/_assets/{email-C9hzZFfn.js → email-D4HLC7wh.js} +7 -7
  72. package/_assets/{embedded-wallet-sNZ139r3.js → embedded-wallet-CMbzkthX.js} +2 -2
  73. package/_assets/{emotion-styled.browser.esm-CFDaRZFq.js → emotion-styled.browser.esm-B6eszsio.js} +2 -2
  74. package/_assets/{engine-t2WwPyT-.js → engine-BA9Hr8Az.js} +2 -2
  75. package/_assets/{errors-TvhLJhmP.js → errors-DnOSpKoV.js} +2 -2
  76. package/_assets/{estimate-l1-fee-V6V7FI1H.js → estimate-l1-fee-BZt36dEW.js} +2 -2
  77. package/_assets/{eth_estimateGas-vmn477Rl.js → eth_estimateGas-mNInGC82.js} +2 -2
  78. package/_assets/{eth_getStorageAt-BJsh0E1g.js → eth_getStorageAt-CW3VLsR7.js} +2 -2
  79. package/_assets/{eth_getTransactionCount-DjYi-3h-.js → eth_getTransactionCount-DGbTHobL.js} +2 -2
  80. package/_assets/{ethereum-CtosgwHU.js → ethereum-Cez4WhJf.js} +2 -2
  81. package/_assets/{ethers-RdXTApYJ.js → ethers-DGYWmyb1.js} +2 -2
  82. package/_assets/{events-DcSLjVuU.js → events-YMZCt1yV.js} +2 -2
  83. package/_assets/{execute-Da7DgAmR.js → execute-CVxgGRa9.js} +3 -3
  84. package/_assets/{extractIPFS-Cczu9meN.js → extractIPFS-BdalrjY7.js} +2 -2
  85. package/_assets/{features-C_bdmaJE.js → features-BPD34bt1.js} +2 -2
  86. package/_assets/{fetchTokenMetadata-7Kgsjbv4.js → fetchTokenMetadata-DOlcjXZI.js} +3 -3
  87. package/_assets/{field.styles-DDXjryam.js → field.styles-CIXh24AQ.js} +2 -2
  88. package/_assets/{fortmatic-BPBqqvfl.js → fortmatic-DGrmZpu1.js} +2 -2
  89. package/_assets/{get-bytecode-Bbw_Evod.js → get-bytecode-N2OV9nFo.js} +2 -2
  90. package/_assets/{get-ecosystem-wallet-info-81lpLPU_.js → get-ecosystem-wallet-info-CVK-PjWL.js} +2 -2
  91. package/_assets/{getBalance-BgqMuvIf.js → getBalance-BEz0Zoiv.js} +3 -3
  92. package/_assets/{getInstalledModules-W4RDd7ik.js → getInstalledModules-AznSDC44.js} +2 -2
  93. package/_assets/{getNFT-anMIImQh.js → getNFT-VxK16uv_.js} +2 -2
  94. package/_assets/{getNFT-BDhkq7kr.js → getNFT-aR5kSoWa.js} +3 -3
  95. package/_assets/{grid.styles-D--qOwVq.js → grid.styles-CVQcD_5t.js} +2 -2
  96. package/_assets/{hashTypedData-CiWRFQn6.js → hashTypedData-ByCdES4z.js} +2 -2
  97. package/_assets/{hashTypedData-CUDRpwju.js → hashTypedData-ywahqODz.js} +2 -2
  98. package/_assets/{import-CIZWEISk.js → import-CPlDKdWo.js} +2 -2
  99. package/_assets/{in-app-BbIysh8c.js → in-app-D43FjnXM.js} +2 -2
  100. package/_assets/{in-app-wallet-calls-BgxC18Ff.js → in-app-wallet-calls-DmZ4pxIH.js} +2 -2
  101. package/_assets/{index-DQS3Dydb.js → index-0FaDHGAZ.js} +2 -2
  102. package/_assets/{index-BKGo_9wu.js → index-7s_cYB0r.js} +2 -2
  103. package/_assets/{index-DFQS58XE.js → index-B67Ropoe.js} +3 -3
  104. package/_assets/{index-CM4FAtZl.js → index-B7aqs-FR.js} +2 -2
  105. package/_assets/{index-BhhO1oEp.js → index-B8kJyL6G.js} +2 -2
  106. package/_assets/{index-qrz6WiaK.js → index-BAAoctqn.js} +2 -2
  107. package/_assets/{index-C0EB4Nb3.js → index-BBS-v8LD.js} +17 -17
  108. package/_assets/{index-8wQks0w8.js → index-BFVKoQeh.js} +2 -2
  109. package/_assets/{index-B1OJuolS.js → index-BIDkjxTy.js} +2 -2
  110. package/_assets/{index-hLoLHUKV.js → index-BMak5rZb.js} +2 -2
  111. package/_assets/{index-BlG9tYXl.js → index-BOyogbet.js} +2 -2
  112. package/_assets/{index-CjuTKXut.js → index-BUZUNt7Z.js} +2 -2
  113. package/_assets/{index-BNn-tbAt.js → index-BUnaJjPH.js} +2 -2
  114. package/_assets/{index-B49OLLy1.js → index-Bf74R1qS.js} +2 -2
  115. package/_assets/{index-BhGdGiCs.js → index-BfZKaxHs.js} +3 -3
  116. package/_assets/{index--yUfiOex.js → index-Bf_iGaP5.js} +2 -2
  117. package/_assets/{index-DTWx6T1S.js → index-BkdjGh-W.js} +2 -2
  118. package/_assets/{index-BwKvHJ-v.js → index-C2S4XG0R.js} +2 -2
  119. package/_assets/{index-OhRAcbHT.js → index-C7Le7sHG.js} +2 -2
  120. package/_assets/{index-DzyghasH.js → index-CA4CUNiy.js} +2 -2
  121. package/_assets/{index-CeM8omfX.js → index-CHBzdW6M.js} +2 -2
  122. package/_assets/{index-Dxfnkqq4.js → index-CLpLBvH2.js} +2 -2
  123. package/_assets/{index-DO6ydGXX.js → index-CNjrqKOs.js} +2 -2
  124. package/_assets/{index-lQ2m7yUy.js → index-CSuaHD6u.js} +2 -2
  125. package/_assets/{index-BJvtfv1M.js → index-CT7NzvvO.js} +2 -2
  126. package/_assets/{index-Zum9uUGy.js → index-CU2OselF.js} +2 -2
  127. package/_assets/{index-D1S8t2fe.js → index-CY4_MrXH.js} +2 -2
  128. package/_assets/{index-Cw_s9pOw.js → index-C_2eXgm7.js} +2 -2
  129. package/_assets/{index-D22FRuvW.js → index-CeLw5QQ-.js} +3 -3
  130. package/_assets/{index-CtSgRzsY.js → index-CepaElib.js} +2 -2
  131. package/_assets/{index-ClIQf3ng.js → index-CgfbItO2.js} +2 -2
  132. package/_assets/{index-BIAEBlSw.js → index-ChIjTbh5.js} +2 -2
  133. package/_assets/{index-Bc7EMqAf.js → index-Ci4_h86U.js} +2 -2
  134. package/_assets/{index-BGZlLdrL.js → index-CnfBCYQg.js} +2 -2
  135. package/_assets/{index-cGB6nHYf.js → index-CtoH5DSl.js} +6 -6
  136. package/_assets/{index-wOPFghKT.js → index-Cx1doNkB.js} +2 -2
  137. package/_assets/{index-DfOPi5vf.js → index-CxOeCVBB.js} +3 -3
  138. package/_assets/{index-BDdcoEFU.js → index-CzV7sMdy.js} +4 -4
  139. package/_assets/{index-DZEeeDQr.js → index-DCSutgdw.js} +2 -2
  140. package/_assets/{index-DCdW2yi4.js → index-DIYb1IGB.js} +4 -4
  141. package/_assets/{index-CvR8He0C.js → index-DR9_Mkt6.js} +2 -2
  142. package/_assets/{index-B-gdbRSW.js → index-DSwxHrMr.js} +2 -2
  143. package/_assets/{index-BeH18kmv.js → index-DZ3S9SRN.js} +2 -2
  144. package/_assets/{index-Bs_f3yhf.js → index-DZ53HgoK.js} +2 -2
  145. package/_assets/{index-CFBOIeXE.js → index-DZaHlbE_.js} +2 -2
  146. package/_assets/{index-Cf6ERmsZ.js → index-D_2nYoM8.js} +2 -2
  147. package/_assets/{index-CZEYeX3l.js → index-DauMTBWE.js} +2 -2
  148. package/_assets/{index-BmsamR4M.js → index-DhWCbjGh.js} +2 -2
  149. package/_assets/{index-Dz8UCy0P.js → index-DtS7bQfE.js} +2 -2
  150. package/_assets/{index-DU6vOlyL.js → index-DyhsaJtc.js} +2 -2
  151. package/_assets/{index-Dkohypnm.js → index-LRrTgDY0.js} +4 -4
  152. package/_assets/{index-BRWjazWI.js → index-LxRrm7nL.js} +2 -2
  153. package/_assets/{index-DOn0iodU.js → index-PFt3YITh.js} +2 -2
  154. package/_assets/{index-DAysx568.js → index-T6hDl-2V.js} +2 -2
  155. package/_assets/{index-C5s2ci0r.js → index-Tz82vi2e.js} +2 -2
  156. package/_assets/{index-CSZAw8dC.js → index-W7W-N49f.js} +2 -2
  157. package/_assets/{index-Bsw53nId.js → index-ZDiu1J1j.js} +2 -2
  158. package/_assets/{index-BMjX5Tw6.js → index-bz3DaQP5.js} +2 -2
  159. package/_assets/{index-M4vJyniz.js → index-cCjjJ8Zd.js} +2 -2
  160. package/_assets/{index-Cq62ZdRW.js → index-feJ6CP8x.js} +3 -3
  161. package/_assets/{index-B6895neV.js → index-gfZnCNa6.js} +2 -2
  162. package/_assets/{index-FfTM_1mz.js → index-guDRvZQ4.js} +2 -2
  163. package/_assets/{index-CwCEh7Ea.js → index-mzIsCjWs.js} +2 -2
  164. package/_assets/{index-962zUKU_.js → index-ox01jvxx.js} +2 -2
  165. package/_assets/index-qTkXqLEk.css +1 -0
  166. package/_assets/{index-DTVY5scD.js → index-tske-Qm0.js} +2 -2
  167. package/_assets/index-v6-0TPZX.js +3 -0
  168. package/_assets/{index-_bcedLK5.js → index-y50hP8_O.js} +2 -2
  169. package/_assets/{index.es-C1YwoJJN.js → index.es-D61fhzOk.js} +2 -2
  170. package/_assets/{index.es-YMSgumSf.js → index.es-DUQRyY8V.js} +2 -2
  171. package/_assets/{index.es-BirWIv1k.js → index.es-DrJv9QY8.js} +2 -2
  172. package/_assets/{index.es-O8xfjyk3.js → index.es-_SlY0diQ.js} +5 -5
  173. package/_assets/items-empty-Dtl-YwtZ.js +2 -0
  174. package/_assets/{jump-DddgnPSC.js → jump-JCYO-k8J.js} +2 -2
  175. package/_assets/{linkAccount-CHDe6wUT.js → linkAccount-D_xpNX67.js} +2 -2
  176. package/_assets/{loader-logo-ChNoWI1Z.js → loader-logo-k6aOBN-R.js} +2 -2
  177. package/_assets/{localBatchGatewayRequest-tSt38JDm.js → localBatchGatewayRequest-T0sFQZ26.js} +2 -2
  178. package/_assets/{modal.styles-BPDABQCr.js → modal.styles-BAz9vPux.js} +2 -2
  179. package/_assets/{native-Cxh3QIKd.js → native-Fndcg4e5.js} +2 -2
  180. package/_assets/{networks-rNqzEIu1.js → networks-BkPPSIG9.js} +2 -2
  181. package/_assets/{onramp-Cjb0y_EX.js → onramp-DCjZy1Yr.js} +2 -2
  182. package/_assets/{openzeppelin-Dbgk07uO.js → openzeppelin-DWeyp33R.js} +2 -2
  183. package/_assets/{ownerOf-ifwSx1wQ.js → ownerOf-D0cjIIIs.js} +2 -2
  184. package/_assets/{parseNft-BgX116P8.js → parseNft-DCt8GvNK.js} +3 -3
  185. package/_assets/{parseSignature-B3jn_FVR.js → parseSignature-BbjgUCSK.js} +4 -4
  186. package/_assets/{parseSignature-Cjx-94kV.js → parseSignature-CtMzBmLG.js} +2 -2
  187. package/_assets/{passkeys-C14r7a1U.js → passkeys-DUrjX8Ro.js} +2 -2
  188. package/_assets/{pay-with-exchange-BoqePTss.js → pay-with-exchange-vAQgw-nO.js} +2 -2
  189. package/_assets/{prepare-contract-call-CVD1LMqZ.js → prepare-contract-call-BitMGE96.js} +2 -2
  190. package/_assets/{qr-overlay-BaF8O6L7.js → qr-overlay-3Ogvmodj.js} +4 -4
  191. package/_assets/{react-57wE9FMW.js → react-Ddn-9d83.js} +2 -2
  192. package/_assets/{receive-_KdL5WbJ.js → receive-UBqFYKku.js} +9 -9
  193. package/_assets/{resolveImplementation-BIVOA86N.js → resolveImplementation-CoCWI1LK.js} +2 -2
  194. package/_assets/{resume-buy-RWKNCH2I.js → resume-buy-DqlXnoQq.js} +2 -2
  195. package/_assets/{resume-name-CVkpKZkm.js → resume-name-B5w3HYnd.js} +2 -2
  196. package/_assets/{rpc-BuxGvW8N.js → rpc-C-RDZHVf.js} +2 -2
  197. package/_assets/{sales-empty-BrdJIpZF.js → sales-empty-DFvbsd1W.js} +2 -2
  198. package/_assets/{search-empty-B9EfPE1P.js → search-empty-D1Tausth.js} +2 -2
  199. package/_assets/{secp256k1-D98PKoK-.js → secp256k1-By6IQ83k.js} +2 -2
  200. package/_assets/{secp256k1-DtCcUzXl.js → secp256k1-CAqSDg9Y.js} +2 -2
  201. package/_assets/{secp256k1-C3mpZkpr.js → secp256k1-CxMxDBug.js} +2 -2
  202. package/_assets/{send-CPee34BT.js → send-Dg3aA-cT.js} +2 -2
  203. package/_assets/{send-batch-transaction-CRYeO2Ew.js → send-batch-transaction-CcGULLl4.js} +2 -2
  204. package/_assets/{send-eip712-transaction-DmUbX1xf.js → send-eip712-transaction-eRcl-w9x.js} +3 -3
  205. package/_assets/{send-gasless-transaction-Cl9L9F1A.js → send-gasless-transaction-BVE00Z8q.js} +3 -3
  206. package/_assets/send-transaction-bNnxjmkm.js +3 -0
  207. package/_assets/{sendMetaTransaction-B7N-qRfh.js → sendMetaTransaction-DaTro9ph.js} +2 -2
  208. package/_assets/{sendRawTransaction-DAT5LyNo.js → sendRawTransaction-Crv4h2Fe.js} +4 -4
  209. package/_assets/{sentry-C6Mao8WI.js → sentry-D_8KijKQ.js} +3 -3
  210. package/_assets/{serializeTransaction-CjRJ0psk.js → serializeTransaction-CPg2ul-G.js} +2 -2
  211. package/_assets/{session-proposal-ueoRTwfB.js → session-proposal-Di1f8LHY.js} +2 -2
  212. package/_assets/{session-request-BD9TXTaA.js → session-request-R2yVi8HQ.js} +3 -3
  213. package/_assets/{sha256-DbvztKVh.js → sha256-BhCi5WIJ.js} +2 -2
  214. package/_assets/{sha3-5JMjwcQn.js → sha3-CLQFMym7.js} +2 -2
  215. package/_assets/signin-empty-PXLDIsQk.js +2 -0
  216. package/_assets/{signing-D8djUTSU.js → signing-BCODmgNV.js} +4 -4
  217. package/_assets/{skeleton.styles-Bvaum8jS.js → skeleton.styles-anODpKJf.js} +2 -2
  218. package/_assets/{socials-NQn6q4he.js → socials-DShz1WgZ.js} +2 -2
  219. package/_assets/{styled-CCNK0K71.js → styled-CbzE9JXd.js} +2 -2
  220. package/_assets/{swaps-CgWjr3x_.js → swaps-BXF_khPF.js} +2 -2
  221. package/_assets/{thirdweb-C1alV0QS.js → thirdweb-Cnc0UXDQ.js} +4 -4
  222. package/_assets/{to-serializable-transaction-BKQS5d49.js → to-serializable-transaction-DzZsdRzk.js} +3 -3
  223. package/_assets/{totalSupply-CF5FI8lQ.js → totalSupply-D4EQMS5T.js} +2 -2
  224. package/_assets/{trade-encoding-BV1_7YxJ.js → trade-encoding-BdtZmg5A.js} +2 -2
  225. package/_assets/{transaction-BVLpkah4.js → transaction-Cbet3IZc.js} +2 -2
  226. package/_assets/{transactionReceipt-DwjBLtBg.js → transactionReceipt-DSeG56jV.js} +2 -2
  227. package/_assets/{transactions-DW_nxFG-.js → transactions-B5gQmUHm.js} +2 -2
  228. package/_assets/useInfiniteGrid-C5wDaoVd.js +2 -0
  229. package/_assets/{useStore-CJ2zzclt.js → useStore-wU9qkXc9.js} +3 -3
  230. package/_assets/{useTheme-D3lC36b8.js → useTheme-y50PSrCO.js} +2 -2
  231. package/_assets/{utils-DyoF2n1_.js → utils-BGzZ7mCg.js} +2 -2
  232. package/_assets/{verifyHash-D_k8MOkd.js → verifyHash-I86XFFeN.js} +2 -2
  233. package/_assets/{w3m-modal-BwPY12eH.js → w3m-modal-COSR0Fsr.js} +2 -2
  234. package/_assets/{w3m-modal-CIfTlIpr.js → w3m-modal-Dz0XFS0k.js} +2 -2
  235. package/_assets/{wait-for-tx-receipt-BQf97Yv5.js → wait-for-tx-receipt-C3zFGaKb.js} +2 -2
  236. package/_assets/{wallets-Cor67NYq.js → wallets-BM2FKp9V.js} +6 -6
  237. package/_assets/{web-connector-AUtPfxac.js → web-connector-DXaUpGnD.js} +4 -4
  238. package/_assets/{writeContract-_6z0Fw9c.js → writeContract-Bja8jWrS.js} +2 -2
  239. package/_assets/{zora-sepolia-DFxo1Oif.js → zora-sepolia-B6FH_u_V.js} +2 -2
  240. package/_assets/{zoraTestnet-B4Lgrc00.js → zoraTestnet-CDn6xrjW.js} +2 -2
  241. package/index.html +12 -12
  242. package/package.json +2 -2
  243. package/_assets/ItemDetail-big_cmBY.js +0 -3411
  244. package/_assets/MyStore-SSChApNZ.js +0 -1630
  245. package/_assets/NotificationsBell-BiwzCIb4.js +0 -142
  246. package/_assets/index-DoXX6TgS.css +0 -1
  247. package/_assets/index-GCKJ9yxg.js +0 -3
  248. package/_assets/items-empty-BciJH2B_.js +0 -2
  249. package/_assets/send-transaction-CydyNIuj.js +0 -3
  250. package/_assets/signin-empty-Duq453f-.js +0 -2
  251. package/_assets/useInfiniteGrid-CbPWAhDP.js +0 -2
@@ -1,4 +1,4 @@
1
- import{j as e,r as h,e as se,b as oe}from"./react-57wE9FMW.js";import{a as b,s as m,l as ae,I as re,k as ie,t as a,a3 as q,bO as F,bP as ne,bQ as le,c as ce,c7 as de,w as me,B as ue,bR as pe,av as fe,$ as he,a1 as W,a2 as xe,bS as be,bT as ge,c8 as ye}from"./index-C0EB4Nb3.js";import{E as ve}from"./ErrorNotice-DSZ4YOzl.js";import{d as je,P as we,C as Ce,a as E,b as ke,S as Se}from"./collectionPage.styles-Drt5ivqQ.js";import{u as $e}from"./useStore-CJ2zzclt.js";import{u as Ne,S as G,F as Ee,a as Ie}from"./Filters-COsCKlQM.js";import{L as Fe}from"./LoadMore-D8gtSgyc.js";import{u as Me}from"./useInfiniteGrid-CbPWAhDP.js";import{u as Re,s as Te}from"./search-empty-B9EfPE1P.js";import{R as _e,S as Pe,a as Ae,D as De,b as Be,C as Le,c as Oe,d as ze,e as We,M as Ge}from"./browseLayout.styles-D3u_lxUV.js";import{G as Ue}from"./grid.styles-D--qOwVq.js";import"./dcl-schemas-BgQanFex.js";import"./sentry-C6Mao8WI.js";import"./ethers-RdXTApYJ.js";import"./intl-AKLEHPeO.js";import"./crumbs.styles-IWrGqGTW.js";import"./Tooltip-DIRWGOxl.js";import"./skeleton.styles-Bvaum8jS.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},s=new o.Error().stack;s&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[s]="98596a07-4ff5-4a91-971b-c22e4a7f1b97",o._sentryDebugIdIdentifier="sentry-dbid-98596a07-4ff5-4a91-971b-c22e4a7f1b97")}catch{}})();const qe=m.section`
1
+ import{j as e,r as h,e as se,b as oe}from"./react-Ddn-9d83.js";import{a as b,s as m,l as re,I as ae,k as ie,t as r,a6 as q,bO as F,bP as ne,bQ as le,c as ce,c7 as de,w as me,B as ue,bR as pe,ay as fe,a2 as he,a4 as W,a5 as xe,bS as be,bT as ge,c8 as ye}from"./index-BBS-v8LD.js";import{E as ve}from"./ErrorNotice-D_6j8-7f.js";import{d as je,P as we,C as Ce,a as E,b as ke,S as Se}from"./collectionPage.styles-Db2PBFNG.js";import{u as $e}from"./useStore-wU9qkXc9.js";import{u as Ne,S as G,F as Ee,a as Ie}from"./Filters-CdMOVmbU.js";import{L as Fe}from"./LoadMore-CM5ykem-.js";import{u as Me}from"./useInfiniteGrid-C5wDaoVd.js";import{u as Re,s as Te}from"./search-empty-D1Tausth.js";import{R as _e,S as Pe,a as Ae,D as De,b as Be,C as Le,c as Oe,d as ze,e as We,M as Ge}from"./browseLayout.styles-DF9DTUfO.js";import{G as Ue}from"./grid.styles-CVQcD_5t.js";import"./dcl-schemas-BW3BbT5l.js";import"./sentry-D_8KijKQ.js";import"./ethers-DGYWmyb1.js";import"./intl-AKLEHPeO.js";import"./crumbs.styles-R8odPxFR.js";import"./Tooltip-DFrRznAp.js";import"./skeleton.styles-anODpKJf.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},s=new o.Error().stack;s&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[s]="8e1259d0-993b-4f9c-98b2-d4e1070a8079",o._sentryDebugIdIdentifier="sentry-dbid-8e1259d0-993b-4f9c-98b2-d4e1070a8079")}catch{}})();const qe=m.section`
2
2
  position: relative;
3
3
  border-radius: ${b.radius.card};
4
4
  overflow: hidden;
@@ -42,7 +42,7 @@ import{j as e,r as h,e as se,b as oe}from"./react-57wE9FMW.js";import{a as b,s a
42
42
  padding: 24px 16px;
43
43
  font-size: 26px;
44
44
  }
45
- `;function Ze({name:o,creator:s}){const{data:i}=$e(s),l=(i==null?void 0:i.cover)||je;return e.jsxs(qe,{"data-testid":"collection-hero","aria-label":o,children:[e.jsxs(He,{children:[e.jsx(Ke,{src:l,alt:"",loading:"eager"}),e.jsx(Qe,{"aria-hidden":!0})]}),e.jsx(Ve,{"data-testid":"collection-hero-title",children:o})]})}const Je=1500;function Xe(o){const[s,i]=h.useState(!1),l=h.useRef();h.useEffect(()=>()=>window.clearTimeout(l.current),[]);const r=h.useCallback(async u=>{try{await navigator.clipboard.writeText(u),i(!0),window.clearTimeout(l.current),l.current=window.setTimeout(()=>i(!1),Je)}catch(d){ae(d,{flow:o})}},[o]);return{copied:s,copy:r}}const{colors:I,radius:Ye}=b,et=ie`
45
+ `;function Ze({name:o,creator:s}){const{data:i}=$e(s),l=(i==null?void 0:i.cover)||je;return e.jsxs(qe,{"data-testid":"collection-hero","aria-label":o,children:[e.jsxs(He,{children:[e.jsx(Ke,{src:l,alt:"",loading:"eager"}),e.jsx(Qe,{"aria-hidden":!0})]}),e.jsx(Ve,{"data-testid":"collection-hero-title",children:o})]})}const Je=1500;function Xe(o){const[s,i]=h.useState(!1),l=h.useRef();h.useEffect(()=>()=>window.clearTimeout(l.current),[]);const a=h.useCallback(async u=>{try{await navigator.clipboard.writeText(u),i(!0),window.clearTimeout(l.current),l.current=window.setTimeout(()=>i(!1),Je)}catch(d){re(d,{flow:o})}},[o]);return{copied:s,copy:a}}const{colors:I,radius:Ye}=b,et=ie`
46
46
  0% { transform: scale(0.6); opacity: 0; }
47
47
  60% { transform: scale(1.15); }
48
48
  100% { transform: scale(1); opacity: 1; }
@@ -70,14 +70,14 @@ import{j as e,r as h,e as se,b as oe}from"./react-57wE9FMW.js";import{a as b,s a
70
70
  outline: 2px solid ${I.softWhite};
71
71
  outline-offset: 2px;
72
72
  }
73
- `,st=m(re)`
73
+ `,st=m(ae)`
74
74
  flex: none;
75
75
  animation: ${et} 0.22s ease-out;
76
76
 
77
77
  @media (prefers-reduced-motion: reduce) {
78
78
  animation: none;
79
79
  }
80
- `;function ot({value:o,children:s,label:i,flow:l="copy_to_clipboard",size:r=16,className:u,testId:d}){const{copied:n,copy:x}=Xe(l),f=n?a("common.copied"):i??a("common.copy");return e.jsxs(tt,{type:"button",onClick:()=>void x(o),title:f,"aria-label":f,"data-copied":n||void 0,className:u,"data-testid":d,children:[s,e.jsx(st,{name:n?"check":"copy",size:r},n?"ok":"idle")]})}const{colors:j,radius:at}=b,rt=m.div`
80
+ `;function ot({value:o,children:s,label:i,flow:l="copy_to_clipboard",size:a=16,className:u,testId:d}){const{copied:n,copy:x}=Xe(l),f=n?r("common.copied"):i??r("common.copy");return e.jsxs(tt,{type:"button",onClick:()=>void x(o),title:f,"aria-label":f,"data-copied":n||void 0,className:u,"data-testid":d,children:[s,e.jsx(st,{name:n?"check":"copy",size:a},n?"ok":"idle")]})}const{colors:j,radius:rt}=b,at=m.div`
81
81
  display: flex;
82
82
  flex-direction: column;
83
83
  align-items: center;
@@ -115,7 +115,7 @@ import{j as e,r as h,e as se,b as oe}from"./react-57wE9FMW.js";import{a as b,s a
115
115
  width: 100%;
116
116
  height: 44px;
117
117
  padding: 0 20px;
118
- border-radius: ${at.btn};
118
+ border-radius: ${rt.btn};
119
119
  background: ${j.overlay};
120
120
  color: ${j.softWhite};
121
121
  font-weight: 600;
@@ -130,5 +130,5 @@ import{j as e,r as h,e as se,b as oe}from"./react-57wE9FMW.js";import{a as b,s a
130
130
  &:hover {
131
131
  background: ${j.blackBtn};
132
132
  }
133
- `;function lt({address:o}){var d,n;const{data:s}=q(o);if(!o)return null;const i=(s==null?void 0:s.name)||F(o),l=(n=(d=s==null?void 0:s.avatar)==null?void 0:d.snapshots)==null?void 0:n.face256,r=`${ce.profileUrl}/${o}`,u=ne(le({name:s==null?void 0:s.name,hasClaimedName:s==null?void 0:s.hasClaimedName,ethAddress:(s==null?void 0:s.ethAddress)??o}));return e.jsxs(rt,{"data-testid":"creator-card",children:[l?e.jsx(U,{src:l,alt:"",loading:"eager",style:{backgroundColor:u}}):e.jsx(U,{as:"span","aria-hidden":!0,style:{backgroundColor:u}}),e.jsx(it,{title:i,children:i}),e.jsx(ot,{value:o,label:a("collection.copyAddress"),flow:"copy_creator_address",testId:"creator-card-copy",children:e.jsx("span",{children:F(o)})}),e.jsx(nt,{"data-testid":"creator-card-view",href:r,target:"_blank",rel:"noopener noreferrer",children:a("collection.viewProfile")})]})}const ct=48,dt=["all","on_sale","not_for_sale"];function It(){var z;const{contractAddress:o}=se(),s=oe(),i=h.useMemo(()=>({category:"all",status:"all",subCategory:null,rarities:[],priceMin:"",priceMax:"",smart:!1,sort:"newest"}),[]),[l,r]=Re(i),{category:u,subCategory:d,rarities:n,priceMin:x,priceMax:f,smart:C,sort:M}=l,g=dt.includes(l.status)?l.status:"all",R=t=>r({status:t});Ne(`${u}:${d??""}`);const[w,y]=h.useState(!1);h.useEffect(()=>{if(!w)return;const t=te=>{te.key==="Escape"&&y(!1)};document.addEventListener("keydown",t);const N=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.removeEventListener("keydown",t),document.body.style.overflow=N}},[w]);const T=x&&!Number.isNaN(Number(x))?Number(x):void 0,_=f&&!Number.isNaN(Number(f))?Number(f):void 0,H=d?ge[d]:void 0,K=(G.find(t=>t.key===M)??G[0]).server,P={contractAddress:o,category:u,rarities:n.length?n:void 0,wearableCategories:H,minPriceCredits:T,maxPriceCredits:_,isWearableSmart:C||void 0,isOnSale:g==="all"?void 0:g==="on_sale",sortBy:K},{items:Q,total:V,isLoading:k,error:A,hasNextPage:Z,isFetchingNextPage:D,isFetchNextPageError:J,fetchNextPage:X}=Me(["collection-page",P],t=>be({...P,first:ct,skip:t}),{enabled:!!o}),S=de(Q),{data:c}=me({queryKey:["collection-meta",o],queryFn:()=>ye(o),enabled:!!o,staleTime:5*6e4}),B=(c==null?void 0:c.name)||a("collection.fallbackTitle");ue({title:c==null?void 0:c.name,description:c!=null&&c.name?a("seo.collection.description",{name:c.name}):void 0});const p=(c==null?void 0:c.creator)||((z=S[0])==null?void 0:z.creator),{data:$}=q(p),Y=($==null?void 0:$.name)||(p?F(p):"");function ee(t){r({category:t,subCategory:null})}function L(t){r({rarities:n.includes(t)?n.filter(N=>N!==t):[...n,t]})}function O(){r(i)}const v=[];(T!=null||_!=null)&&v.push({key:"price",label:a("filter.price"),onRemove:()=>{r({priceMin:"",priceMax:""})}});for(const t of pe)n.includes(t)&&v.push({key:`rarity-${t}`,label:fe(t),onRemove:()=>L(t)});return C&&v.push({key:"smart",label:a("filter.smart"),onRemove:()=>r({smart:!1})}),g!=="all"&&v.push({key:"status",label:g==="on_sale"?a("filter.onSale"):a("filter.notForSale"),onRemove:()=>R("all")}),e.jsxs(we,{"data-testid":"collection-page",children:[e.jsxs(Ce,{"aria-label":a("collection.breadcrumbAria"),children:[e.jsx(E,{onClick:()=>s("/items"),children:a("collection.breadcrumb")}),p?e.jsxs(e.Fragment,{children:[e.jsx("span",{children:"/"}),e.jsx(E,{onClick:()=>s(`/items/creator/${p}`),children:Y}),e.jsx("span",{children:"/"}),e.jsx(E,{onClick:()=>s(`/items/creator/${p}?collections`),children:a("categories.collections")})]}):null,e.jsx("span",{children:"/"}),e.jsx(ke,{children:B})]}),e.jsx(Ze,{name:B,creator:p}),e.jsxs(_e,{"data-testid":"browse",children:[w?e.jsx(Pe,{onClick:()=>y(!1),"aria-hidden":!0}):null,e.jsxs(Se,{children:[e.jsx(lt,{address:p}),e.jsxs(Ae,{"data-open":w||void 0,"data-static":!0,"data-testid":"browse-sidebar",children:[e.jsxs(De,{children:[e.jsx(Be,{children:a("assets.filters")}),e.jsx(Le,{onClick:()=>y(!1),"aria-label":a("assets.closeFilters"),children:"✕"})]}),e.jsx(Oe,{children:e.jsx(Ee,{category:u,subCategory:d,onCategory:ee,onSub:t=>r({subCategory:t}),priceMin:x,priceMax:f,onPriceMin:t=>r({priceMin:t}),onPriceMax:t=>r({priceMax:t}),rarities:n,onToggleRarity:L,status:g,onStatus:R,smart:C,onSmart:t=>r({smart:t}),hideNames:!0})}),e.jsx(ze,{children:e.jsx(We,{type:"button",onClick:()=>y(!1),children:a("assets.showItems")})})]})]}),e.jsxs(Ge,{children:[e.jsx(Ie,{sort:M,onSort:t=>r({sort:t}),total:V,loading:k,onOpenFilters:()=>y(!0),chips:v,onClearChips:O}),A?e.jsx(ve,{message:a("collection.error")}):null,!k&&!A&&S.length===0?e.jsx(he,{testId:"collection-empty",icon:Te,title:a("assets.empty.title"),body:a("collection.empty"),cta:{label:a("filterBar.clearAll"),onClick:O}}):e.jsxs(e.Fragment,{children:[e.jsx(Ue,{"data-testid":"grid",children:k?e.jsx(W,{count:15}):e.jsxs(e.Fragment,{children:[S.map(t=>e.jsx(xe,{item:t},t.id)),D?e.jsx(W,{count:6}):null]})}),e.jsx(Fe,{hasNextPage:Z,isFetching:D,isError:J,onLoadMore:()=>void X()})]})]})]})]})}export{It as Collection,It as default};
134
- //# sourceMappingURL=Collection-2qp7F46n.js.map
133
+ `;function lt({address:o}){var d,n;const{data:s}=q(o);if(!o)return null;const i=(s==null?void 0:s.name)||F(o),l=(n=(d=s==null?void 0:s.avatar)==null?void 0:d.snapshots)==null?void 0:n.face256,a=`${ce.profileUrl}/${o}`,u=ne(le({name:s==null?void 0:s.name,hasClaimedName:s==null?void 0:s.hasClaimedName,ethAddress:(s==null?void 0:s.ethAddress)??o}));return e.jsxs(at,{"data-testid":"creator-card",children:[l?e.jsx(U,{src:l,alt:"",loading:"eager",style:{backgroundColor:u}}):e.jsx(U,{as:"span","aria-hidden":!0,style:{backgroundColor:u}}),e.jsx(it,{title:i,children:i}),e.jsx(ot,{value:o,label:r("collection.copyAddress"),flow:"copy_creator_address",testId:"creator-card-copy",children:e.jsx("span",{children:F(o)})}),e.jsx(nt,{"data-testid":"creator-card-view",href:a,target:"_blank",rel:"noopener noreferrer",children:r("collection.viewProfile")})]})}const ct=48,dt=["all","on_sale","not_for_sale"];function It(){var z;const{contractAddress:o}=se(),s=oe(),i=h.useMemo(()=>({category:"all",status:"all",subCategory:null,rarities:[],priceMin:"",priceMax:"",smart:!1,sort:"newest"}),[]),[l,a]=Re(i),{category:u,subCategory:d,rarities:n,priceMin:x,priceMax:f,smart:C,sort:M}=l,g=dt.includes(l.status)?l.status:"all",R=t=>a({status:t});Ne(`${u}:${d??""}`);const[w,y]=h.useState(!1);h.useEffect(()=>{if(!w)return;const t=te=>{te.key==="Escape"&&y(!1)};document.addEventListener("keydown",t);const N=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.removeEventListener("keydown",t),document.body.style.overflow=N}},[w]);const T=x&&!Number.isNaN(Number(x))?Number(x):void 0,_=f&&!Number.isNaN(Number(f))?Number(f):void 0,H=d?ge[d]:void 0,K=(G.find(t=>t.key===M)??G[0]).server,P={contractAddress:o,category:u,rarities:n.length?n:void 0,wearableCategories:H,minPriceCredits:T,maxPriceCredits:_,isWearableSmart:C||void 0,isOnSale:g==="all"?void 0:g==="on_sale",sortBy:K},{items:Q,total:V,isLoading:k,error:A,hasNextPage:Z,isFetchingNextPage:D,isFetchNextPageError:J,fetchNextPage:X}=Me(["collection-page",P],t=>be({...P,first:ct,skip:t}),{enabled:!!o}),S=de(Q),{data:c}=me({queryKey:["collection-meta",o],queryFn:()=>ye(o),enabled:!!o,staleTime:5*6e4}),B=(c==null?void 0:c.name)||r("collection.fallbackTitle");ue({title:c==null?void 0:c.name,description:c!=null&&c.name?r("seo.collection.description",{name:c.name}):void 0});const p=(c==null?void 0:c.creator)||((z=S[0])==null?void 0:z.creator),{data:$}=q(p),Y=($==null?void 0:$.name)||(p?F(p):"");function ee(t){a({category:t,subCategory:null})}function L(t){a({rarities:n.includes(t)?n.filter(N=>N!==t):[...n,t]})}function O(){a(i)}const v=[];(T!=null||_!=null)&&v.push({key:"price",label:r("filter.price"),onRemove:()=>{a({priceMin:"",priceMax:""})}});for(const t of pe)n.includes(t)&&v.push({key:`rarity-${t}`,label:fe(t),onRemove:()=>L(t)});return C&&v.push({key:"smart",label:r("filter.smart"),onRemove:()=>a({smart:!1})}),g!=="all"&&v.push({key:"status",label:g==="on_sale"?r("filter.onSale"):r("filter.notForSale"),onRemove:()=>R("all")}),e.jsxs(we,{"data-testid":"collection-page",children:[e.jsxs(Ce,{"aria-label":r("collection.breadcrumbAria"),children:[e.jsx(E,{onClick:()=>s("/items"),children:r("collection.breadcrumb")}),p?e.jsxs(e.Fragment,{children:[e.jsx("span",{children:"/"}),e.jsx(E,{onClick:()=>s(`/items/creator/${p}`),children:Y}),e.jsx("span",{children:"/"}),e.jsx(E,{onClick:()=>s(`/items/creator/${p}?collections`),children:r("categories.collections")})]}):null,e.jsx("span",{children:"/"}),e.jsx(ke,{children:B})]}),e.jsx(Ze,{name:B,creator:p}),e.jsxs(_e,{"data-testid":"browse",children:[w?e.jsx(Pe,{onClick:()=>y(!1),"aria-hidden":!0}):null,e.jsxs(Se,{children:[e.jsx(lt,{address:p}),e.jsxs(Ae,{"data-open":w||void 0,"data-static":!0,"data-testid":"browse-sidebar",children:[e.jsxs(De,{children:[e.jsx(Be,{children:r("assets.filters")}),e.jsx(Le,{onClick:()=>y(!1),"aria-label":r("assets.closeFilters"),children:"✕"})]}),e.jsx(Oe,{children:e.jsx(Ee,{category:u,subCategory:d,onCategory:ee,onSub:t=>a({subCategory:t}),priceMin:x,priceMax:f,onPriceMin:t=>a({priceMin:t}),onPriceMax:t=>a({priceMax:t}),rarities:n,onToggleRarity:L,status:g,onStatus:R,smart:C,onSmart:t=>a({smart:t}),hideNames:!0})}),e.jsx(ze,{children:e.jsx(We,{type:"button",onClick:()=>y(!1),children:r("assets.showItems")})})]})]}),e.jsxs(Ge,{children:[e.jsx(Ie,{sort:M,onSort:t=>a({sort:t}),total:V,loading:k,onOpenFilters:()=>y(!0),chips:v,onClearChips:O}),A?e.jsx(ve,{message:r("collection.error")}):null,!k&&!A&&S.length===0?e.jsx(he,{testId:"collection-empty",icon:Te,title:r("assets.empty.title"),body:r("collection.empty"),cta:{label:r("filterBar.clearAll"),onClick:O}}):e.jsxs(e.Fragment,{children:[e.jsx(Ue,{"data-testid":"grid",children:k?e.jsx(W,{count:15}):e.jsxs(e.Fragment,{children:[S.map(t=>e.jsx(xe,{item:t},t.id)),D?e.jsx(W,{count:6}):null]})}),e.jsx(Fe,{hasNextPage:Z,isFetching:D,isError:J,onLoadMore:()=>void X()})]})]})]})]})}export{It as Collection,It as default};
134
+ //# sourceMappingURL=Collection-D6GAA887.js.map
@@ -1,4 +1,4 @@
1
- import{r as k,j as o}from"./react-57wE9FMW.js";import{cA as Z,a as p,s as h,k as ee,t as v,I as U,l as E,h as C,j as A,L as B,bh as te,M as L,cB as re,cC as P,a2 as ae}from"./index-C0EB4Nb3.js";import{v as ne,u as W,A as _,f as M,l as oe,w as se,x as ie,y as ce,r as G,n as Q,p as H,m as O,k as S,z as de,B as le}from"./trade-encoding-BV1_7YxJ.js";import{i as ue}from"./errors-TvhLJhmP.js";import{E as pe}from"./ErrorNotice-DSZ4YOzl.js";import{d as he}from"./buy-MeE-N2le.js";import{a as fe,w as ge,S as xe,G as me}from"./buy-gasless-ZiYiDzb-.js";import{M as N,E as D,s as q}from"./sendMetaTransaction-B7N-qRfh.js";import{C as F}from"./ethers-RdXTApYJ.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]="a770b82a-e2f0-47a1-a4ec-fb1e0355c208",t._sentryDebugIdIdentifier="sentry-dbid-a770b82a-e2f0-47a1-a4ec-fb1e0355c208")}catch{}})();const z="shop:resume_after_signin",ye=900*1e3;function at(t){try{sessionStorage.setItem(z,JSON.stringify({...t,at:Date.now()}))}catch{}}function nt(t){let e;try{e=sessionStorage.getItem(z)}catch{return null}if(!e)return null;try{sessionStorage.removeItem(z)}catch{}let r;try{r=JSON.parse(e)}catch{return null}return!r||r.type!==t||typeof r.at!="number"||Date.now()-r.at>ye?null:r.type==="cart-checkout"?{type:"cart-checkout"}:{type:"item-buy",path:r.path}}const V=Z(t=>({spent:{},record:(e,r=1)=>{!(e!=null&&e.id)||r<=0||t(a=>({spent:{...a.spent,[e.id]:Math.max(e.used??0,a.spent[e.id]??0)+r}}))},recordMany:e=>{const r=new Map;for(const a of e){if(!(a!=null&&a.id))continue;const c=r.get(a.id)??{coupon:a,count:0};c.count+=1,r.set(a.id,c)}t(a=>{const c={...a.spent};for(const{coupon:d,count:m}of r.values())c[d.id]=Math.max(d.used??0,c[d.id]??0)+m;return{spent:c}})},reset:()=>t({spent:{}})}));function ot(t,e){return e!=null&&e.id?Math.max(e.used??0,t[e.id]??0):(e==null?void 0:e.used)??0}const st=(t,e=1)=>V.getState().record(t,e),it=t=>V.getState().recordMany(t);function ct(t,e){const r=(a,...c)=>void t.invalidateQueries({queryKey:e?[a,...c]:[a]});t.invalidateQueries({queryKey:["usd-balance"]}),t.invalidateQueries({queryKey:["detail-trade"]}),t.invalidateQueries({queryKey:["shop-item"]}),r("owned-token",e==null?void 0:e.contractAddress,e==null?void 0:e.tokenId),r("public-token",e==null?void 0:e.contractAddress,e==null?void 0:e.tokenId),r("item-resales",e==null?void 0:e.contractAddress,e==null?void 0:e.itemId),t.invalidateQueries({queryKey:["shop-items"]}),t.invalidateQueries({queryKey:["catalog-items"]}),t.invalidateQueries({queryKey:["overview-listings"]}),t.invalidateQueries({queryKey:["upsell-listings"]}),t.invalidateQueries({queryKey:["my-assets"]}),t.invalidateQueries({queryKey:["purchases"]}),t.invalidateQueries({queryKey:["owned-item-count"]})}const be=ee`
1
+ import{r as k,j as o}from"./react-Ddn-9d83.js";import{cu as Z,a as p,s as h,k as ee,t as v,I as U,l as E,h as C,j as A,L,bi as te,M as B,cv as re,cw as P,a5 as ae}from"./index-BBS-v8LD.js";import{v as ne,u as W,A as _,f as M,l as oe,w as se,x as ie,y as ce,r as G,n as Q,p as H,m as O,k as S,z as de,B as le}from"./trade-encoding-BdtZmg5A.js";import{i as ue}from"./errors-DnOSpKoV.js";import{E as pe}from"./ErrorNotice-D_6j8-7f.js";import{d as he}from"./buy-BiTHthT9.js";import{a as fe,w as ge,S as xe,G as me}from"./buy-gasless-CTp90Dvn.js";import{M as N,E as D,s as q}from"./sendMetaTransaction-DaTro9ph.js";import{C as F}from"./ethers-DGYWmyb1.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]="8199ccb5-77d1-421c-80b5-d7c7b6b16768",t._sentryDebugIdIdentifier="sentry-dbid-8199ccb5-77d1-421c-80b5-d7c7b6b16768")}catch{}})();const z="shop:resume_after_signin",be=900*1e3;function at(t){try{sessionStorage.setItem(z,JSON.stringify({...t,at:Date.now()}))}catch{}}function nt(t){let e;try{e=sessionStorage.getItem(z)}catch{return null}if(!e)return null;try{sessionStorage.removeItem(z)}catch{}let r;try{r=JSON.parse(e)}catch{return null}return!r||r.type!==t||typeof r.at!="number"||Date.now()-r.at>be?null:r.type==="cart-checkout"?{type:"cart-checkout"}:{type:"item-buy",path:r.path}}const V=Z(t=>({spent:{},record:(e,r=1)=>{!(e!=null&&e.id)||r<=0||t(a=>({spent:{...a.spent,[e.id]:Math.max(e.used??0,a.spent[e.id]??0)+r}}))},recordMany:e=>{const r=new Map;for(const a of e){if(!(a!=null&&a.id))continue;const c=r.get(a.id)??{coupon:a,count:0};c.count+=1,r.set(a.id,c)}t(a=>{const c={...a.spent};for(const{coupon:d,count:m}of r.values())c[d.id]=Math.max(d.used??0,c[d.id]??0)+m;return{spent:c}})},reset:()=>t({spent:{}})}));function ot(t,e){return e!=null&&e.id?Math.max(e.used??0,t[e.id]??0):(e==null?void 0:e.used)??0}const st=(t,e=1)=>V.getState().record(t,e),it=t=>V.getState().recordMany(t);function ct(t,e){const r=(a,...c)=>void t.invalidateQueries({queryKey:e?[a,...c]:[a]});t.invalidateQueries({queryKey:["usd-balance"]}),t.invalidateQueries({queryKey:["detail-trade"]}),t.invalidateQueries({queryKey:["shop-item"]}),r("owned-token",e==null?void 0:e.contractAddress,e==null?void 0:e.tokenId),r("public-token",e==null?void 0:e.contractAddress,e==null?void 0:e.tokenId),r("item-resales",e==null?void 0:e.contractAddress,e==null?void 0:e.itemId),t.invalidateQueries({queryKey:["shop-items"]}),t.invalidateQueries({queryKey:["catalog-items"]}),t.invalidateQueries({queryKey:["overview-listings"]}),t.invalidateQueries({queryKey:["upsell-listings"]}),t.invalidateQueries({queryKey:["my-assets"]}),t.invalidateQueries({queryKey:["purchases"]}),t.invalidateQueries({queryKey:["owned-item-count"]})}const ye=ee`
2
2
  to { transform: rotate(360deg); }
3
3
  `,we=h.div`
4
4
  position: fixed;
@@ -179,23 +179,23 @@ import{r as k,j as o}from"./react-57wE9FMW.js";import{cA as Z,a as p,s as h,k as
179
179
  border-radius: 50%;
180
180
  border: 2px solid rgba(255, 255, 255, 0.5);
181
181
  border-top-color: ${p.colors.white};
182
- animation: ${be} 0.7s linear infinite;
182
+ animation: ${ye} 0.7s linear infinite;
183
183
 
184
184
  @media (prefers-reduced-motion: reduce) {
185
185
  animation: none;
186
186
  }
187
- `;function dt({auth:t,signer:e,step:r,title:a,reason:c,name:d,image:m,icon:f,onAuthorized:g,onCancel:y,onClose:b}){const[i,l]=k.useState(!1),[u,w]=k.useState(null);async function s(){l(!0),w(null);try{await ne({auth:t,signer:e,active:!0}),g()}catch(n){ue(n)?w(v("authorizeStep.errorRejected")):(E(n,{flow:"authorize_step",kind:t.kind}),w(v("authorizeStep.errorGeneric"))),l(!1)}}return o.jsx(we,{onClick:i?void 0:b,role:"presentation","data-testid":"authorize-step-scrim",children:o.jsxs(ve,{onClick:n=>n.stopPropagation(),role:"dialog","aria-modal":"true","aria-label":a,children:[o.jsxs(ke,{children:[o.jsx(Ce,{children:a}),r&&r.total>1?o.jsx(je,{"data-testid":"authorize-step-count",children:v("authorizeStep.stepOf",{index:r.index,total:r.total})}):null,o.jsx(Ae,{onClick:b,disabled:i,"aria-label":v("authorizeStep.close"),children:o.jsx(U,{name:"close",className:"ico"})})]}),o.jsxs(Me,{"data-testid":"authorize-step-row",children:[o.jsx(Ie,{children:m?o.jsx("img",{src:m,alt:""}):f}),o.jsxs($e,{children:[o.jsx(Ee,{title:d,children:d}),o.jsx(Se,{children:c})]})]}),o.jsx(ze,{children:v("authorizeStep.note")}),o.jsx(pe,{message:u}),o.jsxs(We,{children:[o.jsx(_e,{type:"button",onClick:y,disabled:i,children:v("authorizeStep.cancel")}),o.jsx(Ne,{type:"button","data-testid":"authorize-step-action",onClick:()=>void s(),disabled:i,children:i?o.jsxs(o.Fragment,{children:[o.jsx(De,{"aria-hidden":!0}),v("authorizeStep.authorizing")]}):v("authorizeStep.authorize")})]})]})})}const lt="https://cdn.decentraland.org/@dcl/shop/1.17.1/_assets/buy-error-22UunaPC.png";async function ut(t){const[e]=await Y({...t,trades:[t.trade],coupons:t.coupon?{[t.trade.id]:t.coupon}:void 0});return e}async function pt(t){const[e]=await Y({...t,trades:[],mints:[t.mint]});return e}async function Y(t){const{trades:e,coupons:r,mints:a=[],buyer:c,signer:d,onSigned:m,manaWei:f}=t;if(e.length===0&&a.length===0)throw new Error("No items to buy");const g=new Map;for(const i of e){const l=`${i.chainId}:${i.contract.toLowerCase()}:${r!=null&&r[i.id]?"coupon":"plain"}`,u=g.get(l);u?u.push(i):g.set(l,[i])}const y=new Map;for(const i of a){const l=y.get(i.chainId);l?l.push(i):y.set(i.chainId,[i])}const b=[];for(const i of g.values()){const l=r?i.map(u=>r[u.id]).filter(u=>u!=null):[];b.push(await Te({trades:i,coupons:l.length?l:void 0,buyer:c,signer:d,onSigned:m,requiredManaWei:f}))}for(const[i,l]of y){const u=f??l.reduce((w,s)=>w+BigInt(s.item.priceWei),0n);b.push(await Re({mints:l,chainId:i,buyer:c,signer:d,onSigned:m,requiredManaWei:u}))}return b}async function Te(t){const{trades:e,coupons:r,buyer:a,signer:c,onSigned:d,requiredManaWei:m}=t,f=e[0],g=C(B(f.contract),f.chainId),y=C(A.MANAToken,f.chainId);await W({auth:{kind:_.Allowance,contractAddress:y.address,spenderAddress:g.address,chainId:f.chainId},signer:c,requiredWei:m});const b=e.map(s=>oe(s,a));if(r!=null&&r.length&&r.length!==e.length)throw new Error(`acceptWithCoupon needs one coupon per trade, got ${r.length} for ${e.length} trades`);const i=r!=null&&r.length?r.map((s,n)=>se(s,e[n].sent.length)):void 0;if(M.enabled)try{const{selector:s,data:n}=i?ie(e,r??[],a,g.abi):ce(e,a,g.abi),x=s+n.slice(2),j=G(),I=Q(c.provider,j),R=await q(I,j,x,g,{serverURL:M.relayerUrl});return d==null||d(),await H(R,"the MANA purchase"),R}catch(s){if(s instanceof N&&s.code===D.USER_DENIED||s instanceof O)throw s;E(s,{flow:"buy_mana",step:"gasless_fallback"})}await L(c.provider,f.chainId);const l=new F(g.address,g.abi,c),u=i?await l.acceptWithCoupon(b,i,S(f.chainId)):await l.accept(b,S(f.chainId));return d==null||d(),(await u.wait()).transactionHash}async function Re(t){const{mints:e,chainId:r,buyer:a,signer:c,onSigned:d,requiredManaWei:m}=t,f=C(A.CollectionStore,r),g=C(A.MANAToken,r),y=e.map(u=>u.item);if(await W({auth:{kind:_.Allowance,contractAddress:g.address,spenderAddress:f.address,chainId:r},signer:c,requiredWei:m}),M.enabled)try{const u=de(y,a,f.abi),w=G(),s=Q(c.provider,w),n=await q(s,w,u,f,{serverURL:M.relayerUrl});return d==null||d(),await H(n,"the MANA purchase"),n}catch(u){if(u instanceof N&&u.code===D.USER_DENIED||u instanceof O)throw u;E(u,{flow:"buy_mint_mana",step:"gasless_fallback"})}await L(c.provider,r);const i=await new F(f.address,f.abi,c).buy(le(y,a),S(r));return d==null||d(),(await i.wait()).transactionHash}async function ht(t){const{trade:e,coupon:r,...a}=t;return J({target:{kind:"trade",trade:e,coupon:r},...a})}async function ft(t){const{mint:e,...r}=t;return J({target:{kind:"store",mint:e},...r})}async function J(t){const{target:e,buyer:r,signer:a,credits:c,manaGapWei:d,providerType:m,onBroadcast:f,onReverted:g,onUnobservable:y}=t;if(c.length===0)throw new Error("No credits to spend — use the MANA-only rail for that");if(d<=0n)throw new Error("No MANA gap to cover — use the credits-only rail for that");const b=X(e),i=C(A.MANAToken,b),l=C(A.CreditsManager,b);await W({auth:{kind:_.Allowance,contractAddress:i.address,spenderAddress:l.address,chainId:b},signer:a,requiredWei:d});const w=(c.reduce((n,x)=>n+BigInt(x.availableAmount),0n)+d).toString(),s=Pe(e,c,w);if(M.enabled){let n;try{return n=await fe({purchase:s,buyer:r,signer:a}),f==null||f({txHash:n}),await ge(n),n}catch(x){if(x instanceof N&&x.code===D.USER_DENIED||x instanceof xe)throw x;if(!(x instanceof me))throw n&&(g==null||g({txHash:n})),x;if(x.reason==="relayer-unreachable")throw y==null||y(),x;if(!te(m))throw x;E(x,{flow:"buy_credits_and_mana",step:"gasless_fallback"})}}return he({purchase:s,buyer:r,signer:a,onBroadcast:f,onReverted:g})}function X(t){return t.kind==="trade"?t.trade.chainId:t.mint.chainId}function Pe(t,e,r){return t.kind==="trade"?{kind:"trade",trade:t.trade,coupon:t.coupon,credits:e,maxCreditedValue:r}:{kind:"store",item:t.mint.item,chainId:t.mint.chainId,credits:e,maxCreditedValue:r}}function gt(t,e){const r=X(e);return t==="combined"?{spender:C(A.CreditsManager,r).address,chainId:r}:{spender:e.kind==="trade"?C(B(e.trade.contract),r).address:C(A.CollectionStore,r).address,chainId:r}}function xt(t){return o.jsx("svg",{viewBox:"0 0 18 18",width:"18",height:"18","aria-hidden":!0,...t,children:o.jsx("path",{d:"M4 4l10 10M14 4L4 14",stroke:"#161518",strokeWidth:"1.8",strokeLinecap:"round"})})}const{colors:T,media:$}=p,Ke=h.section`
187
+ `;function dt({auth:t,signer:e,step:r,title:a,reason:c,name:d,image:m,icon:f,onAuthorized:g,onCancel:b,onClose:y}){const[i,l]=k.useState(!1),[u,w]=k.useState(null);async function s(){l(!0),w(null);try{await ne({auth:t,signer:e,active:!0}),g()}catch(n){ue(n)?w(v("authorizeStep.errorRejected")):(E(n,{flow:"authorize_step",kind:t.kind}),w(v("authorizeStep.errorGeneric"))),l(!1)}}return o.jsx(we,{onClick:i?void 0:y,role:"presentation","data-testid":"authorize-step-scrim",children:o.jsxs(ve,{onClick:n=>n.stopPropagation(),role:"dialog","aria-modal":"true","aria-label":a,children:[o.jsxs(ke,{children:[o.jsx(Ce,{children:a}),r&&r.total>1?o.jsx(je,{"data-testid":"authorize-step-count",children:v("authorizeStep.stepOf",{index:r.index,total:r.total})}):null,o.jsx(Ae,{onClick:y,disabled:i,"aria-label":v("authorizeStep.close"),children:o.jsx(U,{name:"close",className:"ico"})})]}),o.jsxs(Me,{"data-testid":"authorize-step-row",children:[o.jsx(Ie,{children:m?o.jsx("img",{src:m,alt:""}):f}),o.jsxs($e,{children:[o.jsx(Ee,{title:d,children:d}),o.jsx(Se,{children:c})]})]}),o.jsx(ze,{children:v("authorizeStep.note")}),o.jsx(pe,{message:u}),o.jsxs(We,{children:[o.jsx(_e,{type:"button",onClick:b,disabled:i,children:v("authorizeStep.cancel")}),o.jsx(Ne,{type:"button","data-testid":"authorize-step-action",onClick:()=>void s(),disabled:i,children:i?o.jsxs(o.Fragment,{children:[o.jsx(De,{"aria-hidden":!0}),v("authorizeStep.authorizing")]}):v("authorizeStep.authorize")})]})]})})}const lt="https://cdn.decentraland.org/@dcl/shop/1.17.2-36157867735.commit-7431f7b/_assets/buy-error-22UunaPC.png";async function ut(t){const[e]=await Y({...t,trades:[t.trade],coupons:t.coupon?{[t.trade.id]:t.coupon}:void 0});return e}async function pt(t){const[e]=await Y({...t,trades:[],mints:[t.mint]});return e}async function Y(t){const{trades:e,coupons:r,mints:a=[],buyer:c,signer:d,onSigned:m,manaWei:f}=t;if(e.length===0&&a.length===0)throw new Error("No items to buy");const g=new Map;for(const i of e){const l=`${i.chainId}:${i.contract.toLowerCase()}:${r!=null&&r[i.id]?"coupon":"plain"}`,u=g.get(l);u?u.push(i):g.set(l,[i])}const b=new Map;for(const i of a){const l=b.get(i.chainId);l?l.push(i):b.set(i.chainId,[i])}const y=[];for(const i of g.values()){const l=r?i.map(u=>r[u.id]).filter(u=>u!=null):[];y.push(await Te({trades:i,coupons:l.length?l:void 0,buyer:c,signer:d,onSigned:m,requiredManaWei:f}))}for(const[i,l]of b){const u=f??l.reduce((w,s)=>w+BigInt(s.item.priceWei),0n);y.push(await Re({mints:l,chainId:i,buyer:c,signer:d,onSigned:m,requiredManaWei:u}))}return y}async function Te(t){const{trades:e,coupons:r,buyer:a,signer:c,onSigned:d,requiredManaWei:m}=t,f=e[0],g=C(L(f.contract),f.chainId),b=C(A.MANAToken,f.chainId);await W({auth:{kind:_.Allowance,contractAddress:b.address,spenderAddress:g.address,chainId:f.chainId},signer:c,requiredWei:m});const y=e.map(s=>oe(s,a));if(r!=null&&r.length&&r.length!==e.length)throw new Error(`acceptWithCoupon needs one coupon per trade, got ${r.length} for ${e.length} trades`);const i=r!=null&&r.length?r.map((s,n)=>se(s,e[n].sent.length)):void 0;if(M.enabled)try{const{selector:s,data:n}=i?ie(e,r??[],a,g.abi):ce(e,a,g.abi),x=s+n.slice(2),j=G(),I=Q(c.provider,j),R=await q(I,j,x,g,{serverURL:M.relayerUrl});return d==null||d(),await H(R,"the MANA purchase"),R}catch(s){if(s instanceof N&&s.code===D.USER_DENIED||s instanceof O)throw s;E(s,{flow:"buy_mana",step:"gasless_fallback"})}await B(c.provider,f.chainId);const l=new F(g.address,g.abi,c),u=i?await l.acceptWithCoupon(y,i,S(f.chainId)):await l.accept(y,S(f.chainId));return d==null||d(),(await u.wait()).transactionHash}async function Re(t){const{mints:e,chainId:r,buyer:a,signer:c,onSigned:d,requiredManaWei:m}=t,f=C(A.CollectionStore,r),g=C(A.MANAToken,r),b=e.map(u=>u.item);if(await W({auth:{kind:_.Allowance,contractAddress:g.address,spenderAddress:f.address,chainId:r},signer:c,requiredWei:m}),M.enabled)try{const u=de(b,a,f.abi),w=G(),s=Q(c.provider,w),n=await q(s,w,u,f,{serverURL:M.relayerUrl});return d==null||d(),await H(n,"the MANA purchase"),n}catch(u){if(u instanceof N&&u.code===D.USER_DENIED||u instanceof O)throw u;E(u,{flow:"buy_mint_mana",step:"gasless_fallback"})}await B(c.provider,r);const i=await new F(f.address,f.abi,c).buy(le(b,a),S(r));return d==null||d(),(await i.wait()).transactionHash}async function ht(t){const{trade:e,coupon:r,...a}=t;return J({target:{kind:"trade",trade:e,coupon:r},...a})}async function ft(t){const{mint:e,...r}=t;return J({target:{kind:"store",mint:e},...r})}async function J(t){const{target:e,buyer:r,signer:a,credits:c,manaGapWei:d,providerType:m,onBroadcast:f,onReverted:g,onUnobservable:b}=t;if(c.length===0)throw new Error("No credits to spend — use the MANA-only rail for that");if(d<=0n)throw new Error("No MANA gap to cover — use the credits-only rail for that");const y=X(e),i=C(A.MANAToken,y),l=C(A.CreditsManager,y);await W({auth:{kind:_.Allowance,contractAddress:i.address,spenderAddress:l.address,chainId:y},signer:a,requiredWei:d});const w=(c.reduce((n,x)=>n+BigInt(x.availableAmount),0n)+d).toString(),s=Pe(e,c,w);if(M.enabled){let n;try{return n=await fe({purchase:s,buyer:r,signer:a}),f==null||f({txHash:n}),await ge(n),n}catch(x){if(x instanceof N&&x.code===D.USER_DENIED||x instanceof xe)throw x;if(!(x instanceof me))throw n&&(g==null||g({txHash:n})),x;if(x.reason==="relayer-unreachable")throw b==null||b(),x;if(!te(m))throw x;E(x,{flow:"buy_credits_and_mana",step:"gasless_fallback"})}}return he({purchase:s,buyer:r,signer:a,onBroadcast:f,onReverted:g})}function X(t){return t.kind==="trade"?t.trade.chainId:t.mint.chainId}function Pe(t,e,r){return t.kind==="trade"?{kind:"trade",trade:t.trade,coupon:t.coupon,credits:e,maxCreditedValue:r}:{kind:"store",item:t.mint.item,chainId:t.mint.chainId,credits:e,maxCreditedValue:r}}function gt(t,e){const r=X(e);return t==="combined"?{spender:C(A.CreditsManager,r).address,chainId:r}:{spender:e.kind==="trade"?C(L(e.trade.contract),r).address:C(A.CollectionStore,r).address,chainId:r}}function xt(t){return o.jsx("svg",{viewBox:"0 0 18 18",width:"18",height:"18","aria-hidden":!0,...t,children:o.jsx("path",{d:"M4 4l10 10M14 4L4 14",stroke:"#161518",strokeWidth:"1.8",strokeLinecap:"round"})})}const{colors:T,media:$}=p,Ke=h.section`
188
188
  margin-top: 40px;
189
189
  `,Ue=h.div`
190
190
  display: flex;
191
191
  align-items: center;
192
192
  justify-content: space-between;
193
193
  margin-bottom: 20px;
194
- `,Be=h.h2`
194
+ `,Le=h.h2`
195
195
  font-size: 22px;
196
196
  font-weight: 700;
197
197
  color: ${T.softWhite};
198
- `,Le=h.button`
198
+ `,Be=h.button`
199
199
  display: inline-flex;
200
200
  align-items: center;
201
201
  gap: 4px;
@@ -318,5 +318,5 @@ import{r as k,j as o}from"./react-57wE9FMW.js";import{cA as Z,a as p,s as h,k as
318
318
  opacity: 1;
319
319
  transform: scale(1.1);
320
320
  }
321
- `;function mt({title:t,items:e,onViewAll:r}){const a=k.useRef(null),[c,d]=k.useState(1),[m,f]=k.useState(0),[g,y]=k.useState(!0),[b,i]=k.useState(!1),l=k.useCallback(()=>{const s=a.current;if(!s)return;const{scrollLeft:n,scrollWidth:x,clientWidth:j}=s,I=Math.max(1,Math.ceil(x/j));d(I),f(Math.min(I-1,Math.round(n/j))),y(n<=1),i(n+j>=x-1)},[]);if(k.useEffect(()=>{l();const s=a.current;if(s)return s.addEventListener("scroll",l,{passive:!0}),window.addEventListener("resize",l),()=>{s.removeEventListener("scroll",l),window.removeEventListener("resize",l)}},[l,e.length]),e.length===0)return null;function u(s){const n=a.current;n&&n.scrollBy({left:s*n.clientWidth,behavior:"smooth"})}function w(s){const n=a.current;n&&n.scrollTo({left:s*n.clientWidth,behavior:"smooth"})}return o.jsxs(Ke,{"data-testid":"carousel",children:[o.jsxs(Ue,{children:[o.jsx(Be,{children:t}),r?o.jsxs(Le,{onClick:r,children:[v("collectionCarousel.viewAll"),o.jsx(Ge,{name:"chevron-down",size:16})]}):null]}),o.jsxs(Qe,{children:[o.jsx(K,{"data-side":"left",onClick:()=>u(-1),"aria-label":v("collectionCarousel.scrollLeft"),disabled:g,children:o.jsx("img",{src:P,alt:"","aria-hidden":!0})}),o.jsx(He,{ref:a,children:e.map(s=>o.jsx(ae,{item:s},s.id))}),o.jsx(K,{"data-side":"right",onClick:()=>u(1),"aria-label":v("collectionCarousel.scrollRight"),disabled:b,children:o.jsx("img",{src:P,alt:"","aria-hidden":!0})})]}),c>1?o.jsx(Oe,{"aria-label":v("collectionCarousel.pages"),children:Array.from({length:c}).map((s,n)=>o.jsx(qe,{"data-active":n===m||void 0,"aria-label":v("collectionCarousel.goToPage",{page:n+1}),"aria-current":n===m?"true":void 0,onClick:()=>w(n)},n))}):null]})}export{dt as A,xt as C,mt as a,lt as b,Y as c,X as d,st as e,ut as f,pt as g,ht as h,ct as i,ft as j,ot as k,gt as m,Pe as p,it as r,at as s,nt as t,V as u};
322
- //# sourceMappingURL=CollectionCarousel-CXiZiW-S.js.map
321
+ `;function mt({title:t,items:e,onViewAll:r}){const a=k.useRef(null),[c,d]=k.useState(1),[m,f]=k.useState(0),[g,b]=k.useState(!0),[y,i]=k.useState(!1),l=k.useCallback(()=>{const s=a.current;if(!s)return;const{scrollLeft:n,scrollWidth:x,clientWidth:j}=s,I=Math.max(1,Math.ceil(x/j));d(I),f(Math.min(I-1,Math.round(n/j))),b(n<=1),i(n+j>=x-1)},[]);if(k.useEffect(()=>{l();const s=a.current;if(s)return s.addEventListener("scroll",l,{passive:!0}),window.addEventListener("resize",l),()=>{s.removeEventListener("scroll",l),window.removeEventListener("resize",l)}},[l,e.length]),e.length===0)return null;function u(s){const n=a.current;n&&n.scrollBy({left:s*n.clientWidth,behavior:"smooth"})}function w(s){const n=a.current;n&&n.scrollTo({left:s*n.clientWidth,behavior:"smooth"})}return o.jsxs(Ke,{"data-testid":"carousel",children:[o.jsxs(Ue,{children:[o.jsx(Le,{children:t}),r?o.jsxs(Be,{onClick:r,children:[v("collectionCarousel.viewAll"),o.jsx(Ge,{name:"chevron-down",size:16})]}):null]}),o.jsxs(Qe,{children:[o.jsx(K,{"data-side":"left",onClick:()=>u(-1),"aria-label":v("collectionCarousel.scrollLeft"),disabled:g,children:o.jsx("img",{src:P,alt:"","aria-hidden":!0})}),o.jsx(He,{ref:a,children:e.map(s=>o.jsx(ae,{item:s},s.id))}),o.jsx(K,{"data-side":"right",onClick:()=>u(1),"aria-label":v("collectionCarousel.scrollRight"),disabled:y,children:o.jsx("img",{src:P,alt:"","aria-hidden":!0})})]}),c>1?o.jsx(Oe,{"aria-label":v("collectionCarousel.pages"),children:Array.from({length:c}).map((s,n)=>o.jsx(qe,{"data-active":n===m||void 0,"aria-label":v("collectionCarousel.goToPage",{page:n+1}),"aria-current":n===m?"true":void 0,onClick:()=>w(n)},n))}):null]})}export{dt as A,xt as C,mt as a,lt as b,Y as c,X as d,st as e,ut as f,pt as g,ht as h,ct as i,ft as j,ot as k,gt as m,Pe as p,it as r,at as s,nt as t,V as u};
322
+ //# sourceMappingURL=CollectionCarousel-C_r2HthR.js.map
@@ -1,5 +1,5 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["_assets/index.es-BirWIv1k.js","_assets/react-57wE9FMW.js"])))=>i.map(i=>d[i]);
2
- import{s,_ as a}from"./index-C0EB4Nb3.js";import{r as n,j as i}from"./react-57wE9FMW.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]="590f1af6-a149-444b-a999-9434b62cd3dc",t._sentryDebugIdIdentifier="sentry-dbid-590f1af6-a149-444b-a999-9434b62cd3dc")}catch{}})();const o=s.div`
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["_assets/index.es-DrJv9QY8.js","_assets/react-Ddn-9d83.js"])))=>i.map(i=>d[i]);
2
+ import{s,_ as a}from"./index-BBS-v8LD.js";import{r as n,j as i}from"./react-Ddn-9d83.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]="590f1af6-a149-444b-a999-9434b62cd3dc",t._sentryDebugIdIdentifier="sentry-dbid-590f1af6-a149-444b-a999-9434b62cd3dc")}catch{}})();const o=s.div`
3
3
  position: fixed;
4
4
  inset: 0;
5
5
  /**
@@ -14,5 +14,5 @@ import{s,_ as a}from"./index-C0EB4Nb3.js";import{r as n,j as i}from"./react-57wE
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([a(()=>import("./index.es-BirWIv1k.js"),__vite__mapDeps([0,1])),a(()=>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-Bsu2ytMi.js.map
17
+ `,r=n.lazy(async()=>{const[{default:t},{default:e}]=await Promise.all([a(()=>import("./index.es-DrJv9QY8.js"),__vite__mapDeps([0,1])),a(()=>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-DPZN6qJi.js.map
@@ -1,2 +1,2 @@
1
- import{p as o}from"./sentry-C6Mao8WI.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-czCTnHYO.js.map
1
+ import{p as o}from"./sentry-D_8KijKQ.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-C6ody29O.js.map
@@ -1,2 +1,2 @@
1
- import{g as z}from"./react-57wE9FMW.js";import{r as W}from"./index-BhhO1oEp.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]="c4e5caf1-0849-4f8f-a3ca-7e16f35c3d95",s._sentryDebugIdIdentifier="sentry-dbid-c4e5caf1-0849-4f8f-a3ca-7e16f35c3d95")}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-CIV5rrAt.js.map
1
+ import{g as z}from"./react-Ddn-9d83.js";import{r as W}from"./index-B8kJyL6G.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]="c4e5caf1-0849-4f8f-a3ca-7e16f35c3d95",s._sentryDebugIdIdentifier="sentry-dbid-c4e5caf1-0849-4f8f-a3ca-7e16f35c3d95")}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-C03rRrUz.js.map
@@ -1,4 +1,4 @@
1
- import{b as ce,j as e,L as Ie,e as Le,u as Me,r as L}from"./react-57wE9FMW.js";import{u as _e,s as Ae}from"./search-empty-B9EfPE1P.js";import{u as Re,S as Z,F as ze,a as Te}from"./Filters-COsCKlQM.js";import{a as de,bJ as Be,a9 as J,a8 as X,s,bK as De,A as We,bL as Oe,t as o,bM as Ue,bN as ee,H as Ke,n as he,a3 as ue,x as Ge,bO as me,bP as He,bQ as Ve,I as te,c as qe,B as Qe,w as Ye,bR as Ze,av as Je,Y as Xe,Z as et,a1 as M,$ as R,a2 as oe,bS as re,bT as tt,bU as ot}from"./index-C0EB4Nb3.js";import{T as pe}from"./skeleton.styles-Bvaum8jS.js";import{d as rt,P as it,C as st,a as at,b as nt,c as lt,e as ct}from"./collectionPage.styles-Drt5ivqQ.js";import{u as dt,L as ht}from"./useStore-CJ2zzclt.js";import{L as ie}from"./LoadMore-D8gtSgyc.js";import{u as se}from"./useInfiniteGrid-CbPWAhDP.js";import{E as z}from"./ErrorNotice-DSZ4YOzl.js";import{c as ut,i as mt}from"./items-empty-BciJH2B_.js";import{R as pt,S as xt,a as gt,D as ft,b as bt,C as wt,c as yt,d as vt,e as jt,M as Ct}from"./browseLayout.styles-D3u_lxUV.js";import{G as ae}from"./grid.styles-D--qOwVq.js";import"./Tooltip-DIRWGOxl.js";import"./dcl-schemas-BgQanFex.js";import"./sentry-C6Mao8WI.js";import"./ethers-RdXTApYJ.js";import"./intl-AKLEHPeO.js";import"./crumbs.styles-IWrGqGTW.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]="cbbb4e63-c538-4fd1-861f-06cdc62bb950",r._sentryDebugIdIdentifier="sentry-dbid-cbbb4e63-c538-4fd1-861f-06cdc62bb950")}catch{}})();function kt(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:w,radius:$,media:$t}=de,St=s.article`
1
+ import{b as ce,j as e,L as Ie,e as Le,u as Me,r as L}from"./react-Ddn-9d83.js";import{u as _e,s as Ae}from"./search-empty-D1Tausth.js";import{u as Re,S as Y,F as ze,a as Te}from"./Filters-CdMOVmbU.js";import{a as de,bJ as Be,ac as Z,ab as X,s,bK as De,A as We,bL as Oe,t as o,bM as Ue,bN as ee,H as Ke,n as he,a6 as ue,x as Ge,bO as me,bP as He,bQ as Ve,I as te,c as qe,B as Qe,w as Je,bR as Ye,ay as Ze,a0 as Xe,a1 as et,a4 as M,a2 as R,a5 as oe,bS as re,bT as tt,bU as ot}from"./index-BBS-v8LD.js";import{T as pe}from"./skeleton.styles-anODpKJf.js";import{d as rt,P as it,C as st,a as at,b as nt,c as lt,e as ct}from"./collectionPage.styles-Db2PBFNG.js";import{u as dt,L as ht}from"./useStore-wU9qkXc9.js";import{L as ie}from"./LoadMore-CM5ykem-.js";import{u as se}from"./useInfiniteGrid-C5wDaoVd.js";import{E as z}from"./ErrorNotice-D_6j8-7f.js";import{c as ut,i as mt}from"./items-empty-Dtl-YwtZ.js";import{R as pt,S as xt,a as gt,D as ft,b as bt,C as wt,c as yt,d as vt,e as jt,M as Ct}from"./browseLayout.styles-DF9DTUfO.js";import{G as ae}from"./grid.styles-CVQcD_5t.js";import"./Tooltip-DFrRznAp.js";import"./dcl-schemas-BW3BbT5l.js";import"./sentry-D_8KijKQ.js";import"./ethers-DGYWmyb1.js";import"./intl-AKLEHPeO.js";import"./crumbs.styles-R8odPxFR.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]="61283b71-8ac2-4d27-a7bb-3d129039306f",r._sentryDebugIdIdentifier="sentry-dbid-61283b71-8ac2-4d27-a7bb-3d129039306f")}catch{}})();function kt(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:w,radius:$,media:$t}=de,St=s.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. */
@@ -16,7 +16,7 @@ import{b as ce,j as e,L as Ie,e as Le,u as Me,r as L}from"./react-57wE9FMW.js";i
16
16
  }
17
17
 
18
18
  &:focus-visible {
19
- ${J};
19
+ ${Z};
20
20
  }
21
21
  &:focus-visible::after {
22
22
  ${X};
@@ -27,7 +27,7 @@ import{b as ce,j as e,L as Ie,e as Le,u as Me,r as L}from"./react-57wE9FMW.js";i
27
27
  // already opens the collection.
28
28
  @media (hover: hover) {
29
29
  &:hover {
30
- ${J};
30
+ ${Z};
31
31
  /* No zoom, unlike AssetCard — the footer row already swaps, and scaling would nudge every label.
32
32
  z-index still matters: the ring and glow paint outside the box, under the next card otherwise. */
33
33
  z-index: 1;
@@ -295,18 +295,18 @@ import{b as ce,j as e,L as Ie,e as Le,u as Me,r as L}from"./react-57wE9FMW.js";i
295
295
  ${v.maxWidth("mobile")} {
296
296
  font-size: 14px;
297
297
  }
298
- `,Yt=s.div`
298
+ `,Jt=s.div`
299
299
  display: flex;
300
300
  align-items: center;
301
301
  gap: 12px;
302
302
  flex-wrap: wrap;
303
303
  justify-content: center;
304
- `,Zt=s.a`
304
+ `,Yt=s.a`
305
305
  ${ge};
306
306
  transition: background 0.15s ease;
307
307
 
308
308
  &:hover {
309
309
  background: ${y.blackBtn};
310
310
  }
311
- `,Jt={website:"website",twitter:"x-twitter",discord:"discord",facebook:"facebook"};function Xt({address:r}){var m,C;const{data:i}=ue(r),{data:a}=dt(r),l=Ge(p=>{var S;return(S=p.session)==null?void 0:S.address}),c=!!l&&l.toLowerCase()===r.toLowerCase(),d=(i==null?void 0:i.name)||me(r),b=(C=(m=i==null?void 0:i.avatar)==null?void 0:m.snapshots)==null?void 0:C.face256,j=(a==null?void 0:a.cover)||rt,n=a==null?void 0:a.description,g=`${qe.profileUrl}/${r}`,f=ht.filter(p=>a==null?void 0:a.links[p]),h=He(Ve({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(Ut,{"aria-hidden":!0})]}),(f.length>0||c)&&e.jsxs(Kt,{children:[f.map(p=>e.jsx(Gt,{"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(Ht,{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(Bt,{address:r,className:"creator-hero__follow"})]})]})]})}const eo=["all","on_sale","not_for_sale"],le=48;function vo(){var Q,Y;const{address:r}=Le(),i=ce(),[a]=Me(),l=a.has("collections"),{data:c}=ue(r),d=(c==null?void 0:c.name)||(r?me(r):o("creator.fallbackName"));Qe({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:C,smart:p,sort:S}=j,N=eo.includes(j.status)?j.status:"all",T=t=>n({status:t});Re(`${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 B=m&&!Number.isNaN(Number(m))?Number(m):void 0,D=C&&!Number.isNaN(Number(C))?Number(C):void 0,be=f?tt[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:B,maxPriceCredits:D,isWearableSmart:p||void 0,isOnSale:N==="all"?void 0:N==="on_sale",sortBy:we},{items:_,total:ye,isLoading:ve,isPlaceholderData:je,error:O,hasNextPage:Ce,isFetchingNextPage:U,isFetchNextPageError:ke,fetchNextPage:$e}=se(["creator-items",W],t=>re({...W,first:le,skip:t}),{enabled:!!r&&!l}),F=Ye({queryKey:["creator-item-count",r],queryFn:()=>re({creator:r,first:1}).then(t=>t.total),enabled:!!r}),u=se(["creator-collections",r],t=>ot(r,{first:le,skip:t}).then(x=>({items:x.collections,total:x.total})),{enabled:!!r&&l});function K(t){n({category:t,subCategory:null},{drop:l?["collections"]:void 0})}function Se(){const t=new URLSearchParams(a);t.delete("collections");const x=t.toString();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 G(t){n({rarities:h.includes(t)?h.filter(x=>x!==t):[...h,t]})}function H(){n(b)}const k=[];(g==="wearable"||g==="emote")&&k.push({key:"category",label:o(g==="emote"?"categories.emotes":"categories.wearables"),onRemove:()=>K("all")}),(B!=null||D!=null)&&k.push({key:"price",label:o("filter.price"),onRemove:()=>{n({priceMin:"",priceMax:""})}});for(const t of Ze)h.includes(t)&&k.push({key:`rarity-${t}`,label:Je(t),onRemove:()=>G(t)});p&&k.push({key:"smart",label:o("filter.smart"),onRemove:()=>n({smart:!1})}),N!=="all"&&k.push({key:"status",label:N==="on_sale"?o("filter.onSale"):o("filter.notForSale"),onRemove:()=>T("all")});const I=kt({gridLoading:ve||je,gridError:!!O,gridCount:_.length,baselinePending:F.isPending,baselineError:F.isError,baselineCount:F.data}),V=I==="skeletons",{data:q}=Xe(),Ee=L.useMemo(()=>_.map(t=>({...t,priceCredits:et(t,q)})),[_,q]),Pe=t=>t.priceCredits>0||!!t.manaWei,A=I==="items"||I==="skeletons"?null:I;return e.jsxs(it,{children:[e.jsxs(st,{"aria-label":o("creator.breadcrumbAria"),children:[e.jsx(at,{onClick:()=>i("/items"),children:o("creator.breadcrumb")}),e.jsx("span",{children:"/"}),e.jsx(nt,{children:d})]}),r?e.jsx(Xt,{address:r}):null,e.jsxs(pt,{children:[P?e.jsx(xt,{onClick:()=>E(!1),"aria-hidden":!0}):null,e.jsxs(gt,{"data-open":P||void 0,"data-testid":"creator-sidebar",children:[e.jsxs(ft,{children:[e.jsx(bt,{children:o("assets.filters")}),e.jsx(wt,{onClick:()=>E(!1),"aria-label":o("assets.closeFilters"),children:"✕"})]}),e.jsx(yt,{children:e.jsx(ze,{category:g,subCategory:f,onCategory:K,onSub:t=>n({subCategory:t}),priceMin:m,priceMax:C,onPriceMin:t=>n({priceMin:t}),onPriceMax:t=>n({priceMax:t}),rarities:h,onToggleRarity:G,status:N,onStatus:T,smart:p,onSmart:t=>n({smart:t}),hideNames:!0,collections:l,onCollections:Ne})}),e.jsx(vt,{children:e.jsx(jt,{type:"button",onClick:()=>E(!1),children:o("assets.showItems")})})]}),e.jsx(Ct,{children:l?e.jsxs(e.Fragment,{children:[e.jsx(lt,{children:e.jsx(ct,{"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(z,{message:o("creator.error")}):null,e.jsx(ae,{"data-variant":"collections",children:u.isLoading?e.jsx(M,{count:9}):e.jsxs(e.Fragment,{children:[u.items.map(t=>e.jsx(Tt,{collection:t,itemCount:t.itemCount},t.contractAddress)),u.isFetchingNextPage?e.jsx(M,{count:6}):null]})}),e.jsx(ie,{hasNextPage:u.hasNextPage,isFetching:u.isFetchingNextPage,isError:u.isFetchNextPageError,onLoadMore:()=>void u.fetchNextPage()}),!u.isLoading&&!u.error&&u.items.length===0?e.jsx(R,{testId:"creator-collections-empty",icon:ut,title:o("creator.collectionsEmptyTitle"),body:o("creator.collectionsEmpty"),cta:{label:o("assets.empty.cta"),to:"/items"}}):null]}):e.jsxs(e.Fragment,{children:[e.jsx(Te,{sort:S,onSort:t=>n({sort:t}),total:ye,loading:V,onOpenFilters:()=>E(!0),chips:k,onClearChips:H}),O?e.jsx(z,{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)),U?e.jsx(M,{count:6}):null]})}),e.jsx(ie,{hasNextPage:Ce,isFetching:U,isError:ke,onLoadMore:()=>void $e()}),A==="error"?e.jsx(z,{message:o("creator.error"),testId:"creator-empty-error"}):A==="no-creations"?e.jsx(R,{testId:"creator-empty-none",icon:mt,title:o("creator.emptyNoCreationsTitle"),body:o("creator.emptyNoCreations"),cta:{label:o("assets.empty.cta"),to:"/items"}}):A==="filters"?e.jsx(R,{testId:"creator-empty-filters",icon:Ae,title:o("creator.emptyFilters.title"),body:o("creator.emptyFilters.body",{count:F.data??0}),cta:{label:o("filterBar.clearAll"),onClick:H}}):null]})})]})]})}export{vo as Creator,vo as default};
312
- //# sourceMappingURL=Creator-CIH3WU3e.js.map
311
+ `,Zt={website:"website",twitter:"x-twitter",discord:"discord",facebook:"facebook"};function Xt({address:r}){var m,C;const{data:i}=ue(r),{data:a}=dt(r),l=Ge(p=>{var S;return(S=p.session)==null?void 0:S.address}),c=!!l&&l.toLowerCase()===r.toLowerCase(),d=(i==null?void 0:i.name)||me(r),b=(C=(m=i==null?void 0:i.avatar)==null?void 0:m.snapshots)==null?void 0:C.face256,j=(a==null?void 0:a.cover)||rt,n=a==null?void 0:a.description,g=`${qe.profileUrl}/${r}`,f=ht.filter(p=>a==null?void 0:a.links[p]),h=He(Ve({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(Ut,{"aria-hidden":!0})]}),(f.length>0||c)&&e.jsxs(Kt,{children:[f.map(p=>e.jsx(Gt,{"data-testid":"creator-hero-link",href:(a==null?void 0:a.links[p])??"",target:"_blank",rel:"noopener noreferrer",title:o(`creator.link.${p}`),"aria-label":o(`creator.link.${p}`),children:e.jsx(te,{name:Zt[p]})},p)),c&&e.jsx(Ht,{to:"/store-settings",title:o("creator.editStore"),"aria-label":o("creator.editStore"),children:e.jsx(te,{name:"pen"})})]}),e.jsxs(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(Jt,{children:[e.jsx(Yt,{"data-testid":"creator-hero-view",href:g,target:"_blank",rel:"noopener noreferrer",children:o("creator.viewProfile")}),e.jsx(Bt,{address:r,className:"creator-hero__follow"})]})]})]})}const eo=["all","on_sale","not_for_sale"],le=48;function vo(){var Q,J;const{address:r}=Le(),i=ce(),[a]=Me(),l=a.has("collections"),{data:c}=ue(r),d=(c==null?void 0:c.name)||(r?me(r):o("creator.fallbackName"));Qe({title:d,description:o("seo.creator.description",{name:d}),image:(J=(Q=c==null?void 0:c.avatar)==null?void 0:Q.snapshots)==null?void 0:J.face256});const b=L.useMemo(()=>({category:"all",status:"all",subCategory:null,rarities:[],priceMin:"",priceMax:"",smart:!1,sort:"newest"}),[]),[j,n]=_e(b),{category:g,subCategory:f,rarities:h,priceMin:m,priceMax:C,smart:p,sort:S}=j,N=eo.includes(j.status)?j.status:"all",T=t=>n({status:t});Re(`${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 B=m&&!Number.isNaN(Number(m))?Number(m):void 0,D=C&&!Number.isNaN(Number(C))?Number(C):void 0,be=f?tt[f]:void 0,we=(Y.find(t=>t.key===S)??Y[0]).server,W={creator:r,category:g,rarities:h.length?h:void 0,wearableCategories:be,minPriceCredits:B,maxPriceCredits:D,isWearableSmart:p||void 0,isOnSale:N==="all"?void 0:N==="on_sale",sortBy:we},{items:_,total:ye,isLoading:ve,isPlaceholderData:je,error:O,hasNextPage:Ce,isFetchingNextPage:U,isFetchNextPageError:ke,fetchNextPage:$e}=se(["creator-items",W],t=>re({...W,first:le,skip:t}),{enabled:!!r&&!l}),F=Je({queryKey:["creator-item-count",r],queryFn:()=>re({creator:r,first:1}).then(t=>t.total),enabled:!!r}),u=se(["creator-collections",r],t=>ot(r,{first:le,skip:t}).then(x=>({items:x.collections,total:x.total})),{enabled:!!r&&l});function K(t){n({category:t,subCategory:null},{drop:l?["collections"]:void 0})}function Se(){const t=new URLSearchParams(a);t.delete("collections");const x=t.toString();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 G(t){n({rarities:h.includes(t)?h.filter(x=>x!==t):[...h,t]})}function H(){n(b)}const k=[];(g==="wearable"||g==="emote")&&k.push({key:"category",label:o(g==="emote"?"categories.emotes":"categories.wearables"),onRemove:()=>K("all")}),(B!=null||D!=null)&&k.push({key:"price",label:o("filter.price"),onRemove:()=>{n({priceMin:"",priceMax:""})}});for(const t of Ye)h.includes(t)&&k.push({key:`rarity-${t}`,label:Ze(t),onRemove:()=>G(t)});p&&k.push({key:"smart",label:o("filter.smart"),onRemove:()=>n({smart:!1})}),N!=="all"&&k.push({key:"status",label:N==="on_sale"?o("filter.onSale"):o("filter.notForSale"),onRemove:()=>T("all")});const I=kt({gridLoading:ve||je,gridError:!!O,gridCount:_.length,baselinePending:F.isPending,baselineError:F.isError,baselineCount:F.data}),V=I==="skeletons",{data:q}=Xe(),Ee=L.useMemo(()=>_.map(t=>({...t,priceCredits:et(t,q)})),[_,q]),Pe=t=>t.priceCredits>0||!!t.manaWei,A=I==="items"||I==="skeletons"?null:I;return e.jsxs(it,{children:[e.jsxs(st,{"aria-label":o("creator.breadcrumbAria"),children:[e.jsx(at,{onClick:()=>i("/items"),children:o("creator.breadcrumb")}),e.jsx("span",{children:"/"}),e.jsx(nt,{children:d})]}),r?e.jsx(Xt,{address:r}):null,e.jsxs(pt,{children:[P?e.jsx(xt,{onClick:()=>E(!1),"aria-hidden":!0}):null,e.jsxs(gt,{"data-open":P||void 0,"data-testid":"creator-sidebar",children:[e.jsxs(ft,{children:[e.jsx(bt,{children:o("assets.filters")}),e.jsx(wt,{onClick:()=>E(!1),"aria-label":o("assets.closeFilters"),children:"✕"})]}),e.jsx(yt,{children:e.jsx(ze,{category:g,subCategory:f,onCategory:K,onSub:t=>n({subCategory:t}),priceMin:m,priceMax:C,onPriceMin:t=>n({priceMin:t}),onPriceMax:t=>n({priceMax:t}),rarities:h,onToggleRarity:G,status:N,onStatus:T,smart:p,onSmart:t=>n({smart:t}),hideNames:!0,collections:l,onCollections:Ne})}),e.jsx(vt,{children:e.jsx(jt,{type:"button",onClick:()=>E(!1),children:o("assets.showItems")})})]}),e.jsx(Ct,{children:l?e.jsxs(e.Fragment,{children:[e.jsx(lt,{children:e.jsx(ct,{"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(z,{message:o("creator.error")}):null,e.jsx(ae,{"data-variant":"collections",children:u.isLoading?e.jsx(M,{count:9}):e.jsxs(e.Fragment,{children:[u.items.map(t=>e.jsx(Tt,{collection:t,itemCount:t.itemCount},t.contractAddress)),u.isFetchingNextPage?e.jsx(M,{count:6}):null]})}),e.jsx(ie,{hasNextPage:u.hasNextPage,isFetching:u.isFetchingNextPage,isError:u.isFetchNextPageError,onLoadMore:()=>void u.fetchNextPage()}),!u.isLoading&&!u.error&&u.items.length===0?e.jsx(R,{testId:"creator-collections-empty",icon:ut,title:o("creator.collectionsEmptyTitle"),body:o("creator.collectionsEmpty"),cta:{label:o("assets.empty.cta"),to:"/items"}}):null]}):e.jsxs(e.Fragment,{children:[e.jsx(Te,{sort:S,onSort:t=>n({sort:t}),total:ye,loading:V,onOpenFilters:()=>E(!0),chips:k,onClearChips:H}),O?e.jsx(z,{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)),U?e.jsx(M,{count:6}):null]})}),e.jsx(ie,{hasNextPage:Ce,isFetching:U,isError:ke,onLoadMore:()=>void $e()}),A==="error"?e.jsx(z,{message:o("creator.error"),testId:"creator-empty-error"}):A==="no-creations"?e.jsx(R,{testId:"creator-empty-none",icon:mt,title:o("creator.emptyNoCreationsTitle"),body:o("creator.emptyNoCreations"),cta:{label:o("assets.empty.cta"),to:"/items"}}):A==="filters"?e.jsx(R,{testId:"creator-empty-filters",icon:Ae,title:o("creator.emptyFilters.title"),body:o("creator.emptyFilters.body",{count:F.data??0}),cta:{label:o("filterBar.clearAll"),onClick:H}}):null]})})]})]})}export{vo as Creator,vo as default};
312
+ //# sourceMappingURL=Creator-Chq_3FKW.js.map
@@ -1,4 +1,4 @@
1
- import{j as o}from"./react-57wE9FMW.js";import{V as T,bH as w,bI as z,a as r,s as e,z as x,ar as W,I as A,t as v,F as p}from"./index-C0EB4Nb3.js";(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},i=new a.Error().stack;i&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[i]="6dfb4e50-19c2-4bf5-9f2e-226aa7449540",a._sentryDebugIdIdentifier="sentry-dbid-6dfb4e50-19c2-4bf5-9f2e-226aa7449540")}catch{}})();function X(a){return o.jsx("svg",{viewBox:"0 0 20 20",width:"24",height:"24","aria-hidden":!0,...a,children:o.jsx("path",{fill:"#f48221",d:"M10 0a10 10 0 1 1 0 20 10 10 0 0 1 0-20Zm0 2a8 8 0 1 0 0 16 8 8 0 0 0 0-16Zm0 11a1 1 0 1 1 0 2 1 1 0 0 1 0-2Zm0-8a1 1 0 0 1 1 1v5a1 1 0 1 1-2 0V6a1 1 0 0 1 1-1Z"})})}function j(a,i){return(a+i-1n)/i}function B(a,i,s){return a<=0||i<=0?0n:a>=i?s:j(s*BigInt(a),BigInt(i))}function q(a){var m,f,u;const i=Number.isFinite(a.priceCents)?Math.max(0,Math.trunc(a.priceCents)):0,s=Number.isFinite(a.balanceCents)?Math.max(0,Math.trunc(a.balanceCents)):0,l=a.priceManaWei>0n?a.priceManaWei:0n,d=a.manaBalanceWei>0n?a.manaBalanceWei:0n;if(i<=0)return{options:[],preferred:null,manaShortfall:null};const c=[];s>=i&&c.push({method:"credits",creditsCents:i,credits:T(i),manaWei:0n});const n=w(s)*z;if(l>0n&&n>0&&n<i){const h=i-n,b=B(h,i,l);d>=b&&c.push({method:"combined",creditsCents:n,credits:w(n),manaWei:b})}a.manaOnlyRail!==!1&&l>0n&&d>=l&&c.push({method:"mana",creditsCents:0,credits:0,manaWei:l});const $=((m=c.find(h=>h.method==="credits"))==null?void 0:m.method)??((f=c.find(h=>h.method==="combined"))==null?void 0:f.method)??((u=c.find(h=>h.method==="mana"))==null?void 0:u.method)??null,C=!c.some(h=>h.method==="mana"||h.method==="combined")&&l>0n&&d>0n?{manaWei:d,manaCents:P(d,i,l),priceCents:i}:null;return{options:c,preferred:$,manaShortfall:C}}function P(a,i,s){return Number(a*BigInt(i)/s)}function K(a,i){let s=Number.isFinite(i)?Math.max(0,Math.trunc(i)):0;return a.map(l=>{const d=Number.isFinite(l)?Math.max(0,Math.trunc(l)):0,c=Math.min(d,s);return s-=c,c})}function J(a,i){return a.options.find(s=>s.method===i)??null}const I="https://cdn.decentraland.org/@dcl/shop/1.17.1/_assets/pack-coin-BUDCtZgt.webp",{colors:t,gradients:g,radius:y,z:E}=r,Q=e.div`
1
+ import{j as o}from"./react-Ddn-9d83.js";import{V as T,bH as w,bI as z,a as r,s as e,z as x,au as W,I as A,t as v,F as p}from"./index-BBS-v8LD.js";(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},i=new a.Error().stack;i&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[i]="4d18791e-3f6b-4451-aff3-42921b51c4d3",a._sentryDebugIdIdentifier="sentry-dbid-4d18791e-3f6b-4451-aff3-42921b51c4d3")}catch{}})();function X(a){return o.jsx("svg",{viewBox:"0 0 20 20",width:"24",height:"24","aria-hidden":!0,...a,children:o.jsx("path",{fill:"#f48221",d:"M10 0a10 10 0 1 1 0 20 10 10 0 0 1 0-20Zm0 2a8 8 0 1 0 0 16 8 8 0 0 0 0-16Zm0 11a1 1 0 1 1 0 2 1 1 0 0 1 0-2Zm0-8a1 1 0 0 1 1 1v5a1 1 0 1 1-2 0V6a1 1 0 0 1 1-1Z"})})}function j(a,i){return(a+i-1n)/i}function B(a,i,s){return a<=0||i<=0?0n:a>=i?s:j(s*BigInt(a),BigInt(i))}function q(a){var m,f,u;const i=Number.isFinite(a.priceCents)?Math.max(0,Math.trunc(a.priceCents)):0,s=Number.isFinite(a.balanceCents)?Math.max(0,Math.trunc(a.balanceCents)):0,l=a.priceManaWei>0n?a.priceManaWei:0n,d=a.manaBalanceWei>0n?a.manaBalanceWei:0n;if(i<=0)return{options:[],preferred:null,manaShortfall:null};const c=[];s>=i&&c.push({method:"credits",creditsCents:i,credits:T(i),manaWei:0n});const n=w(s)*z;if(l>0n&&n>0&&n<i){const h=i-n,b=B(h,i,l);d>=b&&c.push({method:"combined",creditsCents:n,credits:w(n),manaWei:b})}a.manaOnlyRail!==!1&&l>0n&&d>=l&&c.push({method:"mana",creditsCents:0,credits:0,manaWei:l});const $=((m=c.find(h=>h.method==="credits"))==null?void 0:m.method)??((f=c.find(h=>h.method==="combined"))==null?void 0:f.method)??((u=c.find(h=>h.method==="mana"))==null?void 0:u.method)??null,C=!c.some(h=>h.method==="mana"||h.method==="combined")&&l>0n&&d>0n?{manaWei:d,manaCents:P(d,i,l),priceCents:i}:null;return{options:c,preferred:$,manaShortfall:C}}function P(a,i,s){return Number(a*BigInt(i)/s)}function K(a,i){let s=Number.isFinite(i)?Math.max(0,Math.trunc(i)):0;return a.map(l=>{const d=Number.isFinite(l)?Math.max(0,Math.trunc(l)):0,c=Math.min(d,s);return s-=c,c})}function J(a,i){return a.options.find(s=>s.method===i)??null}const I="https://cdn.decentraland.org/@dcl/shop/1.17.2-36157867735.commit-7431f7b/_assets/pack-coin-BUDCtZgt.webp",{colors:t,gradients:g,radius:y,z:E}=r,Q=e.div`
2
2
  position: fixed;
3
3
  inset: 0;
4
4
  z-index: ${E.overlay};
@@ -561,4 +561,4 @@ import{j as o}from"./react-57wE9FMW.js";import{V as T,bH as w,bI as z,a as r,s a
561
561
  gap: 24px 12px;
562
562
  }
563
563
  `;function Ie({packs:a,selectedId:i,onSelect:s,recommendedId:l}){const d=a.find(n=>n.id===i),c=l?G:k;return o.jsxs(o.Fragment,{children:[o.jsx(c,{"data-testid":"credit-packs",children:a.map(n=>o.jsxs(U,{type:"button","data-testid":"credit-pack","data-on":n.id===i||void 0,"aria-pressed":n.id===i,"aria-label":v("getCredits.packAria",{amount:p(n.credits),usd:n.usd}),onClick:()=>s(n.id),children:[n.id===l?o.jsxs(_,{"data-testid":"pack-recommended","aria-hidden":!0,children:[o.jsx(A,{name:"star-rounded"}),v("getCredits.packBadge")]}):null,o.jsx(R,{src:I,alt:""}),o.jsx(F,{children:p(n.credits)}),o.jsxs(S,{children:["($",n.usd.toFixed(2),")"]})]},n.id))}),o.jsxs(N,{children:[o.jsxs(L,{children:[o.jsx(D,{}),o.jsx("span",{"data-testid":"topup-total-credits",children:p((d==null?void 0:d.credits)??0)})]}),o.jsxs(H,{children:["$",((d==null?void 0:d.usd)??0).toFixed(2)]})]})]})}export{he as A,se as B,te as C,M as D,Be as E,Pe as F,ke as G,ae as H,J as I,$e as L,Q as M,We as P,ee as S,ne as T,be as W,oe as X,ie as a,re as b,de as c,le as d,ce as e,Ce as f,Te as g,ze as h,ye as i,O as j,Ae as k,je as l,X as m,we as n,ve as o,pe as p,xe as q,ge as r,me as s,fe as t,ue as u,Ie as v,q as w,K as x,B as y,k as z};
564
- //# sourceMappingURL=CreditPackPicker-Cf2WXrfD.js.map
564
+ //# sourceMappingURL=CreditPackPicker-yPm96IIv.js.map
@@ -1,4 +1,4 @@
1
- import{r as u,j as e}from"./react-57wE9FMW.js";import{a as i,s as a,aE as p,C,aF as g,t as r}from"./index-C0EB4Nb3.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},s=new t.Error().stack;s&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[s]="a515e556-19be-410c-a5e0-74cc8bee919d",t._sentryDebugIdIdentifier="sentry-dbid-a515e556-19be-410c-a5e0-74cc8bee919d")}catch{}})();function x({size:t=17,...s}){const n=`credit-mark-${u.useId()}`;return e.jsxs("svg",{viewBox:"0 0 16.9985 16.9985",width:t,height:t,fill:"none","aria-hidden":!0,focusable:"false",...s,children:[e.jsx("defs",{children:e.jsxs("linearGradient",{id:n,x1:"-0.513692",y1:"8.51179",x2:"29.4301",y2:"5.69069",gradientUnits:"userSpaceOnUse",children:[e.jsx("stop",{stopColor:i.colors.dclRed}),e.jsx("stop",{offset:"1",stopColor:i.colors.flareAmber})]})}),e.jsx("path",{d:"M11.866 0.605075L16.4734 5.29355L16.4148 11.8658L11.7253 16.4742L5.15405 16.4156L0.545653 11.7271L0.604247 5.1539L5.29175 0.546481L11.866 0.605075Z",fill:`url(#${n})`,stroke:`url(#${n})`,strokeWidth:"1.04738"}),e.jsx("path",{d:"M9.14405 10.9365C9.51965 10.9365 9.87384 10.8794 10.2067 10.7653C10.5395 10.6512 10.7938 10.5371 10.9697 10.423L11.4975 11.4749L12.0252 12.5268C11.8017 12.717 11.4166 12.9095 10.8699 13.1045C10.3279 13.2994 9.68605 13.3969 8.94437 13.3969C8.25023 13.3969 7.59651 13.2756 6.98319 13.0332C6.36988 12.7907 5.82551 12.4507 5.35007 12.0133C4.87939 11.5759 4.51093 11.0625 4.24468 10.4729C3.97844 9.87864 3.84532 9.23205 3.84532 8.53316C3.84532 7.83427 3.97844 7.18767 4.24468 6.59338C4.51093 5.99433 4.87939 5.4761 5.35007 5.0387C5.82075 4.59655 6.36275 4.25423 6.97606 4.01176C7.59413 3.76453 8.25023 3.64092 8.94437 3.64092C9.68605 3.64092 10.3279 3.73838 10.8699 3.93331C11.4166 4.12824 11.8017 4.32079 12.0252 4.51097L10.9697 6.61477C10.7938 6.50067 10.5395 6.38656 10.2067 6.27246C9.87384 6.15835 9.51965 6.1013 9.14405 6.1013C8.67812 6.1013 8.27876 6.17024 7.94595 6.30812C7.6179 6.44599 7.34928 6.63141 7.14009 6.86438C6.9309 7.09734 6.77638 7.35645 6.67654 7.64171C6.58145 7.92698 6.53391 8.21699 6.53391 8.51176C6.53391 8.81129 6.58145 9.10606 6.67654 9.39607C6.77638 9.68133 6.9309 9.94045 7.14009 10.1734C7.34928 10.4064 7.6179 10.5918 7.94595 10.7297C8.27876 10.8675 8.67812 10.9365 9.14405 10.9365Z",fill:i.colors.white})]})}const{colors:o,font:j}=i,w=a.p`
1
+ import{r as u,j as e}from"./react-Ddn-9d83.js";import{a as n,s as i,aH as p,C,aI as g,t as r}from"./index-BBS-v8LD.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},s=new t.Error().stack;s&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[s]="b764a9fe-0c57-4352-a028-57270ad9137a",t._sentryDebugIdIdentifier="sentry-dbid-b764a9fe-0c57-4352-a028-57270ad9137a")}catch{}})();function x({size:t=17,...s}){const a=`credit-mark-${u.useId()}`;return e.jsxs("svg",{viewBox:"0 0 16.9985 16.9985",width:t,height:t,fill:"none","aria-hidden":!0,focusable:"false",...s,children:[e.jsx("defs",{children:e.jsxs("linearGradient",{id:a,x1:"-0.513692",y1:"8.51179",x2:"29.4301",y2:"5.69069",gradientUnits:"userSpaceOnUse",children:[e.jsx("stop",{stopColor:n.colors.dclRed}),e.jsx("stop",{offset:"1",stopColor:n.colors.flareAmber})]})}),e.jsx("path",{d:"M11.866 0.605075L16.4734 5.29355L16.4148 11.8658L11.7253 16.4742L5.15405 16.4156L0.545653 11.7271L0.604247 5.1539L5.29175 0.546481L11.866 0.605075Z",fill:`url(#${a})`,stroke:`url(#${a})`,strokeWidth:"1.04738"}),e.jsx("path",{d:"M9.14405 10.9365C9.51965 10.9365 9.87384 10.8794 10.2067 10.7653C10.5395 10.6512 10.7938 10.5371 10.9697 10.423L11.4975 11.4749L12.0252 12.5268C11.8017 12.717 11.4166 12.9095 10.8699 13.1045C10.3279 13.2994 9.68605 13.3969 8.94437 13.3969C8.25023 13.3969 7.59651 13.2756 6.98319 13.0332C6.36988 12.7907 5.82551 12.4507 5.35007 12.0133C4.87939 11.5759 4.51093 11.0625 4.24468 10.4729C3.97844 9.87864 3.84532 9.23205 3.84532 8.53316C3.84532 7.83427 3.97844 7.18767 4.24468 6.59338C4.51093 5.99433 4.87939 5.4761 5.35007 5.0387C5.82075 4.59655 6.36275 4.25423 6.97606 4.01176C7.59413 3.76453 8.25023 3.64092 8.94437 3.64092C9.68605 3.64092 10.3279 3.73838 10.8699 3.93331C11.4166 4.12824 11.8017 4.32079 12.0252 4.51097L10.9697 6.61477C10.7938 6.50067 10.5395 6.38656 10.2067 6.27246C9.87384 6.15835 9.51965 6.1013 9.14405 6.1013C8.67812 6.1013 8.27876 6.17024 7.94595 6.30812C7.6179 6.44599 7.34928 6.63141 7.14009 6.86438C6.9309 7.09734 6.77638 7.35645 6.67654 7.64171C6.58145 7.92698 6.53391 8.21699 6.53391 8.51176C6.53391 8.81129 6.58145 9.10606 6.67654 9.39607C6.77638 9.68133 6.9309 9.94045 7.14009 10.1734C7.34928 10.4064 7.6179 10.5918 7.94595 10.7297C8.27876 10.8675 8.67812 10.9365 9.14405 10.9365Z",fill:n.colors.white})]})}const{colors:o,font:j}=n,w=i.p`
2
2
  display: flex;
3
3
  align-items: center;
4
4
  gap: 4px;
@@ -18,11 +18,11 @@ import{r as u,j as e}from"./react-57wE9FMW.js";import{a as i,s as a,aE as p,C,aF
18
18
  &[data-tone='on-dark'] {
19
19
  color: ${o.white};
20
20
  }
21
- `,c=a.span`
21
+ `,c=i.span`
22
22
  font-weight: 600;
23
- `,h=a.span`
23
+ `,h=i.span`
24
24
  font-weight: 400;
25
- `,y=a.span`
25
+ `,y=i.span`
26
26
  font-size: 14px;
27
27
  font-weight: 600;
28
28
  line-height: 1.57;
@@ -31,5 +31,5 @@ import{r as u,j as e}from"./react-57wE9FMW.js";import{a as i,s as a,aE as p,C,aF
31
31
  [data-tone='on-dark'] & {
32
32
  color: inherit;
33
33
  }
34
- `;function L({align:t,tone:s,className:n}){const d=p(C.nameSingular),l=g(1).toFixed(2),f=r("creditRate.usdLabel");return e.jsxs(w,{className:n,"data-align":t,"data-tone":s,"data-testid":"credit-rate","aria-label":r("creditRate.aria",{unit:d,usd:l}),children:[e.jsx(x,{}),e.jsxs("span",{children:[e.jsx(c,{children:"1"})," ",e.jsx(h,{children:d})]}),e.jsx(y,{"aria-hidden":!0,children:r("creditRate.equals")}),e.jsxs("span",{children:[e.jsx(h,{children:f})," ",e.jsx(c,{children:l})]})]})}export{L as C};
35
- //# sourceMappingURL=CreditRate-DjCL9hVD.js.map
34
+ `;function L({align:t,tone:s,className:a}){const d=p(C.nameSingular),l=g(1).toFixed(2),f=r("creditRate.usdLabel");return e.jsxs(w,{className:a,"data-align":t,"data-tone":s,"data-testid":"credit-rate","aria-label":r("creditRate.aria",{unit:d,usd:l}),children:[e.jsx(x,{}),e.jsxs("span",{children:[e.jsx(c,{children:"1"})," ",e.jsx(h,{children:d})]}),e.jsx(y,{"aria-hidden":!0,children:r("creditRate.equals")}),e.jsxs("span",{children:[e.jsx(h,{children:f})," ",e.jsx(c,{children:l})]})]})}export{L as C};
35
+ //# sourceMappingURL=CreditRate-BxqKLfaA.js.map
@@ -1,4 +1,4 @@
1
- import{g as I}from"./react-57wE9FMW.js";import{r as H}from"./index-BhhO1oEp.js";import{r as M}from"./dcl-schemas-BgQanFex.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},f=new o.Error().stack;f&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[f]="95840eba-4c70-4c16-b7ed-3eed2bbebe7c",o._sentryDebugIdIdentifier="sentry-dbid-95840eba-4c70-4c16-b7ed-3eed2bbebe7c")}catch{}})();function O(o,f){for(var b=0;b<f.length;b++){const h=f[b];if(typeof h!="string"&&!Array.isArray(h)){for(const w in h)if(w!=="default"&&!(w in o)){const g=Object.getOwnPropertyDescriptor(h,w);g&&Object.defineProperty(o,w,g.get?g:{enumerable:!0,get:()=>h[w]})}}}return Object.freeze(Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}))}var y={},F;function C(){if(F)return y;F=1,Object.defineProperty(y,"__esModule",{value:!0}),y.getHashesByKey=y.buildEntityWithoutNewFiles=y.buildEntity=y.buildEntityAndFile=void 0;const o=H(),f=M();async function b({type:n,pointers:t,timestamp:e,content:a,metadata:r}){var i;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:a,metadata:r};if(a){const s=new Set;for(const p of a){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 c=new TextEncoder().encode(JSON.stringify(d)),l={id:await(0,o.hashV1)(c),...d};if(!f.Entity.validate(l))throw new Error(`Generated entity is not valid:
1
+ import{g as I}from"./react-Ddn-9d83.js";import{r as H}from"./index-B8kJyL6G.js";import{r as M}from"./dcl-schemas-BW3BbT5l.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},f=new o.Error().stack;f&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[f]="95840eba-4c70-4c16-b7ed-3eed2bbebe7c",o._sentryDebugIdIdentifier="sentry-dbid-95840eba-4c70-4c16-b7ed-3eed2bbebe7c")}catch{}})();function O(o,f){for(var b=0;b<f.length;b++){const h=f[b];if(typeof h!="string"&&!Array.isArray(h)){for(const w in h)if(w!=="default"&&!(w in o)){const g=Object.getOwnPropertyDescriptor(h,w);g&&Object.defineProperty(o,w,g.get?g:{enumerable:!0,get:()=>h[w]})}}}return Object.freeze(Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}))}var y={},F;function C(){if(F)return y;F=1,Object.defineProperty(y,"__esModule",{value:!0}),y.getHashesByKey=y.buildEntityWithoutNewFiles=y.buildEntity=y.buildEntityAndFile=void 0;const o=H(),f=M();async function b({type:n,pointers:t,timestamp:e,content:a,metadata:r}){var i;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:a,metadata:r};if(a){const s=new Set;for(const p of a){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 c=new TextEncoder().encode(JSON.stringify(d)),l={id:await(0,o.hashV1)(c),...d};if(!f.Entity.validate(l))throw new Error(`Generated entity is not valid:
2
2
  `+((i=f.Entity.validate.errors)===null||i===void 0?void 0:i.map(s=>s.message).join(`
3
3
  `)));return{entity:l,entityFile:c}}y.buildEntityAndFile=b;async function h({type:n,pointers:t,files:e,metadata:a,timestamp:r}){const i=Array.from(e||[]).map(([l,s])=>({key:l,content:s})),d=await Promise.all(i.map(async({key:l,content:s})=>({key:l,content:s,hash:await(0,o.hashV1)(s)}))),c=new Map(d.map(({hash:l,key:s})=>[s,l])),u=new Map(d.map(({hash:l,content:s})=>[l,s]));return g(n,t,{hashesByKey:c,filesByHash:u,metadata:a,timestamp:r})}y.buildEntity=h;async function w(n,{contentUrl:t,type:e,pointers:a,hashesByKey:r,metadata:i,timestamp:d}){const c=r??i?m(i):void 0;if(c&&D(e,c)){const u=await _(n,t,c),l=await A(u,i);return h({type:e,pointers:a,files:u,metadata:l,timestamp:d})}return g(e,a,{hashesByKey:r,metadata:i,timestamp:d})}y.buildEntityWithoutNewFiles=w;async function g(n,t,e){if(t.length===0)throw new Error("All entities must have at least one pointer.");const a=e!=null&&e.hashesByKey?e==null?void 0:e.hashesByKey:new Map,r=Array.from(a.entries()).map(([l,s])=>({file:l,hash:s})),i=e!=null&&e.timestamp?e==null?void 0:e.timestamp:Date.now(),{entity:d,entityFile:c}=await b({type:n,pointers:t,timestamp:i,content:r,metadata:e==null?void 0:e.metadata}),u=e!=null&&e.filesByHash?e.filesByHash:new Map;return u.set(d.id,c),{files:u,entityId:d.id}}function D(n,t){return n===f.EntityType.PROFILE&&Array.from(t).some(([,e])=>e.toLowerCase().startsWith("qm"))}async function v(n,t){const a=await(await n.fetch(t)).arrayBuffer();return new Uint8Array(a)}async function _(n,t,e){const a=e.get("body.png"),r=e.get("face256.png"),i=new URL(`${t}/contents/${a}`).toString(),d=new URL(`${t}/contents/${r}`).toString(),[c,u]=await Promise.all([v(n,i),v(n,d)]);return new Map([["body.png",c],["face256.png",u]])}async function A(n,t){return t&&(t.avatars=await Promise.all(t.avatars.map(async e=>{const a={face256:"",body:""},r=n.get("face256.png");r&&(a.face256=await(0,o.hashV1)(r));const i=n.get("body.png");return i&&(a.body=await(0,o.hashV1)(i)),e.avatar.snapshots=a,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 y.getHashesByKey=m,y}var B=C();const P=I(B),j=O({__proto__:null,default:P},[B]);export{j as D};
4
- //# sourceMappingURL=DeploymentBuilder-C3NqEfXH.js.map
4
+ //# sourceMappingURL=DeploymentBuilder-B2QubYgD.js.map
@@ -1,5 +1,5 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["_assets/index-DfOPi5vf.js","_assets/react-57wE9FMW.js","_assets/dcl-schemas-BgQanFex.js","_assets/index-C0EB4Nb3.js","_assets/sentry-C6Mao8WI.js","_assets/ethers-RdXTApYJ.js","_assets/intl-AKLEHPeO.js","_assets/index-DoXX6TgS.css","_assets/createSvgIcon-BKu0ThNd.js","_assets/emotion-styled.browser.esm-CFDaRZFq.js","_assets/styled-CCNK0K71.js","_assets/index-OhRAcbHT.js","_assets/useTheme-D3lC36b8.js"])))=>i.map(i=>d[i]);
2
- import{j as r,r as s}from"./react-57wE9FMW.js";import{_ as n,a as d,s as p}from"./index-C0EB4Nb3.js";import{E as u}from"./sentry-C6Mao8WI.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},o=new t.Error().stack;o&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[o]="8a4b1c3b-243a-4fa0-87ea-20b36e49096a",t._sentryDebugIdIdentifier="sentry-dbid-8a4b1c3b-243a-4fa0-87ea-20b36e49096a")}catch{}})();const l=s.lazy(async()=>{const[{EmoteControls:t},{Experimental_CssVarsProvider:o},{light:a}]=await Promise.all([n(()=>import("./index-DfOPi5vf.js").then(i=>i.i),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10])),n(()=>import("./index-OhRAcbHT.js"),__vite__mapDeps([11,3,1,2,4,5,6,7,12,10])),n(()=>import("./index-C0EB4Nb3.js").then(i=>i.e4),__vite__mapDeps([3,1,2,4,5,6,7]))]);return{default:i=>r.jsx(o,{theme:a,children:r.jsx(t,{...i})})}});function c(t){return r.jsx(u,{fallback:r.jsx(r.Fragment,{}),children:r.jsx(s.Suspense,{fallback:null,children:r.jsx(l,{...t})})})}const{colors:e,radius:b}=d,x=p.div`
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["_assets/index-CxOeCVBB.js","_assets/react-Ddn-9d83.js","_assets/dcl-schemas-BW3BbT5l.js","_assets/index-BBS-v8LD.js","_assets/sentry-D_8KijKQ.js","_assets/ethers-DGYWmyb1.js","_assets/intl-AKLEHPeO.js","_assets/index-qTkXqLEk.css","_assets/createSvgIcon-BUkltLfu.js","_assets/emotion-styled.browser.esm-B6eszsio.js","_assets/styled-CbzE9JXd.js","_assets/index-C7Le7sHG.js","_assets/useTheme-y50PSrCO.js"])))=>i.map(i=>d[i]);
2
+ import{j as r,r as s}from"./react-Ddn-9d83.js";import{_ as n,a as d,s as p}from"./index-BBS-v8LD.js";import{E as u}from"./sentry-D_8KijKQ.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},o=new t.Error().stack;o&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[o]="65e0f511-e4de-4e80-876e-6e25018bbeb6",t._sentryDebugIdIdentifier="sentry-dbid-65e0f511-e4de-4e80-876e-6e25018bbeb6")}catch{}})();const l=s.lazy(async()=>{const[{EmoteControls:t},{Experimental_CssVarsProvider:o},{light:a}]=await Promise.all([n(()=>import("./index-CxOeCVBB.js").then(i=>i.i),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10])),n(()=>import("./index-C7Le7sHG.js"),__vite__mapDeps([11,3,1,2,4,5,6,7,12,10])),n(()=>import("./index-BBS-v8LD.js").then(i=>i.e4),__vite__mapDeps([3,1,2,4,5,6,7]))]);return{default:i=>r.jsx(o,{theme:a,children:r.jsx(t,{...i})})}});function c(t){return r.jsx(u,{fallback:r.jsx(r.Fragment,{}),children:r.jsx(s.Suspense,{fallback:null,children:r.jsx(l,{...t})})})}const{colors:e,radius:b}=d,x=p.div`
3
3
  /* Doubled class: a preview panel may size its children greedily (ItemDetail's stretches every child to
4
4
  fill the stage), and the bar's own geometry has to win that whichever order the styles land in. */
5
5
  && {
@@ -118,4 +118,4 @@ import{j as r,r as s}from"./react-57wE9FMW.js";import{_ as n,a as d,s as p}from"
118
118
  outline-offset: 2px;
119
119
  }
120
120
  `;function f({previewId:t,testId:o="emote-controls"}){return r.jsx(x,{"data-preview-controls":!0,"data-testid":o,children:r.jsx(c,{wearablePreviewId:t,hideFrameInput:!0})})}export{f as E};
121
- //# sourceMappingURL=EmotePlaybackBar-Bq7TckV0.js.map
121
+ //# sourceMappingURL=EmotePlaybackBar-Cp9UGu_L.js.map
@@ -1,2 +1,2 @@
1
- import{j as n}from"./react-57wE9FMW.js";import{I as o}from"./index-C0EB4Nb3.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-DSZ4YOzl.js.map
1
+ import{j as n}from"./react-Ddn-9d83.js";import{I as o}from"./index-BBS-v8LD.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-D_6j8-7f.js.map
@@ -1,4 +1,4 @@
1
- import{j as a,b as u,r as g}from"./react-57wE9FMW.js";import{a as b,s as n,H as f,N as x,E as w,O as v,P as y,Q as j,R as C,S as k,U as I,t as s}from"./index-C0EB4Nb3.js";import{Assets as N}from"./Assets-D_dCmUv0.js";import"./dcl-schemas-BgQanFex.js";import"./sentry-C6Mao8WI.js";import"./ethers-RdXTApYJ.js";import"./intl-AKLEHPeO.js";import"./search-empty-B9EfPE1P.js";import"./Filters-COsCKlQM.js";import"./browseLayout.styles-D3u_lxUV.js";import"./Tooltip-DIRWGOxl.js";import"./skeleton.styles-Bvaum8jS.js";import"./LoadMore-D8gtSgyc.js";import"./useInfiniteGrid-CbPWAhDP.js";import"./ErrorNotice-DSZ4YOzl.js";import"./buy-gasless-ZiYiDzb-.js";import"./trade-encoding-BV1_7YxJ.js";import"./sendMetaTransaction-B7N-qRfh.js";import"./buy-MeE-N2le.js";import"./errors-TvhLJhmP.js";import"./CreditPackPicker-Cf2WXrfD.js";import"./loader-logo-ChNoWI1Z.js";import"./PaymentMethodStep-aQUg-E9d.js";import"./mana-matic-CEqvSwrJ.js";import"./resume-name-CVkpKZkm.js";import"./resume-buy-RWKNCH2I.js";import"./name-glyph-aUugT8vq.js";import"./crumbs.styles-IWrGqGTW.js";import"./grid.styles-D--qOwVq.js";(function(){try{var i=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new i.Error().stack;t&&(i._sentryDebugIds=i._sentryDebugIds||{},i._sentryDebugIds[t]="3d4aa394-6b5a-4c78-ac37-270f1734c4fb",i._sentryDebugIdIdentifier="sentry-dbid-3d4aa394-6b5a-4c78-ac37-270f1734c4fb")}catch{}})();const{colors:B,gradients:_,media:c,radius:l}=b,E=n.section`
1
+ import{j as a,b as u,r as g}from"./react-Ddn-9d83.js";import{a as b,s as n,H as f,N as x,E as w,O as v,P as y,Q as j,R as C,S as k,U as I,t as s}from"./index-BBS-v8LD.js";import{Assets as N}from"./Assets-COp5lo1c.js";import"./dcl-schemas-BW3BbT5l.js";import"./sentry-D_8KijKQ.js";import"./ethers-DGYWmyb1.js";import"./intl-AKLEHPeO.js";import"./search-empty-D1Tausth.js";import"./Filters-CdMOVmbU.js";import"./browseLayout.styles-DF9DTUfO.js";import"./Tooltip-DFrRznAp.js";import"./skeleton.styles-anODpKJf.js";import"./LoadMore-CM5ykem-.js";import"./useInfiniteGrid-C5wDaoVd.js";import"./ErrorNotice-D_6j8-7f.js";import"./buy-gasless-CTp90Dvn.js";import"./trade-encoding-BdtZmg5A.js";import"./sendMetaTransaction-DaTro9ph.js";import"./buy-BiTHthT9.js";import"./errors-DnOSpKoV.js";import"./CreditPackPicker-yPm96IIv.js";import"./loader-logo-k6aOBN-R.js";import"./PaymentMethodStep-Ob8YI_SL.js";import"./mana-matic-CEqvSwrJ.js";import"./resume-name-B5w3HYnd.js";import"./resume-buy-DqlXnoQq.js";import"./name-glyph-aUugT8vq.js";import"./crumbs.styles-R8odPxFR.js";import"./grid.styles-CVQcD_5t.js";(function(){try{var i=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new i.Error().stack;t&&(i._sentryDebugIds=i._sentryDebugIds||{},i._sentryDebugIds[t]="3d4aa394-6b5a-4c78-ac37-270f1734c4fb",i._sentryDebugIdIdentifier="sentry-dbid-3d4aa394-6b5a-4c78-ac37-270f1734c4fb")}catch{}})();const{colors:B,gradients:_,media:c,radius:l}=b,E=n.section`
2
2
  position: relative;
3
3
  display: flex;
4
4
  align-items: center;
@@ -69,4 +69,4 @@ import{j as a,b as u,r as g}from"./react-57wE9FMW.js";import{a as b,s as n,H as
69
69
  content: none;
70
70
  }
71
71
  `;function T({slot:i}){const t=x(i);return t?a.jsxs(E,{"data-testid":"campaign-banner",children:[a.jsxs("picture",{children:[a.jsx("source",{media:"(max-width: 768px)",srcSet:t.mobileImage}),a.jsx(P,{src:t.desktopImage,alt:"","aria-hidden":!0})]}),a.jsxs($,{children:[a.jsx(D,{"data-testid":"campaign-banner-title",children:t.title}),!w()&&t.cta?a.jsx(S,{as:"a",href:t.cta.href,variant:"purple","data-testid":"campaign-banner-cta",onClick:()=>v("Shop Clicked Banner",{slot:i,banner_id:t.bannerId,campaign:t.campaignName}),children:t.cta.label}):null]})]}):null}const z="marketplaceCampaignCollectiblesBanner";function pe(){const i=u(),t=y(h=>h.locale),{campaign:e,isPending:o}=j(),{contracts:d,isPending:p}=C((e==null?void 0:e.tags)??[],e==null?void 0:e.collections),r=!o&&!(e!=null&&e.mainTag);if(g.useEffect(()=>{r&&i("/items",{replace:!0})},[r,i]),o||p||r)return a.jsx("div",{className:"page-loading","aria-busy":"true",children:a.jsx("span",{className:"spinner","aria-hidden":!0})});const m=k(e==null?void 0:e.tabName,I(t))??(e==null?void 0:e.name)??"";return a.jsxs(a.Fragment,{children:[a.jsx(T,{slot:z}),a.jsx(N,{contracts:d,hideNames:!0,lockStatus:"on_sale",seo:{title:m||s("seo.collectibles.title"),description:s("seo.collectibles.description"),noindex:!0}})]})}export{pe as Event};
72
- //# sourceMappingURL=Event-D__OUwpc.js.map
72
+ //# sourceMappingURL=Event-v8GnBTyC.js.map
@@ -1,2 +1,2 @@
1
- import{C as p,E as h,b as f,S as E,d as k,O as U,N as A,g as b,B as x,e as N,i as I,p as _}from"./W3MFrameProviderSingleton-BWvDpNTL.js";import{g as L,a as D,f as P,b as v,c as T}from"./index-BDdcoEFU.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]="31af8d60-e68b-4b1b-8061-0ddfb121e8b0",t._sentryDebugIdIdentifier="sentry-dbid-31af8d60-e68b-4b1b-8061-0ddfb121e8b0")}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),d={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 d.getAssetsImageAndPrice(n),r=n.map(a=>{var c,o,m,l;const u=a.asset==="native"?b():`${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=(m=i==null?void 0:i.fungibles)==null?void 0:m[0])==null?void 0:l.iconUrl}}});return e.assets=r,r},async getAssetsImageAndPrice(t){const n=t.map(r=>r.asset==="native"?b():`${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=d.getTokenAmount())},setPaymentAsset(t){e.paymentAsset=t},isPayWithExchangeEnabled(){var t;return(t=U.state.remoteFeatures)==null?void 0:t.payWithExchange},isPayWithExchangeSupported(){return d.isPayWithExchangeEnabled()&&p.state.activeCaipNetwork&&k.PAY_WITH_EXCHANGE_SUPPORTED_CHAIN_NAMESPACES.includes(p.state.activeCaipNetwork.chainNamespace)},async fetchExchanges(){var t;try{const n=d.isPayWithExchangeSupported();if(!e.paymentAsset||!n){e.exchanges=[],e.isLoading=!1;return}e.isLoading=!0;const s=await v({page:W,asset:P(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:P(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=p.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 d.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 d.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)}),d.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 m=(r=p.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:m||"",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{d as E};
2
- //# sourceMappingURL=ExchangeController-BlkQV8ix.js.map
1
+ import{C as p,E as h,b as f,S as E,d as k,O as U,N as A,g as b,B as x,e as N,i as I,p as _}from"./W3MFrameProviderSingleton-C4KtItmg.js";import{g as L,a as D,f as P,b as v,c as T}from"./index-CzV7sMdy.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]="31af8d60-e68b-4b1b-8061-0ddfb121e8b0",t._sentryDebugIdIdentifier="sentry-dbid-31af8d60-e68b-4b1b-8061-0ddfb121e8b0")}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),d={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 d.getAssetsImageAndPrice(n),r=n.map(a=>{var c,o,m,l;const u=a.asset==="native"?b():`${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=(m=i==null?void 0:i.fungibles)==null?void 0:m[0])==null?void 0:l.iconUrl}}});return e.assets=r,r},async getAssetsImageAndPrice(t){const n=t.map(r=>r.asset==="native"?b():`${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=d.getTokenAmount())},setPaymentAsset(t){e.paymentAsset=t},isPayWithExchangeEnabled(){var t;return(t=U.state.remoteFeatures)==null?void 0:t.payWithExchange},isPayWithExchangeSupported(){return d.isPayWithExchangeEnabled()&&p.state.activeCaipNetwork&&k.PAY_WITH_EXCHANGE_SUPPORTED_CHAIN_NAMESPACES.includes(p.state.activeCaipNetwork.chainNamespace)},async fetchExchanges(){var t;try{const n=d.isPayWithExchangeSupported();if(!e.paymentAsset||!n){e.exchanges=[],e.isLoading=!1;return}e.isLoading=!0;const s=await v({page:W,asset:P(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:P(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=p.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 d.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 d.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)}),d.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 m=(r=p.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:m||"",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{d as E};
2
+ //# sourceMappingURL=ExchangeController-CE3cQOVu.js.map
@@ -1,4 +1,4 @@
1
- import{r as x,j as o}from"./react-57wE9FMW.js";import{a as e,s as a,t as h,I as w}from"./index-C0EB4Nb3.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]="c9e544c7-4eb0-4e9d-a320-4a04ca7182ca",i._sentryDebugIdIdentifier="sentry-dbid-c9e544c7-4eb0-4e9d-a320-4a04ca7182ca")}catch{}})();const m=a.section`
1
+ import{r as x,j as o}from"./react-Ddn-9d83.js";import{a as e,s as a,t as h,I as w}from"./index-BBS-v8LD.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]="c9e544c7-4eb0-4e9d-a320-4a04ca7182ca",i._sentryDebugIdIdentifier="sentry-dbid-c9e544c7-4eb0-4e9d-a320-4a04ca7182ca")}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-57wE9FMW.js";import{a as e,s as a,t 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-Daw98w_f.js.map
175
+ //# sourceMappingURL=Faq-Dfduj2eM.js.map