@dcl/shop 1.9.2 → 1.9.3-32495537062.commit-4b3f64e
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-Dt6DfbvQ.js → Activity-DWErXnoG.js} +6 -6
- package/_assets/{AnimatedBackground-D9fqKZZL.js → AnimatedBackground-Bi_ZNPrR.js} +2 -2
- package/_assets/{Assets-Cpt6sCyJ.js → Assets-Bm9m_x2b.js} +7 -7
- package/_assets/{Authorizations-QDcGhwOD.js → Authorizations-z2mO1b2b.js} +2 -2
- package/_assets/Cart-C4caiTwW.js +645 -0
- package/_assets/{CircularProgress-Zi497kNF.js → CircularProgress-nhJG5H4b.js} +2 -2
- package/_assets/{Collection-DN9kyHxU.js → Collection-DFn6jEth.js} +2 -2
- package/_assets/{CollectionCarousel-CiQjTUxK.js → CollectionCarousel-CwBx4eRn.js} +3 -3
- package/_assets/{Confetti-BxjiVKPm.js → Confetti-Decijdru.js} +4 -4
- package/_assets/{ConstantsUtil-DaE8obaZ.js → ConstantsUtil-Cra_bkL1.js} +2 -2
- package/_assets/{ContentClient-D0SQSgXF.js → ContentClient-DKGhEgXy.js} +2 -2
- package/_assets/{Creator-DV2Q_EhN.js → Creator-CswxQ6LD.js} +2 -2
- package/_assets/{DeploymentBuilder-xN7K8y9o.js → DeploymentBuilder-CNLiq2Oi.js} +2 -2
- package/_assets/{EmotePlaybackBar-DiG0rn9W.js → EmotePlaybackBar-viwAJ495.js} +3 -3
- package/_assets/{ErrorNotice-BW8aXw_7.js → ErrorNotice-CYAwTYLU.js} +2 -2
- package/_assets/{ExchangeController-B4BdmoV9.js → ExchangeController-CD5-dSbC.js} +2 -2
- package/_assets/{Faq-CI78-N0I.js → Faq-h5xtpvRB.js} +2 -2
- package/_assets/{GetCredits-LUpSuIG_.js → GetCredits-RrAF2H_B.js} +8 -8
- package/_assets/{Grow-CjEYi24F.js → Grow-Ca7HwRTp.js} +2 -2
- package/_assets/{HelpersUtil-B76CBImb.js → HelpersUtil-BJ6r84TK.js} +2 -2
- package/_assets/{ItemDetail--_To60pF.js → ItemDetail-Doz_Pu-P.js} +2 -2
- package/_assets/{LoadMore-BXkJAed-.js → LoadMore-BPpiXldG.js} +2 -2
- package/_assets/{ManaPricingBanner.styles-C4fJtJh-.js → ManaPricingBanner.styles-Belo9roz.js} +2 -2
- package/_assets/{MyAssets-1QA09uaq.js → MyAssets-B7XoI2Ln.js} +2 -2
- package/_assets/{MyFavorites-BGBd9cHu.js → MyFavorites-CBl-2zFL.js} +2 -2
- package/_assets/{NetworkUtil-CUhhiBwq.js → NetworkUtil-Co9cUNqJ.js} +2 -2
- package/_assets/{NotFound-1d5l0fPQ.js → NotFound-B3Qs9xW-.js} +2 -2
- package/_assets/{NotificationsBell-cuQUq5HL.js → NotificationsBell-7HthTzrx.js} +2 -2
- package/_assets/{OutfitDetail-Hft483Ec.js → OutfitDetail-DTf8kmup.js} +2 -2
- package/_assets/{OutfitPreview-WwPNEOjI.js → OutfitPreview-BxOkx3ec.js} +2 -2
- package/_assets/{OutfitStudio-Ccib9vIn.js → OutfitStudio-BT-swDyc.js} +2 -2
- package/_assets/{StoreSettings-CX45pls-.js → StoreSettings-BRKnXgWV.js} +4 -4
- package/_assets/{Success-C7bxhod-.js → Success--ZC3bjcu.js} +2 -2
- package/_assets/{SwapController-2o6kQ91x.js → SwapController-JZU1t_q6.js} +2 -2
- package/_assets/{TradeService-p9Z6Y0wD.js → TradeService-CFUGHrQd.js} +2 -2
- package/_assets/{W3MFrameProviderSingleton-Cil5qlaS.js → W3MFrameProviderSingleton-BnH_E1kT.js} +4 -4
- package/_assets/{WebCryptoP256-BZht8npt.js → WebCryptoP256-iK7ppmQU.js} +2 -2
- package/_assets/{authorizations-CJLGounG.js → authorizations-U-zuQc7g.js} +2 -2
- package/_assets/{basic-CV4HIKM2.js → basic-Dt5X1JGI.js} +2 -2
- package/_assets/{biconomy-C1M_WGYX.js → biconomy-XbHYt574.js} +2 -2
- package/_assets/{browseLayout.styles-CbyAhCls.js → browseLayout.styles-D96b8vY4.js} +2 -2
- package/_assets/{browser-BsRaY-pm.js → browser-BvaC8Ot5.js} +2 -2
- package/_assets/{browser-ponyfill--2nwarnr.js → browser-ponyfill-CQHa8RWT.js} +2 -2
- package/_assets/{builder-CeLuOnuM.js → builder-B2wSSJjY.js} +2 -2
- package/_assets/{buy-DymchWn5.js → buy-CQ1dwjTs.js} +2 -2
- package/_assets/buy-gasless-CE0-H487.js +2 -0
- package/_assets/{categories-CXj1P-ln.js → categories-MN5mCyH2.js} +2 -2
- package/_assets/{ccip-CQiZ3-qM.js → ccip-DSU_WQmX.js} +2 -2
- package/_assets/{ccip-FnhUFIYm.js → ccip-tWVaTipE.js} +2 -2
- package/_assets/{chains-DfMERfnW.js → chains-CDYI3IM5.js} +2 -2
- package/_assets/collectionPage.styles-BEvZWozs.js +40 -0
- package/_assets/{common-C_ndt6fZ.js → common-BtCoQcin.js} +2 -2
- package/_assets/{controller-DDEQmJXP.js → controller-DkGp9b_f.js} +3 -3
- package/_assets/{core-j77nIizU.js → core-L9gvijT8.js} +5 -5
- package/_assets/{createSvgIcon-Du97wPGf.js → createSvgIcon-C8sQA4lI.js} +2 -2
- package/_assets/{custom-Dxc1jEzQ.js → custom-B6mbPqbQ.js} +2 -2
- package/_assets/{data-capture-BU8pDw-T.js → data-capture-V56TJR76.js} +2 -2
- package/_assets/{dcl-schemas-BBgGLe8k.js → dcl-schemas-R5THIzlU.js} +2 -2
- package/_assets/{decimals-letC916t.js → decimals-2ZNvVlro.js} +2 -2
- package/_assets/{decimals-e9gwXexf.js → decimals-CHLw9Iw2.js} +2 -2
- package/_assets/{detectExtension-C9d6YCCt.js → detectExtension-C_WyqisC.js} +2 -2
- package/_assets/{disposePreview-Dezrw02g.js → disposePreview-B6hgPdBs.js} +2 -2
- package/_assets/{email-DSscz4Vl.js → email-C3uEYFr_.js} +2 -2
- package/_assets/{embedded-wallet-Kj2rnf5C.js → embedded-wallet-BhmVMjpl.js} +2 -2
- package/_assets/{emotion-styled.browser.esm-JObVDgrH.js → emotion-styled.browser.esm-DspSDSIa.js} +2 -2
- package/_assets/{engine-HowSqiPZ.js → engine-Bgo5ZX5y.js} +2 -2
- package/_assets/{errors-CqEjLz14.js → errors-DCouue4C.js} +2 -2
- package/_assets/{estimate-l1-fee-4Nc3yCK1.js → estimate-l1-fee-DcEkKsCz.js} +2 -2
- package/_assets/{eth_estimateGas-07hHMEkF.js → eth_estimateGas-CBvse6vc.js} +2 -2
- package/_assets/{eth_getStorageAt-B_6XaGoO.js → eth_getStorageAt-8wY1-CzV.js} +2 -2
- package/_assets/{eth_getTransactionCount-BvPk5RHG.js → eth_getTransactionCount-BecQPx9O.js} +2 -2
- package/_assets/{ethereum-eDYZBrz5.js → ethereum-CfEbuV4R.js} +2 -2
- package/_assets/{ethers-BKRWnjV9.js → ethers-CUiF5uXN.js} +2 -2
- package/_assets/{events-S6R_9oRG.js → events-BQTzxgVG.js} +2 -2
- package/_assets/{execute-DxIYEcvB.js → execute-CKC06Jt8.js} +3 -3
- package/_assets/{extractIPFS-DKyUVdVV.js → extractIPFS-mEEmvaQL.js} +2 -2
- package/_assets/{features-PyWxVTLV.js → features-it-aCGx-.js} +2 -2
- package/_assets/{fetchTokenMetadata-DTgK8IFo.js → fetchTokenMetadata-V1GTBa_Q.js} +3 -3
- package/_assets/{field.styles-DKQS3oWo.js → field.styles-DwE32JYQ.js} +2 -2
- package/_assets/{fortmatic-Cd8UWzR7.js → fortmatic-Dkqs4j6d.js} +2 -2
- package/_assets/{get-bytecode-CNrt-FoQ.js → get-bytecode-C7IGKwo-.js} +2 -2
- package/_assets/{get-ecosystem-wallet-info-Ddh0TZp5.js → get-ecosystem-wallet-info-Df7w3wEq.js} +2 -2
- package/_assets/{getBalance-HweKqf1d.js → getBalance-C9CAa_6l.js} +3 -3
- package/_assets/{getInstalledModules-DIY2QXZg.js → getInstalledModules-C--_8s8a.js} +2 -2
- package/_assets/{getNFT--CbGnkWO.js → getNFT-B92RLrY4.js} +2 -2
- package/_assets/{getNFT-Dm-BLuw5.js → getNFT-Cz3tT2Ff.js} +3 -3
- package/_assets/{grid.styles-C24oAL5O.js → grid.styles-D311Q8GR.js} +2 -2
- package/_assets/{hashTypedData-Cs3JQ0er.js → hashTypedData-BJQTyGsM.js} +2 -2
- package/_assets/{hashTypedData-DQ_Lbi0o.js → hashTypedData-TAgumUHu.js} +2 -2
- package/_assets/{in-app-CW-TClWX.js → in-app-BxCpBmZh.js} +2 -2
- package/_assets/{in-app-wallet-calls-Td7jQu3N.js → in-app-wallet-calls-_aHHkEzw.js} +2 -2
- package/_assets/{index-CNbMuq6z.js → index-2p9clekp.js} +2 -2
- package/_assets/{index-DpMjDWPc.js → index-7umWvCDe.js} +2 -2
- package/_assets/{index-CWMBT2iW.js → index-B0-jp1MR.js} +2 -2
- package/_assets/{index-C2gUP7Wd.js → index-B3XTiWfO.js} +2 -2
- package/_assets/{index-CzbStCVl.js → index-BLeQJZWq.js} +2 -2
- package/_assets/{index-Bbs_JDF9.js → index-BOqR76jL.js} +2 -2
- package/_assets/{index-EW0m5fIH.js → index-BPTaE6ud.js} +2 -2
- package/_assets/{index-sQFfvNZX.js → index-BTnsc5e9.js} +12 -12
- package/_assets/{index-DQdcxui0.js → index-BWBKr-zT.js} +2 -2
- package/_assets/{index-BRF6gJ7Q.js → index-BZkJXucS.js} +2 -2
- package/_assets/{index-CGZa27zg.js → index-B_HPXnbd.js} +2 -2
- package/_assets/{index-BCN8HQIT.js → index-BnRsxUTH.js} +2 -2
- package/_assets/{index-BJITEOWs.js → index-BoHxnXAi.js} +2 -2
- package/_assets/{index-B6SpJox_.js → index-BsyVRGj2.js} +2 -2
- package/_assets/{index-BXQ9FyQv.js → index-Bth4ie0r.js} +3 -3
- package/_assets/{index-CeMa_Fpw.js → index-Bwy_HhfH.js} +2 -2
- package/_assets/{index-BEfcKQqS.js → index-C0kJwfxZ.js} +2 -2
- package/_assets/{index-Djpq4q5g.js → index-C6Ypgr3l.js} +4 -4
- package/_assets/{index-kizwd9je.js → index-C7iYKZUj.js} +2 -2
- package/_assets/{index-BSzD0ncl.js → index-CBk3biEW.js} +2 -2
- package/_assets/{index-BTkKLFzm.js → index-CEQABEF_.js} +2 -2
- package/_assets/{index-D-M7F27b.js → index-CHif1dyu.js} +2 -2
- package/_assets/{index-9jY2-EBG.js → index-CICsqLb7.js} +2 -2
- package/_assets/{index-CzuWMO-_.js → index-CNzqjMcQ.js} +2 -2
- package/_assets/{index-BjW_aHIh.js → index-CSNTL6wb.js} +2 -2
- package/_assets/{index-haPNmxuN.js → index-CVTPkoXG.js} +2 -2
- package/_assets/{index-uVLu1nYC.js → index-Cb4UGBWV.js} +2 -2
- package/_assets/{index-DF089E3i.js → index-CcJ5W3zK.js} +2 -2
- package/_assets/{index-hGWc_5eF.js → index-CdzMJMCm.js} +2 -2
- package/_assets/{index-_iT3UM2o.js → index-ChgEFkID.js} +2 -2
- package/_assets/{index-D2bN0_3y.js → index-ClC31BHC.js} +2 -2
- package/_assets/{index-CZXqNGbb.js → index-Cmsb__rT.js} +2 -2
- package/_assets/{index-BKoIacqr.js → index-CoJa8tNh.js} +3 -3
- package/_assets/{index-zyd0LxKG.js → index-CrAcUSLM.js} +2 -2
- package/_assets/{index-CR-CF0bF.js → index-D3Na_Dh4.js} +2 -2
- package/_assets/{index-D_nXvzND.js → index-D3pDtf-r.js} +2 -2
- package/_assets/{index-B3XA61Pm.js → index-D4MkEK6W.js} +2 -2
- package/_assets/{index-CuBLDtFZ.js → index-D9XwwJWD.js} +4 -4
- package/_assets/{index-B7lHpbYl.js → index-DAYou4hS.js} +2 -2
- package/_assets/{index--RzAwV6Q.js → index-DFAMIlO1.js} +2 -2
- package/_assets/{index-Kerq77jm.js → index-DIleAf3C.js} +2 -2
- package/_assets/{index-DNROAxKm.js → index-DL3cpWqR.js} +2 -2
- package/_assets/{index-BYZ634H2.js → index-DNQTtwwG.js} +2 -2
- package/_assets/{index-DEOUkXMy.js → index-DOQpdgdm.js} +2 -2
- package/_assets/{index-CdfCxJMq.js → index-DPF2ELZ4.js} +2 -2
- package/_assets/{index-D9kntTpl.js → index-DS7H5aDK.js} +2 -2
- package/_assets/{index-BdM6GuSo.js → index-DW_lLoQU.js} +2 -2
- package/_assets/{index-AiBvYRW5.js → index-DXoV3ecr.js} +2 -2
- package/_assets/{index-CoFmUEdb.js → index-DZeFUwxM.js} +4 -4
- package/_assets/{index-BVuZOuvn.js → index-DZi6vCKV.js} +3 -3
- package/_assets/{index-C5UkgriS.js → index-DhTc4qG3.js} +2 -2
- package/_assets/{index-BfNdu86e.js → index-DmF0vwFf.js} +2 -2
- package/_assets/{index-BTGMdjiQ.js → index-Do8hcDMw.js} +2 -2
- package/_assets/{index-BpCu9mM3.js → index-DsLCaMV7.js} +2 -2
- package/_assets/{index-B0zOOgnV.js → index-DyyTwmpW.js} +2 -2
- package/_assets/{index-BJ6Fw5Al.js → index-EMT4O8Nt.js} +2 -2
- package/_assets/{index-CoCdUrpV.js → index-bY3kQcGs.js} +2 -2
- package/_assets/{index-DjP3X3Jh.js → index-eho6x0GI.js} +2 -2
- package/_assets/{index-CxkbKeKD.js → index-eoSXlQKf.js} +2 -2
- package/_assets/{index-FPMEVY0k.js → index-iKDkGBG5.js} +2 -2
- package/_assets/{index-Dq2Ka7mB.js → index-lS-7AJyG.js} +3 -3
- package/_assets/{index-CMZjflvo.js → index-lu_VAe-4.js} +2 -2
- package/_assets/{index-BhsA-pb-.js → index-nYNwcllY.js} +2 -2
- package/_assets/{index-YSCl74H6.js → index-sYVzylkf.js} +2 -2
- package/_assets/{index-C7fDOFW2.js → index-v2l7Irsy.js} +2 -2
- package/_assets/{index-BTdE-853.js → index-vdjTOzg_.js} +2 -2
- package/_assets/{index-DY6pIrBT.js → index-wzigLAYd.js} +2 -2
- package/_assets/{index.es-iv8hf5ai.js → index.es-B6BSgw1Z.js} +2 -2
- package/_assets/{index.es-NKUXf-un.js → index.es-DLUz1-d2.js} +5 -5
- package/_assets/{index.es-CnQERyF2.js → index.es-Jeut0jjZ.js} +2 -2
- package/_assets/{index.es-CReVKXvk.js → index.es-lOiMfIH0.js} +2 -2
- package/_assets/items-empty-DiS1_SCG.js +2 -0
- package/_assets/{jump-CeInMpQz.js → jump-D5MaL3yK.js} +2 -2
- package/_assets/{linkAccount-CJSln8y3.js → linkAccount-D5u83eIC.js} +2 -2
- package/_assets/{localBatchGatewayRequest-C4ULrlUp.js → localBatchGatewayRequest-sy7OIJ0B.js} +2 -2
- package/_assets/{native-d_18A6YH.js → native-BVqh2SsO.js} +2 -2
- package/_assets/{networks-a6Oqotld.js → networks-Cw1IyIox.js} +2 -2
- package/_assets/{onramp-CDgb9WlA.js → onramp-DY9fhg8x.js} +2 -2
- package/_assets/{openzeppelin-MXrpXJs9.js → openzeppelin-CvN6jJ7C.js} +2 -2
- package/_assets/{ownerOf-BSpUUDYN.js → ownerOf-DTeQ3rbo.js} +2 -2
- package/_assets/{parseNft-Dq5u9zmT.js → parseNft-DGCRi9OQ.js} +3 -3
- package/_assets/{parseSignature-JDi4tHpL.js → parseSignature-BkU6aTfx.js} +2 -2
- package/_assets/{parseSignature-bTbb9ogg.js → parseSignature-MC882UjP.js} +4 -4
- package/_assets/{passkeys-BeLLEm8_.js → passkeys-Q8sF6RTK.js} +2 -2
- package/_assets/{pay-with-exchange-uspxaKYi.js → pay-with-exchange-cOj83FVY.js} +2 -2
- package/_assets/{prepare-contract-call-glyYfDZw.js → prepare-contract-call-BhRNh7Au.js} +2 -2
- package/_assets/{qr-overlay-Cfm7lv4J.js → qr-overlay-Bwj1ydp_.js} +4 -4
- package/_assets/{react-9aRvCYbm.js → react-DsDsjqAs.js} +2 -2
- package/_assets/{receive-DzqSGOBo.js → receive-DLpHUwGV.js} +2 -2
- package/_assets/{resolveImplementation-CGlyDT1c.js → resolveImplementation-STpHoraq.js} +2 -2
- package/_assets/{resume-buy-DzrSPRFa.js → resume-buy-6We253DL.js} +2 -2
- package/_assets/{rpc-B4vokLJn.js → rpc-B4AsVlaK.js} +2 -2
- package/_assets/{sales-empty-DqC1PsNb.js → sales-empty-DHh_uP3J.js} +2 -2
- package/_assets/{search-empty-DCFe-ryo.js → search-empty-MI095Wg1.js} +2 -2
- package/_assets/{secp256k1-C-dCnxvN.js → secp256k1-CshEyu2g.js} +2 -2
- package/_assets/{secp256k1-mA2HPwtH.js → secp256k1-CuC6ieAM.js} +2 -2
- package/_assets/{secp256k1-0pYvee0N.js → secp256k1-Decs88Fo.js} +2 -2
- package/_assets/{send-BhFWXDEQ.js → send-5To8If8-.js} +2 -2
- package/_assets/{send-batch-transaction-ClbwXouE.js → send-batch-transaction-CCcWJ9b1.js} +2 -2
- package/_assets/{send-eip712-transaction-Cvujs_IY.js → send-eip712-transaction-COz0J_0Y.js} +3 -3
- package/_assets/{send-gasless-transaction-o6WLUU8m.js → send-gasless-transaction-Dkd_pGRV.js} +3 -3
- package/_assets/{send-transaction-brMtxtLa.js → send-transaction-C_oJlWQQ.js} +3 -3
- package/_assets/{sendMetaTransaction-BO1lGCgN.js → sendMetaTransaction-DF7zEAn4.js} +2 -2
- package/_assets/{sendRawTransaction-ClZJFTYs.js → sendRawTransaction-BfhYBZ4D.js} +4 -4
- package/_assets/{sentry-CJqFbG11.js → sentry-Bo5AM9lU.js} +3 -3
- package/_assets/{serializeTransaction-CHRQ4nRc.js → serializeTransaction-uYkTf444.js} +2 -2
- package/_assets/{session-proposal-DIVrgaZs.js → session-proposal-BGkA2NKO.js} +2 -2
- package/_assets/{session-request-DQ1KJ9v-.js → session-request-CcqkNiLD.js} +3 -3
- package/_assets/{sha256-D95xpIOk.js → sha256-BJjzJgE2.js} +2 -2
- package/_assets/{signing-CF8ZzSie.js → signing-BkaQdh-F.js} +4 -4
- package/_assets/{skeleton.styles-CDClgQZa.js → skeleton.styles-x-kJirI8.js} +2 -2
- package/_assets/{socials-Bh2JNm2f.js → socials-CDSMMTVo.js} +2 -2
- package/_assets/{styled-BJAerMAa.js → styled-B-GFNFFF.js} +2 -2
- package/_assets/{swaps-CP0hsXom.js → swaps-B3nEJqdL.js} +2 -2
- package/_assets/{thirdweb-CvWXAZKa.js → thirdweb-BCVgyan2.js} +4 -4
- package/_assets/{to-serializable-transaction-BKfOcqcV.js → to-serializable-transaction-ChOvm_xu.js} +3 -3
- package/_assets/{totalSupply-Civ1rKAR.js → totalSupply-B8Hxyv3N.js} +2 -2
- package/_assets/{transaction-LdbEZ3QP.js → transaction-Cbl1Q4He.js} +2 -2
- package/_assets/{transactionReceipt-BWD_rE0W.js → transactionReceipt-B_XS2efd.js} +2 -2
- package/_assets/{transactions-BTkg5Hbg.js → transactions-D_Dx3lL7.js} +2 -2
- package/_assets/{useCreditPacks-DnU6Nk_-.js → useCreditPacks-0pkvd2Tt.js} +2 -2
- package/_assets/{useInfiniteGrid-DvgTy6W_.js → useInfiniteGrid-CQfjuTWX.js} +2 -2
- package/_assets/{useStore-CgGE1SzL.js → useStore-DzWyl7-U.js} +3 -3
- package/_assets/{useTheme-DCVzmxd7.js → useTheme-D88KFRdA.js} +2 -2
- package/_assets/{utils-DF0qXAQT.js → utils-CsRnLCEP.js} +2 -2
- package/_assets/{verifyHash-DbgcJwW2.js → verifyHash-Bzbh_Hdq.js} +2 -2
- package/_assets/{w3m-modal-BCt908iO.js → w3m-modal-B0dQd7lO.js} +2 -2
- package/_assets/{w3m-modal-MofBNC-s.js → w3m-modal-qhNxMiKI.js} +2 -2
- package/_assets/{wait-for-tx-receipt-BWYdev56.js → wait-for-tx-receipt-B_ak9jAY.js} +2 -2
- package/_assets/{wallets-CyXKPtLh.js → wallets-CuKcpbWz.js} +6 -6
- package/_assets/{web-connector-CBmqwNC1.js → web-connector-Cl1KOeqv.js} +4 -4
- package/_assets/{writeContract-U8xgcLR7.js → writeContract-i3X5PRyK.js} +2 -2
- package/_assets/{zora-sepolia-BcoXfUYO.js → zora-sepolia-YLHY_SZt.js} +2 -2
- package/_assets/{zoraTestnet-CdLP96ll.js → zoraTestnet-CIwe9ea3.js} +2 -2
- package/index.html +11 -11
- package/package.json +2 -2
- package/_assets/Cart-k83ms4yR.js +0 -645
- package/_assets/buy-gasless-_tY7hzCY.js +0 -2
- package/_assets/collectionPage.styles-ADf8X1pQ.js +0 -40
- package/_assets/items-empty-CJboE1w9.js +0 -2
package/_assets/Cart-k83ms4yR.js
DELETED
|
@@ -1,645 +0,0 @@
|
|
|
1
|
-
import{j as e,L as zt,r as I,b as oa,a as ca}from"./react-9aRvCYbm.js";import{t as de,s as r,b as a,E as ue,C as ke,aC as la,D as qe,aD as da,z as ua,I as V,q as Rt,A as Ne,n as ha,ad as H,M as pt,o as pa,Z as ga,l as ma,aE as fa,r as xa,aF as ya,N as ba,aG as va,aH as gt,P as wa,aI as Ca,aJ as ja,aK as ka,aq as ze,p as Sa,aL as mt,af as D,aM as ft,aN as $a,h as ae,X as Ma,c as xt,aO as Ta,aP as yt,aQ as Re,aR as Ia,aS as be,aT as ve,aU as bt,g as vt,f as wt,aV as Pa}from"./index-sQFfvNZX.js";import{M as Aa,S as Ea,C as qa,H as za,a as Ra,T as _a,X as Ba,b as Fa,B as Wa,c as La,d as Ct,e as Ka,f as Se,P as _t,g as Na,h as Qa,i as Ua,j as Ga,k as Ke,l as he,L as Ha,m as Oa,n as jt,o as kt,W as Da,p as Va,q as Ja,r as Xa,A as Ya,s as Za,t as es,u as ts,v as as,w as ss,x as ns,y as is,z as rs,D as os,E as cs,F as ls,G as ds,I as us,J as hs,K as ps,N as gs,O as _e,Q as ms,R as fs,U as xs,V as ys,Y as St,Z as $t,_ as bs,$ as vs,a0 as ws,a1 as Cs,a2 as Mt,a3 as js}from"./CollectionCarousel-CiQjTUxK.js";import{f as ks,h as Ss,e as $s,n as Ms,i as Ts,A as Is}from"./authorizations-CJLGounG.js";import{g as Ps,h as Be,p as As}from"./buy-DymchWn5.js";import{b as Es,w as qs,S as Tt,G as zs}from"./buy-gasless-_tY7hzCY.js";import{u as Rs,M as _s,R as we,r as Bs,c as Fs,p as It,a as Fe}from"./useCreditPacks-DnU6Nk_-.js";import{i as Ws,a as Ls}from"./errors-CqEjLz14.js";import{E as Ks}from"./ErrorNotice-BW8aXw_7.js";import"./dcl-schemas-BBgGLe8k.js";import"./sentry-CJqFbG11.js";import"./ethers-BKRWnjV9.js";import"./intl-AKLEHPeO.js";import"./sendMetaTransaction-BO1lGCgN.js";(function(){try{var i=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},u=new i.Error().stack;u&&(i._sentryDebugIds=i._sentryDebugIds||{},i._sentryDebugIds[u]="db4dea1f-3770-47fb-bb3f-e8e7926d9413",i._sentryDebugIdIdentifier="sentry-dbid-db4dea1f-3770-47fb-bb3f-e8e7926d9413")}catch{}})();const{colors:se,radius:Ns}=de,Qs=r.div`
|
|
2
|
-
display: flex;
|
|
3
|
-
align-items: center;
|
|
4
|
-
justify-content: center;
|
|
5
|
-
gap: 8px;
|
|
6
|
-
width: 100%;
|
|
7
|
-
`,Us=r.span`
|
|
8
|
-
font-size: 16px;
|
|
9
|
-
line-height: 22px;
|
|
10
|
-
color: ${se.text2};
|
|
11
|
-
text-transform: capitalize;
|
|
12
|
-
white-space: nowrap;
|
|
13
|
-
`,Gs=r.div`
|
|
14
|
-
display: flex;
|
|
15
|
-
flex-direction: column;
|
|
16
|
-
gap: 12px;
|
|
17
|
-
/* The list is the modal's elastic region: inside a viewport-capped card it gives up height first, so
|
|
18
|
-
the pack picker, total and Cancel/Buy below it stay on screen without scrolling. The floor is an
|
|
19
|
-
explicit ~one row because a scroll container's automatic minimum size is zero — it would otherwise
|
|
20
|
-
collapse to nothing on a short screen. */
|
|
21
|
-
min-height: 120px;
|
|
22
|
-
max-height: 360px;
|
|
23
|
-
overflow-y: auto;
|
|
24
|
-
width: 100%;
|
|
25
|
-
scrollbar-width: thin;
|
|
26
|
-
scrollbar-color: #a2a2a2 ${se.media};
|
|
27
|
-
|
|
28
|
-
&::-webkit-scrollbar {
|
|
29
|
-
width: 8px;
|
|
30
|
-
}
|
|
31
|
-
&::-webkit-scrollbar-track {
|
|
32
|
-
background: ${se.media};
|
|
33
|
-
border-radius: 10px;
|
|
34
|
-
}
|
|
35
|
-
&::-webkit-scrollbar-thumb {
|
|
36
|
-
background: #a2a2a2;
|
|
37
|
-
border-radius: ${Ns.btn};
|
|
38
|
-
}
|
|
39
|
-
`,Hs=r.span`
|
|
40
|
-
margin-left: 8px;
|
|
41
|
-
font-size: 13px;
|
|
42
|
-
font-weight: 600;
|
|
43
|
-
color: ${se.muted};
|
|
44
|
-
`,Os=r.div`
|
|
45
|
-
display: flex;
|
|
46
|
-
align-items: center;
|
|
47
|
-
justify-content: space-between;
|
|
48
|
-
gap: 12px;
|
|
49
|
-
padding: 0 0 12px;
|
|
50
|
-
font-size: 14px;
|
|
51
|
-
color: ${se.muted};
|
|
52
|
-
|
|
53
|
-
& strong {
|
|
54
|
-
display: inline-flex;
|
|
55
|
-
align-items: center;
|
|
56
|
-
gap: 6px;
|
|
57
|
-
font-size: 20px;
|
|
58
|
-
font-weight: 700;
|
|
59
|
-
color: ${se.text};
|
|
60
|
-
}
|
|
61
|
-
`,Ds=r.p`
|
|
62
|
-
margin: 12px 0 0;
|
|
63
|
-
background: rgba(255, 162, 90, 0.3);
|
|
64
|
-
border-radius: ${de.radius.btn};
|
|
65
|
-
padding: 12px 16px;
|
|
66
|
-
font-family: ${de.font.sans};
|
|
67
|
-
font-size: 14px;
|
|
68
|
-
line-height: 1.334;
|
|
69
|
-
color: ${de.colors.text2};
|
|
70
|
-
`;function Vs(i){const{phase:u,balanceCredits:P,onClose:E}=i,W=u==="processing",J=u==="error"?a("cartCheckout.errorTitle"):u==="nofunds"?a("cartCheckout.titleNoFunds"):u==="choose"?a("buyModal.choosePayment"):a("cartCheckout.titleBuy"),X=u==="processing";return e.jsxs(Aa,{role:"dialog","aria-modal":"true","aria-label":a("cartCheckout.dialogAria"),children:[e.jsx(Ea,{onClick:W?void 0:E,"aria-hidden":!0}),e.jsxs(qa,{"data-tall":X||void 0,children:[e.jsxs(za,{children:[e.jsxs(Ra,{children:[e.jsx(_a,{children:J}),!W&&e.jsx(Ba,{onClick:E,"aria-label":a("buyModal.close"),children:e.jsx(Fa,{})})]}),e.jsxs(Wa,{children:[e.jsx(La,{children:u==="nofunds"?a("buyModal.dclBalance"):a("buyModal.myCreditsBalance")}),e.jsx(Ct,{}),e.jsx(Ka,{children:ue(P)})]}),i.heldCreditsCount&&(u==="choose"||u==="nofunds")?e.jsx(Ds,{"data-testid":"cart-held-notice",children:a("buyModal.heldExplainer",{credits:i.heldCreditsCount,currency:ke.name})}):null]}),u==="choose"&&e.jsxs(Se,{children:[e.jsxs(Os,{children:[e.jsx("span",{children:a("cart.purchaseSummary")}),e.jsxs("strong",{children:[e.jsx(Ct,{}),ue(i.totalCredits??0)]})]}),e.jsx(_t,{options:i.options??[],totalCents:i.totalCents??0,shortfall:i.shortfall,onPay:i.onPay??(()=>{})})]}),u==="processing"&&e.jsx(Js,{stage:i.stage??"reserving",step:i.step??1,total:i.total??1,isSelfCustody:!!i.isSelfCustody,signatures:i.signatures}),u==="nofunds"&&e.jsx(Xs,{lines:i.lines??[],shortfallCredits:i.shortfallCredits??0,packs:i.packs??[],selectedPack:i.selectedPack??"",onSelectPack:i.onSelectPack??(()=>{}),onBuyPacks:i.onBuyPacks??(()=>{}),onCancel:E}),u==="error"&&e.jsxs(Se,{children:[e.jsxs(Na,{"data-testid":"buy-error",children:[e.jsx(Qa,{src:Ua,alt:"",width:64,height:80}),e.jsxs(Ga,{children:[e.jsx("b",{children:a("cartCheckout.errorHeadline")})," ",i.heldCredits?e.jsxs(e.Fragment,{children:[i.message?e.jsxs(e.Fragment,{children:[i.message," "]}):null,a("cartCheckout.heldLead",{currency:ke.name}),e.jsx("b",{children:a("cartCheckout.heldBold")}),a("cartCheckout.heldTail",{currency:ke.name})]}):i.message??a("cartCheckout.errorBody")]})]}),i.heldCredits?e.jsx(Ke,{children:e.jsx(he,{"data-variant":"purple","data-full":!0,onClick:E,children:a("cartCheckout.gotIt")})}):e.jsxs(Ke,{children:[e.jsx(he,{"data-variant":"outline",onClick:E,children:a("buyModal.cancel")}),e.jsx(he,{"data-variant":"purple",onClick:i.onRetry??E,children:a("cartCheckout.tryAgain")})]})]})]})]})}function Js({stage:i,step:u,total:P,isSelfCustody:E,signatures:W}){const J=i==="reserving",X=P>0?Math.min(100,Math.round(u/P*100)):0,K=E&&W&&W.total>1,ie=i==="awaiting-signature"?E?K?a("cartCheckout.confirmMultiple",{current:W.current,total:W.total}):a("buyModal.confirmToContinue"):a("buyModal.completingTransaction"):i==="settling"?a("buyModal.completingTransaction"):a("cartCheckout.preparing");return e.jsxs(Se,{"data-processing":!0,children:[e.jsx(Ha,{src:la,alt:"",width:61,height:61}),e.jsx(Oa,{children:ie}),J?e.jsxs(Qs,{children:[e.jsx(jt,{"aria-hidden":!0,children:e.jsx(kt,{"data-step":!0,style:{width:`${X}%`}})}),P>1?e.jsxs(Us,{children:[u,"/",P]}):null]}):e.jsx(jt,{"aria-hidden":!0,children:e.jsx(kt,{})})]})}function Xs({lines:i,shortfallCredits:u,packs:P,selectedPack:E,onSelectPack:W,onBuyPacks:J,onCancel:X}){const K=P.find(n=>n.id===E),ie=i.reduce((n,N)=>n+(N.quantity??1),0);return e.jsxs(Se,{children:[e.jsxs(Da,{"data-testid":"nofunds-warning",children:[e.jsx(Va,{}),e.jsxs(Ja,{children:[e.jsx("b",{children:a("buyModal.insufficientFunds")})," ",a("buyModal.warningNeedToBuy")," ",e.jsx("b",{children:a("buyModal.warningCreditsAmount",{count:Math.max(0,u)})})," ",a("buyModal.warningToPurchase",{count:ie}),qe()?null:e.jsxs(e.Fragment,{children:[e.jsx("br",{}),e.jsx(Xa,{href:da("/credits"),target:"_blank",rel:"noopener noreferrer",children:a("buyModal.warningLearnMore")})]})]})]}),e.jsx(Gs,{children:i.map(n=>{const N=n.quantity??1;return e.jsxs(Ya,{children:[e.jsx(Za,{children:n.item.thumbnail?e.jsx("img",{src:n.item.thumbnail,alt:""}):null}),e.jsxs(es,{children:[e.jsxs("div",{children:[e.jsxs(ts,{title:n.item.name,children:[n.item.name||a("buyModal.itemFallback"),N>1?e.jsx(Hs,{children:a("cartCheckout.qty",{count:N})}):null]}),n.item.creator?e.jsx(as,{address:n.item.creator}):null]}),e.jsxs(ss,{children:[e.jsx(ns,{}),e.jsx("span",{children:ue(n.priceCredits*N)})]})]})]},n.item.id)})}),qe()?null:e.jsxs(e.Fragment,{children:[e.jsx(is,{children:P.map(n=>{const N=n.id===E;return e.jsxs(rs,{"data-testid":"credit-pack","data-on":N||void 0,onClick:()=>W(n.id),children:[e.jsx(os,{src:cs,alt:""}),e.jsx(ls,{children:ue(n.credits)}),e.jsxs(ds,{children:["($",n.usd.toFixed(2),")"]})]},n.id)})}),e.jsxs(us,{children:[e.jsxs(hs,{children:[e.jsx(ps,{}),e.jsx("span",{children:ue((K==null?void 0:K.credits)??0)})]}),e.jsxs(gs,{children:["$",((K==null?void 0:K.usd)??0).toFixed(2)]})]})]}),e.jsxs(Ke,{children:[e.jsx(he,{"data-variant":"outline",onClick:X,children:a("buyModal.cancel")}),qe()?null:e.jsx(he,{"data-variant":"gradient",onClick:J,children:a("buyModal.buy")})]})]})}const{colors:l,gradients:Ys,radius:ne}=de,Bt="@media (max-width: 1080px)",A="@media (max-width: 880px)",Pt=r.div`
|
|
71
|
-
max-width: 1510px;
|
|
72
|
-
margin: 0 auto;
|
|
73
|
-
/* Grows into the page's leftover height and passes it down to Upsell, so the white cross-sell band ends at
|
|
74
|
-
the footer rather than leaving a gray strip. Needs .page[data-route="/cart"] to be a flex column. */
|
|
75
|
-
width: 100%;
|
|
76
|
-
flex: 1 0 auto;
|
|
77
|
-
display: flex;
|
|
78
|
-
flex-direction: column;
|
|
79
|
-
|
|
80
|
-
${A} {
|
|
81
|
-
padding-bottom: 188px; /* room for the fixed summary bar */
|
|
82
|
-
}
|
|
83
|
-
`,At=r.button`
|
|
84
|
-
display: inline-flex;
|
|
85
|
-
align-items: center;
|
|
86
|
-
gap: 6px;
|
|
87
|
-
margin: 0 0 16px;
|
|
88
|
-
padding: 0;
|
|
89
|
-
border: 0;
|
|
90
|
-
background: none;
|
|
91
|
-
color: ${l.text2};
|
|
92
|
-
font-size: 14px;
|
|
93
|
-
font-weight: 600;
|
|
94
|
-
letter-spacing: 0.02em;
|
|
95
|
-
text-transform: uppercase;
|
|
96
|
-
cursor: pointer;
|
|
97
|
-
transition: color 0.15s ease;
|
|
98
|
-
|
|
99
|
-
&:hover {
|
|
100
|
-
color: ${l.accent};
|
|
101
|
-
}
|
|
102
|
-
& .ico {
|
|
103
|
-
width: 18px;
|
|
104
|
-
height: 18px;
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
${A} {
|
|
108
|
-
display: none;
|
|
109
|
-
}
|
|
110
|
-
`,Zs=r.div`
|
|
111
|
-
display: grid;
|
|
112
|
-
grid-template-columns: minmax(0, 1fr) 615px;
|
|
113
|
-
gap: 24px;
|
|
114
|
-
align-items: start;
|
|
115
|
-
|
|
116
|
-
${Bt} {
|
|
117
|
-
grid-template-columns: 1fr;
|
|
118
|
-
}
|
|
119
|
-
`,Et=r.div`
|
|
120
|
-
position: relative;
|
|
121
|
-
/* The gray band is 733px in Figma (1553-317103) — taller than the panels inside it, deliberately. Without
|
|
122
|
-
this it collapsed to the panels' height, and the page shell's own viewport-filling min-height then padded
|
|
123
|
-
the page out BELOW the cross-sell, so a strip of gray showed under "You might also like" instead of the
|
|
124
|
-
footer. Giving the band its designed height puts the leftover space where the design wants it. */
|
|
125
|
-
min-height: 733px;
|
|
126
|
-
/* Gray below the panels so the band never hugs the last card: Figma's band runs y152–950 with the
|
|
127
|
-
content ending at 854. The min-height above only covers a SHORT cart — once the list outgrows it
|
|
128
|
-
the band tracks the content, and without this padding it would butt straight into the purple. */
|
|
129
|
-
padding-bottom: 96px;
|
|
130
|
-
|
|
131
|
-
&::before {
|
|
132
|
-
content: '';
|
|
133
|
-
position: absolute;
|
|
134
|
-
top: -28px;
|
|
135
|
-
bottom: 0;
|
|
136
|
-
left: 50%;
|
|
137
|
-
width: 100vw;
|
|
138
|
-
transform: translateX(-50%);
|
|
139
|
-
background: ${l.media};
|
|
140
|
-
z-index: 0;
|
|
141
|
-
}
|
|
142
|
-
& > * {
|
|
143
|
-
position: relative;
|
|
144
|
-
z-index: 1;
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
${A} {
|
|
148
|
-
/* The single-column layout is already taller than the desktop band, and the fixed summary bar sits over
|
|
149
|
-
the bottom of it — a floor here would only add empty gray. */
|
|
150
|
-
min-height: 0;
|
|
151
|
-
|
|
152
|
-
/* The fixed summary bar already reserves room at the bottom on mobile (see Checkout). */
|
|
153
|
-
padding-bottom: 32px;
|
|
154
|
-
|
|
155
|
-
&::before {
|
|
156
|
-
top: -16px; /* .page's mobile padding */
|
|
157
|
-
}
|
|
158
|
-
}
|
|
159
|
-
`,en=r.div`
|
|
160
|
-
min-width: 0;
|
|
161
|
-
display: flex;
|
|
162
|
-
flex-direction: column;
|
|
163
|
-
gap: 12px;
|
|
164
|
-
`,tn=r.div`
|
|
165
|
-
display: flex;
|
|
166
|
-
align-items: center;
|
|
167
|
-
justify-content: space-between;
|
|
168
|
-
gap: 12px;
|
|
169
|
-
background: ${l.white};
|
|
170
|
-
border-radius: 16px;
|
|
171
|
-
padding: 12px 12px 12px 24px;
|
|
172
|
-
|
|
173
|
-
${A} {
|
|
174
|
-
gap: 8px;
|
|
175
|
-
padding: 8px 16px;
|
|
176
|
-
}
|
|
177
|
-
`,an=r.section`
|
|
178
|
-
min-width: 0;
|
|
179
|
-
background: ${l.white};
|
|
180
|
-
border-radius: 16px;
|
|
181
|
-
padding: 24px;
|
|
182
|
-
|
|
183
|
-
${A} {
|
|
184
|
-
padding: 16px;
|
|
185
|
-
}
|
|
186
|
-
`,sn=r.div`
|
|
187
|
-
display: flex;
|
|
188
|
-
flex-direction: column;
|
|
189
|
-
align-items: center;
|
|
190
|
-
`,nn=r.button`
|
|
191
|
-
display: none;
|
|
192
|
-
|
|
193
|
-
${A} {
|
|
194
|
-
display: inline-flex;
|
|
195
|
-
align-items: center;
|
|
196
|
-
flex-shrink: 0;
|
|
197
|
-
border: 0;
|
|
198
|
-
background: none;
|
|
199
|
-
padding: 0;
|
|
200
|
-
color: ${l.text};
|
|
201
|
-
cursor: pointer;
|
|
202
|
-
|
|
203
|
-
& .ico {
|
|
204
|
-
width: 20px;
|
|
205
|
-
height: 20px;
|
|
206
|
-
}
|
|
207
|
-
}
|
|
208
|
-
`,rn=r.h1`
|
|
209
|
-
margin: 0;
|
|
210
|
-
font-size: 14px;
|
|
211
|
-
font-weight: 600;
|
|
212
|
-
line-height: 1.57;
|
|
213
|
-
color: ${l.text};
|
|
214
|
-
|
|
215
|
-
${A} {
|
|
216
|
-
flex: 1;
|
|
217
|
-
min-width: 0;
|
|
218
|
-
font-size: 16px;
|
|
219
|
-
}
|
|
220
|
-
`,on=r.button`
|
|
221
|
-
display: inline-flex;
|
|
222
|
-
align-items: center;
|
|
223
|
-
justify-content: center;
|
|
224
|
-
gap: 8px;
|
|
225
|
-
height: 40px;
|
|
226
|
-
padding: 0 12px;
|
|
227
|
-
border: 2px solid ${l.text2};
|
|
228
|
-
border-radius: ${ne.btn};
|
|
229
|
-
background: none;
|
|
230
|
-
color: ${l.text2};
|
|
231
|
-
font-size: 13px;
|
|
232
|
-
font-weight: 600;
|
|
233
|
-
line-height: 24px;
|
|
234
|
-
letter-spacing: 0.46px;
|
|
235
|
-
text-transform: uppercase;
|
|
236
|
-
white-space: nowrap;
|
|
237
|
-
cursor: pointer;
|
|
238
|
-
transition:
|
|
239
|
-
background 0.15s ease,
|
|
240
|
-
filter 0.15s ease;
|
|
241
|
-
|
|
242
|
-
/* Mixed from currentColor so the wash cannot drift from the border colour. */
|
|
243
|
-
&:hover:not(:disabled) {
|
|
244
|
-
background: color-mix(in srgb, currentColor 6%, transparent);
|
|
245
|
-
}
|
|
246
|
-
&:active:not(:disabled) {
|
|
247
|
-
filter: brightness(0.97);
|
|
248
|
-
}
|
|
249
|
-
&:disabled {
|
|
250
|
-
opacity: 0.55;
|
|
251
|
-
cursor: default;
|
|
252
|
-
}
|
|
253
|
-
|
|
254
|
-
/* Mobile keeps the full 40px button and thins the outline to 1px (1182:236892) rather than shrinking
|
|
255
|
-
the type, which had it reading smaller than the row title beside it. */
|
|
256
|
-
${A} {
|
|
257
|
-
border-width: 1px;
|
|
258
|
-
border-color: ${l.text};
|
|
259
|
-
color: ${l.text};
|
|
260
|
-
}
|
|
261
|
-
`,cn=r.div`
|
|
262
|
-
display: flex;
|
|
263
|
-
flex-direction: column;
|
|
264
|
-
gap: 24px;
|
|
265
|
-
`,ln=r.div`
|
|
266
|
-
position: relative;
|
|
267
|
-
display: flex;
|
|
268
|
-
align-items: stretch;
|
|
269
|
-
gap: 12px;
|
|
270
|
-
background: ${l.white};
|
|
271
|
-
border: 1px solid ${l.gray4};
|
|
272
|
-
border-radius: ${ne.card};
|
|
273
|
-
overflow: hidden;
|
|
274
|
-
|
|
275
|
-
&[data-unavailable] [data-thumb] {
|
|
276
|
-
opacity: 0.5;
|
|
277
|
-
}
|
|
278
|
-
&[data-unavailable] [data-check] {
|
|
279
|
-
display: none;
|
|
280
|
-
}
|
|
281
|
-
&[data-unavailable] [data-desc] {
|
|
282
|
-
opacity: 0.7;
|
|
283
|
-
}
|
|
284
|
-
`,dn=r.div`
|
|
285
|
-
position: relative;
|
|
286
|
-
flex-shrink: 0;
|
|
287
|
-
width: 137.5px;
|
|
288
|
-
height: 137px;
|
|
289
|
-
background: ${l.media};
|
|
290
|
-
border-radius: ${ne.card};
|
|
291
|
-
display: grid;
|
|
292
|
-
place-items: center;
|
|
293
|
-
overflow: hidden;
|
|
294
|
-
|
|
295
|
-
& img {
|
|
296
|
-
width: 83%;
|
|
297
|
-
height: 83%;
|
|
298
|
-
object-fit: contain;
|
|
299
|
-
filter: drop-shadow(0.56px 2.25px 2.8px rgba(0, 0, 0, 0.1));
|
|
300
|
-
}
|
|
301
|
-
|
|
302
|
-
${A} {
|
|
303
|
-
width: 120px;
|
|
304
|
-
height: 120px;
|
|
305
|
-
}
|
|
306
|
-
`,un=r(zt)`
|
|
307
|
-
position: absolute;
|
|
308
|
-
inset: 0;
|
|
309
|
-
display: grid;
|
|
310
|
-
place-items: center;
|
|
311
|
-
`,hn=r.span`
|
|
312
|
-
position: absolute;
|
|
313
|
-
top: 7.5px;
|
|
314
|
-
left: 7.5px;
|
|
315
|
-
width: 20px;
|
|
316
|
-
height: 20px;
|
|
317
|
-
border-radius: 50%;
|
|
318
|
-
background: #34ce77;
|
|
319
|
-
display: grid;
|
|
320
|
-
place-items: center;
|
|
321
|
-
`,pn=r.div`
|
|
322
|
-
flex: 1;
|
|
323
|
-
min-width: 0;
|
|
324
|
-
display: flex;
|
|
325
|
-
flex-direction: column;
|
|
326
|
-
justify-content: space-between;
|
|
327
|
-
gap: 8px;
|
|
328
|
-
padding: 16px 8px;
|
|
329
|
-
|
|
330
|
-
${A} {
|
|
331
|
-
padding: 12px 4px 12px 0;
|
|
332
|
-
}
|
|
333
|
-
`,gn=r.div`
|
|
334
|
-
display: flex;
|
|
335
|
-
flex-direction: column;
|
|
336
|
-
gap: 4px;
|
|
337
|
-
min-width: 0;
|
|
338
|
-
padding-right: 64px; /* clear the top-right favourite + remove group */
|
|
339
|
-
`,Ft=Ne`
|
|
340
|
-
display: block;
|
|
341
|
-
font-size: 16px;
|
|
342
|
-
font-weight: 600;
|
|
343
|
-
line-height: 1.2;
|
|
344
|
-
color: ${l.text};
|
|
345
|
-
text-decoration: none;
|
|
346
|
-
overflow: hidden;
|
|
347
|
-
text-overflow: ellipsis;
|
|
348
|
-
white-space: nowrap;
|
|
349
|
-
|
|
350
|
-
a&:hover {
|
|
351
|
-
color: ${l.accent};
|
|
352
|
-
}
|
|
353
|
-
|
|
354
|
-
${A} {
|
|
355
|
-
white-space: normal;
|
|
356
|
-
display: -webkit-box;
|
|
357
|
-
-webkit-line-clamp: 2;
|
|
358
|
-
line-clamp: 2;
|
|
359
|
-
-webkit-box-orient: vertical;
|
|
360
|
-
}
|
|
361
|
-
`,mn=r.div`
|
|
362
|
-
${Ft};
|
|
363
|
-
`,fn=r(zt)`
|
|
364
|
-
${Ft};
|
|
365
|
-
`,xn=r(ua)`
|
|
366
|
-
font-size: 10px;
|
|
367
|
-
line-height: 1.43;
|
|
368
|
-
color: ${l.muted};
|
|
369
|
-
|
|
370
|
-
& [data-avatar] {
|
|
371
|
-
display: none;
|
|
372
|
-
}
|
|
373
|
-
& [data-testid='creator-name'] {
|
|
374
|
-
font-size: 10px;
|
|
375
|
-
line-height: 1.43;
|
|
376
|
-
}
|
|
377
|
-
`,yn=r.div`
|
|
378
|
-
display: flex;
|
|
379
|
-
align-items: center;
|
|
380
|
-
justify-content: space-between;
|
|
381
|
-
gap: 12px;
|
|
382
|
-
padding-right: 8px;
|
|
383
|
-
`,bn=r.div`
|
|
384
|
-
display: inline-flex;
|
|
385
|
-
align-items: center;
|
|
386
|
-
gap: 8px;
|
|
387
|
-
padding: 6px;
|
|
388
|
-
border: 0.5px solid ${l.muted2};
|
|
389
|
-
border-radius: ${ne.pill};
|
|
390
|
-
`,qt=r.button`
|
|
391
|
-
display: grid;
|
|
392
|
-
place-items: center;
|
|
393
|
-
width: 16px;
|
|
394
|
-
height: 16px;
|
|
395
|
-
padding: 0;
|
|
396
|
-
border: 0;
|
|
397
|
-
background: none;
|
|
398
|
-
color: ${l.text};
|
|
399
|
-
cursor: pointer;
|
|
400
|
-
|
|
401
|
-
&:disabled {
|
|
402
|
-
color: ${l.muted2};
|
|
403
|
-
cursor: default;
|
|
404
|
-
}
|
|
405
|
-
`,vn=r.span`
|
|
406
|
-
min-width: 12px;
|
|
407
|
-
font-size: 14px;
|
|
408
|
-
font-weight: 500;
|
|
409
|
-
line-height: 1.2;
|
|
410
|
-
color: ${l.text};
|
|
411
|
-
text-align: center;
|
|
412
|
-
`,wn=r.div`
|
|
413
|
-
display: inline-flex;
|
|
414
|
-
align-items: center;
|
|
415
|
-
gap: 4px;
|
|
416
|
-
/* Always right-aligned: with a stepper present space-between handles it; for secondary/unique lines
|
|
417
|
-
(no stepper) the auto margin keeps the lone price on the right instead of falling to the left. */
|
|
418
|
-
margin-left: auto;
|
|
419
|
-
font-size: 24px;
|
|
420
|
-
font-weight: 600;
|
|
421
|
-
color: ${l.text2};
|
|
422
|
-
|
|
423
|
-
${A} {
|
|
424
|
-
font-size: 20px;
|
|
425
|
-
}
|
|
426
|
-
`,Cn=r(Rt)`
|
|
427
|
-
width: 24px;
|
|
428
|
-
height: 24px;
|
|
429
|
-
background: ${l.text};
|
|
430
|
-
|
|
431
|
-
${A} {
|
|
432
|
-
width: 20px;
|
|
433
|
-
height: 20px;
|
|
434
|
-
}
|
|
435
|
-
`,jn=r.span`
|
|
436
|
-
margin-left: 6px;
|
|
437
|
-
font-size: 14px;
|
|
438
|
-
font-weight: 500;
|
|
439
|
-
color: ${l.muted};
|
|
440
|
-
text-decoration: line-through;
|
|
441
|
-
`,kn=r.div`
|
|
442
|
-
position: absolute;
|
|
443
|
-
top: 9px;
|
|
444
|
-
right: 7px;
|
|
445
|
-
display: flex;
|
|
446
|
-
align-items: flex-start;
|
|
447
|
-
gap: 12px;
|
|
448
|
-
`,Sn=r.span`
|
|
449
|
-
display: inline-flex;
|
|
450
|
-
align-items: center;
|
|
451
|
-
gap: 4px;
|
|
452
|
-
font-size: 12px;
|
|
453
|
-
font-weight: 600;
|
|
454
|
-
line-height: 1;
|
|
455
|
-
text-transform: uppercase;
|
|
456
|
-
color: ${l.text2};
|
|
457
|
-
`,$n=r(V)`
|
|
458
|
-
color: #f48221;
|
|
459
|
-
`,Mn=r.span`
|
|
460
|
-
align-self: flex-start;
|
|
461
|
-
display: inline-flex;
|
|
462
|
-
align-items: center;
|
|
463
|
-
gap: 4px;
|
|
464
|
-
padding: 2px 4px;
|
|
465
|
-
border-radius: ${ne.chip};
|
|
466
|
-
background: #f4e9ff;
|
|
467
|
-
font-size: 10px;
|
|
468
|
-
font-weight: 400;
|
|
469
|
-
line-height: 14px;
|
|
470
|
-
color: ${l.text};
|
|
471
|
-
`,Tn=r(V)`
|
|
472
|
-
width: 11.31px;
|
|
473
|
-
height: 10.94px;
|
|
474
|
-
background: ${l.text};
|
|
475
|
-
`,Wt=Ne`
|
|
476
|
-
display: grid;
|
|
477
|
-
place-items: center;
|
|
478
|
-
width: 24px;
|
|
479
|
-
height: 24px;
|
|
480
|
-
padding: 0;
|
|
481
|
-
border: 0;
|
|
482
|
-
background: none;
|
|
483
|
-
color: ${l.muted};
|
|
484
|
-
cursor: pointer;
|
|
485
|
-
transition: color 0.12s ease;
|
|
486
|
-
|
|
487
|
-
&:disabled {
|
|
488
|
-
opacity: 0.5;
|
|
489
|
-
cursor: default;
|
|
490
|
-
}
|
|
491
|
-
`,In=r.button`
|
|
492
|
-
${Wt};
|
|
493
|
-
|
|
494
|
-
&:hover:not(:disabled) {
|
|
495
|
-
color: ${l.text};
|
|
496
|
-
}
|
|
497
|
-
&[data-on] {
|
|
498
|
-
color: ${l.dclRed};
|
|
499
|
-
}
|
|
500
|
-
`,Pn=r.button`
|
|
501
|
-
${Wt};
|
|
502
|
-
|
|
503
|
-
&:hover:not(:disabled) {
|
|
504
|
-
color: ${l.dclRed};
|
|
505
|
-
}
|
|
506
|
-
`,An=r.div`
|
|
507
|
-
display: flex;
|
|
508
|
-
gap: 20px;
|
|
509
|
-
margin-top: 16px;
|
|
510
|
-
|
|
511
|
-
& .link {
|
|
512
|
-
font-size: 13px;
|
|
513
|
-
color: ${l.muted};
|
|
514
|
-
font-weight: 600;
|
|
515
|
-
}
|
|
516
|
-
& .link:hover:not(:disabled) {
|
|
517
|
-
color: ${l.text};
|
|
518
|
-
}
|
|
519
|
-
`,En=r.aside`
|
|
520
|
-
position: sticky;
|
|
521
|
-
top: 172px;
|
|
522
|
-
display: flex;
|
|
523
|
-
flex-direction: column;
|
|
524
|
-
background: ${l.white};
|
|
525
|
-
box-shadow: 0 1px 3px rgba(22, 21, 24, 0.06);
|
|
526
|
-
border-radius: 16px;
|
|
527
|
-
padding: 16px;
|
|
528
|
-
|
|
529
|
-
${Bt} {
|
|
530
|
-
position: static;
|
|
531
|
-
}
|
|
532
|
-
${A} {
|
|
533
|
-
position: fixed;
|
|
534
|
-
left: 0;
|
|
535
|
-
right: 0;
|
|
536
|
-
top: auto;
|
|
537
|
-
bottom: 0;
|
|
538
|
-
z-index: 30;
|
|
539
|
-
border: 0;
|
|
540
|
-
/* Square and hard-edged against the page (1182:236910): it is a bar docked to the bottom, not a sheet
|
|
541
|
-
lifted off it. */
|
|
542
|
-
border-radius: 0;
|
|
543
|
-
box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.25);
|
|
544
|
-
}
|
|
545
|
-
`,qn=r.h2`
|
|
546
|
-
margin: 0 0 24px;
|
|
547
|
-
padding-bottom: 16px;
|
|
548
|
-
border-bottom: 1px solid ${l.gray4};
|
|
549
|
-
font-size: 24px;
|
|
550
|
-
font-weight: 600;
|
|
551
|
-
color: ${l.text};
|
|
552
|
-
|
|
553
|
-
${A} {
|
|
554
|
-
margin-bottom: 12px;
|
|
555
|
-
padding-bottom: 8px;
|
|
556
|
-
font-size: 16px;
|
|
557
|
-
line-height: 1.6;
|
|
558
|
-
}
|
|
559
|
-
`,zn=r.div`
|
|
560
|
-
display: flex;
|
|
561
|
-
flex-direction: column;
|
|
562
|
-
gap: 12px;
|
|
563
|
-
`,Rn=r.div`
|
|
564
|
-
display: flex;
|
|
565
|
-
align-items: flex-start;
|
|
566
|
-
justify-content: space-between;
|
|
567
|
-
gap: 12px;
|
|
568
|
-
`,_n=r.span`
|
|
569
|
-
font-size: 14px;
|
|
570
|
-
font-weight: 600;
|
|
571
|
-
line-height: 1.57;
|
|
572
|
-
color: ${l.muted1};
|
|
573
|
-
`,Bn=r.span`
|
|
574
|
-
display: inline-flex;
|
|
575
|
-
align-items: center;
|
|
576
|
-
gap: 8px;
|
|
577
|
-
font-size: 24px;
|
|
578
|
-
font-weight: 700;
|
|
579
|
-
color: ${l.text};
|
|
580
|
-
`,Fn=r.span`
|
|
581
|
-
display: flex;
|
|
582
|
-
flex-direction: column;
|
|
583
|
-
align-items: flex-end;
|
|
584
|
-
justify-content: center;
|
|
585
|
-
gap: 4px;
|
|
586
|
-
`;r.span`
|
|
587
|
-
font-size: 12px;
|
|
588
|
-
font-weight: 400;
|
|
589
|
-
line-height: 1;
|
|
590
|
-
color: ${l.muted};
|
|
591
|
-
`;const Wn=r(Rt)`
|
|
592
|
-
width: 30px;
|
|
593
|
-
height: 30px;
|
|
594
|
-
background: ${l.text};
|
|
595
|
-
-webkit-mask-size: 24px 24px;
|
|
596
|
-
mask-size: 24px 24px;
|
|
597
|
-
-webkit-mask-position: left center;
|
|
598
|
-
mask-position: left center;
|
|
599
|
-
`;r.button`
|
|
600
|
-
width: 100%;
|
|
601
|
-
height: 56px;
|
|
602
|
-
border: 0;
|
|
603
|
-
border-radius: ${ne.btn};
|
|
604
|
-
background: ${Ys.buyBtn};
|
|
605
|
-
color: ${l.softWhite};
|
|
606
|
-
font-size: 15px;
|
|
607
|
-
font-weight: 600;
|
|
608
|
-
letter-spacing: 0.046em;
|
|
609
|
-
text-transform: uppercase;
|
|
610
|
-
cursor: pointer;
|
|
611
|
-
transition: background-image 0.15s ease;
|
|
612
|
-
|
|
613
|
-
/* Primary hover/pressed is the solid Primary red (Figma 738:53252 / 738:53262) — the gradient is
|
|
614
|
-
the RESTING fill only. Painted as a flat GRADIENT, not a background-color: the shorthand can't
|
|
615
|
-
interpolate background-image, so gradient -> colour dropped the image midway while the colour was
|
|
616
|
-
still half transparent and the button visibly blinked. Same property both ends = a clean swap. */
|
|
617
|
-
&:hover:not(:disabled),
|
|
618
|
-
&:active:not(:disabled) {
|
|
619
|
-
background-image: linear-gradient(${l.dclRed}, ${l.dclRed});
|
|
620
|
-
}
|
|
621
|
-
&:disabled {
|
|
622
|
-
opacity: 0.6;
|
|
623
|
-
cursor: default;
|
|
624
|
-
}
|
|
625
|
-
`;const Lt=Ne`
|
|
626
|
-
margin: 0;
|
|
627
|
-
font-size: 13px;
|
|
628
|
-
`,Ce=r.p`
|
|
629
|
-
${Lt};
|
|
630
|
-
`,Ln=r(Ks)`
|
|
631
|
-
${Lt};
|
|
632
|
-
`,Kn=r.div`
|
|
633
|
-
position: relative;
|
|
634
|
-
flex: 1 0 auto;
|
|
635
|
-
margin-top: 48px;
|
|
636
|
-
/* Below the gray band the cross-sell sits straight on the purple field (Figma) — hence no band of its
|
|
637
|
-
own. The padding is the whole gap from the top of the section to the heading; the shared carousel's
|
|
638
|
-
own top margin is zeroed below so the two don't stack. */
|
|
639
|
-
padding: 47px 0 24px;
|
|
640
|
-
|
|
641
|
-
& section {
|
|
642
|
-
margin-top: 0;
|
|
643
|
-
}
|
|
644
|
-
`;function We(i){if(Ws(i))return a("errors.rejected");const u=(i.message??"").toLowerCase();return u.includes("insufficient")?a("cart.error.insufficient",{currency:ke.name}):u.includes("no active listing")||u.includes("your own listing")?a("cart.error.listingChanged"):a("marketCheckout.error.generic")}const Nn=12e4;function Qn(i){const u=[];return i.unavailable.length&&u.push(a("cart.drop.unavailable",{count:i.unavailable.length})),i.own.length&&u.push(a("cart.drop.own",{count:i.own.length})),a("cart.drop.removed",{items:u.join(` ${a("cart.drop.and")} `)})}const Le=i=>i.reduce((u,P)=>u+P.priceCredits*P.quantity,0),je=i=>i.flatMap(u=>Array.from({length:u.quantity},()=>({...u,quantity:1})));function ni(){var ht;ha({title:a("nav.cart"),noindex:!0});const i=H(t=>t.items),u=H(t=>t.remove),P=H(t=>t.increment),E=H(t=>t.decrement),W=H(t=>t.clear),J=H(t=>t.restore),X=H(t=>t.setFittingOpen),K=pt(t=>t.items),ie=pt(t=>t.toggle),{session:n,signIn:N}=pa(),Kt=ga(),pe=Rs().packs.slice(0,_s);I.useEffect(()=>(document.body.classList.add("shop-cart-bg"),()=>document.body.classList.remove("shop-cart-bg")),[]);const Nt=i.some(t=>t.category!=="emote"),{data:$e}=ma({queryKey:["upsell-listings"],queryFn:()=>Pa({first:40}),staleTime:6e4}),{data:j}=fa(n),y=xa(),Y=oa(),{state:z}=ca(),[Qt,re]=I.useState(null),[Qe,ge]=I.useState(null),[Ut,_]=I.useState(!1),[B,O]=I.useState(null),Ue=I.useRef(0),[p,k]=I.useState(null),{data:me}=ya(n),{data:oe}=ba(!0),[Me,Ge]=I.useState(""),ce=I.useRef(null),He=va(i),Oe=t=>mt(He[t.id]),Te=i.filter(Oe),De=i.length>0&&Te.length===0,Gt=Te.reduce((t,s)=>t+s.priceCredits*s.quantity,0),Ht=i.reduce((t,s)=>t+s.quantity,0),Ot=Te.reduce((t,s)=>t+s.quantity,0),Ve=B?B.liveTotalCredits:Gt,Dt=new Set(i.map(t=>t.id)),Je=(($e==null?void 0:$e.items)??[]).filter(t=>!Dt.has(t.id)).slice(0,12),Vt=new Map(B==null?void 0:B.buyable.map(t=>[t.item.id,t])),fe=(j==null?void 0:j.credits)??0,Ie=Ve*10,Jt=oe?gt(Ie,oe):0n,Pe=_e({priceCents:Ie,priceManaWei:Jt,balanceCents:(j==null?void 0:j.balanceCents)??0,manaBalanceWei:me??0n}),Xt=t=>t.flatMap(s=>{const c=Fe(s);return c.kind==="store"?[c.mint]:[]}),Yt=t=>t.flatMap(s=>s.acquisition==="trade"?[s.trade]:[]),Zt=$a,ea=t=>Ta(t.contractAddress,String(t.itemId));function xe(t){t(),O(null),ge(null),re(null)}function ta(){k(null),_(!1)}function Xe(t){const s=Le(t),c=Math.max(0,s-fe),o=pe.find(d=>d.credits>=c)??pe[pe.length-1];Ge(o.id),D("Shop Buy Credits Prompted",{from:"cart_checkout",credits_needed:s,credits_balance:fe,shortfall:c}),k({phase:"nofunds",lines:t.map(d=>({item:d.item,priceCredits:d.priceCredits,quantity:d.quantity})),shortfall:c}),_(!1)}async function Ae(t){if(!n||t.length===0)return;const s=je(t),c=s.map(f=>({...f.item,priceCredits:f.priceCredits})),o=t.map(f=>({...f.item,priceCredits:f.priceCredits,quantity:f.quantity})),d=[];let v="authorize";const m=new Set,M=new Set,L=new Set,F=[];let w=!1;k({phase:"processing",stage:"reserving",step:1,total:s.length});try{const f=[];for(let h=0;h<s.length;h++){const g=s[h];k({phase:"processing",stage:"reserving",step:h+1,total:s.length});try{const $=g.acquisition==="trade"?g.trade.id:void 0,b=g.item.contractAddress&&g.item.itemId!=null?{contractAddress:g.item.contractAddress,itemId:String(g.item.itemId)}:void 0,{credit:q,maxCreditedValue:R}=await yt(n.identity,g.usdCents,$,b);d.push({salt:q.id,itemId:g.item.id}),f.push(g.acquisition==="store"?{kind:"store",item:{collection:g.item.contractAddress,itemId:String(g.item.itemId),priceWei:g.priceWei},credits:[q],maxCreditedValue:R,chainId:g.item.chainId}:{kind:"trade",trade:g.trade,credits:[q],maxCreditedValue:R})}catch($){if(Ls($)){if(d.length){try{await Re(n.identity,d.map(b=>b.salt))}catch(b){ae(b,{flow:"cart_checkout",step:"release"})}y.invalidateQueries({queryKey:["usd-balance"]})}Xe(t);return}throw $}}d.length&&y.invalidateQueries({queryKey:["usd-balance"]}),v="submit";const S=Ps(f).length,Q=h=>S>1?{current:h,total:S}:void 0,U=(h,g)=>k({phase:"processing",stage:h,step:s.length,total:s.length,signatures:Q(g)}),G=h=>h<S?U("awaiting-signature",h+1):U("settling",S);U("awaiting-signature",1);let T=[];if(ks())try{const h=new Map;T=await Es({purchases:f,buyer:n.address,signer:n.signer,onSigned:()=>G(S),onBroadcast:({txHash:b,salts:q})=>{h.set(b,q),q.forEach(R=>m.add(R))}});const g=await Promise.allSettled(T.map(b=>qs(b)));g.forEach((b,q)=>{const R=h.get(T[q])??[];b.status==="fulfilled"?(R.forEach(te=>M.add(te)),F.push(T[q])):b.reason instanceof Tt||R.forEach(te=>L.add(te))});const $=g.flatMap(b=>b.status==="rejected"?[b.reason]:[]);if($.length&&!$.some(b=>b instanceof Tt))throw $[0];w=!0}catch(h){if(!(h instanceof zs)||!Ia(n.providerType))throw h;T=await Be({purchases:f,buyer:n.address,signer:n.signer,onSigned:G,onBroadcast:({salts:g})=>g.forEach($=>m.add($)),onSettled:({txHash:g,salts:$})=>{$.forEach(b=>M.add(b)),F.push(g)},onReverted:({salts:g})=>g.forEach($=>L.add($))})}else T=await Be({purchases:f,buyer:n.address,signer:n.signer,onSigned:G,onBroadcast:({salts:h})=>h.forEach(g=>m.add(g)),onSettled:({txHash:h,salts:g})=>{g.forEach($=>M.add($)),F.push(h)},onReverted:({salts:h})=>h.forEach(g=>L.add(g))});t.forEach(h=>u(h.item.id)),O(null),D("Shop Completed Purchase",{...be(c),payment_type:"credits",no_crypto_step:w,transaction_hash:T[0]??null}),$t(y);const C=ce.current;ce.current=null,k(null),_(!1);const x={items:o,txHash:T[0]??void 0,txHashes:T,settled:!0,...C?{creditsAdded:C}:{}};Y("/success",{state:x,replace:!0})}catch(f){ve(f)||ae(f,{flow:"cart_checkout",step:v,cart_size:t.length});const S=new Set([...m].filter(x=>!L.has(x))),{toRelease:Q,boughtItemIds:U}=It({reservations:d,spent:S,settled:M}),G=[...S].some(x=>!M.has(x)),T=c.filter(x=>U.includes(x.id)),C=c.filter(x=>!U.includes(x.id));if(D(ve(f)?"Shop Purchase Cancelled":"Shop Purchase Failed",{step:v,error_code:bt(f),value_usd:ft(C.reduce((x,h)=>x+h.priceCredits,0)),cart_size:s.length,partial:T.length>0}),Q.length)try{await Re(n.identity,Q)}catch(x){ae(x,{flow:"cart_checkout",step:"release"})}if(y.invalidateQueries({queryKey:["usd-balance"]}),T.length>0){U.forEach(x=>u(x)),O(null),$t(y),D("Shop Completed Purchase",{...be(T),payment_type:"credits",no_crypto_step:w,transaction_hash:F[0]??null,partial:!0}),k({phase:"error",message:a("cart.error.partiallyBought"),heldCredits:G}),_(!1);return}k({phase:"error",message:G?void 0:We(f),heldCredits:G})}}function Ye(t,s){y.invalidateQueries({queryKey:["usd-balance"]}),y.invalidateQueries({queryKey:["detail-trade"]}),y.invalidateQueries({queryKey:["shop-item"]}),y.invalidateQueries({queryKey:["owned-token"]}),y.invalidateQueries({queryKey:["public-token"]}),y.invalidateQueries({queryKey:["item-resales"]}),y.invalidateQueries({queryKey:["shop-items"]}),y.invalidateQueries({queryKey:["catalog-items"]}),y.invalidateQueries({queryKey:["my-assets"]}),y.invalidateQueries({queryKey:["purchases"]}),y.invalidateQueries({queryKey:["owned-item-count"]}),y.invalidateQueries({queryKey:["overview-listings"]}),y.invalidateQueries({queryKey:["upsell-listings"]});const c=ce.current;ce.current=null,k(null),_(!1);const o={items:t,txHash:s[0]??void 0,txHashes:s,settled:!0,...c?{creditsAdded:c}:{}};Y("/success",{state:o,replace:!0})}function Ze(t,s){ve(t)||ae(t,{flow:s,step:"submit"}),D(ve(t)?"Shop Purchase Cancelled":"Shop Purchase Failed",{step:"submit",error_code:bt(t)}),k({phase:"error",message:We(t)}),_(!1)}async function aa(t,s,c){const o=vt(wt.MANAToken,s),d=vt(wt.CreditsManager,s);await Ts({auth:{kind:Is.Allowance,contractAddress:o.address,spenderAddress:d.address,chainId:s},signer:t,requiredWei:c})}async function et(){if(oe)return oe;try{return await y.fetchQuery({queryKey:["mana-rate",xt.chainId],queryFn:()=>Ma(xt.chainId),staleTime:6e4})}catch{return}}async function sa(t){const s=je(t).reduce((v,m)=>v+m.usdCents,0),o=(me??0n)>0n?await et():oe,d=o?gt(s,o):0n;return{totalCents:s,manaWei:d}}async function tt(t,s){const c=Le(t),{totalCents:o,manaWei:d}=await sa(t),v=_e({priceCents:o,priceManaWei:d,balanceCents:(j==null?void 0:j.balanceCents)??0,manaBalanceWei:me??0n});if(s&&v.options.some(m=>m.method===s)){if(s==="credits"){Ae(t);return}const m=it(v,s);await st(at(s,t),m,()=>s==="mana"?void rt(t,m):void ot(t,o,d));return}if(v.options.some(m=>m.method==="mana"||m.method==="combined")){k({phase:"choose",lines:t,totalCents:o,manaWei:d}),_(!1);return}if(j!=null&&j.credits<c){Xe(t);return}Ae(t)}function Ee(t){return _e({priceCents:t.totalCents,priceManaWei:t.manaWei,balanceCents:(j==null?void 0:j.balanceCents)??0,manaBalanceWei:me??0n})}const[le,ye]=I.useState(null);function at(t,s){const c=new Map;for(const o of s){const d=bs(t,Fe(o));c.set(`${d.chainId}:${d.spender.toLowerCase()}`,d)}return[...c.values()]}async function st(t,s,c){const o=[];for(const{spender:d,chainId:v}of t){const m=Ss(v,d),M=n?await $s(m,n.address,s).catch(()=>!0):!0;Ms(n==null?void 0:n.providerType,M)&&o.push(m)}if(o.length===0){c();return}_(!1),nt(o,0,c)}function nt(t,s,c){ye({auth:t[s],index:s+1,total:t.length,run:()=>s+1<t.length?nt(t,s+1,c):c()})}function it(t,s){var c;return((c=t.options.find(o=>o.method===s))==null?void 0:c.manaWei)??0n}function na(t){if((p==null?void 0:p.phase)!=="choose")return;const{lines:s,totalCents:c,manaWei:o}=p;if(t==="credits"){Ae(s);return}const d=it(Ee(p),t);st(at(t,s),d,()=>t==="mana"?void rt(s,d):void ot(s,c,o))}async function rt(t,s){if(!n||t.length===0)return;const c=je(t),o=c.map(m=>({...m.item,priceCredits:m.priceCredits})),d=t.map(m=>({...m.item,priceCredits:m.priceCredits,quantity:m.quantity})),v=()=>k({phase:"processing",stage:"settling",step:c.length,total:c.length});k({phase:"processing",stage:"awaiting-signature",step:c.length,total:c.length});try{const m=await vs({trades:Yt(c),mints:Xt(c),buyer:n.address,signer:n.signer,onSigned:v,manaWei:s});t.forEach(M=>u(M.item.id)),O(null),D("Shop Completed Purchase",{...be(o),payment_type:"mana",transaction_hash:m[0]??null}),y.invalidateQueries({queryKey:["mana-balance"]}),Ye(d,m)}catch(m){Ze(m,"buy_cart_mana")}}async function ot(t,s,c){if(!n||t.length===0)return;const o=je(t),d=o.map(w=>({...w.item,priceCredits:w.priceCredits})),v=t.map(w=>({...w.item,priceCredits:w.priceCredits,quantity:w.quantity})),m=ws(o.map(w=>w.usdCents),(j==null?void 0:j.balanceCents)??0),M=[],L=new Set,F=new Set;k({phase:"processing",stage:"reserving",step:1,total:o.length});try{const w=o.map(Fe),f=[],S=new Map,Q=new Map;for(let C=0;C<o.length;C++){const x=o[C],h=w[C],g=m[C],$=Cs(Math.max(0,x.usdCents-g),s,c);let b;if(g<=0)b=Mt(h,[],"0");else{k({phase:"processing",stage:"reserving",step:C+1,total:o.length});const R=x.item,{credit:te,maxCreditedValue:ra}=await yt(n.identity,g,h.kind==="trade"?h.trade.id:void 0,R.contractAddress&&R.itemId!=null?{contractAddress:R.contractAddress,itemId:String(R.itemId)}:void 0);M.push({salt:te.id,itemId:R.id}),b=Mt(h,[te],ra)}const q=As(b);S.set(q,(S.get(q)??0n)+$),Q.has(q)||Q.set(q,f.length),f.push(b)}M.length&&y.invalidateQueries({queryKey:["usd-balance"]});for(const[C,x]of S){const h=Q.get(C);h==null||x<=0n||(f[h]={...f[h],maxCreditedValue:(BigInt(f[h].maxCreditedValue)+x).toString()})}const U=[...S.values()].reduce((C,x)=>C+x,0n);await aa(n.signer,js(w[0]),U);const G=()=>k({phase:"processing",stage:"settling",step:o.length,total:o.length});k({phase:"processing",stage:"awaiting-signature",step:o.length,total:o.length});const T=await Be({purchases:f,buyer:n.address,signer:n.signer,onSigned:G,onBroadcast:({salts:C})=>C.forEach(x=>L.add(x)),onReverted:({salts:C})=>C.forEach(x=>F.add(x))});t.forEach(C=>u(C.item.id)),O(null),D("Shop Completed Purchase",{...be(d),payment_type:"credits_and_mana",transaction_hash:T[0]??null}),y.invalidateQueries({queryKey:["mana-balance"]}),Ye(v,T)}catch(w){const{toRelease:f}=It({reservations:M,spent:new Set([...L].filter(S=>!F.has(S))),settled:new Set});f.length&&Re(n.identity,f).catch(()=>{}),M.length&&y.invalidateQueries({queryKey:["usd-balance"]}),Ze(w,"buy_cart_combined")}}async function Z(t){if(!n){St({type:"cart-checkout"}),N();return}const s=H.getState().items.filter(Oe);if(s.length===0)return;re(null),ge(null),_(!0);const c=s.reduce((o,d)=>o+d.priceCredits*d.quantity,0);D("Shop Started Checkout",{checkout_source:"cart",cart_size:s.length,cart_value_credits:c,cart_value_usd:ft(c),has_sufficient_credits:fe>=c});try{const o=await Bs(s,n.address,Zt,await et(),ea),d=[...o.unavailable,...o.own];if(d.length&&(d.forEach(v=>u(v.id)),ge(Qn(o))),o.buyable.length===0){re(a("cart.error.noneAvailable")),O(null);return}if(o.orderChanged){O(o),Ue.current=Date.now();return}await tt(o.buyable,t)}catch(o){ae(o,{flow:"cart_checkout",step:"review",cart_size:s.length}),re(We(o))}finally{_(!1)}}async function ct(){if(B){if(!n){St({type:"cart-checkout"}),N();return}if(Date.now()-Ue.current>Nn){O(null),ge(null),await Z();return}re(null),tt(B.buyable)}}async function ia(){if(Me){try{sessionStorage.setItem(we,JSON.stringify(H.getState().items))}catch{}_(!0);try{const t=await Fs(Me,n?{address:n.address,identity:n.identity}:void 0);if(t.url){window.location.href=t.url;return}Y("/credits")}catch(t){try{sessionStorage.removeItem(we)}catch{}ae(t,{flow:"cart_buy_credits"}),k({phase:"error",message:a("buyModal.error.creditsCheckout")})}finally{_(!1)}}}const lt=I.useRef(!1);I.useEffect(()=>{if(!n||lt.current||!ms("cart-checkout"))return;lt.current=!0;const t=setTimeout(()=>void Z(),0);return()=>clearTimeout(t)},[n]);const dt=I.useRef(!1);I.useEffect(()=>{if(!(z!=null&&z.resumeCheckout)||dt.current)return;dt.current=!0,ce.current=z.creditsAdded??null;try{const s=sessionStorage.getItem(we);if(s){sessionStorage.removeItem(we);const c=JSON.parse(s);Array.isArray(c)&&c.length&&J(c)}}catch{}y.invalidateQueries({queryKey:["usd-balance"]});const t=setTimeout(()=>void Z(),0);return()=>clearTimeout(t)},[z==null?void 0:z.resumeCheckout]);const ut=I.useRef(!1);I.useEffect(()=>{if(!(z!=null&&z.startCheckout)||ut.current)return;ut.current=!0,Y(".",{replace:!0,state:null});const t=setTimeout(()=>void Z(),0);return()=>clearTimeout(t)},[z==null?void 0:z.startCheckout]);const ee=Ut||(p==null?void 0:p.phase)==="processing";return i.length===0&&!p?e.jsx(Pt,{children:e.jsxs(Et,{children:[e.jsxs(At,{onClick:()=>Y(-1),type:"button",children:[e.jsx(V,{name:"arrow-left"}),a("nav.cart")]}),e.jsx(sn,{children:e.jsx(wa,{variant:"light",testId:"cart-empty",icon:Ca,title:a("cart.empty.title"),body:a("cart.empty.body"),cta:{label:a("cart.empty.cta"),to:"/items"}})})]})}):e.jsxs(Pt,{children:[e.jsxs(Et,{children:[e.jsxs(At,{onClick:()=>Y(-1),type:"button",children:[e.jsx(V,{name:"arrow-left"}),a("nav.cart")]}),e.jsxs(Zs,{children:[e.jsxs(en,{children:[e.jsxs(tn,{children:[e.jsx(nn,{onClick:()=>Y(-1),type:"button","aria-label":a("cart.goBack"),children:e.jsx(V,{name:"arrow-left"})}),e.jsx(rn,{children:a("cart.panelTitle",{count:Ht})}),Nt?e.jsxs(on,{onClick:()=>X(!0),disabled:ee,children:[e.jsx(V,{name:"fitting-room"}),a("cart.fittingRoom")]}):null]}),e.jsxs(an,{children:[e.jsx(cn,{children:i.map(t=>{const s=Vt.get(t.id),c=s?s.priceCredits:t.priceCredits,o=!!s&&s.priceCredits!==t.priceCredits,d=!t.tokenId,v=t.quantity,m=typeof t.available=="number"&&v>=t.available,M=c*v,L=ja(t),F=!!L&&!!K[L],w=ka(t),f=He[t.id],S=!mt(f),Q=f==="sold-out"?a("cart.availability.soldOut"):a("cart.availability.unavailable");return e.jsxs(ln,{"data-unavailable":S||void 0,children:[e.jsxs(dn,{"data-thumb":!0,children:[w?e.jsx(un,{to:w,state:{item:t,tradeId:t.tradeId},"aria-label":t.name,children:t.thumbnail?e.jsx("img",{src:t.thumbnail,alt:t.name}):null}):t.thumbnail?e.jsx("img",{src:t.thumbnail,alt:t.name}):null,e.jsx(hn,{"data-check":!0,"aria-hidden":!0,children:e.jsx("svg",{viewBox:"0 0 20 20",width:"12",height:"12",children:e.jsx("path",{d:"M5 10.5l3 3 7-7.5",fill:"none",stroke:"#fff",strokeWidth:"2.4",strokeLinecap:"round",strokeLinejoin:"round"})})})]}),e.jsxs(pn,{children:[e.jsxs(gn,{"data-desc":!0,children:[w?e.jsx(fn,{to:w,state:{item:t,tradeId:t.tradeId},title:t.name,children:t.name}):e.jsx(mn,{title:t.name,children:t.name}),t.creator?e.jsx(xn,{address:t.creator,linkToProfile:!0}):null,Kt&&d?e.jsxs(Mn,{"data-testid":"cart-creator-tag",children:[e.jsx(Tn,{name:"buy-from-creator"}),a("cart.creatorTag")]}):null]}),e.jsx(yn,{children:S?e.jsxs(Sn,{children:[e.jsx($n,{name:"warning-fill",size:24}),Q]}):e.jsxs(e.Fragment,{children:[d?e.jsxs(bn,{children:[e.jsx(qt,{onClick:()=>xe(()=>E(t.id)),disabled:ee||v<=1,"aria-label":a("cart.decreaseQuantity",{name:t.name}),children:e.jsx("svg",{viewBox:"0 0 16 16",fill:"none","aria-hidden":!0,focusable:"false",children:e.jsx("path",{d:"M3.5 8h9",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})})}),e.jsx(vn,{children:v}),e.jsx(qt,{onClick:()=>xe(()=>P(t.id)),disabled:ee||m,"aria-label":a("cart.increaseQuantity"),children:e.jsx("svg",{viewBox:"0 0 16 16",fill:"none","aria-hidden":!0,focusable:"false",children:e.jsx("path",{d:"M8 3.5v9M3.5 8h9",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})})})]}):null,e.jsxs(wn,{children:[e.jsx(Cn,{})," ",e.jsx(ze,{credits:M}),o?e.jsx(jn,{children:e.jsx(ze,{credits:t.priceCredits*v})}):null]})]})})]}),e.jsxs(kn,{children:[L?e.jsx(In,{"data-on":F||void 0,onClick:()=>ie(t),"aria-label":F?a("cart.removeFromFavorites",{name:t.name}):a("cart.addToFavorites",{name:t.name}),title:F?a("assetCard.removeFromFavorites"):a("assetCard.addToFavorites"),children:e.jsx(V,{name:F?"heart-solid":"heart"})}):null,e.jsx(Pn,{onClick:()=>xe(()=>u(t.id)),disabled:ee,"aria-label":a("cart.remove",{name:t.name}),title:a("cart.removeTitle"),children:e.jsx(V,{name:"trash",size:24})})]})]},t.id)})}),e.jsx(An,{children:e.jsx("button",{className:"link",onClick:()=>xe(W),disabled:ee,children:a("cart.clearCart")})})]})]}),e.jsxs(En,{children:[e.jsx(qn,{children:a("cart.purchaseSummary")}),e.jsxs(zn,{children:[e.jsxs(Rn,{children:[e.jsx(_n,{children:a("cart.totalItems",{count:Ot})}),e.jsx(Fn,{children:e.jsxs(Bn,{children:[e.jsx(Wn,{})," ",e.jsx(ze,{credits:Ve})]})})]}),e.jsx(_t,{options:Pe.options,totalCents:Ie,shortfall:Pe.manaShortfall,showCreditsAmount:!1,creditsLabel:B?a("marketCheckout.confirmPurchase"):Pe.options.length>1?a("cart.buyWithCredits"):a("cart.checkout"),busy:ee||De,onPay:t=>void(B?ct():Z(t)),creditsFallback:{label:ee?a("cart.working"):B?a("marketCheckout.confirmPurchase"):a("cart.checkout"),onClick:()=>void(B?ct():Z())}}),De?e.jsx(Ce,{className:"muted",children:a("cart.allUnavailable")}):null,n?null:e.jsx(Ce,{className:"muted",children:a("cart.signInHint")}),B?e.jsx(Ce,{className:"muted",children:a("cart.priceChanged")}):null,Qe?e.jsx(Ce,{className:"muted",children:Qe}):null,e.jsx(Ln,{message:Qt})]})]})]})]}),Je.length>0?e.jsx(Kn,{children:e.jsx(fs,{title:a("cart.youMightAlsoLike"),items:Je})}):null,le&&n?e.jsx(xs,{auth:le.auth,signer:n.signer,step:{index:le.index,total:le.total},title:a("authorizeStep.manaTitle"),name:a("authorizeStep.manaName"),reason:a("authorizeStep.manaReason"),icon:e.jsx("img",{src:ys,width:24,height:24,alt:"","aria-hidden":!0}),onAuthorized:()=>{const{run:t}=le;ye(null),t()},onCancel:()=>ye(null),onClose:()=>ye(null)}):null,p?e.jsx(Vs,{phase:p.phase,balanceCredits:fe,heldCreditsCount:((ht=j==null?void 0:j.held)==null?void 0:ht.credits)??null,onClose:ta,stage:p.phase==="processing"?p.stage:void 0,step:p.phase==="processing"?p.step:void 0,total:p.phase==="processing"?p.total:void 0,isSelfCustody:Sa(n==null?void 0:n.providerType),signatures:p.phase==="processing"?p.signatures:void 0,options:p.phase==="choose"?Ee(p).options:void 0,shortfall:p.phase==="choose"?Ee(p).manaShortfall:void 0,onPay:na,totalCents:p.phase==="choose"?p.totalCents:void 0,totalManaWei:p.phase==="choose"?p.manaWei:void 0,totalCredits:p.phase==="choose"?Le(p.lines):void 0,lines:p.phase==="nofunds"?p.lines:void 0,shortfallCredits:p.phase==="nofunds"?p.shortfall:void 0,packs:pe,selectedPack:Me,onSelectPack:Ge,onBuyPacks:()=>void ia(),message:p.phase==="error"?p.message:void 0,heldCredits:p.phase==="error"&&!!p.heldCredits,onRetry:()=>void Z()}):null]})}export{ni as Cart};
|
|
645
|
-
//# sourceMappingURL=Cart-k83ms4yR.js.map
|