@dcl/shop 0.1.0-30125278234.commit-adf70a0 → 0.1.0-30133871697.commit-2ebb498

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 (245) hide show
  1. package/assets/Activity-gX01fOn1.js +284 -0
  2. package/assets/{AnimatedBackground-C4asfmBp.js → AnimatedBackground-BcZFP3Pq.js} +3 -3
  3. package/assets/{Assets-frWxb0q6.js → Assets-Dq1jEm1M.js} +8 -8
  4. package/assets/{Assets.styles-CZFOYXTx.js → Assets.styles-BjRnkieR.js} +12 -12
  5. package/assets/{Authorizations-DvBH6l8q.js → Authorizations-ST2Ksxu2.js} +3 -3
  6. package/assets/Button-B5fJsLQz.js +74 -0
  7. package/assets/{Cart-BkrPahai.js → Cart-Cm7Ro9Zg.js} +2 -2
  8. package/assets/{CircularProgress-DCoemPFo.js → CircularProgress-BOlrlIsy.js} +5 -5
  9. package/assets/{Collection-CzZjgNsX.js → Collection-CVnDwKTq.js} +4 -4
  10. package/assets/{CollectionCarousel-ClvGKLqt.js → CollectionCarousel-CrNhWA-o.js} +1 -1
  11. package/assets/{ConstantsUtil-DamObtDN.js → ConstantsUtil-DTrOBzCe.js} +1 -1
  12. package/assets/{ContentClient-JBAwNjZ1.js → ContentClient-d2M5HJPz.js} +1 -1
  13. package/assets/Creator-BJQdfcDy.js +1 -0
  14. package/assets/{DeploymentBuilder-Ch1YSyjd.js → DeploymentBuilder-BtFUGk_u.js} +1 -1
  15. package/assets/{ErrorNotice-Cmr8aXJs.js → ErrorNotice-BG40E5Ff.js} +1 -1
  16. package/assets/{ExchangeController-DZ7wdDtG.js → ExchangeController-BMLTvv35.js} +1 -1
  17. package/assets/{GetCredits-Dmj3nMx5.js → GetCredits-NwyjnfXT.js} +1 -1
  18. package/assets/{HelpersUtil-tPFGyPZ2.js → HelpersUtil-blirPsD-.js} +1 -1
  19. package/assets/{ImportListings-Cri7ncou.js → ImportListings-bh6vN4Da.js} +3 -3
  20. package/assets/ItemDetail-BMSsPEpH.js +1756 -0
  21. package/assets/{ItemDetail--8GO0Wno.css → ItemDetail-DSWLL-Uv.css} +1 -1
  22. package/assets/{LoadMore-B9Zuqtij.js → LoadMore-B-s5G0me.js} +1 -1
  23. package/assets/{MarketCheckout-CrbQ7y4e.js → MarketCheckout-B49jmgSp.js} +1 -1
  24. package/assets/MenuList-FlHFmpzz.js +9 -0
  25. package/assets/MyAssets-B1ayGmqi.js +258 -0
  26. package/assets/{MyFavorites-MFp7ahqz.js → MyFavorites-5fee_O_x.js} +1 -1
  27. package/assets/{NetworkUtil-xdrSr8Td.js → NetworkUtil-C1aEwuOK.js} +1 -1
  28. package/assets/{NotFound-D3pxFwki.js → NotFound-CrXtR1yD.js} +1 -1
  29. package/assets/NotificationsBell-C1ruQm-B.js +34 -0
  30. package/assets/{StoreSettings-CnuP-8R4.js → StoreSettings-hmXrDY12.js} +6 -6
  31. package/assets/{Success-va_BdkO1.js → Success-C9uPuvRL.js} +1 -1
  32. package/assets/{SwapController-KdcVlvqT.js → SwapController-7nCdO1U5.js} +1 -1
  33. package/assets/{Tooltip-B9pXWe2W.js → Tooltip-g1zVFNbN.js} +1 -1
  34. package/assets/{TradeService-DnLbUynz.js → TradeService-DDaxyeeY.js} +1 -1
  35. package/assets/{W3MFrameProviderSingleton-DGZYCbfs.js → W3MFrameProviderSingleton-CSS0v250.js} +3 -3
  36. package/assets/{WebCryptoP256-CoUvQA6y.js → WebCryptoP256-Dd-qNk1N.js} +1 -1
  37. package/assets/{authorizations-D4lP6DI7.js → authorizations-CfRBicRM.js} +1 -1
  38. package/assets/{basic-BW0iTE1T.js → basic-cXgzHrk4.js} +1 -1
  39. package/assets/{biconomy-BrutEgzZ.js → biconomy-BD95tc6J.js} +1 -1
  40. package/assets/{browser-EKOgZpqm.js → browser-CTzRZpIE.js} +1 -1
  41. package/assets/browser-ponyfill-6L1OGOLN.js +1 -0
  42. package/assets/{browser-ponyfill-sXwzu6Qj.js → browser-ponyfill-CI1-rMvf.js} +1 -1
  43. package/assets/{builder-BbrI-Q6S.js → builder-InlokaP6.js} +1 -1
  44. package/assets/{buy-DaXxFCKk.js → buy-BIt1DjVh.js} +1 -1
  45. package/assets/{buy-gasless-CT3LE5Hc.js → buy-gasless-DEhbR0zX.js} +1 -1
  46. package/assets/{cart-checkout-wR9inwiN.js → cart-checkout-DbfpnMCR.js} +1 -1
  47. package/assets/{categories-BBcwUmj-.js → categories-BhIJhSSv.js} +6 -6
  48. package/assets/{ccip-BeTCodof.js → ccip-Bv1a4Yma.js} +1 -1
  49. package/assets/{ccip-C0b9cPNt.js → ccip-Cw-8qrBn.js} +1 -1
  50. package/assets/{chains-Ce3mOHm7.js → chains-Znt1BTfw.js} +1 -1
  51. package/assets/collection-C81dinEb.js +1 -0
  52. package/assets/{common-D_VcNXlU.js → common-D9tSChDa.js} +1 -1
  53. package/assets/{controller-BafcOR-Y.js → controller-BylrM6_v.js} +2 -2
  54. package/assets/{core-Cp50o4vL.js → core-eHNalNm4.js} +4 -4
  55. package/assets/credits-product-vs4Q6u6l.svg +416 -0
  56. package/assets/{custom-B-EtZeYR.js → custom-_W6fFDpX.js} +1 -1
  57. package/assets/{data-capture-Cp1N3isQ.js → data-capture-BxdAy2sl.js} +1 -1
  58. package/assets/decimals-Bmvg-V50.js +1 -0
  59. package/assets/{decimals-DIRnQ_Ef.js → decimals-C4nLn1ac.js} +1 -1
  60. package/assets/{detectExtension-DBVDFtUM.js → detectExtension-BgMIFAUw.js} +1 -1
  61. package/assets/{email-D7bQ9z07.js → email-bZ6wRCkD.js} +1 -1
  62. package/assets/{embedded-wallet-UxwwHNoE.js → embedded-wallet-DbI0v7TE.js} +1 -1
  63. package/assets/emotion-styled.browser.esm-B91CdXZp.js +1 -0
  64. package/assets/{engine-DzxCE_m4.js → engine-B01gKfmv.js} +1 -1
  65. package/assets/{errors-CeiUaIPt.js → errors-CevO4-B_.js} +1 -1
  66. package/assets/estimate-l1-fee-V0nqca67.js +1 -0
  67. package/assets/eth_estimateGas-JYqF9U1i.js +1 -0
  68. package/assets/{eth_getStorageAt-C5DWgtYS.js → eth_getStorageAt--oQrWy0Q.js} +1 -1
  69. package/assets/eth_getTransactionCount-BEhAgz2O.js +1 -0
  70. package/assets/{ethereum-C11g7mpZ.js → ethereum-3zUUm4Pr.js} +1 -1
  71. package/assets/{ethers-BJDbBwOP.js → ethers-BcZhdsUx.js} +1 -1
  72. package/assets/{execute-DWT36Ldh.js → execute-CtC0aukb.js} +2 -2
  73. package/assets/{extractIPFS-CvNdY0iH.js → extractIPFS-BmriCqG8.js} +1 -1
  74. package/assets/{features-CJvcluY9.js → features-DobOb6a4.js} +1 -1
  75. package/assets/{fetchTokenMetadata-Cv_gvnaE.js → fetchTokenMetadata-BDfA4fxa.js} +2 -2
  76. package/assets/{fortmatic-bc1cz1bJ.js → fortmatic-DM_o40Lo.js} +1 -1
  77. package/assets/{get-bytecode-B9DXJUIQ.js → get-bytecode-C6TlbHJu.js} +1 -1
  78. package/assets/get-ecosystem-wallet-info-CRAxsX5A.js +1 -0
  79. package/assets/{getBalance-DlwrT-h2.js → getBalance-IhjxbhOH.js} +2 -2
  80. package/assets/{getInstalledModules-_oxiIuvc.js → getInstalledModules-BLQxYEXn.js} +1 -1
  81. package/assets/{getNFT-DXzsTK4F.js → getNFT-Cy_TLxNg.js} +2 -2
  82. package/assets/getNFT-D3q95MH5.js +1 -0
  83. package/assets/getThemeProps-DXO8GAe-.js +1 -0
  84. package/assets/{hashTypedData-DeLu7I4z.js → hashTypedData-0ex2klzG.js} +1 -1
  85. package/assets/{hashTypedData-D2upEOvu.js → hashTypedData-BvnMw7-W.js} +1 -1
  86. package/assets/{import-Db725Fno.js → import-DCJnhgeF.js} +1 -1
  87. package/assets/{in-app-CMux7hV2.js → in-app-d1EIziHl.js} +1 -1
  88. package/assets/{in-app-wallet-calls-DRhDzai2.js → in-app-wallet-calls-B_X-nI2j.js} +1 -1
  89. package/assets/{index-D9FvrKFv.js → index-2sUFrijZ.js} +1 -1
  90. package/assets/{index-D0OWrPxS.js → index-4QjFMRJM.js} +1 -1
  91. package/assets/{index-BH2TijWz.js → index-7wIrWeGQ.js} +1 -1
  92. package/assets/index-B6MKNzS8.js +1 -0
  93. package/assets/{index-D0UaCvc1.js → index-B6ScXjBU.js} +1 -1
  94. package/assets/{index-B1cb2lk3.js → index-BDd-bL6J.js} +2 -2
  95. package/assets/{index-CXG1aodo.js → index-BK8hpvmz.js} +2 -2
  96. package/assets/{index-DFZpvNqS.js → index-BKlRsJAx.js} +1 -1
  97. package/assets/{index-B-39GzWn.js → index-BMfvPaeE.js} +1 -1
  98. package/assets/{index-kt8TcRoZ.js → index-BNE2syyg.js} +1 -1
  99. package/assets/{index-MnLn_XNL.js → index-BVNUCwoW.js} +1 -1
  100. package/assets/{index-C_3MXGQ5.js → index-BVcRMh5p.js} +1 -1
  101. package/assets/{index-B4mY6GRp.js → index-BY4jMTMx.js} +1 -1
  102. package/assets/{index-DL1-u2m5.js → index-BZ6S4-Qy.js} +1 -1
  103. package/assets/{index-DJlH3Ia2.js → index-B_qqDPlw.js} +1 -1
  104. package/assets/{index-ClEro7Q5.js → index-BbpXvktu.js} +1 -1
  105. package/assets/{index-B4AwwuDa.js → index-Bg1ZNPTw.js} +1 -1
  106. package/assets/{index-D4XzBef-.js → index-Bs0gslDD.js} +1 -1
  107. package/assets/{index-B2fQFUWw.js → index-BvFAHBPw.js} +1 -1
  108. package/assets/{index-hcNbPnZC.js → index-BwV4V8ew.js} +1 -1
  109. package/assets/index-C1HJ4_9f.js +4 -0
  110. package/assets/{index-Bkyhu5p3.js → index-C1ObOz4r.js} +1 -1
  111. package/assets/index-C1iu8iFi.js +1 -0
  112. package/assets/{index-Blz-D4W8.js → index-C1kCjuW_.js} +1 -1
  113. package/assets/{index-BMTExHrL.js → index-CF75eDmC.js} +2 -2
  114. package/assets/{index-BLko3vp3.js → index-CFAO03Mm.js} +3 -3
  115. package/assets/{index-BJzW8r20.js → index-CGJaoBK1.js} +3 -3
  116. package/assets/{index-lzRVIl-M.js → index-CQ6Kx0mL.js} +1 -1
  117. package/assets/{index-C1J0uyJU.js → index-CSZuXP_O.js} +1 -1
  118. package/assets/{index-DUpU-LU7.js → index-CX5CK71g.js} +1 -1
  119. package/assets/{index-CBz9QBMp.js → index-CXYhDd_1.js} +1 -1
  120. package/assets/{index-D6CSZWWt.js → index-CfZU7JZ8.js} +1 -1
  121. package/assets/{index-CIq2Mr-q.js → index-CgvcHmR7.js} +1 -1
  122. package/assets/{index-DO5FoKwv.js → index-ChH5Jg4B.js} +2 -2
  123. package/assets/{index-cm1yskAO.js → index-CkWJ4sTo.js} +1 -1
  124. package/assets/{index-De87s4Hu.js → index-CqTyoGcx.js} +1 -1
  125. package/assets/{index-DZNyDMd4.js → index-CtKD8E50.js} +1 -1
  126. package/assets/{index-CRSyN87T.js → index-CvkS52F9.js} +1 -1
  127. package/assets/index-D3DtvRSj.css +1 -0
  128. package/assets/index-D3TOJ6mv.js +2 -0
  129. package/assets/{index-CogDYBWC.js → index-D7WOoyG2.js} +1 -1
  130. package/assets/{index-Ds8Kl-QD.js → index-DA95kUS1.js} +1 -1
  131. package/assets/{index-BWKpv3Ib.js → index-DAkVX2rn.js} +1 -1
  132. package/assets/{index-CnYHHGvp.js → index-DCy3UdsY.js} +1 -1
  133. package/assets/{index-B0F5lBNq.js → index-DD481f9l.js} +3 -3
  134. package/assets/{index-1OAWtSIo.js → index-DFo_ZRYH.js} +1 -1
  135. package/assets/{index-B15rCmR-.js → index-DHRIl4kO.js} +1 -1
  136. package/assets/{index-BJ8Gi1m8.js → index-DYFQOypb.js} +1 -1
  137. package/assets/{index-_rB6_4jA.js → index-DcRGF9AB.js} +1 -1
  138. package/assets/{index-CqMrh7xs.js → index-Dd36z0m0.js} +1 -1
  139. package/assets/{index-FfFqAJ3l.js → index-DfquOfhZ.js} +1 -1
  140. package/assets/{index-BKypSXDA.js → index-DiGXPxzb.js} +1 -1
  141. package/assets/{index-UfBgNnqN.js → index-Dk71d1Cj.js} +1 -1
  142. package/assets/{index-DWY_JsRv.js → index-DyEhiyex.js} +1 -1
  143. package/assets/{index-ClyupYZi.js → index-DyKUzG8Y.js} +1 -1
  144. package/assets/{index-iWnEQhnt.js → index-ZsWOupBf.js} +1 -1
  145. package/assets/{index-BCVDx6YZ.js → index-aAl_aW1H.js} +1 -1
  146. package/assets/{index-DlvARTF1.js → index-atL8DMAD.js} +1 -1
  147. package/assets/index-lia1DHpb.js +1 -0
  148. package/assets/{index-6lh7qxTo.js → index-lonwQF-A.js} +1 -1
  149. package/assets/{index-DsEcY3jS.js → index-m5R1RgvV.js} +1 -1
  150. package/assets/{index-CJ3RHlUk.js → index-nFVdOOJ4.js} +1 -1
  151. package/assets/index-s056mQ5V.js +312 -0
  152. package/assets/{index-BWHW-Ijx.js → index-zKsnnSgr.js} +1 -1
  153. package/assets/{index.es-CUE3sZWT.js → index.es-BdVIt87u.js} +1 -1
  154. package/assets/{index.es-DUC8Ubmb.js → index.es-DN16GURc.js} +1 -1
  155. package/assets/{index.es-DNoDCkCM.js → index.es-Df5aw0SC.js} +4 -4
  156. package/assets/{linkAccount-Dt1RoiMg.js → linkAccount-BR5_llhd.js} +1 -1
  157. package/assets/{localBatchGatewayRequest-C6rwpT4i.js → localBatchGatewayRequest-IqnQgBVr.js} +1 -1
  158. package/assets/{mana-rate-BOboY-ND.js → mana-rate-C7Xb6QOI.js} +1 -1
  159. package/assets/{native-8psXkTNV.js → native-BSpg_u0K.js} +1 -1
  160. package/assets/{networks-BVQD6B29.js → networks-DN2XAief.js} +1 -1
  161. package/assets/{onramp-DGE0QNAx.js → onramp-B19K6tdH.js} +1 -1
  162. package/assets/{openzeppelin-COSYvNLv.js → openzeppelin-DGZusii6.js} +1 -1
  163. package/assets/{ownerOf-CGV4XkwU.js → ownerOf-D9UDfElT.js} +1 -1
  164. package/assets/parseNft-DMGK6Taa.js +2 -0
  165. package/assets/{parseSignature-l4KN_1KG.js → parseSignature-BN4GI5Gq.js} +1 -1
  166. package/assets/{parseSignature-Brn7ACpg.js → parseSignature-Cp_SEN37.js} +3 -3
  167. package/assets/{passkeys-vAqek1rc.js → passkeys-D_kmBKbc.js} +1 -1
  168. package/assets/{pay-with-exchange-DcApCFJy.js → pay-with-exchange-BOHZzA4e.js} +1 -1
  169. package/assets/{prepare-contract-call-CWZtwOpY.js → prepare-contract-call-CHrp3EL4.js} +1 -1
  170. package/assets/{qr-overlay-mShPTwjh.js → qr-overlay-CxQ_5fgo.js} +3 -3
  171. package/assets/{react-BXazHbBy.js → react-BW1xvPTF.js} +1 -1
  172. package/assets/{receive-BPZNfYst.js → receive-DH_J_1l9.js} +1 -1
  173. package/assets/{resolveImplementation-DYWivI4J.js → resolveImplementation-D8Xd3SU4.js} +1 -1
  174. package/assets/{rpc-BFzw9im3.js → rpc-CLZOpWR4.js} +1 -1
  175. package/assets/{secp256k1-CRUmrrhH.js → secp256k1-BBSuqIwv.js} +1 -1
  176. package/assets/{secp256k1-CAc0JHKX.js → secp256k1-BJpXPJIB.js} +1 -1
  177. package/assets/{secp256k1-Bbp8p28v.js → secp256k1-Bt0GketY.js} +1 -1
  178. package/assets/{send-CMlqtrQq.js → send-BOh425tb.js} +1 -1
  179. package/assets/{send-batch-transaction-Cs8S2GjR.js → send-batch-transaction-DONfz9fC.js} +1 -1
  180. package/assets/{send-eip712-transaction-C1MUQ5gS.js → send-eip712-transaction-C-ftAsHC.js} +2 -2
  181. package/assets/send-gasless-transaction-DvIC4XMf.js +2 -0
  182. package/assets/{send-transaction-DNT4n_Jc.js → send-transaction-4Pzr9Is4.js} +2 -2
  183. package/assets/{sendRawTransaction-FMPWvhss.js → sendRawTransaction-Beep3a_c.js} +3 -3
  184. package/assets/{sentry-CLqlZ0dX.js → sentry-BV_ZSgtd.js} +1 -1
  185. package/assets/{serializeTransaction-D-0LZKF6.js → serializeTransaction-DSKyq4zg.js} +1 -1
  186. package/assets/{session-proposal-BUN1_u81.js → session-proposal-EjRZl42C.js} +1 -1
  187. package/assets/{session-request-Lkx6MYJN.js → session-request-Bu1VWYTD.js} +2 -2
  188. package/assets/{sha256-CHkDhyAO.js → sha256-BImz_UXn.js} +1 -1
  189. package/assets/{signing-BoMaLGo4.js → signing-BzQX0vi3.js} +3 -3
  190. package/assets/{socials-J4UTBukS.js → socials-Dl4vkgvy.js} +1 -1
  191. package/assets/{swaps-BTbmRgAZ.js → swaps-B1fxMUbG.js} +1 -1
  192. package/assets/{thirdweb-XCQC4aEe.js → thirdweb-D8mff26M.js} +3 -3
  193. package/assets/{to-serializable-transaction-KtwwMhnf.js → to-serializable-transaction-D0Ot62NY.js} +2 -2
  194. package/assets/{totalSupply-D7o26vFv.js → totalSupply-D4j1WOYW.js} +1 -1
  195. package/assets/{trade-encoding-DtVtrf_O.js → trade-encoding-C87iaBkc.js} +1 -1
  196. package/assets/{transaction-B7gL56RA.js → transaction-BOS1fhp8.js} +1 -1
  197. package/assets/{transactionReceipt-3TpFqkCS.js → transactionReceipt-CsXKmeJS.js} +1 -1
  198. package/assets/{transactions-KkYoSnxM.js → transactions-EPT_g3Bm.js} +1 -1
  199. package/assets/{useCreditPacks-CGB9Gf8t.js → useCreditPacks-19hJrzxg.js} +1 -1
  200. package/assets/{useInfiniteGrid-Caz5a8E-.js → useInfiniteGrid-DzWtFyHK.js} +1 -1
  201. package/assets/useManaRate-rTAxqnrj.js +1 -0
  202. package/assets/{useStore-B9CJkB8I.js → useStore-B63Yqu_R.js} +2 -2
  203. package/assets/useTheme-PoMzVS0s.js +1 -0
  204. package/assets/{utils-CPrJV6vP.js → utils-B7rjkjB1.js} +1 -1
  205. package/assets/{verifyHash-Cp0UXDDb.js → verifyHash-BEO4ZrCQ.js} +1 -1
  206. package/assets/{w3m-modal-B4tatdGk.js → w3m-modal-ClmixmsH.js} +1 -1
  207. package/assets/{w3m-modal-DHnD2Joe.js → w3m-modal-rFWYtees.js} +1 -1
  208. package/assets/{wait-for-tx-receipt-CjLd8WSx.js → wait-for-tx-receipt-B8_pgfcA.js} +1 -1
  209. package/assets/{wallets-CtUo_Eev.js → wallets-Dm-solJh.js} +5 -5
  210. package/assets/{web-connector-B1tivkWG.js → web-connector-DBjxfQt_.js} +3 -3
  211. package/assets/{writeContract-jhEzjtAD.js → writeContract-CrX86u2O.js} +1 -1
  212. package/assets/{zora-sepolia-DQJtwyvj.js → zora-sepolia-CVS3owSi.js} +1 -1
  213. package/assets/{zoraTestnet-DqDgEKV9.js → zoraTestnet-AwQWrKOY.js} +1 -1
  214. package/index.html +11 -11
  215. package/package.json +2 -2
  216. package/assets/Activity-CjNdQrnx.js +0 -244
  217. package/assets/Creator-CDSeY6Ca.js +0 -1
  218. package/assets/CssVarsProvider-C-B4OgsF.js +0 -24
  219. package/assets/ItemDetail-C747Uk_F.js +0 -1437
  220. package/assets/MyAssets-VbsC1OVk.js +0 -258
  221. package/assets/PrimaryListModal-Cbk9hPFy.js +0 -320
  222. package/assets/browser-ponyfill-CjkfloA2.js +0 -1
  223. package/assets/collection-CyZezOym.js +0 -1
  224. package/assets/colors-LINLm1ux.js +0 -1
  225. package/assets/decimals-Br2WcHKo.js +0 -1
  226. package/assets/emotion-styled.browser.esm-CNmTfQzp.js +0 -1
  227. package/assets/estimate-l1-fee-DKIbGJ6T.js +0 -1
  228. package/assets/eth_estimateGas-DhEvfMK1.js +0 -1
  229. package/assets/eth_getTransactionCount-CYnx77q9.js +0 -1
  230. package/assets/get-ecosystem-wallet-info-DTTDAASG.js +0 -1
  231. package/assets/getNFT-CVF9W0Wp.js +0 -1
  232. package/assets/getOverlayAlpha-M7snSV8y.js +0 -1
  233. package/assets/index-B-GW8Cic.js +0 -1
  234. package/assets/index-C8h0w08x.js +0 -1
  235. package/assets/index-CUtMWqIp.css +0 -1
  236. package/assets/index-Cdibp_-_.js +0 -289
  237. package/assets/index-DT_CtUSa.js +0 -1
  238. package/assets/index-DiExiOFF.js +0 -2
  239. package/assets/index-G_sqwNjz.js +0 -74
  240. package/assets/index-p18vC6cx.js +0 -12
  241. package/assets/parseNft-DVxgCach.js +0 -2
  242. package/assets/send-gasless-transaction-Bb5T9ZKG.js +0 -2
  243. package/assets/useManaRate-CsaGILE6.js +0 -1
  244. package/assets/useTheme-Dld0k17D.js +0 -1
  245. package/assets/useTheme-DvbTGBAZ.js +0 -1
@@ -0,0 +1,284 @@
1
+ import{r as g,j as e,L as S,e as J}from"./react-BW1xvPTF.js";import{s as o,J as a,O as V,B as Y,m as tt,t as c,u as et,I as h,az as it,aA as st,aB as nt,C as f,o as M,ai as D,aC as at,aD as rt}from"./index-s056mQ5V.js";import{a as ot}from"./mana-rate-C7Xb6QOI.js";import{u as ct}from"./useManaRate-rTAxqnrj.js";import{L as dt}from"./LoadMore-B-s5G0me.js";import{u as x}from"./useInfiniteGrid-DzWtFyHK.js";import"./sentry-BV_ZSgtd.js";import"./dcl-schemas-BICTSpB5.js";import"./ethers-BcZhdsUx.js";import"./intl-CBcMB1D2.js";import"./index-HN6Rk25C.js";const lt=15e3;function ut(t,i){return t.txHash&&i.txHash?t.txHash===i.txHash:t.txHash||i.txHash?!1:t.status===i.status&&Math.abs(t.createdAt-i.createdAt)<=lt}function pt(t){const i=[...t].sort((s,r)=>r.createdAt-s.createdAt),d=[];for(const s of i){const r=d[d.length-1];r&&ut(r[r.length-1],s)?r.push(s):d.push([s])}return d.map(s=>{var r;return{id:((r=s.find(n=>n.txHash))==null?void 0:r.txHash)??s[s.length-1].id,createdAt:Math.max(...s.map(n=>n.createdAt)),status:s.some(n=>n.status==="PENDING")?"PENDING":"SETTLED",totalCredits:s.reduce((n,l)=>n+l.credits,0),lines:s}})}function ht(t){const i=[],d=new Map;for(const s of t)if(s.tradeId){const r=d.get(s.tradeId);if(r){r.quantity+=1,r.credits+=s.credits;continue}const n={key:s.tradeId,tradeId:s.tradeId,quantity:1,credits:s.credits};d.set(s.tradeId,n),i.push(n)}else i.push({key:s.id,tradeId:null,quantity:1,credits:s.credits});return i}function xt(t,i){return{id:t.id,contractAddress:t.contractAddress,tokenId:t.tokenId,itemId:t.itemId,counterparty:t.buyer,credits:i?ot(t.manaWei,i):null,manaWei:t.manaWei,createdAt:t.createdAt}}function mt(t){const d=pt(t.purchases.filter(n=>n.status!=="EXPIRED")).map(n=>({kind:"purchase",id:`purchase:${n.id}`,createdAt:n.createdAt,order:n})),s=t.sales.map(n=>{const l=xt(n,t.rate);return{kind:"sale",id:`sale:${l.id}`,createdAt:l.createdAt,sale:l}}),r=(t.creditOrders??[]).filter(n=>n.status!=="EXPIRED").map(n=>({kind:"credit",id:`credit:${n.id}`,createdAt:n.createdAt,order:n}));return[...d,...s,...r].sort((n,l)=>l.createdAt-n.createdAt||(n.id<l.id?-1:1))}function gt(t,i){return i==="all"?t:i==="sales"?t.filter(d=>d.kind==="sale"):t.filter(d=>d.kind==="purchase"||d.kind==="credit")}const ft="https://cdn.decentraland.org/@dcl/shop/0.1.0-30133871697.commit-2ebb498/assets/credits-product-vs4Q6u6l.svg",yt="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M12%200L24%2012L12%2024L0%2012L12%200ZM12.0002%203.36001L20.6402%2012L12.0002%2020.64L3.36023%2012L12.0002%203.36001ZM12.0009%2016.32C14.3868%2016.32%2016.3209%2014.3859%2016.3209%2012C16.3209%209.61415%2014.3868%207.68002%2012.0009%207.68002C9.61507%207.68002%207.68094%209.61415%207.68094%2012C7.68094%2014.3859%209.61507%2016.32%2012.0009%2016.32Z'%20fill='%2316141A'/%3e%3c/svg%3e",y=V`
2
+ 0% { background-position: 200% 0; }
3
+ 100% { background-position: -200% 0; }
4
+ `,bt=o.section`
5
+ width: 100%;
6
+ min-width: 0;
7
+ min-height: 60vh;
8
+ `,jt=o.div`
9
+ display: flex;
10
+ align-items: baseline;
11
+ gap: 12px;
12
+ margin-bottom: 20px;
13
+ `,vt=o.h1`
14
+ font-family: ${a.font.sans};
15
+ margin: 0;
16
+ `;o.span`
17
+ color: ${a.colors.muted};
18
+ font-size: 14px;
19
+ `;const kt=o.div`
20
+ display: flex;
21
+ gap: 8px;
22
+ margin-bottom: 20px;
23
+ flex-wrap: wrap;
24
+ `,wt=o.button`
25
+ appearance: none;
26
+ border: 1px solid ${a.colors.line};
27
+ background: ${a.colors.white};
28
+ color: ${a.colors.text};
29
+ font-family: ${a.font.sans};
30
+ font-size: 14px;
31
+ font-weight: 600;
32
+ padding: 8px 16px;
33
+ min-height: 40px;
34
+ border-radius: ${a.radius.pill};
35
+ cursor: pointer;
36
+ transition:
37
+ background 0.15s,
38
+ border-color 0.15s,
39
+ color 0.15s;
40
+
41
+ &:hover {
42
+ background: ${a.colors.media};
43
+ }
44
+ &:focus-visible {
45
+ outline: 2px solid ${a.colors.accent};
46
+ outline-offset: 2px;
47
+ }
48
+ &[data-active='true'] {
49
+ background: ${a.colors.accent};
50
+ border-color: ${a.colors.accent};
51
+ color: ${a.colors.white};
52
+ }
53
+ `,C=o.div`
54
+ display: flex;
55
+ flex-direction: column;
56
+ gap: 16px;
57
+ max-width: 760px;
58
+ `,b=o.div`
59
+ background: ${a.colors.white};
60
+ border: 1px solid ${a.colors.line};
61
+ border-radius: 16px;
62
+ overflow: hidden;
63
+ `,j=o.div`
64
+ display: flex;
65
+ align-items: center;
66
+ justify-content: space-between;
67
+ gap: 12px;
68
+ padding: 14px 18px;
69
+ background: ${a.colors.softWhite};
70
+ border-bottom: 1px solid ${a.colors.line};
71
+
72
+ ${a.media.down("mobile")} {
73
+ flex-wrap: wrap;
74
+ }
75
+ `,v=o.div`
76
+ display: flex;
77
+ flex-direction: column;
78
+ gap: 2px;
79
+ min-width: 0;
80
+ `,k=o.span`
81
+ font-weight: 700;
82
+ color: ${a.colors.text};
83
+ `,w=o.span`
84
+ font-size: 13px;
85
+ color: ${a.colors.muted};
86
+ `,$=o.div`
87
+ display: flex;
88
+ align-items: center;
89
+ gap: 14px;
90
+ /* Pin to the right regardless of how many elements sit on the left (the credit-purchase card adds a
91
+ leading thumbnail, giving the head three children instead of two). */
92
+ margin-left: auto;
93
+ `,$t=o.div`
94
+ flex: 0 0 auto;
95
+ width: 52px;
96
+ height: 52px;
97
+ border-radius: 10px;
98
+ background: ${a.colors.media};
99
+ display: flex;
100
+ align-items: center;
101
+ justify-content: center;
102
+
103
+ img {
104
+ width: 30px;
105
+ height: 30px;
106
+ display: block;
107
+ }
108
+ `,I=o.span`
109
+ font-size: 11px;
110
+ font-weight: 700;
111
+ text-transform: uppercase;
112
+ letter-spacing: 0.03em;
113
+ padding: 4px 10px;
114
+ border-radius: ${a.radius.pill};
115
+ white-space: nowrap;
116
+
117
+ &[data-status='SETTLED'] {
118
+ background: rgba(30, 166, 114, 0.14);
119
+ color: ${a.colors.okStrong};
120
+ }
121
+ &[data-status='PENDING'] {
122
+ background: rgba(245, 166, 35, 0.16);
123
+ color: #b5790a;
124
+ }
125
+ &[data-status='SOLD'] {
126
+ background: rgba(103, 58, 183, 0.14);
127
+ color: ${a.colors.accent};
128
+ }
129
+ `,L=o.div`
130
+ display: flex;
131
+ align-items: center;
132
+ gap: 5px;
133
+ font-weight: 800;
134
+ color: ${a.colors.text};
135
+ white-space: nowrap;
136
+
137
+ .ccy-mark {
138
+ width: 16px;
139
+ height: 16px;
140
+ }
141
+
142
+ // Money received (a sale) reads as income in the shop's success green.
143
+ &[data-kind='income'] {
144
+ color: ${a.colors.okStrong};
145
+ }
146
+ `,It=o.img`
147
+ width: 16px;
148
+ height: 16px;
149
+ vertical-align: -0.15em;
150
+ `,Lt=o.span`
151
+ display: inline-flex;
152
+ align-items: center;
153
+ cursor: pointer;
154
+ `,At=o.span`
155
+ position: fixed;
156
+ transform: translateX(-50%);
157
+ padding: 6px 8px;
158
+ border-radius: 6px;
159
+ background: #16141a;
160
+ color: #fff;
161
+ font-size: 12px;
162
+ font-weight: 600;
163
+ line-height: 1;
164
+ white-space: nowrap;
165
+ box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
166
+ pointer-events: none;
167
+ z-index: 9999;
168
+ `,F=o.div`
169
+ display: flex;
170
+ flex-direction: column;
171
+ `,A=o.div`
172
+ display: grid;
173
+ grid-template-columns: 52px 1fr auto;
174
+ align-items: center;
175
+ gap: 14px;
176
+ padding: 12px 18px;
177
+ text-decoration: none;
178
+ color: inherit;
179
+
180
+ & + & {
181
+ border-top: 1px solid ${a.colors.line};
182
+ }
183
+
184
+ &[data-link='true'] {
185
+ transition: background 0.15s;
186
+ }
187
+ &[data-link='true']:hover {
188
+ background: ${a.colors.media};
189
+ }
190
+ &[data-link='true']:focus-visible {
191
+ outline: 2px solid ${a.colors.accent};
192
+ outline-offset: -2px;
193
+ }
194
+ `,z=o.div`
195
+ width: 52px;
196
+ height: 52px;
197
+ border-radius: 10px;
198
+ background: ${a.colors.media};
199
+ overflow: hidden;
200
+ display: flex;
201
+ align-items: center;
202
+ justify-content: center;
203
+ color: ${a.colors.muted2};
204
+
205
+ img {
206
+ width: 100%;
207
+ height: 100%;
208
+ object-fit: contain;
209
+ }
210
+ `,O=o.div`
211
+ width: 52px;
212
+ height: 52px;
213
+ border-radius: 10px;
214
+ background: linear-gradient(100deg, ${a.colors.media} 30%, ${a.colors.panel} 50%, ${a.colors.media} 70%);
215
+ background-size: 200% 100%;
216
+ animation: ${y} 1.3s infinite linear;
217
+
218
+ @media (prefers-reduced-motion: reduce) {
219
+ animation: none;
220
+ }
221
+ `,H=o.div`
222
+ min-width: 0;
223
+ display: flex;
224
+ flex-direction: column;
225
+ gap: 2px;
226
+ `,q=o.span`
227
+ font-weight: 700;
228
+ white-space: nowrap;
229
+ overflow: hidden;
230
+ text-overflow: ellipsis;
231
+ `,B=o.span`
232
+ display: inline-block;
233
+ width: 140px;
234
+ max-width: 60%;
235
+ height: 12px;
236
+ border-radius: 6px;
237
+ background: linear-gradient(100deg, ${a.colors.media} 30%, ${a.colors.panel} 50%, ${a.colors.media} 70%);
238
+ background-size: 200% 100%;
239
+ animation: ${y} 1.3s infinite linear;
240
+
241
+ @media (prefers-reduced-motion: reduce) {
242
+ animation: none;
243
+ }
244
+ `,R=o.span`
245
+ font-size: 13px;
246
+ color: ${a.colors.muted};
247
+ `,Pt=o.div`
248
+ display: flex;
249
+ align-items: center;
250
+ gap: 4px;
251
+ font-weight: 700;
252
+ color: ${a.colors.text};
253
+ white-space: nowrap;
254
+
255
+ .ccy-mark {
256
+ width: 14px;
257
+ height: 14px;
258
+ }
259
+ `,T=o.div`
260
+ height: 132px;
261
+ border-radius: 16px;
262
+ border: 1px solid transparent;
263
+ background: linear-gradient(100deg, ${a.colors.media} 30%, ${a.colors.panel} 50%, ${a.colors.media} 70%);
264
+ background-size: 200% 100%;
265
+ animation: ${y} 1.3s infinite linear;
266
+
267
+ @media (prefers-reduced-motion: reduce) {
268
+ animation: none;
269
+ }
270
+ `,W=o.div`
271
+ display: flex;
272
+ flex-direction: column;
273
+ align-items: center;
274
+ gap: 8px;
275
+ text-align: center;
276
+ padding: 90px 20px;
277
+ min-height: 50vh;
278
+ `,G=o.p`
279
+ font-size: 22px;
280
+ font-weight: 700;
281
+ margin: 6px 0 0;
282
+ `,Nt=o(Y)`
283
+ margin-top: 12px;
284
+ `,U=A.withComponent(S),m=24,Et=["all","purchases","sales"];function P(t){try{return new Date(t).toLocaleDateString(void 0,{year:"numeric",month:"short",day:"numeric"})}catch{return""}}function Ct(t){return t.length>10?`${t.slice(0,6)}…${t.slice(-4)}`:t}function Tt(t){const i=Number(t)/1e18;return Number.isFinite(i)?i.toLocaleString("en",{maximumFractionDigits:2}):"0"}function St({children:t}){const i=g.useRef(null),[d,s]=g.useState(null),r=()=>{var l;const n=(l=i.current)==null?void 0:l.getBoundingClientRect();n&&s({top:n.bottom+8,left:n.left+n.width/2})};return e.jsxs(Lt,{ref:i,tabIndex:0,onMouseEnter:r,onMouseLeave:()=>s(null),onFocus:r,onBlur:()=>s(null),children:[t,d?J.createPortal(e.jsx(At,{style:{top:d.top,left:d.left},role:"tooltip",children:c("activity.polygonMana")}),document.body):null]})}function Mt({item:t}){const{data:i,isLoading:d}=M({queryKey:["trade-display",t.tradeId],queryFn:()=>at(t.tradeId),enabled:!!t.tradeId,staleTime:3e5}),s=!!t.tradeId&&d,r=(i==null?void 0:i.name)??c("activity.itemFallback"),n=(i==null?void 0:i.thumbnail)??"",l=D({contractAddress:i==null?void 0:i.contractAddress,tokenId:i==null?void 0:i.tokenId,itemId:i==null?void 0:i.itemId})??void 0,p=e.jsxs(e.Fragment,{children:[s?e.jsx(O,{}):e.jsx(z,{children:n?e.jsx("img",{src:n,alt:r}):e.jsx(h,{name:"cart",size:20})}),e.jsxs(H,{children:[s?e.jsx(B,{}):e.jsx(q,{title:r,children:r}),t.quantity>1?e.jsx(R,{children:c("activity.quantity",{count:t.quantity})}):null]}),e.jsxs(Pt,{children:[e.jsx(f,{className:"ccy-mark"})," ",t.credits]})]});return l?e.jsx(U,{to:l,"data-link":"true",children:p}):e.jsx(A,{children:p})}function Dt({order:t}){const i=ht(t.lines),d=i.reduce((s,r)=>s+r.quantity,0);return e.jsxs(b,{"data-testid":"purchase-order",children:[e.jsxs(j,{children:[e.jsxs(v,{children:[e.jsx(k,{children:P(t.createdAt)}),e.jsxs(w,{children:[c("activity.purchaseLabel")," · ",c("activity.itemCount",{count:d})]})]}),e.jsxs($,{children:[e.jsx(I,{"data-status":t.status,children:t.status==="PENDING"?c("activity.processing"):c("activity.completed")}),e.jsxs(L,{children:[e.jsx(f,{className:"ccy-mark"})," ",t.totalCredits]})]})]}),e.jsx(F,{children:i.map(s=>e.jsx(Mt,{item:s},s.key))})]})}function Ft({sale:t}){const{data:i,isLoading:d}=M({queryKey:["asset-display",t.contractAddress,t.tokenId,t.itemId],queryFn:()=>rt(t.contractAddress,{tokenId:t.tokenId,itemId:t.itemId}),enabled:!!t.contractAddress,staleTime:3e5}),s=(i==null?void 0:i.name)??c("activity.itemFallback"),r=(i==null?void 0:i.thumbnail)??"",n=D({contractAddress:t.contractAddress,tokenId:t.tokenId,itemId:t.itemId})??void 0,l=e.jsxs(e.Fragment,{children:[d?e.jsx(O,{}):e.jsx(z,{children:r?e.jsx("img",{src:r,alt:s}):e.jsx(h,{name:"offer",size:20})}),e.jsxs(H,{children:[d?e.jsx(B,{}):e.jsx(q,{title:s,children:s}),e.jsx(R,{children:c("activity.soldTo",{account:Ct(t.counterparty)})})]})]});return e.jsxs(b,{"data-testid":"activity-sale",children:[e.jsxs(j,{children:[e.jsxs(v,{children:[e.jsx(k,{children:P(t.createdAt)}),e.jsx(w,{children:c("activity.saleLabel")})]}),e.jsxs($,{children:[e.jsx(I,{"data-status":"SOLD",children:c("activity.sold")}),e.jsxs(L,{"data-kind":"income",children:["+",Tt(t.manaWei)," ",e.jsx(St,{children:e.jsx(It,{src:yt,alt:"MANA"})})]})]})]}),e.jsx(F,{children:n?e.jsx(U,{to:n,"data-link":"true",children:l}):e.jsx(A,{children:l})})]})}function zt({order:t}){const i=`$${(t.usdCents/100).toFixed(2)}`;return e.jsx(b,{"data-testid":"credit-order",children:e.jsxs(j,{children:[e.jsx($t,{children:e.jsx("img",{src:ft,alt:"","aria-hidden":!0})}),e.jsxs(v,{children:[e.jsx(k,{children:P(t.createdAt)}),e.jsxs(w,{children:[c("activity.creditPurchaseLabel")," · ",c("activity.creditPaid",{usd:i})]})]}),e.jsxs($,{children:[e.jsx(I,{"data-status":t.status,children:t.status==="PENDING"?c("activity.processing"):c("activity.completed")}),e.jsxs(L,{"data-kind":"income",children:["+",e.jsx(f,{className:"ccy-mark"})," ",t.credits]})]})]})})}function Ot({filter:t}){const i={all:{icon:"clock",title:c("activity.emptyAllTitle"),body:c("activity.emptyAllBody")},purchases:{icon:"cart",title:c("activity.emptyPurchasesTitle"),body:c("activity.emptyPurchasesBody")},sales:{icon:"offer",title:c("activity.emptySalesTitle"),body:c("activity.emptySalesBody")}}[t];return e.jsxs(W,{children:[e.jsx(h,{name:i.icon,size:40,color:"var(--muted-2)"}),e.jsx(G,{children:i.title}),e.jsx("p",{className:"muted",children:i.body}),t!=="sales"?e.jsx(Nt,{as:S,to:"/assets",variant:"purple",children:c("notFound.cta")}):null]})}function Qt(){tt({title:c("nav.activity"),noindex:!0});const{session:t}=et(),[i,d]=g.useState("all"),s=!!t&&i!=="sales",r=!!t&&i!=="purchases",n=x(["purchases",t==null?void 0:t.address],u=>nt(t.address,t.identity,{first:m,skip:u}),{enabled:s}),l=x(["sales",t==null?void 0:t.address],u=>st(t.address,{role:"seller",first:m,skip:u}),{enabled:r}),p=x(["credit-orders",t==null?void 0:t.address],u=>it(t.address,t.identity,{first:m,skip:u}),{enabled:s}),{data:Z}=ct(r);if(!t)return e.jsxs(W,{children:[e.jsx(h,{name:"clock",size:40,color:"var(--muted-2)"}),e.jsx(G,{children:c("activity.signInTitle")}),e.jsx("p",{className:"muted",children:c("activity.signInBody")})]});const N=gt(mt({purchases:s?n.items:[],sales:r?l.items:[],creditOrders:s?p.items:[],rate:Z}),i),_=s&&(n.isLoading||p.isLoading)||r&&l.isLoading,E=s&&(n.isFetchingNextPage||p.isFetchingNextPage)||r&&l.isFetchingNextPage,X=s&&(n.hasNextPage||p.hasNextPage)||r&&l.hasNextPage;function K(){s&&n.hasNextPage&&n.fetchNextPage(),s&&p.hasNextPage&&p.fetchNextPage(),r&&l.hasNextPage&&l.fetchNextPage()}return e.jsxs(bt,{children:[e.jsx(jt,{children:e.jsx(vt,{children:c("nav.activity")})}),e.jsx(kt,{role:"tablist","aria-label":c("nav.activity"),children:Et.map(u=>e.jsx(wt,{type:"button",role:"tab","aria-selected":i===u,"data-active":i===u,"data-testid":`activity-filter-${u}`,onClick:()=>d(u),children:c(`activity.filter.${u}`)},u))}),_?e.jsx(C,{children:Array.from({length:5}).map((u,Q)=>e.jsx(T,{},Q))}):N.length===0?e.jsx(Ot,{filter:i}):e.jsxs(e.Fragment,{children:[e.jsxs(C,{children:[N.map(u=>u.kind==="purchase"?e.jsx(Dt,{order:u.order},u.id):u.kind==="credit"?e.jsx(zt,{order:u.order},u.id):e.jsx(Ft,{sale:u.sale},u.id)),E?e.jsx(T,{}):null]}),e.jsx(dt,{hasNextPage:X,isFetching:E,onLoadMore:K})]})]})}export{Qt as Activity};
@@ -1,11 +1,11 @@
1
- import{r as l,j as v}from"./react-BXazHbBy.js";const w="https://cdn.decentraland.org/@dcl/shop/0.1.0-30125278234.commit-adf70a0/assets/custom-welcome-background-BxlFQma9.webp",S="https://cdn.decentraland.org/@dcl/shop/0.1.0-30125278234.commit-adf70a0/assets/DCL_LogoPattern-BryBPc3d.png",U=`
1
+ import{r as l,j as v}from"./react-BW1xvPTF.js";const w="https://cdn.decentraland.org/@dcl/shop/0.1.0-30133871697.commit-2ebb498/assets/custom-welcome-background-BxlFQma9.webp",S="https://cdn.decentraland.org/@dcl/shop/0.1.0-30133871697.commit-2ebb498/assets/DCL_LogoPattern-BryBPc3d.png",b=`
2
2
  attribute vec2 a_position;
3
3
  varying vec2 v_uv;
4
4
  void main() {
5
5
  v_uv = a_position * 0.5 + 0.5;
6
6
  gl_Position = vec4(a_position, 0.0, 1.0);
7
7
  }
8
- `,b=`
8
+ `,U=`
9
9
  precision highp float;
10
10
 
11
11
  uniform float u_time;
@@ -77,4 +77,4 @@ void main() {
77
77
 
78
78
  gl_FragColor = result;
79
79
  }
80
- `;function g(t,a,r){const e=t.createShader(a);return e?(t.shaderSource(e,r),t.compileShader(e),t.getShaderParameter(e,t.COMPILE_STATUS)?e:(console.error("Shader compile error:",t.getShaderInfoLog(e)),t.deleteShader(e),null)):null}function P(t,a,r){const e=t.createProgram();return e?(t.attachShader(e,a),t.attachShader(e,r),t.linkProgram(e),t.getProgramParameter(e,t.LINK_STATUS)?e:(console.error("Program link error:",t.getProgramInfoLog(e)),t.deleteProgram(e),null)):null}function D(t,a,r){const e=t.createTexture();if(!e)return null;t.bindTexture(t.TEXTURE_2D,e),t.texImage2D(t.TEXTURE_2D,0,t.RGBA,1,1,0,t.RGBA,t.UNSIGNED_BYTE,new Uint8Array([128,128,128,255]));const o=new Image;return o.crossOrigin="anonymous",o.onload=()=>{r!=null&&r()||(t.bindTexture(t.TEXTURE_2D,e),t.pixelStorei(t.UNPACK_FLIP_Y_WEBGL,!0),t.texImage2D(t.TEXTURE_2D,0,t.RGBA,t.RGBA,t.UNSIGNED_BYTE,o),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_S,t.REPEAT),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_T,t.REPEAT),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,t.LINEAR_MIPMAP_LINEAR),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MAG_FILTER,t.LINEAR),t.generateMipmap(t.TEXTURE_2D))},o.src=a,e}function L(){const t=l.useRef(null),a=l.useRef(0);return l.useEffect(()=>{var h;const r=t.current;if(!r||(h=window.matchMedia)!=null&&h.call(window,"(prefers-reduced-motion: reduce)").matches)return;const e=r.getContext("webgl",{alpha:!1,antialias:!1});if(!e)return;const o=g(e,e.VERTEX_SHADER,U),c=g(e,e.FRAGMENT_SHADER,b);if(!o||!c){o&&e.deleteShader(o),c&&e.deleteShader(c);return}const n=P(e,o,c);if(!n){e.deleteShader(o),e.deleteShader(c);return}const u=e.getAttribLocation(n,"a_position"),_=e.getUniformLocation(n,"u_time"),R=e.getUniformLocation(n,"u_resolution"),y=e.getUniformLocation(n,"u_overlayTex"),s=e.createBuffer();e.bindBuffer(e.ARRAY_BUFFER,s),e.bufferData(e.ARRAY_BUFFER,new Float32Array([-1,-1,1,-1,-1,1,-1,1,1,-1,1,1]),e.STATIC_DRAW);let m=!1;const d=D(e,S,()=>m),A=()=>{const i=window.devicePixelRatio||1,x=r.clientWidth*i,E=r.clientHeight*i;(r.width!==x||r.height!==E)&&(r.width=x,r.height=E)},p=performance.now()/1e3,f=()=>{A(),e.viewport(0,0,r.width,r.height),e.useProgram(n),e.uniform1f(_,performance.now()/1e3-p),e.uniform2f(R,r.width,r.height),e.activeTexture(e.TEXTURE0),e.bindTexture(e.TEXTURE_2D,d),e.uniform1i(y,0),e.enableVertexAttribArray(u),e.bindBuffer(e.ARRAY_BUFFER,s),e.vertexAttribPointer(u,2,e.FLOAT,!1,0,0),e.drawArrays(e.TRIANGLES,0,6),a.current=requestAnimationFrame(f)},T=i=>{i.preventDefault(),cancelAnimationFrame(a.current),r.style.opacity="0"};return r.addEventListener("webglcontextlost",T,!1),a.current=requestAnimationFrame(f),()=>{m=!0,cancelAnimationFrame(a.current),r.removeEventListener("webglcontextlost",T),e.deleteProgram(n),e.deleteShader(o),e.deleteShader(c),e.deleteBuffer(s),e.deleteTexture(d)}},[]),v.jsxs("div",{className:"AnimatedBackground","aria-hidden":!0,children:[v.jsx("div",{className:"AnimatedBackground__fallback",style:{backgroundImage:`url(${w})`}}),v.jsx("canvas",{ref:t,className:"AnimatedBackground__canvas"})]})}export{L as default};
80
+ `;function g(t,a,r){const e=t.createShader(a);return e?(t.shaderSource(e,r),t.compileShader(e),t.getShaderParameter(e,t.COMPILE_STATUS)?e:(console.error("Shader compile error:",t.getShaderInfoLog(e)),t.deleteShader(e),null)):null}function P(t,a,r){const e=t.createProgram();return e?(t.attachShader(e,a),t.attachShader(e,r),t.linkProgram(e),t.getProgramParameter(e,t.LINK_STATUS)?e:(console.error("Program link error:",t.getProgramInfoLog(e)),t.deleteProgram(e),null)):null}function D(t,a,r){const e=t.createTexture();if(!e)return null;t.bindTexture(t.TEXTURE_2D,e),t.texImage2D(t.TEXTURE_2D,0,t.RGBA,1,1,0,t.RGBA,t.UNSIGNED_BYTE,new Uint8Array([128,128,128,255]));const o=new Image;return o.crossOrigin="anonymous",o.onload=()=>{r!=null&&r()||(t.bindTexture(t.TEXTURE_2D,e),t.pixelStorei(t.UNPACK_FLIP_Y_WEBGL,!0),t.texImage2D(t.TEXTURE_2D,0,t.RGBA,t.RGBA,t.UNSIGNED_BYTE,o),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_S,t.REPEAT),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_T,t.REPEAT),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,t.LINEAR_MIPMAP_LINEAR),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MAG_FILTER,t.LINEAR),t.generateMipmap(t.TEXTURE_2D))},o.src=a,e}function L(){const t=l.useRef(null),a=l.useRef(0);return l.useEffect(()=>{var h;const r=t.current;if(!r||(h=window.matchMedia)!=null&&h.call(window,"(prefers-reduced-motion: reduce)").matches)return;const e=r.getContext("webgl",{alpha:!1,antialias:!1});if(!e)return;const o=g(e,e.VERTEX_SHADER,b),c=g(e,e.FRAGMENT_SHADER,U);if(!o||!c){o&&e.deleteShader(o),c&&e.deleteShader(c);return}const n=P(e,o,c);if(!n){e.deleteShader(o),e.deleteShader(c);return}const u=e.getAttribLocation(n,"a_position"),_=e.getUniformLocation(n,"u_time"),R=e.getUniformLocation(n,"u_resolution"),y=e.getUniformLocation(n,"u_overlayTex"),s=e.createBuffer();e.bindBuffer(e.ARRAY_BUFFER,s),e.bufferData(e.ARRAY_BUFFER,new Float32Array([-1,-1,1,-1,-1,1,-1,1,1,-1,1,1]),e.STATIC_DRAW);let m=!1;const d=D(e,S,()=>m),A=()=>{const i=window.devicePixelRatio||1,x=r.clientWidth*i,E=r.clientHeight*i;(r.width!==x||r.height!==E)&&(r.width=x,r.height=E)},p=performance.now()/1e3,f=()=>{A(),e.viewport(0,0,r.width,r.height),e.useProgram(n),e.uniform1f(_,performance.now()/1e3-p),e.uniform2f(R,r.width,r.height),e.activeTexture(e.TEXTURE0),e.bindTexture(e.TEXTURE_2D,d),e.uniform1i(y,0),e.enableVertexAttribArray(u),e.bindBuffer(e.ARRAY_BUFFER,s),e.vertexAttribPointer(u,2,e.FLOAT,!1,0,0),e.drawArrays(e.TRIANGLES,0,6),a.current=requestAnimationFrame(f)},T=i=>{i.preventDefault(),cancelAnimationFrame(a.current),r.style.opacity="0"};return r.addEventListener("webglcontextlost",T,!1),a.current=requestAnimationFrame(f),()=>{m=!0,cancelAnimationFrame(a.current),r.removeEventListener("webglcontextlost",T),e.deleteProgram(n),e.deleteShader(o),e.deleteShader(c),e.deleteBuffer(s),e.deleteTexture(d)}},[]),v.jsxs("div",{className:"AnimatedBackground","aria-hidden":!0,children:[v.jsx("div",{className:"AnimatedBackground__fallback",style:{backgroundImage:`url(${w})`}}),v.jsx("canvas",{ref:t,className:"AnimatedBackground__canvas"})]})}export{L as default};
@@ -1,4 +1,4 @@
1
- import{u as Ze,r as p,j as e,b as Je}from"./react-BXazHbBy.js";import{p as H,h as Xe,c as Ye,r as et,s,G as t,u as oe,a as tt,b as Ne,y as _e,w as nt,t as o,I as N,C as F,d as he,j as D,k as st,l as ot,m as Ae,H as rt,A as Q,aD as it,aE as at}from"./index-Cdibp_-_.js";import{r as lt,m as ct,a as Pe}from"./mana-rate-BOboY-ND.js";import{u as Me}from"./useManaRate-CsaGILE6.js";import{g as dt,h as ft,i as pt,j as ut,k as xt,C as ht,l as mt,o as gt,m as bt,n as yt,M as wt}from"./Assets.styles-CZFOYXTx.js";import{d as me,R as vt,F as jt,S as ge,b as $t}from"./categories-BBcwUmj-.js";import{L as Ct}from"./LoadMore-B9Zuqtij.js";import{M as kt}from"./MarketCheckout-CrbQ7y4e.js";import{u as St}from"./useInfiniteGrid-Caz5a8E-.js";import{E as Rt}from"./ErrorNotice-Cmr8aXJs.js";import{d as Et}from"./dcl-schemas-BICTSpB5.js";import{u as It,G as Tt,w as zt,S as Nt}from"./buy-gasless-CT3LE5Hc.js";import{s as _t}from"./buy-DaXxFCKk.js";import{h as At}from"./trade-encoding-DtVtrf_O.js";import{f as Pt}from"./errors-CeiUaIPt.js";import{J as Mt,C as Lt,B as se}from"./ethers-BJDbBwOP.js";import{l as Bt}from"./loader-logo-BzY9EKdC.js";import{n as Ft}from"./emotion-CSxEP8yM.js";import"./sentry-CLqlZ0dX.js";import"./intl-CBcMB1D2.js";import"./index-HN6Rk25C.js";import"./Tooltip-B9pXWe2W.js";import"./authorizations-D4lP6DI7.js";import"./sendMetaTransaction-CiO3jI6F.js";function Z(n){const r=n.source??"item",f=n.tradeId||`${n.contractAddress}-${n.tokenId??n.itemId??""}`;return`${r}:${f}`}const W="100000000000000000000",Le=2,V=15,Ht=/^[a-zA-Z0-9]+$/;function be(n){const r=n.trim();return r.length===0?{ok:!1,reason:"empty"}:Ht.test(r)?r.length<Le?{ok:!1,reason:"too-short"}:r.length>V?{ok:!1,reason:"too-long"}:{ok:!0}:{ok:!1,reason:"invalid-chars"}}function Wt(n){return n.replace(/[^a-zA-Z0-9]/g,"").slice(0,V)}const Ot=["function available(string _subdomain) view returns (bool)"],ye={mainnet:{rpc:"https://rpc.decentraland.org/mainnet",address:"0x2a187453064356c898cae034eaed119e1663acb8"},sepolia:{rpc:"https://rpc.decentraland.org/sepolia",address:"0x7518456ae93eb98f3e64571b689c626616bb7f30"}};function Ut(){return H.chainId===Et.ChainId.MATIC_MAINNET?ye.mainnet:ye.sepolia}async function Gt(n,r={}){var d;const{rpc:f,address:u}=Ut(),h=new Mt(f),l=new Lt(u,Ot,h);console.info(`[names] availability check → DCLRegistrar(${u}).available("${n}") on ${f}`);const c=await l.available(n);if((d=r.signal)!=null&&d.aborted)throw new DOMException("Aborted","AbortError");return console.info(`[names] "${n}" available=${c}`),c?"available":"taken"}const qt="https://app.across.to/api";class Be extends Error{constructor(){super("Name registration is temporarily unavailable due to high network costs"),this.name="NameRouteCostTooHighError"}}function Dt(n){return ct(W,n)}async function Vt(n,r,f={}){var d;const u=f.chainId??H.chainId,h=f.provider??"across",l=`${H.creditsServerUrl}/credits-name-route?name=${encodeURIComponent(r)}&chainId=${u}&provider=${h}`,c=await et(l,{method:"GET",identity:n,metadata:{}});if(!c.ok){let a;try{a=(d=await c.json())==null?void 0:d.code}catch{}throw a==="ROUTE_COST_TOO_HIGH"?new Be:new Error(`fetchNameCreditRoute ${c.status}`)}return c.json()}function Kt(n,r){const f=se.from(n.availableAmount),h=se.from(W).sub(f);return{credits:[{value:n.amount,expiresAt:Number(n.expiresAt),salt:At(n.id)}],creditsSignatures:[n.signature],externalCall:{target:r.externalCall.target,selector:r.externalCall.selector,data:r.externalCall.data,expiresAt:r.externalCall.expiresAt,salt:r.externalCall.salt},customExternalCallSignature:r.customExternalCallSignature,maxUncreditedValue:h.isNegative()?"0":h.toString(),maxCreditedValue:W}}async function Qt(n,r={}){const f=qt,u=r.intervalMs??1e4,h=r.maxAttempts??60;let l={status:"pending",destinationTxHash:null,actionsSucceeded:!1};for(let c=0;c<h;c++){try{const d=await fetch(`${f}/deposit/status?originChainId=137&depositTxHash=${n}`);if(d.ok){const a=await d.json(),x=(a.status??"pending").toLowerCase(),m=a.fillTx??a.fillTxnRef??null,w=a.actionsSucceeded!==!1;if(x==="filled")return{status:"filled",destinationTxHash:m,actionsSucceeded:w};if(x==="refunded"||x==="expired")return{status:x,destinationTxHash:null,actionsSucceeded:!1};l={status:"pending",destinationTxHash:m,actionsSucceeded:w}}}catch{}c<h-1&&await new Promise(d=>setTimeout(d,u))}return l}async function Zt(n){const{name:r,identity:f,signer:u}=n,h=n.chainId??H.chainId,l=n.provider??"across",c=(n.beneficiary??await u.getAddress()).toLowerCase();let d=null,a=!1;console.info("[names] register start",{name:r,buyer:c,chainId:h,provider:l});try{const x=await lt(h),m=Dt(x);console.info("[names] step 1/6 sized reservation",{usdCents:m,manaRate:x});const w=await Vt(f,r,{chainId:h,provider:l});console.info("[names] step 2/6 route fetched",{target:w.externalCall.target,selector:w.externalCall.selector,provider:w.provider,quoteId:w.quoteId});const j=await Xe(f,m);if(d=j.credit.id,console.info("[names] step 3/6 credit authorized",{creditId:j.credit.id,maxCreditedValue:j.maxCreditedValue}),se.from(j.maxCreditedValue).lt(W))throw new Error("Credit under-sized for the name price");const k=Kt(j.credit,w);let g;try{g=await It({chainId:h,buyer:c,signer:u,args:k})}catch(y){if(!(y instanceof Tt))throw y;g=await _t(h,k,u)}if(console.info("[names] step 4/6 useCredits submitted (Polygon origin tx)",{originTxHash:g}),await zt(g),a=!0,console.info("[names] step 5/6 origin tx confirmed",{originTxHash:g}),l==="across"){const y=await Qt(g,n.acrossPoll);if(console.info("[names] step 6/6 across status",y),y.status==="pending")return{status:"pending",originTxHash:g};if(y.status!=="filled"||!y.actionsSucceeded)throw new Error("The name could not be registered on Ethereum; your funds were recovered.");return{status:"registered",originTxHash:g,destinationTxHash:y.destinationTxHash}}return{status:"pending",originTxHash:g}}catch(x){if(console.error("[names] register failed — raw error:",x,{name:r,buyer:c,originConfirmed:a}),x instanceof Nt)return{status:"pending",originTxHash:x.txHash};throw d&&!a&&await Ye(f,[d]).catch(()=>{}),x instanceof Be?x:new Error(Pt(x,"Couldn't register the name. Please try again.",{sale:!0}))}}const Jt=s.div`
1
+ import{u as Je,r as p,j as e,b as Ze}from"./react-BW1xvPTF.js";import{p as W,h as Xe,c as Ye,r as et,s,J as t,u as oe,a as tt,b as Ne,y as _e,w as nt,t as o,I as N,C as F,d as he,j as D,k as st,l as ot,m as Ae,K as rt,A as Q,aE as it,aF as at}from"./index-s056mQ5V.js";import{r as lt,m as ct,a as Pe}from"./mana-rate-C7Xb6QOI.js";import{u as Me}from"./useManaRate-rTAxqnrj.js";import{g as dt,h as ft,i as pt,j as ut,k as xt,C as ht,l as mt,o as gt,m as bt,n as yt,M as wt}from"./Assets.styles-BjRnkieR.js";import{d as me,R as vt,F as jt,S as ge,b as $t}from"./categories-BhIJhSSv.js";import{L as Ct}from"./LoadMore-B-s5G0me.js";import{M as kt}from"./MarketCheckout-B49jmgSp.js";import{u as St}from"./useInfiniteGrid-DzWtFyHK.js";import{E as Rt}from"./ErrorNotice-BG40E5Ff.js";import{d as Et}from"./dcl-schemas-BICTSpB5.js";import{u as It,G as Tt,w as zt,S as Nt}from"./buy-gasless-DEhbR0zX.js";import{s as _t}from"./buy-BIt1DjVh.js";import{i as At}from"./trade-encoding-C87iaBkc.js";import{f as Pt}from"./errors-CevO4-B_.js";import{J as Mt,C as Lt,B as se}from"./ethers-BcZhdsUx.js";import{l as Bt}from"./loader-logo-BzY9EKdC.js";import{n as Ft}from"./emotion-CSxEP8yM.js";import"./sentry-BV_ZSgtd.js";import"./intl-CBcMB1D2.js";import"./index-HN6Rk25C.js";import"./Tooltip-g1zVFNbN.js";import"./authorizations-CfRBicRM.js";import"./sendMetaTransaction-CiO3jI6F.js";function J(n){const r=n.source??"item",f=n.tradeId||`${n.contractAddress}-${n.tokenId??n.itemId??""}`;return`${r}:${f}`}const H="100000000000000000000",Le=2,V=15,Wt=/^[a-zA-Z0-9]+$/;function be(n){const r=n.trim();return r.length===0?{ok:!1,reason:"empty"}:Wt.test(r)?r.length<Le?{ok:!1,reason:"too-short"}:r.length>V?{ok:!1,reason:"too-long"}:{ok:!0}:{ok:!1,reason:"invalid-chars"}}function Ht(n){return n.replace(/[^a-zA-Z0-9]/g,"").slice(0,V)}const Ot=["function available(string _subdomain) view returns (bool)"],ye={mainnet:{rpc:"https://rpc.decentraland.org/mainnet",address:"0x2a187453064356c898cae034eaed119e1663acb8"},sepolia:{rpc:"https://rpc.decentraland.org/sepolia",address:"0x7518456ae93eb98f3e64571b689c626616bb7f30"}};function Ut(){return W.chainId===Et.ChainId.MATIC_MAINNET?ye.mainnet:ye.sepolia}async function qt(n,r={}){var d;const{rpc:f,address:u}=Ut(),h=new Mt(f),l=new Lt(u,Ot,h);console.info(`[names] availability check → DCLRegistrar(${u}).available("${n}") on ${f}`);const c=await l.available(n);if((d=r.signal)!=null&&d.aborted)throw new DOMException("Aborted","AbortError");return console.info(`[names] "${n}" available=${c}`),c?"available":"taken"}const Gt="https://app.across.to/api";class Be extends Error{constructor(){super("Name registration is temporarily unavailable due to high network costs"),this.name="NameRouteCostTooHighError"}}function Dt(n){return ct(H,n)}async function Vt(n,r,f={}){var d;const u=f.chainId??W.chainId,h=f.provider??"across",l=`${W.creditsServerUrl}/credits-name-route?name=${encodeURIComponent(r)}&chainId=${u}&provider=${h}`,c=await et(l,{method:"GET",identity:n,metadata:{}});if(!c.ok){let a;try{a=(d=await c.json())==null?void 0:d.code}catch{}throw a==="ROUTE_COST_TOO_HIGH"?new Be:new Error(`fetchNameCreditRoute ${c.status}`)}return c.json()}function Kt(n,r){const f=se.from(n.availableAmount),h=se.from(H).sub(f);return{credits:[{value:n.amount,expiresAt:Number(n.expiresAt),salt:At(n.id)}],creditsSignatures:[n.signature],externalCall:{target:r.externalCall.target,selector:r.externalCall.selector,data:r.externalCall.data,expiresAt:r.externalCall.expiresAt,salt:r.externalCall.salt},customExternalCallSignature:r.customExternalCallSignature,maxUncreditedValue:h.isNegative()?"0":h.toString(),maxCreditedValue:H}}async function Qt(n,r={}){const f=Gt,u=r.intervalMs??1e4,h=r.maxAttempts??60;let l={status:"pending",destinationTxHash:null,actionsSucceeded:!1};for(let c=0;c<h;c++){try{const d=await fetch(`${f}/deposit/status?originChainId=137&depositTxHash=${n}`);if(d.ok){const a=await d.json(),x=(a.status??"pending").toLowerCase(),m=a.fillTx??a.fillTxnRef??null,w=a.actionsSucceeded!==!1;if(x==="filled")return{status:"filled",destinationTxHash:m,actionsSucceeded:w};if(x==="refunded"||x==="expired")return{status:x,destinationTxHash:null,actionsSucceeded:!1};l={status:"pending",destinationTxHash:m,actionsSucceeded:w}}}catch{}c<h-1&&await new Promise(d=>setTimeout(d,u))}return l}async function Jt(n){const{name:r,identity:f,signer:u}=n,h=n.chainId??W.chainId,l=n.provider??"across",c=(n.beneficiary??await u.getAddress()).toLowerCase();let d=null,a=!1;console.info("[names] register start",{name:r,buyer:c,chainId:h,provider:l});try{const x=await lt(h),m=Dt(x);console.info("[names] step 1/6 sized reservation",{usdCents:m,manaRate:x});const w=await Vt(f,r,{chainId:h,provider:l});console.info("[names] step 2/6 route fetched",{target:w.externalCall.target,selector:w.externalCall.selector,provider:w.provider,quoteId:w.quoteId});const j=await Xe(f,m);if(d=j.credit.id,console.info("[names] step 3/6 credit authorized",{creditId:j.credit.id,maxCreditedValue:j.maxCreditedValue}),se.from(j.maxCreditedValue).lt(H))throw new Error("Credit under-sized for the name price");const k=Kt(j.credit,w);let g;try{g=await It({chainId:h,buyer:c,signer:u,args:k})}catch(y){if(!(y instanceof Tt))throw y;g=await _t(h,k,u)}if(console.info("[names] step 4/6 useCredits submitted (Polygon origin tx)",{originTxHash:g}),await zt(g),a=!0,console.info("[names] step 5/6 origin tx confirmed",{originTxHash:g}),l==="across"){const y=await Qt(g,n.acrossPoll);if(console.info("[names] step 6/6 across status",y),y.status==="pending")return{status:"pending",originTxHash:g};if(y.status!=="filled"||!y.actionsSucceeded)throw new Error("The name could not be registered on Ethereum; your funds were recovered.");return{status:"registered",originTxHash:g,destinationTxHash:y.destinationTxHash}}return{status:"pending",originTxHash:g}}catch(x){if(console.error("[names] register failed — raw error:",x,{name:r,buyer:c,originConfirmed:a}),x instanceof Nt)return{status:"pending",originTxHash:x.txHash};throw d&&!a&&await Ye(f,[d]).catch(()=>{}),x instanceof Be?x:new Error(Pt(x,"Couldn't register the name. Please try again.",{sale:!0}))}}const Zt=s.div`
2
2
  position: fixed;
3
3
  inset: 0;
4
4
  z-index: 10000;
@@ -366,7 +366,7 @@ import{u as Ze,r as p,j as e,b as Je}from"./react-BXazHbBy.js";import{p as H,h a
366
366
  flex: none;
367
367
  color: ${t.colors.dclRed};
368
368
  }
369
- `;function wn({name:n,priceCredits:r,onClose:f}){const{session:u}=oe(),{data:h,isError:l}=tt(u),c=Ne(),d=Ze(),[a,x]=p.useState("confirm"),[m,w]=p.useState(""),[j,k]=p.useState(null),g=p.useRef(!1),y=m.trim().toLowerCase()===n.toLowerCase(),v=a==="completing",S=r!=null?_e(r):"—";p.useEffect(()=>{const b=T=>{T.key==="Escape"&&!v&&f()};document.addEventListener("keydown",b);const _=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.removeEventListener("keydown",b),document.body.style.overflow=_}},[v,f]);async function C(){if(!(!u||!y||g.current)){g.current=!0,x("completing"),k(null);try{await Zt({name:n,identity:u.identity,signer:u.signer}),D("Shop Completed Purchase",{purchase_type:"name",is_primary:!0,payment_type:"credits",value_credits:r??null}),c.invalidateQueries({queryKey:["usd-balance"]}),c.invalidateQueries({queryKey:["my-assets"]}),x("success")}catch(b){D(ot(b)?"Shop Purchase Cancelled":"Shop Purchase Failed",{step:"submit",error_code:st(b),purchase_type:"name"}),k((b==null?void 0:b.message)||o("names.errorGeneric")),x("error")}finally{g.current=!1}}}const E=a!=="success",R=nt(u==null?void 0:u.providerType);return e.jsx(Jt,{onClick:v?void 0:f,role:"presentation",children:e.jsxs(Xt,{role:"dialog","aria-modal":"true","aria-label":o("names.buyTitle"),onClick:b=>b.stopPropagation(),children:[E&&e.jsxs(e.Fragment,{children:[e.jsxs(we,{children:[e.jsx(ve,{children:a==="error"?o("names.errorTitle"):o("names.buyTitle")}),e.jsx(je,{onClick:f,disabled:v,"aria-label":o("buyModal.close"),children:e.jsx(N,{name:"close"})})]}),e.jsxs($e,{children:[o("names.myCreditsBalance")," ",e.jsx(F,{})," ",he(h,l)]}),e.jsx(Ce,{})]}),(a==="confirm"||a==="error")&&e.jsxs(e.Fragment,{children:[e.jsxs(ke,{children:[e.jsx(Se,{"aria-hidden":!0,children:"@"}),e.jsxs(Re,{children:[e.jsxs(Ee,{children:[n,e.jsx("span",{children:".dcl.eth"})]}),e.jsx(Ie,{children:o("names.subtitle")})]}),e.jsxs(Te,{children:[e.jsx(F,{}),S]})]}),a==="error"?e.jsxs(e.Fragment,{children:[e.jsxs(yn,{children:[e.jsx(N,{name:"info","aria-hidden":!0}),e.jsx("span",{children:j})]}),e.jsx(ze,{onClick:()=>x("confirm"),children:o("names.tryAgain")})]}):e.jsxs(e.Fragment,{children:[e.jsxs(Yt,{children:[e.jsx(en,{children:o("names.confirmTitle")}),e.jsx(tn,{dangerouslySetInnerHTML:{__html:o("names.confirmBody",{name:`<b>@${vn(n)}</b>`})}}),e.jsxs(nn,{children:[e.jsx(sn,{"aria-hidden":!0,children:"@"}),e.jsx(on,{value:m,onChange:b=>w(b.target.value.replace(/[^a-zA-Z0-9]/g,"")),placeholder:"yourname","aria-label":o("names.reenterAria"),autoComplete:"off",spellCheck:!1,style:{width:`${Math.max(m.length,8)}ch`}}),e.jsx(rn,{children:".dcl.eth"})]})]}),e.jsx(ze,{onClick:()=>void C(),disabled:!y||!u,children:o("names.buyCta")})]})]}),a==="completing"&&e.jsxs(an,{children:[e.jsx(ln,{src:Bt,alt:"",width:56,height:56}),e.jsx(cn,{children:R?o("names.confirming"):o("names.completing")}),e.jsxs(dn,{children:[e.jsx(fn,{"aria-hidden":!0,children:e.jsx("span",{})}),e.jsx(pn,{children:"1/1"})]})]}),a==="success"&&e.jsxs(e.Fragment,{children:[e.jsxs(we,{children:[e.jsx(ve,{children:o("names.successHeaderTitle")}),e.jsx(je,{onClick:f,"aria-label":o("buyModal.close"),children:e.jsx(N,{name:"close"})})]}),e.jsxs($e,{children:[o("names.myCreditsBalance")," ",e.jsx(F,{})," ",he(h,l)]}),e.jsx(Ce,{}),e.jsxs(un,{children:[e.jsx(xn,{"aria-hidden":!0,children:e.jsx(N,{name:"check"})}),e.jsxs(hn,{children:[e.jsx("b",{children:o("names.successBannerBold")})," ",o("names.successBannerRest")]})]}),e.jsxs(ke,{style:{marginTop:20},children:[e.jsx(Se,{"aria-hidden":!0,children:"@"}),e.jsxs(Re,{children:[e.jsxs(Ee,{children:[n,e.jsx("span",{children:".dcl.eth"})]}),e.jsx(Ie,{children:o("names.subtitle")})]}),e.jsxs(Te,{children:[e.jsx(F,{}),S]})]}),e.jsxs(mn,{children:[e.jsx(gn,{onClick:()=>{f(),d("/my-assets")},children:o("names.myItems")}),e.jsx(bn,{href:H.profileUrl,target:"_blank",rel:"noopener noreferrer",children:o("names.assignToAvatar")})]})]})]})})}function vn(n){return n.replace(/[&<>"']/g,r=>({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"})[r])}const jn=s.div`
369
+ `;function wn({name:n,priceCredits:r,onClose:f}){const{session:u}=oe(),{data:h,isError:l}=tt(u),c=Ne(),d=Je(),[a,x]=p.useState("confirm"),[m,w]=p.useState(""),[j,k]=p.useState(null),g=p.useRef(!1),y=m.trim().toLowerCase()===n.toLowerCase(),v=a==="completing",S=r!=null?_e(r):"—";p.useEffect(()=>{const b=T=>{T.key==="Escape"&&!v&&f()};document.addEventListener("keydown",b);const _=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.removeEventListener("keydown",b),document.body.style.overflow=_}},[v,f]);async function C(){if(!(!u||!y||g.current)){g.current=!0,x("completing"),k(null);try{await Jt({name:n,identity:u.identity,signer:u.signer}),D("Shop Completed Purchase",{purchase_type:"name",is_primary:!0,payment_type:"credits",value_credits:r??null}),c.invalidateQueries({queryKey:["usd-balance"]}),c.invalidateQueries({queryKey:["my-assets"]}),x("success")}catch(b){D(ot(b)?"Shop Purchase Cancelled":"Shop Purchase Failed",{step:"submit",error_code:st(b),purchase_type:"name"}),k((b==null?void 0:b.message)||o("names.errorGeneric")),x("error")}finally{g.current=!1}}}const E=a!=="success",R=nt(u==null?void 0:u.providerType);return e.jsx(Zt,{onClick:v?void 0:f,role:"presentation",children:e.jsxs(Xt,{role:"dialog","aria-modal":"true","aria-label":o("names.buyTitle"),onClick:b=>b.stopPropagation(),children:[E&&e.jsxs(e.Fragment,{children:[e.jsxs(we,{children:[e.jsx(ve,{children:a==="error"?o("names.errorTitle"):o("names.buyTitle")}),e.jsx(je,{onClick:f,disabled:v,"aria-label":o("buyModal.close"),children:e.jsx(N,{name:"close"})})]}),e.jsxs($e,{children:[o("names.myCreditsBalance")," ",e.jsx(F,{})," ",he(h,l)]}),e.jsx(Ce,{})]}),(a==="confirm"||a==="error")&&e.jsxs(e.Fragment,{children:[e.jsxs(ke,{children:[e.jsx(Se,{"aria-hidden":!0,children:"@"}),e.jsxs(Re,{children:[e.jsxs(Ee,{children:[n,e.jsx("span",{children:".dcl.eth"})]}),e.jsx(Ie,{children:o("names.subtitle")})]}),e.jsxs(Te,{children:[e.jsx(F,{}),S]})]}),a==="error"?e.jsxs(e.Fragment,{children:[e.jsxs(yn,{children:[e.jsx(N,{name:"info","aria-hidden":!0}),e.jsx("span",{children:j})]}),e.jsx(ze,{onClick:()=>x("confirm"),children:o("names.tryAgain")})]}):e.jsxs(e.Fragment,{children:[e.jsxs(Yt,{children:[e.jsx(en,{children:o("names.confirmTitle")}),e.jsx(tn,{dangerouslySetInnerHTML:{__html:o("names.confirmBody",{name:`<b>@${vn(n)}</b>`})}}),e.jsxs(nn,{children:[e.jsx(sn,{"aria-hidden":!0,children:"@"}),e.jsx(on,{value:m,onChange:b=>w(b.target.value.replace(/[^a-zA-Z0-9]/g,"")),placeholder:"yourname","aria-label":o("names.reenterAria"),autoComplete:"off",spellCheck:!1,style:{width:`${Math.max(m.length,8)}ch`}}),e.jsx(rn,{children:".dcl.eth"})]})]}),e.jsx(ze,{onClick:()=>void C(),disabled:!y||!u,children:o("names.buyCta")})]})]}),a==="completing"&&e.jsxs(an,{children:[e.jsx(ln,{src:Bt,alt:"",width:56,height:56}),e.jsx(cn,{children:R?o("names.confirming"):o("names.completing")}),e.jsxs(dn,{children:[e.jsx(fn,{"aria-hidden":!0,children:e.jsx("span",{})}),e.jsx(pn,{children:"1/1"})]})]}),a==="success"&&e.jsxs(e.Fragment,{children:[e.jsxs(we,{children:[e.jsx(ve,{children:o("names.successHeaderTitle")}),e.jsx(je,{onClick:f,"aria-label":o("buyModal.close"),children:e.jsx(N,{name:"close"})})]}),e.jsxs($e,{children:[o("names.myCreditsBalance")," ",e.jsx(F,{})," ",he(h,l)]}),e.jsx(Ce,{}),e.jsxs(un,{children:[e.jsx(xn,{"aria-hidden":!0,children:e.jsx(N,{name:"check"})}),e.jsxs(hn,{children:[e.jsx("b",{children:o("names.successBannerBold")})," ",o("names.successBannerRest")]})]}),e.jsxs(ke,{style:{marginTop:20},children:[e.jsx(Se,{"aria-hidden":!0,children:"@"}),e.jsxs(Re,{children:[e.jsxs(Ee,{children:[n,e.jsx("span",{children:".dcl.eth"})]}),e.jsx(Ie,{children:o("names.subtitle")})]}),e.jsxs(Te,{children:[e.jsx(F,{}),S]})]}),e.jsxs(mn,{children:[e.jsx(gn,{onClick:()=>{f(),d("/my-assets")},children:o("names.myItems")}),e.jsx(bn,{href:W.profileUrl,target:"_blank",rel:"noopener noreferrer",children:o("names.assignToAvatar")})]})]})]})})}function vn(n){return n.replace(/[&<>"']/g,r=>({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"})[r])}const jn=s.div`
370
370
  width: 100%;
371
371
  min-width: 0;
372
372
  `,$n=s.nav`
@@ -572,7 +572,7 @@ import{u as Ze,r as p,j as e,b as Je}from"./react-BXazHbBy.js";import{p as H,h a
572
572
  ${t.media.down("mobile")} {
573
573
  font-size: 16px;
574
574
  }
575
- `,Hn=s.span`
575
+ `,Wn=s.span`
576
576
  flex: none;
577
577
  margin-left: 2px;
578
578
  font-family: ${t.font.sans};
@@ -584,7 +584,7 @@ import{u as Ze,r as p,j as e,b as Je}from"./react-BXazHbBy.js";import{p as H,h a
584
584
  ${t.media.down("mobile")} {
585
585
  font-size: 16px;
586
586
  }
587
- `,Wn=s.span`
587
+ `,Hn=s.span`
588
588
  flex: none;
589
589
  font-family: ${t.font.sans};
590
590
  font-size: 13px;
@@ -645,7 +645,7 @@ import{u as Ze,r as p,j as e,b as Je}from"./react-BXazHbBy.js";import{p as H,h a
645
645
  width: 16px;
646
646
  height: 16px;
647
647
  }
648
- `,J=s.div`
648
+ `,Z=s.div`
649
649
  display: flex;
650
650
  align-items: center;
651
651
  gap: 8px;
@@ -664,7 +664,7 @@ import{u as Ze,r as p,j as e,b as Je}from"./react-BXazHbBy.js";import{p as H,h a
664
664
  height: 16px;
665
665
  flex: none;
666
666
  }
667
- `,Gn=s.section`
667
+ `,qn=s.section`
668
668
  display: flex;
669
669
  flex-direction: column;
670
670
  gap: 48px;
@@ -674,7 +674,7 @@ import{u as Ze,r as p,j as e,b as Je}from"./react-BXazHbBy.js";import{p as H,h a
674
674
  gap: 24px;
675
675
  padding: 0 20px;
676
676
  }
677
- `,qn=s.h2`
677
+ `,Gn=s.h2`
678
678
  margin: 0;
679
679
  text-align: center;
680
680
  font-family: ${t.font.sans};
@@ -755,4 +755,4 @@ import{u as Ze,r as p,j as e,b as Je}from"./react-BXazHbBy.js";import{p as H,h a
755
755
  clip: rect(0, 0, 0, 0);
756
756
  white-space: nowrap;
757
757
  border: 0;
758
- `,Zn="https://docs.decentraland.org/creator/worlds/about/";function Jn(n){const r=typeof window<"u"?window.location.hostname:"";return`${r.endsWith("decentraland.org")?"https://decentraland.org":r.endsWith("decentraland.today")?"https://decentraland.today":"https://decentraland.zone"}/marketplace/names/browse?search=${encodeURIComponent(n)}`}function Xn({onBack:n}){Ae({title:o("seo.names.title"),description:o("seo.names.description")});const{session:r,signIn:f}=oe(),{data:u}=Me(),h=u?Pe(W,u):null,[l,c]=p.useState(""),[d,a]=p.useState("idle"),[x,m]=p.useState(!1),w=p.useRef(null),[j,k]=p.useState(void 0);p.useLayoutEffect(()=>{w.current&&k(w.current.offsetWidth)},[l]),p.useEffect(()=>{if(!be(l).ok){a(l.length===0?"idle":"invalid");return}a("checking");const E=new AbortController,R=setTimeout(()=>{(async()=>{try{const b=await Gt(l,{signal:E.signal});a(b)}catch(b){if((b==null?void 0:b.name)==="AbortError")return;a("error")}})()},400);return()=>{clearTimeout(R),E.abort()}},[l]);const g=be(l),y=g.ok&&(d==="available"||d==="error");function v(){if(y){if(!r){f();return}m(!0)}}const S=e.jsxs(e.Fragment,{children:[o("names.claim"),h!=null?e.jsxs(Un,{children:[e.jsx(F,{}),_e(h)]}):null]});return e.jsxs(jn,{"data-testid":"names-page",children:[e.jsxs($n,{"aria-label":o("names.breadcrumbAria"),children:[e.jsx(Cn,{onClick:n,children:o("names.breadcrumbCollectibles")}),e.jsx("span",{"aria-hidden":!0,children:">"}),e.jsx(kn,{children:o("names.breadcrumbCurrent")})]}),e.jsxs(Sn,{children:[e.jsxs(Rn,{children:[e.jsxs(En,{children:[e.jsx(In,{children:o("names.heroTitle")}),e.jsx(Tn,{children:o("names.heroSubtitle")})]}),e.jsxs(zn,{children:[e.jsxs(Nn,{children:[e.jsxs(_n,{invalid:d==="taken",children:[e.jsxs(Ln,{children:[e.jsx(Bn,{"aria-hidden":!0,children:"@"}),e.jsx(Fn,{value:l,onChange:C=>c(Wt(C.target.value)),placeholder:o("names.inputPlaceholder"),"aria-label":o("names.inputAria"),autoComplete:"off",spellCheck:!1,maxLength:V,style:{width:j!=null?`${j}px`:void 0}}),e.jsx(An,{ref:w,"aria-hidden":!0,children:l||o("names.inputPlaceholder")}),e.jsx(Hn,{children:o("names.suffix")})]}),l.length>0?e.jsxs(Wn,{"aria-hidden":!0,children:[l.length,"/",V]}):null,e.jsx(Fe,{onClick:v,disabled:!y,"data-testid":"names-claim",children:S})]}),d==="taken"?e.jsxs(Pn,{role:"status","data-testid":"names-taken",children:[e.jsx(N,{name:"info",size:16,"aria-hidden":!0}),e.jsx("span",{children:o("names.taken")}),e.jsxs(Mn,{href:Jn(l),target:"_blank",rel:"noopener noreferrer",children:[o("names.takenMakeOffer"),e.jsx(N,{name:"external-link",size:13,"aria-hidden":!0})]})]}):null]}),e.jsx(On,{onClick:v,disabled:!y,children:S}),d==="checking"?e.jsx(J,{tone:"muted",role:"status","data-testid":"names-checking",children:o("names.checking")}):d==="error"?e.jsx(J,{tone:"muted",role:"status",children:o("names.checkError")}):d==="invalid"&&!g.ok&&g.reason==="too-short"?e.jsx(J,{tone:"muted",role:"status",children:o("names.tooShort",{min:Le})}):null,e.jsx(Qn,{role:"status","aria-live":"polite",children:d==="available"?o("names.available",{name:l}):""})]})]}),e.jsxs(Gn,{children:[e.jsx(qn,{children:o("names.whyTitle")}),e.jsxs(Dn,{children:[e.jsxs(X,{children:[e.jsx(Y,{"aria-hidden":!0}),e.jsx(ee,{children:e.jsx(te,{children:o("names.why1")})})]}),e.jsxs(X,{children:[e.jsx(Y,{"aria-hidden":!0}),e.jsxs(ee,{children:[e.jsx(te,{children:o("names.why2")}),e.jsxs(Vn,{href:Zn,target:"_blank",rel:"noopener noreferrer",children:[o("names.why2Link"),e.jsx(N,{name:"external-link","aria-hidden":!0})]})]})]}),e.jsxs(X,{children:[e.jsx(Y,{"aria-hidden":!0}),e.jsxs(ee,{children:[e.jsx(te,{children:o("names.why3")}),e.jsx(Kn,{children:o("names.why3Link")})]})]})]})]})]}),x?e.jsx(wn,{name:l,priceCredits:h,onClose:()=>m(!1)}):null]})}const ne=48;function Yn(n){return{tradeId:n.tradeId??n.id,listingType:"primary",contractAddress:n.contractAddress,itemId:n.itemId??"",name:n.name,thumbnail:n.thumbnail,rarity:n.rarity,category:n.category,wearableCategory:n.wearableCategory??null,creator:n.creator,manaWei:n.manaWei??"0",available:1,network:n.network,chainId:n.chainId,createdAt:0}}function Cs(){const[n]=Je(),r=(n.get("q")??"").trim().toLowerCase(),f=Ne(),{session:u,signIn:h}=oe(),l=(n.get("q")??"").trim();Ae({title:l?o("seo.collectibles.searchTitle",{query:l}):o("seo.collectibles.title"),description:o("seo.collectibles.description")});const[c,d]=p.useState("wearable"),[a,x]=p.useState(null),[m,w]=p.useState([]),[j,k]=p.useState(""),[g,y]=p.useState(""),[v,S]=p.useState("on_sale"),[C,E]=p.useState(!1),[R,b]=p.useState("newest"),[_,T]=p.useState(!1),[re,K]=p.useState(null);p.useEffect(()=>{if(!_)return;const i=B=>{B.key==="Escape"&&T(!1)};document.addEventListener("keydown",i);const $=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.removeEventListener("keydown",i),document.body.style.overflow=$}},[_]);const O=v==="on_sale",A=j&&!Number.isNaN(Number(j))?Number(j):void 0,P=g&&!Number.isNaN(Number(g))?Number(g):void 0,ie=a?$t[a]:void 0,ae=(me.find(i=>i.key===R)??me[0]).server,le={category:c,rarities:m.length?m:void 0,wearableCategories:ie,minPriceCredits:A,maxPriceCredits:P,search:r||void 0,sortBy:ae,isSmart:C||void 0,onSale:!0},ce={category:c,rarities:m.length?m:void 0,wearableCategories:ie,search:r||void 0,sortBy:ae,isWearableSmart:C||void 0,isOnSale:v==="not_for_sale"?!1:void 0},{items:M,total:de,isLoading:I,isPlaceholderData:z,error:He,hasNextPage:We,isFetchingNextPage:fe,fetchNextPage:Oe}=St(O?["shop-items",le]:["catalog-items",ce],i=>O?it({...le,first:ne,skip:i}):at({...ce,first:ne,skip:i}),{enabled:c!=="names"}),U=de,Ue=I||z,Ge=I?15:Math.min(Math.max(M.length,1),ne),{data:G,isError:qe}=Me(),De=i=>G&&i.manaWei?Pe(i.manaWei,G):null,pe=p.useRef(null);p.useEffect(()=>{I||z||!r||pe.current===r||(pe.current=r,D("Shop Searched",{query:r,result_count:U}))},[r,I,z,U]);const q=p.useRef("__init__");p.useEffect(()=>{if(I||z)return;const i=JSON.stringify({category:c,subCategory:a,rarities:m,min:A,max:P,sort:R,status:v,smart:C});if(q.current==="__init__"||q.current===i){q.current=i;return}q.current=i,D("Shop Applied Filter",{filters:{category:c,sub_category:a,rarities:m,min_price_credits:A??null,max_price_credits:P??null,status:v,smart:C,sort:R},result_count:U})},[c,a,m,A,P,R,v,C,I,z,U]);function ue(i){d(i),x(null)}function xe(i){w($=>$.includes(i)?$.filter(B=>B!==i):[...$,i])}function Ve(){d("wearable"),x(null),w([]),k(""),y(""),S("on_sale"),E(!1)}function Ke(i){const $=M.find(B=>B.id===i.id);if(!(!$||$.source!=="legacy"||!$.manaWei)){if(!u){h();return}K(Yn($))}}function Qe(){f.invalidateQueries({queryKey:["shop-items"]})}const L=[];(A!=null||P!=null)&&L.push({key:"price",label:o("filter.price"),onRemove:()=>{k(""),y("")}});for(const i of vt)m.includes(i)&&L.push({key:`rarity-${i}`,label:rt(i),onRemove:()=>xe(i)});return C&&L.push({key:"smart",label:o("filter.smart"),onRemove:()=>E(!1)}),v!=="on_sale"&&L.push({key:"status",label:v==="all"?o("filter.statusAll"):o("filter.notForSale"),onRemove:()=>S("on_sale")}),e.jsxs(dt,{"data-testid":"browse",children:[c!=="names"&&e.jsxs(e.Fragment,{children:[_?e.jsx(ft,{onClick:()=>T(!1),"aria-hidden":!0}):null,e.jsxs(pt,{className:_?"is-open":"","data-testid":"browse-sidebar",children:[e.jsxs(ut,{children:[e.jsx(xt,{children:o("assets.filters")}),e.jsx(ht,{onClick:()=>T(!1),"aria-label":o("assets.closeFilters"),children:"✕"})]}),e.jsx(mt,{children:e.jsx(gt,{category:c,subCategory:a,onCategory:ue,onSub:x,priceMin:j,priceMax:g,onPriceMin:k,onPriceMax:y,rarities:m,onToggleRarity:xe,status:v,onStatus:S,smart:C,onSmart:E})}),e.jsx(bt,{children:e.jsx(yt,{type:"button",onClick:()=>T(!1),children:o("assets.showItems")})})]})]}),e.jsx(wt,{children:c==="names"?e.jsx(Xn,{onBack:()=>ue("wearable")}):e.jsxs(e.Fragment,{children:[e.jsx(jt,{sort:R,onSort:b,total:de,loading:I||z,query:r,onOpenFilters:()=>T(!0),chips:L,onClearChips:Ve}),qe&&O&&M.some(i=>i.source==="legacy")?e.jsx("p",{className:"market-banner market-banner--warn",children:o("assets.marketUnavailable")}):null,He?e.jsx(Rt,{message:o("assets.loadError"),testId:"browse-error"}):null,e.jsx("div",{className:"grid","data-testid":"grid",children:Ue?e.jsx(ge,{count:Ge}):e.jsxs(e.Fragment,{children:[M.map(i=>{if(!O)return e.jsx(Q,{item:i,mode:"view"},Z(i));const $=i;return $.source==="legacy"?e.jsx(Q,{item:$,mode:"market",marketPriceCredits:De($),onBuyNow:Ke},Z(i)):e.jsx(Q,{item:i},Z(i))}),fe?e.jsx(ge,{count:6}):null]})}),e.jsx(Ct,{hasNextPage:We,isFetching:fe,onLoadMore:()=>void Oe()}),!I&&!z&&M.length===0?e.jsx("p",{className:"muted",children:o("assets.noItems")}):null]})}),re&&G?e.jsx(kt,{listing:re,rate:G,onClose:()=>K(null),onSold:()=>{K(null),Qe()}}):null]})}export{Cs as Assets};
758
+ `,Jn="https://docs.decentraland.org/creator/worlds/about/";function Zn(n){const r=typeof window<"u"?window.location.hostname:"";return`${r.endsWith("decentraland.org")?"https://decentraland.org":r.endsWith("decentraland.today")?"https://decentraland.today":"https://decentraland.zone"}/marketplace/names/browse?search=${encodeURIComponent(n)}`}function Xn({onBack:n}){Ae({title:o("seo.names.title"),description:o("seo.names.description")});const{session:r,signIn:f}=oe(),{data:u}=Me(),h=u?Pe(H,u):null,[l,c]=p.useState(""),[d,a]=p.useState("idle"),[x,m]=p.useState(!1),w=p.useRef(null),[j,k]=p.useState(void 0);p.useLayoutEffect(()=>{w.current&&k(w.current.offsetWidth)},[l]),p.useEffect(()=>{if(!be(l).ok){a(l.length===0?"idle":"invalid");return}a("checking");const E=new AbortController,R=setTimeout(()=>{(async()=>{try{const b=await qt(l,{signal:E.signal});a(b)}catch(b){if((b==null?void 0:b.name)==="AbortError")return;a("error")}})()},400);return()=>{clearTimeout(R),E.abort()}},[l]);const g=be(l),y=g.ok&&(d==="available"||d==="error");function v(){if(y){if(!r){f();return}m(!0)}}const S=e.jsxs(e.Fragment,{children:[o("names.claim"),h!=null?e.jsxs(Un,{children:[e.jsx(F,{}),_e(h)]}):null]});return e.jsxs(jn,{"data-testid":"names-page",children:[e.jsxs($n,{"aria-label":o("names.breadcrumbAria"),children:[e.jsx(Cn,{onClick:n,children:o("names.breadcrumbCollectibles")}),e.jsx("span",{"aria-hidden":!0,children:">"}),e.jsx(kn,{children:o("names.breadcrumbCurrent")})]}),e.jsxs(Sn,{children:[e.jsxs(Rn,{children:[e.jsxs(En,{children:[e.jsx(In,{children:o("names.heroTitle")}),e.jsx(Tn,{children:o("names.heroSubtitle")})]}),e.jsxs(zn,{children:[e.jsxs(Nn,{children:[e.jsxs(_n,{invalid:d==="taken",children:[e.jsxs(Ln,{children:[e.jsx(Bn,{"aria-hidden":!0,children:"@"}),e.jsx(Fn,{value:l,onChange:C=>c(Ht(C.target.value)),placeholder:o("names.inputPlaceholder"),"aria-label":o("names.inputAria"),autoComplete:"off",spellCheck:!1,maxLength:V,style:{width:j!=null?`${j}px`:void 0}}),e.jsx(An,{ref:w,"aria-hidden":!0,children:l||o("names.inputPlaceholder")}),e.jsx(Wn,{children:o("names.suffix")})]}),l.length>0?e.jsxs(Hn,{"aria-hidden":!0,children:[l.length,"/",V]}):null,e.jsx(Fe,{onClick:v,disabled:!y,"data-testid":"names-claim",children:S})]}),d==="taken"?e.jsxs(Pn,{role:"status","data-testid":"names-taken",children:[e.jsx(N,{name:"info",size:16,"aria-hidden":!0}),e.jsx("span",{children:o("names.taken")}),e.jsxs(Mn,{href:Zn(l),target:"_blank",rel:"noopener noreferrer",children:[o("names.takenMakeOffer"),e.jsx(N,{name:"external-link",size:13,"aria-hidden":!0})]})]}):null]}),e.jsx(On,{onClick:v,disabled:!y,children:S}),d==="checking"?e.jsx(Z,{tone:"muted",role:"status","data-testid":"names-checking",children:o("names.checking")}):d==="error"?e.jsx(Z,{tone:"muted",role:"status",children:o("names.checkError")}):d==="invalid"&&!g.ok&&g.reason==="too-short"?e.jsx(Z,{tone:"muted",role:"status",children:o("names.tooShort",{min:Le})}):null,e.jsx(Qn,{role:"status","aria-live":"polite",children:d==="available"?o("names.available",{name:l}):""})]})]}),e.jsxs(qn,{children:[e.jsx(Gn,{children:o("names.whyTitle")}),e.jsxs(Dn,{children:[e.jsxs(X,{children:[e.jsx(Y,{"aria-hidden":!0}),e.jsx(ee,{children:e.jsx(te,{children:o("names.why1")})})]}),e.jsxs(X,{children:[e.jsx(Y,{"aria-hidden":!0}),e.jsxs(ee,{children:[e.jsx(te,{children:o("names.why2")}),e.jsxs(Vn,{href:Jn,target:"_blank",rel:"noopener noreferrer",children:[o("names.why2Link"),e.jsx(N,{name:"external-link","aria-hidden":!0})]})]})]}),e.jsxs(X,{children:[e.jsx(Y,{"aria-hidden":!0}),e.jsxs(ee,{children:[e.jsx(te,{children:o("names.why3")}),e.jsx(Kn,{children:o("names.why3Link")})]})]})]})]})]}),x?e.jsx(wn,{name:l,priceCredits:h,onClose:()=>m(!1)}):null]})}const ne=48;function Yn(n){return{tradeId:n.tradeId??n.id,listingType:"primary",contractAddress:n.contractAddress,itemId:n.itemId??"",name:n.name,thumbnail:n.thumbnail,rarity:n.rarity,category:n.category,wearableCategory:n.wearableCategory??null,creator:n.creator,manaWei:n.manaWei??"0",available:1,network:n.network,chainId:n.chainId,createdAt:0}}function Cs(){const[n]=Ze(),r=(n.get("q")??"").trim().toLowerCase(),f=Ne(),{session:u,signIn:h}=oe(),l=(n.get("q")??"").trim();Ae({title:l?o("seo.collectibles.searchTitle",{query:l}):o("seo.collectibles.title"),description:o("seo.collectibles.description")});const[c,d]=p.useState("wearable"),[a,x]=p.useState(null),[m,w]=p.useState([]),[j,k]=p.useState(""),[g,y]=p.useState(""),[v,S]=p.useState("on_sale"),[C,E]=p.useState(!1),[R,b]=p.useState("newest"),[_,T]=p.useState(!1),[re,K]=p.useState(null);p.useEffect(()=>{if(!_)return;const i=B=>{B.key==="Escape"&&T(!1)};document.addEventListener("keydown",i);const $=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.removeEventListener("keydown",i),document.body.style.overflow=$}},[_]);const O=v==="on_sale",A=j&&!Number.isNaN(Number(j))?Number(j):void 0,P=g&&!Number.isNaN(Number(g))?Number(g):void 0,ie=a?$t[a]:void 0,ae=(me.find(i=>i.key===R)??me[0]).server,le={category:c,rarities:m.length?m:void 0,wearableCategories:ie,minPriceCredits:A,maxPriceCredits:P,search:r||void 0,sortBy:ae,isSmart:C||void 0,onSale:!0},ce={category:c,rarities:m.length?m:void 0,wearableCategories:ie,search:r||void 0,sortBy:ae,isWearableSmart:C||void 0,isOnSale:v==="not_for_sale"?!1:void 0},{items:M,total:de,isLoading:I,isPlaceholderData:z,error:We,hasNextPage:He,isFetchingNextPage:fe,fetchNextPage:Oe}=St(O?["shop-items",le]:["catalog-items",ce],i=>O?it({...le,first:ne,skip:i}):at({...ce,first:ne,skip:i}),{enabled:c!=="names"}),U=de,Ue=I||z,qe=I?15:Math.min(Math.max(M.length,1),ne),{data:q,isError:Ge}=Me(),De=i=>q&&i.manaWei?Pe(i.manaWei,q):null,pe=p.useRef(null);p.useEffect(()=>{I||z||!r||pe.current===r||(pe.current=r,D("Shop Searched",{query:r,result_count:U}))},[r,I,z,U]);const G=p.useRef("__init__");p.useEffect(()=>{if(I||z)return;const i=JSON.stringify({category:c,subCategory:a,rarities:m,min:A,max:P,sort:R,status:v,smart:C});if(G.current==="__init__"||G.current===i){G.current=i;return}G.current=i,D("Shop Applied Filter",{filters:{category:c,sub_category:a,rarities:m,min_price_credits:A??null,max_price_credits:P??null,status:v,smart:C,sort:R},result_count:U})},[c,a,m,A,P,R,v,C,I,z,U]);function ue(i){d(i),x(null)}function xe(i){w($=>$.includes(i)?$.filter(B=>B!==i):[...$,i])}function Ve(){d("wearable"),x(null),w([]),k(""),y(""),S("on_sale"),E(!1)}function Ke(i){const $=M.find(B=>B.id===i.id);if(!(!$||$.source!=="legacy"||!$.manaWei)){if(!u){h();return}K(Yn($))}}function Qe(){f.invalidateQueries({queryKey:["shop-items"]})}const L=[];(A!=null||P!=null)&&L.push({key:"price",label:o("filter.price"),onRemove:()=>{k(""),y("")}});for(const i of vt)m.includes(i)&&L.push({key:`rarity-${i}`,label:rt(i),onRemove:()=>xe(i)});return C&&L.push({key:"smart",label:o("filter.smart"),onRemove:()=>E(!1)}),v!=="on_sale"&&L.push({key:"status",label:v==="all"?o("filter.statusAll"):o("filter.notForSale"),onRemove:()=>S("on_sale")}),e.jsxs(dt,{"data-testid":"browse",children:[c!=="names"&&e.jsxs(e.Fragment,{children:[_?e.jsx(ft,{onClick:()=>T(!1),"aria-hidden":!0}):null,e.jsxs(pt,{className:_?"is-open":"","data-testid":"browse-sidebar",children:[e.jsxs(ut,{children:[e.jsx(xt,{children:o("assets.filters")}),e.jsx(ht,{onClick:()=>T(!1),"aria-label":o("assets.closeFilters"),children:"✕"})]}),e.jsx(mt,{children:e.jsx(gt,{category:c,subCategory:a,onCategory:ue,onSub:x,priceMin:j,priceMax:g,onPriceMin:k,onPriceMax:y,rarities:m,onToggleRarity:xe,status:v,onStatus:S,smart:C,onSmart:E})}),e.jsx(bt,{children:e.jsx(yt,{type:"button",onClick:()=>T(!1),children:o("assets.showItems")})})]})]}),e.jsx(wt,{children:c==="names"?e.jsx(Xn,{onBack:()=>ue("wearable")}):e.jsxs(e.Fragment,{children:[e.jsx(jt,{sort:R,onSort:b,total:de,loading:I||z,query:r,onOpenFilters:()=>T(!0),chips:L,onClearChips:Ve}),Ge&&O&&M.some(i=>i.source==="legacy")?e.jsx("p",{className:"market-banner market-banner--warn",children:o("assets.marketUnavailable")}):null,We?e.jsx(Rt,{message:o("assets.loadError"),testId:"browse-error"}):null,e.jsx("div",{className:"grid","data-testid":"grid",children:Ue?e.jsx(ge,{count:qe}):e.jsxs(e.Fragment,{children:[M.map(i=>{if(!O)return e.jsx(Q,{item:i,mode:"view"},J(i));const $=i;return $.source==="legacy"?e.jsx(Q,{item:$,mode:"market",marketPriceCredits:De($),onBuyNow:Ke},J(i)):e.jsx(Q,{item:i},J(i))}),fe?e.jsx(ge,{count:6}):null]})}),e.jsx(Ct,{hasNextPage:He,isFetching:fe,onLoadMore:()=>void Oe()}),!I&&!z&&M.length===0?e.jsx("p",{className:"muted",children:o("assets.noItems")}):null]})}),re&&q?e.jsx(kt,{listing:re,rate:q,onClose:()=>K(null),onSold:()=>{K(null),Qe()}}):null]})}export{Cs as Assets};
@@ -1,4 +1,4 @@
1
- import{r as y,j as t}from"./react-BXazHbBy.js";import{R as z,a as oe,C as ie,c as ne}from"./categories-BBcwUmj-.js";import{T as se}from"./Tooltip-B9pXWe2W.js";import{G as e,s as o,I as m,t as s,H as re,e as v}from"./index-Cdibp_-_.js";import{n as c}from"./emotion-CSxEP8yM.js";const ae=o.div`
1
+ import{r as y,j as t}from"./react-BW1xvPTF.js";import{R as z,a as oe,C as ie,c as ne}from"./categories-BhIJhSSv.js";import{T as se}from"./Tooltip-g1zVFNbN.js";import{J as e,s as o,I as m,t as s,K as re,e as v}from"./index-s056mQ5V.js";import{n as c}from"./emotion-CSxEP8yM.js";const ae=o.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  gap: 12px;
@@ -116,7 +116,7 @@ import{r as y,j as t}from"./react-BXazHbBy.js";import{R as z,a as oe,C as ie,c a
116
116
  `,F=o(m)`
117
117
  width: 16px;
118
118
  height: 16px;
119
- color: ${e.colors.rarity};
119
+ color: ${e.colors.text};
120
120
  `,I=o.input`
121
121
  width: 100%;
122
122
  min-width: 0;
@@ -367,7 +367,7 @@ import{r as y,j as t}from"./react-BXazHbBy.js";import{R as z,a as oe,C as ie,c a
367
367
  height: 18px;
368
368
  left: ${({on:i})=>i?"calc(100% - 18px)":"2px"};
369
369
  }
370
- `,d=1e5;function De(i){var l;for(const x of ie){const p=(l=x.subs)==null?void 0:l.find(r=>r.key===i);if(p)return s(p.labelKey)}return i}function j({title:i,open:l,onToggle:x,summary:p,desktopStatic:r,headerTestId:h,headerAria:u,children:f}){const g=t.jsx(ne,{up:l,size:24,color:"var(--text)"});return t.jsxs(le,{children:[t.jsxs(ce,{type:"button",desktopStatic:r,onClick:x,"aria-expanded":l,"aria-label":u,"data-testid":h,children:[t.jsx(de,{children:i}),r?t.jsx(pe,{children:g}):g]}),!l&&p?t.jsx(he,{desktopHidden:r,children:p}):null,t.jsx(xe,{open:l,desktopStatic:r,children:t.jsx(ge,{children:f})})]})}function Me({category:i,subCategory:l,onCategory:x,onSub:p,priceMin:r,priceMax:h,onPriceMin:u,onPriceMax:f,rarities:g,onToggleRarity:E,status:S,onStatus:L,smart:b,onSmart:O}){const[_,Y]=y.useState(!0),[M,B]=y.useState(!0),[G,K]=y.useState(!1),[U,W]=y.useState(!0),R=r&&!Number.isNaN(Number(r))?Number(r):void 0,C=h&&!Number.isNaN(Number(h))?Number(h):void 0,w=R!=null?Math.min(R,d):0,$=C!=null?Math.min(C,d):d,V=w/d*100,X=$/d*100;function q(n){const a=Math.min(n,$);u(a<=0?"":String(a))}function J(n){const a=Math.max(n,w);f(a>=d?"":String(a))}const Q=l?De(l):i!=="wearable"?s(`categories.${i==="emote"?"emotes":i==="all"?"shopAll":i}`):"",Z=R!=null||C!=null?`${r||"0"}-${h||"∞"}`:"",ee=z.filter(n=>g.includes(n)).map(re).join(", "),te=S==="on_sale"?s("filter.onSale"):S==="not_for_sale"?s("filter.notForSale"):"";return t.jsxs(ae,{children:[t.jsx(j,{title:s("assets.category"),open:_,onToggle:()=>Y(n=>!n),summary:Q,desktopStatic:!0,children:t.jsx(oe,{category:i,subCategory:l,onCategory:x,onSub:p})}),t.jsx(k,{}),t.jsxs(j,{title:s("filter.price"),open:M,onToggle:()=>B(n=>!n),summary:Z,desktopStatic:!0,children:[t.jsxs(me,{children:[t.jsxs(T,{children:[t.jsx(N,{children:s("assets.min")}),t.jsxs(P,{children:[t.jsx(F,{name:v.iconName,"aria-hidden":!0}),t.jsx(I,{type:"number",min:"0","aria-label":s("assets.minPriceAria"),placeholder:"0",value:r,onChange:n=>u(n.target.value)})]})]}),t.jsx(ue,{children:s("assets.priceTo")}),t.jsxs(T,{children:[t.jsx(N,{children:s("assets.max")}),t.jsxs(P,{children:[t.jsx(F,{name:v.iconName,"aria-hidden":!0}),t.jsx(I,{type:"number",min:"0","aria-label":s("assets.maxPriceAria"),placeholder:"0",value:h,onChange:n=>f(n.target.value)})]})]})]}),t.jsxs(fe,{children:[t.jsx(be,{"aria-hidden":!0}),t.jsx(we,{minPct:V,maxPct:X,"aria-hidden":!0}),t.jsx(A,{type:"range",min:0,max:d,value:w,"aria-label":s("assets.minPriceSliderAria"),onChange:n=>q(Number(n.target.value))}),t.jsx(A,{type:"range",min:0,max:d,value:$,"aria-label":s("assets.maxPriceSliderAria"),onChange:n=>J(Number(n.target.value))})]}),t.jsxs($e,{children:[t.jsxs(H,{children:[t.jsx(D,{name:v.iconName,"aria-hidden":!0}),w.toLocaleString()]}),t.jsxs(H,{children:[t.jsx(D,{name:v.iconName,"aria-hidden":!0}),$.toLocaleString()]})]})]}),t.jsx(k,{}),t.jsx(j,{title:s("assets.rarity"),open:G,onToggle:()=>K(n=>!n),summary:ee,headerTestId:"sidebar-section-toggle",children:t.jsx(ye,{"data-testid":"rarity-filter",children:z.map(n=>{const a=g.includes(n);return t.jsxs(ve,{type:"button",selected:a,"aria-pressed":a,onClick:()=>E(n),"data-testid":"rarity-filter-check",children:[t.jsx(ke,{color:e.rarities[n],children:a?t.jsx(je,{name:"check","aria-hidden":!0}):null}),t.jsx(Se,{selected:a,children:n})]},n)})})}),t.jsx(k,{}),t.jsx(j,{title:s("filter.status"),open:U,onToggle:()=>W(n=>!n),summary:te,children:[["all",s("filter.statusAll")],["on_sale",s("filter.onSale")],["not_for_sale",s("filter.notForSale")]].map(([n,a])=>t.jsxs(Re,{children:[t.jsx(Ce,{type:"radio",name:"shop-status",checked:S===n,onChange:()=>L(n)}),t.jsx(ze,{children:a})]},n))}),t.jsx(k,{}),t.jsxs(Te,{children:[t.jsxs(Ne,{children:[t.jsx(Pe,{name:"smart","aria-hidden":!0}),t.jsx(Fe,{children:s("filter.smart")}),t.jsx(se,{content:s("filter.smartHint"),placement:"bottom",children:t.jsx(Ie,{name:"info",role:"img","aria-label":s("filter.smartHint"),tabIndex:0})})]}),t.jsx(Ae,{type:"button",role:"switch",on:b,"aria-checked":b,"aria-label":s("filter.smart"),onClick:()=>O(!b),children:t.jsx(He,{on:b})})]})]})}const Be=o.div`
370
+ `,d=1e5;function De(i){var l;for(const x of ie){const p=(l=x.subs)==null?void 0:l.find(r=>r.key===i);if(p)return s(p.labelKey)}return i}function j({title:i,open:l,onToggle:x,summary:p,desktopStatic:r,headerTestId:h,headerAria:u,children:f}){const g=t.jsx(ne,{up:l,size:24,color:"var(--text)"});return t.jsxs(le,{children:[t.jsxs(ce,{type:"button",desktopStatic:r,onClick:x,"aria-expanded":l,"aria-label":u,"data-testid":h,children:[t.jsx(de,{children:i}),r?t.jsx(pe,{children:g}):g]}),!l&&p?t.jsx(he,{desktopHidden:r,children:p}):null,t.jsx(xe,{open:l,desktopStatic:r,children:t.jsx(ge,{children:f})})]})}function Me({category:i,subCategory:l,onCategory:x,onSub:p,priceMin:r,priceMax:h,onPriceMin:u,onPriceMax:f,rarities:g,onToggleRarity:E,status:S,onStatus:L,smart:b,onSmart:O}){const[_,Y]=y.useState(!0),[M,B]=y.useState(!0),[K,U]=y.useState(!1),[W,G]=y.useState(!0),R=r&&!Number.isNaN(Number(r))?Number(r):void 0,C=h&&!Number.isNaN(Number(h))?Number(h):void 0,w=R!=null?Math.min(R,d):0,$=C!=null?Math.min(C,d):d,J=w/d*100,V=$/d*100;function X(n){const a=Math.min(n,$);u(a<=0?"":String(a))}function q(n){const a=Math.max(n,w);f(a>=d?"":String(a))}const Q=l?De(l):i!=="wearable"?s(`categories.${i==="emote"?"emotes":i==="all"?"shopAll":i}`):"",Z=R!=null||C!=null?`${r||"0"}-${h||"∞"}`:"",ee=z.filter(n=>g.includes(n)).map(re).join(", "),te=S==="on_sale"?s("filter.onSale"):S==="not_for_sale"?s("filter.notForSale"):"";return t.jsxs(ae,{children:[t.jsx(j,{title:s("assets.category"),open:_,onToggle:()=>Y(n=>!n),summary:Q,desktopStatic:!0,children:t.jsx(oe,{category:i,subCategory:l,onCategory:x,onSub:p})}),t.jsx(k,{}),t.jsxs(j,{title:s("filter.price"),open:M,onToggle:()=>B(n=>!n),summary:Z,desktopStatic:!0,children:[t.jsxs(me,{children:[t.jsxs(T,{children:[t.jsx(N,{children:s("assets.min")}),t.jsxs(P,{children:[t.jsx(F,{name:v.iconName,"aria-hidden":!0}),t.jsx(I,{type:"number",min:"0","aria-label":s("assets.minPriceAria"),placeholder:"0",value:r,onChange:n=>u(n.target.value)})]})]}),t.jsx(ue,{children:s("assets.priceTo")}),t.jsxs(T,{children:[t.jsx(N,{children:s("assets.max")}),t.jsxs(P,{children:[t.jsx(F,{name:v.iconName,"aria-hidden":!0}),t.jsx(I,{type:"number",min:"0","aria-label":s("assets.maxPriceAria"),placeholder:"0",value:h,onChange:n=>f(n.target.value)})]})]})]}),t.jsxs(fe,{children:[t.jsx(be,{"aria-hidden":!0}),t.jsx(we,{minPct:J,maxPct:V,"aria-hidden":!0}),t.jsx(A,{type:"range",min:0,max:d,value:w,"aria-label":s("assets.minPriceSliderAria"),onChange:n=>X(Number(n.target.value))}),t.jsx(A,{type:"range",min:0,max:d,value:$,"aria-label":s("assets.maxPriceSliderAria"),onChange:n=>q(Number(n.target.value))})]}),t.jsxs($e,{children:[t.jsxs(H,{children:[t.jsx(D,{name:v.iconName,"aria-hidden":!0}),w.toLocaleString()]}),t.jsxs(H,{children:[t.jsx(D,{name:v.iconName,"aria-hidden":!0}),$.toLocaleString()]})]})]}),t.jsx(k,{}),t.jsx(j,{title:s("assets.rarity"),open:K,onToggle:()=>U(n=>!n),summary:ee,headerTestId:"sidebar-section-toggle",children:t.jsx(ye,{"data-testid":"rarity-filter",children:z.map(n=>{const a=g.includes(n);return t.jsxs(ve,{type:"button",selected:a,"aria-pressed":a,onClick:()=>E(n),"data-testid":"rarity-filter-check",children:[t.jsx(ke,{color:e.rarities[n],children:a?t.jsx(je,{name:"check","aria-hidden":!0}):null}),t.jsx(Se,{selected:a,children:n})]},n)})})}),t.jsx(k,{}),t.jsx(j,{title:s("filter.status"),open:W,onToggle:()=>G(n=>!n),summary:te,children:[["all",s("filter.statusAll")],["on_sale",s("filter.onSale")],["not_for_sale",s("filter.notForSale")]].map(([n,a])=>t.jsxs(Re,{children:[t.jsx(Ce,{type:"radio",name:"shop-status",checked:S===n,onChange:()=>L(n)}),t.jsx(ze,{children:a})]},n))}),t.jsx(k,{}),t.jsxs(Te,{children:[t.jsxs(Ne,{children:[t.jsx(Pe,{name:"smart","aria-hidden":!0}),t.jsx(Fe,{children:s("filter.smart")}),t.jsx(se,{content:s("filter.smartHint"),placement:"bottom",children:t.jsx(Ie,{name:"info",role:"img","aria-label":s("filter.smartHint"),tabIndex:0})})]}),t.jsx(Ae,{type:"button",role:"switch",on:b,"aria-checked":b,"aria-label":s("filter.smart"),onClick:()=>O(!b),children:t.jsx(He,{on:b})})]})]})}const Be=o.div`
371
371
  position: relative;
372
372
  display: flex;
373
373
  gap: 32px;
@@ -376,14 +376,14 @@ import{r as y,j as t}from"./react-BXazHbBy.js";import{R as z,a as oe,C as ie,c a
376
376
  ${e.media.down("lg")} {
377
377
  display: block;
378
378
  }
379
- `,Ge=o.div`
379
+ `,Ke=o.div`
380
380
  flex: 1;
381
381
  min-width: 0;
382
382
 
383
383
  ${e.media.down("lg")} {
384
384
  width: 100%;
385
385
  }
386
- `,Ke=o.aside`
386
+ `,Ue=o.aside`
387
387
  flex: none;
388
388
  width: 265px;
389
389
 
@@ -454,7 +454,7 @@ import{r as y,j as t}from"./react-BXazHbBy.js";import{R as z,a as oe,C as ie,c a
454
454
  visibility: visible;
455
455
  }
456
456
  }
457
- `,Ue=o.div`
457
+ `,We=o.div`
458
458
  ${e.media.down("lg")} {
459
459
  flex: 1;
460
460
  min-height: 0;
@@ -462,12 +462,12 @@ import{r as y,j as t}from"./react-BXazHbBy.js";import{R as z,a as oe,C as ie,c a
462
462
  /* Room so the last filter row clears the sticky "Show items" bar (Figma bottom bar). */
463
463
  padding-bottom: 24px;
464
464
  }
465
- `,We=o.div`
465
+ `,Ge=o.div`
466
466
  position: fixed;
467
467
  inset: 0;
468
468
  z-index: 9998;
469
469
  background: rgba(0, 0, 0, 0.4);
470
- `,Ve=o.div`
470
+ `,Je=o.div`
471
471
  display: none;
472
472
 
473
473
  ${e.media.down("lg")} {
@@ -482,14 +482,14 @@ import{r as y,j as t}from"./react-BXazHbBy.js";import{R as z,a as oe,C as ie,c a
482
482
  padding: 16px 16px 12px;
483
483
  border-radius: 16px 16px 0 0;
484
484
  }
485
- `,Xe=o.span`
485
+ `,Ve=o.span`
486
486
  font-family: ${e.font.sans};
487
487
  font-weight: 700;
488
488
  font-size: 15px;
489
489
  letter-spacing: 0.46px;
490
490
  text-transform: uppercase;
491
491
  color: ${e.colors.text};
492
- `,qe=o.button`
492
+ `,Xe=o.button`
493
493
  display: grid;
494
494
  place-items: center;
495
495
  width: 32px;
@@ -506,7 +506,7 @@ import{r as y,j as t}from"./react-BXazHbBy.js";import{R as z,a as oe,C as ie,c a
506
506
  outline: 2px solid ${e.colors.accent};
507
507
  outline-offset: 2px;
508
508
  }
509
- `,Je=o.div`
509
+ `,qe=o.div`
510
510
  display: none;
511
511
 
512
512
  ${e.media.down("lg")} {
@@ -543,4 +543,4 @@ import{r as y,j as t}from"./react-BXazHbBy.js";import{R as z,a as oe,C as ie,c a
543
543
  outline: 2px solid ${e.colors.accent};
544
544
  outline-offset: 2px;
545
545
  }
546
- `;export{qe as C,k as D,j as F,Ge as M,ye as R,Re as S,ve as a,ke as b,je as c,Se as d,Ce as e,ze as f,Be as g,We as h,Ke as i,Ve as j,Xe as k,Ue as l,Je as m,Qe as n,Me as o};
546
+ `;export{Xe as C,k as D,j as F,Ke as M,ye as R,Re as S,ve as a,ke as b,je as c,Se as d,Ce as e,ze as f,Be as g,Ge as h,Ue as i,Je as j,Ve as k,We as l,qe as m,Qe as n,Me as o};