@dcl/shop 0.10.1-31040959942.commit-e9e6433 → 0.10.1-31047879016.commit-2c3846e

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 (191) hide show
  1. package/_assets/Activity-5KZahW4a.js +371 -0
  2. package/_assets/AnimatedBackground-CtA-lb0z.js +97 -0
  3. package/_assets/{Assets-UkGI952T.js → Assets-B-cgdG2V.js} +8 -8
  4. package/_assets/{Assets.styles-D1Vg-U1C.js → Assets.styles-CI8Un36f.js} +140 -132
  5. package/_assets/{Authorizations-B3yDMR41.js → Authorizations-94ctJx1t.js} +28 -26
  6. package/_assets/Cart-BNVSJOrw.js +707 -0
  7. package/_assets/{CircularProgress-CB62Wg9m.js → CircularProgress-CpjqStGb.js} +1 -1
  8. package/_assets/{Collection-CSv9R6xZ.js → Collection-CZJ9SSN3.js} +19 -19
  9. package/_assets/CollectionCarousel-DHOvuq0a.js +816 -0
  10. package/_assets/{Confetti-Blr9NSjA.js → Confetti-BTHehxYh.js} +1 -1
  11. package/_assets/{Creator-sh_sYH1o.js → Creator-vMhSn3Jg.js} +7 -7
  12. package/_assets/{ErrorNotice-CXsnDhEh.js → ErrorNotice-CpmhZUmE.js} +1 -1
  13. package/_assets/{ExchangeController-GIzn0xGk.js → ExchangeController-Bk_zMHVC.js} +1 -1
  14. package/_assets/{Faq-C0nCohQD.js → Faq-Bbk8h1Qk.js} +20 -14
  15. package/_assets/{GetCredits-CBLkNO-w.js → GetCredits-Dvf_riJZ.js} +114 -80
  16. package/_assets/{Grow-Nzyme9Oa.js → Grow-B3DyBqW4.js} +1 -1
  17. package/_assets/{HelpersUtil-D0wBF1PA.js → HelpersUtil-h6aaGDt3.js} +1 -1
  18. package/_assets/{ItemDetail-DZ3mEshJ.js → ItemDetail-oFomOkbt.js} +510 -480
  19. package/_assets/LazyEmoteControls-BdlpjPkr.js +2 -0
  20. package/_assets/{LoadMore-CKNE48ED.js → LoadMore-C9QaMyBo.js} +1 -1
  21. package/_assets/ManaPricingBanner.styles-MtBPxNv2.js +93 -0
  22. package/_assets/{MyAssets-Ble658vU.js → MyAssets-Bx9bW84W.js} +33 -33
  23. package/_assets/{MyFavorites-Qri7XFuW.js → MyFavorites-jhTRLOWx.js} +12 -11
  24. package/_assets/{NotFound-BnEiiuoJ.js → NotFound-y9wUvJSt.js} +1 -1
  25. package/_assets/{NotificationsBell-CXzlEnr9.js → NotificationsBell-BFMX1y3H.js} +1 -1
  26. package/_assets/{OutfitDetail-CL1Y8ii5.js → OutfitDetail-BfEl8ni7.js} +4 -4
  27. package/_assets/{OutfitPreview-DRqW1c5F.js → OutfitPreview-foX1l3Ho.js} +2 -2
  28. package/_assets/{OutfitStudio-DgL1kI47.js → OutfitStudio-CPQbAOhy.js} +1 -1
  29. package/_assets/{StoreSettings--R4i191j.js → StoreSettings-DxqpR3qG.js} +1 -1
  30. package/_assets/{Success-DApKfyee.js → Success-DiIlHKjo.js} +1 -1
  31. package/_assets/{SwapController-0aVdHfMW.js → SwapController-DzdjZRBH.js} +1 -1
  32. package/_assets/{Tooltip-B2qDq-8v.js → Tooltip-CXWXl43D.js} +1 -1
  33. package/_assets/{TradeService-COZXjCcV.js → TradeService-CGuEeH2R.js} +1 -1
  34. package/_assets/{W3MFrameProviderSingleton-BYmipTKt.js → W3MFrameProviderSingleton-DAG-EWFv.js} +3 -3
  35. package/_assets/{WebCryptoP256-Cid44am7.js → WebCryptoP256-BQdHu6KD.js} +1 -1
  36. package/_assets/{authorizations-dpp0OnHI.js → authorizations-Bbp82_V2.js} +1 -1
  37. package/_assets/{basic-An6X8Awg.js → basic-Cf3DJuRG.js} +1 -1
  38. package/_assets/{biconomy-CeZnHUNK.js → biconomy-D5_2I_rj.js} +1 -1
  39. package/_assets/{builder-Ce37-lC-.js → builder-CK5n6bEq.js} +1 -1
  40. package/_assets/{buy-Dgj0sRqb.js → buy-BjEPh7nk.js} +1 -1
  41. package/_assets/{buy-gasless-CYY_v3bj.js → buy-gasless-Bjj3XUsm.js} +1 -1
  42. package/_assets/{categories-KFHNUm7E.js → categories-BQHpVYif.js} +54 -54
  43. package/_assets/{ccip-8Mu0bgFv.js → ccip-B7LQbKA2.js} +1 -1
  44. package/_assets/{ccip-BsYdmRqX.js → ccip-C_76Sm3L.js} +1 -1
  45. package/_assets/collectionPage.styles-k2LmVKux.js +49 -0
  46. package/_assets/{controller-Cam05qfJ.js → controller-CjH--4wE.js} +2 -2
  47. package/_assets/{core-BdiPiyom.js → core-1ZzLkX5X.js} +4 -4
  48. package/_assets/{createSvgIcon-cAMuQ1mD.js → createSvgIcon-DcR4892_.js} +4 -4
  49. package/_assets/{custom-C7A-Vb1Q.js → custom-CW7Ai6OA.js} +1 -1
  50. package/_assets/{data-capture-COGpG9-r.js → data-capture-DGJOI5ie.js} +1 -1
  51. package/_assets/disposePreview-5vjiqVZ0.js +1 -0
  52. package/_assets/{email-WblN0-6I.js → email-BYO9_PSn.js} +1 -1
  53. package/_assets/{embedded-wallet-BDGaY-OT.js → embedded-wallet-Dc3ay_ju.js} +1 -1
  54. package/_assets/{emotion-styled.browser.esm-D7YX5KN0.js → emotion-styled.browser.esm-IjZkrRjv.js} +1 -1
  55. package/_assets/{engine-DjipK7B5.js → engine-eMP7KFCK.js} +1 -1
  56. package/_assets/{errors-CzBZCztT.js → errors-65NA3HkA.js} +1 -1
  57. package/_assets/{estimate-l1-fee-Bk8rxjZm.js → estimate-l1-fee-z4Cv9am6.js} +1 -1
  58. package/_assets/{execute-C4AIZjft.js → execute-Be5majZ7.js} +2 -2
  59. package/_assets/{features-Dz4wLY98.js → features-DDe58ejV.js} +1 -1
  60. package/_assets/{fetchTokenMetadata-DjPW-ayp.js → fetchTokenMetadata-BfT_0X0P.js} +2 -2
  61. package/_assets/{field.styles-BThVZLzX.js → field.styles-5b7RHcOk.js} +1 -1
  62. package/_assets/{get-ecosystem-wallet-info-DMVrxBpI.js → get-ecosystem-wallet-info-BgyWgmsX.js} +1 -1
  63. package/_assets/{getBalance-DeFn5Yjk.js → getBalance-EUbWLqWa.js} +1 -1
  64. package/_assets/{getNFT-iw9a-h4A.js → getNFT-CZQJk04I.js} +1 -1
  65. package/_assets/{getNFT-CRgzh5wf.js → getNFT-DqZaIP8J.js} +1 -1
  66. package/_assets/{grid.styles-U_Gpy1wT.js → grid.styles-r1HwM-dl.js} +1 -1
  67. package/_assets/{hashTypedData-9Zh9SRr-.js → hashTypedData-CdCzwjEg.js} +1 -1
  68. package/_assets/{hashTypedData-CqewBwVq.js → hashTypedData-DpsVzpmw.js} +1 -1
  69. package/_assets/hero-credits-mobile-C9Muog4T.webp +0 -0
  70. package/_assets/{in-app-DNl1emxp.js → in-app-OWTERGos.js} +1 -1
  71. package/_assets/{in-app-wallet-calls-CBy5UcNA.js → in-app-wallet-calls-x6rZUVft.js} +1 -1
  72. package/_assets/{index-CcihKRSf.js → index-5qpydkyU.js} +1 -1
  73. package/_assets/{index-BVDj7GJL.js → index-B-c3ctWE.js} +1 -1
  74. package/_assets/{index-BdQAMxgJ.js → index-B2Y5KUFQ.js} +2 -2
  75. package/_assets/{index-Bc0mTSPi.js → index-B4hWF9JI.js} +1 -1
  76. package/_assets/{index-Dd8eTuKB.js → index-BRs5WQ4y.js} +1 -1
  77. package/_assets/{index-Cmc0GHkA.js → index-BXmbcLjL.js} +1 -1
  78. package/_assets/index-BYP7oMPZ.css +1 -0
  79. package/_assets/{index-CjvMMH2k.js → index-BZbZm3_Z.js} +1 -1
  80. package/_assets/{index-C6rF-YrH.js → index-Bk5pG7hH.js} +1 -1
  81. package/_assets/{index-Dax05iV5.js → index-BoMcphCu.js} +1 -1
  82. package/_assets/{index-BIJiNaiS.js → index-By7bM2FO.js} +1 -1
  83. package/_assets/{index-xMSSxrHn.js → index-C3ZkN3yx.js} +1 -1
  84. package/_assets/{index-CHCVsh7P.js → index-C5Zmr-fp.js} +1 -1
  85. package/_assets/{index-5SMH4VL2.js → index-C5gU7v63.js} +1 -1
  86. package/_assets/{index-Kq5fobWt.js → index-C6dKNgrS.js} +1 -1
  87. package/_assets/{index-B7Rm4vXt.js → index-CAdngWZA.js} +1 -1
  88. package/_assets/{index-h--qqRrb.js → index-CDn28wqX.js} +1 -1
  89. package/_assets/{index-CJCxe5kr.js → index-CF1R6Wyc.js} +1 -1
  90. package/_assets/index-CGHLVlhr.js +622 -0
  91. package/_assets/{index-DT4Zi23l.js → index-CGXSS33-.js} +3 -3
  92. package/_assets/{index-CqJzKRxe.js → index-CIDeydPG.js} +2 -2
  93. package/_assets/{index-CU5QiUkb.js → index-CKAGCwTj.js} +1 -1
  94. package/_assets/{index-y3U1nB0H.js → index-CUHTRIp3.js} +3 -3
  95. package/_assets/{index-DgPfV4X0.js → index-Cabu_wkc.js} +1 -1
  96. package/_assets/{index-DM2dLJ-M.js → index-CdE95fkC.js} +1 -1
  97. package/_assets/{index-xLgJxfJy.js → index-CgbD_7CJ.js} +1 -1
  98. package/_assets/{index-DwrPmkl2.js → index-CzYkiikw.js} +1 -1
  99. package/_assets/{index-CpQbv3Zu.js → index-CzjezMlh.js} +1 -1
  100. package/_assets/{index-DtAsm8Nr.js → index-DB8U79VL.js} +1 -1
  101. package/_assets/{index-D3iRZfgO.js → index-DFIOoHDj.js} +1 -1
  102. package/_assets/{index-BwGtaRec.js → index-DIk7fUKo.js} +1 -1
  103. package/_assets/{index-C_r09vuw.js → index-DJn0-6QO.js} +1 -1
  104. package/_assets/{index-RHSCZ-t0.js → index-DMQGc1DU.js} +1 -1
  105. package/_assets/{index-DfIQCR2U.js → index-DN-GBsyH.js} +1 -1
  106. package/_assets/{index-DXURSM0-.js → index-DVr9P_sW.js} +1 -1
  107. package/_assets/index-DWnXUohj.js +1 -0
  108. package/_assets/{index-HQUcvKn4.js → index-Db-p3Vgn.js} +3 -3
  109. package/_assets/{index-m-SAK4uo.js → index-DcP4Kxjm.js} +1 -1
  110. package/_assets/{index-B0wdLudq.js → index-DhKtXpNk.js} +1 -1
  111. package/_assets/{index-ByPjVaiq.js → index-DrNZnytJ.js} +1 -1
  112. package/_assets/{index-DQ7Kosvv.js → index-DtNI9AcR.js} +3 -3
  113. package/_assets/{index-DhRx4LkD.js → index-Dvpm24my.js} +1 -1
  114. package/_assets/{index-Dqdf5xVB.js → index-DzKQAwwD.js} +1 -1
  115. package/_assets/{index-BC_qLj4b.js → index-DzWVwnl8.js} +1 -1
  116. package/_assets/{index-DO0NylVf.js → index-Gjpu_VUp.js} +1 -1
  117. package/_assets/index-HxLvOExR.js +3699 -0
  118. package/_assets/{index-BsZ1af_A.js → index-JQcdGKbC.js} +1 -1
  119. package/_assets/{index-D3qXchU2.js → index-OpuK1fx_.js} +1 -1
  120. package/_assets/{index-1tktbprD.js → index-U_j9NAbS.js} +1 -1
  121. package/_assets/{index-MPYM0LiN.js → index-WMiYz6IH.js} +1 -1
  122. package/_assets/{index-D6LfEXYp.js → index-bMtXusxB.js} +1 -1
  123. package/_assets/{index-BdkbjSWP.js → index-f--Xju7p.js} +1 -1
  124. package/_assets/{index-B3jctKqs.js → index-tXA64dlA.js} +2 -2
  125. package/_assets/{index.es-CLldxJUJ.js → index.es-B7e293JB.js} +1 -1
  126. package/_assets/{index.es-DGQjR0dR.js → index.es-DLwvz1xx.js} +4 -4
  127. package/_assets/{index.es-DqD9HkXC.js → index.es-DlR-IQtM.js} +1 -1
  128. package/_assets/{localBatchGatewayRequest-COpd6g60.js → localBatchGatewayRequest-cLQ4UydX.js} +1 -1
  129. package/_assets/{networks-ChmokwGp.js → networks-C5yX7tyx.js} +1 -1
  130. package/_assets/{onramp-BmIZ6r8P.js → onramp-CEYvaS9l.js} +1 -1
  131. package/_assets/{openzeppelin-CzypsJB4.js → openzeppelin-Cc2KhXuv.js} +1 -1
  132. package/_assets/{parseNft-CydF3Edv.js → parseNft-YbkZLHPa.js} +2 -2
  133. package/_assets/{parseSignature-BeoYj8uB.js → parseSignature-BHOWaqkR.js} +1 -1
  134. package/_assets/{parseSignature-u2B-ofRt.js → parseSignature-Dgv2pIVc.js} +3 -3
  135. package/_assets/{passkeys-CVYlDRWu.js → passkeys-Dg5ldVwX.js} +1 -1
  136. package/_assets/{pay-with-exchange-DqJU65WS.js → pay-with-exchange-Dx2N2FiO.js} +1 -1
  137. package/_assets/promo-best-rated-emotes-C6kNvB-a.png +0 -0
  138. package/_assets/promo-week-selected-outfits-BBmkZYZx.png +0 -0
  139. package/_assets/{qr-overlay-DNwX_TPq.js → qr-overlay-CJis_Dku.js} +1 -1
  140. package/_assets/{receive-uVtJpZxa.js → receive-DyR3EUgS.js} +1 -1
  141. package/_assets/{resolveImplementation-CRaloAyf.js → resolveImplementation-D-Os7pbq.js} +1 -1
  142. package/_assets/{rpc-CqfSA8g9.js → rpc-gzHaMGM_.js} +1 -1
  143. package/_assets/{secp256k1-2YskFph9.js → secp256k1-A8695JK3.js} +1 -1
  144. package/_assets/{secp256k1-Do9ofviG.js → secp256k1-GWIDn9S3.js} +1 -1
  145. package/_assets/{secp256k1-DvDQYEQd.js → secp256k1-NjVLumzu.js} +1 -1
  146. package/_assets/{send-IbCZj2la.js → send-CKyxXi5G.js} +1 -1
  147. package/_assets/{send-batch-transaction-DFD_LTct.js → send-batch-transaction-BD0nxza5.js} +1 -1
  148. package/_assets/{send-eip712-transaction-DBf5Z4g_.js → send-eip712-transaction-C8HaD4Bl.js} +2 -2
  149. package/_assets/{send-gasless-transaction-TFSfXMLh.js → send-gasless-transaction-C3LFi8_y.js} +2 -2
  150. package/_assets/{send-transaction-DGhInFte.js → send-transaction-Cr1KGOfz.js} +2 -2
  151. package/_assets/{sendMetaTransaction-CzqCMKMd.js → sendMetaTransaction-BuD46hIl.js} +1 -1
  152. package/_assets/{sendRawTransaction-qf9SJfpX.js → sendRawTransaction-CHV_i5MH.js} +3 -3
  153. package/_assets/{serializeTransaction-D4cHSu0O.js → serializeTransaction-C6QCh8ng.js} +1 -1
  154. package/_assets/{session-proposal-5AODiiln.js → session-proposal-AzV-Di6A.js} +1 -1
  155. package/_assets/{session-request-hpYNptgl.js → session-request-BVptHKRT.js} +2 -2
  156. package/_assets/{signing-BQUpSEqZ.js → signing-BCnHiNxp.js} +3 -3
  157. package/_assets/{skeleton.styles-BfEPveSL.js → skeleton.styles-NdJWWZoO.js} +1 -1
  158. package/_assets/{socials-D6EP9g5a.js → socials-SFpy8Nfx.js} +1 -1
  159. package/_assets/{styled-FDInU8Rs.js → styled-YNWg-9qZ.js} +1 -1
  160. package/_assets/{swaps-CqwmfiPX.js → swaps-Bs58cXr0.js} +1 -1
  161. package/_assets/{thirdweb-Cecbmps_.js → thirdweb-Da9bKgaM.js} +3 -3
  162. package/_assets/{to-serializable-transaction-u0MhoPX5.js → to-serializable-transaction-BKFRuKok.js} +2 -2
  163. package/_assets/{transactionReceipt-l4NJYcz9.js → transactionReceipt-BB_HE5DZ.js} +1 -1
  164. package/_assets/{transactions-CeFT9Jfi.js → transactions-BiiNpaI6.js} +1 -1
  165. package/_assets/{useCreditPacks-DQE6Gg5O.js → useCreditPacks-kYM5sqXW.js} +1 -1
  166. package/_assets/{useImportable-Dh1ZOsU2.js → useImportable-CacakRaR.js} +1 -1
  167. package/_assets/{useInfiniteGrid--LOCzyU9.js → useInfiniteGrid-DmCoyc-5.js} +1 -1
  168. package/_assets/{useTheme-CpSHkSMG.js → useTheme-CDzzSrjV.js} +1 -1
  169. package/_assets/{verifyHash-BSS9_MWX.js → verifyHash-Bi8A6_OC.js} +1 -1
  170. package/_assets/{w3m-modal-BCjN4Uqc.js → w3m-modal-DXZzlpAy.js} +1 -1
  171. package/_assets/{w3m-modal-ByuBko0g.js → w3m-modal-hvo-cMQo.js} +1 -1
  172. package/_assets/{wait-for-tx-receipt-CfVB-CU0.js → wait-for-tx-receipt-DtoUQega.js} +1 -1
  173. package/_assets/{wallets-tUzLLBvA.js → wallets-DOYhTD-q.js} +5 -5
  174. package/_assets/{web-connector-BfVr5QpB.js → web-connector-L9IYDmGf.js} +3 -3
  175. package/_assets/{writeContract-B4n8yTsB.js → writeContract-C9Fd0Dqo.js} +1 -1
  176. package/_assets/{zoraTestnet-CNY7oWT9.js → zoraTestnet-CJh-5IFd.js} +1 -1
  177. package/index.html +11 -11
  178. package/package.json +2 -2
  179. package/_assets/Activity-CUf8ogRR.js +0 -381
  180. package/_assets/AnimatedBackground-_78VlBdV.js +0 -97
  181. package/_assets/Cart-CbY3Hhq6.js +0 -695
  182. package/_assets/CollectionCarousel-Cg2MTF9W.js +0 -804
  183. package/_assets/LazyEmoteControls-BEt_49wK.js +0 -2
  184. package/_assets/ManaPricingBanner.styles-CJS5V2Di.js +0 -74
  185. package/_assets/collectionPage.styles-jwKyDncq.js +0 -48
  186. package/_assets/disposePreview-C6zVmkpS.js +0 -1
  187. package/_assets/index-Ba-yhU-2.js +0 -1
  188. package/_assets/index-D-NhBWWr.css +0 -1
  189. package/_assets/index-D8LZCVOB.js +0 -519
  190. package/_assets/index-buu21jrH.js +0 -3390
  191. package/_assets/packs-backdrop-BcXiUPeP.webp +0 -0
@@ -1,5 +1,5 @@
1
1
  const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["_assets/index.es-C4oAOZ2V.js","_assets/react-BYHuwl8r.js"])))=>i.map(i=>d[i]);
2
- import{s as o,_ as a}from"./index-buu21jrH.js";import{r as n,j as e}from"./react-BYHuwl8r.js";const s=o.div`
2
+ import{s as o,_ as a}from"./index-HxLvOExR.js";import{r as n,j as e}from"./react-BYHuwl8r.js";const s=o.div`
3
3
  position: fixed;
4
4
  inset: 0;
5
5
  /**
@@ -1,4 +1,4 @@
1
- import{b as de,j as e,L as Le,d as Me,u as Ae,r as L}from"./react-BYHuwl8r.js";import{u as Ie}from"./useUrlFilters-DH-gxdfV.js";import{u as Re,S as Z,R as Be,F as Te,e as _e}from"./categories-KFHNUm7E.js";import{t as he,O as ze,Q as X,P as ee,s as i,bG as We,J as De,bH as Oe,b as o,bI as Ge,bJ as te,B as Ke,K as ue,a2 as me,bt as Ue,o as He,D as xe,bA as qe,bu as Ve,bv as Je,I as oe,c as Qe,x as Ye,v as Ze,am as Xe,ao as et,ap as tt,aq as M,ar as re,bK as se,bL as ot}from"./index-buu21jrH.js";import{T as pe}from"./skeleton.styles-BfEPveSL.js";import{d as rt,P as st,C as it,a as at,b as nt,A as lt,c as ct,e as dt}from"./collectionPage.styles-jwKyDncq.js";import{g as ht,h as ut,i as mt,j as xt,k as pt,C as gt,l as ft,o as bt,m as wt,n as vt,M as yt,E as jt,p as Ct,q as kt,r as $t,s as St,t as Nt}from"./Assets.styles-D1Vg-U1C.js";import{L as ie}from"./LoadMore-CKNE48ED.js";import{u as ae}from"./useInfiniteGrid--LOCzyU9.js";import{E as B}from"./ErrorNotice-CXsnDhEh.js";import{G as ne}from"./grid.styles-U_Gpy1wT.js";import"./dcl-schemas-CmtP3U6y.js";import"./sentry-Dx-KuLV3.js";import"./ethers-BDpbhgX6.js";import"./intl-CBcMB1D2.js";import"./Tooltip-B2qDq-8v.js";function Et(r){const{gridLoading:s,gridError:a,gridCount:l,baselinePending:c,baselineError:d,baselineCount:b}=r;return s?"skeletons":a?"error":l>0?"items":c?"skeletons":d?"error":b===0?"no-creations":"filters"}const{colors:w,radius:ge,media:Pt}=he,Ft=i.article`
1
+ import{b as de,j as e,L as Le,d as Me,u as Ae,r as L}from"./react-BYHuwl8r.js";import{u as Ie}from"./useUrlFilters-DH-gxdfV.js";import{u as Be,S as Z,R as Re,F as Te,e as _e}from"./categories-BQHpVYif.js";import{t as he,O as ze,Q as X,P as ee,s as i,bH as We,J as De,bI as Oe,b as o,bJ as Ke,bK as te,B as Ue,K as ue,a2 as me,bu as Ge,o as He,D as xe,bB as qe,bv as Ve,bw as Je,I as oe,c as Qe,x as Ye,v as Ze,an as Xe,ap as et,aq as tt,ar as M,as as re,bL as se,bM as ot}from"./index-HxLvOExR.js";import{T as pe}from"./skeleton.styles-NdJWWZoO.js";import{d as rt,P as st,C as it,a as at,b as nt,A as lt,c as ct,e as dt}from"./collectionPage.styles-k2LmVKux.js";import{g as ht,h as ut,i as mt,j as xt,k as pt,C as gt,l as ft,o as bt,m as wt,n as vt,M as yt,E as jt,p as Ct,q as kt,r as $t,s as St,t as Nt}from"./Assets.styles-CI8Un36f.js";import{L as ie}from"./LoadMore-C9QaMyBo.js";import{u as ae}from"./useInfiniteGrid-DmCoyc-5.js";import{E as R}from"./ErrorNotice-CpmhZUmE.js";import{G as ne}from"./grid.styles-r1HwM-dl.js";import"./dcl-schemas-CmtP3U6y.js";import"./sentry-Dx-KuLV3.js";import"./ethers-BDpbhgX6.js";import"./intl-CBcMB1D2.js";import"./Tooltip-CXWXl43D.js";function Et(r){const{gridLoading:s,gridError:a,gridCount:l,baselinePending:c,baselineError:d,baselineCount:b}=r;return s?"skeletons":a?"error":l>0?"items":c?"skeletons":d?"error":b===0?"no-creations":"filters"}const{colors:w,radius:ge,media:Pt}=he,Ft=i.article`
2
2
  height: 300px;
3
3
  background: ${w.bg};
4
4
  border-radius: ${ge.card};
@@ -61,7 +61,7 @@ import{b as de,j as e,L as Le,d as Me,u as Ae,r as L}from"./react-BYHuwl8r.js";i
61
61
  display: flex;
62
62
  flex-direction: column;
63
63
  gap: 8px;
64
- `,Rt=i.h3`
64
+ `,Bt=i.h3`
65
65
  margin: 0;
66
66
  font-weight: 700;
67
67
  font-size: 18px;
@@ -74,7 +74,7 @@ import{b as de,j as e,L as Le,d as Me,u as Ae,r as L}from"./react-BYHuwl8r.js";i
74
74
  ${Pt.maxWidth("mobile")} {
75
75
  font-size: 16px;
76
76
  }
77
- `,Bt=i.div`
77
+ `,Rt=i.div`
78
78
  flex: 1;
79
79
  min-height: 0;
80
80
  display: grid;
@@ -135,7 +135,7 @@ import{b as de,j as e,L as Le,d as Me,u as Ae,r as L}from"./react-BYHuwl8r.js";i
135
135
  &:active {
136
136
  background: ${w.accentActive};
137
137
  }
138
- `;function Ot({collection:r,cover:s,itemCount:a}){const l=de(),{contractAddress:c,name:d,creator:b}=r,j=s==null||a==null,{data:n}=Oe(c,j),g=s==null?(n==null?void 0:n.items)??[]:[],f=a??(n==null?void 0:n.total);function h(){l(`/collection/${c}`)}return e.jsxs(Ft,{"data-testid":"coll-card",role:"link",tabIndex:0,onClick:h,onKeyDown:m=>{(m.key==="Enter"||m.key===" ")&&(m.preventDefault(),h())},children:[e.jsx(Lt,{children:s?e.jsx(Mt,{"data-testid":"coll-card-img",src:s,alt:"",loading:"lazy"}):g.length>0?e.jsx(At,{items:g,tinted:!1}):null}),e.jsxs(It,{children:[e.jsx(Rt,{title:d,children:d}),e.jsxs(Bt,{children:[e.jsxs(Tt,{"data-meta":!0,"data-testid":"coll-card-meta",children:[b?e.jsx(_t,{address:b,linkToProfile:!0}):e.jsx(zt,{children:" "}),e.jsx(Wt,{"data-testid":"coll-card-count","aria-busy":f==null||void 0,children:f==null?e.jsx(pe,{className:"skeleton",width:54,"data-testid":"coll-card-count-skeleton","aria-hidden":!0}):o("collectionCard.itemCount",{count:f})})]}),e.jsx(Dt,{"data-view":!0,"data-testid":"coll-card-view",onClick:m=>{m.stopPropagation(),h()},tabIndex:-1,children:o("collectionCard.viewCollection")})]})]})]})}function Gt({address:r,className:s=""}){const a=Ge(),l=te(d=>d.followed.includes(r.toLowerCase())),c=te(d=>d.toggle);return!a||!r?null:e.jsx(Ke,{type:"button",size:"sm",variant:l?"ghost":"outline",className:s||void 0,"data-testid":"follow-button","aria-pressed":l,title:l?o("creator.unfollowTitle"):o("creator.followTitle"),onClick:()=>c(r),children:l?o("creator.following"):o("creator.follow")})}const{colors:v,radius:fe,media:y}=he,be=ue`
138
+ `;function Ot({collection:r,cover:s,itemCount:a}){const l=de(),{contractAddress:c,name:d,creator:b}=r,j=s==null||a==null,{data:n}=Oe(c,j),g=s==null?(n==null?void 0:n.items)??[]:[],f=a??(n==null?void 0:n.total);function h(){l(`/collection/${c}`)}return e.jsxs(Ft,{"data-testid":"coll-card",role:"link",tabIndex:0,onClick:h,onKeyDown:m=>{(m.key==="Enter"||m.key===" ")&&(m.preventDefault(),h())},children:[e.jsx(Lt,{children:s?e.jsx(Mt,{"data-testid":"coll-card-img",src:s,alt:"",loading:"lazy"}):g.length>0?e.jsx(At,{items:g,tinted:!1}):null}),e.jsxs(It,{children:[e.jsx(Bt,{title:d,children:d}),e.jsxs(Rt,{children:[e.jsxs(Tt,{"data-meta":!0,"data-testid":"coll-card-meta",children:[b?e.jsx(_t,{address:b,linkToProfile:!0}):e.jsx(zt,{children:" "}),e.jsx(Wt,{"data-testid":"coll-card-count","aria-busy":f==null||void 0,children:f==null?e.jsx(pe,{className:"skeleton",width:54,"data-testid":"coll-card-count-skeleton","aria-hidden":!0}):o("collectionCard.itemCount",{count:f})})]}),e.jsx(Dt,{"data-view":!0,"data-testid":"coll-card-view",onClick:m=>{m.stopPropagation(),h()},tabIndex:-1,children:o("collectionCard.viewCollection")})]})]})]})}function Kt({address:r,className:s=""}){const a=Ke(),l=te(d=>d.followed.includes(r.toLowerCase())),c=te(d=>d.toggle);return!a||!r?null:e.jsx(Ue,{type:"button",size:"sm",variant:l?"ghost":"outline",className:s||void 0,"data-testid":"follow-button","aria-pressed":l,title:l?o("creator.unfollowTitle"):o("creator.followTitle"),onClick:()=>c(r),children:l?o("creator.following"):o("creator.follow")})}const{colors:v,radius:fe,media:y}=he,be=ue`
139
139
  display: inline-flex;
140
140
  align-items: center;
141
141
  justify-content: center;
@@ -149,7 +149,7 @@ import{b as de,j as e,L as Le,d as Me,u as Ae,r as L}from"./react-BYHuwl8r.js";i
149
149
  text-transform: uppercase;
150
150
  letter-spacing: 0.046em;
151
151
  text-decoration: none;
152
- `,Kt=i.section`
152
+ `,Ut=i.section`
153
153
  position: relative;
154
154
  border-radius: ${fe.card};
155
155
  overflow: hidden;
@@ -169,7 +169,7 @@ import{b as de,j as e,L as Le,d as Me,u as Ae,r as L}from"./react-BYHuwl8r.js";i
169
169
  ${y.maxWidth("mobile")} {
170
170
  min-height: 260px;
171
171
  }
172
- `,Ut=i.div`
172
+ `,Gt=i.div`
173
173
  position: absolute;
174
174
  inset: 0;
175
175
  z-index: 0;
@@ -302,4 +302,4 @@ import{b as de,j as e,L as Le,d as Me,u as Ae,r as L}from"./react-BYHuwl8r.js";i
302
302
  &:hover {
303
303
  background: ${v.blackBtn};
304
304
  }
305
- `,oo={website:"website",twitter:"twitter",discord:"discord",facebook:"facebook"};function ro({address:r}){var m,C;const{data:s}=me(r),{data:a}=Ue(r),l=He(x=>{var $;return($=x.session)==null?void 0:$.address}),c=!!l&&l.toLowerCase()===r.toLowerCase(),d=(s==null?void 0:s.name)||xe(r),b=(C=(m=s==null?void 0:s.avatar)==null?void 0:m.snapshots)==null?void 0:C.face256,j=(a==null?void 0:a.cover)||rt,n=a==null?void 0:a.description,g=`${Qe.profileUrl}/${r}`,f=qe.filter(x=>a==null?void 0:a.links[x]),h=Ve(Je({name:s==null?void 0:s.name,hasClaimedName:s==null?void 0:s.hasClaimedName,ethAddress:(s==null?void 0:s.ethAddress)??r}));return e.jsxs(Kt,{"aria-label":`${d} storefront`,children:[e.jsxs(Ut,{children:[e.jsx(Ht,{src:j,alt:"",loading:"eager"}),e.jsx(qt,{"aria-hidden":!0})]}),(f.length>0||c)&&e.jsxs(Vt,{children:[f.map(x=>e.jsx(Jt,{"data-testid":"creator-hero-link",href:(a==null?void 0:a.links[x])??"",target:"_blank",rel:"noopener noreferrer",title:o(`creator.link.${x}`),"aria-label":o(`creator.link.${x}`),children:e.jsx(oe,{name:oo[x]})},x)),c&&e.jsx(Qt,{to:"/store-settings",title:o("creator.editStore"),"aria-label":o("creator.editStore"),children:e.jsx(oe,{name:"pen"})})]}),e.jsxs(Yt,{children:[b?e.jsx(le,{src:b,alt:"",loading:"eager",style:{backgroundColor:h}}):e.jsx(le,{as:"span","aria-hidden":!0,style:{backgroundColor:h}}),e.jsxs("div",{children:[e.jsx(Zt,{children:d}),n?e.jsx(Xt,{children:n}):null]}),e.jsxs(eo,{children:[e.jsx(to,{"data-testid":"creator-hero-view",href:g,target:"_blank",rel:"noopener noreferrer",children:o("creator.viewProfile")}),e.jsx(Gt,{address:r,className:"creator-hero__follow"})]})]})]})}const so=["all","on_sale","not_for_sale"],ce=48;function jo(){var Q,Y;const{address:r}=Me(),s=de(),[a]=Ae(),l=a.has("collections"),{data:c}=me(r),d=(c==null?void 0:c.name)||(r?xe(r):o("creator.fallbackName"));Ye({title:d,description:o("seo.creator.description",{name:d}),image:(Y=(Q=c==null?void 0:c.avatar)==null?void 0:Q.snapshots)==null?void 0:Y.face256});const b=L.useMemo(()=>({category:"all",status:"all",subCategory:null,rarities:[],priceMin:"",priceMax:"",smart:!1,sort:"newest"}),[]),[j,n]=Ie(b),{category:g,subCategory:f,rarities:h,priceMin:m,priceMax:C,smart:x,sort:$}=j,S=so.includes(j.status)?j.status:"all",T=t=>n({status:t});Re(`${l}:${g}:${f??""}`);const[E,N]=L.useState(!1);L.useEffect(()=>{if(!E)return;const t=Fe=>{Fe.key==="Escape"&&N(!1)};document.addEventListener("keydown",t);const p=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.removeEventListener("keydown",t),document.body.style.overflow=p}},[E]);const _=m&&!Number.isNaN(Number(m))?Number(m):void 0,z=C&&!Number.isNaN(Number(C))?Number(C):void 0,ve=f?_e[f]:void 0,ye=(Z.find(t=>t.key===$)??Z[0]).server,W={creator:r,category:g,rarities:h.length?h:void 0,wearableCategories:ve,minPriceCredits:_,maxPriceCredits:z,isWearableSmart:x||void 0,isOnSale:S==="all"?void 0:S==="on_sale",sortBy:ye},{items:A,total:je,isLoading:Ce,isPlaceholderData:ke,error:D,hasNextPage:$e,isFetchingNextPage:O,isFetchNextPageError:Se,fetchNextPage:Ne}=ae(["creator-items",W],t=>se({...W,first:ce,skip:t}),{enabled:!!r&&!l}),P=Ze({queryKey:["creator-item-count",r],queryFn:()=>se({creator:r,first:1}).then(t=>t.total),enabled:!!r}),u=ae(["creator-collections",r],t=>ot(r,{first:ce,skip:t}).then(p=>({items:p.collections,total:p.total})),{enabled:!!r&&l});function G(t){n({category:t,subCategory:null},{drop:l?["collections"]:void 0})}function Ee(){const t=new URLSearchParams(a);t.delete("collections");const p=t.toString();s({search:p?`?${p}`:""},{replace:!0})}function Pe(){if(l){Ee();return}const t=new URLSearchParams(a);t.delete("collections");const p=t.toString();s({search:p?`?${p}&collections`:"?collections"},{replace:!0})}function K(t){n({rarities:h.includes(t)?h.filter(p=>p!==t):[...h,t]})}function U(){n(b)}const k=[];(g==="wearable"||g==="emote")&&k.push({key:"category",label:o(g==="emote"?"categories.emotes":"categories.wearables"),onRemove:()=>G("all")}),(_!=null||z!=null)&&k.push({key:"price",label:o("filter.price"),onRemove:()=>{n({priceMin:"",priceMax:""})}});for(const t of Be)h.includes(t)&&k.push({key:`rarity-${t}`,label:Xe(t),onRemove:()=>K(t)});x&&k.push({key:"smart",label:o("filter.smart"),onRemove:()=>n({smart:!1})}),S!=="all"&&k.push({key:"status",label:S==="on_sale"?o("filter.onSale"):o("filter.notForSale"),onRemove:()=>T("all")});const F=Et({gridLoading:Ce||ke,gridError:!!D,gridCount:A.length,baselinePending:P.isPending,baselineError:P.isError,baselineCount:P.data}),I=F==="skeletons",{data:H}=et(),q=L.useMemo(()=>A.map(t=>({...t,priceCredits:tt(t,H)})),[A,H]),V=t=>t.priceCredits>0||!!t.manaWei,J=q.filter(V),R=F==="items"||F==="skeletons"?null:F;return e.jsxs(st,{children:[e.jsxs(it,{"aria-label":o("creator.breadcrumbAria"),children:[e.jsx(at,{onClick:()=>s("/items"),children:o("creator.breadcrumb")}),e.jsx("span",{children:"/"}),e.jsx(nt,{children:d})]}),r?e.jsx(ro,{address:r}):null,!l&&!I&&J.length>0?e.jsx(lt,{items:J,source:"creator"}):null,e.jsxs(ht,{children:[E?e.jsx(ut,{onClick:()=>N(!1),"aria-hidden":!0}):null,e.jsxs(mt,{"data-open":E||void 0,"data-testid":"creator-sidebar",children:[e.jsxs(xt,{children:[e.jsx(pt,{children:o("assets.filters")}),e.jsx(gt,{onClick:()=>N(!1),"aria-label":o("assets.closeFilters"),children:"✕"})]}),e.jsx(ft,{children:e.jsx(bt,{category:g,subCategory:f,onCategory:G,onSub:t=>n({subCategory:t}),priceMin:m,priceMax:C,onPriceMin:t=>n({priceMin:t}),onPriceMax:t=>n({priceMax:t}),rarities:h,onToggleRarity:K,status:S,onStatus:T,smart:x,onSmart:t=>n({smart:t}),hideNames:!0,collections:l,onCollections:Pe})}),e.jsx(wt,{children:e.jsx(vt,{type:"button",onClick:()=>N(!1),children:o("assets.showItems")})})]}),e.jsx(yt,{children:l?e.jsxs(e.Fragment,{children:[e.jsx(ct,{children:e.jsx(dt,{"data-testid":"creator-collections-count","aria-busy":u.isLoading||void 0,children:u.isLoading?e.jsx(pe,{className:"skeleton",width:72,"data-testid":"creator-collections-count-skeleton","aria-hidden":!0}):o("creator.collectionsCount",{count:u.total})})}),u.error?e.jsx(B,{message:o("creator.error")}):null,e.jsx(ne,{"data-variant":"collections",children:u.isLoading?e.jsx(M,{count:9}):e.jsxs(e.Fragment,{children:[u.items.map(t=>e.jsx(Ot,{collection:t,itemCount:t.itemCount},t.contractAddress)),u.isFetchingNextPage?e.jsx(M,{count:6}):null]})}),e.jsx(ie,{hasNextPage:u.hasNextPage,isFetching:u.isFetchingNextPage,isError:u.isFetchNextPageError,onLoadMore:()=>void u.fetchNextPage()}),!u.isLoading&&!u.error&&u.items.length===0?e.jsx("p",{className:"muted",children:o("creator.collectionsEmpty")}):null]}):e.jsxs(e.Fragment,{children:[e.jsx(Te,{sort:$,onSort:t=>n({sort:t}),total:je,loading:I,onOpenFilters:()=>N(!0),chips:k,onClearChips:U}),D?e.jsx(B,{message:o("creator.error"),testId:"creator-error"}):null,e.jsx(ne,{"data-testid":"creator-grid",children:I?e.jsx(M,{count:15}):e.jsxs(e.Fragment,{children:[q.map(t=>V(t)?e.jsx(re,{item:t},t.id):e.jsx(re,{item:t,mode:"view"},t.id)),O?e.jsx(M,{count:6}):null]})}),e.jsx(ie,{hasNextPage:$e,isFetching:O,isError:Se,onLoadMore:()=>void Ne()}),R==="error"?e.jsx(B,{message:o("creator.error"),testId:"creator-empty-error"}):R==="no-creations"?e.jsx("p",{className:"muted","data-testid":"creator-empty-none",children:o("creator.emptyNoCreations")}):R==="filters"?e.jsxs(jt,{"data-testid":"creator-empty-filters",children:[e.jsxs(Ct,{children:[e.jsx(kt,{children:o("creator.emptyFilters.title")}),e.jsx($t,{children:o("creator.emptyFilters.body",{count:P.data??0})})]}),e.jsx(St,{children:e.jsx(Nt,{type:"button",onClick:U,children:o("filterBar.clearAll")})})]}):null]})})]})]})}export{jo as Creator,jo as default};
305
+ `,oo={website:"website",twitter:"twitter",discord:"discord",facebook:"facebook"};function ro({address:r}){var m,C;const{data:s}=me(r),{data:a}=Ge(r),l=He(x=>{var $;return($=x.session)==null?void 0:$.address}),c=!!l&&l.toLowerCase()===r.toLowerCase(),d=(s==null?void 0:s.name)||xe(r),b=(C=(m=s==null?void 0:s.avatar)==null?void 0:m.snapshots)==null?void 0:C.face256,j=(a==null?void 0:a.cover)||rt,n=a==null?void 0:a.description,g=`${Qe.profileUrl}/${r}`,f=qe.filter(x=>a==null?void 0:a.links[x]),h=Ve(Je({name:s==null?void 0:s.name,hasClaimedName:s==null?void 0:s.hasClaimedName,ethAddress:(s==null?void 0:s.ethAddress)??r}));return e.jsxs(Ut,{"aria-label":`${d} storefront`,children:[e.jsxs(Gt,{children:[e.jsx(Ht,{src:j,alt:"",loading:"eager"}),e.jsx(qt,{"aria-hidden":!0})]}),(f.length>0||c)&&e.jsxs(Vt,{children:[f.map(x=>e.jsx(Jt,{"data-testid":"creator-hero-link",href:(a==null?void 0:a.links[x])??"",target:"_blank",rel:"noopener noreferrer",title:o(`creator.link.${x}`),"aria-label":o(`creator.link.${x}`),children:e.jsx(oe,{name:oo[x]})},x)),c&&e.jsx(Qt,{to:"/store-settings",title:o("creator.editStore"),"aria-label":o("creator.editStore"),children:e.jsx(oe,{name:"pen"})})]}),e.jsxs(Yt,{children:[b?e.jsx(le,{src:b,alt:"",loading:"eager",style:{backgroundColor:h}}):e.jsx(le,{as:"span","aria-hidden":!0,style:{backgroundColor:h}}),e.jsxs("div",{children:[e.jsx(Zt,{children:d}),n?e.jsx(Xt,{children:n}):null]}),e.jsxs(eo,{children:[e.jsx(to,{"data-testid":"creator-hero-view",href:g,target:"_blank",rel:"noopener noreferrer",children:o("creator.viewProfile")}),e.jsx(Kt,{address:r,className:"creator-hero__follow"})]})]})]})}const so=["all","on_sale","not_for_sale"],ce=48;function jo(){var Q,Y;const{address:r}=Me(),s=de(),[a]=Ae(),l=a.has("collections"),{data:c}=me(r),d=(c==null?void 0:c.name)||(r?xe(r):o("creator.fallbackName"));Ye({title:d,description:o("seo.creator.description",{name:d}),image:(Y=(Q=c==null?void 0:c.avatar)==null?void 0:Q.snapshots)==null?void 0:Y.face256});const b=L.useMemo(()=>({category:"all",status:"all",subCategory:null,rarities:[],priceMin:"",priceMax:"",smart:!1,sort:"newest"}),[]),[j,n]=Ie(b),{category:g,subCategory:f,rarities:h,priceMin:m,priceMax:C,smart:x,sort:$}=j,S=so.includes(j.status)?j.status:"all",T=t=>n({status:t});Be(`${l}:${g}:${f??""}`);const[E,N]=L.useState(!1);L.useEffect(()=>{if(!E)return;const t=Fe=>{Fe.key==="Escape"&&N(!1)};document.addEventListener("keydown",t);const p=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.removeEventListener("keydown",t),document.body.style.overflow=p}},[E]);const _=m&&!Number.isNaN(Number(m))?Number(m):void 0,z=C&&!Number.isNaN(Number(C))?Number(C):void 0,ve=f?_e[f]:void 0,ye=(Z.find(t=>t.key===$)??Z[0]).server,W={creator:r,category:g,rarities:h.length?h:void 0,wearableCategories:ve,minPriceCredits:_,maxPriceCredits:z,isWearableSmart:x||void 0,isOnSale:S==="all"?void 0:S==="on_sale",sortBy:ye},{items:A,total:je,isLoading:Ce,isPlaceholderData:ke,error:D,hasNextPage:$e,isFetchingNextPage:O,isFetchNextPageError:Se,fetchNextPage:Ne}=ae(["creator-items",W],t=>se({...W,first:ce,skip:t}),{enabled:!!r&&!l}),P=Ze({queryKey:["creator-item-count",r],queryFn:()=>se({creator:r,first:1}).then(t=>t.total),enabled:!!r}),u=ae(["creator-collections",r],t=>ot(r,{first:ce,skip:t}).then(p=>({items:p.collections,total:p.total})),{enabled:!!r&&l});function K(t){n({category:t,subCategory:null},{drop:l?["collections"]:void 0})}function Ee(){const t=new URLSearchParams(a);t.delete("collections");const p=t.toString();s({search:p?`?${p}`:""},{replace:!0})}function Pe(){if(l){Ee();return}const t=new URLSearchParams(a);t.delete("collections");const p=t.toString();s({search:p?`?${p}&collections`:"?collections"},{replace:!0})}function U(t){n({rarities:h.includes(t)?h.filter(p=>p!==t):[...h,t]})}function G(){n(b)}const k=[];(g==="wearable"||g==="emote")&&k.push({key:"category",label:o(g==="emote"?"categories.emotes":"categories.wearables"),onRemove:()=>K("all")}),(_!=null||z!=null)&&k.push({key:"price",label:o("filter.price"),onRemove:()=>{n({priceMin:"",priceMax:""})}});for(const t of Re)h.includes(t)&&k.push({key:`rarity-${t}`,label:Xe(t),onRemove:()=>U(t)});x&&k.push({key:"smart",label:o("filter.smart"),onRemove:()=>n({smart:!1})}),S!=="all"&&k.push({key:"status",label:S==="on_sale"?o("filter.onSale"):o("filter.notForSale"),onRemove:()=>T("all")});const F=Et({gridLoading:Ce||ke,gridError:!!D,gridCount:A.length,baselinePending:P.isPending,baselineError:P.isError,baselineCount:P.data}),I=F==="skeletons",{data:H}=et(),q=L.useMemo(()=>A.map(t=>({...t,priceCredits:tt(t,H)})),[A,H]),V=t=>t.priceCredits>0||!!t.manaWei,J=q.filter(V),B=F==="items"||F==="skeletons"?null:F;return e.jsxs(st,{children:[e.jsxs(it,{"aria-label":o("creator.breadcrumbAria"),children:[e.jsx(at,{onClick:()=>s("/items"),children:o("creator.breadcrumb")}),e.jsx("span",{children:"/"}),e.jsx(nt,{children:d})]}),r?e.jsx(ro,{address:r}):null,!l&&!I&&J.length>0?e.jsx(lt,{items:J,source:"creator"}):null,e.jsxs(ht,{children:[E?e.jsx(ut,{onClick:()=>N(!1),"aria-hidden":!0}):null,e.jsxs(mt,{"data-open":E||void 0,"data-testid":"creator-sidebar",children:[e.jsxs(xt,{children:[e.jsx(pt,{children:o("assets.filters")}),e.jsx(gt,{onClick:()=>N(!1),"aria-label":o("assets.closeFilters"),children:"✕"})]}),e.jsx(ft,{children:e.jsx(bt,{category:g,subCategory:f,onCategory:K,onSub:t=>n({subCategory:t}),priceMin:m,priceMax:C,onPriceMin:t=>n({priceMin:t}),onPriceMax:t=>n({priceMax:t}),rarities:h,onToggleRarity:U,status:S,onStatus:T,smart:x,onSmart:t=>n({smart:t}),hideNames:!0,collections:l,onCollections:Pe})}),e.jsx(wt,{children:e.jsx(vt,{type:"button",onClick:()=>N(!1),children:o("assets.showItems")})})]}),e.jsx(yt,{children:l?e.jsxs(e.Fragment,{children:[e.jsx(ct,{children:e.jsx(dt,{"data-testid":"creator-collections-count","aria-busy":u.isLoading||void 0,children:u.isLoading?e.jsx(pe,{className:"skeleton",width:72,"data-testid":"creator-collections-count-skeleton","aria-hidden":!0}):o("creator.collectionsCount",{count:u.total})})}),u.error?e.jsx(R,{message:o("creator.error")}):null,e.jsx(ne,{"data-variant":"collections",children:u.isLoading?e.jsx(M,{count:9}):e.jsxs(e.Fragment,{children:[u.items.map(t=>e.jsx(Ot,{collection:t,itemCount:t.itemCount},t.contractAddress)),u.isFetchingNextPage?e.jsx(M,{count:6}):null]})}),e.jsx(ie,{hasNextPage:u.hasNextPage,isFetching:u.isFetchingNextPage,isError:u.isFetchNextPageError,onLoadMore:()=>void u.fetchNextPage()}),!u.isLoading&&!u.error&&u.items.length===0?e.jsx("p",{className:"muted",children:o("creator.collectionsEmpty")}):null]}):e.jsxs(e.Fragment,{children:[e.jsx(Te,{sort:$,onSort:t=>n({sort:t}),total:je,loading:I,onOpenFilters:()=>N(!0),chips:k,onClearChips:G}),D?e.jsx(R,{message:o("creator.error"),testId:"creator-error"}):null,e.jsx(ne,{"data-testid":"creator-grid",children:I?e.jsx(M,{count:15}):e.jsxs(e.Fragment,{children:[q.map(t=>V(t)?e.jsx(re,{item:t},t.id):e.jsx(re,{item:t,mode:"view"},t.id)),O?e.jsx(M,{count:6}):null]})}),e.jsx(ie,{hasNextPage:$e,isFetching:O,isError:Se,onLoadMore:()=>void Ne()}),B==="error"?e.jsx(R,{message:o("creator.error"),testId:"creator-empty-error"}):B==="no-creations"?e.jsx("p",{className:"muted","data-testid":"creator-empty-none",children:o("creator.emptyNoCreations")}):B==="filters"?e.jsxs(jt,{"data-testid":"creator-empty-filters",children:[e.jsxs(Ct,{children:[e.jsx(kt,{children:o("creator.emptyFilters.title")}),e.jsx($t,{children:o("creator.emptyFilters.body",{count:P.data??0})})]}),e.jsx(St,{children:e.jsx(Nt,{type:"button",onClick:G,children:o("filterBar.clearAll")})})]}):null]})})]})]})}export{jo as Creator,jo as default};
@@ -1 +1 @@
1
- import{j as r}from"./react-BYHuwl8r.js";import{I as i}from"./index-buu21jrH.js";function a({message:e,className:o,testId:t}){return e?r.jsxs("p",{className:o?`error-notice ${o}`:"error-notice","data-testid":t,role:"alert",children:[r.jsx(i,{name:"alert",className:"error-notice__ico",size:18}),r.jsx("span",{className:"error-notice__msg",children:e})]}):null}export{a as E};
1
+ import{j as r}from"./react-BYHuwl8r.js";import{I as i}from"./index-HxLvOExR.js";function a({message:e,className:o,testId:t}){return e?r.jsxs("p",{className:o?`error-notice ${o}`:"error-notice","data-testid":t,role:"alert",children:[r.jsx(i,{name:"alert",className:"error-notice__ico",size:18}),r.jsx("span",{className:"error-notice__msg",children:e})]}):null}export{a as E};
@@ -1 +1 @@
1
- import{C as l,E as w,b as E,S as A,d as k,O as U,N as P,g as f,B as x,e as N,i as I,p as L}from"./W3MFrameProviderSingleton-BYmipTKt.js";import{g as T,a as W,f as b,b as _,c as v}from"./index-y3U1nB0H.js";const D=0,C={paymentAsset:null,amount:null,tokenAmount:0,priceLoading:!1,error:null,exchanges:[],isLoading:!1,currentPayment:void 0,isPaymentInProgress:!1,paymentId:"",assets:[]},e=L(C),m={state:e,subscribe(t){return I(e,()=>t(e))},subscribeKey(t,n){return N(e,t,n)},resetState(){Object.assign(e,{...C})},async getAssetsForNetwork(t){const n=v(t),s=await m.getAssetsImageAndPrice(n),r=n.map(a=>{var c,o,p,y;const u=a.asset==="native"?f():`${a.network}:${a.asset}`,i=s.find(S=>{var g,d,h;return((h=(d=(g=S.fungibles)==null?void 0:g[0])==null?void 0:d.address)==null?void 0:h.toLowerCase())===u.toLowerCase()});return{...a,price:((o=(c=i==null?void 0:i.fungibles)==null?void 0:c[0])==null?void 0:o.price)||1,metadata:{...a.metadata,iconUrl:(y=(p=i==null?void 0:i.fungibles)==null?void 0:p[0])==null?void 0:y.iconUrl}}});return e.assets=r,r},async getAssetsImageAndPrice(t){const n=t.map(r=>r.asset==="native"?f():`${r.network}:${r.asset}`);return await Promise.all(n.map(r=>x.fetchTokenPrice({addresses:[r]})))},getTokenAmount(){var s;if(!((s=e==null?void 0:e.paymentAsset)!=null&&s.price))throw new Error("Cannot get token price");const t=P.bigNumber(e.amount??0).round(8),n=P.bigNumber(e.paymentAsset.price).round(8);return t.div(n).round(8).toNumber()},setAmount(t){var n;e.amount=t,(n=e.paymentAsset)!=null&&n.price&&(e.tokenAmount=m.getTokenAmount())},setPaymentAsset(t){e.paymentAsset=t},isPayWithExchangeEnabled(){var t;return(t=U.state.remoteFeatures)==null?void 0:t.payWithExchange},isPayWithExchangeSupported(){return m.isPayWithExchangeEnabled()&&l.state.activeCaipNetwork&&k.PAY_WITH_EXCHANGE_SUPPORTED_CHAIN_NAMESPACES.includes(l.state.activeCaipNetwork.chainNamespace)},async fetchExchanges(){var t;try{const n=m.isPayWithExchangeSupported();if(!e.paymentAsset||!n){e.exchanges=[],e.isLoading=!1;return}e.isLoading=!0;const s=await _({page:D,asset:b(e.paymentAsset.network,e.paymentAsset.asset),amount:((t=e.amount)==null?void 0:t.toString())??"0"});e.exchanges=s.exchanges.slice(0,2)}catch{throw A.showError("Unable to get exchanges"),new Error("Unable to get exchanges")}finally{e.isLoading=!1}},async getPayUrl(t,n){try{const s=Number(n.amount),r=await W({exchangeId:t,asset:b(n.network,n.asset),amount:s.toString(),recipient:`${n.network}:${n.recipient}`});return w.sendEvent({type:"track",event:"PAY_EXCHANGE_SELECTED",properties:{exchange:{id:t},configuration:{network:n.network,asset:n.asset,recipient:n.recipient,amount:s},currentPayment:{type:"exchange",exchangeId:t},source:"fund-from-exchange",headless:!1}}),r}catch(s){throw s instanceof Error&&s.message.includes("is not supported")?new Error("Asset not supported"):new Error(s.message)}},async handlePayWithExchange(t){var n;try{const s=(n=l.getAccountData())==null?void 0:n.address;if(!s)throw new Error("No account connected");if(!e.paymentAsset)throw new Error("No payment asset selected");const r=E.returnOpenHref("","popupWindow","scrollbar=yes,width=480,height=720");if(!r)throw new Error("Could not create popup window");e.isPaymentInProgress=!0,e.paymentId=crypto.randomUUID(),e.currentPayment={type:"exchange",exchangeId:t};const{network:a,asset:u}=e.paymentAsset,i={network:a,asset:u,amount:e.tokenAmount,recipient:s},c=await m.getPayUrl(t,i);if(!c){try{r.close()}catch(o){console.error("Unable to close popup window",o)}throw new Error("Unable to initiate payment")}e.currentPayment.sessionId=c.sessionId,e.currentPayment.status="IN_PROGRESS",e.currentPayment.exchangeId=t,r.location.href=c.url}catch{e.error="Unable to initiate payment",A.showError(e.error)}},async waitUntilComplete({exchangeId:t,sessionId:n,paymentId:s,retries:r=20}){const a=await m.getBuyStatus(t,n,s);if(a.status==="SUCCESS"||a.status==="FAILED")return a;if(r===0)throw new Error("Unable to get deposit status");return await new Promise(u=>{setTimeout(u,5e3)}),m.waitUntilComplete({exchangeId:t,sessionId:n,paymentId:s,retries:r-1})},async getBuyStatus(t,n,s){var r,a,u,i,c;try{if(!e.currentPayment)throw new Error("No current payment");const o=await T({sessionId:n,exchangeId:t});if(e.currentPayment.status=o.status,o.status==="SUCCESS"||o.status==="FAILED"){const p=(r=l.getAccountData())==null?void 0:r.address;e.currentPayment.result=o.txHash,e.isPaymentInProgress=!1,w.sendEvent({type:"track",event:o.status==="SUCCESS"?"PAY_SUCCESS":"PAY_ERROR",properties:{message:o.status==="FAILED"?E.parseError(e.error):void 0,source:"fund-from-exchange",paymentId:s,configuration:{network:((a=e.paymentAsset)==null?void 0:a.network)||"",asset:((u=e.paymentAsset)==null?void 0:u.asset)||"",recipient:p||"",amount:e.amount??0},currentPayment:{type:"exchange",exchangeId:(i=e.currentPayment)==null?void 0:i.exchangeId,sessionId:(c=e.currentPayment)==null?void 0:c.sessionId,result:o.txHash}}})}return o}catch{return{status:"UNKNOWN",txHash:""}}},reset(){e.currentPayment=void 0,e.isPaymentInProgress=!1,e.paymentId="",e.paymentAsset=null,e.amount=0,e.tokenAmount=0,e.priceLoading=!1,e.error=null,e.exchanges=[],e.isLoading=!1}};export{m as E};
1
+ import{C as l,E as w,b as E,S as A,d as k,O as U,N as P,g as f,B as x,e as N,i as I,p as L}from"./W3MFrameProviderSingleton-DAG-EWFv.js";import{g as T,a as W,f as b,b as _,c as v}from"./index-CUHTRIp3.js";const D=0,C={paymentAsset:null,amount:null,tokenAmount:0,priceLoading:!1,error:null,exchanges:[],isLoading:!1,currentPayment:void 0,isPaymentInProgress:!1,paymentId:"",assets:[]},e=L(C),m={state:e,subscribe(t){return I(e,()=>t(e))},subscribeKey(t,n){return N(e,t,n)},resetState(){Object.assign(e,{...C})},async getAssetsForNetwork(t){const n=v(t),s=await m.getAssetsImageAndPrice(n),r=n.map(a=>{var c,o,p,y;const u=a.asset==="native"?f():`${a.network}:${a.asset}`,i=s.find(S=>{var g,d,h;return((h=(d=(g=S.fungibles)==null?void 0:g[0])==null?void 0:d.address)==null?void 0:h.toLowerCase())===u.toLowerCase()});return{...a,price:((o=(c=i==null?void 0:i.fungibles)==null?void 0:c[0])==null?void 0:o.price)||1,metadata:{...a.metadata,iconUrl:(y=(p=i==null?void 0:i.fungibles)==null?void 0:p[0])==null?void 0:y.iconUrl}}});return e.assets=r,r},async getAssetsImageAndPrice(t){const n=t.map(r=>r.asset==="native"?f():`${r.network}:${r.asset}`);return await Promise.all(n.map(r=>x.fetchTokenPrice({addresses:[r]})))},getTokenAmount(){var s;if(!((s=e==null?void 0:e.paymentAsset)!=null&&s.price))throw new Error("Cannot get token price");const t=P.bigNumber(e.amount??0).round(8),n=P.bigNumber(e.paymentAsset.price).round(8);return t.div(n).round(8).toNumber()},setAmount(t){var n;e.amount=t,(n=e.paymentAsset)!=null&&n.price&&(e.tokenAmount=m.getTokenAmount())},setPaymentAsset(t){e.paymentAsset=t},isPayWithExchangeEnabled(){var t;return(t=U.state.remoteFeatures)==null?void 0:t.payWithExchange},isPayWithExchangeSupported(){return m.isPayWithExchangeEnabled()&&l.state.activeCaipNetwork&&k.PAY_WITH_EXCHANGE_SUPPORTED_CHAIN_NAMESPACES.includes(l.state.activeCaipNetwork.chainNamespace)},async fetchExchanges(){var t;try{const n=m.isPayWithExchangeSupported();if(!e.paymentAsset||!n){e.exchanges=[],e.isLoading=!1;return}e.isLoading=!0;const s=await _({page:D,asset:b(e.paymentAsset.network,e.paymentAsset.asset),amount:((t=e.amount)==null?void 0:t.toString())??"0"});e.exchanges=s.exchanges.slice(0,2)}catch{throw A.showError("Unable to get exchanges"),new Error("Unable to get exchanges")}finally{e.isLoading=!1}},async getPayUrl(t,n){try{const s=Number(n.amount),r=await W({exchangeId:t,asset:b(n.network,n.asset),amount:s.toString(),recipient:`${n.network}:${n.recipient}`});return w.sendEvent({type:"track",event:"PAY_EXCHANGE_SELECTED",properties:{exchange:{id:t},configuration:{network:n.network,asset:n.asset,recipient:n.recipient,amount:s},currentPayment:{type:"exchange",exchangeId:t},source:"fund-from-exchange",headless:!1}}),r}catch(s){throw s instanceof Error&&s.message.includes("is not supported")?new Error("Asset not supported"):new Error(s.message)}},async handlePayWithExchange(t){var n;try{const s=(n=l.getAccountData())==null?void 0:n.address;if(!s)throw new Error("No account connected");if(!e.paymentAsset)throw new Error("No payment asset selected");const r=E.returnOpenHref("","popupWindow","scrollbar=yes,width=480,height=720");if(!r)throw new Error("Could not create popup window");e.isPaymentInProgress=!0,e.paymentId=crypto.randomUUID(),e.currentPayment={type:"exchange",exchangeId:t};const{network:a,asset:u}=e.paymentAsset,i={network:a,asset:u,amount:e.tokenAmount,recipient:s},c=await m.getPayUrl(t,i);if(!c){try{r.close()}catch(o){console.error("Unable to close popup window",o)}throw new Error("Unable to initiate payment")}e.currentPayment.sessionId=c.sessionId,e.currentPayment.status="IN_PROGRESS",e.currentPayment.exchangeId=t,r.location.href=c.url}catch{e.error="Unable to initiate payment",A.showError(e.error)}},async waitUntilComplete({exchangeId:t,sessionId:n,paymentId:s,retries:r=20}){const a=await m.getBuyStatus(t,n,s);if(a.status==="SUCCESS"||a.status==="FAILED")return a;if(r===0)throw new Error("Unable to get deposit status");return await new Promise(u=>{setTimeout(u,5e3)}),m.waitUntilComplete({exchangeId:t,sessionId:n,paymentId:s,retries:r-1})},async getBuyStatus(t,n,s){var r,a,u,i,c;try{if(!e.currentPayment)throw new Error("No current payment");const o=await T({sessionId:n,exchangeId:t});if(e.currentPayment.status=o.status,o.status==="SUCCESS"||o.status==="FAILED"){const p=(r=l.getAccountData())==null?void 0:r.address;e.currentPayment.result=o.txHash,e.isPaymentInProgress=!1,w.sendEvent({type:"track",event:o.status==="SUCCESS"?"PAY_SUCCESS":"PAY_ERROR",properties:{message:o.status==="FAILED"?E.parseError(e.error):void 0,source:"fund-from-exchange",paymentId:s,configuration:{network:((a=e.paymentAsset)==null?void 0:a.network)||"",asset:((u=e.paymentAsset)==null?void 0:u.asset)||"",recipient:p||"",amount:e.amount??0},currentPayment:{type:"exchange",exchangeId:(i=e.currentPayment)==null?void 0:i.exchangeId,sessionId:(c=e.currentPayment)==null?void 0:c.sessionId,result:o.txHash}}})}return o}catch{return{status:"UNKNOWN",txHash:""}}},reset(){e.currentPayment=void 0,e.isPaymentInProgress=!1,e.paymentId="",e.paymentAsset=null,e.amount=0,e.tokenAmount=0,e.priceLoading=!1,e.error=null,e.exchanges=[],e.isLoading=!1}};export{m as E};
@@ -1,4 +1,4 @@
1
- import{r as h,j as o}from"./react-BYHuwl8r.js";import{t as e,s as a,b as r,I as f}from"./index-buu21jrH.js";const w=a.section`
1
+ import{r as l,j as o}from"./react-BYHuwl8r.js";import{t as e,s as a,b as s,I as w}from"./index-HxLvOExR.js";const m=a.section`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  gap: 36px;
@@ -11,7 +11,7 @@ import{r as h,j as o}from"./react-BYHuwl8r.js";import{t as e,s as a,b as r,I as
11
11
  ${e.media.maxWidth("mobile")} {
12
12
  gap: 24px;
13
13
  }
14
- `,m=a.h2`
14
+ `,k=a.h2`
15
15
  margin: 0;
16
16
  font-size: 20px;
17
17
  font-weight: 700;
@@ -31,12 +31,12 @@ import{r as h,j as o}from"./react-BYHuwl8r.js";import{t as e,s as a,b as r,I as
31
31
  font-size: 24px;
32
32
  }
33
33
  }
34
- `,k=a.div`
34
+ `,v=a.div`
35
35
  display: flex;
36
36
  flex-direction: column;
37
37
  gap: 24px;
38
38
  width: 100%;
39
- `,v=a.div`
39
+ `,$=a.div`
40
40
  border-radius: ${e.radius.pill};
41
41
 
42
42
  &[data-open='true'] {
@@ -50,7 +50,7 @@ import{r as h,j as o}from"./react-BYHuwl8r.js";import{t as e,s as a,b as r,I as
50
50
  /* 1px when open, 0.5px closed — the design thickens the outline as the row takes over the page. */
51
51
  border: 1px solid ${e.colors.white};
52
52
  }
53
- `,$=a.button`
53
+ `,q=a.button`
54
54
  appearance: none;
55
55
  width: 100%;
56
56
  display: flex;
@@ -125,16 +125,16 @@ import{r as h,j as o}from"./react-BYHuwl8r.js";import{t as e,s as a,b as r,I as
125
125
  }
126
126
 
127
127
  ${e.media.maxWidth("mobile")} {
128
- padding: 16px;
128
+ padding: 16px 24px;
129
129
  font-size: 16px;
130
130
  }
131
- `,q=a.span`
131
+ `,j=a.span`
132
132
  flex: 1 0 0;
133
133
  min-width: 0;
134
134
  /* The design sets the question nowrap at 1423px, where every one of them fits on a line. At the Shop's
135
135
  widths they do not, so wrapping is the faithful reading of the intent — a clipped question is not. */
136
136
  overflow-wrap: break-word;
137
- `,j=a.span`
137
+ `,y=a.span`
138
138
  flex-shrink: 0;
139
139
  display: flex;
140
140
  transition: transform 160ms ease;
@@ -146,16 +146,21 @@ import{r as h,j as o}from"./react-BYHuwl8r.js";import{t as e,s as a,b as r,I as
146
146
  @media (prefers-reduced-motion: reduce) {
147
147
  transition: none;
148
148
  }
149
- `,y=a.div`
149
+ `,z=a.div`
150
150
  padding: 32px 24px;
151
151
  font-size: 20px;
152
152
  font-weight: 400;
153
153
  line-height: 1.5;
154
154
  color: ${e.colors.text2};
155
- /* The answers are authored as one string with a newline where the design breaks the line. Two <p>s with
156
- no margin between them render as two lines, which is what this is — keeping it one translatable string
157
- rather than splitting every answer into numbered halves. */
158
- white-space: pre-line;
155
+ /* The answers are authored as one string with a newline where the design breaks the line; Faq.tsx turns
156
+ each line into its own <p> so consecutive sentences are spaced apart rather than stacked. */
157
+ display: flex;
158
+ flex-direction: column;
159
+ gap: 12px;
160
+
161
+ & p {
162
+ margin: 0;
163
+ }
159
164
 
160
165
  [data-tone='on-dark'] & {
161
166
  color: ${e.colors.white};
@@ -165,4 +170,5 @@ import{r as h,j as o}from"./react-BYHuwl8r.js";import{t as e,s as a,b as r,I as
165
170
  padding: 20px 16px;
166
171
  font-size: 16px;
167
172
  }
168
- `;function I({title:l,entries:p,tone:c="light",className:x}){const[u,g]=h.useState(()=>new Set),s=h.useId();function b(t){g(n=>{const i=new Set(n);return i.delete(t)||i.add(t),i})}return o.jsxs(w,{className:x,"data-tone":c,"data-testid":"faq",children:[o.jsx(m,{children:r(l)}),o.jsx(k,{children:p.map(t=>{const n=u.has(t.question),i=`${s}-panel-${t.question}`,d=`${s}-header-${t.question}`;return o.jsxs(v,{"data-open":n,"data-testid":"faq-item",children:[o.jsxs($,{type:"button",onClick:()=>b(t.question),id:d,"aria-expanded":n,"aria-controls":n?i:void 0,"data-open":n,"data-testid":"faq-question",children:[o.jsx(q,{children:r(t.question)}),o.jsx(j,{"data-open":n,"aria-hidden":!0,children:o.jsx(f,{name:"chevron-up-line",size:36})})]}),n&&o.jsx(y,{id:i,role:"region","aria-labelledby":d,"data-testid":"faq-answer",children:r(t.answer)})]},t.question)})})]})}export{I as F};
173
+ `;function S({title:p,entries:c,tone:x="light",className:u}){const[g,f]=l.useState(()=>new Set),d=l.useId();function b(t){f(n=>{const i=new Set(n);return i.delete(t)||i.add(t),i})}return o.jsxs(m,{className:u,"data-tone":x,"data-testid":"faq",children:[o.jsx(k,{"data-testid":"faq-title",children:s(p)}),o.jsx(v,{children:c.map(t=>{const n=g.has(t.question),i=`${d}-panel-${t.question}`,h=`${d}-header-${t.question}`;return o.jsxs($,{"data-open":n,"data-testid":"faq-item",children:[o.jsxs(q,{type:"button",onClick:()=>b(t.question),id:h,"aria-expanded":n,"aria-controls":n?i:void 0,"data-open":n,"data-testid":"faq-question",children:[o.jsx(j,{children:s(t.question)}),o.jsx(y,{"data-open":n,"aria-hidden":!0,children:o.jsx(w,{name:"chevron-up-line",size:36})})]}),n&&o.jsx(z,{id:i,role:"region","aria-labelledby":h,"data-testid":"faq-answer",children:s(t.answer).split(`
174
+ `).map(r=>r.trim()).filter(Boolean).map(r=>o.jsx("p",{children:r},r))})]},t.question)})})]})}export{S as F};