@dcl/shop 1.13.1-35146304116.commit-0532a2b → 1.13.1-35194712201.commit-05f9320
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.
- package/_assets/Activity-B-Mt2tEv.js +400 -0
- package/_assets/{AnimatedBackground-CkSS8iDv.js → AnimatedBackground-BSM-rQuy.js} +2 -2
- package/_assets/{Assets-SQGh-_eg.js → Assets-BrcTOhgS.js} +84 -84
- package/_assets/{Authorizations-L1Pu4suv.js → Authorizations-DiumUN7R.js} +10 -10
- package/_assets/{Cart-CyKZk7CM.js → Cart-RtgqzQ97.js} +9 -9
- package/_assets/Collection-BgorKKBL.js +134 -0
- package/_assets/{CollectionCarousel-DM2JN-Og.js → CollectionCarousel-Dug2ZFsp.js} +46 -46
- package/_assets/Confetti-DfJxZdWq.js +18 -0
- package/_assets/{ConstantsUtil-CzAq2JlG.js → ConstantsUtil-B8YsR40N.js} +2 -2
- package/_assets/{ContentClient-CwohpHEJ.js → ContentClient-COddvv25.js} +2 -2
- package/_assets/{Creator-CXCzrdUF.js → Creator-DGqwvJJe.js} +46 -46
- package/_assets/{DeploymentBuilder-CXqgptK8.js → DeploymentBuilder-vOgmLXlt.js} +3 -3
- package/_assets/{EmotePlaybackBar-B-oE6PfU.js → EmotePlaybackBar-Cb8Zo33b.js} +4 -4
- package/_assets/{ErrorNotice-BjKorbeP.js → ErrorNotice-DEzVeIBz.js} +2 -2
- package/_assets/Event-D_gsuijt.js +72 -0
- package/_assets/{ExchangeController-Ca1vSNQH.js → ExchangeController-apmGlTU-.js} +2 -2
- package/_assets/{Faq-BVnO4obf.js → Faq-2-4mQUk8.js} +2 -2
- package/_assets/Filters-asMc51Jo.js +823 -0
- package/_assets/{GetCredits-uWqqViY_.js → GetCredits-sbU1UXiI.js} +13 -13
- package/_assets/{Grow-EG3kvKvE.js → Grow-Bb5f8LBx.js} +2 -2
- package/_assets/HelpersUtil-BeOGj8gw.js +63 -0
- package/_assets/{ItemDetail-D9wpx_7k.js → ItemDetail-DgUuh9k6.js} +10 -10
- package/_assets/LoadMore-DTTb4mbK.js +8 -0
- package/_assets/{ManaPricingBanner.styles-BQp5Kq1w.js → ManaPricingBanner.styles-DOeOR6RI.js} +3 -3
- package/_assets/MyAssets-DJecPMOx.js +410 -0
- package/_assets/{MyFavorites-CrlDOLqd.js → MyFavorites-DBRl-1OK.js} +6 -6
- package/_assets/MyStore-pebkCBnn.js +951 -0
- package/_assets/{NetworkUtil-D5060_28.js → NetworkUtil-ATaAR2NZ.js} +2 -2
- package/_assets/NotFound-BqJzwcd1.js +18 -0
- package/_assets/{NotificationsBell--z2laYR4.js → NotificationsBell-BgwACPrP.js} +13 -13
- package/_assets/{OutfitDetail-C45j_NQH.js → OutfitDetail-CGZfi7gQ.js} +3 -3
- package/_assets/OutfitPreview-Bjb68CHy.js +7 -0
- package/_assets/{OutfitStudio-BQAYSFVW.js → OutfitStudio-DTY9Yq8B.js} +11 -11
- package/_assets/{PhArrowCircleDown-Bmy0XPqd.js → PhArrowCircleDown-DxArxYac.js} +5 -5
- package/_assets/{PhArrowClockwise-Bklo7MBV.js → PhArrowClockwise-C8ljy1Rj.js} +4 -4
- package/_assets/{PhArrowDown-CBjJCstB.js → PhArrowDown-DsAplWwh.js} +3 -3
- package/_assets/{PhArrowLeft-BCeYPtMx.js → PhArrowLeft-EPz-xHmZ.js} +5 -5
- package/_assets/{PhArrowRight-Ch61WxZn.js → PhArrowRight-CVoNjAPb.js} +4 -4
- package/_assets/{PhArrowSquareOut-Bk5nSBoz.js → PhArrowSquareOut-DxPnhLyS.js} +5 -5
- package/_assets/{PhArrowUp-CzPwFe1F.js → PhArrowUp-CthNwEN1.js} +4 -4
- package/_assets/{PhArrowUpRight-DF87CEc7.js → PhArrowUpRight-yy2UirS7.js} +4 -4
- package/_assets/{PhArrowsClockwise-D5XWB216.js → PhArrowsClockwise-B-gjYmTc.js} +3 -3
- package/_assets/{PhArrowsDownUp-CVtoWYS-.js → PhArrowsDownUp-DPexCLiH.js} +5 -5
- package/_assets/{PhArrowsLeftRight-Cu83Wp7y.js → PhArrowsLeftRight-D93RFlb_.js} +4 -4
- package/_assets/{PhBank-BjB_uqsX.js → PhBank-BNhsgOpa.js} +3 -3
- package/_assets/PhBrowser-OVbcxsqN.js +15 -0
- package/_assets/PhCaretDown-niSUmOpX.js +15 -0
- package/_assets/{PhCaretLeft-DPSFahQA.js → PhCaretLeft-5pVZjDE4.js} +3 -3
- package/_assets/{PhCaretRight-EEBUAb9H.js → PhCaretRight-xH-dut9T.js} +4 -4
- package/_assets/{PhCaretUp-Bit2hvKo.js → PhCaretUp-BuqimB7k.js} +2 -2
- package/_assets/{PhCheck-BHmNQJ6P.js → PhCheck-bPp1bknl.js} +4 -4
- package/_assets/{PhCircleHalf-AD4oTWoj.js → PhCircleHalf-BCRFPlBh.js} +4 -4
- package/_assets/{PhClock-3t4anT3D.js → PhClock-Ay7dG8fF.js} +5 -5
- package/_assets/{PhCompass-DpvhkfDj.js → PhCompass-D6jeCOuB.js} +2 -2
- package/_assets/{PhCopy-We2XYWCm.js → PhCopy-Cd6cFQKK.js} +5 -5
- package/_assets/{PhCreditCard-BBnTMXbe.js → PhCreditCard-D0cyAH4H.js} +5 -5
- package/_assets/{PhCurrencyDollar-dPV4byY8.js → PhCurrencyDollar-DNCs7Hoi.js} +4 -4
- package/_assets/{PhDesktop-DVuLe5q1.js → PhDesktop-C7wK3N0C.js} +3 -3
- package/_assets/{PhDeviceMobile-D6knI_PD.js → PhDeviceMobile-nwo6W6cN.js} +2 -2
- package/_assets/{PhDotsThree-D_uTiViU.js → PhDotsThree-5DGmKrer.js} +4 -4
- package/_assets/{PhEnvelope-Bkk7fDMT.js → PhEnvelope-DkcDbzLk.js} +3 -3
- package/_assets/{PhFunnelSimple-BVx2yoJC.js → PhFunnelSimple-D1hBKn3q.js} +4 -4
- package/_assets/{PhGlobe-BUa1rAnN.js → PhGlobe-7ico55TC.js} +4 -4
- package/_assets/{PhIdentificationCard-D7mCEldI.js → PhIdentificationCard-PCjj06ca.js} +2 -2
- package/_assets/{PhImage-DN8upEaC.js → PhImage-WMMVogNo.js} +2 -2
- package/_assets/{PhInfo-BRv5JqkG.js → PhInfo-DxjcEgny.js} +4 -4
- package/_assets/{PhLightbulb-LZ8Bksrw.js → PhLightbulb-Cv6gGmyY.js} +4 -4
- package/_assets/{PhMagnifyingGlass-Nlml1ksU.js → PhMagnifyingGlass-CzkcQTYD.js} +2 -2
- package/_assets/{PhPaperPlaneRight-QfFyGr7O.js → PhPaperPlaneRight-DnxOP1pJ.js} +4 -4
- package/_assets/{PhPlus-C6YKBVJU.js → PhPlus-D2WgBmbh.js} +3 -3
- package/_assets/{PhPower-BtHcdIUq.js → PhPower-BKrhO8OD.js} +4 -4
- package/_assets/{PhPuzzlePiece-D5mYYrHE.js → PhPuzzlePiece-vk5GuUyi.js} +4 -4
- package/_assets/{PhQrCode-MfgEx90-.js → PhQrCode-YjDtep0a.js} +2 -2
- package/_assets/{PhQuestion-BHeGiiUF.js → PhQuestion-De671WWd.js} +3 -3
- package/_assets/{PhQuestionMark-DNtDU6-_.js → PhQuestionMark-BfmQ4AZR.js} +3 -3
- package/_assets/{PhSealCheck-CDWno5AE.js → PhSealCheck-DUSoEL5_.js} +4 -4
- package/_assets/{PhSignOut-BWUfOWAY.js → PhSignOut-BAV0bqRy.js} +3 -3
- package/_assets/{PhSpinner-Chbk-Rrh.js → PhSpinner-JXZ0tKR8.js} +2 -2
- package/_assets/{PhTrash-CknzCMhK.js → PhTrash-B-_1u-EW.js} +2 -2
- package/_assets/{PhUser-DBmpCM-x.js → PhUser-B7H8Kqoo.js} +3 -3
- package/_assets/{PhVault-B_-lceT6.js → PhVault-D49Kz876.js} +2 -2
- package/_assets/{PhWallet-DzHci4bI.js → PhWallet-DFLSB_Zp.js} +4 -4
- package/_assets/{PhWarning-DNajgYKH.js → PhWarning-oAag590N.js} +4 -4
- package/_assets/{PhWarningCircle-DaWHEJd0.js → PhWarningCircle-CcZqaDS-.js} +5 -5
- package/_assets/{PhX-o_0aqvnZ.js → PhX-ChlrdI3g.js} +5 -5
- package/_assets/{SaleCountdown-BF0I20W5.js → SaleCountdown-iwkA9AHh.js} +2 -2
- package/_assets/{Spinner-BA7Ut7Kf.js → Spinner-DQ-ajSFT.js} +4 -4
- package/_assets/StoreSettings-DDY-uZR4.js +181 -0
- package/_assets/{Success-NX2ENRib.js → Success-rkUKiaUm.js} +11 -11
- package/_assets/{SwapController-DEOB6qkC.js → SwapController-DLSmIHQd.js} +2 -2
- package/_assets/Tooltip-_dwToV-k.js +46 -0
- package/_assets/TradeService-BND_I-dh.js +2 -0
- package/_assets/{W3MFrameProviderSingleton-B6rhAVVy.js → W3MFrameProviderSingleton-BdE_hLwp.js} +4 -4
- package/_assets/{WebCryptoP256-BeNxJSfZ.js → WebCryptoP256-BYI2K2jk.js} +2 -2
- package/_assets/{add-DMqlCS_5.js → add-CTHe98e6.js} +2 -2
- package/_assets/{all-wallets-jltIqTjt.js → all-wallets-DhuabZhK.js} +2 -2
- package/_assets/{app-store-8U-XnKiq.js → app-store-B6taH2bQ.js} +3 -3
- package/_assets/{apple-DqtIUOT7.js → apple-Dg5wuMVl.js} +3 -3
- package/_assets/{arrow-bottom-PA3nOuzV.js → arrow-bottom-DGKCuT-u.js} +3 -3
- package/_assets/{arrow-bottom-circle-C-CSXtk9.js → arrow-bottom-circle-DizCI34l.js} +2 -2
- package/_assets/arrow-left-B5Shucf2.js +9 -0
- package/_assets/arrow-right-CS0VOWZq.js +9 -0
- package/_assets/{arrow-top-BAZtnW6A.js → arrow-top-9YDPz3-j.js} +3 -3
- package/_assets/{async-directive-C0XTxdV5.js → async-directive-BCdPKC92.js} +3 -3
- package/_assets/authorizations-DXeZuq2r.js +2 -0
- package/_assets/{bank-C-8Jh-Iw.js → bank-BsLbzuJN.js} +3 -3
- package/_assets/{basic-X15YC4vH.js → basic-D3b4MpI5.js} +2 -2
- package/_assets/{biconomy-CN8DzcqS.js → biconomy-DqeHBM8p.js} +2 -2
- package/_assets/browseLayout.styles-CMTVkSac.js +241 -0
- package/_assets/{browser-BXKNeaZx.js → browser-BGA0SS8o.js} +3 -3
- package/_assets/{browser-BLhgq6bj.js → browser-BQou63S2.js} +2 -2
- package/_assets/{browser-CE_WgHCW.js → browser-Zugje3ii.js} +2 -2
- package/_assets/{browser-ponyfill-rx4ABrHQ.js → browser-ponyfill-cF-lQSAL.js} +2 -2
- package/_assets/builder-CiAkCiQy.js +2 -0
- package/_assets/buy-CObI28Dp.js +2 -0
- package/_assets/buy-gasless-Co6zCsFc.js +2 -0
- package/_assets/{card-Uc0KebvL.js → card-DrayzgIc.js} +2 -2
- package/_assets/categories-4PQU8mVO.js +2 -0
- package/_assets/{ccip-WSZ1SOI1.js → ccip-na6WTHG3.js} +2 -2
- package/_assets/{ccip-CSmx0Ukl.js → ccip-pfF_WX-v.js} +2 -2
- package/_assets/{chains-CSz4uaiN.js → chains-zAaf3wnb.js} +2 -2
- package/_assets/{checkmark-7uWcPB0u.js → checkmark-CuwMFqmQ.js} +2 -2
- package/_assets/{checkmark-bold-BwTefyx7.js → checkmark-bold-BZ8hvIfL.js} +3 -3
- package/_assets/{chevron-bottom-CJ9Wl9Xm.js → chevron-bottom-BICEUkQ-.js} +3 -3
- package/_assets/chevron-left-Dj_IHYPd.js +9 -0
- package/_assets/{chevron-right-DeNTJHBI.js → chevron-right-DfmPfPeR.js} +3 -3
- package/_assets/chevron-top-ChQ_XprN.js +9 -0
- package/_assets/{chrome-store-DUbm69Gl.js → chrome-store-yR8DW2WG.js} +3 -3
- package/_assets/{class-map-C7I-HYAi.js → class-map-BdERzGec.js} +6 -6
- package/_assets/{clock-CMav6VuQ.js → clock-DSdZt3kx.js} +2 -2
- package/_assets/{close-Byftwzmc.js → close-Du9ogfts.js} +2 -2
- package/_assets/{coinPlaceholder-C0F4r6oU.js → coinPlaceholder-DZE_o-zF.js} +3 -3
- package/_assets/collectionPage.styles-B8uBsvCw.js +41 -0
- package/_assets/common-BuNcNp6c.js +2 -0
- package/_assets/{compass-CPDOuTyF.js → compass-D4tC5ehy.js} +3 -3
- package/_assets/{controller-BZ74u9Mx.js → controller-DRmOjVPs.js} +3 -3
- package/_assets/{copy-CjXNbdx3.js → copy-DYrxzMu3.js} +2 -2
- package/_assets/{core-DArcUITf.js → core-CVUJfw_Y.js} +5 -5
- package/_assets/{createSvgIcon-D90PXHtL.js → createSvgIcon-CsWJwavb.js} +4 -4
- package/_assets/crumbs.styles-Bm7X-KR2.js +10 -0
- package/_assets/{cursor-D-SkqFO5.js → cursor-CGNqBNs2.js} +2 -2
- package/_assets/{cursor-transparent-RE6Zec8w.js → cursor-transparent-Db9408Lh.js} +2 -2
- package/_assets/{custom-C1-1hU-n.js → custom-bDWIMqyA.js} +2 -2
- package/_assets/{data-capture-BlpHZAMp.js → data-capture-Qkd1fgBO.js} +2 -2
- package/_assets/{dcl-schemas-DwpPH57a.js → dcl-schemas-34_X2RYP.js} +2 -2
- package/_assets/decimals-7bz7Ql34.js +2 -0
- package/_assets/decimals-DZk5ecDd.js +2 -0
- package/_assets/{desktop-tp0dY4sR.js → desktop-8ERr7FQB.js} +3 -3
- package/_assets/detectExtension-ByuC0sy6.js +2 -0
- package/_assets/{disconnect-PN0ATTQe.js → disconnect-BaCM-42U.js} +3 -3
- package/_assets/{discord-ISYEjXZK.js → discord-DIiirh17.js} +3 -3
- package/_assets/{disposePreview-HoZr4ggw.js → disposePreview-CWhlcwyh.js} +2 -2
- package/_assets/{email-C0VnJMNG.js → email-BSG3I8Ho.js} +2 -2
- package/_assets/{embedded-wallet-Bi2n7sef.js → embedded-wallet-Bg0JQDEn.js} +2 -2
- package/_assets/{emotion-styled.browser.esm-DA7w4htd.js → emotion-styled.browser.esm-V5vltgKQ.js} +2 -2
- package/_assets/{engine-Bztsdwml.js → engine-d31zGGE1.js} +2 -2
- package/_assets/errors-BL4Tfl40.js +2 -0
- package/_assets/estimate-l1-fee-DS9bgkZi.js +2 -0
- package/_assets/eth_estimateGas-BhK5cxdD.js +2 -0
- package/_assets/eth_getStorageAt-ve_4JkGS.js +2 -0
- package/_assets/eth_getTransactionCount-BHKJGFPa.js +2 -0
- package/_assets/ethereum-BSsUyfqe.js +2 -0
- package/_assets/{ethers-1M1CfdDX.js → ethers-Ct62Fyk8.js} +2 -2
- package/_assets/{etherscan-CjB1AtvG.js → etherscan-Bfm2dZO9.js} +3 -3
- package/_assets/{events-ChynmAya.js → events-BqEYZqIU.js} +2 -2
- package/_assets/{exclamation-triangle-Vw_jmJIs.js → exclamation-triangle-rcl1W2-L.js} +3 -3
- package/_assets/{execute-CMhgmHrV.js → execute-BGNHV8Cc.js} +3 -3
- package/_assets/{extension-p5vqJTq0.js → extension-CfQ82K2-.js} +3 -3
- package/_assets/{external-link-6l8BDrnZ.js → external-link-V3py9Mkm.js} +3 -3
- package/_assets/extractIPFS-CVZ-_APG.js +2 -0
- package/_assets/{facebook-BdpnpvkK.js → facebook-DrblV0Ry.js} +3 -3
- package/_assets/{farcaster-DyedtTLV.js → farcaster-BYLQu4i6.js} +3 -3
- package/_assets/{features-BOeSwrw7.js → features-qWWBdOoH.js} +2 -2
- package/_assets/fetchTokenMetadata-ickp_G1g.js +3 -0
- package/_assets/{field.styles-CjXfWCnd.js → field.styles-COIVC9qb.js} +4 -4
- package/_assets/{filters-CMt2xly-.js → filters-C4hZu2nU.js} +2 -2
- package/_assets/{fortmatic-q9_51_t1.js → fortmatic-DrEedztj.js} +2 -2
- package/_assets/{get-bytecode-C9C09tyO.js → get-bytecode-CPnWJRPF.js} +2 -2
- package/_assets/get-ecosystem-wallet-info-C6-YWBcs.js +2 -0
- package/_assets/{getBalance-B3PyAxk9.js → getBalance-B92Hmjpz.js} +3 -3
- package/_assets/getInstalledModules-CrI71lAc.js +2 -0
- package/_assets/getNFT-CxEMPeu7.js +2 -0
- package/_assets/getNFT-emtbiIjw.js +3 -0
- package/_assets/{github-DpuVIU6C.js → github-etC7Hd9s.js} +3 -3
- package/_assets/{google-BwS7c7G5.js → google-CZBxFGk_.js} +3 -3
- package/_assets/grid.styles-U3UceW9u.js +15 -0
- package/_assets/{hashTypedData-CwOONztK.js → hashTypedData-Cg6BeK80.js} +2 -2
- package/_assets/{hashTypedData-CHOe753o.js → hashTypedData-DRuJ1giR.js} +2 -2
- package/_assets/{help-circle-D4e71YxP.js → help-circle-BUZl81PK.js} +3 -3
- package/_assets/{id-CkCU8Jqk.js → id-C1QikfkN.js} +3 -3
- package/_assets/{image-BgNr9PHW.js → image-KyF9J1CW.js} +2 -2
- package/_assets/import-Hc4R5Ryp.js +2 -0
- package/_assets/{in-app-CxjWjLLj.js → in-app-CWCbxLgt.js} +2 -2
- package/_assets/{in-app-wallet-calls-BmK7j5xu.js → in-app-wallet-calls-BzlIhkH2.js} +2 -2
- package/_assets/index-0CPUejjp.js +2 -0
- package/_assets/{index-BvktIHhu.js → index-3dvDIWlC.js} +3 -3
- package/_assets/{index-Dx5GsTV9.js → index-5mfZ3Fze.js} +3 -3
- package/_assets/{index-DMqzgHxy.js → index-6Ha0pJEF.js} +2 -2
- package/_assets/{index-CyRKYgX3.js → index-B0DPOyda.js} +4 -4
- package/_assets/{index-mp-W7rgu.js → index-B0gnOJQt.js} +2 -2
- package/_assets/{index-BmCV7OM0.js → index-B5oVgmyb.js} +2 -2
- package/_assets/{index-Dwa5YPI2.js → index-B9A-Q0NX.js} +9 -9
- package/_assets/{index-Lm6gRDgk.js → index-BLNvEm1N.js} +2 -2
- package/_assets/{index-qIZigzaT.js → index-BNkdBuMd.js} +2 -2
- package/_assets/{index-BX1TYBrh.js → index-BNqesZWa.js} +2 -2
- package/_assets/{index-DQb-ID00.js → index-BTZS0lrm.js} +2 -2
- package/_assets/{index-Drj3_D29.css → index-BVRAr28k.css} +1 -1
- package/_assets/{index-CnEhIH6s.js → index-BaJLFdT4.js} +2 -2
- package/_assets/{index-sAHSTD-e.js → index-BaWcmVtB.js} +2 -2
- package/_assets/{index-BG18kxxr.js → index-Bc_t-wzk.js} +5 -5
- package/_assets/{index-2O4398aF.js → index-BmBO7GX2.js} +2 -2
- package/_assets/{index-DArg0qfu.js → index-BqBq0S7E.js} +5 -5
- package/_assets/{index-Dp05ebh4.js → index-BsifIgYy.js} +2 -2
- package/_assets/index-Byj8sJaC.js +4365 -0
- package/_assets/{index-D5ygN-7N.js → index-C05MHDtw.js} +3 -3
- package/_assets/{index-C17qo1Vn.js → index-C0HAuwUJ.js} +2 -2
- package/_assets/{index-DB-g40Lk.js → index-CI2YLehB.js} +2 -2
- package/_assets/{index-Ei6ZjPB-.js → index-CNZvDYP7.js} +7 -7
- package/_assets/index-CODUbTf0.js +28 -0
- package/_assets/{index-Dy1jWaGR.js → index-CO_ku6w6.js} +2 -2
- package/_assets/{index-Dzt-Eb9V.js → index-CY8qzVhs.js} +2 -2
- package/_assets/{index-lzsOd2r-.js → index-CaJLGHyG.js} +2 -2
- package/_assets/{index-BmpyzmIh.js → index-CabfmTFB.js} +5 -5
- package/_assets/{index-Du3ibQ0n.js → index-CaqZWirn.js} +2 -2
- package/_assets/{index-DIYaVDaM.js → index-Ci504iot.js} +5 -5
- package/_assets/{index-BdcOwi8k.js → index-Cj1ShJ5L.js} +2 -2
- package/_assets/{index-BwmG-IHr.js → index-ClA_JlL_.js} +4 -4
- package/_assets/{index-CArhbxfh.js → index-D0Q3EUNk.js} +9 -9
- package/_assets/{index-DcFBuCAU.js → index-D14eD816.js} +2 -2
- package/_assets/{index-Wiz3KnKQ.js → index-DMldI53i.js} +2 -2
- package/_assets/{index-D4mLzE5t.js → index-DOsyBIqR.js} +2 -2
- package/_assets/{index-MW2iAiMi.js → index-DTGTeSOj.js} +4 -4
- package/_assets/{index-B4MGZXnJ.js → index-DVCDQ-fR.js} +3 -3
- package/_assets/{index-B4g6oTgw.js → index-DZIgUEcA.js} +4 -4
- package/_assets/{index-DuT7MyhP.js → index-Dka_uyBk.js} +6 -6
- package/_assets/{index-DSo-HA-Q.js → index-DsMHjUaj.js} +3 -3
- package/_assets/{index-DSUMm5bM.js → index-Dv8DWtFU.js} +3 -3
- package/_assets/{index-BBshwWxl.js → index-Dvv_Jvnl.js} +2 -2
- package/_assets/{index-AKVaFU6R.js → index-DzZ30Ljj.js} +4 -4
- package/_assets/{index-CtQRm-uR.js → index-H3zs9ERv.js} +4 -4
- package/_assets/{index-CNCV5gb2.js → index-K99k4MON.js} +2 -2
- package/_assets/index-MWF8P2GS.js +2 -0
- package/_assets/{index-8pBNkHhZ.js → index-NnmTlrh0.js} +2 -2
- package/_assets/{index-p-Gdk04N.js → index-QOjSoq2E.js} +2 -2
- package/_assets/{index-BWmCSXNe.js → index-T7FwoX_w.js} +2 -2
- package/_assets/{index-CaMOVOnV.js → index-Wh3ETOEk.js} +2 -2
- package/_assets/{index-DwPwW3EN.js → index-ZeDXj9_g.js} +3 -3
- package/_assets/{index-BRPC-KxV.js → index-aAxfC1Mc.js} +2 -2
- package/_assets/{index-CkhwV11V.js → index-aXm0wT41.js} +4 -4
- package/_assets/{index-o4QA-YgI.js → index-bj4FPf5y.js} +4 -4
- package/_assets/{index-Bbna9UA6.js → index-gVE-68Nz.js} +2 -2
- package/_assets/{index-CI-biK0J.js → index-hRJEa9xi.js} +7 -7
- package/_assets/{index-DPzFuzjH.js → index-huEPdMw-.js} +19 -19
- package/_assets/{index-ZDi0sa76.js → index-k3k-FuJ3.js} +2 -2
- package/_assets/{index-CjJbgwsG.js → index-kO5pm1xD.js} +2 -2
- package/_assets/{index-Nl1WGeRF.js → index-lGz6yD_Q.js} +4 -4
- package/_assets/{index-mA2FGc2n.js → index-mbflmWQy.js} +2 -2
- package/_assets/{index-BxDOHc7K.js → index-rFi1xyhv.js} +4 -4
- package/_assets/{index-CzFmHLD1.js → index-tEBub_R_.js} +8 -8
- package/_assets/{index-Cxm44GCk.js → index-uOymqHkg.js} +2 -2
- package/_assets/{index-DT0ol44j.js → index-vJrAsAuU.js} +2 -2
- package/_assets/{index-D4G9X1ch.js → index-x0N1rOrh.js} +5 -5
- package/_assets/{index.es-D1GXqsQd.js → index.es-CM3Vugdp.js} +5 -5
- package/_assets/{index.es-Bu43E8Od.js → index.es-CNlrrSdg.js} +2 -2
- package/_assets/{index.es-BojIKfcn.js → index.es-ChedPBXZ.js} +2 -2
- package/_assets/{index.es-RB1w60M4.js → index.es-DS4xd0ll.js} +2 -2
- package/_assets/{info-CULnZZaj.js → info-DaeURCNf.js} +2 -2
- package/_assets/{info-circle-lLJ-CNp2.js → info-circle-mEb0pRoV.js} +3 -3
- package/_assets/{items-empty-DLLWCTVk.js → items-empty-BZXPqV6F.js} +2 -2
- package/_assets/jsxRuntime.module-6wpz9UoU.js +2 -0
- package/_assets/{jump-BPwh2vZy.js → jump-DvMtmWZc.js} +2 -2
- package/_assets/{lightbulb-4T7s9a-o.js → lightbulb-SUie1snx.js} +3 -3
- package/_assets/{linkAccount-D8t0rhjQ.js → linkAccount-CPJoMsx8.js} +2 -2
- package/_assets/{localBatchGatewayRequest-DwX7OXdU.js → localBatchGatewayRequest-C00xMMYf.js} +2 -2
- package/_assets/{mail-DhJDk7cH.js → mail-BMQ_Tcbe.js} +3 -3
- package/_assets/{mobile-CydJ5WdV.js → mobile-DWNrp5xU.js} +2 -2
- package/_assets/{modal.styles-XB3kPZSk.js → modal.styles-nlrFOiDq.js} +2 -2
- package/_assets/{more-Dg2B8rio.js → more-BJafKVQX.js} +3 -3
- package/_assets/{native-CVoJihlN.js → native-DcBqIlIy.js} +2 -2
- package/_assets/{network-placeholder-h8TrKQkX.js → network-placeholder-BNTWT8_K.js} +2 -2
- package/_assets/{networks-k-5FUkuC.js → networks-BO-namHq.js} +2 -2
- package/_assets/{nftPlaceholder-B4g7qDN6.js → nftPlaceholder-BvQ5YwOQ.js} +3 -3
- package/_assets/{off-UwuZMWU-.js → off-DwIf2gSg.js} +3 -3
- package/_assets/{onramp-BlfVZmFE.js → onramp-ByN4Yn6P.js} +2 -2
- package/_assets/openzeppelin-BvmPr8Pk.js +2 -0
- package/_assets/ownerOf-CzWGfNyJ.js +2 -0
- package/_assets/parseNft-BxVTVB-o.js +3 -0
- package/_assets/{parseSignature-UG1Z-iRF.js → parseSignature--mArklDU.js} +4 -4
- package/_assets/{parseSignature-C8wluzrl.js → parseSignature-Pu3o2H3q.js} +2 -2
- package/_assets/{passkeys-BgD3qEUS.js → passkeys-BN_1kXFk.js} +2 -2
- package/_assets/{pay-with-exchange-Dul7TqcO.js → pay-with-exchange-DTIh5LZd.js} +2 -2
- package/_assets/{play-store-B1ADa5-a.js → play-store-CA36CBrS.js} +2 -2
- package/_assets/{plus-CkIDGwOx.js → plus-Cns28nqN.js} +2 -2
- package/_assets/{prepare-contract-call-BDx98mcK.js → prepare-contract-call-CLocDjhf.js} +2 -2
- package/_assets/{qr-code-DInpw8H9.js → qr-code-Q_tmm4VY.js} +3 -3
- package/_assets/{qr-overlay-CzJOf0PR.js → qr-overlay-BaUFm3dQ.js} +4 -4
- package/_assets/{react-VV7ruaEe.js → react-BtO5oQjI.js} +3 -3
- package/_assets/{receive-Mbh48-Du.js → receive-JSD8YF28.js} +2 -2
- package/_assets/{recycle-horizontal-frlUVLoe.js → recycle-horizontal-DjogUTaH.js} +3 -3
- package/_assets/{ref-BDtPbYkK.js → ref-PrJHD-ud.js} +3 -3
- package/_assets/{refresh-BJgYdDWe.js → refresh-BoBh2MVk.js} +3 -3
- package/_assets/{reown-logo-CptpO-OK.js → reown-logo-CT7u8xi3.js} +2 -2
- package/_assets/{resolveImplementation-C-Bp0jW1.js → resolveImplementation-l7XGcgtp.js} +2 -2
- package/_assets/{resume-buy-lwwrCAQL.js → resume-buy-DxyNwJhE.js} +2 -2
- package/_assets/{rpc-dS3qUOUv.js → rpc-Jb1c4LKC.js} +4 -4
- package/_assets/{sales-empty-CdZ6YLiR.js → sales-empty-BhGKWMD_.js} +2 -2
- package/_assets/{search-CovtTjFk.js → search-971TVQY2.js} +2 -2
- package/_assets/{search-empty-Xv_q1rjS.js → search-empty-4OjRNb5h.js} +2 -2
- package/_assets/{secp256k1-B29fjO3k.js → secp256k1-Bc1Gm9ho.js} +2 -2
- package/_assets/{secp256k1-BYEzJ9Ar.js → secp256k1-CCMWfPTN.js} +2 -2
- package/_assets/{secp256k1-CzYB4UO1.js → secp256k1-DxGkPQQz.js} +2 -2
- package/_assets/{send-BqmhOSPb.js → send-BJky82OD.js} +2 -2
- package/_assets/send-batch-transaction-cv8yvO56.js +2 -0
- package/_assets/{send-eip712-transaction-B8xB6E7z.js → send-eip712-transaction-UNtxeOgd.js} +3 -3
- package/_assets/{send-Kib-9VTx.js → send-euZobdzg.js} +12 -12
- package/_assets/send-gasless-transaction-Cxtlnrp3.js +3 -0
- package/_assets/send-transaction-CzkQtVDH.js +3 -0
- package/_assets/{sendMetaTransaction-ZH8zQFka.js → sendMetaTransaction-DWzFLF23.js} +2 -2
- package/_assets/{sendRawTransaction-Dj_4qH3D.js → sendRawTransaction-0wdRFkHO.js} +4 -4
- package/_assets/{sentry-o0F_Elyr.js → sentry-Dt8gif7Q.js} +3 -3
- package/_assets/{serializeTransaction-Ci108h6S.js → serializeTransaction-CBo_e6mk.js} +2 -2
- package/_assets/{session-proposal-DoiJdtGZ.js → session-proposal-DDig8YSC.js} +2 -2
- package/_assets/session-request-B-Xk7VIe.js +3 -0
- package/_assets/{sha256-DKc8_pkb.js → sha256-DWxIHqyG.js} +2 -2
- package/_assets/sha3-lV5zj8bM.js +2 -0
- package/_assets/signin-empty-Wy1cW1R2.js +2 -0
- package/_assets/{signing-B2ulpOrN.js → signing-DxIH0566.js} +4 -4
- package/_assets/{skeleton.styles-V94rqky6.js → skeleton.styles-DizobWQq.js} +2 -2
- package/_assets/{socials-Oa6dTfHZ.js → socials-Bkd_QOdN.js} +2 -2
- package/_assets/{styled-DyNfGwco.js → styled-Cn0Y2UPg.js} +3 -3
- package/_assets/{swapHorizontal-BzkqO77h.js → swapHorizontal-BROJkMe6.js} +3 -3
- package/_assets/{swapHorizontalBold-Ci7CW-Ps.js → swapHorizontalBold-DGj8RzHp.js} +3 -3
- package/_assets/{swapHorizontalMedium-BIJFHqWY.js → swapHorizontalMedium-CTW2pJ0O.js} +3 -3
- package/_assets/{swapHorizontalRoundedBold-DgbOKQnq.js → swapHorizontalRoundedBold-BAWFLi4l.js} +2 -2
- package/_assets/{swapVertical-AbfbZRwH.js → swapVertical-D0KCL9o6.js} +2 -2
- package/_assets/{swaps-COfyeTsO.js → swaps-BpqpYMGa.js} +2 -2
- package/_assets/{telegram-D7G_eJ_b.js → telegram-BrWZtQW9.js} +3 -3
- package/_assets/{thirdweb-DI7ZaNzU.js → thirdweb-DLNrdpsF.js} +4 -4
- package/_assets/{three-dots-OoMaedcW.js → three-dots-BqbdzVIX.js} +2 -2
- package/_assets/{to-serializable-transaction-By8QfhXP.js → to-serializable-transaction-SlKIT__b.js} +3 -3
- package/_assets/totalSupply-CbOcHvKe.js +2 -0
- package/_assets/trade-encoding-DZyyotej.js +2 -0
- package/_assets/{transaction-B1xgjYJ6.js → transaction-BzpE2zX5.js} +2 -2
- package/_assets/{transactionReceipt-D8BwP6qt.js → transactionReceipt-BvWQs4U3.js} +2 -2
- package/_assets/transactions-BJww61Yo.js +17 -0
- package/_assets/{twitch-XFZ_dW-0.js → twitch-CjF65t51.js} +2 -2
- package/_assets/{twitterIcon-DFIrOz7L.js → twitterIcon-BaOdDtc8.js} +3 -3
- package/_assets/useCreatorSales-D_FdWxx_.js +771 -0
- package/_assets/{useCreditPacks-DgnQhl__.js → useCreditPacks-B2tYXyLc.js} +2 -2
- package/_assets/useInfiniteGrid-Swmy428I.js +2 -0
- package/_assets/{useStore-BxEjYiKk.js → useStore-CLwTyv1h.js} +3 -3
- package/_assets/useTheme-CYWPHLdD.js +2 -0
- package/_assets/{utils-ClhrwhHu.js → utils-Vd_fqJto.js} +2 -2
- package/_assets/{verify-CtqWYnsr.js → verify-CzEN-nsy.js} +3 -3
- package/_assets/{verify-filled-db_bDI2X.js → verify-filled-TDYOeDJL.js} +3 -3
- package/_assets/{verifyHash-CUVRY0V6.js → verifyHash-CFErsw-g.js} +2 -2
- package/_assets/{w3m-modal-BGMNR53_.js → w3m-modal-BzGojTY4.js} +2 -2
- package/_assets/{w3m-modal-Cl3xsdnY.js → w3m-modal-CSFBTgD9.js} +2 -2
- package/_assets/wait-for-tx-receipt-D17iwFlM.js +2 -0
- package/_assets/{wallet-C7Nkm-1r.js → wallet-CUlGPHz3.js} +3 -3
- package/_assets/{wallet-placeholder-BAZfiJ4M.js → wallet-placeholder-CkipoQX-.js} +2 -2
- package/_assets/{walletconnect-jD4HJXgj.js → walletconnect-CJlDhwv0.js} +4 -4
- package/_assets/{wallets-B1ZJrwjj.js → wallets-BB57PVau.js} +6 -6
- package/_assets/{warning-circle-DG9C8ETA.js → warning-circle-B2n9VXBj.js} +2 -2
- package/_assets/{web-connector-Dq-fpFU2.js → web-connector-5Om2QJD_.js} +4 -4
- package/_assets/{writeContract-BvArkAMz.js → writeContract-j-xvrmim.js} +2 -2
- package/_assets/x-BK627-zl.js +13 -0
- package/_assets/{zora-sepolia-IkBJSEG_.js → zora-sepolia-DXOIcL_b.js} +2 -2
- package/_assets/{zoraTestnet-DP3dbXZ6.js → zoraTestnet-tsiD7efG.js} +2 -2
- package/index.html +11 -11
- package/package.json +2 -2
- package/_assets/Activity-CUoq5Ec_.js +0 -400
- package/_assets/Collection-DeDyoluW.js +0 -134
- package/_assets/Confetti-BLxVbH5o.js +0 -18
- package/_assets/Event-_99dGtyj.js +0 -2
- package/_assets/HelpersUtil-BAFzVkMb.js +0 -63
- package/_assets/LoadMore-DE7YSrmA.js +0 -8
- package/_assets/MyAssets-pm-zUWXo.js +0 -1142
- package/_assets/NotFound-DWWysD5r.js +0 -18
- package/_assets/OutfitPreview-DrOdc6y-.js +0 -7
- package/_assets/PhBrowser-CW3ZGiB7.js +0 -15
- package/_assets/PhCaretDown-PT_hkshh.js +0 -15
- package/_assets/StoreSettings-yx6fb2zF.js +0 -196
- package/_assets/TradeService-B3hWo7M3.js +0 -2
- package/_assets/arrow-left-Cddzsk1s.js +0 -9
- package/_assets/arrow-right-FkB0kPcW.js +0 -9
- package/_assets/authorizations-B83pvCo5.js +0 -2
- package/_assets/browseLayout.styles-BKjgHcP6.js +0 -1062
- package/_assets/builder-e1EitLO9.js +0 -2
- package/_assets/buy-D7nFmJT8.js +0 -2
- package/_assets/buy-gasless-DNEVxdLb.js +0 -2
- package/_assets/categories-CBw6i6jK.js +0 -46
- package/_assets/chevron-left-DKH1P9Pf.js +0 -9
- package/_assets/chevron-top-Dn0py8bk.js +0 -9
- package/_assets/collectionPage.styles-CGv38BAV.js +0 -41
- package/_assets/common-CsauCio8.js +0 -2
- package/_assets/crumbs.styles-B_xC21o-.js +0 -10
- package/_assets/decimals-DM3o8F2C.js +0 -2
- package/_assets/decimals-aCEDG5JH.js +0 -2
- package/_assets/detectExtension-0ov0Rrws.js +0 -2
- package/_assets/errors-CNu2839_.js +0 -2
- package/_assets/estimate-l1-fee-B-J8ubtj.js +0 -2
- package/_assets/eth_estimateGas-PqNhqizJ.js +0 -2
- package/_assets/eth_getStorageAt-OHBtIi6n.js +0 -2
- package/_assets/eth_getTransactionCount-3Fo1K1in.js +0 -2
- package/_assets/ethereum-DgDIagMf.js +0 -2
- package/_assets/extractIPFS-Dmk6yNJt.js +0 -2
- package/_assets/fetchTokenMetadata-B3gG8lNZ.js +0 -3
- package/_assets/get-ecosystem-wallet-info-Md6d1ElT.js +0 -2
- package/_assets/getInstalledModules-Cc3eGsGW.js +0 -2
- package/_assets/getNFT-08MzaPPL.js +0 -2
- package/_assets/getNFT-Ct0fZovm.js +0 -3
- package/_assets/grid.styles-DLJDk6Da.js +0 -15
- package/_assets/import-DTtBPLJq.js +0 -2
- package/_assets/index-Bldxc1rA.js +0 -2
- package/_assets/index-BlsDk8cY.js +0 -2
- package/_assets/index-C9YXrqLC.js +0 -28
- package/_assets/index-DBONtw7H.js +0 -4333
- package/_assets/jsxRuntime.module-gjtb1wYS.js +0 -2
- package/_assets/openzeppelin-CHH76T2R.js +0 -2
- package/_assets/ownerOf-BsF3HIfV.js +0 -2
- package/_assets/parseNft-fbo1tW69.js +0 -3
- package/_assets/send-batch-transaction-Bsec8aWl.js +0 -2
- package/_assets/send-gasless-transaction-DOAZoiru.js +0 -3
- package/_assets/send-transaction-C8HId9c-.js +0 -3
- package/_assets/session-request-D9ZfIWnv.js +0 -3
- package/_assets/sha3-Djo6RzzD.js +0 -2
- package/_assets/signin-empty-0RVG8Orx.js +0 -2
- package/_assets/totalSupply-BFOzDnZo.js +0 -2
- package/_assets/transactions-Bphi4uNv.js +0 -17
- package/_assets/useInfiniteGrid-CqEvXCvo.js +0 -2
- package/_assets/useTheme-BSSQBx8D.js +0 -2
- package/_assets/wait-for-tx-receipt-CL_z5VGg.js +0 -2
- package/_assets/x-B-2M90IQ.js +0 -13
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import{j as e,L as
|
|
1
|
+
import{j as e,L as P,r as B}from"./react-BtO5oQjI.js";import{a as o,s as n,B as K,k as F,A as H,t as i,y as Q,D as X,I as v,E as J,x as k,F as V,c as Z,G as U,H as T,d as Y,J as tt,K as D}from"./index-Byj8sJaC.js";import{c as et,d as it,e as C,a as ot,f as at,s as nt,g as st}from"./authorizations-DXeZuq2r.js";import{f as rt}from"./builder-CiAkCiQy.js";import{m as M}from"./mana-matic-CEqvSwrJ.js";import{f as ct}from"./errors-BL4Tfl40.js";import"./dcl-schemas-34_X2RYP.js";import"./sentry-Dt8gif7Q.js";import"./ethers-Ct62Fyk8.js";import"./intl-AKLEHPeO.js";import"./sendMetaTransaction-DWzFLF23.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},s=new t.Error().stack;s&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[s]="289ead3f-8517-4633-aa20-7ac81e512344",t._sentryDebugIdIdentifier="sentry-dbid-289ead3f-8517-4633-aa20-7ac81e512344")}catch{}})();const lt=F`
|
|
2
2
|
to { transform: rotate(360deg); }
|
|
3
|
-
`,dt=
|
|
3
|
+
`,dt=F`
|
|
4
4
|
to { background-position: -200% 0; }
|
|
5
5
|
`,ut=n.section`
|
|
6
6
|
width: 100%;
|
|
@@ -49,7 +49,7 @@ import{j as e,L as F,r as B}from"./react-VV7ruaEe.js";import{d as o,s as n,G as
|
|
|
49
49
|
grid-template-columns: 44px 1fr;
|
|
50
50
|
grid-row-gap: 10px;
|
|
51
51
|
}
|
|
52
|
-
`,
|
|
52
|
+
`,S=n.div`
|
|
53
53
|
height: 74px;
|
|
54
54
|
border-radius: 16px;
|
|
55
55
|
background: linear-gradient(100deg, var(--skeleton-lo) 30%, var(--skeleton-hi) 50%, var(--skeleton-lo) 70%);
|
|
@@ -59,7 +59,7 @@ import{j as e,L as F,r as B}from"./react-VV7ruaEe.js";import{d as o,s as n,G as
|
|
|
59
59
|
@media (prefers-reduced-motion: reduce) {
|
|
60
60
|
animation: none;
|
|
61
61
|
}
|
|
62
|
-
`,
|
|
62
|
+
`,L=n.img`
|
|
63
63
|
width: 22px !important;
|
|
64
64
|
height: 22px !important;
|
|
65
65
|
object-fit: contain;
|
|
@@ -162,7 +162,7 @@ import{j as e,L as F,r as B}from"./react-VV7ruaEe.js";import{d as o,s as n,G as
|
|
|
162
162
|
@media (prefers-reduced-motion: reduce) {
|
|
163
163
|
animation: none;
|
|
164
164
|
}
|
|
165
|
-
`,
|
|
165
|
+
`,_=n.p`
|
|
166
166
|
color: ${o.colors.gray4};
|
|
167
167
|
font-size: 14px;
|
|
168
168
|
margin: 0;
|
|
@@ -170,7 +170,7 @@ import{j as e,L as F,r as B}from"./react-VV7ruaEe.js";import{d as o,s as n,G as
|
|
|
170
170
|
color: ${o.colors.muted};
|
|
171
171
|
font-size: 14px;
|
|
172
172
|
margin: 0 0 12px;
|
|
173
|
-
`,
|
|
173
|
+
`,N=n.div`
|
|
174
174
|
display: flex;
|
|
175
175
|
flex-direction: column;
|
|
176
176
|
align-items: center;
|
|
@@ -183,10 +183,10 @@ import{j as e,L as F,r as B}from"./react-VV7ruaEe.js";import{d as o,s as n,G as
|
|
|
183
183
|
font-size: 22px;
|
|
184
184
|
font-weight: 700;
|
|
185
185
|
margin: 6px 0 0;
|
|
186
|
-
`,
|
|
186
|
+
`,W=n.p`
|
|
187
187
|
margin: 0;
|
|
188
188
|
color: ${o.colors.gray4};
|
|
189
|
-
`,
|
|
189
|
+
`,q=n(K)`
|
|
190
190
|
margin-top: 12px;
|
|
191
|
-
`;function y({descriptor:t,owner:s,signer:r,name:a,description:c,image:d,icon:g,revokeOnly:$=!1}){const m=V(),[z,j]=B.useState(!1),{data:u,isLoading:l,refetch:h}=k({queryKey:["authorization",t.id,s],queryFn:()=>st(t,s),staleTime:3e4});async function p(){if(z||l)return;const w=!u;j(!0);try{await nt({auth:t,signer:r,active:w}),await h(),m.setQueryData(["authorization",t.id,s],w),T.success(w?i("authorizations.toastActivated",{name:a}):i("authorizations.toastDeactivated",{name:a}))}catch(I){Y(I,{flow:"authorizations",step:w?"grant":"revoke"}),T.error(ct(I,i("authorizations.errorGeneric")))}finally{j(!1)}}if($&&u===!1)return null;const f=l?i("authorizations.checking"):u?i("authorizations.active"):i("authorizations.inactive");return e.jsxs(mt,{"data-testid":`authorization-${t.id}`,"data-active":!!u,children:[e.jsx(ft,{children:d?e.jsx("img",{src:d,alt:""}):g}),e.jsxs(xt,{children:[e.jsx(yt,{title:a,children:a}),e.jsx(bt,{children:c})]}),e.jsxs(jt,{children:[e.jsx(zt,{"data-active":!!u,children:f}),z?e.jsx(vt,{"aria-label":i("authorizations.working")}):e.jsx(wt,{type:"button","data-testid":`authorization-toggle-${t.id}`,"data-active":!!u,role:"switch","aria-checked":!!u,"aria-label":u?i("authorizations.deactivateAria",{name:a}):i("authorizations.activateAria",{name:a}),disabled:l,onClick:()=>void p()})]})]})}const b=500,G=10,$t=b*G;async function
|
|
192
|
-
//# sourceMappingURL=Authorizations-
|
|
191
|
+
`;function y({descriptor:t,owner:s,signer:r,name:a,description:c,image:d,icon:g,revokeOnly:$=!1}){const m=V(),[z,j]=B.useState(!1),{data:u,isLoading:l,refetch:h}=k({queryKey:["authorization",t.id,s],queryFn:()=>st(t,s),staleTime:3e4});async function p(){if(z||l)return;const w=!u;j(!0);try{await nt({auth:t,signer:r,active:w}),await h(),m.setQueryData(["authorization",t.id,s],w),T.success(w?i("authorizations.toastActivated",{name:a}):i("authorizations.toastDeactivated",{name:a}))}catch(I){Y(I,{flow:"authorizations",step:w?"grant":"revoke"}),T.error(ct(I,i("authorizations.errorGeneric")))}finally{j(!1)}}if($&&u===!1)return null;const f=l?i("authorizations.checking"):u?i("authorizations.active"):i("authorizations.inactive");return e.jsxs(mt,{"data-testid":`authorization-${t.id}`,"data-active":!!u,children:[e.jsx(ft,{children:d?e.jsx("img",{src:d,alt:""}):g}),e.jsxs(xt,{children:[e.jsx(yt,{title:a,children:a}),e.jsx(bt,{children:c})]}),e.jsxs(jt,{children:[e.jsx(zt,{"data-active":!!u,children:f}),z?e.jsx(vt,{"aria-label":i("authorizations.working")}):e.jsx(wt,{type:"button","data-testid":`authorization-toggle-${t.id}`,"data-active":!!u,role:"switch","aria-checked":!!u,"aria-label":u?i("authorizations.deactivateAria",{name:a}):i("authorizations.activateAria",{name:a}),disabled:l,onClick:()=>void p()})]})]})}const b=500,G=10,$t=b*G;async function O(t,s){const r=await D(t,{category:s,first:b}),a=Math.min(Math.ceil(r.total/b),G),c=await Promise.all(Array.from({length:Math.max(0,a-1)},(d,g)=>D(t,{category:s,first:b,skip:(g+1)*b})));return{assets:[...r.assets,...c.flatMap(d=>d.assets)],truncated:r.total>$t}}function Ct(t){return k({queryKey:["owned-collections",t],enabled:!!t,staleTime:6e4,queryFn:async()=>{const[s,r]=await Promise.all([O(t,"wearable"),O(t,"emote")]),a=new Map;for(const c of[...s.assets,...r.assets]){const d=c.contractAddress.toLowerCase();a.has(d)||a.set(d,c)}return{collections:[...a.values()],truncated:s.truncated||r.truncated,scanned:s.assets.length+r.assets.length}}})}function At(t){return k({queryKey:["contract-registry"],enabled:t,staleTime:1/0,gcTime:1/0,queryFn:tt})}function Et(t,s){const r=s==null?void 0:s.get(t.toLowerCase());if(r)return r;const a=U(t);return a===t?i("authorizations.collectionFallback"):a}function It(t,s){return k({queryKey:["creator-collections",t],enabled:!!t&&!!s,staleTime:6e4,queryFn:async()=>{const r=await rt(t,s),a=new Map;for(const c of r){const d=c.contractAddress.toLowerCase();a.has(d)||a.set(d,c)}return[...a.values()]}})}function Ft(){H({title:i("authorizations.title"),noindex:!0});const{session:t,signIn:s}=Q(),r=Z.chainId,a=X(t==null?void 0:t.providerType),{data:c,isLoading:d}=Ct(a?t==null?void 0:t.address:void 0),{data:g,isLoading:$}=At(!!a&&!!(t!=null&&t.address)),{data:m,isLoading:z}=It(a?t==null?void 0:t.address:void 0,a?t==null?void 0:t.identity:void 0);if(!t)return e.jsxs(N,{children:[e.jsx(v,{name:"info",size:40,color:o.colors.muted2}),e.jsx(R,{children:i("authorizations.signInTitle")}),e.jsx(W,{children:i("authorizations.signInBody")}),e.jsx(q,{variant:"white",onClick:()=>s(),children:i("storeSettings.signIn")})]});if(!a)return e.jsxs(N,{children:[e.jsx(v,{name:"check",size:40,color:o.colors.ok}),e.jsx(R,{children:i("authorizations.managedTitle")}),e.jsx(W,{children:i("authorizations.managedBody")}),e.jsx(q,{as:P,to:"/items",variant:"white",children:i("authorizations.managedCta")})]});const j=et(r),u=it(r);return e.jsxs(ut,{children:[e.jsxs(ht,{children:[e.jsx(pt,{children:i("authorizations.title")}),e.jsx(gt,{children:i("authorizations.intro")})]}),e.jsxs(A,{children:[e.jsx(E,{children:i("authorizations.buyingTitle")}),e.jsxs(x,{children:[e.jsx(y,{descriptor:j,owner:t.address,signer:t.signer,name:i("authorizations.creditsName"),description:i("authorizations.creditsDesc"),icon:e.jsx(J,{className:"ccy-mark"})}),e.jsx(y,{descriptor:u,owner:t.address,signer:t.signer,name:i("authorizations.manaName"),description:i("authorizations.manaDesc"),icon:e.jsx(L,{src:M,alt:"","aria-hidden":!0})}),C(u).map(l=>e.jsx(y,{descriptor:l,owner:t.address,signer:t.signer,name:`${i("authorizations.manaName")} ${i("authorizations.previousVersion")}`,description:i("authorizations.manaDesc"),icon:e.jsx(L,{src:M,alt:"","aria-hidden":!0}),revokeOnly:!0},l.id))]})]}),e.jsxs(A,{children:[e.jsx(E,{children:i("authorizations.sellingTitle")}),c!=null&&c.truncated?e.jsx(kt,{"data-testid":"authorizations-selling-truncated",children:i("authorizations.sellingTruncated",{count:c.scanned})}):null,d||$?e.jsx(x,{"aria-busy":"true","aria-label":i("authorizations.checking"),children:Array.from({length:3}).map((l,h)=>e.jsx(S,{"aria-hidden":!0},h))}):c&&c.collections.length>0?e.jsx(x,{children:c.collections.flatMap(l=>{const h=ot(l.contractAddress,r);return[h,...C(h)].map((p,f)=>e.jsx(y,{descriptor:p,owner:t.address,signer:t.signer,name:Et(l.contractAddress,g),description:i("authorizations.sellingDesc"),image:l.image,icon:e.jsx(v,{name:"pen",size:18}),revokeOnly:f>0},p.id))})}):e.jsx(_,{children:i("authorizations.sellingEmpty")})]}),e.jsxs(A,{children:[e.jsx(E,{children:i("authorizations.mintingTitle")}),z?e.jsx(x,{"aria-busy":"true","aria-label":i("authorizations.checking"),children:Array.from({length:3}).map((l,h)=>e.jsx(S,{"aria-hidden":!0},h))}):m&&m.length>0?e.jsx(x,{children:m.flatMap(l=>{const h=at(l.contractAddress,r);return[h,...C(h)].map((p,f)=>e.jsx(y,{descriptor:p,owner:t.address,signer:t.signer,name:l.name||i("authorizations.collectionFallback"),description:i("authorizations.mintingDesc"),icon:e.jsx(v,{name:"pen",size:18}),revokeOnly:f>0},p.id))})}):e.jsx(_,{children:i("authorizations.mintingEmpty")})]})]})}export{Ft as Authorizations};
|
|
192
|
+
//# sourceMappingURL=Authorizations-DiumUN7R.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as e,L as Yt,r as M,
|
|
1
|
+
import{j as e,L as Yt,r as M,b as ja,a as ka}from"./react-BtO5oQjI.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-Byj8sJaC.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-Dug2ZFsp.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-DXeZuq2r.js";import{p as Nt,g as Js,a as Ge}from"./buy-CObI28Dp.js";import{w as Xs,S as He,b as Zs,G as en}from"./buy-gasless-Co6zCsFc.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-B2tYXyLc.js";import{i as cn,a as ln}from"./errors-BL4Tfl40.js";import{E as dn}from"./ErrorNotice-DEzVeIBz.js";import"./dcl-schemas-34_X2RYP.js";import"./sentry-Dt8gif7Q.js";import"./ethers-Ct62Fyk8.js";import"./intl-AKLEHPeO.js";import"./trade-encoding-DZyyotej.js";import"./sendMetaTransaction-DWzFLF23.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`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
gap: 12px;
|
|
@@ -35,7 +35,7 @@ import{j as e,L as Yt,r as M,u as ja,b as ka}from"./react-VV7ruaEe.js";import{s
|
|
|
35
35
|
opacity: 0.6;
|
|
36
36
|
cursor: default;
|
|
37
37
|
}
|
|
38
|
-
`,
|
|
38
|
+
`,Qt=r.button`
|
|
39
39
|
${Jt}
|
|
40
40
|
background: ${z.gradients.buyBtn};
|
|
41
41
|
|
|
@@ -101,7 +101,7 @@ import{j as e,L as Yt,r as M,u as ja,b as ka}from"./react-VV7ruaEe.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(
|
|
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`
|
|
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,u as ja,b as ka}from"./react-VV7ruaEe.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}),
|
|
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`
|
|
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
|
|
@@ -461,11 +461,11 @@ import{j as e,L as Yt,r as M,u as ja,b as ka}from"./react-VV7ruaEe.js";import{s
|
|
|
461
461
|
line-clamp: 2;
|
|
462
462
|
-webkit-box-orient: vertical;
|
|
463
463
|
}
|
|
464
|
-
`,
|
|
464
|
+
`,Nn=r.div`
|
|
465
465
|
${ea};
|
|
466
|
-
`,
|
|
466
|
+
`,Kn=r(Yt)`
|
|
467
467
|
${ea};
|
|
468
|
-
`,
|
|
468
|
+
`,Qn=r(Ma)`
|
|
469
469
|
font-size: 10px;
|
|
470
470
|
line-height: 1.43;
|
|
471
471
|
color: ${l.muted};
|
|
@@ -744,5 +744,5 @@ import{j as e,L as Yt,r as M,u as ja,b as ka}from"./react-VV7ruaEe.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 Ai(){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,Kt);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(on));p.units.forEach((N,re)=>{u.push({salt:m.id,itemId:N.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 Ne(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 Q=Js(f).length,te=p=>Q>1?{current:p,total:Q}:void 0,W=(p,m)=>S({phase:"processing",stage:p,step:s.length,total:s.length,signatures:te(m)}),C=p=>p<Q?W("awaiting-signature",p+1):W("settling",Q);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,N)=>{const re=I.get(p[N])??[];b.status==="fulfilled"?(re.forEach(We=>T.add(We)),F.push(p[N])):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,Q)),onBroadcast:({txHash:b,salts:N})=>{p+=1,I.set(b,N),N.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(N=>T.add(N)),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:K,boughtItemIds:Q}=Qt({reservations:u,spent:P,settled:T}),te=[...P].some(x=>!T.has(x)),W=o.filter(x=>Q.includes(x.id)),C=o.filter(x=>!Q.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}),K.length)try{await Ne(n.identity,K)}catch(x){oe(x,{flow:"cart_checkout",step:"release"})}if(y.invalidateQueries({queryKey:["usd-balance"]}),W.length>0){Q.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 Ks({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=Qs(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,K=new Map;for(let C=0;C<c.length;C++){const x=c[C],I=w[C],ne=g[C],we=Ns(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:N}=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],N)}const p=Kt(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 I=K.get(C);I==null||x<=0n||(f[I]={...f[I],maxCreditedValue:(BigInt(f[I].maxCreditedValue)+x).toString()})}const Q=[...P.values()].reduce((C,x)=>C+x,0n);await ya(n.signer,Us(w[0]),Q);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}=Qt({reservations:T,spent:new Set([...L].filter(P=>!F.has(P))),settled:new Set});f.length&&Ne(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=Ka(t),F=!!L&&!!E[L],w=Qa(t),f=st[t.id],P=!At(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(_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(Qn,{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(Nn,{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}),K]}):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(Qe,{credits:T}),c?e.jsx(Vn,{children:e.jsx(Qe,{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(Qe,{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(Na,{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{Ai as Cart};
|
|
748
|
-
//# sourceMappingURL=Cart-
|
|
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-RtgqzQ97.js.map
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
import{j as e,r as h,e as oe,b as se}from"./react-BtO5oQjI.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-Byj8sJaC.js";import{E as ge}from"./ErrorNotice-DEzVeIBz.js";import{d as ye,P as ve,C as je,a as E,b as we,S as Ce}from"./collectionPage.styles-B8uBsvCw.js";import{u as ke}from"./useStore-CLwTyv1h.js";import{u as Se,S as W,R as $e,F as Ne,a as Ee}from"./Filters-asMc51Jo.js";import{L as Ie}from"./LoadMore-DTTb4mbK.js";import{u as Fe}from"./useInfiniteGrid-Swmy428I.js";import{u as Re,s as Me}from"./search-empty-4OjRNb5h.js";import{S as Te}from"./categories-4PQU8mVO.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-CMTVkSac.js";import{G as Ue}from"./grid.styles-U3UceW9u.js";import"./dcl-schemas-34_X2RYP.js";import"./sentry-Dt8gif7Q.js";import"./ethers-Ct62Fyk8.js";import"./intl-AKLEHPeO.js";import"./crumbs.styles-Bm7X-KR2.js";import"./Tooltip-_dwToV-k.js";import"./skeleton.styles-DizobWQq.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`
|
|
2
|
+
position: relative;
|
|
3
|
+
border-radius: ${b.radius.card};
|
|
4
|
+
overflow: hidden;
|
|
5
|
+
margin-bottom: 24px;
|
|
6
|
+
min-height: 200px;
|
|
7
|
+
display: flex;
|
|
8
|
+
align-items: center;
|
|
9
|
+
justify-content: center;
|
|
10
|
+
|
|
11
|
+
${b.media.maxWidth("mobile")} {
|
|
12
|
+
min-height: 140px;
|
|
13
|
+
}
|
|
14
|
+
`,He=m.div`
|
|
15
|
+
position: absolute;
|
|
16
|
+
inset: 0;
|
|
17
|
+
z-index: 0;
|
|
18
|
+
`,Ke=m.img`
|
|
19
|
+
width: 100%;
|
|
20
|
+
height: 100%;
|
|
21
|
+
object-fit: cover;
|
|
22
|
+
display: block;
|
|
23
|
+
`,Qe=m.div`
|
|
24
|
+
position: absolute;
|
|
25
|
+
inset: 0;
|
|
26
|
+
background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.55) 100%);
|
|
27
|
+
`,Ve=m.h1`
|
|
28
|
+
position: relative;
|
|
29
|
+
z-index: 1;
|
|
30
|
+
margin: 0;
|
|
31
|
+
padding: 32px 24px;
|
|
32
|
+
text-align: center;
|
|
33
|
+
color: ${b.colors.white};
|
|
34
|
+
font-size: 40px;
|
|
35
|
+
font-weight: 800;
|
|
36
|
+
line-height: 1.2;
|
|
37
|
+
letter-spacing: 0.02em;
|
|
38
|
+
text-transform: uppercase;
|
|
39
|
+
text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
|
|
40
|
+
|
|
41
|
+
${b.media.maxWidth("mobile")} {
|
|
42
|
+
padding: 24px 16px;
|
|
43
|
+
font-size: 26px;
|
|
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`
|
|
46
|
+
0% { transform: scale(0.6); opacity: 0; }
|
|
47
|
+
60% { transform: scale(1.15); }
|
|
48
|
+
100% { transform: scale(1); opacity: 1; }
|
|
49
|
+
`,tt=m.button`
|
|
50
|
+
display: inline-flex;
|
|
51
|
+
align-items: center;
|
|
52
|
+
gap: 8px;
|
|
53
|
+
padding: 4px 8px;
|
|
54
|
+
border: 0;
|
|
55
|
+
border-radius: ${Ye.btn};
|
|
56
|
+
background: none;
|
|
57
|
+
color: ${I.gray4};
|
|
58
|
+
font: inherit;
|
|
59
|
+
font-size: 14px;
|
|
60
|
+
cursor: pointer;
|
|
61
|
+
transition:
|
|
62
|
+
color 0.15s ease,
|
|
63
|
+
background 0.15s ease;
|
|
64
|
+
|
|
65
|
+
&:hover {
|
|
66
|
+
color: ${I.white};
|
|
67
|
+
background: rgba(255, 255, 255, 0.12);
|
|
68
|
+
}
|
|
69
|
+
&:focus-visible {
|
|
70
|
+
outline: 2px solid ${I.softWhite};
|
|
71
|
+
outline-offset: 2px;
|
|
72
|
+
}
|
|
73
|
+
`,ot=m(ae)`
|
|
74
|
+
flex: none;
|
|
75
|
+
animation: ${et} 0.22s ease-out;
|
|
76
|
+
|
|
77
|
+
@media (prefers-reduced-motion: reduce) {
|
|
78
|
+
animation: none;
|
|
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`
|
|
81
|
+
display: flex;
|
|
82
|
+
flex-direction: column;
|
|
83
|
+
align-items: center;
|
|
84
|
+
text-align: center;
|
|
85
|
+
gap: 12px;
|
|
86
|
+
padding-bottom: 24px;
|
|
87
|
+
/* Lift so the avatar half-overlaps the 24px-below cover hero (24px + half the 110px avatar). */
|
|
88
|
+
margin-top: -79px;
|
|
89
|
+
margin-bottom: 8px;
|
|
90
|
+
/* Matches the dividers between the filter sections below it (Filters.styles Divider). */
|
|
91
|
+
border-bottom: 1px solid rgba(255, 255, 255, 0.25);
|
|
92
|
+
`,U=m.img`
|
|
93
|
+
display: block;
|
|
94
|
+
width: 110px;
|
|
95
|
+
height: 110px;
|
|
96
|
+
border-radius: 50%;
|
|
97
|
+
object-fit: cover;
|
|
98
|
+
border: 5px solid ${j.white};
|
|
99
|
+
box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
|
|
100
|
+
background: #ff4bed;
|
|
101
|
+
`,it=m.h2`
|
|
102
|
+
margin: 0;
|
|
103
|
+
font-size: 20px;
|
|
104
|
+
font-weight: 700;
|
|
105
|
+
line-height: 1.3;
|
|
106
|
+
color: ${j.softWhite};
|
|
107
|
+
max-width: 100%;
|
|
108
|
+
overflow: hidden;
|
|
109
|
+
text-overflow: ellipsis;
|
|
110
|
+
white-space: nowrap;
|
|
111
|
+
`,nt=m.a`
|
|
112
|
+
display: inline-flex;
|
|
113
|
+
align-items: center;
|
|
114
|
+
justify-content: center;
|
|
115
|
+
width: 100%;
|
|
116
|
+
height: 44px;
|
|
117
|
+
padding: 0 20px;
|
|
118
|
+
border-radius: ${rt.btn};
|
|
119
|
+
background: ${j.overlay};
|
|
120
|
+
color: ${j.softWhite};
|
|
121
|
+
font-weight: 600;
|
|
122
|
+
font-size: 13px;
|
|
123
|
+
text-transform: uppercase;
|
|
124
|
+
letter-spacing: 0.046em;
|
|
125
|
+
text-decoration: none;
|
|
126
|
+
transition:
|
|
127
|
+
background 0.15s ease,
|
|
128
|
+
color 0.15s ease;
|
|
129
|
+
|
|
130
|
+
&:hover {
|
|
131
|
+
background: ${j.blackBtn};
|
|
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-BgorKKBL.js.map
|