@dcl/shop 0.1.0-30897342413.commit-036e931 → 0.1.0-30903100943.commit-cfb5121

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 (180) hide show
  1. package/_assets/{Activity-DUBRQnWV.js → Activity-COPN1oEb.js} +1 -1
  2. package/_assets/{AnimatedBackground-CmAZhAYA.js → AnimatedBackground-D4Ktoyt4.js} +1 -1
  3. package/_assets/{Assets-NRrjcYA5.js → Assets-CzRI4yu1.js} +7 -7
  4. package/_assets/{Assets.styles-3wC-xeWp.js → Assets.styles-DEZ9a_GD.js} +1 -1
  5. package/_assets/{Authorizations-aNMRQo6Q.js → Authorizations-B0Pwosn7.js} +1 -1
  6. package/_assets/{Cart-zIOhAh9c.js → Cart-8yxyOMFq.js} +2 -2
  7. package/_assets/{CircularProgress-LjKPNQUw.js → CircularProgress-_0gSPNcC.js} +1 -1
  8. package/_assets/{Collection-C46Ze7ov.js → Collection-BNupOSqS.js} +1 -1
  9. package/_assets/{CollectionCarousel-B71TAj46.js → CollectionCarousel-CDNotQwG.js} +1 -1
  10. package/_assets/{Creator-D7kFPPn9.js → Creator-kdxiJJNF.js} +1 -1
  11. package/_assets/{ErrorNotice-DNbl0Lx6.js → ErrorNotice-6S2ayRHK.js} +1 -1
  12. package/_assets/{ExchangeController-B1JcnenY.js → ExchangeController-11B8Didx.js} +1 -1
  13. package/_assets/{GetCredits-BLKTlUHn.js → GetCredits-eFL8Gd7X.js} +60 -24
  14. package/_assets/{HelpersUtil-B004FVhm.js → HelpersUtil-Bto4kwHu.js} +1 -1
  15. package/_assets/{ImportListings-CyzEyfcm.js → ImportListings-D3H-40Vh.js} +1 -1
  16. package/_assets/{ItemDetail-apY0RKkT.js → ItemDetail-qMRlyp0m.js} +3 -3
  17. package/_assets/{LoadMore-CvF1ryR6.js → LoadMore-COkJGWsB.js} +1 -1
  18. package/_assets/{MenuList-BmbNiqyv.js → MenuList-BVkS7rPq.js} +1 -1
  19. package/_assets/{MyAssets-ClsL7CoM.js → MyAssets-Bk8E7-3O.js} +1 -1
  20. package/_assets/{MyFavorites-VWLNpe0r.js → MyFavorites-DxsLDfOF.js} +1 -1
  21. package/_assets/{NotFound-DQHwDF1N.js → NotFound-BGXTL5g4.js} +1 -1
  22. package/_assets/{NotificationsBell-C5ky0lqZ.js → NotificationsBell-BdXSXxoi.js} +1 -1
  23. package/_assets/{StoreSettings-CgbxKhUS.js → StoreSettings-Ct8rsmjt.js} +1 -1
  24. package/_assets/{Success-C_SNXVeS.js → Success-CVU4jEw2.js} +1 -1
  25. package/_assets/{SwapController-DjUyjCYK.js → SwapController-DKM9_drr.js} +1 -1
  26. package/_assets/{Tooltip-VDc8mbHU.js → Tooltip-3y4DnUZl.js} +1 -1
  27. package/_assets/{TradeService-T7Ac3zPB.js → TradeService-M0ORTST0.js} +1 -1
  28. package/_assets/{W3MFrameProviderSingleton-BGLSOpiV.js → W3MFrameProviderSingleton-BJW4ebEt.js} +3 -3
  29. package/_assets/{WebCryptoP256-D7qVD_y0.js → WebCryptoP256-Q8DCxoH7.js} +1 -1
  30. package/_assets/{authorizations-BTC_bFln.js → authorizations-JSOY6ArB.js} +1 -1
  31. package/_assets/{basic-8iVIK2Fo.js → basic-CL-AAo1G.js} +1 -1
  32. package/_assets/{biconomy-BreMnkVT.js → biconomy-8Mt6lCpX.js} +1 -1
  33. package/_assets/{browseLayout.styles-De0FGl5x.js → browseLayout.styles-CwDiK1mG.js} +1 -1
  34. package/_assets/{builder-C4njBf3q.js → builder-Biq1yQgT.js} +1 -1
  35. package/_assets/{buy-myGa3uAa.js → buy-DTB3xpDX.js} +1 -1
  36. package/_assets/{buy-gasless-aqj0tOF3.js → buy-gasless-C9C0u3NU.js} +1 -1
  37. package/_assets/{categories-A3Tq54j-.js → categories-BqS-qyq6.js} +1 -1
  38. package/_assets/{ccip-BeYige_y.js → ccip-C-gvRqi4.js} +1 -1
  39. package/_assets/{ccip-NXlbV8_q.js → ccip-Dg2AIV_h.js} +1 -1
  40. package/_assets/{clsx-BETN9X51.js → clsx-3D8Gvjd6.js} +1 -1
  41. package/_assets/{controller-DL4fylV8.js → controller-zP9LZHG8.js} +2 -2
  42. package/_assets/{core-D8ptIKw3.js → core-ByomFIcR.js} +4 -4
  43. package/_assets/{createSvgIcon-sbUQV66i.js → createSvgIcon--KCu3mQi.js} +1 -1
  44. package/_assets/{custom-BgXN6B3q.js → custom-DVYkMp5n.js} +1 -1
  45. package/_assets/{data-capture-C-JR2KzF.js → data-capture-EB6mxn_K.js} +1 -1
  46. package/_assets/{email-DpFveLJ0.js → email-Ye0p9P8Q.js} +1 -1
  47. package/_assets/{embedded-wallet-C2gUO5wT.js → embedded-wallet-CGoVzP7f.js} +1 -1
  48. package/_assets/{emotion-styled.browser.esm-DH8Xabrh.js → emotion-styled.browser.esm-Dn08UyTd.js} +1 -1
  49. package/_assets/{engine-5oCjjcrK.js → engine-Dp6sxgpw.js} +1 -1
  50. package/_assets/{errors-DqL59l4z.js → errors-Bj3SjlpX.js} +1 -1
  51. package/_assets/{estimate-l1-fee-BujsJkmp.js → estimate-l1-fee-Cc-Hn0JH.js} +1 -1
  52. package/_assets/{execute-BvpVcytD.js → execute-DEi9TgB2.js} +2 -2
  53. package/_assets/{features-hynqqeoJ.js → features-gpHPkHzw.js} +1 -1
  54. package/_assets/{fetchTokenMetadata-BnJnLsZ6.js → fetchTokenMetadata-Ra0c0GwR.js} +2 -2
  55. package/_assets/{get-ecosystem-wallet-info-DQdOd1yi.js → get-ecosystem-wallet-info-9p7i45R2.js} +1 -1
  56. package/_assets/{getBalance-x0HlsVC8.js → getBalance-BPqaF9kw.js} +1 -1
  57. package/_assets/{getNFT-U6fW1c3o.js → getNFT-Bfk2HgRC.js} +1 -1
  58. package/_assets/{getNFT-BmIGxF2X.js → getNFT-DLY4PgPX.js} +1 -1
  59. package/_assets/{getThemeProps-BzsYMuYq.js → getThemeProps-CnXSHx3q.js} +1 -1
  60. package/_assets/{grid.styles-B36wgJRU.js → grid.styles-Dnnyw76z.js} +1 -1
  61. package/_assets/{hashTypedData-D5cKiuOe.js → hashTypedData-Dg1gWYZ1.js} +1 -1
  62. package/_assets/{hashTypedData-BtyGAAso.js → hashTypedData-h1iD1tUS.js} +1 -1
  63. package/_assets/{import-Da0nCdcK.js → import-C0DSObrV.js} +1 -1
  64. package/_assets/{in-app-tkTqoTeW.js → in-app-Dc0ubTKN.js} +1 -1
  65. package/_assets/{in-app-wallet-calls-Dyb8JyC6.js → in-app-wallet-calls-DAEOP0UK.js} +1 -1
  66. package/_assets/{index-BGOR7uqp.js → index-1pLrpdjR.js} +1 -1
  67. package/_assets/{index-C3EyLY1t.js → index-2pVHJLxW.js} +1 -1
  68. package/_assets/{index-BrAm6VBC.js → index-Ao5E92z8.js} +1 -1
  69. package/_assets/{index-Sc6q1Ecn.js → index-B3HbKd_C.js} +1 -1
  70. package/_assets/{index-BnaX4TbU.js → index-B6Fs-ly-.js} +1 -1
  71. package/_assets/{index-DI_IjAcF.js → index-B8qQ9Xxb.js} +186 -136
  72. package/_assets/{index-DFUj2qC_.js → index-BM1FRjnS.js} +1 -1
  73. package/_assets/{index-D05mgWf9.js → index-BNtMsGNE.js} +1 -1
  74. package/_assets/{index-B6RSvfuU.js → index-BOnfcMc4.js} +1 -1
  75. package/_assets/{index-rT-FK12h.js → index-BQCPF_JE.js} +1 -1
  76. package/_assets/{index-Dc05m3c2.js → index-BUZUrnlT.js} +1 -1
  77. package/_assets/{index-DfFeZ6Vp.js → index-BamkywF1.js} +1 -1
  78. package/_assets/{index-D_k1yIWZ.js → index-BbnJ0vOM.js} +1 -1
  79. package/_assets/{index-BCMTVfZb.js → index-BdOwsIe5.js} +1 -1
  80. package/_assets/{index-CCOhxr4Y.js → index-BhJHWAVJ.js} +3 -3
  81. package/_assets/{index-D8MKf1c9.js → index-Bl758CqY.js} +1 -1
  82. package/_assets/{index-HLQrRyOg.js → index-BxIpnJ-e.js} +1 -1
  83. package/_assets/{index-DeajtqZQ.js → index-C-b_AO6R.js} +1 -1
  84. package/_assets/{index-B_EmM_OX.js → index-CG7tIraF.js} +1 -1
  85. package/_assets/{index-Beqa_Gje.js → index-CGW79JV0.js} +1 -1
  86. package/_assets/{index-CPOONJNk.js → index-CKkr1ttw.js} +1 -1
  87. package/_assets/{index-DxM-to32.js → index-CMIJ-ZVj.js} +3 -3
  88. package/_assets/{index-C184oxsV.js → index-COHrUo7z.js} +1 -1
  89. package/_assets/{index-BNnslvoC.js → index-CXgEBMJX.js} +1 -1
  90. package/_assets/{index-DheZlekn.js → index-CbtJGEzL.js} +3 -3
  91. package/_assets/{index-BarS2mgL.js → index-CduQbEdH.js} +1 -1
  92. package/_assets/{index-UHqRfL2i.js → index-CfekU9H3.js} +1 -1
  93. package/_assets/{index-BX7nt43X.js → index-Ck2_-x0t.js} +1 -1
  94. package/_assets/{index-VL-eJTDX.js → index-CvBvIAAr.js} +1 -1
  95. package/_assets/{index-BJhXMkl3.js → index-CxY85bhM.js} +2 -2
  96. package/_assets/{index-hdy1vdaF.js → index-D0MHCwdz.js} +1 -1
  97. package/_assets/{index-Dent5zap.js → index-D3oCO2M2.js} +1 -1
  98. package/_assets/{index-ByCGiKUv.js → index-D4coZIYk.js} +1 -1
  99. package/_assets/{index-Cd7uOoEN.js → index-D8KhhQnq.js} +1 -1
  100. package/_assets/{index-VOzIxfGw.js → index-D8q7Jz9s.js} +1 -1
  101. package/_assets/{index-BSfKLWot.js → index-DDvI0nc8.js} +1 -1
  102. package/_assets/{index-DCH4Sk36.js → index-DH0c2sDT.js} +1 -1
  103. package/_assets/{index-DxM-zc2w.js → index-DIxy9dSs.js} +1 -1
  104. package/_assets/{index-BJaBIZon.js → index-DKa2ijHa.js} +2 -2
  105. package/_assets/{index-CZuEgdES.js → index-DMj5fO9M.js} +1 -1
  106. package/_assets/{index-uIjOgtMi.js → index-DaOQeGvk.js} +1 -1
  107. package/_assets/{index-Dya8ahcx.js → index-DftWUdZW.js} +1 -1
  108. package/_assets/{index-8AINMf2V.js → index-DwkSO4Fj.js} +1 -1
  109. package/_assets/{index-CnNlT6GN.js → index-Dy_LMTRI.js} +1 -1
  110. package/_assets/{index-Nj11N1Vp.js → index-DztT3S7O.js} +1 -1
  111. package/_assets/{index-B-ELrI2-.js → index-J95gyscE.js} +1 -1
  112. package/_assets/{index-Bg9_Rb37.js → index-LeLZ_uWV.js} +1 -1
  113. package/_assets/{index-mSffj-0T.js → index-gE5SSQSY.js} +2 -2
  114. package/_assets/{index-FsUhf4jJ.js → index-hqGVy2_2.js} +1 -1
  115. package/_assets/{index-C7Dd_OFn.js → index-m2y-Tbkf.js} +1 -1
  116. package/_assets/{index--n_fMjyX.js → index-pFuDxg7C.js} +1 -1
  117. package/_assets/{index.es-Ca2F0FMx.js → index.es-CJ664SSa.js} +4 -4
  118. package/_assets/{index.es-DIF91egA.js → index.es-Da4QGzPK.js} +1 -1
  119. package/_assets/{index.es-creG5doh.js → index.es-euS_bME-.js} +1 -1
  120. package/_assets/{localBatchGatewayRequest-DsmOioor.js → localBatchGatewayRequest-B0RWHv93.js} +1 -1
  121. package/_assets/{mana-convert-CTsfw0Op.js → mana-convert-Bbf4K53E.js} +1 -1
  122. package/_assets/{mana-rate-BxYQ9xUU.js → mana-rate-LTr19y4S.js} +1 -1
  123. package/_assets/{networks-cAv5X6o3.js → networks--5_T3A9T.js} +1 -1
  124. package/_assets/{onramp-g7sfARS-.js → onramp-9Nrqe-Pb.js} +1 -1
  125. package/_assets/{openzeppelin-BCr3n-Wo.js → openzeppelin-D0j0nh8u.js} +1 -1
  126. package/_assets/{parseNft-BhL_ChhV.js → parseNft-BSSsDQ8Z.js} +2 -2
  127. package/_assets/{parseSignature-DvfiZIZV.js → parseSignature-BQoanGXT.js} +1 -1
  128. package/_assets/{parseSignature--tz_iwev.js → parseSignature-DItIXRz8.js} +3 -3
  129. package/_assets/{passkeys-Bvs56mq5.js → passkeys-DVMTGRYE.js} +1 -1
  130. package/_assets/{pay-with-exchange-XkI8_OCE.js → pay-with-exchange-iX-Lps6l.js} +1 -1
  131. package/_assets/{qr-overlay-Bk2XZPWy.js → qr-overlay-CVyo7Lhb.js} +1 -1
  132. package/_assets/{receive-BMeT0Lz-.js → receive-BsGerVVU.js} +1 -1
  133. package/_assets/{resolveImplementation-Bx83F7NY.js → resolveImplementation-BdMovGG8.js} +1 -1
  134. package/_assets/{rpc-DbNw9jL1.js → rpc-C1Rk473V.js} +1 -1
  135. package/_assets/{secp256k1-gVzAYZdt.js → secp256k1-9MwhCLRe.js} +1 -1
  136. package/_assets/{secp256k1-k_sy808b.js → secp256k1-CXpi7m_i.js} +1 -1
  137. package/_assets/{secp256k1-BEusWpwQ.js → secp256k1-CwDWkDbO.js} +1 -1
  138. package/_assets/{send-CXMx0Ee3.js → send-C1TRj4n-.js} +1 -1
  139. package/_assets/{send-batch-transaction-CDuCIKM-.js → send-batch-transaction-CDPqPn4J.js} +1 -1
  140. package/_assets/{send-eip712-transaction-BeDgEcMv.js → send-eip712-transaction-Mh2T82Oq.js} +2 -2
  141. package/_assets/{send-gasless-transaction-B3NobiIc.js → send-gasless-transaction-DtFmbkdG.js} +2 -2
  142. package/_assets/{send-transaction-SAvzY1Zv.js → send-transaction-DHjJaG56.js} +2 -2
  143. package/_assets/{sendMetaTransaction-BLHMOdHq.js → sendMetaTransaction-B3nckO8c.js} +1 -1
  144. package/_assets/{sendRawTransaction-DEpVlnFQ.js → sendRawTransaction-D6RRi1sI.js} +3 -3
  145. package/_assets/{serializeTransaction-BeikLUOw.js → serializeTransaction-Cd3BF0ey.js} +1 -1
  146. package/_assets/{session-proposal-CXFPx6Nc.js → session-proposal-DDdOs_nB.js} +1 -1
  147. package/_assets/{session-request-yTpVxJp5.js → session-request-DXQbFUGh.js} +2 -2
  148. package/_assets/{signing-ClnsTXrn.js → signing-DPyzvfGK.js} +3 -3
  149. package/_assets/{socials-vhiZxWBx.js → socials-Bxqg_eUk.js} +1 -1
  150. package/_assets/{swaps-BYey02hd.js → swaps-C-Cb_93V.js} +1 -1
  151. package/_assets/{thirdweb-M2_jjUS_.js → thirdweb-B_cmyHun.js} +3 -3
  152. package/_assets/{to-serializable-transaction-BTD2tsYD.js → to-serializable-transaction-Ccol8OTd.js} +2 -2
  153. package/_assets/{trade-encoding-BVlmzFE-.js → trade-encoding-CjafzO-R.js} +1 -1
  154. package/_assets/{transactionReceipt-OZUBm-CR.js → transactionReceipt-DjSnbHOR.js} +1 -1
  155. package/_assets/{transactions-CHSrtQ-4.js → transactions-Cwjx3u4Y.js} +1 -1
  156. package/_assets/{useCreditPacks-DkU8BJEb.js → useCreditPacks-CcsRRofr.js} +1 -1
  157. package/_assets/{useInfiniteGrid-NfDPHWXi.js → useInfiniteGrid-jYXiF9Ls.js} +1 -1
  158. package/_assets/useManaRate-BezWDX4Q.js +1 -0
  159. package/_assets/{useSecondarySales-Caon2E63.js → useSecondarySales-DVrg7pqD.js} +1 -1
  160. package/_assets/{useStore-TorFHABK.js → useStore-Du3YYL1J.js} +1 -1
  161. package/_assets/{useTheme-D346drKA.js → useTheme-DPli5iET.js} +1 -1
  162. package/_assets/{verifyHash-C_z3J9Yf.js → verifyHash-BJtX_GOJ.js} +1 -1
  163. package/_assets/{w3m-modal-BCtgJ1Ma.js → w3m-modal-BGOVySb5.js} +1 -1
  164. package/_assets/{w3m-modal-DyyYMui-.js → w3m-modal-CkXrZjMo.js} +1 -1
  165. package/_assets/{wait-for-tx-receipt-SA_Mo0zv.js → wait-for-tx-receipt-BXzCDbp8.js} +1 -1
  166. package/_assets/{wallets-CiVaPBHB.js → wallets-lC7V_6IF.js} +5 -5
  167. package/_assets/{web-connector-Cc9dNw1Y.js → web-connector-Cy9zFti1.js} +3 -3
  168. package/_assets/{writeContract-BSMHcTCt.js → writeContract-BZaMqPJ8.js} +1 -1
  169. package/_assets/{zoraTestnet-CftGmIvi.js → zoraTestnet-CDtuoGbV.js} +1 -1
  170. package/dcl-mark.png +0 -0
  171. package/index.html +15 -15
  172. package/package.json +2 -2
  173. package/site.webmanifest +11 -22
  174. package/_assets/useManaRate-BV_Xzv0_.js +0 -1
  175. package/apple-touch-icon.png +0 -0
  176. package/favicon-maskable.svg +0 -17
  177. package/favicon.svg +0 -17
  178. package/icon-192.png +0 -0
  179. package/icon-512.png +0 -0
  180. package/icon-maskable-512.png +0 -0
@@ -1,4 +1,4 @@
1
- import{b as xe,u as ue,r as l,j as t}from"./react-vyZjIDcS.js";import{s as i,t as e,x as T,m as he,e as r,h as p,n as ge,D as fe,ar as f,ap as me,l as N,az as H,I as re,aj as D,z as E,aS as K}from"./index-DI_IjAcF.js";import{R as O}from"./resume-buy-Bf0zIH7y.js";import{u as be,a as we,R as ye,c as ke,i as Ce,b as je}from"./useCreditPacks-DkU8BJEb.js";import"./sentry-B35L1FdR.js";import"./dcl-schemas-BICTSpB5.js";import"./ethers-CXBJm_wN.js";import"./intl-CBcMB1D2.js";import"./mana-convert-CTsfw0Op.js";const P="https://cdn.decentraland.org/@dcl/shop/0.1.0-30897342413.commit-036e931/_assets/pack-coins-BDh1ZDbh.webp",ne="https://cdn.decentraland.org/@dcl/shop/0.1.0-30897342413.commit-036e931/_assets/pack-stacks-D-V2jSHW.webp",se="https://cdn.decentraland.org/@dcl/shop/0.1.0-30897342413.commit-036e931/_assets/pack-chest-BX_j84xW.webp",$e="https://cdn.decentraland.org/@dcl/shop/0.1.0-30897342413.commit-036e931/_assets/credit-coin-CmcTCd5i.webp",ve="data:image/svg+xml,%3csvg%20width='60'%20height='60'%20viewBox='0%200%2060%2060'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20width='60'%20height='60'%20rx='30'%20fill='%2334CE77'/%3e%3cpath%20d='M21.6583%2046.1067L11.4656%2036.0591C10.1688%2034.829%2010.1905%2032.7207%2011.4769%2031.4622L13.6868%2029.3591C14.9732%2028.1006%2017.1615%2028.1058%2018.4582%2029.3359L23.8747%2034.6197L41.9704%2015.6527C43.2568%2014.3942%2045.4291%2014.2093%2046.7258%2015.4394L48.8765%2017.3628C50.1732%2018.5929%2050.3491%2020.6844%2049.0626%2021.9429L26.6112%2045.8766C25.1433%2047.342%2022.955%2047.3368%2021.6583%2046.1067Z'%20fill='%23FCFCFC'/%3e%3c/svg%3e",Se="https://cdn.decentraland.org/@dcl/shop/0.1.0-30897342413.commit-036e931/_assets/packs-backdrop-BcXiUPeP.webp",Y="linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0)",Pe=i.div`
1
+ import{b as he,u as xe,r as l,j as t}from"./react-vyZjIDcS.js";import{s as i,t as e,x as E,m as ue,e as r,h as p,n as ge,D as fe,ar as f,ap as me,l as H,az as N,I as re,aj as D,z as B,aS as K}from"./index-B8qQ9Xxb.js";import{R as O}from"./resume-buy-Bf0zIH7y.js";import{u as be,a as we,R as ye,c as ke,i as Ce,b as ve}from"./useCreditPacks-CcsRRofr.js";import"./sentry-B35L1FdR.js";import"./dcl-schemas-BICTSpB5.js";import"./ethers-CXBJm_wN.js";import"./intl-CBcMB1D2.js";import"./mana-convert-Bbf4K53E.js";const P="https://cdn.decentraland.org/@dcl/shop/0.1.0-30903100943.commit-cfb5121/_assets/pack-coins-BDh1ZDbh.webp",ne="https://cdn.decentraland.org/@dcl/shop/0.1.0-30903100943.commit-cfb5121/_assets/pack-stacks-D-V2jSHW.webp",oe="https://cdn.decentraland.org/@dcl/shop/0.1.0-30903100943.commit-cfb5121/_assets/pack-chest-BX_j84xW.webp",je="https://cdn.decentraland.org/@dcl/shop/0.1.0-30903100943.commit-cfb5121/_assets/credit-coin-CmcTCd5i.webp",$e="data:image/svg+xml,%3csvg%20width='60'%20height='60'%20viewBox='0%200%2060%2060'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20width='60'%20height='60'%20rx='30'%20fill='%2334CE77'/%3e%3cpath%20d='M21.6583%2046.1067L11.4656%2036.0591C10.1688%2034.829%2010.1905%2032.7207%2011.4769%2031.4622L13.6868%2029.3591C14.9732%2028.1006%2017.1615%2028.1058%2018.4582%2029.3359L23.8747%2034.6197L41.9704%2015.6527C43.2568%2014.3942%2045.4291%2014.2093%2046.7258%2015.4394L48.8765%2017.3628C50.1732%2018.5929%2050.3491%2020.6844%2049.0626%2021.9429L26.6112%2045.8766C25.1433%2047.342%2022.955%2047.3368%2021.6583%2046.1067Z'%20fill='%23FCFCFC'/%3e%3c/svg%3e",Se="https://cdn.decentraland.org/@dcl/shop/0.1.0-30903100943.commit-cfb5121/_assets/packs-backdrop-BcXiUPeP.webp",Y="linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0)",Pe=i.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  gap: 24px;
@@ -40,14 +40,14 @@ import{b as xe,u as ue,r as l,j as t}from"./react-vyZjIDcS.js";import{s as i,t a
40
40
  ${e.media.maxWidth("lg")} {
41
41
  gap: 32px;
42
42
  }
43
- `,Ae=i.header`
43
+ `,Te=i.header`
44
44
  display: flex;
45
45
  flex-direction: column;
46
46
  align-items: center;
47
47
  gap: 12px;
48
48
  width: 100%;
49
49
  text-align: center;
50
- `,Be=i.h1`
50
+ `,Ae=i.h1`
51
51
  margin: 0;
52
52
  font-family: ${e.font.sans};
53
53
  font-size: 40px;
@@ -59,13 +59,13 @@ import{b as xe,u as ue,r as l,j as t}from"./react-vyZjIDcS.js";import{s as i,t a
59
59
  ${e.media.maxWidth("mobile")} {
60
60
  font-size: 28px;
61
61
  }
62
- `,Ee=i.div`
62
+ `,Be=i.div`
63
63
  display: flex;
64
64
  flex-wrap: wrap;
65
65
  align-items: center;
66
66
  justify-content: center;
67
67
  gap: 8px;
68
- `,Te=i.p`
68
+ `,Ee=i.p`
69
69
  margin: 0;
70
70
  font-family: ${e.font.sans};
71
71
  font-size: 24px;
@@ -221,7 +221,7 @@ import{b as xe,u as ue,r as l,j as t}from"./react-vyZjIDcS.js";import{s as i,t a
221
221
  ${e.media.maxWidth("mobile")} {
222
222
  gap: 24px;
223
223
  }
224
- `,We=i.span`
224
+ `,Ie=i.span`
225
225
  position: absolute;
226
226
  top: -18px;
227
227
  left: 50%;
@@ -272,7 +272,7 @@ import{b as xe,u as ue,r as l,j as t}from"./react-vyZjIDcS.js";import{s as i,t a
272
272
  align-items: center;
273
273
  gap: 12px;
274
274
  width: 100%;
275
- `,Ie=i.span`
275
+ `,We=i.span`
276
276
  display: flex;
277
277
  align-items: center;
278
278
  gap: 8px;
@@ -288,18 +288,23 @@ import{b as xe,u as ue,r as l,j as t}from"./react-vyZjIDcS.js";import{s as i,t a
288
288
  font-weight: 800;
289
289
  line-height: 30px;
290
290
  color: ${e.colors.white};
291
- `,Ge=i.span`
291
+ `,Ue=i.span`
292
292
  font-family: ${e.font.sans};
293
293
  font-size: 20px;
294
294
  font-weight: 500;
295
295
  line-height: 15px;
296
296
  color: ${e.colors.media};
297
297
  text-transform: uppercase;
298
- `,Ue=i.span`
298
+ `,Ge=i.span`
299
299
  display: flex;
300
300
  align-items: center;
301
301
  justify-content: center;
302
302
  gap: 8px;
303
+ /* The bonus pill is nowrap and this row holds it beside the struck-through amount. At two cards per row on
304
+ a phone that is ~118px of content, which the pair exceeds by 8-12px (measured) — so let it wrap rather
305
+ than push out of the card. It only ever wraps at the narrowest widths. */
306
+ flex-wrap: wrap;
307
+ max-width: 100%;
303
308
 
304
309
  &[data-empty='true'] {
305
310
  visibility: hidden;
@@ -311,7 +316,7 @@ import{b as xe,u as ue,r as l,j as t}from"./react-vyZjIDcS.js";import{s as i,t a
311
316
  color: ${e.colors.softWhite};
312
317
  opacity: 0.55;
313
318
  }
314
- `,Ne=i.span`
319
+ `,He=i.span`
315
320
  font-family: ${e.font.sans};
316
321
  font-size: 22px;
317
322
  font-weight: 600;
@@ -319,7 +324,7 @@ import{b as xe,u as ue,r as l,j as t}from"./react-vyZjIDcS.js";import{s as i,t a
319
324
  color: rgba(255, 255, 255, 0.55);
320
325
  text-decoration: line-through;
321
326
  text-decoration-thickness: 2px;
322
- `,He=i.span`
327
+ `,Ne=i.span`
323
328
  display: inline-flex;
324
329
  align-items: center;
325
330
  padding: 3px 10px;
@@ -345,14 +350,45 @@ import{b as xe,u as ue,r as l,j as t}from"./react-vyZjIDcS.js";import{s as i,t a
345
350
  object-fit: contain;
346
351
  }
347
352
 
348
- /* One column: a full-size render per card would make the page absurdly tall. */
353
+ /**
354
+ * FLUID, capped — not a fixed 200px.
355
+ *
356
+ * The fixed width overflowed its card: measured at a 375px viewport the artwork rendered 200px inside a
357
+ * 150px parent, spilling 25px out of each side of the card (the max-width above did not hold it,
358
+ * which is why this restates the intent as a width rather than relying on a cap). Two per row means the
359
+ * cell is whatever half the viewport minus gaps happens to be, so the art has to follow it.
360
+ */
349
361
  @media (max-width: 520px) {
350
- width: 200px;
362
+ /**
363
+ * STRETCHED to the card's content box, not sized by its own content.
364
+ *
365
+ * The card is a column flex with align-items: center, so its children are shrink-to-fit — which let each
366
+ * pack's artwork take a different width (measured 118px and 152px in two identical 150px cards) and let
367
+ * the wider one spill 2px out of each side. Stretching makes every card's art box exactly the content
368
+ * width, so all four are identical and none can exceed it.
369
+ */
370
+ align-self: stretch;
371
+ width: auto;
372
+ max-width: none;
373
+
374
+ /* The wrapper alone is not enough: whatever sits inside it (picture/img) must be capped too, or it
375
+ reintroduces the same overflow one level down. */
376
+ > * {
377
+ max-width: 100%;
378
+ }
351
379
  }
352
380
  `,Ke=i.span`
353
381
  display: flex;
354
382
  align-items: center;
355
383
  justify-content: center;
384
+ /**
385
+ * Pinned to the BOTTOM of the card.
386
+ *
387
+ * The artwork above it is not the same height in every pack, so laying the price out in flow put the four
388
+ * buy buttons at different heights within one row (measured 36px apart). Pushing it down means the buttons
389
+ * line up whatever the art does.
390
+ */
391
+ margin-top: auto;
356
392
  width: 100%;
357
393
  height: 48px;
358
394
  padding: 0 12px;
@@ -365,7 +401,7 @@ import{b as xe,u as ue,r as l,j as t}from"./react-vyZjIDcS.js";import{s as i,t a
365
401
  letter-spacing: 0.46px;
366
402
  color: ${e.colors.text2};
367
403
  text-transform: uppercase;
368
- `,Oe=T`
404
+ `,Oe=E`
369
405
  to {
370
406
  background-position: -200% 0;
371
407
  }
@@ -417,7 +453,7 @@ import{b as xe,u as ue,r as l,j as t}from"./react-vyZjIDcS.js";import{s as i,t a
417
453
  font-size: 16px;
418
454
  line-height: 1.4;
419
455
  color: rgba(255, 255, 255, 0.88);
420
- `,Je=T`
456
+ `,Je=E`
421
457
  0%, 100% {
422
458
  transform: scale(1);
423
459
  opacity: 1;
@@ -434,7 +470,7 @@ import{b as xe,u as ue,r as l,j as t}from"./react-vyZjIDcS.js";import{s as i,t a
434
470
  gap: 32px;
435
471
  padding: 64px 24px;
436
472
  min-height: 42vh;
437
- `,oe=i.img`
473
+ `,se=i.img`
438
474
  width: 61px;
439
475
  height: 61px;
440
476
  animation: ${Je} 1.2s ease-in-out infinite;
@@ -442,7 +478,7 @@ import{b as xe,u as ue,r as l,j as t}from"./react-vyZjIDcS.js";import{s as i,t a
442
478
  @media (prefers-reduced-motion: reduce) {
443
479
  animation: none;
444
480
  }
445
- `,tt=i(oe)`
481
+ `,tt=i(se)`
446
482
  width: 72px;
447
483
  height: 72px;
448
484
  `,it=i.div`
@@ -464,14 +500,14 @@ import{b as xe,u as ue,r as l,j as t}from"./react-vyZjIDcS.js";import{s as i,t a
464
500
  display: flex;
465
501
  align-items: center;
466
502
  gap: 8px;
467
- `,st=T`
503
+ `,ot=E`
468
504
  0% {
469
505
  left: -40%;
470
506
  }
471
507
  100% {
472
508
  left: 100%;
473
509
  }
474
- `,ot=i.span`
510
+ `,st=i.span`
475
511
  position: relative;
476
512
  width: 456px;
477
513
  max-width: 60vw;
@@ -487,7 +523,7 @@ import{b as xe,u as ue,r as l,j as t}from"./react-vyZjIDcS.js";import{s as i,t a
487
523
  height: 100%;
488
524
  border-radius: ${e.radius.pill};
489
525
  background: ${e.gradients.amethyst};
490
- animation: ${st} 1.4s ease-in-out infinite;
526
+ animation: ${ot} 1.4s ease-in-out infinite;
491
527
 
492
528
  @media (prefers-reduced-motion: reduce) {
493
529
  left: 0;
@@ -522,7 +558,7 @@ import{b as xe,u as ue,r as l,j as t}from"./react-vyZjIDcS.js";import{s as i,t a
522
558
  flex: none;
523
559
  width: 60px;
524
560
  height: 60px;
525
- `,xt=i.p`
561
+ `,ht=i.p`
526
562
  flex: 1;
527
563
  margin: 0;
528
564
  font-family: ${e.font.sans};
@@ -534,12 +570,12 @@ import{b as xe,u as ue,r as l,j as t}from"./react-vyZjIDcS.js";import{s as i,t a
534
570
  strong {
535
571
  font-weight: 700;
536
572
  }
537
- `,ut=i.div`
573
+ `,xt=i.div`
538
574
  padding: 24px;
539
575
  border-radius: 16px;
540
576
  background: ${e.colors.white};
541
577
  border: 1px solid ${e.colors.gray4};
542
- `,ht=i.div`
578
+ `,ut=i.div`
543
579
  position: relative;
544
580
  display: flex;
545
581
  align-items: center;
@@ -668,4 +704,4 @@ import{b as xe,u as ue,r as l,j as t}from"./react-vyZjIDcS.js";import{s as i,t a
668
704
  margin: 0;
669
705
  font-family: ${e.font.sans};
670
706
  color: ${e.colors.err};
671
- `,j=Ce()?"mock":"stripe",te=[P,P,ne,se],kt={pack_5:P,pack_10:P,pack_25:ne,pack_50:se};function ae(a,s){return kt[a.id]??te[s%te.length]}function Ct(a,s){return a.artUrl??ae(a,s)}const jt="https://docs.decentraland.org";function ie(a){const s=a;if((s==null?void 0:s.name)==="AbortError")return r("getCredits.errorCanceled");const m=((s==null?void 0:s.message)??"").toLowerCase();return m.includes("sign in")?r("getCredits.errorSignIn",{currency:p.name}):m.includes("timed out")?r("getCredits.errorTimeout",{currency:p.name}):r("getCredits.errorGeneric")}function Tt(){var M;he({title:r("nav.getCredits",{currency:p.name}),noindex:!0});const a=xe(),{session:s,signIn:m}=ge(),o=fe(),[b,x]=ue(),{packs:$,isLoading:y}=be(),[h,u]=l.useState("select"),[c,L]=l.useState(null),[v,W]=l.useState(null),de=(v!=null?(M=$.find(n=>n.credits===v))==null?void 0:M.artUrl:void 0)??$e,[ce,k]=l.useState(null),[le,_]=l.useState(!1),R=l.useRef(null);l.useEffect(()=>()=>{var n;return(n=R.current)==null?void 0:n.abort()},[]);const I=l.useCallback(()=>{x(n=>{const d=new URLSearchParams(n);return d.delete("order"),d.delete("canceled"),d},{replace:!0})},[x]),z=l.useCallback(async n=>{u("processing");const d=new AbortController;R.current=d;try{const g=await we(n,{signal:d.signal,address:s==null?void 0:s.address,identity:s==null?void 0:s.identity});if(g.status==="credited"){const w=g.creditsGranted??(c==null?void 0:c.credits)??0;W(w>0?w:null),u("success"),f("Shop Completed Buy Credits",{order_id:n,pack_usd:(c==null?void 0:c.usd)??null,credits:w>0?w:null,provider:j}),o.invalidateQueries({queryKey:["usd-balance"]});try{if(sessionStorage.getItem(ye)){const S={resumeCheckout:!0,...w>0?{creditsAdded:w}:{}};a("/cart",{state:S});return}}catch{}try{const S=sessionStorage.getItem(O);if(S){sessionStorage.removeItem(O);const G=JSON.parse(S),U=me(G);if(U){a(U,{state:{item:G,resumeBuy:!0}});return}}}catch{}}else g.status==="pending"?(f("Shop Buy Credits Pending",{step:"grant",pack_usd:(c==null?void 0:c.usd)??null}),o.invalidateQueries({queryKey:["usd-balance"]}),u("pending")):(f("Shop Buy Credits Failed",{step:"grant",error_code:"grant_failed",pack_usd:(c==null?void 0:c.usd)??null}),k(g.error??r("getCredits.errorGrant",{currency:p.name})),u("error"))}catch(g){N(g,{flow:"get_credits",step:"grant",order_id:n}),f("Shop Buy Credits Failed",{step:"grant",error_code:H(g),pack_usd:(c==null?void 0:c.usd)??null}),k(ie(g)),u("error")}},[c,s,o,a]),pe=l.useCallback(async n=>{if(!s){m();return}k(null),_(!1),L(n),u(j==="mock"?"processing":"redirecting"),f("Shop Started Buy Credits",{pack_usd:n.usd,credits:n.credits,provider:j});try{const d=await ke(n.id,{address:s.address,identity:s.identity});if(d.mock)z(d.orderId);else if(d.url)f("Shop Redirected To Stripe",{order_id:d.orderId,pack_usd:n.usd,credits:n.credits}),window.location.href=d.url;else throw new Error("Checkout did not return a redirect url")}catch(d){N(d,{flow:"get_credits",step:"checkout",provider:j}),f("Shop Buy Credits Failed",{step:"checkout",error_code:H(d),pack_usd:n.usd}),k(ie(d)),u("error")}},[s,m,z]),A=l.useRef(!1);l.useEffect(()=>{if(A.current)return;const n=b.get("order");if(b.get("canceled")!=null){A.current=!0,f("Shop Buy Credits Cancelled",{order_id:n,provider:j}),I(),_(!0),u("select");return}n&&(u("processing"),s&&(A.current=!0,I(),z(n)))},[b,s]);function B(){var n;(n=R.current)==null||n.abort(),u("select"),L(null),W(null),k(null),_(!1)}return t.jsxs(Pe,{children:[(h==="select"||h==="redirecting")&&t.jsxs(_e,{"data-testid":"credits-hero",children:[t.jsx(Re,{"aria-hidden":!0}),t.jsxs(ze,{$hidden:h==="redirecting",children:[t.jsxs(Ae,{children:[t.jsx(Be,{children:r("getCredits.title",{currency:p.name})}),t.jsxs(Ee,{children:[t.jsx(Te,{children:r("getCredits.subtitle",{currency:p.nameSingular})}),t.jsxs(Fe,{href:jt,target:"_blank",rel:"noreferrer",children:[r("getCredits.learnMore"),t.jsx(re,{name:"link-out"})]})]})]}),le&&t.jsx(Le,{role:"status",children:r("getCredits.canceledNote")}),t.jsx($t,{packs:$,loading:y,onSelect:n=>void pe(n)})]}),h==="redirecting"&&t.jsxs(Qe,{role:"status","aria-live":"polite",children:[t.jsx(tt,{src:D,alt:"",width:72,height:72}),t.jsx(Ze,{children:r("getCredits.redirecting")})]})]}),h==="processing"&&t.jsxs(et,{role:"status","aria-live":"polite",children:[t.jsx(oe,{src:D,alt:"",width:61,height:61}),t.jsxs(it,{children:[t.jsxs(rt,{children:[t.jsx("strong",{children:r("getCredits.processing")}),"…"]}),t.jsxs(nt,{"aria-hidden":!0,children:[t.jsx(ot,{children:t.jsx(at,{})}),t.jsx(dt,{children:"1/1"})]})]})]}),h==="success"&&t.jsxs(ct,{role:"status","aria-live":"polite",children:[t.jsxs(lt,{children:[t.jsx(pt,{src:ve,alt:"",width:60,height:60}),t.jsxs(xt,{children:[t.jsx("strong",{children:r("getCredits.successTitle")})," ",r("getCredits.successBody",{currency:p.name})]})]}),v!=null&&t.jsx(ut,{children:t.jsxs(ht,{children:[t.jsx(gt,{src:de,alt:"",width:93,height:93}),t.jsxs(ft,{children:[t.jsx(E,{}),t.jsxs("span",{children:[t.jsx(mt,{children:r("getCredits.creditsAmount",{credits:v,currency:p.name})})," ",t.jsx(bt,{children:r("getCredits.creditsAdded")})]})]})]})}),t.jsxs(wt,{children:[t.jsx(C,{"data-variant":"outline",onClick:B,children:r("getCredits.buyMore",{currency:p.name})}),t.jsx(C,{onClick:()=>a("/assets"),children:r("getCredits.startShopping")})]})]}),h==="pending"&&t.jsxs(Z,{role:"status","aria-live":"polite",children:[t.jsx(J,{children:r("getCredits.pendingTitle",{currency:p.name})}),t.jsx(qe,{children:r("getCredits.pendingBody")}),t.jsxs(ee,{children:[t.jsx(C,{onClick:()=>a("/assets"),children:r("getCredits.startShopping")}),t.jsx(C,{"data-variant":"outline",onClick:B,children:r("getCredits.done")})]})]}),h==="error"&&t.jsxs(Z,{role:"alert",children:[t.jsx(J,{"data-tone":"error",children:r("getCredits.errorTitle")}),t.jsx(yt,{children:ce}),t.jsx(ee,{children:t.jsx(C,{onClick:B,children:r("getCredits.tryAgain")})})]})]})}function $t({packs:a,loading:s,onSelect:m}){return s?t.jsx(V,{"aria-busy":"true","aria-label":r("getCredits.packsLoading",{currency:p.name}),children:[0,1,2,3].map(o=>t.jsxs(X,{as:"div","data-skeleton":"true","data-testid":"pack-skeleton","aria-hidden":!0,children:[t.jsxs(q,{children:[t.jsx(Q,{children:t.jsx(Ye,{})}),t.jsx(Ve,{})]}),t.jsx(Xe,{})]},o))}):t.jsx(V,{children:a.map((o,b)=>{const x=je(o,a);return t.jsxs(X,{type:"button","data-testid":"pack","data-best":o.bestValue?"true":void 0,onClick:()=>m(o),"aria-label":x?r("getCredits.packAriaBonus",{amount:K(o.credits),usd:o.usd,bonus:x.bonus,baseline:x.baseline}):r("getCredits.packAria",{amount:K(o.credits),usd:o.usd}),children:[o.bestValue&&t.jsxs(We,{children:[t.jsx(re,{name:"star-rounded"}),r("getCredits.packBadge")]}),t.jsxs(q,{children:[t.jsxs(Q,{children:[t.jsxs(Ie,{children:[t.jsx(E,{}),t.jsx(Me,{children:o.credits})]}),t.jsx(Ge,{children:r("getCredits.packUnit",{currency:p.name})}),t.jsxs(Ue,{"data-empty":x?void 0:"true","aria-hidden":!0,children:[t.jsx(E,{}),t.jsx(Ne,{children:x?x.baseline:0}),x&&t.jsx(He,{children:r("getCredits.packBonus",{bonus:x.bonus})})]})]}),t.jsx(De,{children:t.jsx("img",{src:Ct(o,b),alt:"",loading:"lazy",width:507,height:507,onError:$=>{const y=$.currentTarget;y.dataset.artFallback||(y.dataset.artFallback="done",y.src=ae(o,b))}})})]}),t.jsxs(Ke,{children:["$",o.usd.toFixed(2)]})]},o.id)})})}export{Tt as GetCredits,Tt as default};
707
+ `,v=Ce()?"mock":"stripe",te=[P,P,ne,oe],kt={pack_5:P,pack_10:P,pack_25:ne,pack_50:oe};function ae(a,o){return kt[a.id]??te[o%te.length]}function Ct(a,o){return a.artUrl??ae(a,o)}const vt="https://docs.decentraland.org";function ie(a){const o=a;if((o==null?void 0:o.name)==="AbortError")return r("getCredits.errorCanceled");const m=((o==null?void 0:o.message)??"").toLowerCase();return m.includes("sign in")?r("getCredits.errorSignIn",{currency:p.name}):m.includes("timed out")?r("getCredits.errorTimeout",{currency:p.name}):r("getCredits.errorGeneric")}function Et(){var M;ue({title:r("nav.getCredits",{currency:p.name}),noindex:!0});const a=he(),{session:o,signIn:m}=ge(),s=fe(),[b,h]=xe(),{packs:j,isLoading:y}=be(),[u,x]=l.useState("select"),[c,L]=l.useState(null),[$,I]=l.useState(null),de=($!=null?(M=j.find(n=>n.credits===$))==null?void 0:M.artUrl:void 0)??je,[ce,k]=l.useState(null),[le,_]=l.useState(!1),R=l.useRef(null);l.useEffect(()=>()=>{var n;return(n=R.current)==null?void 0:n.abort()},[]);const W=l.useCallback(()=>{h(n=>{const d=new URLSearchParams(n);return d.delete("order"),d.delete("canceled"),d},{replace:!0})},[h]),z=l.useCallback(async n=>{x("processing");const d=new AbortController;R.current=d;try{const g=await we(n,{signal:d.signal,address:o==null?void 0:o.address,identity:o==null?void 0:o.identity});if(g.status==="credited"){const w=g.creditsGranted??(c==null?void 0:c.credits)??0;I(w>0?w:null),x("success"),f("Shop Completed Buy Credits",{order_id:n,pack_usd:(c==null?void 0:c.usd)??null,credits:w>0?w:null,provider:v}),s.invalidateQueries({queryKey:["usd-balance"]});try{if(sessionStorage.getItem(ye)){const S={resumeCheckout:!0,...w>0?{creditsAdded:w}:{}};a("/cart",{state:S});return}}catch{}try{const S=sessionStorage.getItem(O);if(S){sessionStorage.removeItem(O);const U=JSON.parse(S),G=me(U);if(G){a(G,{state:{item:U,resumeBuy:!0}});return}}}catch{}}else g.status==="pending"?(f("Shop Buy Credits Pending",{step:"grant",pack_usd:(c==null?void 0:c.usd)??null}),s.invalidateQueries({queryKey:["usd-balance"]}),x("pending")):(f("Shop Buy Credits Failed",{step:"grant",error_code:"grant_failed",pack_usd:(c==null?void 0:c.usd)??null}),k(g.error??r("getCredits.errorGrant",{currency:p.name})),x("error"))}catch(g){H(g,{flow:"get_credits",step:"grant",order_id:n}),f("Shop Buy Credits Failed",{step:"grant",error_code:N(g),pack_usd:(c==null?void 0:c.usd)??null}),k(ie(g)),x("error")}},[c,o,s,a]),pe=l.useCallback(async n=>{if(!o){m();return}k(null),_(!1),L(n),x(v==="mock"?"processing":"redirecting"),f("Shop Started Buy Credits",{pack_usd:n.usd,credits:n.credits,provider:v});try{const d=await ke(n.id,{address:o.address,identity:o.identity});if(d.mock)z(d.orderId);else if(d.url)f("Shop Redirected To Stripe",{order_id:d.orderId,pack_usd:n.usd,credits:n.credits}),window.location.href=d.url;else throw new Error("Checkout did not return a redirect url")}catch(d){H(d,{flow:"get_credits",step:"checkout",provider:v}),f("Shop Buy Credits Failed",{step:"checkout",error_code:N(d),pack_usd:n.usd}),k(ie(d)),x("error")}},[o,m,z]),T=l.useRef(!1);l.useEffect(()=>{if(T.current)return;const n=b.get("order");if(b.get("canceled")!=null){T.current=!0,f("Shop Buy Credits Cancelled",{order_id:n,provider:v}),W(),_(!0),x("select");return}n&&(x("processing"),o&&(T.current=!0,W(),z(n)))},[b,o]);function A(){var n;(n=R.current)==null||n.abort(),x("select"),L(null),I(null),k(null),_(!1)}return t.jsxs(Pe,{children:[(u==="select"||u==="redirecting")&&t.jsxs(_e,{"data-testid":"credits-hero",children:[t.jsx(Re,{"aria-hidden":!0}),t.jsxs(ze,{$hidden:u==="redirecting",children:[t.jsxs(Te,{children:[t.jsx(Ae,{children:r("getCredits.title",{currency:p.name})}),t.jsxs(Be,{children:[t.jsx(Ee,{children:r("getCredits.subtitle",{currency:p.nameSingular})}),t.jsxs(Fe,{href:vt,target:"_blank",rel:"noreferrer",children:[r("getCredits.learnMore"),t.jsx(re,{name:"link-out"})]})]})]}),le&&t.jsx(Le,{role:"status",children:r("getCredits.canceledNote")}),t.jsx(jt,{packs:j,loading:y,onSelect:n=>void pe(n)})]}),u==="redirecting"&&t.jsxs(Qe,{role:"status","aria-live":"polite",children:[t.jsx(tt,{src:D,alt:"",width:72,height:72}),t.jsx(Ze,{children:r("getCredits.redirecting")})]})]}),u==="processing"&&t.jsxs(et,{role:"status","aria-live":"polite",children:[t.jsx(se,{src:D,alt:"",width:61,height:61}),t.jsxs(it,{children:[t.jsxs(rt,{children:[t.jsx("strong",{children:r("getCredits.processing")}),"…"]}),t.jsxs(nt,{"aria-hidden":!0,children:[t.jsx(st,{children:t.jsx(at,{})}),t.jsx(dt,{children:"1/1"})]})]})]}),u==="success"&&t.jsxs(ct,{role:"status","aria-live":"polite",children:[t.jsxs(lt,{children:[t.jsx(pt,{src:$e,alt:"",width:60,height:60}),t.jsxs(ht,{children:[t.jsx("strong",{children:r("getCredits.successTitle")})," ",r("getCredits.successBody",{currency:p.name})]})]}),$!=null&&t.jsx(xt,{children:t.jsxs(ut,{children:[t.jsx(gt,{src:de,alt:"",width:93,height:93}),t.jsxs(ft,{children:[t.jsx(B,{}),t.jsxs("span",{children:[t.jsx(mt,{children:r("getCredits.creditsAmount",{credits:$,currency:p.name})})," ",t.jsx(bt,{children:r("getCredits.creditsAdded")})]})]})]})}),t.jsxs(wt,{children:[t.jsx(C,{"data-variant":"outline",onClick:A,children:r("getCredits.buyMore",{currency:p.name})}),t.jsx(C,{onClick:()=>a("/assets"),children:r("getCredits.startShopping")})]})]}),u==="pending"&&t.jsxs(Z,{role:"status","aria-live":"polite",children:[t.jsx(J,{children:r("getCredits.pendingTitle",{currency:p.name})}),t.jsx(qe,{children:r("getCredits.pendingBody")}),t.jsxs(ee,{children:[t.jsx(C,{onClick:()=>a("/assets"),children:r("getCredits.startShopping")}),t.jsx(C,{"data-variant":"outline",onClick:A,children:r("getCredits.done")})]})]}),u==="error"&&t.jsxs(Z,{role:"alert",children:[t.jsx(J,{"data-tone":"error",children:r("getCredits.errorTitle")}),t.jsx(yt,{children:ce}),t.jsx(ee,{children:t.jsx(C,{onClick:A,children:r("getCredits.tryAgain")})})]})]})}function jt({packs:a,loading:o,onSelect:m}){return o?t.jsx(V,{"aria-busy":"true","aria-label":r("getCredits.packsLoading",{currency:p.name}),children:[0,1,2,3].map(s=>t.jsxs(X,{as:"div","data-skeleton":"true","data-testid":"pack-skeleton","aria-hidden":!0,children:[t.jsxs(q,{children:[t.jsx(Q,{children:t.jsx(Ye,{})}),t.jsx(Ve,{})]}),t.jsx(Xe,{})]},s))}):t.jsx(V,{children:a.map((s,b)=>{const h=ve(s,a);return t.jsxs(X,{type:"button","data-testid":"pack","data-best":s.bestValue?"true":void 0,onClick:()=>m(s),"aria-label":h?r("getCredits.packAriaBonus",{amount:K(s.credits),usd:s.usd,bonus:h.bonus,baseline:h.baseline}):r("getCredits.packAria",{amount:K(s.credits),usd:s.usd}),children:[s.bestValue&&t.jsxs(Ie,{children:[t.jsx(re,{name:"star-rounded"}),r("getCredits.packBadge")]}),t.jsxs(q,{children:[t.jsxs(Q,{children:[t.jsxs(We,{children:[t.jsx(B,{}),t.jsx(Me,{children:s.credits})]}),t.jsx(Ue,{children:r("getCredits.packUnit",{currency:p.name})}),t.jsxs(Ge,{"data-empty":h?void 0:"true","aria-hidden":!0,children:[t.jsx(B,{}),t.jsx(He,{children:h?h.baseline:0}),h&&t.jsx(Ne,{children:r("getCredits.packBonus",{bonus:h.bonus})})]})]}),t.jsx(De,{children:t.jsx("img",{src:Ct(s,b),alt:"",loading:"lazy",width:507,height:507,onError:j=>{const y=j.currentTarget;y.dataset.artFallback||(y.dataset.artFallback="done",y.src=ae(s,b))}})})]}),t.jsxs(Ke,{children:["$",s.usd.toFixed(2)]})]},s.id)})})}export{Et as GetCredits,Et as default};
@@ -1,4 +1,4 @@
1
- import{i as f,b as h}from"./lit-element-B3y9oplH.js";import{n as m}from"./class-map-CxwNmq0D.js";import{c as p}from"./index-CnNlT6GN.js";import{d as g,r as v}from"./index-DheZlekn.js";import{C as c}from"./ConstantsUtil-Dfwpy1eP.js";import{R as $,O as u}from"./W3MFrameProviderSingleton-BGLSOpiV.js";import{au as y}from"./NetworkUtil-HlUKXKcF.js";const b=g`
1
+ import{i as f,b as h}from"./lit-element-B3y9oplH.js";import{n as m}from"./class-map-CxwNmq0D.js";import{c as p}from"./index-Dy_LMTRI.js";import{d as g,r as v}from"./index-CbtJGEzL.js";import{C as c}from"./ConstantsUtil-Dfwpy1eP.js";import{R as $,O as u}from"./W3MFrameProviderSingleton-BJW4ebEt.js";import{au as y}from"./NetworkUtil-HlUKXKcF.js";const b=g`
2
2
  :host {
3
3
  display: flex;
4
4
  justify-content: center;
@@ -1,4 +1,4 @@
1
- import{j as e,b as ee,r as h,L as te}from"./react-vyZjIDcS.js";import{t as S,s as t,x as ie,y as se,e as i,h as B,B as I,z,ar as ne,aR as K,l as W,m as re,n as oe,D as ae,u as de,F as ce}from"./index-DI_IjAcF.js";import{i as le,R as pe,f as ge}from"./import-Da0nCdcK.js";import{u as xe}from"./useSecondarySales-Caon2E63.js";import"./sentry-B35L1FdR.js";import"./dcl-schemas-BICTSpB5.js";import"./ethers-CXBJm_wN.js";import"./intl-CBcMB1D2.js";import"./buy-myGa3uAa.js";import"./authorizations-BTC_bFln.js";import"./sendMetaTransaction-BLHMOdHq.js";import"./trade-encoding-BVlmzFE-.js";import"./mana-rate-BxYQ9xUU.js";import"./mana-convert-CTsfw0Op.js";function U({size:o=12,...w}){return e.jsx("svg",{viewBox:"0 0 20 20",width:o,height:o,fill:"none","aria-hidden":!0,focusable:"false",...w,children:e.jsx("path",{d:"M5 10.5l3 3 7-7.5",stroke:"#fff",strokeWidth:"2.4",strokeLinecap:"round",strokeLinejoin:"round"})})}const{colors:M,radius:me,z:ue}=S,he=ie`
1
+ import{j as e,b as ee,r as h,L as te}from"./react-vyZjIDcS.js";import{t as S,s as t,x as ie,y as se,e as i,h as B,B as I,z,ar as ne,aR as K,l as W,m as re,n as oe,D as ae,u as de,F as ce}from"./index-B8qQ9Xxb.js";import{i as le,R as pe,f as ge}from"./import-C0DSObrV.js";import{u as xe}from"./useSecondarySales-DVrg7pqD.js";import"./sentry-B35L1FdR.js";import"./dcl-schemas-BICTSpB5.js";import"./ethers-CXBJm_wN.js";import"./intl-CBcMB1D2.js";import"./buy-DTB3xpDX.js";import"./authorizations-JSOY6ArB.js";import"./sendMetaTransaction-B3nckO8c.js";import"./trade-encoding-CjafzO-R.js";import"./mana-rate-LTr19y4S.js";import"./mana-convert-Bbf4K53E.js";function U({size:o=12,...w}){return e.jsx("svg",{viewBox:"0 0 20 20",width:o,height:o,fill:"none","aria-hidden":!0,focusable:"false",...w,children:e.jsx("path",{d:"M5 10.5l3 3 7-7.5",stroke:"#fff",strokeWidth:"2.4",strokeLinecap:"round",strokeLinejoin:"round"})})}const{colors:M,radius:me,z:ue}=S,he=ie`
2
2
  0% {
3
3
  transform: scale(0);
4
4
  opacity: 0;
@@ -1,5 +1,5 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["_assets/index-BnaX4TbU.js","_assets/react-vyZjIDcS.js","_assets/dcl-schemas-BICTSpB5.js","_assets/index-DI_IjAcF.js","_assets/sentry-B35L1FdR.js","_assets/ethers-CXBJm_wN.js","_assets/intl-CBcMB1D2.js","_assets/index-BMzstP-8.css","_assets/createSvgIcon-sbUQV66i.js","_assets/clsx-BETN9X51.js","_assets/emotion-styled.browser.esm-DH8Xabrh.js","_assets/CircularProgress-LjKPNQUw.js","_assets/index-Bg9_Rb37.js","_assets/useTheme-D346drKA.js","_assets/getThemeProps-BzsYMuYq.js"])))=>i.map(i=>d[i]);
2
- var Vc=Object.defineProperty;var Uc=(n,a,t)=>a in n?Vc(n,a,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[a]=t;var H=(n,a,t)=>Uc(n,typeof a!="symbol"?a+"":a,t);import{r as b,d as Xc,j as s,b as Yt,l as fs,R as S,h as Gc,e as Jc,a as Zc,L as el}from"./react-vyZjIDcS.js";import{s as m,t as d,e as x,I as G,bf as tl,z as Ie,K as Ve,h as bt,be as Lr,n as Ot,al as hs,am as nl,D as Wt,at as rl,a0 as ms,a1 as or,av as ia,ar as le,az as Ge,ay as at,bz as al,l as $e,ax as Fr,aw as gs,aj as ol,c as Zt,a as sa,b as il,C as xs,y as sl,u as we,M as cl,ag as wr,o as kr,E as ga,aR as Xt,p as ys,F as _n,ai as bs,bA as ll,B as Pn,J as In,bB as vs,aS as oo,aT as dl,f as ws,bC as ul,_ as Yr,x as pl,ak as Dn,bD as fl,bE as hl,bF as ml,bG as gl,bH as xl,bI as yl,bJ as ks,bK as bl,bL as vl,d as Ds,bM as wl,bN as kl,bO as Dl,bP as Cl,H as Sl,bQ as Ml,R as _l,bR as Pl,bS as Il,bT as jl,bU as El,bV as Tl,bW as $l,aJ as Nl,m as Ol,bX as Rl,bY as Al,bZ as Ll,b_ as io,ah as Fl,b$ as Yl,c0 as Wl,c1 as Bl,c2 as Hl,c3 as zl,c4 as ql}from"./index-DI_IjAcF.js";import{d as Fe,a as so}from"./dcl-schemas-BICTSpB5.js";import{$ as Wr,m as Ql,K as Kl,V as Vl,Q as Cs,R as Ul,M as Xl,S as Gl,C as Jl,H as Zl,a as ed,T as td,X as nd,b as rd,B as ad,c as od,d as id,e as sd,f as qt,j as Bn,k as Qt,W as cd,p as ld,q as dd,P as ud,x as pd,y as fd,z as hd,D as md,E as gd,F as xd,G as yd,I as bd,J as vd,L as wd,l as kd,n as Dd,o as Cd,a0 as Sd,a1 as Md,A as _d,r as Pd,s as Id,t as jd,u as Ed,v as Td,w as $d,a2 as Nd,a3 as Od,a4 as Rd,N as Ad,O as co,U as Ld}from"./CollectionCarousel-B71TAj46.js";import{a as ir,t as Fd,c as Yd}from"./buy-myGa3uAa.js";import{f as Wd}from"./builder-C4njBf3q.js";import{u as Bd,M as Hd,l as zd,c as qd}from"./useCreditPacks-DkU8BJEb.js";import{r as Qd}from"./mana-rate-BxYQ9xUU.js";import{m as lo}from"./mana-matic-C4e1sNO3.js";import{i as Ss,f as Ms,n as Kd,j as Vd,c as uo,g as _s,e as Ud,r as Xd,m as Gd}from"./authorizations-BTC_bFln.js";import{a as Ps,w as Is,S as js,G as Es}from"./buy-gasless-aqj0tOF3.js";import{R as po}from"./resume-buy-Bf0zIH7y.js";import{a as Jd,f as xt,i as en}from"./errors-DqL59l4z.js";import{E as ut}from"./ErrorNotice-DNbl0Lx6.js";import{C as Zd}from"./CircularProgress-LjKPNQUw.js";import{a as eu,b as tu,j as nu,e as ru,c as au,d as ou}from"./trade-encoding-BVlmzFE-.js";import{M as iu,E as su,s as cu}from"./sendMetaTransaction-BLHMOdHq.js";import{C as lu,I as du}from"./ethers-CXBJm_wN.js";import{a as Br}from"./mana-convert-CTsfw0Op.js";import{u as Ts}from"./useManaRate-BV_Xzv0_.js";import{u as uu}from"./useSecondarySales-Caon2E63.js";import{T as $s}from"./Tooltip-VDc8mbHU.js";import"./sentry-B35L1FdR.js";import"./intl-CBcMB1D2.js";import"./clsx-BETN9X51.js";const tn=Math.min,Et=Math.max,sr=Math.round,Hn=Math.floor,it=n=>({x:n,y:n}),pu={left:"right",right:"left",bottom:"top",top:"bottom"};function fu(n,a,t){return Et(n,tn(a,t))}function Dr(n,a){return typeof n=="function"?n(a):n}function nn(n){return n.split("-")[0]}function jn(n){return n.split("-")[1]}function hu(n){return n==="x"?"y":"x"}function xa(n){return n==="y"?"height":"width"}function It(n){const a=n[0];return a==="t"||a==="b"?"y":"x"}function ya(n){return hu(It(n))}function mu(n,a,t){t===void 0&&(t=!1);const e=jn(n),r=ya(n),o=xa(r);let i=r==="x"?e===(t?"end":"start")?"right":"left":e==="start"?"bottom":"top";return a.reference[o]>a.floating[o]&&(i=cr(i)),[i,cr(i)]}function gu(n){const a=cr(n);return[ca(n),a,ca(a)]}function ca(n){return n.includes("start")?n.replace("start","end"):n.replace("end","start")}const fo=["left","right"],ho=["right","left"],xu=["top","bottom"],yu=["bottom","top"];function bu(n,a,t){switch(n){case"top":case"bottom":return t?a?ho:fo:a?fo:ho;case"left":case"right":return a?xu:yu;default:return[]}}function vu(n,a,t,e){const r=jn(n);let o=bu(nn(n),t==="start",e);return r&&(o=o.map(i=>i+"-"+r),a&&(o=o.concat(o.map(ca)))),o}function cr(n){const a=nn(n);return pu[a]+n.slice(a.length)}function wu(n){var a,t,e,r;return{top:(a=n.top)!=null?a:0,right:(t=n.right)!=null?t:0,bottom:(e=n.bottom)!=null?e:0,left:(r=n.left)!=null?r:0}}function Ns(n){return typeof n!="number"?wu(n):{top:n,right:n,bottom:n,left:n}}function lr(n){const{x:a,y:t,width:e,height:r}=n;return{width:e,height:r,top:t,left:a,right:a+e,bottom:t+r,x:a,y:t}}function mo(n,a,t){let{reference:e,floating:r}=n;const o=It(a),i=ya(a),c=xa(i),l=nn(a),p=o==="y",u=e.x+e.width/2-r.width/2,h=e.y+e.height/2-r.height/2,y=e[c]/2-r[c]/2;let g;switch(l){case"top":g={x:u,y:e.y-r.height};break;case"bottom":g={x:u,y:e.y+e.height};break;case"right":g={x:e.x+e.width,y:h};break;case"left":g={x:e.x-r.width,y:h};break;default:g={x:e.x,y:e.y}}const v=jn(a);return v&&(g[i]+=y*(v==="end"?1:-1)*(t&&p?-1:1)),g}async function ku(n,a){var t;a===void 0&&(a={});const{x:e,y:r,platform:o,rects:i,elements:c,strategy:l}=n,{boundary:p="clippingAncestors",rootBoundary:u="viewport",elementContext:h="floating",altBoundary:y=!1,padding:g=0}=Dr(a,n),v=Ns(g),f=c[y?h==="floating"?"reference":"floating":h],k=lr(await o.getClippingRect({element:(t=await(o.isElement==null?void 0:o.isElement(f)))==null||t?f:f.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(c.floating)),boundary:p,rootBoundary:u,strategy:l})),C=h==="floating"?{x:e,y:r,width:i.floating.width,height:i.floating.height}:i.reference,T=await(o.getOffsetParent==null?void 0:o.getOffsetParent(c.floating)),$=await(o.isElement==null?void 0:o.isElement(T))&&await(o.getScale==null?void 0:o.getScale(T))||{x:1,y:1},A=lr(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:C,offsetParent:T,strategy:l}):C);return{top:(k.top-A.top+v.top)/$.y,bottom:(A.bottom-k.bottom+v.bottom)/$.y,left:(k.left-A.left+v.left)/$.x,right:(A.right-k.right+v.right)/$.x}}const Du=50,Cu=async(n,a,t)=>{const{placement:e="bottom",strategy:r="absolute",middleware:o=[],platform:i}=t,c=i.detectOverflow?i:{...i,detectOverflow:ku},l=await(i.isRTL==null?void 0:i.isRTL(a));let p=await i.getElementRects({reference:n,floating:a,strategy:r}),{x:u,y:h}=mo(p,e,l),y=e,g=0;const v={};for(let w=0;w<o.length;w++){const f=o[w];if(!f)continue;const{name:k,fn:C}=f,{x:T,y:$,data:A,reset:N}=await C({x:u,y:h,initialPlacement:e,placement:y,strategy:r,middlewareData:v,rects:p,platform:c,elements:{reference:n,floating:a}});u=T??u,h=$??h,v[k]={...v[k],...A},N&&g<Du&&(g++,typeof N=="object"&&(N.placement&&(y=N.placement),N.rects&&(p=N.rects===!0?await i.getElementRects({reference:n,floating:a,strategy:r}):N.rects),{x:u,y:h}=mo(p,y,l)),w=-1)}return{x:u,y:h,placement:y,strategy:r,middlewareData:v}},Su=n=>({name:"arrow",options:n,async fn(a){const{x:t,y:e,placement:r,rects:o,platform:i,elements:c,middlewareData:l}=a,{element:p,padding:u=0}=Dr(n,a)||{};if(p==null)return{};const h=Ns(u),y={x:t,y:e},g=ya(r),v=xa(g),w=await i.getDimensions(p),f=g==="y",k=f?"top":"left",C=f?"bottom":"right",T=f?"clientHeight":"clientWidth",$=o.reference[v]+o.reference[g]-y[g]-o.floating[v],A=y[g]-o.reference[g],N=await(i.getOffsetParent==null?void 0:i.getOffsetParent(p));let M=N?N[T]:0;(!M||!await(i.isElement==null?void 0:i.isElement(N)))&&(M=c.floating[T]||o.floating[v]);const D=$/2-A/2,I=M/2-w[v]/2-1,P=tn(h[k],I),E=tn(h[C],I),O=M-w[v]-E,W=M/2-w[v]/2+D,z=fu(P,W,O),Q=!l.arrow&&jn(r)!=null&&W!==z&&o.reference[v]/2-(W<P?P:E)-w[v]/2<0,R=Q?W<P?W-P:W-O:0;return{[g]:y[g]+R,data:{[g]:z,centerOffset:W-z-R,...Q&&{alignmentOffset:R}},reset:Q}}}),Mu=function(n){return n===void 0&&(n={}),{name:"flip",options:n,async fn(a){var t,e;const{placement:r,middlewareData:o,rects:i,initialPlacement:c,platform:l,elements:p}=a,{mainAxis:u=!0,crossAxis:h=!0,fallbackPlacements:y,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:w=!0,...f}=Dr(n,a);if((t=o.arrow)!=null&&t.alignmentOffset)return{};const k=nn(r),C=It(c),T=nn(c)===c,$=await(l.isRTL==null?void 0:l.isRTL(p.floating)),A=y||(T||!w?[cr(c)]:gu(c)),N=v!=="none";!y&&N&&A.push(...vu(c,w,v,$));const M=[c,...A],D=await l.detectOverflow(a,f),I=[];let P=((e=o.flip)==null?void 0:e.overflows)||[];if(u&&I.push(D[k]),h){const z=mu(r,i,$);I.push(D[z[0]],D[z[1]])}if(P=[...P,{placement:r,overflows:I}],!I.every(z=>z<=0)){var E,O;const z=(((E=o.flip)==null?void 0:E.index)||0)+1,Q=M[z];if(Q&&(!(h==="alignment"?C!==It(Q):!1)||P.every(_=>It(_.placement)===C?_.overflows[0]>0:!0)))return{data:{index:z,overflows:P},reset:{placement:Q}};let R=(O=P.filter(V=>V.overflows[0]<=0).sort((V,_)=>V.overflows[1]-_.overflows[1])[0])==null?void 0:O.placement;if(!R)switch(g){case"bestFit":{var W;const V=(W=P.filter(_=>{if(N){const J=It(_.placement);return J===C||J==="y"}return!0}).map(_=>[_.placement,_.overflows.filter(J=>J>0).reduce((J,ge)=>J+ge,0)]).sort((_,J)=>_[1]-J[1])[0])==null?void 0:W[0];V&&(R=V);break}case"initialPlacement":R=c;break}if(r!==R)return{reset:{placement:R}}}return{}}}},_u=new Set(["left","top"]);async function Pu(n,a){const{placement:t,platform:e,elements:r}=n,o=await(e.isRTL==null?void 0:e.isRTL(r.floating)),i=nn(t),c=jn(t),l=It(t)==="y",p=_u.has(i)?-1:1,u=o&&l?-1:1,h=Dr(a,n);let{mainAxis:y,crossAxis:g,alignmentAxis:v}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return c&&typeof v=="number"&&(g=c==="end"?v*-1:v),l?{x:g*u,y:y*p}:{x:y*p,y:g*u}}const Iu=function(n){return n===void 0&&(n=0),{name:"offset",options:n,async fn(a){var t,e;const{x:r,y:o,placement:i,middlewareData:c}=a,l=await Pu(a,n);return i===((t=c.offset)==null?void 0:t.placement)&&(e=c.arrow)!=null&&e.alignmentOffset?{}:{x:r+l.x,y:o+l.y,data:{...l,placement:i}}}}};function Cr(){return typeof window<"u"}function sn(n){return Os(n)?(n.nodeName||"").toLowerCase():"#document"}function je(n){var a;return(n==null||(a=n.ownerDocument)==null?void 0:a.defaultView)||window}function ht(n){var a;return(a=(Os(n)?n.ownerDocument:n.document)||window.document)==null?void 0:a.documentElement}function Os(n){return Cr()?n instanceof Node||n instanceof je(n).Node:!1}function Pe(n){return Cr()?n instanceof Element||n instanceof je(n).Element:!1}function kt(n){return Cr()?n instanceof HTMLElement||n instanceof je(n).HTMLElement:!1}function go(n){return!Cr()||typeof ShadowRoot>"u"?!1:n instanceof ShadowRoot||n instanceof je(n).ShadowRoot}function Sr(n){const{overflow:a,overflowX:t,overflowY:e,display:r}=We(n);return/auto|scroll|overlay|hidden|clip/.test(a+e+t)&&r!=="inline"&&r!=="contents"}function ju(n){return/^(table|td|th)$/.test(sn(n))}function Mr(n){try{if(n.matches(":popover-open"))return!0}catch{}try{return n.matches(":modal")}catch{return!1}}const Eu=/transform|translate|scale|rotate|perspective|filter/,Tu=/paint|layout|strict|content/,_t=n=>!!n&&n!=="none";let Hr;function ba(n){const a=Pe(n)?We(n):n;return _t(a.transform)||_t(a.translate)||_t(a.scale)||_t(a.rotate)||_t(a.perspective)||!va()&&(_t(a.backdropFilter)||_t(a.filter))||Eu.test(a.willChange||"")||Tu.test(a.contain||"")}function $u(n){let a=Rt(n);for(;kt(a)&&!Cn(a);){if(ba(a))return a;if(Mr(a))return null;a=Rt(a)}return null}function va(){return Hr==null&&(Hr=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Hr}function Cn(n){return/^(html|body|#document)$/.test(sn(n))}function We(n){return je(n).getComputedStyle(n)}function _r(n){return Pe(n)?{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}:{scrollLeft:n.scrollX,scrollTop:n.scrollY}}function Rt(n){if(sn(n)==="html")return n;const a=n.assignedSlot||n.parentNode||go(n)&&n.host||ht(n);return go(a)?a.host:a}function Rs(n){const a=Rt(n);return Cn(a)?(n.ownerDocument||n).body:kt(a)&&Sr(a)?a:Rs(a)}function Sn(n,a,t){var e;a===void 0&&(a=[]),t===void 0&&(t=!0);const r=Rs(n),o=r===((e=n.ownerDocument)==null?void 0:e.body),i=je(r);if(o){const c=la(i);return a.concat(i,i.visualViewport||[],Sr(r)?r:[],c&&t?Sn(c):[])}else return a.concat(r,Sn(r,[],t))}function la(n){return n.parent&&Object.getPrototypeOf(n.parent)?n.frameElement:null}function As(n){const a=We(n);let t=parseFloat(a.width)||0,e=parseFloat(a.height)||0;const r=kt(n),o=r?n.offsetWidth:t,i=r?n.offsetHeight:e,c=sr(t)!==o||sr(e)!==i;return c&&(t=o,e=i),{width:t,height:e,$:c}}function wa(n){return Pe(n)?n:n.contextElement}function Gt(n){const a=wa(n);if(!kt(a))return it(1);const t=a.getBoundingClientRect(),{width:e,height:r,$:o}=As(a);let i=(o?sr(t.width):t.width)/e,c=(o?sr(t.height):t.height)/r;return(!i||!Number.isFinite(i))&&(i=1),(!c||!Number.isFinite(c))&&(c=1),{x:i,y:c}}const Nu=it(0);function Ls(n){const a=je(n);return!va()||!a.visualViewport?Nu:{x:a.visualViewport.offsetLeft,y:a.visualViewport.offsetTop}}function Ou(n,a,t){return a===void 0&&(a=!1),!!t&&a&&t===je(n)}function At(n,a,t,e){a===void 0&&(a=!1),t===void 0&&(t=!1);const r=n.getBoundingClientRect(),o=wa(n);let i=it(1);a&&(e?Pe(e)&&(i=Gt(e)):i=Gt(n));const c=Ou(o,t,e)?Ls(o):it(0);let l=(r.left+c.x)/i.x,p=(r.top+c.y)/i.y,u=r.width/i.x,h=r.height/i.y;if(o&&e){const y=je(o),g=Pe(e)?je(e):e;let v=y,w=la(v);for(;w&&g!==v;){const f=Gt(w),k=w.getBoundingClientRect(),C=We(w),T=k.left+(w.clientLeft+parseFloat(C.paddingLeft))*f.x,$=k.top+(w.clientTop+parseFloat(C.paddingTop))*f.y;l*=f.x,p*=f.y,u*=f.x,h*=f.y,l+=T,p+=$,v=je(w),w=la(v)}}return lr({width:u,height:h,x:l,y:p})}function Pr(n,a){const t=_r(n).scrollLeft;return a?a.left+t:At(ht(n)).left+t}function Fs(n,a){const t=n.getBoundingClientRect(),e=t.left+a.scrollLeft-Pr(n,t),r=t.top+a.scrollTop;return{x:e,y:r}}function Ru(n){let{elements:a,rect:t,offsetParent:e,strategy:r}=n;const o=r==="fixed",i=ht(e),c=a?Mr(a.floating):!1;if(e===i||c&&o)return t;let l={scrollLeft:0,scrollTop:0},p=it(1);const u=it(0),h=kt(e);if((h||!o)&&((sn(e)!=="body"||Sr(i))&&(l=_r(e)),h)){const g=At(e);p=Gt(e),u.x=g.x+e.clientLeft,u.y=g.y+e.clientTop}const y=i&&!h&&!o?Fs(i,l):it(0);return{width:t.width*p.x,height:t.height*p.y,x:t.x*p.x-l.scrollLeft*p.x+u.x+y.x,y:t.y*p.y-l.scrollTop*p.y+u.y+y.y}}function Au(n){return n.getClientRects?Array.from(n.getClientRects()):[]}function Lu(n){const a=_r(n),t=n.ownerDocument.body,e=Et(n.scrollWidth,n.clientWidth,t.scrollWidth,t.clientWidth),r=Et(n.scrollHeight,n.clientHeight,t.scrollHeight,t.clientHeight);let o=-a.scrollLeft+Pr(n);const i=-a.scrollTop;return We(t).direction==="rtl"&&(o+=Et(n.clientWidth,t.clientWidth)-e),{width:e,height:r,x:o,y:i}}const Fu=25;function Yu(n,a,t){t===void 0&&(t="viewport");const e=t==="layoutViewport",r=je(n),o=ht(n),i=r.visualViewport;let c=o.clientWidth,l=o.clientHeight,p=0,u=0;if(i){const y=!va()||a==="fixed";e?y||(p=-i.offsetLeft,u=-i.offsetTop):(c=i.width,l=i.height,y&&(p=i.offsetLeft,u=i.offsetTop))}if(Pr(o)<=0){const y=o.ownerDocument,g=y.body,v=getComputedStyle(g),w=y.compatMode==="CSS1Compat"&&parseFloat(v.marginLeft)+parseFloat(v.marginRight)||0,f=Math.abs(o.clientWidth-g.clientWidth-w),k=getComputedStyle(o).scrollbarGutter==="stable both-edges"?f/2:f;k<=Fu&&(c-=k)}return{width:c,height:l,x:p,y:u}}function Wu(n,a){const t=At(n,!0,a==="fixed"),e=t.top+n.clientTop,r=t.left+n.clientLeft,o=Gt(n),i=n.clientWidth*o.x,c=n.clientHeight*o.y,l=r*o.x,p=e*o.y;return{width:i,height:c,x:l,y:p}}function xo(n,a,t){let e;if(a==="viewport"||a==="layoutViewport")e=Yu(n,t,a);else if(a==="document")e=Lu(ht(n));else if(Pe(a))e=Wu(a,t);else{const r=Ls(n);e={x:a.x-r.x,y:a.y-r.y,width:a.width,height:a.height}}return lr(e)}function Bu(n,a){const t=a.get(n);if(t)return t;let e=Sn(n,[],!1).filter(c=>Pe(c)&&sn(c)!=="body"),r=null;const o=We(n).position==="fixed";let i=o?Rt(n):n;for(;Pe(i)&&!Cn(i);){const c=We(i),l=ba(i),p=r?r.position:o?"fixed":"";!l&&(p==="fixed"||p==="absolute"&&c.position==="static")?e=e.filter(h=>h!==i):r=c,i=Rt(i)}return a.set(n,e),e}function Hu(n){let{element:a,boundary:t,rootBoundary:e,strategy:r}=n;const i=[...t==="clippingAncestors"?Mr(a)?[]:Bu(a,this._c):[].concat(t),e],c=xo(a,i[0],r);let l=c.top,p=c.right,u=c.bottom,h=c.left;for(let y=1;y<i.length;y++){const g=xo(a,i[y],r);l=Et(g.top,l),p=tn(g.right,p),u=tn(g.bottom,u),h=Et(g.left,h)}return{width:p-h,height:u-l,x:h,y:l}}function zu(n){const{width:a,height:t}=As(n);return{width:a,height:t}}function qu(n,a,t){const e=kt(a),r=ht(a),o=t==="fixed",i=At(n,!0,o,a);let c={scrollLeft:0,scrollTop:0};const l=it(0);if((e||!o)&&((sn(a)!=="body"||Sr(r))&&(c=_r(a)),e)){const y=At(a,!0,o,a);l.x=y.x+a.clientLeft,l.y=y.y+a.clientTop}!e&&r&&(l.x=Pr(r));const p=r&&!e&&!o?Fs(r,c):it(0),u=i.left+c.scrollLeft-l.x-p.x,h=i.top+c.scrollTop-l.y-p.y;return{x:u,y:h,width:i.width,height:i.height}}function zr(n){return We(n).position==="static"}function yo(n,a){if(!kt(n)||We(n).position==="fixed")return null;if(a)return a(n);let t=n.offsetParent;return ht(n)===t&&(t=t.ownerDocument.body),t}function Ys(n,a){const t=je(n);if(Mr(n))return t;if(!kt(n)){let r=Rt(n);for(;r&&!Cn(r);){if(Pe(r)&&!zr(r))return r;r=Rt(r)}return t}let e=yo(n,a);for(;e&&ju(e)&&zr(e);)e=yo(e,a);return e&&Cn(e)&&zr(e)&&!ba(e)?t:e||$u(n)||t}const Qu=async function(n){const a=this.getOffsetParent||Ys,t=this.getDimensions,e=await t(n.floating);return{reference:qu(n.reference,await a(n.floating),n.strategy),floating:{x:0,y:0,width:e.width,height:e.height}}};function Ku(n){return We(n).direction==="rtl"}const Vu={convertOffsetParentRelativeRectToViewportRelativeRect:Ru,getDocumentElement:ht,getClippingRect:Hu,getOffsetParent:Ys,getElementRects:Qu,getClientRects:Au,getDimensions:zu,getScale:Gt,isElement:Pe,isRTL:Ku};function Ws(n,a){return n.x===a.x&&n.y===a.y&&n.width===a.width&&n.height===a.height}function Uu(n,a,t){let e=null,r;const o=ht(n);function i(){var u;clearTimeout(r),(u=e)==null||u.disconnect(),e=null}function c(u,h){u===void 0&&(u=!1),h===void 0&&(h=1),i();const y=n.getBoundingClientRect(),{left:g,top:v,width:w,height:f}=y;if(u||a(),!w||!f)return;const k=Hn(v),C=Hn(o.clientWidth-(g+w)),T=Hn(o.clientHeight-(v+f)),$=Hn(g),N={rootMargin:-k+"px "+-C+"px "+-T+"px "+-$+"px",threshold:Et(0,tn(1,h))||1};let M=!0;function D(I){const P=I[0].intersectionRatio;if(!Ws(y,n.getBoundingClientRect()))return c();if(P!==h){if(!M)return c();P?c(!1,P):r=setTimeout(()=>{c(!1,1e-7)},1e3)}M=!1}try{e=new IntersectionObserver(D,{...N,root:o.ownerDocument})}catch{e=new IntersectionObserver(D,N)}e.observe(n)}const l=je(n),p=()=>c(t);return l.addEventListener("resize",p),c(!0),()=>{l.removeEventListener("resize",p),i()}}function Xu(n,a,t,e){e===void 0&&(e={});const{ancestorScroll:r=!0,ancestorResize:o=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:l=!1}=e,p=wa(n),u=r||o?[...p?Sn(p):[],...a?Sn(a):[]]:[];u.forEach(k=>{r&&k.addEventListener("scroll",t),o&&k.addEventListener("resize",t)});const h=p&&c?Uu(p,t,o):null;let y=-1,g=null;i&&(g=new ResizeObserver(k=>{let[C]=k;C&&C.target===p&&g&&a&&(g.unobserve(a),cancelAnimationFrame(y),y=requestAnimationFrame(()=>{var T;(T=g)==null||T.observe(a)})),t()}),p&&!l&&g.observe(p),a&&g.observe(a));let v,w=l?At(n):null;l&&f();function f(){const k=At(n);w&&!Ws(w,k)&&t(),w=k,v=requestAnimationFrame(f)}return t(),()=>{var k;u.forEach(C=>{r&&C.removeEventListener("scroll",t),o&&C.removeEventListener("resize",t)}),h==null||h(),(k=g)==null||k.disconnect(),g=null,l&&cancelAnimationFrame(v)}}const Gu=Iu,Ju=Mu,bo=Su,Zu=(n,a,t)=>{const e=new Map,r=t??{},o={...Vu,...r.platform,_c:e};return Cu(n,a,{...r,platform:o})};var ep=typeof document<"u",tp=function(){},Zn=ep?b.useLayoutEffect:tp;function dr(n,a){if(n===a)return!0;if(typeof n!=typeof a)return!1;if(typeof n=="function"&&n.toString()===a.toString())return!0;let t,e,r;if(n&&a&&typeof n=="object"){if(Array.isArray(n)){if(t=n.length,t!==a.length)return!1;for(e=t;e--!==0;)if(!dr(n[e],a[e]))return!1;return!0}if(r=Object.keys(n),t=r.length,t!==Object.keys(a).length)return!1;for(e=t;e--!==0;)if(!{}.hasOwnProperty.call(a,r[e]))return!1;for(e=t;e--!==0;){const o=r[e];if(!(o==="_owner"&&n.$$typeof)&&!dr(n[o],a[o]))return!1}return!0}return n!==n&&a!==a}function Bs(n){return typeof window>"u"?1:(n.ownerDocument.defaultView||window).devicePixelRatio||1}function vo(n,a){const t=Bs(n);return Math.round(a*t)/t}function qr(n){const a=b.useRef(n);return Zn(()=>{a.current=n}),a}function np(n){n===void 0&&(n={});const{placement:a="bottom",strategy:t="absolute",middleware:e=[],platform:r,elements:{reference:o,floating:i}={},transform:c=!0,whileElementsMounted:l,open:p}=n,[u,h]=b.useState({x:0,y:0,strategy:t,placement:a,middlewareData:{},isPositioned:!1}),[y,g]=b.useState(e);dr(y,e)||g(e);const[v,w]=b.useState(null),[f,k]=b.useState(null),C=b.useCallback(_=>{_!==N.current&&(N.current=_,w(_))},[]),T=b.useCallback(_=>{_!==M.current&&(M.current=_,k(_))},[]),$=o||v,A=i||f,N=b.useRef(null),M=b.useRef(null),D=b.useRef(u),I=l!=null,P=qr(l),E=qr(r),O=qr(p),W=b.useCallback(()=>{if(!N.current||!M.current)return;const _={placement:a,strategy:t,middleware:y};E.current&&(_.platform=E.current),Zu(N.current,M.current,_).then(J=>{const ge={...J,isPositioned:O.current!==!1};z.current&&!dr(D.current,ge)&&(D.current=ge,Xc.flushSync(()=>{h(ge)}))})},[y,a,t,E,O]);Zn(()=>{p===!1&&D.current.isPositioned&&(D.current.isPositioned=!1,h(_=>({..._,isPositioned:!1})))},[p]);const z=b.useRef(!1);Zn(()=>(z.current=!0,()=>{z.current=!1}),[]),Zn(()=>{if($&&(N.current=$),A&&(M.current=A),$&&A){if(P.current)return P.current($,A,W);W()}},[$,A,W,P,I]);const Q=b.useMemo(()=>({reference:N,floating:M,setReference:C,setFloating:T}),[C,T]),R=b.useMemo(()=>({reference:$,floating:A}),[$,A]),V=b.useMemo(()=>{const _={position:t,left:0,top:0};if(!R.floating)return _;const J=vo(R.floating,u.x),ge=vo(R.floating,u.y);return c?{..._,transform:"translate("+J+"px, "+ge+"px)",...Bs(R.floating)>=1.5&&{willChange:"transform"}}:{position:t,left:J,top:ge}},[t,c,R.floating,u.x,u.y]);return b.useMemo(()=>({...u,update:W,refs:Q,elements:R,floatingStyles:V}),[u,W,Q,R,V])}const rp=n=>{function a(t){return{}.hasOwnProperty.call(t,"current")}return{name:"arrow",options:n,fn(t){const{element:e,padding:r}=typeof n=="function"?n(t):n;return e&&a(e)?e.current!=null?bo({element:e.current,padding:r}).fn(t):{}:e?bo({element:e,padding:r}).fn(t):{}}}},ap=(n,a)=>{const t=Gu(n);return{name:t.name,fn:t.fn,options:[n,a]}},op=(n,a)=>{const t=Ju(n);return{name:t.name,fn:t.fn,options:[n,a]}},ip=(n,a)=>{const t=rp(n);return{name:t.name,fn:t.fn,options:[n,a]}},Hs=216n,sp=(1n<<Hs)-1n;function cp(n){const a=typeof n=="bigint"?n:BigInt(n.trim());if(a<0n)throw new Error(`Invalid tokenId: ${String(n)}`);return{itemId:(a>>Hs).toString(),issuedId:(a&sp).toString()}}function lp(n){if(!n)return null;try{return cp(n).itemId}catch{return null}}function wo(n,a){return a.kind==="listed"?{...n,isOnSale:!0,listingPrice:a.priceCredits,tradeId:a.tradeId??n.tradeId}:{...n,isOnSale:!1,listingPrice:void 0,tradeId:void 0}}function Qr(n,a,t){const{address:e,contractAddress:r,tokenId:o}=a;if(!r||!o)return;const i=`${r}-${o}`;n.cancelQueries({queryKey:["owned-token",r,o]}),n.cancelQueries({queryKey:["secondary-sale-state"]}),e&&n.cancelQueries({queryKey:["my-assets",e]});const c=t.kind==="gone";n.setQueriesData({queryKey:["owned-token",r,o]},p=>p&&(c?null:wo(p,t)));const l=e?["my-assets",e]:["my-assets"];n.setQueriesData({queryKey:l},p=>p!=null&&p.pages?{...p,pages:p.pages.map(u=>{if(c){const h=u.items.filter(y=>!(y.contractAddress===r&&y.tokenId===o));return{...u,items:h,total:Math.max(0,u.total-(u.items.length-h.length))}}return{...u,items:u.items.map(h=>h.contractAddress===r&&h.tokenId===o?wo(h,t):h)}})}:p),n.setQueriesData({queryKey:["secondary-sale-state"]},p=>{var h;if(!p)return p;const u={...p};return t.kind==="removed"||t.kind==="gone"?delete u[i]:u[i]={priceCredits:t.priceCredits,tradeId:t.tradeId??((h=u[i])==null?void 0:h.tradeId)??""},u})}function dp(n){return!(n.isMarket||n.forSale&&n.priceKnown||n.manage||n.soldOutWithResale||!n.stillResolving&&!n.resolvingTrade&&(n.isTokenRoute?!n.ownedAssetLoading:!n.deepLinkLoading))}const up="data:image/webp;base64,UklGRqgOAABXRUJQVlA4IJwOAACwOwCdASqEAIsAPj0YikMiIaEWuib4IAPEtQBl0QC/bukK7J6X8cPZP5F69/Nvhj8oPlD3odY/QB8RXPv/C+3n59+izzA/0l/3/9064PmD/bH9Zvey/33r8/2PqC/zH/fdaX6EX7O+nP+3Xwlfub+33tOf/+7N8wTMuJT/znss7V9qD/DcDplr/deudN0/Rcajjp49/Q//7vLR70+4X+tP/R9az//+3r9z/Yk/ZVVfCa+jj+kU2kxc+zPDZIZQYWF19BTevkFTZdPnQBT3YukdDX/AtCNcmvBrFJ96eYkUWaCCtnOpfB+/IETSsPYuwsabIrqSWHYoPBskXi/DUubCFDAf/6+0pCLU1kmMIueWH8HebltZsATbIO+vXwG1gHAXjGECElz7j/+GXHZJM9ORAFgOa/b/pGdMUEE9PfuMHx1G3GpnRw8WEP5FknNoUNOyb6iY5VX/W5w6pnS5r1srs4CXTuHzUJLdvXVpyiQNuBwCyLYlukPjvLuqqHRrv5/jHTa1L+iumi2wLA8NzahM3euE6fvC7shIbIWajyLkVYhWOOdMRjOWdhSN1wi7JvE4t+bFXSVHOX+4DnQxVhhUKacLKMYPHhQKLZSdyYzM66dZ22undenNBcAjNHjBW+9t0W2glcAA/v44VaU8mJJP1Vz1l456kKu23B2wH7M9h1OtAwoGAGj8t///XA7H+OEVSxGjYfFAlM1Upvv/NmvKOBdxK8JXyQLqAqwy0bgja/QQTJKOEDkKXVg8HRGbA4YhU/9KZ5ulhbrnm7S6a3XhSmzHNxDfaPRezgQ0/P9ZW+KbLltsoK42ORYMdpD+ZNjvwybgVPBD9EHv+g73MeRCpYGemyJk33SfCLWO6KdUBlYRNr8Mo+qAoyC9JkWFe7IXV7Z97jmAJIiqXCgQLxyeB+hbtaa+FYbgl1eFTp7G94pdaY/8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Bsd1hRKl7lZ1wMh16/EZx5jig5JWvlZNPTMuJFHvpW42fyFjIfKslwVHB/SJKWDRr3w9uFCRm/Z3ABn2ydMFGvXjMZEaTsZlqF17J76wjrLkgmgcbtrtL9N8T3dXsKhM4LPscSPo2kc9MfW3dmjuo98vCdxBR/RvMAgm0VzEuXulny1QdmDMzoBUfPseIFkTNYFg89+m4OKn/8Xc28jcPteGx8v0vwYyKNlOAZvi/yt7OImF7kADj+rzqjSoqwVTnCCjOKrF1Gt1i+6oeDggdd5wEh1ghvxdHELxvJeJE8x82cfHEVXhE9Nheu7Q1WycLXUTZA8oZHsdBaBFpk6vyYdYFT8YTShaCjPle1+2DJHzXzhRUQ6ZY/HcDs/vS2V8+jO+pjV23u5WL6yRWULzVi+0qUXIiJzd9qj65YnWPMxIubcSpm+5n8vMpysoMuGzoNwBmNszF+S+b8acZRgm2Gi0UT5OGuYwq4wZ5kmd8OqnDzhze2RxwMRtRm+17eKYWzLWtgVuOca/HWuBI58UC9FNZtBLv1l2htg7Iyehb/cr9uKvXkPXh0LFeyfEc49dOsGvppssGqOAAAAA=",fp=m.div`
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["_assets/index-B6Fs-ly-.js","_assets/react-vyZjIDcS.js","_assets/dcl-schemas-BICTSpB5.js","_assets/index-B8qQ9Xxb.js","_assets/sentry-B35L1FdR.js","_assets/ethers-CXBJm_wN.js","_assets/intl-CBcMB1D2.js","_assets/index-BMzstP-8.css","_assets/createSvgIcon--KCu3mQi.js","_assets/clsx-3D8Gvjd6.js","_assets/emotion-styled.browser.esm-Dn08UyTd.js","_assets/CircularProgress-_0gSPNcC.js","_assets/index-LeLZ_uWV.js","_assets/useTheme-DPli5iET.js","_assets/getThemeProps-CnXSHx3q.js"])))=>i.map(i=>d[i]);
2
+ var Vc=Object.defineProperty;var Uc=(n,a,t)=>a in n?Vc(n,a,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[a]=t;var H=(n,a,t)=>Uc(n,typeof a!="symbol"?a+"":a,t);import{r as b,d as Xc,j as s,b as Yt,l as fs,R as S,h as Gc,e as Jc,a as Zc,L as el}from"./react-vyZjIDcS.js";import{s as m,t as d,e as x,I as G,bf as tl,z as Ie,K as Ve,h as bt,be as Lr,n as Ot,al as hs,am as nl,D as Wt,at as rl,a0 as ms,a1 as or,av as ia,ar as le,az as Ge,ay as at,bz as al,l as $e,ax as Fr,aw as gs,aj as ol,c as Zt,a as sa,b as il,C as xs,y as sl,u as we,M as cl,ag as wr,o as kr,E as ga,aR as Xt,p as ys,F as _n,ai as bs,bA as ll,B as Pn,J as In,bB as vs,aS as oo,aT as dl,f as ws,bC as ul,_ as Yr,x as pl,ak as Dn,bD as fl,bE as hl,bF as ml,bG as gl,bH as xl,bI as yl,bJ as ks,bK as bl,bL as vl,d as Ds,bM as wl,bN as kl,bO as Dl,bP as Cl,H as Sl,bQ as Ml,R as _l,bR as Pl,bS as Il,bT as jl,bU as El,bV as Tl,bW as $l,aJ as Nl,m as Ol,bX as Rl,bY as Al,bZ as Ll,b_ as io,ah as Fl,b$ as Yl,c0 as Wl,c1 as Bl,c2 as Hl,c3 as zl,c4 as ql}from"./index-B8qQ9Xxb.js";import{d as Fe,a as so}from"./dcl-schemas-BICTSpB5.js";import{$ as Wr,m as Ql,K as Kl,V as Vl,Q as Cs,R as Ul,M as Xl,S as Gl,C as Jl,H as Zl,a as ed,T as td,X as nd,b as rd,B as ad,c as od,d as id,e as sd,f as qt,j as Bn,k as Qt,W as cd,p as ld,q as dd,P as ud,x as pd,y as fd,z as hd,D as md,E as gd,F as xd,G as yd,I as bd,J as vd,L as wd,l as kd,n as Dd,o as Cd,a0 as Sd,a1 as Md,A as _d,r as Pd,s as Id,t as jd,u as Ed,v as Td,w as $d,a2 as Nd,a3 as Od,a4 as Rd,N as Ad,O as co,U as Ld}from"./CollectionCarousel-CDNotQwG.js";import{a as ir,t as Fd,c as Yd}from"./buy-DTB3xpDX.js";import{f as Wd}from"./builder-Biq1yQgT.js";import{u as Bd,M as Hd,l as zd,c as qd}from"./useCreditPacks-CcsRRofr.js";import{r as Qd}from"./mana-rate-LTr19y4S.js";import{m as lo}from"./mana-matic-C4e1sNO3.js";import{i as Ss,f as Ms,n as Kd,j as Vd,c as uo,g as _s,e as Ud,r as Xd,m as Gd}from"./authorizations-JSOY6ArB.js";import{a as Ps,w as Is,S as js,G as Es}from"./buy-gasless-C9C0u3NU.js";import{R as po}from"./resume-buy-Bf0zIH7y.js";import{a as Jd,f as xt,i as en}from"./errors-Bj3SjlpX.js";import{E as ut}from"./ErrorNotice-6S2ayRHK.js";import{C as Zd}from"./CircularProgress-_0gSPNcC.js";import{a as eu,b as tu,j as nu,e as ru,c as au,d as ou}from"./trade-encoding-CjafzO-R.js";import{M as iu,E as su,s as cu}from"./sendMetaTransaction-B3nckO8c.js";import{C as lu,I as du}from"./ethers-CXBJm_wN.js";import{a as Br}from"./mana-convert-Bbf4K53E.js";import{u as Ts}from"./useManaRate-BezWDX4Q.js";import{u as uu}from"./useSecondarySales-DVrg7pqD.js";import{T as $s}from"./Tooltip-3y4DnUZl.js";import"./sentry-B35L1FdR.js";import"./intl-CBcMB1D2.js";import"./clsx-3D8Gvjd6.js";const tn=Math.min,Et=Math.max,sr=Math.round,Hn=Math.floor,it=n=>({x:n,y:n}),pu={left:"right",right:"left",bottom:"top",top:"bottom"};function fu(n,a,t){return Et(n,tn(a,t))}function Dr(n,a){return typeof n=="function"?n(a):n}function nn(n){return n.split("-")[0]}function jn(n){return n.split("-")[1]}function hu(n){return n==="x"?"y":"x"}function xa(n){return n==="y"?"height":"width"}function It(n){const a=n[0];return a==="t"||a==="b"?"y":"x"}function ya(n){return hu(It(n))}function mu(n,a,t){t===void 0&&(t=!1);const e=jn(n),r=ya(n),o=xa(r);let i=r==="x"?e===(t?"end":"start")?"right":"left":e==="start"?"bottom":"top";return a.reference[o]>a.floating[o]&&(i=cr(i)),[i,cr(i)]}function gu(n){const a=cr(n);return[ca(n),a,ca(a)]}function ca(n){return n.includes("start")?n.replace("start","end"):n.replace("end","start")}const fo=["left","right"],ho=["right","left"],xu=["top","bottom"],yu=["bottom","top"];function bu(n,a,t){switch(n){case"top":case"bottom":return t?a?ho:fo:a?fo:ho;case"left":case"right":return a?xu:yu;default:return[]}}function vu(n,a,t,e){const r=jn(n);let o=bu(nn(n),t==="start",e);return r&&(o=o.map(i=>i+"-"+r),a&&(o=o.concat(o.map(ca)))),o}function cr(n){const a=nn(n);return pu[a]+n.slice(a.length)}function wu(n){var a,t,e,r;return{top:(a=n.top)!=null?a:0,right:(t=n.right)!=null?t:0,bottom:(e=n.bottom)!=null?e:0,left:(r=n.left)!=null?r:0}}function Ns(n){return typeof n!="number"?wu(n):{top:n,right:n,bottom:n,left:n}}function lr(n){const{x:a,y:t,width:e,height:r}=n;return{width:e,height:r,top:t,left:a,right:a+e,bottom:t+r,x:a,y:t}}function mo(n,a,t){let{reference:e,floating:r}=n;const o=It(a),i=ya(a),c=xa(i),l=nn(a),p=o==="y",u=e.x+e.width/2-r.width/2,h=e.y+e.height/2-r.height/2,y=e[c]/2-r[c]/2;let g;switch(l){case"top":g={x:u,y:e.y-r.height};break;case"bottom":g={x:u,y:e.y+e.height};break;case"right":g={x:e.x+e.width,y:h};break;case"left":g={x:e.x-r.width,y:h};break;default:g={x:e.x,y:e.y}}const v=jn(a);return v&&(g[i]+=y*(v==="end"?1:-1)*(t&&p?-1:1)),g}async function ku(n,a){var t;a===void 0&&(a={});const{x:e,y:r,platform:o,rects:i,elements:c,strategy:l}=n,{boundary:p="clippingAncestors",rootBoundary:u="viewport",elementContext:h="floating",altBoundary:y=!1,padding:g=0}=Dr(a,n),v=Ns(g),f=c[y?h==="floating"?"reference":"floating":h],k=lr(await o.getClippingRect({element:(t=await(o.isElement==null?void 0:o.isElement(f)))==null||t?f:f.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(c.floating)),boundary:p,rootBoundary:u,strategy:l})),C=h==="floating"?{x:e,y:r,width:i.floating.width,height:i.floating.height}:i.reference,T=await(o.getOffsetParent==null?void 0:o.getOffsetParent(c.floating)),$=await(o.isElement==null?void 0:o.isElement(T))&&await(o.getScale==null?void 0:o.getScale(T))||{x:1,y:1},A=lr(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:C,offsetParent:T,strategy:l}):C);return{top:(k.top-A.top+v.top)/$.y,bottom:(A.bottom-k.bottom+v.bottom)/$.y,left:(k.left-A.left+v.left)/$.x,right:(A.right-k.right+v.right)/$.x}}const Du=50,Cu=async(n,a,t)=>{const{placement:e="bottom",strategy:r="absolute",middleware:o=[],platform:i}=t,c=i.detectOverflow?i:{...i,detectOverflow:ku},l=await(i.isRTL==null?void 0:i.isRTL(a));let p=await i.getElementRects({reference:n,floating:a,strategy:r}),{x:u,y:h}=mo(p,e,l),y=e,g=0;const v={};for(let w=0;w<o.length;w++){const f=o[w];if(!f)continue;const{name:k,fn:C}=f,{x:T,y:$,data:A,reset:N}=await C({x:u,y:h,initialPlacement:e,placement:y,strategy:r,middlewareData:v,rects:p,platform:c,elements:{reference:n,floating:a}});u=T??u,h=$??h,v[k]={...v[k],...A},N&&g<Du&&(g++,typeof N=="object"&&(N.placement&&(y=N.placement),N.rects&&(p=N.rects===!0?await i.getElementRects({reference:n,floating:a,strategy:r}):N.rects),{x:u,y:h}=mo(p,y,l)),w=-1)}return{x:u,y:h,placement:y,strategy:r,middlewareData:v}},Su=n=>({name:"arrow",options:n,async fn(a){const{x:t,y:e,placement:r,rects:o,platform:i,elements:c,middlewareData:l}=a,{element:p,padding:u=0}=Dr(n,a)||{};if(p==null)return{};const h=Ns(u),y={x:t,y:e},g=ya(r),v=xa(g),w=await i.getDimensions(p),f=g==="y",k=f?"top":"left",C=f?"bottom":"right",T=f?"clientHeight":"clientWidth",$=o.reference[v]+o.reference[g]-y[g]-o.floating[v],A=y[g]-o.reference[g],N=await(i.getOffsetParent==null?void 0:i.getOffsetParent(p));let M=N?N[T]:0;(!M||!await(i.isElement==null?void 0:i.isElement(N)))&&(M=c.floating[T]||o.floating[v]);const D=$/2-A/2,I=M/2-w[v]/2-1,P=tn(h[k],I),E=tn(h[C],I),O=M-w[v]-E,W=M/2-w[v]/2+D,z=fu(P,W,O),Q=!l.arrow&&jn(r)!=null&&W!==z&&o.reference[v]/2-(W<P?P:E)-w[v]/2<0,R=Q?W<P?W-P:W-O:0;return{[g]:y[g]+R,data:{[g]:z,centerOffset:W-z-R,...Q&&{alignmentOffset:R}},reset:Q}}}),Mu=function(n){return n===void 0&&(n={}),{name:"flip",options:n,async fn(a){var t,e;const{placement:r,middlewareData:o,rects:i,initialPlacement:c,platform:l,elements:p}=a,{mainAxis:u=!0,crossAxis:h=!0,fallbackPlacements:y,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:w=!0,...f}=Dr(n,a);if((t=o.arrow)!=null&&t.alignmentOffset)return{};const k=nn(r),C=It(c),T=nn(c)===c,$=await(l.isRTL==null?void 0:l.isRTL(p.floating)),A=y||(T||!w?[cr(c)]:gu(c)),N=v!=="none";!y&&N&&A.push(...vu(c,w,v,$));const M=[c,...A],D=await l.detectOverflow(a,f),I=[];let P=((e=o.flip)==null?void 0:e.overflows)||[];if(u&&I.push(D[k]),h){const z=mu(r,i,$);I.push(D[z[0]],D[z[1]])}if(P=[...P,{placement:r,overflows:I}],!I.every(z=>z<=0)){var E,O;const z=(((E=o.flip)==null?void 0:E.index)||0)+1,Q=M[z];if(Q&&(!(h==="alignment"?C!==It(Q):!1)||P.every(_=>It(_.placement)===C?_.overflows[0]>0:!0)))return{data:{index:z,overflows:P},reset:{placement:Q}};let R=(O=P.filter(V=>V.overflows[0]<=0).sort((V,_)=>V.overflows[1]-_.overflows[1])[0])==null?void 0:O.placement;if(!R)switch(g){case"bestFit":{var W;const V=(W=P.filter(_=>{if(N){const J=It(_.placement);return J===C||J==="y"}return!0}).map(_=>[_.placement,_.overflows.filter(J=>J>0).reduce((J,ge)=>J+ge,0)]).sort((_,J)=>_[1]-J[1])[0])==null?void 0:W[0];V&&(R=V);break}case"initialPlacement":R=c;break}if(r!==R)return{reset:{placement:R}}}return{}}}},_u=new Set(["left","top"]);async function Pu(n,a){const{placement:t,platform:e,elements:r}=n,o=await(e.isRTL==null?void 0:e.isRTL(r.floating)),i=nn(t),c=jn(t),l=It(t)==="y",p=_u.has(i)?-1:1,u=o&&l?-1:1,h=Dr(a,n);let{mainAxis:y,crossAxis:g,alignmentAxis:v}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return c&&typeof v=="number"&&(g=c==="end"?v*-1:v),l?{x:g*u,y:y*p}:{x:y*p,y:g*u}}const Iu=function(n){return n===void 0&&(n=0),{name:"offset",options:n,async fn(a){var t,e;const{x:r,y:o,placement:i,middlewareData:c}=a,l=await Pu(a,n);return i===((t=c.offset)==null?void 0:t.placement)&&(e=c.arrow)!=null&&e.alignmentOffset?{}:{x:r+l.x,y:o+l.y,data:{...l,placement:i}}}}};function Cr(){return typeof window<"u"}function sn(n){return Os(n)?(n.nodeName||"").toLowerCase():"#document"}function je(n){var a;return(n==null||(a=n.ownerDocument)==null?void 0:a.defaultView)||window}function ht(n){var a;return(a=(Os(n)?n.ownerDocument:n.document)||window.document)==null?void 0:a.documentElement}function Os(n){return Cr()?n instanceof Node||n instanceof je(n).Node:!1}function Pe(n){return Cr()?n instanceof Element||n instanceof je(n).Element:!1}function kt(n){return Cr()?n instanceof HTMLElement||n instanceof je(n).HTMLElement:!1}function go(n){return!Cr()||typeof ShadowRoot>"u"?!1:n instanceof ShadowRoot||n instanceof je(n).ShadowRoot}function Sr(n){const{overflow:a,overflowX:t,overflowY:e,display:r}=We(n);return/auto|scroll|overlay|hidden|clip/.test(a+e+t)&&r!=="inline"&&r!=="contents"}function ju(n){return/^(table|td|th)$/.test(sn(n))}function Mr(n){try{if(n.matches(":popover-open"))return!0}catch{}try{return n.matches(":modal")}catch{return!1}}const Eu=/transform|translate|scale|rotate|perspective|filter/,Tu=/paint|layout|strict|content/,_t=n=>!!n&&n!=="none";let Hr;function ba(n){const a=Pe(n)?We(n):n;return _t(a.transform)||_t(a.translate)||_t(a.scale)||_t(a.rotate)||_t(a.perspective)||!va()&&(_t(a.backdropFilter)||_t(a.filter))||Eu.test(a.willChange||"")||Tu.test(a.contain||"")}function $u(n){let a=Rt(n);for(;kt(a)&&!Cn(a);){if(ba(a))return a;if(Mr(a))return null;a=Rt(a)}return null}function va(){return Hr==null&&(Hr=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Hr}function Cn(n){return/^(html|body|#document)$/.test(sn(n))}function We(n){return je(n).getComputedStyle(n)}function _r(n){return Pe(n)?{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}:{scrollLeft:n.scrollX,scrollTop:n.scrollY}}function Rt(n){if(sn(n)==="html")return n;const a=n.assignedSlot||n.parentNode||go(n)&&n.host||ht(n);return go(a)?a.host:a}function Rs(n){const a=Rt(n);return Cn(a)?(n.ownerDocument||n).body:kt(a)&&Sr(a)?a:Rs(a)}function Sn(n,a,t){var e;a===void 0&&(a=[]),t===void 0&&(t=!0);const r=Rs(n),o=r===((e=n.ownerDocument)==null?void 0:e.body),i=je(r);if(o){const c=la(i);return a.concat(i,i.visualViewport||[],Sr(r)?r:[],c&&t?Sn(c):[])}else return a.concat(r,Sn(r,[],t))}function la(n){return n.parent&&Object.getPrototypeOf(n.parent)?n.frameElement:null}function As(n){const a=We(n);let t=parseFloat(a.width)||0,e=parseFloat(a.height)||0;const r=kt(n),o=r?n.offsetWidth:t,i=r?n.offsetHeight:e,c=sr(t)!==o||sr(e)!==i;return c&&(t=o,e=i),{width:t,height:e,$:c}}function wa(n){return Pe(n)?n:n.contextElement}function Gt(n){const a=wa(n);if(!kt(a))return it(1);const t=a.getBoundingClientRect(),{width:e,height:r,$:o}=As(a);let i=(o?sr(t.width):t.width)/e,c=(o?sr(t.height):t.height)/r;return(!i||!Number.isFinite(i))&&(i=1),(!c||!Number.isFinite(c))&&(c=1),{x:i,y:c}}const Nu=it(0);function Ls(n){const a=je(n);return!va()||!a.visualViewport?Nu:{x:a.visualViewport.offsetLeft,y:a.visualViewport.offsetTop}}function Ou(n,a,t){return a===void 0&&(a=!1),!!t&&a&&t===je(n)}function At(n,a,t,e){a===void 0&&(a=!1),t===void 0&&(t=!1);const r=n.getBoundingClientRect(),o=wa(n);let i=it(1);a&&(e?Pe(e)&&(i=Gt(e)):i=Gt(n));const c=Ou(o,t,e)?Ls(o):it(0);let l=(r.left+c.x)/i.x,p=(r.top+c.y)/i.y,u=r.width/i.x,h=r.height/i.y;if(o&&e){const y=je(o),g=Pe(e)?je(e):e;let v=y,w=la(v);for(;w&&g!==v;){const f=Gt(w),k=w.getBoundingClientRect(),C=We(w),T=k.left+(w.clientLeft+parseFloat(C.paddingLeft))*f.x,$=k.top+(w.clientTop+parseFloat(C.paddingTop))*f.y;l*=f.x,p*=f.y,u*=f.x,h*=f.y,l+=T,p+=$,v=je(w),w=la(v)}}return lr({width:u,height:h,x:l,y:p})}function Pr(n,a){const t=_r(n).scrollLeft;return a?a.left+t:At(ht(n)).left+t}function Fs(n,a){const t=n.getBoundingClientRect(),e=t.left+a.scrollLeft-Pr(n,t),r=t.top+a.scrollTop;return{x:e,y:r}}function Ru(n){let{elements:a,rect:t,offsetParent:e,strategy:r}=n;const o=r==="fixed",i=ht(e),c=a?Mr(a.floating):!1;if(e===i||c&&o)return t;let l={scrollLeft:0,scrollTop:0},p=it(1);const u=it(0),h=kt(e);if((h||!o)&&((sn(e)!=="body"||Sr(i))&&(l=_r(e)),h)){const g=At(e);p=Gt(e),u.x=g.x+e.clientLeft,u.y=g.y+e.clientTop}const y=i&&!h&&!o?Fs(i,l):it(0);return{width:t.width*p.x,height:t.height*p.y,x:t.x*p.x-l.scrollLeft*p.x+u.x+y.x,y:t.y*p.y-l.scrollTop*p.y+u.y+y.y}}function Au(n){return n.getClientRects?Array.from(n.getClientRects()):[]}function Lu(n){const a=_r(n),t=n.ownerDocument.body,e=Et(n.scrollWidth,n.clientWidth,t.scrollWidth,t.clientWidth),r=Et(n.scrollHeight,n.clientHeight,t.scrollHeight,t.clientHeight);let o=-a.scrollLeft+Pr(n);const i=-a.scrollTop;return We(t).direction==="rtl"&&(o+=Et(n.clientWidth,t.clientWidth)-e),{width:e,height:r,x:o,y:i}}const Fu=25;function Yu(n,a,t){t===void 0&&(t="viewport");const e=t==="layoutViewport",r=je(n),o=ht(n),i=r.visualViewport;let c=o.clientWidth,l=o.clientHeight,p=0,u=0;if(i){const y=!va()||a==="fixed";e?y||(p=-i.offsetLeft,u=-i.offsetTop):(c=i.width,l=i.height,y&&(p=i.offsetLeft,u=i.offsetTop))}if(Pr(o)<=0){const y=o.ownerDocument,g=y.body,v=getComputedStyle(g),w=y.compatMode==="CSS1Compat"&&parseFloat(v.marginLeft)+parseFloat(v.marginRight)||0,f=Math.abs(o.clientWidth-g.clientWidth-w),k=getComputedStyle(o).scrollbarGutter==="stable both-edges"?f/2:f;k<=Fu&&(c-=k)}return{width:c,height:l,x:p,y:u}}function Wu(n,a){const t=At(n,!0,a==="fixed"),e=t.top+n.clientTop,r=t.left+n.clientLeft,o=Gt(n),i=n.clientWidth*o.x,c=n.clientHeight*o.y,l=r*o.x,p=e*o.y;return{width:i,height:c,x:l,y:p}}function xo(n,a,t){let e;if(a==="viewport"||a==="layoutViewport")e=Yu(n,t,a);else if(a==="document")e=Lu(ht(n));else if(Pe(a))e=Wu(a,t);else{const r=Ls(n);e={x:a.x-r.x,y:a.y-r.y,width:a.width,height:a.height}}return lr(e)}function Bu(n,a){const t=a.get(n);if(t)return t;let e=Sn(n,[],!1).filter(c=>Pe(c)&&sn(c)!=="body"),r=null;const o=We(n).position==="fixed";let i=o?Rt(n):n;for(;Pe(i)&&!Cn(i);){const c=We(i),l=ba(i),p=r?r.position:o?"fixed":"";!l&&(p==="fixed"||p==="absolute"&&c.position==="static")?e=e.filter(h=>h!==i):r=c,i=Rt(i)}return a.set(n,e),e}function Hu(n){let{element:a,boundary:t,rootBoundary:e,strategy:r}=n;const i=[...t==="clippingAncestors"?Mr(a)?[]:Bu(a,this._c):[].concat(t),e],c=xo(a,i[0],r);let l=c.top,p=c.right,u=c.bottom,h=c.left;for(let y=1;y<i.length;y++){const g=xo(a,i[y],r);l=Et(g.top,l),p=tn(g.right,p),u=tn(g.bottom,u),h=Et(g.left,h)}return{width:p-h,height:u-l,x:h,y:l}}function zu(n){const{width:a,height:t}=As(n);return{width:a,height:t}}function qu(n,a,t){const e=kt(a),r=ht(a),o=t==="fixed",i=At(n,!0,o,a);let c={scrollLeft:0,scrollTop:0};const l=it(0);if((e||!o)&&((sn(a)!=="body"||Sr(r))&&(c=_r(a)),e)){const y=At(a,!0,o,a);l.x=y.x+a.clientLeft,l.y=y.y+a.clientTop}!e&&r&&(l.x=Pr(r));const p=r&&!e&&!o?Fs(r,c):it(0),u=i.left+c.scrollLeft-l.x-p.x,h=i.top+c.scrollTop-l.y-p.y;return{x:u,y:h,width:i.width,height:i.height}}function zr(n){return We(n).position==="static"}function yo(n,a){if(!kt(n)||We(n).position==="fixed")return null;if(a)return a(n);let t=n.offsetParent;return ht(n)===t&&(t=t.ownerDocument.body),t}function Ys(n,a){const t=je(n);if(Mr(n))return t;if(!kt(n)){let r=Rt(n);for(;r&&!Cn(r);){if(Pe(r)&&!zr(r))return r;r=Rt(r)}return t}let e=yo(n,a);for(;e&&ju(e)&&zr(e);)e=yo(e,a);return e&&Cn(e)&&zr(e)&&!ba(e)?t:e||$u(n)||t}const Qu=async function(n){const a=this.getOffsetParent||Ys,t=this.getDimensions,e=await t(n.floating);return{reference:qu(n.reference,await a(n.floating),n.strategy),floating:{x:0,y:0,width:e.width,height:e.height}}};function Ku(n){return We(n).direction==="rtl"}const Vu={convertOffsetParentRelativeRectToViewportRelativeRect:Ru,getDocumentElement:ht,getClippingRect:Hu,getOffsetParent:Ys,getElementRects:Qu,getClientRects:Au,getDimensions:zu,getScale:Gt,isElement:Pe,isRTL:Ku};function Ws(n,a){return n.x===a.x&&n.y===a.y&&n.width===a.width&&n.height===a.height}function Uu(n,a,t){let e=null,r;const o=ht(n);function i(){var u;clearTimeout(r),(u=e)==null||u.disconnect(),e=null}function c(u,h){u===void 0&&(u=!1),h===void 0&&(h=1),i();const y=n.getBoundingClientRect(),{left:g,top:v,width:w,height:f}=y;if(u||a(),!w||!f)return;const k=Hn(v),C=Hn(o.clientWidth-(g+w)),T=Hn(o.clientHeight-(v+f)),$=Hn(g),N={rootMargin:-k+"px "+-C+"px "+-T+"px "+-$+"px",threshold:Et(0,tn(1,h))||1};let M=!0;function D(I){const P=I[0].intersectionRatio;if(!Ws(y,n.getBoundingClientRect()))return c();if(P!==h){if(!M)return c();P?c(!1,P):r=setTimeout(()=>{c(!1,1e-7)},1e3)}M=!1}try{e=new IntersectionObserver(D,{...N,root:o.ownerDocument})}catch{e=new IntersectionObserver(D,N)}e.observe(n)}const l=je(n),p=()=>c(t);return l.addEventListener("resize",p),c(!0),()=>{l.removeEventListener("resize",p),i()}}function Xu(n,a,t,e){e===void 0&&(e={});const{ancestorScroll:r=!0,ancestorResize:o=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:l=!1}=e,p=wa(n),u=r||o?[...p?Sn(p):[],...a?Sn(a):[]]:[];u.forEach(k=>{r&&k.addEventListener("scroll",t),o&&k.addEventListener("resize",t)});const h=p&&c?Uu(p,t,o):null;let y=-1,g=null;i&&(g=new ResizeObserver(k=>{let[C]=k;C&&C.target===p&&g&&a&&(g.unobserve(a),cancelAnimationFrame(y),y=requestAnimationFrame(()=>{var T;(T=g)==null||T.observe(a)})),t()}),p&&!l&&g.observe(p),a&&g.observe(a));let v,w=l?At(n):null;l&&f();function f(){const k=At(n);w&&!Ws(w,k)&&t(),w=k,v=requestAnimationFrame(f)}return t(),()=>{var k;u.forEach(C=>{r&&C.removeEventListener("scroll",t),o&&C.removeEventListener("resize",t)}),h==null||h(),(k=g)==null||k.disconnect(),g=null,l&&cancelAnimationFrame(v)}}const Gu=Iu,Ju=Mu,bo=Su,Zu=(n,a,t)=>{const e=new Map,r=t??{},o={...Vu,...r.platform,_c:e};return Cu(n,a,{...r,platform:o})};var ep=typeof document<"u",tp=function(){},Zn=ep?b.useLayoutEffect:tp;function dr(n,a){if(n===a)return!0;if(typeof n!=typeof a)return!1;if(typeof n=="function"&&n.toString()===a.toString())return!0;let t,e,r;if(n&&a&&typeof n=="object"){if(Array.isArray(n)){if(t=n.length,t!==a.length)return!1;for(e=t;e--!==0;)if(!dr(n[e],a[e]))return!1;return!0}if(r=Object.keys(n),t=r.length,t!==Object.keys(a).length)return!1;for(e=t;e--!==0;)if(!{}.hasOwnProperty.call(a,r[e]))return!1;for(e=t;e--!==0;){const o=r[e];if(!(o==="_owner"&&n.$$typeof)&&!dr(n[o],a[o]))return!1}return!0}return n!==n&&a!==a}function Bs(n){return typeof window>"u"?1:(n.ownerDocument.defaultView||window).devicePixelRatio||1}function vo(n,a){const t=Bs(n);return Math.round(a*t)/t}function qr(n){const a=b.useRef(n);return Zn(()=>{a.current=n}),a}function np(n){n===void 0&&(n={});const{placement:a="bottom",strategy:t="absolute",middleware:e=[],platform:r,elements:{reference:o,floating:i}={},transform:c=!0,whileElementsMounted:l,open:p}=n,[u,h]=b.useState({x:0,y:0,strategy:t,placement:a,middlewareData:{},isPositioned:!1}),[y,g]=b.useState(e);dr(y,e)||g(e);const[v,w]=b.useState(null),[f,k]=b.useState(null),C=b.useCallback(_=>{_!==N.current&&(N.current=_,w(_))},[]),T=b.useCallback(_=>{_!==M.current&&(M.current=_,k(_))},[]),$=o||v,A=i||f,N=b.useRef(null),M=b.useRef(null),D=b.useRef(u),I=l!=null,P=qr(l),E=qr(r),O=qr(p),W=b.useCallback(()=>{if(!N.current||!M.current)return;const _={placement:a,strategy:t,middleware:y};E.current&&(_.platform=E.current),Zu(N.current,M.current,_).then(J=>{const ge={...J,isPositioned:O.current!==!1};z.current&&!dr(D.current,ge)&&(D.current=ge,Xc.flushSync(()=>{h(ge)}))})},[y,a,t,E,O]);Zn(()=>{p===!1&&D.current.isPositioned&&(D.current.isPositioned=!1,h(_=>({..._,isPositioned:!1})))},[p]);const z=b.useRef(!1);Zn(()=>(z.current=!0,()=>{z.current=!1}),[]),Zn(()=>{if($&&(N.current=$),A&&(M.current=A),$&&A){if(P.current)return P.current($,A,W);W()}},[$,A,W,P,I]);const Q=b.useMemo(()=>({reference:N,floating:M,setReference:C,setFloating:T}),[C,T]),R=b.useMemo(()=>({reference:$,floating:A}),[$,A]),V=b.useMemo(()=>{const _={position:t,left:0,top:0};if(!R.floating)return _;const J=vo(R.floating,u.x),ge=vo(R.floating,u.y);return c?{..._,transform:"translate("+J+"px, "+ge+"px)",...Bs(R.floating)>=1.5&&{willChange:"transform"}}:{position:t,left:J,top:ge}},[t,c,R.floating,u.x,u.y]);return b.useMemo(()=>({...u,update:W,refs:Q,elements:R,floatingStyles:V}),[u,W,Q,R,V])}const rp=n=>{function a(t){return{}.hasOwnProperty.call(t,"current")}return{name:"arrow",options:n,fn(t){const{element:e,padding:r}=typeof n=="function"?n(t):n;return e&&a(e)?e.current!=null?bo({element:e.current,padding:r}).fn(t):{}:e?bo({element:e,padding:r}).fn(t):{}}}},ap=(n,a)=>{const t=Gu(n);return{name:t.name,fn:t.fn,options:[n,a]}},op=(n,a)=>{const t=Ju(n);return{name:t.name,fn:t.fn,options:[n,a]}},ip=(n,a)=>{const t=rp(n);return{name:t.name,fn:t.fn,options:[n,a]}},Hs=216n,sp=(1n<<Hs)-1n;function cp(n){const a=typeof n=="bigint"?n:BigInt(n.trim());if(a<0n)throw new Error(`Invalid tokenId: ${String(n)}`);return{itemId:(a>>Hs).toString(),issuedId:(a&sp).toString()}}function lp(n){if(!n)return null;try{return cp(n).itemId}catch{return null}}function wo(n,a){return a.kind==="listed"?{...n,isOnSale:!0,listingPrice:a.priceCredits,tradeId:a.tradeId??n.tradeId}:{...n,isOnSale:!1,listingPrice:void 0,tradeId:void 0}}function Qr(n,a,t){const{address:e,contractAddress:r,tokenId:o}=a;if(!r||!o)return;const i=`${r}-${o}`;n.cancelQueries({queryKey:["owned-token",r,o]}),n.cancelQueries({queryKey:["secondary-sale-state"]}),e&&n.cancelQueries({queryKey:["my-assets",e]});const c=t.kind==="gone";n.setQueriesData({queryKey:["owned-token",r,o]},p=>p&&(c?null:wo(p,t)));const l=e?["my-assets",e]:["my-assets"];n.setQueriesData({queryKey:l},p=>p!=null&&p.pages?{...p,pages:p.pages.map(u=>{if(c){const h=u.items.filter(y=>!(y.contractAddress===r&&y.tokenId===o));return{...u,items:h,total:Math.max(0,u.total-(u.items.length-h.length))}}return{...u,items:u.items.map(h=>h.contractAddress===r&&h.tokenId===o?wo(h,t):h)}})}:p),n.setQueriesData({queryKey:["secondary-sale-state"]},p=>{var h;if(!p)return p;const u={...p};return t.kind==="removed"||t.kind==="gone"?delete u[i]:u[i]={priceCredits:t.priceCredits,tradeId:t.tradeId??((h=u[i])==null?void 0:h.tradeId)??""},u})}function dp(n){return!(n.isMarket||n.forSale&&n.priceKnown||n.manage||n.soldOutWithResale||!n.stillResolving&&!n.resolvingTrade&&(n.isTokenRoute?!n.ownedAssetLoading:!n.deepLinkLoading))}const up="data:image/webp;base64,UklGRqgOAABXRUJQVlA4IJwOAACwOwCdASqEAIsAPj0YikMiIaEWuib4IAPEtQBl0QC/bukK7J6X8cPZP5F69/Nvhj8oPlD3odY/QB8RXPv/C+3n59+izzA/0l/3/9064PmD/bH9Zvey/33r8/2PqC/zH/fdaX6EX7O+nP+3Xwlfub+33tOf/+7N8wTMuJT/znss7V9qD/DcDplr/deudN0/Rcajjp49/Q//7vLR70+4X+tP/R9az//+3r9z/Yk/ZVVfCa+jj+kU2kxc+zPDZIZQYWF19BTevkFTZdPnQBT3YukdDX/AtCNcmvBrFJ96eYkUWaCCtnO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5n8vMpysoMuGzoNwBmNszF+S+b8acZRgm2Gi0UT5OGuYwq4wZ5kmd8OqnDzhze2RxwMRtRm+17eKYWzLWtgVuOca/HWuBI58UC9FNZtBLv1l2htg7Iyehb/cr9uKvXkPXh0LFeyfEc49dOsGvppssGqOAAAAA=",fp=m.div`
3
3
  display: flex;
4
4
  flex-direction: column;
5
5
  gap: 24px;
@@ -1705,7 +1705,7 @@ var Vc=Object.defineProperty;var Uc=(n,a,t)=>a in n?Vc(n,a,{enumerable:!0,config
1705
1705
  margin-top: 18px;
1706
1706
  `,Ri=m(Pn)`
1707
1707
  flex: 1;
1708
- `;function Ai(n){if(en(n))return x("errors.rejected");const a=(n.message??"").toLowerCase();return a.includes("insufficient")?x("marketCheckout.error.insufficient",{currency:bt.name}):a.includes("not found")||a.includes("no active listing")||a.includes("404")?x("marketCheckout.error.soldOrRemoved"):a.includes("your own listing")?x("errors.cantBuyOwn"):x("marketCheckout.error.generic")}function ly(n){return{id:n.tradeId,tradeId:n.tradeId,name:n.name,creator:n.creator,contractAddress:n.contractAddress,itemId:n.itemId,category:n.category,wearableCategory:n.wearableCategory??void 0,rarity:n.rarity,network:n.network,chainId:n.chainId,thumbnail:n.thumbnail,priceCredits:0,gender:null,isSmart:!1}}function kc({listing:n,rate:a,onClose:t,onSold:e}){const{session:r}=Ot(),{data:o,isError:i}=hs(r),c=Wt(),l=Yt(),[p,u]=b.useState("confirm"),[h,y]=b.useState(x("marketCheckout.lockingPrice")),[g,v]=b.useState(null),[w,f]=b.useState(null),k=b.useRef(null),C=b.useRef(zs()),T=or(Br(n.manaWei,a));b.useEffect(()=>{let P=!1;if(!r){u("error"),v(x("buyModal.signInToCheckout"));return}return(async()=>{try{const O=await ws(n.tradeId);if(!O)throw new Error("not found");if(ms(O,r.address))throw new Error("You can't buy your own listing.");const W=Br(n.manaWei,a);if(!Number.isFinite(W)||W<=0)throw new Error("price unavailable");const{credit:z,maxCreditedValue:Q,usdCents:R}=await ia(r.identity,W,n.tradeId);if(P){N([z.id]);return}k.current=z.id,f({trade:O,credit:z,maxCreditedValue:Q,usdCents:R,credits:or(R)}),y("")}catch(O){if(P)return;console.error("[market] authorize failed",O),le(at(O)?"Shop Purchase Cancelled":"Shop Purchase Failed",{step:"authorize",error_code:Ge(O),value_usd:Math.round(Br(n.manaWei,a))/100}),u("error"),v(Ai(O))}})(),()=>{P=!0,k.current&&r&&(M([k.current]),k.current=null)}},[]);const $=!!w&&o!=null&&o.credits<w.credits;async function A(){if(!r||!w)return;if($){le("Shop Buy Credits Prompted",{from:"item_checkout",credits_needed:w.credits,credits_balance:(o==null?void 0:o.credits)??0,shortfall:Math.max(0,w.credits-((o==null?void 0:o.credits)??0))}),N([w.credit.id]),k.current=null,l("/credits");return}u("working"),v(null);let P=!1,E;try{y(x("marketCheckout.confirming"));const W={trade:w.trade,buyer:r.address,signer:r.signer,credits:[w.credit],maxCreditedValue:w.maxCreditedValue,onBroadcast:({txHash:z})=>C.current.broadcast(w.credit.id,z),onReverted:({txHash:z})=>{z&&C.current.reverted(z)}};if(C.current.submitStarted(w.credit.id),Ss())try{E=await Ps(W),C.current.broadcast(w.credit.id,E),await Is(E),P=!0}catch(z){if(z instanceof js)P=!0;else if(z instanceof Es){if(z.reason==="relayer-unreachable")throw C.current.unobservable(w.credit.id),z;E=await ir(W)}else throw E&&C.current.reverted(E),z}else E=await ir(W)}catch(W){C.current.submitFinished(w.credit.id),console.error("[market] buy now failed",W),N([w.credit.id]),k.current=null,le(at(W)?"Shop Purchase Cancelled":"Shop Purchase Failed",{step:"submit",error_code:Ge(W),value_usd:w.usdCents/100}),c.invalidateQueries({queryKey:["usd-balance"]}),v(Ai(W)),u("error");const z=(W.message??"").toLowerCase();(z.includes("not found")||z.includes("no active listing")||z.includes("404"))&&e();return}C.current.submitFinished(w.credit.id),k.current=null;try{c.invalidateQueries({queryKey:["usd-balance"]}),le("Shop Completed Purchase",{items:[{item_id:n.itemId??null,contract_address:n.contractAddress,token_id:null,price_usd:w.usdCents/100}],value_credits:w.credits,value_usd:w.usdCents/100,purchase_type:"item",is_primary:!0,payment_type:"credits",no_crypto_step:P,transaction_hash:E??null}),c.invalidateQueries({queryKey:["detail-trade"]}),c.invalidateQueries({queryKey:["shop-item"]}),c.invalidateQueries({queryKey:["item-resales",n.contractAddress,n.itemId]}),c.invalidateQueries({queryKey:["shop-items"]}),c.invalidateQueries({queryKey:["catalog-items"]}),c.invalidateQueries({queryKey:["my-assets"]}),c.invalidateQueries({queryKey:["purchases"]})}catch(W){$e(W,{flow:"market_buy_now",step:"post_purchase"})}const O={items:[ly(n)],txHash:E};l("/success",{state:O})}function N(P){if(!r||P.length===0)return;const E=P.filter(O=>!C.current.mayBeConsumed(O));E.length!==0&&gs(r.identity,E).catch(()=>{})}function M(P){N(P.filter(E=>!C.current.isInFlight(E)))}function D(){r&&w&&N([w.credit.id]),k.current=null,t()}const I=p==="working";return s.jsxs(Jx,{role:"dialog","aria-modal":"true","aria-label":x("buyModal.dialogAria",{name:n.name}),children:[s.jsx(Zx,{onClick:I?void 0:D,"aria-hidden":!0}),s.jsxs(ey,{children:[s.jsxs(ty,{children:[s.jsx(ny,{children:n.thumbnail?s.jsx("img",{src:n.thumbnail,alt:""}):null}),s.jsxs("div",{children:[s.jsx(ry,{title:n.name,children:n.name||x("buyModal.itemFallback")}),s.jsx(vs,{"data-variant":"rarity",children:n.rarity})]})]}),s.jsx(ay,{children:w?s.jsxs(s.Fragment,{children:[s.jsx(Ei,{children:x("marketCheckout.finalPrice")}),s.jsxs(Ti,{children:[s.jsx($i,{}),oo(w.credits)]}),s.jsxs(Ni,{className:"muted",children:[x("marketCheckout.lockedForPurchase")," · $",(w.usdCents/100).toFixed(2)]})]}):s.jsxs(s.Fragment,{children:[s.jsx(Ei,{children:x("marketCheckout.todaysPrice")}),s.jsxs(Ti,{"data-approx":!0,children:[s.jsx(oy,{"aria-hidden":!0,children:"≈"}),s.jsx($i,{}),oo(T)]}),s.jsx(Ni,{className:"muted",children:h||x("marketCheckout.lockingPrice")})]})}),r?s.jsxs(iy,{className:"muted",children:[x("marketCheckout.yourBalance")," ",s.jsx(Ie,{className:"ccy-mark"})," ",dl(o,i)]}):null,$?s.jsx(Oi,{className:"muted",children:x("marketCheckout.needMore",{currency:bt.name})}):null,h&&p==="working"?s.jsx(Oi,{className:"muted",children:h}):null,s.jsx(sy,{message:g}),s.jsxs(cy,{children:[s.jsx(Ri,{variant:"ghost",onClick:D,disabled:I,children:x("buyModal.cancel")}),s.jsx(Ri,{variant:"purple",onClick:()=>void A(),disabled:I||!w,children:I?x("marketCheckout.buying"):$?x("nav.getCredits",{currency:bt.name}):x("marketCheckout.confirmPurchase")})]})]})]})}function dy(n,a,{enabled:t=!0,first:e}={}){const{data:r,isFetched:o}=we({queryKey:["related-items",n,a,e],enabled:t&&!!n&&!!a,staleTime:3e5,queryFn:()=>ul(n,a,{first:e})});return{items:r??[],isFetched:o}}const uy=b.lazy(async()=>{const[{EmoteControls:n},{Experimental_CssVarsProvider:a},{light:t}]=await Promise.all([Yr(()=>import("./index-BnaX4TbU.js").then(e=>e.i),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11])),Yr(()=>import("./index-Bg9_Rb37.js"),__vite__mapDeps([12,3,1,4,2,5,6,7,13,14,9])),Yr(()=>import("./index-DI_IjAcF.js").then(e=>e.c8),__vite__mapDeps([3,1,4,2,5,6,7]))]);return{default:e=>s.jsx(a,{theme:t,children:s.jsx(n,{...e})})}});function py(n){return s.jsx(b.Suspense,{fallback:null,children:s.jsx(uy,{...n})})}function fy(){const n=b.useRef(null),[a,t]=b.useState(!0),[e,r]=b.useState(()=>typeof document>"u"||document.visibilityState!=="hidden");return b.useEffect(()=>{const o=n.current;if(!o||typeof IntersectionObserver>"u")return;const i=new IntersectionObserver(c=>t(c.some(l=>l.isIntersecting)),{rootMargin:"200px"});return i.observe(o),()=>i.disconnect()},[]),b.useEffect(()=>{if(typeof document>"u")return;const o=()=>r(document.visibilityState!=="hidden");return document.addEventListener("visibilitychange",o),()=>document.removeEventListener("visibilitychange",o)},[]),{ref:n,active:a&&e}}function hy(n){if(n)try{so.sendMessage(n,so.PreviewMessageType.CONTROLLER_REQUEST,{id:`dispose-${Date.now()}`,namespace:"scene",method:"cleanup",params:[]})}catch{}}const{colors:ce,media:ja}=d,my=pl`
1708
+ `;function Ai(n){if(en(n))return x("errors.rejected");const a=(n.message??"").toLowerCase();return a.includes("insufficient")?x("marketCheckout.error.insufficient",{currency:bt.name}):a.includes("not found")||a.includes("no active listing")||a.includes("404")?x("marketCheckout.error.soldOrRemoved"):a.includes("your own listing")?x("errors.cantBuyOwn"):x("marketCheckout.error.generic")}function ly(n){return{id:n.tradeId,tradeId:n.tradeId,name:n.name,creator:n.creator,contractAddress:n.contractAddress,itemId:n.itemId,category:n.category,wearableCategory:n.wearableCategory??void 0,rarity:n.rarity,network:n.network,chainId:n.chainId,thumbnail:n.thumbnail,priceCredits:0,gender:null,isSmart:!1}}function kc({listing:n,rate:a,onClose:t,onSold:e}){const{session:r}=Ot(),{data:o,isError:i}=hs(r),c=Wt(),l=Yt(),[p,u]=b.useState("confirm"),[h,y]=b.useState(x("marketCheckout.lockingPrice")),[g,v]=b.useState(null),[w,f]=b.useState(null),k=b.useRef(null),C=b.useRef(zs()),T=or(Br(n.manaWei,a));b.useEffect(()=>{let P=!1;if(!r){u("error"),v(x("buyModal.signInToCheckout"));return}return(async()=>{try{const O=await ws(n.tradeId);if(!O)throw new Error("not found");if(ms(O,r.address))throw new Error("You can't buy your own listing.");const W=Br(n.manaWei,a);if(!Number.isFinite(W)||W<=0)throw new Error("price unavailable");const{credit:z,maxCreditedValue:Q,usdCents:R}=await ia(r.identity,W,n.tradeId);if(P){N([z.id]);return}k.current=z.id,f({trade:O,credit:z,maxCreditedValue:Q,usdCents:R,credits:or(R)}),y("")}catch(O){if(P)return;console.error("[market] authorize failed",O),le(at(O)?"Shop Purchase Cancelled":"Shop Purchase Failed",{step:"authorize",error_code:Ge(O),value_usd:Math.round(Br(n.manaWei,a))/100}),u("error"),v(Ai(O))}})(),()=>{P=!0,k.current&&r&&(M([k.current]),k.current=null)}},[]);const $=!!w&&o!=null&&o.credits<w.credits;async function A(){if(!r||!w)return;if($){le("Shop Buy Credits Prompted",{from:"item_checkout",credits_needed:w.credits,credits_balance:(o==null?void 0:o.credits)??0,shortfall:Math.max(0,w.credits-((o==null?void 0:o.credits)??0))}),N([w.credit.id]),k.current=null,l("/credits");return}u("working"),v(null);let P=!1,E;try{y(x("marketCheckout.confirming"));const W={trade:w.trade,buyer:r.address,signer:r.signer,credits:[w.credit],maxCreditedValue:w.maxCreditedValue,onBroadcast:({txHash:z})=>C.current.broadcast(w.credit.id,z),onReverted:({txHash:z})=>{z&&C.current.reverted(z)}};if(C.current.submitStarted(w.credit.id),Ss())try{E=await Ps(W),C.current.broadcast(w.credit.id,E),await Is(E),P=!0}catch(z){if(z instanceof js)P=!0;else if(z instanceof Es){if(z.reason==="relayer-unreachable")throw C.current.unobservable(w.credit.id),z;E=await ir(W)}else throw E&&C.current.reverted(E),z}else E=await ir(W)}catch(W){C.current.submitFinished(w.credit.id),console.error("[market] buy now failed",W),N([w.credit.id]),k.current=null,le(at(W)?"Shop Purchase Cancelled":"Shop Purchase Failed",{step:"submit",error_code:Ge(W),value_usd:w.usdCents/100}),c.invalidateQueries({queryKey:["usd-balance"]}),v(Ai(W)),u("error");const z=(W.message??"").toLowerCase();(z.includes("not found")||z.includes("no active listing")||z.includes("404"))&&e();return}C.current.submitFinished(w.credit.id),k.current=null;try{c.invalidateQueries({queryKey:["usd-balance"]}),le("Shop Completed Purchase",{items:[{item_id:n.itemId??null,contract_address:n.contractAddress,token_id:null,price_usd:w.usdCents/100}],value_credits:w.credits,value_usd:w.usdCents/100,purchase_type:"item",is_primary:!0,payment_type:"credits",no_crypto_step:P,transaction_hash:E??null}),c.invalidateQueries({queryKey:["detail-trade"]}),c.invalidateQueries({queryKey:["shop-item"]}),c.invalidateQueries({queryKey:["item-resales",n.contractAddress,n.itemId]}),c.invalidateQueries({queryKey:["shop-items"]}),c.invalidateQueries({queryKey:["catalog-items"]}),c.invalidateQueries({queryKey:["my-assets"]}),c.invalidateQueries({queryKey:["purchases"]})}catch(W){$e(W,{flow:"market_buy_now",step:"post_purchase"})}const O={items:[ly(n)],txHash:E};l("/success",{state:O})}function N(P){if(!r||P.length===0)return;const E=P.filter(O=>!C.current.mayBeConsumed(O));E.length!==0&&gs(r.identity,E).catch(()=>{})}function M(P){N(P.filter(E=>!C.current.isInFlight(E)))}function D(){r&&w&&N([w.credit.id]),k.current=null,t()}const I=p==="working";return s.jsxs(Jx,{role:"dialog","aria-modal":"true","aria-label":x("buyModal.dialogAria",{name:n.name}),children:[s.jsx(Zx,{onClick:I?void 0:D,"aria-hidden":!0}),s.jsxs(ey,{children:[s.jsxs(ty,{children:[s.jsx(ny,{children:n.thumbnail?s.jsx("img",{src:n.thumbnail,alt:""}):null}),s.jsxs("div",{children:[s.jsx(ry,{title:n.name,children:n.name||x("buyModal.itemFallback")}),s.jsx(vs,{"data-variant":"rarity",children:n.rarity})]})]}),s.jsx(ay,{children:w?s.jsxs(s.Fragment,{children:[s.jsx(Ei,{children:x("marketCheckout.finalPrice")}),s.jsxs(Ti,{children:[s.jsx($i,{}),oo(w.credits)]}),s.jsxs(Ni,{className:"muted",children:[x("marketCheckout.lockedForPurchase")," · $",(w.usdCents/100).toFixed(2)]})]}):s.jsxs(s.Fragment,{children:[s.jsx(Ei,{children:x("marketCheckout.todaysPrice")}),s.jsxs(Ti,{"data-approx":!0,children:[s.jsx(oy,{"aria-hidden":!0,children:"≈"}),s.jsx($i,{}),oo(T)]}),s.jsx(Ni,{className:"muted",children:h||x("marketCheckout.lockingPrice")})]})}),r?s.jsxs(iy,{className:"muted",children:[x("marketCheckout.yourBalance")," ",s.jsx(Ie,{className:"ccy-mark"})," ",dl(o,i)]}):null,$?s.jsx(Oi,{className:"muted",children:x("marketCheckout.needMore",{currency:bt.name})}):null,h&&p==="working"?s.jsx(Oi,{className:"muted",children:h}):null,s.jsx(sy,{message:g}),s.jsxs(cy,{children:[s.jsx(Ri,{variant:"ghost",onClick:D,disabled:I,children:x("buyModal.cancel")}),s.jsx(Ri,{variant:"purple",onClick:()=>void A(),disabled:I||!w,children:I?x("marketCheckout.buying"):$?x("nav.getCredits",{currency:bt.name}):x("marketCheckout.confirmPurchase")})]})]})]})}function dy(n,a,{enabled:t=!0,first:e}={}){const{data:r,isFetched:o}=we({queryKey:["related-items",n,a,e],enabled:t&&!!n&&!!a,staleTime:3e5,queryFn:()=>ul(n,a,{first:e})});return{items:r??[],isFetched:o}}const uy=b.lazy(async()=>{const[{EmoteControls:n},{Experimental_CssVarsProvider:a},{light:t}]=await Promise.all([Yr(()=>import("./index-B6Fs-ly-.js").then(e=>e.i),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11])),Yr(()=>import("./index-LeLZ_uWV.js"),__vite__mapDeps([12,3,1,4,2,5,6,7,13,14,9])),Yr(()=>import("./index-B8qQ9Xxb.js").then(e=>e.c8),__vite__mapDeps([3,1,4,2,5,6,7]))]);return{default:e=>s.jsx(a,{theme:t,children:s.jsx(n,{...e})})}});function py(n){return s.jsx(b.Suspense,{fallback:null,children:s.jsx(uy,{...n})})}function fy(){const n=b.useRef(null),[a,t]=b.useState(!0),[e,r]=b.useState(()=>typeof document>"u"||document.visibilityState!=="hidden");return b.useEffect(()=>{const o=n.current;if(!o||typeof IntersectionObserver>"u")return;const i=new IntersectionObserver(c=>t(c.some(l=>l.isIntersecting)),{rootMargin:"200px"});return i.observe(o),()=>i.disconnect()},[]),b.useEffect(()=>{if(typeof document>"u")return;const o=()=>r(document.visibilityState!=="hidden");return document.addEventListener("visibilitychange",o),()=>document.removeEventListener("visibilitychange",o)},[]),{ref:n,active:a&&e}}function hy(n){if(n)try{so.sendMessage(n,so.PreviewMessageType.CONTROLLER_REQUEST,{id:`dispose-${Date.now()}`,namespace:"scene",method:"cleanup",params:[]})}catch{}}const{colors:ce,media:ja}=d,my=pl`
1709
1709
  to {
1710
1710
  transform: rotate(360deg);
1711
1711
  }
@@ -1,4 +1,4 @@
1
- import{r as l,j as c}from"./react-vyZjIDcS.js";import{s as u,B as f,e as d}from"./index-DI_IjAcF.js";const p=u.div`
1
+ import{r as l,j as c}from"./react-vyZjIDcS.js";import{s as u,B as f,e as d}from"./index-B8qQ9Xxb.js";const p=u.div`
2
2
  display: flex;
3
3
  justify-content: center;
4
4
  padding: 28px 0 8px;
@@ -1,4 +1,4 @@
1
- import{O as Y,N as Ke,P as M,bv as vt,b8 as mt,bt as we}from"./index-DI_IjAcF.js";import{h as De,R as Me,r as O,j as X,d as nn,i as rn,g as on}from"./react-vyZjIDcS.js";import{g as jt,a as Nt,c as Lt,b as Ye,s as Ze,d as an,f as sn}from"./clsx-BETN9X51.js";import{_ as ln,T as Wt,u as ue,s as ht,o as je,a as un}from"./createSvgIcon-sbUQV66i.js";import{u as cn}from"./useTheme-D346drKA.js";function fn(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}var Fe={exports:{}},S={};/**
1
+ import{O as Y,N as Ke,P as M,bv as vt,b8 as mt,bt as we}from"./index-B8qQ9Xxb.js";import{h as De,R as Me,r as O,j as X,d as nn,i as rn,g as on}from"./react-vyZjIDcS.js";import{g as jt,a as Nt,c as Lt,b as Ye,s as Ze,d as an,f as sn}from"./clsx-3D8Gvjd6.js";import{_ as ln,T as Wt,u as ue,s as ht,o as je,a as un}from"./createSvgIcon--KCu3mQi.js";import{u as cn}from"./useTheme-DPli5iET.js";function fn(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}var Fe={exports:{}},S={};/**
2
2
  * @license React
3
3
  * react-is.production.min.js
4
4
  *
@@ -1,4 +1,4 @@
1
- import{L as be,u as Ue,r as c,j as t}from"./react-vyZjIDcS.js";import{s as a,t as s,I as k,m as He,e as r,n as We,o as re,u as _,B as Ye,S as D,A as U,q as Qe,c as we,v as Ve,w as Ze}from"./index-DI_IjAcF.js";import{f as Je}from"./import-Da0nCdcK.js";import{f as Xe}from"./builder-C4njBf3q.js";import{L as et}from"./LoadMore-CvF1ryR6.js";import{R as H,C as tt,a as st,F as ot,S as ae}from"./categories-A3Tq54j-.js";import{D as ie,F as le,R as nt,a as rt,b as at,c as it,d as lt,S as ct,e as dt,f as mt,g as pt,h as ut,i as ft,j as xt,k as ht,C as yt,l as gt,m as bt,n as wt,M as St}from"./Assets.styles-3wC-xeWp.js";import{u as jt}from"./useInfiniteGrid-NfDPHWXi.js";import{u as $t}from"./useSecondarySales-Caon2E63.js";import{E as ce}from"./ErrorNotice-DNbl0Lx6.js";import{n as Se}from"./Tooltip-VDc8mbHU.js";import"./sentry-B35L1FdR.js";import"./dcl-schemas-BICTSpB5.js";import"./ethers-CXBJm_wN.js";import"./intl-CBcMB1D2.js";import"./buy-myGa3uAa.js";import"./authorizations-BTC_bFln.js";import"./sendMetaTransaction-BLHMOdHq.js";import"./trade-encoding-BVlmzFE-.js";import"./mana-rate-BxYQ9xUU.js";import"./mana-convert-CTsfw0Op.js";a.div`
1
+ import{L as be,u as Ue,r as c,j as t}from"./react-vyZjIDcS.js";import{s as a,t as s,I as k,m as He,e as r,n as We,o as re,u as _,B as Ye,S as D,A as U,q as Qe,c as we,v as Ve,w as Ze}from"./index-B8qQ9Xxb.js";import{f as Je}from"./import-C0DSObrV.js";import{f as Xe}from"./builder-Biq1yQgT.js";import{L as et}from"./LoadMore-COkJGWsB.js";import{R as H,C as tt,a as st,F as ot,S as ae}from"./categories-BqS-qyq6.js";import{D as ie,F as le,R as nt,a as rt,b as at,c as it,d as lt,S as ct,e as dt,f as mt,g as pt,h as ut,i as ft,j as xt,k as ht,C as yt,l as gt,m as bt,n as wt,M as St}from"./Assets.styles-DEZ9a_GD.js";import{u as jt}from"./useInfiniteGrid-jYXiF9Ls.js";import{u as $t}from"./useSecondarySales-DVrg7pqD.js";import{E as ce}from"./ErrorNotice-6S2ayRHK.js";import{n as Se}from"./Tooltip-3y4DnUZl.js";import"./sentry-B35L1FdR.js";import"./dcl-schemas-BICTSpB5.js";import"./ethers-CXBJm_wN.js";import"./intl-CBcMB1D2.js";import"./buy-DTB3xpDX.js";import"./authorizations-JSOY6ArB.js";import"./sendMetaTransaction-B3nckO8c.js";import"./trade-encoding-CjafzO-R.js";import"./mana-rate-LTr19y4S.js";import"./mana-convert-Bbf4K53E.js";a.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  gap: 4px;
@@ -1,4 +1,4 @@
1
- import{L as h,r as g,j as t}from"./react-vyZjIDcS.js";import{s,t as f,m as u,e as o,R as c,S as y,A as v}from"./index-DI_IjAcF.js";import{L as C}from"./LoadMore-CvF1ryR6.js";import{E as j}from"./ErrorNotice-DNbl0Lx6.js";import{G as b}from"./grid.styles-B36wgJRU.js";import"./sentry-B35L1FdR.js";import"./dcl-schemas-BICTSpB5.js";import"./ethers-CXBJm_wN.js";import"./intl-CBcMB1D2.js";const{colors:e,radius:p}=f,w=s.div`
1
+ import{L as h,r as g,j as t}from"./react-vyZjIDcS.js";import{s,t as f,m as u,e as o,R as c,S as y,A as v}from"./index-B8qQ9Xxb.js";import{L as C}from"./LoadMore-COkJGWsB.js";import{E as j}from"./ErrorNotice-6S2ayRHK.js";import{G as b}from"./grid.styles-Dnnyw76z.js";import"./sentry-B35L1FdR.js";import"./dcl-schemas-BICTSpB5.js";import"./ethers-CXBJm_wN.js";import"./intl-CBcMB1D2.js";const{colors:e,radius:p}=f,w=s.div`
2
2
  display: flex;
3
3
  align-items: baseline;
4
4
  gap: 12px;
@@ -1,4 +1,4 @@
1
- import{j as t,L as n}from"./react-vyZjIDcS.js";import{s as e,I as s,m as i,e as o,B as a}from"./index-DI_IjAcF.js";import"./sentry-B35L1FdR.js";import"./dcl-schemas-BICTSpB5.js";import"./ethers-CXBJm_wN.js";import"./intl-CBcMB1D2.js";const r=e.div`
1
+ import{j as t,L as n}from"./react-vyZjIDcS.js";import{s as e,I as s,m as i,e as o,B as a}from"./index-B8qQ9Xxb.js";import"./sentry-B35L1FdR.js";import"./dcl-schemas-BICTSpB5.js";import"./ethers-CXBJm_wN.js";import"./intl-CBcMB1D2.js";const r=e.div`
2
2
  min-height: 52vh;
3
3
  display: flex;
4
4
  flex-direction: column;