@dcl/shop 0.7.2 → 0.7.3-31000563578.commit-5745007

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (177) hide show
  1. package/_assets/Activity-ChYDB8b3.js +381 -0
  2. package/_assets/{AnimatedBackground-Be3B4ztI.js → AnimatedBackground-DEhy0Hs4.js} +1 -1
  3. package/_assets/{Assets-DoF0RVFp.js → Assets-CDxxXXrh.js} +13 -13
  4. package/_assets/{Assets.styles-IIy06Oye.js → Assets.styles-Eymc9hCH.js} +1 -1
  5. package/_assets/{Authorizations-b9znutOi.js → Authorizations-DC9PQV5B.js} +1 -1
  6. package/_assets/{Cart-CFsD5IlH.js → Cart-8HndC0ZN.js} +2 -2
  7. package/_assets/{CircularProgress-wU--wY5P.js → CircularProgress-CptEdBJR.js} +1 -1
  8. package/_assets/{Collection-CsVwPele.js → Collection-xeabHw_M.js} +1 -1
  9. package/_assets/{CollectionCarousel-DelfAKnZ.js → CollectionCarousel-D3Qo_rdU.js} +6 -6
  10. package/_assets/{Creator-CJuvJbZ7.js → Creator-RE0JcIXz.js} +6 -6
  11. package/_assets/{ErrorNotice-3r5bQgT2.js → ErrorNotice-CNAMbiNs.js} +1 -1
  12. package/_assets/{ExchangeController-CxfrLhaH.js → ExchangeController-Dv_sOoYV.js} +1 -1
  13. package/_assets/Faq-CLALDt_B.js +168 -0
  14. package/_assets/{GetCredits-Dn-IHOnM.js → GetCredits-Cldg30Nc.js} +85 -66
  15. package/_assets/{Grow-BmECuNyH.js → Grow-CWsjbYSK.js} +1 -1
  16. package/_assets/{HelpersUtil-Bvk_vk1Y.js → HelpersUtil-7Aopq74x.js} +1 -1
  17. package/_assets/{ItemDetail-ByHvYOS_.js → ItemDetail-Os4bWzmF.js} +1 -1
  18. package/_assets/LazyEmoteControls-Djrq3wXI.js +2 -0
  19. package/_assets/{LoadMore-CymwFW-m.js → LoadMore-DA2Anza2.js} +1 -1
  20. package/_assets/{ManaPricingBanner.styles-B36mIGF3.js → ManaPricingBanner.styles-CbLNPpYs.js} +1 -1
  21. package/_assets/{MyAssets-CE5nGbGF.js → MyAssets-CupXdivc.js} +1 -1
  22. package/_assets/{MyFavorites-Bk3TaFpw.js → MyFavorites-CHgYHTPv.js} +1 -1
  23. package/_assets/{NotFound-DtwVRkn9.js → NotFound-CvtnPkYR.js} +1 -1
  24. package/_assets/{NotificationsBell-CayuJgBV.js → NotificationsBell-BvQHk_Q-.js} +1 -1
  25. package/_assets/{OutfitDetail-CYCbMvMy.js → OutfitDetail-CGoug6Af.js} +1 -1
  26. package/_assets/{OutfitPreview-4ZQworXq.js → OutfitPreview-Dvzj3PdH.js} +1 -1
  27. package/_assets/{OutfitStudio-B7JjH_OJ.js → OutfitStudio-CjcxdyQL.js} +1 -1
  28. package/_assets/{StoreSettings-DZqto59M.js → StoreSettings-DuxrCPSa.js} +1 -1
  29. package/_assets/{Success-BXd4vOmE.js → Success-DPT_uk5N.js} +1 -1
  30. package/_assets/{SwapController-D_HE5-4t.js → SwapController-C5h7L4FU.js} +1 -1
  31. package/_assets/{Tooltip-CH3i2AZ8.js → Tooltip-E9qudNC4.js} +1 -1
  32. package/_assets/{TradeService-8wrIkkCU.js → TradeService-BFHswSBP.js} +1 -1
  33. package/_assets/{W3MFrameProviderSingleton-hR4mAmko.js → W3MFrameProviderSingleton-BzvCvXax.js} +3 -3
  34. package/_assets/{WebCryptoP256-CUVz0sT-.js → WebCryptoP256-c09CYnck.js} +1 -1
  35. package/_assets/{authorizations-CkEL0cRE.js → authorizations-ByBKRXko.js} +1 -1
  36. package/_assets/{basic-CjxOIetC.js → basic-5LFbVzlu.js} +1 -1
  37. package/_assets/{biconomy-8Mii_u_D.js → biconomy-B0JUoK-z.js} +1 -1
  38. package/_assets/{builder-BoC6pJY-.js → builder-DOXH8ial.js} +1 -1
  39. package/_assets/{buy-gasless-CtdtD4yw.js → buy-gasless-BcMX7AjG.js} +1 -1
  40. package/_assets/{buy-C5VKib6d.js → buy-ot6NCqZj.js} +1 -1
  41. package/_assets/{categories-N60mkQ85.js → categories-C1JdJ-IT.js} +1 -1
  42. package/_assets/{ccip-BfABfKqd.js → ccip-CSgTbbZy.js} +1 -1
  43. package/_assets/{ccip-CkHWEn4N.js → ccip-POlm_yFj.js} +1 -1
  44. package/_assets/{collectionPage.styles-BWGZLOL_.js → collectionPage.styles-JqpbqhpO.js} +1 -1
  45. package/_assets/{controller-bg1czStV.js → controller-B_xSifoO.js} +2 -2
  46. package/_assets/{core-CI81_wqW.js → core-DDawgI8S.js} +4 -4
  47. package/_assets/{createSvgIcon-BG_h01sL.js → createSvgIcon-CLQlGodw.js} +1 -1
  48. package/_assets/{custom-BNXh19kf.js → custom-BCK3km4M.js} +1 -1
  49. package/_assets/{data-capture-Gwo_M6sW.js → data-capture-DKrduCxq.js} +1 -1
  50. package/_assets/{email-Bnr-9hTW.js → email-rJO4D9ZY.js} +1 -1
  51. package/_assets/{embedded-wallet-D4jo3k6W.js → embedded-wallet-Cf9m2OdT.js} +1 -1
  52. package/_assets/{emotion-styled.browser.esm-Bd2qjAcz.js → emotion-styled.browser.esm-BNLyCOxT.js} +1 -1
  53. package/_assets/{engine-C--F6ENC.js → engine-BdpkQPz0.js} +1 -1
  54. package/_assets/{errors-Du3dWMbd.js → errors-C6KYIkHm.js} +1 -1
  55. package/_assets/{estimate-l1-fee-DtQQVymm.js → estimate-l1-fee-BPDfynS3.js} +1 -1
  56. package/_assets/{execute-DbnGyz94.js → execute-DjMuILJW.js} +2 -2
  57. package/_assets/{features-BkFSf-iq.js → features-BEzDX2Wi.js} +1 -1
  58. package/_assets/{fetchTokenMetadata-DFggI2iY.js → fetchTokenMetadata-BXcTI6Hp.js} +2 -2
  59. package/_assets/{field.styles-D3cOLW18.js → field.styles-uVKqEgCR.js} +1 -1
  60. package/_assets/{get-ecosystem-wallet-info-11sCnJ-7.js → get-ecosystem-wallet-info-BEa08lNL.js} +1 -1
  61. package/_assets/{getBalance-QGjDk77O.js → getBalance-3QcWDEP1.js} +1 -1
  62. package/_assets/{getNFT-BJ8yr01Z.js → getNFT-BpmSHnLn.js} +1 -1
  63. package/_assets/{getNFT-BVVv_-0Y.js → getNFT-Dwtlr3Th.js} +1 -1
  64. package/_assets/{grid.styles-CFQtLncp.js → grid.styles-BIS84Ueh.js} +1 -1
  65. package/_assets/{hashTypedData-gN3c95l4.js → hashTypedData-BmbEYwxf.js} +1 -1
  66. package/_assets/{hashTypedData-BXX-P_dP.js → hashTypedData-CQdGyU5r.js} +1 -1
  67. package/_assets/{in-app-kBwlyl-f.js → in-app-CQIEGwXf.js} +1 -1
  68. package/_assets/{in-app-wallet-calls-BN8r6OBs.js → in-app-wallet-calls-CT-zKabR.js} +1 -1
  69. package/_assets/{index-BwWxHd9J.js → index-1UxDFeoD.js} +1 -1
  70. package/_assets/{index-Cxw303yv.js → index-9k1dQZMh.js} +1 -1
  71. package/_assets/{index-CrvRYFHR.js → index-BBhZ0HVP.js} +3 -3
  72. package/_assets/{index-DvkSTulM.js → index-BEtNsXEG.js} +1 -1
  73. package/_assets/{index-DoRhx_He.js → index-BKHcUi1P.js} +1 -1
  74. package/_assets/{index-CMeSxiXG.js → index-BSv-QHZ0.js} +1 -1
  75. package/_assets/{index-DyxpPyVg.js → index-B_Lx9HeJ.js} +1 -1
  76. package/_assets/index-BbC_AcLk.js +519 -0
  77. package/_assets/{index-DjPyQFXF.js → index-BcQW8Gj2.js} +1 -1
  78. package/_assets/{index-Bakfg_1g.js → index-BcflcbFk.js} +1 -1
  79. package/_assets/{index-B0ryoW8w.js → index-BtR-ASCb.js} +1 -1
  80. package/_assets/{index-xPEXNMYS.js → index-Byc0pXfs.js} +1 -1
  81. package/_assets/{index-CzYiATyr.js → index-Bymdy1ge.js} +1 -1
  82. package/_assets/{index-B4bQ_g5A.js → index-CCVqnHck.js} +1 -1
  83. package/_assets/{index-DOlLnnbN.js → index-CENf1OH6.js} +1 -1
  84. package/_assets/{index-B4M8sJUj.js → index-CHwaoGWX.js} +1 -1
  85. package/_assets/{index-DN1pJSb7.js → index-COsrlET7.js} +1 -1
  86. package/_assets/{index-DInQ5jG-.js → index-CU7zlhMP.js} +1 -1
  87. package/_assets/{index-CKac0RNB.js → index-CYmJEkim.js} +1 -1
  88. package/_assets/{index-DrqL3wnf.js → index-CZxnK8TQ.js} +1 -1
  89. package/_assets/{index-EXLD54jH.js → index-CkcOUFYl.js} +2 -2
  90. package/_assets/{index-DxojTLnQ.js → index-CqWjs3ID.js} +1 -1
  91. package/_assets/{index-CIyes5rm.js → index-CrnyOt4u.js} +1 -1
  92. package/_assets/{index-BLrPav1T.js → index-CtjY17-l.js} +1 -1
  93. package/_assets/{index-CQdN8SI1.js → index-CuQBnNj3.js} +1 -1
  94. package/_assets/{index-TTZwY716.js → index-CxTerMZo.js} +2 -2
  95. package/_assets/{index-Bm7j_2aS.js → index-Cyw6hStH.js} +1 -1
  96. package/_assets/{index-kPR91X9E.js → index-D7kYOOTD.js} +1 -1
  97. package/_assets/{index-YZKg7WM1.js → index-DAHMNdQp.js} +3 -3
  98. package/_assets/{index-BUvdjpLN.js → index-DI-LAVz5.js} +1 -1
  99. package/_assets/{index-BtNS6Sv0.js → index-DLzn22gN.js} +1 -1
  100. package/_assets/{index-CVQ8oHkh.js → index-DMGubkbp.js} +2 -2
  101. package/_assets/{index-zQ8cxU2G.js → index-DY_p3BO1.js} +1 -1
  102. package/_assets/{index-D7zzleDp.js → index-DYdMXhWE.js} +1 -1
  103. package/_assets/{index-O0VpavwW.js → index-D_VYAhm8.js} +1 -1
  104. package/_assets/{index-C36oVpEk.js → index-Dbo5n5--.js} +1 -1
  105. package/_assets/{index-C786VheW.js → index-DcFYf1M_.js} +1 -1
  106. package/_assets/{index-DLzdQycs.js → index-DeWbFeXm.js} +1 -1
  107. package/_assets/{index-cvhPRrXA.js → index-DhZP1nf3.js} +1 -1
  108. package/_assets/{index-CvxViQFA.js → index-Dj9eZjMG.js} +1 -1
  109. package/_assets/{index-CqVxBPGc.js → index-DkFeq1NQ.js} +1 -1
  110. package/_assets/index-DyLYzoRb.js +3386 -0
  111. package/_assets/{index-Dyh7pyxx.js → index-Dz98iCbS.js} +1 -1
  112. package/_assets/{index-D9xYIYaf.js → index-FD4X2Esu.js} +1 -1
  113. package/_assets/{index-DDiCv4U4.js → index-ICnT6kXr.js} +3 -3
  114. package/_assets/{index-Dl0ZUNWk.js → index-Pa51CfZf.js} +1 -1
  115. package/_assets/{index-tpmZJbVV.js → index-R5Wlc0cr.js} +1 -1
  116. package/_assets/{index-C4Ua5jGw.js → index-c1Smsb2X.js} +1 -1
  117. package/_assets/{index-CblEnpzL.js → index-fnqyc3tx.js} +2 -2
  118. package/_assets/{index-I2lMQseb.js → index-jFSqsnQs.js} +1 -1
  119. package/_assets/{index-CkItaod2.js → index-n2RJyG-z.js} +1 -1
  120. package/_assets/{index-B_HYDEtX.js → index-rZPi0_Sz.js} +1 -1
  121. package/_assets/{index.es-Bl2PbxJr.js → index.es-CKFHGSe7.js} +4 -4
  122. package/_assets/{index.es-EFLDV9YI.js → index.es-D9hMCl3e.js} +1 -1
  123. package/_assets/{index.es-5JavRckI.js → index.es-orQLS9Ly.js} +1 -1
  124. package/_assets/{localBatchGatewayRequest-BWsIaDIE.js → localBatchGatewayRequest-Ca5RqcRB.js} +1 -1
  125. package/_assets/{networks--rzHY8zY.js → networks-J75QV4BL.js} +1 -1
  126. package/_assets/{onramp-IBGbKthf.js → onramp-qkvJojyj.js} +1 -1
  127. package/_assets/{openzeppelin-CteHZYAE.js → openzeppelin-DA9yw4Ac.js} +1 -1
  128. package/_assets/{parseNft-CjJbs0kN.js → parseNft-dG5pP9hp.js} +2 -2
  129. package/_assets/{parseSignature-BZS2g2Jp.js → parseSignature-CTHIkvJH.js} +1 -1
  130. package/_assets/{parseSignature-DgP8I4s-.js → parseSignature-m408d1zh.js} +3 -3
  131. package/_assets/{passkeys-2GYfrIW-.js → passkeys-CFsll6XV.js} +1 -1
  132. package/_assets/{pay-with-exchange-CFDPj_Ci.js → pay-with-exchange-DxDbUNGc.js} +1 -1
  133. package/_assets/{qr-overlay-Ds7Fr0lF.js → qr-overlay-DulceYNG.js} +1 -1
  134. package/_assets/{receive-DI-hDZuo.js → receive-xfbWCO49.js} +1 -1
  135. package/_assets/{resolveImplementation-BtX-ARKv.js → resolveImplementation-DxW4TCTM.js} +1 -1
  136. package/_assets/{rpc-CpuwTu3M.js → rpc-CQv7-Ntx.js} +1 -1
  137. package/_assets/{secp256k1-BMmzDgZw.js → secp256k1-Ce7nlUsr.js} +1 -1
  138. package/_assets/{secp256k1-DT8TtWA2.js → secp256k1-Cx50cwV-.js} +1 -1
  139. package/_assets/{secp256k1-B3lQnF4x.js → secp256k1-DzNTK7K-.js} +1 -1
  140. package/_assets/{send-batch-transaction-CshATiqB.js → send-batch-transaction-DIubuv-a.js} +1 -1
  141. package/_assets/{send-eip712-transaction-B_yd_Ph2.js → send-eip712-transaction-DHInvefN.js} +2 -2
  142. package/_assets/{send-gasless-transaction-Ot1v7swm.js → send-gasless-transaction-I0TAc2h2.js} +2 -2
  143. package/_assets/{send-lqB2NsIP.js → send-n9rbeOB-.js} +1 -1
  144. package/_assets/{send-transaction-Bbb8MiYz.js → send-transaction-vZPauM2q.js} +2 -2
  145. package/_assets/{sendMetaTransaction-B8QarnGW.js → sendMetaTransaction-BkvxVm7u.js} +1 -1
  146. package/_assets/{sendRawTransaction-CdbKO36d.js → sendRawTransaction-DtFtq1LQ.js} +3 -3
  147. package/_assets/{serializeTransaction-qj2kvULH.js → serializeTransaction-dTvuM5EZ.js} +1 -1
  148. package/_assets/{session-proposal-Bjh7TDS3.js → session-proposal-BHTiDxrO.js} +1 -1
  149. package/_assets/{session-request-BWLuJcL4.js → session-request-C9I3jCiJ.js} +2 -2
  150. package/_assets/{signing-CssxZ7kf.js → signing-BWYe-S9K.js} +3 -3
  151. package/_assets/{socials-91-QTc9v.js → socials-gfGHJNQF.js} +1 -1
  152. package/_assets/styled-BYt4mtoI.js +9 -0
  153. package/_assets/{swaps-CT9j7o9y.js → swaps-DPHYDz4Z.js} +1 -1
  154. package/_assets/{thirdweb-6YwgkX44.js → thirdweb-1EkAYNGI.js} +3 -3
  155. package/_assets/{to-serializable-transaction-Cwp0L3ww.js → to-serializable-transaction-CZajYrNm.js} +2 -2
  156. package/_assets/{trade-encoding-CxvKGx0_.js → trade-encoding-DHpwKa1D.js} +1 -1
  157. package/_assets/{transactionReceipt-CYYXW47r.js → transactionReceipt-BBXVz8i8.js} +1 -1
  158. package/_assets/{transactions-Yy0hGtH3.js → transactions-D_3mPI1t.js} +1 -1
  159. package/_assets/{useCreditPacks-eXmbKxJO.js → useCreditPacks-BQUqwasL.js} +1 -1
  160. package/_assets/{useImportable-1wgCIPJI.js → useImportable-DJqmpxB-.js} +1 -1
  161. package/_assets/{useInfiniteGrid-IXSEUDfN.js → useInfiniteGrid-BLY3pHgI.js} +1 -1
  162. package/_assets/{useTheme-DDHPP1hV.js → useTheme-C2r5FbDn.js} +1 -1
  163. package/_assets/{verifyHash-UQQpWRKz.js → verifyHash-B2NKbjyd.js} +1 -1
  164. package/_assets/{w3m-modal-R-xHgcLx.js → w3m-modal-Bx4rEvvz.js} +1 -1
  165. package/_assets/{w3m-modal-uZlen5oK.js → w3m-modal-LQPpq0YJ.js} +1 -1
  166. package/_assets/{wait-for-tx-receipt-Be-DMOgp.js → wait-for-tx-receipt-ChaKOpHZ.js} +1 -1
  167. package/_assets/{wallets-XOlHe2ld.js → wallets-TZYYtnxp.js} +5 -5
  168. package/_assets/{web-connector-msoNVD8s.js → web-connector-BILtFc_I.js} +3 -3
  169. package/_assets/{writeContract-8MHZT7h2.js → writeContract-CsUwt49p.js} +1 -1
  170. package/_assets/{zoraTestnet-HwyYvSRG.js → zoraTestnet-6_PUQr1Q.js} +1 -1
  171. package/index.html +11 -11
  172. package/package.json +2 -2
  173. package/_assets/Activity-Jc4Ww2Np.js +0 -384
  174. package/_assets/LazyEmoteControls-DBetyXKO.js +0 -2
  175. package/_assets/index-B1DCMe50.js +0 -3378
  176. package/_assets/index-DDc9MCuJ.js +0 -474
  177. package/_assets/styled-CjUv0U3K.js +0 -9
@@ -1,4 +1,4 @@
1
- import{j as i,L as _,r as P}from"./react-DehiWSvs.js";import{s as n,B as W,t as a,o as D,q as F,d as e,k as G,v as O,I as b,w as B,n as w,x as K,c as Q,y as H,z as A,A as X,D as Z,E}from"./index-B1DCMe50.js";import{d as J,f as U,b as V,h as Y,s as tt,a as it}from"./authorizations-CkEL0cRE.js";import{f as et}from"./builder-BoC6pJY-.js";import{m as ot}from"./mana-matic-C4e1sNO3.js";import{f as at}from"./errors-Du3dWMbd.js";import"./sentry-973sfbO9.js";import"./dcl-schemas-Dr9BTjb7.js";import"./ethers-CtNGBird.js";import"./intl-CBcMB1D2.js";import"./sendMetaTransaction-B8QarnGW.js";const nt=D`
1
+ import{j as i,L as _,r as P}from"./react-DehiWSvs.js";import{s as n,B as W,t as a,o as D,q as F,d as e,k as G,v as O,I as b,w as B,n as w,x as K,c as Q,y as H,z as A,A as X,D as Z,E}from"./index-DyLYzoRb.js";import{d as J,f as U,b as V,h as Y,s as tt,a as it}from"./authorizations-ByBKRXko.js";import{f as et}from"./builder-DOXH8ial.js";import{m as ot}from"./mana-matic-C4e1sNO3.js";import{f as at}from"./errors-C6KYIkHm.js";import"./sentry-973sfbO9.js";import"./dcl-schemas-Dr9BTjb7.js";import"./ethers-CtNGBird.js";import"./intl-CBcMB1D2.js";import"./sendMetaTransaction-BkvxVm7u.js";const nt=D`
2
2
  to { transform: rotate(360deg); }
3
3
  `,st=D`
4
4
  to { background-position: -200% 0; }
@@ -1,4 +1,4 @@
1
- import{j as e,L as $e,r as P,d as ta,b as aa}from"./react-DehiWSvs.js";import{t as ue,s as i,d as a,az as le,b5 as sa,ay as na,I as H,w as Mt,af as Ue,q as ia,Q as N,ah as dt,k as ra,l as oa,n as ca,b6 as da,x as la,b7 as ua,ai as ha,b8 as pa,b9 as lt,ba as ga,bb as xa,v as ma,bc as ut,S as G,bd as ht,be as fa,A as ae,r as ya,c as pt,bf as ba,e as va,bg as gt,bh as _e,bi as ye,bj as be,bk as xt,g as ve,a as wa,C as We,bl as Ca}from"./index-B1DCMe50.js";import{M as ja,S as ka,C as Sa,H as $a,a as Ma,T as Ta,X as Ia,b as Pa,B as za,c as Aa,d as mt,e as Ea,f as ke,P as Tt,m as qa,g as Ba,h as Ra,i as _a,j as It,k as Se,L as Wa,l as Fa,n as ft,o as yt,W as La,p as Ka,q as Qa,A as Ua,r as Na,s as Ha,t as Oa,u as Va,v as Ga,w as Da,x as Ya,y as Ja,z as Xa,D as Za,E as es,F as ts,G as as,I as ss,J as ns,K as Fe,N as is,O as rs,Q as os,R as cs,U as bt,V as vt,Y as ds,Z as ls,_ as us}from"./CollectionCarousel-DelfAKnZ.js";import{j as hs,k as ps,a as gs,n as xs,i as ms,A as fs}from"./authorizations-CkEL0cRE.js";import{g as ys,b as Le}from"./buy-C5VKib6d.js";import{b as bs,w as vs,S as wt,G as ws}from"./buy-gasless-CtdtD4yw.js";import{u as Cs,M as js,R as we,r as ks,c as Ss,p as Ct}from"./useCreditPacks-eXmbKxJO.js";import{i as $s,a as Ms}from"./errors-Du3dWMbd.js";import{E as Ts}from"./ErrorNotice-3r5bQgT2.js";import"./sentry-973sfbO9.js";import"./dcl-schemas-Dr9BTjb7.js";import"./ethers-CtNGBird.js";import"./intl-CBcMB1D2.js";import"./trade-encoding-CxvKGx0_.js";import"./sendMetaTransaction-B8QarnGW.js";const{colors:se,radius:Is}=ue,Ps=i.div`
1
+ import{j as e,L as $e,r as P,d as ta,b as aa}from"./react-DehiWSvs.js";import{t as ue,s as i,d as a,az as le,b5 as sa,ay as na,I as H,w as Mt,af as Ue,q as ia,Q as N,ah as dt,k as ra,l as oa,n as ca,b6 as da,x as la,b7 as ua,ai as ha,b8 as pa,b9 as lt,ba as ga,bb as xa,v as ma,bc as ut,S as G,bd as ht,be as fa,A as ae,r as ya,c as pt,bf as ba,e as va,bg as gt,bh as _e,bi as ye,bj as be,bk as xt,g as ve,a as wa,C as We,bl as Ca}from"./index-DyLYzoRb.js";import{M as ja,S as ka,C as Sa,H as $a,a as Ma,T as Ta,X as Ia,b as Pa,B as za,c as Aa,d as mt,e as Ea,f as ke,P as Tt,m as qa,g as Ba,h as Ra,i as _a,j as It,k as Se,L as Wa,l as Fa,n as ft,o as yt,W as La,p as Ka,q as Qa,A as Ua,r as Na,s as Ha,t as Oa,u as Va,v as Ga,w as Da,x as Ya,y as Ja,z as Xa,D as Za,E as es,F as ts,G as as,I as ss,J as ns,K as Fe,N as is,O as rs,Q as os,R as cs,U as bt,V as vt,Y as ds,Z as ls,_ as us}from"./CollectionCarousel-D3Qo_rdU.js";import{j as hs,k as ps,a as gs,n as xs,i as ms,A as fs}from"./authorizations-ByBKRXko.js";import{g as ys,b as Le}from"./buy-ot6NCqZj.js";import{b as bs,w as vs,S as wt,G as ws}from"./buy-gasless-BcMX7AjG.js";import{u as Cs,M as js,R as we,r as ks,c as Ss,p as Ct}from"./useCreditPacks-BQUqwasL.js";import{i as $s,a as Ms}from"./errors-C6KYIkHm.js";import{E as Ts}from"./ErrorNotice-CNAMbiNs.js";import"./sentry-973sfbO9.js";import"./dcl-schemas-Dr9BTjb7.js";import"./ethers-CtNGBird.js";import"./intl-CBcMB1D2.js";import"./trade-encoding-DHpwKa1D.js";import"./sendMetaTransaction-BkvxVm7u.js";const{colors:se,radius:Is}=ue,Ps=i.div`
2
2
  display: flex;
3
3
  align-items: center;
4
4
  justify-content: center;
@@ -58,7 +58,7 @@ import{j as e,L as $e,r as P,d as ta,b as aa}from"./react-DehiWSvs.js";import{t
58
58
  font-weight: 700;
59
59
  color: ${se.text};
60
60
  }
61
- `,Bs="https://cdn.decentraland.org/@dcl/shop/0.7.2/_assets/buy-error-22UunaPC.png";function Rs(o){const{phase:l,balanceCredits:I,onClose:z}=o,W=l==="processing",D=l==="error"?a("cartCheckout.errorTitle"):l==="nofunds"?a("cartCheckout.titleNoFunds"):l==="choose"?a("buyModal.choosePayment"):a("cartCheckout.titleBuy"),Y=l==="processing";return e.jsxs(ja,{role:"dialog","aria-modal":"true","aria-label":a("cartCheckout.dialogAria"),children:[e.jsx(ka,{onClick:W?void 0:z,"aria-hidden":!0}),e.jsxs(Sa,{"data-tall":Y||void 0,children:[e.jsxs($a,{children:[e.jsxs(Ma,{children:[e.jsx(Ta,{children:D}),!W&&e.jsx(Ia,{onClick:z,"aria-label":a("buyModal.close"),children:e.jsx(Pa,{})})]}),e.jsxs(za,{children:[e.jsx(Aa,{children:l==="nofunds"?a("buyModal.dclBalance"):a("buyModal.myCreditsBalance")}),e.jsx(mt,{}),e.jsx(Ea,{children:le(I)})]})]}),l==="choose"&&e.jsxs(ke,{children:[e.jsxs(qs,{children:[e.jsx("span",{children:a("cart.purchaseSummary")}),e.jsxs("strong",{children:[e.jsx(mt,{}),le(o.totalCredits??0)]})]}),e.jsx(Tt,{options:o.options??[],totalCents:o.totalCents??0,onPay:o.onPay??(()=>{}),rateNote:(()=>{const A=qa(o.totalCents??0,o.totalManaWei??0n);return A!=null?a("buyModal.manaRate",{mana:A.toLocaleString("en",{maximumFractionDigits:2})}):null})()})]}),l==="processing"&&e.jsx(_s,{stage:o.stage??"reserving",step:o.step??1,total:o.total??1,isSelfCustody:!!o.isSelfCustody,signatures:o.signatures}),l==="nofunds"&&e.jsx(Ws,{lines:o.lines??[],shortfallCredits:o.shortfallCredits??0,packs:o.packs??[],selectedPack:o.selectedPack??"",onSelectPack:o.onSelectPack??(()=>{}),onBuyPacks:o.onBuyPacks??(()=>{}),onCancel:z}),l==="error"&&e.jsxs(ke,{children:[e.jsxs(Ba,{"data-testid":"buy-error",children:[e.jsx(Ra,{src:Bs,alt:"",width:64,height:80}),e.jsxs(_a,{children:[e.jsx("b",{children:a("cartCheckout.errorHeadline")})," ",o.message??a("cartCheckout.errorBody")]})]}),e.jsxs(It,{children:[e.jsx(Se,{"data-variant":"outline",onClick:z,children:a("buyModal.cancel")}),e.jsx(Se,{"data-variant":"purple",onClick:o.onRetry??z,children:a("cartCheckout.tryAgain")})]})]})]})]})}function _s({stage:o,step:l,total:I,isSelfCustody:z,signatures:W}){const D=o==="reserving",Y=I>0?Math.min(100,Math.round(l/I*100)):0,A=z&&W&&W.total>1,ne=o==="awaiting-signature"?z?A?a("cartCheckout.confirmMultiple",{current:W.current,total:W.total}):a("buyModal.confirmToContinue"):a("buyModal.completingTransaction"):o==="settling"?a("buyModal.completingTransaction"):a("cartCheckout.preparing");return e.jsxs(ke,{"data-processing":!0,children:[e.jsx(Wa,{src:sa,alt:"",width:61,height:61}),e.jsx(Fa,{children:ne}),D?e.jsxs(Ps,{children:[e.jsx(ft,{"aria-hidden":!0,children:e.jsx(yt,{"data-step":!0,style:{width:`${Y}%`}})}),I>1?e.jsxs(zs,{children:[l,"/",I]}):null]}):e.jsx(ft,{"aria-hidden":!0,children:e.jsx(yt,{})})]})}function Ws({lines:o,shortfallCredits:l,packs:I,selectedPack:z,onSelectPack:W,onBuyPacks:D,onCancel:Y}){const A=I.find(n=>n.id===z),ne=o.reduce((n,L)=>n+(L.quantity??1),0);return e.jsxs(ke,{children:[e.jsxs(La,{"data-testid":"nofunds-warning",children:[e.jsx(Ka,{}),e.jsxs(Qa,{children:[e.jsx("b",{children:a("buyModal.insufficientFunds")})," ",a("buyModal.warningNeedToBuy")," ",e.jsx("b",{children:a("buyModal.warningCreditsAmount",{count:Math.max(0,l)})})," ",a("buyModal.warningToPurchase",{count:ne})]})]}),e.jsx(As,{children:o.map(n=>{const L=n.quantity??1;return e.jsxs(Ua,{children:[e.jsx(Na,{children:n.item.thumbnail?e.jsx("img",{src:n.item.thumbnail,alt:""}):null}),e.jsxs(Ha,{children:[e.jsxs("div",{children:[e.jsxs(Oa,{title:n.item.name,children:[n.item.name||a("buyModal.itemFallback"),L>1?e.jsx(Es,{children:a("cartCheckout.qty",{count:L})}):null]}),n.item.creator?e.jsx(Va,{address:n.item.creator}):null]}),e.jsxs(Ga,{children:[e.jsx(Da,{}),e.jsx("span",{children:le(n.priceCredits*L)})]})]})]},n.item.id)})}),e.jsx(Ya,{children:I.map(n=>{const L=n.id===z;return e.jsxs(Ja,{"data-testid":"credit-pack","data-on":L||void 0,onClick:()=>W(n.id),children:[e.jsx(Xa,{}),e.jsx(Za,{children:le(n.credits)}),e.jsxs(es,{children:["($",n.usd.toFixed(2),")"]})]},n.id)})}),e.jsxs(ts,{children:[e.jsxs(as,{children:[e.jsx(ss,{}),e.jsx("span",{children:le((A==null?void 0:A.credits)??0)})]}),e.jsxs(ns,{children:["$",((A==null?void 0:A.usd)??0).toFixed(2)]})]}),e.jsxs(It,{children:[e.jsx(Se,{"data-variant":"outline",onClick:Y,children:a("buyModal.cancel")}),e.jsx(Se,{"data-variant":"gradient",onClick:D,children:a("buyModal.buy")})]})]})}const{colors:r,gradients:Pt,radius:Z}=ue,zt="@media (max-width: 1080px)",T="@media (max-width: 880px)",jt=i.div`
61
+ `,Bs="https://cdn.decentraland.org/@dcl/shop/0.7.3-31000563578.commit-5745007/_assets/buy-error-22UunaPC.png";function Rs(o){const{phase:l,balanceCredits:I,onClose:z}=o,W=l==="processing",D=l==="error"?a("cartCheckout.errorTitle"):l==="nofunds"?a("cartCheckout.titleNoFunds"):l==="choose"?a("buyModal.choosePayment"):a("cartCheckout.titleBuy"),Y=l==="processing";return e.jsxs(ja,{role:"dialog","aria-modal":"true","aria-label":a("cartCheckout.dialogAria"),children:[e.jsx(ka,{onClick:W?void 0:z,"aria-hidden":!0}),e.jsxs(Sa,{"data-tall":Y||void 0,children:[e.jsxs($a,{children:[e.jsxs(Ma,{children:[e.jsx(Ta,{children:D}),!W&&e.jsx(Ia,{onClick:z,"aria-label":a("buyModal.close"),children:e.jsx(Pa,{})})]}),e.jsxs(za,{children:[e.jsx(Aa,{children:l==="nofunds"?a("buyModal.dclBalance"):a("buyModal.myCreditsBalance")}),e.jsx(mt,{}),e.jsx(Ea,{children:le(I)})]})]}),l==="choose"&&e.jsxs(ke,{children:[e.jsxs(qs,{children:[e.jsx("span",{children:a("cart.purchaseSummary")}),e.jsxs("strong",{children:[e.jsx(mt,{}),le(o.totalCredits??0)]})]}),e.jsx(Tt,{options:o.options??[],totalCents:o.totalCents??0,onPay:o.onPay??(()=>{}),rateNote:(()=>{const A=qa(o.totalCents??0,o.totalManaWei??0n);return A!=null?a("buyModal.manaRate",{mana:A.toLocaleString("en",{maximumFractionDigits:2})}):null})()})]}),l==="processing"&&e.jsx(_s,{stage:o.stage??"reserving",step:o.step??1,total:o.total??1,isSelfCustody:!!o.isSelfCustody,signatures:o.signatures}),l==="nofunds"&&e.jsx(Ws,{lines:o.lines??[],shortfallCredits:o.shortfallCredits??0,packs:o.packs??[],selectedPack:o.selectedPack??"",onSelectPack:o.onSelectPack??(()=>{}),onBuyPacks:o.onBuyPacks??(()=>{}),onCancel:z}),l==="error"&&e.jsxs(ke,{children:[e.jsxs(Ba,{"data-testid":"buy-error",children:[e.jsx(Ra,{src:Bs,alt:"",width:64,height:80}),e.jsxs(_a,{children:[e.jsx("b",{children:a("cartCheckout.errorHeadline")})," ",o.message??a("cartCheckout.errorBody")]})]}),e.jsxs(It,{children:[e.jsx(Se,{"data-variant":"outline",onClick:z,children:a("buyModal.cancel")}),e.jsx(Se,{"data-variant":"purple",onClick:o.onRetry??z,children:a("cartCheckout.tryAgain")})]})]})]})]})}function _s({stage:o,step:l,total:I,isSelfCustody:z,signatures:W}){const D=o==="reserving",Y=I>0?Math.min(100,Math.round(l/I*100)):0,A=z&&W&&W.total>1,ne=o==="awaiting-signature"?z?A?a("cartCheckout.confirmMultiple",{current:W.current,total:W.total}):a("buyModal.confirmToContinue"):a("buyModal.completingTransaction"):o==="settling"?a("buyModal.completingTransaction"):a("cartCheckout.preparing");return e.jsxs(ke,{"data-processing":!0,children:[e.jsx(Wa,{src:sa,alt:"",width:61,height:61}),e.jsx(Fa,{children:ne}),D?e.jsxs(Ps,{children:[e.jsx(ft,{"aria-hidden":!0,children:e.jsx(yt,{"data-step":!0,style:{width:`${Y}%`}})}),I>1?e.jsxs(zs,{children:[l,"/",I]}):null]}):e.jsx(ft,{"aria-hidden":!0,children:e.jsx(yt,{})})]})}function Ws({lines:o,shortfallCredits:l,packs:I,selectedPack:z,onSelectPack:W,onBuyPacks:D,onCancel:Y}){const A=I.find(n=>n.id===z),ne=o.reduce((n,L)=>n+(L.quantity??1),0);return e.jsxs(ke,{children:[e.jsxs(La,{"data-testid":"nofunds-warning",children:[e.jsx(Ka,{}),e.jsxs(Qa,{children:[e.jsx("b",{children:a("buyModal.insufficientFunds")})," ",a("buyModal.warningNeedToBuy")," ",e.jsx("b",{children:a("buyModal.warningCreditsAmount",{count:Math.max(0,l)})})," ",a("buyModal.warningToPurchase",{count:ne})]})]}),e.jsx(As,{children:o.map(n=>{const L=n.quantity??1;return e.jsxs(Ua,{children:[e.jsx(Na,{children:n.item.thumbnail?e.jsx("img",{src:n.item.thumbnail,alt:""}):null}),e.jsxs(Ha,{children:[e.jsxs("div",{children:[e.jsxs(Oa,{title:n.item.name,children:[n.item.name||a("buyModal.itemFallback"),L>1?e.jsx(Es,{children:a("cartCheckout.qty",{count:L})}):null]}),n.item.creator?e.jsx(Va,{address:n.item.creator}):null]}),e.jsxs(Ga,{children:[e.jsx(Da,{}),e.jsx("span",{children:le(n.priceCredits*L)})]})]})]},n.item.id)})}),e.jsx(Ya,{children:I.map(n=>{const L=n.id===z;return e.jsxs(Ja,{"data-testid":"credit-pack","data-on":L||void 0,onClick:()=>W(n.id),children:[e.jsx(Xa,{}),e.jsx(Za,{children:le(n.credits)}),e.jsxs(es,{children:["($",n.usd.toFixed(2),")"]})]},n.id)})}),e.jsxs(ts,{children:[e.jsxs(as,{children:[e.jsx(ss,{}),e.jsx("span",{children:le((A==null?void 0:A.credits)??0)})]}),e.jsxs(ns,{children:["$",((A==null?void 0:A.usd)??0).toFixed(2)]})]}),e.jsxs(It,{children:[e.jsx(Se,{"data-variant":"outline",onClick:Y,children:a("buyModal.cancel")}),e.jsx(Se,{"data-variant":"gradient",onClick:D,children:a("buyModal.buy")})]})]})}const{colors:r,gradients:Pt,radius:Z}=ue,zt="@media (max-width: 1080px)",T="@media (max-width: 880px)",jt=i.div`
62
62
  max-width: 1510px;
63
63
  margin: 0 auto;
64
64
  /* Grows into the page's leftover height and passes it down to Upsell, so the white cross-sell band ends at
@@ -1,4 +1,4 @@
1
- import{ab as N,ac as U,ad as o,ae as n,af as D,o as M}from"./index-B1DCMe50.js";import{r as w,j as g}from"./react-DehiWSvs.js";import{g as z,a as E,c as I,b as F}from"./clsx-WwvpwSg0.js";import{s as v}from"./styled-CjUv0U3K.js";function K(r){return z("MuiCircularProgress",r)}E("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const W=["className","color","disableShrink","size","style","thickness","value","variant"];let l=r=>r,P,b,S,$;const t=44,B=M(P||(P=l`
1
+ import{ab as N,ac as U,ad as o,ae as n,af as D,o as M}from"./index-DyLYzoRb.js";import{r as w,j as g}from"./react-DehiWSvs.js";import{g as z,a as E,c as I,b as F}from"./clsx-WwvpwSg0.js";import{s as v}from"./styled-BYt4mtoI.js";function K(r){return z("MuiCircularProgress",r)}E("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const W=["className","color","disableShrink","size","style","thickness","value","variant"];let l=r=>r,P,b,S,$;const t=44,B=M(P||(P=l`
2
2
  0% {
3
3
  transform: rotate(0deg);
4
4
  }
@@ -1,4 +1,4 @@
1
- import{j as e,r as h,u as J,d as X}from"./react-DehiWSvs.js";import{t as b,s,bm as ee,W as te,y as z,bn as ae,bo as oe,I as ie,d as a,c as re,A as se,n as ne,q as ce,e as le,ak as F,al as de,bp as pe,bq as xe}from"./index-B1DCMe50.js";import{E as me}from"./ErrorNotice-3r5bQgT2.js";import{d as he,P as ue,C as ge,a as be,b as fe,A as ve}from"./collectionPage.styles-BWGZLOL_.js";import{S as L,C as ye,F as je,c as we,P as Ce,d as $e,H as ke,e as Ne}from"./categories-N60mkQ85.js";import{L as Ae}from"./LoadMore-CymwFW-m.js";import{u as Pe}from"./useInfiniteGrid-IXSEUDfN.js";import{G as Se}from"./grid.styles-CFQtLncp.js";import"./sentry-973sfbO9.js";import"./dcl-schemas-Dr9BTjb7.js";import"./ethers-CtNGBird.js";import"./intl-CBcMB1D2.js";const Me=s.section`
1
+ import{j as e,r as h,u as J,d as X}from"./react-DehiWSvs.js";import{t as b,s,bm as ee,W as te,y as z,bn as ae,bo as oe,I as ie,d as a,c as re,A as se,n as ne,q as ce,e as le,ak as F,al as de,bp as pe,bq as xe}from"./index-DyLYzoRb.js";import{E as me}from"./ErrorNotice-CNAMbiNs.js";import{d as he,P as ue,C as ge,a as be,b as fe,A as ve}from"./collectionPage.styles-JqpbqhpO.js";import{S as L,C as ye,F as je,c as we,P as Ce,d as $e,H as ke,e as Ne}from"./categories-C1JdJ-IT.js";import{L as Ae}from"./LoadMore-DA2Anza2.js";import{u as Pe}from"./useInfiniteGrid-BLY3pHgI.js";import{G as Se}from"./grid.styles-BIS84Ueh.js";import"./sentry-973sfbO9.js";import"./dcl-schemas-Dr9BTjb7.js";import"./ethers-CtNGBird.js";import"./intl-CBcMB1D2.js";const Me=s.section`
2
2
  position: relative;
3
3
  border-radius: ${b.radius.card};
4
4
  overflow: hidden;
@@ -1,4 +1,4 @@
1
- import{j as t,r as v}from"./react-DehiWSvs.js";import{s as e,t as o,d as f,w as k,az as j,bH as C,e as G,o as Y,I as Q,A as X,g as W,C as B,a as Z,a3 as J,bR as F,al as q}from"./index-B1DCMe50.js";import{s as ee,i as H,A as U,g as K,r as te,m as ne,c as ae,M as ie,e as oe}from"./authorizations-CkEL0cRE.js";import{i as se}from"./errors-Du3dWMbd.js";import{E as re}from"./ErrorNotice-3r5bQgT2.js";import{a as ce}from"./buy-C5VKib6d.js";import{g as de,a as le}from"./trade-encoding-CxvKGx0_.js";import{s as pe,M as he,E as ue}from"./sendMetaTransaction-B8QarnGW.js";import{I as xe,C as ge}from"./ethers-CtNGBird.js";const R="shop:resume_after_signin",fe=900*1e3;function dt(a){try{sessionStorage.setItem(R,JSON.stringify({...a,at:Date.now()}))}catch{}}function lt(a){let n;try{n=sessionStorage.getItem(R)}catch{return null}if(!n)return null;try{sessionStorage.removeItem(R)}catch{}let i;try{i=JSON.parse(n)}catch{return null}return!i||i.type!==a||typeof i.at!="number"||Date.now()-i.at>fe?null:i.type==="cart-checkout"?{type:"cart-checkout"}:{type:"item-buy",path:i.path}}function me(a,n){return(a+n-1n)/n}function be(a,n,i){return a<=0||n<=0?0n:a>=n?i:me(i*BigInt(a),BigInt(n))}function pt(a){var b,y,w;const n=Number.isFinite(a.priceCents)?Math.max(0,Math.trunc(a.priceCents)):0,i=Number.isFinite(a.balanceCents)?Math.max(0,Math.trunc(a.balanceCents)):0,s=a.priceManaWei>0n?a.priceManaWei:0n,l=a.manaBalanceWei>0n?a.manaBalanceWei:0n;if(n<=0)return{options:[],preferred:null,manaShortfall:null};const c=[];if(i>=n&&c.push({method:"credits",creditsCents:n,manaWei:0n}),s>0n&&i>0&&i<n){const d=n-i,m=be(d,n,s);l>=m&&c.push({method:"combined",creditsCents:i,manaWei:m})}s>0n&&l>=s&&c.push({method:"mana",creditsCents:0,manaWei:s});const p=((b=c.find(d=>d.method==="credits"))==null?void 0:b.method)??((y=c.find(d=>d.method==="combined"))==null?void 0:y.method)??((w=c.find(d=>d.method==="mana"))==null?void 0:w.method)??null,u=!c.some(d=>d.method==="mana"||d.method==="combined")&&s>0n&&l>0n?{manaWei:l,manaCents:ye(l,n,s),priceCents:n}:null;return{options:c,preferred:p,manaShortfall:u}}function ye(a,n,i){return Number(a*BigInt(n)/i)}function ht(a,n){let i=Number.isFinite(n)?Math.max(0,Math.trunc(n)):0;return a.map(s=>{const l=Number.isFinite(s)?Math.max(0,Math.trunc(s)):0,c=Math.min(l,i);return i-=c,c})}function M(a){return Number.isFinite(a)?Math.max(0,a)/10:0}function ut(a,n){return a.options.find(i=>i.method===n)??null}function xt(a,n){if(!Number.isFinite(a)||a<=0||n<=0n)return null;const i=a/10;return Number(n)/1e18/i}const T="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Group%201'%3e%3cpath%20id='Vector'%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M12%202L22%2012L12%2022L2%2012L12%202ZM12%204.8L19.2%2012L12%2019.2L4.8%2012L12%204.8ZM12%2015.6C12.9548%2015.6001%2013.8705%2015.2209%2014.5457%2014.5459C15.2209%2013.8708%2015.6003%2012.9552%2015.6004%2012.0004C15.6005%2011.0456%2015.2213%2010.1299%2014.5463%209.45471C13.8712%208.7795%2012.9556%208.40011%2012.0008%208.4C11.0461%208.4%2010.1304%208.77928%209.45525%209.45442C8.78012%2010.1295%208.40083%2011.0452%208.40083%2012C8.40083%2012.9548%208.78012%2013.8705%209.45525%2014.5456C10.1304%2015.2207%2011.0461%2015.6%2012.0008%2015.6H12Z'%20fill='white'/%3e%3cg%20id='Rectangle%201'%3e%3c/g%3e%3c/g%3e%3c/svg%3e",we=e.div`
1
+ import{j as t,r as v}from"./react-DehiWSvs.js";import{s as e,t as o,d as f,w as k,az as j,bP as C,e as G,o as Y,I as Q,A as X,g as W,C as B,a as Z,a3 as J,bT as F,al as q}from"./index-DyLYzoRb.js";import{s as ee,i as U,A as H,g as K,r as te,m as ne,c as ae,M as ie,e as oe}from"./authorizations-ByBKRXko.js";import{i as se}from"./errors-C6KYIkHm.js";import{E as re}from"./ErrorNotice-CNAMbiNs.js";import{a as ce}from"./buy-ot6NCqZj.js";import{g as de,a as le}from"./trade-encoding-DHpwKa1D.js";import{s as pe,M as he,E as ue}from"./sendMetaTransaction-BkvxVm7u.js";import{I as xe,C as ge}from"./ethers-CtNGBird.js";const R="shop:resume_after_signin",fe=900*1e3;function dt(a){try{sessionStorage.setItem(R,JSON.stringify({...a,at:Date.now()}))}catch{}}function lt(a){let n;try{n=sessionStorage.getItem(R)}catch{return null}if(!n)return null;try{sessionStorage.removeItem(R)}catch{}let i;try{i=JSON.parse(n)}catch{return null}return!i||i.type!==a||typeof i.at!="number"||Date.now()-i.at>fe?null:i.type==="cart-checkout"?{type:"cart-checkout"}:{type:"item-buy",path:i.path}}function me(a,n){return(a+n-1n)/n}function be(a,n,i){return a<=0||n<=0?0n:a>=n?i:me(i*BigInt(a),BigInt(n))}function pt(a){var b,y,w;const n=Number.isFinite(a.priceCents)?Math.max(0,Math.trunc(a.priceCents)):0,i=Number.isFinite(a.balanceCents)?Math.max(0,Math.trunc(a.balanceCents)):0,s=a.priceManaWei>0n?a.priceManaWei:0n,l=a.manaBalanceWei>0n?a.manaBalanceWei:0n;if(n<=0)return{options:[],preferred:null,manaShortfall:null};const c=[];if(i>=n&&c.push({method:"credits",creditsCents:n,manaWei:0n}),s>0n&&i>0&&i<n){const d=n-i,m=be(d,n,s);l>=m&&c.push({method:"combined",creditsCents:i,manaWei:m})}s>0n&&l>=s&&c.push({method:"mana",creditsCents:0,manaWei:s});const p=((b=c.find(d=>d.method==="credits"))==null?void 0:b.method)??((y=c.find(d=>d.method==="combined"))==null?void 0:y.method)??((w=c.find(d=>d.method==="mana"))==null?void 0:w.method)??null,u=!c.some(d=>d.method==="mana"||d.method==="combined")&&s>0n&&l>0n?{manaWei:l,manaCents:ye(l,n,s),priceCents:n}:null;return{options:c,preferred:p,manaShortfall:u}}function ye(a,n,i){return Number(a*BigInt(n)/i)}function ht(a,n){let i=Number.isFinite(n)?Math.max(0,Math.trunc(n)):0;return a.map(s=>{const l=Number.isFinite(s)?Math.max(0,Math.trunc(s)):0,c=Math.min(l,i);return i-=c,c})}function M(a){return Number.isFinite(a)?Math.max(0,a)/10:0}function ut(a,n){return a.options.find(i=>i.method===n)??null}function xt(a,n){if(!Number.isFinite(a)||a<=0||n<=0n)return null;const i=a/10;return Number(n)/1e18/i}const T="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Group%201'%3e%3cpath%20id='Vector'%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M12%202L22%2012L12%2022L2%2012L12%202ZM12%204.8L19.2%2012L12%2019.2L4.8%2012L12%204.8ZM12%2015.6C12.9548%2015.6001%2013.8705%2015.2209%2014.5457%2014.5459C15.2209%2013.8708%2015.6003%2012.9552%2015.6004%2012.0004C15.6005%2011.0456%2015.2213%2010.1299%2014.5463%209.45471C13.8712%208.7795%2012.9556%208.40011%2012.0008%208.4C11.0461%208.4%2010.1304%208.77928%209.45525%209.45442C8.78012%2010.1295%208.40083%2011.0452%208.40083%2012C8.40083%2012.9548%208.78012%2013.8705%209.45525%2014.5456C10.1304%2015.2207%2011.0461%2015.6%2012.0008%2015.6H12Z'%20fill='white'/%3e%3cg%20id='Rectangle%201'%3e%3c/g%3e%3c/g%3e%3c/svg%3e",we=e.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  gap: 12px;
@@ -289,10 +289,10 @@ import{j as t,r as v}from"./react-DehiWSvs.js";import{s as e,t as o,d as f,w as
289
289
  @media (prefers-reduced-motion: reduce) {
290
290
  animation: none;
291
291
  }
292
- `;function mt({auth:a,signer:n,title:i,reason:s,name:l,image:c,icon:p,onAuthorized:x,onCancel:u,onClose:b}){const[y,w]=v.useState(!1),[d,m]=v.useState(null);async function $(){w(!0),m(null);try{await ee({auth:a,signer:n,active:!0}),x()}catch(h){se(h)?m(f("authorizeStep.errorRejected")):(X(h,{flow:"authorize_step",kind:a.kind}),m(f("authorizeStep.errorGeneric"))),w(!1)}}return t.jsx(ze,{onClick:y?void 0:b,role:"presentation",children:t.jsxs(Ae,{onClick:h=>h.stopPropagation(),role:"dialog","aria-modal":"true","aria-label":i,children:[t.jsxs(We,{children:[t.jsx(Ie,{children:i}),t.jsx(Se,{onClick:b,disabled:y,"aria-label":f("authorizeStep.close"),children:t.jsx(Q,{name:"close",className:"ico"})})]}),t.jsxs(Te,{"data-testid":"authorize-step-row",children:[t.jsx(Ne,{children:c?t.jsx("img",{src:c,alt:""}):p}),t.jsxs(Ee,{children:[t.jsx(Be,{title:l,children:l}),t.jsx(Re,{children:s})]})]}),t.jsx(Le,{children:f("authorizeStep.note")}),t.jsx(re,{message:d}),t.jsxs(Pe,{children:[t.jsx(Fe,{type:"button",onClick:u,disabled:y,children:f("authorizeStep.cancel")}),t.jsx(Ke,{type:"button","data-testid":"authorize-step-action",onClick:()=>void $(),disabled:y,children:y?t.jsxs(t.Fragment,{children:[t.jsx(De,{"aria-hidden":!0}),f("authorizeStep.authorizing")]}):f("authorizeStep.authorize")})]})]})})}async function bt(a){const[n]=await Qe({...a,trades:[a.trade]});return n}async function Qe(a){const{trades:n,buyer:i,signer:s,onSigned:l}=a;if(n.length===0)throw new Error("No items to buy");const c=new Map;for(const x of n){const u=`${x.chainId}:${x.contract.toLowerCase()}`,b=c.get(u);b?b.push(x):c.set(u,[x])}const p=[];for(const x of c.values())p.push(await He({trades:x,buyer:i,signer:s,onSigned:l}));return p}async function He(a){const{trades:n,buyer:i,signer:s,onSigned:l}=a,c=n[0],p=W(Z(c.contract),c.chainId),x=W(B.MANAToken,c.chainId);await H({auth:{kind:U.Allowance,contractAddress:x.address,spenderAddress:p.address,chainId:c.chainId},signer:s});const u=n.map(d=>de(d,i));if(K.enabled)try{const d=new xe(p.abi).encodeFunctionData("accept",[u]),m=te(),$=ne(s.provider,m),h=await pe($,m,d,p,{serverURL:K.relayerUrl});return l==null||l(),await ae(h,"the MANA purchase"),h}catch(d){if(d instanceof he&&d.code===ue.USER_DENIED||d instanceof ie)throw d;console.warn("[buyWithMana] gasless meta-tx failed, falling back to a direct tx:",d)}await oe(s.provider,c.chainId);const y=await new ge(p.address,p.abi,s).accept(u,le(c.chainId));return l==null||l(),(await y.wait()).transactionHash}async function yt(a){const{trade:n,buyer:i,signer:s,credits:l,manaGapWei:c,onBroadcast:p,onReverted:x}=a;if(l.length===0)throw new Error("No credits to spend — use buyWithMana for a MANA-only purchase");if(c<=0n)throw new Error("No MANA gap to cover — use buyWithCredits for a credits-only purchase");const u=W(B.MANAToken,n.chainId),b=W(B.CreditsManager,n.chainId);await H({auth:{kind:U.Allowance,contractAddress:u.address,spenderAddress:b.address,chainId:n.chainId},signer:s});const w=(l.reduce((d,m)=>d+BigInt(m.availableAmount),0n)+c).toString();return ce({trade:n,buyer:i,signer:s,credits:l,maxCreditedValue:w,onBroadcast:p,onReverted:x})}function wt(a){return t.jsx("svg",{viewBox:"0 0 18 18",width:"18",height:"18","aria-hidden":!0,...a,children:t.jsx("path",{d:"M4 4l10 10M14 4L4 14",stroke:"#161518",strokeWidth:"1.8",strokeLinecap:"round"})})}function vt(a){return t.jsxs("svg",{viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":!0,...a,children:[t.jsx("path",{d:"M12 3L2 20h20L12 3z",fill:"none",stroke:"#691fa9",strokeWidth:"1.8",strokeLinejoin:"round"}),t.jsx("path",{d:"M12 9v5",stroke:"#691fa9",strokeWidth:"1.8",strokeLinecap:"round"}),t.jsx("circle",{cx:"12",cy:"17",r:"1.1",fill:"#691fa9"})]})}const{colors:r,gradients:O,radius:V,z:Ue}=o,kt=e.div`
292
+ `;function mt({auth:a,signer:n,title:i,reason:s,name:l,image:c,icon:p,onAuthorized:x,onCancel:u,onClose:b}){const[y,w]=v.useState(!1),[d,m]=v.useState(null);async function $(){w(!0),m(null);try{await ee({auth:a,signer:n,active:!0}),x()}catch(h){se(h)?m(f("authorizeStep.errorRejected")):(X(h,{flow:"authorize_step",kind:a.kind}),m(f("authorizeStep.errorGeneric"))),w(!1)}}return t.jsx(ze,{onClick:y?void 0:b,role:"presentation",children:t.jsxs(Ae,{onClick:h=>h.stopPropagation(),role:"dialog","aria-modal":"true","aria-label":i,children:[t.jsxs(We,{children:[t.jsx(Ie,{children:i}),t.jsx(Se,{onClick:b,disabled:y,"aria-label":f("authorizeStep.close"),children:t.jsx(Q,{name:"close",className:"ico"})})]}),t.jsxs(Te,{"data-testid":"authorize-step-row",children:[t.jsx(Ne,{children:c?t.jsx("img",{src:c,alt:""}):p}),t.jsxs(Ee,{children:[t.jsx(Be,{title:l,children:l}),t.jsx(Re,{children:s})]})]}),t.jsx(Le,{children:f("authorizeStep.note")}),t.jsx(re,{message:d}),t.jsxs(Pe,{children:[t.jsx(Fe,{type:"button",onClick:u,disabled:y,children:f("authorizeStep.cancel")}),t.jsx(Ke,{type:"button","data-testid":"authorize-step-action",onClick:()=>void $(),disabled:y,children:y?t.jsxs(t.Fragment,{children:[t.jsx(De,{"aria-hidden":!0}),f("authorizeStep.authorizing")]}):f("authorizeStep.authorize")})]})]})})}async function bt(a){const[n]=await Qe({...a,trades:[a.trade]});return n}async function Qe(a){const{trades:n,buyer:i,signer:s,onSigned:l}=a;if(n.length===0)throw new Error("No items to buy");const c=new Map;for(const x of n){const u=`${x.chainId}:${x.contract.toLowerCase()}`,b=c.get(u);b?b.push(x):c.set(u,[x])}const p=[];for(const x of c.values())p.push(await Ue({trades:x,buyer:i,signer:s,onSigned:l}));return p}async function Ue(a){const{trades:n,buyer:i,signer:s,onSigned:l}=a,c=n[0],p=W(Z(c.contract),c.chainId),x=W(B.MANAToken,c.chainId);await U({auth:{kind:H.Allowance,contractAddress:x.address,spenderAddress:p.address,chainId:c.chainId},signer:s});const u=n.map(d=>de(d,i));if(K.enabled)try{const d=new xe(p.abi).encodeFunctionData("accept",[u]),m=te(),$=ne(s.provider,m),h=await pe($,m,d,p,{serverURL:K.relayerUrl});return l==null||l(),await ae(h,"the MANA purchase"),h}catch(d){if(d instanceof he&&d.code===ue.USER_DENIED||d instanceof ie)throw d;console.warn("[buyWithMana] gasless meta-tx failed, falling back to a direct tx:",d)}await oe(s.provider,c.chainId);const y=await new ge(p.address,p.abi,s).accept(u,le(c.chainId));return l==null||l(),(await y.wait()).transactionHash}async function yt(a){const{trade:n,buyer:i,signer:s,credits:l,manaGapWei:c,onBroadcast:p,onReverted:x}=a;if(l.length===0)throw new Error("No credits to spend — use buyWithMana for a MANA-only purchase");if(c<=0n)throw new Error("No MANA gap to cover — use buyWithCredits for a credits-only purchase");const u=W(B.MANAToken,n.chainId),b=W(B.CreditsManager,n.chainId);await U({auth:{kind:H.Allowance,contractAddress:u.address,spenderAddress:b.address,chainId:n.chainId},signer:s});const w=(l.reduce((d,m)=>d+BigInt(m.availableAmount),0n)+c).toString();return ce({trade:n,buyer:i,signer:s,credits:l,maxCreditedValue:w,onBroadcast:p,onReverted:x})}function wt(a){return t.jsx("svg",{viewBox:"0 0 18 18",width:"18",height:"18","aria-hidden":!0,...a,children:t.jsx("path",{d:"M4 4l10 10M14 4L4 14",stroke:"#161518",strokeWidth:"1.8",strokeLinecap:"round"})})}function vt(a){return t.jsxs("svg",{viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":!0,...a,children:[t.jsx("path",{d:"M12 3L2 20h20L12 3z",fill:"none",stroke:"#691fa9",strokeWidth:"1.8",strokeLinejoin:"round"}),t.jsx("path",{d:"M12 9v5",stroke:"#691fa9",strokeWidth:"1.8",strokeLinecap:"round"}),t.jsx("circle",{cx:"12",cy:"17",r:"1.1",fill:"#691fa9"})]})}const{colors:r,gradients:O,radius:V,z:He}=o,kt=e.div`
293
293
  position: fixed;
294
294
  inset: 0;
295
- z-index: ${Ue.overlay};
295
+ z-index: ${He.overlay};
296
296
  display: flex;
297
297
  overflow-y: auto;
298
298
  padding: 20px;
@@ -458,10 +458,10 @@ import{j as t,r as v}from"./react-DehiWSvs.js";import{s as e,t as o,d as f,w as
458
458
  & b {
459
459
  font-weight: 700;
460
460
  }
461
- `,Ht=e.div`
461
+ `,Ut=e.div`
462
462
  display: flex;
463
463
  gap: 12px;
464
- `,Ut=e.button`
464
+ `,Ht=e.button`
465
465
  flex: 1;
466
466
  height: 109px;
467
467
  border: 1px solid ${r.muted2};
@@ -801,4 +801,4 @@ import{j as t,r as v}from"./react-DehiWSvs.js";import{s as e,t as o,d as f,w as
801
801
  opacity: 1;
802
802
  transform: scale(1.1);
803
803
  }
804
- `;function ln({title:a,items:n,onViewAll:i}){const s=v.useRef(null),[l,c]=v.useState(1),[p,x]=v.useState(0),[u,b]=v.useState(!0),[y,w]=v.useState(!1),d=v.useCallback(()=>{const h=s.current;if(!h)return;const{scrollLeft:g,scrollWidth:L,clientWidth:S}=h,P=Math.max(1,Math.ceil(L/S));c(P),x(Math.min(P-1,Math.round(g/S))),b(g<=1),w(g+S>=L-1)},[]);if(v.useEffect(()=>{d();const h=s.current;if(h)return h.addEventListener("scroll",d,{passive:!0}),window.addEventListener("resize",d),()=>{h.removeEventListener("scroll",d),window.removeEventListener("resize",d)}},[d,n.length]),n.length===0)return null;function m(h){const g=s.current;g&&g.scrollBy({left:h*g.clientWidth,behavior:"smooth"})}function $(h){const g=s.current;g&&g.scrollTo({left:h*g.clientWidth,behavior:"smooth"})}return t.jsxs(_e,{children:[t.jsxs(Oe,{children:[t.jsx(Ve,{children:a}),i?t.jsxs(Ge,{onClick:i,children:[f("collectionCarousel.viewAll"),t.jsx(Ye,{name:"chevron-down",size:16})]}):null]}),t.jsxs(Xe,{children:[t.jsx(D,{"data-side":"left",onClick:()=>m(-1),"aria-label":f("collectionCarousel.scrollLeft"),disabled:u,children:t.jsx("img",{src:F,alt:"","aria-hidden":!0})}),t.jsx(Ze,{ref:s,children:n.map(h=>t.jsx(q,{item:h},h.id))}),t.jsx(D,{"data-side":"right",onClick:()=>m(1),"aria-label":f("collectionCarousel.scrollRight"),disabled:y,children:t.jsx("img",{src:F,alt:"","aria-hidden":!0})})]}),l>1?t.jsx(Je,{"aria-label":f("collectionCarousel.pages"),children:Array.from({length:l}).map((h,g)=>t.jsx(qe,{"data-active":g===p||void 0,"aria-label":f("collectionCarousel.goToPage",{page:g+1}),"aria-current":g===p?"true":void 0,onClick:()=>$(g)},g))}):null]})}export{M as $,Et as A,Wt as B,jt as C,Ot as D,Vt as E,Gt as F,Yt as G,Ct as H,Xt as I,Zt as J,pt as K,en as L,kt as M,lt as N,ln as O,gt as P,mt as Q,T as R,$t as S,zt as T,dt as U,ft as V,Dt as W,At as X,Qe as Y,ht as Z,be as _,Mt as a,cn as a0,dn as a1,bt as a2,ut as a3,yt as a4,wt as b,It as c,St as d,Tt as e,Nt as f,tn as g,nn as h,an as i,Jt as j,qt as k,on as l,xt as m,sn as n,rn as o,vt as p,Qt as q,Bt as r,Rt as s,Lt as t,Pt as u,Ft as v,Kt as w,Ht as x,Ut as y,_t as z};
804
+ `;function ln({title:a,items:n,onViewAll:i}){const s=v.useRef(null),[l,c]=v.useState(1),[p,x]=v.useState(0),[u,b]=v.useState(!0),[y,w]=v.useState(!1),d=v.useCallback(()=>{const h=s.current;if(!h)return;const{scrollLeft:g,scrollWidth:L,clientWidth:S}=h,P=Math.max(1,Math.ceil(L/S));c(P),x(Math.min(P-1,Math.round(g/S))),b(g<=1),w(g+S>=L-1)},[]);if(v.useEffect(()=>{d();const h=s.current;if(h)return h.addEventListener("scroll",d,{passive:!0}),window.addEventListener("resize",d),()=>{h.removeEventListener("scroll",d),window.removeEventListener("resize",d)}},[d,n.length]),n.length===0)return null;function m(h){const g=s.current;g&&g.scrollBy({left:h*g.clientWidth,behavior:"smooth"})}function $(h){const g=s.current;g&&g.scrollTo({left:h*g.clientWidth,behavior:"smooth"})}return t.jsxs(_e,{children:[t.jsxs(Oe,{children:[t.jsx(Ve,{children:a}),i?t.jsxs(Ge,{onClick:i,children:[f("collectionCarousel.viewAll"),t.jsx(Ye,{name:"chevron-down",size:16})]}):null]}),t.jsxs(Xe,{children:[t.jsx(D,{"data-side":"left",onClick:()=>m(-1),"aria-label":f("collectionCarousel.scrollLeft"),disabled:u,children:t.jsx("img",{src:F,alt:"","aria-hidden":!0})}),t.jsx(Ze,{ref:s,children:n.map(h=>t.jsx(q,{item:h},h.id))}),t.jsx(D,{"data-side":"right",onClick:()=>m(1),"aria-label":f("collectionCarousel.scrollRight"),disabled:y,children:t.jsx("img",{src:F,alt:"","aria-hidden":!0})})]}),l>1?t.jsx(Je,{"aria-label":f("collectionCarousel.pages"),children:Array.from({length:l}).map((h,g)=>t.jsx(qe,{"data-active":g===p||void 0,"aria-label":f("collectionCarousel.goToPage",{page:g+1}),"aria-current":g===p?"true":void 0,onClick:()=>$(g)},g))}):null]})}export{M as $,Et as A,Wt as B,jt as C,Ot as D,Vt as E,Gt as F,Yt as G,Ct as H,Xt as I,Zt as J,pt as K,en as L,kt as M,lt as N,ln as O,gt as P,mt as Q,T as R,$t as S,zt as T,dt as U,ft as V,Dt as W,At as X,Qe as Y,ht as Z,be as _,Mt as a,cn as a0,dn as a1,bt as a2,ut as a3,yt as a4,wt as b,It as c,St as d,Tt as e,Nt as f,tn as g,nn as h,an as i,Jt as j,qt as k,on as l,xt as m,sn as n,rn as o,vt as p,Qt as q,Bt as r,Rt as s,Lt as t,Pt as u,Ft as v,Kt as w,Ut as x,Ht as y,_t as z};
@@ -1,4 +1,4 @@
1
- import{d as pe,j as e,L as Re,u as Me,e as ze,r as g}from"./react-DehiWSvs.js";import{t as ge,G as Be,J as re,H as se,s as i,bI as We,ay as _e,bJ as Te,d as o,bK as De,bL as ie,B as Ge,af as fe,W as be,bm as Oe,k as Ke,y as we,bt as He,bn as Ue,bo as qe,I as ae,c as Ve,q as Je,n as Qe,ag as Ye,ai as Ze,aj as Xe,ak as A,al as ne,bM as le,bN as et}from"./index-B1DCMe50.js";import{d as tt,P as ot,C as rt,a as st,b as it,A as at,c as nt,e as lt}from"./collectionPage.styles-BWGZLOL_.js";import{g as ct,h as dt,i as ht,j as mt,k as ut,C as xt,l as pt,o as gt,m as ft,n as bt,M as wt,E as jt,p as vt,q as yt,r as Ct,s as kt,t as $t}from"./Assets.styles-IIy06Oye.js";import{S as ce,R as St,F as Nt,e as Pt}from"./categories-N60mkQ85.js";import{L as de}from"./LoadMore-CymwFW-m.js";import{u as he}from"./useInfiniteGrid-IXSEUDfN.js";import{E as T}from"./ErrorNotice-3r5bQgT2.js";import{G as me}from"./grid.styles-CFQtLncp.js";import"./sentry-973sfbO9.js";import"./dcl-schemas-Dr9BTjb7.js";import"./ethers-CtNGBird.js";import"./intl-CBcMB1D2.js";import"./Tooltip-CH3i2AZ8.js";function Et(r){const{gridLoading:s,gridError:a,gridCount:n,baselinePending:l,baselineError:c,baselineCount:m}=r;return s?"skeletons":a?"error":n>0?"items":l?"skeletons":c?"error":m===0?"no-creations":"filters"}const{colors:b,radius:je,media:Ft}=ge,Lt=i.article`
1
+ import{d as pe,j as e,L as Ie,u as Me,e as ze,r as g}from"./react-DehiWSvs.js";import{t as ge,G as Be,J as re,H as se,s as i,bz as We,ay as _e,bA as Te,d as o,bB as De,bC as ie,B as Ge,af as fe,W as be,bm as Oe,k as Ke,y as we,bt as He,bn as Ue,bo as qe,I as ae,c as Ve,q as Je,n as Qe,ag as Ye,ai as Ze,aj as Xe,ak as A,al as ne,bD as le,bE as et}from"./index-DyLYzoRb.js";import{d as tt,P as ot,C as rt,a as st,b as it,A as at,c as nt,e as lt}from"./collectionPage.styles-JqpbqhpO.js";import{g as ct,h as dt,i as ht,j as mt,k as ut,C as xt,l as pt,o as gt,m as ft,n as bt,M as wt,E as jt,p as vt,q as yt,r as Ct,s as kt,t as $t}from"./Assets.styles-Eymc9hCH.js";import{S as ce,R as St,F as Nt,e as Et}from"./categories-C1JdJ-IT.js";import{L as de}from"./LoadMore-DA2Anza2.js";import{u as he}from"./useInfiniteGrid-BLY3pHgI.js";import{E as T}from"./ErrorNotice-CNAMbiNs.js";import{G as me}from"./grid.styles-BIS84Ueh.js";import"./sentry-973sfbO9.js";import"./dcl-schemas-Dr9BTjb7.js";import"./ethers-CtNGBird.js";import"./intl-CBcMB1D2.js";import"./Tooltip-E9qudNC4.js";function Pt(r){const{gridLoading:s,gridError:a,gridCount:n,baselinePending:l,baselineError:c,baselineCount:m}=r;return s?"skeletons":a?"error":n>0?"items":l?"skeletons":c?"error":m===0?"no-creations":"filters"}const{colors:b,radius:je,media:Ft}=ge,Lt=i.article`
2
2
  height: 300px;
3
3
  background: ${b.bg};
4
4
  border-radius: ${je.card};
@@ -44,12 +44,12 @@ import{d as pe,j as e,L as Re,u as Me,e as ze,r as g}from"./react-DehiWSvs.js";i
44
44
  min-height: 0;
45
45
  background: ${b.media};
46
46
  overflow: hidden;
47
- `,It=i.img`
47
+ `,Rt=i.img`
48
48
  width: 100%;
49
49
  height: 100%;
50
50
  object-fit: cover;
51
51
  display: block;
52
- `,Rt=i(We)`
52
+ `,It=i(We)`
53
53
  & [data-testid='coll-thumb-cell'] img {
54
54
  object-fit: contain;
55
55
  padding: 10px;
@@ -135,7 +135,7 @@ import{d as pe,j as e,L as Re,u as Me,e as ze,r as g}from"./react-DehiWSvs.js";i
135
135
  &:active {
136
136
  background: ${b.accentActive};
137
137
  }
138
- `;function Ot({collection:r,cover:s,itemCount:a}){const n=pe(),{contractAddress:l,name:c,creator:m}=r,C=s==null||a==null,{data:u}=Te(l,C),j=s==null?(u==null?void 0:u.items)??[]:[],f=a??(u==null?void 0:u.total);function w(){n(`/collection/${l}`)}return e.jsxs(Lt,{"data-testid":"coll-card",role:"link",tabIndex:0,onClick:w,onKeyDown:x=>{(x.key==="Enter"||x.key===" ")&&(x.preventDefault(),w())},children:[e.jsx(At,{children:s?e.jsx(It,{"data-testid":"coll-card-img",src:s,alt:"",loading:"lazy"}):j.length>0?e.jsx(Rt,{items:j,tinted:!1}):null}),e.jsxs(Mt,{children:[e.jsx(zt,{title:c,children:c}),e.jsxs(Bt,{children:[e.jsxs(Wt,{"data-meta":!0,"data-testid":"coll-card-meta",children:[m?e.jsx(_t,{address:m,linkToProfile:!0}):e.jsx(Tt,{children:" "}),e.jsx(Dt,{children:f==null?"…":o("collectionCard.itemCount",{count:f})})]}),e.jsx(Gt,{"data-view":!0,"data-testid":"coll-card-view",onClick:x=>{x.stopPropagation(),w()},tabIndex:-1,children:o("collectionCard.viewCollection")})]})]})]})}function Kt({address:r,className:s=""}){const a=De(),n=ie(c=>c.followed.includes(r.toLowerCase())),l=ie(c=>c.toggle);return!a||!r?null:e.jsx(Ge,{type:"button",size:"sm",variant:n?"ghost":"outline",className:s||void 0,"data-testid":"follow-button","aria-pressed":n,title:n?o("creator.unfollowTitle"):o("creator.followTitle"),onClick:()=>l(r),children:n?o("creator.following"):o("creator.follow")})}const{colors:y,radius:ve,media:v}=ge,ye=fe`
138
+ `;function Ot({collection:r,cover:s,itemCount:a}){const n=pe(),{contractAddress:l,name:c,creator:m}=r,C=s==null||a==null,{data:u}=Te(l,C),j=s==null?(u==null?void 0:u.items)??[]:[],f=a??(u==null?void 0:u.total);function w(){n(`/collection/${l}`)}return e.jsxs(Lt,{"data-testid":"coll-card",role:"link",tabIndex:0,onClick:w,onKeyDown:x=>{(x.key==="Enter"||x.key===" ")&&(x.preventDefault(),w())},children:[e.jsx(At,{children:s?e.jsx(Rt,{"data-testid":"coll-card-img",src:s,alt:"",loading:"lazy"}):j.length>0?e.jsx(It,{items:j,tinted:!1}):null}),e.jsxs(Mt,{children:[e.jsx(zt,{title:c,children:c}),e.jsxs(Bt,{children:[e.jsxs(Wt,{"data-meta":!0,"data-testid":"coll-card-meta",children:[m?e.jsx(_t,{address:m,linkToProfile:!0}):e.jsx(Tt,{children:" "}),e.jsx(Dt,{children:f==null?"…":o("collectionCard.itemCount",{count:f})})]}),e.jsx(Gt,{"data-view":!0,"data-testid":"coll-card-view",onClick:x=>{x.stopPropagation(),w()},tabIndex:-1,children:o("collectionCard.viewCollection")})]})]})]})}function Kt({address:r,className:s=""}){const a=De(),n=ie(c=>c.followed.includes(r.toLowerCase())),l=ie(c=>c.toggle);return!a||!r?null:e.jsx(Ge,{type:"button",size:"sm",variant:n?"ghost":"outline",className:s||void 0,"data-testid":"follow-button","aria-pressed":n,title:n?o("creator.unfollowTitle"):o("creator.followTitle"),onClick:()=>l(r),children:n?o("creator.following"):o("creator.follow")})}const{colors:y,radius:ve,media:v}=ge,ye=fe`
139
139
  display: inline-flex;
140
140
  align-items: center;
141
141
  justify-content: center;
@@ -219,7 +219,7 @@ import{d as pe,j as e,L as Re,u as Me,e as ze,r as g}from"./react-DehiWSvs.js";i
219
219
  }
220
220
  `,Qt=i.a`
221
221
  ${Ce};
222
- `,Yt=i(Re)`
222
+ `,Yt=i(Ie)`
223
223
  ${Ce};
224
224
  width: 32px;
225
225
  height: 32px;
@@ -303,4 +303,4 @@ import{d as pe,j as e,L as Re,u as Me,e as ze,r as g}from"./react-DehiWSvs.js";i
303
303
  &:hover {
304
304
  background: rgba(255, 255, 255, 0.14);
305
305
  }
306
- `,ro={website:"website",twitter:"twitter",discord:"discord",facebook:"facebook"};function so({address:r}){var x,k;const{data:s}=be(r),{data:a}=Oe(r),n=Ke(d=>{var $;return($=d.session)==null?void 0:$.address}),l=!!n&&n.toLowerCase()===r.toLowerCase(),c=(s==null?void 0:s.name)||we(r),m=(k=(x=s==null?void 0:s.avatar)==null?void 0:x.snapshots)==null?void 0:k.face256,C=(a==null?void 0:a.cover)||tt,u=a==null?void 0:a.description,j=`${Ve.profileUrl}/${r}`,f=He.filter(d=>a==null?void 0:a.links[d]),w=Ue(qe({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(Ht,{"aria-label":`${c} storefront`,children:[e.jsxs(Ut,{children:[e.jsx(qt,{src:C,alt:"",loading:"eager"}),e.jsx(Vt,{"aria-hidden":!0})]}),(f.length>0||l)&&e.jsxs(Jt,{children:[f.map(d=>e.jsx(Qt,{"data-testid":"creator-hero-link",href:(a==null?void 0:a.links[d])??"",target:"_blank",rel:"noopener noreferrer",title:o(`creator.link.${d}`),"aria-label":o(`creator.link.${d}`),children:e.jsx(ae,{name:ro[d]})},d)),l&&e.jsx(Yt,{to:"/store-settings",title:o("creator.editStore"),"aria-label":o("creator.editStore"),children:e.jsx(ae,{name:"pen"})})]}),e.jsxs(Zt,{children:[m?e.jsx(ue,{src:m,alt:"",loading:"eager",style:{backgroundColor:w}}):e.jsx(ue,{as:"span","aria-hidden":!0,style:{backgroundColor:w}}),e.jsxs("div",{children:[e.jsx(Xt,{children:c}),u?e.jsx(eo,{children:u}):null]}),e.jsxs(to,{children:[e.jsx(oo,{"data-testid":"creator-hero-view",href:j,target:"_blank",rel:"noopener noreferrer",children:o("creator.viewProfile")}),e.jsx(Kt,{address:r,className:"creator-hero__follow"})]})]})]})}const xe=48;function jo(){var te,oe;const{address:r}=Me(),s=pe(),[a]=ze(),n=a.has("collections"),{data:l}=be(r),c=(l==null?void 0:l.name)||(r?we(r):o("creator.fallbackName"));Je({title:c,description:o("seo.creator.description",{name:c}),image:(oe=(te=l==null?void 0:l.avatar)==null?void 0:te.snapshots)==null?void 0:oe.face256});const[m,C]=g.useState("all"),[u,j]=g.useState(null),[f,w]=g.useState([]),[x,k]=g.useState(""),[d,$]=g.useState(""),[N,I]=g.useState("all"),[R,M]=g.useState(!1),[D,ke]=g.useState("newest"),[E,P]=g.useState(!1);g.useEffect(()=>{if(!E)return;const t=_=>{_.key==="Escape"&&P(!1)};document.addEventListener("keydown",t);const h=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.removeEventListener("keydown",t),document.body.style.overflow=h}},[E]);const G=x&&!Number.isNaN(Number(x))?Number(x):void 0,O=d&&!Number.isNaN(Number(d))?Number(d):void 0,$e=u?Pt[u]:void 0,Se=(ce.find(t=>t.key===D)??ce[0]).server,K={creator:r,category:m,rarities:f.length?f:void 0,wearableCategories:$e,minPriceCredits:G,maxPriceCredits:O,isWearableSmart:R||void 0,isOnSale:N==="all"?void 0:N==="on_sale",sortBy:Se},{items:z,total:Ne,isLoading:Pe,isPlaceholderData:Ee,error:H,hasNextPage:Fe,isFetchingNextPage:U,isFetchNextPageError:Le,fetchNextPage:Ae}=he(["creator-items",K],t=>le({...K,first:xe,skip:t}),{enabled:!!r&&!n}),F=Qe({queryKey:["creator-item-count",r],queryFn:()=>le({creator:r,first:1}).then(t=>t.total),enabled:!!r}),p=he(["creator-collections",r],t=>et(r,{first:xe,skip:t}).then(h=>({items:h.collections,total:h.total})),{enabled:!!r&&n});function q(t){C(t),j(null),n&&V()}function V(){const t=new URLSearchParams(a);t.delete("collections");const h=t.toString();s({search:h?`?${h}`:""},{replace:!0})}function Ie(){if(n){V();return}const t=new URLSearchParams(a);t.delete("collections");const h=t.toString();s({search:h?`?${h}&collections`:"?collections"},{replace:!0})}function J(t){w(h=>h.includes(t)?h.filter(_=>_!==t):[...h,t])}function Q(){C("all"),j(null),w([]),k(""),$(""),I("all"),M(!1)}const S=[];(m==="wearable"||m==="emote")&&S.push({key:"category",label:o(m==="emote"?"categories.emotes":"categories.wearables"),onRemove:()=>q("all")}),(G!=null||O!=null)&&S.push({key:"price",label:o("filter.price"),onRemove:()=>{k(""),$("")}});for(const t of St)f.includes(t)&&S.push({key:`rarity-${t}`,label:Ye(t),onRemove:()=>J(t)});R&&S.push({key:"smart",label:o("filter.smart"),onRemove:()=>M(!1)}),N!=="all"&&S.push({key:"status",label:N==="on_sale"?o("filter.onSale"):o("filter.notForSale"),onRemove:()=>I("all")});const L=Et({gridLoading:Pe||Ee,gridError:!!H,gridCount:z.length,baselinePending:F.isPending,baselineError:F.isError,baselineCount:F.data}),B=L==="skeletons",{data:Y}=Ze(),Z=g.useMemo(()=>z.map(t=>({...t,priceCredits:Xe(t,Y)})),[z,Y]),X=t=>t.priceCredits>0||!!t.manaWei,ee=Z.filter(X),W=L==="items"||L==="skeletons"?null:L;return e.jsxs(ot,{children:[e.jsxs(rt,{"aria-label":o("creator.breadcrumbAria"),children:[e.jsx(st,{onClick:()=>s("/items"),children:o("creator.breadcrumb")}),e.jsx("span",{children:"/"}),e.jsx(it,{children:c})]}),r?e.jsx(so,{address:r}):null,!n&&!B&&ee.length>0?e.jsx(at,{items:ee,source:"creator"}):null,e.jsxs(ct,{children:[E?e.jsx(dt,{onClick:()=>P(!1),"aria-hidden":!0}):null,e.jsxs(ht,{"data-open":E||void 0,"data-testid":"creator-sidebar",children:[e.jsxs(mt,{children:[e.jsx(ut,{children:o("assets.filters")}),e.jsx(xt,{onClick:()=>P(!1),"aria-label":o("assets.closeFilters"),children:"✕"})]}),e.jsx(pt,{children:e.jsx(gt,{category:m,subCategory:u,onCategory:q,onSub:j,priceMin:x,priceMax:d,onPriceMin:k,onPriceMax:$,rarities:f,onToggleRarity:J,status:N,onStatus:I,smart:R,onSmart:M,hideNames:!0,collections:n,onCollections:Ie})}),e.jsx(ft,{children:e.jsx(bt,{type:"button",onClick:()=>P(!1),children:o("assets.showItems")})})]}),e.jsx(wt,{children:n?e.jsxs(e.Fragment,{children:[e.jsx(nt,{children:e.jsx(lt,{children:p.isLoading?"…":o("creator.collectionsCount",{count:p.total})})}),p.error?e.jsx(T,{message:o("creator.error")}):null,e.jsx(me,{"data-variant":"collections",children:p.isLoading?e.jsx(A,{count:9}):e.jsxs(e.Fragment,{children:[p.items.map(t=>e.jsx(Ot,{collection:t,itemCount:t.itemCount},t.contractAddress)),p.isFetchingNextPage?e.jsx(A,{count:6}):null]})}),e.jsx(de,{hasNextPage:p.hasNextPage,isFetching:p.isFetchingNextPage,isError:p.isFetchNextPageError,onLoadMore:()=>void p.fetchNextPage()}),!p.isLoading&&!p.error&&p.items.length===0?e.jsx("p",{className:"muted",children:o("creator.collectionsEmpty")}):null]}):e.jsxs(e.Fragment,{children:[e.jsx(Nt,{sort:D,onSort:ke,total:Ne,loading:B,onOpenFilters:()=>P(!0),chips:S,onClearChips:Q}),H?e.jsx(T,{message:o("creator.error"),testId:"creator-error"}):null,e.jsx(me,{"data-testid":"creator-grid",children:B?e.jsx(A,{count:15}):e.jsxs(e.Fragment,{children:[Z.map(t=>X(t)?e.jsx(ne,{item:t},t.id):e.jsx(ne,{item:t,mode:"view"},t.id)),U?e.jsx(A,{count:6}):null]})}),e.jsx(de,{hasNextPage:Fe,isFetching:U,isError:Le,onLoadMore:()=>void Ae()}),W==="error"?e.jsx(T,{message:o("creator.error"),testId:"creator-empty-error"}):W==="no-creations"?e.jsx("p",{className:"muted","data-testid":"creator-empty-none",children:o("creator.emptyNoCreations")}):W==="filters"?e.jsxs(jt,{"data-testid":"creator-empty-filters",children:[e.jsxs(vt,{children:[e.jsx(yt,{children:o("creator.emptyFilters.title")}),e.jsx(Ct,{children:o("creator.emptyFilters.body",{count:F.data??0})})]}),e.jsx(kt,{children:e.jsx($t,{type:"button",onClick:Q,children:o("filterBar.clearAll")})})]}):null]})})]})]})}export{jo as Creator,jo as default};
306
+ `,ro={website:"website",twitter:"twitter",discord:"discord",facebook:"facebook"};function so({address:r}){var x,k;const{data:s}=be(r),{data:a}=Oe(r),n=Ke(d=>{var $;return($=d.session)==null?void 0:$.address}),l=!!n&&n.toLowerCase()===r.toLowerCase(),c=(s==null?void 0:s.name)||we(r),m=(k=(x=s==null?void 0:s.avatar)==null?void 0:x.snapshots)==null?void 0:k.face256,C=(a==null?void 0:a.cover)||tt,u=a==null?void 0:a.description,j=`${Ve.profileUrl}/${r}`,f=He.filter(d=>a==null?void 0:a.links[d]),w=Ue(qe({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(Ht,{"aria-label":`${c} storefront`,children:[e.jsxs(Ut,{children:[e.jsx(qt,{src:C,alt:"",loading:"eager"}),e.jsx(Vt,{"aria-hidden":!0})]}),(f.length>0||l)&&e.jsxs(Jt,{children:[f.map(d=>e.jsx(Qt,{"data-testid":"creator-hero-link",href:(a==null?void 0:a.links[d])??"",target:"_blank",rel:"noopener noreferrer",title:o(`creator.link.${d}`),"aria-label":o(`creator.link.${d}`),children:e.jsx(ae,{name:ro[d]})},d)),l&&e.jsx(Yt,{to:"/store-settings",title:o("creator.editStore"),"aria-label":o("creator.editStore"),children:e.jsx(ae,{name:"pen"})})]}),e.jsxs(Zt,{children:[m?e.jsx(ue,{src:m,alt:"",loading:"eager",style:{backgroundColor:w}}):e.jsx(ue,{as:"span","aria-hidden":!0,style:{backgroundColor:w}}),e.jsxs("div",{children:[e.jsx(Xt,{children:c}),u?e.jsx(eo,{children:u}):null]}),e.jsxs(to,{children:[e.jsx(oo,{"data-testid":"creator-hero-view",href:j,target:"_blank",rel:"noopener noreferrer",children:o("creator.viewProfile")}),e.jsx(Kt,{address:r,className:"creator-hero__follow"})]})]})]})}const xe=48;function jo(){var te,oe;const{address:r}=Me(),s=pe(),[a]=ze(),n=a.has("collections"),{data:l}=be(r),c=(l==null?void 0:l.name)||(r?we(r):o("creator.fallbackName"));Je({title:c,description:o("seo.creator.description",{name:c}),image:(oe=(te=l==null?void 0:l.avatar)==null?void 0:te.snapshots)==null?void 0:oe.face256});const[m,C]=g.useState("all"),[u,j]=g.useState(null),[f,w]=g.useState([]),[x,k]=g.useState(""),[d,$]=g.useState(""),[N,R]=g.useState("all"),[I,M]=g.useState(!1),[D,ke]=g.useState("newest"),[P,E]=g.useState(!1);g.useEffect(()=>{if(!P)return;const t=_=>{_.key==="Escape"&&E(!1)};document.addEventListener("keydown",t);const h=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.removeEventListener("keydown",t),document.body.style.overflow=h}},[P]);const G=x&&!Number.isNaN(Number(x))?Number(x):void 0,O=d&&!Number.isNaN(Number(d))?Number(d):void 0,$e=u?Et[u]:void 0,Se=(ce.find(t=>t.key===D)??ce[0]).server,K={creator:r,category:m,rarities:f.length?f:void 0,wearableCategories:$e,minPriceCredits:G,maxPriceCredits:O,isWearableSmart:I||void 0,isOnSale:N==="all"?void 0:N==="on_sale",sortBy:Se},{items:z,total:Ne,isLoading:Ee,isPlaceholderData:Pe,error:H,hasNextPage:Fe,isFetchingNextPage:U,isFetchNextPageError:Le,fetchNextPage:Ae}=he(["creator-items",K],t=>le({...K,first:xe,skip:t}),{enabled:!!r&&!n}),F=Qe({queryKey:["creator-item-count",r],queryFn:()=>le({creator:r,first:1}).then(t=>t.total),enabled:!!r}),p=he(["creator-collections",r],t=>et(r,{first:xe,skip:t}).then(h=>({items:h.collections,total:h.total})),{enabled:!!r&&n});function q(t){C(t),j(null),n&&V()}function V(){const t=new URLSearchParams(a);t.delete("collections");const h=t.toString();s({search:h?`?${h}`:""},{replace:!0})}function Re(){if(n){V();return}const t=new URLSearchParams(a);t.delete("collections");const h=t.toString();s({search:h?`?${h}&collections`:"?collections"},{replace:!0})}function J(t){w(h=>h.includes(t)?h.filter(_=>_!==t):[...h,t])}function Q(){C("all"),j(null),w([]),k(""),$(""),R("all"),M(!1)}const S=[];(m==="wearable"||m==="emote")&&S.push({key:"category",label:o(m==="emote"?"categories.emotes":"categories.wearables"),onRemove:()=>q("all")}),(G!=null||O!=null)&&S.push({key:"price",label:o("filter.price"),onRemove:()=>{k(""),$("")}});for(const t of St)f.includes(t)&&S.push({key:`rarity-${t}`,label:Ye(t),onRemove:()=>J(t)});I&&S.push({key:"smart",label:o("filter.smart"),onRemove:()=>M(!1)}),N!=="all"&&S.push({key:"status",label:N==="on_sale"?o("filter.onSale"):o("filter.notForSale"),onRemove:()=>R("all")});const L=Pt({gridLoading:Ee||Pe,gridError:!!H,gridCount:z.length,baselinePending:F.isPending,baselineError:F.isError,baselineCount:F.data}),B=L==="skeletons",{data:Y}=Ze(),Z=g.useMemo(()=>z.map(t=>({...t,priceCredits:Xe(t,Y)})),[z,Y]),X=t=>t.priceCredits>0||!!t.manaWei,ee=Z.filter(X),W=L==="items"||L==="skeletons"?null:L;return e.jsxs(ot,{children:[e.jsxs(rt,{"aria-label":o("creator.breadcrumbAria"),children:[e.jsx(st,{onClick:()=>s("/items"),children:o("creator.breadcrumb")}),e.jsx("span",{children:"/"}),e.jsx(it,{children:c})]}),r?e.jsx(so,{address:r}):null,!n&&!B&&ee.length>0?e.jsx(at,{items:ee,source:"creator"}):null,e.jsxs(ct,{children:[P?e.jsx(dt,{onClick:()=>E(!1),"aria-hidden":!0}):null,e.jsxs(ht,{"data-open":P||void 0,"data-testid":"creator-sidebar",children:[e.jsxs(mt,{children:[e.jsx(ut,{children:o("assets.filters")}),e.jsx(xt,{onClick:()=>E(!1),"aria-label":o("assets.closeFilters"),children:"✕"})]}),e.jsx(pt,{children:e.jsx(gt,{category:m,subCategory:u,onCategory:q,onSub:j,priceMin:x,priceMax:d,onPriceMin:k,onPriceMax:$,rarities:f,onToggleRarity:J,status:N,onStatus:R,smart:I,onSmart:M,hideNames:!0,collections:n,onCollections:Re})}),e.jsx(ft,{children:e.jsx(bt,{type:"button",onClick:()=>E(!1),children:o("assets.showItems")})})]}),e.jsx(wt,{children:n?e.jsxs(e.Fragment,{children:[e.jsx(nt,{children:e.jsx(lt,{children:p.isLoading?"…":o("creator.collectionsCount",{count:p.total})})}),p.error?e.jsx(T,{message:o("creator.error")}):null,e.jsx(me,{"data-variant":"collections",children:p.isLoading?e.jsx(A,{count:9}):e.jsxs(e.Fragment,{children:[p.items.map(t=>e.jsx(Ot,{collection:t,itemCount:t.itemCount},t.contractAddress)),p.isFetchingNextPage?e.jsx(A,{count:6}):null]})}),e.jsx(de,{hasNextPage:p.hasNextPage,isFetching:p.isFetchingNextPage,isError:p.isFetchNextPageError,onLoadMore:()=>void p.fetchNextPage()}),!p.isLoading&&!p.error&&p.items.length===0?e.jsx("p",{className:"muted",children:o("creator.collectionsEmpty")}):null]}):e.jsxs(e.Fragment,{children:[e.jsx(Nt,{sort:D,onSort:ke,total:Ne,loading:B,onOpenFilters:()=>E(!0),chips:S,onClearChips:Q}),H?e.jsx(T,{message:o("creator.error"),testId:"creator-error"}):null,e.jsx(me,{"data-testid":"creator-grid",children:B?e.jsx(A,{count:15}):e.jsxs(e.Fragment,{children:[Z.map(t=>X(t)?e.jsx(ne,{item:t},t.id):e.jsx(ne,{item:t,mode:"view"},t.id)),U?e.jsx(A,{count:6}):null]})}),e.jsx(de,{hasNextPage:Fe,isFetching:U,isError:Le,onLoadMore:()=>void Ae()}),W==="error"?e.jsx(T,{message:o("creator.error"),testId:"creator-empty-error"}):W==="no-creations"?e.jsx("p",{className:"muted","data-testid":"creator-empty-none",children:o("creator.emptyNoCreations")}):W==="filters"?e.jsxs(jt,{"data-testid":"creator-empty-filters",children:[e.jsxs(vt,{children:[e.jsx(yt,{children:o("creator.emptyFilters.title")}),e.jsx(Ct,{children:o("creator.emptyFilters.body",{count:F.data??0})})]}),e.jsx(kt,{children:e.jsx($t,{type:"button",onClick:Q,children:o("filterBar.clearAll")})})]}):null]})})]})]})}export{jo as Creator,jo as default};
@@ -1 +1 @@
1
- import{j as r}from"./react-DehiWSvs.js";import{I as i}from"./index-B1DCMe50.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-DehiWSvs.js";import{I as i}from"./index-DyLYzoRb.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-hR4mAmko.js";import{g as T,a as W,f as b,b as _,c as v}from"./index-DDiCv4U4.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-BzvCvXax.js";import{g as T,a as W,f as b,b as _,c as v}from"./index-ICnT6kXr.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};
@@ -0,0 +1,168 @@
1
+ import{r as h,j as o}from"./react-DehiWSvs.js";import{t as e,s as a,d as r,I as w}from"./index-DyLYzoRb.js";const b=a.section`
2
+ display: flex;
3
+ flex-direction: column;
4
+ gap: 36px;
5
+ font-family: ${e.font.sans};
6
+
7
+ &[data-tone='on-dark'] {
8
+ align-items: center;
9
+ }
10
+
11
+ ${e.media.maxWidth("mobile")} {
12
+ gap: 24px;
13
+ }
14
+ `,m=a.h2`
15
+ margin: 0;
16
+ font-size: 20px;
17
+ font-weight: 700;
18
+ line-height: 1.167;
19
+ color: ${e.colors.text2};
20
+
21
+ [data-tone='on-dark'] & {
22
+ font-size: 32px;
23
+ color: ${e.colors.white};
24
+ text-align: center;
25
+ }
26
+
27
+ ${e.media.maxWidth("mobile")} {
28
+ font-size: 18px;
29
+
30
+ [data-tone='on-dark'] & {
31
+ font-size: 24px;
32
+ }
33
+ }
34
+ `,k=a.div`
35
+ display: flex;
36
+ flex-direction: column;
37
+ gap: 24px;
38
+ width: 100%;
39
+ `,v=a.div`
40
+ border-radius: ${e.radius.pill};
41
+
42
+ &[data-open='true'] {
43
+ border-radius: 42px;
44
+ overflow: hidden;
45
+ border: 0.5px solid ${e.colors.text2};
46
+ }
47
+
48
+ [data-tone='on-dark'] &[data-open='true'] {
49
+ background: rgba(0, 0, 0, 0.1);
50
+ /* 1px when open, 0.5px closed — the design thickens the outline as the row takes over the page. */
51
+ border: 1px solid ${e.colors.white};
52
+ }
53
+ `,$=a.button`
54
+ appearance: none;
55
+ width: 100%;
56
+ display: flex;
57
+ align-items: center;
58
+ gap: 2px;
59
+ padding: 24px;
60
+ border: none;
61
+ border-radius: inherit;
62
+ background: rgba(0, 0, 0, 0.05);
63
+ font-family: inherit;
64
+ font-size: 20px;
65
+ font-weight: 600;
66
+ line-height: 1.43;
67
+ /* Gray 0 closed, Soft Black 2 open: the question darkens as it becomes the heading of a section. */
68
+ color: ${e.colors.gray0};
69
+ text-align: left;
70
+ cursor: pointer;
71
+ transition:
72
+ background-color 120ms ease,
73
+ box-shadow 120ms ease,
74
+ color 120ms ease;
75
+
76
+ &[data-open='true'] {
77
+ color: ${e.colors.text2};
78
+ /* The header keeps square bottom corners while the answer sits under it. */
79
+ border-radius: 42px 42px 0 0;
80
+ }
81
+
82
+ /* No hover variant exists for the light mode in the design, so this is the smallest honest reading of
83
+ one: the same fill, a step darker. Inventing the dark mode's 3px white ring here would have put a
84
+ border on a row that has none. */
85
+ &:hover {
86
+ background: rgba(0, 0, 0, 0.08);
87
+ }
88
+
89
+ &:focus-visible {
90
+ outline: 2px solid ${e.colors.text2};
91
+ outline-offset: 2px;
92
+ }
93
+
94
+ [data-tone='on-dark'] & {
95
+ background: rgba(0, 0, 0, 0.1);
96
+ border: 0.5px solid ${e.colors.white};
97
+ color: ${e.colors.white};
98
+ }
99
+
100
+ /* On hover the dark skin deepens its fill and takes its outline from 0.5px to 3px.
101
+ The extra 2.5px is an INSET SHADOW, not a fatter border. border-box keeps the outer box fixed, but
102
+ height here is auto — content + padding + BORDER — so growing the border 0.5px → 3px added 5px of
103
+ height and shoved every row below it down as the pointer crossed. A box-shadow takes no part in
104
+ layout, so the stroke thickens inward from the same outer edge and nothing moves. (The pack cards
105
+ hit this same trap and solve it with a masked pseudo-element; they need one because their stroke is a
106
+ gradient, which a border cannot paint. This one is flat white, so the shadow is enough.)
107
+ 0.5 + 2.5 = the designed 3px. */
108
+ [data-tone='on-dark'] &:hover {
109
+ background: rgba(0, 0, 0, 0.3);
110
+ box-shadow: inset 0 0 0 2.5px ${e.colors.white};
111
+ }
112
+
113
+ /* border-color, not "border: none": dropping the border outright would take its 0.5px out of the
114
+ height as well, so opening a row would nudge it by 1px on top of the answer appearing. The background
115
+ paints under the border area (background-clip defaults to border-box), so the transparent hairline
116
+ shows this header's own fill, not the shell behind it. */
117
+ [data-tone='on-dark'] &[data-open='true'] {
118
+ background: rgba(255, 255, 255, 0.2);
119
+ border-color: transparent;
120
+ box-shadow: none;
121
+ }
122
+
123
+ [data-tone='on-dark'] &:focus-visible {
124
+ outline-color: ${e.colors.white};
125
+ }
126
+
127
+ ${e.media.maxWidth("mobile")} {
128
+ padding: 16px;
129
+ font-size: 16px;
130
+ }
131
+ `,q=a.span`
132
+ flex: 1 0 0;
133
+ min-width: 0;
134
+ /* The design sets the question nowrap at 1423px, where every one of them fits on a line. At the Shop's
135
+ widths they do not, so wrapping is the faithful reading of the intent — a clipped question is not. */
136
+ overflow-wrap: break-word;
137
+ `,j=a.span`
138
+ flex-shrink: 0;
139
+ display: flex;
140
+ transition: transform 160ms ease;
141
+
142
+ &[data-open='false'] {
143
+ transform: rotate(180deg);
144
+ }
145
+
146
+ @media (prefers-reduced-motion: reduce) {
147
+ transition: none;
148
+ }
149
+ `,y=a.div`
150
+ padding: 32px 24px;
151
+ font-size: 20px;
152
+ font-weight: 400;
153
+ line-height: 1.5;
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;
159
+
160
+ [data-tone='on-dark'] & {
161
+ color: ${e.colors.white};
162
+ }
163
+
164
+ ${e.media.maxWidth("mobile")} {
165
+ padding: 20px 16px;
166
+ font-size: 16px;
167
+ }
168
+ `;function I({title:l,entries:p,tone:c="light",className:x}){const[u,g]=h.useState(()=>new Set),s=h.useId();function f(t){g(n=>{const i=new Set(n);return i.delete(t)||i.add(t),i})}return o.jsxs(b,{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:()=>f(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(w,{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};