@dcl/shop 1.0.0 → 1.0.1-31048936925.commit-1e51e12

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 (177) hide show
  1. package/_assets/Activity-nCZX3K9R.js +378 -0
  2. package/_assets/{AnimatedBackground-CHiOSgJ6.js → AnimatedBackground-DX54AvDb.js} +1 -1
  3. package/_assets/{Assets-1KVsmH01.js → Assets-D358HMy9.js} +6 -6
  4. package/_assets/{Assets.styles-BUHnZ7Nb.js → Assets.styles-l6AlFP4R.js} +1 -1
  5. package/_assets/{Authorizations-BGlyC4dr.js → Authorizations-C9KC4BQ1.js} +1 -1
  6. package/_assets/{Cart-afrKtZvj.js → Cart-BYuhhwhW.js} +2 -2
  7. package/_assets/{CircularProgress-K7JjSpPZ.js → CircularProgress-BIxHQTZ-.js} +1 -1
  8. package/_assets/{Collection-B0G71rJV.js → Collection--1M0H4o5.js} +8 -8
  9. package/_assets/{CollectionCarousel-B4hzcKRb.js → CollectionCarousel-B-OedLTV.js} +13 -13
  10. package/_assets/{Confetti-BBhDY6Q2.js → Confetti-DmPgm7-o.js} +1 -1
  11. package/_assets/{Creator-CYC3eVKx.js → Creator-DW14OCcb.js} +5 -5
  12. package/_assets/{ErrorNotice-CnPcFEw_.js → ErrorNotice-D7vAvvnu.js} +1 -1
  13. package/_assets/{ExchangeController-BAefeOHy.js → ExchangeController-DDneWYp7.js} +1 -1
  14. package/_assets/{Faq-D03YByjo.js → Faq-D5XpPmAP.js} +1 -1
  15. package/_assets/{GetCredits-Cyw0rRMV.js → GetCredits-Bb-sCf1o.js} +10 -10
  16. package/_assets/{Grow-CPwRVF9g.js → Grow-C2MRKoL9.js} +1 -1
  17. package/_assets/{HelpersUtil-DJC0aWJi.js → HelpersUtil-BBjT8WS3.js} +1 -1
  18. package/_assets/{ItemDetail-DSuMCjR9.js → ItemDetail-B29YTj5K.js} +28 -28
  19. package/_assets/LazyEmoteControls-Dr3gIii2.js +2 -0
  20. package/_assets/{LoadMore-CMAFsns3.js → LoadMore-Cw7jS-0f.js} +1 -1
  21. package/_assets/{ManaPricingBanner.styles-Bb7BS6EM.js → ManaPricingBanner.styles-B7-9xlAG.js} +1 -1
  22. package/_assets/{MyAssets-C5lGRPqP.js → MyAssets-CQtKnpb0.js} +4 -4
  23. package/_assets/{MyFavorites-C1t1o6Li.js → MyFavorites-QWwUw8if.js} +1 -1
  24. package/_assets/{NotFound-Bdi_fN5j.js → NotFound-Cd3PGGvA.js} +1 -1
  25. package/_assets/{NotificationsBell-BQk3EV9b.js → NotificationsBell-CobgKcS6.js} +1 -1
  26. package/_assets/{OutfitDetail-D3Mwl6KR.js → OutfitDetail-D_RKdxY4.js} +1 -1
  27. package/_assets/{OutfitPreview-BpWwkAro.js → OutfitPreview-C1K_DwQS.js} +1 -1
  28. package/_assets/{OutfitStudio-BL7OYD9h.js → OutfitStudio-D_o2fw6a.js} +4 -4
  29. package/_assets/{StoreSettings-BNhzJJib.js → StoreSettings-kj25kgl4.js} +6 -6
  30. package/_assets/{Success-Cnu7oCbI.js → Success-2ZpqGS8d.js} +1 -1
  31. package/_assets/{SwapController-BD23YCPw.js → SwapController-B2Vx-Ecx.js} +1 -1
  32. package/_assets/{Tooltip-tAvMrdFp.js → Tooltip-BnkSvWi5.js} +1 -1
  33. package/_assets/{TradeService-a2JgoWq2.js → TradeService-CKT60P_Z.js} +1 -1
  34. package/_assets/{W3MFrameProviderSingleton-CPDmjNiA.js → W3MFrameProviderSingleton-CinUlncV.js} +3 -3
  35. package/_assets/{WebCryptoP256-DIEJtB0I.js → WebCryptoP256-DMmMuFAN.js} +1 -1
  36. package/_assets/{authorizations-HgwrWkaa.js → authorizations-U9DZ7xUF.js} +1 -1
  37. package/_assets/{basic-B3qEjJvY.js → basic-DVcJoOnU.js} +1 -1
  38. package/_assets/{biconomy-CzcDC8vB.js → biconomy-CvpOea4s.js} +1 -1
  39. package/_assets/{builder-TZGldT6a.js → builder-BVXk_s1z.js} +1 -1
  40. package/_assets/buy-CrpfOiZS.js +1 -0
  41. package/_assets/buy-gasless-BmNGZUCL.js +1 -0
  42. package/_assets/{categories-B3DJZe02.js → categories-DNkiqNWp.js} +1 -1
  43. package/_assets/{ccip-CB03B_MW.js → ccip-CPwxW2-K.js} +1 -1
  44. package/_assets/{ccip-VI2-jJnV.js → ccip-CUOqQsaA.js} +1 -1
  45. package/_assets/{collectionPage.styles-DXfFyRiH.js → collectionPage.styles-CEHSid6W.js} +7 -7
  46. package/_assets/{controller-CEo6ipG_.js → controller-ICe7TmhY.js} +2 -2
  47. package/_assets/{core-DmqfUS4f.js → core-Cz0ztW6k.js} +4 -4
  48. package/_assets/{createSvgIcon-WfOAVB94.js → createSvgIcon-DYxRW7FN.js} +3 -3
  49. package/_assets/{custom-bIxIBqCn.js → custom-DeWe6YT8.js} +1 -1
  50. package/_assets/{data-capture-Dtaj6ehs.js → data-capture-D1vLy90m.js} +1 -1
  51. package/_assets/{email-DBXWS-p0.js → email-Cpfby5ZR.js} +1 -1
  52. package/_assets/{embedded-wallet-DqlpsZRk.js → embedded-wallet-Du-E1TJF.js} +1 -1
  53. package/_assets/{emotion-styled.browser.esm-pOAX0dMa.js → emotion-styled.browser.esm-CtsMuNx0.js} +1 -1
  54. package/_assets/{engine-gP8vp-2g.js → engine-DfmjuYhU.js} +1 -1
  55. package/_assets/{errors-WNvNILsF.js → errors-CKaS5yMV.js} +1 -1
  56. package/_assets/{estimate-l1-fee-X1cvAsdL.js → estimate-l1-fee-DJlI27fA.js} +1 -1
  57. package/_assets/{execute-V2l_cDAW.js → execute-Dhcsyf6g.js} +2 -2
  58. package/_assets/{features-CFR_-yBt.js → features-__wHXn2i.js} +1 -1
  59. package/_assets/{fetchTokenMetadata-Do5GLuIQ.js → fetchTokenMetadata-DAkBNz-g.js} +2 -2
  60. package/_assets/{field.styles-ciG_OcBi.js → field.styles-BmVzLMqo.js} +1 -1
  61. package/_assets/{get-ecosystem-wallet-info-CyDTxLgQ.js → get-ecosystem-wallet-info-BFcu0xed.js} +1 -1
  62. package/_assets/{getBalance-7wKu8RUe.js → getBalance-DTCmPJ9c.js} +1 -1
  63. package/_assets/{getNFT-DecLUThv.js → getNFT-D4fWJoFK.js} +1 -1
  64. package/_assets/{getNFT-BbpUiMXR.js → getNFT-uviK8qN6.js} +1 -1
  65. package/_assets/{grid.styles-Caahz6PS.js → grid.styles-e0VTl_sx.js} +1 -1
  66. package/_assets/{hashTypedData-Ca524zaX.js → hashTypedData-BwKGMbMi.js} +1 -1
  67. package/_assets/{hashTypedData-C9kgxiiE.js → hashTypedData-C8fXF8kP.js} +1 -1
  68. package/_assets/{in-app-B-disnkm.js → in-app-C64B_ZHB.js} +1 -1
  69. package/_assets/{in-app-wallet-calls-3yighozE.js → in-app-wallet-calls-DBTgOnVl.js} +1 -1
  70. package/_assets/{index-CyITvpDL.js → index-2UctWz5Q.js} +1 -1
  71. package/_assets/{index-8xcbpK09.js → index-7atMuaST.js} +1 -1
  72. package/_assets/{index-JuH5W7YS.js → index-B0Sji9td.js} +2 -2
  73. package/_assets/{index-C616xNgB.js → index-B1F4HC5e.js} +19 -19
  74. package/_assets/{index--1pBMb8n.js → index-B7223Tw9.js} +1 -1
  75. package/_assets/{index-DUmo7598.js → index-B99-1nJm.js} +1 -1
  76. package/_assets/{index-Dag4zALf.js → index-BIEr94Dk.js} +1 -1
  77. package/_assets/{index-DEw1jYQT.js → index-BIN3APP2.js} +1 -1
  78. package/_assets/{index-BrU_i04f.js → index-BKfMbYAY.js} +1 -1
  79. package/_assets/{index-DCMLwiSR.js → index-BLggAFkY.js} +1 -1
  80. package/_assets/{index-CmlH9TBP.js → index-BM3lJ2-R.js} +1 -1
  81. package/_assets/{index-BLCTVSaC.js → index-BNgTg7Mh.js} +1 -1
  82. package/_assets/{index-CEDBhmGn.js → index-BP7j6Hgf.js} +1 -1
  83. package/_assets/{index-DCAUOF_r.js → index-BVbFHT5h.js} +1 -1
  84. package/_assets/{index-DRI1gQSo.js → index-BY5E-Exn.js} +1 -1
  85. package/_assets/{index-CGcb9Mz3.js → index-B__PhpeI.js} +1 -1
  86. package/_assets/{index-DJOlt1Iv.js → index-BjtRqpe2.js} +1 -1
  87. package/_assets/{index-2-BWsekC.js → index-Bm8odZTr.js} +1 -1
  88. package/_assets/{index-BMFVFrWl.js → index-Bsc4WBxH.js} +3 -3
  89. package/_assets/{index-tCYP1O3W.js → index-BxSHnhqJ.js} +1 -1
  90. package/_assets/{index-BBX5Tona.js → index-C05Y1DfB.js} +1 -1
  91. package/_assets/{index-CdFrv2eV.js → index-C1PvSKlB.js} +1 -1
  92. package/_assets/{index-o0b8cjRQ.js → index-C2DFH7BV.js} +1 -1
  93. package/_assets/{index-CZBUgvRB.js → index-CJxIMVzT.js} +1 -1
  94. package/_assets/{index-DNvcQt0s.js → index-CN1dI-_M.js} +3 -3
  95. package/_assets/{index-DsH_mBtT.js → index-CdNjhJ4G.js} +7 -7
  96. package/_assets/{index-p4Ph7ugv.js → index-ChneVm92.js} +1 -1
  97. package/_assets/{index-D9iAFl4E.js → index-CjhkZkse.js} +1 -1
  98. package/_assets/{index-CjhGjrdW.js → index-Cn89t2No.js} +1 -1
  99. package/_assets/{index-D58OkhU1.js → index-CnQXHwIl.js} +1 -1
  100. package/_assets/{index-p0fxtTsZ.js → index-CqiOJkde.js} +2 -2
  101. package/_assets/{index-DKghJgJj.js → index-Cxy3Zhx5.js} +1 -1
  102. package/_assets/{index-CKkE-eRE.js → index-D9XA3siE.js} +1 -1
  103. package/_assets/{index-N5sgh9IC.js → index-DBFSJ8eA.js} +1 -1
  104. package/_assets/{index-BjEDpwxR.js → index-DCqxu03r.js} +1 -1
  105. package/_assets/{index-DxB85HDB.js → index-DLWLRNCL.js} +1 -1
  106. package/_assets/{index-CONyzZZC.js → index-DXrHwgLu.js} +3 -3
  107. package/_assets/{index-CUAEZ5zJ.js → index-DZ0_toT9.js} +1 -1
  108. package/_assets/{index-BdQllJHM.js → index-D_42YvWe.js} +1 -1
  109. package/_assets/{index-Eip3e8N8.js → index-DktRHFln.js} +1 -1
  110. package/_assets/{index-CFziwAGz.js → index-DoL-95tJ.js} +1 -1
  111. package/_assets/{index-Gw3Mauv_.js → index-DxW5TcXy.js} +1 -1
  112. package/_assets/{index-CO_xP_3N.js → index-Eetm9alJ.js} +1 -1
  113. package/_assets/{index-yiECqJCb.js → index-FhMQJbdg.js} +1 -1
  114. package/_assets/{index-BQB7qYN1.js → index-YR8VhpWY.js} +1 -1
  115. package/_assets/{index-Bd7SNoIN.js → index-ZDFIz-Ha.js} +2 -2
  116. package/_assets/{index-DvjyzmjB.js → index-ZMxtTeA5.js} +1 -1
  117. package/_assets/{index-CAl290ro.js → index-dlTdhz2S.js} +1 -1
  118. package/_assets/{index-B6l73M7K.js → index-hg9ned4-.js} +1 -1
  119. package/_assets/{index-BuImQh6o.js → index-pswxu1aq.js} +1 -1
  120. package/_assets/{index-C3MGLBUO.js → index-xZNkArUd.js} +1 -1
  121. package/_assets/{index-CEnhHz30.js → index-xiLFquHf.js} +1 -1
  122. package/_assets/{index.es-DF_hlZIu.js → index.es-C33UkHqK.js} +4 -4
  123. package/_assets/{index.es-D73EniUm.js → index.es-jPLSWBEm.js} +1 -1
  124. package/_assets/{index.es-C5PJ78RX.js → index.es-uXk_2WqA.js} +1 -1
  125. package/_assets/{localBatchGatewayRequest-DvkdRgNo.js → localBatchGatewayRequest-CTqz3ew6.js} +1 -1
  126. package/_assets/{networks-7b-i0dnd.js → networks-CaL_mKsk.js} +1 -1
  127. package/_assets/{onramp-CoF8bFaS.js → onramp-BsE5cbfH.js} +1 -1
  128. package/_assets/{openzeppelin-DcsEW8tQ.js → openzeppelin-CHriiiXW.js} +1 -1
  129. package/_assets/{parseNft-CNJ2CwyE.js → parseNft-BG5hEJl8.js} +2 -2
  130. package/_assets/{parseSignature-whU_pkfu.js → parseSignature-D1R7rts_.js} +3 -3
  131. package/_assets/{parseSignature-D0-1k6Yx.js → parseSignature-xHRD7mri.js} +1 -1
  132. package/_assets/{passkeys-SqHHDvyI.js → passkeys-DUWYdpV6.js} +1 -1
  133. package/_assets/{pay-with-exchange-Cvr7dd94.js → pay-with-exchange-DjfIFI-J.js} +1 -1
  134. package/_assets/{qr-overlay-HlBTd234.js → qr-overlay-D0ooIbJn.js} +1 -1
  135. package/_assets/{receive-HPltMi_i.js → receive-CeYCHEG-.js} +1 -1
  136. package/_assets/{resolveImplementation-CM1yFlGf.js → resolveImplementation-DPFg_0E7.js} +1 -1
  137. package/_assets/{rpc-CPS_djFB.js → rpc-CoRU-WGb.js} +1 -1
  138. package/_assets/{secp256k1-CQmdb_AD.js → secp256k1-CommityV.js} +1 -1
  139. package/_assets/{secp256k1-DUTfCpIK.js → secp256k1-DcqDu0fa.js} +1 -1
  140. package/_assets/{secp256k1-ChRNiO68.js → secp256k1-SoVPi7Jg.js} +1 -1
  141. package/_assets/{send-zy_Vr6BQ.js → send-DvX2wUYq.js} +1 -1
  142. package/_assets/{send-batch-transaction-Vn4JOFM5.js → send-batch-transaction-B-p46mhS.js} +1 -1
  143. package/_assets/{send-eip712-transaction-Qvibiwhe.js → send-eip712-transaction-UikE7rA_.js} +2 -2
  144. package/_assets/{send-gasless-transaction-DQLcvFHt.js → send-gasless-transaction-D209zL5k.js} +2 -2
  145. package/_assets/{send-transaction-CZ0kapdy.js → send-transaction-BRABNbJN.js} +2 -2
  146. package/_assets/{sendMetaTransaction-Ba_-1nOk.js → sendMetaTransaction-4-11BWED.js} +1 -1
  147. package/_assets/{sendRawTransaction-BUz1EYd8.js → sendRawTransaction-BT7XvdTu.js} +3 -3
  148. package/_assets/{serializeTransaction-B8qCVIIu.js → serializeTransaction-DNepmGwa.js} +1 -1
  149. package/_assets/{session-proposal-BqO43SKO.js → session-proposal-CKPzHthv.js} +1 -1
  150. package/_assets/{session-request-DbQI-hjo.js → session-request-Bcy3XUtZ.js} +2 -2
  151. package/_assets/{signing-CVGndCRE.js → signing-BN9K2mk2.js} +3 -3
  152. package/_assets/{skeleton.styles-K9f1Sxf1.js → skeleton.styles-DKUohCoH.js} +1 -1
  153. package/_assets/{socials-CNOGl_eO.js → socials-dd2C7m4q.js} +1 -1
  154. package/_assets/{styled-CljNQW-J.js → styled-pZZmiRAx.js} +1 -1
  155. package/_assets/{swaps-D5haogfk.js → swaps-CQVkHXTv.js} +1 -1
  156. package/_assets/{thirdweb-CC2bk-Up.js → thirdweb-vRX6WkdH.js} +3 -3
  157. package/_assets/{to-serializable-transaction-BB0M9pw8.js → to-serializable-transaction-Bgt7w3FH.js} +2 -2
  158. package/_assets/{transactionReceipt-puJsrtjz.js → transactionReceipt-B4oRqvQW.js} +1 -1
  159. package/_assets/{transactions-BnYHwdat.js → transactions-BkVuzNC2.js} +1 -1
  160. package/_assets/{useCreditPacks-xyyhS_80.js → useCreditPacks-06PTQhJZ.js} +1 -1
  161. package/_assets/{useImportable-Bh7jH6e9.js → useImportable-Bd5z60P4.js} +1 -1
  162. package/_assets/{useInfiniteGrid-CV4TXaLn.js → useInfiniteGrid-DAd_pRuF.js} +1 -1
  163. package/_assets/{useTheme-Czw2-J4G.js → useTheme-CIrifVUn.js} +1 -1
  164. package/_assets/{verifyHash-CAYWYGEG.js → verifyHash-I22MsyGu.js} +1 -1
  165. package/_assets/{w3m-modal-Fr29zvJe.js → w3m-modal-BqjoVt0g.js} +1 -1
  166. package/_assets/{w3m-modal-DtofW43q.js → w3m-modal-DnXgvL-e.js} +1 -1
  167. package/_assets/{wait-for-tx-receipt-mfzWqQ40.js → wait-for-tx-receipt-C1DQauFk.js} +1 -1
  168. package/_assets/{wallets-DT2LKaVF.js → wallets-D43io91y.js} +5 -5
  169. package/_assets/{web-connector-4TZSYYzx.js → web-connector-BrdMb5ou.js} +3 -3
  170. package/_assets/{writeContract-CEQ0n4-z.js → writeContract-CMh8YLOy.js} +1 -1
  171. package/_assets/{zoraTestnet-Cd1Th5ww.js → zoraTestnet-Dg2h7Dko.js} +1 -1
  172. package/index.html +11 -11
  173. package/package.json +2 -2
  174. package/_assets/Activity-CJO4ONwi.js +0 -371
  175. package/_assets/LazyEmoteControls-D-xqLU4A.js +0 -2
  176. package/_assets/buy-CuFubBZY.js +0 -1
  177. package/_assets/buy-gasless-DO6cBuJ3.js +0 -1
@@ -1,4 +1,4 @@
1
- import{j as e,b as le,r as g,L as ce}from"./react-BYHuwl8r.js";import{t as A,s as t,w as pe,y as he,b as n,C as N,B,bY as se,z as D,$ as ge,bb as O,F as U,R as xe,o as me,A as ue,ba as fe,I as K,ab as we,an as be,ae as ye,af as ve,bZ as je,E as G}from"./index-C616xNgB.js";import{c as ke,i as $e,R as Ce,u as Se}from"./useImportable-Bh7jH6e9.js";import{S as Le,C as Ie}from"./ManaPricingBanner.styles-Bb7BS6EM.js";import{F as Y}from"./Faq-D03YByjo.js";import{C as H}from"./field.styles-ciG_OcBi.js";import"./dcl-schemas-CmtP3U6y.js";import"./sentry-Dx-KuLV3.js";import"./ethers-BDpbhgX6.js";import"./intl-CBcMB1D2.js";import"./buy-CuFubBZY.js";import"./authorizations-HgwrWkaa.js";import"./sendMetaTransaction-Ba_-1nOk.js";function Te({size:a=12,...d}){return e.jsx("svg",{viewBox:"0 0 20 20",width:a,height:a,fill:"none","aria-hidden":!0,focusable:"false",...d,children:e.jsx("path",{d:"M5 10.5l3 3 7-7.5",stroke:"#fff",strokeWidth:"2.4",strokeLinecap:"round",strokeLinejoin:"round"})})}function ze({size:a=84.837,...d}){return e.jsxs("svg",{viewBox:"0 0 84.837 84.837",width:a,height:a,fill:"none","aria-hidden":!0,focusable:"false",...d,children:[e.jsxs("g",{stroke:A.colors.errStrong,strokeWidth:"6.08696",strokeLinecap:"round",children:[e.jsx("circle",{cx:"42.4185",cy:"42.4185",r:"39.375"}),e.jsx("path",{d:"M42.4185 22.5V47.5"})]}),e.jsx("circle",{cx:"42.4185",cy:"60.75",r:"3.8",fill:A.colors.errStrong})]})}const{colors:R,radius:Ae,z:Re}=A,Fe=pe`
1
+ import{j as e,b as le,r as g,L as ce}from"./react-BYHuwl8r.js";import{t as A,s as t,w as pe,y as he,b as n,C as N,B,bZ as se,z as D,$ as ge,bc as O,F as U,R as xe,o as me,A as ue,bb as fe,I as K,ab as we,an as be,ae as ye,af as ve,b_ as je,E as G}from"./index-B1F4HC5e.js";import{c as ke,i as $e,R as Ce,u as Se}from"./useImportable-Bd5z60P4.js";import{S as Le,C as Ie}from"./ManaPricingBanner.styles-B7-9xlAG.js";import{F as H}from"./Faq-D5XpPmAP.js";import{C as V}from"./field.styles-BmVzLMqo.js";import"./dcl-schemas-CmtP3U6y.js";import"./sentry-Dx-KuLV3.js";import"./ethers-BDpbhgX6.js";import"./intl-CBcMB1D2.js";import"./buy-CrpfOiZS.js";import"./authorizations-U9DZ7xUF.js";import"./sendMetaTransaction-4-11BWED.js";function Te({size:a=12,...d}){return e.jsx("svg",{viewBox:"0 0 20 20",width:a,height:a,fill:"none","aria-hidden":!0,focusable:"false",...d,children:e.jsx("path",{d:"M5 10.5l3 3 7-7.5",stroke:"#fff",strokeWidth:"2.4",strokeLinecap:"round",strokeLinejoin:"round"})})}function ze({size:a=84.837,...d}){return e.jsxs("svg",{viewBox:"0 0 84.837 84.837",width:a,height:a,fill:"none","aria-hidden":!0,focusable:"false",...d,children:[e.jsxs("g",{stroke:A.colors.errStrong,strokeWidth:"6.08696",strokeLinecap:"round",children:[e.jsx("circle",{cx:"42.4185",cy:"42.4185",r:"39.375"}),e.jsx("path",{d:"M42.4185 22.5V47.5"})]}),e.jsx("circle",{cx:"42.4185",cy:"60.75",r:"3.8",fill:A.colors.errStrong})]})}const{colors:R,radius:Ae,z:Re}=A,Fe=pe`
2
2
  0% {
3
3
  transform: scale(0);
4
4
  opacity: 0;
@@ -7,7 +7,7 @@ import{j as e,b as le,r as g,L as ce}from"./react-BYHuwl8r.js";import{t as A,s a
7
7
  transform: scale(1);
8
8
  opacity: 1;
9
9
  }
10
- `,V=t.div`
10
+ `,Y=t.div`
11
11
  position: fixed;
12
12
  inset: 0;
13
13
  background: rgba(0, 0, 0, 0.5);
@@ -168,17 +168,17 @@ import{j as e,b as le,r as g,L as ce}from"./react-BYHuwl8r.js";import{t as A,s a
168
168
  `,J=t.span`
169
169
  color: ${b.errStrong};
170
170
  font-weight: 600;
171
- `,Ye=t.span`
171
+ `,He=t.span`
172
172
  display: flex;
173
173
  align-items: center;
174
174
  justify-content: center;
175
175
  margin-bottom: 4px;
176
- `,He=t.span`
176
+ `,Ve=t.span`
177
177
  width: 14px;
178
178
  height: 14px;
179
179
  margin: 0;
180
180
  border-width: 2px;
181
- `,Ve=t.span`
181
+ `,Ye=t.span`
182
182
  width: 20px;
183
183
  height: 20px;
184
184
  border-radius: 50%;
@@ -189,7 +189,7 @@ import{j as e,b as le,r as g,L as ce}from"./react-BYHuwl8r.js";import{t as A,s a
189
189
  font-size: 12px;
190
190
  `,Ze=t.p`
191
191
  margin: 12px 0 0;
192
- `;function Je(a,d){switch(a==null?void 0:a.step){case"cancelling":return d?n("migrate.phaseCancelConfirm"):n("migrate.phaseCancel");case"confirming-cancel":return d?n("migrate.phaseConfirmingCancel"):n("migrate.phaseConfirmingCancelManaged");case"authorising":return d?n("migrate.phaseAuthoriseConfirm"):n("migrate.phaseAuthorise");case"signing":return d?n("migrate.phaseSignConfirm"):n("migrate.phaseSign");case"publishing":return n("migrate.phasePublishing");case"indexing":return n("migrate.phaseIndexing",{attempt:a.attempt,of:a.of});default:return d?n("migrate.statusConfirm"):n("migrate.statusAdding")}}function Xe({queue:a,session:d,onClose:h,onDone:I}){const W=le(),k=he(d.providerType),[q,_]=g.useState(()=>a.map(()=>null)),[C,E]=g.useState(null),[c,j]=g.useState(()=>a.map(()=>"pending")),[x,M]=g.useState("running"),S=g.useRef(!1);g.useEffect(()=>{if(S.current)return;S.current=!0;let r=!1;return k&&ke(a.map(o=>o.item),d.address).then(o=>{!r&&o&&E({approvals:o.approvals,total:o.total})}).catch(()=>{}),(async()=>{for(let o=0;o<a.length;o++){if(r)return;j(u=>u.map((f,w)=>w===o?"active":f));try{await $e(a[o].item,a[o].priceCredits,d,{onPhase:u=>{r||_(f=>f.map((w,z)=>z===o?u:w))}}),ge("Shop Migrated Listing",{item_id:a[o].item.itemId??a[o].item.oldTradeId??null,contract_address:a[o].item.contractAddress,new_price_credits:a[o].priceCredits,new_price_usd:O(a[o].priceCredits)}),r||j(u=>u.map((f,w)=>w===o?"done":f))}catch(u){if(u instanceof Ce)U(u,{flow:"import_listing",step:"relist",itemId:a[o].item.itemId??a[o].item.oldTradeId}),r||j(f=>f.map((w,z)=>z===o?"unlisted":w));else{const f=u,w=f.code===4001||/reject|denied|cancel/i.test(f.message??"");w||U(u,{flow:"import_listing",itemId:a[o].item.itemId??a[o].item.oldTradeId}),r||j(z=>z.map((oe,de)=>de===o?w?"skipped":"failed":oe))}}}r||M("finished")})(),()=>{r=!0}},[]);const $=c.filter(r=>r==="done").length,P=c.findIndex(r=>r==="active"),Q=Math.round(c.filter(r=>r!=="pending"&&r!=="active").length/a.length*100),L=c.filter(r=>r==="skipped").length,T=c.filter(r=>r==="failed").length,v=c.filter(r=>r==="unlisted").length,i=T+v;function l(){I({listed:$,failed:i,cancelled:L}),h()}const p=g.useRef(!1);return g.useEffect(()=>{x!=="finished"||i>0||p.current||(p.current=!0,l())},[x,i]),x==="finished"?i===0?null:e.jsx(V,{role:"presentation",children:e.jsxs(re,{"data-failure":!0,role:"dialog","aria-modal":"true","data-testid":v>0?"migrate-unlisted":"migrate-failed",children:[e.jsx(Ye,{"aria-hidden":!0,children:e.jsx(ze,{size:72})}),e.jsx(Z,{children:v>0?n("migrate.unlistedTitle"):n("migrate.failedTitle")}),e.jsxs("p",{className:"muted",style:{margin:0},children:[v>0?n("migrate.unlistedSummary",{count:v}):"",T>0?(v>0?" ":"")+n("migrate.failedSummary",{count:T}):"",$>0?" "+n("migrate.listedSummary",{count:$,currency:N.name}):"",L>0?" "+n("migrate.skippedSummary",{count:L}):""]}),e.jsxs(_e,{"data-actions":!0,children:[e.jsx(B,{variant:"ghost",onClick:l,children:n("getCredits.done")}),v>0?e.jsx(B,{variant:"purple",onClick:()=>{I({listed:$,failed:i,cancelled:L}),h(),W(se)},children:n("migrate.goToMyAssets")}):null]})]})}):e.jsx(V,{role:"presentation",children:e.jsxs(Pe,{"data-testid":"modal",role:"dialog","aria-modal":"true","aria-live":"polite",children:[e.jsx(Z,{children:n("migrate.listingTitle")}),e.jsxs("p",{className:"muted small",style:{margin:"0 0 4px"},children:[k?n("migrate.subConfirm"):n("migrate.subManaged")," ",P>=0?n("migrate.progressCount",{current:P+1,total:a.length}):""]}),e.jsx(Be,{children:e.jsx(We,{style:{width:`${Q}%`}})}),e.jsx(qe,{children:a.map((r,m)=>e.jsxs(Qe,{"data-status":c[m],children:[e.jsx(Ne,{children:r.item.thumbnail?e.jsx("img",{src:r.item.thumbnail,alt:""}):null}),e.jsx(De,{title:r.item.name,children:r.item.name||n("migrate.itemFallback")}),e.jsxs(Oe,{children:[e.jsx(D,{className:"ccy-mark"})," ",r.priceCredits.toLocaleString()]}),e.jsx(Ue,{"data-testid":c[m]==="active"?"migrate-active-status":void 0,children:c[m]==="active"?e.jsxs(e.Fragment,{children:[e.jsx(He,{className:"spinner","aria-hidden":!0})," ",Je(q[m],k)]}):c[m]==="done"?e.jsx(Ve,{children:e.jsx(Te,{})}):c[m]==="skipped"?e.jsx(Ge,{children:n("migrate.statusSkipped")}):c[m]==="failed"?e.jsx(J,{children:n("migrate.statusFailed")}):c[m]==="unlisted"?e.jsx(J,{title:n("migrate.unlistedTooltip"),children:n("migrate.statusUnlisted")}):e.jsx(Ke,{children:n("migrate.statusWaiting")})})]},r.item.oldTradeId))}),e.jsx(Ze,{className:"muted small",children:k?C?n(C.approvals>0?"migrate.hintCountApproval":"migrate.hintCount",{total:C.total}):n("migrate.hintConfirm"):n("migrate.hintManaged")})]})})}const et="data:image/svg+xml,%3csvg%20preserveAspectRatio='none'%20overflow='visible'%20style='display:%20block;'%20width='84.837'%20height='84.837'%20viewBox='0%200%2084.837%2084.837'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Group'%3e%3cpath%20id='Vector'%20d='M29.2935%2033.6675L43.5472%2044.36C44.4303%2045.0223%2045.5311%2045.3263%2046.6288%2045.2111C47.7266%2045.0959%2048.7403%2044.5699%2049.4666%2043.7387L77.4185%2011.7925'%20stroke='url(%23paint0_linear_0_74)'%20stroke-width='6.08696'%20stroke-linecap='round'/%3e%3cpath%20id='Vector_2'%20d='M81.7935%2042.4178C81.7936%2050.6451%2079.2167%2058.6658%2074.4245%2065.3533C69.6323%2072.0409%2062.8657%2077.0594%2055.075%2079.7039C47.2843%2082.3485%2038.8609%2082.4862%2030.9879%2080.0978C23.1149%2077.7094%2016.1878%2072.9149%2011.1796%2066.3876C6.17126%2059.8603%203.33339%2051.9282%203.06452%2043.7053C2.79565%2035.4824%205.10927%2027.3818%209.68046%2020.5413C14.2516%2013.7008%2020.8507%208.46394%2028.5509%205.56634C36.251%202.66875%2044.6654%202.25594%2052.6122%204.38589'%20stroke='url(%23paint1_linear_0_74)'%20stroke-width='6.08696'%20stroke-linecap='round'/%3e%3c/g%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_0_74'%20x1='27.7771'%20y1='28.5159'%20x2='111.866'%20y2='17.1154'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23FF2D55'/%3e%3cstop%20offset='1'%20stop-color='%23FFBC5B'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint1_linear_0_74'%20x1='0.562175'%20y1='42.4235'%20x2='139.458'%20y2='29.3377'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23FF2D55'/%3e%3cstop%20offset='1'%20stop-color='%23FFBC5B'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e",{colors:s,font:tt,media:y,radius:F}=A,it=t.div`
192
+ `;function Je(a,d){switch(a==null?void 0:a.step){case"cancelling":return d?n("migrate.phaseCancelConfirm"):n("migrate.phaseCancel");case"confirming-cancel":return d?n("migrate.phaseConfirmingCancel"):n("migrate.phaseConfirmingCancelManaged");case"authorising":return d?n("migrate.phaseAuthoriseConfirm"):n("migrate.phaseAuthorise");case"signing":return d?n("migrate.phaseSignConfirm"):n("migrate.phaseSign");case"publishing":return n("migrate.phasePublishing");case"indexing":return n("migrate.phaseIndexing",{attempt:a.attempt,of:a.of});default:return d?n("migrate.statusConfirm"):n("migrate.statusAdding")}}function Xe({queue:a,session:d,onClose:h,onDone:I}){const W=le(),k=he(d.providerType),[q,_]=g.useState(()=>a.map(()=>null)),[C,E]=g.useState(null),[c,j]=g.useState(()=>a.map(()=>"pending")),[x,M]=g.useState("running"),S=g.useRef(!1);g.useEffect(()=>{if(S.current)return;S.current=!0;let r=!1;return k&&ke(a.map(o=>o.item),d.address).then(o=>{!r&&o&&E({approvals:o.approvals,total:o.total})}).catch(()=>{}),(async()=>{for(let o=0;o<a.length;o++){if(r)return;j(u=>u.map((f,w)=>w===o?"active":f));try{await $e(a[o].item,a[o].priceCredits,d,{onPhase:u=>{r||_(f=>f.map((w,z)=>z===o?u:w))}}),ge("Shop Migrated Listing",{item_id:a[o].item.itemId??a[o].item.oldTradeId??null,contract_address:a[o].item.contractAddress,new_price_credits:a[o].priceCredits,new_price_usd:O(a[o].priceCredits)}),r||j(u=>u.map((f,w)=>w===o?"done":f))}catch(u){if(u instanceof Ce)U(u,{flow:"import_listing",step:"relist",itemId:a[o].item.itemId??a[o].item.oldTradeId}),r||j(f=>f.map((w,z)=>z===o?"unlisted":w));else{const f=u,w=f.code===4001||/reject|denied|cancel/i.test(f.message??"");w||U(u,{flow:"import_listing",itemId:a[o].item.itemId??a[o].item.oldTradeId}),r||j(z=>z.map((oe,de)=>de===o?w?"skipped":"failed":oe))}}}r||M("finished")})(),()=>{r=!0}},[]);const $=c.filter(r=>r==="done").length,P=c.findIndex(r=>r==="active"),Q=Math.round(c.filter(r=>r!=="pending"&&r!=="active").length/a.length*100),L=c.filter(r=>r==="skipped").length,T=c.filter(r=>r==="failed").length,v=c.filter(r=>r==="unlisted").length,i=T+v;function l(){I({listed:$,failed:i,cancelled:L}),h()}const p=g.useRef(!1);return g.useEffect(()=>{x!=="finished"||i>0||p.current||(p.current=!0,l())},[x,i]),x==="finished"?i===0?null:e.jsx(Y,{role:"presentation",children:e.jsxs(re,{"data-failure":!0,role:"dialog","aria-modal":"true","data-testid":v>0?"migrate-unlisted":"migrate-failed",children:[e.jsx(He,{"aria-hidden":!0,children:e.jsx(ze,{size:72})}),e.jsx(Z,{children:v>0?n("migrate.unlistedTitle"):n("migrate.failedTitle")}),e.jsxs("p",{className:"muted",style:{margin:0},children:[v>0?n("migrate.unlistedSummary",{count:v}):"",T>0?(v>0?" ":"")+n("migrate.failedSummary",{count:T}):"",$>0?" "+n("migrate.listedSummary",{count:$,currency:N.name}):"",L>0?" "+n("migrate.skippedSummary",{count:L}):""]}),e.jsxs(_e,{"data-actions":!0,children:[e.jsx(B,{variant:"ghost",onClick:l,children:n("getCredits.done")}),v>0?e.jsx(B,{variant:"purple",onClick:()=>{I({listed:$,failed:i,cancelled:L}),h(),W(se)},children:n("migrate.goToMyAssets")}):null]})]})}):e.jsx(Y,{role:"presentation",children:e.jsxs(Pe,{"data-testid":"modal",role:"dialog","aria-modal":"true","aria-live":"polite",children:[e.jsx(Z,{children:n("migrate.listingTitle")}),e.jsxs("p",{className:"muted small",style:{margin:"0 0 4px"},children:[k?n("migrate.subConfirm"):n("migrate.subManaged")," ",P>=0?n("migrate.progressCount",{current:P+1,total:a.length}):""]}),e.jsx(Be,{children:e.jsx(We,{style:{width:`${Q}%`}})}),e.jsx(qe,{children:a.map((r,m)=>e.jsxs(Qe,{"data-status":c[m],children:[e.jsx(Ne,{children:r.item.thumbnail?e.jsx("img",{src:r.item.thumbnail,alt:""}):null}),e.jsx(De,{title:r.item.name,children:r.item.name||n("migrate.itemFallback")}),e.jsxs(Oe,{children:[e.jsx(D,{className:"ccy-mark"})," ",r.priceCredits.toLocaleString()]}),e.jsx(Ue,{"data-testid":c[m]==="active"?"migrate-active-status":void 0,children:c[m]==="active"?e.jsxs(e.Fragment,{children:[e.jsx(Ve,{className:"spinner","aria-hidden":!0})," ",Je(q[m],k)]}):c[m]==="done"?e.jsx(Ye,{children:e.jsx(Te,{})}):c[m]==="skipped"?e.jsx(Ge,{children:n("migrate.statusSkipped")}):c[m]==="failed"?e.jsx(J,{children:n("migrate.statusFailed")}):c[m]==="unlisted"?e.jsx(J,{title:n("migrate.unlistedTooltip"),children:n("migrate.statusUnlisted")}):e.jsx(Ke,{children:n("migrate.statusWaiting")})})]},r.item.oldTradeId))}),e.jsx(Ze,{className:"muted small",children:k?C?n(C.approvals>0?"migrate.hintCountApproval":"migrate.hintCount",{total:C.total}):n("migrate.hintConfirm"):n("migrate.hintManaged")})]})})}const et="data:image/svg+xml,%3csvg%20preserveAspectRatio='none'%20overflow='visible'%20style='display:%20block;'%20width='84.837'%20height='84.837'%20viewBox='0%200%2084.837%2084.837'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Group'%3e%3cpath%20id='Vector'%20d='M29.2935%2033.6675L43.5472%2044.36C44.4303%2045.0223%2045.5311%2045.3263%2046.6288%2045.2111C47.7266%2045.0959%2048.7403%2044.5699%2049.4666%2043.7387L77.4185%2011.7925'%20stroke='url(%23paint0_linear_0_74)'%20stroke-width='6.08696'%20stroke-linecap='round'/%3e%3cpath%20id='Vector_2'%20d='M81.7935%2042.4178C81.7936%2050.6451%2079.2167%2058.6658%2074.4245%2065.3533C69.6323%2072.0409%2062.8657%2077.0594%2055.075%2079.7039C47.2843%2082.3485%2038.8609%2082.4862%2030.9879%2080.0978C23.1149%2077.7094%2016.1878%2072.9149%2011.1796%2066.3876C6.17126%2059.8603%203.33339%2051.9282%203.06452%2043.7053C2.79565%2035.4824%205.10927%2027.3818%209.68046%2020.5413C14.2516%2013.7008%2020.8507%208.46394%2028.5509%205.56634C36.251%202.66875%2044.6654%202.25594%2052.6122%204.38589'%20stroke='url(%23paint1_linear_0_74)'%20stroke-width='6.08696'%20stroke-linecap='round'/%3e%3c/g%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_0_74'%20x1='27.7771'%20y1='28.5159'%20x2='111.866'%20y2='17.1154'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23FF2D55'/%3e%3cstop%20offset='1'%20stop-color='%23FFBC5B'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint1_linear_0_74'%20x1='0.562175'%20y1='42.4235'%20x2='139.458'%20y2='29.3377'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23FF2D55'/%3e%3cstop%20offset='1'%20stop-color='%23FFBC5B'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e",{colors:s,font:tt,media:y,radius:F}=A,it=t.div`
193
193
  display: flex;
194
194
  flex-direction: column;
195
195
  align-items: center;
@@ -619,4 +619,4 @@ import{j as e,b as le,r as g,L as ce}from"./react-BYHuwl8r.js";import{t as A,s a
619
619
  font-size: 18px;
620
620
  }
621
621
  }
622
- `,ae=[{question:"faq.sellers.whatAreQ",answer:"faq.sellers.whatAreA"},{question:"faq.sellers.whyCreditsQ",answer:"faq.sellers.whyCreditsA"},{question:"faq.sellers.receiveCreditsQ",answer:"faq.sellers.receiveCreditsA"},{question:"faq.sellers.changePriceQ",answer:"faq.sellers.changePriceA"},{question:"faq.sellers.mustSwitchQ",answer:"faq.sellers.mustSwitchA"},{question:"faq.sellers.suggestedPriceQ",answer:"faq.sellers.suggestedPriceA"}],qt="https://docs.decentraland.org";function Qt(a){try{return je(BigInt(a))}catch{return null}}function ti(){const{session:a}=me(),d=ue(),{items:h,isLoading:I}=Se(),[W,k]=g.useState({}),[q,_]=g.useState(new Set),[C,E]=g.useState(null);g.useEffect(()=>{h.length&&k(i=>{const l={...i};for(const p of h)l[p.oldTradeId]==null&&(l[p.oldTradeId]=p.suggestedCredits);return l})},[h]);const c=i=>!q.has(i),j=i=>W[i.oldTradeId]??i.suggestedCredits,x=h.filter(i=>c(i.oldTradeId)),M=x.reduce((i,l)=>i+j(l),0),S=h.length>0&&x.length===h.length,$=x.length>0&&!S;function P(i,l){const p=l.replace(/[^\d]/g,"");k(r=>({...r,[i]:p===""?0:parseInt(p,10)}))}function Q(i){_(l=>{const p=new Set(l);return p.has(i)?p.delete(i):p.add(i),p})}function L(){_(S?new Set(h.map(i=>i.oldTradeId)):new Set)}function T(i){return i.map(l=>({item:l,priceCredits:Math.max(1,j(l))}))}function v(i){d.invalidateQueries({queryKey:["importable"]}),d.invalidateQueries({queryKey:["shop-items"]}),d.invalidateQueries({queryKey:["catalog-items"]}),d.invalidateQueries({queryKey:["overview-listings"]}),d.invalidateQueries({queryKey:["upsell-listings"]}),d.invalidateQueries({queryKey:["my-assets"]}),d.invalidateQueries({queryKey:["collection-sale-state"]}),i.failed>0?G.error(n(i.listed>0?"importListings.toastPartial":"importListings.toastFailed")):i.listed>0&&G.success(n("importListings.toastUpdated"))}return!I&&h.length===0?e.jsxs(X,{children:[e.jsx(it,{"data-testid":"import-empty",children:e.jsxs(nt,{children:[e.jsx(at,{"aria-hidden":!0,children:e.jsx("img",{src:et,alt:"",width:85,height:85})}),e.jsxs(st,{children:[e.jsx(rt,{children:n("importListings.emptyTitle")}),e.jsx(ot,{children:n("importListings.emptyBody")})]}),e.jsx(dt,{children:e.jsx(lt,{as:ce,to:se,variant:"purple",children:n("importListings.goToMyAssets")})})]})}),e.jsx(ne,{children:e.jsx(Y,{title:"faq.title",entries:ae})})]}):e.jsxs(X,{children:[e.jsxs(ct,{children:[e.jsxs(pt,{children:[e.jsx(ht,{children:n("importListings.title")}),e.jsxs("div",{children:[e.jsx(gt,{children:n("importListings.lede",{currency:fe(N.name)})}),e.jsxs(xt,{href:qt,target:"_blank",rel:"noopener noreferrer",children:[n("importListings.learnMore"),e.jsx(K,{name:"external-link",className:"ico","aria-hidden":!0})]})]})]}),e.jsx(Ie,{tone:"on-dark"})]}),e.jsx(ee,{}),e.jsxs(mt,{children:[e.jsxs(ut,{"data-testid":"import-progress",children:[e.jsx(ft,{"data-testid":"import-count",children:h.length}),n("importListings.updatePricing")]}),e.jsxs(wt,{children:[e.jsxs(bt,{children:[e.jsx(te,{"data-tone":"on-dark",children:e.jsx(H,{type:"checkbox",checked:S,ref:i=>{i&&(i.indeterminate=$)},"data-indeterminate":$,onChange:L,"data-testid":"import-select-all","aria-label":n("importListings.selectAllAria")})}),n("importListings.selectAll")]}),e.jsx(yt,{children:I?Array.from({length:4}).map((i,l)=>e.jsx(Rt,{},l)):h.map(i=>{const l=j(i),p=we({...i,wearableCategory:i.wearableCategory??void 0}),r=Qt(i.manaWei);return e.jsxs(vt,{"data-off":c(i.oldTradeId)?void 0:!0,children:[e.jsxs(jt,{children:[e.jsx(te,{children:e.jsx(H,{type:"checkbox",checked:c(i.oldTradeId),onChange:()=>Q(i.oldTradeId),"data-testid":"import-row-check","aria-label":n("importListings.includeItem",{name:i.name})})}),e.jsx(kt,{children:i.thumbnail?e.jsx("img",{src:i.thumbnail,alt:""}):null})]}),e.jsxs($t,{children:[e.jsx(Ct,{title:i.name,children:i.name||n("importListings.itemFallback")}),e.jsxs(St,{children:[e.jsx(ie,{"data-variant":"rarity",style:{background:ve(i.rarity),color:ye(i.rarity)},children:be(i.rarity)}),p?e.jsx(ie,{"data-variant":"icon",children:e.jsx(K,{name:p,"aria-hidden":!0})}):null]})]}),e.jsxs(Lt,{children:[e.jsxs(It,{children:[e.jsx(D,{}),e.jsx(Tt,{"data-testid":"imp-price-input",inputMode:"numeric",value:l.toLocaleString(),onChange:m=>P(i.oldTradeId,m.target.value),"aria-label":n("importListings.priceAria",{currency:N.name,name:i.name})})]}),e.jsxs(zt,{children:[e.jsxs("span",{children:["$",O(l).toFixed(2)]}),r?e.jsx(At,{children:n("importListings.wasMana",{amount:r})}):null]})]})]},i.oldTradeId)})})]})]}),e.jsx(ee,{}),e.jsx(ne,{children:e.jsx(Y,{title:"faq.title",entries:ae,tone:"on-dark"})}),e.jsx(Ft,{children:e.jsxs(_t,{children:[e.jsxs(Et,{children:[e.jsxs(Mt,{children:[e.jsx(D,{})," ",M.toLocaleString()]}),e.jsx(Pt,{children:n("importListings.selectedSummary",{count:x.length,usd:O(M).toFixed(2)})})]}),e.jsx(Bt,{}),e.jsx(Wt,{variant:"red","data-testid":"import-list-all",disabled:x.length===0,onClick:()=>E(T(x)),children:n("importListings.listAll",{count:x.length})})]})}),C&&a?e.jsx(Xe,{queue:C,session:a,onClose:()=>E(null),onDone:v}):null]})}export{ti as ImportListings};
622
+ `,ae=[{question:"faq.sellers.whatAreQ",answer:"faq.sellers.whatAreA"},{question:"faq.sellers.whyCreditsQ",answer:"faq.sellers.whyCreditsA"},{question:"faq.sellers.receiveCreditsQ",answer:"faq.sellers.receiveCreditsA"},{question:"faq.sellers.changePriceQ",answer:"faq.sellers.changePriceA"},{question:"faq.sellers.mustSwitchQ",answer:"faq.sellers.mustSwitchA"},{question:"faq.sellers.suggestedPriceQ",answer:"faq.sellers.suggestedPriceA"}],qt="https://docs.decentraland.org";function Qt(a){try{return je(BigInt(a))}catch{return null}}function ti(){const{session:a}=me(),d=ue(),{items:h,isLoading:I}=Se(),[W,k]=g.useState({}),[q,_]=g.useState(new Set),[C,E]=g.useState(null);g.useEffect(()=>{h.length&&k(i=>{const l={...i};for(const p of h)l[p.oldTradeId]==null&&(l[p.oldTradeId]=p.suggestedCredits);return l})},[h]);const c=i=>!q.has(i),j=i=>W[i.oldTradeId]??i.suggestedCredits,x=h.filter(i=>c(i.oldTradeId)),M=x.reduce((i,l)=>i+j(l),0),S=h.length>0&&x.length===h.length,$=x.length>0&&!S;function P(i,l){const p=l.replace(/[^\d]/g,"");k(r=>({...r,[i]:p===""?0:parseInt(p,10)}))}function Q(i){_(l=>{const p=new Set(l);return p.has(i)?p.delete(i):p.add(i),p})}function L(){_(S?new Set(h.map(i=>i.oldTradeId)):new Set)}function T(i){return i.map(l=>({item:l,priceCredits:Math.max(1,j(l))}))}function v(i){d.invalidateQueries({queryKey:["importable"]}),d.invalidateQueries({queryKey:["shop-items"]}),d.invalidateQueries({queryKey:["catalog-items"]}),d.invalidateQueries({queryKey:["overview-listings"]}),d.invalidateQueries({queryKey:["upsell-listings"]}),d.invalidateQueries({queryKey:["my-assets"]}),d.invalidateQueries({queryKey:["collection-sale-state"]}),i.failed>0?G.error(n(i.listed>0?"importListings.toastPartial":"importListings.toastFailed")):i.listed>0&&G.success(n("importListings.toastUpdated"))}return!I&&h.length===0?e.jsxs(X,{children:[e.jsx(it,{"data-testid":"import-empty",children:e.jsxs(nt,{children:[e.jsx(at,{"aria-hidden":!0,children:e.jsx("img",{src:et,alt:"",width:85,height:85})}),e.jsxs(st,{children:[e.jsx(rt,{children:n("importListings.emptyTitle")}),e.jsx(ot,{children:n("importListings.emptyBody")})]}),e.jsx(dt,{children:e.jsx(lt,{as:ce,to:se,variant:"purple",children:n("importListings.goToMyAssets")})})]})}),e.jsx(ne,{children:e.jsx(H,{title:"faq.title",entries:ae})})]}):e.jsxs(X,{children:[e.jsxs(ct,{children:[e.jsxs(pt,{children:[e.jsx(ht,{children:n("importListings.title")}),e.jsxs("div",{children:[e.jsx(gt,{children:n("importListings.lede",{currency:fe(N.name)})}),e.jsxs(xt,{href:qt,target:"_blank",rel:"noopener noreferrer",children:[n("importListings.learnMore"),e.jsx(K,{name:"external-link",className:"ico","aria-hidden":!0})]})]})]}),e.jsx(Ie,{tone:"on-dark"})]}),e.jsx(ee,{}),e.jsxs(mt,{children:[e.jsxs(ut,{"data-testid":"import-progress",children:[e.jsx(ft,{"data-testid":"import-count",children:h.length}),n("importListings.updatePricing")]}),e.jsxs(wt,{children:[e.jsxs(bt,{children:[e.jsx(te,{"data-tone":"on-dark",children:e.jsx(V,{type:"checkbox",checked:S,ref:i=>{i&&(i.indeterminate=$)},"data-indeterminate":$,onChange:L,"data-testid":"import-select-all","aria-label":n("importListings.selectAllAria")})}),n("importListings.selectAll")]}),e.jsx(yt,{children:I?Array.from({length:4}).map((i,l)=>e.jsx(Rt,{},l)):h.map(i=>{const l=j(i),p=we({...i,wearableCategory:i.wearableCategory??void 0}),r=Qt(i.manaWei);return e.jsxs(vt,{"data-off":c(i.oldTradeId)?void 0:!0,children:[e.jsxs(jt,{children:[e.jsx(te,{children:e.jsx(V,{type:"checkbox",checked:c(i.oldTradeId),onChange:()=>Q(i.oldTradeId),"data-testid":"import-row-check","aria-label":n("importListings.includeItem",{name:i.name})})}),e.jsx(kt,{children:i.thumbnail?e.jsx("img",{src:i.thumbnail,alt:""}):null})]}),e.jsxs($t,{children:[e.jsx(Ct,{title:i.name,children:i.name||n("importListings.itemFallback")}),e.jsxs(St,{children:[e.jsx(ie,{"data-variant":"rarity",style:{background:ve(i.rarity),color:ye(i.rarity)},children:be(i.rarity)}),p?e.jsx(ie,{"data-variant":"icon",children:e.jsx(K,{name:p,"aria-hidden":!0})}):null]})]}),e.jsxs(Lt,{children:[e.jsxs(It,{children:[e.jsx(D,{}),e.jsx(Tt,{"data-testid":"imp-price-input",inputMode:"numeric",value:l.toLocaleString(),onChange:m=>P(i.oldTradeId,m.target.value),"aria-label":n("importListings.priceAria",{currency:N.name,name:i.name})})]}),e.jsxs(zt,{children:[e.jsxs("span",{children:["$",O(l).toFixed(2)]}),r?e.jsx(At,{children:n("importListings.wasMana",{amount:r})}):null]})]})]},i.oldTradeId)})})]})]}),e.jsx(ee,{}),e.jsx(ne,{children:e.jsx(H,{title:"faq.title",entries:ae,tone:"on-dark"})}),e.jsx(Ft,{children:e.jsxs(_t,{children:[e.jsxs(Et,{children:[e.jsxs(Mt,{children:[e.jsx(D,{})," ",M.toLocaleString()]}),e.jsx(Pt,{children:n("importListings.selectedSummary",{count:x.length,usd:O(M).toFixed(2)})})]}),e.jsx(Bt,{}),e.jsx(Wt,{variant:"red","data-testid":"import-list-all",disabled:x.length===0,onClick:()=>E(T(x)),children:n("importListings.listAll",{count:x.length})})]})}),C&&a?e.jsx(Xe,{queue:C,session:a,onClose:()=>E(null),onDone:v}):null]})}export{ti as ImportListings};
@@ -1,4 +1,4 @@
1
- import{a as d,i as p,b as m}from"./lit-element-B3y9oplH.js";import{n as h}from"./class-map-CxwNmq0D.js";import{r as f,v as r}from"./index-DNvcQt0s.js";import{c as x}from"./index-tCYP1O3W.js";const g=d`
1
+ import{a as d,i as p,b as m}from"./lit-element-B3y9oplH.js";import{n as h}from"./class-map-CxwNmq0D.js";import{r as f,v as r}from"./index-CN1dI-_M.js";import{c as x}from"./index-BxSHnhqJ.js";const g=d`
2
2
  :host {
3
3
  display: flex;
4
4
  }