@dcl/shop 0.1.0-30362815497.commit-35ecdbf → 0.1.0-30381451752.commit-ab871f3

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 (239) hide show
  1. package/assets/{Activity-DYOikZol.js → Activity-DSc7mvP4.js} +18 -18
  2. package/assets/{AnimatedBackground-HX4woz1t.js → AnimatedBackground-fVnlmf9F.js} +1 -1
  3. package/assets/{Assets-trIla3fm.js → Assets-CH9evMea.js} +12 -12
  4. package/assets/{Assets.styles-BN81sFiL.js → Assets.styles-CGAD6wJa.js} +5 -5
  5. package/assets/{Authorizations-9b3idzYV.js → Authorizations-DhC0rdm8.js} +4 -4
  6. package/assets/Button-DOi50GW0.js +74 -0
  7. package/assets/{Cart-DgJ2dSls.js → Cart-Cn3ZtfkI.js} +1 -1
  8. package/assets/{CircularProgress-DBX8-bxs.js → CircularProgress-JMezNnqa.js} +5 -5
  9. package/assets/{Collection-BoptXS-5.js → Collection-DjZMT60J.js} +2 -2
  10. package/assets/{CollectionCarousel-Dsbypx_Q.js → CollectionCarousel-Ck_R1F2f.js} +5 -5
  11. package/assets/{ConstantsUtil-CqaPdSAF.js → ConstantsUtil-DTrOBzCe.js} +1 -1
  12. package/assets/{ContentClient-0BEnf6CP.js → ContentClient-jyMKirlf.js} +1 -1
  13. package/assets/Creator-CMnVKtlV.js +1 -0
  14. package/assets/{DeploymentBuilder-Df9ZJakk.js → DeploymentBuilder-j08uBP-r.js} +1 -1
  15. package/assets/{ErrorNotice-D_Z5OVFI.js → ErrorNotice-BG40E5Ff.js} +1 -1
  16. package/assets/{ExchangeController-Bh5MbgEF.js → ExchangeController-C6mQYps7.js} +1 -1
  17. package/assets/{GetCredits-CbPLtnWt.js → GetCredits-5VMKvJ-K.js} +11 -11
  18. package/assets/{HelpersUtil-Bj2jMRhF.js → HelpersUtil-XXeaUDZE.js} +1 -1
  19. package/assets/ImportListings-CF7yr8q-.js +5 -0
  20. package/assets/{ItemDetail-BrPctSLd.js → ItemDetail-BY0kHQB-.js} +185 -185
  21. package/assets/{LoadMore-Cp-E67xI.js → LoadMore-BekgL6OE.js} +1 -1
  22. package/assets/MarketCheckout-GA-mHw2T.js +3 -0
  23. package/assets/{MenuList-CGv6Hx3E.js → MenuList-CkcgsIA6.js} +1 -1
  24. package/assets/{MyAssets-CCRHQYFa.js → MyAssets-ByTH-epK.js} +16 -16
  25. package/assets/{MyFavorites-CdD42WhZ.js → MyFavorites-BFzYjDUH.js} +1 -1
  26. package/assets/{NetworkUtil-DQZGJzap.js → NetworkUtil-C1aEwuOK.js} +1 -1
  27. package/assets/{NotFound-C-faFC1M.js → NotFound-TS_fVknU.js} +1 -1
  28. package/assets/NotificationsBell-Bho6wwFJ.js +34 -0
  29. package/assets/{StoreSettings-LxpZbXrk.js → StoreSettings-P1WQMPTt.js} +5 -5
  30. package/assets/{Success-DuDT9YWk.js → Success-CZvGvIYB.js} +2 -2
  31. package/assets/{SwapController-DCarrY7n.js → SwapController-DcTviSiv.js} +1 -1
  32. package/assets/{Tooltip-QUx-0PAd.js → Tooltip-Ck8OHf1K.js} +5 -5
  33. package/assets/{TradeService-WOpUOCj5.js → TradeService-CQyC0ckJ.js} +1 -1
  34. package/assets/{W3MFrameProviderSingleton-DvD-aezH.js → W3MFrameProviderSingleton-oH9nrVqa.js} +3 -3
  35. package/assets/{WebCryptoP256-KHg0PT8E.js → WebCryptoP256-D6sJ4GW3.js} +1 -1
  36. package/assets/{authorizations-CUAi4uqJ.js → authorizations-BxQ2tMzo.js} +1 -1
  37. package/assets/{basic-Bf_YtlYZ.js → basic-BRNG7iiw.js} +1 -1
  38. package/assets/{biconomy-ClJBQv0E.js → biconomy-CUHnXsx-.js} +1 -1
  39. package/assets/{browser-BgOlLsTO.js → browser-CTzRZpIE.js} +1 -1
  40. package/assets/browser-ponyfill-6L1OGOLN.js +1 -0
  41. package/assets/{browser-ponyfill-CMZ3i8tY.js → browser-ponyfill-CI1-rMvf.js} +1 -1
  42. package/assets/{builder-BFcfggvn.js → builder-DZ1jvdvk.js} +1 -1
  43. package/assets/{buy-Tme1UHVf.js → buy-C-oTH9gd.js} +1 -1
  44. package/assets/{buy-gasless-BdW9VEKq.js → buy-gasless-BlKkmgRS.js} +1 -1
  45. package/assets/cart-checkout-BQRIzuA5.js +1 -0
  46. package/assets/{categories-CV5P_HZd.js → categories-DhS9aD1g.js} +4 -4
  47. package/assets/{ccip-Dt6AwyXx.js → ccip-BQlc06tF.js} +1 -1
  48. package/assets/{ccip-BQ1iXCKX.js → ccip-x24MUJVN.js} +1 -1
  49. package/assets/{chains-Bk8fyLPj.js → chains-Znt1BTfw.js} +1 -1
  50. package/assets/collection-CB1x49ld.js +1 -0
  51. package/assets/{common-CI-kmbOq.js → common-D9tSChDa.js} +1 -1
  52. package/assets/{controller-DINKBWbu.js → controller-ab9pqJXK.js} +2 -2
  53. package/assets/{core-BAP8R3XC.js → core-Dg-XVaV5.js} +4 -4
  54. package/assets/{custom--eKw29PB.js → custom-CTXht3LT.js} +1 -1
  55. package/assets/{data-capture-B1VKtAVM.js → data-capture-gVncKP92.js} +1 -1
  56. package/assets/decimals-Bmvg-V50.js +1 -0
  57. package/assets/{decimals-CIbX1tiW.js → decimals-C4nLn1ac.js} +1 -1
  58. package/assets/{detectExtension-DObVoAzH.js → detectExtension-BgMIFAUw.js} +1 -1
  59. package/assets/{email-BLadXpqP.js → email-_DXK33a9.js} +1 -1
  60. package/assets/{embedded-wallet-BcP4ehoH.js → embedded-wallet-B_k2BCRi.js} +1 -1
  61. package/assets/emotion-styled.browser.esm-v-WGRXph.js +1 -0
  62. package/assets/{engine-DNXrnXBq.js → engine-ha18BPJJ.js} +1 -1
  63. package/assets/{errors-DCLH44Ym.js → errors-CRgGE21K.js} +1 -1
  64. package/assets/estimate-l1-fee-Bz9lwTZI.js +1 -0
  65. package/assets/eth_estimateGas-JYqF9U1i.js +1 -0
  66. package/assets/{eth_getStorageAt-y8U-lfEv.js → eth_getStorageAt--oQrWy0Q.js} +1 -1
  67. package/assets/eth_getTransactionCount-BEhAgz2O.js +1 -0
  68. package/assets/{ethereum-D72JFjbG.js → ethereum-3zUUm4Pr.js} +1 -1
  69. package/assets/{ethers-BteKixT0.js → ethers-CtVvB8eG.js} +1 -1
  70. package/assets/{execute-DZFWrHQq.js → execute-CLGkeIM4.js} +2 -2
  71. package/assets/{extractIPFS-BVwwoxM1.js → extractIPFS-BmriCqG8.js} +1 -1
  72. package/assets/{features-CU8DRP_5.js → features-BLGU5qKo.js} +1 -1
  73. package/assets/{fetchTokenMetadata-qukyHCda.js → fetchTokenMetadata-CYxDKmIt.js} +2 -2
  74. package/assets/{fortmatic-uodRBNqF.js → fortmatic-DM_o40Lo.js} +1 -1
  75. package/assets/{get-bytecode-PhqNpgKV.js → get-bytecode-C6TlbHJu.js} +1 -1
  76. package/assets/get-ecosystem-wallet-info-yJH_bkud.js +1 -0
  77. package/assets/{getBalance-BYFNEbEM.js → getBalance-CXmOkNzY.js} +2 -2
  78. package/assets/{getInstalledModules-DS4FSkHX.js → getInstalledModules-BLQxYEXn.js} +1 -1
  79. package/assets/getNFT-D0B4erfI.js +1 -0
  80. package/assets/{getNFT-CozT-FPO.js → getNFT-DysvkQcd.js} +2 -2
  81. package/assets/getThemeProps-DIwZ5N8L.js +1 -0
  82. package/assets/{hashTypedData-Shyia_b5.js → hashTypedData--HdA9-HS.js} +1 -1
  83. package/assets/{hashTypedData-COw4MIw7.js → hashTypedData-DziOW2Vc.js} +1 -1
  84. package/assets/import-CsDUWWqh.js +1 -0
  85. package/assets/{in-app-h5Z8xJLI.js → in-app-D7O2V44M.js} +1 -1
  86. package/assets/{in-app-wallet-calls-DndrTTgL.js → in-app-wallet-calls-DL6ZAl8I.js} +1 -1
  87. package/assets/{index-CxnwYMKU.js → index-7Wsfe2Up.js} +1 -1
  88. package/assets/{index-CdccZQ_A.js → index-B2DUxMjO.js} +1 -1
  89. package/assets/{index-m8asLu1c.js → index-B2t3nSe7.js} +1 -1
  90. package/assets/index-B6MKNzS8.js +1 -0
  91. package/assets/{index-CNI9E71C.js → index-B7T9Zh6O.js} +1 -1
  92. package/assets/{index-C97Z675S.js → index-BCW_w0UN.js} +1 -1
  93. package/assets/{index-CJIwpbLW.js → index-BDwWglvl.js} +1 -1
  94. package/assets/{index-C4-ffFyv.js → index-BE-vH0_t.js} +1 -1
  95. package/assets/{index-C3SS5bz4.js → index-BG7lZdfP.js} +1 -1
  96. package/assets/{index-Dj9Oj7O6.js → index-BIrUjWEF.js} +1 -1
  97. package/assets/{index-D-sEcKqr.js → index-BMMsxyuq.js} +1 -1
  98. package/assets/{index-Ded3SJr4.js → index-BTV13rXH.js} +1 -1
  99. package/assets/{index-D2m2DNID.js → index-BUrRDjD6.js} +1 -1
  100. package/assets/{index-CMYPEZgT.js → index-BZ6S4-Qy.js} +1 -1
  101. package/assets/{index-DLsq0JOY.js → index-BaUNQyyt.js} +1 -1
  102. package/assets/{index-BrDLym1R.js → index-BaYUVFML.js} +2 -2
  103. package/assets/{index-D-DRci2G.js → index-Bc2znaCv.js} +1 -1
  104. package/assets/{index-DZwpOX3I.js → index-Bg4URcJg.js} +1 -1
  105. package/assets/{index-TRWztzJI.js → index-BgsCmFBR.js} +1 -1
  106. package/assets/{index-5PxxT_Hi.js → index-BvrGtJes.js} +1 -1
  107. package/assets/{index-CFuHjg6U.js → index-C1EFfqUT.js} +1 -1
  108. package/assets/{index-CPpRxy1r.js → index-CB0_zAGI.js} +1 -1
  109. package/assets/{index-BSeusSHl.js → index-CE-8j9dT.js} +31 -31
  110. package/assets/{index-DySNHqeZ.js → index-CE3I8gyz.js} +1 -1
  111. package/assets/{index-CFFpa2x2.js → index-CI3LRVdJ.js} +1 -1
  112. package/assets/{index-iGJTuv1I.js → index-CLl3y_zB.js} +3 -3
  113. package/assets/{index-DIlrszNn.js → index-CQ2b-Icm.js} +1 -1
  114. package/assets/{index-Cs14qqbg.js → index-CQfyml-1.js} +1 -1
  115. package/assets/{index-D7uajZIF.js → index-CSZuXP_O.js} +1 -1
  116. package/assets/{index-CF84ORMp.js → index-CVa7EGSX.js} +1 -1
  117. package/assets/{index-_DXp_lqm.js → index-CYjzOXa9.js} +1 -1
  118. package/assets/{index-zSTykcGn.js → index-CZKSPj3S.js} +1 -1
  119. package/assets/{index-5TQ09pWW.js → index-Cd2tsAns.js} +1 -1
  120. package/assets/{index-nJZkl4yb.js → index-CkWJ4sTo.js} +1 -1
  121. package/assets/{index-Dj-l-ING.js → index-CkqJHGTd.js} +1 -1
  122. package/assets/{index-B-IGbYzs.js → index-Cmvj85Uh.js} +1 -1
  123. package/assets/{index-ClGkpWPa.js → index-CoKHkfgd.js} +2 -2
  124. package/assets/{index-FJnVr04j.js → index-CscFkYoq.js} +1 -1
  125. package/assets/index-Ctx_ebhF.js +2 -0
  126. package/assets/index-Cv07XGtu.js +4 -0
  127. package/assets/{index-rsuER-il.js → index-D-LfADaw.js} +1 -1
  128. package/assets/{index-CkyS_Z8N.js → index-D-UY1tLQ.js} +2 -2
  129. package/assets/{index-DonfdwAp.js → index-D9jcyP1T.js} +1 -1
  130. package/assets/{index-DSv4T_PT.js → index-DAc_icdG.js} +1 -1
  131. package/assets/{index-8yB_Vwf0.js → index-DR4iRFBm.js} +1 -1
  132. package/assets/{index-a0GqAWet.js → index-DalVAnKe.js} +1 -1
  133. package/assets/{index-BkDBPQKr.js → index-DcffeS4F.js} +1 -1
  134. package/assets/{index-CjxT1gx4.js → index-DiGXPxzb.js} +1 -1
  135. package/assets/{index-vYDwCibh.js → index-Dmk33w1E.js} +1 -1
  136. package/assets/{index-DLY0JksW.js → index-DxHwXU1C.js} +1 -1
  137. package/assets/{index-CpnWgZnn.js → index-J1CoPuuN.js} +3 -3
  138. package/assets/{index-CuziAoAD.js → index-QZtXXaW6.js} +1 -1
  139. package/assets/{index-DQWUa_ga.js → index-VytDXqCW.js} +1 -1
  140. package/assets/{index-PrsXxs3B.js → index-_Rup9P59.js} +2 -2
  141. package/assets/{index-B-7JnJnf.js → index-aJlKiR42.js} +1 -1
  142. package/assets/{index-isk6Q4SE.js → index-lTWpOCxL.js} +1 -1
  143. package/assets/{index-9s4_sQX7.js → index-m5R1RgvV.js} +1 -1
  144. package/assets/{index-CnqcuprG.js → index-mBqsXHEL.js} +3 -3
  145. package/assets/{index-RTTHiCT2.js → index-oGOYPuqO.js} +1 -1
  146. package/assets/{index-B20SJjGI.js → index-odQTruvU.js} +1 -1
  147. package/assets/{index-0df2_JuN.js → index-palPyzeM.js} +1 -1
  148. package/assets/{index-Cr75_Qxi.js → index-plri7RJC.js} +1 -1
  149. package/assets/{index-CVi7PdPM.js → index-tFmbSlHL.js} +1 -1
  150. package/assets/{index.es-CsQSB3db.js → index.es-BKZDd-uH.js} +4 -4
  151. package/assets/{index.es-CsZiAUYy.js → index.es-frivxByX.js} +1 -1
  152. package/assets/{index.es-Do3Y7r2K.js → index.es-kEVHcelo.js} +1 -1
  153. package/assets/{linkAccount-6BFCh5cx.js → linkAccount-BR5_llhd.js} +1 -1
  154. package/assets/{localBatchGatewayRequest-CbxoLL2f.js → localBatchGatewayRequest-CySxBK0P.js} +1 -1
  155. package/assets/mana-rate-iDr_vy1I.js +1 -0
  156. package/assets/{native-15jVjX8Y.js → native-BSpg_u0K.js} +1 -1
  157. package/assets/{networks-Dpsd0s9-.js → networks-3-OnX6AH.js} +1 -1
  158. package/assets/{onramp-DaQ4owbO.js → onramp-Bq5dAlFw.js} +1 -1
  159. package/assets/{openzeppelin-6LOIfZsS.js → openzeppelin-CML0yooi.js} +1 -1
  160. package/assets/{ownerOf-CFrKicrH.js → ownerOf-D9UDfElT.js} +1 -1
  161. package/assets/{parseNft-DM4WbrF2.js → parseNft-Ci6Mgfjs.js} +2 -2
  162. package/assets/{parseSignature-DJ5B7dkH.js → parseSignature-D-9wk3ib.js} +3 -3
  163. package/assets/{parseSignature-CJECbqyJ.js → parseSignature-cZaawZ6k.js} +1 -1
  164. package/assets/{passkeys-D0bGzkR-.js → passkeys-cg1VKv6x.js} +1 -1
  165. package/assets/{pay-with-exchange-DGD6NZUT.js → pay-with-exchange-BJ4Fzmz1.js} +1 -1
  166. package/assets/{prepare-contract-call-DUVOtgM0.js → prepare-contract-call-CHrp3EL4.js} +1 -1
  167. package/assets/{qr-overlay-C57bRh8h.js → qr-overlay-DxCAQFuF.js} +3 -3
  168. package/assets/{react-B36MyIP_.js → react-BW1xvPTF.js} +1 -1
  169. package/assets/{receive-Dig0fUc0.js → receive-SwsuZNQC.js} +1 -1
  170. package/assets/{resolveImplementation-D_fazAjd.js → resolveImplementation-BLaiirJ3.js} +1 -1
  171. package/assets/{rpc-ChD_4MbV.js → rpc-DmqY-iw7.js} +1 -1
  172. package/assets/{secp256k1-BClwNS_R.js → secp256k1-B873uX0r.js} +1 -1
  173. package/assets/{secp256k1-CJyNFsNt.js → secp256k1-BQjGgvAo.js} +1 -1
  174. package/assets/{secp256k1-N6PNU3bA.js → secp256k1-GhqpoPlI.js} +1 -1
  175. package/assets/{send-DAWm3Jv2.js → send-Gjj-by0g.js} +1 -1
  176. package/assets/{send-batch-transaction-Dg_fuCoW.js → send-batch-transaction-CQKczqLV.js} +1 -1
  177. package/assets/{send-eip712-transaction-BfQDidJ0.js → send-eip712-transaction-D5ErRlD2.js} +2 -2
  178. package/assets/send-gasless-transaction-C2Zr5wl9.js +2 -0
  179. package/assets/{send-transaction-CfoJI6V6.js → send-transaction-BSCBM-eH.js} +2 -2
  180. package/assets/{sendMetaTransaction-DEU_Xtzf.js → sendMetaTransaction-BMgjMfxP.js} +1 -1
  181. package/assets/{sendRawTransaction-ZYIm5xd5.js → sendRawTransaction-DIOHnRnR.js} +3 -3
  182. package/assets/{sentry-gZJVwIqQ.js → sentry-BV_ZSgtd.js} +1 -1
  183. package/assets/{serializeTransaction-CzSGVGz4.js → serializeTransaction-DLwJGyyA.js} +1 -1
  184. package/assets/{session-proposal-B0DQCL8Q.js → session-proposal-P-V7WlA3.js} +1 -1
  185. package/assets/{session-request-D7PK8aVZ.js → session-request-DXGq-vPI.js} +2 -2
  186. package/assets/{sha256-DDEIajFz.js → sha256-BImz_UXn.js} +1 -1
  187. package/assets/{signing-B8VyPC00.js → signing-B18L8hB9.js} +3 -3
  188. package/assets/{socials-KoDapNpC.js → socials-D2NhoS92.js} +1 -1
  189. package/assets/{swaps-BlxZRFZr.js → swaps-BjGN9dpo.js} +1 -1
  190. package/assets/{thirdweb-DJf-EEOv.js → thirdweb-D8LTFb7L.js} +3 -3
  191. package/assets/{to-serializable-transaction-B1lQjM9d.js → to-serializable-transaction-DvD6rPpV.js} +2 -2
  192. package/assets/{totalSupply-CGOKYv2C.js → totalSupply-D4j1WOYW.js} +1 -1
  193. package/assets/{trade-encoding-DXoI04Mc.js → trade-encoding-BjnvL03O.js} +1 -1
  194. package/assets/{transaction-C_LVUDbA.js → transaction-BOS1fhp8.js} +1 -1
  195. package/assets/{transactionReceipt-kDTd5JL7.js → transactionReceipt-6-pcmsdS.js} +1 -1
  196. package/assets/{transactions-CehNE2A8.js → transactions-uHYWIqRs.js} +1 -1
  197. package/assets/useCreditPacks-CS3eE-oJ.js +1 -0
  198. package/assets/{useInfiniteGrid-dBP53DpO.js → useInfiniteGrid-7tlbDRJY.js} +1 -1
  199. package/assets/useManaRate-1Q3qKQkm.js +1 -0
  200. package/assets/useSecondarySales-Be2j0EMT.js +1 -0
  201. package/assets/{useStore-Duh496VH.js → useStore-DCT-CgMe.js} +2 -2
  202. package/assets/useTheme-BWiusVd4.js +1 -0
  203. package/assets/{utils-swuB5ZX6.js → utils-B7rjkjB1.js} +1 -1
  204. package/assets/{verifyHash-PdDaV25N.js → verifyHash-Y9BU7-vn.js} +1 -1
  205. package/assets/{w3m-modal-Bt6VN9EP.js → w3m-modal-IJXUf9Ad.js} +1 -1
  206. package/assets/{w3m-modal-CywSQTgA.js → w3m-modal-eUhgw2D5.js} +1 -1
  207. package/assets/{wait-for-tx-receipt-Cw3p4OOt.js → wait-for-tx-receipt-ztIanYW8.js} +1 -1
  208. package/assets/{wallets-BqGvfAVQ.js → wallets-D3bPaCuK.js} +5 -5
  209. package/assets/{web-connector-CwUgIh1D.js → web-connector-C71ag9VJ.js} +3 -3
  210. package/assets/{writeContract-BCO99ptR.js → writeContract-PtF1oxgl.js} +1 -1
  211. package/assets/{zora-sepolia-BltAzWAs.js → zora-sepolia-CVS3owSi.js} +1 -1
  212. package/assets/{zoraTestnet-81flFamw.js → zoraTestnet-DoARpZBA.js} +1 -1
  213. package/index.html +11 -11
  214. package/package.json +2 -2
  215. package/assets/Button-BeodHck0.js +0 -74
  216. package/assets/Creator-Bt88BMiE.js +0 -1
  217. package/assets/ImportListings-Dza88Ul5.js +0 -5
  218. package/assets/MarketCheckout-ClTJqeTN.js +0 -3
  219. package/assets/NotificationsBell-BoZQHliJ.js +0 -34
  220. package/assets/browser-ponyfill-lfpnveOA.js +0 -1
  221. package/assets/cart-checkout-D8_UxnB9.js +0 -1
  222. package/assets/collection-CHWj8iQW.js +0 -1
  223. package/assets/decimals-CS6j__sw.js +0 -1
  224. package/assets/emotion-styled.browser.esm-CWNG-OnU.js +0 -1
  225. package/assets/estimate-l1-fee-qYVfWmvo.js +0 -1
  226. package/assets/eth_estimateGas-D2jEM0E-.js +0 -1
  227. package/assets/eth_getTransactionCount-CME439qZ.js +0 -1
  228. package/assets/get-ecosystem-wallet-info-CE-anDO0.js +0 -1
  229. package/assets/getNFT-2J_9TTUS.js +0 -1
  230. package/assets/getThemeProps-G_RkUSWj.js +0 -1
  231. package/assets/import-BgvjaGsU.js +0 -1
  232. package/assets/index-CQzsOUTd.js +0 -2
  233. package/assets/index-D6_4iqAn.js +0 -4
  234. package/assets/index-DpPUc0sl.js +0 -1
  235. package/assets/mana-rate-BJbe6lgb.js +0 -1
  236. package/assets/send-gasless-transaction-ZUIH6xn8.js +0 -2
  237. package/assets/useCreditPacks-Dg3_30xn.js +0 -1
  238. package/assets/useManaRate-CY5PbqWB.js +0 -1
  239. package/assets/useTheme-BRdkaoFm.js +0 -1
package/index.html CHANGED
@@ -16,10 +16,10 @@
16
16
  <link rel="canonical" href="https://shop.decentraland.org/" />
17
17
 
18
18
  <!-- Favicon: the Decentraland mark (same as the marketplace). -->
19
- <link rel="icon" type="image/x-icon" href="https://cdn.decentraland.org/@dcl/shop/0.1.0-30362815497.commit-35ecdbf/favicon.ico" sizes="16x16 32x32 48x48" />
20
- <link rel="apple-touch-icon" sizes="180x180" href="https://cdn.decentraland.org/@dcl/shop/0.1.0-30362815497.commit-35ecdbf/apple-touch-icon.png" />
19
+ <link rel="icon" type="image/x-icon" href="https://cdn.decentraland.org/@dcl/shop/0.1.0-30381451752.commit-ab871f3/favicon.ico" sizes="16x16 32x32 48x48" />
20
+ <link rel="apple-touch-icon" sizes="180x180" href="https://cdn.decentraland.org/@dcl/shop/0.1.0-30381451752.commit-ab871f3/apple-touch-icon.png" />
21
21
  <meta name="apple-mobile-web-app-title" content="DCL Shop" />
22
- <link rel="manifest" href="https://cdn.decentraland.org/@dcl/shop/0.1.0-30362815497.commit-35ecdbf/site.webmanifest" />
22
+ <link rel="manifest" href="https://cdn.decentraland.org/@dcl/shop/0.1.0-30381451752.commit-ab871f3/site.webmanifest" />
23
23
 
24
24
  <!-- Open Graph -->
25
25
  <meta property="og:type" content="website" />
@@ -48,7 +48,7 @@
48
48
  <meta name="twitter:image:alt" content="Decentraland Shop — wearables and emotes for your avatar" />
49
49
 
50
50
  <!-- Sitemap -->
51
- <link rel="sitemap" type="application/xml" title="Sitemap" href="https://cdn.decentraland.org/@dcl/shop/0.1.0-30362815497.commit-35ecdbf/sitemap.xml" />
51
+ <link rel="sitemap" type="application/xml" title="Sitemap" href="https://cdn.decentraland.org/@dcl/shop/0.1.0-30381451752.commit-ab871f3/sitemap.xml" />
52
52
 
53
53
  <!-- Warm the 3D preview / fonts -->
54
54
  <link rel="preconnect" href="https://fonts.googleapis.com" />
@@ -60,13 +60,13 @@
60
60
  <link rel="preconnect" href="https://wearable-preview.decentraland.org" />
61
61
  <link rel="preconnect" href="https://peer.decentraland.zone" crossorigin />
62
62
  <link rel="preconnect" href="https://peer.decentraland.org" crossorigin />
63
- <script type="module" crossorigin src="https://cdn.decentraland.org/@dcl/shop/0.1.0-30362815497.commit-35ecdbf/assets/index-BSeusSHl.js"></script>
64
- <link rel="modulepreload" crossorigin href="https://cdn.decentraland.org/@dcl/shop/0.1.0-30362815497.commit-35ecdbf/assets/react-B36MyIP_.js">
65
- <link rel="modulepreload" crossorigin href="https://cdn.decentraland.org/@dcl/shop/0.1.0-30362815497.commit-35ecdbf/assets/sentry-gZJVwIqQ.js">
66
- <link rel="modulepreload" crossorigin href="https://cdn.decentraland.org/@dcl/shop/0.1.0-30362815497.commit-35ecdbf/assets/dcl-schemas-BICTSpB5.js">
67
- <link rel="modulepreload" crossorigin href="https://cdn.decentraland.org/@dcl/shop/0.1.0-30362815497.commit-35ecdbf/assets/ethers-BteKixT0.js">
68
- <link rel="modulepreload" crossorigin href="https://cdn.decentraland.org/@dcl/shop/0.1.0-30362815497.commit-35ecdbf/assets/intl-CBcMB1D2.js">
69
- <link rel="stylesheet" crossorigin href="https://cdn.decentraland.org/@dcl/shop/0.1.0-30362815497.commit-35ecdbf/assets/index-DwufS2l2.css">
63
+ <script type="module" crossorigin src="https://cdn.decentraland.org/@dcl/shop/0.1.0-30381451752.commit-ab871f3/assets/index-CE-8j9dT.js"></script>
64
+ <link rel="modulepreload" crossorigin href="https://cdn.decentraland.org/@dcl/shop/0.1.0-30381451752.commit-ab871f3/assets/react-BW1xvPTF.js">
65
+ <link rel="modulepreload" crossorigin href="https://cdn.decentraland.org/@dcl/shop/0.1.0-30381451752.commit-ab871f3/assets/sentry-BV_ZSgtd.js">
66
+ <link rel="modulepreload" crossorigin href="https://cdn.decentraland.org/@dcl/shop/0.1.0-30381451752.commit-ab871f3/assets/dcl-schemas-BICTSpB5.js">
67
+ <link rel="modulepreload" crossorigin href="https://cdn.decentraland.org/@dcl/shop/0.1.0-30381451752.commit-ab871f3/assets/ethers-CtVvB8eG.js">
68
+ <link rel="modulepreload" crossorigin href="https://cdn.decentraland.org/@dcl/shop/0.1.0-30381451752.commit-ab871f3/assets/intl-CBcMB1D2.js">
69
+ <link rel="stylesheet" crossorigin href="https://cdn.decentraland.org/@dcl/shop/0.1.0-30381451752.commit-ab871f3/assets/index-DwufS2l2.css">
70
70
  </head>
71
71
  <body>
72
72
  <div id="root"></div>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dcl/shop",
3
- "version": "0.1.0-30362815497.commit-35ecdbf",
3
+ "version": "0.1.0-30381451752.commit-ab871f3",
4
4
  "main": "index.js",
5
5
  "author": "Decentraland",
6
6
  "license": "Apache-2.0",
@@ -8,5 +8,5 @@
8
8
  "type": "git",
9
9
  "url": "git+https://github.com/decentraland/shop.git"
10
10
  },
11
- "commit": "35ecdbf30bc1a2077516ba6ec1516ab67de47cae"
11
+ "commit": "ab871f349dc8f52ac066ad61adf313d4e264bfb2"
12
12
  }
@@ -1,74 +0,0 @@
1
- import{bc as Xe,bd as Ye,q as Ge,be as qe,Y as G,Z as b,$ as z,W as ee,X as se,bf as Ze,a2 as H,R as le,V as Ce,bg as be,bh as we,bi as w,a1 as Re,bj as Je,T as Qe,aU as eo,r as oo,a0 as B,bk as to,bl as J}from"./index-BSeusSHl.js";import{r as l,j as T,R as Y}from"./react-B36MyIP_.js";function Me(e){var o,t,i="";if(typeof e=="string"||typeof e=="number")i+=e;else if(typeof e=="object")if(Array.isArray(e)){var n=e.length;for(o=0;o<n;o++)e[o]&&(t=Me(e[o]))&&(i&&(i+=" "),i+=t)}else for(t in e)e[t]&&(i&&(i+=" "),i+=t);return i}function no(){for(var e,o,t=0,i="",n=arguments.length;t<n;t++)(e=arguments[t])&&(o=Me(e))&&(i&&(i+=" "),i+=o);return i}const io=["className","component"];function ao(e={}){const{themeId:o,defaultTheme:t,defaultClassName:i="MuiBox-root",generateClassName:n}=e,a=Xe("div",{shouldForwardProp:u=>u!=="theme"&&u!=="sx"&&u!=="as"})(Ye);return l.forwardRef(function(c,p){const f=Ge(t),g=qe(c),{className:m,component:v="div"}=g,h=G(g,io);return T.jsx(a,b({as:v,ref:p,className:no(m,n?n(i):i),theme:o&&f[o]||f},h))})}function ae(e,o){return ae=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,i){return t.__proto__=i,t},ae(e,o)}function ro(e,o){e.prototype=Object.create(o.prototype),e.prototype.constructor=e,ae(e,o)}const ge=Y.createContext(null);function so(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ce(e,o){var t=function(a){return o&&l.isValidElement(a)?o(a):a},i=Object.create(null);return e&&l.Children.map(e,function(n){return n}).forEach(function(n){i[n.key]=t(n)}),i}function lo(e,o){e=e||{},o=o||{};function t(f){return f in o?o[f]:e[f]}var i=Object.create(null),n=[];for(var a in e)a in o?n.length&&(i[a]=n,n=[]):n.push(a);var r,u={};for(var c in o){if(i[c])for(r=0;r<i[c].length;r++){var p=i[c][r];u[i[c][r]]=t(p)}u[c]=t(c)}for(r=0;r<n.length;r++)u[n[r]]=t(n[r]);return u}function A(e,o,t){return t[o]!=null?t[o]:e.props[o]}function co(e,o){return ce(e.children,function(t){return l.cloneElement(t,{onExited:o.bind(null,t),in:!0,appear:A(t,"appear",e),enter:A(t,"enter",e),exit:A(t,"exit",e)})})}function uo(e,o,t){var i=ce(e.children),n=lo(o,i);return Object.keys(n).forEach(function(a){var r=n[a];if(l.isValidElement(r)){var u=a in o,c=a in i,p=o[a],f=l.isValidElement(p)&&!p.props.in;c&&(!u||f)?n[a]=l.cloneElement(r,{onExited:t.bind(null,r),in:!0,exit:A(r,"exit",e),enter:A(r,"enter",e)}):!c&&u&&!f?n[a]=l.cloneElement(r,{in:!1}):c&&u&&l.isValidElement(p)&&(n[a]=l.cloneElement(r,{onExited:t.bind(null,r),in:p.props.in,exit:A(r,"exit",e),enter:A(r,"enter",e)}))}}),n}var po=Object.values||function(e){return Object.keys(e).map(function(o){return e[o]})},fo={component:"div",childFactory:function(o){return o}},ue=(function(e){ro(o,e);function o(i,n){var a;a=e.call(this,i,n)||this;var r=a.handleExited.bind(so(a));return a.state={contextValue:{isMounting:!0},handleExited:r,firstRender:!0},a}var t=o.prototype;return t.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},t.componentWillUnmount=function(){this.mounted=!1},o.getDerivedStateFromProps=function(n,a){var r=a.children,u=a.handleExited,c=a.firstRender;return{children:c?co(n,u):uo(n,r,u),firstRender:!1}},t.handleExited=function(n,a){var r=ce(this.props.children);n.key in r||(n.props.onExited&&n.props.onExited(a),this.mounted&&this.setState(function(u){var c=b({},u.children);return delete c[n.key],{children:c}}))},t.render=function(){var n=this.props,a=n.component,r=n.childFactory,u=G(n,["component","childFactory"]),c=this.state.contextValue,p=po(this.state.children).map(r);return delete u.appear,delete u.enter,delete u.exit,a===null?Y.createElement(ge.Provider,{value:c},p):Y.createElement(ge.Provider,{value:c},Y.createElement(a,u,p))},o})(Y.Component);ue.propTypes={};ue.defaultProps=fo;function ho(e){const{className:o,classes:t,pulsate:i=!1,rippleX:n,rippleY:a,rippleSize:r,in:u,onExited:c,timeout:p}=e,[f,g]=l.useState(!1),m=z(o,t.ripple,t.rippleVisible,i&&t.ripplePulsate),v={width:r,height:r,top:-(r/2)+a,left:-(r/2)+n},h=z(t.child,f&&t.childLeaving,i&&t.childPulsate);return!u&&!f&&g(!0),l.useEffect(()=>{if(!u&&c!=null){const C=setTimeout(c,p);return()=>{clearTimeout(C)}}},[c,u,p]),T.jsx("span",{className:m,style:v,children:T.jsx("span",{className:h})})}const E=ee("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),bo=["center","classes","className"];let oe=e=>e,me,xe,ve,ye;const re=550,go=80,mo=le(me||(me=oe`
2
- 0% {
3
- transform: scale(0);
4
- opacity: 0.1;
5
- }
6
-
7
- 100% {
8
- transform: scale(1);
9
- opacity: 0.3;
10
- }
11
- `)),xo=le(xe||(xe=oe`
12
- 0% {
13
- opacity: 1;
14
- }
15
-
16
- 100% {
17
- opacity: 0;
18
- }
19
- `)),vo=le(ve||(ve=oe`
20
- 0% {
21
- transform: scale(1);
22
- }
23
-
24
- 50% {
25
- transform: scale(0.92);
26
- }
27
-
28
- 100% {
29
- transform: scale(1);
30
- }
31
- `)),yo=H("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),Co=H(ho,{name:"MuiTouchRipple",slot:"Ripple"})(ye||(ye=oe`
32
- opacity: 0;
33
- position: absolute;
34
-
35
- &.${0} {
36
- opacity: 0.3;
37
- transform: scale(1);
38
- animation-name: ${0};
39
- animation-duration: ${0}ms;
40
- animation-timing-function: ${0};
41
- }
42
-
43
- &.${0} {
44
- animation-duration: ${0}ms;
45
- }
46
-
47
- & .${0} {
48
- opacity: 1;
49
- display: block;
50
- width: 100%;
51
- height: 100%;
52
- border-radius: 50%;
53
- background-color: currentColor;
54
- }
55
-
56
- & .${0} {
57
- opacity: 0;
58
- animation-name: ${0};
59
- animation-duration: ${0}ms;
60
- animation-timing-function: ${0};
61
- }
62
-
63
- & .${0} {
64
- position: absolute;
65
- /* @noflip */
66
- left: 0px;
67
- top: 0;
68
- animation-name: ${0};
69
- animation-duration: 2500ms;
70
- animation-timing-function: ${0};
71
- animation-iteration-count: infinite;
72
- animation-delay: 200ms;
73
- }
74
- `),E.rippleVisible,mo,re,({theme:e})=>e.transitions.easing.easeInOut,E.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,E.child,E.childLeaving,xo,re,({theme:e})=>e.transitions.easing.easeInOut,E.childPulsate,vo,({theme:e})=>e.transitions.easing.easeInOut),Ro=l.forwardRef(function(o,t){const i=se({props:o,name:"MuiTouchRipple"}),{center:n=!1,classes:a={},className:r}=i,u=G(i,bo),[c,p]=l.useState([]),f=l.useRef(0),g=l.useRef(null);l.useEffect(()=>{g.current&&(g.current(),g.current=null)},[c]);const m=l.useRef(!1),v=Ze(),h=l.useRef(null),C=l.useRef(null),_=l.useCallback(d=>{const{pulsate:R,rippleX:x,rippleY:y,rippleSize:L,cb:O}=d;p(M=>[...M,T.jsx(Co,{classes:{ripple:z(a.ripple,E.ripple),rippleVisible:z(a.rippleVisible,E.rippleVisible),ripplePulsate:z(a.ripplePulsate,E.ripplePulsate),child:z(a.child,E.child),childLeaving:z(a.childLeaving,E.childLeaving),childPulsate:z(a.childPulsate,E.childPulsate)},timeout:re,pulsate:R,rippleX:x,rippleY:y,rippleSize:L},f.current)]),f.current+=1,g.current=O},[a]),V=l.useCallback((d={},R={},x=()=>{})=>{const{pulsate:y=!1,center:L=n||R.pulsate,fakeElement:O=!1}=R;if((d==null?void 0:d.type)==="mousedown"&&m.current){m.current=!1;return}(d==null?void 0:d.type)==="touchstart"&&(m.current=!0);const M=O?null:C.current,D=M?M.getBoundingClientRect():{width:0,height:0,left:0,top:0};let P,j,F;if(L||d===void 0||d.clientX===0&&d.clientY===0||!d.clientX&&!d.touches)P=Math.round(D.width/2),j=Math.round(D.height/2);else{const{clientX:W,clientY:k}=d.touches&&d.touches.length>0?d.touches[0]:d;P=Math.round(W-D.left),j=Math.round(k-D.top)}if(L)F=Math.sqrt((2*D.width**2+D.height**2)/3),F%2===0&&(F+=1);else{const W=Math.max(Math.abs((M?M.clientWidth:0)-P),P)*2+2,k=Math.max(Math.abs((M?M.clientHeight:0)-j),j)*2+2;F=Math.sqrt(W**2+k**2)}d!=null&&d.touches?h.current===null&&(h.current=()=>{_({pulsate:y,rippleX:P,rippleY:j,rippleSize:F,cb:x})},v.start(go,()=>{h.current&&(h.current(),h.current=null)})):_({pulsate:y,rippleX:P,rippleY:j,rippleSize:F,cb:x})},[n,_,v]),S=l.useCallback(()=>{V({},{pulsate:!0})},[V]),I=l.useCallback((d,R)=>{if(v.clear(),(d==null?void 0:d.type)==="touchend"&&h.current){h.current(),h.current=null,v.start(0,()=>{I(d,R)});return}h.current=null,p(x=>x.length>0?x.slice(1):x),g.current=R},[v]);return l.useImperativeHandle(t,()=>({pulsate:S,start:V,stop:I}),[S,V,I]),T.jsx(yo,b({className:z(E.root,a.root,r),ref:C},u,{children:T.jsx(ue,{component:null,exit:!0,children:c})}))});function Mo(e){return Ce("MuiButtonBase",e)}const zo=ee("MuiButtonBase",["root","disabled","focusVisible"]),Eo=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],Bo=e=>{const{disabled:o,focusVisible:t,focusVisibleClassName:i,classes:n}=e,r=Re({root:["root",o&&"disabled",t&&"focusVisible"]},Mo,n);return t&&i&&(r.root+=` ${i}`),r},To=H("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,o)=>o.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${zo.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),$o=l.forwardRef(function(o,t){const i=se({props:o,name:"MuiButtonBase"}),{action:n,centerRipple:a=!1,children:r,className:u,component:c="button",disabled:p=!1,disableRipple:f=!1,disableTouchRipple:g=!1,focusRipple:m=!1,LinkComponent:v="a",onBlur:h,onClick:C,onContextMenu:_,onDragLeave:V,onFocus:S,onFocusVisible:I,onKeyDown:d,onKeyUp:R,onMouseDown:x,onMouseLeave:y,onMouseUp:L,onTouchEnd:O,onTouchMove:M,onTouchStart:D,tabIndex:P=0,TouchRippleProps:j,touchRippleRef:F,type:W}=i,k=G(i,Eo),K=l.useRef(null),$=l.useRef(null),Ee=be($,F),{isFocusVisibleRef:pe,onFocus:Be,onBlur:Te,ref:$e}=we(),[U,q]=l.useState(!1);p&&U&&q(!1),l.useImperativeHandle(n,()=>({focusVisible:()=>{q(!0),K.current.focus()}}),[]);const[te,Ie]=l.useState(!1);l.useEffect(()=>{Ie(!0)},[]);const Pe=te&&!f&&!p;l.useEffect(()=>{U&&m&&!f&&te&&$.current.pulsate()},[f,m,U,te]);function N(s,fe,Ke=g){return w(he=>(fe&&fe(he),!Ke&&$.current&&$.current[s](he),!0))}const ke=N("start",x),Ne=N("stop",_),Ve=N("stop",V),Se=N("stop",L),Le=N("stop",s=>{U&&s.preventDefault(),y&&y(s)}),De=N("start",D),je=N("stop",O),Fe=N("stop",M),_e=N("stop",s=>{Te(s),pe.current===!1&&q(!1),h&&h(s)},!1),Oe=w(s=>{K.current||(K.current=s.currentTarget),Be(s),pe.current===!0&&(q(!0),I&&I(s)),S&&S(s)}),ne=()=>{const s=K.current;return c&&c!=="button"&&!(s.tagName==="A"&&s.href)},ie=l.useRef(!1),We=w(s=>{m&&!ie.current&&U&&$.current&&s.key===" "&&(ie.current=!0,$.current.stop(s,()=>{$.current.start(s)})),s.target===s.currentTarget&&ne()&&s.key===" "&&s.preventDefault(),d&&d(s),s.target===s.currentTarget&&ne()&&s.key==="Enter"&&!p&&(s.preventDefault(),C&&C(s))}),Ue=w(s=>{m&&s.key===" "&&$.current&&U&&!s.defaultPrevented&&(ie.current=!1,$.current.stop(s,()=>{$.current.pulsate(s)})),R&&R(s),C&&s.target===s.currentTarget&&ne()&&s.key===" "&&!s.defaultPrevented&&C(s)});let Z=c;Z==="button"&&(k.href||k.to)&&(Z=v);const X={};Z==="button"?(X.type=W===void 0?"button":W,X.disabled=p):(!k.href&&!k.to&&(X.role="button"),p&&(X["aria-disabled"]=p));const Ae=be(t,$e,K),de=b({},i,{centerRipple:a,component:c,disabled:p,disableRipple:f,disableTouchRipple:g,focusRipple:m,tabIndex:P,focusVisible:U}),He=Bo(de);return T.jsxs(To,b({as:Z,className:z(He.root,u),ownerState:de,onBlur:_e,onClick:C,onContextMenu:Ne,onFocus:Oe,onKeyDown:We,onKeyUp:Ue,onMouseDown:ke,onMouseLeave:Le,onMouseUp:Se,onDragLeave:Ve,onTouchEnd:je,onTouchMove:Fe,onTouchStart:De,ref:Ae,tabIndex:p?-1:P,type:W},X,k,{children:[r,Pe?T.jsx(Ro,b({ref:Ee,center:a},j)):null]}))}),Io=ee("MuiBox",["root"]),Po=eo(),Uo=ao({themeId:Qe,defaultTheme:Po,defaultClassName:Io.root,generateClassName:Je.generate});function ko(e){return Ce("MuiButton",e)}const Q=ee("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),No=l.createContext({}),Vo=l.createContext(void 0),So=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],Lo=e=>{const{color:o,disableElevation:t,fullWidth:i,size:n,variant:a,classes:r}=e,u={root:["root",a,`${a}${B(o)}`,`size${B(n)}`,`${a}Size${B(n)}`,`color${B(o)}`,t&&"disableElevation",i&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${B(n)}`],endIcon:["icon","endIcon",`iconSize${B(n)}`]},c=Re(u,ko,r);return b({},r,c)},ze=e=>b({},e.size==="small"&&{"& > *:nth-of-type(1)":{fontSize:18}},e.size==="medium"&&{"& > *:nth-of-type(1)":{fontSize:20}},e.size==="large"&&{"& > *:nth-of-type(1)":{fontSize:22}}),Do=H($o,{shouldForwardProp:e=>to(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:t}=e;return[o.root,o[t.variant],o[`${t.variant}${B(t.color)}`],o[`size${B(t.size)}`],o[`${t.variant}Size${B(t.size)}`],t.color==="inherit"&&o.colorInherit,t.disableElevation&&o.disableElevation,t.fullWidth&&o.fullWidth]}})(({theme:e,ownerState:o})=>{var t,i;const n=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],a=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return b({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":b({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:J.alpha(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},o.variant==="text"&&o.color!=="inherit"&&{backgroundColor:e.vars?`rgba(${e.vars.palette[o.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:J.alpha(e.palette[o.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},o.variant==="outlined"&&o.color!=="inherit"&&{border:`1px solid ${(e.vars||e).palette[o.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[o.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:J.alpha(e.palette[o.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},o.variant==="contained"&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:a,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},o.variant==="contained"&&o.color!=="inherit"&&{backgroundColor:(e.vars||e).palette[o.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[o.color].main}}),"&:active":b({},o.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${Q.focusVisible}`]:b({},o.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${Q.disabled}`]:b({color:(e.vars||e).palette.action.disabled},o.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},o.variant==="contained"&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},o.variant==="text"&&{padding:"6px 8px"},o.variant==="text"&&o.color!=="inherit"&&{color:(e.vars||e).palette[o.color].main},o.variant==="outlined"&&{padding:"5px 15px",border:"1px solid currentColor"},o.variant==="outlined"&&o.color!=="inherit"&&{color:(e.vars||e).palette[o.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[o.color].mainChannel} / 0.5)`:`1px solid ${J.alpha(e.palette[o.color].main,.5)}`},o.variant==="contained"&&{color:e.vars?e.vars.palette.text.primary:(t=(i=e.palette).getContrastText)==null?void 0:t.call(i,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:n,boxShadow:(e.vars||e).shadows[2]},o.variant==="contained"&&o.color!=="inherit"&&{color:(e.vars||e).palette[o.color].contrastText,backgroundColor:(e.vars||e).palette[o.color].main},o.color==="inherit"&&{color:"inherit",borderColor:"currentColor"},o.size==="small"&&o.variant==="text"&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},o.size==="large"&&o.variant==="text"&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},o.size==="small"&&o.variant==="outlined"&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},o.size==="large"&&o.variant==="outlined"&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},o.size==="small"&&o.variant==="contained"&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},o.size==="large"&&o.variant==="contained"&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},o.fullWidth&&{width:"100%"})},({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${Q.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Q.disabled}`]:{boxShadow:"none"}}),jo=H("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,o)=>{const{ownerState:t}=e;return[o.startIcon,o[`iconSize${B(t.size)}`]]}})(({ownerState:e})=>b({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},ze(e))),Fo=H("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,o)=>{const{ownerState:t}=e;return[o.endIcon,o[`iconSize${B(t.size)}`]]}})(({ownerState:e})=>b({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},ze(e))),Ao=l.forwardRef(function(o,t){const i=l.useContext(No),n=l.useContext(Vo),a=oo(i,o),r=se({props:a,name:"MuiButton"}),{children:u,color:c="primary",component:p="button",className:f,disabled:g=!1,disableElevation:m=!1,disableFocusRipple:v=!1,endIcon:h,focusVisibleClassName:C,fullWidth:_=!1,size:V="medium",startIcon:S,type:I,variant:d="text"}=r,R=G(r,So),x=b({},r,{color:c,component:p,disabled:g,disableElevation:m,disableFocusRipple:v,fullWidth:_,size:V,type:I,variant:d}),y=Lo(x),L=S&&T.jsx(jo,{className:y.startIcon,ownerState:x,children:S}),O=h&&T.jsx(Fo,{className:y.endIcon,ownerState:x,children:h}),M=n||"";return T.jsxs(Do,b({ownerState:x,className:z(i.className,y.root,f,M),component:p,disabled:g,focusRipple:!v,focusVisibleClassName:z(y.focusVisible,C),ref:t,type:I},R,{classes:y,children:[L,u,O]}))});export{No as B,ge as T,ro as _,Vo as a,$o as b,Ao as c,Uo as d};
@@ -1 +0,0 @@
1
- import{a as D,j as e,L as re,d as se,b as te,r as j}from"./react-B36MyIP_.js";import{aC as oe,aD as ce,l as le,t as a,aE as E,B as ne,ay as K,e as ie,az as z,I,c as de,h as me,M as ue,as as he,aF as ge,b as xe}from"./index-BSeusSHl.js";import{d as _e,g as pe,a as Ne,A as je}from"./collection-CHWj8iQW.js";import{u as be,L as fe}from"./useStore-Duh496VH.js";import{d as $,a as ve,S as w,F as Ce,e as we,b as ke}from"./categories-CV5P_HZd.js";import{L as B}from"./LoadMore-Cp-E67xI.js";import{u as R}from"./useInfiniteGrid-dBP53DpO.js";import{E as T}from"./ErrorNotice-D_Z5OVFI.js";import"./sentry-gZJVwIqQ.js";import"./dcl-schemas-BICTSpB5.js";import"./ethers-BteKixT0.js";import"./intl-CBcMB1D2.js";import"./emotion-CSxEP8yM.js";function Pe({collection:t,cover:r,itemCount:o}){const n=D(),{contractAddress:m,name:g,creator:x}=t,N=r==null||o==null,{data:i}=oe(m,N),p=r==null?(i==null?void 0:i.items)??[]:[],h=o??(i==null?void 0:i.total);function _(){n(`/collection/${m}`)}return e.jsxs("article",{className:"coll-card",role:"link",tabIndex:0,onClick:_,onKeyDown:d=>{(d.key==="Enter"||d.key===" ")&&(d.preventDefault(),_())},children:[e.jsx("div",{className:"coll-card__media",children:r?e.jsx("img",{className:"coll-card__img","data-testid":"coll-card-img",src:r,alt:"",loading:"lazy"}):p.length>0?e.jsx(ce,{items:p,className:"coll-card__cover"}):null}),e.jsxs("div",{className:"coll-card__body",children:[e.jsx("h3",{className:"coll-card__name",title:g,children:g}),e.jsxs("div",{className:"coll-card__meta",children:[x?e.jsx(le,{address:x,className:"coll-card__creator",linkToProfile:!0}):e.jsx("span",{className:"coll-card__creator",children:" "}),e.jsx("span",{className:"coll-card__count",children:h==null?"…":a("collectionCard.itemCount",{count:h})})]}),e.jsx("button",{className:"coll-card__view",onClick:d=>{d.stopPropagation(),_()},tabIndex:-1,children:a("collectionCard.viewCollection")})]})]})}function ye({address:t,className:r=""}){const o=E(m=>m.followed.includes(t.toLowerCase())),n=E(m=>m.toggle);return t?e.jsx(ne,{type:"button",size:"sm",variant:o?"ghost":"outline",className:r||void 0,"aria-pressed":o,title:o?a("creator.unfollowTitle"):a("creator.followTitle"),onClick:()=>n(t),children:o?a("creator.following"):a("creator.follow")}):null}const Se={website:"website",twitter:"twitter",discord:"discord",facebook:"facebook"};function Le({address:t}){var d,b;const{data:r}=K(t),{data:o}=be(t),n=ie(l=>{var f;return(f=l.session)==null?void 0:f.address}),m=!!n&&n.toLowerCase()===t.toLowerCase(),g=(r==null?void 0:r.name)||z(t),x=(b=(d=r==null?void 0:r.avatar)==null?void 0:d.snapshots)==null?void 0:b.face256,N=(o==null?void 0:o.cover)||_e,i=o==null?void 0:o.description,p=`${de.profileUrl}/${t}`,h=fe.filter(l=>o==null?void 0:o.links[l]),_=pe(Ne({name:r==null?void 0:r.name,hasClaimedName:r==null?void 0:r.hasClaimedName,ethAddress:(r==null?void 0:r.ethAddress)??t}));return e.jsxs("section",{className:"creator-hero","aria-label":`${g} storefront`,children:[e.jsxs("div",{className:"creator-hero__cover",children:[e.jsx("img",{className:"creator-hero__cover-img",src:N,alt:"",loading:"eager"}),e.jsx("div",{className:"creator-hero__scrim","aria-hidden":!0})]}),(h.length>0||m)&&e.jsxs("div",{className:"creator-hero__links",children:[h.map(l=>e.jsx("a",{className:"creator-hero__link","data-testid":"creator-hero-link",href:(o==null?void 0:o.links[l])??"",target:"_blank",rel:"noopener noreferrer",title:a(`creator.link.${l}`),"aria-label":a(`creator.link.${l}`),children:e.jsx(I,{name:Se[l]})},l)),m&&e.jsx(re,{className:"creator-hero__link creator-hero__edit",to:"/store-settings",title:a("creator.editStore"),"aria-label":a("creator.editStore"),children:e.jsx(I,{name:"pen"})})]}),e.jsxs("div",{className:"creator-hero__body",children:[x?e.jsx("img",{className:"creator-hero__ava",src:x,alt:"",loading:"eager",style:{backgroundColor:_}}):e.jsx("span",{className:"creator-hero__ava creator-hero__ava--ph","aria-hidden":!0,style:{backgroundColor:_}}),e.jsxs("div",{children:[e.jsx("h2",{className:"creator-hero__name",children:g}),i?e.jsx("p",{className:"creator-hero__desc",children:i}):null]}),e.jsxs("div",{className:"creator-hero__actions",children:[e.jsx("a",{className:"creator-hero__view","data-testid":"creator-hero-view",href:p,target:"_blank",rel:"noopener noreferrer",children:a("creator.viewProfile")}),e.jsx(ye,{address:t,className:"creator-hero__follow"})]})]})]})}const U=48;function Oe(){const{address:t}=se(),r=D(),[o]=te(),n=o.has("collections"),{data:m}=K(t),g=(m==null?void 0:m.name)||(t?z(t):a("creator.fallbackName"));me({title:g,description:a("seo.creator.description",{name:g})});const[x,N]=j.useState("wearable"),[i,p]=j.useState(null),[h,_]=j.useState([]),[d,b]=j.useState(""),[l,f]=j.useState(""),[P,O]=j.useState("newest"),y=d&&!Number.isNaN(Number(d))?Number(d):void 0,S=l&&!Number.isNaN(Number(l))?Number(l):void 0,G=i?ke[i]:void 0,H=($.find(s=>s.key===P)??$[0]).server,L={creator:t,category:x,rarities:h.length?h:void 0,wearableCategories:G,minPriceCredits:y,maxPriceCredits:S,sortBy:H},{items:v,total:Y,isLoading:C,error:A,hasNextPage:W,isFetchingNextPage:F,fetchNextPage:Z}=R(["creator-listings",L],s=>he({...L,first:U,skip:s}),{enabled:!!t&&!n}),u=R(["creator-collections",t],s=>ge(t,{first:U,skip:s}).then(c=>({items:c.collections,total:c.total})),{enabled:!!t&&n});function q(s){N(s),p(null),n&&M()}function M(){const s=new URLSearchParams(o);s.delete("collections");const c=s.toString();r({search:c?`?${c}`:""},{replace:!0})}function J(){if(n){M();return}const s=new URLSearchParams(o);s.delete("collections");const c=s.toString();r({search:c?`?${c}&collections`:"?collections"},{replace:!0})}function Q(s){_(c=>c.includes(s)?c.filter(ae=>ae!==s):[...c,s])}function V(){N("wearable"),p(null),_([]),b(""),f("")}const k=!!(y||S),X=k?`${d||"0"}–${l||"∞"}`:a("filter.price"),ee=x!=="wearable"||!!i||h.length>0||k;return e.jsxs("div",{className:"collection-page",children:[e.jsxs("nav",{className:"collection-page__crumbs","aria-label":a("creator.breadcrumbAria"),children:[e.jsx("button",{className:"collection-page__crumb-link",onClick:()=>r("/assets"),children:a("creator.breadcrumb")}),e.jsx("span",{className:"collection-page__crumb-sep",children:"/"}),e.jsx("span",{className:"collection-page__crumb-current",children:g})]}),t?e.jsx(Le,{address:t}):null,!n&&!C&&v.length>0?e.jsx(je,{items:v,source:"creator"}):null,e.jsxs("div",{className:"browse browse--sidebar",children:[e.jsx("aside",{className:"browse__sidebar",children:e.jsx(ve,{category:x,subCategory:i,onCategory:q,onSub:p,title:a("creator.category"),flat:!0,collections:n,onCollections:J})}),e.jsx("div",{className:"browse__main",children:n?e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"creator-collections__bar",children:e.jsx("span",{className:"assets__count",children:u.isLoading?"…":a("creator.collectionsCount",{count:u.total})})}),u.error?e.jsx(T,{message:a("creator.error")}):null,e.jsx("div",{className:"grid grid--collections",children:u.isLoading?e.jsx(w,{count:9}):e.jsxs(e.Fragment,{children:[u.items.map(s=>e.jsx(Pe,{collection:s,itemCount:s.itemCount},s.contractAddress)),u.isFetchingNextPage?e.jsx(w,{count:6}):null]})}),e.jsx(B,{hasNextPage:u.hasNextPage,isFetching:u.isFetchingNextPage,onLoadMore:()=>void u.fetchNextPage()}),!u.isLoading&&!u.error&&u.items.length===0?e.jsx("p",{className:"muted",children:a("creator.collectionsEmpty")}):null]}):e.jsxs(e.Fragment,{children:[e.jsx(Ce,{rarities:h,onToggleRarity:Q,sort:P,onSort:O,total:Y,loading:C,anyActive:ee,onClear:V,renderTrailing:s=>e.jsx(we,{panelKey:"price",label:X,active:k,panel:s,children:e.jsxs("div",{className:"filter-pop filter-pop--price",children:[e.jsxs("div",{className:"filter-pop__price-row",children:[e.jsx("input",{type:"number",min:"0","aria-label":a("creator.priceMin"),placeholder:a("creator.priceMinPlaceholder"),value:d,onChange:c=>b(c.target.value)}),e.jsx("span",{children:"–"}),e.jsx("input",{type:"number",min:"0","aria-label":a("creator.priceMax"),placeholder:a("creator.priceMaxPlaceholder"),value:l,onChange:c=>f(c.target.value)})]}),e.jsx("p",{className:"filter-pop__hint",children:a("creator.priceHint",{currency:xe.name})})]})})}),A?e.jsx(T,{message:a("creator.error")}):null,e.jsx("div",{className:"grid",children:C?e.jsx(w,{count:15}):e.jsxs(e.Fragment,{children:[v.map(s=>e.jsx(ue,{item:s},s.id)),F?e.jsx(w,{count:6}):null]})}),e.jsx(B,{hasNextPage:W,isFetching:F,onLoadMore:()=>void Z()}),!C&&!A&&v.length===0?e.jsx("p",{className:"muted",children:a("creator.empty")}):null]})})]})]})}export{Oe as Creator,Oe as default};
@@ -1,5 +0,0 @@
1
- import{a as R,r as h,j as e,L as B}from"./react-B36MyIP_.js";import{j as U,t as s,b as S,B as k,k as C,E as $,J as Q,h as P,e as W,x as O,u as z,n as F,U as J}from"./index-BSeusSHl.js";import{i as Y,R as D,f as G}from"./import-BgvjaGsU.js";import"./sentry-gZJVwIqQ.js";import"./dcl-schemas-BICTSpB5.js";import"./ethers-BteKixT0.js";import"./intl-CBcMB1D2.js";import"./buy-Tme1UHVf.js";import"./authorizations-CUAi4uqJ.js";import"./sendMetaTransaction-DEU_Xtzf.js";import"./trade-encoding-DXoI04Mc.js";import"./mana-rate-BJbe6lgb.js";function H({queue:n,session:T,onClose:j,onDone:o}){const N=R(),d=U(T.providerType),[m,f]=h.useState(()=>n.map(()=>"pending")),[I,E]=h.useState("running"),w=h.useRef(!1);h.useEffect(()=>{if(w.current)return;w.current=!0;let t=!1;return(async()=>{for(let r=0;r<n.length;r++){if(t)return;f(u=>u.map((g,p)=>p===r?"active":g));try{await Y(n[r].item,n[r].priceCredits,T),$("Shop Migrated Listing",{item_id:n[r].item.itemId??n[r].item.oldTradeId??null,contract_address:n[r].item.contractAddress,new_price_credits:n[r].priceCredits,new_price_usd:n[r].priceCredits/10}),t||f(u=>u.map((g,p)=>p===r?"done":g))}catch(u){if(u instanceof D)Q(u,{flow:"import_listing",step:"relist",itemId:n[r].item.itemId??n[r].item.oldTradeId}),t||f(g=>g.map((p,b)=>b===r?"unlisted":p));else{const g=u,p=g.code===4001||/reject|denied|cancel/i.test(g.message??"");p||Q(u,{flow:"import_listing",itemId:n[r].item.itemId??n[r].item.oldTradeId}),t||f(b=>b.map((a,l)=>l===r?p?"skipped":"failed":a))}}}t||E("finished")})(),()=>{t=!0}},[]);const _=m.filter(t=>t==="done").length,v=m.findIndex(t=>t==="active"),x=Math.round(m.filter(t=>t!=="pending"&&t!=="active").length/n.length*100);function y(){o(),j()}if(I==="finished"){const t=m.filter(r=>r==="skipped"||r==="failed").length,c=m.filter(r=>r==="unlisted").length;return e.jsx("div",{className:"modal-backdrop",role:"presentation",children:e.jsxs("div",{className:"modal modal--success",role:"dialog","aria-modal":"true",children:[e.jsx("div",{className:"modal-success__check","aria-hidden":!0,children:"✓"}),e.jsx("h2",{className:"modal__title",children:_>0?s("migrate.successTitle"):s("migrate.nothingTitle")}),e.jsxs("p",{className:"muted",style:{margin:0},children:[_>0?s("migrate.listedSummary",{count:_,currency:S.name}):s("migrate.noneListed"),t>0?" "+s("migrate.skippedSummary",{count:t}):"",c>0?" "+s("migrate.unlistedSummary",{count:c}):""]}),e.jsxs("div",{className:"modal__actions",children:[e.jsx(k,{variant:"ghost",onClick:y,children:s("getCredits.done")}),c>0?e.jsx(k,{variant:"purple",onClick:()=>{o(),j(),N("/my-assets")},children:s("migrate.goToMyAssets")}):_>0?e.jsx(k,{variant:"purple",onClick:()=>{o(),j(),N("/assets")},children:s("migrate.viewInShop")}):null]})]})})}return e.jsx("div",{className:"modal-backdrop",role:"presentation",children:e.jsxs("div",{className:"modal migrate","data-testid":"modal",role:"dialog","aria-modal":"true","aria-live":"polite",children:[e.jsx("h2",{className:"modal__title",children:s("migrate.listingTitle")}),e.jsxs("p",{className:"muted small",style:{margin:"0 0 4px"},children:[d?s("migrate.subConfirm"):s("migrate.subManaged")," ",v>=0?s("migrate.progressCount",{current:v+1,total:n.length}):""]}),e.jsx("div",{className:"migrate__progress",children:e.jsx("div",{className:"migrate__bar",style:{width:`${x}%`}})}),e.jsx("ul",{className:"migrate__list",children:n.map((t,c)=>e.jsxs("li",{className:`migrate__row migrate__row--${m[c]}`,children:[e.jsx("span",{className:"migrate__thumb",children:t.item.thumbnail?e.jsx("img",{src:t.item.thumbnail,alt:""}):null}),e.jsx("span",{className:"migrate__name",title:t.item.name,children:t.item.name||s("migrate.itemFallback")}),e.jsxs("span",{className:"migrate__price",children:[e.jsx(C,{className:"ccy-mark"})," ",t.priceCredits.toLocaleString()]}),e.jsx("span",{className:"migrate__status",children:m[c]==="active"?e.jsxs(e.Fragment,{children:[e.jsx("span",{className:"spinner migrate__spin","aria-hidden":!0})," ",d?s("migrate.statusConfirm"):s("migrate.statusAdding")]}):m[c]==="done"?e.jsx("span",{className:"migrate__tick",children:"✓"}):m[c]==="skipped"?e.jsx("span",{className:"migrate__skip",children:s("migrate.statusSkipped")}):m[c]==="failed"?e.jsx("span",{className:"migrate__skip",children:s("migrate.statusFailed")}):m[c]==="unlisted"?e.jsx("span",{className:"migrate__skip",title:s("migrate.unlistedTooltip"),children:s("migrate.statusUnlisted")}):e.jsx("span",{className:"migrate__wait",children:s("migrate.statusWaiting")})})]},t.item.oldTradeId))}),e.jsx("p",{className:"muted small migrate__hint",children:d?s("migrate.hintConfirm"):s("migrate.hintManaged")})]})})}const A=F(k)`
2
- margin-top: 10px;
3
- `,V=F(k)`
4
- padding: 13px 24px;
5
- `,X=[{key:"creations",title:"importListings.creations.title",sub:"importListings.creations.sub"},{key:"owned",title:"importListings.owned.title",sub:"importListings.owned.sub"}];function me(){P({title:s("seo.import.title"),noindex:!0});const{session:n,signIn:T,restore:j}=W(),o=O(),N=n==null?void 0:n.address;h.useEffect(()=>{j()},[j]);const{data:d,isLoading:m}=z({queryKey:["importable",N],queryFn:()=>G(N),enabled:!!N}),[f,I]=h.useState({}),[E,w]=h.useState(new Set),[_,v]=h.useState(null),x=h.useMemo(()=>[...(d==null?void 0:d.creations)??[],...(d==null?void 0:d.owned)??[]],[d]);h.useEffect(()=>{x.length&&I(a=>{const l={...a};for(const i of x)l[i.oldTradeId]==null&&(l[i.oldTradeId]=i.suggestedCredits);return l})},[x]);const y=a=>!E.has(a),t=a=>f[a.oldTradeId]??a.suggestedCredits,c=x.filter(a=>y(a.oldTradeId)),r=c.reduce((a,l)=>a+t(l),0);function u(a,l){const i=l.replace(/[^\d]/g,"");I(L=>({...L,[a]:i===""?0:parseInt(i,10)}))}function g(a){w(l=>{const i=new Set(l);return i.has(a)?i.delete(a):i.add(a),i})}function p(a){return a.map(l=>({item:l,priceCredits:Math.max(1,t(l))}))}function b(){o.invalidateQueries({queryKey:["importable"]}),o.invalidateQueries({queryKey:["shop-items"]}),o.invalidateQueries({queryKey:["catalog-items"]}),o.invalidateQueries({queryKey:["overview-listings"]}),o.invalidateQueries({queryKey:["upsell-listings"]}),o.invalidateQueries({queryKey:["my-assets"]}),o.invalidateQueries({queryKey:["collection-sale-state"]}),J.success(s("importListings.toastUpdated"))}return n?!m&&x.length===0?e.jsxs("div",{className:"imp-empty",children:[e.jsx("span",{className:"imp-empty__ico","aria-hidden":!0,children:"✨"}),e.jsx("h1",{className:"imp-empty__title",children:s("importListings.emptyTitle")}),e.jsx("p",{className:"muted",children:s("importListings.emptyBody")}),e.jsx(A,{as:B,to:"/my-assets",variant:"purple",children:s("importListings.goToMyAssets")})]}):e.jsxs("div",{className:"imp",children:[e.jsxs("header",{className:"imp__head",children:[e.jsx("span",{className:"imp__eyebrow",children:s("importListings.eyebrow")}),e.jsxs("h1",{className:"imp__title",children:[s("importListings.titleLead")," ",e.jsx("span",{className:"imp__grad",children:s("importListings.titleAccent")})]}),e.jsx("p",{className:"imp__lede",children:s("importListings.lede",{currency:S.name})})]}),e.jsxs("div",{className:"imp__ratebar",children:[e.jsx(C,{className:"ccy-mark imp__diamond"})," ",s("importListings.rate",{currency:S.nameSingular})]}),m?e.jsx("div",{className:"imp__list",children:Array.from({length:4}).map((a,l)=>e.jsx("div",{className:"imp-row imp-row--skeleton"},l))}):X.map(a=>{const l=(d==null?void 0:d[a.key])??[];return l.length===0?null:e.jsxs("section",{className:"imp__section",children:[e.jsxs("div",{className:"imp__section-head",children:[e.jsx("h2",{className:"imp__section-title",children:s(a.title)}),e.jsx("span",{className:"imp__section-sub",children:s(a.sub)})]}),e.jsx("div",{className:"imp__list",children:l.map(i=>{const L=t(i),K=L!==i.suggestedCredits;return e.jsxs("article",{className:`imp-row${y(i.oldTradeId)?"":" is-off"}`,children:[e.jsx("input",{type:"checkbox",className:"imp-check",checked:y(i.oldTradeId),onChange:()=>g(i.oldTradeId),"aria-label":s("importListings.includeItem",{name:i.name})}),e.jsx("div",{className:"imp-thumb",children:i.thumbnail?e.jsx("img",{src:i.thumbnail,alt:""}):null}),e.jsxs("div",{className:"imp-meta",children:[e.jsx("div",{className:"imp-name",title:i.name,children:i.name||s("importListings.itemFallback")}),e.jsx("span",{className:"imp-chip",children:i.rarity})]}),e.jsxs("div",{className:"imp-price",children:[e.jsxs("div",{className:"imp-price__field",children:[e.jsx(C,{className:"ccy-mark imp-price__diamond"}),e.jsx("input",{className:"imp-price__input","data-testid":"imp-price-input",inputMode:"numeric",value:L.toLocaleString(),onChange:M=>u(i.oldTradeId,M.target.value),"aria-label":s("importListings.priceAria",{currency:S.name,name:i.name})})]}),e.jsxs("div",{className:"imp-price__sub",children:[e.jsxs("span",{children:["$",(L*.1).toFixed(2)]}),K?e.jsxs("button",{className:"imp-price__reset",onClick:()=>I(M=>({...M,[i.oldTradeId]:i.suggestedCredits})),children:[s("importListings.resetTo")," ",e.jsx(C,{className:"ccy-mark"}),i.suggestedCredits.toLocaleString()]}):null]})]}),e.jsx("div",{className:"imp-action",children:e.jsx(k,{size:"sm",className:"imp-row__list",disabled:!y(i.oldTradeId),onClick:()=>v(p([i])),children:s("importListings.list")})})]},i.oldTradeId)})})]},a.key)}),e.jsx("div",{className:"imp-dock",children:e.jsxs("div",{className:"imp-dock__inner",children:[e.jsxs("div",{className:"imp-dock__summary",children:[e.jsxs("div",{className:"imp-dock__total",children:[e.jsx(C,{className:"ccy-mark imp__diamond"})," ",r.toLocaleString()]}),e.jsx("div",{className:"imp-dock__sub",children:s("importListings.selectedSummary",{count:c.length,usd:(r*.1).toFixed(2)})})]}),e.jsx("span",{className:"imp-dock__spacer"}),e.jsx(V,{variant:"purple",disabled:c.length===0,onClick:()=>v(p(c)),children:s("importListings.listAll",{count:c.length})})]})}),_&&n?e.jsx(H,{queue:_,session:n,onClose:()=>v(null),onDone:b}):null]}):e.jsxs("div",{className:"imp-empty",children:[e.jsx("span",{className:"imp-empty__ico","aria-hidden":!0,children:"📦"}),e.jsx("h1",{className:"imp-empty__title",children:s("importListings.signInTitle")}),e.jsx("p",{className:"muted",children:s("importListings.signInBody")}),e.jsx(A,{variant:"purple",onClick:()=>T(),children:s("storeSettings.signIn")})]})}export{me as ImportListings};
@@ -1,3 +0,0 @@
1
- import{u as L,e as O,w as V,x as Y,t,y as k,k as b,z as P,A as D,b as w,f as H,i as $,D as J,E as p,F as q,G as F,n as X,B as Z}from"./index-BSeusSHl.js";import{h as ee}from"./trade-encoding-DXoI04Mc.js";import{a as re,r as h,j as r}from"./react-B36MyIP_.js";import{a as j}from"./mana-rate-BJbe6lgb.js";import{b as M}from"./buy-Tme1UHVf.js";import{b as ae,w as te,S as se,G as ie}from"./buy-gasless-BdW9VEKq.js";import{a as ce}from"./authorizations-CUAi4uqJ.js";import{i as de}from"./errors-DCLH44Ym.js";import{E as ne}from"./ErrorNotice-D_Z5OVFI.js";function pe(){const{data:e}=L({queryKey:["feature-flag","shop-secondary-sales"],queryFn:ee,staleTime:6e4,refetchOnWindowFocus:!0,retry:1});return e===!0}const Q=X(Z)`
2
- flex: 1;
3
- `;function K(e){if(de(e))return t("errors.rejected");const d=(e.message??"").toLowerCase();return d.includes("insufficient")?t("marketCheckout.error.insufficient",{currency:w.name}):d.includes("not found")||d.includes("no active listing")||d.includes("404")?t("marketCheckout.error.soldOrRemoved"):d.includes("your own listing")?t("errors.cantBuyOwn"):t("marketCheckout.error.generic")}function oe(e){return{id:e.tradeId,tradeId:e.tradeId,name:e.name,creator:e.creator,contractAddress:e.contractAddress,itemId:e.itemId,category:e.category,wearableCategory:e.wearableCategory??void 0,rarity:e.rarity,network:e.network,chainId:e.chainId,thumbnail:e.thumbnail,priceCredits:0,gender:null,isSmart:!1}}function Ce({listing:e,rate:d,onClose:A,onSold:R}){const{session:i}=O(),{data:n,isError:B}=V(i),o=Y(),N=re(),[g,f]=h.useState("confirm"),[C,S]=h.useState(t("marketCheckout.lockingPrice")),[W,v]=h.useState(null),[a,U]=h.useState(null),l=h.useRef(null),G=Math.ceil(j(e.manaWei,d)/10);h.useEffect(()=>{let u=!1;if(!i){f("error"),v(t("buyModal.signInToCheckout"));return}return(async()=>{try{const s=await H(e.tradeId);if(!s)throw new Error("not found");if($(s,i.address))throw new Error("You can't buy your own listing.");const y=j(e.manaWei,d);if(!Number.isFinite(y)||y<=0)throw new Error("price unavailable");const{credit:m,maxCreditedValue:z,usdCents:I}=await J(i.identity,y,e.tradeId);if(u){k(i.identity,[m.id]).catch(()=>{});return}l.current=m.id,U({trade:s,credit:m,maxCreditedValue:z,usdCents:I,credits:Math.ceil(I/10)}),S("")}catch(s){if(u)return;console.error("[market] authorize failed",s),p(F(s)?"Shop Purchase Cancelled":"Shop Purchase Failed",{step:"authorize",error_code:q(s),value_usd:Math.round(j(e.manaWei,d))/100}),f("error"),v(K(s))}})(),()=>{u=!0,l.current&&i&&(k(i.identity,[l.current]).catch(()=>{}),l.current=null)}},[]);const x=!!a&&n!=null&&n.credits<a.credits;async function T(){if(!i||!a)return;if(x){p("Shop Buy Credits Prompted",{from:"item_checkout",credits_needed:a.credits,credits_balance:(n==null?void 0:n.credits)??0,shortfall:Math.max(0,a.credits-((n==null?void 0:n.credits)??0))}),k(i.identity,[a.credit.id]).catch(()=>{}),l.current=null,N("/credits");return}f("working"),v(null);let u=!1;try{S(t("marketCheckout.confirming"));const c={trade:a.trade,buyer:i.address,signer:i.signer,credits:[a.credit],maxCreditedValue:a.maxCreditedValue};let s;if(ce())try{s=await ae(c),await te(s),u=!0}catch(m){if(m instanceof se)u=!0;else if(m instanceof ie)s=await M(c);else throw m}else s=await M(c);l.current=null,p("Shop Completed Purchase",{items:[{item_id:e.itemId??null,contract_address:e.contractAddress,token_id:null,price_usd:a.usdCents/100}],value_credits:a.credits,value_usd:a.usdCents/100,purchase_type:"item",is_primary:!0,payment_type:"credits",no_crypto_step:u,transaction_hash:s??null}),o.invalidateQueries({queryKey:["usd-balance"]}),o.invalidateQueries({queryKey:["detail-trade"]}),o.invalidateQueries({queryKey:["shop-item"]}),o.invalidateQueries({queryKey:["item-resales",e.contractAddress,e.itemId]}),o.invalidateQueries({queryKey:["shop-items"]}),o.invalidateQueries({queryKey:["catalog-items"]}),o.invalidateQueries({queryKey:["my-assets"]}),o.invalidateQueries({queryKey:["purchases"]});const y={items:[oe(e)],txHash:s};N("/success",{state:y})}catch(c){console.error("[market] buy now failed",c),k(i.identity,[a.credit.id]).catch(()=>{}),l.current=null,p(F(c)?"Shop Purchase Cancelled":"Shop Purchase Failed",{step:"submit",error_code:q(c),value_usd:a.usdCents/100}),o.invalidateQueries({queryKey:["usd-balance"]}),v(K(c)),f("error");const s=(c.message??"").toLowerCase();(s.includes("not found")||s.includes("no active listing")||s.includes("404"))&&R()}}function E(){i&&a&&k(i.identity,[a.credit.id]).catch(()=>{}),l.current=null,A()}const _=g==="working";return r.jsxs("div",{className:"mkt-modal",role:"dialog","aria-modal":"true","aria-label":t("buyModal.dialogAria",{name:e.name}),children:[r.jsx("div",{className:"mkt-modal__scrim",onClick:_?void 0:E,"aria-hidden":!0}),r.jsxs("div",{className:"mkt-modal__card",children:[r.jsxs("div",{className:"mkt-modal__head",children:[r.jsx("div",{className:"mkt-modal__thumb",children:e.thumbnail?r.jsx("img",{src:e.thumbnail,alt:""}):null}),r.jsxs("div",{children:[r.jsx("div",{className:"mkt-modal__name",title:e.name,children:e.name||t("buyModal.itemFallback")}),r.jsx("span",{className:"chip chip--rarity",children:e.rarity})]})]}),r.jsx("div",{className:"mkt-modal__price",children:a?r.jsxs(r.Fragment,{children:[r.jsx("div",{className:"mkt-modal__price-label",children:t("marketCheckout.finalPrice")}),r.jsxs("div",{className:"mkt-modal__price-value",children:[r.jsx(b,{className:"mkt-modal__diamond"}),P(a.credits)]}),r.jsxs("div",{className:"mkt-modal__price-sub muted",children:[t("marketCheckout.lockedForPurchase")," · $",(a.usdCents/100).toFixed(2)]})]}):r.jsxs(r.Fragment,{children:[r.jsx("div",{className:"mkt-modal__price-label",children:t("marketCheckout.todaysPrice")}),r.jsxs("div",{className:"mkt-modal__price-value mkt-modal__price-value--approx",children:[r.jsx("span",{className:"mkt-modal__approx","aria-hidden":!0,children:"≈"}),r.jsx(b,{className:"mkt-modal__diamond"}),P(G)]}),r.jsx("div",{className:"mkt-modal__price-sub muted",children:C||t("marketCheckout.lockingPrice")})]})}),i?r.jsxs("div",{className:"mkt-modal__balance muted",children:[t("marketCheckout.yourBalance")," ",r.jsx(b,{className:"ccy-mark"})," ",D(n,B)]}):null,x?r.jsx("p",{className:"muted mkt-modal__note",children:t("marketCheckout.needMore",{currency:w.name})}):null,C&&g==="working"?r.jsx("p",{className:"muted mkt-modal__note",children:C}):null,r.jsx(ne,{message:W,className:"mkt-modal__note"}),r.jsxs("div",{className:"mkt-modal__actions",children:[r.jsx(Q,{variant:"ghost",onClick:E,disabled:_,children:t("buyModal.cancel")}),r.jsx(Q,{variant:"purple",onClick:()=>void T(),disabled:_||!a,children:_?t("marketCheckout.buying"):x?t("nav.getCredits",{currency:w.name}):t("marketCheckout.confirmPurchase")})]})]})]})}export{Ce as M,pe as u};