@dcl/shop 1.13.1-35110739985.commit-7718205 → 1.13.1-35147466824.commit-691c71e
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_D0SGqX.js +400 -0
- package/_assets/{AnimatedBackground-CB4PvfXA.js → AnimatedBackground-CwQmxOFi.js} +2 -2
- package/_assets/{Assets-Ctos_NmX.js → Assets-VVrgUxpf.js} +14 -14
- package/_assets/{Authorizations-DyW6TgVG.js → Authorizations-Bepgew8q.js} +10 -10
- package/_assets/{Cart-KBBb4RPC.js → Cart-8uayDrxo.js} +9 -9
- package/_assets/{Collection-B763ift6.js → Collection-GfGftuMU.js} +7 -7
- package/_assets/{CollectionCarousel-DFNRTOFP.js → CollectionCarousel-CrO5pEgo.js} +14 -14
- package/_assets/Confetti-D8VQEKfB.js +18 -0
- package/_assets/{ConstantsUtil-6Pwi3OKY.js → ConstantsUtil-BQvpBpQu.js} +2 -2
- package/_assets/{ContentClient-BuElv52x.js → ContentClient-HMgCjCsc.js} +2 -2
- package/_assets/{Creator-JaygbdxX.js → Creator-D-qT8exB.js} +46 -46
- package/_assets/{DeploymentBuilder-aEYKwzH4.js → DeploymentBuilder-BbyLDwPt.js} +4 -4
- package/_assets/{EmotePlaybackBar-BJLqHcgD.js → EmotePlaybackBar-CaJAXuFm.js} +19 -19
- package/_assets/{ErrorNotice-CehMoY9b.js → ErrorNotice-DgLTEx75.js} +2 -2
- package/_assets/Event-F8QeIya1.js +72 -0
- package/_assets/{ExchangeController-m6NotXbL.js → ExchangeController-7TtAhy38.js} +2 -2
- package/_assets/{Faq-DHIkLMIT.js → Faq-DGPgsE0y.js} +2 -2
- package/_assets/{GetCredits-DcNwBHxf.js → GetCredits-Dy4K0Tve.js} +11 -11
- package/_assets/{Grow-C2g65qe9.js → Grow-aL4So4Ma.js} +2 -2
- package/_assets/HelpersUtil-BQh8MsBd.js +63 -0
- package/_assets/{ItemDetail-DJM4Utdh.js → ItemDetail-DH3C6g1a.js} +33 -33
- package/_assets/LoadMore-CAovcyRj.js +8 -0
- package/_assets/{ManaPricingBanner.styles-BJpi8rP5.js → ManaPricingBanner.styles-DlZ7ilpc.js} +3 -3
- package/_assets/{MyAssets-DC5W_tsB.js → MyAssets-A6dazeyv.js} +14 -14
- package/_assets/{MyFavorites-VcdUYwK3.js → MyFavorites-DuT_Xsaf.js} +9 -9
- package/_assets/{NetworkUtil-DNxN28kF.js → NetworkUtil-BtYJyuKu.js} +2 -2
- package/_assets/NotFound-C2JeBVxZ.js +18 -0
- package/_assets/{NotificationsBell-CYBZ8jux.js → NotificationsBell-BdWtXFrk.js} +2 -2
- package/_assets/{OutfitDetail-Bsult-u3.js → OutfitDetail-CvA6YqRb.js} +5 -5
- package/_assets/OutfitPreview-RpSf5VhQ.js +7 -0
- package/_assets/{OutfitStudio-BPLVgE7b.js → OutfitStudio-C_fP6Tdr.js} +2 -2
- package/_assets/{PhArrowCircleDown-Bmy0XPqd.js → PhArrowCircleDown-oZRgIV6I.js} +5 -5
- package/_assets/{PhArrowClockwise-Bklo7MBV.js → PhArrowClockwise-D6H6uB8s.js} +3 -3
- package/_assets/{PhArrowDown-CBjJCstB.js → PhArrowDown-CRBvhObC.js} +4 -4
- package/_assets/{PhArrowLeft-BCeYPtMx.js → PhArrowLeft-iC7ALVz_.js} +3 -3
- package/_assets/{PhArrowRight-Ch61WxZn.js → PhArrowRight-BMhSphsR.js} +4 -4
- package/_assets/{PhArrowSquareOut-Bk5nSBoz.js → PhArrowSquareOut-BGOFtcYV.js} +4 -4
- package/_assets/{PhArrowUp-CzPwFe1F.js → PhArrowUp-DaOakyLF.js} +5 -5
- package/_assets/{PhArrowUpRight-DF87CEc7.js → PhArrowUpRight-Dv-X4w2R.js} +4 -4
- package/_assets/{PhArrowsClockwise-D5XWB216.js → PhArrowsClockwise-DnI7mFlV.js} +4 -4
- package/_assets/{PhArrowsDownUp-CVtoWYS-.js → PhArrowsDownUp-BT1rp80C.js} +5 -5
- package/_assets/{PhArrowsLeftRight-Cu83Wp7y.js → PhArrowsLeftRight-3JEyJt0N.js} +3 -3
- package/_assets/{PhBank-BjB_uqsX.js → PhBank-DlTySila.js} +3 -3
- package/_assets/{PhBrowser-CW3ZGiB7.js → PhBrowser-CxUZLRbi.js} +4 -4
- package/_assets/PhCaretDown-Co8viBJv.js +15 -0
- package/_assets/{PhCaretLeft-DPSFahQA.js → PhCaretLeft-ScH02zvv.js} +4 -4
- package/_assets/PhCaretRight-CG-ZCjvT.js +15 -0
- package/_assets/{PhCaretUp-Bit2hvKo.js → PhCaretUp-SXVNZaJo.js} +4 -4
- package/_assets/{PhCheck-BHmNQJ6P.js → PhCheck-DETGkRRi.js} +3 -3
- package/_assets/{PhCircleHalf-AD4oTWoj.js → PhCircleHalf-BN36Nweh.js} +4 -4
- package/_assets/{PhClock-3t4anT3D.js → PhClock-DPd3K2DL.js} +3 -3
- package/_assets/{PhCompass-DpvhkfDj.js → PhCompass-F0g-SfuH.js} +5 -5
- package/_assets/{PhCopy-We2XYWCm.js → PhCopy-CzpD7rrG.js} +5 -5
- package/_assets/{PhCreditCard-BBnTMXbe.js → PhCreditCard-NnI7YcNP.js} +4 -4
- package/_assets/{PhCurrencyDollar-dPV4byY8.js → PhCurrencyDollar-Bst29vzW.js} +4 -4
- package/_assets/{PhDesktop-DVuLe5q1.js → PhDesktop-CFSSNEkS.js} +2 -2
- package/_assets/{PhDeviceMobile-D6knI_PD.js → PhDeviceMobile-Dd2ijltg.js} +5 -5
- package/_assets/{PhDotsThree-D_uTiViU.js → PhDotsThree-CI5y9TIg.js} +4 -4
- package/_assets/{PhEnvelope-Bkk7fDMT.js → PhEnvelope-DrQ5vbHf.js} +2 -2
- package/_assets/{PhFunnelSimple-BVx2yoJC.js → PhFunnelSimple-CI4FOzkp.js} +4 -4
- package/_assets/{PhGlobe-BUa1rAnN.js → PhGlobe-DR2SpSWA.js} +2 -2
- package/_assets/{PhIdentificationCard-D7mCEldI.js → PhIdentificationCard-5YfSRHO7.js} +3 -3
- package/_assets/{PhImage-DN8upEaC.js → PhImage-D7dVXxCI.js} +2 -2
- package/_assets/{PhInfo-BRv5JqkG.js → PhInfo-DNTh1xhU.js} +4 -4
- package/_assets/{PhLightbulb-LZ8Bksrw.js → PhLightbulb-BfCndXXI.js} +4 -4
- package/_assets/{PhMagnifyingGlass-Nlml1ksU.js → PhMagnifyingGlass-DB41rFTM.js} +2 -2
- package/_assets/{PhPaperPlaneRight-QfFyGr7O.js → PhPaperPlaneRight-D6oxeO8G.js} +4 -4
- package/_assets/{PhPlus-C6YKBVJU.js → PhPlus-B90Q_jSC.js} +3 -3
- package/_assets/{PhPower-BtHcdIUq.js → PhPower-B3OeVFPP.js} +4 -4
- package/_assets/{PhPuzzlePiece-D5mYYrHE.js → PhPuzzlePiece-DMvneE8o.js} +4 -4
- package/_assets/{PhQrCode-MfgEx90-.js → PhQrCode-B1ogONq9.js} +4 -4
- package/_assets/{PhQuestion-BHeGiiUF.js → PhQuestion-BGPtjzO3.js} +2 -2
- package/_assets/{PhQuestionMark-DNtDU6-_.js → PhQuestionMark-Bx5KlE6e.js} +4 -4
- package/_assets/{PhSealCheck-CDWno5AE.js → PhSealCheck-kDiKrn8v.js} +3 -3
- package/_assets/{PhSignOut-BWUfOWAY.js → PhSignOut-C40w8abk.js} +4 -4
- package/_assets/{PhSpinner-Chbk-Rrh.js → PhSpinner-BnCR7oBU.js} +3 -3
- package/_assets/{PhTrash-CknzCMhK.js → PhTrash-Dx6EnoNj.js} +2 -2
- package/_assets/{PhUser-DBmpCM-x.js → PhUser-BMrVwUFx.js} +3 -3
- package/_assets/{PhVault-B_-lceT6.js → PhVault-CJhJgRMl.js} +2 -2
- package/_assets/{PhWallet-DzHci4bI.js → PhWallet-DUAwnObx.js} +3 -3
- package/_assets/{PhWarning-DNajgYKH.js → PhWarning-DQNslokT.js} +3 -3
- package/_assets/{PhWarningCircle-DaWHEJd0.js → PhWarningCircle-p1EFi5p4.js} +2 -2
- package/_assets/{PhX-o_0aqvnZ.js → PhX-cY2Ff_Gl.js} +4 -4
- package/_assets/{SaleCountdown-CZ2zCEuD.js → SaleCountdown-BOp8aJfy.js} +2 -2
- package/_assets/{Spinner-Bli82tb5.js → Spinner-BynqtNdl.js} +4 -4
- package/_assets/{StoreSettings-C1Gv-cCN.js → StoreSettings-CbPna8kP.js} +13 -13
- package/_assets/{Success-B2Z93qNy.js → Success-bg8XK0yM.js} +11 -11
- package/_assets/{SwapController-Cek3YsoY.js → SwapController-FBcxo_2T.js} +2 -2
- package/_assets/{TradeService-C-AbGVlE.js → TradeService-B10-pJNL.js} +2 -2
- package/_assets/{W3MFrameProviderSingleton-mF4CCLmj.js → W3MFrameProviderSingleton-D0jWw1Cc.js} +4 -4
- package/_assets/{WebCryptoP256-B-dLbvSm.js → WebCryptoP256-sEn4Ph9s.js} +2 -2
- package/_assets/{add-DMqlCS_5.js → add-WhTS4Lmx.js} +2 -2
- package/_assets/{all-wallets-jltIqTjt.js → all-wallets-BjG4VftA.js} +2 -2
- package/_assets/{app-store-8U-XnKiq.js → app-store-BU7T42Cx.js} +3 -3
- package/_assets/{apple-DqtIUOT7.js → apple-CawmhmSa.js} +2 -2
- package/_assets/{arrow-bottom-PA3nOuzV.js → arrow-bottom-CnNmrvB7.js} +2 -2
- package/_assets/{arrow-bottom-circle-C-CSXtk9.js → arrow-bottom-circle-4Fk8ZSin.js} +3 -3
- package/_assets/arrow-left-CfMYQlcz.js +9 -0
- package/_assets/arrow-right-QKHuTr9a.js +9 -0
- package/_assets/{arrow-top-BAZtnW6A.js → arrow-top-B19eH9mc.js} +2 -2
- package/_assets/{async-directive-C0XTxdV5.js → async-directive-BTrBVINo.js} +3 -3
- package/_assets/{authorizations-BF60RZYU.js → authorizations-mOwNJkid.js} +2 -2
- package/_assets/{bank-C-8Jh-Iw.js → bank-CvCwnNxT.js} +3 -3
- package/_assets/{basic-TAsmd6Xa.js → basic-Dxa7jgJV.js} +2 -2
- package/_assets/{biconomy-BROTTSQq.js → biconomy-BX2NYC5K.js} +2 -2
- package/_assets/{browseLayout.styles-DJ6ptfco.js → browseLayout.styles-DdpwxtcS.js} +12 -12
- package/_assets/{browser-DNnsZJT3.js → browser-D4AM3MwN.js} +2 -2
- package/_assets/{browser-D7KHILZd.js → browser-DSvDuDU2.js} +2 -2
- package/_assets/{browser-BXKNeaZx.js → browser-D_6XKzYg.js} +2 -2
- package/_assets/{browser-ponyfill-D-2OW3pz.js → browser-ponyfill-BNascxOI.js} +2 -2
- package/_assets/{builder-Bi-1rymv.js → builder-B5xu14hD.js} +2 -2
- package/_assets/{buy-CiksvueJ.js → buy-DhVTrZNv.js} +2 -2
- package/_assets/buy-gasless-CaOBmjwx.js +2 -0
- package/_assets/{card-Uc0KebvL.js → card-Bs7vF3ws.js} +2 -2
- package/_assets/{categories-BNbtxrs7.js → categories-CVmtX9AQ.js} +3 -3
- package/_assets/{ccip-BNDG19W5.js → ccip-BqWqT45T.js} +2 -2
- package/_assets/{ccip-pGTY1Hnw.js → ccip-DrB-HQcA.js} +2 -2
- package/_assets/{chains-1XVMAf69.js → chains-D7KB36RB.js} +2 -2
- package/_assets/{checkmark-bold-BwTefyx7.js → checkmark-bold-CwL3zpGi.js} +3 -3
- package/_assets/{checkmark-7uWcPB0u.js → checkmark-e3BzxNSm.js} +2 -2
- package/_assets/chevron-bottom-DVpGPQvJ.js +9 -0
- package/_assets/{chevron-left-DKH1P9Pf.js → chevron-left-CSISn9Tl.js} +3 -3
- package/_assets/chevron-right-D0n7Onzs.js +9 -0
- package/_assets/{chevron-top-Dn0py8bk.js → chevron-top-BSRcfV5m.js} +2 -2
- package/_assets/{chrome-store-DUbm69Gl.js → chrome-store-B9E5S_r1.js} +3 -3
- package/_assets/{class-map-C7I-HYAi.js → class-map-BaReYv7k.js} +5 -5
- package/_assets/{clock-CMav6VuQ.js → clock-98t-BkG5.js} +2 -2
- package/_assets/{close-Byftwzmc.js → close-BnCucYZG.js} +2 -2
- package/_assets/{coinPlaceholder-C0F4r6oU.js → coinPlaceholder-rH-MsidA.js} +2 -2
- package/_assets/collectionPage.styles-brmBi9Tl.js +41 -0
- package/_assets/common-7XkB6e5H.js +2 -0
- package/_assets/{compass-CPDOuTyF.js → compass-C4iPyfoB.js} +2 -2
- package/_assets/{controller-DVUx791t.js → controller-B1_lWq9z.js} +3 -3
- package/_assets/{copy-CjXNbdx3.js → copy-Db_EXK-k.js} +3 -3
- package/_assets/{core-BwSauelP.js → core-AITNuvVU.js} +5 -5
- package/_assets/{createSvgIcon-B_LncRTh.js → createSvgIcon-Dm_EPzPD.js} +6 -6
- package/_assets/crumbs.styles-CWDzzCAG.js +10 -0
- package/_assets/{cursor-D-SkqFO5.js → cursor-BLyA32Y6.js} +3 -3
- package/_assets/{cursor-transparent-RE6Zec8w.js → cursor-transparent-is8_6H5o.js} +3 -3
- package/_assets/{custom-9Ox9ngZH.js → custom-xkj1tLSz.js} +2 -2
- package/_assets/{data-capture-DSDu9OaX.js → data-capture-DAJqMG1k.js} +2 -2
- package/_assets/{dcl-schemas-BfFZv5Pe.js → dcl-schemas-CmSCesR5.js} +2 -2
- package/_assets/decimals-BHfME2e2.js +2 -0
- package/_assets/decimals-DfUPuYV7.js +2 -0
- package/_assets/{desktop-tp0dY4sR.js → desktop-w7YXG_JM.js} +3 -3
- package/_assets/detectExtension-DkHb3fXD.js +2 -0
- package/_assets/{disconnect-PN0ATTQe.js → disconnect-BoVeWInH.js} +3 -3
- package/_assets/{discord-ISYEjXZK.js → discord-CmXuPXeB.js} +3 -3
- package/_assets/{disposePreview-CTqm0wil.js → disposePreview-DVwGA7Ub.js} +2 -2
- package/_assets/{email-W_rvVD_7.js → email-Hk4429M_.js} +2 -2
- package/_assets/{embedded-wallet-CylC0mwp.js → embedded-wallet-BkIMq9yg.js} +2 -2
- package/_assets/{emotion-styled.browser.esm-CQtWGpOn.js → emotion-styled.browser.esm-DjDg2ZB8.js} +2 -2
- package/_assets/{engine-XmlRLqF0.js → engine-XG_XgfGd.js} +2 -2
- package/_assets/errors-u0_epNfV.js +2 -0
- package/_assets/estimate-l1-fee-5EJiMKoX.js +2 -0
- package/_assets/eth_estimateGas-DwKvWYPo.js +2 -0
- package/_assets/eth_getStorageAt-C5p-8MAr.js +2 -0
- package/_assets/eth_getTransactionCount-t66aQ8TR.js +2 -0
- package/_assets/ethereum-BCdz72n5.js +2 -0
- package/_assets/{ethers-rfaBand6.js → ethers-tJNwaRFg.js} +2 -2
- package/_assets/{etherscan-CjB1AtvG.js → etherscan-C6oDVSRT.js} +3 -3
- package/_assets/{events-C9-d0wKW.js → events-h2iFxkMp.js} +2 -2
- package/_assets/{exclamation-triangle-Vw_jmJIs.js → exclamation-triangle-DeoEkpAd.js} +2 -2
- package/_assets/{execute-97e39I17.js → execute-z2O707m9.js} +3 -3
- package/_assets/{extension-p5vqJTq0.js → extension-BC4u9PFt.js} +3 -3
- package/_assets/external-link-D1_8iC7n.js +9 -0
- package/_assets/{extractIPFS-DrYyPyFp.js → extractIPFS-BfApxnTo.js} +2 -2
- package/_assets/{facebook-BdpnpvkK.js → facebook-BfvFcXpk.js} +3 -3
- package/_assets/{farcaster-DyedtTLV.js → farcaster-DBSK9Oxt.js} +2 -2
- package/_assets/{features-DPENc6M_.js → features-NisBD24W.js} +2 -2
- package/_assets/fetchTokenMetadata-DWdccaM6.js +3 -0
- package/_assets/{field.styles-SsNLO8pf.js → field.styles-DGvQ3_KI.js} +4 -4
- package/_assets/{filters-CMt2xly-.js → filters-Bx7yqePJ.js} +2 -2
- package/_assets/{fortmatic-Br6NCLjK.js → fortmatic-CzuM5VkM.js} +2 -2
- package/_assets/{get-bytecode-DnzzQt09.js → get-bytecode-oe9dgjT_.js} +2 -2
- package/_assets/get-ecosystem-wallet-info-BQa2CpBc.js +2 -0
- package/_assets/{getBalance-CG19_hcj.js → getBalance-Db2IDw6o.js} +3 -3
- package/_assets/getInstalledModules-DQi2Ywnx.js +2 -0
- package/_assets/getNFT-B3EOo0zp.js +3 -0
- package/_assets/getNFT-DHGI8HoZ.js +2 -0
- package/_assets/{github-DpuVIU6C.js → github-Bir9JlcK.js} +3 -3
- package/_assets/{google-BwS7c7G5.js → google-BlkSyDA4.js} +2 -2
- package/_assets/grid.styles-Cw2pwIs-.js +15 -0
- package/_assets/{hashTypedData-CB0WoLGg.js → hashTypedData-C3YI5ahi.js} +2 -2
- package/_assets/{hashTypedData-DXatJfP_.js → hashTypedData-oPzuFATg.js} +2 -2
- package/_assets/{help-circle-D4e71YxP.js → help-circle-DA-n1pkO.js} +3 -3
- package/_assets/{id-CkCU8Jqk.js → id-UrGKP3rm.js} +3 -3
- package/_assets/{image-BgNr9PHW.js → image-D3PTNca-.js} +2 -2
- package/_assets/{import-vNIvljOs.js → import-BWdTYI20.js} +2 -2
- package/_assets/{in-app-KVeRiFav.js → in-app-w7g8Nhc9.js} +2 -2
- package/_assets/{in-app-wallet-calls-BGgHKG4E.js → in-app-wallet-calls-CgxzzkFg.js} +2 -2
- package/_assets/{index-BOcVPMst.js → index-0e3v9CpE.js} +2 -2
- package/_assets/{index-BM-LiAJT.js → index-6ybT_yl_.js} +2 -2
- package/_assets/{index-TKsvI-NM.js → index-B8_xh5D1.js} +7 -7
- package/_assets/{index-CD5F8xRq.js → index-BEL4VIeu.js} +2 -2
- package/_assets/{index-CyVGgMkK.js → index-BG7qJ3Aa.js} +311 -279
- package/_assets/{index-htwtpupR.js → index-BH-VYf5l.js} +4 -4
- package/_assets/{index-B6htjYue.js → index-BIxaiAEl.js} +3 -3
- package/_assets/{index-DRbMF22n.css → index-BJz1Up2I.css} +1 -1
- package/_assets/{index-DT143eSv.js → index-BLtuf6m4.js} +2 -2
- package/_assets/{index-CrcEiZEu.js → index-BNnbhKYu.js} +9 -9
- package/_assets/{index-DexDa-x6.js → index-BZuTbleF.js} +2 -2
- package/_assets/{index-fUxRvoXH.js → index-Bcl-5AK7.js} +4 -4
- package/_assets/{index-BeulnmWl.js → index-Bj2y_yjG.js} +7 -7
- package/_assets/{index-BphkB5h5.js → index-BldJs_X4.js} +2 -2
- package/_assets/{index-B6oBqK3x.js → index-BqYsqQ5e.js} +4 -4
- package/_assets/{index-Dc8QkZVC.js → index-BsuCjDRM.js} +2 -2
- package/_assets/{index-BCazbM3i.js → index-BwhcvSEl.js} +4 -4
- package/_assets/{index-DKffn2SX.js → index-Bx9moibP.js} +4 -4
- package/_assets/{index-C8lRlbcU.js → index-BzFKKsMe.js} +2 -2
- package/_assets/{index-By6o2Lqu.js → index-C1EVlgG9.js} +10 -10
- package/_assets/{index-CcQaDuSy.js → index-C6fxHuUK.js} +2 -2
- package/_assets/{index-DA3Q9xWC.js → index-CA1VPaBS.js} +2 -2
- package/_assets/{index-B4z00rU5.js → index-CBg-Sm5h.js} +3 -3
- package/_assets/{index-DYCC7rPf.js → index-CFhF41J2.js} +3 -3
- package/_assets/{index-D9atNHM1.js → index-CNhiEbnP.js} +4 -4
- package/_assets/{index-Daf64xZr.js → index-CTw0n0JC.js} +4 -4
- package/_assets/{index-SvKZEdOG.js → index-CY3hUb7S.js} +3 -3
- package/_assets/{index-BgUxbRek.js → index-C_yfqMNU.js} +2 -2
- package/_assets/{index-CeVIXHhQ.js → index-CekZ5Iqg.js} +4 -4
- package/_assets/{index-CkxowA1-.js → index-CjFqn_i1.js} +2 -2
- package/_assets/{index-DbWZDnMx.js → index-CxQ0CvH_.js} +2 -2
- package/_assets/{index-5rIJfAZy.js → index-CynamobY.js} +2 -2
- package/_assets/{index-pSYYTNRD.js → index-D24CLlPA.js} +3 -3
- package/_assets/{index-DzVDhWN3.js → index-D39wCCYL.js} +4 -4
- package/_assets/{index-CuQaF0PK.js → index-D3jPbs8j.js} +2 -2
- package/_assets/{index-CuovT0LH.js → index-D6ySRUMB.js} +2 -2
- package/_assets/{index-B-3nI4H_.js → index-DBFGegL3.js} +3 -3
- package/_assets/{index-o0uVygcP.js → index-DBeNYttS.js} +2 -2
- package/_assets/{index-BXtnar-h.js → index-DC6Ttv02.js} +4 -4
- package/_assets/{index-Cwv6CxNk.js → index-DHqGt_jn.js} +3 -3
- package/_assets/{index-Dnf-yL2f.js → index-DJpAryBd.js} +2 -2
- package/_assets/{index-C_KbxGyM.js → index-DJxFrgnc.js} +2 -2
- package/_assets/{index-D4yqXYo7.js → index-DLmetrvd.js} +2 -2
- package/_assets/index-DRTZJdSM.js +2 -0
- package/_assets/{index-DwU-rTe_.js → index-DSpJHztY.js} +2 -2
- package/_assets/{index-DHFZfpXa.js → index-DTRYM8Jl.js} +2 -2
- package/_assets/index-DW6FMcTo.js +2 -0
- package/_assets/{index-gO3cCHE1.js → index-DdLWviF_.js} +6 -6
- package/_assets/{index-ByLI3MnY.js → index-DgvZWtVI.js} +2 -2
- package/_assets/{index-D29HW6CF.js → index-Dk_RFoYO.js} +2 -2
- package/_assets/{index-4JmY5_RP.js → index-DtFBTuiv.js} +2 -2
- package/_assets/{index-CfYZS3Gd.js → index-EnFBokn9.js} +5 -5
- package/_assets/{index-CHspDov_.js → index-JgBnlWsC.js} +2 -2
- package/_assets/{index-BkL9KpHE.js → index-Y7bxplKw.js} +3 -3
- package/_assets/{index-DJ2ef_Qi.js → index-ZrIhKrUY.js} +9 -9
- package/_assets/{index-ISYU3o6e.js → index-_5dLlQT_.js} +2 -2
- package/_assets/{index-ALUnxrx5.js → index-_TZGGhWP.js} +2 -2
- package/_assets/{index-DhIqKIxS.js → index-c8OkQC3w.js} +2 -2
- package/_assets/{index-x2xGnkT4.js → index-dD-qY7M-.js} +15 -15
- package/_assets/{index-mvEa1F06.js → index-fEiPFyrn.js} +2 -2
- package/_assets/{index-C9c1P_dO.js → index-lSclNpXC.js} +2 -2
- package/_assets/{index-CdYlEnpz.js → index-nANjwUMg.js} +2 -2
- package/_assets/{index-DXiZbXpt.js → index-qirgQBq5.js} +2 -2
- package/_assets/{index-DTtoNYtG.js → index-sYKgsd2E.js} +2 -2
- package/_assets/{index-ikXmGLHB.js → index-umccxemy.js} +2 -2
- package/_assets/{index-D3GehksE.js → index-w25QikzJ.js} +2 -2
- package/_assets/{index-DmY8v3gX.js → index-xWBB44w4.js} +5 -5
- package/_assets/{index-DJNds9OD.js → index-xYE9fkjq.js} +2 -2
- package/_assets/{index.es-CeYojd2g.js → index.es-BIKI7JLq.js} +5 -5
- package/_assets/{index.es-Cd0iKBsN.js → index.es-D7qMhur5.js} +2 -2
- package/_assets/{index.es-D8l4zpKy.js → index.es-Gw4AHyZB.js} +2 -2
- package/_assets/{index.es-yl8dzxKR.js → index.es-__1hkKpa.js} +2 -2
- package/_assets/{info-CULnZZaj.js → info-Dsmi8VWW.js} +3 -3
- package/_assets/{info-circle-lLJ-CNp2.js → info-circle-CppZa7vK.js} +2 -2
- package/_assets/{items-empty-DdvLsLv8.js → items-empty-BkXBlSAo.js} +2 -2
- package/_assets/jsxRuntime.module-Q9HBaTr-.js +2 -0
- package/_assets/{jump-DVwOeoW4.js → jump-Dh2r-J5T.js} +2 -2
- package/_assets/{lightbulb-4T7s9a-o.js → lightbulb-B2s8QgKQ.js} +2 -2
- package/_assets/linkAccount-Bev4yuZS.js +2 -0
- package/_assets/{localBatchGatewayRequest-CiuE3Uyi.js → localBatchGatewayRequest-D0XhtVRB.js} +2 -2
- package/_assets/{mail-DhJDk7cH.js → mail-CZ9ghbH-.js} +2 -2
- package/_assets/{mobile-CydJ5WdV.js → mobile-D7KL87qI.js} +2 -2
- package/_assets/{modal.styles-BrAS9zAx.js → modal.styles-CUboNT-w.js} +2 -2
- package/_assets/{more-Dg2B8rio.js → more-C1vsI2Vu.js} +3 -3
- package/_assets/{native-CpLbYufg.js → native-I31DoDqU.js} +2 -2
- package/_assets/{network-placeholder-h8TrKQkX.js → network-placeholder-C6sglFRh.js} +2 -2
- package/_assets/{networks-HjNF9J92.js → networks-CeoMEJlu.js} +2 -2
- package/_assets/{nftPlaceholder-B4g7qDN6.js → nftPlaceholder-ByX0V9oA.js} +3 -3
- package/_assets/off-B5vm0egN.js +9 -0
- package/_assets/{onramp-BOMs0oY_.js → onramp-BIEWKelE.js} +2 -2
- package/_assets/openzeppelin-Bi1GA2cJ.js +2 -0
- package/_assets/ownerOf-yybzNeeI.js +2 -0
- package/_assets/parseNft-wHStJKpc.js +3 -0
- package/_assets/{parseSignature-CJgDc_lf.js → parseSignature-DCfeEmC8.js} +4 -4
- package/_assets/{parseSignature-WztwOX0T.js → parseSignature-Dzal_2R6.js} +2 -2
- package/_assets/{passkeys-Bbt6ZFiZ.js → passkeys-Cm45YlML.js} +2 -2
- package/_assets/{pay-with-exchange-4pYYuso4.js → pay-with-exchange-BKmd6iRp.js} +2 -2
- package/_assets/{play-store-B1ADa5-a.js → play-store-BBusJ15a.js} +2 -2
- package/_assets/{plus-CkIDGwOx.js → plus-QdPNUgRE.js} +2 -2
- package/_assets/{prepare-contract-call-CzqNBdjC.js → prepare-contract-call-CP8gdRn0.js} +2 -2
- package/_assets/{qr-code-DInpw8H9.js → qr-code-SdYLFk2z.js} +2 -2
- package/_assets/{qr-overlay-D-zdQAjb.js → qr-overlay-pc4SHTdg.js} +4 -4
- package/_assets/{react-BDtnT4_L.js → react-BaEtM5XJ.js} +3 -3
- package/_assets/{receive-BAEAd1F0.js → receive-BrKrTaHR.js} +12 -12
- package/_assets/{recycle-horizontal-frlUVLoe.js → recycle-horizontal-SCXYOpJq.js} +3 -3
- package/_assets/{ref-BDtPbYkK.js → ref-DRxYb1N1.js} +3 -3
- package/_assets/{refresh-BJgYdDWe.js → refresh-eticwJ3S.js} +3 -3
- package/_assets/{reown-logo-CptpO-OK.js → reown-logo-C2dHPSrm.js} +2 -2
- package/_assets/{resolveImplementation-vgG3euf-.js → resolveImplementation-Cn9CmlXV.js} +2 -2
- package/_assets/{resume-buy-CSgJ-XwR.js → resume-buy-DjpxQ16x.js} +2 -2
- package/_assets/{rpc-CtbKgNnw.js → rpc-CtaMLsF-.js} +2 -2
- package/_assets/{sales-empty-D73ma-y1.js → sales-empty-CEW_7w0S.js} +2 -2
- package/_assets/{search-CovtTjFk.js → search-CeQ1H1CU.js} +2 -2
- package/_assets/{search-empty-D0-TyK_V.js → search-empty-CXnXGBuW.js} +2 -2
- package/_assets/{secp256k1-CzsGuHty.js → secp256k1-2lPahONa.js} +2 -2
- package/_assets/{secp256k1-Bx7FlDx1.js → secp256k1-Cw5yUkzd.js} +2 -2
- package/_assets/{secp256k1-M4GB_fDX.js → secp256k1-OfpsBHCS.js} +2 -2
- package/_assets/{send-B6flY4x2.js → send-BAtrg0LJ.js} +2 -2
- package/_assets/{send-BqmhOSPb.js → send-Bo03Ql2I.js} +2 -2
- package/_assets/{send-batch-transaction-Co4ePIo5.js → send-batch-transaction-BpcguXC6.js} +2 -2
- package/_assets/{send-eip712-transaction-Cs4IqHVW.js → send-eip712-transaction-Bd6QC-Sw.js} +3 -3
- package/_assets/send-gasless-transaction-Y66RJHE0.js +3 -0
- package/_assets/send-transaction-DXMKNLAk.js +3 -0
- package/_assets/{sendMetaTransaction-CVkzKCvR.js → sendMetaTransaction-BIO5pykC.js} +2 -2
- package/_assets/{sendRawTransaction-CQA22kgz.js → sendRawTransaction-DRzDGfBS.js} +4 -4
- package/_assets/{sentry-DJtBihbA.js → sentry-CpILff32.js} +3 -3
- package/_assets/{serializeTransaction-BXSGxjck.js → serializeTransaction-BTmx-nT5.js} +2 -2
- package/_assets/{session-proposal-BZ-s21nV.js → session-proposal-Cdm62cOe.js} +2 -2
- package/_assets/session-request-CRquTW31.js +3 -0
- package/_assets/{sha256-5LafXqux.js → sha256-7kFStUiX.js} +2 -2
- package/_assets/sha3-CheitC6D.js +2 -0
- package/_assets/signin-empty-BTSk9lYx.js +2 -0
- package/_assets/{signing-smJEu_aC.js → signing-CQjkeZoU.js} +4 -4
- package/_assets/{skeleton.styles-Cqgtx7q8.js → skeleton.styles-ClyzppIO.js} +2 -2
- package/_assets/{socials-BB50T59X.js → socials-DADzSqnT.js} +2 -2
- package/_assets/{styled-sEDZsWVx.js → styled-CjWYLp6b.js} +3 -3
- package/_assets/{swapHorizontal-BzkqO77h.js → swapHorizontal-C6GakaRf.js} +3 -3
- package/_assets/{swapHorizontalBold-Ci7CW-Ps.js → swapHorizontalBold-oeP-_O-R.js} +2 -2
- package/_assets/{swapHorizontalMedium-BIJFHqWY.js → swapHorizontalMedium-C64EXSWD.js} +3 -3
- package/_assets/{swapHorizontalRoundedBold-DgbOKQnq.js → swapHorizontalRoundedBold-CHgP6XK-.js} +2 -2
- package/_assets/{swapVertical-AbfbZRwH.js → swapVertical-8SLU7RpO.js} +2 -2
- package/_assets/{swaps--hKKZcn7.js → swaps-UA0cD3BW.js} +2 -2
- package/_assets/{telegram-D7G_eJ_b.js → telegram-CF91ES6s.js} +2 -2
- package/_assets/{thirdweb-NC84C-A5.js → thirdweb-y-wkF1vZ.js} +4 -4
- package/_assets/{three-dots-OoMaedcW.js → three-dots-BsCoLPC9.js} +2 -2
- package/_assets/{to-serializable-transaction-DhaCLdH1.js → to-serializable-transaction-thDAMGtK.js} +3 -3
- package/_assets/totalSupply-Cpawfqqv.js +2 -0
- package/_assets/{transaction-D4x9bx9b.js → transaction-DJRXk5oN.js} +2 -2
- package/_assets/transactionReceipt-B67AwtOj.js +2 -0
- package/_assets/transactions-CfUmlRJ6.js +17 -0
- package/_assets/{twitch-XFZ_dW-0.js → twitch-BranWKeM.js} +2 -2
- package/_assets/{twitterIcon-DFIrOz7L.js → twitterIcon-BfIWT5DS.js} +3 -3
- package/_assets/{useCreditPacks-L9xKGYZ4.js → useCreditPacks-CQnl_Fa8.js} +2 -2
- package/_assets/{useInfiniteGrid-3LXYF7KT.js → useInfiniteGrid-CV3Vck1D.js} +2 -2
- package/_assets/useStore-W0Q-z1uf.js +3 -0
- package/_assets/useTheme-CDcFqXEY.js +2 -0
- package/_assets/{utils-rjss_XXl.js → utils-uSRrzKHh.js} +2 -2
- package/_assets/{verify-CtqWYnsr.js → verify-DcO5QuX7.js} +3 -3
- package/_assets/{verify-filled-db_bDI2X.js → verify-filled-CKp8XQqI.js} +3 -3
- package/_assets/{verifyHash-DRixXMjz.js → verifyHash-BGhiKEhq.js} +2 -2
- package/_assets/{w3m-modal-DMH1kr4I.js → w3m-modal-6m_XMwwg.js} +2 -2
- package/_assets/{w3m-modal-BZ1FGn4r.js → w3m-modal-DGE9Js41.js} +2 -2
- package/_assets/wait-for-tx-receipt-CEm8zMyI.js +2 -0
- package/_assets/{wallet-C7Nkm-1r.js → wallet-BHCiGpYx.js} +3 -3
- package/_assets/{wallet-placeholder-BAZfiJ4M.js → wallet-placeholder-BVguMNEt.js} +2 -2
- package/_assets/{walletconnect-jD4HJXgj.js → walletconnect-9t1WJh4k.js} +4 -4
- package/_assets/{wallets-CFIKit6R.js → wallets-D7Q9xQCT.js} +6 -6
- package/_assets/{warning-circle-DG9C8ETA.js → warning-circle-II7Vcaxs.js} +2 -2
- package/_assets/{web-connector-hTbyWCSc.js → web-connector-nXRPn9Z3.js} +4 -4
- package/_assets/{writeContract-B5nOXYik.js → writeContract-CZeJcaDt.js} +2 -2
- package/_assets/x-D0s8LW19.js +13 -0
- package/_assets/{zora-sepolia-CmUXMudA.js → zora-sepolia-CI048TsY.js} +2 -2
- package/_assets/{zoraTestnet-DiuTPx_I.js → zoraTestnet-C9v3YIE6.js} +2 -2
- package/index.html +11 -11
- package/package.json +2 -2
- package/_assets/Activity-O6LT8hqU.js +0 -373
- package/_assets/Confetti-B1XP6v1O.js +0 -18
- package/_assets/Event-BKsvAEZR.js +0 -2
- package/_assets/HelpersUtil-Bnvdbw4V.js +0 -63
- package/_assets/LoadMore-D1ApwWXh.js +0 -8
- package/_assets/NotFound-Bh3Yk2Sb.js +0 -18
- package/_assets/OutfitPreview-MOY2qAET.js +0 -7
- package/_assets/PhCaretDown-PT_hkshh.js +0 -15
- package/_assets/PhCaretRight-EEBUAb9H.js +0 -15
- package/_assets/arrow-left-Cddzsk1s.js +0 -9
- package/_assets/arrow-right-FkB0kPcW.js +0 -9
- package/_assets/buy-gasless-DG2qGHrJ.js +0 -2
- package/_assets/chevron-bottom-CJ9Wl9Xm.js +0 -9
- package/_assets/chevron-right-DeNTJHBI.js +0 -9
- package/_assets/collectionPage.styles-RZVhtMJK.js +0 -41
- package/_assets/common-Bwhl0TxO.js +0 -2
- package/_assets/crumbs.styles-BD0KsEdc.js +0 -10
- package/_assets/decimals-C6k5mXUX.js +0 -2
- package/_assets/decimals-CeH4Zk94.js +0 -2
- package/_assets/detectExtension-BozHquzY.js +0 -2
- package/_assets/errors-BAO7_A7a.js +0 -2
- package/_assets/estimate-l1-fee-C6pUU9Gj.js +0 -2
- package/_assets/eth_estimateGas-DjOsaEES.js +0 -2
- package/_assets/eth_getStorageAt-Bckr5iRY.js +0 -2
- package/_assets/eth_getTransactionCount-C5Jy7jT6.js +0 -2
- package/_assets/ethereum-D9mzJwLc.js +0 -2
- package/_assets/external-link-6l8BDrnZ.js +0 -9
- package/_assets/fetchTokenMetadata-CKjngqLO.js +0 -3
- package/_assets/get-ecosystem-wallet-info-D5A19ioN.js +0 -2
- package/_assets/getInstalledModules-D3apLTNL.js +0 -2
- package/_assets/getNFT-CLwGPsGb.js +0 -2
- package/_assets/getNFT-DErsYxl1.js +0 -3
- package/_assets/grid.styles-BRtgKeAE.js +0 -15
- package/_assets/index-CDYCnNEZ.js +0 -2
- package/_assets/index-CcTwxjsV.js +0 -2
- package/_assets/jsxRuntime.module-gjtb1wYS.js +0 -2
- package/_assets/linkAccount-VTa1gyga.js +0 -2
- package/_assets/off-UwuZMWU-.js +0 -9
- package/_assets/openzeppelin-BKXlFThB.js +0 -2
- package/_assets/ownerOf-DN3_LnJB.js +0 -2
- package/_assets/parseNft-d1FcpMcn.js +0 -3
- package/_assets/send-gasless-transaction-DWAk7bwN.js +0 -3
- package/_assets/send-transaction-B9T50Ic_.js +0 -3
- package/_assets/session-request-6undDdyN.js +0 -3
- package/_assets/sha3--a5gJVIr.js +0 -2
- package/_assets/signin-empty-pUeXGLFR.js +0 -2
- package/_assets/totalSupply-BEc4Cg1i.js +0 -2
- package/_assets/transactionReceipt-BqZyCLMn.js +0 -2
- package/_assets/transactions-BWtQOgJv.js +0 -17
- package/_assets/useStore-pULSLKbx.js +0 -3
- package/_assets/useTheme-BblsW0tr.js +0 -2
- package/_assets/wait-for-tx-receipt-ChEdZDPJ.js +0 -2
- package/_assets/x-B-2M90IQ.js +0 -13
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as c,j as e,u as lt,L as ir,d as hs,b as ar}from"./react-BDtnT4_L.js";import{s as a,d as n,aK as Qe,c as i,I as L,av as xs,K as ve,S as Ge,C as ze,bk as zi,a3 as en,e as st,E as ot,bn as rr,bo as fs,L as dt,by as ms,bz as gs,al as X,bG as $e,bF as we,bH as Fn,i as ue,bE as pn,bD as sr,n as bs,o as ys,R as gt,bm as ws,bl as or,U as vs,bA as js,bB as ks,cZ as $s,c_ as Cs,c$ as Is,d0 as Ss,D as te,aO as As,a6 as tn,bg as nn,M as On,bh as rt,p as lr,N as Lt,c5 as dr,G as Je,aw as ye,d1 as Ms,a4 as zs,v as Rs,w as Ls,x as wt,aI as hn,ad as cr,d2 as Ri,cL as Ps,f as ur,aJ as Ts,d3 as Es,c4 as Fs,d4 as Bs,bQ as Ns,d5 as Ws,d6 as Ds,k as Os,aj as Rt,b8 as qs,d7 as Ks,a9 as Hs,d8 as Us,ba as Qs,d9 as Gs,u as pr,X as hr,da as xr,db as _s,dc as Vs,j as fr,dd as Js,de as Ys,df as Xs,dg as Zs,dh as eo,Q as to,di as xn,W as no,bq as io,br as ao,F as ro,m as so,dj as oo,dk as lo,dl as co,dm as uo,dn as po,ax as ho,ay as xo,dp as fo,H as mo,dq as go,aB as Li,aA as Pi,dr as bo,ds as yo,$ as wo,bx as vo,dt as Ti,du as jo,dv as ko,dw as $o,dx as Co,dy as Io,dz as So,dA as Ao,dB as Mo}from"./index-CyVGgMkK.js";import{d as Ae}from"./dcl-schemas-BfFZv5Pe.js";import{N as Ei,a0 as zo,V as Ro,R as mr,M as Lo,S as Po,C as To,H as Eo,a as Fo,T as Bo,X as No,b as Wo,B as Do,c as Oo,d as qo,e as Ko,f as at,g as Ho,h as Uo,i as Qo,j as Go,k as ft,l as De,W as Ut,o as Qt,p as Gt,q as _o,x as Vo,y as Jo,z as Yo,D as Xo,E as Zo,F as el,G as tl,I as nl,J as il,K as al,L as gr,P as br,m as yr,n as wr,a2 as rl,a3 as sl,a4 as Fi,A as ol,r as ll,s as dl,t as cl,u as ul,v as pl,w as hl,a5 as Bi,a6 as xl,a7 as fl,a8 as ml,a9 as gl,Y as bl,O as yl,Q as wl,U as vl}from"./CollectionCarousel-DFNRTOFP.js";import{j as Ni,b as jl,d as kl,v as $l,i as Cl,e as Il,a as Sl,o as Al,w as Wi,G as Ml,c as zl}from"./buy-CiksvueJ.js";import{a as Rl,b as Ll}from"./builder-Bi-1rymv.js";import{u as Pl,M as Tl,f as El,b as Fl,c as Bl}from"./useCreditPacks-L9xKGYZ4.js";import{m as Di}from"./mana-matic-CEqvSwrJ.js";import{m as Nl}from"./mana-matic-light-Bl5duieC.js";import{l as vr,g as jr,o as Wl,n as Dl,a as Oi,b as kr,i as Ol,r as ql,m as Kl,k as Hl}from"./authorizations-BF60RZYU.js";import{J as Ul,p as Ql,C as Gl,I as _l}from"./ethers-rfaBand6.js";import{a as Vl,w as $r,S as Cr,G as Ir,c as Jl}from"./buy-gasless-DG2qGHrJ.js";import{R as qi}from"./resume-buy-CSgJ-XwR.js";import{a as Yl,f as _e,i as yt}from"./errors-BAO7_A7a.js";import{C as Xl}from"./Confetti-B1XP6v1O.js";import{b as Zl,J as ed,a as td}from"./jump-DVwOeoW4.js";import{c as nd,i as an,D as id,S as ad,a as rd}from"./SaleCountdown-CZ2zCEuD.js";import{p as Sr}from"./import-vNIvljOs.js";import{E as Ve}from"./ErrorNotice-CehMoY9b.js";import{L as Ki,M as sd,B as od,H as ld,T as dd,A as cd}from"./modal.styles-BrAS9zAx.js";import{S as ud}from"./Spinner-Bli82tb5.js";import{M as pd,E as hd,s as xd}from"./sendMetaTransaction-CVkzKCvR.js";import{E as fd}from"./EmotePlaybackBar-BJLqHcgD.js";import{d as md}from"./disposePreview-CTqm0wil.js";import{S as gd,T as _t}from"./categories-BNbtxrs7.js";import{c as bd}from"./crumbs.styles-BD0KsEdc.js";import"./sentry-DJtBihbA.js";import"./intl-AKLEHPeO.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]="39b238f7-1026-402c-bd72-f9ff6b2592a5",t._sentryDebugIdIdentifier="sentry-dbid-39b238f7-1026-402c-bd72-f9ff6b2592a5")}catch{}})();const Ar=216n,yd=(1n<<Ar)-1n;function wd(t){const s=typeof t=="bigint"?t:BigInt(t.trim());if(s<0n)throw new Error(`Invalid tokenId: ${String(t)}`);return{itemId:(s>>Ar).toString(),issuedId:(s&yd).toString()}}function vd(t){if(!t)return null;try{return wd(t).itemId}catch{return null}}const Mr=["cancelled-listings"];function jd(t,s){s&&t.setQueryData(Mr,l=>l!=null&&l.includes(s)?l:[...l??[],s])}function Hi(t,s){var l;if(s)return(l=t.getQueryData(Mr))!=null&&l.includes(s)?void 0:s}function Ui(t,s){return s.kind==="listed"?{...t,isOnSale:!0,listingPrice:s.priceCredits,tradeId:s.tradeId??t.tradeId}:{...t,isOnSale:!1,listingPrice:void 0,tradeId:void 0}}function fn(t,s,l){const{address:o,contractAddress:d,tokenId:u}=s;if(!d||!u)return;const x=`${d}-${u}`;t.cancelQueries({queryKey:["owned-token",d,u]}),t.cancelQueries({queryKey:["secondary-sale-state"]}),o&&t.cancelQueries({queryKey:["my-assets",o]});const m=l.kind==="gone";t.setQueriesData({queryKey:["owned-token",d,u]},$=>$&&(m?null:Ui($,l)));const y=o?["my-assets",o]:["my-assets"];t.setQueriesData({queryKey:y},$=>$!=null&&$.pages?{...$,pages:$.pages.map(h=>{if(m){const g=h.items.filter(w=>!(w.contractAddress===d&&w.tokenId===u));return{...h,items:g,total:Math.max(0,h.total-(h.items.length-g.length))}}return{...h,items:h.items.map(g=>g.contractAddress===d&&g.tokenId===u?Ui(g,l):g)}})}:$),t.setQueriesData({queryKey:["secondary-sale-state"]},$=>{var g;if(!$)return $;const h={...$};return l.kind==="removed"||l.kind==="gone"?delete h[x]:h[x]={priceCredits:l.priceCredits,tradeId:l.tradeId??((g=h[x])==null?void 0:g.tradeId)??""},h})}function kd(t){return!(t.isMarket||t.forSale&&t.priceKnown||t.manage||t.soldOutWithResale||!t.stillResolving&&!t.resolvingTrade&&(t.isTokenRoute?!t.ownedAssetLoading:!t.deepLinkLoading))}const $d="data:image/webp;base64,UklGRqgOAABXRUJQVlA4IJwOAACwOwCdASqEAIsAPj0YikMiIaEWuib4IAPEtQBl0QC/bukK7J6X8cPZP5F69/Nvhj8oPlD3odY/QB8RXPv/C+3n59+izzA/0l/3/9064PmD/bH9Zvey/33r8/2PqC/zH/fdaX6EX7O+nP+3Xwlfub+33tOf/+7N8wTMuJT/znss7V9qD/DcDplr/deudN0/Rcajjp49/Q//7vLR70+4X+tP/R9az//+3r9z/Yk/ZVVfCa+jj+kU2kxc+zPDZIZQYWF19BTevkFTZdPnQBT3YukdDX/AtCNcmvBrFJ96eYkUWaCCtnOpfB+/IETSsPYuwsabIrqSWHYoPBskXi/DUubCFDAf/6+0pCLU1kmMIueWH8HebltZsATbIO+vXwG1gHAXjGECElz7j/+GXHZJM9ORAFgOa/b/pGdMUEE9PfuMHx1G3GpnRw8WEP5FknNoUNOyb6iY5VX/W5w6pnS5r1srs4CXTuHzUJLdvXVpyiQNuBwCyLYlukPjvLuqqHRrv5/jHTa1L+iumi2wLA8NzahM3euE6fvC7shIbIWajyLkVYhWOOdMRjOWdhSN1wi7JvE4t+bFXSVHOX+4DnQxVhhUKacLKMYPHhQKLZSdyYzM66dZ22undenNBcAjNHjBW+9t0W2glcAA/v44VaU8mJJP1Vz1l456kKu23B2wH7M9h1OtAwoGAGj8t///XA7H+OEVSxGjYfFAlM1Upvv/NmvKOBdxK8JXyQLqAqwy0bg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w8J6cXH2BA7K2LAF85VIVNVoRlDLXxjwsBb4heeCxAzkU+gm7I1b5uvL3i2xq/xj+lhL8t6XTKJliRrlPGHQuVR3ZceU87KLxOQcICfVOCe7B88mxyvsB2FmiotOM3UOnG+VcZ3jL1W+JFDzYyR9Y3KsZNaeJAazd5ajmnZLTYIY7gJ4N4t99U2hY/CMgI0yMNLaq3cJB0CNBsd1hRKl7lZ1wMh16/EZx5jig5JWvlZNPTMuJFHvpW42fyFjIfKslwVHB/SJKWDRr3w9uFCRm/Z3ABn2ydMFGvXjMZEaTsZlqF17J76wjrLkgmgcbtrtL9N8T3dXsKhM4LPscSPo2kc9MfW3dmjuo98vCdxBR/RvMAgm0VzEuXulny1QdmDMzoBUfPseIFkTNYFg89+m4OKn/8Xc28jcPteGx8v0vwYyKNlOAZvi/yt7OImF7kADj+rzqjSoqwVTnCCjOKrF1Gt1i+6oeDggdd5wEh1ghvxdHELxvJeJE8x82cfHEVXhE9Nheu7Q1WycLXUTZA8oZHsdBaBFpk6vyYdYFT8YTShaCjPle1+2DJHzXzhRUQ6ZY/HcDs/vS2V8+jO+pjV23u5WL6yRWULzVi+0qUXIiJzd9qj65YnWPMxIubcSpm+5n8vMpysoMuGzoNwBmNszF+S+b8acZRgm2Gi0UT5OGuYwq4wZ5kmd8OqnDzhze2RxwMRtRm+17eKYWzLWtgVuOca/HWuBI58UC9FNZtBLv1l2htg7Iyehb/cr9uKvXkPXh0LFeyfEc49dOsGvppssGqOAAAAA=",Id=a.div`
|
|
1
|
+
import{r as c,j as e,b as lt,L as ir,d as hs,a as ar}from"./react-BaEtM5XJ.js";import{s as a,a as n,aL as Qe,t as i,I as P,aw as xs,E as ve,N as Ge,C as ze,bl as zi,a5 as en,c as st,y as ot,bo as rr,bp as fs,F as dt,bz as ms,bA as gs,R as X,bH as $e,bG as we,bI as Fn,d as ue,bF as pn,bE as sr,i as bs,h as ys,M as gt,bn as ws,bm as or,O as vs,bB as js,bC as ks,c_ as $s,c$ as Cs,d0 as Is,d1 as Ss,x as te,aP as As,a8 as tn,bh as nn,G as On,bi as rt,p as lr,H as Pt,c6 as dr,B as Je,ax as ye,d2 as Ms,a6 as zs,l as Rs,n as Ps,o as wt,aJ as hn,af as cr,d3 as Ri,cM as Ls,f as ur,aK as Ts,d4 as Es,c5 as Fs,d5 as Bs,bR as Ns,d6 as Ws,d7 as Ds,k as Os,al as Rt,b9 as qs,d8 as Ks,ab as Hs,d9 as Us,bb as Qs,da as Gs,S as pr,Z as hr,db as xr,dc as _s,dd as Vs,e as fr,de as Js,df as Ys,dg as Xs,dh as Zs,di as eo,L as to,dj as xn,Y as no,br as io,bs as ao,z as ro,m as so,dk as oo,dl as lo,dm as co,dn as uo,dp as po,ay as ho,az as xo,dq as fo,A as mo,dr as go,aC as Pi,aB as Li,ds as bo,dt as yo,a1 as wo,by as vo,du as Ti,dv as jo,dw as ko,dx as $o,dy as Co,dz as Io,dA as So,dB as Ao,dC as Mo}from"./index-BG7qJ3Aa.js";import{d as Ae}from"./dcl-schemas-CmSCesR5.js";import{N as Ei,a0 as zo,V as Ro,R as mr,M as Po,S as Lo,C as To,H as Eo,a as Fo,T as Bo,X as No,b as Wo,B as Do,c as Oo,d as qo,e as Ko,f as at,g as Ho,h as Uo,i as Qo,j as Go,k as ft,l as De,W as Ut,o as Qt,p as Gt,q as _o,x as Vo,y as Jo,z as Yo,D as Xo,E as Zo,F as el,G as tl,I as nl,J as il,K as al,L as gr,P as br,m as yr,n as wr,a2 as rl,a3 as sl,a4 as Fi,A as ol,r as ll,s as dl,t as cl,u as ul,v as pl,w as hl,a5 as Bi,a6 as xl,a7 as fl,a8 as ml,a9 as gl,Y as bl,O as yl,Q as wl,U as vl}from"./CollectionCarousel-CrO5pEgo.js";import{j as Ni,b as jl,d as kl,v as $l,i as Cl,e as Il,a as Sl,o as Al,w as Wi,G as Ml,c as zl}from"./buy-DhVTrZNv.js";import{a as Rl,b as Pl}from"./builder-B5xu14hD.js";import{u as Ll,M as Tl,f as El,b as Fl,c as Bl}from"./useCreditPacks-CQnl_Fa8.js";import{m as Di}from"./mana-matic-CEqvSwrJ.js";import{m as Nl}from"./mana-matic-light-Bl5duieC.js";import{l as vr,g as jr,o as Wl,n as Dl,a as Oi,b as kr,i as Ol,r as ql,m as Kl,k as Hl}from"./authorizations-mOwNJkid.js";import{J as Ul,p as Ql,C as Gl,I as _l}from"./ethers-tJNwaRFg.js";import{a as Vl,w as $r,S as Cr,G as Ir,c as Jl}from"./buy-gasless-CaOBmjwx.js";import{R as qi}from"./resume-buy-DjpxQ16x.js";import{a as Yl,f as _e,i as yt}from"./errors-u0_epNfV.js";import{C as Xl}from"./Confetti-D8VQEKfB.js";import{b as Zl,J as ed,a as td}from"./jump-Dh2r-J5T.js";import{c as nd,i as an,D as id,S as ad,a as rd}from"./SaleCountdown-BOp8aJfy.js";import{p as Sr}from"./import-BWdTYI20.js";import{E as Ve}from"./ErrorNotice-DgLTEx75.js";import{L as Ki,M as sd,B as od,H as ld,T as dd,A as cd}from"./modal.styles-CUboNT-w.js";import{S as ud}from"./Spinner-BynqtNdl.js";import{M as pd,E as hd,s as xd}from"./sendMetaTransaction-BIO5pykC.js";import{E as fd}from"./EmotePlaybackBar-CaJAXuFm.js";import{d as md}from"./disposePreview-DVwGA7Ub.js";import{S as gd,T as _t}from"./categories-CVmtX9AQ.js";import{c as bd}from"./crumbs.styles-CWDzzCAG.js";import"./sentry-CpILff32.js";import"./intl-AKLEHPeO.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]="bcee193a-31d8-474b-8ef8-f7b57f1a2f81",t._sentryDebugIdIdentifier="sentry-dbid-bcee193a-31d8-474b-8ef8-f7b57f1a2f81")}catch{}})();const Ar=216n,yd=(1n<<Ar)-1n;function wd(t){const s=typeof t=="bigint"?t:BigInt(t.trim());if(s<0n)throw new Error(`Invalid tokenId: ${String(t)}`);return{itemId:(s>>Ar).toString(),issuedId:(s&yd).toString()}}function vd(t){if(!t)return null;try{return wd(t).itemId}catch{return null}}const Mr=["cancelled-listings"];function jd(t,s){s&&t.setQueryData(Mr,l=>l!=null&&l.includes(s)?l:[...l??[],s])}function Hi(t,s){var l;if(s)return(l=t.getQueryData(Mr))!=null&&l.includes(s)?void 0:s}function Ui(t,s){return s.kind==="listed"?{...t,isOnSale:!0,listingPrice:s.priceCredits,tradeId:s.tradeId??t.tradeId}:{...t,isOnSale:!1,listingPrice:void 0,tradeId:void 0}}function fn(t,s,l){const{address:o,contractAddress:d,tokenId:u}=s;if(!d||!u)return;const x=`${d}-${u}`;t.cancelQueries({queryKey:["owned-token",d,u]}),t.cancelQueries({queryKey:["secondary-sale-state"]}),o&&t.cancelQueries({queryKey:["my-assets",o]});const m=l.kind==="gone";t.setQueriesData({queryKey:["owned-token",d,u]},$=>$&&(m?null:Ui($,l)));const y=o?["my-assets",o]:["my-assets"];t.setQueriesData({queryKey:y},$=>$!=null&&$.pages?{...$,pages:$.pages.map(h=>{if(m){const g=h.items.filter(w=>!(w.contractAddress===d&&w.tokenId===u));return{...h,items:g,total:Math.max(0,h.total-(h.items.length-g.length))}}return{...h,items:h.items.map(g=>g.contractAddress===d&&g.tokenId===u?Ui(g,l):g)}})}:$),t.setQueriesData({queryKey:["secondary-sale-state"]},$=>{var g;if(!$)return $;const h={...$};return l.kind==="removed"||l.kind==="gone"?delete h[x]:h[x]={priceCredits:l.priceCredits,tradeId:l.tradeId??((g=h[x])==null?void 0:g.tradeId)??""},h})}function kd(t){return!(t.isMarket||t.forSale&&t.priceKnown||t.manage||t.soldOutWithResale||!t.stillResolving&&!t.resolvingTrade&&(t.isTokenRoute?!t.ownedAssetLoading:!t.deepLinkLoading))}const $d="data:image/webp;base64,UklGRqgOAABXRUJQVlA4IJwOAACwOwCdASqEAIsAPj0YikMiIaEWuib4IAPEtQBl0QC/bukK7J6X8cPZP5F69/Nvhj8oPlD3odY/QB8RXPv/C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vwYyKNlOAZvi/yt7OImF7kADj+rzqjSoqwVTnCCjOKrF1Gt1i+6oeDggdd5wEh1ghvxdHELxvJeJE8x82cfHEVXhE9Nheu7Q1WycLXUTZA8oZHsdBaBFpk6vyYdYFT8YTShaCjPle1+2DJHzXzhRUQ6ZY/HcDs/vS2V8+jO+pjV23u5WL6yRWULzVi+0qUXIiJzd9qj65YnWPMxIubcSpm+5n8vMpysoMuGzoNwBmNszF+S+b8acZRgm2Gi0UT5OGuYwq4wZ5kmd8OqnDzhze2RxwMRtRm+17eKYWzLWtgVuOca/HWuBI58UC9FNZtBLv1l2htg7Iyehb/cr9uKvXkPXh0LFeyfEc49dOsGvppssGqOAAAAA=",Id=a.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
gap: 24px;
|
|
@@ -64,14 +64,14 @@ import{r as c,j as e,u as lt,L as ir,d as hs,b as ar}from"./react-BDtnT4_L.js";i
|
|
|
64
64
|
width: 120px;
|
|
65
65
|
height: 120px;
|
|
66
66
|
}
|
|
67
|
-
`,
|
|
67
|
+
`,Pd=a.div`
|
|
68
68
|
flex: 1 1 0;
|
|
69
69
|
min-width: 0;
|
|
70
70
|
display: flex;
|
|
71
71
|
flex-direction: column;
|
|
72
72
|
gap: 32px;
|
|
73
73
|
padding: 8px;
|
|
74
|
-
`,
|
|
74
|
+
`,Ld=a.p`
|
|
75
75
|
margin: 0;
|
|
76
76
|
font-family: ${n.font.sans};
|
|
77
77
|
font-weight: 600;
|
|
@@ -366,7 +366,7 @@ import{r as c,j as e,u as lt,L as ir,d as hs,b as ar}from"./react-BDtnT4_L.js";i
|
|
|
366
366
|
font-size: 14px;
|
|
367
367
|
line-height: 1.334;
|
|
368
368
|
color: ${n.colors.text2};
|
|
369
|
-
`;function qd({item:t,priceCredits:s,priceCents:l,options:o,priceManaWei:d,balanceCredits:u,manaBalanceWei:x,onBuy:m,onClose:y,busy:$=!1,notice:h}){const g=o.find(A=>A.method==="credits")??null,w=o.find(A=>A.method==="mana")??null,k=o.find(A=>A.method==="combined")??null,[I,C]=c.useState(()=>g?new Set(["credits"]):k?new Set(["credits","mana"]):w?new Set(["mana"]):new Set),S=!!g||!!k,B=!!w||!!k;c.useEffect(()=>{C(A=>{const R=new Set(A);return R.has("credits")&&!S&&R.delete("credits"),R.has("mana")&&!B&&R.delete("mana"),R.size===A.size?A:R})},[S,B]);const f=I.has("credits"),N=I.has("mana"),r=f&&N?k?"combined":null:f?g?"credits":null:N&&w?"mana":null,E=r==="combined"&&k?k.credits:(g==null?void 0:g.credits)??Qe(l),Y=r==="combined"&&k?k.manaWei:(w==null?void 0:w.manaWei)??d;function U(A){C(R=>{const K=new Set(R);return K.has(A)?K.delete(A):K.add(A),K})}return e.jsxs(Id,{children:[e.jsxs(Sd,{children:[e.jsx(Ad,{children:i("buyModal.choosePayment")}),e.jsx(Md,{onClick:y,disabled:$,"aria-label":i("buyModal.close"),children:e.jsx(L,{name:"close",className:"ico"})})]}),e.jsxs(zd,{children:[e.jsx(Rd,{children:t.thumbnail?e.jsx("img",{src:t.thumbnail,alt:""}):null}),e.jsxs(Ld,{children:[e.jsxs("div",{children:[e.jsx(Pd,{title:t.name,children:t.name||i("buyModal.itemFallback")}),t.creator?e.jsx(Td,{children:e.jsx(xs,{address:t.creator})}):null]}),e.jsxs(Ed,{children:[e.jsx(ve,{}),e.jsx("span",{children:Ge(s)})]})]})]}),e.jsxs(Fd,{children:[e.jsxs(Qi,{type:"button","data-testid":"pay-with-credits","data-selected":f,"data-disabled":!S,disabled:$||!S,"aria-pressed":f,onClick:()=>U("credits"),children:[e.jsx(Gi,{children:e.jsx(_i,{"data-checked":f,children:e.jsx(L,{name:"check",className:"ico"})})}),e.jsxs(Vi,{children:[e.jsxs(Ji,{children:[e.jsx(Yi,{children:e.jsx(Xi,{src:$d,w:32.582,h:34.401,alt:"","aria-hidden":!0})}),e.jsxs(Zi,{children:[e.jsx(ea,{children:ze.name}),e.jsxs(ta,{children:[i("buyModal.creditsBalanceLabel"),e.jsx(ve,{}),e.jsx(na,{children:Ge(u)})]})]})]}),e.jsx(aa,{children:e.jsxs(ia,{children:[e.jsx(ve,{}),e.jsx("span",{children:Ge(E)})]})})]})]}),e.jsxs(Qi,{type:"button","data-testid":"pay-with-mana","data-selected":N,"data-disabled":!B,disabled:$||!B,"aria-pressed":N,onClick:()=>U("mana"),children:[e.jsx(Gi,{children:e.jsx(_i,{"data-checked":N,children:e.jsx(L,{name:"check",className:"ico"})})}),e.jsxs(Vi,{children:[e.jsxs(Ji,{children:[e.jsx(Yi,{children:e.jsx(Xi,{src:Cd,w:35.328,h:35.328,alt:"","aria-hidden":!0})}),e.jsxs(Zi,{children:[e.jsx(ea,{children:i("buyModal.methodMana")}),e.jsxs(ta,{children:[i("buyModal.manaBalanceLabel"),e.jsx(Nd,{src:Di,alt:"","aria-hidden":!0}),e.jsx(na,{children:zi(x)})]})]})]}),e.jsx(aa,{children:B?e.jsx(e.Fragment,{children:e.jsxs(ia,{children:[e.jsx(Wd,{src:Di,alt:"","aria-hidden":!0}),e.jsx("span",{children:zi(Y)})]})}):e.jsx(Dd,{"data-testid":"mana-shortfall-note",children:i("buyModal.notEnoughMana")})})]})]})]}),h?e.jsx(Od,{"data-testid":"price-changed",role:"status",children:h}):null,e.jsx(Bd,{type:"button","data-testid":"confirm-payment",disabled:$||r===null,onClick:()=>r&&m(r),children:i("buyModal.buy")})]})}function zr(){const t=new Map,s=new Set,l=new Set,o=new Set;return{submitStarted:d=>{o.add(d)},submitFinished:d=>{o.delete(d)},broadcast:(d,u)=>{const x=t.get(d);x?x.add(u):t.set(d,new Set([u]))},reverted:d=>{s.add(d)},unobservable:d=>{l.add(d)},isInFlight:d=>o.has(d),mayBeConsumed:d=>{if(l.has(d))return!0;const u=t.get(d);if(!u)return!1;for(const x of u)if(!s.has(x))return!0;return!1}}}const Kd=Ql("0.05");async function Hd(t){try{return(await new Ul(st.rpcUrl).getBalance(t)).gte(Kd)}catch{return!1}}async function Ud(t,s){return en(t)?Hd(s):!1}function Qd({size:t=64,...s}){return e.jsxs("svg",{viewBox:"0 0 64 64",width:t,height:t,"aria-hidden":!0,...s,children:[e.jsx("circle",{cx:"32",cy:"32",r:"32",fill:"#34ce74"}),e.jsx("path",{d:"M20 33l8 8 16-18",fill:"none",stroke:"#fff",strokeWidth:"5",strokeLinecap:"round",strokeLinejoin:"round"})]})}const Gd=t=>ks(t.contractAddress,String(t.itemId));async function ra(t,s={}){if(t.kind==="store")return BigInt(t.mint.item.priceWei);try{return $s(await Cs(t.trade),t.coupon)}catch(l){return s.reportFailure!==!1&&ue(l,{flow:"buy",step:"mana_price"}),null}}function sa(t){return t.kind==="trade"?t.trade.id:void 0}function oa(t){return t.contractAddress&&t.itemId!=null?{contractAddress:t.contractAddress,itemId:String(t.itemId)}:void 0}function Bn({item:t,onClose:s,resume:l=!1}){var Nt,$t;const{session:o}=ot(),{data:d}=rr(o),{data:u}=fs(o),x=dt(),m=lt();async function y(){try{return await x.fetchQuery(js())}catch{return}}async function $(){if(u!=null)return u;if(!o)return 0n;try{const b=await x.fetchQuery({queryKey:["mana-balance",o.address],queryFn:()=>Ss(o.address),staleTime:3e4});return ee(b),b}catch{return 0n}}const h=Pl().packs.slice(0,Tl),[g,w]=c.useState("loading"),[k,I]=c.useState(null),[C,S]=c.useState(null),[B,f]=c.useState(!1),[N,r]=c.useState(0),[E,Y]=c.useState(""),[U,A]=c.useState(t.priceCredits),R=Math.max(0,U-((d==null?void 0:d.credits)??0)),K=(()=>{if(R<=0)return h;const b=h.filter(M=>M.credits>=R);return b.length>0?b:h})(),[G,ne]=c.useState(null),[de,ee]=c.useState(null),_=u??de??0n,[O,H]=c.useState(!1),[v,fe]=c.useState(null),[P,F]=c.useState(0),[z,se]=c.useState(null),[ie,xe]=c.useState(!1),Q=c.useRef(null),oe=c.useRef(!1),Z=c.useRef(zr()),Ce=(z==null?void 0:z.credits)??U,ce=(d==null?void 0:d.credits)??0;c.useEffect(()=>(oe.current=!1,()=>{oe.current=!0}),[]);async function V(b,M,T,W){const J=await $();if(W!=null&&W())return;const ae=J>0n,D=ae?await ra(M):null;if(W!=null&&W())return;D!=null?ne(D):ae&&H(!0);const Se=Ei({priceCents:T,priceManaWei:D??0n,balanceCents:(d==null?void 0:d.balanceCents)??0,manaBalanceWei:J}).options.some(pt=>pt.method==="mana"||pt.method==="combined"),Re=b-((d==null?void 0:d.credits)??0),ut=h.find(pt=>pt.credits>=Re)??h[h.length-1];Y(ut.id),Se||X("Shop Buy Credits Prompted",{from:"item_checkout",credits_needed:b,credits_balance:(d==null?void 0:d.credits)??0,shortfall:Math.max(0,Re)}),w("nofunds")}c.useEffect(()=>{let b=!1;if(!o){w("error"),I(i("buyModal.signInToCheckout"));return}return(async()=>{try{const M=await El(t,o.address,ms,await y(),Gd,gs);if(M.status==="own")throw new Error("You can't buy your own listing.");if(M.status==="no-price")throw new Error("price unavailable");if(M.status!=="buyable")throw new Error("not for sale");const T=Fl(M.line),W=M.line.usdCents,J=Qe(W);if(b)return;if(A(J),fe(T),F(W),d!=null&&d.credits<J){await V(J,T,W,()=>b);return}l?qe({sale:T,usdCents:W}):w("ready")}catch(M){if(b)return;X(we(M)?"Shop Purchase Cancelled":"Shop Purchase Failed",{step:"resolve",error_code:$e(M)}),Ne(M)}})(),()=>{b=!0,Q.current&&o&&(on([Q.current]),Q.current=null)}},[N]),c.useEffect(()=>{const b=(z==null?void 0:z.sale)??v;if(!b||g!=="ready"&&g!=="nofunds"||_<=0n||G!==null)return;let M=!1;return ra(b,{reportFailure:!O}).then(T=>{M||(T!=null?ne(T):H(!0))}),()=>{M=!0}},[g,z,v,_,G,O]);const Be=Ei({priceCents:P,priceManaWei:G??0n,balanceCents:(d==null?void 0:d.balanceCents)??0,manaBalanceWei:_});async function qe(b){const M=(z==null?void 0:z.sale)??(b==null?void 0:b.sale)??v,T=(z==null?void 0:z.usdCents)??(b==null?void 0:b.usdCents)??P;if(!o||!M||T<=0)return;w("processing"),I(null),xe(!1);let W=z;if(!W)try{const{credit:D,maxCreditedValue:pe,usdCents:Se}=await Fn(o.identity,T,sa(M),oa(t));if(oe.current){be([D.id]);return}Q.current=D.id,x.invalidateQueries({queryKey:["usd-balance"]});const Re=Qe(Se);if(W={sale:M,credit:D,maxCreditedValue:pe,usdCents:Se,credits:Re},se(W),Re!==Qe(T)){A(Re),F(Se),xe(!0),w("ready");return}}catch(D){if(Yl(D)){x.invalidateQueries({queryKey:["usd-balance"]}),await V(Qe(T),M,T);return}we(D)||ue(D,{flow:"buy",step:"authorize"}),X(we(D)?"Shop Purchase Cancelled":"Shop Purchase Failed",{step:"authorize",error_code:$e(D)}),I(_e(D,i("buyModal.error.generic"),{sale:!0})),w("error");return}if(!W)return;let J=!1,ae;try{const D={purchase:zo(W.sale,[W.credit],W.maxCreditedValue),buyer:o.address,signer:o.signer,onBroadcast:({txHash:pe})=>Z.current.broadcast(W.credit.id,pe),onReverted:({txHash:pe})=>{pe&&Z.current.reverted(pe)}};if(Z.current.submitStarted(W.credit.id),vr())try{ae=await Vl(D),Z.current.broadcast(W.credit.id,ae),await $r(ae),J=!0}catch(pe){if(pe instanceof Cr)J=!0;else if(pe instanceof Ir){if(pe.reason==="relayer-unreachable")throw Z.current.unobservable(W.credit.id),pe;if(!en(o.providerType))throw pe;ae=await Ni(D)}else throw ae&&Z.current.reverted(ae),pe}else ae=await Ni(D)}catch(D){Z.current.submitFinished(W.credit.id),we(D)||ue(D,{flow:"buy",step:"submit",gasless:J}),Xe([W.credit.id]),Q.current=null,X(we(D)?"Shop Purchase Cancelled":"Shop Purchase Failed",{step:"submit",error_code:$e(D)}),x.invalidateQueries({queryKey:["usd-balance"]}),Ne(D);return}Z.current.submitFinished(W.credit.id),Q.current=null;try{Ro(x,t),X("Shop Completed Purchase",{...pn([t]),payment_type:"credits",no_crypto_step:J,transaction_hash:ae??null})}catch(D){ue(D,{flow:"buy",step:"post_purchase"})}w("complete")}function be(b){if(!o||b.length===0)return Promise.resolve(!1);const M=b.filter(T=>!Z.current.mayBeConsumed(T));return M.length===0?Promise.resolve(!1):sr(o.identity,M).then(()=>!0,()=>!0)}function Xe(b){f(!0),be(b).then(M=>{M||f(!1)})}function on(b){return be(b.filter(M=>!Z.current.isInFlight(M)))}function Pt(){x.invalidateQueries({queryKey:["mana-balance"]}),x.invalidateQueries({queryKey:["usd-balance"]}),x.invalidateQueries({queryKey:["detail-trade"]}),x.invalidateQueries({queryKey:["shop-item"]}),x.invalidateQueries({queryKey:["owned-token",t.contractAddress,t.tokenId]}),x.invalidateQueries({queryKey:["public-token",t.contractAddress,t.tokenId]}),x.invalidateQueries({queryKey:["item-resales",t.contractAddress,t.itemId]}),x.invalidateQueries({queryKey:["shop-items"]}),x.invalidateQueries({queryKey:["catalog-items"]}),x.invalidateQueries({queryKey:["my-assets"]}),x.invalidateQueries({queryKey:["purchases"]}),x.invalidateQueries({queryKey:["owned-item-count"]}),x.invalidateQueries({queryKey:["overview-listings"]}),x.invalidateQueries({queryKey:["upsell-listings"]})}async function Tt(){var M;const b=(z==null?void 0:z.sale)??v;if(!(!o||!b)){Q.current&&(Xe([Q.current]),Q.current=null),w("processing"),I(null);try{const T=(M=Bi(Be,"mana"))==null?void 0:M.manaWei,W=b.kind==="trade"?await xl({trade:b.trade,coupon:b.coupon,buyer:o.address,signer:o.signer,manaWei:T}):await fl({mint:b.mint,buyer:o.address,signer:o.signer,manaWei:T});X("Shop Completed Purchase",{...pn([t]),payment_type:"mana",transaction_hash:W??null}),Pt(),w("complete")}catch(T){we(T)||ue(T,{flow:"buy_mana",step:"submit"}),X(we(T)?"Shop Purchase Cancelled":"Shop Purchase Failed",{step:"submit",error_code:$e(T)}),Ne(T)}}}async function vt(){const b=(z==null?void 0:z.sale)??v,M=Bi(Be,"combined");if(!o||!b||!M)return;w("processing"),I(null),Q.current&&(await be([Q.current])&&f(!0),Q.current=null);let T=null,W;try{const{credit:J}=await Fn(o.identity,M.creditsCents,sa(b),oa(t));T=J.id,Z.current.submitStarted(J.id);const ae={buyer:o.address,signer:o.signer,credits:[J],manaGapWei:M.manaWei,providerType:o.providerType,onBroadcast:({txHash:D})=>Z.current.broadcast(J.id,D),onReverted:({txHash:D})=>{D&&Z.current.reverted(D)},onUnobservable:()=>Z.current.unobservable(J.id)};W=b.kind==="trade"?await ml({trade:b.trade,coupon:b.coupon,...ae}):await gl({mint:b.mint,...ae})}catch(J){T&&Z.current.submitFinished(T),T&&Xe([T]),we(J)||ue(J,{flow:"buy_credits_and_mana",step:"submit"}),X(we(J)?"Shop Purchase Cancelled":"Shop Purchase Failed",{step:"submit",error_code:$e(J)}),x.invalidateQueries({queryKey:["usd-balance"]}),Ne(J);return}T&&Z.current.submitFinished(T);try{Pt(),X("Shop Completed Purchase",{...pn([t]),payment_type:"credits_and_mana",transaction_hash:W??null})}catch(J){ue(J,{flow:"buy_credits_and_mana",step:"post_purchase"})}w("complete")}async function Ze(){if(!(!E||!o)){try{sessionStorage.setItem(qi,JSON.stringify(t))}catch{}Q.current&&(be([Q.current]),Q.current=null),se(null),w("loading");try{const b=await Bl(E,{address:o.address,identity:o.identity});if(b.url){window.location.href=b.url;return}m("/credits")}catch(b){ue(b,{flow:"buy_credits_and_item"});try{sessionStorage.removeItem(qi)}catch{}I(i("buyModal.error.creditsCheckout")),w("error")}}}const[ke,ct]=c.useState(null);function me(b,M){const{spender:T,chainId:W}=bl(b,M);return Dl(W,T)}function Ne(b){if(I(_e(b,i("buyModal.error.generic"),{sale:!0})),w("error"),!bs(b)||!o)return;const M=b.required;(async()=>{if(await Ud(o.providerType,o.address)){S(M);return}I(i("buyModal.error.relayDownNoRail"))})()}async function Ke(b){if(o){S(null);try{await Is(o.web3Provider,b)}catch(M){we(M)||ue(M,{flow:"buy",step:"switch_chain"}),S(b);return}Ft()}}function He(b){b==="mana"?Tt():b==="combined"?vt():qe()}const We=c.useRef(!1);async function Ie(b){var M;if(!We.current){We.current=!0;try{const T=(z==null?void 0:z.sale)??v;if(b==="credits"||!T||!o){He(b);return}const W=me(b,T),J=((M=Be.options.find(D=>D.method===b))==null?void 0:M.manaWei)??0n,ae=await jr(W,o.address,J).catch(()=>!0);if(Wl(o.providerType,ae)){ct({auth:W,rail:b});return}He(b)}finally{We.current=!1}}}const jt=Be.options.some(b=>b.method==="mana"||b.method==="combined"),Et=g==="ready"&&(jt||Be.manaShortfall!=null)||g==="nofunds"&&jt;function Ft(){I(null),se(null),xe(!1),f(!1),w("loading"),r(b=>b+1)}const et=g==="error"&&C===null&&(!!Q.current||B),kt=g==="processing",Bt=g==="complete"?i("buyModal.titleComplete"):g==="error"?i("cartCheckout.errorTitle"):g==="nofunds"?i("buyModal.titleNoFunds"):i("buyModal.titleBuy");return ke&&o?e.jsx(mr,{auth:ke.auth,signer:o.signer,title:i(ke.rail==="mana"?"authorizeStep.manaTitle":"authorizeStep.buyTitle"),name:i(ke.rail==="mana"?"authorizeStep.manaName":"authorizeStep.buyName"),reason:i(ke.rail==="mana"?"authorizeStep.manaReason":"authorizeStep.buyReason"),icon:e.jsx("img",{src:Nl,width:24,height:24,alt:"","aria-hidden":!0}),onAuthorized:()=>{const{rail:b}=ke;ct(null),He(b)},onCancel:()=>ct(null),onClose:()=>{ct(null),s()}}):e.jsxs(Lo,{role:"dialog","aria-modal":"true","aria-label":i("buyModal.dialogAria",{name:t.name}),"data-testid":"buy-modal",children:[e.jsx(Po,{onClick:kt?void 0:s,"aria-hidden":!0}),e.jsx(To,{"data-tall":g==="processing"||g==="loading"||void 0,children:Et?e.jsx(qd,{item:t,priceCredits:Ce,priceCents:P,options:Be.options,priceManaWei:G??0n,balanceCredits:ce,manaBalanceWei:_,onBuy:b=>void Ie(b),onClose:s,busy:kt,notice:ie?i("buyModal.priceChanged"):d!=null&&d.held?i("buyModal.heldExplainer",{credits:d.held.credits,currency:ze.name}):null}):e.jsxs(e.Fragment,{children:[e.jsxs(Eo,{children:[e.jsxs(Fo,{children:[e.jsx(Bo,{children:Bt}),!kt&&e.jsx(No,{onClick:s,"aria-label":i("buyModal.close"),children:e.jsx(Wo,{})})]}),e.jsxs(Do,{children:[e.jsx(Oo,{children:g==="nofunds"?i("buyModal.dclBalance"):i("buyModal.myCreditsBalance")}),e.jsx(qo,{}),e.jsx(Ko,{children:Ge(ce)})]})]}),g==="loading"&&e.jsx(at,{"data-processing":!0,children:e.jsx("span",{className:"spinner","aria-hidden":!0})}),g==="error"&&e.jsxs(at,{children:[e.jsxs(Ho,{"data-testid":"buy-error",children:[e.jsx(Uo,{src:Qo,alt:"",width:64,height:80}),e.jsxs(Go,{children:[e.jsx("b",{children:i("cartCheckout.errorHeadline")})," ",k??(et?null:i("cartCheckout.errorBody")),et?e.jsxs(e.Fragment,{children:[k?" ":"",i("cartCheckout.heldLead",{currency:ze.name}),e.jsx("b",{children:i("cartCheckout.heldBold")}),i("cartCheckout.heldTail",{currency:ze.name})]}):null]})]}),C!==null?e.jsxs(ft,{children:[e.jsx(De,{"data-variant":"outline",onClick:s,children:i("buyModal.cancel")}),e.jsx(De,{"data-variant":"purple","data-testid":"switch-and-retry",onClick:()=>void Ke(C),children:i("buyModal.error.switchAndRetry",{network:ys(C)})})]}):et?e.jsx(ft,{children:e.jsx(De,{"data-variant":"purple","data-full":!0,onClick:s,children:i("cartCheckout.gotIt")})}):e.jsxs(ft,{children:[e.jsx(De,{"data-variant":"outline",onClick:s,children:i("buyModal.cancel")}),e.jsx(De,{"data-variant":"purple",onClick:Ft,children:i("cartCheckout.tryAgain")})]})]}),g==="nofunds"&&e.jsxs(at,{children:[O&&G===null&&_>0n?e.jsxs(Ut,{"data-testid":"mana-price-unavailable",children:[e.jsx(Qt,{}),e.jsx(Gt,{children:i("buyModal.manaPriceUnavailable")})]}):null,d!=null&&d.held?e.jsxs(Ut,{"data-testid":"nofunds-held",children:[e.jsx(Qt,{}),e.jsx(Gt,{children:i("buyModal.heldExplainer",{credits:d.held.credits,currency:ze.name})})]}):null,e.jsxs(Ut,{children:[e.jsx(Qt,{}),e.jsxs(Gt,{children:[e.jsx("b",{children:i("buyModal.insufficientFunds")})," ",i("buyModal.warningNeedToBuy")," ",e.jsx("b",{children:i("buyModal.warningCreditsAmount",{count:Math.max(1,Ce-ce)})})," ",i("buyModal.warningToPurchase",{count:1}),gt()?null:e.jsxs(e.Fragment,{children:[" ",e.jsx(_o,{href:ws("/credits"),target:"_blank",rel:"noopener noreferrer",children:i("buyModal.warningLearnMore")})]})]})]}),e.jsx(la,{item:t,priceCredits:Ce}),gt()?null:e.jsxs(e.Fragment,{children:[e.jsx(Vo,{"data-testid":"credit-packs",children:K.map(b=>{const M=b.credits,T=b.id===E;return e.jsxs(Jo,{"data-on":T||void 0,onClick:()=>Y(b.id),children:[e.jsx(Yo,{src:Xo,alt:""}),e.jsx(Zo,{children:Ge(M)}),e.jsxs(el,{children:["($",b.usd.toFixed(2),")"]})]},b.id)})}),e.jsxs(tl,{children:[e.jsxs(nl,{children:[e.jsx(il,{}),e.jsx("span",{children:Ge(((Nt=K.find(b=>b.id===E))==null?void 0:Nt.credits)??0)})]}),e.jsxs(al,{children:["$",((($t=K.find(b=>b.id===E))==null?void 0:$t.usd)??0).toFixed(2)]})]})]}),e.jsxs(ft,{children:[e.jsx(De,{"data-variant":"outline",onClick:s,children:i("buyModal.cancel")}),gt()?null:e.jsx(De,{"data-variant":"gradient",onClick:()=>void Ze(),children:i("buyModal.buy")})]})]}),g==="ready"&&e.jsxs(at,{children:[ie&&e.jsxs(Ut,{"data-testid":"price-changed",role:"status",children:[e.jsx(Qt,{}),e.jsx(Gt,{children:i("buyModal.priceChanged")})]}),e.jsx(la,{item:t,priceCredits:Ce}),e.jsx(ft,{children:e.jsx(De,{"data-variant":"gradient","data-full":!0,onClick:()=>void qe(),children:i("buyModal.buy")})})]}),g==="processing"&&e.jsxs(at,{"data-processing":!0,children:[e.jsx(gr,{src:or,alt:"",width:61,height:61}),e.jsx(br,{children:l?i("buyModal.completingPurchase"):i("buyModal.completingTransaction")}),e.jsx(yr,{"aria-hidden":!0,children:e.jsx(wr,{})})]}),g==="complete"&&e.jsxs(at,{children:[e.jsx(Xl,{}),e.jsxs(rl,{children:[e.jsx(Qd,{}),e.jsxs(sl,{children:[e.jsx("b",{children:i("getCredits.successTitle")})," ",i("buyModal.successBody")]})]}),e.jsxs(ft,{"data-stack":!0,children:[e.jsx(De,{"data-variant":"outline",onClick:()=>m(vs([t.category])),children:i("buyModal.myAssets")}),gt()?e.jsx(Fi,{"data-variant":"ruby",href:Zl([t]),onClick:s,children:i("success.goToBackpack")}):e.jsxs(Fi,{"data-variant":"ruby",href:ed,target:"_blank",rel:"noreferrer",onClick:s,children:[i("buyModal.tryInWorld"),e.jsx(td,{})]})]})]})]})})]})}function la({item:t,priceCredits:s}){return e.jsxs(ol,{children:[e.jsx(ll,{children:t.thumbnail?e.jsx("img",{src:t.thumbnail,alt:""}):null}),e.jsxs(dl,{children:[e.jsxs("div",{children:[e.jsx(cl,{title:t.name,children:t.name||i("buyModal.itemFallback")}),t.creator?e.jsx(ul,{address:t.creator}):null]}),e.jsxs(pl,{children:[e.jsx(hl,{}),e.jsx("span",{children:Ge(s)})]})]})]})}function _d(){const{data:t}=te({queryKey:["feature-flag","proceeds-to-treasury"],queryFn:As,staleTime:6e4,refetchOnWindowFocus:!0,retry:1});return t===!0}const Vd=a.div`
|
|
369
|
+
`;function qd({item:t,priceCredits:s,priceCents:l,options:o,priceManaWei:d,balanceCredits:u,manaBalanceWei:x,onBuy:m,onClose:y,busy:$=!1,notice:h}){const g=o.find(A=>A.method==="credits")??null,w=o.find(A=>A.method==="mana")??null,k=o.find(A=>A.method==="combined")??null,[I,C]=c.useState(()=>g?new Set(["credits"]):k?new Set(["credits","mana"]):w?new Set(["mana"]):new Set),S=!!g||!!k,B=!!w||!!k;c.useEffect(()=>{C(A=>{const R=new Set(A);return R.has("credits")&&!S&&R.delete("credits"),R.has("mana")&&!B&&R.delete("mana"),R.size===A.size?A:R})},[S,B]);const f=I.has("credits"),N=I.has("mana"),r=f&&N?k?"combined":null:f?g?"credits":null:N&&w?"mana":null,E=r==="combined"&&k?k.credits:(g==null?void 0:g.credits)??Qe(l),Y=r==="combined"&&k?k.manaWei:(w==null?void 0:w.manaWei)??d;function U(A){C(R=>{const K=new Set(R);return K.has(A)?K.delete(A):K.add(A),K})}return e.jsxs(Id,{children:[e.jsxs(Sd,{children:[e.jsx(Ad,{children:i("buyModal.choosePayment")}),e.jsx(Md,{onClick:y,disabled:$,"aria-label":i("buyModal.close"),children:e.jsx(P,{name:"close",className:"ico"})})]}),e.jsxs(zd,{children:[e.jsx(Rd,{children:t.thumbnail?e.jsx("img",{src:t.thumbnail,alt:""}):null}),e.jsxs(Pd,{children:[e.jsxs("div",{children:[e.jsx(Ld,{title:t.name,children:t.name||i("buyModal.itemFallback")}),t.creator?e.jsx(Td,{children:e.jsx(xs,{address:t.creator})}):null]}),e.jsxs(Ed,{children:[e.jsx(ve,{}),e.jsx("span",{children:Ge(s)})]})]})]}),e.jsxs(Fd,{children:[e.jsxs(Qi,{type:"button","data-testid":"pay-with-credits","data-selected":f,"data-disabled":!S,disabled:$||!S,"aria-pressed":f,onClick:()=>U("credits"),children:[e.jsx(Gi,{children:e.jsx(_i,{"data-checked":f,children:e.jsx(P,{name:"check",className:"ico"})})}),e.jsxs(Vi,{children:[e.jsxs(Ji,{children:[e.jsx(Yi,{children:e.jsx(Xi,{src:$d,w:32.582,h:34.401,alt:"","aria-hidden":!0})}),e.jsxs(Zi,{children:[e.jsx(ea,{children:ze.name}),e.jsxs(ta,{children:[i("buyModal.creditsBalanceLabel"),e.jsx(ve,{}),e.jsx(na,{children:Ge(u)})]})]})]}),e.jsx(aa,{children:e.jsxs(ia,{children:[e.jsx(ve,{}),e.jsx("span",{children:Ge(E)})]})})]})]}),e.jsxs(Qi,{type:"button","data-testid":"pay-with-mana","data-selected":N,"data-disabled":!B,disabled:$||!B,"aria-pressed":N,onClick:()=>U("mana"),children:[e.jsx(Gi,{children:e.jsx(_i,{"data-checked":N,children:e.jsx(P,{name:"check",className:"ico"})})}),e.jsxs(Vi,{children:[e.jsxs(Ji,{children:[e.jsx(Yi,{children:e.jsx(Xi,{src:Cd,w:35.328,h:35.328,alt:"","aria-hidden":!0})}),e.jsxs(Zi,{children:[e.jsx(ea,{children:i("buyModal.methodMana")}),e.jsxs(ta,{children:[i("buyModal.manaBalanceLabel"),e.jsx(Nd,{src:Di,alt:"","aria-hidden":!0}),e.jsx(na,{children:zi(x)})]})]})]}),e.jsx(aa,{children:B?e.jsx(e.Fragment,{children:e.jsxs(ia,{children:[e.jsx(Wd,{src:Di,alt:"","aria-hidden":!0}),e.jsx("span",{children:zi(Y)})]})}):e.jsx(Dd,{"data-testid":"mana-shortfall-note",children:i("buyModal.notEnoughMana")})})]})]})]}),h?e.jsx(Od,{"data-testid":"price-changed",role:"status",children:h}):null,e.jsx(Bd,{type:"button","data-testid":"confirm-payment",disabled:$||r===null,onClick:()=>r&&m(r),children:i("buyModal.buy")})]})}function zr(){const t=new Map,s=new Set,l=new Set,o=new Set;return{submitStarted:d=>{o.add(d)},submitFinished:d=>{o.delete(d)},broadcast:(d,u)=>{const x=t.get(d);x?x.add(u):t.set(d,new Set([u]))},reverted:d=>{s.add(d)},unobservable:d=>{l.add(d)},isInFlight:d=>o.has(d),mayBeConsumed:d=>{if(l.has(d))return!0;const u=t.get(d);if(!u)return!1;for(const x of u)if(!s.has(x))return!0;return!1}}}const Kd=Ql("0.05");async function Hd(t){try{return(await new Ul(st.rpcUrl).getBalance(t)).gte(Kd)}catch{return!1}}async function Ud(t,s){return en(t)?Hd(s):!1}function Qd({size:t=64,...s}){return e.jsxs("svg",{viewBox:"0 0 64 64",width:t,height:t,"aria-hidden":!0,...s,children:[e.jsx("circle",{cx:"32",cy:"32",r:"32",fill:"#34ce74"}),e.jsx("path",{d:"M20 33l8 8 16-18",fill:"none",stroke:"#fff",strokeWidth:"5",strokeLinecap:"round",strokeLinejoin:"round"})]})}const Gd=t=>ks(t.contractAddress,String(t.itemId));async function ra(t,s={}){if(t.kind==="store")return BigInt(t.mint.item.priceWei);try{return $s(await Cs(t.trade),t.coupon)}catch(l){return s.reportFailure!==!1&&ue(l,{flow:"buy",step:"mana_price"}),null}}function sa(t){return t.kind==="trade"?t.trade.id:void 0}function oa(t){return t.contractAddress&&t.itemId!=null?{contractAddress:t.contractAddress,itemId:String(t.itemId)}:void 0}function Bn({item:t,onClose:s,resume:l=!1}){var Nt,$t;const{session:o}=ot(),{data:d}=rr(o),{data:u}=fs(o),x=dt(),m=lt();async function y(){try{return await x.fetchQuery(js())}catch{return}}async function $(){if(u!=null)return u;if(!o)return 0n;try{const b=await x.fetchQuery({queryKey:["mana-balance",o.address],queryFn:()=>Ss(o.address),staleTime:3e4});return ee(b),b}catch{return 0n}}const h=Ll().packs.slice(0,Tl),[g,w]=c.useState("loading"),[k,I]=c.useState(null),[C,S]=c.useState(null),[B,f]=c.useState(!1),[N,r]=c.useState(0),[E,Y]=c.useState(""),[U,A]=c.useState(t.priceCredits),R=Math.max(0,U-((d==null?void 0:d.credits)??0)),K=(()=>{if(R<=0)return h;const b=h.filter(M=>M.credits>=R);return b.length>0?b:h})(),[G,ne]=c.useState(null),[de,ee]=c.useState(null),_=u??de??0n,[O,H]=c.useState(!1),[v,fe]=c.useState(null),[L,F]=c.useState(0),[z,se]=c.useState(null),[ie,xe]=c.useState(!1),Q=c.useRef(null),oe=c.useRef(!1),Z=c.useRef(zr()),Ce=(z==null?void 0:z.credits)??U,ce=(d==null?void 0:d.credits)??0;c.useEffect(()=>(oe.current=!1,()=>{oe.current=!0}),[]);async function V(b,M,T,W){const J=await $();if(W!=null&&W())return;const ae=J>0n,D=ae?await ra(M):null;if(W!=null&&W())return;D!=null?ne(D):ae&&H(!0);const Se=Ei({priceCents:T,priceManaWei:D??0n,balanceCents:(d==null?void 0:d.balanceCents)??0,manaBalanceWei:J}).options.some(pt=>pt.method==="mana"||pt.method==="combined"),Re=b-((d==null?void 0:d.credits)??0),ut=h.find(pt=>pt.credits>=Re)??h[h.length-1];Y(ut.id),Se||X("Shop Buy Credits Prompted",{from:"item_checkout",credits_needed:b,credits_balance:(d==null?void 0:d.credits)??0,shortfall:Math.max(0,Re)}),w("nofunds")}c.useEffect(()=>{let b=!1;if(!o){w("error"),I(i("buyModal.signInToCheckout"));return}return(async()=>{try{const M=await El(t,o.address,ms,await y(),Gd,gs);if(M.status==="own")throw new Error("You can't buy your own listing.");if(M.status==="no-price")throw new Error("price unavailable");if(M.status!=="buyable")throw new Error("not for sale");const T=Fl(M.line),W=M.line.usdCents,J=Qe(W);if(b)return;if(A(J),fe(T),F(W),d!=null&&d.credits<J){await V(J,T,W,()=>b);return}l?qe({sale:T,usdCents:W}):w("ready")}catch(M){if(b)return;X(we(M)?"Shop Purchase Cancelled":"Shop Purchase Failed",{step:"resolve",error_code:$e(M)}),Ne(M)}})(),()=>{b=!0,Q.current&&o&&(on([Q.current]),Q.current=null)}},[N]),c.useEffect(()=>{const b=(z==null?void 0:z.sale)??v;if(!b||g!=="ready"&&g!=="nofunds"||_<=0n||G!==null)return;let M=!1;return ra(b,{reportFailure:!O}).then(T=>{M||(T!=null?ne(T):H(!0))}),()=>{M=!0}},[g,z,v,_,G,O]);const Be=Ei({priceCents:L,priceManaWei:G??0n,balanceCents:(d==null?void 0:d.balanceCents)??0,manaBalanceWei:_});async function qe(b){const M=(z==null?void 0:z.sale)??(b==null?void 0:b.sale)??v,T=(z==null?void 0:z.usdCents)??(b==null?void 0:b.usdCents)??L;if(!o||!M||T<=0)return;w("processing"),I(null),xe(!1);let W=z;if(!W)try{const{credit:D,maxCreditedValue:pe,usdCents:Se}=await Fn(o.identity,T,sa(M),oa(t));if(oe.current){be([D.id]);return}Q.current=D.id,x.invalidateQueries({queryKey:["usd-balance"]});const Re=Qe(Se);if(W={sale:M,credit:D,maxCreditedValue:pe,usdCents:Se,credits:Re},se(W),Re!==Qe(T)){A(Re),F(Se),xe(!0),w("ready");return}}catch(D){if(Yl(D)){x.invalidateQueries({queryKey:["usd-balance"]}),await V(Qe(T),M,T);return}we(D)||ue(D,{flow:"buy",step:"authorize"}),X(we(D)?"Shop Purchase Cancelled":"Shop Purchase Failed",{step:"authorize",error_code:$e(D)}),I(_e(D,i("buyModal.error.generic"),{sale:!0})),w("error");return}if(!W)return;let J=!1,ae;try{const D={purchase:zo(W.sale,[W.credit],W.maxCreditedValue),buyer:o.address,signer:o.signer,onBroadcast:({txHash:pe})=>Z.current.broadcast(W.credit.id,pe),onReverted:({txHash:pe})=>{pe&&Z.current.reverted(pe)}};if(Z.current.submitStarted(W.credit.id),vr())try{ae=await Vl(D),Z.current.broadcast(W.credit.id,ae),await $r(ae),J=!0}catch(pe){if(pe instanceof Cr)J=!0;else if(pe instanceof Ir){if(pe.reason==="relayer-unreachable")throw Z.current.unobservable(W.credit.id),pe;if(!en(o.providerType))throw pe;ae=await Ni(D)}else throw ae&&Z.current.reverted(ae),pe}else ae=await Ni(D)}catch(D){Z.current.submitFinished(W.credit.id),we(D)||ue(D,{flow:"buy",step:"submit",gasless:J}),Xe([W.credit.id]),Q.current=null,X(we(D)?"Shop Purchase Cancelled":"Shop Purchase Failed",{step:"submit",error_code:$e(D)}),x.invalidateQueries({queryKey:["usd-balance"]}),Ne(D);return}Z.current.submitFinished(W.credit.id),Q.current=null;try{Ro(x,t),X("Shop Completed Purchase",{...pn([t]),payment_type:"credits",no_crypto_step:J,transaction_hash:ae??null})}catch(D){ue(D,{flow:"buy",step:"post_purchase"})}w("complete")}function be(b){if(!o||b.length===0)return Promise.resolve(!1);const M=b.filter(T=>!Z.current.mayBeConsumed(T));return M.length===0?Promise.resolve(!1):sr(o.identity,M).then(()=>!0,()=>!0)}function Xe(b){f(!0),be(b).then(M=>{M||f(!1)})}function on(b){return be(b.filter(M=>!Z.current.isInFlight(M)))}function Lt(){x.invalidateQueries({queryKey:["mana-balance"]}),x.invalidateQueries({queryKey:["usd-balance"]}),x.invalidateQueries({queryKey:["detail-trade"]}),x.invalidateQueries({queryKey:["shop-item"]}),x.invalidateQueries({queryKey:["owned-token",t.contractAddress,t.tokenId]}),x.invalidateQueries({queryKey:["public-token",t.contractAddress,t.tokenId]}),x.invalidateQueries({queryKey:["item-resales",t.contractAddress,t.itemId]}),x.invalidateQueries({queryKey:["shop-items"]}),x.invalidateQueries({queryKey:["catalog-items"]}),x.invalidateQueries({queryKey:["my-assets"]}),x.invalidateQueries({queryKey:["purchases"]}),x.invalidateQueries({queryKey:["owned-item-count"]}),x.invalidateQueries({queryKey:["overview-listings"]}),x.invalidateQueries({queryKey:["upsell-listings"]})}async function Tt(){var M;const b=(z==null?void 0:z.sale)??v;if(!(!o||!b)){Q.current&&(Xe([Q.current]),Q.current=null),w("processing"),I(null);try{const T=(M=Bi(Be,"mana"))==null?void 0:M.manaWei,W=b.kind==="trade"?await xl({trade:b.trade,coupon:b.coupon,buyer:o.address,signer:o.signer,manaWei:T}):await fl({mint:b.mint,buyer:o.address,signer:o.signer,manaWei:T});X("Shop Completed Purchase",{...pn([t]),payment_type:"mana",transaction_hash:W??null}),Lt(),w("complete")}catch(T){we(T)||ue(T,{flow:"buy_mana",step:"submit"}),X(we(T)?"Shop Purchase Cancelled":"Shop Purchase Failed",{step:"submit",error_code:$e(T)}),Ne(T)}}}async function vt(){const b=(z==null?void 0:z.sale)??v,M=Bi(Be,"combined");if(!o||!b||!M)return;w("processing"),I(null),Q.current&&(await be([Q.current])&&f(!0),Q.current=null);let T=null,W;try{const{credit:J}=await Fn(o.identity,M.creditsCents,sa(b),oa(t));T=J.id,Z.current.submitStarted(J.id);const ae={buyer:o.address,signer:o.signer,credits:[J],manaGapWei:M.manaWei,providerType:o.providerType,onBroadcast:({txHash:D})=>Z.current.broadcast(J.id,D),onReverted:({txHash:D})=>{D&&Z.current.reverted(D)},onUnobservable:()=>Z.current.unobservable(J.id)};W=b.kind==="trade"?await ml({trade:b.trade,coupon:b.coupon,...ae}):await gl({mint:b.mint,...ae})}catch(J){T&&Z.current.submitFinished(T),T&&Xe([T]),we(J)||ue(J,{flow:"buy_credits_and_mana",step:"submit"}),X(we(J)?"Shop Purchase Cancelled":"Shop Purchase Failed",{step:"submit",error_code:$e(J)}),x.invalidateQueries({queryKey:["usd-balance"]}),Ne(J);return}T&&Z.current.submitFinished(T);try{Lt(),X("Shop Completed Purchase",{...pn([t]),payment_type:"credits_and_mana",transaction_hash:W??null})}catch(J){ue(J,{flow:"buy_credits_and_mana",step:"post_purchase"})}w("complete")}async function Ze(){if(!(!E||!o)){try{sessionStorage.setItem(qi,JSON.stringify(t))}catch{}Q.current&&(be([Q.current]),Q.current=null),se(null),w("loading");try{const b=await Bl(E,{address:o.address,identity:o.identity});if(b.url){window.location.href=b.url;return}m("/credits")}catch(b){ue(b,{flow:"buy_credits_and_item"});try{sessionStorage.removeItem(qi)}catch{}I(i("buyModal.error.creditsCheckout")),w("error")}}}const[ke,ct]=c.useState(null);function me(b,M){const{spender:T,chainId:W}=bl(b,M);return Dl(W,T)}function Ne(b){if(I(_e(b,i("buyModal.error.generic"),{sale:!0})),w("error"),!bs(b)||!o)return;const M=b.required;(async()=>{if(await Ud(o.providerType,o.address)){S(M);return}I(i("buyModal.error.relayDownNoRail"))})()}async function Ke(b){if(o){S(null);try{await Is(o.web3Provider,b)}catch(M){we(M)||ue(M,{flow:"buy",step:"switch_chain"}),S(b);return}Ft()}}function He(b){b==="mana"?Tt():b==="combined"?vt():qe()}const We=c.useRef(!1);async function Ie(b){var M;if(!We.current){We.current=!0;try{const T=(z==null?void 0:z.sale)??v;if(b==="credits"||!T||!o){He(b);return}const W=me(b,T),J=((M=Be.options.find(D=>D.method===b))==null?void 0:M.manaWei)??0n,ae=await jr(W,o.address,J).catch(()=>!0);if(Wl(o.providerType,ae)){ct({auth:W,rail:b});return}He(b)}finally{We.current=!1}}}const jt=Be.options.some(b=>b.method==="mana"||b.method==="combined"),Et=g==="ready"&&(jt||Be.manaShortfall!=null)||g==="nofunds"&&jt;function Ft(){I(null),se(null),xe(!1),f(!1),w("loading"),r(b=>b+1)}const et=g==="error"&&C===null&&(!!Q.current||B),kt=g==="processing",Bt=g==="complete"?i("buyModal.titleComplete"):g==="error"?i("cartCheckout.errorTitle"):g==="nofunds"?i("buyModal.titleNoFunds"):i("buyModal.titleBuy");return ke&&o?e.jsx(mr,{auth:ke.auth,signer:o.signer,title:i(ke.rail==="mana"?"authorizeStep.manaTitle":"authorizeStep.buyTitle"),name:i(ke.rail==="mana"?"authorizeStep.manaName":"authorizeStep.buyName"),reason:i(ke.rail==="mana"?"authorizeStep.manaReason":"authorizeStep.buyReason"),icon:e.jsx("img",{src:Nl,width:24,height:24,alt:"","aria-hidden":!0}),onAuthorized:()=>{const{rail:b}=ke;ct(null),He(b)},onCancel:()=>ct(null),onClose:()=>{ct(null),s()}}):e.jsxs(Po,{role:"dialog","aria-modal":"true","aria-label":i("buyModal.dialogAria",{name:t.name}),"data-testid":"buy-modal",children:[e.jsx(Lo,{onClick:kt?void 0:s,"aria-hidden":!0}),e.jsx(To,{"data-tall":g==="processing"||g==="loading"||void 0,children:Et?e.jsx(qd,{item:t,priceCredits:Ce,priceCents:L,options:Be.options,priceManaWei:G??0n,balanceCredits:ce,manaBalanceWei:_,onBuy:b=>void Ie(b),onClose:s,busy:kt,notice:ie?i("buyModal.priceChanged"):d!=null&&d.held?i("buyModal.heldExplainer",{credits:d.held.credits,currency:ze.name}):null}):e.jsxs(e.Fragment,{children:[e.jsxs(Eo,{children:[e.jsxs(Fo,{children:[e.jsx(Bo,{children:Bt}),!kt&&e.jsx(No,{onClick:s,"aria-label":i("buyModal.close"),children:e.jsx(Wo,{})})]}),e.jsxs(Do,{children:[e.jsx(Oo,{children:g==="nofunds"?i("buyModal.dclBalance"):i("buyModal.myCreditsBalance")}),e.jsx(qo,{}),e.jsx(Ko,{children:Ge(ce)})]})]}),g==="loading"&&e.jsx(at,{"data-processing":!0,children:e.jsx("span",{className:"spinner","aria-hidden":!0})}),g==="error"&&e.jsxs(at,{children:[e.jsxs(Ho,{"data-testid":"buy-error",children:[e.jsx(Uo,{src:Qo,alt:"",width:64,height:80}),e.jsxs(Go,{children:[e.jsx("b",{children:i("cartCheckout.errorHeadline")})," ",k??(et?null:i("cartCheckout.errorBody")),et?e.jsxs(e.Fragment,{children:[k?" ":"",i("cartCheckout.heldLead",{currency:ze.name}),e.jsx("b",{children:i("cartCheckout.heldBold")}),i("cartCheckout.heldTail",{currency:ze.name})]}):null]})]}),C!==null?e.jsxs(ft,{children:[e.jsx(De,{"data-variant":"outline",onClick:s,children:i("buyModal.cancel")}),e.jsx(De,{"data-variant":"purple","data-testid":"switch-and-retry",onClick:()=>void Ke(C),children:i("buyModal.error.switchAndRetry",{network:ys(C)})})]}):et?e.jsx(ft,{children:e.jsx(De,{"data-variant":"purple","data-full":!0,onClick:s,children:i("cartCheckout.gotIt")})}):e.jsxs(ft,{children:[e.jsx(De,{"data-variant":"outline",onClick:s,children:i("buyModal.cancel")}),e.jsx(De,{"data-variant":"purple",onClick:Ft,children:i("cartCheckout.tryAgain")})]})]}),g==="nofunds"&&e.jsxs(at,{children:[O&&G===null&&_>0n?e.jsxs(Ut,{"data-testid":"mana-price-unavailable",children:[e.jsx(Qt,{}),e.jsx(Gt,{children:i("buyModal.manaPriceUnavailable")})]}):null,d!=null&&d.held?e.jsxs(Ut,{"data-testid":"nofunds-held",children:[e.jsx(Qt,{}),e.jsx(Gt,{children:i("buyModal.heldExplainer",{credits:d.held.credits,currency:ze.name})})]}):null,e.jsxs(Ut,{children:[e.jsx(Qt,{}),e.jsxs(Gt,{children:[e.jsx("b",{children:i("buyModal.insufficientFunds")})," ",i("buyModal.warningNeedToBuy")," ",e.jsx("b",{children:i("buyModal.warningCreditsAmount",{count:Math.max(1,Ce-ce)})})," ",i("buyModal.warningToPurchase",{count:1}),gt()?null:e.jsxs(e.Fragment,{children:[" ",e.jsx(_o,{href:ws("/credits"),target:"_blank",rel:"noopener noreferrer",children:i("buyModal.warningLearnMore")})]})]})]}),e.jsx(la,{item:t,priceCredits:Ce}),gt()?null:e.jsxs(e.Fragment,{children:[e.jsx(Vo,{"data-testid":"credit-packs",children:K.map(b=>{const M=b.credits,T=b.id===E;return e.jsxs(Jo,{"data-on":T||void 0,onClick:()=>Y(b.id),children:[e.jsx(Yo,{src:Xo,alt:""}),e.jsx(Zo,{children:Ge(M)}),e.jsxs(el,{children:["($",b.usd.toFixed(2),")"]})]},b.id)})}),e.jsxs(tl,{children:[e.jsxs(nl,{children:[e.jsx(il,{}),e.jsx("span",{children:Ge(((Nt=K.find(b=>b.id===E))==null?void 0:Nt.credits)??0)})]}),e.jsxs(al,{children:["$",((($t=K.find(b=>b.id===E))==null?void 0:$t.usd)??0).toFixed(2)]})]})]}),e.jsxs(ft,{children:[e.jsx(De,{"data-variant":"outline",onClick:s,children:i("buyModal.cancel")}),gt()?null:e.jsx(De,{"data-variant":"gradient",onClick:()=>void Ze(),children:i("buyModal.buy")})]})]}),g==="ready"&&e.jsxs(at,{children:[ie&&e.jsxs(Ut,{"data-testid":"price-changed",role:"status",children:[e.jsx(Qt,{}),e.jsx(Gt,{children:i("buyModal.priceChanged")})]}),e.jsx(la,{item:t,priceCredits:Ce}),e.jsx(ft,{children:e.jsx(De,{"data-variant":"gradient","data-full":!0,onClick:()=>void qe(),children:i("buyModal.buy")})})]}),g==="processing"&&e.jsxs(at,{"data-processing":!0,children:[e.jsx(gr,{src:or,alt:"",width:61,height:61}),e.jsx(br,{children:l?i("buyModal.completingPurchase"):i("buyModal.completingTransaction")}),e.jsx(yr,{"aria-hidden":!0,children:e.jsx(wr,{})})]}),g==="complete"&&e.jsxs(at,{children:[e.jsx(Xl,{}),e.jsxs(rl,{children:[e.jsx(Qd,{}),e.jsxs(sl,{children:[e.jsx("b",{children:i("getCredits.successTitle")})," ",i("buyModal.successBody")]})]}),e.jsxs(ft,{"data-stack":!0,children:[e.jsx(De,{"data-variant":"outline",onClick:()=>m(vs([t.category])),children:i("buyModal.myAssets")}),gt()?e.jsx(Fi,{"data-variant":"ruby",href:Zl([t]),onClick:s,children:i("success.goToBackpack")}):e.jsxs(Fi,{"data-variant":"ruby",href:ed,target:"_blank",rel:"noreferrer",onClick:s,children:[i("buyModal.tryInWorld"),e.jsx(td,{})]})]})]})]})})]})}function la({item:t,priceCredits:s}){return e.jsxs(ol,{children:[e.jsx(ll,{children:t.thumbnail?e.jsx("img",{src:t.thumbnail,alt:""}):null}),e.jsxs(dl,{children:[e.jsxs("div",{children:[e.jsx(cl,{title:t.name,children:t.name||i("buyModal.itemFallback")}),t.creator?e.jsx(ul,{address:t.creator}):null]}),e.jsxs(pl,{children:[e.jsx(hl,{}),e.jsx("span",{children:Ge(s)})]})]})]})}function _d(){const{data:t}=te({queryKey:["feature-flag","proceeds-to-treasury"],queryFn:As,staleTime:6e4,refetchOnWindowFocus:!0,retry:1});return t===!0}const Vd=a.div`
|
|
370
370
|
display: flex;
|
|
371
371
|
align-items: center;
|
|
372
372
|
gap: 16px;
|
|
@@ -390,7 +390,7 @@ import{r as c,j as e,u as lt,L as ir,d as hs,b as ar}from"./react-BDtnT4_L.js";i
|
|
|
390
390
|
font-size: 13px;
|
|
391
391
|
line-height: 1.5;
|
|
392
392
|
color: ${n.colors.text};
|
|
393
|
-
`;function Rr(t,s){const[l,o]=c.useState(!1),[d,u]=c.useState(!1),[x,m]=c.useState(null),y=c.useRef(null);c.useEffect(()=>{const h=new AbortController;return y.current=h,()=>h.abort(new DOMException("Modal closed","AbortError"))},[]);async function $(h){if(!t||l)return!0;m(null);try{const g=await t.cancelCurrent({payGas:h,onWaiting:w=>u(w>2e4)});return g!=="ok"?(m(g==="relay-reverted"?"reverted":"pending"),!1):(o(!0),!0)}catch(g){return ue(g,{flow:"edit_price_cancel"}),s(_e(g,i("listingEdit.cancelFailed"))),!1}finally{u(!1)}}return{cancelDone:l,slow:d,cancelFailed:x,setCancelFailed:m,cancelCurrent:$,signal:()=>{var h;return(h=y.current)==null?void 0:h.signal}}}function qn({state:t,canPayGas:s,busy:l,onPayGas:o,onLater:d,testId:u="edit-cancel-relay-failed"}){return e.jsxs(Xd,{"data-testid":u,children:[s?t==="reverted"?i("itemDetail.cancelRelayReverted"):i("itemDetail.cancelRelayFailed"):i("itemDetail.cancelRelayRetry"),s?e.jsxs(e.Fragment,{children:[" ",e.jsx(Ki,{type:"button","data-testid":"cancel-pay-gas",onClick:o,disabled:l,children:i("itemDetail.cancelPayGas")}),d?e.jsxs(e.Fragment,{children:[" ",e.jsx(Ki,{type:"button","data-testid":"cancel-later",onClick:d,disabled:l,children:i("itemDetail.cancelLater")})]}):null]}):null]})}function
|
|
393
|
+
`;function Rr(t,s){const[l,o]=c.useState(!1),[d,u]=c.useState(!1),[x,m]=c.useState(null),y=c.useRef(null);c.useEffect(()=>{const h=new AbortController;return y.current=h,()=>h.abort(new DOMException("Modal closed","AbortError"))},[]);async function $(h){if(!t||l)return!0;m(null);try{const g=await t.cancelCurrent({payGas:h,onWaiting:w=>u(w>2e4)});return g!=="ok"?(m(g==="relay-reverted"?"reverted":"pending"),!1):(o(!0),!0)}catch(g){return ue(g,{flow:"edit_price_cancel"}),s(_e(g,i("listingEdit.cancelFailed"))),!1}finally{u(!1)}}return{cancelDone:l,slow:d,cancelFailed:x,setCancelFailed:m,cancelCurrent:$,signal:()=>{var h;return(h=y.current)==null?void 0:h.signal}}}function qn({state:t,canPayGas:s,busy:l,onPayGas:o,onLater:d,testId:u="edit-cancel-relay-failed"}){return e.jsxs(Xd,{"data-testid":u,children:[s?t==="reverted"?i("itemDetail.cancelRelayReverted"):i("itemDetail.cancelRelayFailed"):i("itemDetail.cancelRelayRetry"),s?e.jsxs(e.Fragment,{children:[" ",e.jsx(Ki,{type:"button","data-testid":"cancel-pay-gas",onClick:o,disabled:l,children:i("itemDetail.cancelPayGas")}),d?e.jsxs(e.Fragment,{children:[" ",e.jsx(Ki,{type:"button","data-testid":"cancel-later",onClick:d,disabled:l,children:i("itemDetail.cancelLater")})]}):null]}):null]})}function Pr({phase:t,managed:s,slow:l}){const d=t==="list"?2:1,u=`listingEdit.${s?"step":"confirm"}${t==="list"?"New":"Removal"}`;return e.jsxs(at,{"data-processing":!0,"data-testid":"listing-steps",role:"status","aria-live":"polite",children:[e.jsx(gr,{src:or,alt:"",width:61,height:61}),e.jsx(br,{children:i(u)}),e.jsxs(Vd,{children:[e.jsx(yr,{"aria-hidden":!0,children:e.jsx(wr,{})}),e.jsxs(Jd,{"data-testid":"listing-steps-count",children:[d,"/",2]})]}),l?e.jsx(Yd,{"data-testid":"listing-steps-slow",children:i("listingEdit.slow")}):null]})}const mn=a.div`
|
|
394
394
|
position: fixed;
|
|
395
395
|
inset: 0;
|
|
396
396
|
z-index: 10000;
|
|
@@ -737,7 +737,7 @@ import{r as c,j as e,u as lt,L as ir,d as hs,b as ar}from"./react-BDtnT4_L.js";i
|
|
|
737
737
|
outline: 2px solid ${n.colors.accent};
|
|
738
738
|
outline-offset: 2px;
|
|
739
739
|
}
|
|
740
|
-
`,bc=30;function ua(t){const s=new Date;return s.setHours(0,0,0,0),s.setDate(s.getDate()+t),s}function yc({asset:t,session:s,creator:l,edit:o,onListed:d,onClose:u}){const x=dt(),m=lt(),y=_d(),{data:$}=te({queryKey:["collection-meta",t.contractAddress],enabled:!l&&!!t.contractAddress,staleTime:5*6e4,queryFn:()=>dr(t.contractAddress)}),h=l||($==null?void 0:$.creator),{data:g}=tn(h),w=h?g!=null&&g.name?nn(g.name):On(h):null,[k,I]=c.useState(o!=null&&o.currentCredits?String(o.currentCredits):"10"),[C,S]=c.useState(()=>ua(bc)),[B,f]=c.useState(null),[N,r]=c.useState(!1),[E,Y]=c.useState(null),[U,A]=c.useState("form"),R=c.useRef({}),{cancelDone:K,slow:G,cancelFailed:ne,setCancelFailed:de,cancelCurrent:ee,signal:_}=Rr(o,f),O=an(s),H=Number(k),v=Number.isInteger(H)&&H>0,fe=!!o&&!K&&H===o.currentCredits,
|
|
740
|
+
`,bc=30;function ua(t){const s=new Date;return s.setHours(0,0,0,0),s.setDate(s.getDate()+t),s}function yc({asset:t,session:s,creator:l,edit:o,onListed:d,onClose:u}){const x=dt(),m=lt(),y=_d(),{data:$}=te({queryKey:["collection-meta",t.contractAddress],enabled:!l&&!!t.contractAddress,staleTime:5*6e4,queryFn:()=>dr(t.contractAddress)}),h=l||($==null?void 0:$.creator),{data:g}=tn(h),w=h?g!=null&&g.name?nn(g.name):On(h):null,[k,I]=c.useState(o!=null&&o.currentCredits?String(o.currentCredits):"10"),[C,S]=c.useState(()=>ua(bc)),[B,f]=c.useState(null),[N,r]=c.useState(!1),[E,Y]=c.useState(null),[U,A]=c.useState("form"),R=c.useRef({}),{cancelDone:K,slow:G,cancelFailed:ne,setCancelFailed:de,cancelCurrent:ee,signal:_}=Rr(o,f),O=an(s),H=Number(k),v=Number.isInteger(H)&&H>0,fe=!!o&&!K&&H===o.currentCredits,L=C?C.getTime():NaN,F=!!C&&L>Date.now(),z=ua(1),se=v?`$${rt(H).toFixed(2)}`:"$0";async function ie(oe={}){if(f(null),!v){f(i("sellModal.errorWholeNumber"));return}if(!F){f(i("sellModal.invalidDate"));return}if(!O){r(!0);try{const Z=Oi(t.contractAddress,t.chainId),Ce=await jr(Z,s.address);if(r(!1),!Ce){R.current=oe,A("authorize");return}}catch{r(!1)}}await xe(oe)}async function xe(oe={}){var Z,Ce;if(f(null),!v){f(i("sellModal.errorWholeNumber"));return}if(!F){f(i("sellModal.invalidDate"));return}r(!0);try{if(!await ee(oe.payGas))return;await jl({signer:s.signer,contractAddress:t.contractAddress,chainId:t.chainId});const ce=await kl({signer:s.signer,nft:{contractAddress:t.contractAddress,tokenId:t.tokenId,network:t.network,chainId:t.chainId},usdPrice:rt(H),expiresAtMs:L}),V=await(o?Sr(ce,s.identity,{signal:_()}):lr(ce,s.identity));(Z=_())==null||Z.throwIfAborted(),Y(H),X("Shop Listed Item",{item_id:t.itemId??t.tokenId??null,contract_address:t.contractAddress,price_credits:H,price_usd:rt(H),listing_type:"secondary",is_primary:!1}),Pt.success(i(o?"listingEdit.toastUpdated":"sellModal.toastOnSale",{name:t.name})),x.invalidateQueries({queryKey:["my-assets",s.address]}),d==null||d(H,V.id)}catch(ce){if((Ce=_())!=null&&Ce.aborted)return;ue(ce,{flow:"list_secondary"}),X("Shop Listing Failed",{listing_type:"secondary",error_code:$e(ce)}),f(_e(ce,i(o?"listingEdit.listFailedAfterCancel":"sellModal.errorGeneric")))}finally{r(!1)}}function Q(){u(),m("/my-items")}return E!==null?e.jsx(mn,{onClick:u,role:"presentation",children:e.jsxs(gn,{onClick:oe=>oe.stopPropagation(),role:"dialog","aria-modal":"true","aria-label":i(o?"listingEdit.successHeader":"sellModal.successHeader"),children:[e.jsxs(bn,{children:[e.jsx(yn,{children:i(o?"listingEdit.successHeader":"sellModal.successHeader")}),e.jsx(wn,{onClick:u,"aria-label":i("getCredits.done"),children:e.jsx(P,{name:"close",className:"ico"})})]}),e.jsxs(pc,{children:[e.jsx(hc,{"aria-hidden":!0,children:e.jsx(P,{name:"check",className:"ico"})}),e.jsxs(xc,{children:[e.jsx("b",{children:i(o?"listingEdit.successBody":"sellModal.successOnSale")})," ",i("sellModal.successManage")]})]}),e.jsxs(fc,{children:[e.jsx(mc,{onClick:Q,children:i("sellModal.myItems")}),e.jsx(gc,{onClick:u,children:i("getCredits.done")})]})]})}):U==="authorize"?e.jsx(mr,{auth:Oi(t.contractAddress,t.chainId),signer:s.signer,title:i("authorizeStep.sellTitle"),name:t.name,image:t.image,icon:e.jsx(P,{name:"pen",className:"ico"}),reason:i("authorizeStep.sellReason",{name:t.name}),onAuthorized:()=>{A("form"),xe(R.current)},onCancel:()=>A("form"),onClose:u}):o&&N?e.jsx(mn,{role:"presentation",children:e.jsxs(gn,{onClick:oe=>oe.stopPropagation(),role:"dialog","aria-modal":"true","aria-label":i("listingEdit.title"),"data-testid":"modal",children:[e.jsxs(bn,{children:[e.jsx(yn,{children:i("listingEdit.title")}),e.jsx(wn,{disabled:!0,"aria-label":i("sellModal.cancel"),children:e.jsx(P,{name:"close",className:"ico"})})]}),e.jsx(Pr,{phase:K?"list":"cancel",managed:O,slow:G})]})}):e.jsx(mn,{onClick:N?void 0:u,role:"presentation",children:e.jsxs(gn,{"data-testid":"modal",onClick:oe=>oe.stopPropagation(),role:"dialog","aria-modal":"true","aria-label":i(o?"listingEdit.title":"sellModal.sellProduct"),children:[e.jsxs(bn,{children:[e.jsx(yn,{children:i(o?"listingEdit.title":"sellModal.sellProduct")}),e.jsx(wn,{onClick:u,disabled:N,"aria-label":i("sellModal.cancel"),children:e.jsx(P,{name:"close",className:"ico"})})]}),e.jsx(Zd,{children:i(o?"listingEdit.subtitle":"sellModal.subtitle")}),e.jsxs(ec,{children:[e.jsx(tc,{children:t.image?e.jsx("img",{src:t.image,alt:""}):null}),e.jsxs(nc,{children:[e.jsx(ic,{children:t.name}),w?e.jsx(ac,{children:i("sellModal.byCreator",{name:w})}):null]})]}),e.jsxs(rc,{children:[e.jsxs(da,{children:[e.jsx(ca,{children:i("sellModal.priceShort")}),e.jsxs(sc,{"aria-invalid":k.length>0&&!v,children:[e.jsx(ve,{className:"ccy"}),e.jsx(oc,{"data-testid":"price-input",type:"number",min:"1",step:"1",inputMode:"numeric",value:k,onChange:oe=>I(oe.target.value),disabled:N,"aria-label":i("sellModal.priceLabel",{currency:"credits"})}),e.jsx(lc,{"aria-hidden":!0,children:se})]})]}),e.jsxs(da,{children:[e.jsx(ca,{children:i("sellModal.expirationLabel")}),e.jsx(dc,{"data-invalid":!!C&&!F,children:e.jsx(id,{selected:C,onChange:S,minDate:z,dateFormat:"MM/dd/yyyy",placeholderText:"MM/DD/YYYY",disabled:N,showIcon:!0,showPopperArrow:!1,todayButton:i("sellModal.today"),ariaLabelledBy:void 0,"aria-label":i("sellModal.expirationLabel")})})]})]}),y&&v?e.jsx(uc,{children:i("sellModal.proceedsCredits",{count:H})}):null,ne?e.jsx(qn,{state:ne,canPayGas:!!(o!=null&&o.canPayGas),busy:N,onPayGas:()=>void ie({payGas:!0}),onLater:()=>de(null)}):null,e.jsx(Ve,{message:B}),e.jsx(cc,{onClick:()=>void ie(),disabled:N||fe||ne==="pending"||!v||!F,"data-testid":"list-submit",children:o?i(K?"sellModal.putUpForSale":"listingEdit.submit"):N?O?i("sellModal.puttingOnSale"):i("sellModal.confirmListing"):i("sellModal.putUpForSale")})]})})}const wc=a.div`
|
|
741
741
|
position: fixed;
|
|
742
742
|
inset: 0;
|
|
743
743
|
z-index: 10000;
|
|
@@ -853,7 +853,7 @@ import{r as c,j as e,u as lt,L as ir,d as hs,b as ar}from"./react-BDtnT4_L.js";i
|
|
|
853
853
|
&:disabled {
|
|
854
854
|
opacity: 0.6;
|
|
855
855
|
}
|
|
856
|
-
`,
|
|
856
|
+
`,Pc=a.p`
|
|
857
857
|
margin: 0;
|
|
858
858
|
padding: 12px 14px;
|
|
859
859
|
border-radius: 10px;
|
|
@@ -869,7 +869,7 @@ import{r as c,j as e,u as lt,L as ir,d as hs,b as ar}from"./react-BDtnT4_L.js";i
|
|
|
869
869
|
${n.media.maxWidth("mobile")} {
|
|
870
870
|
flex-direction: column-reverse;
|
|
871
871
|
}
|
|
872
|
-
`,
|
|
872
|
+
`,Lc=a.button`
|
|
873
873
|
flex: 1;
|
|
874
874
|
height: 48px;
|
|
875
875
|
border: 2px solid ${n.colors.blackBtn};
|
|
@@ -957,7 +957,7 @@ import{r as c,j as e,u as lt,L as ir,d as hs,b as ar}from"./react-BDtnT4_L.js";i
|
|
|
957
957
|
b {
|
|
958
958
|
font-weight: 700;
|
|
959
959
|
}
|
|
960
|
-
`;function Bc(t){return/^0x[a-fA-F0-9]{40}$/.test(t.trim())}function Nc({item:t,session:s,onClose:l,onTransferred:o}){const[d,u]=c.useState(""),[x,m]=c.useState(!1),[y,$]=c.useState(null),[h,g]=c.useState(!1),w=d.trim(),k=Bc(w),I=k&&w.toLowerCase()===s.address.toLowerCase(),C=w.length===0?null:k?I?i("transfer.selfAddress"):null:i("transfer.invalidAddress"),S=k&&!I&&!x;async function B(){if(S){$(null),m(!0);try{await $l({contractAddress:t.contractAddress,chainId:t.chainId,tokenId:t.tokenId,to:w,signer:s.signer}),X("Shop Transferred Item",{contract_address:t.contractAddress,token_id:t.tokenId}),g(!0),
|
|
960
|
+
`;function Bc(t){return/^0x[a-fA-F0-9]{40}$/.test(t.trim())}function Nc({item:t,session:s,onClose:l,onTransferred:o}){const[d,u]=c.useState(""),[x,m]=c.useState(!1),[y,$]=c.useState(null),[h,g]=c.useState(!1),w=d.trim(),k=Bc(w),I=k&&w.toLowerCase()===s.address.toLowerCase(),C=w.length===0?null:k?I?i("transfer.selfAddress"):null:i("transfer.invalidAddress"),S=k&&!I&&!x;async function B(){if(S){$(null),m(!0);try{await $l({contractAddress:t.contractAddress,chainId:t.chainId,tokenId:t.tokenId,to:w,signer:s.signer}),X("Shop Transferred Item",{contract_address:t.contractAddress,token_id:t.tokenId}),g(!0),Pt.success(i("transfer.toastSuccess",{name:t.name})),o==null||o()}catch(f){yt(f)||ue(f,{flow:"transfer-item",tokenId:t.tokenId}),X("Shop Transfer Failed",{error_code:$e(f)}),$(yt(f)?i("getCredits.errorCanceled"):_e(f,i("transfer.errorGeneric")))}finally{m(!1)}}}return e.jsx(wc,{onClick:x?void 0:l,role:"presentation",children:e.jsxs(vc,{onClick:f=>f.stopPropagation(),role:"dialog","aria-modal":"true","aria-label":i("transfer.title"),children:[e.jsx(jc,{children:e.jsxs(kc,{children:[e.jsx($c,{children:i("transfer.title")}),e.jsx(Cc,{onClick:l,disabled:x,"aria-label":i("sellModal.cancel"),children:e.jsx(P,{name:"close",className:"ico"})})]})}),h?e.jsxs(e.Fragment,{children:[e.jsxs(Tc,{children:[e.jsx(Ec,{"aria-hidden":!0,children:e.jsx(P,{name:"check",className:"ico"})}),e.jsx(Fc,{children:i("transfer.successBody",{name:t.name})})]}),e.jsx(pa,{children:e.jsx(ha,{onClick:l,children:i("getCredits.done")})})]}):e.jsxs(e.Fragment,{children:[e.jsxs(Ic,{children:[t.thumbnail?e.jsx(Sc,{src:t.thumbnail,alt:""}):null,e.jsx(Ac,{children:t.name})]}),e.jsxs(Mc,{children:[e.jsx(zc,{children:i("transfer.addressLabel")}),e.jsx(Rc,{type:"text",spellCheck:!1,autoComplete:"off",placeholder:"0x…",value:d,onChange:f=>u(f.target.value),disabled:x,"aria-invalid":!!C,"aria-label":i("transfer.addressLabel")}),C?e.jsx(Ve,{message:C}):null]}),e.jsx(Pc,{children:i("transfer.warning")}),e.jsx(Ve,{message:y}),e.jsxs(pa,{children:[e.jsx(Lc,{onClick:l,disabled:x,children:i("sellModal.cancel")}),e.jsx(ha,{onClick:()=>void B(),disabled:!S,children:x?i("transfer.transferring"):i("transfer.transfer")})]})]})]})})}const Wc=a(sd)`
|
|
961
961
|
width: min(500px, 92vw);
|
|
962
962
|
gap: 20px;
|
|
963
963
|
|
|
@@ -1298,7 +1298,7 @@ import{r as c,j as e,u as lt,L as ir,d as hs,b as ar}from"./react-BDtnT4_L.js";i
|
|
|
1298
1298
|
outline: 2px solid ${n.colors.accent};
|
|
1299
1299
|
outline-offset: 2px;
|
|
1300
1300
|
}
|
|
1301
|
-
`,lu=1e3*60*60*24*182;function du({item:t,session:s,edit:l,onListed:o,onClose:d}){const u=dt(),x=lt(),[m,y]=c.useState(l!=null&&l.currentCredits?String(l.currentCredits):"10"),[$,h]=c.useState(null),[g,w]=c.useState(null),[k,I]=c.useState(!1),[C,S]=c.useState(null),[B,f]=c.useState(null),{cancelDone:N,slow:r,cancelFailed:E,setCancelFailed:Y,cancelCurrent:U,signal:A}=Rr(l,w),R=st.chainId,K=an(s),{data:G}=tn(s.address),ne=G!=null&&G.name?nn(G.name):On(s.address),de=Number(m),ee=Number.isInteger(de)&&de>0,_=!!l&&!N&&de===l.currentCredits,O=ee?`$${rt(de).toFixed(2)}`:"$0";c.useEffect(()=>{let
|
|
1301
|
+
`,lu=1e3*60*60*24*182;function du({item:t,session:s,edit:l,onListed:o,onClose:d}){const u=dt(),x=lt(),[m,y]=c.useState(l!=null&&l.currentCredits?String(l.currentCredits):"10"),[$,h]=c.useState(null),[g,w]=c.useState(null),[k,I]=c.useState(!1),[C,S]=c.useState(null),[B,f]=c.useState(null),{cancelDone:N,slow:r,cancelFailed:E,setCancelFailed:Y,cancelCurrent:U,signal:A}=Rr(l,w),R=st.chainId,K=an(s),{data:G}=tn(s.address),ne=G!=null&&G.name?nn(G.name):On(s.address),de=Number(m),ee=Number.isInteger(de)&&de>0,_=!!l&&!N&&de===l.currentCredits,O=ee?`$${rt(de).toFixed(2)}`:"$0";c.useEffect(()=>{let L=!1;return(async()=>{try{const F=await Cl({contractAddress:t.contractAddress,chainId:R});L||S(F)}catch{L||S(!1)}})(),()=>{L=!0}},[t.contractAddress,R]);async function H(L={}){var z,se;w(null);const F=Number(m);if(!Number.isInteger(F)||F<=0){w(i("primaryList.errorWholeNumber"));return}I(!0);try{if(!await U(L.payGas))return;C||(h(i("primaryList.statusEnabling")),await Il({signer:s.signer,contractAddress:t.contractAddress,chainId:R}),S(!0)),h(i("primaryList.statusPublishing"));const ie=await Sl({signer:s.signer,item:{contractAddress:t.contractAddress,itemId:t.blockchainItemId,network:Ae.Network.MATIC,chainId:R},usdPrice:rt(F),uses:t.remainingSupply,expiresAtMs:Date.now()+lu});h(i("primaryList.statusFinishing"));const xe=await(l?Sr(ie,s.identity,{signal:A()}):lr(ie,s.identity));(z=A())==null||z.throwIfAborted(),h(null),f(F),X("Shop Listed Item",{item_id:t.blockchainItemId,contract_address:t.contractAddress,price_credits:F,price_usd:rt(F),listing_type:"primary",is_primary:!0}),Pt.success(i(l?"listingEdit.toastUpdated":"primaryList.toastOnSale",{name:t.name})),o==null||o(F,xe.id),u.invalidateQueries({queryKey:["publishable-items"]}),u.invalidateQueries({queryKey:["collection-sale-state"]}),u.invalidateQueries({queryKey:["shop-items"]}),u.invalidateQueries({queryKey:["catalog-items"]}),u.invalidateQueries({queryKey:["overview-listings"]}),u.invalidateQueries({queryKey:["upsell-listings"]})}catch(ie){if((se=A())!=null&&se.aborted)return;ue(ie,{flow:"list_primary"}),X("Shop Listing Failed",{listing_type:"primary",error_code:$e(ie)}),w(_e(ie,i(l?"listingEdit.listFailedAfterCancel":"primaryList.errorGeneric"))),h(null)}finally{I(!1)}}function v(){d(),x(Ms(t.contractAddress,t.blockchainItemId))}const fe=C===null?i("primaryList.checking"):l?i(N?"primaryList.putOnSale":"listingEdit.submit"):k?K?i("primaryList.publishing"):i("primaryList.confirmListing"):C===!1?i("primaryList.enableAndPutOnSale"):i("primaryList.putOnSale");return B!==null?e.jsx(vn,{onClick:d,role:"presentation",children:e.jsxs(jn,{onClick:L=>L.stopPropagation(),role:"dialog","aria-modal":"true","aria-label":i(l?"listingEdit.successHeader":"primaryList.successTitle"),children:[e.jsxs(kn,{children:[e.jsx($n,{children:i(l?"listingEdit.successHeader":"primaryList.successTitle")}),e.jsx(Cn,{onClick:d,"aria-label":i("getCredits.done"),children:e.jsx(P,{name:"close",className:"ico"})})]}),e.jsxs(tu,{children:[e.jsx(nu,{"aria-hidden":!0,children:e.jsx(P,{name:"check",className:"ico"})}),e.jsx(iu,{children:e.jsx("b",{children:t.name})}),e.jsxs(au,{children:[i("primaryList.listedFor")," ",e.jsxs("strong",{children:[e.jsx(ve,{className:"ccy-mark"})," ",e.jsx(ye,{credits:B})]})," ",i("primaryList.dotAvailable",{count:t.remainingSupply})]})]}),e.jsxs(ru,{children:[e.jsx(su,{onClick:d,children:i("getCredits.done")}),e.jsx(ou,{onClick:v,children:i("primaryList.viewInShop")})]})]})}):l&&k?e.jsx(vn,{role:"presentation",children:e.jsxs(jn,{onClick:L=>L.stopPropagation(),role:"dialog","aria-modal":"true","aria-label":i("listingEdit.title"),"data-testid":"modal",children:[e.jsxs(kn,{children:[e.jsx($n,{children:i("listingEdit.title")}),e.jsx(Cn,{disabled:!0,"aria-label":i("primaryList.cancel"),children:e.jsx(P,{name:"close",className:"ico"})})]}),e.jsx(Pr,{phase:N?"list":"cancel",managed:K,slow:r})]})}):e.jsx(vn,{onClick:k?void 0:d,role:"presentation",children:e.jsxs(jn,{"data-testid":"modal",onClick:L=>L.stopPropagation(),role:"dialog","aria-modal":"true","aria-label":l?i("listingEdit.title"):i("primaryList.publishTitle",{name:t.name}),children:[e.jsxs(kn,{children:[e.jsx($n,{children:l?i("listingEdit.title"):i("primaryList.publishTitle",{name:t.name})}),e.jsx(Cn,{onClick:d,disabled:k,"aria-label":i("primaryList.cancel"),children:e.jsx(P,{name:"close",className:"ico"})})]}),e.jsx(qc,{children:i("primaryList.fromCollection",{collectionName:t.collectionName,count:t.remainingSupply})}),e.jsxs(Kc,{children:[e.jsx(Hc,{children:t.thumbnail?e.jsx("img",{src:t.thumbnail,alt:""}):null}),e.jsxs(Uc,{children:[e.jsx(Qc,{children:t.name}),ne?e.jsx(Gc,{children:i("primaryList.byCreator",{name:ne})}):null]})]}),e.jsxs(_c,{children:[e.jsx(Vc,{children:i("primaryList.priceShort")}),e.jsxs(Jc,{"aria-invalid":m.length>0&&!ee,children:[e.jsx(ve,{className:"ccy"}),e.jsx(Yc,{"data-testid":"price-input",type:"number",min:"1",step:"1",inputMode:"numeric",value:m,onChange:L=>y(L.target.value),disabled:k,"aria-label":i("primaryList.priceLabel",{currency:ze.name})}),e.jsx(Xc,{"aria-hidden":!0,children:O})]})]}),e.jsx(Vt,{children:i("primaryList.pricedInWhole",{currency:ze.name,currencySingular:ze.nameSingular})}),l?!k&&!N?e.jsx(Vt,{children:i("listingEdit.subtitle")}):null:C===!1&&!k?e.jsx(Vt,{children:K?i("primaryList.firstTimeManaged",{collectionName:t.collectionName}):i("primaryList.firstTimeConfirm",{collectionName:t.collectionName})}):C===!0&&!k?e.jsx(Vt,{children:K?i("primaryList.readyManaged"):i("primaryList.readyConfirm")}):null,E?e.jsx(qn,{state:E,canPayGas:!!(l!=null&&l.canPayGas),busy:k,onPayGas:()=>void H({payGas:!0}),onLater:()=>Y(null)}):null,$&&!l?e.jsx(eu,{children:$}):null,e.jsx(Ve,{message:g}),e.jsx(Zc,{onClick:()=>void H(),disabled:k||_||E==="pending"||C===null||!ee,"data-testid":"list-submit",children:fe})]})})}const Lr=["function issueTokens(address[] _beneficiaries, uint256[] _itemIds)"];function Tr(t){return/^0x[a-fA-F0-9]{40}$/.test(t.trim())}function Er(t){return t.reduce((s,l)=>s+Math.max(0,Math.floor(l.amount||0)),0)}function cu(t,s){const l=t.filter(d=>d.address.trim().length>0||(d.amount||0)>0);if(l.length===0)return!1;for(const d of l)if(!Tr(d.address)||!Number.isInteger(d.amount)||d.amount<1)return!1;const o=Er(l);return o>=1&&o<=s}function uu(t,s){const l=[],o=[];for(const d of t){const u=d.address.trim(),x=Math.max(0,Math.floor(d.amount||0));if(!(!u||x===0))for(let m=0;m<x;m++)l.push(u),o.push(s)}return{beneficiaries:l,itemIds:o}}async function pu(t){const{contractAddress:s,chainId:l,beneficiaries:o,itemIds:d,signer:u}=t,x={...Rs(Ps.ERC721CollectionV2,l),address:s},m=new _l(Lr).encodeFunctionData("issueTokens",[o,d]),y=ql(),$=Kl(u.provider,y),h=await xd($,y,m,x,{serverURL:kr.relayerUrl});return await Hl(h,"the mint"),h}async function hu(t){const{signer:s,contractAddress:l,chainId:o,entries:d,itemId:u}=t,{beneficiaries:x,itemIds:m}=uu(d,u);if(x.length===0)throw new Error("No copies to issue");if(kr.enabled)try{return await pu({contractAddress:l,chainId:o,beneficiaries:x,itemIds:m,signer:s})}catch(g){if(g instanceof pd&&g.code===hd.USER_DENIED||g instanceof Ol)throw g;console.warn("[issue] gasless meta-tx failed, falling back to a direct tx:",g)}return await zs(s.provider,o),(await(await new Gl(l,Lr,s).issueTokens(x,m,Al(o))).wait()).transactionHash}const xu=a.div`
|
|
1302
1302
|
position: fixed;
|
|
1303
1303
|
inset: 0;
|
|
1304
1304
|
z-index: 10000;
|
|
@@ -1534,7 +1534,7 @@ import{r as c,j as e,u as lt,L as ir,d as hs,b as ar}from"./react-BDtnT4_L.js";i
|
|
|
1534
1534
|
${n.media.maxWidth("mobile")} {
|
|
1535
1535
|
flex-direction: column-reverse;
|
|
1536
1536
|
}
|
|
1537
|
-
`,
|
|
1537
|
+
`,Pu=a.button`
|
|
1538
1538
|
flex: 1 1 0;
|
|
1539
1539
|
height: 48px;
|
|
1540
1540
|
border: 2px solid ${n.colors.accent};
|
|
@@ -1587,7 +1587,7 @@ import{r as c,j as e,u as lt,L as ir,d as hs,b as ar}from"./react-BDtnT4_L.js";i
|
|
|
1587
1587
|
background: rgba(105, 31, 169, 0.2);
|
|
1588
1588
|
color: ${n.colors.white};
|
|
1589
1589
|
}
|
|
1590
|
-
`,
|
|
1590
|
+
`,Lu=a.div`
|
|
1591
1591
|
display: flex;
|
|
1592
1592
|
flex-direction: column;
|
|
1593
1593
|
align-items: center;
|
|
@@ -1619,7 +1619,7 @@ import{r as c,j as e,u as lt,L as ir,d as hs,b as ar}from"./react-BDtnT4_L.js";i
|
|
|
1619
1619
|
b {
|
|
1620
1620
|
font-weight: 700;
|
|
1621
1621
|
}
|
|
1622
|
-
`;function Fu(t){return t.map(s=>({address:s.address,amount:Number(s.amount)}))}function Bu({item:t,session:s,onClose:l,onIssued:o}){const d=dt(),[u,x]=c.useState([{address:"",amount:"1"}]),[m,y]=c.useState(!1),[$,h]=c.useState(null),[g,w]=c.useState(null),k=c.useRef(null),I=an(s),C=Fu(u),S=Er(C),B=cu(C,t.available),f=S>t.available;c.useEffect(()=>{var R;(R=k.current)==null||R.focus();function A(K){K.key==="Escape"&&!m&&l()}return window.addEventListener("keydown",A),()=>window.removeEventListener("keydown",A)},[m,l]);function N(A,R){x(K=>K.map((G,ne)=>ne===A?{...G,...R}:G))}function r(){x(A=>[...A,{address:"",amount:"1"}])}function E(A){x(R=>R.length<=1?R:R.filter((K,G)=>G!==A))}async function Y(){if(!(!B||m)){h(null),y(!0);try{await hu({signer:s.signer,contractAddress:t.contractAddress,chainId:t.chainId,entries:C,itemId:t.itemId}),X("Shop Issued Item",{contract_address:t.contractAddress,item_id:t.itemId,recipients:C.filter(A=>A.address.trim().length>0).length,copies:S}),w(S),
|
|
1622
|
+
`;function Fu(t){return t.map(s=>({address:s.address,amount:Number(s.amount)}))}function Bu({item:t,session:s,onClose:l,onIssued:o}){const d=dt(),[u,x]=c.useState([{address:"",amount:"1"}]),[m,y]=c.useState(!1),[$,h]=c.useState(null),[g,w]=c.useState(null),k=c.useRef(null),I=an(s),C=Fu(u),S=Er(C),B=cu(C,t.available),f=S>t.available;c.useEffect(()=>{var R;(R=k.current)==null||R.focus();function A(K){K.key==="Escape"&&!m&&l()}return window.addEventListener("keydown",A),()=>window.removeEventListener("keydown",A)},[m,l]);function N(A,R){x(K=>K.map((G,ne)=>ne===A?{...G,...R}:G))}function r(){x(A=>[...A,{address:"",amount:"1"}])}function E(A){x(R=>R.length<=1?R:R.filter((K,G)=>G!==A))}async function Y(){if(!(!B||m)){h(null),y(!0);try{await hu({signer:s.signer,contractAddress:t.contractAddress,chainId:t.chainId,entries:C,itemId:t.itemId}),X("Shop Issued Item",{contract_address:t.contractAddress,item_id:t.itemId,recipients:C.filter(A=>A.address.trim().length>0).length,copies:S}),w(S),Pt.success(i("issue.toastSuccess",{count:S,name:t.name})),d.invalidateQueries({queryKey:["publishable-item"]}),d.invalidateQueries({queryKey:["publishable-items"]}),o==null||o()}catch(A){yt(A)||ue(A,{flow:"issue-item",itemId:t.itemId}),X("Shop Issue Failed",{error_code:$e(A)}),h(yt(A)?i("getCredits.errorCanceled"):_e(A,i("issue.errorGeneric")))}finally{y(!1)}}}const U=m?I?i("issue.issuing"):i("issue.confirm"):S>0?i("issue.issueCount",{count:S}):i("issue.issue");return e.jsx(xu,{onClick:m?void 0:l,role:"presentation",children:e.jsxs(fu,{ref:k,tabIndex:-1,"data-testid":"issue-modal",onClick:A=>A.stopPropagation(),role:"dialog","aria-modal":"true","aria-label":i("issue.title"),children:[e.jsxs(mu,{children:[e.jsx(gu,{children:i("issue.title")}),e.jsx(bu,{onClick:l,disabled:m,"aria-label":i("sellModal.cancel"),children:e.jsx(P,{name:"close",className:"ico"})})]}),g!==null?e.jsxs(e.Fragment,{children:[e.jsxs(Lu,{children:[e.jsx(Tu,{"aria-hidden":!0,children:e.jsx(P,{name:"check",className:"ico"})}),e.jsx(Eu,{children:i("issue.successBody",{count:g,name:t.name})})]}),e.jsx(ma,{children:e.jsx(ga,{onClick:l,children:i("getCredits.done")})})]}):e.jsxs(e.Fragment,{children:[e.jsxs(wu,{children:[e.jsx(vu,{children:t.thumbnail?e.jsx("img",{src:t.thumbnail,alt:""}):null}),e.jsx(ju,{children:t.name})]}),e.jsx(yu,{children:i("issue.subtitle")}),e.jsx(ku,{children:u.map((A,R)=>{const K=A.address.trim(),G=K.length>0&&!Tr(K),ne=Number(A.amount),de=A.amount.length>0&&(!Number.isInteger(ne)||ne<1);return e.jsxs($u,{children:[e.jsxs(Cu,{children:[e.jsx(xa,{children:i("issue.addressLabel")}),e.jsx(fa,{type:"text",spellCheck:!1,autoComplete:"off",placeholder:"0x…",value:A.address,onChange:ee=>N(R,{address:ee.target.value}),disabled:m,"aria-invalid":G,"aria-label":i("issue.addressLabel")}),G?e.jsx(Ru,{children:i("issue.invalidAddress")}):null]}),e.jsxs(Iu,{children:[e.jsx(xa,{children:i("issue.amountLabel")}),e.jsx(fa,{type:"number",min:"1",step:"1",inputMode:"numeric",value:A.amount,onChange:ee=>N(R,{amount:ee.target.value}),disabled:m,"aria-invalid":de,"aria-label":i("issue.amountLabel")})]}),e.jsx(Su,{onClick:()=>E(R),disabled:m||u.length<=1,"aria-label":i("issue.removeRow"),children:e.jsx(P,{name:"close",className:"ico"})})]},R)})}),e.jsxs(Au,{onClick:r,disabled:m,children:[e.jsx(P,{name:"plus",className:"ico"}),i("issue.addRow")]}),e.jsxs(Mu,{over:f,"aria-live":"polite",children:[e.jsx("strong",{children:S})," / ",t.available," ",i("issue.itemsToIssue")]}),f?e.jsx(zu,{children:i("issue.overCap",{available:t.available})}):null,e.jsx(Ve,{message:$}),e.jsxs(ma,{children:[e.jsx(Pu,{onClick:l,disabled:m,children:i("sellModal.cancel")}),e.jsx(ga,{onClick:()=>void Y(),disabled:!B||m,children:U})]})]})]})})}const Nu=a.div`
|
|
1623
1623
|
position: fixed;
|
|
1624
1624
|
inset: 0;
|
|
1625
1625
|
z-index: 10000;
|
|
@@ -1677,7 +1677,7 @@ import{r as c,j as e,u as lt,L as ir,d as hs,b as ar}from"./react-BDtnT4_L.js";i
|
|
|
1677
1677
|
max-height: 70vh;
|
|
1678
1678
|
border-radius: 12px;
|
|
1679
1679
|
background: ${n.colors.blackBtn};
|
|
1680
|
-
`;function Hu({src:t,itemName:s,onClose:l}){const o=c.useRef(null);return c.useEffect(()=>{var u;(u=o.current)==null||u.focus();function d(x){x.key==="Escape"&&l()}return window.addEventListener("keydown",d),()=>window.removeEventListener("keydown",d)},[l]),e.jsx(Nu,{onClick:l,role:"presentation",children:e.jsxs(Wu,{ref:o,tabIndex:-1,onClick:d=>d.stopPropagation(),"data-testid":"modal",role:"dialog","aria-modal":"true","aria-label":i("itemDetail.showcaseTitle"),children:[e.jsxs(Du,{children:[e.jsx(Ou,{children:s||i("itemDetail.showcaseTitle")}),e.jsx(qu,{onClick:l,"aria-label":i("itemDetail.showcaseClose"),children:e.jsx(
|
|
1680
|
+
`;function Hu({src:t,itemName:s,onClose:l}){const o=c.useRef(null);return c.useEffect(()=>{var u;(u=o.current)==null||u.focus();function d(x){x.key==="Escape"&&l()}return window.addEventListener("keydown",d),()=>window.removeEventListener("keydown",d)},[l]),e.jsx(Nu,{onClick:l,role:"presentation",children:e.jsxs(Wu,{ref:o,tabIndex:-1,onClick:d=>d.stopPropagation(),"data-testid":"modal",role:"dialog","aria-modal":"true","aria-label":i("itemDetail.showcaseTitle"),children:[e.jsxs(Du,{children:[e.jsx(Ou,{children:s||i("itemDetail.showcaseTitle")}),e.jsx(qu,{onClick:l,"aria-label":i("itemDetail.showcaseClose"),children:e.jsx(P,{name:"close",size:18})})]}),e.jsx(Ku,{src:t,"data-testid":"showcase-video",controls:!0,autoPlay:!0,muted:!0,playsInline:!0,preload:"auto"})]})})}const{colors:Oe,radius:Uu}=n,Qu=a.div`
|
|
1681
1681
|
position: fixed;
|
|
1682
1682
|
inset: 0;
|
|
1683
1683
|
z-index: 60;
|
|
@@ -1767,7 +1767,7 @@ import{r as c,j as e,u as lt,L as ir,d as hs,b as ar}from"./react-BDtnT4_L.js";i
|
|
|
1767
1767
|
margin-top: 18px;
|
|
1768
1768
|
`,ja=a(Je)`
|
|
1769
1769
|
flex: 1;
|
|
1770
|
-
`;function Sn(t){if(yt(t))return i("errors.rejected");const s=(t.message??"").toLowerCase();return s.includes("insufficient")?i("marketCheckout.error.insufficient",{currency:ze.name}):s.includes("not found")||s.includes("no active listing")||s.includes("404")?i("marketCheckout.error.soldOrRemoved"):s.includes("your own listing")?i("errors.cantBuyOwn"):i("marketCheckout.error.generic")}function ip(t){return{id:t.tradeId,tradeId:t.tradeId,name:t.name,creator:t.creator,contractAddress:t.contractAddress,itemId:t.itemId,category:t.category,wearableCategory:t.wearableCategory??void 0,rarity:t.rarity,network:t.network,chainId:t.chainId,thumbnail:t.thumbnail,priceCredits:0,gender:null,isSmart:!1}}function Br({listing:t,rate:s,onClose:l,onSold:o}){const{session:d}=ot(),{data:u,isError:x}=rr(d),m=dt(),y=lt(),[$,h]=c.useState("confirm"),[g,w]=c.useState(i("marketCheckout.checkingListing")),[k,I]=c.useState(null),[C,S]=c.useState(null),[B,f]=c.useState(null),[N,r]=c.useState(!1),E=c.useRef(null),Y=c.useRef(!1),U=c.useRef(zr());c.useEffect(()=>(Y.current=!1,()=>{Y.current=!0}),[]);const A=Qe(hn(t.manaWei,s));c.useEffect(()=>{let _=!1;if(!d){h("error"),I(i("buyModal.signInToCheckout"));return}return(async()=>{try{const H=await ur(t.tradeId);if(!H)throw new Error("not found");if(Ts(H,d.address))throw new Error("You can't buy your own listing.");const v=hn(t.manaWei,s);if(!Number.isFinite(v)||v<=0)throw new Error("price unavailable");if(_)return;S({trade:H,usdCents:v,credits:Qe(v)}),w("")}catch(H){if(_)return;console.error("[market] listing check failed",H),X(we(H)?"Shop Purchase Cancelled":"Shop Purchase Failed",{step:"resolve",error_code:$e(H),value_usd:Math.round(hn(t.manaWei,s))/100}),h("error"),I(Sn(H))}})(),()=>{_=!0,E.current&&d&&(ne([E.current]),E.current=null)}},[]);const R=!!C&&u!=null&&u.credits<C.credits;async function K(){if(!d||!C)return;if(R){X("Shop Buy Credits Prompted",{from:"item_checkout",credits_needed:C.credits,credits_balance:(u==null?void 0:u.credits)??0,shortfall:Math.max(0,C.credits-((u==null?void 0:u.credits)??0))}),E.current&&(await G([E.current])&&f(null),E.current=null),y("/credits");return}h("working"),I(null),r(!1);let _=B;if(!_){w(i("marketCheckout.lockingPrice"));try{const{credit:
|
|
1770
|
+
`;function Sn(t){if(yt(t))return i("errors.rejected");const s=(t.message??"").toLowerCase();return s.includes("insufficient")?i("marketCheckout.error.insufficient",{currency:ze.name}):s.includes("not found")||s.includes("no active listing")||s.includes("404")?i("marketCheckout.error.soldOrRemoved"):s.includes("your own listing")?i("errors.cantBuyOwn"):i("marketCheckout.error.generic")}function ip(t){return{id:t.tradeId,tradeId:t.tradeId,name:t.name,creator:t.creator,contractAddress:t.contractAddress,itemId:t.itemId,category:t.category,wearableCategory:t.wearableCategory??void 0,rarity:t.rarity,network:t.network,chainId:t.chainId,thumbnail:t.thumbnail,priceCredits:0,gender:null,isSmart:!1}}function Br({listing:t,rate:s,onClose:l,onSold:o}){const{session:d}=ot(),{data:u,isError:x}=rr(d),m=dt(),y=lt(),[$,h]=c.useState("confirm"),[g,w]=c.useState(i("marketCheckout.checkingListing")),[k,I]=c.useState(null),[C,S]=c.useState(null),[B,f]=c.useState(null),[N,r]=c.useState(!1),E=c.useRef(null),Y=c.useRef(!1),U=c.useRef(zr());c.useEffect(()=>(Y.current=!1,()=>{Y.current=!0}),[]);const A=Qe(hn(t.manaWei,s));c.useEffect(()=>{let _=!1;if(!d){h("error"),I(i("buyModal.signInToCheckout"));return}return(async()=>{try{const H=await ur(t.tradeId);if(!H)throw new Error("not found");if(Ts(H,d.address))throw new Error("You can't buy your own listing.");const v=hn(t.manaWei,s);if(!Number.isFinite(v)||v<=0)throw new Error("price unavailable");if(_)return;S({trade:H,usdCents:v,credits:Qe(v)}),w("")}catch(H){if(_)return;console.error("[market] listing check failed",H),X(we(H)?"Shop Purchase Cancelled":"Shop Purchase Failed",{step:"resolve",error_code:$e(H),value_usd:Math.round(hn(t.manaWei,s))/100}),h("error"),I(Sn(H))}})(),()=>{_=!0,E.current&&d&&(ne([E.current]),E.current=null)}},[]);const R=!!C&&u!=null&&u.credits<C.credits;async function K(){if(!d||!C)return;if(R){X("Shop Buy Credits Prompted",{from:"item_checkout",credits_needed:C.credits,credits_balance:(u==null?void 0:u.credits)??0,shortfall:Math.max(0,C.credits-((u==null?void 0:u.credits)??0))}),E.current&&(await G([E.current])&&f(null),E.current=null),y("/credits");return}h("working"),I(null),r(!1);let _=B;if(!_){w(i("marketCheckout.lockingPrice"));try{const{credit:L,maxCreditedValue:F,usdCents:z}=await Fn(d.identity,C.usdCents,t.tradeId);if(Y.current){G([L.id]);return}E.current=L.id,m.invalidateQueries({queryKey:["usd-balance"]});const se=Qe(z);if(_={trade:C.trade,credit:L,maxCreditedValue:F,usdCents:z,credits:se},f(_),se!==C.credits){S({trade:C.trade,usdCents:z,credits:se}),r(!0),w(""),h("confirm");return}}catch(L){console.error("[market] authorize failed",L),we(L)||ue(L,{flow:"market_buy_now",step:"authorize"}),X(we(L)?"Shop Purchase Cancelled":"Shop Purchase Failed",{step:"authorize",error_code:$e(L),value_usd:C.usdCents/100}),w(""),I(Sn(L)),h("error");return}}if(!_)return;const O=_;let H=!1,v;try{w(i("marketCheckout.confirming"));const L={trade:O.trade,buyer:d.address,signer:d.signer,credits:[O.credit],maxCreditedValue:O.maxCreditedValue,onBroadcast:({txHash:F})=>U.current.broadcast(O.credit.id,F),onReverted:({txHash:F})=>{F&&U.current.reverted(F)}};if(U.current.submitStarted(O.credit.id),vr())try{v=await Jl(L),U.current.broadcast(O.credit.id,v),await $r(v),H=!0}catch(F){if(F instanceof Cr)H=!0;else if(F instanceof Ir){if(F.reason==="relayer-unreachable")throw U.current.unobservable(O.credit.id),F;if(!en(d.providerType))throw F;v=await Wi(L)}else throw v&&U.current.reverted(v),F}else v=await Wi(L)}catch(L){U.current.submitFinished(O.credit.id),console.error("[market] buy now failed",L),await G([O.credit.id])&&f(null),E.current=null,X(we(L)?"Shop Purchase Cancelled":"Shop Purchase Failed",{step:"submit",error_code:$e(L),value_usd:O.usdCents/100}),m.invalidateQueries({queryKey:["usd-balance"]}),I(Sn(L)),h("error");const F=(L.message??"").toLowerCase();(F.includes("not found")||F.includes("no active listing")||F.includes("404"))&&o();return}U.current.submitFinished(O.credit.id),E.current=null;try{m.invalidateQueries({queryKey:["usd-balance"]}),X("Shop Completed Purchase",{items:[{item_id:t.itemId??null,contract_address:t.contractAddress,token_id:null,price_usd:O.usdCents/100,category:t.category,is_smart:!1}],value_credits:O.credits,value_usd:O.usdCents/100,purchase_type:"item",is_primary:!0,payment_type:"credits",no_crypto_step:H,transaction_hash:v??null}),m.invalidateQueries({queryKey:["detail-trade"]}),m.invalidateQueries({queryKey:["shop-item"]}),m.invalidateQueries({queryKey:["item-resales",t.contractAddress,t.itemId]}),m.invalidateQueries({queryKey:["shop-items"]}),m.invalidateQueries({queryKey:["catalog-items"]}),m.invalidateQueries({queryKey:["my-assets"]}),m.invalidateQueries({queryKey:["purchases"]})}catch(L){ue(L,{flow:"market_buy_now",step:"post_purchase"})}const fe={items:[ip(t)],txHash:v};y("/success",{state:fe})}async function G(_){if(!d||_.length===0)return!1;const O=_.filter(H=>!U.current.mayBeConsumed(H));if(O.length===0)return!1;try{return await sr(d.identity,O),!0}catch{return!1}}function ne(_){G(_.filter(O=>!U.current.isInFlight(O)))}function de(){d&&B&&G([B.credit.id]),E.current=null,l()}const ee=$==="working";return e.jsxs(Qu,{role:"dialog","aria-modal":"true","aria-label":i("buyModal.dialogAria",{name:t.name}),children:[e.jsx(Gu,{onClick:ee?void 0:de,"aria-hidden":!0}),e.jsxs(_u,{children:[e.jsxs(Vu,{children:[e.jsx(Ju,{children:t.thumbnail?e.jsx("img",{src:t.thumbnail,alt:""}):null}),e.jsxs("div",{children:[e.jsx(Yu,{title:t.name,children:t.name||i("buyModal.itemFallback")}),e.jsx(cr,{"data-variant":"rarity",children:t.rarity})]})]}),e.jsx(Xu,{children:C?e.jsxs(e.Fragment,{children:[e.jsx(ba,{children:i("marketCheckout.finalPrice")}),e.jsxs(ya,{children:[e.jsx(wa,{}),e.jsx(ye,{credits:C.credits})," ",Ri(C.credits)]}),e.jsxs(va,{className:"muted",children:["$",rt(C.credits).toFixed(2)]})]}):e.jsxs(e.Fragment,{children:[e.jsx(ba,{children:i("marketCheckout.todaysPrice")}),e.jsxs(ya,{"data-approx":!0,children:[e.jsx(Zu,{"aria-hidden":!0,children:"≈"}),e.jsx(wa,{}),e.jsx(ye,{credits:A})," ",Ri(A)]}),e.jsx(va,{className:"muted",children:g||i("marketCheckout.checkingListing")})]})}),d?e.jsxs(ep,{className:"muted",children:[i("marketCheckout.yourBalance")," ",e.jsx(ve,{className:"ccy-mark"})," ",Ls(u,x)]}):null,R?e.jsx(In,{className:"muted",children:i("marketCheckout.needMore",{currency:ze.name})}):null,N?e.jsx(In,{"data-testid":"price-changed",role:"status",children:i("buyModal.priceChanged")}):null,g&&$==="working"?e.jsx(In,{className:"muted",children:g}):null,e.jsx(tp,{message:k}),e.jsxs(np,{children:[e.jsx(ja,{variant:"ghost",onClick:de,disabled:ee,children:i("buyModal.cancel")}),e.jsx(ja,{variant:"purple",onClick:()=>void K(),disabled:ee||!C||R&>(),children:ee?i("marketCheckout.buying"):R&&!gt()?i("nav.getCredits",{currency:ze.name}):i("marketCheckout.confirmPurchase")})]})]})]})}function ap(t,s,{enabled:l=!0,first:o}={}){const{data:d,isFetched:u}=te({queryKey:["related-items",t,s,o],enabled:l&&!!t&&!!s,staleTime:3e5,queryFn:()=>Es(t,s,{first:o})});return{items:d??[],isFetched:u}}const Nr=15;function rp(t){return`${t.contractAddress}-${t.itemId??t.tokenId??t.id}`.toLowerCase()}function sp(t,s){return!!(s.id&&t.id===s.id||s.itemId&&t.itemId===s.itemId&&ka(t,s)||s.tokenId&&t.tokenId===s.tokenId&&ka(t,s))}function ka(t,s){var l;return s.contractAddress?((l=t.contractAddress)==null?void 0:l.toLowerCase())===s.contractAddress.toLowerCase():!1}function An(t,s,l=Nr){const o=new Set,d=[];function u(m,y){for(const $ of m){if(d.length>=y)return;if(sp($,s))continue;const h=rp($);o.has(h)||(o.add(h),d.push($))}}u(t.collection,1/0);const x=d.length;return u(t.creator??[],l),u(t.related??[],l),{items:d,isCollectionOnly:d.length>0&&d.length===x}}const op=20,lp=30,$a=[];function dp(t,s=Nr){const{id:l,contractAddress:o,itemId:d,tokenId:u,creator:x}=t,m=c.useMemo(()=>({id:l,contractAddress:o,itemId:d,tokenId:u}),[l,o,d,u]),{data:y=$a,isFetched:$}=te({queryKey:["collection-items",o],enabled:!!o,queryFn:()=>Bs(o,{first:op}).then(r=>r.items)}),h=c.useMemo(()=>An({collection:y},m,s).items.length,[y,m,s]),g=$&&h<s,w=g&&!!x,k=te({queryKey:["suggestions-creator",x],enabled:w,staleTime:5*6e4,queryFn:()=>Ns({creator:x,isOnSale:!0,first:lp}).then(r=>r.items)}),I=k.data??$a,C=!w||k.isSuccess||k.isError,S=c.useMemo(()=>An({collection:y,creator:I},m,s).items.length,[y,I,m,s]),{items:B}=ap(o,d??null,{enabled:g&&C&&S<s,first:s}),f=c.useMemo(()=>An({collection:y,creator:I,related:B},m,s),[y,I,B,m,s]),N=Fs(f.items);return{...f,items:N,siblings:y,siblingsFetched:$}}function cp(t){const s=Ws();return!s||!Ds(s.contracts,t)?null:s.label}const{colors:Fe,media:Kn}=n,up=Os`
|
|
1771
1771
|
to {
|
|
1772
1772
|
transform: rotate(360deg);
|
|
1773
1773
|
}
|
|
@@ -1828,7 +1828,7 @@ import{r as c,j as e,u as lt,L as ir,d as hs,b as ar}from"./react-BDtnT4_L.js";i
|
|
|
1828
1828
|
${Kn.maxWidth("lg")} {
|
|
1829
1829
|
display: none;
|
|
1830
1830
|
}
|
|
1831
|
-
`,Sa=a(
|
|
1831
|
+
`,Sa=a(P)`
|
|
1832
1832
|
display: none;
|
|
1833
1833
|
|
|
1834
1834
|
${Kn.maxWidth("lg")} {
|
|
@@ -2179,7 +2179,7 @@ import{r as c,j as e,u as lt,L as ir,d as hs,b as ar}from"./react-BDtnT4_L.js";i
|
|
|
2179
2179
|
outline: 2px solid ${n.colors.accent};
|
|
2180
2180
|
outline-offset: 2px;
|
|
2181
2181
|
}
|
|
2182
|
-
`,
|
|
2182
|
+
`,Pp=a.button`
|
|
2183
2183
|
${Dr}
|
|
2184
2184
|
min-width: 106px;
|
|
2185
2185
|
background: ${n.colors.text2};
|
|
@@ -2200,7 +2200,7 @@ import{r as c,j as e,u as lt,L as ir,d as hs,b as ar}from"./react-BDtnT4_L.js";i
|
|
|
2200
2200
|
&:hover:not(:disabled) {
|
|
2201
2201
|
background: ${n.colors.accentHover};
|
|
2202
2202
|
}
|
|
2203
|
-
`,
|
|
2203
|
+
`,Lp=a.span`
|
|
2204
2204
|
display: inline-flex;
|
|
2205
2205
|
align-items: center;
|
|
2206
2206
|
height: 40px;
|
|
@@ -2310,7 +2310,7 @@ import{r as c,j as e,u as lt,L as ir,d as hs,b as ar}from"./react-BDtnT4_L.js";i
|
|
|
2310
2310
|
width: 14px;
|
|
2311
2311
|
height: 14px;
|
|
2312
2312
|
}
|
|
2313
|
-
`;const Jt=10,Bp=!1;function Np(t){return/^0x[a-fA-F0-9]{40}$/.test(t)?`${t.slice(0,6)}…${t.slice(-4)}`:t}function Wp(t){let s=0;for(let l=0;l<t.length;l++)s=s*31+t.charCodeAt(l)>>>0;return`hsl(${s%360}, 52%, 45%)`}function Dp(t,s){var l;return(((l=t==null?void 0:t.trim())==null?void 0:l[0])||s.replace(/^0x/i,"")[0]||"?").toUpperCase()}function Op(t){return t%100>=11&&t%100<=13?"th":["th","st","nd","rd"][t%10]??"th"}function qp(t,s){const l=new Date(t);return Number.isNaN(l.getTime())?"—":s==="en"?`${new Intl.DateTimeFormat("en",{month:"long"}).format(l)} ${l.getDate()}${Op(l.getDate())}, ${l.getFullYear()}`:new Intl.DateTimeFormat(s,{day:"numeric",month:"long",year:"numeric"}).format(l)}function Kp(t){return{tradeId:t.tradeId??t.id,listingType:"primary",contractAddress:t.contractAddress,itemId:t.itemId??"",name:t.name,thumbnail:t.thumbnail,rarity:t.rarity,category:t.category,wearableCategory:t.wearableCategory??null,creator:t.creator,manaWei:t.manaWei??"0",available:1,network:t.network,chainId:t.chainId,createdAt:0}}function Hp({r:t,seller:s,issuedId:l,labels:o,locale:d,isOwn:u,isLegacy:x,inCart:m,fallbackImage:y,onAdd:$,onBuyNative:h,onBuyLegacy:g}){var E,Y;const w=lt(),{data:k}=tn(s),I=(Y=(E=k==null?void 0:k.avatar)==null?void 0:E.snapshots)==null?void 0:Y.face256,[C,S]=c.useState(!1);c.useEffect(()=>S(!1),[I]);const B=!!I&&!C,f=s?k!=null&&k.name?nn(k.name):Np(s):void 0,N=B?e.jsx("img",{className:"owner-ava",src:I,alt:"",loading:"lazy",onError:()=>S(!0)}):s?e.jsx("span",{className:"owner-ava",style:{backgroundColor:Wp(s)},"aria-hidden":!0,children:Dp(k==null?void 0:k.name,s)}):y?e.jsx("img",{className:"owner-ava",src:y,alt:"","aria-hidden":!0}):e.jsx("span",{className:"owner-ava","aria-hidden":!0}),r=e.jsxs(e.Fragment,{children:[N,f?e.jsx("span",{className:"owner-name","data-testid":"resale-seller",children:f}):null]});return e.jsxs("tr",{"data-testid":"resale-row","data-source":t.source,"data-own":u?"true":void 0,children:[e.jsx("td",{"data-label":o.owner,children:s?e.jsx(Mp,{type:"button",onClick:()=>w(`/items/creator/${s}`),children:r}):e.jsx(Ap,{children:r})}),e.jsx("td",{"data-label":o.itemNumber,children:l?e.jsxs("span",{"data-testid":"resale-issued",children:["#",l]}):e.jsx(Ma,{children:"—"})}),e.jsx("td",{"data-label":o.expiration,children:t.saleEndsAt?qp(t.saleEndsAt,d):e.jsx(Ma,{children:"—"})}),e.jsx("td",{"data-label":o.price,children:e.jsxs(zp,{children:[e.jsxs("span",{className:"amount",children:[x?e.jsx("span",{className:"approx","aria-hidden":!0,children:"≈"}):null,e.jsx(ve,{className:"ccy"}),e.jsx("span",{children:Ge(t.priceCredits)})]}),e.jsx(Rp,{"data-persistent":u?"true":void 0,children:u?e.jsx(
|
|
2313
|
+
`;const Jt=10,Bp=!1;function Np(t){return/^0x[a-fA-F0-9]{40}$/.test(t)?`${t.slice(0,6)}…${t.slice(-4)}`:t}function Wp(t){let s=0;for(let l=0;l<t.length;l++)s=s*31+t.charCodeAt(l)>>>0;return`hsl(${s%360}, 52%, 45%)`}function Dp(t,s){var l;return(((l=t==null?void 0:t.trim())==null?void 0:l[0])||s.replace(/^0x/i,"")[0]||"?").toUpperCase()}function Op(t){return t%100>=11&&t%100<=13?"th":["th","st","nd","rd"][t%10]??"th"}function qp(t,s){const l=new Date(t);return Number.isNaN(l.getTime())?"—":s==="en"?`${new Intl.DateTimeFormat("en",{month:"long"}).format(l)} ${l.getDate()}${Op(l.getDate())}, ${l.getFullYear()}`:new Intl.DateTimeFormat(s,{day:"numeric",month:"long",year:"numeric"}).format(l)}function Kp(t){return{tradeId:t.tradeId??t.id,listingType:"primary",contractAddress:t.contractAddress,itemId:t.itemId??"",name:t.name,thumbnail:t.thumbnail,rarity:t.rarity,category:t.category,wearableCategory:t.wearableCategory??null,creator:t.creator,manaWei:t.manaWei??"0",available:1,network:t.network,chainId:t.chainId,createdAt:0}}function Hp({r:t,seller:s,issuedId:l,labels:o,locale:d,isOwn:u,isLegacy:x,inCart:m,fallbackImage:y,onAdd:$,onBuyNative:h,onBuyLegacy:g}){var E,Y;const w=lt(),{data:k}=tn(s),I=(Y=(E=k==null?void 0:k.avatar)==null?void 0:E.snapshots)==null?void 0:Y.face256,[C,S]=c.useState(!1);c.useEffect(()=>S(!1),[I]);const B=!!I&&!C,f=s?k!=null&&k.name?nn(k.name):Np(s):void 0,N=B?e.jsx("img",{className:"owner-ava",src:I,alt:"",loading:"lazy",onError:()=>S(!0)}):s?e.jsx("span",{className:"owner-ava",style:{backgroundColor:Wp(s)},"aria-hidden":!0,children:Dp(k==null?void 0:k.name,s)}):y?e.jsx("img",{className:"owner-ava",src:y,alt:"","aria-hidden":!0}):e.jsx("span",{className:"owner-ava","aria-hidden":!0}),r=e.jsxs(e.Fragment,{children:[N,f?e.jsx("span",{className:"owner-name","data-testid":"resale-seller",children:f}):null]});return e.jsxs("tr",{"data-testid":"resale-row","data-source":t.source,"data-own":u?"true":void 0,children:[e.jsx("td",{"data-label":o.owner,children:s?e.jsx(Mp,{type:"button",onClick:()=>w(`/items/creator/${s}`),children:r}):e.jsx(Ap,{children:r})}),e.jsx("td",{"data-label":o.itemNumber,children:l?e.jsxs("span",{"data-testid":"resale-issued",children:["#",l]}):e.jsx(Ma,{children:"—"})}),e.jsx("td",{"data-label":o.expiration,children:t.saleEndsAt?qp(t.saleEndsAt,d):e.jsx(Ma,{children:"—"})}),e.jsx("td",{"data-label":o.price,children:e.jsxs(zp,{children:[e.jsxs("span",{className:"amount",children:[x?e.jsx("span",{className:"approx","aria-hidden":!0,children:"≈"}):null,e.jsx(ve,{className:"ccy"}),e.jsx("span",{children:Ge(t.priceCredits)})]}),e.jsx(Rp,{"data-persistent":u?"true":void 0,children:u?e.jsx(Lp,{"data-testid":"resale-own",children:i("resales.yourListing")}):x?e.jsx(za,{onClick:g,"aria-label":i("assetCard.buyNow"),"data-testid":"resale-buy",children:i("resales.buy")}):e.jsxs(e.Fragment,{children:[e.jsxs(Pp,{onClick:$,disabled:m,"aria-label":m?i("assetCard.inCart"):i("assetCard.addToCart"),"data-testid":"resale-add",children:[e.jsx(P,{name:"cart",className:"ico"}),e.jsx("span",{children:m?i("assetCard.inCart"):i("resales.add")})]}),e.jsx(za,{onClick:h,"aria-label":i("assetCard.buyNow"),"data-testid":"resale-buy",children:i("resales.buy")})]})})]})})]})}function Up({item:t,onClose:s}){var H;const l=t.contractAddress,o=t.itemId,d=dt(),u=Rt(v=>v.add),x=Rt(v=>v.items),{session:m}=ot(),y=pr(v=>v.locale),$=(H=m==null?void 0:m.address)==null?void 0:H.toLowerCase(),h=c.useRef(null),[g,w]=c.useState(null),[k,I]=c.useState(null),[C,S]=c.useState("cheapest"),[B,f]=c.useState(0),N=!!g||!!k;c.useEffect(()=>{var v;(v=h.current)==null||v.focus()},[]),c.useEffect(()=>{function v(L){L.key==="Escape"&&!N&&s()}window.addEventListener("keydown",v);const fe=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{window.removeEventListener("keydown",v),document.body.style.overflow=fe}},[N,s]);const{data:r=[],isLoading:E}=te({queryKey:["item-resales",l,o],enabled:!!l&&!!o,staleTime:0,refetchOnMount:"always",refetchOnWindowFocus:!0,queryFn:()=>xr(l,o)}),Y=c.useMemo(()=>C==="cheapest"?r:[...r].sort((v,fe)=>fe.priceCredits-v.priceCredits),[r,C]),U=Math.max(1,Math.ceil(Y.length/Jt)),A=Math.min(B,U-1),R=Y.slice(A*Jt,A*Jt+Jt),K=R.filter(v=>!v.seller||!v.issuedId).map(v=>v.tokenId).filter(v=>!!v),{data:G={}}=te({queryKey:["resale-token-info",l,K.join(",")],enabled:!!l&&K.length>0,staleTime:6e4,queryFn:()=>_s(l,K)}),{data:ne=[]}=te({queryKey:["item-classic-orders",l,o],enabled:Bp,queryFn:()=>Vs(l,o)}),de=r.some(v=>v.source==="legacy"),{data:ee}=hr(de);function _(){d.invalidateQueries({queryKey:["item-resales",l,o]})}const O={owner:i("resales.colOwner"),itemNumber:i("resales.colItemNumber"),expiration:i("resales.colExpiration"),price:i("resales.colPrice")};return e.jsxs(e.Fragment,{children:[e.jsx(gp,{onClick:N?void 0:s,role:"presentation",children:e.jsxs(bp,{ref:h,tabIndex:-1,onClick:v=>v.stopPropagation(),role:"dialog","aria-modal":"true","aria-label":i("resales.modalTitle"),"data-testid":"resellers-modal",children:[e.jsxs(yp,{children:[e.jsx(wp,{children:i("resales.modalTitle")}),e.jsx(vp,{onClick:s,"aria-label":i("resales.close"),"data-testid":"resellers-close",children:e.jsx(P,{name:"close"})})]}),e.jsxs(jp,{children:[e.jsxs(kp,{children:[e.jsx($p,{"data-testid":"resales-count",children:i("resales.count",{count:r.length})}),e.jsxs(Cp,{children:[e.jsxs("select",{value:C,onChange:v=>{S(v.target.value),f(0)},"aria-label":i("resales.sortLabel"),"data-testid":"resales-sort",children:[e.jsx("option",{value:"cheapest",children:i("resales.sortCheapest")}),e.jsx("option",{value:"most_expensive",children:i("resales.sortExpensive")})]}),e.jsx(P,{name:"chevron-down",className:"chev"})]})]}),E?null:Y.length===0?e.jsx(Fp,{"data-testid":"resales-empty",children:i("resales.empty")}):null,Y.length>0?e.jsxs(e.Fragment,{children:[e.jsx(Ip,{children:e.jsxs(Sp,{children:[e.jsx("thead",{children:e.jsxs("tr",{children:[e.jsx("th",{scope:"col",children:O.owner}),e.jsx("th",{scope:"col",children:O.itemNumber}),e.jsx("th",{scope:"col",children:O.expiration}),e.jsx("th",{scope:"col",children:O.price})]})}),e.jsx("tbody",{children:R.map(v=>{const fe=v.source==="legacy",L=x.some(Q=>Q.id===v.id),F=v.tokenId&&G[v.tokenId]||{},z=v.issuedId??F.issuedId,se=v.seller??F.seller,ie={...v,name:v.name||t.name,thumbnail:v.thumbnail||t.thumbnail,rarity:v.rarity||t.rarity,category:v.category||t.category,wearableCategory:v.wearableCategory??t.wearableCategory,gender:v.gender??t.gender},xe=!!se&&!!$&&se.toLowerCase()===$;return e.jsx(Hp,{r:ie,seller:se,issuedId:z,labels:O,locale:y,isOwn:xe,isLegacy:fe,inCart:L,fallbackImage:ie.thumbnail,onAdd:()=>u(ie,"item_detail"),onBuyNative:()=>w(ie),onBuyLegacy:()=>I(Kp(ie))},v.tradeId??v.id)})})]})}),U>1?e.jsxs(Tp,{children:[e.jsx(Ra,{"data-dir":"prev",onClick:()=>f(v=>Math.max(0,v-1)),disabled:A===0,"aria-label":i("resales.prevPage"),"data-testid":"resale-prev-page",children:e.jsx(P,{name:"chevron-down"})}),e.jsx(Ep,{"data-testid":"resale-page-label",children:i("resales.page",{page:A+1,total:U})}),e.jsx(Ra,{onClick:()=>f(v=>Math.min(U-1,v+1)),disabled:A>=U-1,"aria-label":i("resales.nextPage"),"data-testid":"resale-next-page",children:e.jsx(P,{name:"chevron-down"})})]}):null]}):null,null]})]})}),g?e.jsx(Bn,{item:g,onClose:()=>{w(null),_()}}):null,k&&ee?e.jsx(Br,{listing:k,rate:ee,onClose:()=>I(null),onSold:()=>{I(null),_()}}):null]})}const Qp="data:image/svg+xml,%3csvg%20preserveAspectRatio='none'%20overflow='visible'%20style='display:%20block;'%20width='76'%20height='76'%20viewBox='0%200%2076%2076'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='weui:shop-outlined'%3e%3cpath%20id='Vector'%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M25.3333%2022.1667V19C25.3333%2015.6406%2026.6679%2012.4188%2029.0433%2010.0433C31.4188%207.66785%2034.6406%206.33333%2038%206.33333C41.3594%206.33333%2044.5812%207.66785%2046.9567%2010.0433C49.3321%2012.4188%2050.6667%2015.6406%2050.6667%2019V22.1667H60.1667C61.9147%2022.1667%2063.3333%2023.5885%2063.3333%2025.3555V63.3587C63.3333%2066.842%2060.4992%2069.6667%2057.019%2069.6667H18.981C17.3074%2069.6667%2015.7023%2069.0023%2014.5183%2067.8195C13.3343%2066.6367%2012.6683%2065.0322%2012.6667%2063.3587V25.3587C12.6667%2023.5917%2014.0758%2022.1667%2015.8333%2022.1667H25.3333ZM29.1333%2022.1667H46.8667V19C46.8667%2016.6484%2045.9325%2014.3931%2044.2697%2012.7303C42.6069%2011.0675%2040.3516%2010.1333%2038%2010.1333C35.6484%2010.1333%2033.3931%2011.0675%2031.7303%2012.7303C30.0675%2014.3931%2029.1333%2016.6484%2029.1333%2019V22.1667ZM25.3333%2025.9667H16.4667V63.3587C16.4667%2064.7393%2017.594%2065.8667%2018.981%2065.8667H57.019C57.6847%2065.8667%2058.3233%2065.6026%2058.7947%2065.1325C59.266%2064.6623%2059.5317%2064.0244%2059.5333%2063.3587V25.9667H50.6667V34.8333H46.8667V25.9667H29.1333V34.8333H25.3333V25.9667Z'%20fill='url(%23paint0_linear_0_226)'/%3e%3c/g%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_0_226'%20x1='36.6705'%20y1='6.33333'%20x2='32.2014'%20y2='69.3597'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23FF7439'/%3e%3cstop%20offset='1'%20stop-color='%23FF2D55'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e",{colors:ge,font:Or,radius:Hn,z:Gp}=n,_p=a.div`
|
|
2314
2314
|
position: fixed;
|
|
2315
2315
|
inset: 0;
|
|
2316
2316
|
z-index: ${Gp.overlay};
|
|
@@ -2397,7 +2397,7 @@ import{r as c,j as e,u as lt,L as ir,d as hs,b as ar}from"./react-BDtnT4_L.js";i
|
|
|
2397
2397
|
font-size: 20px;
|
|
2398
2398
|
line-height: 1.334;
|
|
2399
2399
|
color: ${ge.text2};
|
|
2400
|
-
`,
|
|
2400
|
+
`,Pa=a.p`
|
|
2401
2401
|
margin: 0;
|
|
2402
2402
|
font-weight: 400;
|
|
2403
2403
|
font-size: 16px;
|
|
@@ -2462,7 +2462,7 @@ import{r as c,j as e,u as lt,L as ir,d as hs,b as ar}from"./react-BDtnT4_L.js";i
|
|
|
2462
2462
|
width: 100%;
|
|
2463
2463
|
height: 100%;
|
|
2464
2464
|
}
|
|
2465
|
-
`;function sh(t,s){return`${st.marketplaceUrl}/contracts/${t}/tokens/${s}`}function oh(t,s){return`${st.marketplaceUrl}/contracts/${t}/items/${s}`}function
|
|
2465
|
+
`;function sh(t,s){return`${st.marketplaceUrl}/contracts/${t}/tokens/${s}`}function oh(t,s){return`${st.marketplaceUrl}/contracts/${t}/items/${s}`}function La(t){const{contractAddress:s,onClose:l}=t,o=t.variant==="buy",d=t.variant==="buy"?t.itemId:null,u=t.variant==="buy"?null:t.tokenId,x=t.variant==="buy"?oh(s,t.itemId):sh(s,t.tokenId),m=c.useRef(null),y=c.useRef(l);return y.current=l,c.useEffect(()=>{var h;(h=m.current)==null||h.focus();function $(g){g.key==="Escape"&&y.current()}return window.addEventListener("keydown",$),()=>window.removeEventListener("keydown",$)},[]),e.jsx(_p,{role:"presentation",onClick:l,children:e.jsxs(Vp,{ref:m,tabIndex:-1,role:"dialog","aria-modal":"true","aria-label":i("marketplaceRedirect.title"),"data-testid":"marketplace-redirect-modal",onClick:$=>$.stopPropagation(),children:[e.jsxs(Jp,{children:[e.jsx(Yp,{children:i("marketplaceRedirect.title")}),e.jsx(Xp,{onClick:l,"aria-label":i("marketplaceRedirect.close"),children:e.jsx(P,{name:"close",className:"ico"})})]}),e.jsxs(Zp,{children:[e.jsx(eh,{src:Qp,alt:"","aria-hidden":!0}),e.jsx(th,{children:i("marketplaceRedirect.heading")}),e.jsx(Pa,{children:o?i("marketplaceRedirect.buyBody"):i("marketplaceRedirect.body")}),o?e.jsx(Pa,{children:i("marketplaceRedirect.buyCurrencyNote")}):null]}),e.jsxs(nh,{children:[e.jsx(ih,{onClick:l,"data-testid":"marketplace-redirect-cancel",children:i("marketplaceRedirect.cancel")}),e.jsxs(ah,{href:x,target:"_blank",rel:"noreferrer","data-testid":"marketplace-redirect-continue",onClick:()=>X("Shop Redirected To Marketplace",{direction:o?"buy":"resell",contract_address:s,item_id:d,token_id:u}),children:[i("marketplaceRedirect.continue"),e.jsx(rh,{"aria-hidden":!0,children:e.jsx(P,{name:"view-all-arrow",className:"ico"})})]})]})]})})}function Un(){return st.shopServerUrl||null}function Kr(){return!!Un()}async function lh(t,s,l){const o=Un();if(!o)return{subscribed:!1};const d=new URLSearchParams({contractAddress:t,itemId:s}),u=`${o}/notify-requests?${d.toString()}`,x=await fr(u,{method:"GET",identity:l,metadata:{}});if(!x.ok)throw new Error(`getNotifyRequest ${x.status}`);return ch(x,"getNotifyRequest")}async function dh(t,s){const l=Un();if(!l)throw new Error("createNotifyRequest: no shop-server host configured");const o=`${l}/notify-requests`,d=await fr(o,{method:"POST",identity:s,metadata:{},headers:{"Content-Type":"application/json"},body:JSON.stringify(t)});if(!d.ok)throw new Error(`createNotifyRequest ${d.status}: ${await d.text()}`);const u=await d.text();if(u.trim()&&!uh(u))throw new Error("createNotifyRequest: response was not JSON")}async function ch(t,s){try{return await t.json()}catch{throw new Error(`${s}: response was not JSON`)}}function uh(t){try{return JSON.parse(t),!0}catch{return!1}}const{colors:Me,radius:Hr}=n,Ur=wt`
|
|
2466
2466
|
display: flex;
|
|
2467
2467
|
flex-direction: column;
|
|
2468
2468
|
gap: 8px;
|
|
@@ -2547,7 +2547,7 @@ import{r as c,j as e,u as lt,L as ir,d as hs,b as ar}from"./react-BDtnT4_L.js";i
|
|
|
2547
2547
|
font-size: 16px;
|
|
2548
2548
|
line-height: 1.5;
|
|
2549
2549
|
color: ${Me.text2};
|
|
2550
|
-
`;function Fa(t){return/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(t.trim())}function bh({item:t}){const s=ot(S=>S.session),l=ot(S=>S.signIn),[o,d]=c.useState(""),[u,x]=c.useState(!1),[m,y]=c.useState(!1),[$,h]=c.useState(null),g=Kr(),w=g&&!!s&&!!t.contractAddress&&!!t.itemId,{data:k}=te({queryKey:["notify-request",t.contractAddress,t.itemId,s==null?void 0:s.address],enabled:w,queryFn:()=>lh(t.contractAddress,t.itemId,s.identity)});c.useEffect(()=>{k!=null&&k.email&&d(S=>S||k.email)},[k==null?void 0:k.email]),c.useEffect(()=>{if(!s||!g)return;let S=!1;return Js().then(B=>{!S&&B&&d(f=>f||B)}),()=>{S=!0}},[g,s]);const I=m||!!(k!=null&&k.subscribed);async function C(S){if(S.preventDefault(),!(!s||!t.itemId||!Fa(o)||u)){x(!0),h(null);try{await dh({contractAddress:t.contractAddress,itemId:t.itemId,chainId:t.chainId,email:o.trim()},s.identity),y(!0),X("Shop Requested Notify",{item_id:t.itemId,contract_address:t.contractAddress})}catch(B){ue(B,{flow:"notify-me",contractAddress:t.contractAddress,itemId:t.itemId}),h(i("notifyMe.error"))}finally{x(!1)}}}return g?s?I?e.jsxs(Ta,{"data-done":!0,"data-testid":"notify-subscribed",children:[e.jsx(mh,{"aria-hidden":!0,children:e.jsx(
|
|
2550
|
+
`;function Fa(t){return/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(t.trim())}function bh({item:t}){const s=ot(S=>S.session),l=ot(S=>S.signIn),[o,d]=c.useState(""),[u,x]=c.useState(!1),[m,y]=c.useState(!1),[$,h]=c.useState(null),g=Kr(),w=g&&!!s&&!!t.contractAddress&&!!t.itemId,{data:k}=te({queryKey:["notify-request",t.contractAddress,t.itemId,s==null?void 0:s.address],enabled:w,queryFn:()=>lh(t.contractAddress,t.itemId,s.identity)});c.useEffect(()=>{k!=null&&k.email&&d(S=>S||k.email)},[k==null?void 0:k.email]),c.useEffect(()=>{if(!s||!g)return;let S=!1;return Js().then(B=>{!S&&B&&d(f=>f||B)}),()=>{S=!0}},[g,s]);const I=m||!!(k!=null&&k.subscribed);async function C(S){if(S.preventDefault(),!(!s||!t.itemId||!Fa(o)||u)){x(!0),h(null);try{await dh({contractAddress:t.contractAddress,itemId:t.itemId,chainId:t.chainId,email:o.trim()},s.identity),y(!0),X("Shop Requested Notify",{item_id:t.itemId,contract_address:t.contractAddress})}catch(B){ue(B,{flow:"notify-me",contractAddress:t.contractAddress,itemId:t.itemId}),h(i("notifyMe.error"))}finally{x(!1)}}}return g?s?I?e.jsxs(Ta,{"data-done":!0,"data-testid":"notify-subscribed",children:[e.jsx(mh,{"aria-hidden":!0,children:e.jsx(P,{name:"check",size:12})}),e.jsx(gh,{children:i("notifyMe.subscribedBody")})]}):e.jsxs(ph,{onSubmit:S=>void C(S),"data-testid":"notify",children:[e.jsx(hh,{htmlFor:"notify-email",children:i("notifyMe.label")}),e.jsxs(xh,{children:[e.jsx(fh,{id:"notify-email",type:"email",inputMode:"email",autoComplete:"email",placeholder:i("notifyMe.placeholder"),value:o,onChange:S=>d(S.target.value),"data-testid":"notify-email"}),e.jsx(Ea,{type:"submit",disabled:!Fa(o)||u,"data-testid":"notify-submit",children:u?i("notifyMe.working"):i("notifyMe.cta")})]}),e.jsx(Ve,{message:$})]}):e.jsx(Ta,{"data-testid":"notify",children:e.jsx(Ea,{type:"button","data-full":!0,onClick:l,"data-testid":"notify-signin",children:i("notifyMe.signInCta")})}):null}const yh=a.div`
|
|
2551
2551
|
display: flex;
|
|
2552
2552
|
flex-direction: column;
|
|
2553
2553
|
gap: 4px;
|
|
@@ -2621,7 +2621,7 @@ import{r as c,j as e,u as lt,L as ir,d as hs,b as ar}from"./react-BDtnT4_L.js";i
|
|
|
2621
2621
|
object-fit: cover;
|
|
2622
2622
|
display: block;
|
|
2623
2623
|
}
|
|
2624
|
-
`;function zh({contractAddress:t,name:s,items:l,className:o}){const d=lt();if(!t||!s)return null;const u=(l??[]).map(y=>y.thumbnail).filter(y=>!!y).slice(0,4),x=u.slice(0,2),m=u.slice(2,4);return e.jsxs(Xs,{as:"button","data-link":!0,className:o,"data-testid":"creator",onClick:y=>{y.stopPropagation(),d(`/collection/${t}`)},children:[u.length>0?e.jsxs(Mh,{as:"span","data-avatar":!0,"data-testid":"creator-ava","aria-hidden":!0,children:[e.jsx("span",{"data-collage-row":!0,"data-full":m.length===0||void 0,children:x.map((y,$)=>e.jsx("img",{src:y,alt:""},$))}),m.length>0?e.jsx("span",{"data-collage-row":!0,children:m.map((y,$)=>e.jsx("img",{src:y,alt:""},$))}):null]}):null,e.jsx(Zs,{"data-testid":"creator-name",children:nn(s)})]})}const{colors:j,radius:Ye,media:le,font:Rh,gradients:
|
|
2624
|
+
`;function zh({contractAddress:t,name:s,items:l,className:o}){const d=lt();if(!t||!s)return null;const u=(l??[]).map(y=>y.thumbnail).filter(y=>!!y).slice(0,4),x=u.slice(0,2),m=u.slice(2,4);return e.jsxs(Xs,{as:"button","data-link":!0,className:o,"data-testid":"creator",onClick:y=>{y.stopPropagation(),d(`/collection/${t}`)},children:[u.length>0?e.jsxs(Mh,{as:"span","data-avatar":!0,"data-testid":"creator-ava","aria-hidden":!0,children:[e.jsx("span",{"data-collage-row":!0,"data-full":m.length===0||void 0,children:x.map((y,$)=>e.jsx("img",{src:y,alt:""},$))}),m.length>0?e.jsx("span",{"data-collage-row":!0,children:m.map((y,$)=>e.jsx("img",{src:y,alt:""},$))}):null]}):null,e.jsx(Zs,{"data-testid":"creator-name",children:nn(s)})]})}const{colors:j,radius:Ye,media:le,font:Rh,gradients:Ph}=n,Lh=a.div`
|
|
2625
2625
|
max-width: 1721px;
|
|
2626
2626
|
margin: 0 auto;
|
|
2627
2627
|
|
|
@@ -3301,7 +3301,7 @@ import{r as c,j as e,u as lt,L as ir,d as hs,b as ar}from"./react-BDtnT4_L.js";i
|
|
|
3301
3301
|
cart's CHECKOUT and the credits CTA. This read as a flat #fb5c19 for a while — that colour was
|
|
3302
3302
|
sampled off the flattened render rather than the node's fill. */
|
|
3303
3303
|
&& {
|
|
3304
|
-
background: ${
|
|
3304
|
+
background: ${Ph.buyBtn};
|
|
3305
3305
|
}
|
|
3306
3306
|
&&::before {
|
|
3307
3307
|
content: none;
|
|
@@ -3388,7 +3388,7 @@ import{r as c,j as e,u as lt,L as ir,d as hs,b as ar}from"./react-BDtnT4_L.js";i
|
|
|
3388
3388
|
&&:disabled {
|
|
3389
3389
|
opacity: 0.5;
|
|
3390
3390
|
}
|
|
3391
|
-
`,
|
|
3391
|
+
`,Pn=a.span`
|
|
3392
3392
|
display: none;
|
|
3393
3393
|
align-items: center;
|
|
3394
3394
|
gap: 6px;
|
|
@@ -3478,7 +3478,7 @@ import{r as c,j as e,u as lt,L as ir,d as hs,b as ar}from"./react-BDtnT4_L.js";i
|
|
|
3478
3478
|
color: ${j.gray4};
|
|
3479
3479
|
`,px=a(Je)`
|
|
3480
3480
|
margin-top: 6px;
|
|
3481
|
-
`,hx=a(
|
|
3481
|
+
`,hx=a(P)`
|
|
3482
3482
|
opacity: 0.4;
|
|
3483
3483
|
`,xx=a.h1`
|
|
3484
3484
|
font-size: 22px;
|
|
@@ -3530,7 +3530,7 @@ import{r as c,j as e,u as lt,L as ir,d as hs,b as ar}from"./react-BDtnT4_L.js";i
|
|
|
3530
3530
|
gap: 8px;
|
|
3531
3531
|
/* Same as Chips above, so the row does not move when the real chips arrive. */
|
|
3532
3532
|
margin-top: 12px;
|
|
3533
|
-
`,
|
|
3533
|
+
`,Ln=a.span`
|
|
3534
3534
|
height: 24px;
|
|
3535
3535
|
width: 88px;
|
|
3536
3536
|
border-radius: 6px;
|
|
@@ -3583,11 +3583,11 @@ import{r as c,j as e,u as lt,L as ir,d as hs,b as ar}from"./react-BDtnT4_L.js";i
|
|
|
3583
3583
|
font-size: 14px;
|
|
3584
3584
|
line-height: 14px;
|
|
3585
3585
|
color: ${j.softWhite};
|
|
3586
|
-
`,$x=a(
|
|
3586
|
+
`,$x=a(P)`
|
|
3587
3587
|
width: 20px;
|
|
3588
3588
|
height: 20px;
|
|
3589
3589
|
color: ${j.softWhite};
|
|
3590
|
-
`,Cx=a(
|
|
3590
|
+
`,Cx=a(P)`
|
|
3591
3591
|
width: 24px;
|
|
3592
3592
|
height: 24px;
|
|
3593
3593
|
color: ${j.white};
|
|
@@ -3716,7 +3716,7 @@ import{r as c,j as e,u as lt,L as ir,d as hs,b as ar}from"./react-BDtnT4_L.js";i
|
|
|
3716
3716
|
[data-variant='original'] & {
|
|
3717
3717
|
color: ${j.muted2};
|
|
3718
3718
|
}
|
|
3719
|
-
`,
|
|
3719
|
+
`,Px=a.span`
|
|
3720
3720
|
font-size: 14px;
|
|
3721
3721
|
font-weight: 600;
|
|
3722
3722
|
color: ${j.text2};
|
|
@@ -3725,7 +3725,7 @@ import{r as c,j as e,u as lt,L as ir,d as hs,b as ar}from"./react-BDtnT4_L.js";i
|
|
|
3725
3725
|
width: 12px;
|
|
3726
3726
|
height: 12px;
|
|
3727
3727
|
color: ${j.muted2};
|
|
3728
|
-
`,
|
|
3728
|
+
`,Lx=a.div`
|
|
3729
3729
|
display: flex;
|
|
3730
3730
|
flex-direction: column;
|
|
3731
3731
|
gap: 12px;
|
|
@@ -3775,5 +3775,5 @@ import{r as c,j as e,u as lt,L as ir,d as hs,b as ar}from"./react-BDtnT4_L.js";i
|
|
|
3775
3775
|
width: 96px;
|
|
3776
3776
|
height: 16px;
|
|
3777
3777
|
border-radius: 6px;
|
|
3778
|
-
`;function Bx(t){return Object.values(Ae.Rarity).includes(t)}function Nx(t){return t==="male"?i("itemDetail.genderMale"):t==="female"?i("itemDetail.genderFemale"):t==="unisex"?i("itemDetail.genderUnisex"):null}function Zt(t){return t.wearableCategory?t.wearableCategory.replace(/_/g," "):t.category==="emote"?i("itemDetail.categoryEmote"):i("itemDetail.categoryWearable")}const nr=8;function mf(){const{pathname:t}=ar();return e.jsx(Wx,{},t)}function Wx(){var Ii,Si,Ai;const{contractAddress:t,itemId:s,tokenId:l}=hs(),o=xn(t),d=cp(o),u=xn(s),x=xn(l),m=!!x,y=u??vd(x)??null,$=ar(),h=$.state,g=lt(),w=!!(h!=null&&h.market),k=(h==null?void 0:h.marketPriceCredits)??null,I=dt(),C=Rt(p=>p.add),S=Rt(p=>p.items),B=no(p=>p.toggle),{session:f,signIn:N}=ot(),[r,E]=c.useState(()=>{if(h!=null&&h.item){const p={...h.item,tradeId:h.tradeId??h.item.tradeId};return m?{...p,tokenId:x,itemId:p.itemId??y}:{...p,tokenId:void 0,itemId:u??p.itemId}}return{id:`${o}-${x??u}`,name:"",creator:"",contractAddress:o??"",itemId:y,category:"wearable",rarity:"common",network:"MATIC",chainId:st.chainId,thumbnail:"",priceCredits:0,gender:null,isSmart:!1,tokenId:x??void 0,tradeId:h==null?void 0:h.tradeId}}),[Y,U]=c.useState(!1),[A,R]=c.useState(!!(h!=null&&h.resumeBuy));c.useEffect(()=>{h!=null&&h.resumeBuy&&U(!0)},[h==null?void 0:h.resumeBuy]);function K(){const p=r.priceCredits>0?r.priceCredits:null;X("Shop Started Checkout",{checkout_source:"item_page",cart_size:1,cart_value_credits:p,cart_value_usd:p===null?null:vo(p)}),U(!0)}function G(){if(f){K();return}w||vl({type:"item-buy",path:$.pathname}),N()}const ne=c.useRef(!1);c.useEffect(()=>{if(!f||ne.current)return;const p=yl("item-buy");!p||p.path!==$.pathname||(ne.current=!0,R(!0),K())},[f]);const de=c.useMemo(()=>r.contractAddress&&(r.itemId??y)?[`${r.contractAddress.toLowerCase()}-${r.itemId??y}`]:void 0,[r.contractAddress,r.itemId,y]),ee=io(nr,{exclude:de}),_=ao({enabled:ee.enabled,hasSignal:ee.hasSignal,isLoading:ee.isLoading,isError:ee.isError,personalized:(Ii=ee.result)==null?void 0:Ii.personalized,rowCount:((Si=ee.result)==null?void 0:Si.data.length)??0}),{items:O,isCollectionOnly:H,siblings:v,siblingsFetched:fe}=dp({id:r.id,contractAddress:r.contractAddress,itemId:r.itemId??y,tokenId:r.tokenId,creator:r.creator}),{data:P,isLoading:F}=te({queryKey:["shop-item",r.contractAddress,y],enabled:!w&&!m&&!!r.contractAddress&&!!y,staleTime:0,refetchOnMount:"always",refetchOnWindowFocus:!0,queryFn:()=>ko(r.contractAddress,y)}),z=m?void 0:P;c.useEffect(()=>{z&&E(p=>p.tradeId?{...p,tradeId:z.tradeId,priceCredits:z.priceCredits,manaWei:z.manaWei,available:z.available??p.available,acquisition:z.acquisition,wearableCategory:p.wearableCategory??z.wearableCategory}:{...p,...z})},[z]);const[se,ie]=c.useState(!1),{data:xe=""}=te({queryKey:["item-desc",r.contractAddress,r.itemId],enabled:!!r.contractAddress&&!!r.itemId,staleTime:5*6e4,queryFn:()=>$o(r.contractAddress,r.itemId)}),{data:Q,isLoading:oe}=te({queryKey:["collection-meta",r.contractAddress],enabled:!!r.contractAddress,staleTime:5*6e4,queryFn:()=>dr(r.contractAddress)});c.useEffect(()=>{const p=(z==null?void 0:z.creator)||(Q==null?void 0:Q.creator);p&&E(re=>re.creator?re:{...re,creator:p})},[z,Q]);const Z=c.useMemo(()=>{if(!(m||r.name||z||v.length===0))return(y?v.find(p=>p.itemId===y):void 0)??v.find(p=>p.contractAddress===r.contractAddress)},[m,r.name,r.contractAddress,z,v,y]);c.useEffect(()=>{Z&&E(p=>({...Z,tradeId:p.tradeId??Z.tradeId}))},[Z]);const{data:Ce,isLoading:ce}=te({queryKey:["detail-trade",r.id,r.tradeId,r.contractAddress,r.itemId],enabled:!!r.contractAddress,staleTime:0,refetchOnMount:"always",refetchOnWindowFocus:!0,queryFn:async()=>{if(r.tradeId)return r.tradeId;if(!m&&r.itemId){const p=await Co(r.contractAddress,r.itemId);return(p==null?void 0:p.id)??null}return null}}),{data:V}=te({queryKey:["item-traits",r.contractAddress,y],enabled:!!r.contractAddress&&!!y,staleTime:5*6e4,retry:1,queryFn:()=>Io(r.contractAddress,y)}),Be=(V==null?void 0:V.isSmart)??r.isSmart,qe=(V==null?void 0:V.utility)??null,be=c.useMemo(()=>({...r,wearableCategory:r.wearableCategory??(V==null?void 0:V.wearableCategory)??void 0,gender:r.gender??(V==null?void 0:V.gender)??null}),[r,V==null?void 0:V.wearableCategory,V==null?void 0:V.gender]),Xe=(V==null?void 0:V.urn)??null,{data:on}=te({queryKey:["item-vrm",Xe],enabled:!!Xe&&r.category==="wearable",staleTime:30*6e4,retry:!1,queryFn:()=>So(Xe)}),[Pt,Tt]=c.useState(!1),{data:vt}=te({queryKey:["item-video",r.contractAddress,y],enabled:Be&&!!r.contractAddress&&!!y,staleTime:30*6e4,retry:!1,queryFn:()=>Rl(r.contractAddress,y)}),Ze=c.useMemo(()=>r.emoteLoop!==void 0?r:(y?v.find(re=>re.itemId===y):void 0)??r,[r,v,y]),ke=Hi(I,r.tradeId)??Hi(I,Ce),ct=r.acquisition==="store"&&(r.available??0)>0,me=!!ke||ct,Ne=ro(),{data:Ke=[]}=te({queryKey:["item-resales",r.contractAddress,r.itemId],enabled:Ne&&!w&&!!r.contractAddress&&!!r.itemId,staleTime:0,refetchOnMount:"always",refetchOnWindowFocus:!0,queryFn:()=>xr(r.contractAddress,r.itemId)}),He=Ke.length>0?Ke[0].priceCredits:null,We=m&&r.tokenId?Ke.find(p=>p.tokenId===r.tokenId)??null:null,Ie=c.useMemo(()=>{const p=Ke[0];return p?{...p,name:p.name||r.name,thumbnail:p.thumbnail||r.thumbnail,rarity:p.rarity||r.rarity,category:p.category||r.category,wearableCategory:p.wearableCategory??r.wearableCategory,gender:p.gender??r.gender}:null},[Ke,r]),[jt,Et]=c.useState(null),[Ft,et]=c.useState(!1),[kt,Bt]=c.useState(!1),[Nt,$t]=c.useState(!1),b=r.manaWei??null,{data:M}=hr(w||!!b),T=b&&M?so(b,M):null;c.useEffect(()=>{T!=null&&E(p=>p.priceCredits===T?p:{...p,priceCredits:T})},[T,r.priceCredits]);const W=c.useMemo(()=>{if(!w||!(h!=null&&h.item))return null;const p=h.item;return p.manaWei?{tradeId:p.tradeId??p.id,listingType:"primary",contractAddress:p.contractAddress,itemId:p.itemId??"",name:p.name,thumbnail:p.thumbnail,rarity:p.rarity,category:p.category,wearableCategory:p.wearableCategory??null,creator:p.creator,manaWei:p.manaWei,available:1,network:p.network,chainId:p.chainId,createdAt:0}:null},[w,h==null?void 0:h.item]),J=w&&k!=null&&!!M&&!!W,ae=oo({priceCredits:r.priceCredits,compareAtCredits:r.compareAtCredits,saleEndsAt:r.saleEndsAt}),D=(()=>{var je,xt,Mi;if(!ae)return null;const p=((je=r.coupon)==null?void 0:je.used)??0,re=Number(((Mi=(xt=r.coupon)==null?void 0:xt.checks)==null?void 0:Mi.uses)??0);return re>0&&p<=re?{claimed:p,total:re}:null})(),pe=(()=>{if(!ae||r.saleUnitsLeft==null)return null;const p=D?D.total-D.claimed:1/0;return r.saleUnitsLeft<p?r.saleUnitsLeft:null})(),Se=c.useMemo(()=>({...r,tradeId:ke,id:ke??r.id}),[r,ke]),Re=S.some(p=>p.id===Se.id),ut=!Se.tokenId,pt=((Ai=S.find(p=>p.id===Se.id))==null?void 0:Ai.quantity)??0,ln=ut&&typeof r.available=="number"&&pt>=r.available,{key:Qn,faved:tt}=lo(r),Ue=co(r),Yr=pr(p=>p.locale),Wt=Ue===void 0?null:Ue.toLocaleString(Yr),Gn=tt?i("assetCard.removeFromFavorites"):i("assetCard.addToFavorites"),_n=Ue===void 0?Gn:i("itemDetail.favoriteAria",{action:Gn,count:Ue}),Vn=c.useRef(null);c.useEffect(()=>{!r.name||ce||Vn.current===r.id||(Vn.current=r.id,X("Shop Viewed Item",{...uo(r),for_sale:me}),po(r))},[r.id,r.name,ce,me]);const Dt=`${o}/${x??u}`,Jn=c.useRef(Dt);c.useEffect(()=>{if(Jn.current!==Dt){if(Jn.current=Dt,h!=null&&h.item){const p={...h.item,tradeId:h.tradeId??h.item.tradeId};E(m?{...p,tokenId:x,itemId:p.itemId??y}:{...p,tokenId:void 0,itemId:u??p.itemId})}typeof window<"u"&&window.scrollTo({top:0,behavior:"smooth"})}},[Dt]);function Xr(){!me||dn||ce||!ut&&Re||ln||C(Se,"item_detail")}const nt=Bx(r.rarity)?r.rarity:Ae.Rarity.COMMON,Yn=Nx(be.gender),Ot=ho(be),Xn=xo(be.gender),Zn=Ih(r.rarity),ei=Sh(be),ti=me&&ae,Zr=H?i("itemDetail.moreFromCollection"):i("itemDetail.youMightAlsoLike"),dn=fo(r,f==null?void 0:f.address),[es,ni]=c.useState(!1),[ts,ii]=c.useState(!1),[ns,ai]=c.useState(!1),[is,ri]=c.useState(!1),[Ct,It]=c.useState(null),[as,si]=c.useState(!1),[oi,li]=c.useState(!1),di=en(f==null?void 0:f.providerType),{data:q,isLoading:qt}=te({queryKey:["owned-token",r.contractAddress,r.tokenId,f==null?void 0:f.address],enabled:!w&&!!(f!=null&&f.address)&&!!r.contractAddress&&!!r.tokenId,staleTime:0,refetchOnMount:"always",refetchOnWindowFocus:!0,queryFn:()=>f?Ti(f.address,r.contractAddress,r.tokenId):null});c.useEffect(()=>{q&&E(p=>p.name?{...p,issuedId:p.issuedId??q.issuedId,priceCredits:q.listingPrice??0,tradeId:q.tradeId}:{id:q.id,name:q.name,creator:"",contractAddress:q.contractAddress,itemId:q.itemId,category:q.category,rarity:q.rarity??"common",network:q.network,chainId:q.chainId,thumbnail:q.image,priceCredits:q.listingPrice??0,gender:null,isSmart:!1,tokenId:q.tokenId,issuedId:q.issuedId,tradeId:q.tradeId})},[q]),c.useEffect(()=>{We&&E(p=>p.priceCredits===We.priceCredits&&p.tradeId?p:{...p,priceCredits:We.priceCredits,tradeId:p.tradeId??We.tradeId})},[We]),c.useEffect(()=>{Ct!=null&&q!=null&&q.isOnSale&&q.listingPrice===Ct&&It(null)},[q,Ct]);const ci=!w&&!!r.contractAddress&&!!r.tokenId&&!r.name&&!z&&!qt&&!q,{data:he,isFetched:rs}=te({queryKey:["public-token",r.contractAddress,r.tokenId],enabled:ci,staleTime:0,refetchOnMount:"always",refetchOnWindowFocus:!0,queryFn:()=>Ao(r.contractAddress,r.tokenId)});c.useEffect(()=>{he&&E(p=>p.name?p.issuedId?p:{...p,issuedId:he.issuedId}:{id:he.id,name:he.name,creator:"",contractAddress:he.contractAddress,itemId:he.itemId,category:he.category,rarity:he.rarity??"common",network:he.network,chainId:he.chainId,thumbnail:he.image,priceCredits:he.listingPrice??0,gender:null,isSmart:!1,tokenId:he.tokenId,issuedId:he.issuedId,tradeId:he.tradeId})},[he]);const{data:Le}=te({queryKey:["publishable-item",r.contractAddress,r.itemId,f==null?void 0:f.address],enabled:dn&&!!f&&!!r.itemId,queryFn:async()=>f?(await Ll(f.address,f.identity)).find(re=>re.contractAddress.toLowerCase()===r.contractAddress.toLowerCase()&&re.blockchainItemId===r.itemId)??null:null}),Pe=m&&!!q,cn=!m&&dn,Te=!w&&(cn||Pe),ui=Ct!=null?!0:Pe?!!(q!=null&&q.isOnSale):me,Kt=Pe?q==null?void 0:q.tradeId:ke,pi=Pe?!!q:!!Le,hi=cn||Pe&&Ne,un=Ct??(Pe?(q==null?void 0:q.listingPrice)??0:0),{data:xi=0}=te({queryKey:["owned-item-count",r.contractAddress,u,f==null?void 0:f.address],enabled:!m&&!w&&!!(f!=null&&f.address)&&!!r.contractAddress&&!!u,staleTime:3e4,queryFn:()=>f?Mo(f.address,r.contractAddress,u):0});async function it(){await Promise.all([I.invalidateQueries({queryKey:["owned-token",r.contractAddress,r.tokenId]}),I.invalidateQueries({queryKey:["detail-trade"]}),I.invalidateQueries({queryKey:["shop-item"]}),I.invalidateQueries({queryKey:["collection-sale-state"]}),I.invalidateQueries({queryKey:["shop-items"]}),I.invalidateQueries({queryKey:["catalog-items"]}),I.invalidateQueries({queryKey:["publishable-items"]}),I.invalidateQueries({queryKey:["publishable-item",r.contractAddress,r.itemId]}),I.invalidateQueries({queryKey:["item-resales",r.contractAddress,r.itemId]})])}async function ss(p){if(!f||!Kt)throw new Error("No listing to take down");const re=await ur(Kt);await zl({trade:re,signer:f.signer,mode:p.payGas?"direct":"gasless-only",watch:{isCancelled:async()=>{try{if(Pe){if(!r.tokenId)return!1;const je=await Ti(f.address,r.contractAddress,r.tokenId);return je!==null&&!je.isOnSale}return r.itemId?await jo(r.contractAddress,r.itemId)===null:!1}catch{return!1}},onWaiting:p.onWaiting}}),p.silent||Lt.success(i("myAssets.removedFromSale",{name:r.name})),It(null),jd(I,Kt),E(je=>je.tradeId===Kt?{...je,tradeId:void 0}:je),it(),fn(I,{address:f.address,contractAddress:r.contractAddress,tokenId:r.tokenId},{kind:"removed"})}const fi=p=>async({payGas:re,onWaiting:je})=>{try{return await ss({silent:p,payGas:re,onWaiting:je}),"ok"}catch(xt){if(xt instanceof Ml)return xt.definitive?"relay-reverted":"relay-pending";throw xt}},mi={currentCredits:un||r.priceCredits||void 0,canPayGas:di,cancelCurrent:fi(!0)};function gi({edit:p=!1}={}){p||X("Shop Started Listing",{listing_type:Pe?"secondary":"primary",item_id:r.itemId??r.tokenId??null}),li(p),Pe?ni(!0):ii(!0)}function bi(){ni(!1),ii(!1),li(!1),it()}const yi=me?ce?i("itemDetail.checking"):ln?i("itemDetail.maxInCart"):!ut&&Re?i("assetCard.inCart"):i("assetCard.addToCart"):i("itemDetail.notForSale"),St=r.available??(V==null?void 0:V.available)??null,os=typeof St=="number"&&St>0&&!r.tokenId&&!w,wi=!w&&!r.tokenId&&St===0,vi=r.network==="ETHEREUM",ht=wi&&!Te&&!!Ie,Ht=!!Ie&&S.some(p=>p.id===Ie.id),ls=!Te&&me&&!w,ds=w||!Te&&(me||ht&&!!Ie||Kr()),cs=!r.name&&(!!z||!!q||!!he||!!Z),ji=F||!!r.contractAddress&&!fe||!r.name&&qt||cs||ci&&!rs,ki=!r.name&&!ji,us=!!r.name&&kd({isMarket:w,forSale:me,priceKnown:r.priceCredits>0&&(!b||T!=null)||Te,stillResolving:ji||!!b&&T==null,manage:Te,soldOutWithResale:ht,resolvingTrade:ce,isTokenRoute:m,ownedAssetLoading:qt,deepLinkLoading:F}),$i=!r.creator&&(F||oe||qt),Ci=!(Q!=null&&Q.name)&&oe,ps=/^https?:\/\//i.test(r.thumbnail);return mo(ki?{title:i("seo.item.notFoundTitle"),noindex:!0}:r.name?{title:r.name,description:xe||i("seo.item.fallbackDescription",{name:r.name,rarity:r.rarity,category:Zt(be),creator:On(r.creator)}),image:ps?r.thumbnail:void 0,type:"product"}:{}),ki?e.jsxs(cx,{"data-notfound":!0,children:[e.jsx(hx,{name:"cart"}),e.jsx(xx,{children:i("itemDetail.notAvailableTitle")}),e.jsx(ux,{children:i("itemDetail.notAvailableBody")}),e.jsx(px,{variant:"white",onClick:()=>g("/items"),children:i("notFound.cta")})]}):e.jsxs(Ph,{children:[e.jsxs(Th,{"aria-label":i("itemDetail.breadcrumbAria"),children:[e.jsx(Eh,{onClick:()=>g("/items"),children:i("nav.collectibles")}),e.jsx(Fh,{children:"/"}),e.jsx(Bh,{children:r.name||i("itemDetail.itemFallback")})]}),e.jsxs(Nh,{style:{"--glow-rgb":yo(nt),"--glow-core":bo(nt)},children:[e.jsxs(Wh,{"data-testid":"item-preview",children:[r.name?e.jsx(mp,{item:r}):e.jsx(Dh,{"aria-busy":"true","aria-label":i("itemPreview.loading"),children:e.jsx(Oh,{className:"skeleton","aria-hidden":!0})}),Qn?e.jsxs(Na,{"data-fav-preview":!0,"data-on":tt||void 0,"data-count":Wt??void 0,onClick:()=>B(r,"item_detail"),"aria-pressed":tt,"aria-label":_n,children:[e.jsx(L,{name:tt?"heart-solid":"heart",size:18}),Ue!==void 0?e.jsx(Wa,{title:i("itemDetail.savedCount",{count:Ue}),"data-testid":"fav-count-preview",children:Wt}):null]}):null,vt?e.jsxs(Uh,{"data-play-showcase":!0,onClick:()=>Tt(!0),"data-testid":"play-showcase",children:[e.jsx(L,{name:"play",size:18}),i("itemDetail.playShowcase")]}):null]}),e.jsx(qh,{"data-testid":"item-info",children:r.name?e.jsxs(e.Fragment,{children:[ti&&r.compareAtCredits!=null?e.jsx(Yh,{pct:go(r.compareAtCredits,r.priceCredits),size:"lg",testId:"detail-sale-badge"}):null,e.jsxs(Kh,{children:[e.jsxs(Hh,{children:[r.name,m&&r.issuedId?` #${r.issuedId}`:""]}),Qn?e.jsxs(Na,{"data-fav-title":!0,"data-on":tt||void 0,"data-count":Wt??void 0,onClick:()=>B(r,"item_detail"),"aria-pressed":tt,"aria-label":_n,children:[e.jsx(L,{name:tt?"heart-solid":"heart",size:18}),Ue!==void 0?e.jsx(Wa,{title:i("itemDetail.savedCount",{count:Ue}),"data-testid":"fav-count",children:Wt}):null]}):null]}),e.jsxs(Qh,{children:[Zn?e.jsx(_t,{content:Pi(r.rarity),children:e.jsx(Yt,{to:Zn,"data-variant":"rarity","data-testid":"detail-rarity-link",style:{background:Li(nt)},children:r.rarity})}):e.jsx(_t,{content:Pi(r.rarity),children:e.jsx(Ee,{"data-variant":"rarity",style:{background:Li(nt)},children:r.rarity})}),ei?e.jsxs(Yt,{to:ei,"data-testid":"detail-category-link",title:i("filter.browseByCategory",{category:Zt(be)}),children:[Ot?e.jsx(L,{name:Ot,size:18}):null,Zt(be)]}):e.jsxs(Ee,{children:[Ot?e.jsx(L,{name:Ot,size:18}):null,Zt(be)]}),Yn?e.jsxs(Ee,{children:[Xn?e.jsx(L,{name:Xn,size:18}):null,Yn]}):null,!m&&r.issuedId?e.jsxs(Ee,{"data-testid":"detail-issued",children:["#",r.issuedId]}):null,d?e.jsxs(Yt,{to:"/event","data-testid":"detail-event",title:d,children:[e.jsx(L,{name:"star-rounded",size:18}),d]}):null,Be?e.jsxs(Yt,{to:Ah(),"data-testid":"detail-smart",title:i("filter.browseBySmart"),children:[e.jsx(L,{name:"smart",size:18}),i("itemDetail.smart")]}):null,Ze.emoteLoop!==void 0?e.jsxs(Ee,{"data-testid":"detail-play-mode",children:[e.jsx(L,{name:Ze.emoteLoop?"play-loop":"play-once",size:18}),Ze.emoteLoop?i("itemDetail.playLoop"):i("itemDetail.playOnce")]}):null,Ze.emoteHasSound?e.jsxs(Ee,{"data-testid":"detail-sound",children:[e.jsx(L,{name:"sound",size:18}),i("itemDetail.emoteSound")]}):null,Ze.emoteHasProps?e.jsxs(Ee,{"data-testid":"detail-props",children:[e.jsx(L,{name:"props",size:18}),i("itemDetail.emoteProps")]}):null,on?e.jsx(_t,{content:i("itemDetail.exportBlockedTooltip"),children:e.jsxs(Ee,{"data-variant":"blocked","data-testid":"detail-export-blocked",tabIndex:0,"aria-label":i("itemDetail.exportBlockedTooltip"),children:[e.jsx(L,{name:"ban",size:16}),i("itemDetail.exportBlocked")]})}):null,qe?e.jsxs(Ee,{"data-testid":"detail-utility-chip",children:[e.jsx(L,{name:"utility",size:18}),i("itemDetail.utility")]}):null]}),xe||qe?e.jsxs(Gr,{children:[xe?e.jsx(Wn,{children:e.jsxs(Nn,{children:[e.jsx(mt,{children:i("itemDetail.description")}),e.jsx(Da,{"data-expanded":se||void 0,children:xe}),xe.length>140?e.jsx(_h,{className:"link",onClick:()=>ie(p=>!p),children:se?i("itemDetail.showLess"):i("itemDetail.readMore")}):null]})}):null,qe?e.jsx(Wn,{children:e.jsxs(Nn,{"data-testid":"detail-utility",children:[e.jsx(mt,{children:i("itemDetail.utility")}),e.jsx(Da,{"data-expanded":!0,children:qe})]})}):null]}):null,!vi&&(r.creator||$i)||Q!=null&&Q.name||Ci?e.jsxs(_r,{children:[vi?null:r.creator?e.jsxs(zt,{children:[e.jsx(mt,{children:i("itemDetail.creator")}),e.jsx(Vh,{address:r.creator,linkToProfile:!0,hidePrefix:!0})]}):$i?e.jsxs(zt,{children:[e.jsx(mt,{children:i("itemDetail.creator")}),e.jsxs(Za,{"aria-hidden":!0,"data-testid":"creator-loading",children:[e.jsx(er,{}),e.jsx(tr,{})]})]}):null,Q!=null&&Q.name?e.jsxs(zt,{"data-collection":!0,children:[e.jsx(mt,{children:i("itemDetail.collection")}),e.jsx(Jh,{contractAddress:r.contractAddress,name:Q.name,items:v})]}):Ci?e.jsxs(zt,{"data-collection":!0,children:[e.jsx(mt,{children:i("itemDetail.collection")}),e.jsxs(Za,{"aria-hidden":!0,"data-testid":"collection-loading",children:[e.jsx(er,{}),e.jsx(tr,{})]})]}):null]}):null,e.jsx(Jr,{}),us?e.jsxs(Ex,{"aria-hidden":!0,"data-testid":"sale-loading",children:[e.jsx(Fx,{}),e.jsx(Xa,{}),e.jsx(Xa,{})]}):e.jsxs(e.Fragment,{children:[Ne&&!Te&&!w&&me&&!r.tokenId?e.jsxs(jx,{"data-testid":"buy-from-creator",children:[e.jsxs(kx,{children:[e.jsx($x,{name:"buy-from-creator"}),i("itemDetail.buyFromCreator")]}),e.jsx(Cx,{name:"check-rounded"})]}):null,ht?e.jsxs(zx,{"data-testid":"sold-out",children:[e.jsxs(Ga,{"data-variant":"original",children:[e.jsxs(_a,{children:[i("itemDetail.originalPrice"),e.jsxs(Va,{children:[e.jsx(ve,{className:"ico"}),e.jsx(Ja,{children:e.jsx(ye,{credits:r.priceCredits})})]}),e.jsx(Ya,{"aria-hidden":!0,children:e.jsx(L,{name:"info",size:12})})]}),e.jsx(Rx,{"data-testid":"out-of-stock",children:i("itemDetail.soldOut")})]}),e.jsxs(Ga,{"data-variant":"resale",children:[e.jsxs(_a,{children:[i("itemDetail.resalePrice"),e.jsxs(Va,{children:[e.jsx(ve,{className:"ico"}),e.jsx(Ja,{children:e.jsx(ye,{credits:He})})]}),e.jsx(Ya,{"aria-hidden":!0,children:e.jsx(L,{name:"info",size:12})})]}),e.jsxs(Lx,{children:[i("itemDetail.stock")," ",Ke.length,"/",Ae.Rarity.getMaxSupply(nt).toLocaleString()]})]})]}):e.jsxs(Xh,{children:[e.jsxs(Zh,{children:[e.jsxs(ex,{children:[w||me?e.jsx(zn,{children:i("itemDetail.price")}):null,w?e.jsxs(e.Fragment,{children:[e.jsx(At,{"data-variant":"market","data-testid":"item-price",children:k==null?e.jsx(Mt,{children:"—"}):e.jsxs(e.Fragment,{children:[e.jsx(nx,{"aria-hidden":!0,children:"≈"}),e.jsx(Xt,{}),e.jsx(Mt,{children:e.jsx(ye,{credits:k})})]})}),e.jsx(ix,{children:i("assetCard.marketPrice")})]}):me?ti?e.jsxs(At,{"data-variant":"sale","data-testid":"item-price",children:[e.jsx(Xt,{}),e.jsx(Mt,{children:e.jsx(ye,{credits:r.priceCredits})}),e.jsx(rx,{"data-testid":"detail-price-was",children:e.jsx(ye,{credits:r.compareAtCredits})}),e.jsx(rd,{until:r.saleEndsAt,testId:"detail-countdown"})]}):e.jsxs(At,{"data-testid":"item-price",children:[e.jsx(Xt,{}),e.jsx(Mt,{children:e.jsx(ye,{credits:r.priceCredits})})]}):ui&&un?e.jsxs(At,{"data-testid":"item-price",children:[e.jsx(Xt,{}),e.jsx(Mt,{children:e.jsx(ye,{credits:un})})]}):Te?null:e.jsxs(At,{"data-variant":"none","data-testid":"item-price",children:[e.jsx("span",{children:i("itemDetail.notForSale")}),e.jsx(_t,{content:i("itemDetail.notForSaleHint"),children:e.jsx(tx,{tabIndex:0,role:"img","aria-label":i("itemDetail.notForSaleHint"),children:e.jsx(L,{name:"info",size:14})})})]})]}),os?e.jsxs(Oa,{children:[e.jsx(zn,{children:i("itemDetail.stock")}),e.jsxs(Mn,{children:[(St??0).toLocaleString(),"/",Ae.Rarity.getMaxSupply(nt).toLocaleString()]})]}):wi?e.jsxs(Oa,{children:[e.jsx(zn,{children:i("itemDetail.stock")}),e.jsxs(Mn,{children:[(St??0).toLocaleString(),"/",Ae.Rarity.getMaxSupply(nt).toLocaleString()]}),e.jsx(Mn,{"data-out":!0,"data-testid":"out-of-stock",children:i("itemDetail.outOfStock")})]}):null]}),D?e.jsx($h,{claimed:D.claimed,total:D.total,testId:"detail-offer-stock"}):null,pe!=null?e.jsx(ax,{"data-testid":"detail-units-left",children:i("assetCard.unitsLeftAtThisPrice",{count:pe})}):null]}),e.jsx(sx,{"data-buttons":ds||void 0,"data-dual":ls||void 0,children:w?e.jsxs(Rn,{variant:"purple",onClick:G,disabled:!J,children:[e.jsx("span",{children:i("assetCard.buyNow")}),k!=null?e.jsxs(Ln,{"aria-hidden":!0,children:[e.jsx(En,{}),e.jsx(ye,{credits:k})]}):null]}):Te?e.jsxs(Px,{"data-testid":"manage-actions",children:[ui?e.jsxs(e.Fragment,{children:[hi?e.jsxs(lx,{onClick:()=>gi({edit:!0}),disabled:!pi,"data-testid":"edit-price",children:[e.jsx(L,{name:"pen",className:"ico"}),e.jsx("span",{children:i("itemDetail.manageUpdatePrice")})]}):null,e.jsx(Ka,{onClick:()=>si(!0),"data-testid":"remove-listing",children:e.jsx("span",{children:i("itemDetail.manageRemove")})})]}):e.jsxs(e.Fragment,{children:[hi?e.jsx(ox,{onClick:()=>gi(),disabled:!pi,children:e.jsx("span",{children:i("itemDetail.manageList")})}):null,Pe?e.jsxs(e.Fragment,{children:[e.jsx(Ka,{onClick:()=>ai(!0),children:e.jsx("span",{children:i("itemDetail.manageTransfer")})}),e.jsx(qa,{type:"button","data-on-purple":!0,"data-testid":"resell-item",onClick:()=>Bt(!0),children:i("itemDetail.manageResell")})]}):null]}),cn&&Le?e.jsx(qa,{type:"button","data-on-purple":!0,onClick:()=>ri(!0),children:i("itemDetail.manageIssue")}):null,He!=null?e.jsx(Tx,{children:e.jsx(Dn,{onClick:()=>et(!0),"data-testid":"view-resellers",children:i("itemDetail.viewAllResellers")})}):null]}):me?e.jsxs(e.Fragment,{children:[e.jsxs(Rn,{variant:"purple",onClick:G,disabled:ce,children:[e.jsx("span",{children:i("assetCard.buyNow")}),e.jsxs(Ln,{"aria-hidden":!0,children:[e.jsx(En,{}),e.jsx(ye,{credits:r.priceCredits})]})]}),e.jsxs(Ha,{onClick:Xr,disabled:ce||(ut?ln:Re),"aria-label":yi,children:[e.jsx(L,{name:"cart"}),e.jsx(Ua,{children:yi})]})]}):ht&&Ie?e.jsxs(e.Fragment,{children:[e.jsxs(Rn,{variant:"purple",onClick:()=>f?Et(Ie):N(),children:[e.jsx("span",{children:i("assetCard.buyNow")}),e.jsxs(Ln,{"aria-hidden":!0,children:[e.jsx(En,{}),e.jsx(ye,{credits:Ie.priceCredits})]})]}),e.jsxs(Ha,{onClick:()=>{Ht||C(Ie,"item_detail")},disabled:Ht,"aria-label":Ht?i("assetCard.inCart"):i("assetCard.addToCart"),children:[e.jsx(L,{name:"cart"}),e.jsx(Ua,{children:Ht?i("assetCard.inCart"):i("assetCard.addToCart")})]})]}):e.jsxs(e.Fragment,{children:[e.jsx(bh,{item:r}),r.itemId?e.jsx(Mx,{onClick:()=>{X("Shop Clicked Buy Resale",{item_id:r.itemId,contract_address:r.contractAddress,has_shop_resale:!!Ie}),$t(!0)},"data-testid":"buy-resale","aria-haspopup":"dialog",children:i("itemDetail.buyResale")}):null]})}),!Te&&!w&&He!=null?e.jsxs(Ix,{"data-testid":"lowest-price","data-centered":ht||void 0,children:[ht?null:e.jsxs(Sx,{children:[i("itemDetail.lowestPrice"),e.jsx(ve,{className:"ico"}),e.jsx(Ax,{children:e.jsx(ye,{credits:He})})]}),e.jsx(Dn,{onClick:()=>et(!0),"data-testid":"view-resellers",children:i("itemDetail.viewAllResellers")})]}):null,!Te&&!w&&xi>0?e.jsxs(dx,{"data-testid":"you-own-note",children:[i("itemDetail.youOwnN",{count:xi})," ",e.jsx(ir,{to:"/my-items",children:i("nav.myAssets")})]}):null]})]}):e.jsx(Dx,{})})]}),e.jsx(wo,{exclude:de,title:i("itemDetail.becauseYouOwn"),surface:"pdp",first:nr}),_!==null&&e.jsx(wl,{title:Zr,items:O,onViewAll:H&&r.contractAddress?()=>g(`/collection/${r.contractAddress}`):void 0}),Y&&w&&W&&M?e.jsx(Br,{listing:W,rate:M,onClose:()=>U(!1),onSold:()=>U(!1)}):Y&&!w?e.jsx(Bn,{item:Se,resume:A,onClose:()=>{U(!1),R(!1)}}):null,jt?e.jsx(Bn,{item:jt,onClose:()=>{Et(null),it()}}):null,Ne&&Ft&&r.itemId?e.jsx(Up,{item:r,onClose:()=>et(!1)}):null,kt&&x?e.jsx(Pa,{contractAddress:o??"",tokenId:x,onClose:()=>Bt(!1)}):null,Nt&&r.itemId&&o?e.jsx(Pa,{variant:"buy",contractAddress:o,itemId:r.itemId,onClose:()=>$t(!1)}):null,es&&q&&f?e.jsx(yc,{asset:q,session:f,creator:r.creator,edit:oi?mi:void 0,onListed:(p,re)=>{It(p),it(),fn(I,{address:f.address,contractAddress:r.contractAddress,tokenId:r.tokenId},{kind:"listed",priceCredits:p,tradeId:re})},onClose:bi}):null,as&&f?e.jsx(Oc,{name:r.name,managed:an(f),canPayGas:di,cancel:fi(!1),onClose:()=>si(!1)}):null,ns&&f&&r.tokenId?e.jsx(Nc,{item:{contractAddress:r.contractAddress,chainId:r.chainId,tokenId:r.tokenId,name:r.name,thumbnail:r.thumbnail},session:f,onClose:()=>{ai(!1),it()},onTransferred:()=>{It(null),it(),fn(I,{address:f.address,contractAddress:r.contractAddress,tokenId:r.tokenId},{kind:"gone"})}}):null,ts&&Le&&f?e.jsx(du,{item:Le,session:f,edit:oi?mi:void 0,onListed:(p,re)=>{It(p),E(je=>({...je,tradeId:re}))},onClose:bi}):null,is&&Le&&f?e.jsx(Bu,{item:{contractAddress:Le.contractAddress,chainId:st.chainId,itemId:Le.blockchainItemId,name:Le.name,thumbnail:Le.thumbnail,available:Le.remainingSupply},session:f,onClose:()=>{ri(!1),it()}}):null,Pt&&vt?e.jsx(Hu,{src:vt,itemName:r.name,onClose:()=>Tt(!1)}):null]})}function Dx(){return e.jsxs(fx,{"aria-hidden":!0,children:[e.jsx(bx,{className:"skeleton"}),e.jsxs(yx,{children:[e.jsx(Pn,{className:"skeleton"}),e.jsx(Pn,{className:"skeleton"}),e.jsx(Pn,{className:"skeleton"})]}),e.jsx(Gr,{children:[0,1].map(t=>e.jsx(Wn,{children:e.jsxs(Nn,{children:[e.jsx(Qa,{className:"skeleton"}),e.jsxs(mx,{children:[e.jsx(Tn,{className:"skeleton"}),e.jsx(Tn,{className:"skeleton"}),e.jsx(Tn,{className:"skeleton","data-short":!0})]})]})},t))}),e.jsx(_r,{children:[0,1].map(t=>e.jsxs(zt,{...t===1?{"data-collection":!0}:{},children:[e.jsx(Qa,{className:"skeleton"}),e.jsx(gx,{})]},t))}),e.jsx(Jr,{}),e.jsx(wx,{className:"skeleton"}),e.jsx(vx,{className:"skeleton"})]})}export{Wx as ItemDetail,mf as ItemDetailRoute,Wx as default};
|
|
3779
|
-
//# sourceMappingURL=ItemDetail-
|
|
3778
|
+
`;function Bx(t){return Object.values(Ae.Rarity).includes(t)}function Nx(t){return t==="male"?i("itemDetail.genderMale"):t==="female"?i("itemDetail.genderFemale"):t==="unisex"?i("itemDetail.genderUnisex"):null}function Zt(t){return t.wearableCategory?t.wearableCategory.replace(/_/g," "):t.category==="emote"?i("itemDetail.categoryEmote"):i("itemDetail.categoryWearable")}const nr=8;function mf(){const{pathname:t}=ar();return e.jsx(Wx,{},t)}function Wx(){var Ii,Si,Ai;const{contractAddress:t,itemId:s,tokenId:l}=hs(),o=xn(t),d=cp(o),u=xn(s),x=xn(l),m=!!x,y=u??vd(x)??null,$=ar(),h=$.state,g=lt(),w=!!(h!=null&&h.market),k=(h==null?void 0:h.marketPriceCredits)??null,I=dt(),C=Rt(p=>p.add),S=Rt(p=>p.items),B=no(p=>p.toggle),{session:f,signIn:N}=ot(),[r,E]=c.useState(()=>{if(h!=null&&h.item){const p={...h.item,tradeId:h.tradeId??h.item.tradeId};return m?{...p,tokenId:x,itemId:p.itemId??y}:{...p,tokenId:void 0,itemId:u??p.itemId}}return{id:`${o}-${x??u}`,name:"",creator:"",contractAddress:o??"",itemId:y,category:"wearable",rarity:"common",network:"MATIC",chainId:st.chainId,thumbnail:"",priceCredits:0,gender:null,isSmart:!1,tokenId:x??void 0,tradeId:h==null?void 0:h.tradeId}}),[Y,U]=c.useState(!1),[A,R]=c.useState(!!(h!=null&&h.resumeBuy));c.useEffect(()=>{h!=null&&h.resumeBuy&&U(!0)},[h==null?void 0:h.resumeBuy]);function K(){const p=r.priceCredits>0?r.priceCredits:null;X("Shop Started Checkout",{checkout_source:"item_page",cart_size:1,cart_value_credits:p,cart_value_usd:p===null?null:vo(p)}),U(!0)}function G(){if(f){K();return}w||vl({type:"item-buy",path:$.pathname}),N()}const ne=c.useRef(!1);c.useEffect(()=>{if(!f||ne.current)return;const p=yl("item-buy");!p||p.path!==$.pathname||(ne.current=!0,R(!0),K())},[f]);const de=c.useMemo(()=>r.contractAddress&&(r.itemId??y)?[`${r.contractAddress.toLowerCase()}-${r.itemId??y}`]:void 0,[r.contractAddress,r.itemId,y]),ee=io(nr,{exclude:de}),_=ao({enabled:ee.enabled,hasSignal:ee.hasSignal,isLoading:ee.isLoading,isError:ee.isError,personalized:(Ii=ee.result)==null?void 0:Ii.personalized,rowCount:((Si=ee.result)==null?void 0:Si.data.length)??0}),{items:O,isCollectionOnly:H,siblings:v,siblingsFetched:fe}=dp({id:r.id,contractAddress:r.contractAddress,itemId:r.itemId??y,tokenId:r.tokenId,creator:r.creator}),{data:L,isLoading:F}=te({queryKey:["shop-item",r.contractAddress,y],enabled:!w&&!m&&!!r.contractAddress&&!!y,staleTime:0,refetchOnMount:"always",refetchOnWindowFocus:!0,queryFn:()=>ko(r.contractAddress,y)}),z=m?void 0:L;c.useEffect(()=>{z&&E(p=>p.tradeId?{...p,tradeId:z.tradeId,priceCredits:z.priceCredits,manaWei:z.manaWei,available:z.available??p.available,acquisition:z.acquisition,wearableCategory:p.wearableCategory??z.wearableCategory}:{...p,...z})},[z]);const[se,ie]=c.useState(!1),{data:xe=""}=te({queryKey:["item-desc",r.contractAddress,r.itemId],enabled:!!r.contractAddress&&!!r.itemId,staleTime:5*6e4,queryFn:()=>$o(r.contractAddress,r.itemId)}),{data:Q,isLoading:oe}=te({queryKey:["collection-meta",r.contractAddress],enabled:!!r.contractAddress,staleTime:5*6e4,queryFn:()=>dr(r.contractAddress)});c.useEffect(()=>{const p=(z==null?void 0:z.creator)||(Q==null?void 0:Q.creator);p&&E(re=>re.creator?re:{...re,creator:p})},[z,Q]);const Z=c.useMemo(()=>{if(!(m||r.name||z||v.length===0))return(y?v.find(p=>p.itemId===y):void 0)??v.find(p=>p.contractAddress===r.contractAddress)},[m,r.name,r.contractAddress,z,v,y]);c.useEffect(()=>{Z&&E(p=>({...Z,tradeId:p.tradeId??Z.tradeId}))},[Z]);const{data:Ce,isLoading:ce}=te({queryKey:["detail-trade",r.id,r.tradeId,r.contractAddress,r.itemId],enabled:!!r.contractAddress,staleTime:0,refetchOnMount:"always",refetchOnWindowFocus:!0,queryFn:async()=>{if(r.tradeId)return r.tradeId;if(!m&&r.itemId){const p=await Co(r.contractAddress,r.itemId);return(p==null?void 0:p.id)??null}return null}}),{data:V}=te({queryKey:["item-traits",r.contractAddress,y],enabled:!!r.contractAddress&&!!y,staleTime:5*6e4,retry:1,queryFn:()=>Io(r.contractAddress,y)}),Be=(V==null?void 0:V.isSmart)??r.isSmart,qe=(V==null?void 0:V.utility)??null,be=c.useMemo(()=>({...r,wearableCategory:r.wearableCategory??(V==null?void 0:V.wearableCategory)??void 0,gender:r.gender??(V==null?void 0:V.gender)??null}),[r,V==null?void 0:V.wearableCategory,V==null?void 0:V.gender]),Xe=(V==null?void 0:V.urn)??null,{data:on}=te({queryKey:["item-vrm",Xe],enabled:!!Xe&&r.category==="wearable",staleTime:30*6e4,retry:!1,queryFn:()=>So(Xe)}),[Lt,Tt]=c.useState(!1),{data:vt}=te({queryKey:["item-video",r.contractAddress,y],enabled:Be&&!!r.contractAddress&&!!y,staleTime:30*6e4,retry:!1,queryFn:()=>Rl(r.contractAddress,y)}),Ze=c.useMemo(()=>r.emoteLoop!==void 0?r:(y?v.find(re=>re.itemId===y):void 0)??r,[r,v,y]),ke=Hi(I,r.tradeId)??Hi(I,Ce),ct=r.acquisition==="store"&&(r.available??0)>0,me=!!ke||ct,Ne=ro(),{data:Ke=[]}=te({queryKey:["item-resales",r.contractAddress,r.itemId],enabled:Ne&&!w&&!!r.contractAddress&&!!r.itemId,staleTime:0,refetchOnMount:"always",refetchOnWindowFocus:!0,queryFn:()=>xr(r.contractAddress,r.itemId)}),He=Ke.length>0?Ke[0].priceCredits:null,We=m&&r.tokenId?Ke.find(p=>p.tokenId===r.tokenId)??null:null,Ie=c.useMemo(()=>{const p=Ke[0];return p?{...p,name:p.name||r.name,thumbnail:p.thumbnail||r.thumbnail,rarity:p.rarity||r.rarity,category:p.category||r.category,wearableCategory:p.wearableCategory??r.wearableCategory,gender:p.gender??r.gender}:null},[Ke,r]),[jt,Et]=c.useState(null),[Ft,et]=c.useState(!1),[kt,Bt]=c.useState(!1),[Nt,$t]=c.useState(!1),b=r.manaWei??null,{data:M}=hr(w||!!b),T=b&&M?so(b,M):null;c.useEffect(()=>{T!=null&&E(p=>p.priceCredits===T?p:{...p,priceCredits:T})},[T,r.priceCredits]);const W=c.useMemo(()=>{if(!w||!(h!=null&&h.item))return null;const p=h.item;return p.manaWei?{tradeId:p.tradeId??p.id,listingType:"primary",contractAddress:p.contractAddress,itemId:p.itemId??"",name:p.name,thumbnail:p.thumbnail,rarity:p.rarity,category:p.category,wearableCategory:p.wearableCategory??null,creator:p.creator,manaWei:p.manaWei,available:1,network:p.network,chainId:p.chainId,createdAt:0}:null},[w,h==null?void 0:h.item]),J=w&&k!=null&&!!M&&!!W,ae=oo({priceCredits:r.priceCredits,compareAtCredits:r.compareAtCredits,saleEndsAt:r.saleEndsAt}),D=(()=>{var je,xt,Mi;if(!ae)return null;const p=((je=r.coupon)==null?void 0:je.used)??0,re=Number(((Mi=(xt=r.coupon)==null?void 0:xt.checks)==null?void 0:Mi.uses)??0);return re>0&&p<=re?{claimed:p,total:re}:null})(),pe=(()=>{if(!ae||r.saleUnitsLeft==null)return null;const p=D?D.total-D.claimed:1/0;return r.saleUnitsLeft<p?r.saleUnitsLeft:null})(),Se=c.useMemo(()=>({...r,tradeId:ke,id:ke??r.id}),[r,ke]),Re=S.some(p=>p.id===Se.id),ut=!Se.tokenId,pt=((Ai=S.find(p=>p.id===Se.id))==null?void 0:Ai.quantity)??0,ln=ut&&typeof r.available=="number"&&pt>=r.available,{key:Qn,faved:tt}=lo(r),Ue=co(r),Yr=pr(p=>p.locale),Wt=Ue===void 0?null:Ue.toLocaleString(Yr),Gn=tt?i("assetCard.removeFromFavorites"):i("assetCard.addToFavorites"),_n=Ue===void 0?Gn:i("itemDetail.favoriteAria",{action:Gn,count:Ue}),Vn=c.useRef(null);c.useEffect(()=>{!r.name||ce||Vn.current===r.id||(Vn.current=r.id,X("Shop Viewed Item",{...uo(r),for_sale:me}),po(r))},[r.id,r.name,ce,me]);const Dt=`${o}/${x??u}`,Jn=c.useRef(Dt);c.useEffect(()=>{if(Jn.current!==Dt){if(Jn.current=Dt,h!=null&&h.item){const p={...h.item,tradeId:h.tradeId??h.item.tradeId};E(m?{...p,tokenId:x,itemId:p.itemId??y}:{...p,tokenId:void 0,itemId:u??p.itemId})}typeof window<"u"&&window.scrollTo({top:0,behavior:"smooth"})}},[Dt]);function Xr(){!me||dn||ce||!ut&&Re||ln||C(Se,"item_detail")}const nt=Bx(r.rarity)?r.rarity:Ae.Rarity.COMMON,Yn=Nx(be.gender),Ot=ho(be),Xn=xo(be.gender),Zn=Ih(r.rarity),ei=Sh(be),ti=me&&ae,Zr=H?i("itemDetail.moreFromCollection"):i("itemDetail.youMightAlsoLike"),dn=fo(r,f==null?void 0:f.address),[es,ni]=c.useState(!1),[ts,ii]=c.useState(!1),[ns,ai]=c.useState(!1),[is,ri]=c.useState(!1),[Ct,It]=c.useState(null),[as,si]=c.useState(!1),[oi,li]=c.useState(!1),di=en(f==null?void 0:f.providerType),{data:q,isLoading:qt}=te({queryKey:["owned-token",r.contractAddress,r.tokenId,f==null?void 0:f.address],enabled:!w&&!!(f!=null&&f.address)&&!!r.contractAddress&&!!r.tokenId,staleTime:0,refetchOnMount:"always",refetchOnWindowFocus:!0,queryFn:()=>f?Ti(f.address,r.contractAddress,r.tokenId):null});c.useEffect(()=>{q&&E(p=>p.name?{...p,issuedId:p.issuedId??q.issuedId,priceCredits:q.listingPrice??0,tradeId:q.tradeId}:{id:q.id,name:q.name,creator:"",contractAddress:q.contractAddress,itemId:q.itemId,category:q.category,rarity:q.rarity??"common",network:q.network,chainId:q.chainId,thumbnail:q.image,priceCredits:q.listingPrice??0,gender:null,isSmart:!1,tokenId:q.tokenId,issuedId:q.issuedId,tradeId:q.tradeId})},[q]),c.useEffect(()=>{We&&E(p=>p.priceCredits===We.priceCredits&&p.tradeId?p:{...p,priceCredits:We.priceCredits,tradeId:p.tradeId??We.tradeId})},[We]),c.useEffect(()=>{Ct!=null&&q!=null&&q.isOnSale&&q.listingPrice===Ct&&It(null)},[q,Ct]);const ci=!w&&!!r.contractAddress&&!!r.tokenId&&!r.name&&!z&&!qt&&!q,{data:he,isFetched:rs}=te({queryKey:["public-token",r.contractAddress,r.tokenId],enabled:ci,staleTime:0,refetchOnMount:"always",refetchOnWindowFocus:!0,queryFn:()=>Ao(r.contractAddress,r.tokenId)});c.useEffect(()=>{he&&E(p=>p.name?p.issuedId?p:{...p,issuedId:he.issuedId}:{id:he.id,name:he.name,creator:"",contractAddress:he.contractAddress,itemId:he.itemId,category:he.category,rarity:he.rarity??"common",network:he.network,chainId:he.chainId,thumbnail:he.image,priceCredits:he.listingPrice??0,gender:null,isSmart:!1,tokenId:he.tokenId,issuedId:he.issuedId,tradeId:he.tradeId})},[he]);const{data:Pe}=te({queryKey:["publishable-item",r.contractAddress,r.itemId,f==null?void 0:f.address],enabled:dn&&!!f&&!!r.itemId,queryFn:async()=>f?(await Pl(f.address,f.identity)).find(re=>re.contractAddress.toLowerCase()===r.contractAddress.toLowerCase()&&re.blockchainItemId===r.itemId)??null:null}),Le=m&&!!q,cn=!m&&dn,Te=!w&&(cn||Le),ui=Ct!=null?!0:Le?!!(q!=null&&q.isOnSale):me,Kt=Le?q==null?void 0:q.tradeId:ke,pi=Le?!!q:!!Pe,hi=cn||Le&&Ne,un=Ct??(Le?(q==null?void 0:q.listingPrice)??0:0),{data:xi=0}=te({queryKey:["owned-item-count",r.contractAddress,u,f==null?void 0:f.address],enabled:!m&&!w&&!!(f!=null&&f.address)&&!!r.contractAddress&&!!u,staleTime:3e4,queryFn:()=>f?Mo(f.address,r.contractAddress,u):0});async function it(){await Promise.all([I.invalidateQueries({queryKey:["owned-token",r.contractAddress,r.tokenId]}),I.invalidateQueries({queryKey:["detail-trade"]}),I.invalidateQueries({queryKey:["shop-item"]}),I.invalidateQueries({queryKey:["collection-sale-state"]}),I.invalidateQueries({queryKey:["shop-items"]}),I.invalidateQueries({queryKey:["catalog-items"]}),I.invalidateQueries({queryKey:["publishable-items"]}),I.invalidateQueries({queryKey:["publishable-item",r.contractAddress,r.itemId]}),I.invalidateQueries({queryKey:["item-resales",r.contractAddress,r.itemId]})])}async function ss(p){if(!f||!Kt)throw new Error("No listing to take down");const re=await ur(Kt);await zl({trade:re,signer:f.signer,mode:p.payGas?"direct":"gasless-only",watch:{isCancelled:async()=>{try{if(Le){if(!r.tokenId)return!1;const je=await Ti(f.address,r.contractAddress,r.tokenId);return je!==null&&!je.isOnSale}return r.itemId?await jo(r.contractAddress,r.itemId)===null:!1}catch{return!1}},onWaiting:p.onWaiting}}),p.silent||Pt.success(i("myAssets.removedFromSale",{name:r.name})),It(null),jd(I,Kt),E(je=>je.tradeId===Kt?{...je,tradeId:void 0}:je),it(),fn(I,{address:f.address,contractAddress:r.contractAddress,tokenId:r.tokenId},{kind:"removed"})}const fi=p=>async({payGas:re,onWaiting:je})=>{try{return await ss({silent:p,payGas:re,onWaiting:je}),"ok"}catch(xt){if(xt instanceof Ml)return xt.definitive?"relay-reverted":"relay-pending";throw xt}},mi={currentCredits:un||r.priceCredits||void 0,canPayGas:di,cancelCurrent:fi(!0)};function gi({edit:p=!1}={}){p||X("Shop Started Listing",{listing_type:Le?"secondary":"primary",item_id:r.itemId??r.tokenId??null}),li(p),Le?ni(!0):ii(!0)}function bi(){ni(!1),ii(!1),li(!1),it()}const yi=me?ce?i("itemDetail.checking"):ln?i("itemDetail.maxInCart"):!ut&&Re?i("assetCard.inCart"):i("assetCard.addToCart"):i("itemDetail.notForSale"),St=r.available??(V==null?void 0:V.available)??null,os=typeof St=="number"&&St>0&&!r.tokenId&&!w,wi=!w&&!r.tokenId&&St===0,vi=r.network==="ETHEREUM",ht=wi&&!Te&&!!Ie,Ht=!!Ie&&S.some(p=>p.id===Ie.id),ls=!Te&&me&&!w,ds=w||!Te&&(me||ht&&!!Ie||Kr()),cs=!r.name&&(!!z||!!q||!!he||!!Z),ji=F||!!r.contractAddress&&!fe||!r.name&&qt||cs||ci&&!rs,ki=!r.name&&!ji,us=!!r.name&&kd({isMarket:w,forSale:me,priceKnown:r.priceCredits>0&&(!b||T!=null)||Te,stillResolving:ji||!!b&&T==null,manage:Te,soldOutWithResale:ht,resolvingTrade:ce,isTokenRoute:m,ownedAssetLoading:qt,deepLinkLoading:F}),$i=!r.creator&&(F||oe||qt),Ci=!(Q!=null&&Q.name)&&oe,ps=/^https?:\/\//i.test(r.thumbnail);return mo(ki?{title:i("seo.item.notFoundTitle"),noindex:!0}:r.name?{title:r.name,description:xe||i("seo.item.fallbackDescription",{name:r.name,rarity:r.rarity,category:Zt(be),creator:On(r.creator)}),image:ps?r.thumbnail:void 0,type:"product"}:{}),ki?e.jsxs(cx,{"data-notfound":!0,children:[e.jsx(hx,{name:"cart"}),e.jsx(xx,{children:i("itemDetail.notAvailableTitle")}),e.jsx(ux,{children:i("itemDetail.notAvailableBody")}),e.jsx(px,{variant:"white",onClick:()=>g("/items"),children:i("notFound.cta")})]}):e.jsxs(Lh,{children:[e.jsxs(Th,{"aria-label":i("itemDetail.breadcrumbAria"),children:[e.jsx(Eh,{onClick:()=>g("/items"),children:i("nav.collectibles")}),e.jsx(Fh,{children:"/"}),e.jsx(Bh,{children:r.name||i("itemDetail.itemFallback")})]}),e.jsxs(Nh,{style:{"--glow-rgb":yo(nt),"--glow-core":bo(nt)},children:[e.jsxs(Wh,{"data-testid":"item-preview",children:[r.name?e.jsx(mp,{item:r}):e.jsx(Dh,{"aria-busy":"true","aria-label":i("itemPreview.loading"),children:e.jsx(Oh,{className:"skeleton","aria-hidden":!0})}),Qn?e.jsxs(Na,{"data-fav-preview":!0,"data-on":tt||void 0,"data-count":Wt??void 0,onClick:()=>B(r,"item_detail"),"aria-pressed":tt,"aria-label":_n,children:[e.jsx(P,{name:tt?"heart-solid":"heart",size:18}),Ue!==void 0?e.jsx(Wa,{title:i("itemDetail.savedCount",{count:Ue}),"data-testid":"fav-count-preview",children:Wt}):null]}):null,vt?e.jsxs(Uh,{"data-play-showcase":!0,onClick:()=>Tt(!0),"data-testid":"play-showcase",children:[e.jsx(P,{name:"play",size:18}),i("itemDetail.playShowcase")]}):null]}),e.jsx(qh,{"data-testid":"item-info",children:r.name?e.jsxs(e.Fragment,{children:[ti&&r.compareAtCredits!=null?e.jsx(Yh,{pct:go(r.compareAtCredits,r.priceCredits),size:"lg",testId:"detail-sale-badge"}):null,e.jsxs(Kh,{children:[e.jsxs(Hh,{children:[r.name,m&&r.issuedId?` #${r.issuedId}`:""]}),Qn?e.jsxs(Na,{"data-fav-title":!0,"data-on":tt||void 0,"data-count":Wt??void 0,onClick:()=>B(r,"item_detail"),"aria-pressed":tt,"aria-label":_n,children:[e.jsx(P,{name:tt?"heart-solid":"heart",size:18}),Ue!==void 0?e.jsx(Wa,{title:i("itemDetail.savedCount",{count:Ue}),"data-testid":"fav-count",children:Wt}):null]}):null]}),e.jsxs(Qh,{children:[Zn?e.jsx(_t,{content:Li(r.rarity),children:e.jsx(Yt,{to:Zn,"data-variant":"rarity","data-testid":"detail-rarity-link",style:{background:Pi(nt)},children:r.rarity})}):e.jsx(_t,{content:Li(r.rarity),children:e.jsx(Ee,{"data-variant":"rarity",style:{background:Pi(nt)},children:r.rarity})}),ei?e.jsxs(Yt,{to:ei,"data-testid":"detail-category-link",title:i("filter.browseByCategory",{category:Zt(be)}),children:[Ot?e.jsx(P,{name:Ot,size:18}):null,Zt(be)]}):e.jsxs(Ee,{children:[Ot?e.jsx(P,{name:Ot,size:18}):null,Zt(be)]}),Yn?e.jsxs(Ee,{children:[Xn?e.jsx(P,{name:Xn,size:18}):null,Yn]}):null,!m&&r.issuedId?e.jsxs(Ee,{"data-testid":"detail-issued",children:["#",r.issuedId]}):null,d?e.jsxs(Yt,{to:"/event","data-testid":"detail-event",title:d,children:[e.jsx(P,{name:"star-rounded",size:18}),d]}):null,Be?e.jsxs(Yt,{to:Ah(),"data-testid":"detail-smart",title:i("filter.browseBySmart"),children:[e.jsx(P,{name:"smart",size:18}),i("itemDetail.smart")]}):null,Ze.emoteLoop!==void 0?e.jsxs(Ee,{"data-testid":"detail-play-mode",children:[e.jsx(P,{name:Ze.emoteLoop?"play-loop":"play-once",size:18}),Ze.emoteLoop?i("itemDetail.playLoop"):i("itemDetail.playOnce")]}):null,Ze.emoteHasSound?e.jsxs(Ee,{"data-testid":"detail-sound",children:[e.jsx(P,{name:"sound",size:18}),i("itemDetail.emoteSound")]}):null,Ze.emoteHasProps?e.jsxs(Ee,{"data-testid":"detail-props",children:[e.jsx(P,{name:"props",size:18}),i("itemDetail.emoteProps")]}):null,on?e.jsx(_t,{content:i("itemDetail.exportBlockedTooltip"),children:e.jsxs(Ee,{"data-variant":"blocked","data-testid":"detail-export-blocked",tabIndex:0,"aria-label":i("itemDetail.exportBlockedTooltip"),children:[e.jsx(P,{name:"ban",size:16}),i("itemDetail.exportBlocked")]})}):null,qe?e.jsxs(Ee,{"data-testid":"detail-utility-chip",children:[e.jsx(P,{name:"utility",size:18}),i("itemDetail.utility")]}):null]}),xe||qe?e.jsxs(Gr,{children:[xe?e.jsx(Wn,{children:e.jsxs(Nn,{children:[e.jsx(mt,{children:i("itemDetail.description")}),e.jsx(Da,{"data-expanded":se||void 0,children:xe}),xe.length>140?e.jsx(_h,{className:"link",onClick:()=>ie(p=>!p),children:se?i("itemDetail.showLess"):i("itemDetail.readMore")}):null]})}):null,qe?e.jsx(Wn,{children:e.jsxs(Nn,{"data-testid":"detail-utility",children:[e.jsx(mt,{children:i("itemDetail.utility")}),e.jsx(Da,{"data-expanded":!0,children:qe})]})}):null]}):null,!vi&&(r.creator||$i)||Q!=null&&Q.name||Ci?e.jsxs(_r,{children:[vi?null:r.creator?e.jsxs(zt,{children:[e.jsx(mt,{children:i("itemDetail.creator")}),e.jsx(Vh,{address:r.creator,linkToProfile:!0,hidePrefix:!0})]}):$i?e.jsxs(zt,{children:[e.jsx(mt,{children:i("itemDetail.creator")}),e.jsxs(Za,{"aria-hidden":!0,"data-testid":"creator-loading",children:[e.jsx(er,{}),e.jsx(tr,{})]})]}):null,Q!=null&&Q.name?e.jsxs(zt,{"data-collection":!0,children:[e.jsx(mt,{children:i("itemDetail.collection")}),e.jsx(Jh,{contractAddress:r.contractAddress,name:Q.name,items:v})]}):Ci?e.jsxs(zt,{"data-collection":!0,children:[e.jsx(mt,{children:i("itemDetail.collection")}),e.jsxs(Za,{"aria-hidden":!0,"data-testid":"collection-loading",children:[e.jsx(er,{}),e.jsx(tr,{})]})]}):null]}):null,e.jsx(Jr,{}),us?e.jsxs(Ex,{"aria-hidden":!0,"data-testid":"sale-loading",children:[e.jsx(Fx,{}),e.jsx(Xa,{}),e.jsx(Xa,{})]}):e.jsxs(e.Fragment,{children:[Ne&&!Te&&!w&&me&&!r.tokenId?e.jsxs(jx,{"data-testid":"buy-from-creator",children:[e.jsxs(kx,{children:[e.jsx($x,{name:"buy-from-creator"}),i("itemDetail.buyFromCreator")]}),e.jsx(Cx,{name:"check-rounded"})]}):null,ht?e.jsxs(zx,{"data-testid":"sold-out",children:[e.jsxs(Ga,{"data-variant":"original",children:[e.jsxs(_a,{children:[i("itemDetail.originalPrice"),e.jsxs(Va,{children:[e.jsx(ve,{className:"ico"}),e.jsx(Ja,{children:e.jsx(ye,{credits:r.priceCredits})})]}),e.jsx(Ya,{"aria-hidden":!0,children:e.jsx(P,{name:"info",size:12})})]}),e.jsx(Rx,{"data-testid":"out-of-stock",children:i("itemDetail.soldOut")})]}),e.jsxs(Ga,{"data-variant":"resale",children:[e.jsxs(_a,{children:[i("itemDetail.resalePrice"),e.jsxs(Va,{children:[e.jsx(ve,{className:"ico"}),e.jsx(Ja,{children:e.jsx(ye,{credits:He})})]}),e.jsx(Ya,{"aria-hidden":!0,children:e.jsx(P,{name:"info",size:12})})]}),e.jsxs(Px,{children:[i("itemDetail.stock")," ",Ke.length,"/",Ae.Rarity.getMaxSupply(nt).toLocaleString()]})]})]}):e.jsxs(Xh,{children:[e.jsxs(Zh,{children:[e.jsxs(ex,{children:[w||me?e.jsx(zn,{children:i("itemDetail.price")}):null,w?e.jsxs(e.Fragment,{children:[e.jsx(At,{"data-variant":"market","data-testid":"item-price",children:k==null?e.jsx(Mt,{children:"—"}):e.jsxs(e.Fragment,{children:[e.jsx(nx,{"aria-hidden":!0,children:"≈"}),e.jsx(Xt,{}),e.jsx(Mt,{children:e.jsx(ye,{credits:k})})]})}),e.jsx(ix,{children:i("assetCard.marketPrice")})]}):me?ti?e.jsxs(At,{"data-variant":"sale","data-testid":"item-price",children:[e.jsx(Xt,{}),e.jsx(Mt,{children:e.jsx(ye,{credits:r.priceCredits})}),e.jsx(rx,{"data-testid":"detail-price-was",children:e.jsx(ye,{credits:r.compareAtCredits})}),e.jsx(rd,{until:r.saleEndsAt,testId:"detail-countdown"})]}):e.jsxs(At,{"data-testid":"item-price",children:[e.jsx(Xt,{}),e.jsx(Mt,{children:e.jsx(ye,{credits:r.priceCredits})})]}):ui&&un?e.jsxs(At,{"data-testid":"item-price",children:[e.jsx(Xt,{}),e.jsx(Mt,{children:e.jsx(ye,{credits:un})})]}):Te?null:e.jsxs(At,{"data-variant":"none","data-testid":"item-price",children:[e.jsx("span",{children:i("itemDetail.notForSale")}),e.jsx(_t,{content:i("itemDetail.notForSaleHint"),children:e.jsx(tx,{tabIndex:0,role:"img","aria-label":i("itemDetail.notForSaleHint"),children:e.jsx(P,{name:"info",size:14})})})]})]}),os?e.jsxs(Oa,{children:[e.jsx(zn,{children:i("itemDetail.stock")}),e.jsxs(Mn,{children:[(St??0).toLocaleString(),"/",Ae.Rarity.getMaxSupply(nt).toLocaleString()]})]}):wi?e.jsxs(Oa,{children:[e.jsx(zn,{children:i("itemDetail.stock")}),e.jsxs(Mn,{children:[(St??0).toLocaleString(),"/",Ae.Rarity.getMaxSupply(nt).toLocaleString()]}),e.jsx(Mn,{"data-out":!0,"data-testid":"out-of-stock",children:i("itemDetail.outOfStock")})]}):null]}),D?e.jsx($h,{claimed:D.claimed,total:D.total,testId:"detail-offer-stock"}):null,pe!=null?e.jsx(ax,{"data-testid":"detail-units-left",children:i("assetCard.unitsLeftAtThisPrice",{count:pe})}):null]}),e.jsx(sx,{"data-buttons":ds||void 0,"data-dual":ls||void 0,children:w?e.jsxs(Rn,{variant:"purple",onClick:G,disabled:!J,children:[e.jsx("span",{children:i("assetCard.buyNow")}),k!=null?e.jsxs(Pn,{"aria-hidden":!0,children:[e.jsx(En,{}),e.jsx(ye,{credits:k})]}):null]}):Te?e.jsxs(Lx,{"data-testid":"manage-actions",children:[ui?e.jsxs(e.Fragment,{children:[hi?e.jsxs(lx,{onClick:()=>gi({edit:!0}),disabled:!pi,"data-testid":"edit-price",children:[e.jsx(P,{name:"pen",className:"ico"}),e.jsx("span",{children:i("itemDetail.manageUpdatePrice")})]}):null,e.jsx(Ka,{onClick:()=>si(!0),"data-testid":"remove-listing",children:e.jsx("span",{children:i("itemDetail.manageRemove")})})]}):e.jsxs(e.Fragment,{children:[hi?e.jsx(ox,{onClick:()=>gi(),disabled:!pi,children:e.jsx("span",{children:i("itemDetail.manageList")})}):null,Le?e.jsxs(e.Fragment,{children:[e.jsx(Ka,{onClick:()=>ai(!0),children:e.jsx("span",{children:i("itemDetail.manageTransfer")})}),e.jsx(qa,{type:"button","data-on-purple":!0,"data-testid":"resell-item",onClick:()=>Bt(!0),children:i("itemDetail.manageResell")})]}):null]}),cn&&Pe?e.jsx(qa,{type:"button","data-on-purple":!0,onClick:()=>ri(!0),children:i("itemDetail.manageIssue")}):null,He!=null?e.jsx(Tx,{children:e.jsx(Dn,{onClick:()=>et(!0),"data-testid":"view-resellers",children:i("itemDetail.viewAllResellers")})}):null]}):me?e.jsxs(e.Fragment,{children:[e.jsxs(Rn,{variant:"purple",onClick:G,disabled:ce,children:[e.jsx("span",{children:i("assetCard.buyNow")}),e.jsxs(Pn,{"aria-hidden":!0,children:[e.jsx(En,{}),e.jsx(ye,{credits:r.priceCredits})]})]}),e.jsxs(Ha,{onClick:Xr,disabled:ce||(ut?ln:Re),"aria-label":yi,children:[e.jsx(P,{name:"cart"}),e.jsx(Ua,{children:yi})]})]}):ht&&Ie?e.jsxs(e.Fragment,{children:[e.jsxs(Rn,{variant:"purple",onClick:()=>f?Et(Ie):N(),children:[e.jsx("span",{children:i("assetCard.buyNow")}),e.jsxs(Pn,{"aria-hidden":!0,children:[e.jsx(En,{}),e.jsx(ye,{credits:Ie.priceCredits})]})]}),e.jsxs(Ha,{onClick:()=>{Ht||C(Ie,"item_detail")},disabled:Ht,"aria-label":Ht?i("assetCard.inCart"):i("assetCard.addToCart"),children:[e.jsx(P,{name:"cart"}),e.jsx(Ua,{children:Ht?i("assetCard.inCart"):i("assetCard.addToCart")})]})]}):e.jsxs(e.Fragment,{children:[e.jsx(bh,{item:r}),r.itemId?e.jsx(Mx,{onClick:()=>{X("Shop Clicked Buy Resale",{item_id:r.itemId,contract_address:r.contractAddress,has_shop_resale:!!Ie}),$t(!0)},"data-testid":"buy-resale","aria-haspopup":"dialog",children:i("itemDetail.buyResale")}):null]})}),!Te&&!w&&He!=null?e.jsxs(Ix,{"data-testid":"lowest-price","data-centered":ht||void 0,children:[ht?null:e.jsxs(Sx,{children:[i("itemDetail.lowestPrice"),e.jsx(ve,{className:"ico"}),e.jsx(Ax,{children:e.jsx(ye,{credits:He})})]}),e.jsx(Dn,{onClick:()=>et(!0),"data-testid":"view-resellers",children:i("itemDetail.viewAllResellers")})]}):null,!Te&&!w&&xi>0?e.jsxs(dx,{"data-testid":"you-own-note",children:[i("itemDetail.youOwnN",{count:xi})," ",e.jsx(ir,{to:"/my-items",children:i("nav.myAssets")})]}):null]})]}):e.jsx(Dx,{})})]}),e.jsx(wo,{exclude:de,title:i("itemDetail.becauseYouOwn"),surface:"pdp",first:nr}),_!==null&&e.jsx(wl,{title:Zr,items:O,onViewAll:H&&r.contractAddress?()=>g(`/collection/${r.contractAddress}`):void 0}),Y&&w&&W&&M?e.jsx(Br,{listing:W,rate:M,onClose:()=>U(!1),onSold:()=>U(!1)}):Y&&!w?e.jsx(Bn,{item:Se,resume:A,onClose:()=>{U(!1),R(!1)}}):null,jt?e.jsx(Bn,{item:jt,onClose:()=>{Et(null),it()}}):null,Ne&&Ft&&r.itemId?e.jsx(Up,{item:r,onClose:()=>et(!1)}):null,kt&&x?e.jsx(La,{contractAddress:o??"",tokenId:x,onClose:()=>Bt(!1)}):null,Nt&&r.itemId&&o?e.jsx(La,{variant:"buy",contractAddress:o,itemId:r.itemId,onClose:()=>$t(!1)}):null,es&&q&&f?e.jsx(yc,{asset:q,session:f,creator:r.creator,edit:oi?mi:void 0,onListed:(p,re)=>{It(p),it(),fn(I,{address:f.address,contractAddress:r.contractAddress,tokenId:r.tokenId},{kind:"listed",priceCredits:p,tradeId:re})},onClose:bi}):null,as&&f?e.jsx(Oc,{name:r.name,managed:an(f),canPayGas:di,cancel:fi(!1),onClose:()=>si(!1)}):null,ns&&f&&r.tokenId?e.jsx(Nc,{item:{contractAddress:r.contractAddress,chainId:r.chainId,tokenId:r.tokenId,name:r.name,thumbnail:r.thumbnail},session:f,onClose:()=>{ai(!1),it()},onTransferred:()=>{It(null),it(),fn(I,{address:f.address,contractAddress:r.contractAddress,tokenId:r.tokenId},{kind:"gone"})}}):null,ts&&Pe&&f?e.jsx(du,{item:Pe,session:f,edit:oi?mi:void 0,onListed:(p,re)=>{It(p),E(je=>({...je,tradeId:re}))},onClose:bi}):null,is&&Pe&&f?e.jsx(Bu,{item:{contractAddress:Pe.contractAddress,chainId:st.chainId,itemId:Pe.blockchainItemId,name:Pe.name,thumbnail:Pe.thumbnail,available:Pe.remainingSupply},session:f,onClose:()=>{ri(!1),it()}}):null,Lt&&vt?e.jsx(Hu,{src:vt,itemName:r.name,onClose:()=>Tt(!1)}):null]})}function Dx(){return e.jsxs(fx,{"aria-hidden":!0,children:[e.jsx(bx,{className:"skeleton"}),e.jsxs(yx,{children:[e.jsx(Ln,{className:"skeleton"}),e.jsx(Ln,{className:"skeleton"}),e.jsx(Ln,{className:"skeleton"})]}),e.jsx(Gr,{children:[0,1].map(t=>e.jsx(Wn,{children:e.jsxs(Nn,{children:[e.jsx(Qa,{className:"skeleton"}),e.jsxs(mx,{children:[e.jsx(Tn,{className:"skeleton"}),e.jsx(Tn,{className:"skeleton"}),e.jsx(Tn,{className:"skeleton","data-short":!0})]})]})},t))}),e.jsx(_r,{children:[0,1].map(t=>e.jsxs(zt,{...t===1?{"data-collection":!0}:{},children:[e.jsx(Qa,{className:"skeleton"}),e.jsx(gx,{})]},t))}),e.jsx(Jr,{}),e.jsx(wx,{className:"skeleton"}),e.jsx(vx,{className:"skeleton"})]})}export{Wx as ItemDetail,mf as ItemDetailRoute,Wx as default};
|
|
3779
|
+
//# sourceMappingURL=ItemDetail-DH3C6g1a.js.map
|