@dcl/shop 1.9.3-32728193174.commit-a3b6c07 → 1.9.3-32728233076.commit-3f83397
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-Dm0dO2UR.js → Activity-lXImq1g-.js} +6 -6
- package/_assets/{AnimatedBackground-w2aXmoQq.js → AnimatedBackground-Cev_PGgR.js} +6 -6
- package/_assets/{Assets-NfL4oA5m.js → Assets-DVolhtS4.js} +7 -7
- package/_assets/{Authorizations-DsHPQkZm.js → Authorizations-w6DnVVKM.js} +2 -2
- package/_assets/{Cart-BoxMvmha.js → Cart-Dl8bkLoJ.js} +2 -2
- package/_assets/{CircularProgress-Cc1MD1yB.js → CircularProgress-BugL8orw.js} +2 -2
- package/_assets/{Collection-BzHSn1CL.js → Collection-BSuyVLjK.js} +2 -2
- package/_assets/{CollectionCarousel-Cmf4W8MU.js → CollectionCarousel-CLXiDpcX.js} +177 -177
- package/_assets/{Confetti-OKFRNTpp.js → Confetti-C7i2Cy9j.js} +4 -4
- package/_assets/{ConstantsUtil-Dcta2h-d.js → ConstantsUtil-9zBSU6WC.js} +2 -2
- package/_assets/{ContentClient-CX_gSPW2.js → ContentClient-SBMSiQrr.js} +2 -2
- package/_assets/{Creator-A1le9Qw8.js → Creator-DRSU9EGr.js} +2 -2
- package/_assets/{DeploymentBuilder-D-fEt3yi.js → DeploymentBuilder-VXVKMXIh.js} +2 -2
- package/_assets/{EmotePlaybackBar-Vlv7Igss.js → EmotePlaybackBar-DMyEpqWq.js} +3 -3
- package/_assets/{ErrorNotice-CBDZFAVu.js → ErrorNotice-CSPveybR.js} +2 -2
- package/_assets/{ExchangeController-D24VhUyK.js → ExchangeController-BV36OQSP.js} +2 -2
- package/_assets/{Faq-CZvhCP1p.js → Faq-DqdaJLWQ.js} +2 -2
- package/_assets/{GetCredits-DIEk9RdZ.js → GetCredits-Rt-C5FJb.js} +2 -2
- package/_assets/{Grow-CUZ2KWyq.js → Grow-DEVn29yk.js} +2 -2
- package/_assets/{HelpersUtil-H1qidvUb.js → HelpersUtil-DVnCfYAW.js} +2 -2
- package/_assets/{ItemDetail-C9IfE3pI.js → ItemDetail-KySUUcKS.js} +5 -5
- package/_assets/{LoadMore-DIb6xx_d.js → LoadMore-Die59e5G.js} +2 -2
- package/_assets/{ManaPricingBanner.styles-BL9yfyU9.js → ManaPricingBanner.styles-CclSwdjZ.js} +2 -2
- package/_assets/{MyAssets-BMROKjAQ.js → MyAssets-BDpUrhAS.js} +2 -2
- package/_assets/{MyFavorites-C8kCWWlQ.js → MyFavorites-BMrtr-_2.js} +2 -2
- package/_assets/{NetworkUtil-sAg1dUn7.js → NetworkUtil-D48_2D6H.js} +2 -2
- package/_assets/{NotFound-LKGfaFaN.js → NotFound-BQMxQrmN.js} +2 -2
- package/_assets/{NotificationsBell-DiAEzuJB.js → NotificationsBell-7aC1MWpI.js} +2 -2
- package/_assets/{OutfitDetail-BqoUHtuh.js → OutfitDetail-Cqm_Idom.js} +2 -2
- package/_assets/{OutfitPreview-z7rwGvWe.js → OutfitPreview-RU4ZCxti.js} +2 -2
- package/_assets/{OutfitStudio-BtkB_gIv.js → OutfitStudio-Dnpnfj3h.js} +2 -2
- package/_assets/{StoreSettings-BF0Ro3Zg.js → StoreSettings-aw-eL5yj.js} +22 -22
- package/_assets/{Success-BJM7tqkO.js → Success-B1be43q4.js} +2 -2
- package/_assets/{SwapController-P-3HtdUM.js → SwapController-DYIDMcXV.js} +2 -2
- package/_assets/{TradeService-BJokYFbI.js → TradeService-ZRAQiOoB.js} +2 -2
- package/_assets/{W3MFrameProviderSingleton-D7l7kP_B.js → W3MFrameProviderSingleton-BZ5oZDy3.js} +4 -4
- package/_assets/{WebCryptoP256-Bw3HSgmQ.js → WebCryptoP256-jLDZjT0m.js} +2 -2
- package/_assets/{authorizations-DRvMaw3F.js → authorizations-DF4TCNrP.js} +2 -2
- package/_assets/{basic-ChRj0F7z.js → basic-DZFEQC0Q.js} +2 -2
- package/_assets/{biconomy-LH02gXZ3.js → biconomy-r1vh_BUF.js} +2 -2
- package/_assets/{browseLayout.styles-CxyoQw4D.js → browseLayout.styles-M1vmBmQ9.js} +2 -2
- package/_assets/{browser-CvKc6KZ5.js → browser-BfpJhTRn.js} +2 -2
- package/_assets/{browser-ponyfill-D4GeAT6b.js → browser-ponyfill-CeGNYKsC.js} +2 -2
- package/_assets/{builder-D2ePNso8.js → builder-CqRvwTi-.js} +2 -2
- package/_assets/{buy-gasless-CFKb7tEe.js → buy-gasless-UFQUKlRJ.js} +2 -2
- package/_assets/{buy-DUn7KFQP.js → buy-tMXLicAh.js} +2 -2
- package/_assets/{categories-QGxmYBHt.js → categories--rjXwQHy.js} +2 -2
- package/_assets/{ccip-eH-x3oBJ.js → ccip-BssRTLrI.js} +2 -2
- package/_assets/{ccip-MJGLlt3C.js → ccip-DnPn1XL8.js} +2 -2
- package/_assets/{chains-C4wQrAFB.js → chains-D8WloBbh.js} +2 -2
- package/_assets/collectionPage.styles-COpwbA3e.js +40 -0
- package/_assets/{common-BcfR4HfI.js → common-10QliGhT.js} +2 -2
- package/_assets/{controller-Bse_kTm5.js → controller-BQa0i6u_.js} +3 -3
- package/_assets/{core-BLozSnzB.js → core-Bb2WuqFf.js} +5 -5
- package/_assets/{createSvgIcon-C5jHgbqh.js → createSvgIcon-DKA9KJk3.js} +2 -2
- package/_assets/{custom--4pqSbtz.js → custom-BPrhzhzW.js} +2 -2
- package/_assets/{data-capture-8hbAY-86.js → data-capture-BbUQzaNz.js} +2 -2
- package/_assets/{dcl-schemas-Dl-k4VpC.js → dcl-schemas-DwcpdmVO.js} +2 -2
- package/_assets/{decimals-C2P4FFP8.js → decimals-C3FELhkV.js} +2 -2
- package/_assets/{decimals-UARkiEd7.js → decimals-DshOoAas.js} +2 -2
- package/_assets/{detectExtension-CudrD1yZ.js → detectExtension-BYtG1TEB.js} +2 -2
- package/_assets/{disposePreview-_bOR6h0Q.js → disposePreview-BwiSyzKg.js} +2 -2
- package/_assets/{email-BsdlDlrH.js → email-BwYca_57.js} +2 -2
- package/_assets/{embedded-wallet-mS9fntil.js → embedded-wallet-B3vRszsO.js} +2 -2
- package/_assets/{emotion-styled.browser.esm-C6EH34aE.js → emotion-styled.browser.esm-eN474Lsc.js} +2 -2
- package/_assets/{engine-An26ZFzK.js → engine-C7qM8CsN.js} +2 -2
- package/_assets/{errors-BDvs-eCk.js → errors-DAq91AQn.js} +2 -2
- package/_assets/{estimate-l1-fee-t6Ag8l2L.js → estimate-l1-fee-CggarMeO.js} +2 -2
- package/_assets/{eth_estimateGas-bE2x2e20.js → eth_estimateGas-Bo9gu2yL.js} +2 -2
- package/_assets/{eth_getStorageAt-DPIXamAU.js → eth_getStorageAt-DWdz73ik.js} +2 -2
- package/_assets/{eth_getTransactionCount-Dx7_wrUZ.js → eth_getTransactionCount-BCADxZgN.js} +2 -2
- package/_assets/{ethereum-BJIBECD-.js → ethereum-Bok2Rz8-.js} +2 -2
- package/_assets/{ethers-Dq9su_9o.js → ethers-CFEyxHZP.js} +2 -2
- package/_assets/{events-Bcll2zcr.js → events-DMOQOqxZ.js} +2 -2
- package/_assets/{execute-DHrn_0bC.js → execute-DsezyRbV.js} +3 -3
- package/_assets/{extractIPFS-LnEaUDUd.js → extractIPFS-BR99h2x_.js} +2 -2
- package/_assets/{features-CU9XxKJA.js → features-BMOVGD4S.js} +2 -2
- package/_assets/{fetchTokenMetadata-BGzxhXqQ.js → fetchTokenMetadata-BDzanTyh.js} +3 -3
- package/_assets/{field.styles-CpgReEMz.js → field.styles-BKPWJCCT.js} +2 -2
- package/_assets/{fortmatic-Bf_VL2f9.js → fortmatic-DFCiuD3V.js} +2 -2
- package/_assets/{get-bytecode-DqX1Al_W.js → get-bytecode-kZLDQ-Oa.js} +2 -2
- package/_assets/{get-ecosystem-wallet-info-CmTbkxOn.js → get-ecosystem-wallet-info-Cpo5hKNm.js} +2 -2
- package/_assets/{getBalance-BURUBgCK.js → getBalance-D041WVmM.js} +3 -3
- package/_assets/{getInstalledModules-dyocB5Xp.js → getInstalledModules-DH453Ivk.js} +2 -2
- package/_assets/{getNFT-CcMW8HCX.js → getNFT-C0J1t5Sk.js} +3 -3
- package/_assets/{getNFT-9rokRcrH.js → getNFT-CYKLLiBq.js} +2 -2
- package/_assets/{grid.styles-BTAyUGJl.js → grid.styles-DTbeN-Gc.js} +2 -2
- package/_assets/{hashTypedData-B3ytET7v.js → hashTypedData-DQAKp7O1.js} +2 -2
- package/_assets/{hashTypedData-QtYhVmQf.js → hashTypedData-DQOn3f3z.js} +2 -2
- package/_assets/{in-app-D8_Iw0RN.js → in-app-D_du3w69.js} +2 -2
- package/_assets/{in-app-wallet-calls-Cu_014LQ.js → in-app-wallet-calls-Da_HIXO9.js} +2 -2
- package/_assets/{index-DZvOfVu-.js → index--HmLtwiL.js} +2 -2
- package/_assets/{index-uqnvC7l7.js → index-1f9QXoGs.js} +2 -2
- package/_assets/{index-CTq7n-ms.js → index-6NyDvKje.js} +2 -2
- package/_assets/{index-DRuyZsQo.js → index-8W0sheUj.js} +2 -2
- package/_assets/{index-Cdg6ULro.js → index-ASNIqqQj.js} +2 -2
- package/_assets/{index-CE1b4AeN.js → index-Aqwlwdt1.js} +2 -2
- package/_assets/{index-DmF9QU3H.js → index-B3QoG6Bt.js} +2 -2
- package/_assets/{index-DdzRMswS.js → index-B3cIjEJp.js} +2 -2
- package/_assets/{index-fZKlJKep.js → index-B5iDyCmL.js} +2 -2
- package/_assets/{index-xa2uYCGd.js → index-BAaNNyvO.js} +2 -2
- package/_assets/{index-Bzzh1cDv.js → index-BEJEiFA8.js} +2 -2
- package/_assets/{index-27_Tbm5h.js → index-BLIFkdeC.js} +2 -2
- package/_assets/{index-BvUT88f1.js → index-BMgs7y1M.js} +2 -2
- package/_assets/{index-CdxSNVxA.js → index-BRwFIcaj.js} +2 -2
- package/_assets/{index-BcNp5DoC.js → index-BfNjUYPt.js} +2 -2
- package/_assets/{index-g4s7zuQI.js → index-BhdG9CXE.js} +2 -2
- package/_assets/{index-Dp-ToJpj.js → index-Bu0VLINz.js} +2 -2
- package/_assets/{index-CpzhsPu_.js → index-ByyCZ7uW.js} +2 -2
- package/_assets/{index-CpA7kzxj.js → index-C2cr87yl.js} +2 -2
- package/_assets/{index-BAHp_tAL.js → index-C9OjyzpX.js} +2 -2
- package/_assets/{index-BpN5fwuS.js → index-C9aixo7f.js} +3 -3
- package/_assets/{index-DXbhtZbn.js → index-CFZdO6_a.js} +2 -2
- package/_assets/{index-BSg8VZvV.js → index-CIto5Y3s.js} +2 -2
- package/_assets/{index-Cx6QEpJx.js → index-CL7g3Xrl.js} +2 -2
- package/_assets/{index-BrWlv3uP.js → index-COJ7gdW-.js} +2 -2
- package/_assets/{index-BkZvJF2l.js → index-CiahiyKN.js} +2 -2
- package/_assets/{index-BLIyqPsL.js → index-CmE-tZ7g.js} +2 -2
- package/_assets/{index-BaPAaulu.js → index-Co05iN5E.js} +2 -2
- package/_assets/{index-BMJd00wv.js → index-CpLB2Z0y.js} +2 -2
- package/_assets/{index-tsqLV9oO.js → index-CsjI427t.js} +2 -2
- package/_assets/{index-CUw_0m5M.js → index-CtlGdtrd.js} +12 -12
- package/_assets/{index-DyDHHeNX.js → index-CurC_dfq.js} +2 -2
- package/_assets/{index-B1BKkuYE.js → index-DBuquCy7.js} +2 -2
- package/_assets/{index-Dkx9pn51.js → index-DED-BCxp.js} +2 -2
- package/_assets/{index-CZixjTys.js → index-DEazoufB.js} +2 -2
- package/_assets/{index-D1ZSjMqq.js → index-DFoNzvzX.js} +2 -2
- package/_assets/{index-CIiwqcHD.js → index-DFttH-Qw.js} +2 -2
- package/_assets/{index-BORbfC-5.js → index-DV3b2VQZ.js} +4 -4
- package/_assets/{index-B06TJSil.js → index-DWcDVtOo.js} +2 -2
- package/_assets/{index-BTYJcGce.js → index-DaMN2YND.js} +2 -2
- package/_assets/{index-BjtAQkLO.js → index-DmnTeH6s.js} +3 -3
- package/_assets/{index-8qlmShPZ.js → index-DnT77tSK.js} +2 -2
- package/_assets/{index-DX35iaxI.js → index-DsjPnvaB.js} +2 -2
- package/_assets/{index-CVNmiv2K.js → index-DsouhR2q.js} +2 -2
- package/_assets/{index-B6in1fcC.js → index-DtOPswm5.js} +3 -3
- package/_assets/{index-C5tIkAaa.js → index-DtwEow2A.js} +2 -2
- package/_assets/{index-DTr7cro8.js → index-DuZVeMWX.js} +2 -2
- package/_assets/{index-D4y2KTTW.js → index-F2buC19f.js} +2 -2
- package/_assets/{index-D_aLFv0x.js → index-JpEx0t70.js} +2 -2
- package/_assets/{index-BdxgTeua.js → index-MzSwOMxi.js} +2 -2
- package/_assets/{index-DAF9lyy2.js → index-Px3nt7oi.js} +2 -2
- package/_assets/{index-Cc8RObdg.js → index-TOJt75GH.js} +2 -2
- package/_assets/{index-Lgts1qwz.js → index-TsQ9Qkl1.js} +2 -2
- package/_assets/{index-CdmTk-RT.js → index-TvVB0Fw-.js} +3 -3
- package/_assets/{index-dYSAmFJ7.js → index-c92sgu1a.js} +2 -2
- package/_assets/{index-BCQbBnkt.js → index-ew3k6ZBb.js} +2 -2
- package/_assets/{index-BVTS9Y31.js → index-fAMx8roa.js} +2 -2
- package/_assets/{index-uwQLkrl6.js → index-gKq0fOcI.js} +2 -2
- package/_assets/{index-DltEBNsV.js → index-mfwVKH8d.js} +4 -4
- package/_assets/{index-BUOASSo6.js → index-obnYnix2.js} +2 -2
- package/_assets/{index-D0dt_S-T.js → index-q1JMsIPj.js} +4 -4
- package/_assets/{index-BfAWbSkl.js → index-q7YkjnBH.js} +2 -2
- package/_assets/{index-Uhdv3n13.js → index-qFhqnI-q.js} +2 -2
- package/_assets/{index-Bb3xz4xb.js → index-r_-MWBQr.js} +2 -2
- package/_assets/{index-CKyFwJ-h.js → index-scHfPmI1.js} +2 -2
- package/_assets/{index-CaxOc8Iz.js → index-xtLVdnOV.js} +2 -2
- package/_assets/{index-Dqfo0XqR.js → index-y-Kkzyqm.js} +2 -2
- package/_assets/{index.es-6c-Ctz__.js → index.es-BDEBmVF2.js} +2 -2
- package/_assets/{index.es-00XRDWBM.js → index.es-BGGZKUFo.js} +2 -2
- package/_assets/{index.es-B9zzQzkV.js → index.es-BcvIrMAv.js} +5 -5
- package/_assets/{index.es-B4VsPPfg.js → index.es-_SGXUuPK.js} +2 -2
- package/_assets/{items-empty-ANVELue6.js → items-empty-Ca8ecTXQ.js} +2 -2
- package/_assets/{jump-C4ZFP74_.js → jump-eik67Nht.js} +2 -2
- package/_assets/{linkAccount-DP8gL9lV.js → linkAccount-X0PCIwrI.js} +2 -2
- package/_assets/{localBatchGatewayRequest-NPQW8p4h.js → localBatchGatewayRequest-CWS28iOs.js} +2 -2
- package/_assets/{native-C9GEAS3b.js → native-AhIIn9qy.js} +2 -2
- package/_assets/{networks-C8GQvzxn.js → networks-CA9pX4tX.js} +2 -2
- package/_assets/{onramp-BuNrplw5.js → onramp-CIWyc98f.js} +2 -2
- package/_assets/{openzeppelin-0j8T8Jdq.js → openzeppelin-CZnBx1BV.js} +2 -2
- package/_assets/{ownerOf-DkDXUvho.js → ownerOf-C5c-B8eB.js} +2 -2
- package/_assets/{parseNft-CKQzh2mW.js → parseNft-C1JLH4xB.js} +3 -3
- package/_assets/{parseSignature-B-JBxh9x.js → parseSignature-COWrdLji.js} +2 -2
- package/_assets/{parseSignature-Bt2mdHJm.js → parseSignature-ClHBGVGg.js} +4 -4
- package/_assets/{passkeys-BDfdVc1D.js → passkeys-BA61pdau.js} +2 -2
- package/_assets/{pay-with-exchange-Cqe8PaI-.js → pay-with-exchange-Bsvyssf4.js} +2 -2
- package/_assets/{prepare-contract-call-DqRF2ZX_.js → prepare-contract-call-tSgXz5LD.js} +2 -2
- package/_assets/{qr-overlay-vGhmbaMe.js → qr-overlay-CN-2P-rY.js} +4 -4
- package/_assets/{react-tQZQlQ39.js → react-CdMVTK5A.js} +2 -2
- package/_assets/{receive-7CHKFYlu.js → receive-BGNNkngF.js} +2 -2
- package/_assets/{resolveImplementation-D4dQhhYM.js → resolveImplementation-DWRQlCPy.js} +2 -2
- package/_assets/{resume-buy-DzFS6fo6.js → resume-buy-BnHDbYYM.js} +2 -2
- package/_assets/{rpc-CLABf_bn.js → rpc-Cbm0xzrD.js} +2 -2
- package/_assets/{sales-empty-BqxwjlKJ.js → sales-empty-BHr6fPem.js} +2 -2
- package/_assets/{search-empty-Cfm_CM4N.js → search-empty-G9FFb9dO.js} +2 -2
- package/_assets/{secp256k1-DtszAauU.js → secp256k1-D4JW1BUr.js} +2 -2
- package/_assets/{secp256k1-IICsLZZt.js → secp256k1-LyyjV6Ml.js} +2 -2
- package/_assets/{secp256k1-DN11xd9l.js → secp256k1-oGmM1kTU.js} +2 -2
- package/_assets/{send-Dw6_OrFk.js → send-BORdYpvs.js} +2 -2
- package/_assets/{send-batch-transaction-DHsrfZgH.js → send-batch-transaction-DfpWjR2f.js} +2 -2
- package/_assets/{send-eip712-transaction-D7Q8fGQ5.js → send-eip712-transaction-S4lKrpN3.js} +3 -3
- package/_assets/{send-gasless-transaction-CaNouBbf.js → send-gasless-transaction-DN1NlAq9.js} +3 -3
- package/_assets/{send-transaction-Cew9Apoj.js → send-transaction-BBqZqVFH.js} +3 -3
- package/_assets/{sendMetaTransaction-BQlYsIba.js → sendMetaTransaction-9izc41PC.js} +2 -2
- package/_assets/{sendRawTransaction-Dh1HrrCC.js → sendRawTransaction-Jpvb0NY5.js} +4 -4
- package/_assets/{sentry-n8d7aKnp.js → sentry-B8lJGLBG.js} +3 -3
- package/_assets/{serializeTransaction-loNQYfV-.js → serializeTransaction-DcEOtxbF.js} +2 -2
- package/_assets/{session-proposal-BV9Tk31d.js → session-proposal-D7I0aAb8.js} +2 -2
- package/_assets/{session-request-B6ZYZxAf.js → session-request-BVJM1MAb.js} +3 -3
- package/_assets/{sha256-Cy3kEBfL.js → sha256-DlaOoq3i.js} +2 -2
- package/_assets/{signing-Lhe8_ZSh.js → signing-B4-bsEyE.js} +4 -4
- package/_assets/{skeleton.styles-qVf1vDb1.js → skeleton.styles-BXYSWK8e.js} +2 -2
- package/_assets/{socials-D1q1x5Cj.js → socials-DA7NEoFT.js} +2 -2
- package/_assets/{styled-BZvgZykb.js → styled-iuTt0GAf.js} +2 -2
- package/_assets/{swaps-C24qFtPN.js → swaps-Cd-2cSq_.js} +2 -2
- package/_assets/{thirdweb-_zGUEbgR.js → thirdweb-YGQ8uQzx.js} +4 -4
- package/_assets/{to-serializable-transaction-BrADTD6-.js → to-serializable-transaction-CC49_EOS.js} +3 -3
- package/_assets/{totalSupply-CLFw9GT0.js → totalSupply-De68C2pQ.js} +2 -2
- package/_assets/{transaction-Dp-Kf3I5.js → transaction-DlT8shix.js} +2 -2
- package/_assets/{transactionReceipt-BRQexWxf.js → transactionReceipt-BeX17ERR.js} +2 -2
- package/_assets/{transactions-afWqQ-2T.js → transactions-CgMmcqKX.js} +2 -2
- package/_assets/{useCreditPacks-DXToQd7k.js → useCreditPacks-CY039ulO.js} +2 -2
- package/_assets/{useInfiniteGrid-gXlJd6gK.js → useInfiniteGrid--5uY41d1.js} +2 -2
- package/_assets/{useStore-Bu1zMllB.js → useStore-BKDb0-rL.js} +3 -3
- package/_assets/{useTheme-D2heyDeZ.js → useTheme-EVSibIm3.js} +2 -2
- package/_assets/{utils-DuiWcMn5.js → utils-Czrw0Q2Z.js} +2 -2
- package/_assets/{verifyHash-kw8AQVx5.js → verifyHash-mbLcp3lP.js} +2 -2
- package/_assets/{w3m-modal-6CpW32M3.js → w3m-modal-BnjZAwnt.js} +2 -2
- package/_assets/{w3m-modal-HWlQarQE.js → w3m-modal-WX5sBMy5.js} +2 -2
- package/_assets/{wait-for-tx-receipt-BlxDch1i.js → wait-for-tx-receipt-b3xInCcA.js} +2 -2
- package/_assets/{wallets-BWPy3arI.js → wallets-BDSOR5MG.js} +6 -6
- package/_assets/{web-connector-viwwKEfv.js → web-connector-G7miSbJK.js} +4 -4
- package/_assets/{writeContract-CDWIf_zJ.js → writeContract-BkiVChtW.js} +2 -2
- package/_assets/{zora-sepolia-C3s9boeJ.js → zora-sepolia-DNkkd-kU.js} +2 -2
- package/_assets/{zoraTestnet--z9T8lQF.js → zoraTestnet-i-R1KJeQ.js} +2 -2
- package/index.html +11 -11
- package/package.json +2 -2
- package/_assets/collectionPage.styles-uia3brFh.js +0 -40
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import{j as n,r as
|
|
1
|
+
import{j as n,r as C}from"./react-CdMVTK5A.js";import{s as a,t as r,b as v,q as A,E as R,c3 as E,m as le,I as G,h as $,aZ as he,bQ as X,cu as pe,g as j,f as M,b2 as Z,$ as ue,a0 as J,ar as ge,cv as xe,cw as Q,Q as fe}from"./index-CtlGdtrd.js";import{s as me,i as F,A as V,g as T,r as Y,m as _,k as ee,l as te}from"./authorizations-DF4TCNrP.js";import{i as be}from"./errors-DAq91AQn.js";import{E as we}from"./ErrorNotice-CSPveybR.js";import{k as ye,l as ve,m as ae,n as ke,o as Ce}from"./buy-tMXLicAh.js";import{a as je,w as Me,S as Ae,G as Te}from"./buy-gasless-UFQUKlRJ.js";import{M as D,E as L,s as ne}from"./sendMetaTransaction-9izc41PC.js";import{I as ze,C as ie}from"./ethers-CFEyxHZP.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new t.Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="9a3b171c-680b-42b1-8c52-1d75c0ff2c42",t._sentryDebugIdIdentifier="sentry-dbid-9a3b171c-680b-42b1-8c52-1d75c0ff2c42")}catch{}})();const P="shop:resume_after_signin",We=900*1e3;function Ct(t){try{sessionStorage.setItem(P,JSON.stringify({...t,at:Date.now()}))}catch{}}function jt(t){let e;try{e=sessionStorage.getItem(P)}catch{return null}if(!e)return null;try{sessionStorage.removeItem(P)}catch{}let i;try{i=JSON.parse(e)}catch{return null}return!i||i.type!==t||typeof i.at!="number"||Date.now()-i.at>We?null:i.type==="cart-checkout"?{type:"cart-checkout"}:{type:"item-buy",path:i.path}}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",$e=a.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
gap: 12px;
|
|
5
5
|
align-items: stretch;
|
|
6
6
|
width: 100%;
|
|
7
|
-
`,
|
|
7
|
+
`,re=`
|
|
8
8
|
width: 100%;
|
|
9
9
|
min-height: 56px;
|
|
10
10
|
display: flex;
|
|
@@ -19,37 +19,37 @@ import{j as n,r as k}from"./react-tQZQlQ39.js";import{s as a,t as o,b as v,q as
|
|
|
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
|
-
`,
|
|
39
|
-
${
|
|
40
|
-
background: ${
|
|
38
|
+
`,U=a.button`
|
|
39
|
+
${re}
|
|
40
|
+
background: ${r.gradients.buyBtn};
|
|
41
41
|
|
|
42
42
|
&:hover:not(:disabled) {
|
|
43
43
|
filter: brightness(1.08);
|
|
44
44
|
}
|
|
45
|
-
`,
|
|
46
|
-
${
|
|
47
|
-
background: ${
|
|
45
|
+
`,S=a.button`
|
|
46
|
+
${re}
|
|
47
|
+
background: ${r.colors.text2};
|
|
48
48
|
|
|
49
49
|
&:hover:not(:disabled) {
|
|
50
|
-
background: ${
|
|
50
|
+
background: ${r.colors.gray0};
|
|
51
51
|
}
|
|
52
|
-
`,
|
|
52
|
+
`,z=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-tQZQlQ39.js";import{s as a,t as o,b as v,q as
|
|
|
64
64
|
.ico {
|
|
65
65
|
width: 24px;
|
|
66
66
|
height: 24px;
|
|
67
|
-
background: ${
|
|
67
|
+
background: ${r.colors.softWhite};
|
|
68
68
|
}
|
|
69
|
-
`,
|
|
69
|
+
`,N=a.span`
|
|
70
70
|
position: relative;
|
|
71
71
|
display: block;
|
|
72
72
|
width: 30px;
|
|
@@ -84,61 +84,61 @@ import{j as n,r as k}from"./react-tQZQlQ39.js";import{s as a,t as o,b as v,q as
|
|
|
84
84
|
height: 24px;
|
|
85
85
|
display: block;
|
|
86
86
|
}
|
|
87
|
-
`,
|
|
87
|
+
`,Ie=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
|
+
`,Ee=a.span`
|
|
93
93
|
font-size: 18px;
|
|
94
94
|
font-weight: 600;
|
|
95
95
|
opacity: 0.7;
|
|
96
|
-
`,
|
|
96
|
+
`,Be=a.p`
|
|
97
97
|
margin: -4px 0 0;
|
|
98
|
-
font-family: ${
|
|
98
|
+
font-family: ${r.font.sans};
|
|
99
99
|
font-weight: 400;
|
|
100
100
|
font-size: 12px;
|
|
101
101
|
line-height: 1.4;
|
|
102
|
-
color: ${
|
|
102
|
+
color: ${r.colors.muted};
|
|
103
103
|
text-align: center;
|
|
104
|
-
`;function
|
|
104
|
+
`;function Mt({options:t,totalCents:e,onPay:i,busy:o=!1,creditsLabel:l,shortfall:h,showCreditsAmount:g=!0,creditsFallback:p=null}){const w=t.some(u=>u.method==="credits");return n.jsxs($e,{children:[!w&&p?n.jsx(U,{type:"button","data-testid":"pay-with-credits-topup",onClick:p.onClick,disabled:o,children:n.jsx("span",{children:p.label})}):null,t.map(u=>u.method==="credits"?n.jsxs(U,{type:"button","data-testid":"pay-with-credits",onClick:()=>i("credits"),disabled:o,children:[n.jsx("span",{children:l??v("buyModal.buy")}),g?n.jsxs(z,{children:[n.jsx(A,{}),n.jsx("span",{children:R(u.credits)})]}):null]},"credits"):u.method==="mana"?n.jsxs(S,{type:"button","data-testid":"pay-with-mana",onClick:()=>i("mana"),disabled:o,children:[n.jsx("span",{children:v("buyModal.buyWithMana")}),n.jsxs(z,{children:[n.jsx(N,{children:n.jsx("img",{src:B,alt:"","aria-hidden":!0})}),n.jsx("span",{children:E(u.manaWei)})]})]},"mana"):n.jsxs(S,{type:"button","data-testid":"pay-with-combined",onClick:()=>i("combined"),disabled:o,children:[n.jsx("span",{children:v("buyModal.buyWith")}),n.jsxs(z,{children:[n.jsx(A,{}),n.jsx("span",{children:R(u.credits)}),n.jsx(Ee,{children:"+"}),n.jsx(N,{children:n.jsx("img",{src:B,alt:"","aria-hidden":!0})}),n.jsx("span",{children:E(u.manaWei)}),n.jsx(Ie,{children:"MANA"})]})]},"combined")),h?n.jsxs(n.Fragment,{children:[n.jsxs(S,{type:"button","data-testid":"pay-with-mana-disabled",disabled:!0,children:[n.jsx("span",{children:v("buyModal.buyWithMana")}),n.jsxs(z,{children:[n.jsx(N,{children:n.jsx("img",{src:B,alt:"","aria-hidden":!0})}),n.jsx("span",{children:E(h.manaWei)})]})]},"mana-short"),n.jsx(Be,{"data-testid":"mana-shortfall-note",children:v("buyModal.notEnoughMana")})]}):null,n.jsx("span",{hidden:!0,"data-testid":"pay-total-cents",children:e})]})}function At(t,e){const i=(o,...l)=>void t.invalidateQueries({queryKey:e?[o,...l]:[o]});t.invalidateQueries({queryKey:["usd-balance"]}),t.invalidateQueries({queryKey:["detail-trade"]}),t.invalidateQueries({queryKey:["shop-item"]}),i("owned-token",e==null?void 0:e.contractAddress,e==null?void 0:e.tokenId),i("public-token",e==null?void 0:e.contractAddress,e==null?void 0:e.tokenId),i("item-resales",e==null?void 0:e.contractAddress,e==null?void 0:e.itemId),t.invalidateQueries({queryKey:["shop-items"]}),t.invalidateQueries({queryKey:["catalog-items"]}),t.invalidateQueries({queryKey:["overview-listings"]}),t.invalidateQueries({queryKey:["upsell-listings"]}),t.invalidateQueries({queryKey:["my-assets"]}),t.invalidateQueries({queryKey:["purchases"]}),t.invalidateQueries({queryKey:["owned-item-count"]})}const Se=le`
|
|
105
105
|
to { transform: rotate(360deg); }
|
|
106
|
-
|
|
106
|
+
`,Ne=a.div`
|
|
107
107
|
position: fixed;
|
|
108
108
|
inset: 0;
|
|
109
|
-
z-index: ${
|
|
109
|
+
z-index: ${r.z.prompt};
|
|
110
110
|
display: flex;
|
|
111
111
|
align-items: center;
|
|
112
112
|
justify-content: center;
|
|
113
113
|
padding: 16px;
|
|
114
114
|
background: rgba(22, 21, 24, 0.55);
|
|
115
|
-
`,
|
|
115
|
+
`,Pe=a.div`
|
|
116
116
|
width: 480px;
|
|
117
117
|
max-width: 100%;
|
|
118
118
|
max-height: 92vh;
|
|
119
119
|
overflow-y: auto;
|
|
120
|
-
background: ${
|
|
120
|
+
background: ${r.colors.white};
|
|
121
121
|
border-radius: 16px;
|
|
122
122
|
padding: 12px 16px 16px;
|
|
123
123
|
box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
|
|
124
124
|
display: flex;
|
|
125
125
|
flex-direction: column;
|
|
126
126
|
gap: 20px;
|
|
127
|
-
`,
|
|
127
|
+
`,Fe=a.div`
|
|
128
128
|
display: flex;
|
|
129
129
|
align-items: center;
|
|
130
130
|
justify-content: space-between;
|
|
131
131
|
gap: 8px;
|
|
132
132
|
padding-bottom: 16px;
|
|
133
|
-
border-bottom: 1px solid ${
|
|
134
|
-
`,
|
|
133
|
+
border-bottom: 1px solid ${r.colors.gray4};
|
|
134
|
+
`,Ve=a.h2`
|
|
135
135
|
margin: 0;
|
|
136
|
-
font-family: ${
|
|
136
|
+
font-family: ${r.font.sans};
|
|
137
137
|
font-weight: 600;
|
|
138
138
|
font-size: 20px;
|
|
139
139
|
line-height: 1.6;
|
|
140
|
-
color: ${
|
|
141
|
-
`,
|
|
140
|
+
color: ${r.colors.text};
|
|
141
|
+
`,De=a.button`
|
|
142
142
|
flex: none;
|
|
143
143
|
display: grid;
|
|
144
144
|
place-items: center;
|
|
@@ -147,7 +147,7 @@ import{j as n,r as k}from"./react-tQZQlQ39.js";import{s as a,t as o,b as v,q as
|
|
|
147
147
|
border: 0;
|
|
148
148
|
background: none;
|
|
149
149
|
cursor: pointer;
|
|
150
|
-
color: ${
|
|
150
|
+
color: ${r.colors.text};
|
|
151
151
|
|
|
152
152
|
.ico {
|
|
153
153
|
width: 18px;
|
|
@@ -158,34 +158,34 @@ import{j as n,r as k}from"./react-tQZQlQ39.js";import{s as a,t as o,b as v,q as
|
|
|
158
158
|
cursor: default;
|
|
159
159
|
}
|
|
160
160
|
&:focus-visible {
|
|
161
|
-
outline: 2px solid ${
|
|
161
|
+
outline: 2px solid ${r.colors.accent};
|
|
162
162
|
outline-offset: 2px;
|
|
163
163
|
}
|
|
164
|
-
`,
|
|
164
|
+
`,Le=a.span`
|
|
165
165
|
margin-left: auto;
|
|
166
166
|
margin-right: 12px;
|
|
167
|
-
color: ${
|
|
167
|
+
color: ${r.colors.muted};
|
|
168
168
|
font-size: 14px;
|
|
169
169
|
white-space: nowrap;
|
|
170
|
-
`,
|
|
170
|
+
`,qe=a.div`
|
|
171
171
|
display: grid;
|
|
172
172
|
grid-template-columns: 44px 1fr;
|
|
173
173
|
align-items: center;
|
|
174
174
|
gap: 14px;
|
|
175
175
|
padding: 14px 18px;
|
|
176
|
-
background: ${
|
|
177
|
-
border: 1px solid ${
|
|
176
|
+
background: ${r.colors.white};
|
|
177
|
+
border: 1px solid ${r.colors.line};
|
|
178
178
|
border-radius: 16px;
|
|
179
|
-
`,
|
|
179
|
+
`,He=a.div`
|
|
180
180
|
width: 44px;
|
|
181
181
|
height: 44px;
|
|
182
182
|
border-radius: 10px;
|
|
183
|
-
background: ${
|
|
183
|
+
background: ${r.colors.media};
|
|
184
184
|
overflow: hidden;
|
|
185
185
|
display: flex;
|
|
186
186
|
align-items: center;
|
|
187
187
|
justify-content: center;
|
|
188
|
-
color: ${
|
|
188
|
+
color: ${r.colors.muted2};
|
|
189
189
|
|
|
190
190
|
img {
|
|
191
191
|
width: 100%;
|
|
@@ -196,39 +196,39 @@ import{j as n,r as k}from"./react-tQZQlQ39.js";import{s as a,t as o,b as v,q as
|
|
|
196
196
|
width: 26px;
|
|
197
197
|
height: 26px;
|
|
198
198
|
}
|
|
199
|
-
`,
|
|
199
|
+
`,Oe=a.div`
|
|
200
200
|
min-width: 0;
|
|
201
201
|
display: flex;
|
|
202
202
|
flex-direction: column;
|
|
203
203
|
gap: 4px;
|
|
204
|
-
`,
|
|
204
|
+
`,Re=a.span`
|
|
205
205
|
font-weight: 700;
|
|
206
|
-
color: ${
|
|
207
|
-
`,
|
|
206
|
+
color: ${r.colors.text};
|
|
207
|
+
`,Xe=a.span`
|
|
208
208
|
font-size: 13px;
|
|
209
209
|
line-height: 1.45;
|
|
210
|
-
color: ${
|
|
211
|
-
`,
|
|
210
|
+
color: ${r.colors.muted};
|
|
211
|
+
`,Qe=a.p`
|
|
212
212
|
margin: 0;
|
|
213
213
|
font-size: 12px;
|
|
214
214
|
line-height: 1.5;
|
|
215
|
-
color: ${
|
|
216
|
-
`,
|
|
215
|
+
color: ${r.colors.muted2};
|
|
216
|
+
`,Ue=a.div`
|
|
217
217
|
display: flex;
|
|
218
218
|
gap: 12px;
|
|
219
219
|
|
|
220
|
-
${
|
|
220
|
+
${r.media.maxWidth("mobile")} {
|
|
221
221
|
flex-direction: column-reverse;
|
|
222
222
|
}
|
|
223
|
-
`,
|
|
223
|
+
`,Ke=a.button`
|
|
224
224
|
flex: 1 1 0;
|
|
225
225
|
height: 48px;
|
|
226
|
-
border: 2px solid ${
|
|
226
|
+
border: 2px solid ${r.colors.accent};
|
|
227
227
|
border-radius: 12px;
|
|
228
228
|
background: transparent;
|
|
229
|
-
color: ${
|
|
229
|
+
color: ${r.colors.accent};
|
|
230
230
|
cursor: pointer;
|
|
231
|
-
font-family: ${
|
|
231
|
+
font-family: ${r.font.sans};
|
|
232
232
|
font-weight: 600;
|
|
233
233
|
font-size: 13px;
|
|
234
234
|
line-height: 24px;
|
|
@@ -243,10 +243,10 @@ import{j as n,r as k}from"./react-tQZQlQ39.js";import{s as a,t as o,b as v,q as
|
|
|
243
243
|
opacity: 0.5;
|
|
244
244
|
}
|
|
245
245
|
&:focus-visible {
|
|
246
|
-
outline: 2px solid ${
|
|
246
|
+
outline: 2px solid ${r.colors.accent};
|
|
247
247
|
outline-offset: 2px;
|
|
248
248
|
}
|
|
249
|
-
`,
|
|
249
|
+
`,Ge=a.button`
|
|
250
250
|
flex: 1 1 0;
|
|
251
251
|
display: inline-flex;
|
|
252
252
|
align-items: center;
|
|
@@ -255,10 +255,10 @@ import{j as n,r as k}from"./react-tQZQlQ39.js";import{s as a,t as o,b as v,q as
|
|
|
255
255
|
height: 48px;
|
|
256
256
|
border: 0;
|
|
257
257
|
border-radius: 12px;
|
|
258
|
-
background: ${
|
|
259
|
-
color: ${
|
|
258
|
+
background: ${r.colors.accent};
|
|
259
|
+
color: ${r.colors.softWhite};
|
|
260
260
|
cursor: pointer;
|
|
261
|
-
font-family: ${
|
|
261
|
+
font-family: ${r.font.sans};
|
|
262
262
|
font-weight: 600;
|
|
263
263
|
font-size: 13px;
|
|
264
264
|
line-height: 24px;
|
|
@@ -266,39 +266,39 @@ import{j as n,r as k}from"./react-tQZQlQ39.js";import{s as a,t as o,b as v,q as
|
|
|
266
266
|
text-transform: uppercase;
|
|
267
267
|
|
|
268
268
|
&:hover:not(:disabled) {
|
|
269
|
-
background: ${
|
|
269
|
+
background: ${r.colors.accentHover};
|
|
270
270
|
}
|
|
271
271
|
&:disabled {
|
|
272
272
|
cursor: default;
|
|
273
273
|
background: rgba(105, 31, 169, 0.4);
|
|
274
274
|
}
|
|
275
275
|
&:focus-visible {
|
|
276
|
-
outline: 2px solid ${
|
|
276
|
+
outline: 2px solid ${r.colors.accent};
|
|
277
277
|
outline-offset: 2px;
|
|
278
278
|
}
|
|
279
|
-
`,
|
|
279
|
+
`,Ze=a.span`
|
|
280
280
|
width: 16px;
|
|
281
281
|
height: 16px;
|
|
282
282
|
border-radius: 50%;
|
|
283
283
|
border: 2px solid rgba(255, 255, 255, 0.5);
|
|
284
|
-
border-top-color: ${
|
|
285
|
-
animation: ${
|
|
284
|
+
border-top-color: ${r.colors.white};
|
|
285
|
+
animation: ${Se} 0.7s linear infinite;
|
|
286
286
|
|
|
287
287
|
@media (prefers-reduced-motion: reduce) {
|
|
288
288
|
animation: none;
|
|
289
289
|
}
|
|
290
|
-
`;function vt({auth:t,signer:e,step:i,title:r,reason:c,name:l,image:h,icon:u,onAuthorized:w,onCancel:g,onClose:x}){const[f,m]=k.useState(!1),[s,y]=k.useState(null);async function b(){m(!0),y(null);try{await fe({auth:t,signer:e,active:!0}),w()}catch(p){me(p)?y(v("authorizeStep.errorRejected")):(S(p,{flow:"authorize_step",kind:t.kind}),y(v("authorizeStep.errorGeneric"))),m(!1)}}return n.jsx($e,{onClick:f?void 0:x,role:"presentation","data-testid":"authorize-step-scrim",children:n.jsxs(Ie,{onClick:p=>p.stopPropagation(),role:"dialog","aria-modal":"true","aria-label":r,children:[n.jsxs(Ee,{children:[n.jsx(Be,{children:r}),i&&i.total>1?n.jsx(Se,{"data-testid":"authorize-step-count",children:v("authorizeStep.stepOf",{index:i.index,total:i.total})}):null,n.jsx(Ne,{onClick:x,disabled:f,"aria-label":v("authorizeStep.close"),children:n.jsx(K,{name:"close",className:"ico"})})]}),n.jsxs(Pe,{"data-testid":"authorize-step-row",children:[n.jsx(Ve,{children:h?n.jsx("img",{src:h,alt:""}):u}),n.jsxs(Fe,{children:[n.jsx(Le,{title:l,children:l}),n.jsx(De,{children:c})]})]}),n.jsx(qe,{children:v("authorizeStep.note")}),n.jsx(be,{message:s}),n.jsxs(Re,{children:[n.jsx(Oe,{type:"button",onClick:g,disabled:f,children:v("authorizeStep.cancel")}),n.jsx(He,{type:"button","data-testid":"authorize-step-action",onClick:()=>void b(),disabled:f,children:f?n.jsxs(n.Fragment,{children:[n.jsx(Xe,{"aria-hidden":!0}),v("authorizeStep.authorizing")]}):v("authorizeStep.authorize")})]})]})})}const kt="data:image/webp;base64,UklGRvgKAABXRUJQVlA4IOwKAADQKwCdASpgAGUAPjEUiEKiISEUnq8wIAMEtgBkC7j/3+G/I38cvlZrz9m/Bv7ucdsZLtP/U/cL2pPMH/Tb/Nfar3MfMJ+1P7ge7h/p/W5/dvUF/ln/R60X0FfLU/cP4VP2y/bv2Zf//dh/DX9N2THgHQ12q7Xn+Y33EAH0+/4PqITRFa4zT/1eWj619gr9Vf+j6x/rq/cX2Hv1j//7lHMptECj4S9oGS9bHSMqnYSXt0dT9/kqkBaEohWLz5fYi/Xc3O4w88eWX2PNn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nPGqKJSTZ01tIQ7lIcMeBvj6Ov6rRVP4ue+EW7a/VxCfsIzlgflFXrjoKLs1k1hQW83BtGjQ37OmBhgI+6ULvZAWhooUlzBa7n+F/yXGW5dmI1gA3TANbTih2YGTLfBnAI9Z7QHGSJh6CMgmUr2kMgJYoxGft2beB7EXyDAwxQmjAEpZ2zFRVHDTYDjyz+H094nbYcAhgAAAAA=",Ct="https://cdn.decentraland.org/@dcl/shop/1.9.3-32728193174.commit-a3b6c07/_assets/buy-error-22UunaPC.png";function Qe(t,e){return(t+e-1n)/e}function Ke(t,e,i){return t<=0||e<=0?0n:t>=e?i:Qe(i*BigInt(t),BigInt(e))}function jt(t){var x,f,m;const e=Number.isFinite(t.priceCents)?Math.max(0,Math.trunc(t.priceCents)):0,i=Number.isFinite(t.balanceCents)?Math.max(0,Math.trunc(t.balanceCents)):0,r=t.priceManaWei>0n?t.priceManaWei:0n,c=t.manaBalanceWei>0n?t.manaBalanceWei:0n;if(e<=0)return{options:[],preferred:null,manaShortfall:null};const l=[];i>=e&&l.push({method:"credits",creditsCents:e,credits:pe(e),manaWei:0n});const h=O(i)*he;if(r>0n&&h>0&&h<e){const s=e-h,y=Ke(s,e,r);c>=y&&l.push({method:"combined",creditsCents:h,credits:O(h),manaWei:y})}r>0n&&c>=r&&l.push({method:"mana",creditsCents:0,credits:0,manaWei:r});const u=((x=l.find(s=>s.method==="credits"))==null?void 0:x.method)??((f=l.find(s=>s.method==="combined"))==null?void 0:f.method)??((m=l.find(s=>s.method==="mana"))==null?void 0:m.method)??null,g=!l.some(s=>s.method==="mana"||s.method==="combined")&&r>0n&&c>0n?{manaWei:c,manaCents:Ue(c,e,r),priceCents:e}:null;return{options:l,preferred:u,manaShortfall:g}}function Ue(t,e,i){return Number(t*BigInt(e)/i)}function Mt(t,e){let i=Number.isFinite(e)?Math.max(0,Math.trunc(e)):0;return t.map(r=>{const c=Number.isFinite(r)?Math.max(0,Math.trunc(r)):0,l=Math.min(c,i);return i-=l,l})}function At(t,e){return t.options.find(i=>i.method===e)??null}async function Tt(t){const[e]=await re({...t,trades:[t.trade]});return e}async function zt(t){const[e]=await re({...t,trades:[],mints:[t.mint]});return e}async function re(t){const{trades:e,mints:i=[],buyer:r,signer:c,onSigned:l,manaWei:h}=t;if(e.length===0&&i.length===0)throw new Error("No items to buy");const u=new Map;for(const x of e){const f=`${x.chainId}:${x.contract.toLowerCase()}`,m=u.get(f);m?m.push(x):u.set(f,[x])}const w=new Map;for(const x of i){const f=w.get(x.chainId);f?f.push(x):w.set(x.chainId,[x])}const g=[];for(const x of u.values())g.push(await Ze({trades:x,buyer:r,signer:c,onSigned:l,requiredManaWei:h}));for(const[x,f]of w){const m=h??f.reduce((s,y)=>s+BigInt(y.item.priceWei),0n);g.push(await Ge({mints:f,chainId:x,buyer:r,signer:c,onSigned:l,requiredManaWei:m}))}return g}async function Ze(t){const{trades:e,buyer:i,signer:r,onSigned:c,requiredManaWei:l}=t,h=e[0],u=C(U(h.contract),h.chainId),w=C(j.MANAToken,h.chainId);await P({auth:{kind:V.Allowance,contractAddress:w.address,spenderAddress:u.address,chainId:h.chainId},signer:r,requiredWei:l});const g=e.map(s=>ye(s,i));if(z.enabled)try{const s=new Ce(u.abi).encodeFunctionData("accept",[g]),y=G(),b=J(r.provider,y),p=await te(b,y,s,u,{serverURL:z.relayerUrl});return c==null||c(),await Y(p,"the MANA purchase"),p}catch(s){if(s instanceof ae&&s.code===ne.USER_DENIED||s instanceof _)throw s;S(s,{flow:"buy_mana",step:"gasless_fallback"})}await Z(r.provider,h.chainId);const f=await new ie(u.address,u.abi,r).accept(g,ee(h.chainId));return c==null||c(),(await f.wait()).transactionHash}async function Ge(t){const{mints:e,chainId:i,buyer:r,signer:c,onSigned:l,requiredManaWei:h}=t,u=C(j.CollectionStore,i),w=C(j.MANAToken,i),g=e.map(s=>s.item);if(await P({auth:{kind:V.Allowance,contractAddress:w.address,spenderAddress:u.address,chainId:i},signer:c,requiredWei:h}),z.enabled)try{const s=ve(g,r,u.abi),y=G(),b=J(c.provider,y),p=await te(b,y,s,u,{serverURL:z.relayerUrl});return l==null||l(),await Y(p,"the MANA purchase"),p}catch(s){if(s instanceof ae&&s.code===ne.USER_DENIED||s instanceof _)throw s;S(s,{flow:"buy_mint_mana",step:"gasless_fallback"})}await Z(c.provider,i);const f=await new ie(u.address,u.abi,c).buy(ke(g,r),ee(i));return l==null||l(),(await f.wait()).transactionHash}async function Wt(t){const{trade:e,...i}=t;return se({target:{kind:"trade",trade:e},...i})}async function $t(t){const{mint:e,...i}=t;return se({target:{kind:"store",mint:e},...i})}async function se(t){const{target:e,buyer:i,signer:r,credits:c,manaGapWei:l,onBroadcast:h,onReverted:u}=t;if(c.length===0)throw new Error("No credits to spend — use the MANA-only rail for that");if(l<=0n)throw new Error("No MANA gap to cover — use the credits-only rail for that");const w=de(e),g=C(j.MANAToken,w),x=C(j.CreditsManager,w);await P({auth:{kind:V.Allowance,contractAddress:g.address,spenderAddress:x.address,chainId:w},signer:r,requiredWei:l});const m=(c.reduce((s,y)=>s+BigInt(y.availableAmount),0n)+l).toString();return we({purchase:Je(e,c,m),buyer:i,signer:r,onBroadcast:h,onReverted:u})}function de(t){return t.kind==="trade"?t.trade.chainId:t.mint.chainId}function Je(t,e,i){return t.kind==="trade"?{kind:"trade",trade:t.trade,credits:e,maxCreditedValue:i}:{kind:"store",item:t.mint.item,chainId:t.mint.chainId,credits:e,maxCreditedValue:i}}function It(t,e){const i=de(e);return t==="combined"?{spender:C(j.CreditsManager,i).address,chainId:i}:{spender:e.kind==="trade"?C(U(e.trade.contract),i).address:C(j.CollectionStore,i).address,chainId:i}}function Et(t){return n.jsx("svg",{viewBox:"0 0 18 18",width:"18",height:"18","aria-hidden":!0,...t,children:n.jsx("path",{d:"M4 4l10 10M14 4L4 14",stroke:"#161518",strokeWidth:"1.8",strokeLinecap:"round"})})}function Bt(t){return n.jsx("svg",{viewBox:"0 0 20 20",width:"24",height:"24","aria-hidden":!0,...t,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:d,gradients:F,radius:ce,z:Ye}=o,Nt=a.div`
|
|
290
|
+
`;function Tt({auth:t,signer:e,step:i,title:o,reason:l,name:h,image:g,icon:p,onAuthorized:w,onCancel:u,onClose:x}){const[f,b]=C.useState(!1),[d,y]=C.useState(null);async function m(){b(!0),y(null);try{await me({auth:t,signer:e,active:!0}),w()}catch(c){be(c)?y(v("authorizeStep.errorRejected")):($(c,{flow:"authorize_step",kind:t.kind}),y(v("authorizeStep.errorGeneric"))),b(!1)}}return n.jsx(Ne,{onClick:f?void 0:x,role:"presentation","data-testid":"authorize-step-scrim",children:n.jsxs(Pe,{onClick:c=>c.stopPropagation(),role:"dialog","aria-modal":"true","aria-label":o,children:[n.jsxs(Fe,{children:[n.jsx(Ve,{children:o}),i&&i.total>1?n.jsx(Le,{"data-testid":"authorize-step-count",children:v("authorizeStep.stepOf",{index:i.index,total:i.total})}):null,n.jsx(De,{onClick:x,disabled:f,"aria-label":v("authorizeStep.close"),children:n.jsx(G,{name:"close",className:"ico"})})]}),n.jsxs(qe,{"data-testid":"authorize-step-row",children:[n.jsx(He,{children:g?n.jsx("img",{src:g,alt:""}):p}),n.jsxs(Oe,{children:[n.jsx(Re,{title:h,children:h}),n.jsx(Xe,{children:l})]})]}),n.jsx(Qe,{children:v("authorizeStep.note")}),n.jsx(we,{message:d}),n.jsxs(Ue,{children:[n.jsx(Ke,{type:"button",onClick:u,disabled:f,children:v("authorizeStep.cancel")}),n.jsx(Ge,{type:"button","data-testid":"authorize-step-action",onClick:()=>void m(),disabled:f,children:f?n.jsxs(n.Fragment,{children:[n.jsx(Ze,{"aria-hidden":!0}),v("authorizeStep.authorizing")]}):v("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ydYZ60t+jonPHmMDTK1R/BkkDSoxfARfSpzxRoQqCibQ/i/KfV3hnGHLWJQ9L9CaFbMy/xF1JrNXwBpZVVIEt3ivU4LwEGnaDWcgbd2t+QbDsrepZNFW9PsCU4T7IEvTthlSDAqV8HTsoCcCc0t2vD3+G8gy8h32cZaYPvipwofQ+Zd23iBld0QOVDxEDGInn4CucUTfC3/c9tjfveCPuFQTdp7Wrc2qmpty8Kn7IJOa+Hy3xJuNHAW7yTU8KHJTrxD/9fvFMkH6eDgNbEzJ5NOCoxFFplGXuhHd8jxk9u/k3bBVF6oLskpdipOj9NqvNNv7Dy1cNnPGqKJSTZ01tIQ7lIcMeBvj6Ov6rRVP4ue+EW7a/VxCfsIzlgflFXrjoKLs1k1hQW83BtGjQ37OmBhgI+6ULvZAWhooUlzBa7n+F/yXGW5dmI1gA3TANbTih2YGTLfBnAI9Z7QHGSJh6CMgmUr2kMgJYoxGft2beB7EXyDAwxQmjAEpZ2zFRVHDTYDjyz+H094nbYcAhgAAAAA=",Wt="https://cdn.decentraland.org/@dcl/shop/1.9.3-32728233076.commit-3f83397/_assets/buy-error-22UunaPC.png";function Je(t,e){return(t+e-1n)/e}function Ye(t,e,i){return t<=0||e<=0?0n:t>=e?i:Je(i*BigInt(t),BigInt(e))}function $t(t){var x,f,b;const e=Number.isFinite(t.priceCents)?Math.max(0,Math.trunc(t.priceCents)):0,i=Number.isFinite(t.balanceCents)?Math.max(0,Math.trunc(t.balanceCents)):0,o=t.priceManaWei>0n?t.priceManaWei:0n,l=t.manaBalanceWei>0n?t.manaBalanceWei:0n;if(e<=0)return{options:[],preferred:null,manaShortfall:null};const h=[];i>=e&&h.push({method:"credits",creditsCents:e,credits:he(e),manaWei:0n});const g=X(i)*pe;if(o>0n&&g>0&&g<e){const d=e-g,y=Ye(d,e,o);l>=y&&h.push({method:"combined",creditsCents:g,credits:X(g),manaWei:y})}o>0n&&l>=o&&h.push({method:"mana",creditsCents:0,credits:0,manaWei:o});const p=((x=h.find(d=>d.method==="credits"))==null?void 0:x.method)??((f=h.find(d=>d.method==="combined"))==null?void 0:f.method)??((b=h.find(d=>d.method==="mana"))==null?void 0:b.method)??null,u=!h.some(d=>d.method==="mana"||d.method==="combined")&&o>0n&&l>0n?{manaWei:l,manaCents:_e(l,e,o),priceCents:e}:null;return{options:h,preferred:p,manaShortfall:u}}function _e(t,e,i){return Number(t*BigInt(e)/i)}function It(t,e){let i=Number.isFinite(e)?Math.max(0,Math.trunc(e)):0;return t.map(o=>{const l=Number.isFinite(o)?Math.max(0,Math.trunc(o)):0,h=Math.min(l,i);return i-=h,h})}function Et(t,e){return t.options.find(i=>i.method===e)??null}async function Bt(t){const[e]=await oe({...t,trades:[t.trade]});return e}async function St(t){const[e]=await oe({...t,trades:[],mints:[t.mint]});return e}async function oe(t){const{trades:e,mints:i=[],buyer:o,signer:l,onSigned:h,manaWei:g}=t;if(e.length===0&&i.length===0)throw new Error("No items to buy");const p=new Map;for(const x of e){const f=`${x.chainId}:${x.contract.toLowerCase()}`,b=p.get(f);b?b.push(x):p.set(f,[x])}const w=new Map;for(const x of i){const f=w.get(x.chainId);f?f.push(x):w.set(x.chainId,[x])}const u=[];for(const x of p.values())u.push(await et({trades:x,buyer:o,signer:l,onSigned:h,requiredManaWei:g}));for(const[x,f]of w){const b=g??f.reduce((d,y)=>d+BigInt(y.item.priceWei),0n);u.push(await tt({mints:f,chainId:x,buyer:o,signer:l,onSigned:h,requiredManaWei:b}))}return u}async function et(t){const{trades:e,buyer:i,signer:o,onSigned:l,requiredManaWei:h}=t,g=e[0],p=j(Z(g.contract),g.chainId),w=j(M.MANAToken,g.chainId);await F({auth:{kind:V.Allowance,contractAddress:w.address,spenderAddress:p.address,chainId:g.chainId},signer:o,requiredWei:h});const u=e.map(d=>ve(d,i));if(T.enabled)try{const d=new ze(p.abi).encodeFunctionData("accept",[u]),y=Y(),m=_(o.provider,y),c=await ne(m,y,d,p,{serverURL:T.relayerUrl});return l==null||l(),await ee(c,"the MANA purchase"),c}catch(d){if(d instanceof D&&d.code===L.USER_DENIED||d instanceof te)throw d;$(d,{flow:"buy_mana",step:"gasless_fallback"})}await J(o.provider,g.chainId);const f=await new ie(p.address,p.abi,o).accept(u,ae(g.chainId));return l==null||l(),(await f.wait()).transactionHash}async function tt(t){const{mints:e,chainId:i,buyer:o,signer:l,onSigned:h,requiredManaWei:g}=t,p=j(M.CollectionStore,i),w=j(M.MANAToken,i),u=e.map(d=>d.item);if(await F({auth:{kind:V.Allowance,contractAddress:w.address,spenderAddress:p.address,chainId:i},signer:l,requiredWei:g}),T.enabled)try{const d=ke(u,o,p.abi),y=Y(),m=_(l.provider,y),c=await ne(m,y,d,p,{serverURL:T.relayerUrl});return h==null||h(),await ee(c,"the MANA purchase"),c}catch(d){if(d instanceof D&&d.code===L.USER_DENIED||d instanceof te)throw d;$(d,{flow:"buy_mint_mana",step:"gasless_fallback"})}await J(l.provider,i);const f=await new ie(p.address,p.abi,l).buy(Ce(u,o),ae(i));return h==null||h(),(await f.wait()).transactionHash}async function Nt(t){const{trade:e,...i}=t;return se({target:{kind:"trade",trade:e},...i})}async function Pt(t){const{mint:e,...i}=t;return se({target:{kind:"store",mint:e},...i})}async function se(t){const{target:e,buyer:i,signer:o,credits:l,manaGapWei:h,providerType:g,onBroadcast:p,onReverted:w,onUnobservable:u}=t;if(l.length===0)throw new Error("No credits to spend — use the MANA-only rail for that");if(h<=0n)throw new Error("No MANA gap to cover — use the credits-only rail for that");const x=de(e),f=j(M.MANAToken,x),b=j(M.CreditsManager,x);await F({auth:{kind:V.Allowance,contractAddress:f.address,spenderAddress:b.address,chainId:x},signer:o,requiredWei:h});const y=(l.reduce((c,k)=>c+BigInt(k.availableAmount),0n)+h).toString(),m=at(e,l,y);if(T.enabled){let c;try{return c=await je({purchase:m,buyer:i,signer:o}),p==null||p({txHash:c}),await Me(c),c}catch(k){if(k instanceof D&&k.code===L.USER_DENIED||k instanceof Ae)throw k;if(!(k instanceof Te))throw c&&(w==null||w({txHash:c})),k;if(k.reason==="relayer-unreachable")throw u==null||u(),k;if(!ue(g))throw k;$(k,{flow:"buy_credits_and_mana",step:"gasless_fallback"})}}return ye({purchase:m,buyer:i,signer:o,onBroadcast:p,onReverted:w})}function de(t){return t.kind==="trade"?t.trade.chainId:t.mint.chainId}function at(t,e,i){return t.kind==="trade"?{kind:"trade",trade:t.trade,credits:e,maxCreditedValue:i}:{kind:"store",item:t.mint.item,chainId:t.mint.chainId,credits:e,maxCreditedValue:i}}function Ft(t,e){const i=de(e);return t==="combined"?{spender:j(M.CreditsManager,i).address,chainId:i}:{spender:e.kind==="trade"?j(Z(e.trade.contract),i).address:j(M.CollectionStore,i).address,chainId:i}}function Vt(t){return n.jsx("svg",{viewBox:"0 0 18 18",width:"18",height:"18","aria-hidden":!0,...t,children:n.jsx("path",{d:"M4 4l10 10M14 4L4 14",stroke:"#161518",strokeWidth:"1.8",strokeLinecap:"round"})})}function Dt(t){return n.jsx("svg",{viewBox:"0 0 20 20",width:"24",height:"24","aria-hidden":!0,...t,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:q,radius:ce,z:nt}=r,Lt=a.div`
|
|
291
291
|
position: fixed;
|
|
292
292
|
inset: 0;
|
|
293
|
-
z-index: ${
|
|
293
|
+
z-index: ${nt.overlay};
|
|
294
294
|
display: flex;
|
|
295
295
|
overflow-y: auto;
|
|
296
296
|
padding: 20px;
|
|
297
|
-
`,
|
|
297
|
+
`,qt=a.div`
|
|
298
298
|
position: fixed;
|
|
299
299
|
inset: 0;
|
|
300
300
|
background: rgba(22, 21, 24, 0.45);
|
|
301
|
-
`,
|
|
301
|
+
`,Ht=a.div`
|
|
302
302
|
position: relative;
|
|
303
303
|
z-index: 1;
|
|
304
304
|
margin: auto;
|
|
@@ -315,7 +315,7 @@ import{j as n,r as k}from"./react-tQZQlQ39.js";import{s as a,t as o,b as v,q as
|
|
|
315
315
|
edge instead of painting its buttons out on the scrim. */
|
|
316
316
|
max-height: 100%;
|
|
317
317
|
overflow: hidden;
|
|
318
|
-
background: ${
|
|
318
|
+
background: ${s.white};
|
|
319
319
|
border-radius: 16px;
|
|
320
320
|
padding: 12px 16px 16px;
|
|
321
321
|
box-shadow: 0 24px 60px rgba(22, 21, 24, 0.28);
|
|
@@ -328,46 +328,46 @@ import{j as n,r as k}from"./react-tQZQlQ39.js";import{s as a,t as o,b as v,q as
|
|
|
328
328
|
min-height: 379px;
|
|
329
329
|
justify-content: space-between;
|
|
330
330
|
}
|
|
331
|
-
`,
|
|
331
|
+
`,Ot=a.div`
|
|
332
332
|
display: flex;
|
|
333
333
|
flex-direction: column;
|
|
334
334
|
gap: 4px;
|
|
335
335
|
padding-bottom: 16px;
|
|
336
|
-
border-bottom: 1px solid ${
|
|
337
|
-
`,
|
|
336
|
+
border-bottom: 1px solid ${s.gray4};
|
|
337
|
+
`,Rt=a.div`
|
|
338
338
|
display: flex;
|
|
339
339
|
align-items: flex-start;
|
|
340
340
|
justify-content: space-between;
|
|
341
341
|
gap: 8px;
|
|
342
|
-
`,
|
|
342
|
+
`,Xt=a.h2`
|
|
343
343
|
margin: 0;
|
|
344
344
|
font-size: 20px;
|
|
345
345
|
font-weight: 700;
|
|
346
346
|
line-height: 1.6;
|
|
347
|
-
color: ${
|
|
348
|
-
`,
|
|
347
|
+
color: ${s.text};
|
|
348
|
+
`,Qt=a.button`
|
|
349
349
|
flex-shrink: 0;
|
|
350
350
|
border: 0;
|
|
351
351
|
background: transparent;
|
|
352
352
|
cursor: pointer;
|
|
353
353
|
padding: 2px;
|
|
354
354
|
line-height: 0;
|
|
355
|
-
`,
|
|
355
|
+
`,Ut=a.div`
|
|
356
356
|
display: flex;
|
|
357
357
|
align-items: center;
|
|
358
358
|
gap: 4px;
|
|
359
|
-
`,
|
|
359
|
+
`,Kt=a.span`
|
|
360
360
|
font-size: 14px;
|
|
361
361
|
font-weight: 600;
|
|
362
|
-
color: ${
|
|
363
|
-
`,
|
|
362
|
+
color: ${s.muted1};
|
|
363
|
+
`,Gt=a(A)`
|
|
364
364
|
width: 14px;
|
|
365
365
|
height: 14px;
|
|
366
|
-
background: ${
|
|
367
|
-
`,
|
|
366
|
+
background: ${s.text};
|
|
367
|
+
`,Zt=a.span`
|
|
368
368
|
font-size: 14px;
|
|
369
|
-
color: ${
|
|
370
|
-
`,
|
|
369
|
+
color: ${s.text};
|
|
370
|
+
`,Jt=a.div`
|
|
371
371
|
display: flex;
|
|
372
372
|
flex-direction: column;
|
|
373
373
|
gap: 24px;
|
|
@@ -385,19 +385,19 @@ import{j as n,r as k}from"./react-tQZQlQ39.js";import{s as a,t as o,b as v,q as
|
|
|
385
385
|
gap: 32px;
|
|
386
386
|
padding: 24px 0;
|
|
387
387
|
}
|
|
388
|
-
`,
|
|
388
|
+
`,Yt=a.div`
|
|
389
389
|
display: flex;
|
|
390
390
|
gap: 24px;
|
|
391
391
|
align-items: center;
|
|
392
392
|
|
|
393
|
-
${
|
|
393
|
+
${r.media.maxWidth("mobile")} {
|
|
394
394
|
gap: 12px;
|
|
395
395
|
}
|
|
396
|
-
`,
|
|
396
|
+
`,_t=a.div`
|
|
397
397
|
flex-shrink: 0;
|
|
398
398
|
width: 110px;
|
|
399
399
|
height: 110px;
|
|
400
|
-
background: ${
|
|
400
|
+
background: ${s.media};
|
|
401
401
|
border-radius: 8px;
|
|
402
402
|
display: grid;
|
|
403
403
|
place-items: center;
|
|
@@ -410,38 +410,38 @@ import{j as n,r as k}from"./react-tQZQlQ39.js";import{s as a,t as o,b as v,q as
|
|
|
410
410
|
filter: drop-shadow(0.7px 2.9px 3.7px rgba(0, 0, 0, 0.1));
|
|
411
411
|
}
|
|
412
412
|
|
|
413
|
-
${
|
|
413
|
+
${r.media.maxWidth("mobile")} {
|
|
414
414
|
width: 78px;
|
|
415
415
|
height: 78px;
|
|
416
416
|
border-radius: 7px;
|
|
417
417
|
}
|
|
418
|
-
`,
|
|
418
|
+
`,ea=a.div`
|
|
419
419
|
flex: 1;
|
|
420
420
|
min-width: 0;
|
|
421
421
|
display: flex;
|
|
422
422
|
flex-direction: column;
|
|
423
423
|
justify-content: center;
|
|
424
424
|
gap: 4px;
|
|
425
|
-
`,
|
|
425
|
+
`,ta=a.div`
|
|
426
426
|
font-size: 18px;
|
|
427
427
|
font-weight: 700;
|
|
428
428
|
line-height: 1.3;
|
|
429
|
-
color: ${
|
|
429
|
+
color: ${s.text};
|
|
430
430
|
overflow: hidden;
|
|
431
431
|
text-overflow: ellipsis;
|
|
432
432
|
|
|
433
|
-
${
|
|
433
|
+
${r.media.maxWidth("mobile")} {
|
|
434
434
|
font-size: 16px;
|
|
435
435
|
}
|
|
436
|
-
`,
|
|
436
|
+
`,aa=a(ge)`
|
|
437
437
|
font-size: 12px;
|
|
438
438
|
line-height: 1.43;
|
|
439
|
-
color: ${
|
|
439
|
+
color: ${s.muted};
|
|
440
440
|
|
|
441
|
-
${
|
|
441
|
+
${r.media.maxWidth("mobile")} {
|
|
442
442
|
font-size: 10px;
|
|
443
443
|
}
|
|
444
|
-
`,
|
|
444
|
+
`,na=a.div`
|
|
445
445
|
display: flex;
|
|
446
446
|
align-items: center;
|
|
447
447
|
gap: 6px;
|
|
@@ -450,19 +450,19 @@ import{j as n,r as k}from"./react-tQZQlQ39.js";import{s as a,t as o,b as v,q as
|
|
|
450
450
|
& span {
|
|
451
451
|
font-size: 18px;
|
|
452
452
|
font-weight: 700;
|
|
453
|
-
color: ${
|
|
453
|
+
color: ${s.text2};
|
|
454
454
|
}
|
|
455
455
|
|
|
456
|
-
${
|
|
456
|
+
${r.media.maxWidth("mobile")} {
|
|
457
457
|
& span {
|
|
458
458
|
font-size: 20px;
|
|
459
459
|
}
|
|
460
460
|
}
|
|
461
|
-
`,
|
|
461
|
+
`,ia=a(A)`
|
|
462
462
|
width: 18px;
|
|
463
463
|
height: 18px;
|
|
464
|
-
background: ${
|
|
465
|
-
`,
|
|
464
|
+
background: ${s.text2};
|
|
465
|
+
`,ra=a.div`
|
|
466
466
|
display: flex;
|
|
467
467
|
align-items: flex-start;
|
|
468
468
|
gap: 12px;
|
|
@@ -474,33 +474,33 @@ import{j as n,r as k}from"./react-tQZQlQ39.js";import{s as a,t as o,b as v,q as
|
|
|
474
474
|
flex-shrink: 0;
|
|
475
475
|
}
|
|
476
476
|
|
|
477
|
-
${
|
|
477
|
+
${r.media.maxWidth("mobile")} {
|
|
478
478
|
align-items: center;
|
|
479
479
|
gap: 8px;
|
|
480
480
|
padding: 12px 8px;
|
|
481
481
|
}
|
|
482
|
-
`,
|
|
482
|
+
`,oa=a.p`
|
|
483
483
|
margin: 0;
|
|
484
484
|
font-size: 14px;
|
|
485
485
|
line-height: 1.334;
|
|
486
|
-
color: ${
|
|
486
|
+
color: ${s.text2};
|
|
487
487
|
|
|
488
488
|
& b {
|
|
489
489
|
font-weight: 700;
|
|
490
490
|
}
|
|
491
|
-
`,
|
|
491
|
+
`,sa=a.a`
|
|
492
492
|
display: inline-block;
|
|
493
493
|
margin-top: 4px;
|
|
494
494
|
font-size: 14px;
|
|
495
495
|
font-weight: 600;
|
|
496
496
|
line-height: 1.334;
|
|
497
|
-
color: ${
|
|
497
|
+
color: ${s.text2};
|
|
498
498
|
text-decoration: underline;
|
|
499
499
|
|
|
500
500
|
&:hover {
|
|
501
|
-
color: ${
|
|
501
|
+
color: ${s.accent};
|
|
502
502
|
}
|
|
503
|
-
`,
|
|
503
|
+
`,da=a.div`
|
|
504
504
|
display: flex;
|
|
505
505
|
flex-wrap: wrap;
|
|
506
506
|
gap: 12px;
|
|
@@ -512,18 +512,18 @@ import{j as n,r as k}from"./react-tQZQlQ39.js";import{s as a,t as o,b as v,q as
|
|
|
512
512
|
sharing a line and claimed a full row: the four landed 2/1/1, three rows tall. That extra row is
|
|
513
513
|
also what pushed the total under the sticky CTAs. The tracks are minmax(0, 1fr), not 1fr, so a
|
|
514
514
|
long price shrinks the text inside the tile instead of widening the column past the card. */
|
|
515
|
-
${
|
|
515
|
+
${r.media.maxWidth("mobile")} {
|
|
516
516
|
display: grid;
|
|
517
517
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
518
518
|
gap: 16px 12px;
|
|
519
519
|
}
|
|
520
|
-
`,
|
|
520
|
+
`,ca=a.button`
|
|
521
521
|
/* Wide enough to stay readable, so a narrow card wraps the tiles onto a second row instead of
|
|
522
522
|
squeezing four of them into one. */
|
|
523
523
|
flex: 1 1 140px;
|
|
524
524
|
height: 109px;
|
|
525
|
-
border: 1px solid ${
|
|
526
|
-
background: ${
|
|
525
|
+
border: 1px solid ${s.muted2};
|
|
526
|
+
background: ${s.media};
|
|
527
527
|
border-radius: 16px;
|
|
528
528
|
display: flex;
|
|
529
529
|
align-items: center;
|
|
@@ -545,7 +545,7 @@ import{j as n,r as k}from"./react-tQZQlQ39.js";import{s as a,t as o,b as v,q as
|
|
|
545
545
|
padding: 0;
|
|
546
546
|
border-color: transparent;
|
|
547
547
|
border-width: 4px;
|
|
548
|
-
background-image: linear-gradient(${
|
|
548
|
+
background-image: linear-gradient(${s.media}, ${s.media}), ${q.buyBtn};
|
|
549
549
|
background-origin: border-box;
|
|
550
550
|
background-clip: padding-box, border-box;
|
|
551
551
|
}
|
|
@@ -555,7 +555,7 @@ import{j as n,r as k}from"./react-tQZQlQ39.js";import{s as a,t as o,b as v,q as
|
|
|
555
555
|
transform: scale(1.03);
|
|
556
556
|
}
|
|
557
557
|
|
|
558
|
-
${
|
|
558
|
+
${r.media.maxWidth("mobile")} {
|
|
559
559
|
height: 83px;
|
|
560
560
|
gap: 6px;
|
|
561
561
|
/* A grid item defaults to min-width:auto, which would let the widest price push the tile out of
|
|
@@ -568,46 +568,46 @@ import{j as n,r as k}from"./react-tQZQlQ39.js";import{s as a,t as o,b as v,q as
|
|
|
568
568
|
transform: none;
|
|
569
569
|
}
|
|
570
570
|
}
|
|
571
|
-
`,
|
|
571
|
+
`,la=a.img`
|
|
572
572
|
width: 24px;
|
|
573
573
|
height: 26px;
|
|
574
574
|
flex: none;
|
|
575
|
-
`,
|
|
575
|
+
`,ha=a.span`
|
|
576
576
|
font-size: 24px;
|
|
577
577
|
font-weight: 500;
|
|
578
|
-
color: ${
|
|
579
|
-
`,
|
|
578
|
+
color: ${s.text};
|
|
579
|
+
`,pa=a.span`
|
|
580
580
|
font-size: 14px;
|
|
581
|
-
color: ${
|
|
582
|
-
`,
|
|
581
|
+
color: ${s.text};
|
|
582
|
+
`,ua=a.div`
|
|
583
583
|
display: flex;
|
|
584
584
|
align-items: center;
|
|
585
585
|
justify-content: space-between;
|
|
586
|
-
border-top: 1px solid ${
|
|
586
|
+
border-top: 1px solid ${s.gray4};
|
|
587
587
|
padding-top: 12px;
|
|
588
|
-
`,
|
|
588
|
+
`,ga=a.div`
|
|
589
589
|
display: flex;
|
|
590
590
|
align-items: center;
|
|
591
591
|
gap: 8px;
|
|
592
592
|
font-size: 24px;
|
|
593
593
|
font-weight: 700;
|
|
594
|
-
color: ${
|
|
595
|
-
`,
|
|
594
|
+
color: ${s.text};
|
|
595
|
+
`,xa=a(A)`
|
|
596
596
|
width: 30px;
|
|
597
597
|
height: 30px;
|
|
598
|
-
background: ${
|
|
599
|
-
`,
|
|
598
|
+
background: ${s.text};
|
|
599
|
+
`,fa=a.span`
|
|
600
600
|
font-size: 14px;
|
|
601
601
|
font-weight: 600;
|
|
602
|
-
color: ${
|
|
603
|
-
`,
|
|
602
|
+
color: ${s.muted1};
|
|
603
|
+
`,ma=a.div`
|
|
604
604
|
position: sticky;
|
|
605
605
|
bottom: 0;
|
|
606
606
|
display: flex;
|
|
607
607
|
gap: 12px;
|
|
608
608
|
margin-top: -8px;
|
|
609
609
|
padding-top: 8px;
|
|
610
|
-
background: ${
|
|
610
|
+
background: ${s.white};
|
|
611
611
|
|
|
612
612
|
/*
|
|
613
613
|
* data-stack — one CTA per row on a phone.
|
|
@@ -620,7 +620,7 @@ import{j as n,r as k}from"./react-tQZQlQ39.js";import{s as a,t as o,b as v,q as
|
|
|
620
620
|
* right-hand side on desktop, where the secondary-then-primary reading order is what every other row in
|
|
621
621
|
* the flow uses.
|
|
622
622
|
*/
|
|
623
|
-
${
|
|
623
|
+
${r.media.maxWidth("mobile")} {
|
|
624
624
|
&[data-stack] {
|
|
625
625
|
flex-direction: column-reverse;
|
|
626
626
|
|
|
@@ -634,7 +634,7 @@ import{j as n,r as k}from"./react-tQZQlQ39.js";import{s as a,t as o,b as v,q as
|
|
|
634
634
|
}
|
|
635
635
|
}
|
|
636
636
|
}
|
|
637
|
-
`,
|
|
637
|
+
`,it=a.button`
|
|
638
638
|
flex: 1;
|
|
639
639
|
/* Let the CTAs shrink so their min-content can't widen the modal past the viewport on mobile. */
|
|
640
640
|
min-width: 0;
|
|
@@ -657,50 +657,50 @@ import{j as n,r as k}from"./react-tQZQlQ39.js";import{s as a,t as o,b as v,q as
|
|
|
657
657
|
/* The design system's primary fill (Figma 738:53266 "BUY Button") — the same gradient the cart's
|
|
658
658
|
CHECKOUT carries, so the two ends of the buy flow match. */
|
|
659
659
|
&[data-variant='gradient'] {
|
|
660
|
-
background: ${
|
|
661
|
-
color: ${
|
|
660
|
+
background: ${q.buyBtn};
|
|
661
|
+
color: ${s.softWhite};
|
|
662
662
|
}
|
|
663
663
|
&[data-variant='gradient']:hover:not(:disabled),
|
|
664
664
|
&[data-variant='gradient']:active:not(:disabled) {
|
|
665
|
-
background-image: linear-gradient(${
|
|
665
|
+
background-image: linear-gradient(${s.dclRed}, ${s.dclRed});
|
|
666
666
|
}
|
|
667
667
|
&[data-variant='outline'] {
|
|
668
668
|
background: transparent;
|
|
669
|
-
border: 0.5px solid ${
|
|
670
|
-
color: ${
|
|
669
|
+
border: 0.5px solid ${s.text};
|
|
670
|
+
color: ${s.text2};
|
|
671
671
|
font-size: 13px;
|
|
672
672
|
}
|
|
673
673
|
/* Figma's outlined hover (738:53251), which on this light card is the readable half of the pair: the
|
|
674
674
|
white-fill hover the dark-field buttons take would be invisible here. Same treatment as the
|
|
675
675
|
drawer's dismissing CTA (CartPopover ctaCss) — the two sit in one flow. */
|
|
676
676
|
&[data-variant='outline']:hover:not(:disabled) {
|
|
677
|
-
background: ${
|
|
678
|
-
color: ${
|
|
677
|
+
background: ${s.text2};
|
|
678
|
+
color: ${s.softWhite};
|
|
679
679
|
}
|
|
680
680
|
&[data-variant='ruby'] {
|
|
681
|
-
background: ${
|
|
682
|
-
color: ${
|
|
681
|
+
background: ${s.dclRed};
|
|
682
|
+
color: ${s.softWhite};
|
|
683
683
|
font-size: 13px;
|
|
684
684
|
letter-spacing: 0.61px;
|
|
685
685
|
}
|
|
686
686
|
// Solid accent fill (the error state's "Try again").
|
|
687
687
|
&[data-variant='purple'] {
|
|
688
|
-
background: ${
|
|
689
|
-
color: ${
|
|
688
|
+
background: ${s.accent};
|
|
689
|
+
color: ${s.softWhite};
|
|
690
690
|
font-size: 13px;
|
|
691
691
|
}
|
|
692
692
|
&:hover:not(:disabled),
|
|
693
693
|
&[data-variant='purple']:hover:not(:disabled) {
|
|
694
|
-
background: ${
|
|
694
|
+
background: ${s.accentHover};
|
|
695
695
|
}
|
|
696
696
|
&:disabled {
|
|
697
697
|
opacity: 0.6;
|
|
698
698
|
cursor: default;
|
|
699
699
|
}
|
|
700
|
-
`,
|
|
700
|
+
`,ba=it.withComponent("a"),wa=a.img`
|
|
701
701
|
width: 61px;
|
|
702
702
|
height: 61px;
|
|
703
|
-
`,
|
|
703
|
+
`,ya=a.div`
|
|
704
704
|
display: flex;
|
|
705
705
|
flex-direction: column;
|
|
706
706
|
align-items: center;
|
|
@@ -708,39 +708,39 @@ import{j as n,r as k}from"./react-tQZQlQ39.js";import{s as a,t as o,b as v,q as
|
|
|
708
708
|
background: rgba(255, 201, 213, 0.5);
|
|
709
709
|
border-radius: 16px;
|
|
710
710
|
padding: 24px 16px;
|
|
711
|
-
`,
|
|
711
|
+
`,va=a.img`
|
|
712
712
|
width: 64px;
|
|
713
713
|
height: 80px;
|
|
714
714
|
object-fit: contain;
|
|
715
|
-
`,
|
|
715
|
+
`,ka=a.p`
|
|
716
716
|
margin: 0;
|
|
717
717
|
text-align: center;
|
|
718
718
|
font-size: 20px;
|
|
719
719
|
line-height: 1.334;
|
|
720
720
|
font-weight: 400;
|
|
721
|
-
color: ${
|
|
721
|
+
color: ${s.text2};
|
|
722
722
|
|
|
723
723
|
& b {
|
|
724
724
|
font-weight: 700;
|
|
725
725
|
}
|
|
726
|
-
`,
|
|
726
|
+
`,Ca=a.div`
|
|
727
727
|
font-size: 20px;
|
|
728
728
|
font-weight: 700;
|
|
729
|
-
color: ${
|
|
729
|
+
color: ${s.text2};
|
|
730
730
|
text-align: center;
|
|
731
|
-
`,
|
|
731
|
+
`,ja=a.div`
|
|
732
732
|
width: 100%;
|
|
733
733
|
max-width: 456px;
|
|
734
734
|
height: 12px;
|
|
735
|
-
background: ${
|
|
735
|
+
background: ${s.media};
|
|
736
736
|
border-radius: 100px;
|
|
737
737
|
overflow: hidden;
|
|
738
|
-
`,
|
|
738
|
+
`,Ma=a.span`
|
|
739
739
|
display: block;
|
|
740
740
|
height: 100%;
|
|
741
741
|
width: 40%;
|
|
742
742
|
border-radius: 100px;
|
|
743
|
-
background: ${
|
|
743
|
+
background: ${q.amethyst};
|
|
744
744
|
animation: buy-modal-progress 1.1s ease-in-out infinite;
|
|
745
745
|
|
|
746
746
|
@keyframes buy-modal-progress {
|
|
@@ -757,7 +757,7 @@ import{j as n,r as k}from"./react-tQZQlQ39.js";import{s as a,t as o,b as v,q as
|
|
|
757
757
|
min-width: 12px;
|
|
758
758
|
transition: width 0.35s ease;
|
|
759
759
|
}
|
|
760
|
-
`,
|
|
760
|
+
`,Aa=a.div`
|
|
761
761
|
display: flex;
|
|
762
762
|
flex-direction: column;
|
|
763
763
|
align-items: center;
|
|
@@ -779,11 +779,11 @@ import{j as n,r as k}from"./react-tQZQlQ39.js";import{s as a,t as o,b as v,q as
|
|
|
779
779
|
padding: 16px;
|
|
780
780
|
}
|
|
781
781
|
}
|
|
782
|
-
`,
|
|
782
|
+
`,Ta=a.p`
|
|
783
783
|
margin: 0;
|
|
784
784
|
font-size: 20px;
|
|
785
785
|
line-height: 1.334;
|
|
786
|
-
color: ${
|
|
786
|
+
color: ${s.text2};
|
|
787
787
|
text-align: center;
|
|
788
788
|
|
|
789
789
|
& b {
|
|
@@ -799,25 +799,25 @@ import{j as n,r as k}from"./react-tQZQlQ39.js";import{s as a,t as o,b as v,q as
|
|
|
799
799
|
text-align: center;
|
|
800
800
|
}
|
|
801
801
|
}
|
|
802
|
-
`,{colors:
|
|
802
|
+
`,{colors:H,media:W}=r,rt=a.section`
|
|
803
803
|
margin-top: 40px;
|
|
804
|
-
`,
|
|
804
|
+
`,ot=a.div`
|
|
805
805
|
display: flex;
|
|
806
806
|
align-items: center;
|
|
807
807
|
justify-content: space-between;
|
|
808
808
|
margin-bottom: 20px;
|
|
809
|
-
`,
|
|
809
|
+
`,st=a.h2`
|
|
810
810
|
font-size: 22px;
|
|
811
811
|
font-weight: 700;
|
|
812
|
-
color: ${
|
|
813
|
-
`,
|
|
812
|
+
color: ${H.softWhite};
|
|
813
|
+
`,dt=a.button`
|
|
814
814
|
display: inline-flex;
|
|
815
815
|
align-items: center;
|
|
816
816
|
gap: 4px;
|
|
817
817
|
background: none;
|
|
818
818
|
border: 0;
|
|
819
819
|
padding: 0;
|
|
820
|
-
color: ${
|
|
820
|
+
color: ${H.softWhite};
|
|
821
821
|
font-weight: 700;
|
|
822
822
|
font-size: 13px;
|
|
823
823
|
letter-spacing: 0.046em;
|
|
@@ -828,11 +828,11 @@ import{j as n,r as k}from"./react-tQZQlQ39.js";import{s as a,t as o,b as v,q as
|
|
|
828
828
|
&:hover {
|
|
829
829
|
text-decoration: underline;
|
|
830
830
|
}
|
|
831
|
-
`,
|
|
831
|
+
`,ct=a(G)`
|
|
832
832
|
transform: rotate(-90deg);
|
|
833
|
-
`,
|
|
833
|
+
`,lt=a.div`
|
|
834
834
|
position: relative;
|
|
835
|
-
`,
|
|
835
|
+
`,K=a.button`
|
|
836
836
|
position: absolute;
|
|
837
837
|
top: 112px;
|
|
838
838
|
transform: translateY(-50%);
|
|
@@ -876,17 +876,17 @@ import{j as n,r as k}from"./react-tQZQlQ39.js";import{s as a,t as o,b as v,q as
|
|
|
876
876
|
@media (prefers-reduced-motion: reduce) {
|
|
877
877
|
transition: none;
|
|
878
878
|
}
|
|
879
|
-
${
|
|
879
|
+
${W.maxWidth("lg")} {
|
|
880
880
|
display: none;
|
|
881
881
|
}
|
|
882
|
-
`,
|
|
882
|
+
`,ht=a.div`
|
|
883
883
|
display: grid;
|
|
884
884
|
grid-auto-flow: column;
|
|
885
885
|
grid-auto-columns: calc((100% - 64px) / 5);
|
|
886
886
|
gap: 16px;
|
|
887
887
|
overflow-x: auto;
|
|
888
888
|
overflow-y: hidden;
|
|
889
|
-
${
|
|
889
|
+
${xe};
|
|
890
890
|
scroll-snap-type: x mandatory;
|
|
891
891
|
scrollbar-width: none;
|
|
892
892
|
|
|
@@ -896,22 +896,22 @@ import{j as n,r as k}from"./react-tQZQlQ39.js";import{s as a,t as o,b as v,q as
|
|
|
896
896
|
& > * {
|
|
897
897
|
scroll-snap-align: start;
|
|
898
898
|
}
|
|
899
|
-
${
|
|
899
|
+
${W.maxWidth("xl")} {
|
|
900
900
|
grid-auto-columns: calc((100% - 48px) / 4);
|
|
901
901
|
}
|
|
902
|
-
${
|
|
902
|
+
${W.maxWidth("lg")} {
|
|
903
903
|
grid-auto-columns: calc((100% - 32px) / 3);
|
|
904
904
|
}
|
|
905
|
-
${
|
|
905
|
+
${W.maxWidth("sm")} {
|
|
906
906
|
grid-auto-columns: calc((100% - 16px) / 2);
|
|
907
907
|
}
|
|
908
|
-
`,
|
|
908
|
+
`,pt=a.div`
|
|
909
909
|
display: flex;
|
|
910
910
|
align-items: center;
|
|
911
911
|
justify-content: center;
|
|
912
912
|
gap: 8px;
|
|
913
913
|
margin-top: 18px;
|
|
914
|
-
`,
|
|
914
|
+
`,ut=a.button`
|
|
915
915
|
width: 10px;
|
|
916
916
|
height: 10px;
|
|
917
917
|
border-radius: 50%;
|
|
@@ -929,9 +929,9 @@ import{j as n,r as k}from"./react-tQZQlQ39.js";import{s as a,t as o,b as v,q as
|
|
|
929
929
|
opacity: 0.8;
|
|
930
930
|
}
|
|
931
931
|
&[data-active] {
|
|
932
|
-
background: ${
|
|
932
|
+
background: ${H.media};
|
|
933
933
|
opacity: 1;
|
|
934
934
|
transform: scale(1.1);
|
|
935
935
|
}
|
|
936
|
-
`;function
|
|
937
|
-
//# sourceMappingURL=CollectionCarousel-
|
|
936
|
+
`;function za({title:t,items:e,onViewAll:i}){const o=C.useRef(null),[l,h]=C.useState(1),[g,p]=C.useState(0),[w,u]=C.useState(!0),[x,f]=C.useState(!1),b=C.useCallback(()=>{const m=o.current;if(!m)return;const{scrollLeft:c,scrollWidth:k,clientWidth:I}=m,O=Math.max(1,Math.ceil(k/I));h(O),p(Math.min(O-1,Math.round(c/I))),u(c<=1),f(c+I>=k-1)},[]);if(C.useEffect(()=>{b();const m=o.current;if(m)return m.addEventListener("scroll",b,{passive:!0}),window.addEventListener("resize",b),()=>{m.removeEventListener("scroll",b),window.removeEventListener("resize",b)}},[b,e.length]),e.length===0)return null;function d(m){const c=o.current;c&&c.scrollBy({left:m*c.clientWidth,behavior:"smooth"})}function y(m){const c=o.current;c&&c.scrollTo({left:m*c.clientWidth,behavior:"smooth"})}return n.jsxs(rt,{"data-testid":"carousel",children:[n.jsxs(ot,{children:[n.jsx(st,{children:t}),i?n.jsxs(dt,{onClick:i,children:[v("collectionCarousel.viewAll"),n.jsx(ct,{name:"chevron-down",size:16})]}):null]}),n.jsxs(lt,{children:[n.jsx(K,{"data-side":"left",onClick:()=>d(-1),"aria-label":v("collectionCarousel.scrollLeft"),disabled:w,children:n.jsx("img",{src:Q,alt:"","aria-hidden":!0})}),n.jsx(ht,{ref:o,children:e.map(m=>n.jsx(fe,{item:m},m.id))}),n.jsx(K,{"data-side":"right",onClick:()=>d(1),"aria-label":v("collectionCarousel.scrollRight"),disabled:x,children:n.jsx("img",{src:Q,alt:"","aria-hidden":!0})})]}),l>1?n.jsx(pt,{"aria-label":v("collectionCarousel.pages"),children:Array.from({length:l}).map((m,c)=>n.jsx(ut,{"data-active":c===g||void 0,"aria-label":v("collectionCarousel.goToPage",{page:c+1}),"aria-current":c===g?"true":void 0,onClick:()=>y(c)},c))}):null]})}export{oe as $,Yt as A,Ut as B,Ht as C,la as D,zt as E,ha as F,pa as G,Ot as H,ua as I,ga as J,xa as K,wa as L,Lt as M,fa as N,$t as O,Mt as P,jt as Q,za as R,qt as S,Xt as T,Tt as U,B as V,ra as W,Qt as X,Ct as Y,At as Z,Ft as _,Rt as a,It as a0,Ye as a1,at as a2,de as a3,Aa as a4,Ta as a5,ba as a6,Et as a7,Bt as a8,St as a9,Nt as aa,Pt as ab,Vt as b,Kt as c,Gt as d,Zt as e,Jt as f,ya as g,va as h,Wt as i,ka as j,ma as k,it as l,Ca as m,ja as n,Ma as o,Dt as p,oa as q,sa as r,_t as s,ea as t,ta as u,aa as v,na as w,ia as x,da as y,ca as z};
|
|
937
|
+
//# sourceMappingURL=CollectionCarousel-CLXiDpcX.js.map
|