@dcl/shop 1.13.1-35225172293.commit-25915c3 → 1.13.1-35339357506.commit-a201fb1

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 (433) hide show
  1. package/_assets/Activity-BZMB4hg5.js +400 -0
  2. package/_assets/{AnimatedBackground-DAkIAx6x.js → AnimatedBackground-CXVxNT-G.js} +6 -6
  3. package/_assets/Assets-tHTTA31T.js +980 -0
  4. package/_assets/{Cart-DywJ-U2P.js → Cart-BTFM7sgI.js} +37 -37
  5. package/_assets/{Collection-CJcLl_NS.js → Collection-D7LTf_OS.js} +6 -6
  6. package/_assets/CollectionCarousel-DsJ7L4rs.js +322 -0
  7. package/_assets/Confetti-cdj3K_E3.js +18 -0
  8. package/_assets/{ConstantsUtil-QDaTDgFu.js → ConstantsUtil-BRm3N2MJ.js} +2 -2
  9. package/_assets/{ContentClient-rykQJr4A.js → ContentClient-BuGONJzu.js} +2 -2
  10. package/_assets/{Creator-n86fV0HI.js → Creator-DTGBDA7q.js} +49 -49
  11. package/_assets/DeploymentBuilder-t6QMfSJh.js +4 -0
  12. package/_assets/{EmotePlaybackBar-B-F9Qz4e.js → EmotePlaybackBar-DxozN5dA.js} +19 -19
  13. package/_assets/{ErrorNotice-C59YzvXZ.js → ErrorNotice-Dlh8ddHO.js} +2 -2
  14. package/_assets/Event-B3nuIkGW.js +72 -0
  15. package/_assets/{ExchangeController-B34DBS-M.js → ExchangeController-CSSF68uc.js} +2 -2
  16. package/_assets/{Faq-DMLRIgIF.js → Faq-DQCrsGCA.js} +2 -2
  17. package/_assets/{Filters-ui-Axqrl.js → Filters-BsZs-9_M.js} +19 -19
  18. package/_assets/{GetCredits-DNUVbeIk.js → GetCredits-DLjX5S-_.js} +70 -70
  19. package/_assets/{Grow-CslarRIZ.js → Grow-CBOQ3rs-.js} +2 -2
  20. package/_assets/HelpersUtil-ItKIMa0k.js +63 -0
  21. package/_assets/{ItemDetail-D9elUmtB.js → ItemDetail-Bfbuu0cW.js} +35 -35
  22. package/_assets/LoadMore-BxuVAL5h.js +8 -0
  23. package/_assets/{ManaPricingBanner.styles-BG8UdFgp.js → ManaPricingBanner.styles-dfVXcaNP.js} +3 -3
  24. package/_assets/{MyAssets-C8h8C-X3.js → MyAssets-BbWDjYod.js} +8 -8
  25. package/_assets/{MyFavorites-_Lftn5f7.js → MyFavorites-DY192etV.js} +9 -9
  26. package/_assets/{MyStore-Bey5H8qV.js → MyStore-qM8HV1zc.js} +9 -9
  27. package/_assets/{NetworkUtil-RdwtrTea.js → NetworkUtil-B4oEt17N.js} +2 -2
  28. package/_assets/NotFound-CgcYb0ih.js +18 -0
  29. package/_assets/NotificationsBell-txLDBZgz.js +142 -0
  30. package/_assets/{OutfitDetail-DiMHEr5Q.js → OutfitDetail-EWQSU1q3.js} +5 -5
  31. package/_assets/{OutfitPreview-iMMDUjah.js → OutfitPreview-Cj1w-8ou.js} +3 -3
  32. package/_assets/{OutfitStudio-DWZ7ZmtK.js → OutfitStudio-CymFpAjx.js} +16 -16
  33. package/_assets/{PhArrowCircleDown-DxArxYac.js → PhArrowCircleDown-BgP2jbf5.js} +4 -4
  34. package/_assets/{PhArrowClockwise-C8ljy1Rj.js → PhArrowClockwise-CuNU0iSl.js} +4 -4
  35. package/_assets/{PhArrowDown-DsAplWwh.js → PhArrowDown-BrLks3Uz.js} +4 -4
  36. package/_assets/{PhArrowLeft-EPz-xHmZ.js → PhArrowLeft-BbZGSN_s.js} +3 -3
  37. package/_assets/{PhArrowRight-CVoNjAPb.js → PhArrowRight-DqLi6_uj.js} +4 -4
  38. package/_assets/{PhArrowSquareOut-DxPnhLyS.js → PhArrowSquareOut-CX0ZRgNC.js} +5 -5
  39. package/_assets/{PhArrowUp-CthNwEN1.js → PhArrowUp-D9ugstgK.js} +5 -5
  40. package/_assets/{PhArrowUpRight-yy2UirS7.js → PhArrowUpRight-Bpfn12eW.js} +3 -3
  41. package/_assets/{PhArrowsClockwise-B-gjYmTc.js → PhArrowsClockwise-CRZyQVpN.js} +4 -4
  42. package/_assets/{PhArrowsDownUp-DPexCLiH.js → PhArrowsDownUp-CV1NqVLb.js} +4 -4
  43. package/_assets/{PhArrowsLeftRight-D93RFlb_.js → PhArrowsLeftRight-DvGI6Nto.js} +5 -5
  44. package/_assets/{PhBank-BNhsgOpa.js → PhBank-BRxdKSKq.js} +5 -5
  45. package/_assets/{PhBrowser-OVbcxsqN.js → PhBrowser-C_wNKcTe.js} +4 -4
  46. package/_assets/PhCaretDown-DBNFm85V.js +15 -0
  47. package/_assets/PhCaretLeft-Cad__LUx.js +15 -0
  48. package/_assets/PhCaretRight-CuRYBcM2.js +15 -0
  49. package/_assets/PhCaretUp-DE2FiuTS.js +15 -0
  50. package/_assets/{PhCheck-bPp1bknl.js → PhCheck-y4MOxgof.js} +5 -5
  51. package/_assets/{PhCircleHalf-BCRFPlBh.js → PhCircleHalf-xlPKmtS7.js} +4 -4
  52. package/_assets/{PhClock-Ay7dG8fF.js → PhClock-BBNMhMKw.js} +5 -5
  53. package/_assets/{PhCompass-D6jeCOuB.js → PhCompass-DpAl_LfZ.js} +4 -4
  54. package/_assets/{PhCopy-Cd6cFQKK.js → PhCopy-D4HwCqa2.js} +5 -5
  55. package/_assets/{PhCreditCard-D0cyAH4H.js → PhCreditCard-CD12JEEL.js} +5 -5
  56. package/_assets/{PhCurrencyDollar-DNCs7Hoi.js → PhCurrencyDollar-DPFX6nyR.js} +2 -2
  57. package/_assets/{PhDesktop-C7wK3N0C.js → PhDesktop-CNhh70Hf.js} +3 -3
  58. package/_assets/{PhDeviceMobile-nwo6W6cN.js → PhDeviceMobile-DQgHhtB0.js} +3 -3
  59. package/_assets/{PhDotsThree-5DGmKrer.js → PhDotsThree-B1gOaArE.js} +3 -3
  60. package/_assets/{PhEnvelope-DkcDbzLk.js → PhEnvelope-CGnM9AiA.js} +4 -4
  61. package/_assets/{PhFunnelSimple-D1hBKn3q.js → PhFunnelSimple-D8YZwX53.js} +4 -4
  62. package/_assets/{PhGlobe-7ico55TC.js → PhGlobe-CXtg_GcB.js} +3 -3
  63. package/_assets/{PhIdentificationCard-PCjj06ca.js → PhIdentificationCard-oMtubY4C.js} +2 -2
  64. package/_assets/{PhImage-WMMVogNo.js → PhImage-DKp6-EHn.js} +2 -2
  65. package/_assets/{PhInfo-DxjcEgny.js → PhInfo-CPd-HNhu.js} +5 -5
  66. package/_assets/{PhLightbulb-Cv6gGmyY.js → PhLightbulb-C47afrxR.js} +5 -5
  67. package/_assets/{PhMagnifyingGlass-CzkcQTYD.js → PhMagnifyingGlass-DBaqb5ff.js} +2 -2
  68. package/_assets/{PhPaperPlaneRight-DnxOP1pJ.js → PhPaperPlaneRight-FQGhQUrW.js} +3 -3
  69. package/_assets/{PhPlus-D2WgBmbh.js → PhPlus-B_CxFvZS.js} +4 -4
  70. package/_assets/{PhPower-BKrhO8OD.js → PhPower-DRTSLLeY.js} +4 -4
  71. package/_assets/{PhPuzzlePiece-vk5GuUyi.js → PhPuzzlePiece-zlHiPdqx.js} +4 -4
  72. package/_assets/{PhQrCode-YjDtep0a.js → PhQrCode-riEgpq80.js} +2 -2
  73. package/_assets/{PhQuestion-De671WWd.js → PhQuestion-DHYK7o0G.js} +3 -3
  74. package/_assets/{PhQuestionMark-BfmQ4AZR.js → PhQuestionMark-ZgOsaVvK.js} +4 -4
  75. package/_assets/{PhSealCheck-DUSoEL5_.js → PhSealCheck-B5VE_9Jt.js} +4 -4
  76. package/_assets/{PhSignOut-BAV0bqRy.js → PhSignOut-DKQOfDHS.js} +4 -4
  77. package/_assets/{PhSpinner-JXZ0tKR8.js → PhSpinner-B3k7aAJt.js} +4 -4
  78. package/_assets/{PhTrash-B-_1u-EW.js → PhTrash-CD2fhMLB.js} +3 -3
  79. package/_assets/{PhUser-B7H8Kqoo.js → PhUser-BeKUoVY6.js} +2 -2
  80. package/_assets/{PhVault-D49Kz876.js → PhVault-DC9QjU0-.js} +5 -5
  81. package/_assets/{PhWallet-DFLSB_Zp.js → PhWallet-djswo-CG.js} +4 -4
  82. package/_assets/{PhWarning-oAag590N.js → PhWarning-B4g8NvcF.js} +2 -2
  83. package/_assets/{PhWarningCircle-CcZqaDS-.js → PhWarningCircle-xLZ7sbu0.js} +3 -3
  84. package/_assets/{PhX-ChlrdI3g.js → PhX-BVzMqBjL.js} +2 -2
  85. package/_assets/SaleCountdown-3pApusNf.js +99 -0
  86. package/_assets/{Spinner-DxPTix-z.js → Spinner-BhJFlkpV.js} +2 -2
  87. package/_assets/{StoreSettings-CcPWS-Ma.js → StoreSettings-CuaXmFqQ.js} +6 -6
  88. package/_assets/{Success-C_yiA7A5.js → Success-oMsLbOWh.js} +10 -10
  89. package/_assets/{SwapController-CkS0mffI.js → SwapController-DrYUKQJ9.js} +2 -2
  90. package/_assets/{Tooltip-D09N6_a1.js → Tooltip-BIdqgK8V.js} +2 -2
  91. package/_assets/{TradeService-C9N7W-7P.js → TradeService-JsADFsSl.js} +2 -2
  92. package/_assets/{W3MFrameProviderSingleton-gRZFp8AF.js → W3MFrameProviderSingleton-DvSh92CX.js} +4 -4
  93. package/_assets/{WebCryptoP256-DxQA6Icw.js → WebCryptoP256-DgMWbKGz.js} +2 -2
  94. package/_assets/{add-CTHe98e6.js → add-C46RTTNX.js} +3 -3
  95. package/_assets/{all-wallets-DhuabZhK.js → all-wallets-byTNDEq1.js} +2 -2
  96. package/_assets/{app-store-B6taH2bQ.js → app-store-CaKIhI-8.js} +2 -2
  97. package/_assets/{apple-Dg5wuMVl.js → apple-DAMB_3Lk.js} +3 -3
  98. package/_assets/{arrow-bottom-DGKCuT-u.js → arrow-bottom-Cx66u8_t.js} +3 -3
  99. package/_assets/{arrow-bottom-circle-DizCI34l.js → arrow-bottom-circle-Bv2eZVEF.js} +3 -3
  100. package/_assets/{arrow-left-B5Shucf2.js → arrow-left-D0I0JXz4.js} +3 -3
  101. package/_assets/arrow-right-BHc70exa.js +9 -0
  102. package/_assets/{arrow-top-9YDPz3-j.js → arrow-top-uM_hNW8Z.js} +3 -3
  103. package/_assets/{async-directive-BCdPKC92.js → async-directive-CeCQAQEH.js} +4 -4
  104. package/_assets/{bank-BsLbzuJN.js → bank-CQUOEuRq.js} +2 -2
  105. package/_assets/{basic-8qT1ixsR.js → basic-GpwOtGyM.js} +2 -2
  106. package/_assets/{biconomy-BgEih0rG.js → biconomy-NuhcX0Yi.js} +2 -2
  107. package/_assets/{browseLayout.styles-pvAICm0D.js → browseLayout.styles-D0MZbKfc.js} +2 -2
  108. package/_assets/{browser-BGA0SS8o.js → browser-Bh67F6hL.js} +3 -3
  109. package/_assets/{browser-JREaT17W.js → browser-CztLWw1I.js} +2 -2
  110. package/_assets/{browser-DYUQg7kp.js → browser-D0dzO3fx.js} +2 -2
  111. package/_assets/{browser-ponyfill-CtY0HAVq.js → browser-ponyfill-BdWvH_If.js} +2 -2
  112. package/_assets/buy-ZzigQNxZ.js +2 -0
  113. package/_assets/{buy-gasless-D9wW1gq1.js → buy-gasless-5QIoW0es.js} +2 -2
  114. package/_assets/{card-DrayzgIc.js → card-DcQ1wkCr.js} +2 -2
  115. package/_assets/cart-checkout-D_rUzOn4.js +2 -0
  116. package/_assets/{categories-rNs1-QVq.js → categories-BCcLvB19.js} +2 -2
  117. package/_assets/{ccip-_B6OMMwG.js → ccip-0C-WJ2f3.js} +2 -2
  118. package/_assets/{ccip-BJ6xjfZv.js → ccip-CcFd-pp_.js} +2 -2
  119. package/_assets/{chains-CzWJwcQq.js → chains-BoWQ7jDs.js} +2 -2
  120. package/_assets/{checkmark-CuwMFqmQ.js → checkmark-GDL9YfL4.js} +2 -2
  121. package/_assets/{checkmark-bold-BZ8hvIfL.js → checkmark-bold-B-Sg0XJy.js} +3 -3
  122. package/_assets/{chevron-bottom-BICEUkQ-.js → chevron-bottom-CLuKI9LQ.js} +2 -2
  123. package/_assets/{chevron-left-Dj_IHYPd.js → chevron-left-B_RU4s1F.js} +3 -3
  124. package/_assets/{chevron-right-DfmPfPeR.js → chevron-right-C6ckznAo.js} +2 -2
  125. package/_assets/{chevron-top-ChQ_XprN.js → chevron-top-CJOmtrv2.js} +3 -3
  126. package/_assets/{chrome-store-yR8DW2WG.js → chrome-store-s39Q_LJM.js} +3 -3
  127. package/_assets/{class-map-BdERzGec.js → class-map-BxMzgOIb.js} +6 -6
  128. package/_assets/{clock-DSdZt3kx.js → clock-DmJj-grN.js} +2 -2
  129. package/_assets/close-D4d1U5NV.js +9 -0
  130. package/_assets/{coinPlaceholder-DZE_o-zF.js → coinPlaceholder-VDdmV3rm.js} +3 -3
  131. package/_assets/collectionPage.styles-rZa1BWWK.js +41 -0
  132. package/_assets/common-aEQBU1aZ.js +2 -0
  133. package/_assets/{compass-D4tC5ehy.js → compass-O2jaVbub.js} +2 -2
  134. package/_assets/{controller-C9-v8tyX.js → controller-BHSkmDDd.js} +3 -3
  135. package/_assets/{copy-DYrxzMu3.js → copy-D2eE3KCY.js} +2 -2
  136. package/_assets/{core-Yfo9aNXH.js → core-Dnx08t4s.js} +5 -5
  137. package/_assets/{createSvgIcon-C3kMJVlr.js → createSvgIcon-C3DiORbY.js} +4 -4
  138. package/_assets/crumbs.styles-D969n73j.js +10 -0
  139. package/_assets/{cursor-CGNqBNs2.js → cursor-DSrN7SuI.js} +2 -2
  140. package/_assets/{cursor-transparent-Db9408Lh.js → cursor-transparent-DxuBEx9O.js} +3 -3
  141. package/_assets/{custom-CUiRIOz_.js → custom-CyjlH7Cr.js} +2 -2
  142. package/_assets/{data-capture-K_NAswZS.js → data-capture-BUt-tqa3.js} +5 -5
  143. package/_assets/{dcl-schemas-f-Kwmh24.js → dcl-schemas-CyEZVc6x.js} +2 -2
  144. package/_assets/decimals-BLhtmmbN.js +2 -0
  145. package/_assets/decimals-CiM-QvAk.js +2 -0
  146. package/_assets/{desktop-8ERr7FQB.js → desktop-DwZtv9fm.js} +3 -3
  147. package/_assets/detectExtension-CdbTZOKn.js +2 -0
  148. package/_assets/{disconnect-BaCM-42U.js → disconnect-BbwiqFJ2.js} +3 -3
  149. package/_assets/{discord-DIiirh17.js → discord-qWAUKbRO.js} +2 -2
  150. package/_assets/{disposePreview-B05_BnMi.js → disposePreview-D5v9GkJF.js} +2 -2
  151. package/_assets/{email-CAknsz-I.js → email-BGoeypvI.js} +7 -7
  152. package/_assets/{embedded-wallet-CMEVox74.js → embedded-wallet-Cg2BVqx1.js} +2 -2
  153. package/_assets/{emotion-styled.browser.esm-D3fDCxgY.js → emotion-styled.browser.esm-Bc8640ZT.js} +2 -2
  154. package/_assets/{engine-E-mmdBXn.js → engine-BQ4XBK5G.js} +2 -2
  155. package/_assets/errors-DUBMk1_u.js +2 -0
  156. package/_assets/estimate-l1-fee-Cvh02XjO.js +2 -0
  157. package/_assets/eth_estimateGas-BH-_dHsN.js +2 -0
  158. package/_assets/eth_getStorageAt-CHailSu6.js +2 -0
  159. package/_assets/eth_getTransactionCount-Ce8ytlz4.js +2 -0
  160. package/_assets/ethereum-AiomgAl3.js +2 -0
  161. package/_assets/{ethers-QQ5HxdlK.js → ethers-CQbljc2C.js} +2 -2
  162. package/_assets/{etherscan-Bfm2dZO9.js → etherscan-TUQ32gbU.js} +2 -2
  163. package/_assets/{events-DxSgzFZk.js → events-Ey8xQ1_i.js} +2 -2
  164. package/_assets/{exclamation-triangle-rcl1W2-L.js → exclamation-triangle-ETkxexlo.js} +3 -3
  165. package/_assets/{execute-BnGJDKrt.js → execute-CcyXPSES.js} +3 -3
  166. package/_assets/{extension-CfQ82K2-.js → extension-DoOVmXmT.js} +3 -3
  167. package/_assets/{external-link-V3py9Mkm.js → external-link-BEPN-Y2j.js} +3 -3
  168. package/_assets/extractIPFS-CZpI5_La.js +2 -0
  169. package/_assets/{facebook-DrblV0Ry.js → facebook-BmPLPVaB.js} +3 -3
  170. package/_assets/{farcaster-BYLQu4i6.js → farcaster-BLIAglQl.js} +3 -3
  171. package/_assets/{features-ChJno5-R.js → features-CW3BJut9.js} +2 -2
  172. package/_assets/fetchTokenMetadata-zQ7k58lq.js +3 -0
  173. package/_assets/{field.styles-ofcJTynr.js → field.styles-CNumGj8X.js} +2 -2
  174. package/_assets/{filters-C4hZu2nU.js → filters-DWaFeZ95.js} +3 -3
  175. package/_assets/{fortmatic-D8VKfBkC.js → fortmatic-D7_cu5X7.js} +2 -2
  176. package/_assets/{get-bytecode-Bg8rEYVa.js → get-bytecode-ChEcvuHJ.js} +2 -2
  177. package/_assets/get-ecosystem-wallet-info-BXFPDksD.js +2 -0
  178. package/_assets/{getBalance-hTHuthoO.js → getBalance-CdWdKWho.js} +3 -3
  179. package/_assets/getInstalledModules-Dy7ryxbR.js +2 -0
  180. package/_assets/{getNFT-uPInQjpf.js → getNFT-CVhWquj2.js} +3 -3
  181. package/_assets/getNFT-DEIlQj0F.js +2 -0
  182. package/_assets/{github-etC7Hd9s.js → github-BiA5cQMJ.js} +3 -3
  183. package/_assets/{google-CZBxFGk_.js → google-CsF9xgle.js} +2 -2
  184. package/_assets/{grid.styles-Baa4eis9.js → grid.styles-DGwAy7au.js} +2 -2
  185. package/_assets/{hashTypedData-DA-37fbc.js → hashTypedData-CS0nSVCm.js} +2 -2
  186. package/_assets/{hashTypedData-CMm-jTgx.js → hashTypedData-G7W_A13L.js} +2 -2
  187. package/_assets/{help-circle-BUZl81PK.js → help-circle-Bwgxn3Vn.js} +3 -3
  188. package/_assets/{id-C1QikfkN.js → id-O5raZ1NS.js} +2 -2
  189. package/_assets/{image-KyF9J1CW.js → image-CbhOQpP5.js} +2 -2
  190. package/_assets/import-C1FMKChQ.js +2 -0
  191. package/_assets/{in-app-C-nY1x0g.js → in-app-C03QvI9E.js} +2 -2
  192. package/_assets/{in-app-wallet-calls-BnWxOmqr.js → in-app-wallet-calls-BSt_kW07.js} +2 -2
  193. package/_assets/{index-C6b8QTjl.js → index-201_pXjD.js} +4 -4
  194. package/_assets/{index-Bgozodi0.js → index-4lxXm67R.js} +2 -2
  195. package/_assets/index-4y3ole-I.js +31 -0
  196. package/_assets/{index-Ot-sXE8W.js → index-B0G5-1U4.js} +2 -2
  197. package/_assets/{index-DyIrO5Lu.js → index-B4vPl9JJ.js} +4 -4
  198. package/_assets/{index-CWZbu3Zl.js → index-B9BLMD9v.js} +7 -7
  199. package/_assets/{index-CdIbZpxZ.js → index-BDhEGVn5.js} +5 -5
  200. package/_assets/{index-BuPpBFeR.js → index-BGlAHo1V.js} +2 -2
  201. package/_assets/{index-apbK0STs.js → index-BHRJojA7.js} +2 -2
  202. package/_assets/{index-CO-COJ2X.js → index-BWhGWxu6.js} +4 -4
  203. package/_assets/{index-DeAAM4-1.js → index-BYpz1U-Z.js} +2 -2
  204. package/_assets/{index-CkWQJkCU.js → index-B_Ukoyjo.js} +4 -4
  205. package/_assets/{index-BlzUq8rr.js → index-Bc5rdQrs.js} +2 -2
  206. package/_assets/{index-BQT03-OC.js → index-BiR1vPRL.js} +449 -449
  207. package/_assets/{index-CeqE4eqv.js → index-BjTaCUde.js} +6 -6
  208. package/_assets/index-Bvf3c8I8.js +2 -0
  209. package/_assets/{index-C-m7qLKA.js → index-Bx-HA0Fa.js} +4 -4
  210. package/_assets/{index-CZmBjRUE.js → index-C0q8Kut4.js} +15 -15
  211. package/_assets/{index-DuWGyd6U.css → index-C53nEuU1.css} +1 -1
  212. package/_assets/{index-B9pH_6Si.js → index-C8RRvl4w.js} +5 -5
  213. package/_assets/{index-CS_3MdD_.js → index-CAdxESjh.js} +3 -3
  214. package/_assets/{index-B4Xg1dZG.js → index-CITTAZNc.js} +2 -2
  215. package/_assets/{index-BZKatAuj.js → index-CMsQl6_s.js} +2 -2
  216. package/_assets/{index-CaznqQR9.js → index-CRdAPM4e.js} +3 -3
  217. package/_assets/{index-BFP8-jP3.js → index-CSAbgA1H.js} +2 -2
  218. package/_assets/{index-C7zPem7g.js → index-CVjhybQY.js} +4 -4
  219. package/_assets/{index-DNJ0CGQD.js → index-CZ765edO.js} +5 -5
  220. package/_assets/{index-DfLp_eyp.js → index-C_MZ3G2Z.js} +2 -2
  221. package/_assets/{index-C1UO5yah.js → index-CbJaCRxI.js} +2 -2
  222. package/_assets/{index-D6p4gJX2.js → index-Cbvqh2tB.js} +2 -2
  223. package/_assets/{index-R5bPamIo.js → index-CeBVhm3u.js} +2 -2
  224. package/_assets/index-Cq3PcGZS.js +2 -0
  225. package/_assets/{index-BUzhO8NO.js → index-CseNtOsJ.js} +3 -3
  226. package/_assets/{index-xBU8zVdN.js → index-Csid9_UU.js} +2 -2
  227. package/_assets/{index-DByEURm7.js → index-CtUq3VAh.js} +2 -2
  228. package/_assets/{index-00w-fqT3.js → index-Cy_pguIe.js} +2 -2
  229. package/_assets/{index-_CwckKK1.js → index-CzzqMKs2.js} +2 -2
  230. package/_assets/{index-Dj3X2ReU.js → index-D-bvLCMJ.js} +4 -4
  231. package/_assets/{index-CZFZoLmR.js → index-D080sfYK.js} +5 -5
  232. package/_assets/{index-CV3uw-Zw.js → index-D7n0Nbcc.js} +4 -4
  233. package/_assets/{index-BMMLE3lm.js → index-DBpSYzZ1.js} +2 -2
  234. package/_assets/{index-jH8Z5JnA.js → index-DCOfqwFn.js} +5 -5
  235. package/_assets/{index-DCju8nvn.js → index-DHAeKuI8.js} +2 -2
  236. package/_assets/{index-BT-I5haL.js → index-DNpS4XJW.js} +3 -3
  237. package/_assets/{index-D1mmmlpU.js → index-DUvDgJtL.js} +3 -3
  238. package/_assets/{index-axPViouQ.js → index-DW4iGfw5.js} +2 -2
  239. package/_assets/index-DYEzTJ00.js +28 -0
  240. package/_assets/{index-CG62ezm8.js → index-DbnwTj_J.js} +3 -3
  241. package/_assets/{index-BkMULqP4.js → index-DiRK7oEZ.js} +2 -2
  242. package/_assets/{index-iekFjIOC.js → index-DmEpmcAI.js} +6 -6
  243. package/_assets/{index-BjH5ZGRV.js → index-Dr8MILBs.js} +8 -8
  244. package/_assets/{index-D6tlKgne.js → index-DtQZWv2W.js} +2 -2
  245. package/_assets/{index-CtHpfBoV.js → index-DvGoWYRw.js} +2 -2
  246. package/_assets/{index-DOGeBjp6.js → index-DzXb9yfS.js} +2 -2
  247. package/_assets/{index-B8n9s11Y.js → index-P_yp2lGD.js} +2 -2
  248. package/_assets/{index-Daqrna4U.js → index-QkD5v2W0.js} +2 -2
  249. package/_assets/{index-TBCN8Slm.js → index-SRawa_W1.js} +2 -2
  250. package/_assets/{index-D0GgiR11.js → index-TuFs6Mw_.js} +3 -3
  251. package/_assets/{index-BdamhESB.js → index-VVP1Lz5F.js} +4 -4
  252. package/_assets/{index-BuVu67lQ.js → index-WhAOvWl7.js} +9 -9
  253. package/_assets/{index-Fsk2Hbva.js → index-ZSCJO9rV.js} +7 -7
  254. package/_assets/{index-C3RjhI_p.js → index-d0JdYucS.js} +2 -2
  255. package/_assets/{index-C1wzgEVq.js → index-gx6q3jYb.js} +2 -2
  256. package/_assets/{index-BevBiuLl.js → index-jG0dKzqZ.js} +2 -2
  257. package/_assets/{index-Bcrohrl-.js → index-mp9sO-P_.js} +5 -5
  258. package/_assets/{index-DQu7SA7d.js → index-ovxDr1NO.js} +2 -2
  259. package/_assets/{index-B5JS9Clv.js → index-rWvX-JNU.js} +2 -2
  260. package/_assets/{index-DjpGk0_x.js → index-sc9WaH7T.js} +2 -2
  261. package/_assets/{index.es-Di76vizL.js → index.es-B3Zhssg2.js} +2 -2
  262. package/_assets/{index.es-CTgZPWm-.js → index.es-CuJy51Rq.js} +5 -5
  263. package/_assets/{index.es-Dq41ZPxs.js → index.es-DF1aG5Z7.js} +2 -2
  264. package/_assets/{index.es-n8D3Sd0b.js → index.es-DmJ25C-K.js} +2 -2
  265. package/_assets/{info-DaeURCNf.js → info-B91xCNqh.js} +2 -2
  266. package/_assets/info-circle-DtEY-DDD.js +13 -0
  267. package/_assets/{items-empty-DKxZ65y_.js → items-empty-BAKFq7PT.js} +2 -2
  268. package/_assets/jsxRuntime.module-BUzu5v1_.js +2 -0
  269. package/_assets/{jump-16x52o_a.js → jump-BolxKTOM.js} +2 -2
  270. package/_assets/{lightbulb-SUie1snx.js → lightbulb-ByedgZqO.js} +3 -3
  271. package/_assets/linkAccount-D4jgrDpa.js +2 -0
  272. package/_assets/{localBatchGatewayRequest-BMe2q_5E.js → localBatchGatewayRequest-BMvn0i_b.js} +2 -2
  273. package/_assets/{mail-BMQ_Tcbe.js → mail-B2wBPliw.js} +3 -3
  274. package/_assets/{mobile-DWNrp5xU.js → mobile-COGIkuHo.js} +2 -2
  275. package/_assets/modal.styles-G1Y436F0.js +531 -0
  276. package/_assets/{modal.styles-n9Y4CaNq.js → modal.styles-wZfJxa-e.js} +2 -2
  277. package/_assets/{more-BJafKVQX.js → more-zcriamqw.js} +3 -3
  278. package/_assets/{native-ehoRf_75.js → native-BS9-NZgY.js} +2 -2
  279. package/_assets/{network-placeholder-BNTWT8_K.js → network-placeholder-Cm-6akxX.js} +2 -2
  280. package/_assets/{networks-DicXj4Bi.js → networks-BuXAUv57.js} +2 -2
  281. package/_assets/{nftPlaceholder-BvQ5YwOQ.js → nftPlaceholder-vZdYCYRL.js} +2 -2
  282. package/_assets/{off-DwIf2gSg.js → off-CLF8R11w.js} +3 -3
  283. package/_assets/{onramp-DGxIQZko.js → onramp-B2gdYmCO.js} +2 -2
  284. package/_assets/openzeppelin-B_FytaNI.js +2 -0
  285. package/_assets/{ownerOf-UnPFHclt.js → ownerOf-D6JpENJA.js} +2 -2
  286. package/_assets/parseNft-DiM6gxbM.js +3 -0
  287. package/_assets/{parseSignature-B9QDOsIp.js → parseSignature-BJVq2ShY.js} +4 -4
  288. package/_assets/{parseSignature-BuEMAnZl.js → parseSignature-VwEmUV8h.js} +2 -2
  289. package/_assets/{passkeys-D60yIHE9.js → passkeys-DEiWC5Z7.js} +2 -2
  290. package/_assets/{pay-with-exchange-tm5S6FFX.js → pay-with-exchange-C7Nm7Ic2.js} +2 -2
  291. package/_assets/{play-store-CA36CBrS.js → play-store-CAbJYmXD.js} +2 -2
  292. package/_assets/{plus-Cns28nqN.js → plus-DWQF9t2p.js} +3 -3
  293. package/_assets/{prepare-contract-call-C9bwXTUv.js → prepare-contract-call-r6GCr7Mb.js} +2 -2
  294. package/_assets/{qr-code-Q_tmm4VY.js → qr-code-Br4VphwV.js} +3 -3
  295. package/_assets/{qr-overlay-DNIPp0ap.js → qr-overlay-mbqSXRsy.js} +6 -6
  296. package/_assets/{react-Dombkhv6.js → react-DKpLHQl0.js} +2 -2
  297. package/_assets/{receive-D8koI1qS.js → receive-KMWzb1kT.js} +2 -2
  298. package/_assets/{recycle-horizontal-DjogUTaH.js → recycle-horizontal-DdAImjTL.js} +3 -3
  299. package/_assets/{ref-PrJHD-ud.js → ref-D90CCjlU.js} +3 -3
  300. package/_assets/{refresh-BoBh2MVk.js → refresh-S-H2nzPq.js} +3 -3
  301. package/_assets/{reown-logo-CT7u8xi3.js → reown-logo-D5L2QY4i.js} +3 -3
  302. package/_assets/{resolveImplementation-8uufRanE.js → resolveImplementation-NjDCaPa0.js} +2 -2
  303. package/_assets/{resume-buy-BQkiNyYh.js → resume-buy-DRxVLtZn.js} +2 -2
  304. package/_assets/resume-name-m2sdJCvP.js +2 -0
  305. package/_assets/{rpc-TAsoHmMK.js → rpc-C6ONv-35.js} +4 -4
  306. package/_assets/{sales-empty-D0iWvumY.js → sales-empty-BJGisiNF.js} +2 -2
  307. package/_assets/{search-empty-CYHPyiwy.js → search-empty-DcGDTM8L.js} +2 -2
  308. package/_assets/{search-971TVQY2.js → search-f6j421fJ.js} +3 -3
  309. package/_assets/{secp256k1-Bgo4IyeY.js → secp256k1-BhLjMGke.js} +2 -2
  310. package/_assets/{secp256k1-COemtrZ_.js → secp256k1-Dogd-wfD.js} +2 -2
  311. package/_assets/{secp256k1-CsX1CoV5.js → secp256k1-ZRJNrIuk.js} +2 -2
  312. package/_assets/{send-J6eNNrry.js → send-B4t6gmpc.js} +12 -12
  313. package/_assets/{send-BJky82OD.js → send-BAUrBF6z.js} +3 -3
  314. package/_assets/send-batch-transaction-BULbschT.js +2 -0
  315. package/_assets/{send-eip712-transaction-DJP6tJ5E.js → send-eip712-transaction-B5q6HGy1.js} +3 -3
  316. package/_assets/send-gasless-transaction-BW_1tZ59.js +3 -0
  317. package/_assets/send-transaction-D5g8ka92.js +3 -0
  318. package/_assets/sendMetaTransaction-BiqdXKVl.js +2 -0
  319. package/_assets/{sendRawTransaction-sBW21l6i.js → sendRawTransaction-DHZVBFUc.js} +4 -4
  320. package/_assets/{sentry-DgsMrt01.js → sentry-WFsNKO98.js} +3 -3
  321. package/_assets/{serializeTransaction-G0I8bf1U.js → serializeTransaction-C1OICSTJ.js} +2 -2
  322. package/_assets/{session-proposal-fppNtPts.js → session-proposal-C_rldw8k.js} +2 -2
  323. package/_assets/session-request-DRsdGyCL.js +3 -0
  324. package/_assets/{sha256-Cm0WQDsB.js → sha256-YJL3wOOs.js} +2 -2
  325. package/_assets/{sha3-DPbQQPsg.js → sha3-DxT-REZ2.js} +2 -2
  326. package/_assets/signin-empty-DXl1Qpby.js +2 -0
  327. package/_assets/{signing-BtEOk8Sb.js → signing-B9DcFwzm.js} +4 -4
  328. package/_assets/{skeleton.styles-CdhhJKly.js → skeleton.styles-C4BBCe2d.js} +2 -2
  329. package/_assets/{socials-CFMlKmWD.js → socials-Zki4qksa.js} +2 -2
  330. package/_assets/{styled-DIuUwEGM.js → styled-uWbR3175.js} +3 -3
  331. package/_assets/{swapHorizontal-BROJkMe6.js → swapHorizontal-BXjIGAcZ.js} +2 -2
  332. package/_assets/{swapHorizontalBold-DGj8RzHp.js → swapHorizontalBold-BzueHopN.js} +3 -3
  333. package/_assets/{swapHorizontalMedium-CTW2pJ0O.js → swapHorizontalMedium-DLFo4hRx.js} +2 -2
  334. package/_assets/{swapHorizontalRoundedBold-BAWFLi4l.js → swapHorizontalRoundedBold-BddBy7OL.js} +2 -2
  335. package/_assets/{swapVertical-D0KCL9o6.js → swapVertical-DYkySTmy.js} +3 -3
  336. package/_assets/{swaps-1v9wGZS3.js → swaps-DiPvT9W6.js} +2 -2
  337. package/_assets/{telegram-BrWZtQW9.js → telegram-D8ymSABf.js} +3 -3
  338. package/_assets/{thirdweb-IWXuiChr.js → thirdweb-wDwbIJ1W.js} +4 -4
  339. package/_assets/{three-dots-BqbdzVIX.js → three-dots-CiS9iH0H.js} +2 -2
  340. package/_assets/{to-serializable-transaction-C5libsTc.js → to-serializable-transaction-6f6pRX-q.js} +3 -3
  341. package/_assets/totalSupply-rJ9WcMzs.js +2 -0
  342. package/_assets/trade-encoding-DcX77zVS.js +2 -0
  343. package/_assets/{transaction-xj7V9Qtr.js → transaction-DxXkarJJ.js} +2 -2
  344. package/_assets/transactionReceipt-CxzioWsu.js +2 -0
  345. package/_assets/transactions-BGQTb4VV.js +17 -0
  346. package/_assets/{twitch-CjF65t51.js → twitch-BJQCmiGz.js} +2 -2
  347. package/_assets/{twitterIcon-BaOdDtc8.js → twitterIcon-B78o99Zv.js} +2 -2
  348. package/_assets/{useCreatorSales-C3CJHUNh.js → useCreatorSales-D4BzYp33.js} +19 -19
  349. package/_assets/{useInfiniteGrid-sopvcWVc.js → useInfiniteGrid-BUDyyZZl.js} +2 -2
  350. package/_assets/{useStore-D4IZ0aSp.js → useStore-tid_idJp.js} +3 -3
  351. package/_assets/useTheme-CRxh5DOu.js +2 -0
  352. package/_assets/{utils-C_H40_2X.js → utils-Cj21wfvp.js} +2 -2
  353. package/_assets/{verify-CzEN-nsy.js → verify-CrYE2kna.js} +3 -3
  354. package/_assets/{verify-filled-TDYOeDJL.js → verify-filled-CwwnY5h6.js} +2 -2
  355. package/_assets/{verifyHash-YINPIkpF.js → verifyHash-mzlxS6TY.js} +2 -2
  356. package/_assets/{w3m-modal-BXr8SOpG.js → w3m-modal-BArYWi0C.js} +2 -2
  357. package/_assets/{w3m-modal-DsNXjGjb.js → w3m-modal-BXpuWB5y.js} +2 -2
  358. package/_assets/{wait-for-tx-receipt-C8fAiv-C.js → wait-for-tx-receipt-DRwGvrwD.js} +2 -2
  359. package/_assets/{wallet-CUlGPHz3.js → wallet-EosqBoq7.js} +2 -2
  360. package/_assets/{wallet-placeholder-CkipoQX-.js → wallet-placeholder-DL8kIY2O.js} +3 -3
  361. package/_assets/{walletconnect-CJlDhwv0.js → walletconnect-CauX9cVK.js} +4 -4
  362. package/_assets/{wallets-LOprNqot.js → wallets-HjCMtUn8.js} +6 -6
  363. package/_assets/warning-circle-BrcBx24p.js +13 -0
  364. package/_assets/{web-connector-DUWewhFv.js → web-connector-15d-OnTN.js} +4 -4
  365. package/_assets/{writeContract-BsMB90wa.js → writeContract-BJQQGUKO.js} +2 -2
  366. package/_assets/x-CwtQDczS.js +13 -0
  367. package/_assets/{zora-sepolia-BYhoHBlo.js → zora-sepolia-BFYuSeeX.js} +2 -2
  368. package/_assets/{zoraTestnet-CO3bQ8ny.js → zoraTestnet-DdfVMUdb.js} +2 -2
  369. package/index.html +11 -11
  370. package/package.json +2 -2
  371. package/sitemap.xml +1 -1
  372. package/_assets/Activity-BCobIEqr.js +0 -400
  373. package/_assets/Assets-DTDpj6EF.js +0 -939
  374. package/_assets/Authorizations-Dyvzc298.js +0 -192
  375. package/_assets/CollectionCarousel-CClg5SGV.js +0 -851
  376. package/_assets/Confetti-B2guP7xN.js +0 -18
  377. package/_assets/DeploymentBuilder-BRc8X1GH.js +0 -4
  378. package/_assets/Event-DTI3sNqP.js +0 -72
  379. package/_assets/HelpersUtil-BXZPT-5p.js +0 -63
  380. package/_assets/LoadMore-5VaFL5J8.js +0 -8
  381. package/_assets/NotFound-CFpr8Znc.js +0 -18
  382. package/_assets/NotificationsBell-Bfgul_iB.js +0 -142
  383. package/_assets/PhCaretDown-niSUmOpX.js +0 -15
  384. package/_assets/PhCaretLeft-5pVZjDE4.js +0 -15
  385. package/_assets/PhCaretRight-xH-dut9T.js +0 -15
  386. package/_assets/PhCaretUp-BuqimB7k.js +0 -15
  387. package/_assets/SaleCountdown-LU-Yu5_R.js +0 -99
  388. package/_assets/arrow-right-CS0VOWZq.js +0 -9
  389. package/_assets/authorizations-Ob__E7YP.js +0 -2
  390. package/_assets/builder-Bkdo9MyY.js +0 -2
  391. package/_assets/buy-4DFO6Bjc.js +0 -2
  392. package/_assets/close-Du9ogfts.js +0 -9
  393. package/_assets/collectionPage.styles-T8QJ2uHO.js +0 -41
  394. package/_assets/common-B1cK8U3y.js +0 -2
  395. package/_assets/crumbs.styles-CGLucAba.js +0 -10
  396. package/_assets/decimals-DtF4b0wO.js +0 -2
  397. package/_assets/decimals-hxhJgmkh.js +0 -2
  398. package/_assets/detectExtension-BWZRKjyw.js +0 -2
  399. package/_assets/errors-JIkdqYdS.js +0 -2
  400. package/_assets/estimate-l1-fee-CTbp2FZb.js +0 -2
  401. package/_assets/eth_estimateGas-D_H7Au3g.js +0 -2
  402. package/_assets/eth_getStorageAt-CX4sH_ZX.js +0 -2
  403. package/_assets/eth_getTransactionCount-ycq8a8zK.js +0 -2
  404. package/_assets/ethereum-BhyqMTt5.js +0 -2
  405. package/_assets/extractIPFS-CiIcd-zt.js +0 -2
  406. package/_assets/fetchTokenMetadata-Dp3XcLsm.js +0 -3
  407. package/_assets/get-ecosystem-wallet-info-ydSiKNvA.js +0 -2
  408. package/_assets/getInstalledModules-DXv7DPgP.js +0 -2
  409. package/_assets/getNFT-CyqvSlNG.js +0 -2
  410. package/_assets/import-2e9MfFqq.js +0 -2
  411. package/_assets/index-B3kXX9iR.js +0 -28
  412. package/_assets/index-BRmZB5PP.js +0 -31
  413. package/_assets/index-Bac7Ln9X.js +0 -2
  414. package/_assets/index-En01i4P6.js +0 -2
  415. package/_assets/info-circle-mEb0pRoV.js +0 -13
  416. package/_assets/jsxRuntime.module-6wpz9UoU.js +0 -2
  417. package/_assets/linkAccount-Bp15G5p5.js +0 -2
  418. package/_assets/openzeppelin-DARH7c8-.js +0 -2
  419. package/_assets/parseNft-ClNOIjNy.js +0 -3
  420. package/_assets/send-batch-transaction-DPd2oV50.js +0 -2
  421. package/_assets/send-gasless-transaction-1n223Tf8.js +0 -3
  422. package/_assets/send-transaction-UfIIZtyM.js +0 -3
  423. package/_assets/sendMetaTransaction-DQ-jkGgK.js +0 -2
  424. package/_assets/session-request-D4Ni-baa.js +0 -3
  425. package/_assets/signin-empty-CY9eL7IB.js +0 -2
  426. package/_assets/totalSupply-CGCsNiFp.js +0 -2
  427. package/_assets/trade-encoding-CHp-srqw.js +0 -2
  428. package/_assets/transactionReceipt-JGqFHl-t.js +0 -2
  429. package/_assets/transactions-BCD1_Ajq.js +0 -17
  430. package/_assets/useCreditPacks-BVuY_cvh.js +0 -2
  431. package/_assets/useTheme-BEQPRnmX.js +0 -2
  432. package/_assets/warning-circle-B2n9VXBj.js +0 -13
  433. package/_assets/x-BK627-zl.js +0 -13
@@ -1,10 +1,10 @@
1
- import{j as e,L as Yt,r as M,b as ja,a as ka}from"./react-Dombkhv6.js";import{s as r,a as z,t as a,E as Ae,N as ae,bl as Le,C as Te,bm as $a,M as Ne,bn as Sa,L as Ma,I as Y,o as Ze,A as Ta,ao as O,a1 as Tt,y as Ia,z as Aa,x as Ea,bo as Pa,F as za,bp as Ra,a2 as Ba,bq as _a,br as qa,bs as Fa,bt as It,a4 as Wa,bu as La,bv as Na,bw as Ka,aA as Ke,a5 as Qa,D as Ua,bx as At,W as V,by as Et,bz as Ga,bA as Ha,d as oe,bB as Oa,bC as Da,bD as Va,bE as Qe,a9 as Ya,bF as Ce,bG as je,bH as Pt,bI as Ja,l as zt,n as Rt,bJ as Xa}from"./index-BQT03-OC.js";import{M as Za,S as es,C as ts,H as as,a as ss,T as ns,X as is,b as rs,B as os,c as cs,d as Bt,e as ls,f as Ee,g as ds,h as us,i as hs,j as ps,k as Xe,l as ge,L as gs,P as xs,m as _t,n as qt,W as ms,o as fs,p as bs,q as ys,A as vs,r as ws,s as Cs,t as js,u as ks,v as $s,w as Ss,x as Ms,y as Ts,z as Is,D as As,E as Es,F as Ps,G as zs,I as Rs,J as Bs,K as _s,N as Ue,O as qs,Q as Fs,R as Ws,U as Ft,V as Wt,Y as Ls,Z as Ns,_ as Ks,$ as Qs,a0 as Lt,a1 as Us}from"./CollectionCarousel-CClg5SGV.js";import{m as Ie}from"./mana-matic-light-Bl5duieC.js";import{l as Gs,n as Hs,g as Os,o as Ds,k as Vs,A as Ys}from"./authorizations-Ob__E7YP.js";import{p as Nt,g as Js,a as Ge}from"./buy-4DFO6Bjc.js";import{w as Xs,S as He,b as Zs,G as en}from"./buy-gasless-D9wW1gq1.js";import{u as tn,M as an,R as ke,r as sn,c as nn,g as rn,a as on,p as Kt,b as Oe}from"./useCreditPacks-BVuY_cvh.js";import{i as cn,a as ln}from"./errors-JIkdqYdS.js";import{E as dn}from"./ErrorNotice-C59YzvXZ.js";import"./dcl-schemas-f-Kwmh24.js";import"./sentry-DgsMrt01.js";import"./ethers-QQ5HxdlK.js";import"./intl-AKLEHPeO.js";import"./trade-encoding-CHp-srqw.js";import"./sendMetaTransaction-DQ-jkGgK.js";(function(){try{var i=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},d=new i.Error().stack;d&&(i._sentryDebugIds=i._sentryDebugIds||{},i._sentryDebugIds[d]="28722454-b9a6-4dcd-833b-487f08936015",i._sentryDebugIdIdentifier="sentry-dbid-28722454-b9a6-4dcd-833b-487f08936015")}catch{}})();const un=r.div`
1
+ import{j as e,L as Yt,r as M,b as ja,a as ka}from"./react-DKpLHQl0.js";import{s as r,a as z,t as a,z as Ie,F as ae,bh as Le,C as Te,bi as $a,E as Ke,bj as Sa,A as Ma,I as Y,n as Ze,B as Ta,af as H,V as Tt,x as Aa,y as Ia,w as Ea,bk as Pa,aK as za,bl as Ra,W as Ba,bm as qa,bn as _a,bo as Fa,bp as At,Y as Wa,bq as La,br as Ka,bs as Na,aq as Ne,Z as Qa,D as Ua,bt as It,O as V,bu as Et,bv as Ga,bw as Oa,l as oe,bx as Ha,by as Da,bz as Va,bA as Qe,be as Ya,bB as Ce,bC as je,bD as Pt,bE as Xa,h as zt,j as Rt,bF as Ja}from"./index-BiR1vPRL.js";import{C as Za,b as es,c as Ue,t as ts,a as as,A as ss,s as Bt,i as qt,m as ns,d as is,e as rs,f as os,p as _t,g as cs}from"./CollectionCarousel-DsJ7L4rs.js";import{m as Ae}from"./mana-matic-light-Bl5duieC.js";import{q as ls,s as ds,g as us,t as hs,u as ps,A as gs}from"./trade-encoding-DcX77zVS.js";import{p as Ft,g as xs,a as Ge}from"./buy-ZzigQNxZ.js";import{w as ms,S as Oe,b as fs,G as bs}from"./buy-gasless-5QIoW0es.js";import{u as ys,M as vs,R as ke,r as ws,c as Cs,g as js,a as ks,p as Wt,b as He}from"./cart-checkout-D_rUzOn4.js";import{M as $s,S as Ss,C as Ms,H as Ts,a as As,T as Is,X as Es,B as Ps,b as zs,c as Lt,d as Rs,e as Ee,f as Bs,g as qs,h as _s,i as Je,j as ge,L as Fs,P as Ws,k as Kt,l as Nt,W as Ls,m as Ks,n as Ns,o as Qs,A as Us,p as Gs,q as Os,r as Hs,s as Ds,t as Vs,u as Ys,v as Xs,w as Js,x as Zs,y as en,z as tn,D as an,E as sn,F as nn,G as rn,I as on}from"./modal.styles-G1Y436F0.js";import{i as cn,a as ln}from"./errors-DUBMk1_u.js";import{E as dn}from"./ErrorNotice-Dlh8ddHO.js";import"./dcl-schemas-CyEZVc6x.js";import"./sentry-WFsNKO98.js";import"./ethers-CQbljc2C.js";import"./intl-AKLEHPeO.js";import"./sendMetaTransaction-BiqdXKVl.js";(function(){try{var i=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},d=new i.Error().stack;d&&(i._sentryDebugIds=i._sentryDebugIds||{},i._sentryDebugIds[d]="75b19fa4-6b8c-4847-8009-29d46d5c6a1d",i._sentryDebugIdIdentifier="sentry-dbid-75b19fa4-6b8c-4847-8009-29d46d5c6a1d")}catch{}})();const un=r.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  gap: 12px;
5
5
  align-items: stretch;
6
6
  width: 100%;
7
- `,Jt=`
7
+ `,Xt=`
8
8
  width: 100%;
9
9
  min-height: 56px;
10
10
  display: flex;
@@ -36,14 +36,14 @@ import{j as e,L as Yt,r as M,b as ja,a as ka}from"./react-Dombkhv6.js";import{s
36
36
  cursor: default;
37
37
  }
38
38
  `,Qt=r.button`
39
- ${Jt}
39
+ ${Xt}
40
40
  background: ${z.gradients.buyBtn};
41
41
 
42
42
  &:hover:not(:disabled) {
43
43
  filter: brightness(1.08);
44
44
  }
45
45
  `,De=r.button`
46
- ${Jt}
46
+ ${Xt}
47
47
  background: ${z.colors.text2};
48
48
 
49
49
  &:hover:not(:disabled) {
@@ -101,7 +101,7 @@ import{j as e,L as Yt,r as M,b as ja,a as ka}from"./react-Dombkhv6.js";import{s
101
101
  line-height: 1.4;
102
102
  color: ${z.colors.muted};
103
103
  text-align: center;
104
- `;function Xt({options:i,totalCents:d,onPay:k,busy:$=!1,creditsLabel:R,shortfall:U,showCreditsAmount:H=!0,creditsFallback:E=null}){const J=i.some(n=>n.method==="credits");return e.jsxs(un,{children:[!J&&E?e.jsx(Qt,{type:"button","data-testid":"pay-with-credits-topup",onClick:E.onClick,disabled:$,children:e.jsx("span",{children:E.label})}):null,i.map(n=>n.method==="credits"?e.jsxs(Qt,{type:"button","data-testid":"pay-with-credits",onClick:()=>k("credits"),disabled:$,children:[e.jsx("span",{children:R??a("buyModal.buy")}),H?e.jsxs($e,{children:[e.jsx(Ae,{}),e.jsx("span",{children:ae(n.credits)})]}):null]},"credits"):n.method==="mana"?e.jsxs(De,{type:"button","data-testid":"pay-with-mana",onClick:()=>k("mana"),disabled:$,children:[e.jsx("span",{children:a("buyModal.buyWithMana")}),e.jsxs($e,{children:[e.jsx(Ve,{children:e.jsx("img",{src:Ie,alt:"","aria-hidden":!0})}),e.jsx("span",{children:Le(n.manaWei)})]})]},"mana"):e.jsxs(De,{type:"button","data-testid":"pay-with-combined",onClick:()=>k("combined"),disabled:$,children:[e.jsx("span",{children:a("buyModal.buyWith")}),e.jsxs($e,{children:[e.jsx(Ae,{}),e.jsx("span",{children:ae(n.credits)}),e.jsx(pn,{children:"+"}),e.jsx(Ve,{children:e.jsx("img",{src:Ie,alt:"","aria-hidden":!0})}),e.jsx("span",{children:Le(n.manaWei)}),e.jsx(hn,{children:"MANA"})]})]},"combined")),U?e.jsxs(e.Fragment,{children:[e.jsxs(De,{type:"button","data-testid":"pay-with-mana-disabled",disabled:!0,children:[e.jsx("span",{children:a("buyModal.buyWithMana")}),e.jsxs($e,{children:[e.jsx(Ve,{children:e.jsx("img",{src:Ie,alt:"","aria-hidden":!0})}),e.jsx("span",{children:Le(U.manaWei)})]})]},"mana-short"),e.jsx(gn,{"data-testid":"mana-shortfall-note",children:a("buyModal.notEnoughMana")})]}):null,e.jsx("span",{hidden:!0,"data-testid":"pay-total-cents",children:d})]})}const{colors:ce,radius:xn}=z,mn=r.div`
104
+ `;function Jt({options:i,totalCents:d,onPay:k,busy:$=!1,creditsLabel:R,shortfall:U,showCreditsAmount:O=!0,creditsFallback:E=null}){const X=i.some(n=>n.method==="credits");return e.jsxs(un,{children:[!X&&E?e.jsx(Qt,{type:"button","data-testid":"pay-with-credits-topup",onClick:E.onClick,disabled:$,children:e.jsx("span",{children:E.label})}):null,i.map(n=>n.method==="credits"?e.jsxs(Qt,{type:"button","data-testid":"pay-with-credits",onClick:()=>k("credits"),disabled:$,children:[e.jsx("span",{children:R??a("buyModal.buy")}),O?e.jsxs($e,{children:[e.jsx(Ie,{}),e.jsx("span",{children:ae(n.credits)})]}):null]},"credits"):n.method==="mana"?e.jsxs(De,{type:"button","data-testid":"pay-with-mana",onClick:()=>k("mana"),disabled:$,children:[e.jsx("span",{children:a("buyModal.buyWithMana")}),e.jsxs($e,{children:[e.jsx(Ve,{children:e.jsx("img",{src:Ae,alt:"","aria-hidden":!0})}),e.jsx("span",{children:Le(n.manaWei)})]})]},"mana"):e.jsxs(De,{type:"button","data-testid":"pay-with-combined",onClick:()=>k("combined"),disabled:$,children:[e.jsx("span",{children:a("buyModal.buyWith")}),e.jsxs($e,{children:[e.jsx(Ie,{}),e.jsx("span",{children:ae(n.credits)}),e.jsx(pn,{children:"+"}),e.jsx(Ve,{children:e.jsx("img",{src:Ae,alt:"","aria-hidden":!0})}),e.jsx("span",{children:Le(n.manaWei)}),e.jsx(hn,{children:"MANA"})]})]},"combined")),U?e.jsxs(e.Fragment,{children:[e.jsxs(De,{type:"button","data-testid":"pay-with-mana-disabled",disabled:!0,children:[e.jsx("span",{children:a("buyModal.buyWithMana")}),e.jsxs($e,{children:[e.jsx(Ve,{children:e.jsx("img",{src:Ae,alt:"","aria-hidden":!0})}),e.jsx("span",{children:Le(U.manaWei)})]})]},"mana-short"),e.jsx(gn,{"data-testid":"mana-shortfall-note",children:a("buyModal.notEnoughMana")})]}):null,e.jsx("span",{hidden:!0,"data-testid":"pay-total-cents",children:d})]})}const{colors:ce,radius:xn}=z,mn=r.div`
105
105
  display: flex;
106
106
  align-items: center;
107
107
  justify-content: center;
@@ -170,7 +170,7 @@ import{j as e,L as Yt,r as M,b as ja,a as ka}from"./react-Dombkhv6.js";import{s
170
170
  font-size: 14px;
171
171
  line-height: 1.334;
172
172
  color: ${z.colors.text2};
173
- `;function Cn(i){const{phase:d,balanceCredits:k,onClose:$}=i,R=d==="processing",U=d==="error"?a("cartCheckout.errorTitle"):d==="nofunds"?a("cartCheckout.titleNoFunds"):d==="choose"?a("buyModal.choosePayment"):a("cartCheckout.titleBuy"),H=d==="processing";return e.jsxs(Za,{role:"dialog","aria-modal":"true","aria-label":a("cartCheckout.dialogAria"),children:[e.jsx(es,{onClick:R?void 0:$,"aria-hidden":!0}),e.jsxs(ts,{"data-tall":H||void 0,children:[e.jsxs(as,{children:[e.jsxs(ss,{children:[e.jsx(ns,{children:U}),!R&&e.jsx(is,{onClick:$,"aria-label":a("buyModal.close"),children:e.jsx(rs,{})})]}),e.jsxs(os,{children:[e.jsx(cs,{children:d==="nofunds"?a("buyModal.dclBalance"):a("buyModal.myCreditsBalance")}),e.jsx(Bt,{}),e.jsx(ls,{children:ae(k)})]}),i.heldCreditsCount&&(d==="choose"||d==="nofunds")?e.jsx(wn,{"data-testid":"cart-held-notice",children:a("buyModal.heldExplainer",{credits:i.heldCreditsCount,currency:Te.name})}):null]}),d==="choose"&&e.jsxs(Ee,{children:[e.jsxs(vn,{children:[e.jsx("span",{children:a("cart.purchaseSummary")}),e.jsxs("strong",{children:[e.jsx(Bt,{}),ae(i.totalCredits??0)]})]}),e.jsx(Xt,{options:i.options??[],totalCents:i.totalCents??0,shortfall:i.shortfall,onPay:i.onPay??(()=>{})})]}),d==="processing"&&e.jsx(jn,{stage:i.stage??"reserving",step:i.step??1,total:i.total??1,isSelfCustody:!!i.isSelfCustody,signatures:i.signatures}),d==="nofunds"&&e.jsx(kn,{lines:i.lines??[],shortfallCredits:i.shortfallCredits??0,packs:i.packs??[],selectedPack:i.selectedPack??"",onSelectPack:i.onSelectPack??(()=>{}),onBuyPacks:i.onBuyPacks??(()=>{}),onCancel:$}),d==="error"&&e.jsxs(Ee,{children:[e.jsxs(ds,{"data-testid":"buy-error",children:[e.jsx(us,{src:hs,alt:"",width:64,height:80}),e.jsxs(ps,{children:[e.jsx("b",{children:a("cartCheckout.errorHeadline")})," ",i.heldCredits?e.jsxs(e.Fragment,{children:[i.message?e.jsxs(e.Fragment,{children:[i.message," "]}):null,a("cartCheckout.heldLead",{currency:Te.name}),e.jsx("b",{children:a("cartCheckout.heldBold")}),a("cartCheckout.heldTail",{currency:Te.name})]}):i.message??a("cartCheckout.errorBody")]})]}),i.heldCredits?e.jsx(Xe,{children:e.jsx(ge,{"data-variant":"purple","data-full":!0,onClick:$,children:a("cartCheckout.gotIt")})}):e.jsxs(Xe,{children:[e.jsx(ge,{"data-variant":"outline",onClick:$,children:a("buyModal.cancel")}),e.jsx(ge,{"data-variant":"purple",onClick:i.onRetry??$,children:a("cartCheckout.tryAgain")})]})]})]})]})}function jn({stage:i,step:d,total:k,isSelfCustody:$,signatures:R}){const U=i==="reserving",H=k>0?Math.min(100,Math.round(d/k*100)):0,E=$&&R&&R.total>1,J=i==="awaiting-signature"?$?E?a("cartCheckout.confirmMultiple",{current:R.current,total:R.total}):a("buyModal.confirmToContinue"):a("buyModal.completingTransaction"):i==="settling"?a("buyModal.completingTransaction"):a("cartCheckout.preparing");return e.jsxs(Ee,{"data-processing":!0,children:[e.jsx(gs,{src:$a,alt:"",width:61,height:61}),e.jsx(xs,{children:J}),U?e.jsxs(mn,{children:[e.jsx(_t,{"aria-hidden":!0,children:e.jsx(qt,{"data-step":!0,style:{width:`${H}%`}})}),k>1?e.jsxs(fn,{children:[d,"/",k]}):null]}):e.jsx(_t,{"aria-hidden":!0,children:e.jsx(qt,{})})]})}function kn({lines:i,shortfallCredits:d,packs:k,selectedPack:$,onSelectPack:R,onBuyPacks:U,onCancel:H}){const E=k.find(n=>n.id===$),J=i.reduce((n,G)=>n+(G.quantity??1),0);return e.jsxs(Ee,{children:[e.jsxs(ms,{"data-testid":"nofunds-warning",children:[e.jsx(fs,{}),e.jsxs(bs,{children:[e.jsx("b",{children:a("buyModal.insufficientFunds")})," ",a("buyModal.warningNeedToBuy")," ",e.jsx("b",{children:a("buyModal.warningCreditsAmount",{count:Math.max(0,d)})})," ",a("buyModal.warningToPurchase",{count:J}),Ne()?null:e.jsxs(e.Fragment,{children:[e.jsx("br",{}),e.jsx(ys,{href:Sa("/credits"),target:"_blank",rel:"noopener noreferrer",children:a("buyModal.warningLearnMore")})]})]})]}),e.jsx(bn,{children:i.map(n=>{const G=n.quantity??1;return e.jsxs(vs,{children:[e.jsx(ws,{children:n.item.thumbnail?e.jsx("img",{src:n.item.thumbnail,alt:""}):null}),e.jsxs(Cs,{children:[e.jsxs("div",{children:[e.jsxs(js,{title:n.item.name,children:[n.item.name||a("buyModal.itemFallback"),G>1?e.jsx(yn,{children:a("cartCheckout.qty",{count:G})}):null]}),n.item.creator?e.jsx(ks,{address:n.item.creator}):null]}),e.jsxs($s,{children:[e.jsx(Ss,{}),e.jsx("span",{children:ae(n.priceCredits*G)})]})]})]},n.item.id)})}),Ne()?null:e.jsxs(e.Fragment,{children:[e.jsx(Ms,{children:k.map(n=>{const G=n.id===$;return e.jsxs(Ts,{"data-testid":"credit-pack","data-on":G||void 0,onClick:()=>R(n.id),children:[e.jsx(Is,{src:As,alt:""}),e.jsx(Es,{children:ae(n.credits)}),e.jsxs(Ps,{children:["($",n.usd.toFixed(2),")"]})]},n.id)})}),e.jsxs(zs,{children:[e.jsxs(Rs,{children:[e.jsx(Bs,{}),e.jsx("span",{children:ae((E==null?void 0:E.credits)??0)})]}),e.jsxs(_s,{children:["$",((E==null?void 0:E.usd)??0).toFixed(2)]})]})]}),e.jsxs(Xe,{children:[e.jsx(ge,{"data-variant":"outline",onClick:H,children:a("buyModal.cancel")}),Ne()?null:e.jsx(ge,{"data-variant":"gradient",onClick:U,children:a("buyModal.buy")})]})]})}const{colors:l,gradients:$n,radius:le}=z,Zt="@media (max-width: 1080px)",A="@media (max-width: 880px)",Ut=r.div`
173
+ `;function Cn(i){const{phase:d,balanceCredits:k,onClose:$}=i,R=d==="processing",U=d==="error"?a("cartCheckout.errorTitle"):d==="nofunds"?a("cartCheckout.titleNoFunds"):d==="choose"?a("buyModal.choosePayment"):a("cartCheckout.titleBuy"),O=d==="processing";return e.jsxs($s,{role:"dialog","aria-modal":"true","aria-label":a("cartCheckout.dialogAria"),children:[e.jsx(Ss,{onClick:R?void 0:$,"aria-hidden":!0}),e.jsxs(Ms,{"data-tall":O||void 0,children:[e.jsxs(Ts,{children:[e.jsxs(As,{children:[e.jsx(Is,{children:U}),!R&&e.jsx(Es,{onClick:$,"aria-label":a("buyModal.close"),children:e.jsx(Za,{})})]}),e.jsxs(Ps,{children:[e.jsx(zs,{children:d==="nofunds"?a("buyModal.dclBalance"):a("buyModal.myCreditsBalance")}),e.jsx(Lt,{}),e.jsx(Rs,{children:ae(k)})]}),i.heldCreditsCount&&(d==="choose"||d==="nofunds")?e.jsx(wn,{"data-testid":"cart-held-notice",children:a("buyModal.heldExplainer",{credits:i.heldCreditsCount,currency:Te.name})}):null]}),d==="choose"&&e.jsxs(Ee,{children:[e.jsxs(vn,{children:[e.jsx("span",{children:a("cart.purchaseSummary")}),e.jsxs("strong",{children:[e.jsx(Lt,{}),ae(i.totalCredits??0)]})]}),e.jsx(Jt,{options:i.options??[],totalCents:i.totalCents??0,shortfall:i.shortfall,onPay:i.onPay??(()=>{})})]}),d==="processing"&&e.jsx(jn,{stage:i.stage??"reserving",step:i.step??1,total:i.total??1,isSelfCustody:!!i.isSelfCustody,signatures:i.signatures}),d==="nofunds"&&e.jsx(kn,{lines:i.lines??[],shortfallCredits:i.shortfallCredits??0,packs:i.packs??[],selectedPack:i.selectedPack??"",onSelectPack:i.onSelectPack??(()=>{}),onBuyPacks:i.onBuyPacks??(()=>{}),onCancel:$}),d==="error"&&e.jsxs(Ee,{children:[e.jsxs(Bs,{"data-testid":"buy-error",children:[e.jsx(qs,{src:es,alt:"",width:64,height:80}),e.jsxs(_s,{children:[e.jsx("b",{children:a("cartCheckout.errorHeadline")})," ",i.heldCredits?e.jsxs(e.Fragment,{children:[i.message?e.jsxs(e.Fragment,{children:[i.message," "]}):null,a("cartCheckout.heldLead",{currency:Te.name}),e.jsx("b",{children:a("cartCheckout.heldBold")}),a("cartCheckout.heldTail",{currency:Te.name})]}):i.message??a("cartCheckout.errorBody")]})]}),i.heldCredits?e.jsx(Je,{children:e.jsx(ge,{"data-variant":"purple","data-full":!0,onClick:$,children:a("cartCheckout.gotIt")})}):e.jsxs(Je,{children:[e.jsx(ge,{"data-variant":"outline",onClick:$,children:a("buyModal.cancel")}),e.jsx(ge,{"data-variant":"purple",onClick:i.onRetry??$,children:a("cartCheckout.tryAgain")})]})]})]})]})}function jn({stage:i,step:d,total:k,isSelfCustody:$,signatures:R}){const U=i==="reserving",O=k>0?Math.min(100,Math.round(d/k*100)):0,E=$&&R&&R.total>1,X=i==="awaiting-signature"?$?E?a("cartCheckout.confirmMultiple",{current:R.current,total:R.total}):a("buyModal.confirmToContinue"):a("buyModal.completingTransaction"):i==="settling"?a("buyModal.completingTransaction"):a("cartCheckout.preparing");return e.jsxs(Ee,{"data-processing":!0,children:[e.jsx(Fs,{src:$a,alt:"",width:61,height:61}),e.jsx(Ws,{children:X}),U?e.jsxs(mn,{children:[e.jsx(Kt,{"aria-hidden":!0,children:e.jsx(Nt,{"data-step":!0,style:{width:`${O}%`}})}),k>1?e.jsxs(fn,{children:[d,"/",k]}):null]}):e.jsx(Kt,{"aria-hidden":!0,children:e.jsx(Nt,{})})]})}function kn({lines:i,shortfallCredits:d,packs:k,selectedPack:$,onSelectPack:R,onBuyPacks:U,onCancel:O}){const E=k.find(n=>n.id===$),X=i.reduce((n,G)=>n+(G.quantity??1),0);return e.jsxs(Ee,{children:[e.jsxs(Ls,{"data-testid":"nofunds-warning",children:[e.jsx(Ks,{}),e.jsxs(Ns,{children:[e.jsx("b",{children:a("buyModal.insufficientFunds")})," ",a("buyModal.warningNeedToBuy")," ",e.jsx("b",{children:a("buyModal.warningCreditsAmount",{count:Math.max(0,d)})})," ",a("buyModal.warningToPurchase",{count:X}),Ke()?null:e.jsxs(e.Fragment,{children:[e.jsx("br",{}),e.jsx(Qs,{href:Sa("/credits"),target:"_blank",rel:"noopener noreferrer",children:a("buyModal.warningLearnMore")})]})]})]}),e.jsx(bn,{children:i.map(n=>{const G=n.quantity??1;return e.jsxs(Us,{children:[e.jsx(Gs,{children:n.item.thumbnail?e.jsx("img",{src:n.item.thumbnail,alt:""}):null}),e.jsxs(Os,{children:[e.jsxs("div",{children:[e.jsxs(Hs,{title:n.item.name,children:[n.item.name||a("buyModal.itemFallback"),G>1?e.jsx(yn,{children:a("cartCheckout.qty",{count:G})}):null]}),n.item.creator?e.jsx(Ds,{address:n.item.creator}):null]}),e.jsxs(Vs,{children:[e.jsx(Ys,{}),e.jsx("span",{children:ae(n.priceCredits*G)})]})]})]},n.item.id)})}),Ke()?null:e.jsxs(e.Fragment,{children:[e.jsx(Xs,{children:k.map(n=>{const G=n.id===$;return e.jsxs(Js,{"data-testid":"credit-pack","data-on":G||void 0,onClick:()=>R(n.id),children:[e.jsx(Zs,{src:en,alt:""}),e.jsx(tn,{children:ae(n.credits)}),e.jsxs(an,{children:["($",n.usd.toFixed(2),")"]})]},n.id)})}),e.jsxs(sn,{children:[e.jsxs(nn,{children:[e.jsx(rn,{}),e.jsx("span",{children:ae((E==null?void 0:E.credits)??0)})]}),e.jsxs(on,{children:["$",((E==null?void 0:E.usd)??0).toFixed(2)]})]})]}),e.jsxs(Je,{children:[e.jsx(ge,{"data-variant":"outline",onClick:O,children:a("buyModal.cancel")}),Ke()?null:e.jsx(ge,{"data-variant":"gradient",onClick:U,children:a("buyModal.buy")})]})]})}const{colors:l,gradients:$n,radius:le}=z,Zt="@media (max-width: 1080px)",I="@media (max-width: 880px)",Ut=r.div`
174
174
  max-width: 1510px;
175
175
  margin: 0 auto;
176
176
  /* Grows into the page's leftover height and passes it down to Upsell, so the white cross-sell band ends at
@@ -180,7 +180,7 @@ import{j as e,L as Yt,r as M,b as ja,a as ka}from"./react-Dombkhv6.js";import{s
180
180
  display: flex;
181
181
  flex-direction: column;
182
182
 
183
- ${A} {
183
+ ${I} {
184
184
  padding-bottom: 188px; /* room for the fixed summary bar */
185
185
  }
186
186
  `,Gt=r.button`
@@ -207,7 +207,7 @@ import{j as e,L as Yt,r as M,b as ja,a as ka}from"./react-Dombkhv6.js";import{s
207
207
  height: 18px;
208
208
  }
209
209
 
210
- ${A} {
210
+ ${I} {
211
211
  display: none;
212
212
  }
213
213
  `,Sn=r.div`
@@ -219,7 +219,7 @@ import{j as e,L as Yt,r as M,b as ja,a as ka}from"./react-Dombkhv6.js";import{s
219
219
  ${Zt} {
220
220
  grid-template-columns: 1fr;
221
221
  }
222
- `,Ht=r.div`
222
+ `,Ot=r.div`
223
223
  position: relative;
224
224
  /* The gray band is 733px in Figma (1553-317103) — taller than the panels inside it, deliberately. Without
225
225
  this it collapsed to the panels' height, and the page shell's own viewport-filling min-height then padded
@@ -247,7 +247,7 @@ import{j as e,L as Yt,r as M,b as ja,a as ka}from"./react-Dombkhv6.js";import{s
247
247
  z-index: 1;
248
248
  }
249
249
 
250
- ${A} {
250
+ ${I} {
251
251
  /* The single-column layout is already taller than the desktop band, and the fixed summary bar sits over
252
252
  the bottom of it — a floor here would only add empty gray. */
253
253
  min-height: 0;
@@ -273,27 +273,27 @@ import{j as e,L as Yt,r as M,b as ja,a as ka}from"./react-Dombkhv6.js";import{s
273
273
  border-radius: 16px;
274
274
  padding: 12px 12px 12px 24px;
275
275
 
276
- ${A} {
276
+ ${I} {
277
277
  gap: 8px;
278
278
  padding: 8px 16px;
279
279
  }
280
- `,In=r.section`
280
+ `,An=r.section`
281
281
  min-width: 0;
282
282
  background: ${l.white};
283
283
  border-radius: 16px;
284
284
  padding: 24px;
285
285
 
286
- ${A} {
286
+ ${I} {
287
287
  padding: 16px;
288
288
  }
289
- `,An=r.div`
289
+ `,In=r.div`
290
290
  display: flex;
291
291
  flex-direction: column;
292
292
  align-items: center;
293
293
  `,En=r.button`
294
294
  display: none;
295
295
 
296
- ${A} {
296
+ ${I} {
297
297
  display: inline-flex;
298
298
  align-items: center;
299
299
  flex-shrink: 0;
@@ -315,7 +315,7 @@ import{j as e,L as Yt,r as M,b as ja,a as ka}from"./react-Dombkhv6.js";import{s
315
315
  line-height: 1.57;
316
316
  color: ${l.text};
317
317
 
318
- ${A} {
318
+ ${I} {
319
319
  flex: 1;
320
320
  min-width: 0;
321
321
  font-size: 16px;
@@ -356,7 +356,7 @@ import{j as e,L as Yt,r as M,b as ja,a as ka}from"./react-Dombkhv6.js";import{s
356
356
 
357
357
  /* Mobile keeps the full 40px button and thins the outline to 1px (1182:236892) rather than shrinking
358
358
  the type, which had it reading smaller than the row title beside it. */
359
- ${A} {
359
+ ${I} {
360
360
  border-width: 1px;
361
361
  border-color: ${l.text};
362
362
  color: ${l.text};
@@ -384,7 +384,7 @@ import{j as e,L as Yt,r as M,b as ja,a as ka}from"./react-Dombkhv6.js";import{s
384
384
  &[data-unavailable] [data-desc] {
385
385
  opacity: 0.7;
386
386
  }
387
- `,_n=r.div`
387
+ `,qn=r.div`
388
388
  position: relative;
389
389
  flex-shrink: 0;
390
390
  width: 137.5px;
@@ -402,11 +402,11 @@ import{j as e,L as Yt,r as M,b as ja,a as ka}from"./react-Dombkhv6.js";import{s
402
402
  filter: drop-shadow(0.56px 2.25px 2.8px rgba(0, 0, 0, 0.1));
403
403
  }
404
404
 
405
- ${A} {
405
+ ${I} {
406
406
  width: 120px;
407
407
  height: 120px;
408
408
  }
409
- `,qn=r(Yt)`
409
+ `,_n=r(Yt)`
410
410
  position: absolute;
411
411
  inset: 0;
412
412
  display: grid;
@@ -430,7 +430,7 @@ import{j as e,L as Yt,r as M,b as ja,a as ka}from"./react-Dombkhv6.js";import{s
430
430
  gap: 8px;
431
431
  padding: 16px 8px;
432
432
 
433
- ${A} {
433
+ ${I} {
434
434
  padding: 12px 4px 12px 0;
435
435
  }
436
436
  `,Ln=r.div`
@@ -454,16 +454,16 @@ import{j as e,L as Yt,r as M,b as ja,a as ka}from"./react-Dombkhv6.js";import{s
454
454
  color: ${l.accent};
455
455
  }
456
456
 
457
- ${A} {
457
+ ${I} {
458
458
  white-space: normal;
459
459
  display: -webkit-box;
460
460
  -webkit-line-clamp: 2;
461
461
  line-clamp: 2;
462
462
  -webkit-box-orient: vertical;
463
463
  }
464
- `,Nn=r.div`
464
+ `,Kn=r.div`
465
465
  ${ea};
466
- `,Kn=r(Yt)`
466
+ `,Nn=r(Yt)`
467
467
  ${ea};
468
468
  `,Qn=r(Ma)`
469
469
  font-size: 10px;
@@ -490,7 +490,7 @@ import{j as e,L as Yt,r as M,b as ja,a as ka}from"./react-Dombkhv6.js";import{s
490
490
  padding: 6px;
491
491
  border: 0.5px solid ${l.muted2};
492
492
  border-radius: ${le.pill};
493
- `,Ot=r.button`
493
+ `,Ht=r.button`
494
494
  display: grid;
495
495
  place-items: center;
496
496
  width: 16px;
@@ -505,14 +505,14 @@ import{j as e,L as Yt,r as M,b as ja,a as ka}from"./react-Dombkhv6.js";import{s
505
505
  color: ${l.muted2};
506
506
  cursor: default;
507
507
  }
508
- `,Hn=r.span`
508
+ `,On=r.span`
509
509
  min-width: 12px;
510
510
  font-size: 14px;
511
511
  font-weight: 500;
512
512
  line-height: 1.2;
513
513
  color: ${l.text};
514
514
  text-align: center;
515
- `,On=r.div`
515
+ `,Hn=r.div`
516
516
  display: inline-flex;
517
517
  align-items: center;
518
518
  gap: 4px;
@@ -523,15 +523,15 @@ import{j as e,L as Yt,r as M,b as ja,a as ka}from"./react-Dombkhv6.js";import{s
523
523
  font-weight: 600;
524
524
  color: ${l.text2};
525
525
 
526
- ${A} {
526
+ ${I} {
527
527
  font-size: 20px;
528
528
  }
529
- `,Dn=r(Ae)`
529
+ `,Dn=r(Ie)`
530
530
  width: 24px;
531
531
  height: 24px;
532
532
  background: ${l.text};
533
533
 
534
- ${A} {
534
+ ${I} {
535
535
  width: 20px;
536
536
  height: 20px;
537
537
  }
@@ -548,7 +548,7 @@ import{j as e,L as Yt,r as M,b as ja,a as ka}from"./react-Dombkhv6.js";import{s
548
548
  display: flex;
549
549
  align-items: flex-start;
550
550
  gap: 12px;
551
- `,Jn=r.span`
551
+ `,Xn=r.span`
552
552
  display: inline-flex;
553
553
  align-items: center;
554
554
  gap: 4px;
@@ -557,7 +557,7 @@ import{j as e,L as Yt,r as M,b as ja,a as ka}from"./react-Dombkhv6.js";import{s
557
557
  line-height: 1;
558
558
  text-transform: uppercase;
559
559
  color: ${l.text2};
560
- `,Xn=r(Y)`
560
+ `,Jn=r(Y)`
561
561
  color: #f48221;
562
562
  `,Zn=r.span`
563
563
  align-self: flex-start;
@@ -632,7 +632,7 @@ import{j as e,L as Yt,r as M,b as ja,a as ka}from"./react-Dombkhv6.js";import{s
632
632
  ${Zt} {
633
633
  position: static;
634
634
  }
635
- ${A} {
635
+ ${I} {
636
636
  position: fixed;
637
637
  left: 0;
638
638
  right: 0;
@@ -653,7 +653,7 @@ import{j as e,L as Yt,r as M,b as ja,a as ka}from"./react-Dombkhv6.js";import{s
653
653
  font-weight: 600;
654
654
  color: ${l.text};
655
655
 
656
- ${A} {
656
+ ${I} {
657
657
  margin-bottom: 12px;
658
658
  padding-bottom: 8px;
659
659
  font-size: 16px;
@@ -691,7 +691,7 @@ import{j as e,L as Yt,r as M,b as ja,a as ka}from"./react-Dombkhv6.js";import{s
691
691
  font-weight: 400;
692
692
  line-height: 1;
693
693
  color: ${l.muted};
694
- `;const ui=r(Ae)`
694
+ `;const ui=r(Ie)`
695
695
  width: 30px;
696
696
  height: 30px;
697
697
  background: ${l.text};
@@ -744,5 +744,5 @@ import{j as e,L as Yt,r as M,b as ja,a as ka}from"./react-Dombkhv6.js";import{s
744
744
  & section {
745
745
  margin-top: 0;
746
746
  }
747
- `;function Ye(i){if(cn(i))return a("errors.rejected");const d=(i.message??"").toLowerCase();return d.includes("insufficient")?a("cart.error.insufficient",{currency:Te.name}):d.includes("no active listing")||d.includes("your own listing")?a("cart.error.listingChanged"):a("marketCheckout.error.generic")}const pi=12e4;function gi(i){const d=[];return i.unavailable.length&&d.push(a("cart.drop.unavailable",{count:i.unavailable.length})),i.own.length&&d.push(a("cart.drop.own",{count:i.own.length})),a("cart.drop.removed",{items:d.join(` ${a("cart.drop.and")} `)})}const Je=i=>i.reduce((d,k)=>d+k.priceCredits*k.quantity,0),Me=i=>i.flatMap(d=>Array.from({length:d.quantity},()=>({...d,quantity:1}))),Vt=8;function Ei(){var $t,St,Mt;Ta({title:a("nav.cart"),noindex:!0});const i=O(t=>t.items),d=O(t=>t.remove),k=O(t=>t.increment),$=O(t=>t.decrement),R=O(t=>t.clear),U=O(t=>t.restore),H=O(t=>t.setFittingOpen),E=Tt(t=>t.items),J=Tt(t=>t.toggle),{session:n,signIn:G}=Ia(),sa=Aa(),xe=tn().packs.slice(0,an);M.useEffect(()=>(document.body.classList.add("shop-cart-bg"),()=>document.body.classList.remove("shop-cart-bg")),[]);const na=i.some(t=>t.category!=="emote"),{data:Pe}=Ea({queryKey:["upsell-listings"],queryFn:()=>Xa({first:40}),staleTime:6e4}),{data:j}=Pa(n),y=za(),X=ja(),{state:B}=ka(),[ia,de]=M.useState(null),[et,me]=M.useState(null),[ra,_]=M.useState(!1),[q,D]=M.useState(null),tt=M.useRef(0),[h,S]=M.useState(null),{data:fe}=Ra(n),{data:ue}=Ba(!0),[ze,at]=M.useState(""),he=M.useRef(null),st=_a(i),nt=t=>At(st[t.id]),Re=i.filter(nt),it=i.length>0&&Re.length===0,oa=Re.reduce((t,s)=>t+s.priceCredits*s.quantity,0),ca=i.reduce((t,s)=>t+s.quantity,0),la=Re.reduce((t,s)=>t+s.quantity,0),rt=q?q.liveTotalCredits:oa,da=new Set(i.map(t=>t.id)),ot=((Pe==null?void 0:Pe.items)??[]).filter(t=>!da.has(t.id)).slice(0,12),ct=M.useMemo(()=>i.map(t=>t.contractAddress&&t.itemId?`${t.contractAddress.toLowerCase()}-${t.itemId}`:null).filter(t=>t!==null),[i]),se=qa(Vt,{exclude:ct}),lt=Fa({enabled:se.enabled,hasSignal:se.hasSignal,isLoading:se.isLoading,isError:se.isError,personalized:($t=se.result)==null?void 0:$t.personalized,rowCount:((St=se.result)==null?void 0:St.data.length)??0}),ua=new Map(q==null?void 0:q.buyable.map(t=>[t.item.id,t])),be=(j==null?void 0:j.credits)??0,Be=rt*10,ha=ue?It(Be,ue):0n,_e=Ue({priceCents:Be,priceManaWei:ha,balanceCents:(j==null?void 0:j.balanceCents)??0,manaBalanceWei:fe??0n}),pa=t=>t.flatMap(s=>{const o=Oe(s);return o.kind==="store"?[o.mint]:[]}),ga=t=>t.flatMap(s=>s.acquisition==="trade"?[s.trade]:[]),xa=t=>Object.fromEntries(t.flatMap(s=>s.acquisition==="trade"&&s.coupon?[[s.trade.id,s.coupon]]:[])),ma=Ga,fa=t=>Da(t.contractAddress,String(t.itemId));function ye(t){t(),D(null),me(null),de(null)}function ba(){S(null),_(!1)}function dt(t){const s=Je(t),o=Math.max(0,s-be),c=xe.find(u=>u.credits>=o)??xe[xe.length-1];at(c.id),V("Shop Buy Credits Prompted",{from:"cart_checkout",credits_needed:s,credits_balance:be,shortfall:o}),S({phase:"nofunds",lines:t.map(u=>({item:u.item,priceCredits:u.priceCredits,quantity:u.quantity})),shortfall:o}),_(!1)}async function qe(t){if(!n||t.length===0)return;const s=Me(t),o=s.map(f=>({...f.item,priceCredits:f.priceCredits})),c=t.map(f=>({...f.item,priceCredits:f.priceCredits,quantity:f.quantity})),u=[];let v="authorize";const g=new Set,T=new Set,L=new Set,F=[];let w=!1;S({phase:"processing",stage:"reserving",step:1,total:s.length});try{const f=[],P=rn(s,Nt);let N=0;for(const p of P){S({phase:"processing",stage:"reserving",step:N+1,total:s.length});try{const{credit:m,maxCreditedValue:b}=await Va(n.identity,p.units.map(on));p.units.forEach((Q,re)=>{u.push({salt:m.id,itemId:Q.item.id}),f.push({...p.drafts[re],credits:[m],maxCreditedValue:b})}),N+=p.units.length}catch(m){if(ln(m)){if(u.length){try{await Qe(n.identity,[...new Set(u.map(b=>b.salt))])}catch(b){oe(b,{flow:"cart_checkout",step:"release"})}y.invalidateQueries({queryKey:["usd-balance"]})}dt(t);return}throw m}}u.length&&y.invalidateQueries({queryKey:["usd-balance"]}),v="submit";const K=Js(f).length,te=p=>K>1?{current:p,total:K}:void 0,W=(p,m)=>S({phase:"processing",stage:p,step:s.length,total:s.length,signatures:te(m)}),C=p=>p<K?W("awaiting-signature",p+1):W("settling",K);W("awaiting-signature",1);let x=[];const I=new Map,ne=async p=>{const m=await Promise.allSettled(p.map(b=>Xs(b)));return m.forEach((b,Q)=>{const re=I.get(p[Q])??[];b.status==="fulfilled"?(re.forEach(We=>T.add(We)),F.push(p[Q])):b.reason instanceof He||re.forEach(We=>L.add(We))}),m.flatMap(b=>b.status==="rejected"?[b.reason]:[])};if(Gs())try{let p=0;x=await Zs({purchases:f,buyer:n.address,signer:n.signer,identity:n.identity,onSigned:()=>W("settling",Math.min(p+1,K)),onBroadcast:({txHash:b,salts:Q})=>{p+=1,I.set(b,Q),Q.forEach(re=>g.add(re))},onGroupSettling:({settled:b})=>W("settling",b)});const m=await ne(x);if(m.length&&!m.some(b=>b instanceof He))throw m[0];w=!0}catch(p){if(p instanceof He)throw await ne([...I.keys()]),p;if(!(p instanceof en)||!Ya(n.providerType))throw p;x=await Ge({purchases:f,buyer:n.address,signer:n.signer,onSigned:C,onBroadcast:({salts:m})=>m.forEach(b=>g.add(b)),onSettled:({txHash:m,salts:b})=>{b.forEach(Q=>T.add(Q)),F.push(m)},onReverted:({salts:m})=>m.forEach(b=>L.add(b))})}else x=await Ge({purchases:f,buyer:n.address,signer:n.signer,onSigned:C,onBroadcast:({salts:p})=>p.forEach(m=>g.add(m)),onSettled:({txHash:p,salts:m})=>{m.forEach(b=>T.add(b)),F.push(p)},onReverted:({salts:p})=>p.forEach(m=>L.add(m))});t.forEach(p=>d(p.item.id)),D(null),V("Shop Completed Purchase",{...Ce(o),payment_type:"credits",no_crypto_step:w,transaction_hash:x[0]??null}),Wt(y);const we=he.current;he.current=null,S(null),_(!1);const ie={items:c,txHash:x[0]??void 0,txHashes:x,settled:!0,...we?{creditsAdded:we}:{}};X("/success",{state:ie,replace:!0})}catch(f){je(f)||oe(f,{flow:"cart_checkout",step:v,cart_size:t.length});const P=new Set([...g].filter(x=>!L.has(x))),{toRelease:N,boughtItemIds:K}=Kt({reservations:u,spent:P,settled:T}),te=[...P].some(x=>!T.has(x)),W=o.filter(x=>K.includes(x.id)),C=o.filter(x=>!K.includes(x.id));if(V(je(f)?"Shop Purchase Cancelled":"Shop Purchase Failed",{step:v,error_code:Pt(f),value_usd:Et(C.reduce((x,I)=>x+I.priceCredits,0)),cart_size:s.length,partial:W.length>0}),N.length)try{await Qe(n.identity,N)}catch(x){oe(x,{flow:"cart_checkout",step:"release"})}if(y.invalidateQueries({queryKey:["usd-balance"]}),W.length>0){K.forEach(x=>d(x)),D(null),Wt(y),V("Shop Completed Purchase",{...Ce(W),payment_type:"credits",no_crypto_step:w,transaction_hash:F[0]??null,partial:!0}),S({phase:"error",message:a("cart.error.partiallyBought"),heldCredits:te}),_(!1);return}S({phase:"error",message:te?void 0:Ye(f),heldCredits:te})}}function ut(t,s){y.invalidateQueries({queryKey:["usd-balance"]}),y.invalidateQueries({queryKey:["detail-trade"]}),y.invalidateQueries({queryKey:["shop-item"]}),y.invalidateQueries({queryKey:["owned-token"]}),y.invalidateQueries({queryKey:["public-token"]}),y.invalidateQueries({queryKey:["item-resales"]}),y.invalidateQueries({queryKey:["shop-items"]}),y.invalidateQueries({queryKey:["catalog-items"]}),y.invalidateQueries({queryKey:["my-assets"]}),y.invalidateQueries({queryKey:["purchases"]}),y.invalidateQueries({queryKey:["owned-item-count"]}),y.invalidateQueries({queryKey:["overview-listings"]}),y.invalidateQueries({queryKey:["upsell-listings"]});const o=he.current;he.current=null,S(null),_(!1);const c={items:t,txHash:s[0]??void 0,txHashes:s,settled:!0,...o?{creditsAdded:o}:{}};X("/success",{state:c,replace:!0})}function ht(t,s){je(t)||oe(t,{flow:s,step:"submit"}),V(je(t)?"Shop Purchase Cancelled":"Shop Purchase Failed",{step:"submit",error_code:Pt(t)}),S({phase:"error",message:Ye(t)}),_(!1)}async function ya(t,s,o){const c=zt(Rt.MANAToken,s),u=zt(Rt.CreditsManager,s);await Vs({auth:{kind:Ys.Allowance,contractAddress:c.address,spenderAddress:u.address,chainId:s},signer:t,requiredWei:o})}async function pt(){if(ue)return ue;try{return await y.fetchQuery(Oa())}catch{return}}async function va(t){const s=Me(t).reduce((v,g)=>v+g.usdCents,0),c=(fe??0n)>0n?await pt():ue,u=c?It(s,c):0n;return{totalCents:s,manaWei:u}}async function gt(t,s){const o=Je(t),{totalCents:c,manaWei:u}=await va(t),v=Ue({priceCents:c,priceManaWei:u,balanceCents:(j==null?void 0:j.balanceCents)??0,manaBalanceWei:fe??0n});if(s&&v.options.some(g=>g.method===s)){if(s==="credits"){qe(t);return}const g=bt(v,s);await mt(xt(s,t),g,()=>s==="mana"?void yt(t,g):void vt(t,c,u));return}if(v.options.some(g=>g.method==="mana"||g.method==="combined")){S({phase:"choose",lines:t,totalCents:c,manaWei:u}),_(!1);return}if(j!=null&&j.credits<o){dt(t);return}qe(t)}function Fe(t){return Ue({priceCents:t.totalCents,priceManaWei:t.manaWei,balanceCents:(j==null?void 0:j.balanceCents)??0,manaBalanceWei:fe??0n})}const[pe,ve]=M.useState(null);function xt(t,s){const o=new Map;for(const c of s){const u=Ls(t,Oe(c));o.set(`${u.chainId}:${u.spender.toLowerCase()}`,u)}return[...o.values()]}async function mt(t,s,o){const c=[];for(const{spender:u,chainId:v}of t){const g=Hs(v,u),T=n?await Os(g,n.address,s).catch(()=>!0):!0;Ds(n==null?void 0:n.providerType,T)&&c.push(g)}if(c.length===0){o();return}_(!1),ft(c,0,o)}function ft(t,s,o){ve({auth:t[s],index:s+1,total:t.length,run:()=>s+1<t.length?ft(t,s+1,o):o()})}function bt(t,s){var o;return((o=t.options.find(c=>c.method===s))==null?void 0:o.manaWei)??0n}function wa(t){if((h==null?void 0:h.phase)!=="choose")return;const{lines:s,totalCents:o,manaWei:c}=h;if(t==="credits"){qe(s);return}const u=bt(Fe(h),t);mt(xt(t,s),u,()=>t==="mana"?void yt(s,u):void vt(s,o,c))}async function yt(t,s){if(!n||t.length===0)return;const o=Me(t),c=o.map(g=>({...g.item,priceCredits:g.priceCredits})),u=t.map(g=>({...g.item,priceCredits:g.priceCredits,quantity:g.quantity})),v=()=>S({phase:"processing",stage:"settling",step:o.length,total:o.length});S({phase:"processing",stage:"awaiting-signature",step:o.length,total:o.length});try{const g=await Ns({trades:ga(o),coupons:xa(o),mints:pa(o),buyer:n.address,signer:n.signer,onSigned:v,manaWei:s});t.forEach(T=>d(T.item.id)),D(null),V("Shop Completed Purchase",{...Ce(c),payment_type:"mana",transaction_hash:g[0]??null}),y.invalidateQueries({queryKey:["mana-balance"]}),ut(u,g)}catch(g){ht(g,"buy_cart_mana")}}async function vt(t,s,o){if(!n||t.length===0)return;const c=Me(t),u=c.map(w=>({...w.item,priceCredits:w.priceCredits})),v=t.map(w=>({...w.item,priceCredits:w.priceCredits,quantity:w.quantity})),g=Ks(c.map(w=>w.usdCents),(j==null?void 0:j.balanceCents)??0),T=[],L=new Set,F=new Set;S({phase:"processing",stage:"reserving",step:1,total:c.length});try{const w=c.map(Oe),f=[],P=new Map,N=new Map;for(let C=0;C<c.length;C++){const x=c[C],I=w[C],ne=g[C],we=Qs(Math.max(0,x.usdCents-ne),s,o);let ie;if(ne<=0)ie=Lt(I,[],"0");else{S({phase:"processing",stage:"reserving",step:C+1,total:c.length});const m=x.item,{credit:b,maxCreditedValue:Q}=await Ja(n.identity,ne,I.kind==="trade"?I.trade.id:void 0,m.contractAddress&&m.itemId!=null?{contractAddress:m.contractAddress,itemId:String(m.itemId)}:void 0);T.push({salt:b.id,itemId:m.id}),ie=Lt(I,[b],Q)}const p=Nt(ie);P.set(p,(P.get(p)??0n)+we),N.has(p)||N.set(p,f.length),f.push(ie)}T.length&&y.invalidateQueries({queryKey:["usd-balance"]});for(const[C,x]of P){const I=N.get(C);I==null||x<=0n||(f[I]={...f[I],maxCreditedValue:(BigInt(f[I].maxCreditedValue)+x).toString()})}const K=[...P.values()].reduce((C,x)=>C+x,0n);await ya(n.signer,Us(w[0]),K);const te=()=>S({phase:"processing",stage:"settling",step:c.length,total:c.length});S({phase:"processing",stage:"awaiting-signature",step:c.length,total:c.length});const W=await Ge({purchases:f,buyer:n.address,signer:n.signer,onSigned:te,onBroadcast:({salts:C})=>C.forEach(x=>L.add(x)),onReverted:({salts:C})=>C.forEach(x=>F.add(x))});t.forEach(C=>d(C.item.id)),D(null),V("Shop Completed Purchase",{...Ce(u),payment_type:"credits_and_mana",transaction_hash:W[0]??null}),y.invalidateQueries({queryKey:["mana-balance"]}),ut(v,W)}catch(w){const{toRelease:f}=Kt({reservations:T,spent:new Set([...L].filter(P=>!F.has(P))),settled:new Set});f.length&&Qe(n.identity,f).catch(()=>{}),T.length&&y.invalidateQueries({queryKey:["usd-balance"]}),ht(w,"buy_cart_combined")}}async function Z(t){if(!n){Ft({type:"cart-checkout"}),G();return}const s=O.getState().items.filter(nt);if(s.length===0)return;de(null),me(null),_(!0);const o=s.reduce((c,u)=>c+u.priceCredits*u.quantity,0);V("Shop Started Checkout",{checkout_source:"cart",cart_size:s.length,cart_value_credits:o,cart_value_usd:Et(o),has_sufficient_credits:be>=o});try{const c=await sn(s,n.address,ma,await pt(),fa,Ha),u=[...c.unavailable,...c.own];if(u.length&&(u.forEach(v=>d(v.id)),me(gi(c))),c.buyable.length===0){de(a("cart.error.noneAvailable")),D(null);return}if(c.orderChanged){D(c),tt.current=Date.now();return}await gt(c.buyable,t)}catch(c){oe(c,{flow:"cart_checkout",step:"review",cart_size:s.length}),de(Ye(c))}finally{_(!1)}}async function wt(){if(q){if(!n){Ft({type:"cart-checkout"}),G();return}if(Date.now()-tt.current>pi){D(null),me(null),await Z();return}de(null),gt(q.buyable)}}async function Ca(){if(ze){try{sessionStorage.setItem(ke,JSON.stringify(O.getState().items))}catch{}_(!0);try{const t=await nn(ze,n?{address:n.address,identity:n.identity}:void 0);if(t.url){window.location.href=t.url;return}X("/credits")}catch(t){try{sessionStorage.removeItem(ke)}catch{}oe(t,{flow:"cart_buy_credits"}),S({phase:"error",message:a("buyModal.error.creditsCheckout")})}finally{_(!1)}}}const Ct=M.useRef(!1);M.useEffect(()=>{if(!n||Ct.current||!qs("cart-checkout"))return;Ct.current=!0;const t=setTimeout(()=>void Z(),0);return()=>clearTimeout(t)},[n]);const jt=M.useRef(!1);M.useEffect(()=>{if(!(B!=null&&B.resumeCheckout)||jt.current)return;jt.current=!0,he.current=B.creditsAdded??null;try{const s=sessionStorage.getItem(ke);if(s){sessionStorage.removeItem(ke);const o=JSON.parse(s);Array.isArray(o)&&o.length&&U(o)}}catch{}y.invalidateQueries({queryKey:["usd-balance"]});const t=setTimeout(()=>void Z(),0);return()=>clearTimeout(t)},[B==null?void 0:B.resumeCheckout]);const kt=M.useRef(!1);M.useEffect(()=>{if(!(B!=null&&B.startCheckout)||kt.current)return;kt.current=!0,X(".",{replace:!0,state:null});const t=setTimeout(()=>void Z(),0);return()=>clearTimeout(t)},[B==null?void 0:B.startCheckout]);const ee=ra||(h==null?void 0:h.phase)==="processing";return i.length===0&&!h?e.jsx(Ut,{children:e.jsxs(Ht,{children:[e.jsxs(Gt,{onClick:()=>X(-1),type:"button",children:[e.jsx(Y,{name:"arrow-left"}),a("nav.cart")]}),e.jsx(An,{children:e.jsx(Wa,{variant:"light",testId:"cart-empty",icon:La,title:a("cart.empty.title"),body:a("cart.empty.body"),cta:{label:a("cart.empty.cta"),to:"/items"}})})]})}):e.jsxs(Ut,{children:[e.jsxs(Ht,{children:[e.jsxs(Gt,{onClick:()=>X(-1),type:"button",children:[e.jsx(Y,{name:"arrow-left"}),a("nav.cart")]}),e.jsxs(Sn,{children:[e.jsxs(Mn,{children:[e.jsxs(Tn,{children:[e.jsx(En,{onClick:()=>X(-1),type:"button","aria-label":a("cart.goBack"),children:e.jsx(Y,{name:"arrow-left"})}),e.jsx(Pn,{children:a("cart.panelTitle",{count:ca})}),na?e.jsxs(zn,{onClick:()=>H(!0),disabled:ee,children:[e.jsx(Y,{name:"fitting-room"}),a("cart.fittingRoom")]}):null]}),e.jsxs(In,{children:[e.jsx(Rn,{children:i.map(t=>{const s=ua.get(t.id),o=s?s.priceCredits:t.priceCredits,c=!!s&&s.priceCredits!==t.priceCredits,u=!t.tokenId,v=t.quantity,g=typeof t.available=="number"&&v>=t.available,T=o*v,L=Na(t),F=!!L&&!!E[L],w=Ka(t),f=st[t.id],P=!At(f),N=f==="sold-out"?a("cart.availability.soldOut"):a("cart.availability.unavailable");return e.jsxs(Bn,{"data-unavailable":P||void 0,children:[e.jsxs(_n,{"data-thumb":!0,children:[w?e.jsx(qn,{to:w,state:{item:t,tradeId:t.tradeId},"aria-label":t.name,children:t.thumbnail?e.jsx("img",{src:t.thumbnail,alt:t.name}):null}):t.thumbnail?e.jsx("img",{src:t.thumbnail,alt:t.name}):null,e.jsx(Fn,{"data-check":!0,"aria-hidden":!0,children:e.jsx("svg",{viewBox:"0 0 20 20",width:"12",height:"12",children:e.jsx("path",{d:"M5 10.5l3 3 7-7.5",fill:"none",stroke:"#fff",strokeWidth:"2.4",strokeLinecap:"round",strokeLinejoin:"round"})})})]}),e.jsxs(Wn,{children:[e.jsxs(Ln,{"data-desc":!0,children:[w?e.jsx(Kn,{to:w,state:{item:t,tradeId:t.tradeId},title:t.name,children:t.name}):e.jsx(Nn,{title:t.name,children:t.name}),t.creator?e.jsx(Qn,{address:t.creator,linkToProfile:!0}):null,sa&&u?e.jsxs(Zn,{"data-testid":"cart-creator-tag",children:[e.jsx(ei,{name:"buy-from-creator"}),a("cart.creatorTag")]}):null]}),e.jsx(Un,{children:P?e.jsxs(Jn,{children:[e.jsx(Xn,{name:"warning-fill",size:24}),N]}):e.jsxs(e.Fragment,{children:[u?e.jsxs(Gn,{children:[e.jsx(Ot,{onClick:()=>ye(()=>$(t.id)),disabled:ee||v<=1,"aria-label":a("cart.decreaseQuantity",{name:t.name}),children:e.jsx("svg",{viewBox:"0 0 16 16",fill:"none","aria-hidden":!0,focusable:"false",children:e.jsx("path",{d:"M3.5 8h9",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})})}),e.jsx(Hn,{children:v}),e.jsx(Ot,{onClick:()=>ye(()=>k(t.id)),disabled:ee||g,"aria-label":a("cart.increaseQuantity"),children:e.jsx("svg",{viewBox:"0 0 16 16",fill:"none","aria-hidden":!0,focusable:"false",children:e.jsx("path",{d:"M8 3.5v9M3.5 8h9",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})})})]}):null,e.jsxs(On,{children:[e.jsx(Dn,{})," ",e.jsx(Ke,{credits:T}),c?e.jsx(Vn,{children:e.jsx(Ke,{credits:t.priceCredits*v})}):null]})]})})]}),e.jsxs(Yn,{children:[L?e.jsx(ti,{"data-on":F||void 0,onClick:()=>J(t),"aria-label":F?a("cart.removeFromFavorites",{name:t.name}):a("cart.addToFavorites",{name:t.name}),title:F?a("assetCard.removeFromFavorites"):a("assetCard.addToFavorites"),children:e.jsx(Y,{name:F?"heart-solid":"heart"})}):null,e.jsx(ai,{onClick:()=>ye(()=>d(t.id)),disabled:ee,"aria-label":a("cart.remove",{name:t.name}),title:a("cart.removeTitle"),children:e.jsx(Y,{name:"trash",size:24})})]})]},t.id)})}),e.jsx(si,{children:e.jsx("button",{className:"link",onClick:()=>ye(R),disabled:ee,children:a("cart.clearCart")})})]})]}),e.jsxs(ni,{children:[e.jsx(ii,{children:a("cart.purchaseSummary")}),e.jsxs(ri,{children:[e.jsxs(oi,{children:[e.jsx(ci,{children:a("cart.totalItems",{count:la})}),e.jsx(di,{children:e.jsxs(li,{children:[e.jsx(ui,{})," ",e.jsx(Ke,{credits:rt})]})})]}),e.jsx(Xt,{options:_e.options,totalCents:Be,shortfall:_e.manaShortfall,showCreditsAmount:!1,creditsLabel:q?a("marketCheckout.confirmPurchase"):_e.options.length>1?a("cart.buyWithCredits"):a("cart.checkout"),busy:ee||it,onPay:t=>void(q?wt():Z(t)),creditsFallback:{label:ee?a("cart.working"):q?a("marketCheckout.confirmPurchase"):a("cart.checkout"),onClick:()=>void(q?wt():Z())}}),it?e.jsx(Se,{className:"muted",children:a("cart.allUnavailable")}):null,n?null:e.jsx(Se,{className:"muted",children:a("cart.signInHint")}),q?e.jsx(Se,{className:"muted",children:a("cart.priceChanged")}):null,et?e.jsx(Se,{className:"muted",children:et}):null,e.jsx(hi,{message:ia})]})]})]})]}),lt===null&&e.jsx(Dt,{"data-testid":"cart-personal-upsell",children:e.jsx(Qa,{exclude:ct,title:a("cart.suggestedTitle"),surface:"cart",first:Vt})}),lt!==null&&ot.length>0?e.jsx(Dt,{children:e.jsx(Fs,{title:a("cart.youMightAlsoLike"),items:ot})}):null,pe&&n?e.jsx(Ws,{auth:pe.auth,signer:n.signer,step:{index:pe.index,total:pe.total},title:a("authorizeStep.manaTitle"),name:a("authorizeStep.manaName"),reason:a("authorizeStep.manaReason"),icon:e.jsx("img",{src:Ie,width:24,height:24,alt:"","aria-hidden":!0}),onAuthorized:()=>{const{run:t}=pe;ve(null),t()},onCancel:()=>ve(null),onClose:()=>ve(null)}):null,h?e.jsx(Cn,{phase:h.phase,balanceCredits:be,heldCreditsCount:((Mt=j==null?void 0:j.held)==null?void 0:Mt.credits)??null,onClose:ba,stage:h.phase==="processing"?h.stage:void 0,step:h.phase==="processing"?h.step:void 0,total:h.phase==="processing"?h.total:void 0,isSelfCustody:Ua(n==null?void 0:n.providerType),signatures:h.phase==="processing"?h.signatures:void 0,options:h.phase==="choose"?Fe(h).options:void 0,shortfall:h.phase==="choose"?Fe(h).manaShortfall:void 0,onPay:wa,totalCents:h.phase==="choose"?h.totalCents:void 0,totalManaWei:h.phase==="choose"?h.manaWei:void 0,totalCredits:h.phase==="choose"?Je(h.lines):void 0,lines:h.phase==="nofunds"?h.lines:void 0,shortfallCredits:h.phase==="nofunds"?h.shortfall:void 0,packs:xe,selectedPack:ze,onSelectPack:at,onBuyPacks:()=>void Ca(),message:h.phase==="error"?h.message:void 0,heldCredits:h.phase==="error"&&!!h.heldCredits,onRetry:()=>void Z()}):null]})}export{Ei as Cart};
748
- //# sourceMappingURL=Cart-DywJ-U2P.js.map
747
+ `;function Ye(i){if(cn(i))return a("errors.rejected");const d=(i.message??"").toLowerCase();return d.includes("insufficient")?a("cart.error.insufficient",{currency:Te.name}):d.includes("no active listing")||d.includes("your own listing")?a("cart.error.listingChanged"):a("marketCheckout.error.generic")}const pi=12e4;function gi(i){const d=[];return i.unavailable.length&&d.push(a("cart.drop.unavailable",{count:i.unavailable.length})),i.own.length&&d.push(a("cart.drop.own",{count:i.own.length})),a("cart.drop.removed",{items:d.join(` ${a("cart.drop.and")} `)})}const Xe=i=>i.reduce((d,k)=>d+k.priceCredits*k.quantity,0),Me=i=>i.flatMap(d=>Array.from({length:d.quantity},()=>({...d,quantity:1}))),Vt=8;function Ei(){var $t,St,Mt;Ta({title:a("nav.cart"),noindex:!0});const i=H(t=>t.items),d=H(t=>t.remove),k=H(t=>t.increment),$=H(t=>t.decrement),R=H(t=>t.clear),U=H(t=>t.restore),O=H(t=>t.setFittingOpen),E=Tt(t=>t.items),X=Tt(t=>t.toggle),{session:n,signIn:G}=Aa(),sa=Ia(),xe=ys().packs.slice(0,vs);M.useEffect(()=>(document.body.classList.add("shop-cart-bg"),()=>document.body.classList.remove("shop-cart-bg")),[]);const na=i.some(t=>t.category!=="emote"),{data:Pe}=Ea({queryKey:["upsell-listings"],queryFn:()=>Ja({first:40}),staleTime:6e4}),{data:j}=Pa(n),y=za(),J=ja(),{state:B}=ka(),[ia,de]=M.useState(null),[et,me]=M.useState(null),[ra,q]=M.useState(!1),[_,D]=M.useState(null),tt=M.useRef(0),[h,S]=M.useState(null),{data:fe}=Ra(n),{data:ue}=Ba(!0),[ze,at]=M.useState(""),he=M.useRef(null),st=qa(i),nt=t=>It(st[t.id]),Re=i.filter(nt),it=i.length>0&&Re.length===0,oa=Re.reduce((t,s)=>t+s.priceCredits*s.quantity,0),ca=i.reduce((t,s)=>t+s.quantity,0),la=Re.reduce((t,s)=>t+s.quantity,0),rt=_?_.liveTotalCredits:oa,da=new Set(i.map(t=>t.id)),ot=((Pe==null?void 0:Pe.items)??[]).filter(t=>!da.has(t.id)).slice(0,12),ct=M.useMemo(()=>i.map(t=>t.contractAddress&&t.itemId?`${t.contractAddress.toLowerCase()}-${t.itemId}`:null).filter(t=>t!==null),[i]),se=_a(Vt,{exclude:ct}),lt=Fa({enabled:se.enabled,hasSignal:se.hasSignal,isLoading:se.isLoading,isError:se.isError,personalized:($t=se.result)==null?void 0:$t.personalized,rowCount:((St=se.result)==null?void 0:St.data.length)??0}),ua=new Map(_==null?void 0:_.buyable.map(t=>[t.item.id,t])),be=(j==null?void 0:j.credits)??0,Be=rt*10,ha=ue?At(Be,ue):0n,qe=Ue({priceCents:Be,priceManaWei:ha,balanceCents:(j==null?void 0:j.balanceCents)??0,manaBalanceWei:fe??0n}),pa=t=>t.flatMap(s=>{const o=He(s);return o.kind==="store"?[o.mint]:[]}),ga=t=>t.flatMap(s=>s.acquisition==="trade"?[s.trade]:[]),xa=t=>Object.fromEntries(t.flatMap(s=>s.acquisition==="trade"&&s.coupon?[[s.trade.id,s.coupon]]:[])),ma=Ga,fa=t=>Da(t.contractAddress,String(t.itemId));function ye(t){t(),D(null),me(null),de(null)}function ba(){S(null),q(!1)}function dt(t){const s=Xe(t),o=Math.max(0,s-be),c=xe.find(u=>u.credits>=o)??xe[xe.length-1];at(c.id),V("Shop Buy Credits Prompted",{from:"cart_checkout",credits_needed:s,credits_balance:be,shortfall:o}),S({phase:"nofunds",lines:t.map(u=>({item:u.item,priceCredits:u.priceCredits,quantity:u.quantity})),shortfall:o}),q(!1)}async function _e(t){if(!n||t.length===0)return;const s=Me(t),o=s.map(f=>({...f.item,priceCredits:f.priceCredits})),c=t.map(f=>({...f.item,priceCredits:f.priceCredits,quantity:f.quantity})),u=[];let v="authorize";const g=new Set,T=new Set,L=new Set,F=[];let w=!1;S({phase:"processing",stage:"reserving",step:1,total:s.length});try{const f=[],P=js(s,Ft);let K=0;for(const p of P){S({phase:"processing",stage:"reserving",step:K+1,total:s.length});try{const{credit:m,maxCreditedValue:b}=await Va(n.identity,p.units.map(ks));p.units.forEach((Q,re)=>{u.push({salt:m.id,itemId:Q.item.id}),f.push({...p.drafts[re],credits:[m],maxCreditedValue:b})}),K+=p.units.length}catch(m){if(ln(m)){if(u.length){try{await Qe(n.identity,[...new Set(u.map(b=>b.salt))])}catch(b){oe(b,{flow:"cart_checkout",step:"release"})}y.invalidateQueries({queryKey:["usd-balance"]})}dt(t);return}throw m}}u.length&&y.invalidateQueries({queryKey:["usd-balance"]}),v="submit";const N=xs(f).length,te=p=>N>1?{current:p,total:N}:void 0,W=(p,m)=>S({phase:"processing",stage:p,step:s.length,total:s.length,signatures:te(m)}),C=p=>p<N?W("awaiting-signature",p+1):W("settling",N);W("awaiting-signature",1);let x=[];const A=new Map,ne=async p=>{const m=await Promise.allSettled(p.map(b=>ms(b)));return m.forEach((b,Q)=>{const re=A.get(p[Q])??[];b.status==="fulfilled"?(re.forEach(We=>T.add(We)),F.push(p[Q])):b.reason instanceof Oe||re.forEach(We=>L.add(We))}),m.flatMap(b=>b.status==="rejected"?[b.reason]:[])};if(ls())try{let p=0;x=await fs({purchases:f,buyer:n.address,signer:n.signer,identity:n.identity,onSigned:()=>W("settling",Math.min(p+1,N)),onBroadcast:({txHash:b,salts:Q})=>{p+=1,A.set(b,Q),Q.forEach(re=>g.add(re))},onGroupSettling:({settled:b})=>W("settling",b)});const m=await ne(x);if(m.length&&!m.some(b=>b instanceof Oe))throw m[0];w=!0}catch(p){if(p instanceof Oe)throw await ne([...A.keys()]),p;if(!(p instanceof bs)||!Ya(n.providerType))throw p;x=await Ge({purchases:f,buyer:n.address,signer:n.signer,onSigned:C,onBroadcast:({salts:m})=>m.forEach(b=>g.add(b)),onSettled:({txHash:m,salts:b})=>{b.forEach(Q=>T.add(Q)),F.push(m)},onReverted:({salts:m})=>m.forEach(b=>L.add(b))})}else x=await Ge({purchases:f,buyer:n.address,signer:n.signer,onSigned:C,onBroadcast:({salts:p})=>p.forEach(m=>g.add(m)),onSettled:({txHash:p,salts:m})=>{m.forEach(b=>T.add(b)),F.push(p)},onReverted:({salts:p})=>p.forEach(m=>L.add(m))});t.forEach(p=>d(p.item.id)),D(null),V("Shop Completed Purchase",{...Ce(o),payment_type:"credits",no_crypto_step:w,transaction_hash:x[0]??null}),qt(y);const we=he.current;he.current=null,S(null),q(!1);const ie={items:c,txHash:x[0]??void 0,txHashes:x,settled:!0,...we?{creditsAdded:we}:{}};J("/success",{state:ie,replace:!0})}catch(f){je(f)||oe(f,{flow:"cart_checkout",step:v,cart_size:t.length});const P=new Set([...g].filter(x=>!L.has(x))),{toRelease:K,boughtItemIds:N}=Wt({reservations:u,spent:P,settled:T}),te=[...P].some(x=>!T.has(x)),W=o.filter(x=>N.includes(x.id)),C=o.filter(x=>!N.includes(x.id));if(V(je(f)?"Shop Purchase Cancelled":"Shop Purchase Failed",{step:v,error_code:Pt(f),value_usd:Et(C.reduce((x,A)=>x+A.priceCredits,0)),cart_size:s.length,partial:W.length>0}),K.length)try{await Qe(n.identity,K)}catch(x){oe(x,{flow:"cart_checkout",step:"release"})}if(y.invalidateQueries({queryKey:["usd-balance"]}),W.length>0){N.forEach(x=>d(x)),D(null),qt(y),V("Shop Completed Purchase",{...Ce(W),payment_type:"credits",no_crypto_step:w,transaction_hash:F[0]??null,partial:!0}),S({phase:"error",message:a("cart.error.partiallyBought"),heldCredits:te}),q(!1);return}S({phase:"error",message:te?void 0:Ye(f),heldCredits:te})}}function ut(t,s){y.invalidateQueries({queryKey:["usd-balance"]}),y.invalidateQueries({queryKey:["detail-trade"]}),y.invalidateQueries({queryKey:["shop-item"]}),y.invalidateQueries({queryKey:["owned-token"]}),y.invalidateQueries({queryKey:["public-token"]}),y.invalidateQueries({queryKey:["item-resales"]}),y.invalidateQueries({queryKey:["shop-items"]}),y.invalidateQueries({queryKey:["catalog-items"]}),y.invalidateQueries({queryKey:["my-assets"]}),y.invalidateQueries({queryKey:["purchases"]}),y.invalidateQueries({queryKey:["owned-item-count"]}),y.invalidateQueries({queryKey:["overview-listings"]}),y.invalidateQueries({queryKey:["upsell-listings"]});const o=he.current;he.current=null,S(null),q(!1);const c={items:t,txHash:s[0]??void 0,txHashes:s,settled:!0,...o?{creditsAdded:o}:{}};J("/success",{state:c,replace:!0})}function ht(t,s){je(t)||oe(t,{flow:s,step:"submit"}),V(je(t)?"Shop Purchase Cancelled":"Shop Purchase Failed",{step:"submit",error_code:Pt(t)}),S({phase:"error",message:Ye(t)}),q(!1)}async function ya(t,s,o){const c=zt(Rt.MANAToken,s),u=zt(Rt.CreditsManager,s);await ps({auth:{kind:gs.Allowance,contractAddress:c.address,spenderAddress:u.address,chainId:s},signer:t,requiredWei:o})}async function pt(){if(ue)return ue;try{return await y.fetchQuery(Ha())}catch{return}}async function va(t){const s=Me(t).reduce((v,g)=>v+g.usdCents,0),c=(fe??0n)>0n?await pt():ue,u=c?At(s,c):0n;return{totalCents:s,manaWei:u}}async function gt(t,s){const o=Xe(t),{totalCents:c,manaWei:u}=await va(t),v=Ue({priceCents:c,priceManaWei:u,balanceCents:(j==null?void 0:j.balanceCents)??0,manaBalanceWei:fe??0n});if(s&&v.options.some(g=>g.method===s)){if(s==="credits"){_e(t);return}const g=bt(v,s);await mt(xt(s,t),g,()=>s==="mana"?void yt(t,g):void vt(t,c,u));return}if(v.options.some(g=>g.method==="mana"||g.method==="combined")){S({phase:"choose",lines:t,totalCents:c,manaWei:u}),q(!1);return}if(j!=null&&j.credits<o){dt(t);return}_e(t)}function Fe(t){return Ue({priceCents:t.totalCents,priceManaWei:t.manaWei,balanceCents:(j==null?void 0:j.balanceCents)??0,manaBalanceWei:fe??0n})}const[pe,ve]=M.useState(null);function xt(t,s){const o=new Map;for(const c of s){const u=ns(t,He(c));o.set(`${u.chainId}:${u.spender.toLowerCase()}`,u)}return[...o.values()]}async function mt(t,s,o){const c=[];for(const{spender:u,chainId:v}of t){const g=ds(v,u),T=n?await us(g,n.address,s).catch(()=>!0):!0;hs(n==null?void 0:n.providerType,T)&&c.push(g)}if(c.length===0){o();return}q(!1),ft(c,0,o)}function ft(t,s,o){ve({auth:t[s],index:s+1,total:t.length,run:()=>s+1<t.length?ft(t,s+1,o):o()})}function bt(t,s){var o;return((o=t.options.find(c=>c.method===s))==null?void 0:o.manaWei)??0n}function wa(t){if((h==null?void 0:h.phase)!=="choose")return;const{lines:s,totalCents:o,manaWei:c}=h;if(t==="credits"){_e(s);return}const u=bt(Fe(h),t);mt(xt(t,s),u,()=>t==="mana"?void yt(s,u):void vt(s,o,c))}async function yt(t,s){if(!n||t.length===0)return;const o=Me(t),c=o.map(g=>({...g.item,priceCredits:g.priceCredits})),u=t.map(g=>({...g.item,priceCredits:g.priceCredits,quantity:g.quantity})),v=()=>S({phase:"processing",stage:"settling",step:o.length,total:o.length});S({phase:"processing",stage:"awaiting-signature",step:o.length,total:o.length});try{const g=await is({trades:ga(o),coupons:xa(o),mints:pa(o),buyer:n.address,signer:n.signer,onSigned:v,manaWei:s});t.forEach(T=>d(T.item.id)),D(null),V("Shop Completed Purchase",{...Ce(c),payment_type:"mana",transaction_hash:g[0]??null}),y.invalidateQueries({queryKey:["mana-balance"]}),ut(u,g)}catch(g){ht(g,"buy_cart_mana")}}async function vt(t,s,o){if(!n||t.length===0)return;const c=Me(t),u=c.map(w=>({...w.item,priceCredits:w.priceCredits})),v=t.map(w=>({...w.item,priceCredits:w.priceCredits,quantity:w.quantity})),g=rs(c.map(w=>w.usdCents),(j==null?void 0:j.balanceCents)??0),T=[],L=new Set,F=new Set;S({phase:"processing",stage:"reserving",step:1,total:c.length});try{const w=c.map(He),f=[],P=new Map,K=new Map;for(let C=0;C<c.length;C++){const x=c[C],A=w[C],ne=g[C],we=os(Math.max(0,x.usdCents-ne),s,o);let ie;if(ne<=0)ie=_t(A,[],"0");else{S({phase:"processing",stage:"reserving",step:C+1,total:c.length});const m=x.item,{credit:b,maxCreditedValue:Q}=await Xa(n.identity,ne,A.kind==="trade"?A.trade.id:void 0,m.contractAddress&&m.itemId!=null?{contractAddress:m.contractAddress,itemId:String(m.itemId)}:void 0);T.push({salt:b.id,itemId:m.id}),ie=_t(A,[b],Q)}const p=Ft(ie);P.set(p,(P.get(p)??0n)+we),K.has(p)||K.set(p,f.length),f.push(ie)}T.length&&y.invalidateQueries({queryKey:["usd-balance"]});for(const[C,x]of P){const A=K.get(C);A==null||x<=0n||(f[A]={...f[A],maxCreditedValue:(BigInt(f[A].maxCreditedValue)+x).toString()})}const N=[...P.values()].reduce((C,x)=>C+x,0n);await ya(n.signer,cs(w[0]),N);const te=()=>S({phase:"processing",stage:"settling",step:c.length,total:c.length});S({phase:"processing",stage:"awaiting-signature",step:c.length,total:c.length});const W=await Ge({purchases:f,buyer:n.address,signer:n.signer,onSigned:te,onBroadcast:({salts:C})=>C.forEach(x=>L.add(x)),onReverted:({salts:C})=>C.forEach(x=>F.add(x))});t.forEach(C=>d(C.item.id)),D(null),V("Shop Completed Purchase",{...Ce(u),payment_type:"credits_and_mana",transaction_hash:W[0]??null}),y.invalidateQueries({queryKey:["mana-balance"]}),ut(v,W)}catch(w){const{toRelease:f}=Wt({reservations:T,spent:new Set([...L].filter(P=>!F.has(P))),settled:new Set});f.length&&Qe(n.identity,f).catch(()=>{}),T.length&&y.invalidateQueries({queryKey:["usd-balance"]}),ht(w,"buy_cart_combined")}}async function Z(t){if(!n){Bt({type:"cart-checkout"}),G();return}const s=H.getState().items.filter(nt);if(s.length===0)return;de(null),me(null),q(!0);const o=s.reduce((c,u)=>c+u.priceCredits*u.quantity,0);V("Shop Started Checkout",{checkout_source:"cart",cart_size:s.length,cart_value_credits:o,cart_value_usd:Et(o),has_sufficient_credits:be>=o});try{const c=await ws(s,n.address,ma,await pt(),fa,Oa),u=[...c.unavailable,...c.own];if(u.length&&(u.forEach(v=>d(v.id)),me(gi(c))),c.buyable.length===0){de(a("cart.error.noneAvailable")),D(null);return}if(c.orderChanged){D(c),tt.current=Date.now();return}await gt(c.buyable,t)}catch(c){oe(c,{flow:"cart_checkout",step:"review",cart_size:s.length}),de(Ye(c))}finally{q(!1)}}async function wt(){if(_){if(!n){Bt({type:"cart-checkout"}),G();return}if(Date.now()-tt.current>pi){D(null),me(null),await Z();return}de(null),gt(_.buyable)}}async function Ca(){if(ze){try{sessionStorage.setItem(ke,JSON.stringify(H.getState().items))}catch{}q(!0);try{const t=await Cs(ze,n?{address:n.address,identity:n.identity}:void 0);if(t.url){window.location.href=t.url;return}J("/credits")}catch(t){try{sessionStorage.removeItem(ke)}catch{}oe(t,{flow:"cart_buy_credits"}),S({phase:"error",message:a("buyModal.error.creditsCheckout")})}finally{q(!1)}}}const Ct=M.useRef(!1);M.useEffect(()=>{if(!n||Ct.current||!ts("cart-checkout"))return;Ct.current=!0;const t=setTimeout(()=>void Z(),0);return()=>clearTimeout(t)},[n]);const jt=M.useRef(!1);M.useEffect(()=>{if(!(B!=null&&B.resumeCheckout)||jt.current)return;jt.current=!0,he.current=B.creditsAdded??null;try{const s=sessionStorage.getItem(ke);if(s){sessionStorage.removeItem(ke);const o=JSON.parse(s);Array.isArray(o)&&o.length&&U(o)}}catch{}y.invalidateQueries({queryKey:["usd-balance"]});const t=setTimeout(()=>void Z(),0);return()=>clearTimeout(t)},[B==null?void 0:B.resumeCheckout]);const kt=M.useRef(!1);M.useEffect(()=>{if(!(B!=null&&B.startCheckout)||kt.current)return;kt.current=!0,J(".",{replace:!0,state:null});const t=setTimeout(()=>void Z(),0);return()=>clearTimeout(t)},[B==null?void 0:B.startCheckout]);const ee=ra||(h==null?void 0:h.phase)==="processing";return i.length===0&&!h?e.jsx(Ut,{children:e.jsxs(Ot,{children:[e.jsxs(Gt,{onClick:()=>J(-1),type:"button",children:[e.jsx(Y,{name:"arrow-left"}),a("nav.cart")]}),e.jsx(In,{children:e.jsx(Wa,{variant:"light",testId:"cart-empty",icon:La,title:a("cart.empty.title"),body:a("cart.empty.body"),cta:{label:a("cart.empty.cta"),to:"/items"}})})]})}):e.jsxs(Ut,{children:[e.jsxs(Ot,{children:[e.jsxs(Gt,{onClick:()=>J(-1),type:"button",children:[e.jsx(Y,{name:"arrow-left"}),a("nav.cart")]}),e.jsxs(Sn,{children:[e.jsxs(Mn,{children:[e.jsxs(Tn,{children:[e.jsx(En,{onClick:()=>J(-1),type:"button","aria-label":a("cart.goBack"),children:e.jsx(Y,{name:"arrow-left"})}),e.jsx(Pn,{children:a("cart.panelTitle",{count:ca})}),na?e.jsxs(zn,{onClick:()=>O(!0),disabled:ee,children:[e.jsx(Y,{name:"fitting-room"}),a("cart.fittingRoom")]}):null]}),e.jsxs(An,{children:[e.jsx(Rn,{children:i.map(t=>{const s=ua.get(t.id),o=s?s.priceCredits:t.priceCredits,c=!!s&&s.priceCredits!==t.priceCredits,u=!t.tokenId,v=t.quantity,g=typeof t.available=="number"&&v>=t.available,T=o*v,L=Ka(t),F=!!L&&!!E[L],w=Na(t),f=st[t.id],P=!It(f),K=f==="sold-out"?a("cart.availability.soldOut"):a("cart.availability.unavailable");return e.jsxs(Bn,{"data-unavailable":P||void 0,children:[e.jsxs(qn,{"data-thumb":!0,children:[w?e.jsx(_n,{to:w,state:{item:t,tradeId:t.tradeId},"aria-label":t.name,children:t.thumbnail?e.jsx("img",{src:t.thumbnail,alt:t.name}):null}):t.thumbnail?e.jsx("img",{src:t.thumbnail,alt:t.name}):null,e.jsx(Fn,{"data-check":!0,"aria-hidden":!0,children:e.jsx("svg",{viewBox:"0 0 20 20",width:"12",height:"12",children:e.jsx("path",{d:"M5 10.5l3 3 7-7.5",fill:"none",stroke:"#fff",strokeWidth:"2.4",strokeLinecap:"round",strokeLinejoin:"round"})})})]}),e.jsxs(Wn,{children:[e.jsxs(Ln,{"data-desc":!0,children:[w?e.jsx(Nn,{to:w,state:{item:t,tradeId:t.tradeId},title:t.name,children:t.name}):e.jsx(Kn,{title:t.name,children:t.name}),t.creator?e.jsx(Qn,{address:t.creator,linkToProfile:!0}):null,sa&&u?e.jsxs(Zn,{"data-testid":"cart-creator-tag",children:[e.jsx(ei,{name:"buy-from-creator"}),a("cart.creatorTag")]}):null]}),e.jsx(Un,{children:P?e.jsxs(Xn,{children:[e.jsx(Jn,{name:"warning-fill",size:24}),K]}):e.jsxs(e.Fragment,{children:[u?e.jsxs(Gn,{children:[e.jsx(Ht,{onClick:()=>ye(()=>$(t.id)),disabled:ee||v<=1,"aria-label":a("cart.decreaseQuantity",{name:t.name}),children:e.jsx("svg",{viewBox:"0 0 16 16",fill:"none","aria-hidden":!0,focusable:"false",children:e.jsx("path",{d:"M3.5 8h9",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})})}),e.jsx(On,{children:v}),e.jsx(Ht,{onClick:()=>ye(()=>k(t.id)),disabled:ee||g,"aria-label":a("cart.increaseQuantity"),children:e.jsx("svg",{viewBox:"0 0 16 16",fill:"none","aria-hidden":!0,focusable:"false",children:e.jsx("path",{d:"M8 3.5v9M3.5 8h9",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})})})]}):null,e.jsxs(Hn,{children:[e.jsx(Dn,{})," ",e.jsx(Ne,{credits:T}),c?e.jsx(Vn,{children:e.jsx(Ne,{credits:t.priceCredits*v})}):null]})]})})]}),e.jsxs(Yn,{children:[L?e.jsx(ti,{"data-on":F||void 0,onClick:()=>X(t),"aria-label":F?a("cart.removeFromFavorites",{name:t.name}):a("cart.addToFavorites",{name:t.name}),title:F?a("assetCard.removeFromFavorites"):a("assetCard.addToFavorites"),children:e.jsx(Y,{name:F?"heart-solid":"heart"})}):null,e.jsx(ai,{onClick:()=>ye(()=>d(t.id)),disabled:ee,"aria-label":a("cart.remove",{name:t.name}),title:a("cart.removeTitle"),children:e.jsx(Y,{name:"trash",size:24})})]})]},t.id)})}),e.jsx(si,{children:e.jsx("button",{className:"link",onClick:()=>ye(R),disabled:ee,children:a("cart.clearCart")})})]})]}),e.jsxs(ni,{children:[e.jsx(ii,{children:a("cart.purchaseSummary")}),e.jsxs(ri,{children:[e.jsxs(oi,{children:[e.jsx(ci,{children:a("cart.totalItems",{count:la})}),e.jsx(di,{children:e.jsxs(li,{children:[e.jsx(ui,{})," ",e.jsx(Ne,{credits:rt})]})})]}),e.jsx(Jt,{options:qe.options,totalCents:Be,shortfall:qe.manaShortfall,showCreditsAmount:!1,creditsLabel:_?a("marketCheckout.confirmPurchase"):qe.options.length>1?a("cart.buyWithCredits"):a("cart.checkout"),busy:ee||it,onPay:t=>void(_?wt():Z(t)),creditsFallback:{label:ee?a("cart.working"):_?a("marketCheckout.confirmPurchase"):a("cart.checkout"),onClick:()=>void(_?wt():Z())}}),it?e.jsx(Se,{className:"muted",children:a("cart.allUnavailable")}):null,n?null:e.jsx(Se,{className:"muted",children:a("cart.signInHint")}),_?e.jsx(Se,{className:"muted",children:a("cart.priceChanged")}):null,et?e.jsx(Se,{className:"muted",children:et}):null,e.jsx(hi,{message:ia})]})]})]})]}),lt===null&&e.jsx(Dt,{"data-testid":"cart-personal-upsell",children:e.jsx(Qa,{exclude:ct,title:a("cart.suggestedTitle"),surface:"cart",first:Vt})}),lt!==null&&ot.length>0?e.jsx(Dt,{children:e.jsx(as,{title:a("cart.youMightAlsoLike"),items:ot})}):null,pe&&n?e.jsx(ss,{auth:pe.auth,signer:n.signer,step:{index:pe.index,total:pe.total},title:a("authorizeStep.manaTitle"),name:a("authorizeStep.manaName"),reason:a("authorizeStep.manaReason"),icon:e.jsx("img",{src:Ae,width:24,height:24,alt:"","aria-hidden":!0}),onAuthorized:()=>{const{run:t}=pe;ve(null),t()},onCancel:()=>ve(null),onClose:()=>ve(null)}):null,h?e.jsx(Cn,{phase:h.phase,balanceCredits:be,heldCreditsCount:((Mt=j==null?void 0:j.held)==null?void 0:Mt.credits)??null,onClose:ba,stage:h.phase==="processing"?h.stage:void 0,step:h.phase==="processing"?h.step:void 0,total:h.phase==="processing"?h.total:void 0,isSelfCustody:Ua(n==null?void 0:n.providerType),signatures:h.phase==="processing"?h.signatures:void 0,options:h.phase==="choose"?Fe(h).options:void 0,shortfall:h.phase==="choose"?Fe(h).manaShortfall:void 0,onPay:wa,totalCents:h.phase==="choose"?h.totalCents:void 0,totalManaWei:h.phase==="choose"?h.manaWei:void 0,totalCredits:h.phase==="choose"?Xe(h.lines):void 0,lines:h.phase==="nofunds"?h.lines:void 0,shortfallCredits:h.phase==="nofunds"?h.shortfall:void 0,packs:xe,selectedPack:ze,onSelectPack:at,onBuyPacks:()=>void Ca(),message:h.phase==="error"?h.message:void 0,heldCredits:h.phase==="error"&&!!h.heldCredits,onRetry:()=>void Z()}):null]})}export{Ei as Cart};
748
+ //# sourceMappingURL=Cart-BTFM7sgI.js.map
@@ -1,4 +1,4 @@
1
- import{j as e,r as h,e as oe,b as se}from"./react-Dombkhv6.js";import{a as b,s as m,d as re,I as ae,k as ie,t as r,ab as q,G as F,bP as ne,bQ as ce,c as le,cc as de,x as me,A as ue,aD as pe,a4 as fe,a6 as G,a7 as he,bR as xe,cd as be}from"./index-BQT03-OC.js";import{E as ge}from"./ErrorNotice-C59YzvXZ.js";import{d as ye,P as ve,C as je,a as E,b as we,S as Ce}from"./collectionPage.styles-T8QJ2uHO.js";import{u as ke}from"./useStore-D4IZ0aSp.js";import{u as Se,S as W,R as $e,F as Ne,a as Ee}from"./Filters-ui-Axqrl.js";import{L as Ie}from"./LoadMore-5VaFL5J8.js";import{u as Fe}from"./useInfiniteGrid-sopvcWVc.js";import{u as Re,s as Me}from"./search-empty-CYHPyiwy.js";import{S as Te}from"./categories-rNs1-QVq.js";import{R as _e,S as Ae,a as Pe,D as De,b as Le,C as Be,c as ze,d as Oe,e as Ge,M as We}from"./browseLayout.styles-pvAICm0D.js";import{G as Ue}from"./grid.styles-Baa4eis9.js";import"./dcl-schemas-f-Kwmh24.js";import"./sentry-DgsMrt01.js";import"./ethers-QQ5HxdlK.js";import"./intl-AKLEHPeO.js";import"./crumbs.styles-CGLucAba.js";import"./Tooltip-D09N6_a1.js";import"./skeleton.styles-CdhhJKly.js";(function(){try{var s=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},o=new s.Error().stack;o&&(s._sentryDebugIds=s._sentryDebugIds||{},s._sentryDebugIds[o]="9f3713fe-03cf-49d6-af45-69291dc46d9b",s._sentryDebugIdIdentifier="sentry-dbid-9f3713fe-03cf-49d6-af45-69291dc46d9b")}catch{}})();const qe=m.section`
1
+ import{j as e,r as h,e as oe,b as se}from"./react-DKpLHQl0.js";import{a as b,s as m,l as re,I as ae,k as ie,t as r,a2 as q,bL as F,bM as ne,bN as ce,c as le,cb as de,w as me,B as ue,at as pe,Y as fe,$ as W,a0 as he,bO as xe,cc as be}from"./index-BiR1vPRL.js";import{E as ge}from"./ErrorNotice-Dlh8ddHO.js";import{d as ye,P as ve,C as je,a as E,b as we,S as Ce}from"./collectionPage.styles-rZa1BWWK.js";import{u as ke}from"./useStore-tid_idJp.js";import{u as Se,S as G,R as $e,F as Ne,a as Ee}from"./Filters-BsZs-9_M.js";import{L as Ie}from"./LoadMore-BxuVAL5h.js";import{u as Fe}from"./useInfiniteGrid-BUDyyZZl.js";import{u as Me,s as Re}from"./search-empty-DcGDTM8L.js";import{S as Te}from"./categories-BCcLvB19.js";import{R as _e,S as Ae,a as Pe,D as De,b as Le,C as Be,c as Oe,d as ze,e as We,M as Ge}from"./browseLayout.styles-D0MZbKfc.js";import{G as Ue}from"./grid.styles-DGwAy7au.js";import"./dcl-schemas-CyEZVc6x.js";import"./sentry-WFsNKO98.js";import"./ethers-CQbljc2C.js";import"./intl-AKLEHPeO.js";import"./crumbs.styles-D969n73j.js";import"./Tooltip-BIdqgK8V.js";import"./skeleton.styles-C4BBCe2d.js";(function(){try{var s=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},o=new s.Error().stack;o&&(s._sentryDebugIds=s._sentryDebugIds||{},s._sentryDebugIds[o]="bc5403c7-a4b2-4f6e-8996-2845427894dc",s._sentryDebugIdIdentifier="sentry-dbid-bc5403c7-a4b2-4f6e-8996-2845427894dc")}catch{}})();const qe=m.section`
2
2
  position: relative;
3
3
  border-radius: ${b.radius.card};
4
4
  overflow: hidden;
@@ -42,7 +42,7 @@ import{j as e,r as h,e as oe,b as se}from"./react-Dombkhv6.js";import{a as b,s a
42
42
  padding: 24px 16px;
43
43
  font-size: 26px;
44
44
  }
45
- `;function Ze({name:s,creator:o}){const{data:i}=ke(o),c=(i==null?void 0:i.cover)||ye;return e.jsxs(qe,{"data-testid":"collection-hero","aria-label":s,children:[e.jsxs(He,{children:[e.jsx(Ke,{src:c,alt:"",loading:"eager"}),e.jsx(Qe,{"aria-hidden":!0})]}),e.jsx(Ve,{"data-testid":"collection-hero-title",children:s})]})}const Je=1500;function Xe(s){const[o,i]=h.useState(!1),c=h.useRef();h.useEffect(()=>()=>window.clearTimeout(c.current),[]);const a=h.useCallback(async u=>{try{await navigator.clipboard.writeText(u),i(!0),window.clearTimeout(c.current),c.current=window.setTimeout(()=>i(!1),Je)}catch(d){re(d,{flow:s})}},[s]);return{copied:o,copy:a}}const{colors:I,radius:Ye}=b,et=ie`
45
+ `;function Ye({name:s,creator:o}){const{data:i}=ke(o),c=(i==null?void 0:i.cover)||ye;return e.jsxs(qe,{"data-testid":"collection-hero","aria-label":s,children:[e.jsxs(He,{children:[e.jsx(Ke,{src:c,alt:"",loading:"eager"}),e.jsx(Qe,{"aria-hidden":!0})]}),e.jsx(Ve,{"data-testid":"collection-hero-title",children:s})]})}const Ze=1500;function Je(s){const[o,i]=h.useState(!1),c=h.useRef();h.useEffect(()=>()=>window.clearTimeout(c.current),[]);const a=h.useCallback(async u=>{try{await navigator.clipboard.writeText(u),i(!0),window.clearTimeout(c.current),c.current=window.setTimeout(()=>i(!1),Ze)}catch(d){re(d,{flow:s})}},[s]);return{copied:o,copy:a}}const{colors:I,radius:Xe}=b,et=ie`
46
46
  0% { transform: scale(0.6); opacity: 0; }
47
47
  60% { transform: scale(1.15); }
48
48
  100% { transform: scale(1); opacity: 1; }
@@ -52,7 +52,7 @@ import{j as e,r as h,e as oe,b as se}from"./react-Dombkhv6.js";import{a as b,s a
52
52
  gap: 8px;
53
53
  padding: 4px 8px;
54
54
  border: 0;
55
- border-radius: ${Ye.btn};
55
+ border-radius: ${Xe.btn};
56
56
  background: none;
57
57
  color: ${I.gray4};
58
58
  font: inherit;
@@ -77,7 +77,7 @@ import{j as e,r as h,e as oe,b as se}from"./react-Dombkhv6.js";import{a as b,s a
77
77
  @media (prefers-reduced-motion: reduce) {
78
78
  animation: none;
79
79
  }
80
- `;function st({value:s,children:o,label:i,flow:c="copy_to_clipboard",size:a=16,className:u,testId:d}){const{copied:n,copy:x}=Xe(c),f=n?r("common.copied"):i??r("common.copy");return e.jsxs(tt,{type:"button",onClick:()=>void x(s),title:f,"aria-label":f,"data-copied":n||void 0,className:u,"data-testid":d,children:[o,e.jsx(ot,{name:n?"check":"copy",size:a},n?"ok":"idle")]})}const{colors:j,radius:rt}=b,at=m.div`
80
+ `;function st({value:s,children:o,label:i,flow:c="copy_to_clipboard",size:a=16,className:u,testId:d}){const{copied:n,copy:x}=Je(c),f=n?r("common.copied"):i??r("common.copy");return e.jsxs(tt,{type:"button",onClick:()=>void x(s),title:f,"aria-label":f,"data-copied":n||void 0,className:u,"data-testid":d,children:[o,e.jsx(ot,{name:n?"check":"copy",size:a},n?"ok":"idle")]})}const{colors:j,radius:rt}=b,at=m.div`
81
81
  display: flex;
82
82
  flex-direction: column;
83
83
  align-items: center;
@@ -130,5 +130,5 @@ import{j as e,r as h,e as oe,b as se}from"./react-Dombkhv6.js";import{a as b,s a
130
130
  &:hover {
131
131
  background: ${j.blackBtn};
132
132
  }
133
- `;function ct({address:s}){var d,n;const{data:o}=q(s);if(!s)return null;const i=(o==null?void 0:o.name)||F(s),c=(n=(d=o==null?void 0:o.avatar)==null?void 0:d.snapshots)==null?void 0:n.face256,a=`${le.profileUrl}/${s}`,u=ne(ce({name:o==null?void 0:o.name,hasClaimedName:o==null?void 0:o.hasClaimedName,ethAddress:(o==null?void 0:o.ethAddress)??s}));return e.jsxs(at,{"data-testid":"creator-card",children:[c?e.jsx(U,{src:c,alt:"",loading:"eager",style:{backgroundColor:u}}):e.jsx(U,{as:"span","aria-hidden":!0,style:{backgroundColor:u}}),e.jsx(it,{title:i,children:i}),e.jsx(st,{value:s,label:r("collection.copyAddress"),flow:"copy_creator_address",testId:"creator-card-copy",children:e.jsx("span",{children:F(s)})}),e.jsx(nt,{"data-testid":"creator-card-view",href:a,target:"_blank",rel:"noopener noreferrer",children:r("collection.viewProfile")})]})}const lt=48,dt=["all","on_sale","not_for_sale"];function Ft(){var O;const{contractAddress:s}=oe(),o=se(),i=h.useMemo(()=>({category:"all",status:"all",subCategory:null,rarities:[],priceMin:"",priceMax:"",smart:!1,sort:"newest"}),[]),[c,a]=Re(i),{category:u,subCategory:d,rarities:n,priceMin:x,priceMax:f,smart:C,sort:R}=c,g=dt.includes(c.status)?c.status:"all",M=t=>a({status:t});Se(`${u}:${d??""}`);const[w,y]=h.useState(!1);h.useEffect(()=>{if(!w)return;const t=te=>{te.key==="Escape"&&y(!1)};document.addEventListener("keydown",t);const N=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.removeEventListener("keydown",t),document.body.style.overflow=N}},[w]);const T=x&&!Number.isNaN(Number(x))?Number(x):void 0,_=f&&!Number.isNaN(Number(f))?Number(f):void 0,H=d?Te[d]:void 0,K=(W.find(t=>t.key===R)??W[0]).server,A={contractAddress:s,category:u,rarities:n.length?n:void 0,wearableCategories:H,minPriceCredits:T,maxPriceCredits:_,isWearableSmart:C||void 0,isOnSale:g==="all"?void 0:g==="on_sale",sortBy:K},{items:Q,total:V,isLoading:k,error:P,hasNextPage:Z,isFetchingNextPage:D,isFetchNextPageError:J,fetchNextPage:X}=Fe(["collection-page",A],t=>xe({...A,first:lt,skip:t}),{enabled:!!s}),S=de(Q),{data:l}=me({queryKey:["collection-meta",s],queryFn:()=>be(s),enabled:!!s,staleTime:5*6e4}),L=(l==null?void 0:l.name)||r("collection.fallbackTitle");ue({title:l==null?void 0:l.name,description:l!=null&&l.name?r("seo.collection.description",{name:l.name}):void 0});const p=(l==null?void 0:l.creator)||((O=S[0])==null?void 0:O.creator),{data:$}=q(p),Y=($==null?void 0:$.name)||(p?F(p):"");function ee(t){a({category:t,subCategory:null})}function B(t){a({rarities:n.includes(t)?n.filter(N=>N!==t):[...n,t]})}function z(){a(i)}const v=[];(T!=null||_!=null)&&v.push({key:"price",label:r("filter.price"),onRemove:()=>{a({priceMin:"",priceMax:""})}});for(const t of $e)n.includes(t)&&v.push({key:`rarity-${t}`,label:pe(t),onRemove:()=>B(t)});return C&&v.push({key:"smart",label:r("filter.smart"),onRemove:()=>a({smart:!1})}),g!=="all"&&v.push({key:"status",label:g==="on_sale"?r("filter.onSale"):r("filter.notForSale"),onRemove:()=>M("all")}),e.jsxs(ve,{"data-testid":"collection-page",children:[e.jsxs(je,{"aria-label":r("collection.breadcrumbAria"),children:[e.jsx(E,{onClick:()=>o("/items"),children:r("collection.breadcrumb")}),p?e.jsxs(e.Fragment,{children:[e.jsx("span",{children:"/"}),e.jsx(E,{onClick:()=>o(`/items/creator/${p}`),children:Y}),e.jsx("span",{children:"/"}),e.jsx(E,{onClick:()=>o(`/items/creator/${p}?collections`),children:r("categories.collections")})]}):null,e.jsx("span",{children:"/"}),e.jsx(we,{children:L})]}),e.jsx(Ze,{name:L,creator:p}),e.jsxs(_e,{"data-testid":"browse",children:[w?e.jsx(Ae,{onClick:()=>y(!1),"aria-hidden":!0}):null,e.jsxs(Ce,{children:[e.jsx(ct,{address:p}),e.jsxs(Pe,{"data-open":w||void 0,"data-static":!0,"data-testid":"browse-sidebar",children:[e.jsxs(De,{children:[e.jsx(Le,{children:r("assets.filters")}),e.jsx(Be,{onClick:()=>y(!1),"aria-label":r("assets.closeFilters"),children:"✕"})]}),e.jsx(ze,{children:e.jsx(Ne,{category:u,subCategory:d,onCategory:ee,onSub:t=>a({subCategory:t}),priceMin:x,priceMax:f,onPriceMin:t=>a({priceMin:t}),onPriceMax:t=>a({priceMax:t}),rarities:n,onToggleRarity:B,status:g,onStatus:M,smart:C,onSmart:t=>a({smart:t}),hideNames:!0})}),e.jsx(Oe,{children:e.jsx(Ge,{type:"button",onClick:()=>y(!1),children:r("assets.showItems")})})]})]}),e.jsxs(We,{children:[e.jsx(Ee,{sort:R,onSort:t=>a({sort:t}),total:V,loading:k,onOpenFilters:()=>y(!0),chips:v,onClearChips:z}),P?e.jsx(ge,{message:r("collection.error")}):null,!k&&!P&&S.length===0?e.jsx(fe,{testId:"collection-empty",icon:Me,title:r("assets.empty.title"),body:r("collection.empty"),cta:{label:r("filterBar.clearAll"),onClick:z}}):e.jsxs(e.Fragment,{children:[e.jsx(Ue,{"data-testid":"grid",children:k?e.jsx(G,{count:15}):e.jsxs(e.Fragment,{children:[S.map(t=>e.jsx(he,{item:t},t.id)),D?e.jsx(G,{count:6}):null]})}),e.jsx(Ie,{hasNextPage:Z,isFetching:D,isError:J,onLoadMore:()=>void X()})]})]})]})]})}export{Ft as Collection,Ft as default};
134
- //# sourceMappingURL=Collection-CJcLl_NS.js.map
133
+ `;function ct({address:s}){var d,n;const{data:o}=q(s);if(!s)return null;const i=(o==null?void 0:o.name)||F(s),c=(n=(d=o==null?void 0:o.avatar)==null?void 0:d.snapshots)==null?void 0:n.face256,a=`${le.profileUrl}/${s}`,u=ne(ce({name:o==null?void 0:o.name,hasClaimedName:o==null?void 0:o.hasClaimedName,ethAddress:(o==null?void 0:o.ethAddress)??s}));return e.jsxs(at,{"data-testid":"creator-card",children:[c?e.jsx(U,{src:c,alt:"",loading:"eager",style:{backgroundColor:u}}):e.jsx(U,{as:"span","aria-hidden":!0,style:{backgroundColor:u}}),e.jsx(it,{title:i,children:i}),e.jsx(st,{value:s,label:r("collection.copyAddress"),flow:"copy_creator_address",testId:"creator-card-copy",children:e.jsx("span",{children:F(s)})}),e.jsx(nt,{"data-testid":"creator-card-view",href:a,target:"_blank",rel:"noopener noreferrer",children:r("collection.viewProfile")})]})}const lt=48,dt=["all","on_sale","not_for_sale"];function Ft(){var z;const{contractAddress:s}=oe(),o=se(),i=h.useMemo(()=>({category:"all",status:"all",subCategory:null,rarities:[],priceMin:"",priceMax:"",smart:!1,sort:"newest"}),[]),[c,a]=Me(i),{category:u,subCategory:d,rarities:n,priceMin:x,priceMax:f,smart:C,sort:M}=c,g=dt.includes(c.status)?c.status:"all",R=t=>a({status:t});Se(`${u}:${d??""}`);const[w,y]=h.useState(!1);h.useEffect(()=>{if(!w)return;const t=te=>{te.key==="Escape"&&y(!1)};document.addEventListener("keydown",t);const N=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.removeEventListener("keydown",t),document.body.style.overflow=N}},[w]);const T=x&&!Number.isNaN(Number(x))?Number(x):void 0,_=f&&!Number.isNaN(Number(f))?Number(f):void 0,H=d?Te[d]:void 0,K=(G.find(t=>t.key===M)??G[0]).server,A={contractAddress:s,category:u,rarities:n.length?n:void 0,wearableCategories:H,minPriceCredits:T,maxPriceCredits:_,isWearableSmart:C||void 0,isOnSale:g==="all"?void 0:g==="on_sale",sortBy:K},{items:Q,total:V,isLoading:k,error:P,hasNextPage:Y,isFetchingNextPage:D,isFetchNextPageError:Z,fetchNextPage:J}=Fe(["collection-page",A],t=>xe({...A,first:lt,skip:t}),{enabled:!!s}),S=de(Q),{data:l}=me({queryKey:["collection-meta",s],queryFn:()=>be(s),enabled:!!s,staleTime:5*6e4}),L=(l==null?void 0:l.name)||r("collection.fallbackTitle");ue({title:l==null?void 0:l.name,description:l!=null&&l.name?r("seo.collection.description",{name:l.name}):void 0});const p=(l==null?void 0:l.creator)||((z=S[0])==null?void 0:z.creator),{data:$}=q(p),X=($==null?void 0:$.name)||(p?F(p):"");function ee(t){a({category:t,subCategory:null})}function B(t){a({rarities:n.includes(t)?n.filter(N=>N!==t):[...n,t]})}function O(){a(i)}const v=[];(T!=null||_!=null)&&v.push({key:"price",label:r("filter.price"),onRemove:()=>{a({priceMin:"",priceMax:""})}});for(const t of $e)n.includes(t)&&v.push({key:`rarity-${t}`,label:pe(t),onRemove:()=>B(t)});return C&&v.push({key:"smart",label:r("filter.smart"),onRemove:()=>a({smart:!1})}),g!=="all"&&v.push({key:"status",label:g==="on_sale"?r("filter.onSale"):r("filter.notForSale"),onRemove:()=>R("all")}),e.jsxs(ve,{"data-testid":"collection-page",children:[e.jsxs(je,{"aria-label":r("collection.breadcrumbAria"),children:[e.jsx(E,{onClick:()=>o("/items"),children:r("collection.breadcrumb")}),p?e.jsxs(e.Fragment,{children:[e.jsx("span",{children:"/"}),e.jsx(E,{onClick:()=>o(`/items/creator/${p}`),children:X}),e.jsx("span",{children:"/"}),e.jsx(E,{onClick:()=>o(`/items/creator/${p}?collections`),children:r("categories.collections")})]}):null,e.jsx("span",{children:"/"}),e.jsx(we,{children:L})]}),e.jsx(Ye,{name:L,creator:p}),e.jsxs(_e,{"data-testid":"browse",children:[w?e.jsx(Ae,{onClick:()=>y(!1),"aria-hidden":!0}):null,e.jsxs(Ce,{children:[e.jsx(ct,{address:p}),e.jsxs(Pe,{"data-open":w||void 0,"data-static":!0,"data-testid":"browse-sidebar",children:[e.jsxs(De,{children:[e.jsx(Le,{children:r("assets.filters")}),e.jsx(Be,{onClick:()=>y(!1),"aria-label":r("assets.closeFilters"),children:"✕"})]}),e.jsx(Oe,{children:e.jsx(Ne,{category:u,subCategory:d,onCategory:ee,onSub:t=>a({subCategory:t}),priceMin:x,priceMax:f,onPriceMin:t=>a({priceMin:t}),onPriceMax:t=>a({priceMax:t}),rarities:n,onToggleRarity:B,status:g,onStatus:R,smart:C,onSmart:t=>a({smart:t}),hideNames:!0})}),e.jsx(ze,{children:e.jsx(We,{type:"button",onClick:()=>y(!1),children:r("assets.showItems")})})]})]}),e.jsxs(Ge,{children:[e.jsx(Ee,{sort:M,onSort:t=>a({sort:t}),total:V,loading:k,onOpenFilters:()=>y(!0),chips:v,onClearChips:O}),P?e.jsx(ge,{message:r("collection.error")}):null,!k&&!P&&S.length===0?e.jsx(fe,{testId:"collection-empty",icon:Re,title:r("assets.empty.title"),body:r("collection.empty"),cta:{label:r("filterBar.clearAll"),onClick:O}}):e.jsxs(e.Fragment,{children:[e.jsx(Ue,{"data-testid":"grid",children:k?e.jsx(W,{count:15}):e.jsxs(e.Fragment,{children:[S.map(t=>e.jsx(he,{item:t},t.id)),D?e.jsx(W,{count:6}):null]})}),e.jsx(Ie,{hasNextPage:Y,isFetching:D,isError:Z,onLoadMore:()=>void J()})]})]})]})]})}export{Ft as Collection,Ft as default};
134
+ //# sourceMappingURL=Collection-D7LTf_OS.js.map