@dcl/shop 0.1.0-29843281528.commit-80ee4fe → 0.1.0-29869835587.commit-e6e6578

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 (185) hide show
  1. package/assets/{AnimatedBackground-DuljJ5eE.js → AnimatedBackground-BvysF8a0.js} +1 -1
  2. package/assets/Assets-DoUIRoSX.js +503 -0
  3. package/assets/{Cart-DgfiEY34.js → Cart-Cyj_u0xP.js} +1 -1
  4. package/assets/{CircularProgress-CFOLSY9J.js → CircularProgress-Bf7cTa84.js} +5 -5
  5. package/assets/{Collection-Br_6eVW2.js → Collection-BFUSn0Z_.js} +2 -2
  6. package/assets/{CollectionCarousel-DijkJOGi.js → CollectionCarousel-BaK4BZqg.js} +1 -1
  7. package/assets/Creator-CTfg9WAL.js +1 -0
  8. package/assets/{CssVarsProvider-B-9OhdaT.js → CssVarsProvider-DQXUaIP8.js} +1 -1
  9. package/assets/{ExchangeController-DZeSfQ3O.js → ExchangeController-H99cRhIr.js} +1 -1
  10. package/assets/GetCredits-BqhYAHL0.js +1 -0
  11. package/assets/{HelpersUtil-CIxak-Dl.js → HelpersUtil-CN9OoRaT.js} +1 -1
  12. package/assets/{ImportListings-BupAm--j.js → ImportListings-CCQDdZMF.js} +2 -2
  13. package/assets/ItemDetail-BiAHzfHh.css +1 -0
  14. package/assets/ItemDetail-C6EEFa3M.js +78 -0
  15. package/assets/{LoadMore-DdNzWoKw.js → LoadMore-QYabEF53.js} +1 -1
  16. package/assets/MarketCheckout-B1QbAQBC.js +50 -0
  17. package/assets/{MyAssets-Bob-0Xll.js → MyAssets-gjvqMgx3.js} +3 -3
  18. package/assets/{MyFavorites-DIQniaKO.js → MyFavorites-CCbFgdqL.js} +1 -1
  19. package/assets/{MyPurchases-Ds2kIXc6.js → MyPurchases-D04-_M8f.js} +1 -1
  20. package/assets/{NotFound-CTFVq52Q.js → NotFound-ViHzr3Nr.js} +1 -1
  21. package/assets/PrimaryListModal-D6DU8-ZC.js +1 -0
  22. package/assets/{StoreSettings-CcLPXhlS.js → StoreSettings-BnHjda9z.js} +8 -8
  23. package/assets/{Success-CKgJamne.js → Success-CbfD54bz.js} +2 -2
  24. package/assets/{SwapController-BvaLktQP.js → SwapController-Tfj7j5wZ.js} +1 -1
  25. package/assets/{TradeService-BkvXSNTO.js → TradeService-kxdTGO_i.js} +1 -1
  26. package/assets/{W3MFrameProviderSingleton-CVKTirvY.js → W3MFrameProviderSingleton-BWjqHbac.js} +3 -3
  27. package/assets/{WebCryptoP256-DqHDVOgM.js → WebCryptoP256-8HU24K3x.js} +1 -1
  28. package/assets/{basic-CPzfNN7q.js → basic-DX-B5_bS.js} +1 -1
  29. package/assets/{biconomy-Dv0xaKml.js → biconomy-DIiiyQwz.js} +1 -1
  30. package/assets/{buy-C-p0vOlr.js → buy-C5_gzZWJ.js} +1 -1
  31. package/assets/{buy-gasless-80rsxFwS.js → buy-gasless-Cxx1jwuH.js} +1 -1
  32. package/assets/{cart-checkout-C8WkR2Mv.js → cart-checkout-C3WNM4cy.js} +1 -1
  33. package/assets/{categories-DMvvNpsP.js → categories-DQ55lr2p.js} +10 -10
  34. package/assets/{ccip-BwOwAXNb.js → ccip-BafcYzQ9.js} +1 -1
  35. package/assets/{ccip-BwGwocPa.js → ccip-CYEnvd4I.js} +1 -1
  36. package/assets/collection-DHOETntw.js +1 -0
  37. package/assets/{controller-CgqGHx7D.js → controller-B80HcZCL.js} +2 -2
  38. package/assets/{core-B2nfA4sd.js → core-BtRDOtev.js} +4 -4
  39. package/assets/{custom-CdZQaelR.js → custom-DiiPEfeO.js} +1 -1
  40. package/assets/{data-capture-DMW4pF-p.js → data-capture-BFGedRFL.js} +1 -1
  41. package/assets/{decimals-D67NJCrH.js → decimals-Cdn10TAV.js} +1 -1
  42. package/assets/{decimals-rp_QRWgQ.js → decimals-DCazhsdS.js} +1 -1
  43. package/assets/{detectExtension-CdyBy88S.js → detectExtension-BSAkQ0I6.js} +1 -1
  44. package/assets/{email-DbiwTCeu.js → email-D8YhsjSC.js} +1 -1
  45. package/assets/{embedded-wallet-BsM4YZGP.js → embedded-wallet-CIVu6rdk.js} +1 -1
  46. package/assets/emotion-CSxEP8yM.js +1 -0
  47. package/assets/emotion-styled.browser.esm-ClqtCiJQ.js +1 -0
  48. package/assets/{engine-BIaee4cN.js → engine-DsQHyohE.js} +1 -1
  49. package/assets/{errors-Cy2OMz1f.js → errors-BLIsDEoc.js} +1 -1
  50. package/assets/{estimate-l1-fee-gJM_qs-2.js → estimate-l1-fee-Cna0j8C0.js} +1 -1
  51. package/assets/{eth_estimateGas-D2ajTk6Z.js → eth_estimateGas-A7dV8Dq8.js} +1 -1
  52. package/assets/{eth_getStorageAt-BvK-sxlh.js → eth_getStorageAt-DVqXAuzZ.js} +1 -1
  53. package/assets/{eth_getTransactionCount-YDPYaO31.js → eth_getTransactionCount-DLrwUt6V.js} +1 -1
  54. package/assets/{extractIPFS-jmhJ6PDc.js → extractIPFS-Dq1wghef.js} +1 -1
  55. package/assets/{features-DliQhpqn.js → features-CFz8G3yF.js} +1 -1
  56. package/assets/{fetchTokenMetadata-e-tnU9jP.js → fetchTokenMetadata-BTRazXId.js} +2 -2
  57. package/assets/{get-ecosystem-wallet-info-CZC3jXDk.js → get-ecosystem-wallet-info-B8H2bbhI.js} +1 -1
  58. package/assets/{getBalance-DW56jwnz.js → getBalance-BewKvJ6T.js} +1 -1
  59. package/assets/{getInstalledModules-DnVuL5FL.js → getInstalledModules-ByFUGStC.js} +1 -1
  60. package/assets/{getNFT-BrnrnPkZ.js → getNFT-1nUsfQAJ.js} +1 -1
  61. package/assets/{getNFT-DS4NW5JT.js → getNFT-BuDjU8-b.js} +2 -2
  62. package/assets/{getOverlayAlpha-BYOq19Nw.js → getOverlayAlpha-B_CoLTSj.js} +1 -1
  63. package/assets/{hashTypedData-CwfOunhR.js → hashTypedData-BYNsvxyc.js} +1 -1
  64. package/assets/{hashTypedData-y5e_N0pF.js → hashTypedData-DHR5yJit.js} +1 -1
  65. package/assets/{import-DGp843-7.js → import-CWsWpkUA.js} +1 -1
  66. package/assets/{in-app-wallet-calls-ByxidTQ9.js → in-app-wallet-calls-Fj_OJpWi.js} +1 -1
  67. package/assets/{index-CRwyTQtp.js → index--JSSHFMQ.js} +1 -1
  68. package/assets/{index-CczWbtzB.js → index-07n_zhYq.js} +1 -1
  69. package/assets/{index-kB2cGSV_.js → index-2yTqM9xZ.js} +1 -1
  70. package/assets/{index-BOxK6fGr.js → index-B04ndUbB.js} +2 -2
  71. package/assets/{index-BCJ8zpyP.js → index-B3vzzuVP.js} +1 -1
  72. package/assets/{index-DHR1PStF.js → index-B4OkjZ5Z.js} +3 -3
  73. package/assets/{index-DsA36hey.js → index-B4p2eLga.js} +1 -1
  74. package/assets/index-BBuZMaWr.js +231 -0
  75. package/assets/{index-CAlaPEFD.js → index-BCGZozX2.js} +1 -1
  76. package/assets/{index-CEE7Cn_g.js → index-BDRB8FDm.js} +1 -1
  77. package/assets/{index-m29akl6f.js → index-BDfpUFpd.js} +1 -1
  78. package/assets/{index-5c0GQ1Nl.js → index-BMFRmVon.js} +1 -1
  79. package/assets/{index-DJ4kGSWA.js → index-BQwZ_U1w.js} +1 -1
  80. package/assets/{index-BX4FwzVP.js → index-BSjx8-a9.js} +1 -1
  81. package/assets/{index-CqiRo3Zn.js → index-BmxotHif.js} +1 -1
  82. package/assets/{index-E8b-gnkf.js → index-BtmcJRGy.js} +1 -1
  83. package/assets/{index-Hi72v_of.js → index-BuMOiAUw.js} +1 -1
  84. package/assets/{index-BJi9mWLa.js → index-BufR0bxC.js} +1 -1
  85. package/assets/{index-nLudmUJ4.js → index-C7VPGrdO.js} +1 -1
  86. package/assets/{index-BLFpf7VZ.js → index-CN5ZLDnc.js} +1 -1
  87. package/assets/{index-CthUHORI.js → index-CTwiT5J0.js} +1 -1
  88. package/assets/{index-B2az3PiP.js → index-CWuMb79R.js} +3 -3
  89. package/assets/{index-BVNelofo.js → index-CXYokVDz.js} +1 -1
  90. package/assets/{index-BVLvW024.js → index-C_jKIil3.js} +1 -1
  91. package/assets/{index-BqZuhkNd.js → index-CaHcCfyv.js} +1 -1
  92. package/assets/{index-WmhNuNqi.js → index-CcJuo_B4.js} +1 -1
  93. package/assets/{index-CnR9-WYz.js → index-CdfmzGmf.js} +1 -1
  94. package/assets/{index-DNGMKwFA.js → index-Cmi7sq59.js} +1 -1
  95. package/assets/{index-B0v1VfMr.js → index-Cr7q_wI-.js} +1 -1
  96. package/assets/{index-BoOFl8c5.js → index-CtzfdSwK.js} +1 -1
  97. package/assets/{index-ygPPQNgl.js → index-Cuf2In7m.js} +1 -1
  98. package/assets/{index-BR727Jzt.js → index-Cuq6iGY1.js} +1 -1
  99. package/assets/{index-BJMmq_1b.js → index-Cv6TsksD.js} +1 -1
  100. package/assets/{index-DM2l6nmY.js → index-CwWLPHI8.js} +1 -1
  101. package/assets/{index-g4vOnab2.js → index-CzDOjIXr.js} +1 -1
  102. package/assets/{index-BWP2Fumx.js → index-DJsdR_Dh.js} +1 -1
  103. package/assets/{index-ChULorg8.js → index-Da6whmyR.js} +1 -1
  104. package/assets/{index-Dt2sCUK8.js → index-DfnBxBKK.js} +2 -2
  105. package/assets/{index-BhjB6g3C.js → index-Dhu9IXc1.js} +1 -1
  106. package/assets/{index-BRDfjRE7.js → index-DkfyzgR8.js} +1 -1
  107. package/assets/{index-BT3aLy2n.js → index-Do7lLz-O.js} +1 -1
  108. package/assets/{index-1HD-ZiOz.js → index-FUu8bz4c.js} +1 -1
  109. package/assets/{index-CXBJ9EIH.js → index-PGZV0u8x.js} +1 -1
  110. package/assets/index-PISx9bvm.css +1 -0
  111. package/assets/{index-D51Jnqov.js → index-Y6b_vUQr.js} +1 -1
  112. package/assets/{index-Bu8ostX3.js → index-fOZ3JG1l.js} +1 -1
  113. package/assets/{index-MuXuv7Gk.js → index-g3sxw2b2.js} +2 -2
  114. package/assets/{index-rvOCdvOD.js → index-goSkKmOv.js} +1 -1
  115. package/assets/{index-CqSBxYu9.js → index-gvpjFbR1.js} +1 -1
  116. package/assets/{index-DJoRdzge.js → index-mfpj9mGL.js} +1 -1
  117. package/assets/{index-DI8CjH9V.js → index-nRbKhfJe.js} +2 -2
  118. package/assets/{index-td4pFZfG.js → index-tKIgdudq.js} +1 -1
  119. package/assets/{index.es-Bvwb44-d.js → index.es-BsTkmkjS.js} +1 -1
  120. package/assets/{index.es-C7AZp5D9.js → index.es-CiHN99GO.js} +1 -1
  121. package/assets/{index.es-F7YT6EP3.js → index.es-Dvmu0NoU.js} +4 -4
  122. package/assets/loader-logo-CK-TcJ-S.js +1 -0
  123. package/assets/{localBatchGatewayRequest-zR7Ha1uQ.js → localBatchGatewayRequest-Cej95COc.js} +1 -1
  124. package/assets/{mana-rate-B9PgPeC4.js → mana-rate-Disk-ReT.js} +1 -1
  125. package/assets/{networks-dXDx9gAD.js → networks-Dapm2cWP.js} +1 -1
  126. package/assets/{onramp-fNtRJPac.js → onramp-DLQLHSLI.js} +1 -1
  127. package/assets/{openzeppelin-sYEux5UU.js → openzeppelin-B2ua0Itn.js} +1 -1
  128. package/assets/{ownerOf-CnmeWudT.js → ownerOf-DOppg2jR.js} +1 -1
  129. package/assets/{parseNft-T29OsJ6m.js → parseNft-D_8M9mfO.js} +2 -2
  130. package/assets/{parseSignature-D06Xu3Gf.js → parseSignature-BUx9b-zW.js} +3 -3
  131. package/assets/{parseSignature-C6Ri9jBZ.js → parseSignature-O3FZfUUc.js} +1 -1
  132. package/assets/{pay-with-exchange-BoMmA1Tj.js → pay-with-exchange-DaiVhZAg.js} +1 -1
  133. package/assets/{qr-overlay-beGwyXqx.js → qr-overlay-CGmkZvV0.js} +1 -1
  134. package/assets/{receive-D4ql0UiI.js → receive-DVL3YCyE.js} +1 -1
  135. package/assets/{resolveImplementation-DQuU7tt4.js → resolveImplementation-06H3horI.js} +1 -1
  136. package/assets/{rpc-dvg5kHBi.js → rpc-q1fg-PaK.js} +1 -1
  137. package/assets/{secp256k1-BRQHdiKx.js → secp256k1-D6rN1PGV.js} +1 -1
  138. package/assets/{secp256k1-BiBpjJ-Y.js → secp256k1-DT5nTJQH.js} +1 -1
  139. package/assets/{secp256k1-DzCAsKA4.js → secp256k1-Dj-unqH_.js} +1 -1
  140. package/assets/{send-DsvtMOwS.js → send-CjhoocaG.js} +1 -1
  141. package/assets/{send-batch-transaction-BI7PszNe.js → send-batch-transaction-Bbiva6rb.js} +1 -1
  142. package/assets/{send-eip712-transaction-DkDZjHS-.js → send-eip712-transaction-NxK7USDp.js} +2 -2
  143. package/assets/{send-gasless-transaction-BWiIvBJH.js → send-gasless-transaction-x5mofsoE.js} +2 -2
  144. package/assets/{sendRawTransaction-CJYjLdky.js → sendRawTransaction-CxX-WJOv.js} +3 -3
  145. package/assets/{serializeTransaction-DsE3bqzt.js → serializeTransaction-KtBgxNjB.js} +1 -1
  146. package/assets/{session-proposal-C87UteoU.js → session-proposal-KoaDAo-a.js} +1 -1
  147. package/assets/{session-request-Dp0rC7zH.js → session-request-CSef7ndM.js} +2 -2
  148. package/assets/{sha256-D0Lh0Apw.js → sha256-DkPvB4om.js} +1 -1
  149. package/assets/{signing-BPU6VB4U.js → signing-B9F_g0GG.js} +4 -4
  150. package/assets/{socials-DS6Oy5zA.js → socials-BqxUUXtR.js} +1 -1
  151. package/assets/{swaps-D1v4d6OG.js → swaps-EDZta6zk.js} +1 -1
  152. package/assets/{thirdweb-C4HaRY0z.js → thirdweb-D99mQjH-.js} +3 -3
  153. package/assets/{totalSupply-BeKwmSJ8.js → totalSupply-BhpAtMjH.js} +1 -1
  154. package/assets/{trade-encoding-DWEKE2_D.js → trade-encoding-CWytSFjw.js} +1 -1
  155. package/assets/{transactionReceipt-hL0wb2x7.js → transactionReceipt-OilL7-NS.js} +1 -1
  156. package/assets/{transactions-D8hLtdUl.js → transactions-CGvL3Aj1.js} +1 -1
  157. package/assets/useInfiniteGrid-CpiD11c4.js +1 -0
  158. package/assets/{useStore-JJzXYl67.js → useStore-CQIJvFZA.js} +1 -1
  159. package/assets/useTheme-6tr3eE7K.js +1 -0
  160. package/assets/useTheme-Dpdkvivv.js +1 -0
  161. package/assets/{verifyHash-8JWQpVAA.js → verifyHash-2hJaw2xF.js} +1 -1
  162. package/assets/{w3m-modal-BsLEDK_w.js → w3m-modal-CXTIrAhw.js} +1 -1
  163. package/assets/{w3m-modal-C6EBRfim.js → w3m-modal-DZpfNka8.js} +1 -1
  164. package/assets/{wait-for-tx-receipt-Dwtf8AK-.js → wait-for-tx-receipt-Dt-8wYDQ.js} +1 -1
  165. package/assets/{wallets-gXvJ-4C5.js → wallets-v6YyPYY8.js} +6 -6
  166. package/assets/{web-connector-DF_01FjF.js → web-connector-DBKfHuJF.js} +3 -3
  167. package/assets/{writeContract-w2MHfkK2.js → writeContract-CJkUo9D7.js} +1 -1
  168. package/assets/{zoraTestnet-B_HTvQOr.js → zoraTestnet-CRD_79WO.js} +1 -1
  169. package/index.html +11 -11
  170. package/package.json +2 -2
  171. package/assets/Assets-C_Pb_gKM.js +0 -503
  172. package/assets/Creator-CXMSNUos.js +0 -1
  173. package/assets/GetCredits-Dc4MRaep.js +0 -1
  174. package/assets/ItemDetail-CGF_X4b-.js +0 -48
  175. package/assets/ItemDetail-CV-0-ZkB.css +0 -1
  176. package/assets/MarketCheckout-Cec3x9i9.js +0 -3
  177. package/assets/PrimaryListModal-Ca5_30gC.js +0 -1
  178. package/assets/collection-DPrYZX6W.js +0 -1
  179. package/assets/emotion-styled.browser.esm-exjoQmBi.js +0 -1
  180. package/assets/index-BqifAYYN.css +0 -1
  181. package/assets/index-T-zasmbE.js +0 -231
  182. package/assets/loader-logo-sfRgTXGv.js +0 -1
  183. package/assets/useInfiniteGrid-DtqZsW6Q.js +0 -1
  184. package/assets/useTheme-B1XbAz3A.js +0 -1
  185. package/assets/useTheme-Cke4HwaD.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-29843281528.commit-80ee4fe/favicon.ico" sizes="16x16 32x32 48x48" />
20
- <link rel="apple-touch-icon" sizes="180x180" href="https://cdn.decentraland.org/@dcl/shop/0.1.0-29843281528.commit-80ee4fe/apple-touch-icon.png" />
19
+ <link rel="icon" type="image/x-icon" href="https://cdn.decentraland.org/@dcl/shop/0.1.0-29869835587.commit-e6e6578/favicon.ico" sizes="16x16 32x32 48x48" />
20
+ <link rel="apple-touch-icon" sizes="180x180" href="https://cdn.decentraland.org/@dcl/shop/0.1.0-29869835587.commit-e6e6578/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-29843281528.commit-80ee4fe/site.webmanifest" />
22
+ <link rel="manifest" href="https://cdn.decentraland.org/@dcl/shop/0.1.0-29869835587.commit-e6e6578/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-29843281528.commit-80ee4fe/sitemap.xml" />
51
+ <link rel="sitemap" type="application/xml" title="Sitemap" href="https://cdn.decentraland.org/@dcl/shop/0.1.0-29869835587.commit-e6e6578/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-29843281528.commit-80ee4fe/assets/index-T-zasmbE.js"></script>
64
- <link rel="modulepreload" crossorigin href="https://cdn.decentraland.org/@dcl/shop/0.1.0-29843281528.commit-80ee4fe/assets/react-C51i12iP.js">
65
- <link rel="modulepreload" crossorigin href="https://cdn.decentraland.org/@dcl/shop/0.1.0-29843281528.commit-80ee4fe/assets/dcl-schemas-BICTSpB5.js">
66
- <link rel="modulepreload" crossorigin href="https://cdn.decentraland.org/@dcl/shop/0.1.0-29843281528.commit-80ee4fe/assets/sentry-DKBoGDXH.js">
67
- <link rel="modulepreload" crossorigin href="https://cdn.decentraland.org/@dcl/shop/0.1.0-29843281528.commit-80ee4fe/assets/ethers-BeFqf2KO.js">
68
- <link rel="modulepreload" crossorigin href="https://cdn.decentraland.org/@dcl/shop/0.1.0-29843281528.commit-80ee4fe/assets/intl-CBcMB1D2.js">
69
- <link rel="stylesheet" crossorigin href="https://cdn.decentraland.org/@dcl/shop/0.1.0-29843281528.commit-80ee4fe/assets/index-BqifAYYN.css">
63
+ <script type="module" crossorigin src="https://cdn.decentraland.org/@dcl/shop/0.1.0-29869835587.commit-e6e6578/assets/index-BBuZMaWr.js"></script>
64
+ <link rel="modulepreload" crossorigin href="https://cdn.decentraland.org/@dcl/shop/0.1.0-29869835587.commit-e6e6578/assets/react-C51i12iP.js">
65
+ <link rel="modulepreload" crossorigin href="https://cdn.decentraland.org/@dcl/shop/0.1.0-29869835587.commit-e6e6578/assets/dcl-schemas-BICTSpB5.js">
66
+ <link rel="modulepreload" crossorigin href="https://cdn.decentraland.org/@dcl/shop/0.1.0-29869835587.commit-e6e6578/assets/sentry-DKBoGDXH.js">
67
+ <link rel="modulepreload" crossorigin href="https://cdn.decentraland.org/@dcl/shop/0.1.0-29869835587.commit-e6e6578/assets/ethers-BeFqf2KO.js">
68
+ <link rel="modulepreload" crossorigin href="https://cdn.decentraland.org/@dcl/shop/0.1.0-29869835587.commit-e6e6578/assets/intl-CBcMB1D2.js">
69
+ <link rel="stylesheet" crossorigin href="https://cdn.decentraland.org/@dcl/shop/0.1.0-29869835587.commit-e6e6578/assets/index-PISx9bvm.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-29843281528.commit-80ee4fe",
3
+ "version": "0.1.0-29869835587.commit-e6e6578",
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": "80ee4feb9edf1a6eb3152de21bf147ddfb78c899"
11
+ "commit": "e6e6578f3ea743151d0d7dd868df4edc09d818eb"
12
12
  }
@@ -1,503 +0,0 @@
1
- import{r as l,j as t,b as Se}from"./react-C51i12iP.js";import{s as i,a8 as e,I as O,t as n,ah as me,h as G,m as je,u as ve,v as ie,A as se,ai as ke}from"./index-T-zasmbE.js";import{m as Ce}from"./mana-rate-B9PgPeC4.js";import{u as Re,M as Ne}from"./MarketCheckout-Cec3x9i9.js";import{n as $,R as ee,C as Pe,a as Fe,b as _e,S as ne,F as ze,c as re,d as Ie}from"./categories-DMvvNpsP.js";import{L as Te}from"./LoadMore-DdNzWoKw.js";import{u as Ae}from"./useInfiniteGrid-DtqZsW6Q.js";import{E as Ee}from"./ErrorNotice-C7soUjRV.js";import"./dcl-schemas-BICTSpB5.js";import"./sentry-DKBoGDXH.js";import"./ethers-BeFqf2KO.js";import"./intl-CBcMB1D2.js";import"./index-HN6Rk25C.js";import"./buy-C-p0vOlr.js";import"./trade-encoding-DWEKE2_D.js";import"./buy-gasless-80rsxFwS.js";import"./errors-Cy2OMz1f.js";const Le=i.div`
2
- display: flex;
3
- flex-direction: column;
4
- gap: 12px;
5
- width: 100%;
6
- `,K=i.div`
7
- height: 1px;
8
- background: ${e.colors.media};
9
- width: 100%;
10
- `,Me=i.div`
11
- display: flex;
12
- flex-direction: column;
13
- width: 100%;
14
- `,Oe=i("button",$("desktopStatic"))`
15
- display: flex;
16
- align-items: center;
17
- justify-content: space-between;
18
- gap: 8px;
19
- width: 100%;
20
- height: 40px;
21
- padding: 4px;
22
- border: 0;
23
- border-radius: 4px;
24
- background: transparent;
25
- color: ${e.colors.text};
26
- text-align: left;
27
- cursor: pointer;
28
-
29
- ${e.media.down("lg")} {
30
- height: 52px;
31
- }
32
-
33
- @media (hover: hover) {
34
- &:hover {
35
- background: #f5f4f7;
36
- }
37
- }
38
- &:focus-visible {
39
- outline: 2px solid ${e.colors.accent};
40
- outline-offset: 2px;
41
- }
42
-
43
- ${({desktopStatic:o})=>o?`${e.media.up("lg")} {
44
- cursor: default;
45
- &:hover { background: transparent; }
46
- }`:""}
47
- `,qe=i.span`
48
- font-family: ${e.font.sans};
49
- font-weight: 600;
50
- font-size: 14px;
51
- line-height: 1.43;
52
- color: ${e.colors.text};
53
-
54
- ${e.media.down("lg")} {
55
- font-size: 16px;
56
- }
57
- `,He=i.span`
58
- display: inline-flex;
59
- ${e.media.up("lg")} {
60
- display: none;
61
- }
62
- `,We=i("p",$("desktopHidden"))`
63
- margin: 0;
64
- padding: 0 4px 4px;
65
- font-family: ${e.font.sans};
66
- font-weight: 400;
67
- font-size: 12px;
68
- line-height: normal;
69
- color: ${e.colors.muted};
70
- text-transform: capitalize;
71
-
72
- ${({desktopHidden:o})=>o?`${e.media.up("lg")} { display: none; }`:""}
73
- `,Be=i("div",$("open","desktopStatic"))`
74
- display: grid;
75
- grid-template-rows: ${({open:o})=>o?"1fr":"0fr"};
76
- transition: grid-template-rows 0.22s ease;
77
-
78
- ${({desktopStatic:o})=>o?`${e.media.up("lg")} { grid-template-rows: 1fr; }`:""}
79
-
80
- @media (prefers-reduced-motion: reduce) {
81
- transition: none;
82
- }
83
- `,De=i.div`
84
- overflow: hidden;
85
- min-height: 0;
86
- `,Ye=i.div`
87
- display: flex;
88
- align-items: flex-end;
89
- justify-content: center;
90
- gap: 6px;
91
- padding: 8px 4px 0;
92
- `,ae=i.label`
93
- display: flex;
94
- flex: 1;
95
- min-width: 0;
96
- flex-direction: column;
97
- gap: 4px;
98
- `,le=i.span`
99
- font-family: ${e.font.sans};
100
- font-weight: 400;
101
- font-size: 12px;
102
- color: ${e.colors.muted};
103
- `,ce=i.span`
104
- display: flex;
105
- align-items: center;
106
- gap: 4px;
107
- height: 42px;
108
- padding: 8px;
109
- border: 0.5px solid ${e.colors.text};
110
- border-radius: 8px;
111
- background: ${e.colors.white};
112
-
113
- &:focus-within {
114
- border-color: ${e.rarities.epic};
115
- }
116
- `,de=i(O)`
117
- width: 16px;
118
- height: 16px;
119
- color: ${e.colors.rarity};
120
- `,pe=i.input`
121
- width: 100%;
122
- min-width: 0;
123
- border: 0;
124
- background: none;
125
- padding: 0;
126
- font-family: ${e.font.sans};
127
- font-size: 13px;
128
- color: ${e.colors.text};
129
-
130
- &:focus {
131
- outline: 0;
132
- }
133
- &::-webkit-outer-spin-button,
134
- &::-webkit-inner-spin-button {
135
- -webkit-appearance: none;
136
- margin: 0;
137
- }
138
- `,Ge=i.span`
139
- padding-bottom: 12px;
140
- color: ${e.colors.text};
141
- font-family: ${e.font.sans};
142
- font-size: 13px;
143
- `,Ke=i.div`
144
- position: relative;
145
- height: 20px;
146
- margin: 24px 4px 0;
147
- `,Ue=i.div`
148
- position: absolute;
149
- top: 50%;
150
- left: 0;
151
- right: 0;
152
- height: 2px;
153
- transform: translateY(-50%);
154
- background: ${e.colors.media};
155
- border-radius: 2px;
156
- `,Qe=i("div",$("minPct","maxPct"))`
157
- position: absolute;
158
- top: 50%;
159
- height: 2px;
160
- transform: translateY(-50%);
161
- left: ${({minPct:o})=>`${o}%`};
162
- right: ${({maxPct:o})=>`${100-o}%`};
163
- background: ${e.colors.rarity};
164
- border-radius: 2px;
165
- `,xe=i.input`
166
- position: absolute;
167
- top: 0;
168
- left: 0;
169
- width: 100%;
170
- height: 20px;
171
- margin: 0;
172
- -webkit-appearance: none;
173
- appearance: none;
174
- background: none;
175
- pointer-events: none;
176
-
177
- &::-webkit-slider-thumb {
178
- -webkit-appearance: none;
179
- appearance: none;
180
- pointer-events: auto;
181
- width: 16px;
182
- height: 16px;
183
- border-radius: 50%;
184
- background: ${e.colors.white};
185
- border: 2px solid ${e.colors.rarity};
186
- box-shadow: 0 1px 3px rgba(22, 21, 24, 0.25);
187
- cursor: pointer;
188
- }
189
- &::-moz-range-thumb {
190
- pointer-events: auto;
191
- width: 16px;
192
- height: 16px;
193
- border-radius: 50%;
194
- background: ${e.colors.white};
195
- border: 2px solid ${e.colors.rarity};
196
- box-shadow: 0 1px 3px rgba(22, 21, 24, 0.25);
197
- cursor: pointer;
198
- }
199
- `,Je=i.div`
200
- display: flex;
201
- align-items: center;
202
- justify-content: space-between;
203
- padding: 12px 4px 0;
204
- `,ue=i.span`
205
- display: inline-flex;
206
- align-items: center;
207
- gap: 2px;
208
- font-family: ${e.font.sans};
209
- font-size: 13px;
210
- color: ${e.colors.text};
211
- `,he=i(O)`
212
- width: 16px;
213
- height: 16px;
214
- color: ${e.colors.text};
215
- `,Ve=i.div`
216
- display: flex;
217
- flex-wrap: wrap;
218
- gap: 12px;
219
- padding: 9px 4px 9px 8px;
220
-
221
- ${e.media.down("lg")} {
222
- gap: 12px 16px;
223
- }
224
- `,Xe=i("button",$("selected"))`
225
- display: inline-flex;
226
- align-items: center;
227
- gap: 4px;
228
- padding: 4px 8px;
229
- border-radius: 6px;
230
- background: ${e.colors.softWhite};
231
- border: ${({selected:o})=>o?`1px solid ${e.colors.text}`:`0.5px solid ${e.colors.gray4}`};
232
- cursor: pointer;
233
-
234
- &:hover {
235
- border-color: ${e.colors.text};
236
- }
237
- &:focus-visible {
238
- outline: 2px solid ${e.colors.accent};
239
- outline-offset: 2px;
240
- }
241
- `,Ze=i("span",$("color"))`
242
- position: relative;
243
- width: 16px;
244
- height: 16px;
245
- border-radius: 4px;
246
- background: ${({color:o})=>o};
247
- flex: none;
248
- `,et=i(O)`
249
- position: absolute;
250
- inset: 0;
251
- width: 16px;
252
- height: 16px;
253
- color: ${e.colors.white};
254
- `,tt=i("span",$("selected"))`
255
- font-family: ${e.font.sans};
256
- font-weight: ${({selected:o})=>o?600:400};
257
- font-size: 12px;
258
- line-height: 1.43;
259
- color: ${({selected:o})=>o?e.colors.text2:e.colors.gray0};
260
- text-transform: capitalize;
261
-
262
- ${e.media.down("lg")} {
263
- font-size: 14px;
264
- }
265
- `,ot=i.label`
266
- display: flex;
267
- align-items: center;
268
- gap: 8px;
269
- height: 40px;
270
- padding: 4px 4px 4px 24px;
271
- cursor: pointer;
272
- `,it=i.input`
273
- width: 18px;
274
- height: 18px;
275
- margin: 0;
276
- accent-color: ${e.colors.accent};
277
- cursor: pointer;
278
- flex: none;
279
- `,st=i.span`
280
- font-family: ${e.font.sans};
281
- font-weight: 400;
282
- font-size: 14px;
283
- line-height: 1.43;
284
- color: ${e.colors.gray0};
285
- `,nt=i.div`
286
- display: flex;
287
- align-items: center;
288
- justify-content: space-between;
289
- gap: 8px;
290
- width: 100%;
291
- height: 40px;
292
- padding: 4px;
293
-
294
- /* On mobile SMART is a peer of the collapsible section headers (Figma 1304-307965): same 52px row
295
- height so it doesn't read as a smaller afterthought. */
296
- ${e.media.down("lg")} {
297
- height: 52px;
298
- }
299
- `,rt=i.div`
300
- display: flex;
301
- align-items: center;
302
- gap: 6px;
303
- `,at=i(O)`
304
- width: 14px;
305
- height: 14px;
306
- color: ${e.colors.text};
307
-
308
- ${e.media.down("lg")} {
309
- width: 16px;
310
- height: 16px;
311
- }
312
- `,lt=i.span`
313
- font-family: ${e.font.sans};
314
- font-weight: 600;
315
- font-size: 14px;
316
- line-height: 1.43;
317
- color: ${e.colors.text};
318
- /* Figma labels SMART in uppercase (the flash-feature label), unlike the title-case section names. */
319
- text-transform: uppercase;
320
-
321
- /* Match the section-header title size on mobile so SMART has the same hierarchy as Price/Rarity/etc. */
322
- ${e.media.down("lg")} {
323
- font-size: 16px;
324
- }
325
- `,ct=i(O)`
326
- width: 12px;
327
- height: 12px;
328
- color: ${e.colors.muted2};
329
- `,dt=i("button",$("on"))`
330
- position: relative;
331
- width: 24px;
332
- height: 14px;
333
- padding: 0;
334
- border-radius: 100px;
335
- border: 1px solid ${({on:o})=>o?e.colors.accent:e.colors.gray4};
336
- background: ${({on:o})=>o?e.colors.accent:e.colors.media};
337
- cursor: pointer;
338
- flex: none;
339
- transition:
340
- background 0.15s ease,
341
- border-color 0.15s ease;
342
-
343
- &:focus-visible {
344
- outline: 2px solid ${e.colors.accent};
345
- outline-offset: 2px;
346
- }
347
-
348
- /* Bigger, tappable switch on mobile (the 24×14 desktop pill reads as too small on a phone). */
349
- ${e.media.down("lg")} {
350
- width: 40px;
351
- height: 22px;
352
- }
353
- `,pt=i("span",$("on"))`
354
- position: absolute;
355
- top: 50%;
356
- left: ${({on:o})=>o?"calc(100% - 12px)":"0px"};
357
- transform: translateY(-50%);
358
- width: 12px;
359
- height: 12px;
360
- border-radius: 50%;
361
- background: ${e.colors.white};
362
- box-shadow: 0 1px 2px rgba(22, 21, 24, 0.3);
363
- transition: left 0.15s ease;
364
-
365
- ${e.media.down("lg")} {
366
- width: 18px;
367
- height: 18px;
368
- left: ${({on:o})=>o?"calc(100% - 18px)":"2px"};
369
- }
370
- `,k=1e5;function xt(o){var a;for(const C of Fe){const u=(a=C.subs)==null?void 0:a.find(c=>c.key===o);if(u)return n(u.labelKey)}return o}function U({title:o,open:a,onToggle:C,summary:u,desktopStatic:c,headerTestId:h,headerAria:x,children:S}){const p=t.jsx(_e,{up:a,size:24,color:"var(--text)"});return t.jsxs(Me,{children:[t.jsxs(Oe,{type:"button",desktopStatic:c,onClick:C,"aria-expanded":a,"aria-label":x,"data-testid":h,children:[t.jsx(qe,{children:o}),c?t.jsx(He,{children:p}):p]}),!a&&u?t.jsx(We,{desktopHidden:c,children:u}):null,t.jsx(Be,{open:a,desktopStatic:c,children:t.jsx(De,{children:S})})]})}function ut({category:o,subCategory:a,onCategory:C,onSub:u,priceMin:c,priceMax:h,onPriceMin:x,onPriceMax:S,rarities:p,onToggleRarity:q,status:j,onStatus:I,smart:y,onSmart:T}){const[m,A]=l.useState(!0),[v,E]=l.useState(!0),[R,Q]=l.useState(!1),[F,N]=l.useState(!0),_=c&&!Number.isNaN(Number(c))?Number(c):void 0,P=h&&!Number.isNaN(Number(h))?Number(h):void 0,f=_!=null?Math.min(_,k):0,g=P!=null?Math.min(P,k):k,J=f/k*100,V=g/k*100;function H(r){const d=Math.min(r,g);x(d<=0?"":String(d))}function z(r){const d=Math.max(r,f);S(d>=k?"":String(d))}const W=a?xt(a):o!=="wearable"?n(`categories.${o==="emote"?"emotes":o==="all"?"shopAll":o}`):"",w=_!=null||P!=null?`${c||"0"}-${h||"∞"}`:"",X=ee.filter(r=>p.includes(r)).map(me).join(", "),Z=j==="on_sale"?n("filter.onSale"):j==="not_for_sale"?n("filter.notForSale"):"";return t.jsxs(Le,{children:[t.jsx(U,{title:n("assets.category"),open:m,onToggle:()=>A(r=>!r),summary:W,desktopStatic:!0,children:t.jsx(Pe,{category:o,subCategory:a,onCategory:C,onSub:u})}),t.jsx(K,{}),t.jsxs(U,{title:n("filter.price"),open:v,onToggle:()=>E(r=>!r),summary:w,desktopStatic:!0,children:[t.jsxs(Ye,{children:[t.jsxs(ae,{children:[t.jsx(le,{children:n("assets.min")}),t.jsxs(ce,{children:[t.jsx(de,{name:G.iconName,"aria-hidden":!0}),t.jsx(pe,{type:"number",min:"0","aria-label":n("assets.minPriceAria"),placeholder:"0",value:c,onChange:r=>x(r.target.value)})]})]}),t.jsx(Ge,{children:n("assets.priceTo")}),t.jsxs(ae,{children:[t.jsx(le,{children:n("assets.max")}),t.jsxs(ce,{children:[t.jsx(de,{name:G.iconName,"aria-hidden":!0}),t.jsx(pe,{type:"number",min:"0","aria-label":n("assets.maxPriceAria"),placeholder:"0",value:h,onChange:r=>S(r.target.value)})]})]})]}),t.jsxs(Ke,{children:[t.jsx(Ue,{"aria-hidden":!0}),t.jsx(Qe,{minPct:J,maxPct:V,"aria-hidden":!0}),t.jsx(xe,{type:"range",min:0,max:k,value:f,"aria-label":n("assets.minPriceSliderAria"),onChange:r=>H(Number(r.target.value))}),t.jsx(xe,{type:"range",min:0,max:k,value:g,"aria-label":n("assets.maxPriceSliderAria"),onChange:r=>z(Number(r.target.value))})]}),t.jsxs(Je,{children:[t.jsxs(ue,{children:[t.jsx(he,{name:G.iconName,"aria-hidden":!0}),f.toLocaleString()]}),t.jsxs(ue,{children:[t.jsx(he,{name:G.iconName,"aria-hidden":!0}),g.toLocaleString()]})]})]}),t.jsx(K,{}),t.jsx(U,{title:n("assets.rarity"),open:R,onToggle:()=>Q(r=>!r),summary:X,headerTestId:"sidebar-section-toggle",children:t.jsx(Ve,{"data-testid":"rarity-filter",children:ee.map(r=>{const d=p.includes(r);return t.jsxs(Xe,{type:"button",selected:d,"aria-pressed":d,onClick:()=>q(r),"data-testid":"rarity-filter-check",children:[t.jsx(Ze,{color:e.rarities[r],children:d?t.jsx(et,{name:"check","aria-hidden":!0}):null}),t.jsx(tt,{selected:d,children:r})]},r)})})}),t.jsx(K,{}),t.jsx(U,{title:n("filter.status"),open:F,onToggle:()=>N(r=>!r),summary:Z,children:[["all",n("filter.statusAll")],["on_sale",n("filter.onSale")],["not_for_sale",n("filter.notForSale")]].map(([r,d])=>t.jsxs(ot,{children:[t.jsx(it,{type:"radio",name:"shop-status",checked:j===r,onChange:()=>I(r)}),t.jsx(st,{children:d})]},r))}),t.jsx(K,{}),t.jsxs(nt,{children:[t.jsxs(rt,{children:[t.jsx(at,{name:"smart","aria-hidden":!0}),t.jsx(lt,{children:n("filter.smart")}),t.jsx(ct,{name:"info",role:"img","aria-label":n("filter.smartHint"),title:n("filter.smartHint")})]}),t.jsx(dt,{type:"button",role:"switch",on:y,"aria-checked":y,"aria-label":n("filter.smart"),onClick:()=>T(!y),children:t.jsx(pt,{on:y})})]})]})}const ht=i.div`
371
- position: relative;
372
- display: flex;
373
- gap: 32px;
374
- align-items: flex-start;
375
-
376
- ${e.media.down("lg")} {
377
- display: block;
378
- }
379
- `,mt=i.div`
380
- flex: 1;
381
- min-width: 0;
382
-
383
- ${e.media.down("lg")} {
384
- width: 100%;
385
- }
386
- `,ft=i.aside`
387
- flex: none;
388
- width: 265px;
389
-
390
- ${e.media.down("lg")} {
391
- position: fixed;
392
- left: 0;
393
- right: 0;
394
- bottom: 0;
395
- top: auto;
396
- z-index: 9999;
397
- width: 100%;
398
- max-height: 88vh;
399
- display: flex;
400
- flex-direction: column;
401
- border-radius: 16px 16px 0 0;
402
- background: ${e.colors.white};
403
- padding: 0 16px;
404
- box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.18);
405
- transform: translateY(100%);
406
- transition: transform 0.26s ease;
407
- visibility: hidden;
408
-
409
- &.is-open {
410
- transform: translateY(0);
411
- visibility: visible;
412
- }
413
- }
414
- `,gt=i.div`
415
- ${e.media.down("lg")} {
416
- flex: 1;
417
- min-height: 0;
418
- overflow-y: auto;
419
- /* Room so the last filter row clears the sticky "Show items" bar (Figma bottom bar). */
420
- padding-bottom: 24px;
421
- }
422
- `,bt=i.div`
423
- position: fixed;
424
- inset: 0;
425
- z-index: 9998;
426
- background: rgba(0, 0, 0, 0.4);
427
- `,yt=i.div`
428
- display: none;
429
-
430
- ${e.media.down("lg")} {
431
- position: sticky;
432
- top: 0;
433
- z-index: 2;
434
- display: flex;
435
- align-items: center;
436
- justify-content: space-between;
437
- background: ${e.colors.white};
438
- margin: 0 -16px 8px;
439
- padding: 16px 16px 12px;
440
- border-radius: 16px 16px 0 0;
441
- }
442
- `,wt=i.span`
443
- font-family: ${e.font.sans};
444
- font-weight: 700;
445
- font-size: 15px;
446
- letter-spacing: 0.46px;
447
- text-transform: uppercase;
448
- color: ${e.colors.text};
449
- `,$t=i.button`
450
- display: grid;
451
- place-items: center;
452
- width: 32px;
453
- height: 32px;
454
- border-radius: 50%;
455
- background: ${e.colors.chip};
456
- border: 0;
457
- font-size: 15px;
458
- line-height: 1;
459
- cursor: pointer;
460
- color: ${e.colors.text};
461
-
462
- &:focus-visible {
463
- outline: 2px solid ${e.colors.accent};
464
- outline-offset: 2px;
465
- }
466
- `,St=i.div`
467
- display: none;
468
-
469
- ${e.media.down("lg")} {
470
- display: flex;
471
- align-items: center;
472
- gap: 12px;
473
- position: sticky;
474
- bottom: 0;
475
- margin: 8px -16px 0;
476
- padding: 16px 16px calc(16px + env(safe-area-inset-bottom));
477
- background: ${e.colors.white};
478
- box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.25);
479
- z-index: 1;
480
- }
481
- `,jt=i.button`
482
- flex: 1;
483
- height: 40px;
484
- border: 0;
485
- border-radius: 8px;
486
- background: ${e.colors.accent};
487
- color: ${e.colors.softWhite};
488
- font-family: ${e.font.sans};
489
- font-weight: 600;
490
- font-size: 13px;
491
- letter-spacing: 0.46px;
492
- line-height: 24px;
493
- text-transform: uppercase;
494
- cursor: pointer;
495
-
496
- &:hover {
497
- filter: brightness(1.08);
498
- }
499
- &:focus-visible {
500
- outline: 2px solid ${e.colors.accent};
501
- outline-offset: 2px;
502
- }
503
- `,vt=48;function kt(o){return{tradeId:o.tradeId??o.id,listingType:"primary",contractAddress:o.contractAddress,itemId:o.itemId??"",name:o.name,thumbnail:o.thumbnail,rarity:o.rarity,category:o.category,wearableCategory:o.wearableCategory??null,creator:o.creator,manaWei:o.manaWei??"0",available:1,network:o.network,chainId:o.chainId,createdAt:0}}function Bt(){const[o]=Se(),a=(o.get("q")??"").trim().toLowerCase(),C=je(),u=(o.get("q")??"").trim();ve({title:u?n("seo.collectibles.searchTitle",{query:u}):n("seo.collectibles.title"),description:n("seo.collectibles.description")});const[c,h]=l.useState("wearable"),[x,S]=l.useState(null),[p,q]=l.useState([]),[j,I]=l.useState(""),[y,T]=l.useState(""),[m,A]=l.useState("all"),[v,E]=l.useState(!1),[R,Q]=l.useState("newest"),[F,N]=l.useState(!1),[_,P]=l.useState(null);l.useEffect(()=>{if(!F)return;const s=M=>{M.key==="Escape"&&N(!1)};document.addEventListener("keydown",s);const b=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.removeEventListener("keydown",s),document.body.style.overflow=b}},[F]);const f=j&&!Number.isNaN(Number(j))?Number(j):void 0,g=y&&!Number.isNaN(Number(y))?Number(y):void 0,J=x?Ie[x]:void 0,V=(ne.find(s=>s.key===R)??ne[0]).server,H={category:c,rarities:p.length?p:void 0,wearableCategories:J,minPriceCredits:f,maxPriceCredits:g,search:a||void 0,sortBy:V,isSmart:v||void 0,onSale:m==="all"?void 0:m==="on_sale"},{items:z,total:W,isLoading:w,error:X,hasNextPage:Z,isFetchingNextPage:r,fetchNextPage:d}=Ae(["unified-listings",H],s=>ke({...H,first:vt,skip:s})),B=W,{data:D,isError:fe}=Re(),ge=s=>D&&s.manaWei?Ce(s.manaWei,D):null,te=l.useRef(null);l.useEffect(()=>{w||!a||te.current===a||(te.current=a,ie("Shop Searched",{query:a,result_count:B}))},[a,w,B]);const Y=l.useRef("__init__");l.useEffect(()=>{if(w)return;const s=JSON.stringify({category:c,subCategory:x,rarities:p,min:f,max:g,sort:R,status:m,smart:v});if(Y.current==="__init__"||Y.current===s){Y.current=s;return}Y.current=s,ie("Shop Applied Filter",{filters:{category:c,sub_category:x,rarities:p,min_price_credits:f??null,max_price_credits:g??null,status:m,smart:v,sort:R},result_count:B})},[c,x,p,f,g,R,m,v,w,B]);function be(s){h(s),S(null)}function oe(s){q(b=>b.includes(s)?b.filter(M=>M!==s):[...b,s])}function ye(){h("wearable"),S(null),q([]),I(""),T(""),A("all"),E(!1)}function we(s){const b=z.find(M=>M.id===s.id);b&&b.source==="legacy"&&b.manaWei&&P(kt(b))}function $e(){C.invalidateQueries({queryKey:["unified-listings"]})}const L=[];(f!=null||g!=null)&&L.push({key:"price",label:n("filter.price"),onRemove:()=>{I(""),T("")}});for(const s of ee)p.includes(s)&&L.push({key:`rarity-${s}`,label:me(s),onRemove:()=>oe(s)});return v&&L.push({key:"smart",label:n("filter.smart"),onRemove:()=>E(!1)}),m!=="all"&&L.push({key:"status",label:m==="on_sale"?n("filter.onSale"):n("filter.notForSale"),onRemove:()=>A("all")}),t.jsxs(ht,{"data-testid":"browse",children:[F?t.jsx(bt,{onClick:()=>N(!1),"aria-hidden":!0}):null,t.jsxs(ft,{className:F?"is-open":"","data-testid":"browse-sidebar",children:[t.jsxs(yt,{children:[t.jsx(wt,{children:n("assets.filters")}),t.jsx($t,{onClick:()=>N(!1),"aria-label":n("assets.closeFilters"),children:"✕"})]}),t.jsx(gt,{children:t.jsx(ut,{category:c,subCategory:x,onCategory:be,onSub:S,priceMin:j,priceMax:y,onPriceMin:I,onPriceMax:T,rarities:p,onToggleRarity:oe,status:m,onStatus:A,smart:v,onSmart:E})}),t.jsx(St,{children:t.jsx(jt,{type:"button",onClick:()=>N(!1),children:n("assets.showItems")})})]}),t.jsxs(mt,{children:[t.jsx(ze,{sort:R,onSort:Q,total:W,loading:w,query:a,onOpenFilters:()=>N(!0),chips:L,onClearChips:ye}),fe&&z.some(s=>s.source==="legacy")?t.jsx("p",{className:"market-banner market-banner--warn",children:n("assets.marketUnavailable")}):null,X?t.jsx(Ee,{message:n("assets.loadError"),testId:"browse-error"}):null,t.jsx("div",{className:"grid","data-testid":"grid",children:w?t.jsx(re,{count:15}):t.jsxs(t.Fragment,{children:[z.map(s=>s.source==="legacy"?t.jsx(se,{item:s,mode:"market",marketPriceCredits:ge(s),onBuyNow:we},s.id):t.jsx(se,{item:s},s.id)),r?t.jsx(re,{count:6}):null]})}),t.jsx(Te,{hasNextPage:Z,isFetching:r,onLoadMore:()=>void d()}),!w&&z.length===0?t.jsx("p",{className:"muted",children:n("assets.noItems")}):null]}),_&&D?t.jsx(Ne,{listing:_,rate:D,onClose:()=>P(null),onSold:()=>{P(null),$e()}}):null]})}export{Bt as Assets};
@@ -1 +0,0 @@
1
- import{u as K,j as e,L as re,d as se,b as te,r as j}from"./react-C51i12iP.js";import{aw as oe,ax as ce,am as le,t as a,ay as E,B as ne,a9 as z,b as ie,I,g as de,u as me,A as ue,aq as he,az as ge,h as xe}from"./index-T-zasmbE.js";import{d as _e,g as pe,a as Ne,A as je}from"./collection-DPrYZX6W.js";import{u as be,L as fe}from"./useStore-JJzXYl67.js";import{s as D}from"./address-DrURAr9O.js";import{S as $,C as ve,c as w,F as Ce,e as we,d as ke}from"./categories-DMvvNpsP.js";import{L as B}from"./LoadMore-DdNzWoKw.js";import{u as R}from"./useInfiniteGrid-DtqZsW6Q.js";import{E as T}from"./ErrorNotice-C7soUjRV.js";import"./dcl-schemas-BICTSpB5.js";import"./sentry-DKBoGDXH.js";import"./ethers-BeFqf2KO.js";import"./intl-CBcMB1D2.js";function Pe({collection:t,cover:r,itemCount:o}){const n=K(),{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}=z(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)||D(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=K(),[o]=te(),n=o.has("collections"),{data:m}=z(t),g=(m==null?void 0:m.name)||(t?D(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:q,isFetchingNextPage:F,fetchNextPage:W}=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 Z(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:Z,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:q,isFetching:F,onLoadMore:()=>void W()}),!C&&!A&&v.length===0?e.jsx("p",{className:"muted",children:a("creator.empty")}):null]})})]})]})}export{Oe as Creator,Oe as default};
@@ -1 +0,0 @@
1
- import{u as $,b as q,r as i,j as e}from"./react-C51i12iP.js";import{u as z,t as s,b as H,m as Q,v as g,h as d,z as P,w as I,C as V,o as W}from"./index-T-zasmbE.js";import{R as G}from"./resume-buy-Bf0zIH7y.js";import{R as D}from"./cart-checkout-C8WkR2Mv.js";import{u as J,p as Z,c as X,l as ee,i as se}from"./loader-logo-sfRgTXGv.js";import{C as te}from"./CircularProgress-CFOLSY9J.js";import"./dcl-schemas-BICTSpB5.js";import"./sentry-DKBoGDXH.js";import"./ethers-BeFqf2KO.js";import"./intl-CBcMB1D2.js";const x="https://cdn.decentraland.org/@dcl/shop/0.1.0-29843281528.commit-80ee4fe/assets/pack-chips--HnOpf5U.webp",re="https://cdn.decentraland.org/@dcl/shop/0.1.0-29843281528.commit-80ee4fe/assets/credit-coin-CmcTCd5i.webp",ae="data:image/svg+xml,%3csvg%20width='60'%20height='60'%20viewBox='0%200%2060%2060'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20width='60'%20height='60'%20rx='30'%20fill='%2334CE77'/%3e%3cpath%20d='M21.6583%2046.1067L11.4656%2036.0591C10.1688%2034.829%2010.1905%2032.7207%2011.4769%2031.4622L13.6868%2029.3591C14.9732%2028.1006%2017.1615%2028.1058%2018.4582%2029.3359L23.8747%2034.6197L41.9704%2015.6527C43.2568%2014.3942%2045.4291%2014.2093%2046.7258%2015.4394L48.8765%2017.3628C50.1732%2018.5929%2050.3491%2020.6844%2049.0626%2021.9429L26.6112%2045.8766C25.1433%2047.342%2022.955%2047.3368%2021.6583%2046.1067Z'%20fill='%23FCFCFC'/%3e%3c/svg%3e",C=se()?"mock":"stripe",ce={pack_5:x,pack_10:x,pack_25:x,pack_50:x},ne="https://docs.decentraland.org";function M(o){const r=o;if((r==null?void 0:r.name)==="AbortError")return s("getCredits.errorCanceled");const m=((r==null?void 0:r.message)??"").toLowerCase();return m.includes("sign in")?s("getCredits.errorSignIn",{currency:d.name}):m.includes("timed out")?s("getCredits.errorTimeout",{currency:d.name}):s("getCredits.errorGeneric")}function xe(){z({title:s("nav.getCredits",{currency:d.name}),noindex:!0});const o=$(),{session:r,signIn:m}=H(),n=Q(),[k,S]=q(),{packs:F,isLoading:T}=J(),[p,l]=i.useState("select"),[c,w]=i.useState(null),[E,R]=i.useState(null),[U,_]=i.useState(null),[K,N]=i.useState(!1),f=i.useRef(null);i.useEffect(()=>()=>{var t;return(t=f.current)==null?void 0:t.abort()},[]);const L=i.useCallback(()=>{S(t=>{const a=new URLSearchParams(t);return a.delete("order"),a.delete("canceled"),a},{replace:!0})},[S]),b=i.useCallback(async t=>{l("processing");const a=new AbortController;f.current=a;try{const u=await Z(t,{signal:a.signal,address:r==null?void 0:r.address,identity:r==null?void 0:r.identity});if(u.status==="credited"){const j=u.creditsGranted??(c==null?void 0:c.credits)??0;R(j>0?j:null),l("success"),g("Shop Completed Buy Credits",{order_id:t,pack_usd:(c==null?void 0:c.usd)??null,credits:j>0?j:null,provider:C}),n.invalidateQueries({queryKey:["usd-balance"]});try{if(sessionStorage.getItem(D)){o("/cart",{state:{resumeCheckout:!0}});return}}catch{}try{const A=sessionStorage.getItem(G);if(A){sessionStorage.removeItem(G);const h=JSON.parse(A),B=h.tokenId??h.itemId;if(h.contractAddress&&B){o(`/item/${h.contractAddress}/${B}`,{state:{item:h,resumeBuy:!0}});return}}}catch{}}else u.status==="pending"?(g("Shop Buy Credits Pending",{step:"grant",pack_usd:(c==null?void 0:c.usd)??null}),n.invalidateQueries({queryKey:["usd-balance"]}),l("pending")):(g("Shop Buy Credits Failed",{step:"grant",error_code:"grant_failed",pack_usd:(c==null?void 0:c.usd)??null}),_(u.error??s("getCredits.errorGrant",{currency:d.name})),l("error"))}catch(u){P(u,{flow:"get_credits",step:"grant",order_id:t}),g("Shop Buy Credits Failed",{step:"grant",error_code:I(u),pack_usd:(c==null?void 0:c.usd)??null}),_(M(u)),l("error")}},[c,r,n,o]),O=i.useCallback(async t=>{if(!r){m();return}_(null),N(!1),w(t),l(C==="mock"?"processing":"redirecting"),g("Shop Started Buy Credits",{pack_usd:t.usd,credits:t.credits,provider:C});try{const a=await X(t.id,{address:r.address,identity:r.identity});if(a.mock)b(a.orderId);else if(a.url)g("Shop Redirected To Stripe",{order_id:a.orderId,pack_usd:t.usd,credits:t.credits}),window.location.href=a.url;else throw new Error("Checkout did not return a redirect url")}catch(a){P(a,{flow:"get_credits",step:"checkout",provider:C}),g("Shop Buy Credits Failed",{step:"checkout",error_code:I(a),pack_usd:t.usd}),_(M(a)),l("error")}},[r,m,b]),y=i.useRef(!1);i.useEffect(()=>{if(y.current)return;const t=k.get("order");if(k.get("canceled")!=null){y.current=!0,g("Shop Buy Credits Cancelled",{order_id:t,provider:C}),L(),N(!0),l("select");return}t&&(l("processing"),r&&(y.current=!0,L(),b(t)))},[k,r]);function v(){var t;(t=f.current)==null||t.abort(),l("select"),w(null),R(null),_(null),N(!1)}const Y=p==="select";return e.jsxs("div",{className:"getcredits",children:[Y&&e.jsxs("header",{className:"getcredits__head",children:[e.jsx("h1",{className:"getcredits__title",children:s("getCredits.title",{currency:d.name})}),e.jsxs("p",{className:"getcredits__sub",children:[s("getCredits.subtitle",{currency:d.name})," ",e.jsxs("a",{className:"getcredits__learn",href:ne,target:"_blank",rel:"noreferrer",children:[s("getCredits.learnMore"),e.jsxs("svg",{className:"getcredits__learn-ico",viewBox:"0 0 13 13","aria-hidden":!0,fill:"none",children:[e.jsx("path",{d:"M4 2h7v7",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M11 2 2 11",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round"})]})]})]})]}),p==="select"&&e.jsxs(e.Fragment,{children:[K&&e.jsx("p",{className:"getcredits__note muted",role:"status",children:s("getCredits.canceledNote")}),e.jsx(ie,{packs:F,loading:T,onSelect:t=>void O(t)})]}),p==="redirecting"&&e.jsxs("div",{className:"getcredits__status",role:"status","aria-live":"polite",children:[e.jsx(te,{size:32}),e.jsx("p",{className:"muted",children:s("getCredits.redirecting")})]}),p==="processing"&&e.jsxs("div",{className:"gc-processing",role:"status","aria-live":"polite",children:[e.jsx("img",{className:"gc-processing__logo",src:ee,alt:"",width:61,height:61}),e.jsxs("div",{className:"gc-processing__body",children:[e.jsxs("p",{className:"gc-processing__title",children:[e.jsx("strong",{children:s("getCredits.processing")}),"…"]}),e.jsxs("div",{className:"gc-progress","aria-hidden":!0,children:[e.jsx("span",{className:"gc-progress__track",children:e.jsx("span",{className:"gc-progress__fill"})}),e.jsx("span",{className:"gc-progress__count",children:"1/1"})]})]})]}),p==="success"&&e.jsxs("div",{className:"gc-success",role:"status","aria-live":"polite",children:[e.jsxs("div",{className:"gc-banner",children:[e.jsx("img",{className:"gc-banner__icon",src:ae,alt:"",width:60,height:60}),e.jsxs("p",{className:"gc-banner__text",children:[e.jsx("strong",{children:s("getCredits.successTitle")})," ",s("getCredits.successBody",{currency:d.name})]})]}),E!=null&&e.jsx("div",{className:"gc-credits",children:e.jsxs("div",{className:"gc-credits__row",children:[e.jsx("img",{className:"gc-credits__coin",src:re,alt:"",width:93,height:93}),e.jsxs("p",{className:"gc-credits__text",children:[e.jsx(V,{className:"gc-credits__diamond"}),e.jsxs("span",{children:[e.jsx("strong",{className:"gc-credits__amount",children:s("getCredits.creditsAmount",{credits:E,currency:d.name})})," ",e.jsx("span",{className:"gc-credits__added",children:s("getCredits.creditsAdded")})]})]})]})}),e.jsxs("div",{className:"gc-actions",children:[e.jsx("button",{className:"gc-actions__btn gc-actions__btn--outline",onClick:v,children:s("getCredits.buyMore",{currency:d.name})}),e.jsx("button",{className:"gc-actions__btn gc-actions__btn--solid",onClick:()=>o("/assets"),children:s("getCredits.startShopping")})]})]}),p==="pending"&&e.jsxs("div",{className:"gc-status",role:"status","aria-live":"polite",children:[e.jsx("p",{className:"gc-status__title",children:s("getCredits.pendingTitle",{currency:d.name})}),e.jsx("p",{className:"muted",children:s("getCredits.pendingBody")}),e.jsxs("div",{className:"gc-status__actions",children:[e.jsx("button",{className:"gc-actions__btn gc-actions__btn--solid",onClick:()=>o("/assets"),children:s("getCredits.startShopping")}),e.jsx("button",{className:"gc-actions__btn gc-actions__btn--outline",onClick:v,children:s("getCredits.done")})]})]}),p==="error"&&e.jsxs("div",{className:"gc-status gc-status--err",role:"alert",children:[e.jsx("p",{className:"gc-status__title",children:s("getCredits.errorTitle")}),e.jsx("p",{className:"error",children:U}),e.jsx("div",{className:"gc-status__actions",children:e.jsx("button",{className:"gc-actions__btn gc-actions__btn--solid",onClick:v,children:s("getCredits.tryAgain")})})]})]})}function ie({packs:o,loading:r,onSelect:m}){return r?e.jsx("div",{className:"packs","aria-busy":"true","aria-label":s("getCredits.packsLoading",{currency:d.name}),children:[0,1,2,3].map(n=>e.jsx("div",{className:"pack pack--skeleton","aria-hidden":!0,children:e.jsxs("span",{className:"pack__inner",children:[e.jsx("span",{className:"skeleton pack__label-sk"}),e.jsx("span",{className:"skeleton pack__art-sk"}),e.jsx("span",{className:"skeleton pack__cta-sk"})]})},n))}):e.jsx("div",{className:"packs",children:o.map(n=>e.jsxs("button",{type:"button",className:`pack${n.bestValue?" pack--best":""}`,"data-testid":"pack",onClick:()=>m(n),"aria-label":s("getCredits.packAria",{amount:W(n.credits),usd:n.usd}),children:[n.bestValue&&e.jsx("span",{className:"pack__badge",children:s("getCredits.packBadge")}),e.jsxs("span",{className:"pack__inner",children:[e.jsx("span",{className:"pack__label",children:s("getCredits.creditsAmount",{credits:n.credits,currency:d.name})}),e.jsx("span",{className:"pack__art",children:e.jsx("img",{src:ce[n.id]??x,alt:"",loading:"lazy"})}),e.jsx("span",{className:"pack__cta-wrap",children:e.jsxs("span",{className:"pack__cta",children:["$",n.usd.toFixed(2)]})})]})]},n.id))})}export{xe as GetCredits,xe as default};