@dcl/shop 1.4.2-31312432830.commit-294f554 → 1.4.2-31318792168.commit-63acc2c
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-NHOQ_W_-.js → Activity-CUtzGuZi.js} +5 -5
- package/_assets/{AnimatedBackground-BuJlRsTt.js → AnimatedBackground-CKYd1b1O.js} +2 -2
- package/_assets/{Assets-DsnrEwvE.js → Assets-BhlW9Wx3.js} +2 -2
- package/_assets/{Assets.styles-CuWT78zl.js → Assets.styles-DG1h47nn.js} +1 -1
- package/_assets/{Authorizations-B4PIyNsB.js → Authorizations-BASwkC0l.js} +1 -1
- package/_assets/Cart-DxmkSugV.js +696 -0
- package/_assets/{CircularProgress-DUq9NPI6.js → CircularProgress-DYQ08DWl.js} +1 -1
- package/_assets/{Collection-BGucqUBi.js → Collection-UgRDwUmd.js} +1 -1
- package/_assets/{CollectionCarousel-Cps0wYBU.js → CollectionCarousel-BvghNLQG.js} +169 -177
- package/_assets/{Confetti-CBj-mVZI.js → Confetti-8gjQ6tb0.js} +1 -1
- package/_assets/{ConstantsUtil-Ck3fDr3h.js → ConstantsUtil-_wDeZ6ui.js} +1 -1
- package/_assets/{ContentClient-Cx6YR2x_.js → ContentClient-S2yImRPT.js} +1 -1
- package/_assets/{Creator-CXw3Kadz.js → Creator-DjPkuErt.js} +1 -1
- package/_assets/{DeploymentBuilder-8vMsUZ5r.js → DeploymentBuilder-BuYQQso0.js} +1 -1
- package/_assets/{ErrorNotice-C_RVGUzO.js → ErrorNotice-Dh0G_UH0.js} +1 -1
- package/_assets/{ExchangeController-BlbdUNWF.js → ExchangeController-BqD5t9Zu.js} +1 -1
- package/_assets/{Faq-D0xuEVP5.js → Faq-CrJ-GH4k.js} +1 -1
- package/_assets/{GetCredits-DrHn8Lnz.js → GetCredits-DzDBOEft.js} +2 -2
- package/_assets/{Grow-CU75s2bu.js → Grow-BcWJyxmA.js} +1 -1
- package/_assets/{HelpersUtil-D6HuwesN.js → HelpersUtil-YGElNPtF.js} +1 -1
- package/_assets/ItemDetail-BVO9W3Ag.js +3570 -0
- package/_assets/LazyEmoteControls-BATwcsS-.js +2 -0
- package/_assets/{LoadMore-P_MKAf1K.js → LoadMore-DZz0apc4.js} +1 -1
- package/_assets/{ManaPricingBanner.styles-CWoDMKMl.js → ManaPricingBanner.styles-Bir49U3g.js} +1 -1
- package/_assets/{MyAssets-CUEMlx_o.js → MyAssets-D1VBULvk.js} +2 -2
- package/_assets/{MyFavorites-BPb8OEVx.js → MyFavorites-MQoA41I-.js} +1 -1
- package/_assets/{NetworkUtil-tcDS1IIB.js → NetworkUtil-ooNEpt2E.js} +1 -1
- package/_assets/{NotFound-tne0tBOa.js → NotFound-C0I1Fl9w.js} +1 -1
- package/_assets/{NotificationsBell-CmFSFwZP.js → NotificationsBell-CsjRTFAw.js} +1 -1
- package/_assets/{OutfitDetail-BT9obLRM.js → OutfitDetail-Cj-7nYPN.js} +1 -1
- package/_assets/{OutfitPreview-CYXMUVw2.js → OutfitPreview-B5sSYG7H.js} +1 -1
- package/_assets/{OutfitStudio-YBvL5VGl.js → OutfitStudio-VIQWadz3.js} +1 -1
- package/_assets/{StoreSettings-CZz1NxHF.js → StoreSettings-C2GziXJc.js} +21 -21
- package/_assets/{Success-CQKYcWpX.js → Success-D1R3OpeD.js} +1 -1
- package/_assets/{SwapController-BEVqtoCD.js → SwapController-BPzqNjIO.js} +1 -1
- package/_assets/{Tooltip-sT07OWHO.js → Tooltip-NVEtu7WR.js} +1 -1
- package/_assets/{TradeService-CI3giiHH.js → TradeService-P6cAagrj.js} +1 -1
- package/_assets/{W3MFrameProviderSingleton-CF6uvH5s.js → W3MFrameProviderSingleton-CZkhqHTC.js} +3 -3
- package/_assets/{WebCryptoP256-BORYCvjs.js → WebCryptoP256-Btl0G7MC.js} +1 -1
- package/_assets/authorizations-rKqoPfba.js +1 -0
- package/_assets/{basic-C4mQYhuA.js → basic-DUMQQiuv.js} +1 -1
- package/_assets/{biconomy-CuJVLNp7.js → biconomy-DaDoOKwT.js} +1 -1
- package/_assets/{builder-CkniOHea.js → builder-BjxL6GAx.js} +1 -1
- package/_assets/{buy-P1ELLgiE.js → buy-BVwGfu-u.js} +1 -1
- package/_assets/{buy-gasless-BHi46MwF.js → buy-gasless-QheWl_4u.js} +1 -1
- package/_assets/{categories-C3d1csvn.js → categories-BwYVv5LN.js} +1 -1
- package/_assets/{ccip-BuuvnkRx.js → ccip-D9RgwF6z.js} +1 -1
- package/_assets/{ccip-C2VEvCbm.js → ccip-Wq6QNi-S.js} +1 -1
- package/_assets/{chains-BIWEr0ij.js → chains-6gSx70Hh.js} +1 -1
- package/_assets/{collectionPage.styles-CeGOp9uA.js → collectionPage.styles-DpjxCqdp.js} +4 -4
- package/_assets/{common-DC11HrTT.js → common-feYFL93O.js} +1 -1
- package/_assets/{controller-BFSczMkH.js → controller-C66aulNK.js} +2 -2
- package/_assets/{core-BW1P_HvM.js → core-Btwy40Yo.js} +4 -4
- package/_assets/{createSvgIcon-Cv96eCpQ.js → createSvgIcon-CdJg0Jup.js} +1 -1
- package/_assets/{custom-DTSkEq9y.js → custom-DoWLNbWe.js} +1 -1
- package/_assets/{data-capture-CqPKue4D.js → data-capture-BGI0-xMQ.js} +1 -1
- package/_assets/{decimals-Cq50aW31.js → decimals-Cs0fUBZW.js} +1 -1
- package/_assets/decimals-ajtlKW5P.js +1 -0
- package/_assets/{detectExtension-DECAB97m.js → detectExtension-C37KQAih.js} +1 -1
- package/_assets/{email-Y6VS8X-I.js → email-AZF8we76.js} +1 -1
- package/_assets/{embedded-wallet-DhCY0HS9.js → embedded-wallet-CoNOZa9l.js} +1 -1
- package/_assets/{emotion-styled.browser.esm-DS9PERKq.js → emotion-styled.browser.esm-D5G81H0Z.js} +1 -1
- package/_assets/{engine-C0KKoxYU.js → engine-DK35k3Wx.js} +1 -1
- package/_assets/{errors-CJ2pCYot.js → errors-By1GnMe7.js} +1 -1
- package/_assets/{estimate-l1-fee-CdSpN9-3.js → estimate-l1-fee-CXKE1On5.js} +1 -1
- package/_assets/{eth_estimateGas-cxuHKZ6E.js → eth_estimateGas-BrLzlWeD.js} +1 -1
- package/_assets/{eth_getStorageAt-CtArmjiC.js → eth_getStorageAt-BpgMYXhH.js} +1 -1
- package/_assets/{eth_getTransactionCount-BfjxI2ac.js → eth_getTransactionCount-CnBRomEq.js} +1 -1
- package/_assets/{ethereum-DDjO_s3T.js → ethereum-DVNzjDRr.js} +1 -1
- package/_assets/{ethers-DfPQ1iPJ.js → ethers-Zj6qlwhg.js} +1 -1
- package/_assets/{execute-D_9LMioQ.js → execute-CMXov2Ym.js} +2 -2
- package/_assets/{extractIPFS-BzqQpbV3.js → extractIPFS-CBKK6zoo.js} +1 -1
- package/_assets/{features-D0XU01_q.js → features-ChMtmYU9.js} +1 -1
- package/_assets/{fetchTokenMetadata-3bs5L4Ed.js → fetchTokenMetadata-lypRtD7l.js} +2 -2
- package/_assets/{field.styles-DJeExo1o.js → field.styles-DBKEhZ68.js} +1 -1
- package/_assets/{get-bytecode-CBzbILdG.js → get-bytecode-BM7naPwd.js} +1 -1
- package/_assets/get-ecosystem-wallet-info-Br746vUu.js +1 -0
- package/_assets/{getBalance-CfTr0idF.js → getBalance-D7kh5vBa.js} +2 -2
- package/_assets/{getInstalledModules-CMaA3R_c.js → getInstalledModules-b10bOXJE.js} +1 -1
- package/_assets/{getNFT-CpdvnGlo.js → getNFT-D-tJRp8I.js} +2 -2
- package/_assets/getNFT-VGd_dY0w.js +1 -0
- package/_assets/{grid.styles-pd8Kimjr.js → grid.styles-DJWMt6vO.js} +1 -1
- package/_assets/{hashTypedData-DyjRVyiF.js → hashTypedData-CjD9Onxg.js} +1 -1
- package/_assets/{hashTypedData-BznBKEJ4.js → hashTypedData-DHhLMbA9.js} +1 -1
- package/_assets/{in-app-CYmfrim9.js → in-app-cMkoA_0X.js} +1 -1
- package/_assets/{in-app-wallet-calls-CqmNnUJE.js → in-app-wallet-calls-B1N_tJhq.js} +1 -1
- package/_assets/{index-CWAxO3pP.js → index--EeJI3gz.js} +1 -1
- package/_assets/{index-B9uk5-Wa.js → index--LxIcqOG.js} +1 -1
- package/_assets/{index-BspLYzJo.js → index-06iPgNel.js} +1 -1
- package/_assets/{index--7bmhnCr.js → index-AJgeFEbz.js} +1 -1
- package/_assets/{index-CiPrjG5a.js → index-B4j7Y-xb.js} +1 -1
- package/_assets/{index-B6lhjXm3.js → index-B51FIhv5.js} +1 -1
- package/_assets/{index-D-X0uab8.js → index-B6kTxvDn.js} +1 -1
- package/_assets/{index-DNCRJDU6.js → index-BAwpYw08.js} +1 -1
- package/_assets/{index-D4Dobs6V.js → index-BFm7_2vm.js} +1 -1
- package/_assets/{index-1ioVeg7x.js → index-BHF7j7iL.js} +1 -1
- package/_assets/{index-B40CqL6J.js → index-BHIzwyES.js} +1 -1
- package/_assets/{index-h9B4YXUq.js → index-BHY_vmT3.js} +1 -1
- package/_assets/{index-YTZYM_mv.js → index-BJpwf_jJ.js} +1 -1
- package/_assets/{index-CoNQ2sAc.js → index-BKjJvyPt.js} +1 -1
- package/_assets/{index-BoVFCbnW.js → index-BLGkMtvD.js} +1 -1
- package/_assets/{index-BOFr5q8K.js → index-BUl8ifmb.js} +1 -1
- package/_assets/{index-D_Xy7OI9.js → index-BXupZ0pl.js} +1 -1
- package/_assets/{index-sMZT0osM.js → index-BYEO4mFR.js} +1 -1
- package/_assets/{index-koAbgvGY.js → index-BccN6K5r.js} +1 -1
- package/_assets/{index-CB7o8WQW.js → index-BeGq8iy0.js} +1 -1
- package/_assets/{index-BdcjNzsb.js → index-BecyzLoT.js} +1 -1
- package/_assets/{index-zsZ0nIv4.js → index-BfJ-QKCm.js} +1 -1
- package/_assets/{index-CGQb2ZQU.js → index-BgbpD9U4.js} +1 -1
- package/_assets/{index-BkA4dzPp.js → index-Bh5UTaeB.js} +1 -1
- package/_assets/{index-BZuG0Sc3.js → index-Bj9Iyp6h.js} +1 -1
- package/_assets/{index-Bt3T1cvz.js → index-Bnn0ZkbX.js} +1 -1
- package/_assets/{index-Cn9uLg18.js → index-BsJlFErD.js} +1 -1
- package/_assets/{index-CXgpMw_a.js → index-By0vIQQY.js} +1 -1
- package/_assets/{index-C9qn3MDW.js → index-C12063Q0.js} +1 -1
- package/_assets/{index-Bpjughes.js → index-C3n5CX-T.js} +3 -3
- package/_assets/{index-Cd27zE1I.js → index-C7qUllZE.js} +1 -1
- package/_assets/{index-CiRq1n15.js → index-C92g1mMH.js} +2 -2
- package/_assets/{index-Cq8I2bCh.js → index-C9Tyc_4P.js} +12 -12
- package/_assets/{index-DIZ6Fpja.js → index-CH0fY4DE.js} +1 -1
- package/_assets/{index-DwnMvkbN.js → index-CIvXnRxR.js} +1 -1
- package/_assets/{index-Domysh9-.js → index-COUpKEi3.js} +1 -1
- package/_assets/{index-BFG6-uk-.js → index-CStVd5hO.js} +1 -1
- package/_assets/{index-2pZiTD3a.js → index-CVJMJ5ib.js} +1 -1
- package/_assets/{index-CcCLyIxX.js → index-CVvddNb-.js} +3 -3
- package/_assets/{index-CX_8l6aH.js → index-Cd60w9wC.js} +1 -1
- package/_assets/{index-DG04DWBB.js → index-CeoZ_quC.js} +1 -1
- package/_assets/{index-SkahHxGM.js → index-ChH-BEH6.js} +1 -1
- package/_assets/{index-CVVzw90M.js → index-CrCEqqSc.js} +1 -1
- package/_assets/{index-ChdPVYi_.js → index-Cu7FOomH.js} +2 -2
- package/_assets/{index-Dbs-O_xu.js → index-D8HAo-hq.js} +2 -2
- package/_assets/{index-HMAhnswt.js → index-D93lVP2Z.js} +1 -1
- package/_assets/{index-D4I_r7iA.js → index-DCzMWgYB.js} +1 -1
- package/_assets/{index-HlCcqGG0.js → index-DFAQC55P.js} +1 -1
- package/_assets/{index-B2jn-mld.js → index-DV-D1rm_.js} +1 -1
- package/_assets/{index-DO1MDP-3.js → index-DWopoPMG.js} +1 -1
- package/_assets/{index-C_bUhgEP.js → index-DY2HLZR7.js} +1 -1
- package/_assets/{index-CU34Q9VB.js → index-DZbbUxqz.js} +1 -1
- package/_assets/{index-BeYcw5Co.js → index-DhJfQlI3.js} +1 -1
- package/_assets/{index-5g575ePx.js → index-Dlysgquh.js} +1 -1
- package/_assets/{index-DqbRg5LC.js → index-FnYl0-IH.js} +2 -2
- package/_assets/{index-BNzvL79U.js → index-NFLi3_OK.js} +1 -1
- package/_assets/{index-oyav6SwC.js → index-XZ_rZBqC.js} +1 -1
- package/_assets/{index-1UqZYo-x.js → index-ZmzAm-04.js} +1 -1
- package/_assets/{index-dFumStoV.js → index-hznwjI3b.js} +1 -1
- package/_assets/{index-DMsfjzv3.js → index-x1otqjN5.js} +1 -1
- package/_assets/{index-BAEUZZ6m.js → index-xIzbBpoa.js} +1 -1
- package/_assets/{index-C0FhBugy.js → index-xQRwfYpo.js} +3 -3
- package/_assets/{index.es-C5ucclti.js → index.es-CV3ZzR0v.js} +1 -1
- package/_assets/{index.es-BgY67W9o.js → index.es-CvYI4kyo.js} +4 -4
- package/_assets/{index.es-B088SWVm.js → index.es-DoNqTTY8.js} +1 -1
- package/_assets/{linkAccount-B2LX6Ayb.js → linkAccount-D0R_anql.js} +1 -1
- package/_assets/{localBatchGatewayRequest-CrEvGINX.js → localBatchGatewayRequest-D3ayDqLT.js} +1 -1
- package/_assets/{native-BYuJILVU.js → native-Dvf6Py4t.js} +1 -1
- package/_assets/{networks-BgzjLjJ2.js → networks-C_FZdidw.js} +1 -1
- package/_assets/{onramp-Svn_UmTw.js → onramp-73QiKjy2.js} +1 -1
- package/_assets/{openzeppelin-BPRRVTr1.js → openzeppelin-B-lW-LCn.js} +1 -1
- package/_assets/{ownerOf-BswBoTM4.js → ownerOf-CFg0Vnog.js} +1 -1
- package/_assets/{parseNft-CfYOiCXQ.js → parseNft-CQJX5i7g.js} +2 -2
- package/_assets/{parseSignature-gNg7kA4M.js → parseSignature-B8ORNT06.js} +3 -3
- package/_assets/{parseSignature-NfMUgfN4.js → parseSignature-C7Bg4ICM.js} +1 -1
- package/_assets/{passkeys-Bf7HGrQE.js → passkeys-CnT7FFCm.js} +1 -1
- package/_assets/{pay-with-exchange-NpC_jsVL.js → pay-with-exchange-D1snaauI.js} +1 -1
- package/_assets/{prepare-contract-call-DrM5fnvt.js → prepare-contract-call-gUfFspet.js} +1 -1
- package/_assets/{qr-overlay-CX-B0YKk.js → qr-overlay-DpC39UbJ.js} +1 -1
- package/_assets/{receive-DU_jmquO.js → receive-DoLTg1vH.js} +1 -1
- package/_assets/{resolveImplementation-0bOm_A8l.js → resolveImplementation-C9QiCx9e.js} +1 -1
- package/_assets/{rpc-DwUMO0mH.js → rpc-CMSbn2iN.js} +1 -1
- package/_assets/{secp256k1-CRg-T_AS.js → secp256k1-BJ7bCcmT.js} +1 -1
- package/_assets/{secp256k1-NtZ6kHJZ.js → secp256k1-Bsn7vpBQ.js} +1 -1
- package/_assets/{secp256k1-BJWN557q.js → secp256k1-DjE4Bhh_.js} +1 -1
- package/_assets/{send-B6q0W9lI.js → send-C299MJc-.js} +1 -1
- package/_assets/{send-batch-transaction-Cg-JwW7k.js → send-batch-transaction-BPpXN4Fh.js} +1 -1
- package/_assets/{send-eip712-transaction-GrhIPA6L.js → send-eip712-transaction-D6kwLa1u.js} +2 -2
- package/_assets/send-gasless-transaction-BVCq6iro.js +2 -0
- package/_assets/{send-transaction-Aq0ndQmo.js → send-transaction-DOroXsTv.js} +2 -2
- package/_assets/{sendMetaTransaction-BuEwIAyh.js → sendMetaTransaction-BgzHuwAc.js} +1 -1
- package/_assets/{sendRawTransaction-JGobH71Z.js → sendRawTransaction-DezSAkxN.js} +3 -3
- package/_assets/{sentry-2i8Tr7WR.js → sentry-BwKB4Jgk.js} +1 -1
- package/_assets/{serializeTransaction-B-NbRyZz.js → serializeTransaction-psWDn-qZ.js} +1 -1
- package/_assets/{session-proposal-b3xSScTf.js → session-proposal-CbjngApN.js} +1 -1
- package/_assets/{session-request-BhfPcY4l.js → session-request-B-6p9Iy6.js} +2 -2
- package/_assets/{sha256-BKfXR492.js → sha256-CW4Z69Qa.js} +1 -1
- package/_assets/{signing-CzYSJwB8.js → signing-WVQFEK4R.js} +3 -3
- package/_assets/{skeleton.styles-BwXvfynq.js → skeleton.styles-BpJWZ8pG.js} +1 -1
- package/_assets/{socials-ClkHxAE_.js → socials-DUXs1Y48.js} +1 -1
- package/_assets/{styled-jiv5F83t.js → styled-CVhCfwHn.js} +1 -1
- package/_assets/{swaps-BwEAGSoG.js → swaps-Q8DvVlLL.js} +1 -1
- package/_assets/{thirdweb-BCcw3IiV.js → thirdweb-DhSCkElu.js} +3 -3
- package/_assets/{to-serializable-transaction-CI-QnODl.js → to-serializable-transaction-B_fpIxbR.js} +2 -2
- package/_assets/{totalSupply-gVMBAoD-.js → totalSupply-DbHIgwL_.js} +1 -1
- package/_assets/{transaction-7HLCNEOz.js → transaction-DRQKYXRS.js} +1 -1
- package/_assets/{transactionReceipt-a17hpBtt.js → transactionReceipt-BPSwGpr5.js} +1 -1
- package/_assets/{transactions-up6hcXnh.js → transactions-DgPefDR1.js} +1 -1
- package/_assets/useCreditPacks-BMtorUrc.js +1 -0
- package/_assets/{useImportable-BpgbDKEn.js → useImportable-B8ire4qL.js} +1 -1
- package/_assets/{useInfiniteGrid-CyR838AE.js → useInfiniteGrid-CVaXxfUk.js} +1 -1
- package/_assets/{useStore-kijFHyHV.js → useStore-CX-1oAbc.js} +2 -2
- package/_assets/{useTheme-DIejI6C_.js → useTheme-QS2IpnyN.js} +1 -1
- package/_assets/{utils-BPBPOxKw.js → utils-DMz9kkrI.js} +1 -1
- package/_assets/{verifyHash-BqY8uOSx.js → verifyHash-B0_1_m-X.js} +1 -1
- package/_assets/{w3m-modal-D0vRJJdP.js → w3m-modal-BAX9M2UR.js} +1 -1
- package/_assets/{w3m-modal-DWLBXt0Y.js → w3m-modal-CX_GlEzf.js} +1 -1
- package/_assets/{wait-for-tx-receipt-1xUKRb2m.js → wait-for-tx-receipt-BzR663uT.js} +1 -1
- package/_assets/{wallets-B25NNhvI.js → wallets-DQjyJT7O.js} +5 -5
- package/_assets/{web-connector-N42CiDrd.js → web-connector-ClAZTCUe.js} +3 -3
- package/_assets/{writeContract-CuegwesU.js → writeContract-CAcPIacd.js} +1 -1
- package/_assets/{zora-sepolia-ChK9Wob7.js → zora-sepolia-CFzDpcm0.js} +1 -1
- package/_assets/{zoraTestnet-k3Q5cVnd.js → zoraTestnet-DO-LfJcd.js} +1 -1
- package/index.html +11 -11
- package/package.json +2 -2
- package/_assets/Cart-CWjD9l0B.js +0 -696
- package/_assets/ItemDetail-7FWHJW_E.js +0 -3577
- package/_assets/LazyEmoteControls-D_Cuiw7-.js +0 -2
- package/_assets/authorizations-CAFiSVFA.js +0 -1
- package/_assets/decimals-DUdu01dG.js +0 -1
- package/_assets/get-ecosystem-wallet-info-ASLw891I.js +0 -1
- package/_assets/getNFT-BLfp3o9w.js +0 -1
- package/_assets/send-gasless-transaction-Dnd0BR62.js +0 -2
- package/_assets/useCreditPacks-CDD4tXAF.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as n,r as k}from"./react-BYHuwl8r.js";import{s as a,t as
|
|
1
|
+
import{j as n,r as k}from"./react-BYHuwl8r.js";import{s as a,t as r,b as y,A as C,L as D,bV as T,x as ce,I as K,k as le,g as j,f as M,aY as Q,ar as U,a9 as pe,ck as O,aq as he}from"./index-C9Tyc_4P.js";import{s as ue,i as P,A as S,g as z,r as Z,m as J,k as G,l as Y}from"./authorizations-rKqoPfba.js";import{i as xe}from"./errors-By1GnMe7.js";import{E as ge}from"./ErrorNotice-Dh0G_UH0.js";import{k as fe,l as me,m as _,n as be,o as we}from"./buy-BVwGfu-u.js";import{s as ee,M as te,E as ae}from"./sendMetaTransaction-BgzHuwAc.js";import{I as ye,C as ne}from"./ethers-Zj6qlwhg.js";const N="shop:resume_after_signin",ve=900*1e3;function ht(e){try{sessionStorage.setItem(N,JSON.stringify({...e,at:Date.now()}))}catch{}}function ut(e){let t;try{t=sessionStorage.getItem(N)}catch{return null}if(!t)return null;try{sessionStorage.removeItem(N)}catch{}let i;try{i=JSON.parse(t)}catch{return null}return!i||i.type!==e||typeof i.at!="number"||Date.now()-i.at>ve?null:i.type==="cart-checkout"?{type:"cart-checkout"}:{type:"item-buy",path:i.path}}function ke(e,t){return(e+t-1n)/t}function je(e,t,i){return e<=0||t<=0?0n:e>=t?i:ke(i*BigInt(e),BigInt(t))}function xt(e){var p,h,b;const t=Number.isFinite(e.priceCents)?Math.max(0,Math.trunc(e.priceCents)):0,i=Number.isFinite(e.balanceCents)?Math.max(0,Math.trunc(e.balanceCents)):0,o=e.priceManaWei>0n?e.priceManaWei:0n,d=e.manaBalanceWei>0n?e.manaBalanceWei:0n;if(t<=0)return{options:[],preferred:null,manaShortfall:null};const c=[];if(i>=t&&c.push({method:"credits",creditsCents:t,manaWei:0n}),o>0n&&i>0&&i<t){const u=t-i,l=je(u,t,o);d>=l&&c.push({method:"combined",creditsCents:i,manaWei:l})}o>0n&&d>=o&&c.push({method:"mana",creditsCents:0,manaWei:o});const m=((p=c.find(u=>u.method==="credits"))==null?void 0:p.method)??((h=c.find(u=>u.method==="combined"))==null?void 0:h.method)??((b=c.find(u=>u.method==="mana"))==null?void 0:b.method)??null,w=!c.some(u=>u.method==="mana"||u.method==="combined")&&o>0n&&d>0n?{manaWei:d,manaCents:Me(d,t,o),priceCents:t}:null;return{options:c,preferred:m,manaShortfall:w}}function Me(e,t,i){return Number(e*BigInt(t)/i)}function gt(e,t){let i=Number.isFinite(t)?Math.max(0,Math.trunc(t)):0;return e.map(o=>{const d=Number.isFinite(o)?Math.max(0,Math.trunc(o)):0,c=Math.min(d,i);return i-=c,c})}function X(e){return Number.isFinite(e)?Math.max(0,e)/10:0}function ft(e,t){return e.options.find(i=>i.method===t)??null}const B="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Group%201'%3e%3cpath%20id='Vector'%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M12%202L22%2012L12%2022L2%2012L12%202ZM12%204.8L19.2%2012L12%2019.2L4.8%2012L12%204.8ZM12%2015.6C12.9548%2015.6001%2013.8705%2015.2209%2014.5457%2014.5459C15.2209%2013.8708%2015.6003%2012.9552%2015.6004%2012.0004C15.6005%2011.0456%2015.2213%2010.1299%2014.5463%209.45471C13.8712%208.7795%2012.9556%208.40011%2012.0008%208.4C11.0461%208.4%2010.1304%208.77928%209.45525%209.45442C8.78012%2010.1295%208.40083%2011.0452%208.40083%2012C8.40083%2012.9548%208.78012%2013.8705%209.45525%2014.5456C10.1304%2015.2207%2011.0461%2015.6%2012.0008%2015.6H12Z'%20fill='white'/%3e%3cg%20id='Rectangle%201'%3e%3c/g%3e%3c/g%3e%3c/svg%3e",Ce=a.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
gap: 12px;
|
|
@@ -19,37 +19,37 @@ import{j as n,r as k}from"./react-BYHuwl8r.js";import{s as a,t as o,b,A as M,L a
|
|
|
19
19
|
transition:
|
|
20
20
|
background 0.15s ease,
|
|
21
21
|
filter 0.15s ease;
|
|
22
|
-
font-family: ${
|
|
22
|
+
font-family: ${r.font.sans};
|
|
23
23
|
font-weight: 600;
|
|
24
24
|
font-size: 15px;
|
|
25
25
|
line-height: 24px;
|
|
26
26
|
letter-spacing: 0.46px;
|
|
27
27
|
text-transform: uppercase;
|
|
28
|
-
color: ${
|
|
28
|
+
color: ${r.colors.softWhite};
|
|
29
29
|
|
|
30
30
|
&:focus-visible {
|
|
31
|
-
outline: 2px solid ${
|
|
31
|
+
outline: 2px solid ${r.colors.accent};
|
|
32
32
|
outline-offset: 2px;
|
|
33
33
|
}
|
|
34
34
|
&:disabled {
|
|
35
35
|
opacity: 0.6;
|
|
36
36
|
cursor: default;
|
|
37
37
|
}
|
|
38
|
-
`,
|
|
38
|
+
`,H=a.button`
|
|
39
39
|
${ie}
|
|
40
|
-
background: ${
|
|
40
|
+
background: ${r.gradients.buyBtn};
|
|
41
41
|
|
|
42
42
|
&:hover:not(:disabled) {
|
|
43
43
|
filter: brightness(1.08);
|
|
44
44
|
}
|
|
45
|
-
`,
|
|
45
|
+
`,I=a.button`
|
|
46
46
|
${ie}
|
|
47
|
-
background: ${
|
|
47
|
+
background: ${r.colors.text2};
|
|
48
48
|
|
|
49
49
|
&:hover:not(:disabled) {
|
|
50
|
-
background: ${
|
|
50
|
+
background: ${r.colors.gray0};
|
|
51
51
|
}
|
|
52
|
-
`,
|
|
52
|
+
`,A=a.span`
|
|
53
53
|
display: inline-flex;
|
|
54
54
|
align-items: center;
|
|
55
55
|
gap: 6px;
|
|
@@ -64,9 +64,9 @@ import{j as n,r as k}from"./react-BYHuwl8r.js";import{s as a,t as o,b,A as M,L a
|
|
|
64
64
|
.ico {
|
|
65
65
|
width: 24px;
|
|
66
66
|
height: 24px;
|
|
67
|
-
background: ${
|
|
67
|
+
background: ${r.colors.softWhite};
|
|
68
68
|
}
|
|
69
|
-
`,
|
|
69
|
+
`,E=a.span`
|
|
70
70
|
position: relative;
|
|
71
71
|
display: block;
|
|
72
72
|
width: 30px;
|
|
@@ -84,69 +84,61 @@ import{j as n,r as k}from"./react-BYHuwl8r.js";import{s as a,t as o,b,A as M,L a
|
|
|
84
84
|
height: 24px;
|
|
85
85
|
display: block;
|
|
86
86
|
}
|
|
87
|
-
`,
|
|
87
|
+
`,Ae=a.span`
|
|
88
88
|
font-size: 13px;
|
|
89
89
|
font-weight: 600;
|
|
90
90
|
letter-spacing: 0.02em;
|
|
91
91
|
opacity: 0.85;
|
|
92
|
-
|
|
92
|
+
`,We=a.span`
|
|
93
93
|
font-size: 18px;
|
|
94
94
|
font-weight: 600;
|
|
95
95
|
opacity: 0.7;
|
|
96
|
-
`,
|
|
97
|
-
margin: 0;
|
|
98
|
-
font-family: ${o.font.sans};
|
|
99
|
-
font-weight: 400;
|
|
100
|
-
font-size: 12px;
|
|
101
|
-
line-height: 1;
|
|
102
|
-
color: ${o.colors.muted};
|
|
103
|
-
text-align: center;
|
|
104
|
-
`,Te=a.p`
|
|
96
|
+
`,ze=a.p`
|
|
105
97
|
margin: -4px 0 0;
|
|
106
|
-
font-family: ${
|
|
98
|
+
font-family: ${r.font.sans};
|
|
107
99
|
font-weight: 400;
|
|
108
100
|
font-size: 12px;
|
|
109
101
|
line-height: 1.4;
|
|
110
|
-
color: ${
|
|
102
|
+
color: ${r.colors.muted};
|
|
111
103
|
text-align: center;
|
|
112
|
-
`;function
|
|
104
|
+
`;function mt({options:e,totalCents:t,onPay:i,busy:o=!1,creditsLabel:d,shortfall:c,showCreditsAmount:m=!0,creditsFallback:x=null}){const w=e.some(p=>p.method==="credits");return n.jsxs(Ce,{children:[!w&&x?n.jsx(H,{type:"button","data-testid":"pay-with-credits-topup",onClick:x.onClick,disabled:o,children:n.jsx("span",{children:x.label})}):null,e.map(p=>p.method==="credits"?n.jsxs(H,{type:"button","data-testid":"pay-with-credits",onClick:()=>i("credits"),disabled:o,children:[n.jsx("span",{children:d??y("buyModal.buy")}),m?n.jsxs(A,{children:[n.jsx(C,{}),n.jsx("span",{children:D(X(p.creditsCents))})]}):null]},"credits"):p.method==="mana"?n.jsxs(I,{type:"button","data-testid":"pay-with-mana",onClick:()=>i("mana"),disabled:o,children:[n.jsx("span",{children:y("buyModal.buyWithMana")}),n.jsxs(A,{children:[n.jsx(E,{children:n.jsx("img",{src:B,alt:"","aria-hidden":!0})}),n.jsx("span",{children:T(p.manaWei)})]})]},"mana"):n.jsxs(I,{type:"button","data-testid":"pay-with-combined",onClick:()=>i("combined"),disabled:o,children:[n.jsx("span",{children:y("buyModal.buyWith")}),n.jsxs(A,{children:[n.jsx(C,{}),n.jsx("span",{children:D(X(p.creditsCents))}),n.jsx(We,{children:"+"}),n.jsx(E,{children:n.jsx("img",{src:B,alt:"","aria-hidden":!0})}),n.jsx("span",{children:T(p.manaWei)}),n.jsx(Ae,{children:"MANA"})]})]},"combined")),c?n.jsxs(n.Fragment,{children:[n.jsxs(I,{type:"button","data-testid":"pay-with-mana-disabled",disabled:!0,children:[n.jsx("span",{children:y("buyModal.buyWithMana")}),n.jsxs(A,{children:[n.jsx(E,{children:n.jsx("img",{src:B,alt:"","aria-hidden":!0})}),n.jsx("span",{children:T(c.manaWei)})]})]},"mana-short"),n.jsx(ze,{"data-testid":"mana-shortfall-note",children:y("buyModal.notEnoughMana")})]}):null,n.jsx("span",{hidden:!0,"data-testid":"pay-total-cents",children:t})]})}function bt(e,t){const i=(o,...d)=>void e.invalidateQueries({queryKey:t?[o,...d]:[o]});e.invalidateQueries({queryKey:["usd-balance"]}),e.invalidateQueries({queryKey:["detail-trade"]}),e.invalidateQueries({queryKey:["shop-item"]}),i("owned-token",t==null?void 0:t.contractAddress,t==null?void 0:t.tokenId),i("public-token",t==null?void 0:t.contractAddress,t==null?void 0:t.tokenId),i("item-resales",t==null?void 0:t.contractAddress,t==null?void 0:t.itemId),e.invalidateQueries({queryKey:["shop-items"]}),e.invalidateQueries({queryKey:["catalog-items"]}),e.invalidateQueries({queryKey:["overview-listings"]}),e.invalidateQueries({queryKey:["upsell-listings"]}),e.invalidateQueries({queryKey:["my-assets"]}),e.invalidateQueries({queryKey:["purchases"]}),e.invalidateQueries({queryKey:["owned-item-count"]})}const $e=ce`
|
|
113
105
|
to { transform: rotate(360deg); }
|
|
114
|
-
`,
|
|
106
|
+
`,Te=a.div`
|
|
115
107
|
position: fixed;
|
|
116
108
|
inset: 0;
|
|
117
|
-
z-index: ${
|
|
109
|
+
z-index: ${r.z.prompt};
|
|
118
110
|
display: flex;
|
|
119
111
|
align-items: center;
|
|
120
112
|
justify-content: center;
|
|
121
113
|
padding: 16px;
|
|
122
114
|
background: rgba(22, 21, 24, 0.55);
|
|
123
|
-
`,
|
|
115
|
+
`,Be=a.div`
|
|
124
116
|
width: 480px;
|
|
125
117
|
max-width: 100%;
|
|
126
118
|
max-height: 92vh;
|
|
127
119
|
overflow-y: auto;
|
|
128
|
-
background: ${
|
|
120
|
+
background: ${r.colors.white};
|
|
129
121
|
border-radius: 16px;
|
|
130
122
|
padding: 12px 16px 16px;
|
|
131
123
|
box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
|
|
132
124
|
display: flex;
|
|
133
125
|
flex-direction: column;
|
|
134
126
|
gap: 20px;
|
|
135
|
-
`,
|
|
127
|
+
`,Ie=a.div`
|
|
136
128
|
display: flex;
|
|
137
129
|
align-items: center;
|
|
138
130
|
justify-content: space-between;
|
|
139
131
|
gap: 8px;
|
|
140
132
|
padding-bottom: 16px;
|
|
141
|
-
border-bottom: 1px solid ${
|
|
142
|
-
`,
|
|
133
|
+
border-bottom: 1px solid ${r.colors.gray4};
|
|
134
|
+
`,Ee=a.h2`
|
|
143
135
|
margin: 0;
|
|
144
|
-
font-family: ${
|
|
136
|
+
font-family: ${r.font.sans};
|
|
145
137
|
font-weight: 600;
|
|
146
138
|
font-size: 20px;
|
|
147
139
|
line-height: 1.6;
|
|
148
|
-
color: ${
|
|
149
|
-
`,
|
|
140
|
+
color: ${r.colors.text};
|
|
141
|
+
`,Ne=a.button`
|
|
150
142
|
flex: none;
|
|
151
143
|
display: grid;
|
|
152
144
|
place-items: center;
|
|
@@ -155,7 +147,7 @@ import{j as n,r as k}from"./react-BYHuwl8r.js";import{s as a,t as o,b,A as M,L a
|
|
|
155
147
|
border: 0;
|
|
156
148
|
background: none;
|
|
157
149
|
cursor: pointer;
|
|
158
|
-
color: ${
|
|
150
|
+
color: ${r.colors.text};
|
|
159
151
|
|
|
160
152
|
.ico {
|
|
161
153
|
width: 18px;
|
|
@@ -166,28 +158,28 @@ import{j as n,r as k}from"./react-BYHuwl8r.js";import{s as a,t as o,b,A as M,L a
|
|
|
166
158
|
cursor: default;
|
|
167
159
|
}
|
|
168
160
|
&:focus-visible {
|
|
169
|
-
outline: 2px solid ${
|
|
161
|
+
outline: 2px solid ${r.colors.accent};
|
|
170
162
|
outline-offset: 2px;
|
|
171
163
|
}
|
|
172
|
-
`,
|
|
164
|
+
`,Pe=a.div`
|
|
173
165
|
display: grid;
|
|
174
166
|
grid-template-columns: 44px 1fr;
|
|
175
167
|
align-items: center;
|
|
176
168
|
gap: 14px;
|
|
177
169
|
padding: 14px 18px;
|
|
178
|
-
background: ${
|
|
179
|
-
border: 1px solid ${
|
|
170
|
+
background: ${r.colors.white};
|
|
171
|
+
border: 1px solid ${r.colors.line};
|
|
180
172
|
border-radius: 16px;
|
|
181
|
-
`,
|
|
173
|
+
`,Se=a.div`
|
|
182
174
|
width: 44px;
|
|
183
175
|
height: 44px;
|
|
184
176
|
border-radius: 10px;
|
|
185
|
-
background: ${
|
|
177
|
+
background: ${r.colors.media};
|
|
186
178
|
overflow: hidden;
|
|
187
179
|
display: flex;
|
|
188
180
|
align-items: center;
|
|
189
181
|
justify-content: center;
|
|
190
|
-
color: ${
|
|
182
|
+
color: ${r.colors.muted2};
|
|
191
183
|
|
|
192
184
|
img {
|
|
193
185
|
width: 100%;
|
|
@@ -198,39 +190,39 @@ import{j as n,r as k}from"./react-BYHuwl8r.js";import{s as a,t as o,b,A as M,L a
|
|
|
198
190
|
width: 26px;
|
|
199
191
|
height: 26px;
|
|
200
192
|
}
|
|
201
|
-
`,
|
|
193
|
+
`,Fe=a.div`
|
|
202
194
|
min-width: 0;
|
|
203
195
|
display: flex;
|
|
204
196
|
flex-direction: column;
|
|
205
197
|
gap: 4px;
|
|
206
|
-
`,
|
|
198
|
+
`,Ve=a.span`
|
|
207
199
|
font-weight: 700;
|
|
208
|
-
color: ${
|
|
209
|
-
`,
|
|
200
|
+
color: ${r.colors.text};
|
|
201
|
+
`,qe=a.span`
|
|
210
202
|
font-size: 13px;
|
|
211
203
|
line-height: 1.45;
|
|
212
|
-
color: ${
|
|
213
|
-
`,
|
|
204
|
+
color: ${r.colors.muted};
|
|
205
|
+
`,Le=a.p`
|
|
214
206
|
margin: 0;
|
|
215
207
|
font-size: 12px;
|
|
216
208
|
line-height: 1.5;
|
|
217
|
-
color: ${
|
|
218
|
-
`,
|
|
209
|
+
color: ${r.colors.muted2};
|
|
210
|
+
`,De=a.div`
|
|
219
211
|
display: flex;
|
|
220
212
|
gap: 12px;
|
|
221
213
|
|
|
222
|
-
${
|
|
214
|
+
${r.media.maxWidth("mobile")} {
|
|
223
215
|
flex-direction: column-reverse;
|
|
224
216
|
}
|
|
225
|
-
`,
|
|
217
|
+
`,Oe=a.button`
|
|
226
218
|
flex: 1 1 0;
|
|
227
219
|
height: 48px;
|
|
228
|
-
border: 2px solid ${
|
|
220
|
+
border: 2px solid ${r.colors.accent};
|
|
229
221
|
border-radius: 12px;
|
|
230
222
|
background: transparent;
|
|
231
|
-
color: ${
|
|
223
|
+
color: ${r.colors.accent};
|
|
232
224
|
cursor: pointer;
|
|
233
|
-
font-family: ${
|
|
225
|
+
font-family: ${r.font.sans};
|
|
234
226
|
font-weight: 600;
|
|
235
227
|
font-size: 13px;
|
|
236
228
|
line-height: 24px;
|
|
@@ -245,10 +237,10 @@ import{j as n,r as k}from"./react-BYHuwl8r.js";import{s as a,t as o,b,A as M,L a
|
|
|
245
237
|
opacity: 0.5;
|
|
246
238
|
}
|
|
247
239
|
&:focus-visible {
|
|
248
|
-
outline: 2px solid ${
|
|
240
|
+
outline: 2px solid ${r.colors.accent};
|
|
249
241
|
outline-offset: 2px;
|
|
250
242
|
}
|
|
251
|
-
`,
|
|
243
|
+
`,Xe=a.button`
|
|
252
244
|
flex: 1 1 0;
|
|
253
245
|
display: inline-flex;
|
|
254
246
|
align-items: center;
|
|
@@ -257,10 +249,10 @@ import{j as n,r as k}from"./react-BYHuwl8r.js";import{s as a,t as o,b,A as M,L a
|
|
|
257
249
|
height: 48px;
|
|
258
250
|
border: 0;
|
|
259
251
|
border-radius: 12px;
|
|
260
|
-
background: ${
|
|
261
|
-
color: ${
|
|
252
|
+
background: ${r.colors.accent};
|
|
253
|
+
color: ${r.colors.softWhite};
|
|
262
254
|
cursor: pointer;
|
|
263
|
-
font-family: ${
|
|
255
|
+
font-family: ${r.font.sans};
|
|
264
256
|
font-weight: 600;
|
|
265
257
|
font-size: 13px;
|
|
266
258
|
line-height: 24px;
|
|
@@ -268,39 +260,39 @@ import{j as n,r as k}from"./react-BYHuwl8r.js";import{s as a,t as o,b,A as M,L a
|
|
|
268
260
|
text-transform: uppercase;
|
|
269
261
|
|
|
270
262
|
&:hover:not(:disabled) {
|
|
271
|
-
background: ${
|
|
263
|
+
background: ${r.colors.accentHover};
|
|
272
264
|
}
|
|
273
265
|
&:disabled {
|
|
274
266
|
cursor: default;
|
|
275
267
|
background: rgba(105, 31, 169, 0.4);
|
|
276
268
|
}
|
|
277
269
|
&:focus-visible {
|
|
278
|
-
outline: 2px solid ${
|
|
270
|
+
outline: 2px solid ${r.colors.accent};
|
|
279
271
|
outline-offset: 2px;
|
|
280
272
|
}
|
|
281
|
-
`,
|
|
273
|
+
`,He=a.span`
|
|
282
274
|
width: 16px;
|
|
283
275
|
height: 16px;
|
|
284
276
|
border-radius: 50%;
|
|
285
277
|
border: 2px solid rgba(255, 255, 255, 0.5);
|
|
286
|
-
border-top-color: ${
|
|
287
|
-
animation: ${
|
|
278
|
+
border-top-color: ${r.colors.white};
|
|
279
|
+
animation: ${$e} 0.7s linear infinite;
|
|
288
280
|
|
|
289
281
|
@media (prefers-reduced-motion: reduce) {
|
|
290
282
|
animation: none;
|
|
291
283
|
}
|
|
292
|
-
`;function
|
|
284
|
+
`;function wt({auth:e,signer:t,title:i,reason:o,name:d,image:c,icon:m,onAuthorized:x,onCancel:w,onClose:p}){const[h,b]=k.useState(!1),[u,l]=k.useState(null);async function v(){b(!0),l(null);try{await ue({auth:e,signer:t,active:!0}),x()}catch(g){xe(g)?l(y("authorizeStep.errorRejected")):(le(g,{flow:"authorize_step",kind:e.kind}),l(y("authorizeStep.errorGeneric"))),b(!1)}}return n.jsx(Te,{onClick:h?void 0:p,role:"presentation","data-testid":"authorize-step-scrim",children:n.jsxs(Be,{onClick:g=>g.stopPropagation(),role:"dialog","aria-modal":"true","aria-label":i,children:[n.jsxs(Ie,{children:[n.jsx(Ee,{children:i}),n.jsx(Ne,{onClick:p,disabled:h,"aria-label":y("authorizeStep.close"),children:n.jsx(K,{name:"close",className:"ico"})})]}),n.jsxs(Pe,{"data-testid":"authorize-step-row",children:[n.jsx(Se,{children:c?n.jsx("img",{src:c,alt:""}):m}),n.jsxs(Fe,{children:[n.jsx(Ve,{title:d,children:d}),n.jsx(qe,{children:o})]})]}),n.jsx(Le,{children:y("authorizeStep.note")}),n.jsx(ge,{message:u}),n.jsxs(De,{children:[n.jsx(Oe,{type:"button",onClick:w,disabled:h,children:y("authorizeStep.cancel")}),n.jsx(Xe,{type:"button","data-testid":"authorize-step-action",onClick:()=>void v(),disabled:h,children:h?n.jsxs(n.Fragment,{children:[n.jsx(He,{"aria-hidden":!0}),y("authorizeStep.authorizing")]}):y("authorizeStep.authorize")})]})]})})}const yt="data:image/webp;base64,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",vt="https://cdn.decentraland.org/@dcl/shop/1.4.2-31318792168.commit-63acc2c/_assets/buy-error-22UunaPC.png";async function kt(e){const[t]=await re({...e,trades:[e.trade]});return t}async function jt(e){const[t]=await re({...e,trades:[],mints:[e.mint]});return t}async function re(e){const{trades:t,mints:i=[],buyer:o,signer:d,onSigned:c,manaWei:m}=e;if(t.length===0&&i.length===0)throw new Error("No items to buy");const x=new Map;for(const h of t){const b=`${h.chainId}:${h.contract.toLowerCase()}`,u=x.get(b);u?u.push(h):x.set(b,[h])}const w=new Map;for(const h of i){const b=w.get(h.chainId);b?b.push(h):w.set(h.chainId,[h])}const p=[];for(const h of x.values())p.push(await Re({trades:h,buyer:o,signer:d,onSigned:c,requiredManaWei:m}));for(const[h,b]of w){const u=m??b.reduce((l,v)=>l+BigInt(v.item.priceWei),0n);p.push(await Ke({mints:b,chainId:h,buyer:o,signer:d,onSigned:c,requiredManaWei:u}))}return p}async function Re(e){const{trades:t,buyer:i,signer:o,onSigned:d,requiredManaWei:c}=e,m=t[0],x=j(Q(m.contract),m.chainId),w=j(M.MANAToken,m.chainId);await P({auth:{kind:S.Allowance,contractAddress:w.address,spenderAddress:x.address,chainId:m.chainId},signer:o,requiredWei:c});const p=t.map(l=>me(l,i));if(z.enabled)try{const l=new ye(x.abi).encodeFunctionData("accept",[p]),v=Z(),g=J(o.provider,v),f=await ee(g,v,l,x,{serverURL:z.relayerUrl});return d==null||d(),await G(f,"the MANA purchase"),f}catch(l){if(l instanceof te&&l.code===ae.USER_DENIED||l instanceof Y)throw l;console.warn("[buyWithMana] gasless meta-tx failed, falling back to a direct tx:",l)}await U(o.provider,m.chainId);const b=await new ne(x.address,x.abi,o).accept(p,_(m.chainId));return d==null||d(),(await b.wait()).transactionHash}async function Ke(e){const{mints:t,chainId:i,buyer:o,signer:d,onSigned:c,requiredManaWei:m}=e,x=j(M.CollectionStore,i),w=j(M.MANAToken,i),p=t.map(l=>l.item);if(await P({auth:{kind:S.Allowance,contractAddress:w.address,spenderAddress:x.address,chainId:i},signer:d,requiredWei:m}),z.enabled)try{const l=be(p,o,x.abi),v=Z(),g=J(d.provider,v),f=await ee(g,v,l,x,{serverURL:z.relayerUrl});return c==null||c(),await G(f,"the MANA purchase"),f}catch(l){if(l instanceof te&&l.code===ae.USER_DENIED||l instanceof Y)throw l;console.warn("[buyMintWithMana] gasless meta-tx failed, falling back to a direct tx:",l)}await U(d.provider,i);const b=await new ne(x.address,x.abi,d).buy(we(p,o),_(i));return c==null||c(),(await b.wait()).transactionHash}async function Mt(e){const{trade:t,...i}=e;return oe({target:{kind:"trade",trade:t},...i})}async function Ct(e){const{mint:t,...i}=e;return oe({target:{kind:"store",mint:t},...i})}async function oe(e){const{target:t,buyer:i,signer:o,credits:d,manaGapWei:c,onBroadcast:m,onReverted:x}=e;if(d.length===0)throw new Error("No credits to spend — use the MANA-only rail for that");if(c<=0n)throw new Error("No MANA gap to cover — use the credits-only rail for that");const w=se(t),p=j(M.MANAToken,w),h=j(M.CreditsManager,w);await P({auth:{kind:S.Allowance,contractAddress:p.address,spenderAddress:h.address,chainId:w},signer:o,requiredWei:c});const u=(d.reduce((l,v)=>l+BigInt(v.availableAmount),0n)+c).toString();return fe({purchase:Qe(t,d,u),buyer:i,signer:o,onBroadcast:m,onReverted:x})}function se(e){return e.kind==="trade"?e.trade.chainId:e.mint.chainId}function Qe(e,t,i){return e.kind==="trade"?{kind:"trade",trade:e.trade,credits:t,maxCreditedValue:i}:{kind:"store",item:e.mint.item,chainId:e.mint.chainId,credits:t,maxCreditedValue:i}}function At(e,t){const i=se(t);return e==="combined"?{spender:j(M.CreditsManager,i).address,chainId:i}:{spender:t.kind==="trade"?j(Q(t.trade.contract),i).address:j(M.CollectionStore,i).address,chainId:i}}function Wt(e){return n.jsx("svg",{viewBox:"0 0 18 18",width:"18",height:"18","aria-hidden":!0,...e,children:n.jsx("path",{d:"M4 4l10 10M14 4L4 14",stroke:"#161518",strokeWidth:"1.8",strokeLinecap:"round"})})}function zt(e){return n.jsx("svg",{viewBox:"0 0 20 20",width:"24",height:"24","aria-hidden":!0,...e,children:n.jsx("path",{fill:"#f48221",d:"M10 0a10 10 0 1 1 0 20 10 10 0 0 1 0-20Zm0 2a8 8 0 1 0 0 16 8 8 0 0 0 0-16Zm0 11a1 1 0 1 1 0 2 1 1 0 0 1 0-2Zm0-8a1 1 0 0 1 1 1v5a1 1 0 1 1-2 0V6a1 1 0 0 1 1-1Z"})})}const{colors:s,gradients:F,radius:de,z:Ue}=r,$t=a.div`
|
|
293
285
|
position: fixed;
|
|
294
286
|
inset: 0;
|
|
295
|
-
z-index: ${
|
|
287
|
+
z-index: ${Ue.overlay};
|
|
296
288
|
display: flex;
|
|
297
289
|
overflow-y: auto;
|
|
298
290
|
padding: 20px;
|
|
299
|
-
`,
|
|
291
|
+
`,Tt=a.div`
|
|
300
292
|
position: fixed;
|
|
301
293
|
inset: 0;
|
|
302
294
|
background: rgba(22, 21, 24, 0.45);
|
|
303
|
-
`,
|
|
295
|
+
`,Bt=a.div`
|
|
304
296
|
position: relative;
|
|
305
297
|
z-index: 1;
|
|
306
298
|
margin: auto;
|
|
@@ -317,7 +309,7 @@ import{j as n,r as k}from"./react-BYHuwl8r.js";import{s as a,t as o,b,A as M,L a
|
|
|
317
309
|
edge instead of painting its buttons out on the scrim. */
|
|
318
310
|
max-height: 100%;
|
|
319
311
|
overflow: hidden;
|
|
320
|
-
background: ${
|
|
312
|
+
background: ${s.white};
|
|
321
313
|
border-radius: 16px;
|
|
322
314
|
padding: 12px 16px 16px;
|
|
323
315
|
box-shadow: 0 24px 60px rgba(22, 21, 24, 0.28);
|
|
@@ -330,46 +322,46 @@ import{j as n,r as k}from"./react-BYHuwl8r.js";import{s as a,t as o,b,A as M,L a
|
|
|
330
322
|
min-height: 379px;
|
|
331
323
|
justify-content: space-between;
|
|
332
324
|
}
|
|
333
|
-
`,
|
|
325
|
+
`,It=a.div`
|
|
334
326
|
display: flex;
|
|
335
327
|
flex-direction: column;
|
|
336
328
|
gap: 4px;
|
|
337
329
|
padding-bottom: 16px;
|
|
338
|
-
border-bottom: 1px solid ${
|
|
339
|
-
`,
|
|
330
|
+
border-bottom: 1px solid ${s.gray4};
|
|
331
|
+
`,Et=a.div`
|
|
340
332
|
display: flex;
|
|
341
333
|
align-items: flex-start;
|
|
342
334
|
justify-content: space-between;
|
|
343
335
|
gap: 8px;
|
|
344
|
-
`,
|
|
336
|
+
`,Nt=a.h2`
|
|
345
337
|
margin: 0;
|
|
346
338
|
font-size: 20px;
|
|
347
339
|
font-weight: 700;
|
|
348
340
|
line-height: 1.6;
|
|
349
|
-
color: ${
|
|
350
|
-
`,
|
|
341
|
+
color: ${s.text};
|
|
342
|
+
`,Pt=a.button`
|
|
351
343
|
flex-shrink: 0;
|
|
352
344
|
border: 0;
|
|
353
345
|
background: transparent;
|
|
354
346
|
cursor: pointer;
|
|
355
347
|
padding: 2px;
|
|
356
348
|
line-height: 0;
|
|
357
|
-
`,
|
|
349
|
+
`,St=a.div`
|
|
358
350
|
display: flex;
|
|
359
351
|
align-items: center;
|
|
360
352
|
gap: 4px;
|
|
361
|
-
`,
|
|
353
|
+
`,Ft=a.span`
|
|
362
354
|
font-size: 14px;
|
|
363
355
|
font-weight: 600;
|
|
364
|
-
color: ${
|
|
365
|
-
`,
|
|
356
|
+
color: ${s.muted1};
|
|
357
|
+
`,Vt=a(C)`
|
|
366
358
|
width: 14px;
|
|
367
359
|
height: 14px;
|
|
368
|
-
background: ${
|
|
369
|
-
`,
|
|
360
|
+
background: ${s.text};
|
|
361
|
+
`,qt=a.span`
|
|
370
362
|
font-size: 14px;
|
|
371
|
-
color: ${
|
|
372
|
-
`,
|
|
363
|
+
color: ${s.text};
|
|
364
|
+
`,Lt=a.div`
|
|
373
365
|
display: flex;
|
|
374
366
|
flex-direction: column;
|
|
375
367
|
gap: 24px;
|
|
@@ -387,19 +379,19 @@ import{j as n,r as k}from"./react-BYHuwl8r.js";import{s as a,t as o,b,A as M,L a
|
|
|
387
379
|
gap: 32px;
|
|
388
380
|
padding: 24px 0;
|
|
389
381
|
}
|
|
390
|
-
`,
|
|
382
|
+
`,Dt=a.div`
|
|
391
383
|
display: flex;
|
|
392
384
|
gap: 24px;
|
|
393
385
|
align-items: center;
|
|
394
386
|
|
|
395
|
-
${
|
|
387
|
+
${r.media.maxWidth("mobile")} {
|
|
396
388
|
gap: 12px;
|
|
397
389
|
}
|
|
398
|
-
`,
|
|
390
|
+
`,Ot=a.div`
|
|
399
391
|
flex-shrink: 0;
|
|
400
392
|
width: 110px;
|
|
401
393
|
height: 110px;
|
|
402
|
-
background: ${
|
|
394
|
+
background: ${s.media};
|
|
403
395
|
border-radius: 8px;
|
|
404
396
|
display: grid;
|
|
405
397
|
place-items: center;
|
|
@@ -412,38 +404,38 @@ import{j as n,r as k}from"./react-BYHuwl8r.js";import{s as a,t as o,b,A as M,L a
|
|
|
412
404
|
filter: drop-shadow(0.7px 2.9px 3.7px rgba(0, 0, 0, 0.1));
|
|
413
405
|
}
|
|
414
406
|
|
|
415
|
-
${
|
|
407
|
+
${r.media.maxWidth("mobile")} {
|
|
416
408
|
width: 78px;
|
|
417
409
|
height: 78px;
|
|
418
410
|
border-radius: 7px;
|
|
419
411
|
}
|
|
420
|
-
`,
|
|
412
|
+
`,Xt=a.div`
|
|
421
413
|
flex: 1;
|
|
422
414
|
min-width: 0;
|
|
423
415
|
display: flex;
|
|
424
416
|
flex-direction: column;
|
|
425
417
|
justify-content: center;
|
|
426
418
|
gap: 4px;
|
|
427
|
-
`,
|
|
419
|
+
`,Ht=a.div`
|
|
428
420
|
font-size: 18px;
|
|
429
421
|
font-weight: 700;
|
|
430
422
|
line-height: 1.3;
|
|
431
|
-
color: ${
|
|
423
|
+
color: ${s.text};
|
|
432
424
|
overflow: hidden;
|
|
433
425
|
text-overflow: ellipsis;
|
|
434
426
|
|
|
435
|
-
${
|
|
427
|
+
${r.media.maxWidth("mobile")} {
|
|
436
428
|
font-size: 16px;
|
|
437
429
|
}
|
|
438
|
-
`,
|
|
430
|
+
`,Rt=a(pe)`
|
|
439
431
|
font-size: 12px;
|
|
440
432
|
line-height: 1.43;
|
|
441
|
-
color: ${
|
|
433
|
+
color: ${s.muted};
|
|
442
434
|
|
|
443
|
-
${
|
|
435
|
+
${r.media.maxWidth("mobile")} {
|
|
444
436
|
font-size: 10px;
|
|
445
437
|
}
|
|
446
|
-
`,
|
|
438
|
+
`,Kt=a.div`
|
|
447
439
|
display: flex;
|
|
448
440
|
align-items: center;
|
|
449
441
|
gap: 6px;
|
|
@@ -452,19 +444,19 @@ import{j as n,r as k}from"./react-BYHuwl8r.js";import{s as a,t as o,b,A as M,L a
|
|
|
452
444
|
& span {
|
|
453
445
|
font-size: 18px;
|
|
454
446
|
font-weight: 700;
|
|
455
|
-
color: ${
|
|
447
|
+
color: ${s.text2};
|
|
456
448
|
}
|
|
457
449
|
|
|
458
|
-
${
|
|
450
|
+
${r.media.maxWidth("mobile")} {
|
|
459
451
|
& span {
|
|
460
452
|
font-size: 20px;
|
|
461
453
|
}
|
|
462
454
|
}
|
|
463
|
-
`,
|
|
455
|
+
`,Qt=a(C)`
|
|
464
456
|
width: 18px;
|
|
465
457
|
height: 18px;
|
|
466
|
-
background: ${
|
|
467
|
-
`,
|
|
458
|
+
background: ${s.text2};
|
|
459
|
+
`,Ut=a.div`
|
|
468
460
|
display: flex;
|
|
469
461
|
align-items: flex-start;
|
|
470
462
|
gap: 12px;
|
|
@@ -476,33 +468,33 @@ import{j as n,r as k}from"./react-BYHuwl8r.js";import{s as a,t as o,b,A as M,L a
|
|
|
476
468
|
flex-shrink: 0;
|
|
477
469
|
}
|
|
478
470
|
|
|
479
|
-
${
|
|
471
|
+
${r.media.maxWidth("mobile")} {
|
|
480
472
|
align-items: center;
|
|
481
473
|
gap: 8px;
|
|
482
474
|
padding: 12px 8px;
|
|
483
475
|
}
|
|
484
|
-
`,
|
|
476
|
+
`,Zt=a.p`
|
|
485
477
|
margin: 0;
|
|
486
478
|
font-size: 14px;
|
|
487
479
|
line-height: 1.334;
|
|
488
|
-
color: ${
|
|
480
|
+
color: ${s.text2};
|
|
489
481
|
|
|
490
482
|
& b {
|
|
491
483
|
font-weight: 700;
|
|
492
484
|
}
|
|
493
|
-
`,
|
|
485
|
+
`,Jt=a.a`
|
|
494
486
|
display: inline-block;
|
|
495
487
|
margin-top: 4px;
|
|
496
488
|
font-size: 14px;
|
|
497
489
|
font-weight: 600;
|
|
498
490
|
line-height: 1.334;
|
|
499
|
-
color: ${
|
|
491
|
+
color: ${s.text2};
|
|
500
492
|
text-decoration: underline;
|
|
501
493
|
|
|
502
494
|
&:hover {
|
|
503
|
-
color: ${
|
|
495
|
+
color: ${s.accent};
|
|
504
496
|
}
|
|
505
|
-
`,
|
|
497
|
+
`,Gt=a.div`
|
|
506
498
|
display: flex;
|
|
507
499
|
flex-wrap: wrap;
|
|
508
500
|
gap: 12px;
|
|
@@ -514,18 +506,18 @@ import{j as n,r as k}from"./react-BYHuwl8r.js";import{s as a,t as o,b,A as M,L a
|
|
|
514
506
|
sharing a line and claimed a full row: the four landed 2/1/1, three rows tall. That extra row is
|
|
515
507
|
also what pushed the total under the sticky CTAs. The tracks are minmax(0, 1fr), not 1fr, so a
|
|
516
508
|
long price shrinks the text inside the tile instead of widening the column past the card. */
|
|
517
|
-
${
|
|
509
|
+
${r.media.maxWidth("mobile")} {
|
|
518
510
|
display: grid;
|
|
519
511
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
520
512
|
gap: 16px 12px;
|
|
521
513
|
}
|
|
522
|
-
`,
|
|
514
|
+
`,Yt=a.button`
|
|
523
515
|
/* Wide enough to stay readable, so a narrow card wraps the tiles onto a second row instead of
|
|
524
516
|
squeezing four of them into one. */
|
|
525
517
|
flex: 1 1 140px;
|
|
526
518
|
height: 109px;
|
|
527
|
-
border: 1px solid ${
|
|
528
|
-
background: ${
|
|
519
|
+
border: 1px solid ${s.muted2};
|
|
520
|
+
background: ${s.media};
|
|
529
521
|
border-radius: 16px;
|
|
530
522
|
display: flex;
|
|
531
523
|
align-items: center;
|
|
@@ -547,7 +539,7 @@ import{j as n,r as k}from"./react-BYHuwl8r.js";import{s as a,t as o,b,A as M,L a
|
|
|
547
539
|
padding: 0;
|
|
548
540
|
border-color: transparent;
|
|
549
541
|
border-width: 4px;
|
|
550
|
-
background-image: linear-gradient(${
|
|
542
|
+
background-image: linear-gradient(${s.media}, ${s.media}), ${F.buyBtn};
|
|
551
543
|
background-origin: border-box;
|
|
552
544
|
background-clip: padding-box, border-box;
|
|
553
545
|
}
|
|
@@ -557,7 +549,7 @@ import{j as n,r as k}from"./react-BYHuwl8r.js";import{s as a,t as o,b,A as M,L a
|
|
|
557
549
|
transform: scale(1.03);
|
|
558
550
|
}
|
|
559
551
|
|
|
560
|
-
${
|
|
552
|
+
${r.media.maxWidth("mobile")} {
|
|
561
553
|
height: 83px;
|
|
562
554
|
gap: 6px;
|
|
563
555
|
/* A grid item defaults to min-width:auto, which would let the widest price push the tile out of
|
|
@@ -570,47 +562,47 @@ import{j as n,r as k}from"./react-BYHuwl8r.js";import{s as a,t as o,b,A as M,L a
|
|
|
570
562
|
transform: none;
|
|
571
563
|
}
|
|
572
564
|
}
|
|
573
|
-
`,
|
|
565
|
+
`,_t=a.img`
|
|
574
566
|
width: 24px;
|
|
575
567
|
height: 26px;
|
|
576
568
|
flex: none;
|
|
577
|
-
`,
|
|
569
|
+
`,ea=a.span`
|
|
578
570
|
font-size: 24px;
|
|
579
571
|
font-weight: 500;
|
|
580
|
-
color: ${
|
|
581
|
-
`,
|
|
572
|
+
color: ${s.text};
|
|
573
|
+
`,ta=a.span`
|
|
582
574
|
font-size: 14px;
|
|
583
|
-
color: ${
|
|
584
|
-
`,
|
|
575
|
+
color: ${s.text};
|
|
576
|
+
`,aa=a.div`
|
|
585
577
|
display: flex;
|
|
586
578
|
align-items: center;
|
|
587
579
|
justify-content: space-between;
|
|
588
|
-
border-top: 1px solid ${
|
|
580
|
+
border-top: 1px solid ${s.gray4};
|
|
589
581
|
padding-top: 12px;
|
|
590
|
-
`,
|
|
582
|
+
`,na=a.div`
|
|
591
583
|
display: flex;
|
|
592
584
|
align-items: center;
|
|
593
585
|
gap: 8px;
|
|
594
586
|
font-size: 24px;
|
|
595
587
|
font-weight: 700;
|
|
596
|
-
color: ${
|
|
597
|
-
`,
|
|
588
|
+
color: ${s.text};
|
|
589
|
+
`,ia=a(C)`
|
|
598
590
|
width: 30px;
|
|
599
591
|
height: 30px;
|
|
600
|
-
background: ${
|
|
601
|
-
`,
|
|
592
|
+
background: ${s.text};
|
|
593
|
+
`,ra=a.span`
|
|
602
594
|
font-size: 14px;
|
|
603
595
|
font-weight: 600;
|
|
604
|
-
color: ${
|
|
605
|
-
`,
|
|
596
|
+
color: ${s.muted1};
|
|
597
|
+
`,oa=a.div`
|
|
606
598
|
position: sticky;
|
|
607
599
|
bottom: 0;
|
|
608
600
|
display: flex;
|
|
609
601
|
gap: 12px;
|
|
610
602
|
margin-top: -8px;
|
|
611
603
|
padding-top: 8px;
|
|
612
|
-
background: ${
|
|
613
|
-
`,
|
|
604
|
+
background: ${s.white};
|
|
605
|
+
`,sa=a.button`
|
|
614
606
|
flex: 1;
|
|
615
607
|
/* Let the CTAs shrink so their min-content can't widen the modal past the viewport on mobile. */
|
|
616
608
|
min-width: 0;
|
|
@@ -633,50 +625,50 @@ import{j as n,r as k}from"./react-BYHuwl8r.js";import{s as a,t as o,b,A as M,L a
|
|
|
633
625
|
/* The design system's primary fill (Figma 738:53266 "BUY Button") — the same gradient the cart's
|
|
634
626
|
CHECKOUT carries, so the two ends of the buy flow match. */
|
|
635
627
|
&[data-variant='gradient'] {
|
|
636
|
-
background: ${
|
|
637
|
-
color: ${
|
|
628
|
+
background: ${F.buyBtn};
|
|
629
|
+
color: ${s.softWhite};
|
|
638
630
|
}
|
|
639
631
|
&[data-variant='gradient']:hover:not(:disabled),
|
|
640
632
|
&[data-variant='gradient']:active:not(:disabled) {
|
|
641
|
-
background-image: linear-gradient(${
|
|
633
|
+
background-image: linear-gradient(${s.dclRed}, ${s.dclRed});
|
|
642
634
|
}
|
|
643
635
|
&[data-variant='outline'] {
|
|
644
636
|
background: transparent;
|
|
645
|
-
border: 0.5px solid ${
|
|
646
|
-
color: ${
|
|
637
|
+
border: 0.5px solid ${s.text};
|
|
638
|
+
color: ${s.text2};
|
|
647
639
|
font-size: 13px;
|
|
648
640
|
}
|
|
649
641
|
/* Figma's outlined hover (738:53251), which on this light card is the readable half of the pair: the
|
|
650
642
|
white-fill hover the dark-field buttons take would be invisible here. Same treatment as the
|
|
651
643
|
drawer's dismissing CTA (CartPopover ctaCss) — the two sit in one flow. */
|
|
652
644
|
&[data-variant='outline']:hover:not(:disabled) {
|
|
653
|
-
background: ${
|
|
654
|
-
color: ${
|
|
645
|
+
background: ${s.text2};
|
|
646
|
+
color: ${s.softWhite};
|
|
655
647
|
}
|
|
656
648
|
&[data-variant='ruby'] {
|
|
657
|
-
background: ${
|
|
658
|
-
color: ${
|
|
649
|
+
background: ${s.dclRed};
|
|
650
|
+
color: ${s.softWhite};
|
|
659
651
|
font-size: 13px;
|
|
660
652
|
letter-spacing: 0.61px;
|
|
661
653
|
}
|
|
662
654
|
// Solid accent fill (the error state's "Try again").
|
|
663
655
|
&[data-variant='purple'] {
|
|
664
|
-
background: ${
|
|
665
|
-
color: ${
|
|
656
|
+
background: ${s.accent};
|
|
657
|
+
color: ${s.softWhite};
|
|
666
658
|
font-size: 13px;
|
|
667
659
|
}
|
|
668
660
|
&:hover:not(:disabled),
|
|
669
661
|
&[data-variant='purple']:hover:not(:disabled) {
|
|
670
|
-
background: ${
|
|
662
|
+
background: ${s.accentHover};
|
|
671
663
|
}
|
|
672
664
|
&:disabled {
|
|
673
665
|
opacity: 0.6;
|
|
674
666
|
cursor: default;
|
|
675
667
|
}
|
|
676
|
-
`,
|
|
668
|
+
`,da=a.img`
|
|
677
669
|
width: 61px;
|
|
678
670
|
height: 61px;
|
|
679
|
-
`,
|
|
671
|
+
`,ca=a.div`
|
|
680
672
|
display: flex;
|
|
681
673
|
flex-direction: column;
|
|
682
674
|
align-items: center;
|
|
@@ -684,39 +676,39 @@ import{j as n,r as k}from"./react-BYHuwl8r.js";import{s as a,t as o,b,A as M,L a
|
|
|
684
676
|
background: rgba(255, 201, 213, 0.5);
|
|
685
677
|
border-radius: 16px;
|
|
686
678
|
padding: 24px 16px;
|
|
687
|
-
`,
|
|
679
|
+
`,la=a.img`
|
|
688
680
|
width: 64px;
|
|
689
681
|
height: 80px;
|
|
690
682
|
object-fit: contain;
|
|
691
|
-
`,
|
|
683
|
+
`,pa=a.p`
|
|
692
684
|
margin: 0;
|
|
693
685
|
text-align: center;
|
|
694
686
|
font-size: 20px;
|
|
695
687
|
line-height: 1.334;
|
|
696
688
|
font-weight: 400;
|
|
697
|
-
color: ${
|
|
689
|
+
color: ${s.text2};
|
|
698
690
|
|
|
699
691
|
& b {
|
|
700
692
|
font-weight: 700;
|
|
701
693
|
}
|
|
702
|
-
`,
|
|
694
|
+
`,ha=a.div`
|
|
703
695
|
font-size: 20px;
|
|
704
696
|
font-weight: 700;
|
|
705
|
-
color: ${
|
|
697
|
+
color: ${s.text2};
|
|
706
698
|
text-align: center;
|
|
707
|
-
`,
|
|
699
|
+
`,ua=a.div`
|
|
708
700
|
width: 100%;
|
|
709
701
|
max-width: 456px;
|
|
710
702
|
height: 12px;
|
|
711
|
-
background: ${
|
|
703
|
+
background: ${s.media};
|
|
712
704
|
border-radius: 100px;
|
|
713
705
|
overflow: hidden;
|
|
714
|
-
`,
|
|
706
|
+
`,xa=a.span`
|
|
715
707
|
display: block;
|
|
716
708
|
height: 100%;
|
|
717
709
|
width: 40%;
|
|
718
710
|
border-radius: 100px;
|
|
719
|
-
background: ${
|
|
711
|
+
background: ${F.amethyst};
|
|
720
712
|
animation: buy-modal-progress 1.1s ease-in-out infinite;
|
|
721
713
|
|
|
722
714
|
@keyframes buy-modal-progress {
|
|
@@ -733,7 +725,7 @@ import{j as n,r as k}from"./react-BYHuwl8r.js";import{s as a,t as o,b,A as M,L a
|
|
|
733
725
|
min-width: 12px;
|
|
734
726
|
transition: width 0.35s ease;
|
|
735
727
|
}
|
|
736
|
-
`,
|
|
728
|
+
`,ga=a.div`
|
|
737
729
|
display: flex;
|
|
738
730
|
flex-direction: column;
|
|
739
731
|
align-items: center;
|
|
@@ -755,11 +747,11 @@ import{j as n,r as k}from"./react-BYHuwl8r.js";import{s as a,t as o,b,A as M,L a
|
|
|
755
747
|
padding: 16px;
|
|
756
748
|
}
|
|
757
749
|
}
|
|
758
|
-
`,
|
|
750
|
+
`,fa=a.p`
|
|
759
751
|
margin: 0;
|
|
760
752
|
font-size: 20px;
|
|
761
753
|
line-height: 1.334;
|
|
762
|
-
color: ${
|
|
754
|
+
color: ${s.text2};
|
|
763
755
|
text-align: center;
|
|
764
756
|
|
|
765
757
|
& b {
|
|
@@ -775,25 +767,25 @@ import{j as n,r as k}from"./react-BYHuwl8r.js";import{s as a,t as o,b,A as M,L a
|
|
|
775
767
|
text-align: center;
|
|
776
768
|
}
|
|
777
769
|
}
|
|
778
|
-
`,{colors:
|
|
770
|
+
`,{colors:V,media:W}=r,Ze=a.section`
|
|
779
771
|
margin-top: 40px;
|
|
780
|
-
`,
|
|
772
|
+
`,Je=a.div`
|
|
781
773
|
display: flex;
|
|
782
774
|
align-items: center;
|
|
783
775
|
justify-content: space-between;
|
|
784
776
|
margin-bottom: 20px;
|
|
785
|
-
`,
|
|
777
|
+
`,Ge=a.h2`
|
|
786
778
|
font-size: 22px;
|
|
787
779
|
font-weight: 700;
|
|
788
|
-
color: ${
|
|
789
|
-
`,
|
|
780
|
+
color: ${V.softWhite};
|
|
781
|
+
`,Ye=a.button`
|
|
790
782
|
display: inline-flex;
|
|
791
783
|
align-items: center;
|
|
792
784
|
gap: 4px;
|
|
793
785
|
background: none;
|
|
794
786
|
border: 0;
|
|
795
787
|
padding: 0;
|
|
796
|
-
color: ${
|
|
788
|
+
color: ${V.softWhite};
|
|
797
789
|
font-weight: 700;
|
|
798
790
|
font-size: 13px;
|
|
799
791
|
letter-spacing: 0.046em;
|
|
@@ -804,11 +796,11 @@ import{j as n,r as k}from"./react-BYHuwl8r.js";import{s as a,t as o,b,A as M,L a
|
|
|
804
796
|
&:hover {
|
|
805
797
|
text-decoration: underline;
|
|
806
798
|
}
|
|
807
|
-
`,
|
|
799
|
+
`,_e=a(K)`
|
|
808
800
|
transform: rotate(-90deg);
|
|
809
|
-
`,
|
|
801
|
+
`,et=a.div`
|
|
810
802
|
position: relative;
|
|
811
|
-
`,
|
|
803
|
+
`,R=a.button`
|
|
812
804
|
position: absolute;
|
|
813
805
|
top: 112px;
|
|
814
806
|
transform: translateY(-50%);
|
|
@@ -852,10 +844,10 @@ import{j as n,r as k}from"./react-BYHuwl8r.js";import{s as a,t as o,b,A as M,L a
|
|
|
852
844
|
@media (prefers-reduced-motion: reduce) {
|
|
853
845
|
transition: none;
|
|
854
846
|
}
|
|
855
|
-
${
|
|
847
|
+
${W.maxWidth("lg")} {
|
|
856
848
|
display: none;
|
|
857
849
|
}
|
|
858
|
-
`,
|
|
850
|
+
`,tt=a.div`
|
|
859
851
|
display: grid;
|
|
860
852
|
grid-auto-flow: column;
|
|
861
853
|
grid-auto-columns: calc((100% - 64px) / 5);
|
|
@@ -874,22 +866,22 @@ import{j as n,r as k}from"./react-BYHuwl8r.js";import{s as a,t as o,b,A as M,L a
|
|
|
874
866
|
& > * {
|
|
875
867
|
scroll-snap-align: start;
|
|
876
868
|
}
|
|
877
|
-
${
|
|
869
|
+
${W.maxWidth("xl")} {
|
|
878
870
|
grid-auto-columns: calc((100% - 48px) / 4);
|
|
879
871
|
}
|
|
880
|
-
${
|
|
872
|
+
${W.maxWidth("lg")} {
|
|
881
873
|
grid-auto-columns: calc((100% - 32px) / 3);
|
|
882
874
|
}
|
|
883
|
-
${
|
|
875
|
+
${W.maxWidth("sm")} {
|
|
884
876
|
grid-auto-columns: calc((100% - 16px) / 2);
|
|
885
877
|
}
|
|
886
|
-
`,
|
|
878
|
+
`,at=a.div`
|
|
887
879
|
display: flex;
|
|
888
880
|
align-items: center;
|
|
889
881
|
justify-content: center;
|
|
890
882
|
gap: 8px;
|
|
891
883
|
margin-top: 18px;
|
|
892
|
-
`,
|
|
884
|
+
`,nt=a.button`
|
|
893
885
|
width: 10px;
|
|
894
886
|
height: 10px;
|
|
895
887
|
border-radius: 50%;
|
|
@@ -907,8 +899,8 @@ import{j as n,r as k}from"./react-BYHuwl8r.js";import{s as a,t as o,b,A as M,L a
|
|
|
907
899
|
opacity: 0.8;
|
|
908
900
|
}
|
|
909
901
|
&[data-active] {
|
|
910
|
-
background: ${
|
|
902
|
+
background: ${V.media};
|
|
911
903
|
opacity: 1;
|
|
912
904
|
transform: scale(1.1);
|
|
913
905
|
}
|
|
914
|
-
`;function
|
|
906
|
+
`;function ma({title:e,items:t,onViewAll:i}){const o=k.useRef(null),[d,c]=k.useState(1),[m,x]=k.useState(0),[w,p]=k.useState(!0),[h,b]=k.useState(!1),u=k.useCallback(()=>{const g=o.current;if(!g)return;const{scrollLeft:f,scrollWidth:q,clientWidth:$}=g,L=Math.max(1,Math.ceil(q/$));c(L),x(Math.min(L-1,Math.round(f/$))),p(f<=1),b(f+$>=q-1)},[]);if(k.useEffect(()=>{u();const g=o.current;if(g)return g.addEventListener("scroll",u,{passive:!0}),window.addEventListener("resize",u),()=>{g.removeEventListener("scroll",u),window.removeEventListener("resize",u)}},[u,t.length]),t.length===0)return null;function l(g){const f=o.current;f&&f.scrollBy({left:g*f.clientWidth,behavior:"smooth"})}function v(g){const f=o.current;f&&f.scrollTo({left:g*f.clientWidth,behavior:"smooth"})}return n.jsxs(Ze,{"data-testid":"carousel",children:[n.jsxs(Je,{children:[n.jsx(Ge,{children:e}),i?n.jsxs(Ye,{onClick:i,children:[y("collectionCarousel.viewAll"),n.jsx(_e,{name:"chevron-down",size:16})]}):null]}),n.jsxs(et,{children:[n.jsx(R,{"data-side":"left",onClick:()=>l(-1),"aria-label":y("collectionCarousel.scrollLeft"),disabled:w,children:n.jsx("img",{src:O,alt:"","aria-hidden":!0})}),n.jsx(tt,{ref:o,children:t.map(g=>n.jsx(he,{item:g},g.id))}),n.jsx(R,{"data-side":"right",onClick:()=>l(1),"aria-label":y("collectionCarousel.scrollRight"),disabled:h,children:n.jsx("img",{src:O,alt:"","aria-hidden":!0})})]}),d>1?n.jsx(at,{"aria-label":y("collectionCarousel.pages"),children:Array.from({length:d}).map((g,f)=>n.jsx(nt,{"data-active":f===m||void 0,"aria-label":y("collectionCarousel.goToPage",{page:f+1}),"aria-current":f===m?"true":void 0,onClick:()=>v(f)},f))}):null]})}export{re as $,Dt as A,St as B,Bt as C,_t as D,yt as E,ea as F,ta as G,It as H,aa as I,na as J,ia as K,da as L,$t as M,ra as N,xt as O,mt as P,ut as Q,ma as R,Tt as S,Nt as T,wt as U,B as V,Ut as W,Pt as X,ht as Y,bt as Z,At as _,Et as a,gt as a0,je as a1,Qe as a2,se as a3,X as a4,ga as a5,fa as a6,ft as a7,kt as a8,jt as a9,Mt as aa,Ct as ab,Wt as b,Ft as c,Vt as d,qt as e,Lt as f,ca as g,la as h,vt as i,pa as j,oa as k,sa as l,ha as m,ua as n,xa as o,zt as p,Zt as q,Jt as r,Ot as s,Xt as t,Ht as u,Rt as v,Kt as w,Qt as x,Gt as y,Yt as z};
|