@dcl/shop 1.13.1-35095058100.commit-8d694c8 → 1.13.1-35146304116.commit-0532a2b

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (239) hide show
  1. package/_assets/Activity-CUoq5Ec_.js +400 -0
  2. package/_assets/{AnimatedBackground-DsRNSmF9.js → AnimatedBackground-CkSS8iDv.js} +2 -2
  3. package/_assets/{Assets--xiu2hf1.js → Assets-SQGh-_eg.js} +3 -3
  4. package/_assets/{Authorizations-CAq4bDIU.js → Authorizations-L1Pu4suv.js} +2 -2
  5. package/_assets/{Cart-Dn-yuO7W.js → Cart-CyKZk7CM.js} +2 -2
  6. package/_assets/{Collection-DmkDiPC5.js → Collection-DeDyoluW.js} +2 -2
  7. package/_assets/{CollectionCarousel-C2aZMUS6.js → CollectionCarousel-DM2JN-Og.js} +3 -3
  8. package/_assets/{Confetti-CQ1miyT0.js → Confetti-BLxVbH5o.js} +4 -4
  9. package/_assets/{ConstantsUtil-DxsGGeAI.js → ConstantsUtil-CzAq2JlG.js} +2 -2
  10. package/_assets/{ContentClient-DADL-eWJ.js → ContentClient-CwohpHEJ.js} +2 -2
  11. package/_assets/{Creator-DZvSnP1W.js → Creator-CXCzrdUF.js} +2 -2
  12. package/_assets/{DeploymentBuilder-DM4wrDOA.js → DeploymentBuilder-CXqgptK8.js} +2 -2
  13. package/_assets/{EmotePlaybackBar-DKUTpuQ1.js → EmotePlaybackBar-B-oE6PfU.js} +3 -3
  14. package/_assets/{ErrorNotice-Dhs1BLZ6.js → ErrorNotice-BjKorbeP.js} +2 -2
  15. package/_assets/{Event-e3lOCI2G.js → Event-_99dGtyj.js} +2 -2
  16. package/_assets/{ExchangeController-D1BhRLY_.js → ExchangeController-Ca1vSNQH.js} +2 -2
  17. package/_assets/{Faq-qe1pCR9P.js → Faq-BVnO4obf.js} +2 -2
  18. package/_assets/{GetCredits-B96wMekN.js → GetCredits-uWqqViY_.js} +2 -2
  19. package/_assets/{Grow-pyVWvnNE.js → Grow-EG3kvKvE.js} +2 -2
  20. package/_assets/{HelpersUtil-B-VhnmAV.js → HelpersUtil-BAFzVkMb.js} +2 -2
  21. package/_assets/{ItemDetail-EQYc-D1i.js → ItemDetail-D9wpx_7k.js} +2 -2
  22. package/_assets/{LoadMore-3LNbX1EU.js → LoadMore-DE7YSrmA.js} +2 -2
  23. package/_assets/{ManaPricingBanner.styles-Xpaqvszn.js → ManaPricingBanner.styles-BQp5Kq1w.js} +2 -2
  24. package/_assets/{MyAssets-Cw8rL4Qm.js → MyAssets-pm-zUWXo.js} +2 -2
  25. package/_assets/{MyFavorites-C-H9WoDf.js → MyFavorites-CrlDOLqd.js} +2 -2
  26. package/_assets/{NetworkUtil-Cp-gtHa0.js → NetworkUtil-D5060_28.js} +2 -2
  27. package/_assets/{NotFound-C_hegLMz.js → NotFound-DWWysD5r.js} +2 -2
  28. package/_assets/{NotificationsBell-DEOx8fEC.js → NotificationsBell--z2laYR4.js} +2 -2
  29. package/_assets/{OutfitDetail-DccboofD.js → OutfitDetail-C45j_NQH.js} +2 -2
  30. package/_assets/{OutfitPreview-BT1g84TM.js → OutfitPreview-DrOdc6y-.js} +2 -2
  31. package/_assets/{OutfitStudio-DVNHreV-.js → OutfitStudio-BQAYSFVW.js} +2 -2
  32. package/_assets/{SaleCountdown-BCjbqWcU.js → SaleCountdown-BF0I20W5.js} +2 -2
  33. package/_assets/{Spinner-hLMP163F.js → Spinner-BA7Ut7Kf.js} +2 -2
  34. package/_assets/{StoreSettings-C4lpIKgV.js → StoreSettings-yx6fb2zF.js} +3 -3
  35. package/_assets/{Success-DZwN3t4z.js → Success-NX2ENRib.js} +2 -2
  36. package/_assets/{SwapController-BPiF_Q9x.js → SwapController-DEOB6qkC.js} +2 -2
  37. package/_assets/{TradeService-D8Zf_eTM.js → TradeService-B3hWo7M3.js} +2 -2
  38. package/_assets/{W3MFrameProviderSingleton-ByxVGL9W.js → W3MFrameProviderSingleton-B6rhAVVy.js} +4 -4
  39. package/_assets/{WebCryptoP256-BowGpuyg.js → WebCryptoP256-BeNxJSfZ.js} +2 -2
  40. package/_assets/{authorizations-D_SudRT-.js → authorizations-B83pvCo5.js} +2 -2
  41. package/_assets/{basic-sN1HnC_u.js → basic-X15YC4vH.js} +2 -2
  42. package/_assets/{biconomy-BijOlHn5.js → biconomy-CN8DzcqS.js} +2 -2
  43. package/_assets/{browseLayout.styles-6-W9YjOC.js → browseLayout.styles-BKjgHcP6.js} +2 -2
  44. package/_assets/{browser-DynTtmBx.js → browser-BLhgq6bj.js} +2 -2
  45. package/_assets/{browser-D9YPKxfl.js → browser-CE_WgHCW.js} +2 -2
  46. package/_assets/{browser-ponyfill-BVvT8_Fp.js → browser-ponyfill-rx4ABrHQ.js} +2 -2
  47. package/_assets/builder-e1EitLO9.js +2 -0
  48. package/_assets/{buy-BkbR80Gf.js → buy-D7nFmJT8.js} +2 -2
  49. package/_assets/{buy-gasless-CQdgMa0F.js → buy-gasless-DNEVxdLb.js} +2 -2
  50. package/_assets/{categories-Dquh1vbV.js → categories-CBw6i6jK.js} +2 -2
  51. package/_assets/{ccip-CV07CEfz.js → ccip-CSmx0Ukl.js} +2 -2
  52. package/_assets/{ccip-BQaVTqUi.js → ccip-WSZ1SOI1.js} +2 -2
  53. package/_assets/{chains-Bp3h2aaE.js → chains-CSz4uaiN.js} +2 -2
  54. package/_assets/{collectionPage.styles-St6jJHia.js → collectionPage.styles-CGv38BAV.js} +8 -8
  55. package/_assets/{common-vsCsmUBn.js → common-CsauCio8.js} +2 -2
  56. package/_assets/{controller-DIQ9DcOx.js → controller-BZ74u9Mx.js} +3 -3
  57. package/_assets/{core-Cs979BA0.js → core-DArcUITf.js} +5 -5
  58. package/_assets/{createSvgIcon-P53Pfdxl.js → createSvgIcon-D90PXHtL.js} +2 -2
  59. package/_assets/{crumbs.styles-N13K8LJF.js → crumbs.styles-B_xC21o-.js} +2 -2
  60. package/_assets/{custom-DP7Ww2Mp.js → custom-C1-1hU-n.js} +2 -2
  61. package/_assets/{data-capture-r6LhzaPe.js → data-capture-BlpHZAMp.js} +2 -2
  62. package/_assets/{dcl-schemas-n1W5glLl.js → dcl-schemas-DwpPH57a.js} +2 -2
  63. package/_assets/{decimals-1-P-OpKN.js → decimals-DM3o8F2C.js} +2 -2
  64. package/_assets/{decimals-BW5hR24C.js → decimals-aCEDG5JH.js} +2 -2
  65. package/_assets/{detectExtension-DQg6wKZQ.js → detectExtension-0ov0Rrws.js} +2 -2
  66. package/_assets/{disposePreview-D5gU11Se.js → disposePreview-HoZr4ggw.js} +2 -2
  67. package/_assets/{email-C4mis8Vg.js → email-C0VnJMNG.js} +2 -2
  68. package/_assets/{embedded-wallet-CaKg_r8U.js → embedded-wallet-Bi2n7sef.js} +2 -2
  69. package/_assets/{emotion-styled.browser.esm-BUJmozsy.js → emotion-styled.browser.esm-DA7w4htd.js} +2 -2
  70. package/_assets/{engine-D07w-XRT.js → engine-Bztsdwml.js} +2 -2
  71. package/_assets/{errors-DhRbQUQ8.js → errors-CNu2839_.js} +2 -2
  72. package/_assets/{estimate-l1-fee-CVLkkmbZ.js → estimate-l1-fee-B-J8ubtj.js} +2 -2
  73. package/_assets/{eth_estimateGas-DcrnZAhD.js → eth_estimateGas-PqNhqizJ.js} +2 -2
  74. package/_assets/{eth_getStorageAt-D55EQvGL.js → eth_getStorageAt-OHBtIi6n.js} +2 -2
  75. package/_assets/{eth_getTransactionCount-996c8uw3.js → eth_getTransactionCount-3Fo1K1in.js} +2 -2
  76. package/_assets/{ethereum-BB2NY3Ze.js → ethereum-DgDIagMf.js} +2 -2
  77. package/_assets/{ethers-OrSZ5jmz.js → ethers-1M1CfdDX.js} +2 -2
  78. package/_assets/{events-C-1hKiSc.js → events-ChynmAya.js} +2 -2
  79. package/_assets/{execute-DkcTGxdS.js → execute-CMhgmHrV.js} +3 -3
  80. package/_assets/{extractIPFS-DGBDqkFQ.js → extractIPFS-Dmk6yNJt.js} +2 -2
  81. package/_assets/{features-Dgji4xPv.js → features-BOeSwrw7.js} +2 -2
  82. package/_assets/{fetchTokenMetadata-CLY3eWo4.js → fetchTokenMetadata-B3gG8lNZ.js} +3 -3
  83. package/_assets/{field.styles-B66-mhwP.js → field.styles-CjXfWCnd.js} +2 -2
  84. package/_assets/{fortmatic-CIXGktdE.js → fortmatic-q9_51_t1.js} +2 -2
  85. package/_assets/{get-bytecode-B4ah9_Ee.js → get-bytecode-C9C09tyO.js} +2 -2
  86. package/_assets/{get-ecosystem-wallet-info-BUVR1h_d.js → get-ecosystem-wallet-info-Md6d1ElT.js} +2 -2
  87. package/_assets/{getBalance-DcjxPvBd.js → getBalance-B3PyAxk9.js} +3 -3
  88. package/_assets/{getInstalledModules-CVmsNb5W.js → getInstalledModules-Cc3eGsGW.js} +2 -2
  89. package/_assets/{getNFT-CNkldXgA.js → getNFT-08MzaPPL.js} +2 -2
  90. package/_assets/{getNFT-D6Q2R2w8.js → getNFT-Ct0fZovm.js} +3 -3
  91. package/_assets/{grid.styles-CbKnaEaH.js → grid.styles-DLJDk6Da.js} +2 -2
  92. package/_assets/{hashTypedData-BXTiCI6R.js → hashTypedData-CHOe753o.js} +2 -2
  93. package/_assets/{hashTypedData-BMQaC5AO.js → hashTypedData-CwOONztK.js} +2 -2
  94. package/_assets/{import-nI9C4MLI.js → import-DTtBPLJq.js} +2 -2
  95. package/_assets/{in-app-qH_5BfXH.js → in-app-CxjWjLLj.js} +2 -2
  96. package/_assets/{in-app-wallet-calls-D5QY4WMZ.js → in-app-wallet-calls-BmK7j5xu.js} +2 -2
  97. package/_assets/{index-B8pq8JLn.js → index-2O4398aF.js} +2 -2
  98. package/_assets/{index-Dbzum1xk.js → index-8pBNkHhZ.js} +2 -2
  99. package/_assets/{index-B0eaBbwk.js → index-AKVaFU6R.js} +4 -4
  100. package/_assets/{index-B6gpbqHk.js → index-B4MGZXnJ.js} +3 -3
  101. package/_assets/{index-CO3xBlL2.js → index-B4g6oTgw.js} +2 -2
  102. package/_assets/{index-DEL0w41-.js → index-BBshwWxl.js} +2 -2
  103. package/_assets/{index-D2_5jCAk.js → index-BG18kxxr.js} +2 -2
  104. package/_assets/{index-7jxYsA5x.js → index-BRPC-KxV.js} +2 -2
  105. package/_assets/{index-7LiE_2Hn.js → index-BWmCSXNe.js} +2 -2
  106. package/_assets/{index-DGoH3dH-.js → index-BX1TYBrh.js} +2 -2
  107. package/_assets/{index-DILi1pU7.js → index-Bbna9UA6.js} +2 -2
  108. package/_assets/{index-DWpJbdNp.js → index-BdcOwi8k.js} +2 -2
  109. package/_assets/{index-DuuWxLJb.js → index-Bldxc1rA.js} +2 -2
  110. package/_assets/{index-Q91sfGFW.js → index-BlsDk8cY.js} +2 -2
  111. package/_assets/{index-BT2VuKr_.js → index-BmCV7OM0.js} +2 -2
  112. package/_assets/{index-BbvUH58s.js → index-BmpyzmIh.js} +2 -2
  113. package/_assets/{index-DxPCOmel.js → index-BvktIHhu.js} +3 -3
  114. package/_assets/{index-CspzAmAd.js → index-BwmG-IHr.js} +2 -2
  115. package/_assets/{index-BIDLTLRs.js → index-BxDOHc7K.js} +2 -2
  116. package/_assets/{index-Cfiy7F58.js → index-C17qo1Vn.js} +2 -2
  117. package/_assets/{index-DhxbjStl.js → index-C9YXrqLC.js} +2 -2
  118. package/_assets/{index-CTpgpMEc.js → index-CArhbxfh.js} +2 -2
  119. package/_assets/{index-CMGA6Ehu.js → index-CI-biK0J.js} +2 -2
  120. package/_assets/{index-VrmvnTaa.js → index-CNCV5gb2.js} +2 -2
  121. package/_assets/{index-C_vB1IQd.js → index-CaMOVOnV.js} +2 -2
  122. package/_assets/{index-BymYE2Hq.js → index-CjJbgwsG.js} +2 -2
  123. package/_assets/{index-B9LTXTJ_.js → index-CkhwV11V.js} +2 -2
  124. package/_assets/{index-u3wacysv.js → index-CnEhIH6s.js} +2 -2
  125. package/_assets/{index-Ci7OJEKI.js → index-CtQRm-uR.js} +2 -2
  126. package/_assets/{index-BJOeyXU6.js → index-Cxm44GCk.js} +2 -2
  127. package/_assets/{index-5TanjW1p.js → index-CyRKYgX3.js} +4 -4
  128. package/_assets/{index-BYf--6IB.js → index-CzFmHLD1.js} +2 -2
  129. package/_assets/{index-C9g_L_xU.js → index-D4G9X1ch.js} +2 -2
  130. package/_assets/{index-BUJII-te.js → index-D4mLzE5t.js} +2 -2
  131. package/_assets/{index-CBqzQu4b.js → index-D5ygN-7N.js} +3 -3
  132. package/_assets/{index-CLkKFzPp.js → index-DArg0qfu.js} +2 -2
  133. package/_assets/{index-B767Ef3o.js → index-DB-g40Lk.js} +2 -2
  134. package/_assets/{index-DzQkIbqv.js → index-DBONtw7H.js} +12 -12
  135. package/_assets/{index-gl06JVkD.js → index-DIYaVDaM.js} +2 -2
  136. package/_assets/{index-FgD-q8nY.js → index-DMqzgHxy.js} +2 -2
  137. package/_assets/{index-CiVDvcz9.js → index-DPzFuzjH.js} +2 -2
  138. package/_assets/{index-C11xAGLj.js → index-DQb-ID00.js} +2 -2
  139. package/_assets/{index-CqA25hIa.js → index-DSUMm5bM.js} +3 -3
  140. package/_assets/{index-CzONDXJm.js → index-DSo-HA-Q.js} +2 -2
  141. package/_assets/{index-DsKy4xQX.js → index-DT0ol44j.js} +2 -2
  142. package/_assets/{index-BBmOO_5v.js → index-DcFBuCAU.js} +2 -2
  143. package/_assets/{index-BHeP5cAB.js → index-Dp05ebh4.js} +2 -2
  144. package/_assets/{index-CZBL8oDN.css → index-Drj3_D29.css} +1 -1
  145. package/_assets/{index-ChkZ_3N-.js → index-Du3ibQ0n.js} +2 -2
  146. package/_assets/{index-CKir0NTC.js → index-DuT7MyhP.js} +2 -2
  147. package/_assets/{index-DSZlP7vv.js → index-DwPwW3EN.js} +2 -2
  148. package/_assets/{index-t1CDJb0U.js → index-Dwa5YPI2.js} +2 -2
  149. package/_assets/{index-CulTnm_-.js → index-Dx5GsTV9.js} +2 -2
  150. package/_assets/{index-BbOkb2Lk.js → index-Dy1jWaGR.js} +2 -2
  151. package/_assets/{index-BlyJ0EeU.js → index-Dzt-Eb9V.js} +2 -2
  152. package/_assets/{index-DHIc5ihj.js → index-Ei6ZjPB-.js} +2 -2
  153. package/_assets/{index-jsed_aC3.js → index-Lm6gRDgk.js} +2 -2
  154. package/_assets/{index-DOE5PvRf.js → index-MW2iAiMi.js} +4 -4
  155. package/_assets/{index-QEKAtx1e.js → index-Nl1WGeRF.js} +2 -2
  156. package/_assets/{index-Bt53hnH3.js → index-Wiz3KnKQ.js} +2 -2
  157. package/_assets/{index-3xvycxSp.js → index-ZDi0sa76.js} +2 -2
  158. package/_assets/{index-aYru672w.js → index-lzsOd2r-.js} +2 -2
  159. package/_assets/{index-DyXRsRBM.js → index-mA2FGc2n.js} +2 -2
  160. package/_assets/{index-C3N8gNG5.js → index-mp-W7rgu.js} +2 -2
  161. package/_assets/{index-Cfg8NIxf.js → index-o4QA-YgI.js} +2 -2
  162. package/_assets/{index-DrYTVtgg.js → index-p-Gdk04N.js} +2 -2
  163. package/_assets/{index-2lALaSI0.js → index-qIZigzaT.js} +2 -2
  164. package/_assets/{index-CFkA928w.js → index-sAHSTD-e.js} +2 -2
  165. package/_assets/{index.es-89IU7kpU.js → index.es-BojIKfcn.js} +2 -2
  166. package/_assets/{index.es-BxUByfMu.js → index.es-Bu43E8Od.js} +2 -2
  167. package/_assets/{index.es-O2YZpGjD.js → index.es-D1GXqsQd.js} +5 -5
  168. package/_assets/{index.es-CeXL7thu.js → index.es-RB1w60M4.js} +2 -2
  169. package/_assets/{items-empty-Bo2ok7jY.js → items-empty-DLLWCTVk.js} +2 -2
  170. package/_assets/{jump-CfxL77MI.js → jump-BPwh2vZy.js} +2 -2
  171. package/_assets/{linkAccount-CH9thals.js → linkAccount-D8t0rhjQ.js} +2 -2
  172. package/_assets/{localBatchGatewayRequest-CSeZ4gRB.js → localBatchGatewayRequest-DwX7OXdU.js} +2 -2
  173. package/_assets/{modal.styles-2uQXkegU.js → modal.styles-XB3kPZSk.js} +2 -2
  174. package/_assets/{native-CTjG-6uw.js → native-CVoJihlN.js} +2 -2
  175. package/_assets/{networks-DcWUPxCR.js → networks-k-5FUkuC.js} +2 -2
  176. package/_assets/{onramp-i_2R0Aty.js → onramp-BlfVZmFE.js} +2 -2
  177. package/_assets/{openzeppelin-CRJGheas.js → openzeppelin-CHH76T2R.js} +2 -2
  178. package/_assets/{ownerOf-Cg4HNQ0Q.js → ownerOf-BsF3HIfV.js} +2 -2
  179. package/_assets/{parseNft-C5TjCi9l.js → parseNft-fbo1tW69.js} +3 -3
  180. package/_assets/{parseSignature-BkGllSKb.js → parseSignature-C8wluzrl.js} +2 -2
  181. package/_assets/{parseSignature-DlxX_eFH.js → parseSignature-UG1Z-iRF.js} +4 -4
  182. package/_assets/{passkeys-DHzFFqFt.js → passkeys-BgD3qEUS.js} +2 -2
  183. package/_assets/{pay-with-exchange-Da-95QjC.js → pay-with-exchange-Dul7TqcO.js} +2 -2
  184. package/_assets/{prepare-contract-call-DRyZHwAJ.js → prepare-contract-call-BDx98mcK.js} +2 -2
  185. package/_assets/{qr-overlay-B5-Cv-4F.js → qr-overlay-CzJOf0PR.js} +4 -4
  186. package/_assets/{react-DaBuTM6Q.js → react-VV7ruaEe.js} +2 -2
  187. package/_assets/{receive-BxwWtavl.js → receive-Mbh48-Du.js} +2 -2
  188. package/_assets/{resolveImplementation-UAeMoslS.js → resolveImplementation-C-Bp0jW1.js} +2 -2
  189. package/_assets/{resume-buy-DshgN9vm.js → resume-buy-lwwrCAQL.js} +2 -2
  190. package/_assets/{rpc-xoh1bqpg.js → rpc-dS3qUOUv.js} +2 -2
  191. package/_assets/{sales-empty-B0QNGz8U.js → sales-empty-CdZ6YLiR.js} +2 -2
  192. package/_assets/{search-empty-CiaPLxpu.js → search-empty-Xv_q1rjS.js} +2 -2
  193. package/_assets/{secp256k1-CI4_BdKy.js → secp256k1-B29fjO3k.js} +2 -2
  194. package/_assets/{secp256k1-IgPcu2TC.js → secp256k1-BYEzJ9Ar.js} +2 -2
  195. package/_assets/{secp256k1-B6GZ7kat.js → secp256k1-CzYB4UO1.js} +2 -2
  196. package/_assets/{send-CMxH0R30.js → send-Kib-9VTx.js} +2 -2
  197. package/_assets/{send-batch-transaction-_47YxVXu.js → send-batch-transaction-Bsec8aWl.js} +2 -2
  198. package/_assets/{send-eip712-transaction-dUQPsneg.js → send-eip712-transaction-B8xB6E7z.js} +3 -3
  199. package/_assets/{send-gasless-transaction-C9qimzDD.js → send-gasless-transaction-DOAZoiru.js} +3 -3
  200. package/_assets/{send-transaction-C00epVak.js → send-transaction-C8HId9c-.js} +3 -3
  201. package/_assets/{sendMetaTransaction-D_Udygrx.js → sendMetaTransaction-ZH8zQFka.js} +2 -2
  202. package/_assets/{sendRawTransaction-3Tc8O82f.js → sendRawTransaction-Dj_4qH3D.js} +4 -4
  203. package/_assets/{sentry-ilLelGl_.js → sentry-o0F_Elyr.js} +3 -3
  204. package/_assets/{serializeTransaction-BN5Z150K.js → serializeTransaction-Ci108h6S.js} +2 -2
  205. package/_assets/{session-proposal-DFNQHP37.js → session-proposal-DoiJdtGZ.js} +2 -2
  206. package/_assets/{session-request-D-kuAKOc.js → session-request-D9ZfIWnv.js} +3 -3
  207. package/_assets/{sha256-C6I6NkPD.js → sha256-DKc8_pkb.js} +2 -2
  208. package/_assets/{sha3-CcKshJ6_.js → sha3-Djo6RzzD.js} +2 -2
  209. package/_assets/signin-empty-0RVG8Orx.js +2 -0
  210. package/_assets/{signing-D_eQ6aEY.js → signing-B2ulpOrN.js} +4 -4
  211. package/_assets/{skeleton.styles-B7ceCvK9.js → skeleton.styles-V94rqky6.js} +2 -2
  212. package/_assets/{socials-DCNPHMgt.js → socials-Oa6dTfHZ.js} +2 -2
  213. package/_assets/{styled-TsFrVdC0.js → styled-DyNfGwco.js} +2 -2
  214. package/_assets/{swaps-CicFV6pq.js → swaps-COfyeTsO.js} +2 -2
  215. package/_assets/{thirdweb-Vp1uscmH.js → thirdweb-DI7ZaNzU.js} +4 -4
  216. package/_assets/{to-serializable-transaction-BT5px6SS.js → to-serializable-transaction-By8QfhXP.js} +3 -3
  217. package/_assets/{totalSupply-CkL8_XXt.js → totalSupply-BFOzDnZo.js} +2 -2
  218. package/_assets/{transaction-sOBP-DPj.js → transaction-B1xgjYJ6.js} +2 -2
  219. package/_assets/{transactionReceipt--9bOdV8l.js → transactionReceipt-D8BwP6qt.js} +2 -2
  220. package/_assets/{transactions-CWkneGU6.js → transactions-Bphi4uNv.js} +2 -2
  221. package/_assets/{useCreditPacks-DGUqMJ6U.js → useCreditPacks-DgnQhl__.js} +2 -2
  222. package/_assets/{useInfiniteGrid-DpNO4hZU.js → useInfiniteGrid-CqEvXCvo.js} +2 -2
  223. package/_assets/{useStore-HIvj56kg.js → useStore-BxEjYiKk.js} +3 -3
  224. package/_assets/{useTheme-5m8LACXM.js → useTheme-BSSQBx8D.js} +2 -2
  225. package/_assets/{utils-Ci73E7nx.js → utils-ClhrwhHu.js} +2 -2
  226. package/_assets/{verifyHash-Bk-B5GPz.js → verifyHash-CUVRY0V6.js} +2 -2
  227. package/_assets/{w3m-modal-BtyAd8rE.js → w3m-modal-BGMNR53_.js} +2 -2
  228. package/_assets/{w3m-modal-BTUtrhm6.js → w3m-modal-Cl3xsdnY.js} +2 -2
  229. package/_assets/{wait-for-tx-receipt-Cbmd9TUG.js → wait-for-tx-receipt-CL_z5VGg.js} +2 -2
  230. package/_assets/{wallets-CUIygOS2.js → wallets-B1ZJrwjj.js} +6 -6
  231. package/_assets/{web-connector-BIkHBHih.js → web-connector-Dq-fpFU2.js} +4 -4
  232. package/_assets/{writeContract-CEDCT-Ld.js → writeContract-BvArkAMz.js} +2 -2
  233. package/_assets/{zora-sepolia-C43Ueozz.js → zora-sepolia-IkBJSEG_.js} +2 -2
  234. package/_assets/{zoraTestnet-CnMCD5vw.js → zoraTestnet-DP3dbXZ6.js} +2 -2
  235. package/index.html +11 -11
  236. package/package.json +2 -2
  237. package/_assets/Activity-CjNbjbB8.js +0 -373
  238. package/_assets/builder-BCPamKJP.js +0 -2
  239. package/_assets/signin-empty-C52WOkGa.js +0 -2
@@ -0,0 +1,400 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["_assets/index-DPzFuzjH.js","_assets/react-VV7ruaEe.js","_assets/index-DBONtw7H.js","_assets/dcl-schemas-DwpPH57a.js","_assets/sentry-o0F_Elyr.js","_assets/ethers-1M1CfdDX.js","_assets/intl-AKLEHPeO.js","_assets/index-Drj3_D29.css","_assets/import-DTtBPLJq.js","_assets/buy-D7nFmJT8.js","_assets/authorizations-B83pvCo5.js","_assets/sendMetaTransaction-ZH8zQFka.js","_assets/modal.styles-XB3kPZSk.js","_assets/ManaPricingBanner.styles-BQp5Kq1w.js","_assets/Faq-BVnO4obf.js","_assets/sales-empty-CdZ6YLiR.js","_assets/field.styles-CjXfWCnd.js"])))=>i.map(i=>d[i]);
2
+ import{m as Ae,bS as Ee,E as G,D as E,bT as Le,s as u,d,k as Ne,H as Te,c as o,X as $e,aR as Pe,Z as ce,bU as ae,bV as ne,bW as Se,_ as Ce,K as L,aw as K,bX as Fe,L as De,bv as B,I as V,S as Me,bY as He,N as T,bZ as Re,b_ as X}from"./index-DBONtw7H.js";import{r as f,a as We,j as t,e as _e,L as qe}from"./react-VV7ruaEe.js";import{u as Oe,s as ze}from"./sales-empty-CdZ6YLiR.js";import{L as Ue}from"./LoadMore-DE7YSrmA.js";import{u as $}from"./useInfiniteGrid-CqEvXCvo.js";import{m as le}from"./mana-matic-CEqvSwrJ.js";import{n as Ge}from"./name-glyph-aUugT8vq.js";import{s as Ke}from"./signin-empty-0RVG8Orx.js";import"./dcl-schemas-DwpPH57a.js";import"./sentry-o0F_Elyr.js";import"./ethers-1M1CfdDX.js";import"./intl-AKLEHPeO.js";import"./import-DTtBPLJq.js";import"./buy-D7nFmJT8.js";import"./authorizations-B83pvCo5.js";import"./sendMetaTransaction-ZH8zQFka.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},s=new e.Error().stack;s&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[s]="55846b48-b4c6-48f3-9c68-d371ff1319c9",e._sentryDebugIdIdentifier="sentry-dbid-55846b48-b4c6-48f3-9c68-d371ff1319c9")}catch{}})();const Be=15e3;function Ve(e,s){return e.txHash&&s.txHash?e.txHash===s.txHash:e.txHash||s.txHash?!1:e.status===s.status&&Math.abs(e.createdAt-s.createdAt)<=Be}function Xe(e){const s=[...e].sort((i,n)=>n.createdAt-i.createdAt),a=[];for(const i of s){const n=a[a.length-1];n&&Ve(n[n.length-1],i)?n.push(i):a.push([i])}return a.map(i=>{var n;return{id:((n=i.find(c=>c.txHash))==null?void 0:n.txHash)??i[i.length-1].id,createdAt:Math.max(...i.map(c=>c.createdAt)),status:Qe(i),totalCredits:i.reduce((c,l)=>c+l.credits,0),lines:i}})}function Qe(e){return e.some(s=>s.status==="PENDING")?"PENDING":e.some(s=>s.status==="SETTLED")?"SETTLED":"EXPIRED"}function Ye(e){return e==="SETTLED"?"SETTLED":e==="EXPIRED"?"FAILED":"PENDING"}function Ze(e){return e.tradeId?`trade:${e.tradeId}`:e.contractAddress&&e.itemId?`item:${e.contractAddress.toLowerCase()}:${e.itemId}`:null}function Je(e){const s=[],a=new Map;for(const i of e){const n=Ze(i);if(!n){s.push({key:i.id,tradeId:null,contractAddress:i.contractAddress??null,itemId:i.itemId??null,registeredName:i.registeredName??null,quantity:1,credits:i.credits});continue}const c=a.get(n);if(c){c.quantity+=1,c.credits+=i.credits;continue}const l={key:n,tradeId:i.tradeId,contractAddress:i.contractAddress??null,itemId:i.itemId??null,registeredName:i.registeredName??null,quantity:1,credits:i.credits};a.set(n,l),s.push(l)}return s}function et(e,s){return{id:e.id,contractAddress:e.contractAddress,tokenId:e.tokenId,itemId:e.itemId,counterparty:e.buyer,credits:s?Ae(e.manaWei,s):null,manaWei:e.manaWei,createdAt:e.createdAt,txHash:e.txHash}}function tt(e){return e.status!=="EXPIRED"||!!e.submittedTxHash}function it(e){const a=Xe(e.purchases.filter(tt)).map(r=>({kind:"purchase",id:`purchase:${r.id}`,createdAt:r.createdAt,order:r})),i=e.sales.map(r=>{const p=et(r,e.rate);return{kind:"sale",id:`sale:${p.id}`,createdAt:p.createdAt,sale:p}}),n=(e.creditOrders??[]).filter(r=>r.status!=="failed"&&r.status!=="abandoned").map(r=>({kind:"credit",id:`credit:${r.id}`,createdAt:r.createdAt,order:r})),c=new Set(e.purchases.filter(r=>r.txHash).map(r=>r.txHash.toLowerCase())),l=(e.manaPurchases??[]).filter(r=>!c.has(r.txHash.toLowerCase())).map(r=>({kind:"mana-purchase",id:`mana-purchase:${r.id}`,createdAt:r.createdAt,sale:r}));return[...a,...i,...n,...l].sort((r,p)=>p.createdAt-r.createdAt||(r.id<p.id?-1:1))}function st(e,s){return s==="all"?e:s==="sales"?e.filter(a=>a.kind==="sale"):e.filter(a=>a.kind==="purchase"||a.kind==="credit"||a.kind==="mana-purchase")}const he=e=>e.trim().toLowerCase();function at(e){const s=new Map;for(const a of e??[]){const i=he(a.txHash??"");if(!i)continue;const n=s.get(i);n?n.push(a):s.set(i,[a])}return s}function nt(e,s,a=Date.now()){const i=s.txHash?e.get(he(s.txHash)):void 0;if(!i||i.length===0)return{kind:"direct"};const n=i.length===1?rt(i[0].netCents):null,c=i.filter(r=>!r.available&&r.availableAt>a);if(c.length===0)return{kind:"credited",credits:n};const l=c.reduce((r,p)=>Math.max(r,p.availableAt),0);return{kind:"pending",credits:n,availableAt:l}}function rt(e){return Ee(e)}function ot(){const e=G(i=>{var n;return(n=i.session)==null?void 0:n.address}),{data:s,isLoading:a}=E({queryKey:["listing-count",e],queryFn:()=>Le({creator:e,onSale:!0,first:1}),enabled:!!e,staleTime:5*6e4});return{count:s==null?void 0:s.total,isLoading:a}}const dt="https://cdn.decentraland.org/@dcl/shop/1.13.1-35146304116.commit-0532a2b/_assets/credits-product-vs4Q6u6l.svg",Q=Ne`
3
+ 0% { background-position: 200% 0; }
4
+ 100% { background-position: -200% 0; }
5
+ `,ct=u.section`
6
+ width: 100%;
7
+ min-width: 0;
8
+ min-height: 60vh;
9
+ /* Centre the whole column — heading, tabs and cards as ONE block — so the feed isn't parked against
10
+ the left edge of a wide page. Centring only the list would leave the heading orphaned from it.
11
+
12
+ ONE width for every view. The migration tool needs 1003px (its row is a thumbnail, a name and a
13
+ 144px price field; narrower, the price field drops to its own line on a desktop), and the feed used
14
+ to sit at 760px — so switching chips resized the heading and the whole column under it, which reads
15
+ as the page reloading rather than as a filter changing. */
16
+ max-width: 1003px;
17
+ margin-inline: auto;
18
+ `,lt=u.div`
19
+ display: flex;
20
+ align-items: baseline;
21
+ gap: 12px;
22
+ margin-bottom: 20px;
23
+ `,ht=u.h1`
24
+ font-family: ${d.font.sans};
25
+ margin: 0;
26
+ color: ${d.colors.softWhite};
27
+ `;u.span`
28
+ color: ${d.colors.gray4};
29
+ font-size: 14px;
30
+ `;const ut=u.div`
31
+ display: flex;
32
+ gap: 8px;
33
+ margin-bottom: 20px;
34
+ flex-wrap: wrap;
35
+ `,ue=u.button`
36
+ appearance: none;
37
+ /* Figma 2275:294685 / 294707: a translucent white pill that fills SOFT-WHITE when it is the one you
38
+ are on, with no border in either state — the outline this used to carry made the selected chip read
39
+ as a control with a stuck focus ring on it. */
40
+ border: 0;
41
+ background: ${d.colors.glass};
42
+ color: ${d.colors.white};
43
+ font-family: ${d.font.sans};
44
+ font-size: 13px;
45
+ font-weight: 600;
46
+ line-height: 24px;
47
+ letter-spacing: 0.46px;
48
+ /* The design gives the pill a flat 40px and no vertical padding, centring the 24px line box inside
49
+ it — so the height is the 40 it draws rather than the sum of a line box, padding and a border. */
50
+ display: inline-flex;
51
+ align-items: center;
52
+ justify-content: center;
53
+ padding: 0 16px;
54
+ min-height: 40px;
55
+ border-radius: ${d.radius.pill};
56
+ cursor: pointer;
57
+ transition:
58
+ background 0.15s,
59
+ color 0.15s;
60
+
61
+ &:hover {
62
+ background: ${d.colors.glassHover};
63
+ }
64
+ /* Inset, so a keyboard ring never reads as part of the pill's own shape the way an offset one did. */
65
+ &:focus-visible {
66
+ outline: 2px solid ${d.colors.white};
67
+ outline-offset: -2px;
68
+ }
69
+ &[data-active='true'] {
70
+ background: ${d.colors.softWhite};
71
+ color: ${d.colors.text};
72
+ }
73
+ &[data-active='true']:hover {
74
+ background: ${d.colors.white};
75
+ }
76
+ &[data-active='true']:focus-visible {
77
+ outline-color: ${d.colors.text};
78
+ }
79
+ `,pt=u(ue)`
80
+ position: relative;
81
+ `,mt=u.span`
82
+ position: absolute;
83
+ /* The 5.5 / 2.5 the design measures from the pill's outer edge. The chip has no border now, so its
84
+ padding box IS that edge and the offsets no longer carry a hairline's worth on top. */
85
+ top: -5.5px;
86
+ right: -2.5px;
87
+ display: grid;
88
+ place-items: center;
89
+ /* The chip's tracking would otherwise widen the disc off its 20px. */
90
+ letter-spacing: normal;
91
+ /* Figma only ever draws a single digit, as a fixed 20px disc. The padding is what lets a two- or
92
+ three-figure count grow leftwards out of the corner instead of spilling out of the circle. */
93
+ min-width: 20px;
94
+ height: 20px;
95
+ padding: 0 6px;
96
+ border-radius: ${d.radius.pill};
97
+ background: ${d.colors.dclRed};
98
+ /* No ring: the red separates itself from both surfaces the disc straddles (the chip and the page), and
99
+ the design draws the circle bare. */
100
+ font-weight: 600;
101
+ font-size: 12px;
102
+ line-height: 1.6;
103
+ color: ${d.colors.white};
104
+ `,gt=u.div`
105
+ min-height: 60vh;
106
+ `,re=u.div`
107
+ display: flex;
108
+ flex-direction: column;
109
+ gap: 16px;
110
+ `,S=u.div`
111
+ /* No fill of its own, deliberately. Its children each paint one of the designer's two alphas, and a
112
+ fill here would sit UNDER both: the head's 60% composited over a 40% card lands far darker than
113
+ 60% over the page, which is what it is measured against. The card contributes only the shape. */
114
+ border: 1px solid ${d.colors.cardLine};
115
+ border-radius: 16px;
116
+ overflow: hidden;
117
+ /* The card owns its text colour now. Anything inside that states none of its own - an item's name,
118
+ most of all - used to inherit the page's near-black body colour, which was right while the card
119
+ was white and invisible once it stopped being. Set here rather than per element so a descendant
120
+ added later is light by default instead of silently black. */
121
+ color: ${d.colors.softWhite};
122
+
123
+ /* The credits mark is pinned near-black globally (Icon.css) so that a green income total never tints
124
+ it - only the amount is coloured, never the glyph. That intent holds here and is why this sets a
125
+ fixed colour rather than letting the mark inherit: what could not survive the move is the value,
126
+ which was chosen for a white card and vanishes into this one. */
127
+ .ccy-mark,
128
+ .ccy {
129
+ color: ${d.colors.softWhite};
130
+ }
131
+ `,C=u.div`
132
+ display: flex;
133
+ align-items: center;
134
+ justify-content: space-between;
135
+ gap: 12px;
136
+ padding: 14px 18px;
137
+ /* Black at 60% against the rows' 40% - the designer's exact pair. The head is the darker of the
138
+ two, so the purchase reads as the main line and the items as detail under it. */
139
+ background: ${d.colors.overlayStrong};
140
+ border-bottom: 1px solid ${d.colors.cardLine};
141
+
142
+ ${d.media.maxWidth("mobile")} {
143
+ flex-wrap: wrap;
144
+ }
145
+ `,F=u.div`
146
+ display: flex;
147
+ flex-direction: column;
148
+ gap: 2px;
149
+ min-width: 0;
150
+ `,D=u.span`
151
+ font-weight: 700;
152
+ color: ${d.colors.softWhite};
153
+ `,M=u.span`
154
+ font-size: 13px;
155
+ color: ${d.colors.gray4};
156
+ `,H=u.div`
157
+ display: flex;
158
+ align-items: center;
159
+ gap: 14px;
160
+ /* Pin to the right regardless of how many elements sit on the left (the credit-purchase card adds a
161
+ leading thumbnail, giving the head three children instead of two). */
162
+ margin-left: auto;
163
+ `,xt=u.div`
164
+ flex: 0 0 auto;
165
+ width: 52px;
166
+ height: 52px;
167
+ border-radius: 10px;
168
+ background: ${d.colors.media};
169
+ display: flex;
170
+ align-items: center;
171
+ justify-content: center;
172
+
173
+ img {
174
+ width: 30px;
175
+ height: 30px;
176
+ display: block;
177
+ }
178
+ `,R=u.span`
179
+ font-size: 11px;
180
+ font-weight: 700;
181
+ text-transform: uppercase;
182
+ letter-spacing: 0.03em;
183
+ padding: 4px 10px;
184
+ border-radius: ${d.radius.pill};
185
+ white-space: nowrap;
186
+
187
+ /* The washes carry over unchanged, being translucent. The inks do not: each was darkened until it
188
+ cleared 4.5:1 on WHITE, which is exactly what sinks it here. Each moves to the palest existing
189
+ token of its own hue, measured against the card over the brightest part of the page gradient
190
+ (5.5:1 green, 6.8:1 amber, 7.6:1 violet, 7.9:1 pink). The token names come from where each colour
191
+ was first used, not from a status meaning — if this pairing spreads, they are worth promoting to
192
+ named status inks. */
193
+ &[data-status='SETTLED'] {
194
+ background: rgba(30, 166, 114, 0.14);
195
+ color: ${d.colors.successBorder};
196
+ }
197
+ &[data-status='PENDING'] {
198
+ background: rgba(245, 166, 35, 0.16);
199
+ color: ${d.colors.flareAmber};
200
+ }
201
+ &[data-status='SOLD'] {
202
+ background: rgba(103, 58, 183, 0.14);
203
+ color: ${d.colors.navViolet};
204
+ }
205
+ &[data-status='FAILED'] {
206
+ background: rgba(214, 61, 61, 0.14);
207
+ color: ${d.colors.saleTag};
208
+ }
209
+ /* Nobody paid and nobody is owed anything — deliberately the quietest of the four. Reusing PENDING's
210
+ amber here is what made an abandoned checkout look like money on its way. */
211
+ &[data-status='UNFINISHED'] {
212
+ background: ${d.colors.glassFaint};
213
+ color: ${d.colors.gray4};
214
+ }
215
+ `,ft=u.button`
216
+ font-size: 11px;
217
+ font-weight: 700;
218
+ text-transform: uppercase;
219
+ letter-spacing: 0.03em;
220
+ padding: 4px 10px;
221
+ border-radius: ${d.radius.pill};
222
+ white-space: nowrap;
223
+ border: 1px solid ${d.colors.navViolet};
224
+ background: transparent;
225
+ color: ${d.colors.navViolet};
226
+ cursor: pointer;
227
+ transition: background 0.15s ease;
228
+
229
+ &:hover:not(:disabled) {
230
+ background: rgba(227, 201, 251, 0.14);
231
+ }
232
+ &:disabled {
233
+ opacity: 0.6;
234
+ cursor: default;
235
+ }
236
+ `,k=u.div`
237
+ display: flex;
238
+ align-items: center;
239
+ gap: 5px;
240
+ font-weight: 800;
241
+ /* Income used to read in the success green and is deliberately white like every other total now:
242
+ the plus sign already says money came in, and the green was the one colour shouting on the page.
243
+ There is no [data-kind='income'] rule any more because it would only repeat this line. */
244
+ color: ${d.colors.softWhite};
245
+ white-space: nowrap;
246
+
247
+ .ccy-mark {
248
+ width: 16px;
249
+ height: 16px;
250
+ }
251
+ `,pe=u.img`
252
+ width: 16px;
253
+ height: 16px;
254
+ vertical-align: -0.15em;
255
+ `,yt=u.span`
256
+ display: inline-flex;
257
+ align-items: center;
258
+ cursor: pointer;
259
+ `,bt=u.span`
260
+ position: fixed;
261
+ transform: translateX(-50%);
262
+ padding: 6px 8px;
263
+ border-radius: 6px;
264
+ background: #16141a;
265
+ color: ${d.colors.white};
266
+ font-size: 12px;
267
+ font-weight: 600;
268
+ line-height: 1;
269
+ white-space: nowrap;
270
+ box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
271
+ pointer-events: none;
272
+ z-index: 9999;
273
+ `,vt=u.p`
274
+ margin: 0;
275
+ /* 18px sides to sit on the same rail as CardHead and Line; no bottom, since Line brings its own 12px. */
276
+ padding: 12px 18px 0;
277
+ font-size: 13px;
278
+ line-height: 1.45;
279
+ color: ${d.colors.gray4};
280
+ /* Sits between the two bands, so it carries the rows' fill rather than leaving the page showing. */
281
+ background: ${d.colors.overlay};
282
+ `,Y=u.div`
283
+ display: flex;
284
+ flex-direction: column;
285
+ background: ${d.colors.overlay};
286
+ `,N=u.div`
287
+ display: grid;
288
+ grid-template-columns: 52px 1fr auto;
289
+ align-items: center;
290
+ gap: 14px;
291
+ padding: 12px 18px;
292
+ text-decoration: none;
293
+ color: inherit;
294
+
295
+ & + & {
296
+ border-top: 1px solid ${d.colors.cardLine};
297
+ }
298
+
299
+ &[data-link='true'] {
300
+ transition: background 0.15s;
301
+ }
302
+ &[data-link='true']:hover {
303
+ background: ${d.colors.glassFaint};
304
+ }
305
+ &[data-link='true']:focus-visible {
306
+ /* White, like the filter chips above: the accent purple was drawn for the white card and all but
307
+ vanishes against the translucent black. */
308
+ outline: 2px solid ${d.colors.white};
309
+ outline-offset: -2px;
310
+ }
311
+ `,W=u.div`
312
+ width: 52px;
313
+ height: 52px;
314
+ border-radius: 10px;
315
+ background: ${d.colors.media};
316
+ overflow: hidden;
317
+ display: flex;
318
+ align-items: center;
319
+ justify-content: center;
320
+ color: ${d.colors.muted2};
321
+
322
+ img {
323
+ width: 100%;
324
+ height: 100%;
325
+ object-fit: contain;
326
+ }
327
+ `,Z=u.div`
328
+ width: 52px;
329
+ height: 52px;
330
+ border-radius: 10px;
331
+ background: linear-gradient(100deg, var(--skeleton-lo) 30%, var(--skeleton-hi) 50%, var(--skeleton-lo) 70%);
332
+ background-size: 200% 100%;
333
+ animation: ${Q} 1.3s infinite linear;
334
+
335
+ @media (prefers-reduced-motion: reduce) {
336
+ animation: none;
337
+ }
338
+ `,_=u.div`
339
+ min-width: 0;
340
+ display: flex;
341
+ flex-direction: column;
342
+ gap: 2px;
343
+ `,q=u.span`
344
+ font-weight: 700;
345
+ white-space: nowrap;
346
+ overflow: hidden;
347
+ text-overflow: ellipsis;
348
+ `,J=u.span`
349
+ display: inline-block;
350
+ width: 140px;
351
+ max-width: 60%;
352
+ height: 12px;
353
+ border-radius: 6px;
354
+ background: linear-gradient(100deg, var(--skeleton-lo) 30%, var(--skeleton-hi) 50%, var(--skeleton-lo) 70%);
355
+ background-size: 200% 100%;
356
+ animation: ${Q} 1.3s infinite linear;
357
+
358
+ @media (prefers-reduced-motion: reduce) {
359
+ animation: none;
360
+ }
361
+ `,O=u.span`
362
+ font-size: 13px;
363
+ color: ${d.colors.gray4};
364
+ `,me=u.div`
365
+ display: flex;
366
+ align-items: center;
367
+ gap: 4px;
368
+ font-weight: 700;
369
+ color: ${d.colors.softWhite};
370
+ white-space: nowrap;
371
+
372
+ .ccy-mark {
373
+ width: 14px;
374
+ height: 14px;
375
+ }
376
+ `,oe=u.div`
377
+ height: 132px;
378
+ border-radius: 16px;
379
+ border: 1px solid transparent;
380
+ background: linear-gradient(100deg, var(--skeleton-lo) 30%, var(--skeleton-hi) 50%, var(--skeleton-lo) 70%);
381
+ background-size: 200% 100%;
382
+ animation: ${Q} 1.3s infinite linear;
383
+
384
+ @media (prefers-reduced-motion: reduce) {
385
+ animation: none;
386
+ }
387
+ `,wt=u.div`
388
+ display: flex;
389
+ flex-direction: column;
390
+ align-items: center;
391
+ `,kt=u(W)`
392
+ background: ${d.gradients.amethyst};
393
+
394
+ img {
395
+ width: 26px;
396
+ height: 26px;
397
+ object-fit: contain;
398
+ }
399
+ `,ee=N.withComponent(qe),jt=f.lazy(()=>Ce(()=>import("./index-DPzFuzjH.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16])).then(e=>({default:e.ImportListings}))),P=24,It=["all","purchases","sales"],z="section",de="listings",U="view",At="migrate";function A(e){try{return new Date(e).toLocaleDateString(void 0,{year:"numeric",month:"short",day:"numeric"})}catch{return""}}function ge(e){return e.length>10?`${e.slice(0,6)}…${e.slice(-4)}`:e}function xe(e){const s=Number(e)/1e18;return Number.isFinite(s)?s.toLocaleString("en",{maximumFractionDigits:2}):"0"}function fe({children:e}){const s=f.useRef(null),[a,i]=f.useState(null),n=()=>{var l;const c=(l=s.current)==null?void 0:l.getBoundingClientRect();c&&i({top:c.bottom+8,left:c.left+c.width/2})};return t.jsxs(yt,{ref:s,tabIndex:0,onMouseEnter:n,onMouseLeave:()=>i(null),onFocus:n,onBlur:()=>i(null),children:[e,a?_e.createPortal(t.jsx(bt,{style:{top:a.top,left:a.left},role:"tooltip",children:o("activity.polygonMana")}),document.body):null]})}function Et({item:e}){const s=!!e.contractAddress&&!!e.itemId,a=!!e.tradeId||s,{data:i,isLoading:n}=E({queryKey:["order-line-display",e.tradeId,e.contractAddress,e.itemId],queryFn:()=>e.tradeId?Re(e.tradeId):X(e.contractAddress,{itemId:e.itemId}),enabled:a,staleTime:5*6e4}),c=a&&n,l=(i==null?void 0:i.name)??o("activity.itemFallback"),r=(i==null?void 0:i.thumbnail)??"",p=B({contractAddress:i==null?void 0:i.contractAddress,tokenId:i==null?void 0:i.tokenId,itemId:i==null?void 0:i.itemId})??void 0,j=t.jsxs(t.Fragment,{children:[c?t.jsx(Z,{}):t.jsx(W,{children:r?t.jsx("img",{src:r,alt:l}):t.jsx(V,{name:"cart",size:20})}),t.jsxs(_,{children:[c?t.jsx(J,{}):t.jsx(q,{title:l,children:l}),e.quantity>1?t.jsx(O,{children:o("activity.quantity",{count:e.quantity})}):null]}),t.jsxs(me,{children:[t.jsx(L,{className:"ccy-mark"})," ",t.jsx(K,{credits:e.credits})]})]});return p?t.jsx(ee,{to:p,"data-link":"true",children:j}):t.jsx(N,{children:j})}function Lt({item:e}){const s=`@${e.registeredName}`;return t.jsxs(N,{"data-testid":"activity-name-line",children:[t.jsx(kt,{children:t.jsx("img",{src:Ge,alt:""})}),t.jsxs(_,{children:[t.jsx(q,{title:s,children:s}),t.jsx(O,{children:o("activity.nameRegistration")})]}),t.jsxs(me,{children:[t.jsx(L,{className:"ccy-mark"})," ",e.credits]})]})}function Nt({order:e}){const s=Je(e.lines),a=s.reduce((c,l)=>c+l.quantity,0),i=Ye(e.status),n=i==="SETTLED"?o("activity.completed"):i==="FAILED"?o("activity.failed"):o("activity.processing");return t.jsxs(S,{"data-testid":"purchase-order",children:[t.jsxs(C,{children:[t.jsxs(F,{children:[t.jsx(D,{children:A(e.createdAt)}),t.jsxs(M,{children:[o("activity.purchaseLabel")," · ",o("activity.itemCount",{count:a})]})]}),t.jsxs(H,{children:[t.jsx(R,{"data-status":i,children:n}),t.jsxs(k,{children:[t.jsx(L,{className:"ccy-mark"})," ",t.jsx(K,{credits:e.totalCredits})]})]})]}),i==="FAILED"?t.jsx(vt,{children:o("activity.purchaseFailedNote")}):null,t.jsx(Y,{children:s.map(c=>c.registeredName?t.jsx(Lt,{item:c},c.key):t.jsx(Et,{item:c},c.key))})]})}function Tt({sale:e}){const{data:s,isLoading:a}=E({queryKey:["asset-display",e.contractAddress,e.tokenId,e.itemId],queryFn:()=>X(e.contractAddress,{tokenId:e.tokenId,itemId:e.itemId}),enabled:!!e.contractAddress,staleTime:3e5}),i=(s==null?void 0:s.name)??o("activity.itemFallback"),n=(s==null?void 0:s.thumbnail)??"",c=B({contractAddress:e.contractAddress,tokenId:e.tokenId,itemId:e.itemId})??void 0,l=t.jsxs(t.Fragment,{children:[a?t.jsx(Z,{}):t.jsx(W,{children:n?t.jsx("img",{src:n,alt:i}):t.jsx(V,{name:"offer",size:20})}),t.jsxs(_,{children:[a?t.jsx(J,{}):t.jsx(q,{title:i,children:i}),t.jsx(O,{children:o("activity.boughtFrom",{account:ge(e.seller)})})]})]});return t.jsxs(S,{"data-testid":"activity-mana-purchase",children:[t.jsxs(C,{children:[t.jsxs(F,{children:[t.jsx(D,{children:A(e.createdAt)}),t.jsx(M,{children:o("activity.paidWithMana")})]}),t.jsxs(H,{children:[t.jsx(R,{"data-status":"SETTLED",children:o("activity.completed")}),t.jsxs(k,{children:[xe(e.manaWei)," ",t.jsx(fe,{children:t.jsx(pe,{src:le,alt:"MANA"})})]})]})]}),t.jsx(Y,{children:c?t.jsx(ee,{to:c,"data-link":"true",children:l}):t.jsx(N,{children:l})})]})}function $t({sale:e,payout:s}){const{data:a,isLoading:i}=E({queryKey:["asset-display",e.contractAddress,e.tokenId,e.itemId],queryFn:()=>X(e.contractAddress,{tokenId:e.tokenId,itemId:e.itemId}),enabled:!!e.contractAddress,staleTime:3e5}),n=(a==null?void 0:a.name)??o("activity.itemFallback"),c=(a==null?void 0:a.thumbnail)??"",l=B({contractAddress:e.contractAddress,tokenId:e.tokenId,itemId:e.itemId})??void 0,r=t.jsxs(t.Fragment,{children:[i?t.jsx(Z,{}):t.jsx(W,{children:c?t.jsx("img",{src:c,alt:n}):t.jsx(V,{name:"offer",size:20})}),t.jsxs(_,{children:[i?t.jsx(J,{}):t.jsx(q,{title:n,children:n}),t.jsxs(O,{children:[o("activity.soldTo",{account:ge(e.counterparty)}),s.kind==="pending"?` · ${o("activity.payoutPendingOn",{date:A(s.availableAt)})}`:""]})]})]});return t.jsxs(S,{"data-testid":"activity-sale",children:[t.jsxs(C,{children:[t.jsxs(F,{children:[t.jsx(D,{children:A(e.createdAt)}),t.jsx(M,{children:o("activity.saleLabel")})]}),t.jsxs(H,{children:[t.jsx(R,{"data-status":s.kind==="pending"?"PENDING":"SOLD",children:s.kind==="pending"?o("activity.payoutPending"):o("activity.sold")}),s.kind==="direct"?t.jsxs(k,{"data-kind":"income",children:["+",xe(e.manaWei)," ",t.jsx(fe,{children:t.jsx(pe,{src:le,alt:"MANA"})})]}):s.credits!==null?t.jsxs(k,{"data-kind":"income",children:[t.jsx(L,{className:"ccy-mark"})," +",Me(s.credits)]}):t.jsx(k,{"data-kind":"income",children:o("activity.payoutCredited")})]})]}),t.jsx(Y,{children:l?t.jsx(ee,{to:l,"data-link":"true",children:r}):t.jsx(N,{children:r})})]})}function Pt({order:e}){const s=`$${(e.usdCents/100).toFixed(2)}`,a=Fe(e.status),i=a==="SETTLED"?o("activity.completed"):a==="FAILED"?o("activity.failed"):a==="UNFINISHED"?o("activity.unfinished"):o("activity.processing"),n=G(m=>m.session),c=De(),[l,r]=f.useState(!1),p=e.status==="initiated"&&!!n;f.useEffect(()=>{const m=()=>r(!1);return window.addEventListener("pageshow",m),()=>window.removeEventListener("pageshow",m)},[]);async function j(){if(!(!n||l)){r(!0);try{const m=await He(e.id,n.identity);if(m.kind==="url"){if(/^https:\/\/([a-z0-9-]+\.)*stripe\.com\//i.test(m.url)){window.location.href=m.url;return}T.error(o("activity.resumeUnavailable"))}else m.kind==="expired"?(T.info(o("activity.resumeExpired")),c.invalidateQueries({queryKey:["credit-orders"]})):m.kind==="paid"?(T.success(o("activity.resumePaid")),c.invalidateQueries({queryKey:["credit-orders"]})):T.error(o("activity.resumeUnavailable"));r(!1)}catch{r(!1)}}}return t.jsx(S,{"data-testid":"credit-order",children:t.jsxs(C,{children:[t.jsx(xt,{children:t.jsx("img",{src:dt,alt:"","aria-hidden":!0})}),t.jsxs(F,{children:[t.jsx(D,{children:A(e.createdAt)}),t.jsxs(M,{children:[o("activity.creditPurchaseLabel")," · ",o("activity.creditPaid",{usd:s})]})]}),t.jsxs(H,{children:[p?t.jsx(ft,{type:"button",onClick:()=>void j(),disabled:l,"data-testid":"resume-order",children:l?o("activity.resuming"):o("activity.resume")}):null,t.jsx(R,{"data-status":a,children:i}),t.jsxs(k,{"data-kind":a==="UNFINISHED"?void 0:"income",children:[a==="UNFINISHED"?"":"+",t.jsx(L,{className:"ccy-mark"})," ",t.jsx(K,{credits:e.credits})]})]})]})})}function St({filter:e}){const s={all:o("activity.emptyAllBody"),purchases:o("activity.emptyPurchasesBody"),sales:o("activity.emptySalesBody")}[e];return t.jsx(wt,{children:t.jsx(ce,{testId:`activity-empty-${e}`,icon:ze,title:o("activity.emptyTitle"),body:s,cta:{label:o("assets.empty.cta"),to:"/items"}})})}function Xt(){const{session:e,signIn:s}=G(),[a,i]=f.useState("all"),[n,c]=We(),l=n.get(z)===de||n.get(U)===At;Te({title:l?o("seo.import.title"):o("nav.activity"),noindex:!0});const{count:r}=Oe(),{count:p}=ot(),m=r!==void 0&&p!==void 0&&(r>0||p>0||l),g=!!e&&!l&&a!=="sales",x=!!e&&!l&&a!=="purchases",y=$(["purchases",e==null?void 0:e.address],h=>Se(e.address,e.identity,{first:P,skip:h}),{enabled:g}),b=$(["sales",e==null?void 0:e.address],h=>ae(e.address,{role:"seller",first:P,skip:h}),{enabled:x}),v=$(["credit-orders",e==null?void 0:e.address],h=>ne(e.address,e.identity,{first:P,skip:h}),{enabled:g}),w=$(["mana-purchases",e==null?void 0:e.address],h=>ae(e.address,{role:"buyer",first:P,skip:h}),{enabled:g}),{data:te}=E({queryKey:["sale-payouts",e==null?void 0:e.address],queryFn:()=>ne(e.address,e.identity,{first:200}).then(h=>h.payouts),enabled:x,staleTime:6e4}),ye=f.useMemo(()=>at(te),[te]),{data:be}=$e(x);if(!e)return t.jsx(Pe,{children:t.jsx(ce,{testId:"activity-signin",icon:Ke,title:o("activity.signInTitle"),body:o("activity.signInBody"),cta:{label:o("storeSettings.signIn"),onClick:()=>s()},ctaVariant:"solid",fill:!0})});const ie=st(it({purchases:g?y.items:[],sales:x?b.items:[],creditOrders:g?v.items:[],manaPurchases:g?w.items:[],rate:be}),a),ve=g&&(y.isLoading||v.isLoading||w.isLoading)||x&&b.isLoading,se=g&&(y.isFetchingNextPage||v.isFetchingNextPage||w.isFetchingNextPage)||x&&b.isFetchingNextPage,we=g&&(y.hasNextPage||v.hasNextPage||w.hasNextPage)||x&&b.hasNextPage;function ke(){g&&y.hasNextPage&&y.fetchNextPage(),g&&v.hasNextPage&&v.fetchNextPage(),g&&w.hasNextPage&&w.fetchNextPage(),x&&b.hasNextPage&&b.fetchNextPage()}function je(h){if(i(h),!l)return;const I=new URLSearchParams(n);I.delete(z),I.delete(U),c(I,{replace:!0})}function Ie(){const h=new URLSearchParams(n);h.set(z,de),h.delete(U),c(h,{replace:!0})}return t.jsxs(ct,{children:[t.jsx(lt,{children:t.jsx(ht,{children:o("nav.activity")})}),t.jsxs(ut,{role:"tablist","aria-label":o("nav.activity"),children:[It.map(h=>t.jsx(ue,{type:"button",role:"tab","aria-selected":!l&&a===h,"data-active":!l&&a===h,"data-testid":`activity-filter-${h}`,onClick:()=>je(h),children:o(`activity.filter.${h}`)},h)),m?t.jsxs(pt,{type:"button",role:"tab","aria-selected":l,"data-active":l,"data-testid":"activity-filter-migrate","aria-label":r?o("activity.migrate.chipAria",{count:r}):void 0,onClick:Ie,children:[o("activity.migrate.chip"),r?t.jsx(mt,{"data-testid":"activity-migrate-count","aria-hidden":!0,children:r}):null]}):null]}),l?t.jsx(f.Suspense,{fallback:t.jsx(gt,{"aria-busy":"true"}),children:t.jsx(jt,{})}):ve?t.jsx(re,{children:Array.from({length:5}).map((h,I)=>t.jsx(oe,{},I))}):ie.length===0?t.jsx(St,{filter:a}):t.jsxs(t.Fragment,{children:[t.jsxs(re,{children:[ie.map(h=>h.kind==="purchase"?t.jsx(Nt,{order:h.order},h.id):h.kind==="credit"?t.jsx(Pt,{order:h.order},h.id):h.kind==="mana-purchase"?t.jsx(Tt,{sale:h.sale},h.id):t.jsx($t,{sale:h.sale,payout:nt(ye,h.sale)},h.id)),se?t.jsx(oe,{}):null]}),t.jsx(Ue,{hasNextPage:we,isFetching:se,onLoadMore:ke})]})]})}export{Xt as Activity};
400
+ //# sourceMappingURL=Activity-CUoq5Ec_.js.map
@@ -1,4 +1,4 @@
1
- import{r as u,j as d}from"./react-DaBuTM6Q.js";import{s as m}from"./index-DzQkIbqv.js";import"./dcl-schemas-n1W5glLl.js";import"./sentry-ilLelGl_.js";import"./ethers-OrSZ5jmz.js";import"./intl-AKLEHPeO.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},a=new e.Error().stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="cd745ecd-27e1-4406-9f0d-aa23d7be0a29",e._sentryDebugIdIdentifier="sentry-dbid-cd745ecd-27e1-4406-9f0d-aa23d7be0a29")}catch{}})();const D="https://cdn.decentraland.org/@dcl/shop/1.13.1-35095058100.commit-8d694c8/_assets/custom-welcome-background-BxlFQma9.webp",P="https://cdn.decentraland.org/@dcl/shop/1.13.1-35095058100.commit-8d694c8/_assets/DCL_LogoPattern-BryBPc3d.png",L=`
1
+ import{r as u,j as d}from"./react-VV7ruaEe.js";import{s as m}from"./index-DBONtw7H.js";import"./dcl-schemas-DwpPH57a.js";import"./sentry-o0F_Elyr.js";import"./ethers-1M1CfdDX.js";import"./intl-AKLEHPeO.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},a=new e.Error().stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="c26c4f62-a790-43ec-a1bd-8985caa2704a",e._sentryDebugIdIdentifier="sentry-dbid-c26c4f62-a790-43ec-a1bd-8985caa2704a")}catch{}})();const D="https://cdn.decentraland.org/@dcl/shop/1.13.1-35146304116.commit-0532a2b/_assets/custom-welcome-background-BxlFQma9.webp",P="https://cdn.decentraland.org/@dcl/shop/1.13.1-35146304116.commit-0532a2b/_assets/DCL_LogoPattern-BryBPc3d.png",L=`
2
2
  attribute vec2 a_position;
3
3
  varying vec2 v_uv;
4
4
  void main() {
@@ -95,4 +95,4 @@ void main() {
95
95
  width: 100%;
96
96
  height: 100%;
97
97
  `;function K({patternTiling:e=1.66}){const a=u.useRef(null),n=u.useRef(0),r=u.useRef(e);return r.current=e,u.useEffect(()=>{var _;const o=a.current;if(!o||(_=window.matchMedia)!=null&&_.call(window,"(prefers-reduced-motion: reduce)").matches)return;const t=o.getContext("webgl",{alpha:!1,antialias:!1});if(!t)return;const c=p(t,t.VERTEX_SHADER,L),s=p(t,t.FRAGMENT_SHADER,I);if(!c||!s){c&&t.deleteShader(c),s&&t.deleteShader(s);return}const i=B(t,c,s);if(!i){t.deleteShader(c),t.deleteShader(s);return}const f=t.getAttribLocation(i,"a_position"),R=t.getUniformLocation(i,"u_time"),w=t.getUniformLocation(i,"u_resolution"),b=t.getUniformLocation(i,"u_overlayTex"),A=t.getUniformLocation(i,"u_overlayTiling"),v=t.createBuffer();t.bindBuffer(t.ARRAY_BUFFER,v),t.bufferData(t.ARRAY_BUFFER,new Float32Array([-1,-1,1,-1,-1,1,-1,1,1,-1,1,1]),t.STATIC_DRAW);let g=!1;const h=F(t,P,()=>g),S=()=>{const l=window.devicePixelRatio||1,E=o.clientWidth*l,x=o.clientHeight*l;(o.width!==E||o.height!==x)&&(o.width=E,o.height=x)},U=performance.now()/1e3,y=()=>{S(),t.viewport(0,0,o.width,o.height),t.useProgram(i),t.uniform1f(R,performance.now()/1e3-U),t.uniform2f(w,o.width,o.height),t.uniform1f(A,r.current),t.activeTexture(t.TEXTURE0),t.bindTexture(t.TEXTURE_2D,h),t.uniform1i(b,0),t.enableVertexAttribArray(f),t.bindBuffer(t.ARRAY_BUFFER,v),t.vertexAttribPointer(f,2,t.FLOAT,!1,0,0),t.drawArrays(t.TRIANGLES,0,6),n.current=requestAnimationFrame(y)},T=l=>{l.preventDefault(),cancelAnimationFrame(n.current),o.style.opacity="0"};return o.addEventListener("webglcontextlost",T,!1),n.current=requestAnimationFrame(y),()=>{g=!0,cancelAnimationFrame(n.current),o.removeEventListener("webglcontextlost",T),t.deleteProgram(i),t.deleteShader(c),t.deleteShader(s),t.deleteBuffer(v),t.deleteTexture(h)}},[]),d.jsxs(C,{"aria-hidden":!0,children:[d.jsx(k,{style:{backgroundImage:`url(${D})`}}),d.jsx(V,{ref:a})]})}export{K as default};
98
- //# sourceMappingURL=AnimatedBackground-DsRNSmF9.js.map
98
+ //# sourceMappingURL=AnimatedBackground-CkSS8iDv.js.map
@@ -1,4 +1,4 @@
1
- import{r as u,u as Ve,j as e,a as dt}from"./react-DaBuTM6Q.js";import{e as Q,r as ht,h as pt,bH as ut,bD as ft,aI as mt,j as xt,D as gt,cJ as bt,cK as yt,s as i,d as t,E as Qe,bn as wt,L as vt,S as $e,c as s,J as jt,I as _,K as D,cL as he,bl as Ct,al as ce,bx as We,bG as $t,bF as kt,H as Ze,X as Ke,m as Je,cM as St,F as Et,az as Tt,Z as Rt,a0 as Fe,a1 as te,aQ as _t,bQ as It}from"./index-DzQkIbqv.js";import{u as Lt,s as Nt}from"./search-empty-CiaPLxpu.js";import{i as At,u as zt,j as Mt,S as Wt,R as Ft,a as Bt,b as Pt,c as Ot,D as Ut,d as Ht,C as Dt,e as Gt,F as qt,f as Vt,g as Qt,M as Zt,h as Kt}from"./browseLayout.styles-6-W9YjOC.js";import{L as Jt}from"./LoadMore-3LNbX1EU.js";import{u as Xt}from"./useInfiniteGrid-DpNO4hZU.js";import{n as Yt,S as en}from"./categories-Dquh1vbV.js";import{E as tn}from"./ErrorNotice-Dhs1BLZ6.js";import{d as nn}from"./dcl-schemas-n1W5glLl.js";import{s as sn,G as on,w as an,S as rn}from"./buy-gasless-CQdgMa0F.js";import{t as ln,u as cn}from"./buy-BkbR80Gf.js";import{f as dn}from"./errors-DhRbQUQ8.js";import{J as hn,C as pn,B as ke}from"./ethers-OrSZ5jmz.js";import{n as un}from"./name-glyph-aUugT8vq.js";import{c as fn}from"./crumbs.styles-N13K8LJF.js";import{G as mn}from"./grid.styles-CbKnaEaH.js";import"./sentry-ilLelGl_.js";import"./intl-AKLEHPeO.js";import"./skeleton.styles-B7ceCvK9.js";import"./authorizations-D_SudRT-.js";import"./sendMetaTransaction-D_Udygrx.js";(function(){try{var n=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},o=new n.Error().stack;o&&(n._sentryDebugIds=n._sentryDebugIds||{},n._sentryDebugIds[o]="741d3684-b4e5-44ca-85b7-73742ab25d68",n._sentryDebugIdIdentifier="sentry-dbid-741d3684-b4e5-44ca-85b7-73742ab25d68")}catch{}})();function ne(n){const o=n.source??"item",r=n.tradeId||`${n.contractAddress}-${n.tokenId??n.itemId??""}`;return`${o}:${r}`}const K="100000000000000000000",Xe=2,de=15,xn=/^[a-zA-Z0-9]+$/;function Be(n){const o=n.trim();return o.length===0?{ok:!1,reason:"empty"}:xn.test(o)?o.length<Xe?{ok:!1,reason:"too-short"}:o.length>de?{ok:!1,reason:"too-long"}:{ok:!0}:{ok:!1,reason:"invalid-chars"}}function gn(n){return n.replace(/[^a-zA-Z0-9]/g,"").slice(0,de)}const bn=["function available(string _subdomain) view returns (bool)"],Pe={mainnet:{rpc:"https://rpc.decentraland.org/mainnet",address:"0x2a187453064356c898cae034eaed119e1663acb8"},sepolia:{rpc:"https://rpc.decentraland.org/sepolia",address:"0x7518456ae93eb98f3e64571b689c626616bb7f30"}};function yn(){return Q.chainId===Number(nn.ChainId.MATIC_MAINNET)?Pe.mainnet:Pe.sepolia}async function wn(n,o={}){var m;const{rpc:r,address:h}=yn(),d=new hn(r),b=new pn(h,bn,d);console.info(`[names] availability check → DCLRegistrar(${h}).available("${n}") on ${r}`);const l=await b.available(n);if((m=o.signal)!=null&&m.aborted)throw new DOMException("Aborted","AbortError");return console.info(`[names] "${n}" available=${l}`),l?"available":"taken"}const vn="https://app.across.to/api";class Te extends Error{constructor(){super("Name registration is temporarily unavailable due to high network costs"),this.name="NameRouteCostTooHighError"}}class Se extends Error{constructor(){super("The name could not be registered on Ethereum; your funds were recovered."),this.name="NameNotRegisteredError"}}class Ee extends Error{constructor(){super("We couldn't confirm whether the purchase went through."),this.name="NameSettlementUnknownError"}}function jn(n){return mt(K,n)}async function Cn(n,o,r={}){var m;const h=r.chainId??Q.chainId,d=r.provider??"across",b=`${Q.creditsServerUrl}/credits-name-route?name=${encodeURIComponent(o)}&chainId=${h}&provider=${d}`,l=await xt(b,{method:"GET",identity:n,metadata:{}});if(!l.ok){let c;try{c=(m=await l.json())==null?void 0:m.code}catch{}throw c==="ROUTE_COST_TOO_HIGH"?new Te:new Error(`fetchNameCreditRoute ${l.status}`)}return l.json()}function $n(n,o){const r=ke.from(n.availableAmount),d=ke.from(K).sub(r);return{credits:[{value:n.amount,expiresAt:Number(n.expiresAt),salt:cn(n.id)}],creditsSignatures:[n.signature],externalCall:{target:o.externalCall.target,selector:o.externalCall.selector,data:o.externalCall.data,expiresAt:o.externalCall.expiresAt,salt:o.externalCall.salt},customExternalCallSignature:o.customExternalCallSignature,maxUncreditedValue:d.isNegative()?"0":d.toString(),maxCreditedValue:K}}async function kn(n,o={}){const r=vn,h=o.intervalMs??1e4,d=o.maxAttempts??60;let b={status:"pending",destinationTxHash:null,actionsSucceeded:null};for(let l=0;l<d;l++){try{const m=await fetch(`${r}/deposit/status?originChainId=137&depositTxHash=${n}`);if(m.ok){const c=await m.json(),y=(c.status??"pending").toLowerCase(),f=c.fillTx??c.fillTxnRef??null,j=typeof c.actionsSucceeded=="boolean"?c.actionsSucceeded:null;if(y==="filled")return{status:"filled",destinationTxHash:f,actionsSucceeded:j};if(y==="refunded"||y==="expired")return{status:y,destinationTxHash:null,actionsSucceeded:!1};b={status:"pending",destinationTxHash:f,actionsSucceeded:j}}}catch{}l<d-1&&await new Promise(m=>setTimeout(m,h))}return b}async function Sn(n){const{name:o,identity:r,signer:h}=n,d=f=>{var j;try{(j=n.onProgress)==null||j.call(n,f)}catch{}},b=n.chainId??Q.chainId,l=n.provider??"across",m=(n.beneficiary??await h.getAddress()).toLowerCase();let c=null,y="unconfirmed";console.info("[names] register start",{name:o,buyer:m,chainId:b,provider:l}),d("preparing");try{const f=await ht(pt(Q.chainId).address),j=jn(f);console.info("[names] step 1/6 sized reservation",{usdCents:j,manaRate:f});const C=await Cn(r,o,{chainId:b,provider:l});console.info("[names] step 2/6 route fetched",{target:C.externalCall.target,selector:C.externalCall.selector,provider:C.provider,quoteId:C.quoteId});const x=await ut(r,j,void 0,void 0,o);if(c=x.credit.id,console.info("[names] step 3/6 credit authorized",{creditId:x.credit.id,maxCreditedValue:x.maxCreditedValue}),ke.from(x.maxCreditedValue).lt(K))throw new Error("Credit under-sized for the name price");d("awaiting-confirmation");const S=$n(x.credit,C);let p;try{p=await sn({chainId:b,buyer:m,signer:h,args:S})}catch(g){if(!(g instanceof on))throw g;if(g.reason==="relayer-unreachable"){y="unobservable";const I=new Ee;throw I.cause=g,I}p=await ln(b,S,h)}if(console.info("[names] step 4/6 useCredits submitted (Polygon origin tx)",{originTxHash:p}),d("confirming"),await an(p),y="confirmed",console.info("[names] step 5/6 origin tx confirmed",{originTxHash:p}),l==="across"){d("registering");const g=await kn(p,n.acrossPoll);if(console.info("[names] step 6/6 across status",g),g.status==="pending")return{status:"pending",originTxHash:p};if(g.status==="filled"&&g.actionsSucceeded===null)return console.warn("[names] across filled without reporting actionsSucceeded — reporting pending",{originTxHash:p}),{status:"pending",originTxHash:p};if(g.status!=="filled"||g.actionsSucceeded!==!0)throw new Se;return{status:"registered",originTxHash:p,destinationTxHash:g.destinationTxHash}}return{status:"pending",originTxHash:p}}catch(f){if(console.error("[names] register failed — raw error:",f,{name:o,buyer:m,originState:y}),f instanceof rn)return{status:"pending",originTxHash:f.txHash};if(c&&y==="unconfirmed"&&await ft(r,[c]).catch(()=>{}),f instanceof Te||f instanceof Se||f instanceof Ee)throw f;const j=new Error(dn(f,"Couldn't register the name. Please try again.",{sale:!0}));throw j.cause=f,j}}function En(){const{data:n}=gt({queryKey:["feature-flag","shop-names"],queryFn:()=>bt(yt.SHOP_NAMES),staleTime:6e4,refetchOnWindowFocus:!0,retry:1});return n===!0}const Tn=60,Rn=700,_n=25;function In(n){if(!n)return[];const o=[];for(let r=1;r<=n.length;r++)o.push({text:n.slice(0,r),delay:Tn});o[o.length-1]={text:n,delay:Rn};for(let r=n.length-1;r>=1;r--)o.push({text:n.slice(0,r),delay:_n});return o}function Ln(n){return n.flatMap(In)}function Nn(n,o){const r=u.useMemo(()=>Ln(n),[n]),[h,d]=u.useState(0);return u.useEffect(()=>{if(!o||r.length===0)return;const b=setTimeout(()=>d(l=>(l+1)%r.length),r[h%r.length].delay);return()=>clearTimeout(b)},[h,o,r]),!o||r.length===0?"":r[h%r.length].text}const An="https://cdn.decentraland.org/@dcl/shop/1.13.1-35095058100.commit-8d694c8/_assets/name-verified-oGwQ3ntb.svg",zn="#34fee6",Mn=i.div`
1
+ import{r as u,u as Ve,j as e,a as dt}from"./react-VV7ruaEe.js";import{e as Q,r as ht,h as pt,bH as ut,bD as ft,aI as mt,j as xt,D as gt,cJ as bt,cK as yt,s as i,d as t,E as Qe,bn as wt,L as vt,S as $e,c as s,J as jt,I as _,K as D,cL as he,bl as Ct,al as ce,bx as We,bG as $t,bF as kt,H as Ze,X as Ke,m as Je,cM as St,F as Et,az as Tt,Z as Rt,a0 as Fe,a1 as te,aQ as _t,bQ as It}from"./index-DBONtw7H.js";import{u as Lt,s as Nt}from"./search-empty-Xv_q1rjS.js";import{i as At,u as zt,j as Mt,S as Wt,R as Ft,a as Bt,b as Pt,c as Ot,D as Ut,d as Ht,C as Dt,e as Gt,F as qt,f as Vt,g as Qt,M as Zt,h as Kt}from"./browseLayout.styles-BKjgHcP6.js";import{L as Jt}from"./LoadMore-DE7YSrmA.js";import{u as Xt}from"./useInfiniteGrid-CqEvXCvo.js";import{n as Yt,S as en}from"./categories-CBw6i6jK.js";import{E as tn}from"./ErrorNotice-BjKorbeP.js";import{d as nn}from"./dcl-schemas-DwpPH57a.js";import{s as sn,G as on,w as an,S as rn}from"./buy-gasless-DNEVxdLb.js";import{t as ln,u as cn}from"./buy-D7nFmJT8.js";import{f as dn}from"./errors-CNu2839_.js";import{J as hn,C as pn,B as ke}from"./ethers-1M1CfdDX.js";import{n as un}from"./name-glyph-aUugT8vq.js";import{c as fn}from"./crumbs.styles-B_xC21o-.js";import{G as mn}from"./grid.styles-DLJDk6Da.js";import"./sentry-o0F_Elyr.js";import"./intl-AKLEHPeO.js";import"./skeleton.styles-V94rqky6.js";import"./authorizations-B83pvCo5.js";import"./sendMetaTransaction-ZH8zQFka.js";(function(){try{var n=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},o=new n.Error().stack;o&&(n._sentryDebugIds=n._sentryDebugIds||{},n._sentryDebugIds[o]="0f9b7fd3-f6f8-43b7-878b-dfcedecfef2d",n._sentryDebugIdIdentifier="sentry-dbid-0f9b7fd3-f6f8-43b7-878b-dfcedecfef2d")}catch{}})();function ne(n){const o=n.source??"item",r=n.tradeId||`${n.contractAddress}-${n.tokenId??n.itemId??""}`;return`${o}:${r}`}const K="100000000000000000000",Xe=2,de=15,xn=/^[a-zA-Z0-9]+$/;function Be(n){const o=n.trim();return o.length===0?{ok:!1,reason:"empty"}:xn.test(o)?o.length<Xe?{ok:!1,reason:"too-short"}:o.length>de?{ok:!1,reason:"too-long"}:{ok:!0}:{ok:!1,reason:"invalid-chars"}}function gn(n){return n.replace(/[^a-zA-Z0-9]/g,"").slice(0,de)}const bn=["function available(string _subdomain) view returns (bool)"],Pe={mainnet:{rpc:"https://rpc.decentraland.org/mainnet",address:"0x2a187453064356c898cae034eaed119e1663acb8"},sepolia:{rpc:"https://rpc.decentraland.org/sepolia",address:"0x7518456ae93eb98f3e64571b689c626616bb7f30"}};function yn(){return Q.chainId===Number(nn.ChainId.MATIC_MAINNET)?Pe.mainnet:Pe.sepolia}async function wn(n,o={}){var m;const{rpc:r,address:h}=yn(),d=new hn(r),b=new pn(h,bn,d);console.info(`[names] availability check → DCLRegistrar(${h}).available("${n}") on ${r}`);const l=await b.available(n);if((m=o.signal)!=null&&m.aborted)throw new DOMException("Aborted","AbortError");return console.info(`[names] "${n}" available=${l}`),l?"available":"taken"}const vn="https://app.across.to/api";class Te extends Error{constructor(){super("Name registration is temporarily unavailable due to high network costs"),this.name="NameRouteCostTooHighError"}}class Se extends Error{constructor(){super("The name could not be registered on Ethereum; your funds were recovered."),this.name="NameNotRegisteredError"}}class Ee extends Error{constructor(){super("We couldn't confirm whether the purchase went through."),this.name="NameSettlementUnknownError"}}function jn(n){return mt(K,n)}async function Cn(n,o,r={}){var m;const h=r.chainId??Q.chainId,d=r.provider??"across",b=`${Q.creditsServerUrl}/credits-name-route?name=${encodeURIComponent(o)}&chainId=${h}&provider=${d}`,l=await xt(b,{method:"GET",identity:n,metadata:{}});if(!l.ok){let c;try{c=(m=await l.json())==null?void 0:m.code}catch{}throw c==="ROUTE_COST_TOO_HIGH"?new Te:new Error(`fetchNameCreditRoute ${l.status}`)}return l.json()}function $n(n,o){const r=ke.from(n.availableAmount),d=ke.from(K).sub(r);return{credits:[{value:n.amount,expiresAt:Number(n.expiresAt),salt:cn(n.id)}],creditsSignatures:[n.signature],externalCall:{target:o.externalCall.target,selector:o.externalCall.selector,data:o.externalCall.data,expiresAt:o.externalCall.expiresAt,salt:o.externalCall.salt},customExternalCallSignature:o.customExternalCallSignature,maxUncreditedValue:d.isNegative()?"0":d.toString(),maxCreditedValue:K}}async function kn(n,o={}){const r=vn,h=o.intervalMs??1e4,d=o.maxAttempts??60;let b={status:"pending",destinationTxHash:null,actionsSucceeded:null};for(let l=0;l<d;l++){try{const m=await fetch(`${r}/deposit/status?originChainId=137&depositTxHash=${n}`);if(m.ok){const c=await m.json(),y=(c.status??"pending").toLowerCase(),f=c.fillTx??c.fillTxnRef??null,j=typeof c.actionsSucceeded=="boolean"?c.actionsSucceeded:null;if(y==="filled")return{status:"filled",destinationTxHash:f,actionsSucceeded:j};if(y==="refunded"||y==="expired")return{status:y,destinationTxHash:null,actionsSucceeded:!1};b={status:"pending",destinationTxHash:f,actionsSucceeded:j}}}catch{}l<d-1&&await new Promise(m=>setTimeout(m,h))}return b}async function Sn(n){const{name:o,identity:r,signer:h}=n,d=f=>{var j;try{(j=n.onProgress)==null||j.call(n,f)}catch{}},b=n.chainId??Q.chainId,l=n.provider??"across",m=(n.beneficiary??await h.getAddress()).toLowerCase();let c=null,y="unconfirmed";console.info("[names] register start",{name:o,buyer:m,chainId:b,provider:l}),d("preparing");try{const f=await ht(pt(Q.chainId).address),j=jn(f);console.info("[names] step 1/6 sized reservation",{usdCents:j,manaRate:f});const C=await Cn(r,o,{chainId:b,provider:l});console.info("[names] step 2/6 route fetched",{target:C.externalCall.target,selector:C.externalCall.selector,provider:C.provider,quoteId:C.quoteId});const x=await ut(r,j,void 0,void 0,o);if(c=x.credit.id,console.info("[names] step 3/6 credit authorized",{creditId:x.credit.id,maxCreditedValue:x.maxCreditedValue}),ke.from(x.maxCreditedValue).lt(K))throw new Error("Credit under-sized for the name price");d("awaiting-confirmation");const S=$n(x.credit,C);let p;try{p=await sn({chainId:b,buyer:m,signer:h,args:S})}catch(g){if(!(g instanceof on))throw g;if(g.reason==="relayer-unreachable"){y="unobservable";const I=new Ee;throw I.cause=g,I}p=await ln(b,S,h)}if(console.info("[names] step 4/6 useCredits submitted (Polygon origin tx)",{originTxHash:p}),d("confirming"),await an(p),y="confirmed",console.info("[names] step 5/6 origin tx confirmed",{originTxHash:p}),l==="across"){d("registering");const g=await kn(p,n.acrossPoll);if(console.info("[names] step 6/6 across status",g),g.status==="pending")return{status:"pending",originTxHash:p};if(g.status==="filled"&&g.actionsSucceeded===null)return console.warn("[names] across filled without reporting actionsSucceeded — reporting pending",{originTxHash:p}),{status:"pending",originTxHash:p};if(g.status!=="filled"||g.actionsSucceeded!==!0)throw new Se;return{status:"registered",originTxHash:p,destinationTxHash:g.destinationTxHash}}return{status:"pending",originTxHash:p}}catch(f){if(console.error("[names] register failed — raw error:",f,{name:o,buyer:m,originState:y}),f instanceof rn)return{status:"pending",originTxHash:f.txHash};if(c&&y==="unconfirmed"&&await ft(r,[c]).catch(()=>{}),f instanceof Te||f instanceof Se||f instanceof Ee)throw f;const j=new Error(dn(f,"Couldn't register the name. Please try again.",{sale:!0}));throw j.cause=f,j}}function En(){const{data:n}=gt({queryKey:["feature-flag","shop-names"],queryFn:()=>bt(yt.SHOP_NAMES),staleTime:6e4,refetchOnWindowFocus:!0,retry:1});return n===!0}const Tn=60,Rn=700,_n=25;function In(n){if(!n)return[];const o=[];for(let r=1;r<=n.length;r++)o.push({text:n.slice(0,r),delay:Tn});o[o.length-1]={text:n,delay:Rn};for(let r=n.length-1;r>=1;r--)o.push({text:n.slice(0,r),delay:_n});return o}function Ln(n){return n.flatMap(In)}function Nn(n,o){const r=u.useMemo(()=>Ln(n),[n]),[h,d]=u.useState(0);return u.useEffect(()=>{if(!o||r.length===0)return;const b=setTimeout(()=>d(l=>(l+1)%r.length),r[h%r.length].delay);return()=>clearTimeout(b)},[h,o,r]),!o||r.length===0?"":r[h%r.length].text}const An="https://cdn.decentraland.org/@dcl/shop/1.13.1-35146304116.commit-0532a2b/_assets/name-verified-oGwQ3ntb.svg",zn="#34fee6",Mn=i.div`
2
2
  position: fixed;
3
3
  inset: 0;
4
4
  z-index: 10000;
@@ -458,7 +458,7 @@ import{r as u,u as Ve,j as e,a as dt}from"./react-DaBuTM6Q.js";import{e as Q,r a
458
458
  color: ${t.colors.accent};
459
459
  }
460
460
  }
461
- `;function rs({name:n,priceCredits:o,onClose:r}){const{session:h}=Qe(),{data:d,isError:b}=wt(h),l=vt(),m=Ve(),[c,y]=u.useState("confirm"),[f,j]=u.useState(""),[C,x]=u.useState(null),[S,p]=u.useState(!1),[g,I]=u.useState("preparing"),L=u.useRef(!1),N=f.trim().toLowerCase()===n.toLowerCase(),E=c==="completing",P=o!=null?$e(o):"—",$=o==null,k=d==null?void 0:d.credits,A=o!=null&&k!=null?o-k:0,T=A>0,G=$?s("names.priceUnavailable"):T?s("names.insufficientCredits",{credits:$e(A)}):null;u.useEffect(()=>{const w=O=>{O.key==="Escape"&&!E&&r()};document.addEventListener("keydown",w);const B=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.removeEventListener("keydown",w),document.body.style.overflow=B}},[E,r]);async function z(){if(!(!h||!N||$||T||L.current)){L.current=!0,y("completing"),x(null),I("preparing");try{const w=await Sn({name:n,identity:h.identity,signer:h.signer,onProgress:I});ce("Shop Completed Purchase",{items:[{item_id:null,contract_address:null,token_id:null,price_usd:We(o??0),category:"name",is_smart:!1}],purchase_type:"name",is_primary:!0,payment_type:"credits",value_credits:o??null,value_usd:We(o??0),transaction_hash:w.originTxHash??null,settlement:w.status}),l.invalidateQueries({queryKey:["usd-balance"]}),l.invalidateQueries({queryKey:["my-assets"]}),y(w.status==="registered"?"success":"pending")}catch(w){ce(kt(w)?"Shop Purchase Cancelled":"Shop Purchase Failed",{step:"submit",error_code:$t(w),purchase_type:"name"});const B=w instanceof Se,O=w instanceof Ee;x(w instanceof Te?s("names.errorRouteCost"):B?s("names.errorNotRegistered"):O?s("names.errorSettlementUnknown"):(w==null?void 0:w.message)||s("names.errorGeneric")),p(B||O),y("error")}finally{L.current=!1}}}const M=c!=="success"&&c!=="pending",v=jt(h==null?void 0:h.providerType),W=v?2:1,F=v&&(g==="preparing"||g==="awaiting-confirmation"),R=F?1:W,J=F?s("names.confirming"):s("names.completing"),Z=g==="registering"?s("names.processingRegistering"):null;return e.jsx(Mn,{onClick:E?void 0:r,role:"presentation",children:e.jsxs(Wn,{role:"dialog","aria-modal":"true","aria-label":s("names.buyTitle"),onClick:w=>w.stopPropagation(),children:[M&&e.jsxs(e.Fragment,{children:[e.jsxs(pe,{children:[e.jsx(ue,{children:c==="error"?s("names.errorTitle"):s("names.buyTitle")}),e.jsx(fe,{onClick:r,disabled:E,"aria-label":s("buyModal.close"),children:e.jsx(_,{name:"close"})})]}),e.jsxs(me,{children:[s("names.myCreditsBalance")," ",e.jsx(D,{})," ",he(d,b)]}),e.jsx(xe,{})]}),(c==="confirm"||c==="error")&&e.jsxs(e.Fragment,{children:[e.jsxs(ge,{children:[e.jsx(Oe,{"aria-hidden":!0,children:"@"}),e.jsxs(be,{children:[e.jsxs(ye,{children:[n,e.jsx("span",{children:".dcl.eth"})]}),e.jsx(we,{children:s("names.subtitle")})]}),e.jsxs(ve,{children:[e.jsx(D,{}),P]})]}),c==="error"?e.jsxs(e.Fragment,{children:[e.jsxs(Ce,{children:[e.jsx(_,{name:"info","aria-hidden":!0}),e.jsx("span",{children:C})]}),S?e.jsx(je,{onClick:r,children:s("names.errorSpentDismiss")}):e.jsx(je,{onClick:()=>y("confirm"),children:s("names.tryAgain")})]}):e.jsxs(e.Fragment,{children:[e.jsxs(Un,{children:[e.jsx(Hn,{children:s("names.confirmTitle")}),e.jsx(Dn,{dangerouslySetInnerHTML:{__html:s("names.confirmBody",{name:`<b>@${ls(n)}</b>`})}}),e.jsxs(Gn,{children:[e.jsx(qn,{"aria-hidden":!0,children:"@"}),e.jsx(Vn,{value:f,onChange:w=>j(w.target.value.replace(/[^a-zA-Z0-9]/g,"")),placeholder:"yourname","aria-label":s("names.reenterAria"),autoComplete:"off",spellCheck:!1,style:{width:`${Math.max(f.length,8)}ch`}}),e.jsx(Qn,{children:".dcl.eth"})]})]}),G?e.jsxs(Ce,{"data-tone":"info","data-testid":"name-blocked-reason",children:[e.jsx(_,{name:"info","aria-hidden":!0}),e.jsx("span",{children:G})]}):null,e.jsx(je,{onClick:()=>void z(),disabled:!N||!h||$||T,children:s("names.buyCta")})]})]}),c==="completing"&&e.jsxs(Zn,{children:[e.jsx(Kn,{src:Ct,alt:"",width:61,height:61}),e.jsxs(Jn,{children:[e.jsx(Xn,{children:J}),e.jsxs(es,{children:[e.jsx(ts,{"aria-hidden":!0,children:e.jsx("span",{})}),e.jsx(ns,{"data-testid":"name-progress-count",children:`${R}/${W}`})]}),Z?e.jsx(Yn,{children:Z}):null]})]}),c==="pending"&&e.jsxs(e.Fragment,{children:[e.jsxs(pe,{children:[e.jsx(ue,{children:s("names.pendingHeaderTitle")}),e.jsx(fe,{onClick:r,"aria-label":s("buyModal.close"),children:e.jsx(_,{name:"close"})})]}),e.jsxs(me,{children:[s("names.myCreditsBalance")," ",e.jsx(D,{})," ",he(d,b)]}),e.jsx(xe,{}),e.jsxs(Ce,{"data-tone":"info",children:[e.jsx(_,{name:"info","aria-hidden":!0}),e.jsxs("span",{children:[e.jsx("b",{children:s("names.pendingBannerBold")})," ",s("names.pendingBannerRest")]})]}),e.jsxs(ge,{style:{marginTop:20},children:[e.jsx(Oe,{"aria-hidden":!0,children:"@"}),e.jsxs(be,{children:[e.jsxs(ye,{children:[n,e.jsx("span",{children:".dcl.eth"})]}),e.jsx(we,{children:s("names.subtitle")})]}),e.jsxs(ve,{children:[e.jsx(D,{}),P]})]}),e.jsx(Ue,{children:e.jsx(He,{onClick:()=>{r(),m("/my-items")},children:s("names.myItems")})})]}),c==="success"&&e.jsxs(e.Fragment,{children:[e.jsxs(pe,{children:[e.jsx(ue,{children:s("names.successHeaderTitle")}),e.jsx(fe,{onClick:r,"aria-label":s("buyModal.close"),children:e.jsx(_,{name:"close"})})]}),e.jsxs(me,{children:[s("names.myCreditsBalance")," ",e.jsx(D,{})," ",he(d,b)]}),e.jsx(xe,{}),e.jsxs(ss,{children:[e.jsx(is,{"aria-hidden":!0,children:e.jsx(_,{name:"check"})}),e.jsxs(os,{children:[e.jsx("b",{children:s("names.successBannerBold")})," ",s("names.successBannerRest")]})]}),e.jsxs(ge,{style:{marginTop:20},children:[e.jsxs(Fn,{"data-testid":"name-success-tile",children:[e.jsx(Bn,{src:un,alt:"","aria-hidden":!0,width:47,height:47}),e.jsxs(Pn,{children:[e.jsx("span",{"aria-hidden":!0,children:n}),e.jsx(On,{src:An,alt:"","aria-hidden":!0,width:14,height:14})]})]}),e.jsxs(be,{children:[e.jsxs(ye,{children:[n,e.jsx("span",{children:".dcl.eth"})]}),e.jsx(we,{children:s("names.subtitle")})]}),e.jsxs(ve,{children:[e.jsx(D,{}),P]})]}),e.jsxs(Ue,{children:[e.jsx(He,{onClick:()=>{r(),m("/my-items")},children:s("names.myItems")}),e.jsx(as,{href:Q.profileUrl,target:"_blank",rel:"noopener noreferrer",children:s("names.assignToAvatar")})]})]})]})})}function ls(n){return n.replace(/[&<>"']/g,o=>({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"})[o])}const cs="https://cdn.decentraland.org/@dcl/shop/1.13.1-35095058100.commit-8d694c8/_assets/identity-icon-C8yAW_Gq.svg",ds="https://cdn.decentraland.org/@dcl/shop/1.13.1-35095058100.commit-8d694c8/_assets/world-icon-6xQ-PmmW.svg",hs="https://cdn.decentraland.org/@dcl/shop/1.13.1-35095058100.commit-8d694c8/_assets/invite-icon-Bz6lCTuB.svg",ps="data:image/svg+xml,%3csvg%20width='55.6797'%20height='63.6174'%20viewBox='0%200%2055.6797%2063.6174'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Vote'%3e%3cpath%20id='Vector'%20d='M0.055012%2039.1045C1.61191%2039.4989%202.83757%2039.3938%204.4307%2039.392L8.27108%2039.3878L20.7762%2039.3883L42.8819%2039.3904L50.0954%2039.3907C51.793%2039.3907%2054.0562%2039.5509%2055.6466%2039.0843C55.5909%2040.7931%2055.647%2042.8581%2055.6469%2044.5864L55.6479%2055.616L55.6559%2059.5618C55.6583%2060.6219%2055.8213%2061.9838%2055.261%2062.8837C55.2205%2062.9265%2055.1794%2062.9688%2055.1377%2063.0104C54.7986%2063.3482%2054.3791%2063.5594%2053.9021%2063.5761C52.0714%2063.642%2050.1544%2063.6097%2048.3241%2063.6078L37.4452%2063.6066L2.97352%2063.6103C2.2022%2063.6084%201.15943%2063.6718%200.589171%2063.0576C-0.204857%2062.2037%200.0327979%2060.3244%200.0349529%2059.1687L0.0414734%2054.3929C0.0413119%2049.3191%20-0.00749456%2044.1727%200.055012%2039.1045Z'%20fill='white'%20fill-opacity='0.8'/%3e%3cpath%20id='Subtract'%20d='M37.1168%200.00495927C38.1773%200.00461149%2039.2888%20-0.0284991%2040.3433%200.0811311C41.0714%200.15695%2041.7266%200.914583%2041.7857%201.63484C41.853%202.45491%2041.8268%203.31926%2041.8258%204.15144L41.8189%208.70418L41.8199%2023.9639L40.1099%2023.9659L13.8726%2023.963L13.8678%209.0909L13.8648%204.29793C13.8644%202.52652%2013.3942%200.34203%2015.6754%200.0342561C15.8907%200.016712%2016.237%200.0120998%2016.4557%200.0117952C21.6059%200.00480262%2026.761%200.0117634%2031.9107%200.00788896L37.1168%200.00495927ZM33.3834%206.17293C32.439%206.55612%2031.0531%208.12922%2030.3014%208.88191L25.8297%2013.3634C25.3537%2012.824%2023.3455%2010.7605%2022.8209%2010.4239C22.5581%2010.2549%2022.2566%2010.1546%2021.9449%2010.1329C21.4563%2010.1008%2020.9754%2010.2879%2020.6139%2010.6134C20.2442%2010.9428%2020.0227%2011.4077%2020.0006%2011.9024C19.9561%2013.0748%2021.3406%2014.1198%2022.1256%2014.8868C22.9429%2015.714%2024.1669%2017.1028%2025.1168%2017.67C26.1632%2018.2949%2027.3471%2017.2145%2027.9723%2016.4942C30.25%2014.2025%2032.5393%2011.9456%2034.8101%209.64949C35.2937%209.16062%2035.7138%208.69126%2035.6851%207.96199C35.6419%206.86558%2034.7821%206.09682%2033.6959%206.14656C33.5914%206.15085%2033.4872%206.16001%2033.3834%206.17293Z'%20fill='%23FF7439'/%3e%3cpath%20id='Vector_2'%20d='M45.5498%2015.976C46.6399%2015.986%2049.9504%2015.7705%2050.7361%2016.241C51.0104%2016.4053%2051.2831%2016.6446%2051.4181%2016.9397C51.892%2017.9763%2052.1015%2019.357%2052.3802%2020.4819L54.0582%2027.2308C54.5046%2028.9073%2054.9023%2030.6043%2055.3338%2032.2824C55.6029%2033.329%2055.9417%2034.4293%2054.9705%2035.2255C54.8158%2035.359%2054.4427%2035.5934%2054.2329%2035.6091C52.7731%2035.7184%2051.1693%2035.6701%2049.7108%2035.6679L39.4635%2035.6649L14.5239%2035.6632C10.471%2035.6631%206.41808%2035.6665%202.36531%2035.6698C1.79359%2035.6657%201.33794%2035.6604%200.844568%2035.337C-0.57365%2034.4073%200.381076%2032.2112%200.72189%2030.8501L1.93462%2025.9936L3.28579%2020.566C3.53371%2019.5688%203.77194%2018.5694%204.04289%2017.5781C4.30559%2016.6172%204.74298%2016.1492%205.73966%2015.9892C7.15095%2015.9419%208.72017%2015.9778%2010.1434%2015.9809L10.1451%2023.9585C7.37011%2024.097%207.74242%2027.5535%209.84963%2027.6469C11.6268%2027.7258%2013.6164%2027.6909%2015.4098%2027.691L26.229%2027.6915L39.1339%2027.691L43.273%2027.6909C44.748%2027.6909%2047.2174%2028.0848%2047.3773%2025.9908C47.4212%2025.4807%2047.2565%2024.9745%2046.9209%2024.5879C46.5265%2024.141%2046.1143%2024.0046%2045.5418%2023.9673L45.5498%2015.976Z'%20fill='white'/%3e%3c/g%3e%3c/svg%3e",us=i.div`
461
+ `;function rs({name:n,priceCredits:o,onClose:r}){const{session:h}=Qe(),{data:d,isError:b}=wt(h),l=vt(),m=Ve(),[c,y]=u.useState("confirm"),[f,j]=u.useState(""),[C,x]=u.useState(null),[S,p]=u.useState(!1),[g,I]=u.useState("preparing"),L=u.useRef(!1),N=f.trim().toLowerCase()===n.toLowerCase(),E=c==="completing",P=o!=null?$e(o):"—",$=o==null,k=d==null?void 0:d.credits,A=o!=null&&k!=null?o-k:0,T=A>0,G=$?s("names.priceUnavailable"):T?s("names.insufficientCredits",{credits:$e(A)}):null;u.useEffect(()=>{const w=O=>{O.key==="Escape"&&!E&&r()};document.addEventListener("keydown",w);const B=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.removeEventListener("keydown",w),document.body.style.overflow=B}},[E,r]);async function z(){if(!(!h||!N||$||T||L.current)){L.current=!0,y("completing"),x(null),I("preparing");try{const w=await Sn({name:n,identity:h.identity,signer:h.signer,onProgress:I});ce("Shop Completed Purchase",{items:[{item_id:null,contract_address:null,token_id:null,price_usd:We(o??0),category:"name",is_smart:!1}],purchase_type:"name",is_primary:!0,payment_type:"credits",value_credits:o??null,value_usd:We(o??0),transaction_hash:w.originTxHash??null,settlement:w.status}),l.invalidateQueries({queryKey:["usd-balance"]}),l.invalidateQueries({queryKey:["my-assets"]}),y(w.status==="registered"?"success":"pending")}catch(w){ce(kt(w)?"Shop Purchase Cancelled":"Shop Purchase Failed",{step:"submit",error_code:$t(w),purchase_type:"name"});const B=w instanceof Se,O=w instanceof Ee;x(w instanceof Te?s("names.errorRouteCost"):B?s("names.errorNotRegistered"):O?s("names.errorSettlementUnknown"):(w==null?void 0:w.message)||s("names.errorGeneric")),p(B||O),y("error")}finally{L.current=!1}}}const M=c!=="success"&&c!=="pending",v=jt(h==null?void 0:h.providerType),W=v?2:1,F=v&&(g==="preparing"||g==="awaiting-confirmation"),R=F?1:W,J=F?s("names.confirming"):s("names.completing"),Z=g==="registering"?s("names.processingRegistering"):null;return e.jsx(Mn,{onClick:E?void 0:r,role:"presentation",children:e.jsxs(Wn,{role:"dialog","aria-modal":"true","aria-label":s("names.buyTitle"),onClick:w=>w.stopPropagation(),children:[M&&e.jsxs(e.Fragment,{children:[e.jsxs(pe,{children:[e.jsx(ue,{children:c==="error"?s("names.errorTitle"):s("names.buyTitle")}),e.jsx(fe,{onClick:r,disabled:E,"aria-label":s("buyModal.close"),children:e.jsx(_,{name:"close"})})]}),e.jsxs(me,{children:[s("names.myCreditsBalance")," ",e.jsx(D,{})," ",he(d,b)]}),e.jsx(xe,{})]}),(c==="confirm"||c==="error")&&e.jsxs(e.Fragment,{children:[e.jsxs(ge,{children:[e.jsx(Oe,{"aria-hidden":!0,children:"@"}),e.jsxs(be,{children:[e.jsxs(ye,{children:[n,e.jsx("span",{children:".dcl.eth"})]}),e.jsx(we,{children:s("names.subtitle")})]}),e.jsxs(ve,{children:[e.jsx(D,{}),P]})]}),c==="error"?e.jsxs(e.Fragment,{children:[e.jsxs(Ce,{children:[e.jsx(_,{name:"info","aria-hidden":!0}),e.jsx("span",{children:C})]}),S?e.jsx(je,{onClick:r,children:s("names.errorSpentDismiss")}):e.jsx(je,{onClick:()=>y("confirm"),children:s("names.tryAgain")})]}):e.jsxs(e.Fragment,{children:[e.jsxs(Un,{children:[e.jsx(Hn,{children:s("names.confirmTitle")}),e.jsx(Dn,{dangerouslySetInnerHTML:{__html:s("names.confirmBody",{name:`<b>@${ls(n)}</b>`})}}),e.jsxs(Gn,{children:[e.jsx(qn,{"aria-hidden":!0,children:"@"}),e.jsx(Vn,{value:f,onChange:w=>j(w.target.value.replace(/[^a-zA-Z0-9]/g,"")),placeholder:"yourname","aria-label":s("names.reenterAria"),autoComplete:"off",spellCheck:!1,style:{width:`${Math.max(f.length,8)}ch`}}),e.jsx(Qn,{children:".dcl.eth"})]})]}),G?e.jsxs(Ce,{"data-tone":"info","data-testid":"name-blocked-reason",children:[e.jsx(_,{name:"info","aria-hidden":!0}),e.jsx("span",{children:G})]}):null,e.jsx(je,{onClick:()=>void z(),disabled:!N||!h||$||T,children:s("names.buyCta")})]})]}),c==="completing"&&e.jsxs(Zn,{children:[e.jsx(Kn,{src:Ct,alt:"",width:61,height:61}),e.jsxs(Jn,{children:[e.jsx(Xn,{children:J}),e.jsxs(es,{children:[e.jsx(ts,{"aria-hidden":!0,children:e.jsx("span",{})}),e.jsx(ns,{"data-testid":"name-progress-count",children:`${R}/${W}`})]}),Z?e.jsx(Yn,{children:Z}):null]})]}),c==="pending"&&e.jsxs(e.Fragment,{children:[e.jsxs(pe,{children:[e.jsx(ue,{children:s("names.pendingHeaderTitle")}),e.jsx(fe,{onClick:r,"aria-label":s("buyModal.close"),children:e.jsx(_,{name:"close"})})]}),e.jsxs(me,{children:[s("names.myCreditsBalance")," ",e.jsx(D,{})," ",he(d,b)]}),e.jsx(xe,{}),e.jsxs(Ce,{"data-tone":"info",children:[e.jsx(_,{name:"info","aria-hidden":!0}),e.jsxs("span",{children:[e.jsx("b",{children:s("names.pendingBannerBold")})," ",s("names.pendingBannerRest")]})]}),e.jsxs(ge,{style:{marginTop:20},children:[e.jsx(Oe,{"aria-hidden":!0,children:"@"}),e.jsxs(be,{children:[e.jsxs(ye,{children:[n,e.jsx("span",{children:".dcl.eth"})]}),e.jsx(we,{children:s("names.subtitle")})]}),e.jsxs(ve,{children:[e.jsx(D,{}),P]})]}),e.jsx(Ue,{children:e.jsx(He,{onClick:()=>{r(),m("/my-items")},children:s("names.myItems")})})]}),c==="success"&&e.jsxs(e.Fragment,{children:[e.jsxs(pe,{children:[e.jsx(ue,{children:s("names.successHeaderTitle")}),e.jsx(fe,{onClick:r,"aria-label":s("buyModal.close"),children:e.jsx(_,{name:"close"})})]}),e.jsxs(me,{children:[s("names.myCreditsBalance")," ",e.jsx(D,{})," ",he(d,b)]}),e.jsx(xe,{}),e.jsxs(ss,{children:[e.jsx(is,{"aria-hidden":!0,children:e.jsx(_,{name:"check"})}),e.jsxs(os,{children:[e.jsx("b",{children:s("names.successBannerBold")})," ",s("names.successBannerRest")]})]}),e.jsxs(ge,{style:{marginTop:20},children:[e.jsxs(Fn,{"data-testid":"name-success-tile",children:[e.jsx(Bn,{src:un,alt:"","aria-hidden":!0,width:47,height:47}),e.jsxs(Pn,{children:[e.jsx("span",{"aria-hidden":!0,children:n}),e.jsx(On,{src:An,alt:"","aria-hidden":!0,width:14,height:14})]})]}),e.jsxs(be,{children:[e.jsxs(ye,{children:[n,e.jsx("span",{children:".dcl.eth"})]}),e.jsx(we,{children:s("names.subtitle")})]}),e.jsxs(ve,{children:[e.jsx(D,{}),P]})]}),e.jsxs(Ue,{children:[e.jsx(He,{onClick:()=>{r(),m("/my-items")},children:s("names.myItems")}),e.jsx(as,{href:Q.profileUrl,target:"_blank",rel:"noopener noreferrer",children:s("names.assignToAvatar")})]})]})]})})}function ls(n){return n.replace(/[&<>"']/g,o=>({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"})[o])}const cs="https://cdn.decentraland.org/@dcl/shop/1.13.1-35146304116.commit-0532a2b/_assets/identity-icon-C8yAW_Gq.svg",ds="https://cdn.decentraland.org/@dcl/shop/1.13.1-35146304116.commit-0532a2b/_assets/world-icon-6xQ-PmmW.svg",hs="https://cdn.decentraland.org/@dcl/shop/1.13.1-35146304116.commit-0532a2b/_assets/invite-icon-Bz6lCTuB.svg",ps="data:image/svg+xml,%3csvg%20width='55.6797'%20height='63.6174'%20viewBox='0%200%2055.6797%2063.6174'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Vote'%3e%3cpath%20id='Vector'%20d='M0.055012%2039.1045C1.61191%2039.4989%202.83757%2039.3938%204.4307%2039.392L8.27108%2039.3878L20.7762%2039.3883L42.8819%2039.3904L50.0954%2039.3907C51.793%2039.3907%2054.0562%2039.5509%2055.6466%2039.0843C55.5909%2040.7931%2055.647%2042.8581%2055.6469%2044.5864L55.6479%2055.616L55.6559%2059.5618C55.6583%2060.6219%2055.8213%2061.9838%2055.261%2062.8837C55.2205%2062.9265%2055.1794%2062.9688%2055.1377%2063.0104C54.7986%2063.3482%2054.3791%2063.5594%2053.9021%2063.5761C52.0714%2063.642%2050.1544%2063.6097%2048.3241%2063.6078L37.4452%2063.6066L2.97352%2063.6103C2.2022%2063.6084%201.15943%2063.6718%200.589171%2063.0576C-0.204857%2062.2037%200.0327979%2060.3244%200.0349529%2059.1687L0.0414734%2054.3929C0.0413119%2049.3191%20-0.00749456%2044.1727%200.055012%2039.1045Z'%20fill='white'%20fill-opacity='0.8'/%3e%3cpath%20id='Subtract'%20d='M37.1168%200.00495927C38.1773%200.00461149%2039.2888%20-0.0284991%2040.3433%200.0811311C41.0714%200.15695%2041.7266%200.914583%2041.7857%201.63484C41.853%202.45491%2041.8268%203.31926%2041.8258%204.15144L41.8189%208.70418L41.8199%2023.9639L40.1099%2023.9659L13.8726%2023.963L13.8678%209.0909L13.8648%204.29793C13.8644%202.52652%2013.3942%200.34203%2015.6754%200.0342561C15.8907%200.016712%2016.237%200.0120998%2016.4557%200.0117952C21.6059%200.00480262%2026.761%200.0117634%2031.9107%200.00788896L37.1168%200.00495927ZM33.3834%206.17293C32.439%206.55612%2031.0531%208.12922%2030.3014%208.88191L25.8297%2013.3634C25.3537%2012.824%2023.3455%2010.7605%2022.8209%2010.4239C22.5581%2010.2549%2022.2566%2010.1546%2021.9449%2010.1329C21.4563%2010.1008%2020.9754%2010.2879%2020.6139%2010.6134C20.2442%2010.9428%2020.0227%2011.4077%2020.0006%2011.9024C19.9561%2013.0748%2021.3406%2014.1198%2022.1256%2014.8868C22.9429%2015.714%2024.1669%2017.1028%2025.1168%2017.67C26.1632%2018.2949%2027.3471%2017.2145%2027.9723%2016.4942C30.25%2014.2025%2032.5393%2011.9456%2034.8101%209.64949C35.2937%209.16062%2035.7138%208.69126%2035.6851%207.96199C35.6419%206.86558%2034.7821%206.09682%2033.6959%206.14656C33.5914%206.15085%2033.4872%206.16001%2033.3834%206.17293Z'%20fill='%23FF7439'/%3e%3cpath%20id='Vector_2'%20d='M45.5498%2015.976C46.6399%2015.986%2049.9504%2015.7705%2050.7361%2016.241C51.0104%2016.4053%2051.2831%2016.6446%2051.4181%2016.9397C51.892%2017.9763%2052.1015%2019.357%2052.3802%2020.4819L54.0582%2027.2308C54.5046%2028.9073%2054.9023%2030.6043%2055.3338%2032.2824C55.6029%2033.329%2055.9417%2034.4293%2054.9705%2035.2255C54.8158%2035.359%2054.4427%2035.5934%2054.2329%2035.6091C52.7731%2035.7184%2051.1693%2035.6701%2049.7108%2035.6679L39.4635%2035.6649L14.5239%2035.6632C10.471%2035.6631%206.41808%2035.6665%202.36531%2035.6698C1.79359%2035.6657%201.33794%2035.6604%200.844568%2035.337C-0.57365%2034.4073%200.381076%2032.2112%200.72189%2030.8501L1.93462%2025.9936L3.28579%2020.566C3.53371%2019.5688%203.77194%2018.5694%204.04289%2017.5781C4.30559%2016.6172%204.74298%2016.1492%205.73966%2015.9892C7.15095%2015.9419%208.72017%2015.9778%2010.1434%2015.9809L10.1451%2023.9585C7.37011%2024.097%207.74242%2027.5535%209.84963%2027.6469C11.6268%2027.7258%2013.6164%2027.6909%2015.4098%2027.691L26.229%2027.6915L39.1339%2027.691L43.273%2027.6909C44.748%2027.6909%2047.2174%2028.0848%2047.3773%2025.9908C47.4212%2025.4807%2047.2565%2024.9745%2046.9209%2024.5879C46.5265%2024.141%2046.1143%2024.0046%2045.5418%2023.9673L45.5498%2015.976Z'%20fill='white'/%3e%3c/g%3e%3c/svg%3e",us=i.div`
462
462
  width: 100%;
463
463
  min-width: 0;
464
464
  `,fs=i.nav`
@@ -936,4 +936,4 @@ import{r as u,u as Ve,j as e,a as dt}from"./react-DaBuTM6Q.js";import{e as Q,r a
936
936
  color: ${t.colors.err};
937
937
  }
938
938
  `,qe=48,Qs=["all","on_sale","not_for_sale"],Zs=n=>n?"all":"on_sale";function gi({contracts:n,hideNames:o=!1,seo:r,lockStatus:h}={}){const[d]=dt(),b=Ve(),l=(d.get("q")??"").trim().toLowerCase(),m=(d.get("q")??"").trim();Ze(r??{title:m?s("seo.collectibles.searchTitle",{query:m}):s("seo.collectibles.title"),description:s("seo.collectibles.description")});const c=Zs(!!l),y=St(),f=y&&d.get("deals")==="true",j=u.useMemo(()=>({category:"all",status:c,subCategory:null,rarities:[],priceMin:"",priceMax:"",smart:!1,deals:!1,sort:f?"discount":"newest"}),[c,f]),[C,x]=Lt(j),{subCategory:S,rarities:p,priceMin:g,priceMax:I,smart:L,sort:N}=C,E=y&&C.deals,$=At.map(a=>a.key).filter(a=>!(o&&a==="names")).includes(C.category)?C.category:"all",k=h??(Qs.includes(C.status)?C.status:c);zt(`${$}:${S??""}`);const[A,T]=u.useState(!1);u.useEffect(()=>{if(!A)return;const a=ee=>{ee.key==="Escape"&&T(!1)};document.addEventListener("keydown",a);const H=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.removeEventListener("keydown",a),document.body.style.overflow=H}},[A]);const G=n!==void 0&&n.length===0,z=k==="on_sale",M=g&&!Number.isNaN(Number(g))?Number(g):void 0,v=I&&!Number.isNaN(Number(I))?Number(I):void 0,W=Et(),F=S?en[S]:void 0,R=E?Mt:Wt,J=(R.find(a=>a.key===N)??R[0]).server,Z={category:$,rarities:p.length?p:void 0,wearableCategories:F,minPriceCredits:M,maxPriceCredits:v,search:l||void 0,sortBy:J,isSmart:L||void 0,onSale:!0,discounted:E||void 0,listingType:W?void 0:"primary",contractAddresses:n!=null&&n.length?n:void 0},w={category:$,rarities:p.length?p:void 0,wearableCategories:F,search:l||void 0,sortBy:J,isWearableSmart:L||void 0,isOnSale:k==="not_for_sale"?!1:void 0,contractAddresses:n!=null&&n.length?n:void 0},{items:B,total:O,isLoading:U,isPlaceholderData:q,error:Re,hasNextPage:tt,isFetchingNextPage:_e,isFetchNextPageError:nt,fetchNextPage:st}=Xt(z?["shop-items",Z]:["catalog-items",w],a=>z?_t({...Z,first:qe,skip:a}):It({...w,first:qe,skip:a}),{enabled:$!=="names"&&!G}),X=O,{data:Ie,isError:it,isPending:ot}=Ke(),at=a=>Ie&&a.manaWei?Je(a.manaWei,Ie):null,rt=z&&ot&&B.some(a=>a.source==="legacy"),Le=U||q||rt,lt=U?15:Math.max(B.length,1),Ne=u.useRef(null);u.useEffect(()=>{U||q||!l||Ne.current===l||(Ne.current=l,ce("Shop Searched",{query:l,result_count:X}))},[l,U,q,X]);const Y=u.useRef("__init__");u.useEffect(()=>{if(U||q)return;const a=JSON.stringify({category:$,subCategory:S,rarities:p,min:M,max:v,sort:N,status:k,smart:L});if(Y.current==="__init__"||Y.current===a){Y.current=a;return}Y.current=a,ce("Shop Applied Filter",{filters:{category:$,sub_category:S,rarities:p,min_price_credits:M??null,max_price_credits:v??null,status:k,smart:L,sort:N},result_count:X})},[$,S,p,M,v,N,k,L,U,q,X]);function Ae(a){x({category:a,subCategory:null})}function ze(a){x({status:a})}function Me(a){x({rarities:p.includes(a)?p.filter(H=>H!==a):[...p,a]})}function ct(){x(j)}const V=[];(M!=null||v!=null)&&V.push({key:"price",label:s("filter.price"),onRemove:()=>{x({priceMin:"",priceMax:""})}});for(const a of Ft)p.includes(a)&&V.push({key:`rarity-${a}`,label:Tt(a),onRemove:()=>Me(a)});return L&&V.push({key:"smart",label:s("filter.smart"),onRemove:()=>x({smart:!1})}),E&&V.push({key:"deals",label:s("filter.deals"),onRemove:()=>x({deals:!1,sort:"newest"})}),k!==c&&V.push({key:"status",label:k==="all"?s("filter.statusAll"):k==="on_sale"?s("filter.onSale"):s("filter.notForSale"),onRemove:()=>ze(c)}),e.jsxs(Bt,{"data-testid":"browse",children:[$!=="names"&&e.jsxs(e.Fragment,{children:[A?e.jsx(Pt,{onClick:()=>T(!1),"aria-hidden":!0}):null,e.jsxs(Ot,{"data-open":A||void 0,"data-testid":"browse-sidebar",children:[e.jsxs(Ut,{children:[e.jsx(Ht,{children:s("assets.filters")}),e.jsx(Dt,{onClick:()=>T(!1),"aria-label":s("assets.closeFilters"),children:"✕"})]}),e.jsx(Gt,{children:e.jsx(qt,{category:$,subCategory:S,onCategory:Ae,onSub:a=>x({subCategory:a}),priceMin:g,priceMax:I,onPriceMin:a=>x({priceMin:a}),onPriceMax:a=>x({priceMax:a}),rarities:p,onToggleRarity:Me,status:k,onStatus:ze,hideNames:o,smart:L,onSmart:a=>x({smart:a}),deals:E,onDeals:y?a=>x(a?{deals:!0,sort:"discount"}:{deals:!1,sort:"newest"}):void 0})}),e.jsx(Vt,{children:e.jsx(Qt,{type:"button",onClick:()=>T(!1),children:s("assets.showItems")})})]})]}),e.jsx(Zt,{children:$==="names"?e.jsx(qs,{onBack:()=>Ae("all")}):e.jsxs(e.Fragment,{children:[e.jsx(Kt,{sort:N,sortOptions:R,onSort:a=>x({sort:a}),total:O,loading:U||q,query:l,onOpenFilters:()=>T(!0),chips:V,onClearChips:ct}),it&&z&&B.some(a=>a.source==="legacy")?e.jsx(Vs,{"data-variant":"warn",children:s("assets.marketUnavailable")}):null,Re?e.jsx(tn,{message:s("assets.loadError"),testId:"browse-error"}):null,!Le&&B.length===0&&!Re?e.jsx(Rt,{testId:"browse-empty",icon:Nt,title:s("assets.empty.title"),body:m?e.jsxs(e.Fragment,{children:[s("assets.empty.searchBefore"),e.jsx("b",{children:m}),s("assets.empty.searchAfter")]}):s("assets.empty.filters"),cta:{label:s("assets.empty.cta"),onClick:()=>b("/overview")}}):e.jsxs(e.Fragment,{children:[e.jsx(mn,{"data-testid":"grid",children:Le?e.jsx(Fe,{count:lt}):e.jsxs(e.Fragment,{children:[B.map(a=>{if(!z)return e.jsx(te,{item:a,mode:"view"},ne(a));const H=a;if(H.source!=="legacy")return e.jsx(te,{item:a},ne(a));const ee=at(H);return ee==null?e.jsx(te,{item:a,mode:"view"},ne(a)):e.jsx(te,{item:{...H,priceCredits:ee}},ne(a))}),_e?e.jsx(Fe,{count:6}):null]})}),e.jsx(Jt,{hasNextPage:tt,isFetching:_e,isError:nt,onLoadMore:()=>void st()})]})]})})]})}export{gi as Assets};
939
- //# sourceMappingURL=Assets--xiu2hf1.js.map
939
+ //# sourceMappingURL=Assets-SQGh-_eg.js.map
@@ -1,4 +1,4 @@
1
- import{j as e,L as F,r as B}from"./react-DaBuTM6Q.js";import{d as o,s as n,G as K,k as P,H,c as i,E as Q,J as X,I as v,K as J,D as k,L as V,e as Z,M as U,N as T,i as Y,O as tt,P as D}from"./index-DzQkIbqv.js";import{c as et,d as it,e as C,a as ot,f as at,s as nt,g as st}from"./authorizations-D_SudRT-.js";import{f as rt}from"./builder-BCPamKJP.js";import{m as M}from"./mana-matic-CEqvSwrJ.js";import{f as ct}from"./errors-DhRbQUQ8.js";import"./dcl-schemas-n1W5glLl.js";import"./sentry-ilLelGl_.js";import"./ethers-OrSZ5jmz.js";import"./intl-AKLEHPeO.js";import"./sendMetaTransaction-D_Udygrx.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},s=new t.Error().stack;s&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[s]="b5bff7eb-01e2-4392-9125-40218127e2d1",t._sentryDebugIdIdentifier="sentry-dbid-b5bff7eb-01e2-4392-9125-40218127e2d1")}catch{}})();const lt=P`
1
+ import{j as e,L as F,r as B}from"./react-VV7ruaEe.js";import{d as o,s as n,G as K,k as P,H,c as i,E as Q,J as X,I as v,K as J,D as k,L as V,e as Z,M as U,N as T,i as Y,O as tt,P as D}from"./index-DBONtw7H.js";import{c as et,d as it,e as C,a as ot,f as at,s as nt,g as st}from"./authorizations-B83pvCo5.js";import{f as rt}from"./builder-e1EitLO9.js";import{m as M}from"./mana-matic-CEqvSwrJ.js";import{f as ct}from"./errors-CNu2839_.js";import"./dcl-schemas-DwpPH57a.js";import"./sentry-o0F_Elyr.js";import"./ethers-1M1CfdDX.js";import"./intl-AKLEHPeO.js";import"./sendMetaTransaction-ZH8zQFka.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},s=new t.Error().stack;s&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[s]="b5bff7eb-01e2-4392-9125-40218127e2d1",t._sentryDebugIdIdentifier="sentry-dbid-b5bff7eb-01e2-4392-9125-40218127e2d1")}catch{}})();const lt=P`
2
2
  to { transform: rotate(360deg); }
3
3
  `,dt=P`
4
4
  to { background-position: -200% 0; }
@@ -189,4 +189,4 @@ import{j as e,L as F,r as B}from"./react-DaBuTM6Q.js";import{d as o,s as n,G as
189
189
  `,W=n(K)`
190
190
  margin-top: 12px;
191
191
  `;function y({descriptor:t,owner:s,signer:r,name:a,description:c,image:d,icon:g,revokeOnly:$=!1}){const m=V(),[z,j]=B.useState(!1),{data:u,isLoading:l,refetch:h}=k({queryKey:["authorization",t.id,s],queryFn:()=>st(t,s),staleTime:3e4});async function p(){if(z||l)return;const w=!u;j(!0);try{await nt({auth:t,signer:r,active:w}),await h(),m.setQueryData(["authorization",t.id,s],w),T.success(w?i("authorizations.toastActivated",{name:a}):i("authorizations.toastDeactivated",{name:a}))}catch(I){Y(I,{flow:"authorizations",step:w?"grant":"revoke"}),T.error(ct(I,i("authorizations.errorGeneric")))}finally{j(!1)}}if($&&u===!1)return null;const f=l?i("authorizations.checking"):u?i("authorizations.active"):i("authorizations.inactive");return e.jsxs(mt,{"data-testid":`authorization-${t.id}`,"data-active":!!u,children:[e.jsx(ft,{children:d?e.jsx("img",{src:d,alt:""}):g}),e.jsxs(xt,{children:[e.jsx(yt,{title:a,children:a}),e.jsx(bt,{children:c})]}),e.jsxs(jt,{children:[e.jsx(zt,{"data-active":!!u,children:f}),z?e.jsx(vt,{"aria-label":i("authorizations.working")}):e.jsx(wt,{type:"button","data-testid":`authorization-toggle-${t.id}`,"data-active":!!u,role:"switch","aria-checked":!!u,"aria-label":u?i("authorizations.deactivateAria",{name:a}):i("authorizations.activateAria",{name:a}),disabled:l,onClick:()=>void p()})]})]})}const b=500,G=10,$t=b*G;async function q(t,s){const r=await D(t,{category:s,first:b}),a=Math.min(Math.ceil(r.total/b),G),c=await Promise.all(Array.from({length:Math.max(0,a-1)},(d,g)=>D(t,{category:s,first:b,skip:(g+1)*b})));return{assets:[...r.assets,...c.flatMap(d=>d.assets)],truncated:r.total>$t}}function Ct(t){return k({queryKey:["owned-collections",t],enabled:!!t,staleTime:6e4,queryFn:async()=>{const[s,r]=await Promise.all([q(t,"wearable"),q(t,"emote")]),a=new Map;for(const c of[...s.assets,...r.assets]){const d=c.contractAddress.toLowerCase();a.has(d)||a.set(d,c)}return{collections:[...a.values()],truncated:s.truncated||r.truncated,scanned:s.assets.length+r.assets.length}}})}function At(t){return k({queryKey:["contract-registry"],enabled:t,staleTime:1/0,gcTime:1/0,queryFn:tt})}function Et(t,s){const r=s==null?void 0:s.get(t.toLowerCase());if(r)return r;const a=U(t);return a===t?i("authorizations.collectionFallback"):a}function It(t,s){return k({queryKey:["creator-collections",t],enabled:!!t&&!!s,staleTime:6e4,queryFn:async()=>{const r=await rt(t,s),a=new Map;for(const c of r){const d=c.contractAddress.toLowerCase();a.has(d)||a.set(d,c)}return[...a.values()]}})}function Pt(){H({title:i("authorizations.title"),noindex:!0});const{session:t,signIn:s}=Q(),r=Z.chainId,a=X(t==null?void 0:t.providerType),{data:c,isLoading:d}=Ct(a?t==null?void 0:t.address:void 0),{data:g,isLoading:$}=At(!!a&&!!(t!=null&&t.address)),{data:m,isLoading:z}=It(a?t==null?void 0:t.address:void 0,a?t==null?void 0:t.identity:void 0);if(!t)return e.jsxs(_,{children:[e.jsx(v,{name:"info",size:40,color:o.colors.muted2}),e.jsx(R,{children:i("authorizations.signInTitle")}),e.jsx(O,{children:i("authorizations.signInBody")}),e.jsx(W,{variant:"white",onClick:()=>s(),children:i("storeSettings.signIn")})]});if(!a)return e.jsxs(_,{children:[e.jsx(v,{name:"check",size:40,color:o.colors.ok}),e.jsx(R,{children:i("authorizations.managedTitle")}),e.jsx(O,{children:i("authorizations.managedBody")}),e.jsx(W,{as:F,to:"/items",variant:"white",children:i("authorizations.managedCta")})]});const j=et(r),u=it(r);return e.jsxs(ut,{children:[e.jsxs(ht,{children:[e.jsx(pt,{children:i("authorizations.title")}),e.jsx(gt,{children:i("authorizations.intro")})]}),e.jsxs(A,{children:[e.jsx(E,{children:i("authorizations.buyingTitle")}),e.jsxs(x,{children:[e.jsx(y,{descriptor:j,owner:t.address,signer:t.signer,name:i("authorizations.creditsName"),description:i("authorizations.creditsDesc"),icon:e.jsx(J,{className:"ccy-mark"})}),e.jsx(y,{descriptor:u,owner:t.address,signer:t.signer,name:i("authorizations.manaName"),description:i("authorizations.manaDesc"),icon:e.jsx(S,{src:M,alt:"","aria-hidden":!0})}),C(u).map(l=>e.jsx(y,{descriptor:l,owner:t.address,signer:t.signer,name:`${i("authorizations.manaName")} ${i("authorizations.previousVersion")}`,description:i("authorizations.manaDesc"),icon:e.jsx(S,{src:M,alt:"","aria-hidden":!0}),revokeOnly:!0},l.id))]})]}),e.jsxs(A,{children:[e.jsx(E,{children:i("authorizations.sellingTitle")}),c!=null&&c.truncated?e.jsx(kt,{"data-testid":"authorizations-selling-truncated",children:i("authorizations.sellingTruncated",{count:c.scanned})}):null,d||$?e.jsx(x,{"aria-busy":"true","aria-label":i("authorizations.checking"),children:Array.from({length:3}).map((l,h)=>e.jsx(L,{"aria-hidden":!0},h))}):c&&c.collections.length>0?e.jsx(x,{children:c.collections.flatMap(l=>{const h=ot(l.contractAddress,r);return[h,...C(h)].map((p,f)=>e.jsx(y,{descriptor:p,owner:t.address,signer:t.signer,name:Et(l.contractAddress,g),description:i("authorizations.sellingDesc"),image:l.image,icon:e.jsx(v,{name:"pen",size:18}),revokeOnly:f>0},p.id))})}):e.jsx(N,{children:i("authorizations.sellingEmpty")})]}),e.jsxs(A,{children:[e.jsx(E,{children:i("authorizations.mintingTitle")}),z?e.jsx(x,{"aria-busy":"true","aria-label":i("authorizations.checking"),children:Array.from({length:3}).map((l,h)=>e.jsx(L,{"aria-hidden":!0},h))}):m&&m.length>0?e.jsx(x,{children:m.flatMap(l=>{const h=at(l.contractAddress,r);return[h,...C(h)].map((p,f)=>e.jsx(y,{descriptor:p,owner:t.address,signer:t.signer,name:l.name||i("authorizations.collectionFallback"),description:i("authorizations.mintingDesc"),icon:e.jsx(v,{name:"pen",size:18}),revokeOnly:f>0},p.id))})}):e.jsx(N,{children:i("authorizations.mintingEmpty")})]})]})}export{Pt as Authorizations};
192
- //# sourceMappingURL=Authorizations-CAq4bDIU.js.map
192
+ //# sourceMappingURL=Authorizations-L1Pu4suv.js.map