@dcl/shop 0.1.0-29820418604.commit-45fc148 → 0.1.0-29842599290.commit-2475f4f
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/{AnimatedBackground-CLVd407x.js → AnimatedBackground-D2JRqhrS.js} +1 -1
- package/assets/Assets-D_767CI9.js +503 -0
- package/assets/{Cart-CpqxTUEQ.js → Cart-DpvMVP-7.js} +2 -2
- package/assets/{CircularProgress-pGkqbXc8.js → CircularProgress-BJ_TjCN_.js} +5 -5
- package/assets/{Collection-Djh5yx-V.js → Collection-CROpeZdX.js} +6 -6
- package/assets/{CollectionCarousel-D-AQXiSI.js → CollectionCarousel-BB3DzDmR.js} +1 -1
- package/assets/{ConstantsUtil-BbIzv5xN.js → ConstantsUtil-CJUlyS7R.js} +1 -1
- package/assets/{ContentClient-BiP6T0o-.js → ContentClient-B6BvDsXj.js} +1 -1
- package/assets/{Creator-eej8kLdE.js → Creator-_z1lwt4_.js} +1 -1
- package/assets/{CssVarsProvider-wQmSi_2B.js → CssVarsProvider-Cb_KA4y8.js} +3 -3
- package/assets/{DeploymentBuilder-DUGl9QwQ.js → DeploymentBuilder-Cp9K3LCu.js} +1 -1
- package/assets/{ErrorNotice-CKeOu_Oi.js → ErrorNotice-C7soUjRV.js} +1 -1
- package/assets/{ExchangeController-xwl8Mauh.js → ExchangeController-CBn3jEwJ.js} +1 -1
- package/assets/{GetCredits-BarLHOMT.js → GetCredits-CBBS-hLK.js} +1 -1
- package/assets/{HelpersUtil-CtK6l89Q.js → HelpersUtil-HdrIw3ED.js} +1 -1
- package/assets/ImportListings-B4Ah3yQs.js +5 -0
- package/assets/ItemDetail-Bdnzeft3.js +48 -0
- package/assets/{LoadMore-CUcfUpuY.js → LoadMore-Blqu_ob_.js} +1 -1
- package/assets/{MarketCheckout-CUVL7ePz.js → MarketCheckout-DOEU43Cr.js} +1 -1
- package/assets/MyAssets-KamgxHyB.js +7 -0
- package/assets/{MyFavorites-CcpfBMUQ.js → MyFavorites-46gv8iFB.js} +2 -2
- package/assets/{MyPurchases-DrCQpnOc.js → MyPurchases-xyHXfcs_.js} +2 -2
- package/assets/{NetworkUtil-CLSFaUe_.js → NetworkUtil-Xp0fNa8X.js} +1 -1
- package/assets/{NotFound-Bib2meoR.js → NotFound-SYVjtlXK.js} +1 -1
- package/assets/PrimaryListModal-B8X89MoS.js +1 -0
- package/assets/{StoreSettings-BdWy5pLg.js → StoreSettings-B4i_rpq0.js} +2 -2
- package/assets/{Success-DoHr_e0L.js → Success-BoPV7W7T.js} +2 -2
- package/assets/{SwapController-NRXxMYwH.js → SwapController-CBn7it3D.js} +1 -1
- package/assets/{TradeService-Ci94LS1z.js → TradeService-BUz_DTCw.js} +1 -1
- package/assets/{W3MFrameProviderSingleton-DC5YSqzl.js → W3MFrameProviderSingleton-tZh6bMfi.js} +3 -3
- package/assets/{WebCryptoP256-CObxbTd2.js → WebCryptoP256-DSBDULPY.js} +1 -1
- package/assets/{basic-B4Dxarc6.js → basic-DlABK3_N.js} +1 -1
- package/assets/{biconomy-4lG-30OY.js → biconomy-MRqMpiGP.js} +1 -1
- package/assets/{browser-L8b8z1bK.js → browser-9oFjBwrz.js} +1 -1
- package/assets/{browser-ponyfill-jziBOMa-.js → browser-ponyfill-DMgE6PM5.js} +1 -1
- package/assets/browser-ponyfill-Djb5Py6a.js +1 -0
- package/assets/{buy-D-vBFkG6.js → buy-B5ZS4ZBM.js} +1 -1
- package/assets/{buy-gasless-BGON-kY0.js → buy-gasless-Ba7WiBbA.js} +1 -1
- package/assets/cart-checkout-Cv0O-IMr.js +1 -0
- package/assets/categories-BicEp1xc.js +305 -0
- package/assets/{ccip-PshQmxYU.js → ccip-7UmS1PeQ.js} +1 -1
- package/assets/{ccip-B6_7LF7S.js → ccip-LxG2dAFM.js} +1 -1
- package/assets/{chains-DxiOcj_1.js → chains-CpxWadaj.js} +1 -1
- package/assets/collection-5wVB2Die.js +1 -0
- package/assets/{common-B-aETE4R.js → common-l22vMua4.js} +1 -1
- package/assets/{controller-Bld6UUhD.js → controller-DduDD9ay.js} +2 -2
- package/assets/{core-D3jzt6RC.js → core-CeGBqHMO.js} +4 -4
- package/assets/{custom-BQ1uOClq.js → custom-D0AtamZ4.js} +1 -1
- package/assets/{data-capture-CxB5Hizu.js → data-capture-DvKKxnqn.js} +1 -1
- package/assets/{decimals-BaxHo7kp.js → decimals-BHuuK15t.js} +1 -1
- package/assets/decimals-Cy9cbsXq.js +1 -0
- package/assets/{detectExtension-Cx9Ff7Bn.js → detectExtension-DFy8j1N5.js} +1 -1
- package/assets/{email-CiACGjjn.js → email-Bafq5LVA.js} +1 -1
- package/assets/{embedded-wallet-BEct5rXi.js → embedded-wallet-Cq9sdxt_.js} +1 -1
- package/assets/emotion-styled.browser.esm-IwF2UC65.js +1 -0
- package/assets/{engine-BnuPVhdn.js → engine-CkrY35__.js} +1 -1
- package/assets/{errors-fv83sI_L.js → errors-VkIbnyNm.js} +1 -1
- package/assets/{estimate-l1-fee-DcaMKCM5.js → estimate-l1-fee-i2iZ2Vqn.js} +1 -1
- package/assets/eth_estimateGas-DSwQmDKV.js +1 -0
- package/assets/{eth_getStorageAt-BOEHlFPR.js → eth_getStorageAt-DtuLpaRO.js} +1 -1
- package/assets/eth_getTransactionCount-jaO8Tr8s.js +1 -0
- package/assets/{ethereum-7lBI8s3D.js → ethereum-CkPyqOMA.js} +1 -1
- package/assets/{ethers-w2AslR0v.js → ethers-BeFqf2KO.js} +1 -1
- package/assets/{extractIPFS-CU6BCutm.js → extractIPFS-B1rYPZY7.js} +1 -1
- package/assets/{features-DAf222uj.js → features-BEM4jzxK.js} +1 -1
- package/assets/{fetchTokenMetadata-6BMd1rXE.js → fetchTokenMetadata-BhtlFZh7.js} +2 -2
- package/assets/{fortmatic-BAdaY-Dp.js → fortmatic-DhmlcDbL.js} +1 -1
- package/assets/{get-ecosystem-wallet-info-BUdWoGAu.js → get-ecosystem-wallet-info-CT1s8m3e.js} +1 -1
- package/assets/{getBalance-BkD4yHvZ.js → getBalance-CfJ0XnIl.js} +2 -2
- package/assets/{getInstalledModules-kilR2NiC.js → getInstalledModules-CaXPPvdO.js} +1 -1
- package/assets/{getNFT-CG0EByli.js → getNFT-CZfISvmz.js} +2 -2
- package/assets/{getNFT-DsaU7OtJ.js → getNFT-DlVnt9Q9.js} +1 -1
- package/assets/{getOverlayAlpha-Bem9pjlW.js → getOverlayAlpha-BueYXZ9u.js} +1 -1
- package/assets/{hashTypedData-dr6mz0oK.js → hashTypedData-CuVSwrXW.js} +1 -1
- package/assets/{hashTypedData-BbixXf0N.js → hashTypedData-DLnXsDCk.js} +1 -1
- package/assets/{import-Dnrd3Gn7.js → import-CN6p_MqT.js} +1 -1
- package/assets/{in-app-wallet-calls-DSLZE4sI.js → in-app-wallet-calls-CJqUcl-9.js} +1 -1
- package/assets/{index-DmHcRWCn.js → index-1gbEXIom.js} +1 -1
- package/assets/{index-Cd-ELKZF.js → index-B1B5XO_U.js} +1 -1
- package/assets/index-B4D19REm.js +231 -0
- package/assets/{index-BdBKp-gy.js → index-B4edWAth.js} +2 -2
- package/assets/{index-CFR1oUCh.js → index-BEAmVVuB.js} +1 -1
- package/assets/{index-CLs-5OTo.js → index-BGBt5Xm9.js} +1 -1
- package/assets/{index-xldgn9I8.js → index-BHCsuHPe.js} +1 -1
- package/assets/{index-DN6MO7gI.js → index-BHVOprA5.js} +1 -1
- package/assets/{index-BWzLtPgA.js → index-BIPP0co7.js} +1 -1
- package/assets/{index-DBkoTlqr.js → index-BONeQS2n.js} +2 -2
- package/assets/{index-H_uGpjuP.js → index-BPlP5Yrj.js} +1 -1
- package/assets/{index-BvsXWKoe.js → index-BQxvWH_G.js} +1 -1
- package/assets/{index-IVWbWFyL.js → index-BY9My0oM.js} +1 -1
- package/assets/{index-BKSzZVMV.js → index-BYGUxDY4.js} +1 -1
- package/assets/{index-6Kyym41O.js → index-BfnFZQqu.js} +1 -1
- package/assets/{index-Bhvth4PE.js → index-BfoFTQum.js} +1 -1
- package/assets/{index-Dbqfw_1n.js → index-Bk6ayCIs.js} +1 -1
- package/assets/{index-xCs0crJs.js → index-BlNrP_ot.js} +1 -1
- package/assets/{index-D-nBPOn3.js → index-BmFerGWY.js} +1 -1
- package/assets/{index-CAu040IR.js → index-Bpmady1C.js} +1 -1
- package/assets/{index-C6phI6Xb.js → index-BrkctpUM.js} +1 -1
- package/assets/{index-a_jQVeYW.js → index-Bsrh1wrG.js} +3 -3
- package/assets/{index-BZn-NUpA.js → index-BvYeGTV6.js} +1 -1
- package/assets/{index-CW-V6qwJ.js → index-Bzl-y_xE.js} +1 -1
- package/assets/{index-C3Zl4Bwc.js → index-C7SiFPEi.js} +1 -1
- package/assets/{index-BD7WiVfO.js → index-C8LSdB4m.js} +1 -1
- package/assets/{index-B2q3D1lR.js → index-CDneVgN3.js} +1 -1
- package/assets/{index-BQUzfdXy.js → index-CI-AD5iw.js} +1 -1
- package/assets/{index-BdC3pzaB.js → index-CLJtuWHL.js} +1 -1
- package/assets/{index-DfxDdXux.js → index-CgwJgOun.js} +3 -3
- package/assets/{index-CUwqmyAE.js → index-Ckm2E71r.js} +1 -1
- package/assets/{index-CLRDpRJ0.js → index-Cw5PuAy9.js} +1 -1
- package/assets/{index-LjtWVpTQ.js → index-D5CqgRew.js} +1 -1
- package/assets/{index-4F2JbvKd.js → index-DF-DiDVu.js} +1 -1
- package/assets/{index-CNkjr1DA.js → index-DGOaB47n.js} +1 -1
- package/assets/index-DH3Yzbz3.js +1 -0
- package/assets/{index-CFbKC0wF.js → index-DOeRQwCQ.js} +2 -2
- package/assets/{index-DhkXiUFl.js → index-DOpbd-jp.js} +1 -1
- package/assets/{index-BnXCD78m.js → index-DQfozNLU.js} +1 -1
- package/assets/{index-DGZmaPQV.js → index-DWUDXdC9.js} +1 -1
- package/assets/{index-BElm_Aqs.js → index-DZl9hhbT.js} +2 -2
- package/assets/{index-DF0VFAJK.js → index-D_kcwQmd.js} +1 -1
- package/assets/{index-TtcxtMr2.js → index-Dl9esg1J.js} +1 -1
- package/assets/{index-sFssfP96.js → index-Dp3Py-Ws.js} +1 -1
- package/assets/{index-BUA7Fo9c.js → index-Dtj-WGsX.js} +1 -1
- package/assets/{index-L10sBItl.js → index-FXbiSAAP.js} +1 -1
- package/assets/{index-CPJOSm7j.js → index-IqrjnIQ9.js} +1 -1
- package/assets/{index-UYXDkjPb.js → index-OQjcAgDp.js} +1 -1
- package/assets/{index-poWb9pgr.js → index-P0Yx7vsd.js} +1 -1
- package/assets/{index-CBQ1afGx.js → index-QMzB_9kT.js} +1 -1
- package/assets/{index-DC_sK6HG.js → index-TjznWbc4.js} +1 -1
- package/assets/{index-SopsxUjz.js → index-Tx1QPCiA.js} +1 -1
- package/assets/{index-CQbwl1Yh.js → index-VVTks7i3.js} +2 -2
- package/assets/{index-DKeIDnI0.js → index-ZQBK6Pdm.js} +1 -1
- package/assets/{index-BMIGlv_0.js → index-ZV7fMVI5.js} +1 -1
- package/assets/{index-ByFxL6ea.js → index-bDNg_irz.js} +1 -1
- package/assets/{index-B6hUxDdz.js → index-dYP5cvK2.js} +1 -1
- package/assets/index-eE-_qVda.css +1 -0
- package/assets/{index-DfD3kcZV.js → index-htvE856q.js} +1 -1
- package/assets/{index-BSGkpOHC.js → index-i1ke3OIj.js} +1 -1
- package/assets/{index-C-tV2998.js → index-jtb2-_sz.js} +1 -1
- package/assets/{index-CiLCqE0-.js → index-oG-jQqT1.js} +1 -1
- package/assets/{index-BmdMMxfk.js → index-pbhVNuOA.js} +1 -1
- package/assets/{index-D8JS2oIs.js → index-sEQX5urS.js} +1 -1
- package/assets/{index.es-VDMDPGEf.js → index.es-BCuQ9fc-.js} +4 -4
- package/assets/{index.es-Db7EjNIB.js → index.es-C89JefA5.js} +1 -1
- package/assets/{index.es-BqrOK7eY.js → index.es-hSZLYkrj.js} +1 -1
- package/assets/{localBatchGatewayRequest-CTitzrQj.js → localBatchGatewayRequest-CZllhI1g.js} +1 -1
- package/assets/{mana-rate-B9WM_wra.js → mana-rate-Bf-vAahU.js} +1 -1
- package/assets/{native-BHXbWt16.js → native-BMBZUPnx.js} +1 -1
- package/assets/{networks-DaswSlZt.js → networks-kfrZy_3R.js} +1 -1
- package/assets/{onramp-xkeXvCaA.js → onramp-cgk7gEx6.js} +1 -1
- package/assets/{openzeppelin-Cvvs9IJh.js → openzeppelin-CBxu6ipZ.js} +1 -1
- package/assets/{ownerOf-CoLVd6Bo.js → ownerOf-q_CySRt_.js} +1 -1
- package/assets/{parseNft-CXI7pMpx.js → parseNft-5mLnHHsb.js} +2 -2
- package/assets/{parseSignature-F_ud8fII.js → parseSignature-BXQWiyxd.js} +1 -1
- package/assets/{parseSignature-DYZh-ocN.js → parseSignature-Xsezcdr3.js} +3 -3
- package/assets/{pay-with-exchange-DvxmW09T.js → pay-with-exchange-8pnV59u_.js} +1 -1
- package/assets/{qr-overlay-BBvKBjTt.js → qr-overlay-BDJyO_OZ.js} +3 -3
- package/assets/{react-yytiy0wi.js → react-C51i12iP.js} +1 -1
- package/assets/{receive-DswDLHVt.js → receive-BSmYsMYb.js} +1 -1
- package/assets/{resolveImplementation-BNT1AXUm.js → resolveImplementation-pTzqT2n7.js} +1 -1
- package/assets/{rpc-KT1pZ07O.js → rpc-2aRT-2co.js} +1 -1
- package/assets/{secp256k1-sH0IQLpr.js → secp256k1-CBqMIQsl.js} +1 -1
- package/assets/{secp256k1-B9LFhz8-.js → secp256k1-CV0oEz43.js} +1 -1
- package/assets/{secp256k1-CaLQACD2.js → secp256k1-DlGyN83x.js} +1 -1
- package/assets/{send-DMQpd0xN.js → send-CtmOo9OT.js} +1 -1
- package/assets/{send-batch-transaction-Bjx4TPU7.js → send-batch-transaction-DczlMlYX.js} +1 -1
- package/assets/{send-eip712-transaction-Bhyo5mJD.js → send-eip712-transaction-C7NnRqWA.js} +2 -2
- package/assets/{send-gasless-transaction-X-ayhziV.js → send-gasless-transaction-CGNQiDpn.js} +2 -2
- package/assets/{sendRawTransaction-BWFwBY9N.js → sendRawTransaction-C-hku157.js} +3 -3
- package/assets/{sentry-BPJvc5GU.js → sentry-DKBoGDXH.js} +1 -1
- package/assets/{serializeTransaction-BiJ9trpW.js → serializeTransaction-BsWWwZbQ.js} +1 -1
- package/assets/{session-proposal-DF0C5j1r.js → session-proposal-ni3LdMGP.js} +1 -1
- package/assets/{session-request-DkiybRpS.js → session-request-IgqIbKir.js} +2 -2
- package/assets/{sha256-D19Qvf5p.js → sha256-4_9oQ2I6.js} +1 -1
- package/assets/{signing-B7Xgt3VD.js → signing-Bhm8lszD.js} +5 -5
- package/assets/{socials-D3OOLxHa.js → socials-DSk2lLL3.js} +1 -1
- package/assets/{swaps-UK0-24rq.js → swaps-C363NeRy.js} +1 -1
- package/assets/{thirdweb-BlBLiS5O.js → thirdweb-BhNxfjG0.js} +3 -3
- package/assets/{totalSupply-CuciM66j.js → totalSupply-Be_gMWWK.js} +1 -1
- package/assets/{trade-encoding-Dr2besxr.js → trade-encoding-D5hlkp_r.js} +1 -1
- package/assets/{transactionReceipt-D_l0_P3M.js → transactionReceipt-pNi0w4mU.js} +1 -1
- package/assets/{transactions-HpO-uP9c.js → transactions-CCTEkhLH.js} +1 -1
- package/assets/{useCreditPacks-jF-_aYkt.js → useCreditPacks-BE-fG45H.js} +1 -1
- package/assets/{useInfiniteGrid-DmEa4Rj6.js → useInfiniteGrid-zYFhuy60.js} +1 -1
- package/assets/{useStore-BDGgQjbV.js → useStore-DlgSV8xZ.js} +2 -2
- package/assets/useTheme-BmPzYbts.js +1 -0
- package/assets/useTheme-DSjNsZwZ.js +1 -0
- package/assets/{utils-CsEYBURh.js → utils-CBfcEx8F.js} +1 -1
- package/assets/{verifyHash-CFbVV67B.js → verifyHash-DBA8HgBY.js} +1 -1
- package/assets/{w3m-modal-DG3fBPEn.js → w3m-modal-C9hrB0_f.js} +1 -1
- package/assets/{w3m-modal-o13KrB6a.js → w3m-modal-CJSKRyIz.js} +1 -1
- package/assets/{wait-for-tx-receipt-CEcDL_4s.js → wait-for-tx-receipt-BdSu8YP0.js} +1 -1
- package/assets/{wallets-Bxi0qfe_.js → wallets-CJn4BiVq.js} +6 -6
- package/assets/{web-connector-Djulx7DD.js → web-connector-CB2KBra0.js} +3 -3
- package/assets/{writeContract-ld1yjWET.js → writeContract-DobkVUdS.js} +1 -1
- package/assets/{zora-sepolia-CKeXJ6uD.js → zora-sepolia-CKT05Lph.js} +1 -1
- package/assets/{zoraTestnet-DuoJupX5.js → zoraTestnet-DXF2ZpAM.js} +1 -1
- package/index.html +11 -11
- package/package.json +2 -2
- package/assets/Assets-CeamphU4.js +0 -1
- package/assets/ImportListings-D0cnF4v2.js +0 -5
- package/assets/ItemDetail-DKATNTJH.js +0 -29
- package/assets/MyAssets-DZ21drOF.js +0 -7
- package/assets/browser-ponyfill-Cl4XgbUp.js +0 -1
- package/assets/cart-checkout-BCBPBbFe.js +0 -1
- package/assets/categories-C4HyTLUC.js +0 -7
- package/assets/collection-WFDCerhK.js +0 -1
- package/assets/decimals-G1SKj7ht.js +0 -1
- package/assets/emotion-styled.browser.esm-CfHtORSh.js +0 -1
- package/assets/eth_estimateGas-DsaLLOsg.js +0 -1
- package/assets/eth_getTransactionCount-BAMNiMAi.js +0 -1
- package/assets/index-CAAtcdsn.js +0 -231
- package/assets/index-CIiavQLK.js +0 -1
- package/assets/index-DPHDecnV.css +0 -1
- package/assets/useTheme-DR6D7MpO.js +0 -1
- package/assets/useTheme-DpFmSKCC.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as l,j as v}from"./react-
|
|
1
|
+
import{r as l,j as v}from"./react-C51i12iP.js";const w="https://cdn.decentraland.org/@dcl/shop/0.1.0-29842599290.commit-2475f4f/assets/custom-welcome-background-BxlFQma9.webp",S="https://cdn.decentraland.org/@dcl/shop/0.1.0-29842599290.commit-2475f4f/assets/DCL_LogoPattern-BryBPc3d.png",U=`
|
|
2
2
|
attribute vec2 a_position;
|
|
3
3
|
varying vec2 v_uv;
|
|
4
4
|
void main() {
|
|
@@ -0,0 +1,503 @@
|
|
|
1
|
+
import{r as l,j as t,b as Se}from"./react-C51i12iP.js";import{s as i,ag as e,I as O,t as n,ap as me,h as G,m as je,u as ve,v as ie,A as se,aq as ke}from"./index-B4D19REm.js";import{m as Ce}from"./mana-rate-Bf-vAahU.js";import{u as Re,M as Ne}from"./MarketCheckout-DOEU43Cr.js";import{n as $,R as ee,C as Pe,a as Fe,b as _e,S as ne,F as ze,c as re,d as Ie}from"./categories-BicEp1xc.js";import{L as Te}from"./LoadMore-Blqu_ob_.js";import{u as Ae}from"./useInfiniteGrid-zYFhuy60.js";import{E as Ee}from"./ErrorNotice-C7soUjRV.js";import"./dcl-schemas-BICTSpB5.js";import"./sentry-DKBoGDXH.js";import"./ethers-BeFqf2KO.js";import"./intl-CBcMB1D2.js";import"./index-HN6Rk25C.js";import"./buy-B5ZS4ZBM.js";import"./trade-encoding-D5hlkp_r.js";import"./buy-gasless-Ba7WiBbA.js";import"./errors-VkIbnyNm.js";const Le=i.div`
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
gap: 12px;
|
|
5
|
+
width: 100%;
|
|
6
|
+
`,K=i.div`
|
|
7
|
+
height: 1px;
|
|
8
|
+
background: ${e.colors.media};
|
|
9
|
+
width: 100%;
|
|
10
|
+
`,Me=i.div`
|
|
11
|
+
display: flex;
|
|
12
|
+
flex-direction: column;
|
|
13
|
+
width: 100%;
|
|
14
|
+
`,Oe=i("button",$("desktopStatic"))`
|
|
15
|
+
display: flex;
|
|
16
|
+
align-items: center;
|
|
17
|
+
justify-content: space-between;
|
|
18
|
+
gap: 8px;
|
|
19
|
+
width: 100%;
|
|
20
|
+
height: 40px;
|
|
21
|
+
padding: 4px;
|
|
22
|
+
border: 0;
|
|
23
|
+
border-radius: 4px;
|
|
24
|
+
background: transparent;
|
|
25
|
+
color: ${e.colors.text};
|
|
26
|
+
text-align: left;
|
|
27
|
+
cursor: pointer;
|
|
28
|
+
|
|
29
|
+
${e.media.down("lg")} {
|
|
30
|
+
height: 52px;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
@media (hover: hover) {
|
|
34
|
+
&:hover {
|
|
35
|
+
background: #f5f4f7;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
&:focus-visible {
|
|
39
|
+
outline: 2px solid ${e.colors.accent};
|
|
40
|
+
outline-offset: 2px;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
${({desktopStatic:o})=>o?`${e.media.up("lg")} {
|
|
44
|
+
cursor: default;
|
|
45
|
+
&:hover { background: transparent; }
|
|
46
|
+
}`:""}
|
|
47
|
+
`,qe=i.span`
|
|
48
|
+
font-family: ${e.font.sans};
|
|
49
|
+
font-weight: 600;
|
|
50
|
+
font-size: 14px;
|
|
51
|
+
line-height: 1.43;
|
|
52
|
+
color: ${e.colors.text};
|
|
53
|
+
|
|
54
|
+
${e.media.down("lg")} {
|
|
55
|
+
font-size: 16px;
|
|
56
|
+
}
|
|
57
|
+
`,He=i.span`
|
|
58
|
+
display: inline-flex;
|
|
59
|
+
${e.media.up("lg")} {
|
|
60
|
+
display: none;
|
|
61
|
+
}
|
|
62
|
+
`,We=i("p",$("desktopHidden"))`
|
|
63
|
+
margin: 0;
|
|
64
|
+
padding: 0 4px 4px;
|
|
65
|
+
font-family: ${e.font.sans};
|
|
66
|
+
font-weight: 400;
|
|
67
|
+
font-size: 12px;
|
|
68
|
+
line-height: normal;
|
|
69
|
+
color: ${e.colors.muted};
|
|
70
|
+
text-transform: capitalize;
|
|
71
|
+
|
|
72
|
+
${({desktopHidden:o})=>o?`${e.media.up("lg")} { display: none; }`:""}
|
|
73
|
+
`,Be=i("div",$("open","desktopStatic"))`
|
|
74
|
+
display: grid;
|
|
75
|
+
grid-template-rows: ${({open:o})=>o?"1fr":"0fr"};
|
|
76
|
+
transition: grid-template-rows 0.22s ease;
|
|
77
|
+
|
|
78
|
+
${({desktopStatic:o})=>o?`${e.media.up("lg")} { grid-template-rows: 1fr; }`:""}
|
|
79
|
+
|
|
80
|
+
@media (prefers-reduced-motion: reduce) {
|
|
81
|
+
transition: none;
|
|
82
|
+
}
|
|
83
|
+
`,De=i.div`
|
|
84
|
+
overflow: hidden;
|
|
85
|
+
min-height: 0;
|
|
86
|
+
`,Ye=i.div`
|
|
87
|
+
display: flex;
|
|
88
|
+
align-items: flex-end;
|
|
89
|
+
justify-content: center;
|
|
90
|
+
gap: 6px;
|
|
91
|
+
padding: 8px 4px 0;
|
|
92
|
+
`,ae=i.label`
|
|
93
|
+
display: flex;
|
|
94
|
+
flex: 1;
|
|
95
|
+
min-width: 0;
|
|
96
|
+
flex-direction: column;
|
|
97
|
+
gap: 4px;
|
|
98
|
+
`,le=i.span`
|
|
99
|
+
font-family: ${e.font.sans};
|
|
100
|
+
font-weight: 400;
|
|
101
|
+
font-size: 12px;
|
|
102
|
+
color: ${e.colors.muted};
|
|
103
|
+
`,ce=i.span`
|
|
104
|
+
display: flex;
|
|
105
|
+
align-items: center;
|
|
106
|
+
gap: 4px;
|
|
107
|
+
height: 42px;
|
|
108
|
+
padding: 8px;
|
|
109
|
+
border: 0.5px solid ${e.colors.text};
|
|
110
|
+
border-radius: 8px;
|
|
111
|
+
background: ${e.colors.white};
|
|
112
|
+
|
|
113
|
+
&:focus-within {
|
|
114
|
+
border-color: ${e.rarities.epic};
|
|
115
|
+
}
|
|
116
|
+
`,de=i(O)`
|
|
117
|
+
width: 16px;
|
|
118
|
+
height: 16px;
|
|
119
|
+
color: ${e.colors.rarity};
|
|
120
|
+
`,pe=i.input`
|
|
121
|
+
width: 100%;
|
|
122
|
+
min-width: 0;
|
|
123
|
+
border: 0;
|
|
124
|
+
background: none;
|
|
125
|
+
padding: 0;
|
|
126
|
+
font-family: ${e.font.sans};
|
|
127
|
+
font-size: 13px;
|
|
128
|
+
color: ${e.colors.text};
|
|
129
|
+
|
|
130
|
+
&:focus {
|
|
131
|
+
outline: 0;
|
|
132
|
+
}
|
|
133
|
+
&::-webkit-outer-spin-button,
|
|
134
|
+
&::-webkit-inner-spin-button {
|
|
135
|
+
-webkit-appearance: none;
|
|
136
|
+
margin: 0;
|
|
137
|
+
}
|
|
138
|
+
`,Ge=i.span`
|
|
139
|
+
padding-bottom: 12px;
|
|
140
|
+
color: ${e.colors.text};
|
|
141
|
+
font-family: ${e.font.sans};
|
|
142
|
+
font-size: 13px;
|
|
143
|
+
`,Ke=i.div`
|
|
144
|
+
position: relative;
|
|
145
|
+
height: 20px;
|
|
146
|
+
margin: 24px 4px 0;
|
|
147
|
+
`,Ue=i.div`
|
|
148
|
+
position: absolute;
|
|
149
|
+
top: 50%;
|
|
150
|
+
left: 0;
|
|
151
|
+
right: 0;
|
|
152
|
+
height: 2px;
|
|
153
|
+
transform: translateY(-50%);
|
|
154
|
+
background: ${e.colors.media};
|
|
155
|
+
border-radius: 2px;
|
|
156
|
+
`,Qe=i("div",$("minPct","maxPct"))`
|
|
157
|
+
position: absolute;
|
|
158
|
+
top: 50%;
|
|
159
|
+
height: 2px;
|
|
160
|
+
transform: translateY(-50%);
|
|
161
|
+
left: ${({minPct:o})=>`${o}%`};
|
|
162
|
+
right: ${({maxPct:o})=>`${100-o}%`};
|
|
163
|
+
background: ${e.colors.rarity};
|
|
164
|
+
border-radius: 2px;
|
|
165
|
+
`,xe=i.input`
|
|
166
|
+
position: absolute;
|
|
167
|
+
top: 0;
|
|
168
|
+
left: 0;
|
|
169
|
+
width: 100%;
|
|
170
|
+
height: 20px;
|
|
171
|
+
margin: 0;
|
|
172
|
+
-webkit-appearance: none;
|
|
173
|
+
appearance: none;
|
|
174
|
+
background: none;
|
|
175
|
+
pointer-events: none;
|
|
176
|
+
|
|
177
|
+
&::-webkit-slider-thumb {
|
|
178
|
+
-webkit-appearance: none;
|
|
179
|
+
appearance: none;
|
|
180
|
+
pointer-events: auto;
|
|
181
|
+
width: 16px;
|
|
182
|
+
height: 16px;
|
|
183
|
+
border-radius: 50%;
|
|
184
|
+
background: ${e.colors.white};
|
|
185
|
+
border: 2px solid ${e.colors.rarity};
|
|
186
|
+
box-shadow: 0 1px 3px rgba(22, 21, 24, 0.25);
|
|
187
|
+
cursor: pointer;
|
|
188
|
+
}
|
|
189
|
+
&::-moz-range-thumb {
|
|
190
|
+
pointer-events: auto;
|
|
191
|
+
width: 16px;
|
|
192
|
+
height: 16px;
|
|
193
|
+
border-radius: 50%;
|
|
194
|
+
background: ${e.colors.white};
|
|
195
|
+
border: 2px solid ${e.colors.rarity};
|
|
196
|
+
box-shadow: 0 1px 3px rgba(22, 21, 24, 0.25);
|
|
197
|
+
cursor: pointer;
|
|
198
|
+
}
|
|
199
|
+
`,Je=i.div`
|
|
200
|
+
display: flex;
|
|
201
|
+
align-items: center;
|
|
202
|
+
justify-content: space-between;
|
|
203
|
+
padding: 12px 4px 0;
|
|
204
|
+
`,ue=i.span`
|
|
205
|
+
display: inline-flex;
|
|
206
|
+
align-items: center;
|
|
207
|
+
gap: 2px;
|
|
208
|
+
font-family: ${e.font.sans};
|
|
209
|
+
font-size: 13px;
|
|
210
|
+
color: ${e.colors.text};
|
|
211
|
+
`,he=i(O)`
|
|
212
|
+
width: 16px;
|
|
213
|
+
height: 16px;
|
|
214
|
+
color: ${e.colors.text};
|
|
215
|
+
`,Ve=i.div`
|
|
216
|
+
display: flex;
|
|
217
|
+
flex-wrap: wrap;
|
|
218
|
+
gap: 12px;
|
|
219
|
+
padding: 9px 4px 9px 8px;
|
|
220
|
+
|
|
221
|
+
${e.media.down("lg")} {
|
|
222
|
+
gap: 12px 16px;
|
|
223
|
+
}
|
|
224
|
+
`,Xe=i("button",$("selected"))`
|
|
225
|
+
display: inline-flex;
|
|
226
|
+
align-items: center;
|
|
227
|
+
gap: 4px;
|
|
228
|
+
padding: 4px 8px;
|
|
229
|
+
border-radius: 6px;
|
|
230
|
+
background: ${e.colors.softWhite};
|
|
231
|
+
border: ${({selected:o})=>o?`1px solid ${e.colors.text}`:`0.5px solid ${e.colors.gray4}`};
|
|
232
|
+
cursor: pointer;
|
|
233
|
+
|
|
234
|
+
&:hover {
|
|
235
|
+
border-color: ${e.colors.text};
|
|
236
|
+
}
|
|
237
|
+
&:focus-visible {
|
|
238
|
+
outline: 2px solid ${e.colors.accent};
|
|
239
|
+
outline-offset: 2px;
|
|
240
|
+
}
|
|
241
|
+
`,Ze=i("span",$("color"))`
|
|
242
|
+
position: relative;
|
|
243
|
+
width: 16px;
|
|
244
|
+
height: 16px;
|
|
245
|
+
border-radius: 4px;
|
|
246
|
+
background: ${({color:o})=>o};
|
|
247
|
+
flex: none;
|
|
248
|
+
`,et=i(O)`
|
|
249
|
+
position: absolute;
|
|
250
|
+
inset: 0;
|
|
251
|
+
width: 16px;
|
|
252
|
+
height: 16px;
|
|
253
|
+
color: ${e.colors.white};
|
|
254
|
+
`,tt=i("span",$("selected"))`
|
|
255
|
+
font-family: ${e.font.sans};
|
|
256
|
+
font-weight: ${({selected:o})=>o?600:400};
|
|
257
|
+
font-size: 12px;
|
|
258
|
+
line-height: 1.43;
|
|
259
|
+
color: ${({selected:o})=>o?e.colors.text2:e.colors.gray0};
|
|
260
|
+
text-transform: capitalize;
|
|
261
|
+
|
|
262
|
+
${e.media.down("lg")} {
|
|
263
|
+
font-size: 14px;
|
|
264
|
+
}
|
|
265
|
+
`,ot=i.label`
|
|
266
|
+
display: flex;
|
|
267
|
+
align-items: center;
|
|
268
|
+
gap: 8px;
|
|
269
|
+
height: 40px;
|
|
270
|
+
padding: 4px 4px 4px 24px;
|
|
271
|
+
cursor: pointer;
|
|
272
|
+
`,it=i.input`
|
|
273
|
+
width: 18px;
|
|
274
|
+
height: 18px;
|
|
275
|
+
margin: 0;
|
|
276
|
+
accent-color: ${e.colors.accent};
|
|
277
|
+
cursor: pointer;
|
|
278
|
+
flex: none;
|
|
279
|
+
`,st=i.span`
|
|
280
|
+
font-family: ${e.font.sans};
|
|
281
|
+
font-weight: 400;
|
|
282
|
+
font-size: 14px;
|
|
283
|
+
line-height: 1.43;
|
|
284
|
+
color: ${e.colors.gray0};
|
|
285
|
+
`,nt=i.div`
|
|
286
|
+
display: flex;
|
|
287
|
+
align-items: center;
|
|
288
|
+
justify-content: space-between;
|
|
289
|
+
gap: 8px;
|
|
290
|
+
width: 100%;
|
|
291
|
+
height: 40px;
|
|
292
|
+
padding: 4px;
|
|
293
|
+
|
|
294
|
+
/* On mobile SMART is a peer of the collapsible section headers (Figma 1304-307965): same 52px row
|
|
295
|
+
height so it doesn't read as a smaller afterthought. */
|
|
296
|
+
${e.media.down("lg")} {
|
|
297
|
+
height: 52px;
|
|
298
|
+
}
|
|
299
|
+
`,rt=i.div`
|
|
300
|
+
display: flex;
|
|
301
|
+
align-items: center;
|
|
302
|
+
gap: 6px;
|
|
303
|
+
`,at=i(O)`
|
|
304
|
+
width: 14px;
|
|
305
|
+
height: 14px;
|
|
306
|
+
color: ${e.colors.text};
|
|
307
|
+
|
|
308
|
+
${e.media.down("lg")} {
|
|
309
|
+
width: 16px;
|
|
310
|
+
height: 16px;
|
|
311
|
+
}
|
|
312
|
+
`,lt=i.span`
|
|
313
|
+
font-family: ${e.font.sans};
|
|
314
|
+
font-weight: 600;
|
|
315
|
+
font-size: 14px;
|
|
316
|
+
line-height: 1.43;
|
|
317
|
+
color: ${e.colors.text};
|
|
318
|
+
/* Figma labels SMART in uppercase (the flash-feature label), unlike the title-case section names. */
|
|
319
|
+
text-transform: uppercase;
|
|
320
|
+
|
|
321
|
+
/* Match the section-header title size on mobile so SMART has the same hierarchy as Price/Rarity/etc. */
|
|
322
|
+
${e.media.down("lg")} {
|
|
323
|
+
font-size: 16px;
|
|
324
|
+
}
|
|
325
|
+
`,ct=i(O)`
|
|
326
|
+
width: 12px;
|
|
327
|
+
height: 12px;
|
|
328
|
+
color: ${e.colors.muted2};
|
|
329
|
+
`,dt=i("button",$("on"))`
|
|
330
|
+
position: relative;
|
|
331
|
+
width: 24px;
|
|
332
|
+
height: 14px;
|
|
333
|
+
padding: 0;
|
|
334
|
+
border-radius: 100px;
|
|
335
|
+
border: 1px solid ${({on:o})=>o?e.colors.accent:e.colors.gray4};
|
|
336
|
+
background: ${({on:o})=>o?e.colors.accent:e.colors.media};
|
|
337
|
+
cursor: pointer;
|
|
338
|
+
flex: none;
|
|
339
|
+
transition:
|
|
340
|
+
background 0.15s ease,
|
|
341
|
+
border-color 0.15s ease;
|
|
342
|
+
|
|
343
|
+
&:focus-visible {
|
|
344
|
+
outline: 2px solid ${e.colors.accent};
|
|
345
|
+
outline-offset: 2px;
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
/* Bigger, tappable switch on mobile (the 24×14 desktop pill reads as too small on a phone). */
|
|
349
|
+
${e.media.down("lg")} {
|
|
350
|
+
width: 40px;
|
|
351
|
+
height: 22px;
|
|
352
|
+
}
|
|
353
|
+
`,pt=i("span",$("on"))`
|
|
354
|
+
position: absolute;
|
|
355
|
+
top: 50%;
|
|
356
|
+
left: ${({on:o})=>o?"calc(100% - 12px)":"0px"};
|
|
357
|
+
transform: translateY(-50%);
|
|
358
|
+
width: 12px;
|
|
359
|
+
height: 12px;
|
|
360
|
+
border-radius: 50%;
|
|
361
|
+
background: ${e.colors.white};
|
|
362
|
+
box-shadow: 0 1px 2px rgba(22, 21, 24, 0.3);
|
|
363
|
+
transition: left 0.15s ease;
|
|
364
|
+
|
|
365
|
+
${e.media.down("lg")} {
|
|
366
|
+
width: 18px;
|
|
367
|
+
height: 18px;
|
|
368
|
+
left: ${({on:o})=>o?"calc(100% - 18px)":"2px"};
|
|
369
|
+
}
|
|
370
|
+
`,k=1e5;function xt(o){var a;for(const C of Fe){const u=(a=C.subs)==null?void 0:a.find(c=>c.key===o);if(u)return n(u.labelKey)}return o}function U({title:o,open:a,onToggle:C,summary:u,desktopStatic:c,headerTestId:h,headerAria:x,children:S}){const p=t.jsx(_e,{up:a,size:24,color:"var(--text)"});return t.jsxs(Me,{children:[t.jsxs(Oe,{type:"button",desktopStatic:c,onClick:C,"aria-expanded":a,"aria-label":x,"data-testid":h,children:[t.jsx(qe,{children:o}),c?t.jsx(He,{children:p}):p]}),!a&&u?t.jsx(We,{desktopHidden:c,children:u}):null,t.jsx(Be,{open:a,desktopStatic:c,children:t.jsx(De,{children:S})})]})}function ut({category:o,subCategory:a,onCategory:C,onSub:u,priceMin:c,priceMax:h,onPriceMin:x,onPriceMax:S,rarities:p,onToggleRarity:q,status:j,onStatus:I,smart:y,onSmart:T}){const[m,A]=l.useState(!0),[v,E]=l.useState(!0),[R,Q]=l.useState(!1),[F,N]=l.useState(!0),_=c&&!Number.isNaN(Number(c))?Number(c):void 0,P=h&&!Number.isNaN(Number(h))?Number(h):void 0,f=_!=null?Math.min(_,k):0,g=P!=null?Math.min(P,k):k,J=f/k*100,V=g/k*100;function H(r){const d=Math.min(r,g);x(d<=0?"":String(d))}function z(r){const d=Math.max(r,f);S(d>=k?"":String(d))}const W=a?xt(a):o!=="wearable"?n(`categories.${o==="emote"?"emotes":o==="all"?"shopAll":o}`):"",w=_!=null||P!=null?`${c||"0"}-${h||"∞"}`:"",X=ee.filter(r=>p.includes(r)).map(me).join(", "),Z=j==="on_sale"?n("filter.onSale"):j==="not_for_sale"?n("filter.notForSale"):"";return t.jsxs(Le,{children:[t.jsx(U,{title:n("assets.category"),open:m,onToggle:()=>A(r=>!r),summary:W,desktopStatic:!0,children:t.jsx(Pe,{category:o,subCategory:a,onCategory:C,onSub:u})}),t.jsx(K,{}),t.jsxs(U,{title:n("filter.price"),open:v,onToggle:()=>E(r=>!r),summary:w,desktopStatic:!0,children:[t.jsxs(Ye,{children:[t.jsxs(ae,{children:[t.jsx(le,{children:n("assets.min")}),t.jsxs(ce,{children:[t.jsx(de,{name:G.iconName,"aria-hidden":!0}),t.jsx(pe,{type:"number",min:"0","aria-label":n("assets.minPriceAria"),placeholder:"0",value:c,onChange:r=>x(r.target.value)})]})]}),t.jsx(Ge,{children:n("assets.priceTo")}),t.jsxs(ae,{children:[t.jsx(le,{children:n("assets.max")}),t.jsxs(ce,{children:[t.jsx(de,{name:G.iconName,"aria-hidden":!0}),t.jsx(pe,{type:"number",min:"0","aria-label":n("assets.maxPriceAria"),placeholder:"0",value:h,onChange:r=>S(r.target.value)})]})]})]}),t.jsxs(Ke,{children:[t.jsx(Ue,{"aria-hidden":!0}),t.jsx(Qe,{minPct:J,maxPct:V,"aria-hidden":!0}),t.jsx(xe,{type:"range",min:0,max:k,value:f,"aria-label":n("assets.minPriceSliderAria"),onChange:r=>H(Number(r.target.value))}),t.jsx(xe,{type:"range",min:0,max:k,value:g,"aria-label":n("assets.maxPriceSliderAria"),onChange:r=>z(Number(r.target.value))})]}),t.jsxs(Je,{children:[t.jsxs(ue,{children:[t.jsx(he,{name:G.iconName,"aria-hidden":!0}),f.toLocaleString()]}),t.jsxs(ue,{children:[t.jsx(he,{name:G.iconName,"aria-hidden":!0}),g.toLocaleString()]})]})]}),t.jsx(K,{}),t.jsx(U,{title:n("assets.rarity"),open:R,onToggle:()=>Q(r=>!r),summary:X,headerTestId:"sidebar-section-toggle",children:t.jsx(Ve,{"data-testid":"rarity-filter",children:ee.map(r=>{const d=p.includes(r);return t.jsxs(Xe,{type:"button",selected:d,"aria-pressed":d,onClick:()=>q(r),"data-testid":"rarity-filter-check",children:[t.jsx(Ze,{color:e.rarities[r],children:d?t.jsx(et,{name:"check","aria-hidden":!0}):null}),t.jsx(tt,{selected:d,children:r})]},r)})})}),t.jsx(K,{}),t.jsx(U,{title:n("filter.status"),open:F,onToggle:()=>N(r=>!r),summary:Z,children:[["all",n("filter.statusAll")],["on_sale",n("filter.onSale")],["not_for_sale",n("filter.notForSale")]].map(([r,d])=>t.jsxs(ot,{children:[t.jsx(it,{type:"radio",name:"shop-status",checked:j===r,onChange:()=>I(r)}),t.jsx(st,{children:d})]},r))}),t.jsx(K,{}),t.jsxs(nt,{children:[t.jsxs(rt,{children:[t.jsx(at,{name:"smart","aria-hidden":!0}),t.jsx(lt,{children:n("filter.smart")}),t.jsx(ct,{name:"info",role:"img","aria-label":n("filter.smartHint"),title:n("filter.smartHint")})]}),t.jsx(dt,{type:"button",role:"switch",on:y,"aria-checked":y,"aria-label":n("filter.smart"),onClick:()=>T(!y),children:t.jsx(pt,{on:y})})]})]})}const ht=i.div`
|
|
371
|
+
position: relative;
|
|
372
|
+
display: flex;
|
|
373
|
+
gap: 32px;
|
|
374
|
+
align-items: flex-start;
|
|
375
|
+
|
|
376
|
+
${e.media.down("lg")} {
|
|
377
|
+
display: block;
|
|
378
|
+
}
|
|
379
|
+
`,mt=i.div`
|
|
380
|
+
flex: 1;
|
|
381
|
+
min-width: 0;
|
|
382
|
+
|
|
383
|
+
${e.media.down("lg")} {
|
|
384
|
+
width: 100%;
|
|
385
|
+
}
|
|
386
|
+
`,ft=i.aside`
|
|
387
|
+
flex: none;
|
|
388
|
+
width: 265px;
|
|
389
|
+
|
|
390
|
+
${e.media.down("lg")} {
|
|
391
|
+
position: fixed;
|
|
392
|
+
left: 0;
|
|
393
|
+
right: 0;
|
|
394
|
+
bottom: 0;
|
|
395
|
+
top: auto;
|
|
396
|
+
z-index: 9999;
|
|
397
|
+
width: 100%;
|
|
398
|
+
max-height: 88vh;
|
|
399
|
+
display: flex;
|
|
400
|
+
flex-direction: column;
|
|
401
|
+
border-radius: 16px 16px 0 0;
|
|
402
|
+
background: ${e.colors.white};
|
|
403
|
+
padding: 0 16px;
|
|
404
|
+
box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.18);
|
|
405
|
+
transform: translateY(100%);
|
|
406
|
+
transition: transform 0.26s ease;
|
|
407
|
+
visibility: hidden;
|
|
408
|
+
|
|
409
|
+
&.is-open {
|
|
410
|
+
transform: translateY(0);
|
|
411
|
+
visibility: visible;
|
|
412
|
+
}
|
|
413
|
+
}
|
|
414
|
+
`,gt=i.div`
|
|
415
|
+
${e.media.down("lg")} {
|
|
416
|
+
flex: 1;
|
|
417
|
+
min-height: 0;
|
|
418
|
+
overflow-y: auto;
|
|
419
|
+
/* Room so the last filter row clears the sticky "Show items" bar (Figma bottom bar). */
|
|
420
|
+
padding-bottom: 24px;
|
|
421
|
+
}
|
|
422
|
+
`,bt=i.div`
|
|
423
|
+
position: fixed;
|
|
424
|
+
inset: 0;
|
|
425
|
+
z-index: 9998;
|
|
426
|
+
background: rgba(0, 0, 0, 0.4);
|
|
427
|
+
`,yt=i.div`
|
|
428
|
+
display: none;
|
|
429
|
+
|
|
430
|
+
${e.media.down("lg")} {
|
|
431
|
+
position: sticky;
|
|
432
|
+
top: 0;
|
|
433
|
+
z-index: 2;
|
|
434
|
+
display: flex;
|
|
435
|
+
align-items: center;
|
|
436
|
+
justify-content: space-between;
|
|
437
|
+
background: ${e.colors.white};
|
|
438
|
+
margin: 0 -16px 8px;
|
|
439
|
+
padding: 16px 16px 12px;
|
|
440
|
+
border-radius: 16px 16px 0 0;
|
|
441
|
+
}
|
|
442
|
+
`,wt=i.span`
|
|
443
|
+
font-family: ${e.font.sans};
|
|
444
|
+
font-weight: 700;
|
|
445
|
+
font-size: 15px;
|
|
446
|
+
letter-spacing: 0.46px;
|
|
447
|
+
text-transform: uppercase;
|
|
448
|
+
color: ${e.colors.text};
|
|
449
|
+
`,$t=i.button`
|
|
450
|
+
display: grid;
|
|
451
|
+
place-items: center;
|
|
452
|
+
width: 32px;
|
|
453
|
+
height: 32px;
|
|
454
|
+
border-radius: 50%;
|
|
455
|
+
background: ${e.colors.chip};
|
|
456
|
+
border: 0;
|
|
457
|
+
font-size: 15px;
|
|
458
|
+
line-height: 1;
|
|
459
|
+
cursor: pointer;
|
|
460
|
+
color: ${e.colors.text};
|
|
461
|
+
|
|
462
|
+
&:focus-visible {
|
|
463
|
+
outline: 2px solid ${e.colors.accent};
|
|
464
|
+
outline-offset: 2px;
|
|
465
|
+
}
|
|
466
|
+
`,St=i.div`
|
|
467
|
+
display: none;
|
|
468
|
+
|
|
469
|
+
${e.media.down("lg")} {
|
|
470
|
+
display: flex;
|
|
471
|
+
align-items: center;
|
|
472
|
+
gap: 12px;
|
|
473
|
+
position: sticky;
|
|
474
|
+
bottom: 0;
|
|
475
|
+
margin: 8px -16px 0;
|
|
476
|
+
padding: 16px 16px calc(16px + env(safe-area-inset-bottom));
|
|
477
|
+
background: ${e.colors.white};
|
|
478
|
+
box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.25);
|
|
479
|
+
z-index: 1;
|
|
480
|
+
}
|
|
481
|
+
`,jt=i.button`
|
|
482
|
+
flex: 1;
|
|
483
|
+
height: 40px;
|
|
484
|
+
border: 0;
|
|
485
|
+
border-radius: 8px;
|
|
486
|
+
background: ${e.colors.accent};
|
|
487
|
+
color: ${e.colors.softWhite};
|
|
488
|
+
font-family: ${e.font.sans};
|
|
489
|
+
font-weight: 600;
|
|
490
|
+
font-size: 13px;
|
|
491
|
+
letter-spacing: 0.46px;
|
|
492
|
+
line-height: 24px;
|
|
493
|
+
text-transform: uppercase;
|
|
494
|
+
cursor: pointer;
|
|
495
|
+
|
|
496
|
+
&:hover {
|
|
497
|
+
filter: brightness(1.08);
|
|
498
|
+
}
|
|
499
|
+
&:focus-visible {
|
|
500
|
+
outline: 2px solid ${e.colors.accent};
|
|
501
|
+
outline-offset: 2px;
|
|
502
|
+
}
|
|
503
|
+
`,vt=48;function kt(o){return{tradeId:o.tradeId??o.id,listingType:"primary",contractAddress:o.contractAddress,itemId:o.itemId??"",name:o.name,thumbnail:o.thumbnail,rarity:o.rarity,category:o.category,wearableCategory:o.wearableCategory??null,creator:o.creator,manaWei:o.manaWei??"0",available:1,network:o.network,chainId:o.chainId,createdAt:0}}function Bt(){const[o]=Se(),a=(o.get("q")??"").trim().toLowerCase(),C=je(),u=(o.get("q")??"").trim();ve({title:u?n("seo.collectibles.searchTitle",{query:u}):n("seo.collectibles.title"),description:n("seo.collectibles.description")});const[c,h]=l.useState("wearable"),[x,S]=l.useState(null),[p,q]=l.useState([]),[j,I]=l.useState(""),[y,T]=l.useState(""),[m,A]=l.useState("all"),[v,E]=l.useState(!1),[R,Q]=l.useState("newest"),[F,N]=l.useState(!1),[_,P]=l.useState(null);l.useEffect(()=>{if(!F)return;const s=M=>{M.key==="Escape"&&N(!1)};document.addEventListener("keydown",s);const b=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.removeEventListener("keydown",s),document.body.style.overflow=b}},[F]);const f=j&&!Number.isNaN(Number(j))?Number(j):void 0,g=y&&!Number.isNaN(Number(y))?Number(y):void 0,J=x?Ie[x]:void 0,V=(ne.find(s=>s.key===R)??ne[0]).server,H={category:c,rarities:p.length?p:void 0,wearableCategories:J,minPriceCredits:f,maxPriceCredits:g,search:a||void 0,sortBy:V,isSmart:v||void 0,onSale:m==="all"?void 0:m==="on_sale"},{items:z,total:W,isLoading:w,error:X,hasNextPage:Z,isFetchingNextPage:r,fetchNextPage:d}=Ae(["unified-listings",H],s=>ke({...H,first:vt,skip:s})),B=W,{data:D,isError:fe}=Re(),ge=s=>D&&s.manaWei?Ce(s.manaWei,D):null,te=l.useRef(null);l.useEffect(()=>{w||!a||te.current===a||(te.current=a,ie("Shop Searched",{query:a,result_count:B}))},[a,w,B]);const Y=l.useRef("__init__");l.useEffect(()=>{if(w)return;const s=JSON.stringify({category:c,subCategory:x,rarities:p,min:f,max:g,sort:R,status:m,smart:v});if(Y.current==="__init__"||Y.current===s){Y.current=s;return}Y.current=s,ie("Shop Applied Filter",{filters:{category:c,sub_category:x,rarities:p,min_price_credits:f??null,max_price_credits:g??null,status:m,smart:v,sort:R},result_count:B})},[c,x,p,f,g,R,m,v,w,B]);function be(s){h(s),S(null)}function oe(s){q(b=>b.includes(s)?b.filter(M=>M!==s):[...b,s])}function ye(){h("wearable"),S(null),q([]),I(""),T(""),A("all"),E(!1)}function we(s){const b=z.find(M=>M.id===s.id);b&&b.source==="legacy"&&b.manaWei&&P(kt(b))}function $e(){C.invalidateQueries({queryKey:["unified-listings"]})}const L=[];(f!=null||g!=null)&&L.push({key:"price",label:n("filter.price"),onRemove:()=>{I(""),T("")}});for(const s of ee)p.includes(s)&&L.push({key:`rarity-${s}`,label:me(s),onRemove:()=>oe(s)});return v&&L.push({key:"smart",label:n("filter.smart"),onRemove:()=>E(!1)}),m!=="all"&&L.push({key:"status",label:m==="on_sale"?n("filter.onSale"):n("filter.notForSale"),onRemove:()=>A("all")}),t.jsxs(ht,{"data-testid":"browse",children:[F?t.jsx(bt,{onClick:()=>N(!1),"aria-hidden":!0}):null,t.jsxs(ft,{className:F?"is-open":"","data-testid":"browse-sidebar",children:[t.jsxs(yt,{children:[t.jsx(wt,{children:n("assets.filters")}),t.jsx($t,{onClick:()=>N(!1),"aria-label":n("assets.closeFilters"),children:"✕"})]}),t.jsx(gt,{children:t.jsx(ut,{category:c,subCategory:x,onCategory:be,onSub:S,priceMin:j,priceMax:y,onPriceMin:I,onPriceMax:T,rarities:p,onToggleRarity:oe,status:m,onStatus:A,smart:v,onSmart:E})}),t.jsx(St,{children:t.jsx(jt,{type:"button",onClick:()=>N(!1),children:n("assets.showItems")})})]}),t.jsxs(mt,{children:[t.jsx(ze,{sort:R,onSort:Q,total:W,loading:w,query:a,onOpenFilters:()=>N(!0),chips:L,onClearChips:ye}),fe&&z.some(s=>s.source==="legacy")?t.jsx("p",{className:"market-banner market-banner--warn",children:n("assets.marketUnavailable")}):null,X?t.jsx(Ee,{message:n("assets.loadError"),testId:"browse-error"}):null,t.jsx("div",{className:"grid","data-testid":"grid",children:w?t.jsx(re,{count:15}):t.jsxs(t.Fragment,{children:[z.map(s=>s.source==="legacy"?t.jsx(se,{item:s,mode:"market",marketPriceCredits:ge(s),onBuyNow:we},s.id):t.jsx(se,{item:s},s.id)),r?t.jsx(re,{count:6}):null]})}),t.jsx(Te,{hasNextPage:Z,isFetching:r,onLoadMore:()=>void d()}),!w&&z.length===0?t.jsx("p",{className:"muted",children:n("assets.noItems")}):null]}),_&&D?t.jsx(Ne,{listing:_,rate:D,onClose:()=>P(null),onSold:()=>{P(null),$e()}}):null]})}export{Bt as Assets};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{j as e,r as j,
|
|
1
|
+
import{j as e,r as j,u as Se,a as Ie,L as X}from"./react-C51i12iP.js";import{t as a,C as S,a8 as R,u as Le,a9 as N,a as le,b as qe,c as Pe,l as Ee,m as Te,I as q,aa as Be,v as O,ab as ie,ac as Fe,z as A,s as Ae,B as Re,g as We,h as Ue,r as ze,n as de,ad as Qe,x as ue,w as $e,ae as Ke}from"./index-B4D19REm.js";import{a as he}from"./buy-B5ZS4ZBM.js";import{g as Oe,a as Ge,w as Je,S as De,G as Ve}from"./buy-gasless-Ba7WiBbA.js";import{R as G,r as Ye}from"./cart-checkout-Cv0O-IMr.js";import{u as He,c as Xe}from"./useCreditPacks-BE-fG45H.js";import{E as ye}from"./ErrorNotice-C7soUjRV.js";import{i as Ze,a as es}from"./errors-VkIbnyNm.js";import{C as ss}from"./CollectionCarousel-BB3DzDmR.js";import"./dcl-schemas-BICTSpB5.js";import"./sentry-DKBoGDXH.js";import"./ethers-BeFqf2KO.js";import"./intl-CBcMB1D2.js";import"./trade-encoding-D5hlkp_r.js";import"./index-HN6Rk25C.js";function as(t){const{phase:r,balanceCredits:p,onClose:l}=t,k=r==="processing",P=r!=="complete",E=r==="nofunds"?a("cartCheckout.titleNoFunds"):a("cartCheckout.titleBuy"),f=r==="processing";return e.jsxs("div",{className:"buy-modal",role:"dialog","aria-modal":"true","aria-label":a("cartCheckout.dialogAria"),children:[e.jsx("div",{className:"buy-modal__scrim",onClick:k?void 0:l,"aria-hidden":!0}),e.jsxs("div",{className:`buy-modal__card${f?" buy-modal__card--tall":""}`,children:[P&&e.jsxs("div",{className:"buy-modal__head",children:[e.jsxs("div",{className:"buy-modal__head-row",children:[e.jsx("h2",{className:"buy-modal__title",children:E}),!k&&e.jsx("button",{className:"buy-modal__x",onClick:l,"aria-label":a("buyModal.close"),children:e.jsx("svg",{viewBox:"0 0 18 18",width:"18",height:"18","aria-hidden":!0,children:e.jsx("path",{d:"M4 4l10 10M14 4L4 14",stroke:"#161518",strokeWidth:"1.8",strokeLinecap:"round"})})})]}),e.jsxs("div",{className:"buy-modal__balance",children:[e.jsx("span",{className:"buy-modal__balance-label",children:r==="nofunds"?a("buyModal.dclBalance"):a("buyModal.myCreditsBalance")}),e.jsx(S,{className:"buy-modal__balance-ico"}),e.jsx("span",{className:"buy-modal__balance-value",children:R(p)})]})]}),r==="processing"&&e.jsx(ts,{step:t.step??1,total:t.total??1}),r==="nofunds"&&e.jsx(cs,{lines:t.lines??[],shortfallCredits:t.shortfallCredits??0,packs:t.packs??[],selectedPack:t.selectedPack??"",onSelectPack:t.onSelectPack??(()=>{}),onBuyPacks:t.onBuyPacks??(()=>{}),onCancel:l}),r==="complete"&&e.jsx(rs,{purchased:t.purchased??[],onMyAssets:t.onMyAssets??l,onTryInWorld:t.onTryInWorld??l}),r==="error"&&e.jsxs("div",{className:"buy-modal__body",children:[e.jsx(ye,{message:t.message}),e.jsx("div",{className:"buy-modal__ctas",children:e.jsx("button",{className:"buy-modal__btn buy-modal__btn--gradient",onClick:l,children:a("buyModal.close")})})]})]})]})}function ts({step:t,total:r}){return e.jsxs("div",{className:"buy-modal__body buy-modal__processing",children:[e.jsx("img",{className:"buy-modal__logo",src:"/icon-192.png",alt:"",width:61,height:61}),e.jsx("div",{className:"buy-modal__processing-text",children:a("buyModal.completingTransaction")}),e.jsxs("div",{className:"cart-checkout__progress-row",children:[e.jsx("div",{className:"buy-modal__progress","aria-hidden":!0,children:e.jsx("span",{className:"buy-modal__progress-fill"})}),e.jsxs("span",{className:"cart-checkout__step",children:[t,"/",r]})]})]})}function cs({lines:t,shortfallCredits:r,packs:p,selectedPack:l,onSelectPack:k,onBuyPacks:P,onCancel:E}){const f=p.find(c=>c.id===l),J=t.reduce((c,_)=>c+(_.quantity??1),0);return e.jsxs("div",{className:"buy-modal__body",children:[e.jsxs("div",{className:"buy-modal__warning",children:[e.jsxs("svg",{viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":!0,className:"buy-modal__warning-ico",children:[e.jsx("path",{d:"M12 3L2 20h20L12 3z",fill:"none",stroke:"#691fa9",strokeWidth:"1.8",strokeLinejoin:"round"}),e.jsx("path",{d:"M12 9v5",stroke:"#691fa9",strokeWidth:"1.8",strokeLinecap:"round"}),e.jsx("circle",{cx:"12",cy:"17",r:"1.1",fill:"#691fa9"})]}),e.jsxs("p",{className:"buy-modal__warning-text",children:[e.jsx("b",{children:a("buyModal.insufficientFunds")})," ",a("buyModal.warningNeedToBuy")," ",e.jsx("b",{children:a("buyModal.warningCreditsAmount",{count:Math.max(0,r)})})," ",a("buyModal.warningToPurchase",{count:J})]})]}),e.jsx("div",{className:"cart-checkout__scroll",children:t.map(c=>{const _=c.quantity??1;return e.jsxs("div",{className:"buy-modal__asset",children:[e.jsx("div",{className:"buy-modal__asset-thumb",children:c.item.thumbnail?e.jsx("img",{src:c.item.thumbnail,alt:""}):null}),e.jsxs("div",{className:"buy-modal__asset-info",children:[e.jsxs("div",{children:[e.jsxs("div",{className:"buy-modal__asset-name",title:c.item.name,children:[c.item.name||a("buyModal.itemFallback"),_>1?e.jsx("span",{className:"cart-checkout__qty-tag",children:a("cartCheckout.qty",{count:_})}):null]}),c.item.creator?e.jsx("div",{className:"buy-modal__asset-creator",children:a("search.byCreator",{name:c.item.creator})}):null]}),e.jsxs("div",{className:"buy-modal__asset-price",children:[e.jsx(S,{className:"buy-modal__asset-price-ico"}),e.jsx("span",{children:R(c.priceCredits*_)})]})]})]},c.item.id)})}),e.jsx("div",{className:"buy-modal__packs",children:p.map(c=>{const _=c.id===l;return e.jsxs("button",{className:`buy-modal__pack${_?" buy-modal__pack--on":""}`,onClick:()=>k(c.id),children:[e.jsx(S,{className:"buy-modal__pack-ico"}),e.jsx("span",{className:"buy-modal__pack-amount",children:R(c.credits)}),e.jsxs("span",{className:"buy-modal__pack-usd",children:["($",c.usd.toFixed(2),")"]})]},c.id)})}),e.jsxs("div",{className:"buy-modal__total",children:[e.jsxs("div",{className:"buy-modal__total-credits",children:[e.jsx(S,{className:"buy-modal__total-ico"}),e.jsx("span",{children:R((f==null?void 0:f.credits)??0)})]}),e.jsxs("span",{className:"buy-modal__total-usd",children:["$",((f==null?void 0:f.usd)??0).toFixed(2)]})]}),e.jsxs("div",{className:"buy-modal__ctas",children:[e.jsx("button",{className:"buy-modal__btn buy-modal__btn--outline",onClick:E,children:a("buyModal.cancel")}),e.jsx("button",{className:"buy-modal__btn buy-modal__btn--gradient",onClick:P,children:a("buyModal.buy")})]})]})}function rs({purchased:t,onMyAssets:r,onTryInWorld:p}){return e.jsxs("div",{className:"buy-modal__body cart-checkout__done-body",children:[e.jsxs("div",{className:"buy-modal__success",children:[e.jsxs("svg",{viewBox:"0 0 64 64",width:"60",height:"60","aria-hidden":!0,children:[e.jsx("circle",{cx:"32",cy:"32",r:"32",fill:"#34ce77"}),e.jsx("path",{d:"M20 33l8 8 16-18",fill:"none",stroke:"#fff",strokeWidth:"5",strokeLinecap:"round",strokeLinejoin:"round"})]}),e.jsxs("p",{className:"buy-modal__success-text",children:[e.jsx("b",{children:a("getCredits.successTitle")})," ",a("buyModal.successBody")]})]}),e.jsx("div",{className:"cart-checkout__done",children:e.jsx("div",{className:"cart-checkout__done-scroll",children:t.map(l=>{const k=l.quantity??1;return e.jsxs("div",{className:"cart-checkout__done-row",children:[e.jsxs("div",{className:"cart-checkout__done-thumb",children:[l.thumbnail?e.jsx("img",{src:l.thumbnail,alt:""}):null,e.jsx("span",{className:"cart-checkout__done-check","aria-hidden":!0,children:e.jsx("svg",{viewBox:"0 0 18 18",width:"12",height:"12",children:e.jsx("path",{d:"M4 9l3.5 3.5L14 5",fill:"none",stroke:"#fff",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round"})})})]}),e.jsxs("div",{className:"cart-checkout__done-info",children:[e.jsxs("div",{className:"cart-checkout__done-name",title:l.name,children:[l.name||a("buyModal.itemFallback"),k>1?e.jsx("span",{className:"cart-checkout__qty-tag",children:a("cartCheckout.qty",{count:k})}):null]}),l.creator?e.jsx("div",{className:"cart-checkout__done-creator",children:a("search.byCreator",{name:l.creator})}):null]}),e.jsxs("div",{className:"cart-checkout__done-price",children:[e.jsx(S,{className:"cart-checkout__done-price-ico"}),e.jsx("span",{children:R(l.priceCredits*k)})]})]},l.id)})})}),e.jsxs("div",{className:"buy-modal__ctas",children:[e.jsx("button",{className:"buy-modal__btn buy-modal__btn--outline",onClick:r,children:a("buyModal.myAssets")}),e.jsxs("button",{className:"buy-modal__btn buy-modal__btn--ruby",onClick:p,children:[a("buyModal.tryInWorld"),e.jsx("svg",{viewBox:"0 0 24 24",width:"20",height:"20","aria-hidden":!0,children:e.jsx("path",{d:"M5 12h12M13 7l5 5-5 5",fill:"none",stroke:"#fcfcfc",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})]})]})]})}const ns=Ae(Re)`
|
|
2
2
|
margin-top: 12px;
|
|
3
|
-
`;function me(t){if(Ze(t))return a("errors.rejected");const r=(t.message??"").toLowerCase();return r.includes("insufficient")?a("cart.error.insufficient",{currency:Ue.name}):r.includes("no active listing")||r.includes("your own listing")?a("cart.error.listingChanged"):a("marketCheckout.error.generic")}const os=12e4,ls=We.chainId===80002?"https://decentraland.zone/jump":"https://decentraland.org/jump";function is(t){const r=[];return t.unavailable.length&&r.push(a("cart.drop.unavailable",{count:t.unavailable.length})),t.own.length&&r.push(a("cart.drop.own",{count:t.own.length})),a("cart.drop.removed",{items:r.join(` ${a("cart.drop.and")} `)})}const _e=t=>t.reduce((r,p)=>r+p.priceCredits*p.quantity,0),ds=t=>t.flatMap(r=>Array.from({length:r.quantity},()=>({...r,quantity:1})));function ws(){Ie({title:a("nav.cart"),noindex:!0});const t=N(s=>s.items),r=N(s=>s.remove),p=N(s=>s.increment),l=N(s=>s.decrement),k=N(s=>s.clear),P=N(s=>s.restore),E=N(s=>s.setFittingOpen),f=le(s=>s.items),D=le(s=>s.toggle),{session:c}=Le(),_=He().packs.slice(0,3);j.useEffect(()=>(document.body.classList.add("shop-cart-bg"),()=>document.body.classList.remove("shop-cart-bg")),[]);const be=t.some(s=>s.category!=="emote"),{data:J}=Pe({queryKey:["upsell-listings"],queryFn:()=>Ke({first:40}),staleTime:6e4}),{data:T}=Ee(c),W=Te(),U=Se(),{state:q}=qe(),[Z,B]=j.useState(null),[pe,C]=j.useState(null),[ee,z]=j.useState(null),[xe,I]=j.useState(!1),[g,F]=j.useState(null),se=j.useRef(0),[d,w]=j.useState(null),[V,ae]=j.useState(""),je=t.reduce((s,n)=>s+n.priceCredits*n.quantity,0),te=t.reduce((s,n)=>s+n.quantity,0),ke=g?g.liveTotalCredits:je,fe=new Set(t.map(s=>s.id)),ce=((J==null?void 0:J.items)??[]).filter(s=>!fe.has(s.id)).slice(0,12),ge=new Map(g==null?void 0:g.buyable.map(s=>[s.item.id,s])),Q=(T==null?void 0:T.credits)??0,ve=Fe;function $(s){s(),F(null),z(null),C(null)}function Ne(){w(null),I(!1)}function re(s){const n=_e(s),o=Math.max(0,n-Q),x=_.find(u=>u.credits>=o)??_[_.length-1];ae(x.id),O("Shop Buy Credits Prompted",{from:"cart_checkout",credits_needed:n,credits_balance:Q,shortfall:o}),w({phase:"nofunds",lines:s.map(u=>({item:u.item,priceCredits:u.priceCredits,quantity:u.quantity})),shortfall:o}),I(!1)}async function Ce(s){if(!c||s.length===0)return;const n=ds(s),o=n.map(i=>({...i.item,priceCredits:i.priceCredits})),x=s.map(i=>({...i.item,priceCredits:i.priceCredits,quantity:i.quantity})),u=[];let v="authorize",K=!1;w({phase:"processing",step:1,total:n.length});try{const i=[];for(let h=0;h<n.length;h++){const y=n[h];w({phase:"processing",step:h+1,total:n.length});try{const{credit:b,maxCreditedValue:H}=await ze(c.identity,y.usdCents,y.trade.id);u.push(b.id),i.push({trade:y.trade,credits:[b],maxCreditedValue:H})}catch(b){if(es(b)){if(u.length){try{await de(c.identity,u)}catch(H){A(H,{flow:"cart_checkout",step:"release"})}W.invalidateQueries({queryKey:["usd-balance"]})}re(s);return}throw b}}v="submit";let m=[];if(Oe())try{m=await Ge({purchases:i,buyer:c.address,signer:c.signer});const y=(await Promise.allSettled(m.map(b=>De(b)))).flatMap(b=>b.status==="rejected"?[b.reason]:[]);if(y.length&&!y.some(b=>b instanceof Je))throw y[0];K=!0}catch(h){if(!(h instanceof Ve))throw h;m=await he({purchases:i,buyer:c.address,signer:c.signer})}else m=await he({purchases:i,buyer:c.address,signer:c.signer});s.forEach(h=>r(h.item.id)),F(null),O("Shop Completed Purchase",{...Qe(o),payment_type:"credits",no_crypto_step:K,transaction_hash:m[0]??null}),W.invalidateQueries({queryKey:["usd-balance"]}),w({phase:"complete",purchased:x})}catch(i){if(ue(i)||A(i,{flow:"cart_checkout",step:v,cart_size:s.length}),O(ue(i)?"Shop Purchase Cancelled":"Shop Purchase Failed",{step:v,error_code:$e(i),value_usd:ie(o.reduce((m,h)=>m+h.priceCredits,0)),cart_size:n.length}),u.length){try{await de(c.identity,u)}catch(m){A(m,{flow:"cart_checkout",step:"release"})}W.invalidateQueries({queryKey:["usd-balance"]})}w({phase:"error",message:me(i)})}}function ne(s){const n=_e(s);if(T!=null&&T.credits<n){re(s);return}Ce(s)}async function Y(){if(!c){C(a("buyModal.signInToCheckout"));return}const s=N.getState().items;if(s.length===0)return;C(null),z(null),I(!0);const n=s.reduce((o,x)=>o+x.priceCredits*x.quantity,0);O("Shop Started Checkout",{cart_size:s.length,cart_value_credits:n,cart_value_usd:ie(n),has_sufficient_credits:Q>=n});try{B(a("cart.status.reviewing"));const o=await Ye(s,c.address,ve),x=[...o.unavailable,...o.own];if(x.length&&(x.forEach(u=>r(u.id)),z(is(o))),o.buyable.length===0){C(a("cart.error.noneAvailable")),F(null),B(null);return}if(o.orderChanged){F(o),se.current=Date.now(),B(null);return}B(null),ne(o.buyable)}catch(o){A(o,{flow:"cart_checkout",step:"review",cart_size:s.length}),C(me(o)),B(null)}finally{I(!1)}}async function we(){if(g){if(!c){C(a("buyModal.signInToCheckout"));return}if(Date.now()-se.current>os){F(null),z(null),await Y();return}C(null),ne(g.buyable)}}async function Me(){if(V){try{sessionStorage.setItem(G,JSON.stringify(N.getState().items))}catch{}I(!0);try{const s=await Xe(V,c?{address:c.address,identity:c.identity}:void 0);if(s.url){window.location.href=s.url;return}U("/credits")}catch(s){try{sessionStorage.removeItem(G)}catch{}A(s,{flow:"cart_buy_credits"}),w({phase:"error",message:a("buyModal.error.creditsCheckout")})}finally{I(!1)}}}const oe=j.useRef(!1);j.useEffect(()=>{if(!(q!=null&&q.resumeCheckout)||oe.current)return;oe.current=!0;try{const n=sessionStorage.getItem(G);if(n){sessionStorage.removeItem(G);const o=JSON.parse(n);Array.isArray(o)&&o.length&&P(o)}}catch{}W.invalidateQueries({queryKey:["usd-balance"]});const s=setTimeout(()=>void Y(),0);return()=>clearTimeout(s)},[q==null?void 0:q.resumeCheckout]);const M=xe||(d==null?void 0:d.phase)==="processing";return t.length===0&&!d?e.jsxs("div",{className:"cart cart--empty",children:[e.jsx(L,{name:"cart",size:44,color:"var(--muted-2)"}),e.jsx("p",{className:"cart-empty__title",children:a("cart.empty.title")}),e.jsx("p",{className:"muted",children:a("cart.empty.body")}),e.jsx(ns,{as:X,to:"/assets",variant:"purple",children:a("cart.empty.cta")})]}):e.jsxs("div",{className:"checkout",children:[e.jsxs("button",{className:"checkout__back",onClick:()=>U(-1),type:"button",children:[e.jsx(L,{name:"arrow-left"}),a("nav.cart")]}),e.jsxs("div",{className:"checkout__body",children:[e.jsxs("section",{className:"checkout__panel",children:[e.jsxs("div",{className:"checkout__panel-head",children:[e.jsx("button",{className:"checkout__panel-back",onClick:()=>U(-1),type:"button","aria-label":a("cart.goBack"),children:e.jsx(L,{name:"arrow-left"})}),e.jsx("h1",{className:"checkout__panel-title",children:a("cart.panelTitle",{count:te})}),be?e.jsxs("button",{className:"checkout__fitting",onClick:()=>E(!0),disabled:M,children:[e.jsx(L,{name:"fitting-room"}),a("cart.fittingRoom")]}):null]}),e.jsx("div",{className:"checkout__list",children:t.map(s=>{const n=ge.get(s.id),o=n?n.priceCredits:s.priceCredits,x=!!n&&n.priceCredits!==s.priceCredits,u=!s.tokenId,v=s.quantity,K=typeof s.available=="number"&&v>=s.available,i=o*v,m=!!f[s.id],h=s.tokenId??s.itemId,y=s.contractAddress&&h?`/item/${s.contractAddress}/${h}`:null;return e.jsxs("div",{className:"checkout__card",children:[e.jsxs("div",{className:"checkout__thumb",children:[y?e.jsx(X,{className:"checkout__thumb-link",to:y,state:{item:s,tradeId:s.tradeId},"aria-label":s.name,children:s.thumbnail?e.jsx("img",{src:s.thumbnail,alt:s.name}):null}):s.thumbnail?e.jsx("img",{src:s.thumbnail,alt:s.name}):null,e.jsx("span",{className:"checkout__thumb-check","aria-hidden":!0,children:e.jsx("svg",{viewBox:"0 0 20 20",width:"12",height:"12",children:e.jsx("path",{d:"M5 10.5l3 3 7-7.5",fill:"none",stroke:"#fff",strokeWidth:"2.4",strokeLinecap:"round",strokeLinejoin:"round"})})})]}),e.jsxs("div",{className:"checkout__info",children:[e.jsxs("div",{className:"checkout__desc",children:[y?e.jsx(X,{className:"checkout__name",to:y,state:{item:s,tradeId:s.tradeId},title:s.name,children:s.name}):e.jsx("div",{className:"checkout__name",title:s.name,children:s.name}),s.creator?e.jsx(Be,{address:s.creator,className:"checkout__creator",linkToProfile:!0}):null]}),e.jsxs("div",{className:"checkout__foot",children:[u?e.jsxs("div",{className:"checkout__stepper",children:[e.jsx("button",{className:"checkout__step",onClick:()=>$(()=>l(s.id)),disabled:M||v<=1,"aria-label":a("cart.decreaseQuantity",{name:s.name}),children:e.jsx("svg",{viewBox:"0 0 16 16",fill:"none","aria-hidden":!0,focusable:"false",children:e.jsx("path",{d:"M3.5 8h9",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})})}),e.jsx("span",{className:"checkout__qty",children:v}),e.jsx("button",{className:"checkout__step",onClick:()=>$(()=>p(s.id)),disabled:M||K,"aria-label":a("cart.increaseQuantity"),children:e.jsx("svg",{viewBox:"0 0 16 16",fill:"none","aria-hidden":!0,focusable:"false",children:e.jsx("path",{d:"M8 3.5v9M3.5 8h9",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})})})]}):null,e.jsxs("div",{className:"checkout__price",children:[e.jsx(S,{className:"checkout__price-ico"})," ",i,x?e.jsx("span",{className:"checkout__price-was",children:s.priceCredits*v}):null]})]})]}),e.jsxs("div",{className:"checkout__actions",children:[e.jsx("button",{className:`checkout__fav${m?" is-on":""}`,onClick:()=>D(s),"aria-label":m?a("cart.removeFromFavorites",{name:s.name}):a("cart.addToFavorites",{name:s.name}),title:m?a("assetCard.removeFromFavorites"):a("assetCard.addToFavorites"),children:e.jsx(L,{name:m?"heart-solid":"heart"})}),e.jsx("button",{className:"checkout__remove",onClick:()=>$(()=>r(s.id)),disabled:M,"aria-label":a("cart.remove",{name:s.name}),title:a("cart.removeTitle"),children:e.jsx(L,{name:"trash",size:24})})]})]},s.id)})}),e.jsxs("div",{className:"checkout__utils",children:[e.jsx("button",{className:"link",onClick:()=>$(k),disabled:M,children:a("cart.clearCart")}),null]})]}),e.jsxs("aside",{className:"checkout__summary",children:[e.jsx("h2",{className:"checkout__summary-title",children:a("cart.purchaseSummary")}),e.jsxs("div",{className:"checkout__summary-body",children:[e.jsxs("div",{className:"checkout__total-line",children:[e.jsx("span",{className:"checkout__total-label",children:a("cart.totalItems",{count:te})}),e.jsxs("span",{className:"checkout__total-value",children:[e.jsx(S,{className:"checkout__total-ico"})," ",ke]})]}),e.jsx("button",{className:"checkout__cta",onClick:()=>void(g?we():Y()),disabled:M,children:M?a("cart.working"):g?a("marketCheckout.confirmPurchase"):a("assetCard.buyNow")}),g?e.jsx("p",{className:"muted checkout__msg",children:a("cart.priceChanged")}):null,ee?e.jsx("p",{className:"muted checkout__msg",children:ee}):null,Z?e.jsx("p",{className:"muted checkout__msg",children:Z}):null,e.jsx(ye,{message:pe,className:"checkout__msg"})]})]})]}),ce.length>0?e.jsx("div",{className:"cart-upsell",children:e.jsx(ss,{title:a("cart.youMightAlsoLike"),items:ce})}):null,d?e.jsx(as,{phase:d.phase,balanceCredits:Q,onClose:Ne,step:d.phase==="processing"?d.step:void 0,total:d.phase==="processing"?d.total:void 0,lines:d.phase==="nofunds"?d.lines:void 0,shortfallCredits:d.phase==="nofunds"?d.shortfall:void 0,packs:_,selectedPack:V,onSelectPack:ae,onBuyPacks:()=>void Me(),purchased:d.phase==="complete"?d.purchased:void 0,onMyAssets:()=>U("/assets?tab=mine"),onTryInWorld:()=>window.open(ls,"_blank","noopener"),message:d.phase==="error"?d.message:void 0}):null]})}export{ws as Cart};
|
|
3
|
+
`;function me(t){if(Ze(t))return a("errors.rejected");const r=(t.message??"").toLowerCase();return r.includes("insufficient")?a("cart.error.insufficient",{currency:Ue.name}):r.includes("no active listing")||r.includes("your own listing")?a("cart.error.listingChanged"):a("marketCheckout.error.generic")}const os=12e4,ls=We.chainId===80002?"https://decentraland.zone/jump":"https://decentraland.org/jump";function is(t){const r=[];return t.unavailable.length&&r.push(a("cart.drop.unavailable",{count:t.unavailable.length})),t.own.length&&r.push(a("cart.drop.own",{count:t.own.length})),a("cart.drop.removed",{items:r.join(` ${a("cart.drop.and")} `)})}const _e=t=>t.reduce((r,p)=>r+p.priceCredits*p.quantity,0),ds=t=>t.flatMap(r=>Array.from({length:r.quantity},()=>({...r,quantity:1})));function ws(){Le({title:a("nav.cart"),noindex:!0});const t=N(s=>s.items),r=N(s=>s.remove),p=N(s=>s.increment),l=N(s=>s.decrement),k=N(s=>s.clear),P=N(s=>s.restore),E=N(s=>s.setFittingOpen),f=le(s=>s.items),J=le(s=>s.toggle),{session:c}=qe(),_=He().packs.slice(0,3);j.useEffect(()=>(document.body.classList.add("shop-cart-bg"),()=>document.body.classList.remove("shop-cart-bg")),[]);const be=t.some(s=>s.category!=="emote"),{data:D}=Pe({queryKey:["upsell-listings"],queryFn:()=>Ke({first:40}),staleTime:6e4}),{data:T}=Ee(c),W=Te(),U=Se(),{state:I}=Ie(),[Z,B]=j.useState(null),[pe,C]=j.useState(null),[ee,z]=j.useState(null),[xe,L]=j.useState(!1),[g,F]=j.useState(null),se=j.useRef(0),[d,w]=j.useState(null),[V,ae]=j.useState(""),je=t.reduce((s,n)=>s+n.priceCredits*n.quantity,0),te=t.reduce((s,n)=>s+n.quantity,0),ke=g?g.liveTotalCredits:je,fe=new Set(t.map(s=>s.id)),ce=((D==null?void 0:D.items)??[]).filter(s=>!fe.has(s.id)).slice(0,12),ge=new Map(g==null?void 0:g.buyable.map(s=>[s.item.id,s])),Q=(T==null?void 0:T.credits)??0,ve=Fe;function $(s){s(),F(null),z(null),C(null)}function Ne(){w(null),L(!1)}function re(s){const n=_e(s),o=Math.max(0,n-Q),x=_.find(u=>u.credits>=o)??_[_.length-1];ae(x.id),O("Shop Buy Credits Prompted",{from:"cart_checkout",credits_needed:n,credits_balance:Q,shortfall:o}),w({phase:"nofunds",lines:s.map(u=>({item:u.item,priceCredits:u.priceCredits,quantity:u.quantity})),shortfall:o}),L(!1)}async function Ce(s){if(!c||s.length===0)return;const n=ds(s),o=n.map(i=>({...i.item,priceCredits:i.priceCredits})),x=s.map(i=>({...i.item,priceCredits:i.priceCredits,quantity:i.quantity})),u=[];let v="authorize",K=!1;w({phase:"processing",step:1,total:n.length});try{const i=[];for(let h=0;h<n.length;h++){const y=n[h];w({phase:"processing",step:h+1,total:n.length});try{const{credit:b,maxCreditedValue:H}=await ze(c.identity,y.usdCents,y.trade.id);u.push(b.id),i.push({trade:y.trade,credits:[b],maxCreditedValue:H})}catch(b){if(es(b)){if(u.length){try{await de(c.identity,u)}catch(H){A(H,{flow:"cart_checkout",step:"release"})}W.invalidateQueries({queryKey:["usd-balance"]})}re(s);return}throw b}}v="submit";let m=[];if(Oe())try{m=await Ge({purchases:i,buyer:c.address,signer:c.signer});const y=(await Promise.allSettled(m.map(b=>Je(b)))).flatMap(b=>b.status==="rejected"?[b.reason]:[]);if(y.length&&!y.some(b=>b instanceof De))throw y[0];K=!0}catch(h){if(!(h instanceof Ve))throw h;m=await he({purchases:i,buyer:c.address,signer:c.signer})}else m=await he({purchases:i,buyer:c.address,signer:c.signer});s.forEach(h=>r(h.item.id)),F(null),O("Shop Completed Purchase",{...Qe(o),payment_type:"credits",no_crypto_step:K,transaction_hash:m[0]??null}),W.invalidateQueries({queryKey:["usd-balance"]}),w({phase:"complete",purchased:x})}catch(i){if(ue(i)||A(i,{flow:"cart_checkout",step:v,cart_size:s.length}),O(ue(i)?"Shop Purchase Cancelled":"Shop Purchase Failed",{step:v,error_code:$e(i),value_usd:ie(o.reduce((m,h)=>m+h.priceCredits,0)),cart_size:n.length}),u.length){try{await de(c.identity,u)}catch(m){A(m,{flow:"cart_checkout",step:"release"})}W.invalidateQueries({queryKey:["usd-balance"]})}w({phase:"error",message:me(i)})}}function ne(s){const n=_e(s);if(T!=null&&T.credits<n){re(s);return}Ce(s)}async function Y(){if(!c){C(a("buyModal.signInToCheckout"));return}const s=N.getState().items;if(s.length===0)return;C(null),z(null),L(!0);const n=s.reduce((o,x)=>o+x.priceCredits*x.quantity,0);O("Shop Started Checkout",{cart_size:s.length,cart_value_credits:n,cart_value_usd:ie(n),has_sufficient_credits:Q>=n});try{B(a("cart.status.reviewing"));const o=await Ye(s,c.address,ve),x=[...o.unavailable,...o.own];if(x.length&&(x.forEach(u=>r(u.id)),z(is(o))),o.buyable.length===0){C(a("cart.error.noneAvailable")),F(null),B(null);return}if(o.orderChanged){F(o),se.current=Date.now(),B(null);return}B(null),ne(o.buyable)}catch(o){A(o,{flow:"cart_checkout",step:"review",cart_size:s.length}),C(me(o)),B(null)}finally{L(!1)}}async function we(){if(g){if(!c){C(a("buyModal.signInToCheckout"));return}if(Date.now()-se.current>os){F(null),z(null),await Y();return}C(null),ne(g.buyable)}}async function Me(){if(V){try{sessionStorage.setItem(G,JSON.stringify(N.getState().items))}catch{}L(!0);try{const s=await Xe(V,c?{address:c.address,identity:c.identity}:void 0);if(s.url){window.location.href=s.url;return}U("/credits")}catch(s){try{sessionStorage.removeItem(G)}catch{}A(s,{flow:"cart_buy_credits"}),w({phase:"error",message:a("buyModal.error.creditsCheckout")})}finally{L(!1)}}}const oe=j.useRef(!1);j.useEffect(()=>{if(!(I!=null&&I.resumeCheckout)||oe.current)return;oe.current=!0;try{const n=sessionStorage.getItem(G);if(n){sessionStorage.removeItem(G);const o=JSON.parse(n);Array.isArray(o)&&o.length&&P(o)}}catch{}W.invalidateQueries({queryKey:["usd-balance"]});const s=setTimeout(()=>void Y(),0);return()=>clearTimeout(s)},[I==null?void 0:I.resumeCheckout]);const M=xe||(d==null?void 0:d.phase)==="processing";return t.length===0&&!d?e.jsxs("div",{className:"cart cart--empty",children:[e.jsx(q,{name:"cart",size:44,color:"var(--muted-2)"}),e.jsx("p",{className:"cart-empty__title",children:a("cart.empty.title")}),e.jsx("p",{className:"muted",children:a("cart.empty.body")}),e.jsx(ns,{as:X,to:"/assets",variant:"purple",children:a("cart.empty.cta")})]}):e.jsxs("div",{className:"checkout",children:[e.jsxs("button",{className:"checkout__back",onClick:()=>U(-1),type:"button",children:[e.jsx(q,{name:"arrow-left"}),a("nav.cart")]}),e.jsxs("div",{className:"checkout__body",children:[e.jsxs("section",{className:"checkout__panel",children:[e.jsxs("div",{className:"checkout__panel-head",children:[e.jsx("button",{className:"checkout__panel-back",onClick:()=>U(-1),type:"button","aria-label":a("cart.goBack"),children:e.jsx(q,{name:"arrow-left"})}),e.jsx("h1",{className:"checkout__panel-title",children:a("cart.panelTitle",{count:te})}),be?e.jsxs("button",{className:"checkout__fitting",onClick:()=>E(!0),disabled:M,children:[e.jsx(q,{name:"fitting-room"}),a("cart.fittingRoom")]}):null]}),e.jsx("div",{className:"checkout__list",children:t.map(s=>{const n=ge.get(s.id),o=n?n.priceCredits:s.priceCredits,x=!!n&&n.priceCredits!==s.priceCredits,u=!s.tokenId,v=s.quantity,K=typeof s.available=="number"&&v>=s.available,i=o*v,m=!!f[s.id],h=s.tokenId??s.itemId,y=s.contractAddress&&h?`/item/${s.contractAddress}/${h}`:null;return e.jsxs("div",{className:"checkout__card",children:[e.jsxs("div",{className:"checkout__thumb",children:[y?e.jsx(X,{className:"checkout__thumb-link",to:y,state:{item:s,tradeId:s.tradeId},"aria-label":s.name,children:s.thumbnail?e.jsx("img",{src:s.thumbnail,alt:s.name}):null}):s.thumbnail?e.jsx("img",{src:s.thumbnail,alt:s.name}):null,e.jsx("span",{className:"checkout__thumb-check","aria-hidden":!0,children:e.jsx("svg",{viewBox:"0 0 20 20",width:"12",height:"12",children:e.jsx("path",{d:"M5 10.5l3 3 7-7.5",fill:"none",stroke:"#fff",strokeWidth:"2.4",strokeLinecap:"round",strokeLinejoin:"round"})})})]}),e.jsxs("div",{className:"checkout__info",children:[e.jsxs("div",{className:"checkout__desc",children:[y?e.jsx(X,{className:"checkout__name",to:y,state:{item:s,tradeId:s.tradeId},title:s.name,children:s.name}):e.jsx("div",{className:"checkout__name",title:s.name,children:s.name}),s.creator?e.jsx(Be,{address:s.creator,className:"checkout__creator",linkToProfile:!0}):null]}),e.jsxs("div",{className:"checkout__foot",children:[u?e.jsxs("div",{className:"checkout__stepper",children:[e.jsx("button",{className:"checkout__step",onClick:()=>$(()=>l(s.id)),disabled:M||v<=1,"aria-label":a("cart.decreaseQuantity",{name:s.name}),children:e.jsx("svg",{viewBox:"0 0 16 16",fill:"none","aria-hidden":!0,focusable:"false",children:e.jsx("path",{d:"M3.5 8h9",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})})}),e.jsx("span",{className:"checkout__qty",children:v}),e.jsx("button",{className:"checkout__step",onClick:()=>$(()=>p(s.id)),disabled:M||K,"aria-label":a("cart.increaseQuantity"),children:e.jsx("svg",{viewBox:"0 0 16 16",fill:"none","aria-hidden":!0,focusable:"false",children:e.jsx("path",{d:"M8 3.5v9M3.5 8h9",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})})})]}):null,e.jsxs("div",{className:"checkout__price",children:[e.jsx(S,{className:"checkout__price-ico"})," ",i,x?e.jsx("span",{className:"checkout__price-was",children:s.priceCredits*v}):null]})]})]}),e.jsxs("div",{className:"checkout__actions",children:[e.jsx("button",{className:`checkout__fav${m?" is-on":""}`,onClick:()=>J(s),"aria-label":m?a("cart.removeFromFavorites",{name:s.name}):a("cart.addToFavorites",{name:s.name}),title:m?a("assetCard.removeFromFavorites"):a("assetCard.addToFavorites"),children:e.jsx(q,{name:m?"heart-solid":"heart"})}),e.jsx("button",{className:"checkout__remove",onClick:()=>$(()=>r(s.id)),disabled:M,"aria-label":a("cart.remove",{name:s.name}),title:a("cart.removeTitle"),children:e.jsx(q,{name:"trash",size:24})})]})]},s.id)})}),e.jsxs("div",{className:"checkout__utils",children:[e.jsx("button",{className:"link",onClick:()=>$(k),disabled:M,children:a("cart.clearCart")}),null]})]}),e.jsxs("aside",{className:"checkout__summary",children:[e.jsx("h2",{className:"checkout__summary-title",children:a("cart.purchaseSummary")}),e.jsxs("div",{className:"checkout__summary-body",children:[e.jsxs("div",{className:"checkout__total-line",children:[e.jsx("span",{className:"checkout__total-label",children:a("cart.totalItems",{count:te})}),e.jsxs("span",{className:"checkout__total-value",children:[e.jsx(S,{className:"checkout__total-ico"})," ",ke]})]}),e.jsx("button",{className:"checkout__cta",onClick:()=>void(g?we():Y()),disabled:M,children:M?a("cart.working"):g?a("marketCheckout.confirmPurchase"):a("assetCard.buyNow")}),g?e.jsx("p",{className:"muted checkout__msg",children:a("cart.priceChanged")}):null,ee?e.jsx("p",{className:"muted checkout__msg",children:ee}):null,Z?e.jsx("p",{className:"muted checkout__msg",children:Z}):null,e.jsx(ye,{message:pe,className:"checkout__msg"})]})]})]}),ce.length>0?e.jsx("div",{className:"cart-upsell",children:e.jsx(ss,{title:a("cart.youMightAlsoLike"),items:ce})}):null,d?e.jsx(as,{phase:d.phase,balanceCredits:Q,onClose:Ne,step:d.phase==="processing"?d.step:void 0,total:d.phase==="processing"?d.total:void 0,lines:d.phase==="nofunds"?d.lines:void 0,shortfallCredits:d.phase==="nofunds"?d.shortfall:void 0,packs:_,selectedPack:V,onSelectPack:ae,onBuyPacks:()=>void Me(),purchased:d.phase==="complete"?d.purchased:void 0,onMyAssets:()=>U("/assets?tab=mine"),onTryInWorld:()=>window.open(ls,"_blank","noopener"),message:d.phase==="error"?d.message:void 0}):null]})}export{ws as Cart};
|