@dcl/shop 0.9.0 → 0.10.1-31022274185.commit-4782a6d
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-ChFWLt2k.js → Activity-BdWXscja.js} +3 -3
- package/_assets/{AnimatedBackground-CgqvFCZP.js → AnimatedBackground-IWRv7M5f.js} +1 -1
- package/_assets/{Assets-Bhh3K7eo.js → Assets-jMwS0L0Z.js} +13 -13
- package/_assets/{Assets.styles-DwvAA7Fx.js → Assets.styles-BYK-8Oxq.js} +1 -1
- package/_assets/{Authorizations-BYvz0lRD.js → Authorizations-vJu-Ee1Y.js} +1 -1
- package/_assets/{Cart-DAXjBdJW.js → Cart-BcTNvuY7.js} +2 -2
- package/_assets/{CircularProgress-DWAcbKVy.js → CircularProgress-vR-tHD8N.js} +1 -1
- package/_assets/{Collection-DhzN8qEX.js → Collection-D6DT1DJs.js} +1 -1
- package/_assets/{CollectionCarousel-DoFMOPnJ.js → CollectionCarousel-COl6kYhG.js} +1 -1
- package/_assets/{Creator-ffFVB812.js → Creator-ViSXVv6v.js} +1 -1
- package/_assets/{ErrorNotice-CD3QThL8.js → ErrorNotice-Cc1oxuPj.js} +1 -1
- package/_assets/{ExchangeController-8WzQHcYP.js → ExchangeController-weKEF6Fo.js} +1 -1
- package/_assets/{Faq-Bxgy5XAq.js → Faq-XhwmepN6.js} +1 -1
- package/_assets/{GetCredits-BikyjTuD.js → GetCredits-BSkExYX7.js} +1 -1
- package/_assets/{Grow-B_PKoaeX.js → Grow-QVzgT-x3.js} +1 -1
- package/_assets/{HelpersUtil-TiNOVD81.js → HelpersUtil-B5gLBeY_.js} +1 -1
- package/_assets/{ItemDetail-Cz_1bxfd.js → ItemDetail-CX_KaeEs.js} +1 -1
- package/_assets/LazyEmoteControls-BzEIo4q9.js +2 -0
- package/_assets/{LoadMore-D3-F6XWb.js → LoadMore-HeeBSVXn.js} +1 -1
- package/_assets/{ManaPricingBanner.styles-BBwxQBv1.js → ManaPricingBanner.styles-Bx_fyxrd.js} +1 -1
- package/_assets/{MyAssets-sQM2Pl5T.js → MyAssets-CBFb0SKZ.js} +1 -1
- package/_assets/{MyFavorites-CTeRjr79.js → MyFavorites-I92NNY62.js} +1 -1
- package/_assets/{NotFound-BPPWf_VH.js → NotFound-BoyCft0n.js} +1 -1
- package/_assets/{NotificationsBell-B3llSjmx.js → NotificationsBell-C9UXpBG2.js} +1 -1
- package/_assets/{OutfitDetail-CIf5JfoP.js → OutfitDetail-CB_q7CSq.js} +1 -1
- package/_assets/{OutfitPreview-Dsyy7b3g.js → OutfitPreview-CRGZ6ulM.js} +1 -1
- package/_assets/{OutfitStudio-DP0te92W.js → OutfitStudio-C98494xB.js} +1 -1
- package/_assets/{StoreSettings-CC7mEGPS.js → StoreSettings-CCXo5LZ8.js} +1 -1
- package/_assets/{Success-DlelWtIG.js → Success-d2hW8caD.js} +1 -1
- package/_assets/{SwapController-B5KKcuAl.js → SwapController-CqQfcMUY.js} +1 -1
- package/_assets/{Tooltip-BE30N5-7.js → Tooltip-DiQRnF2Q.js} +1 -1
- package/_assets/{TradeService-BoB_gVPn.js → TradeService-YAhr72dC.js} +1 -1
- package/_assets/{W3MFrameProviderSingleton-DIMdAQZt.js → W3MFrameProviderSingleton-KqjOf7qE.js} +3 -3
- package/_assets/{WebCryptoP256-LtmPnNr1.js → WebCryptoP256-D3wkQcJU.js} +1 -1
- package/_assets/{authorizations-D50ifPOO.js → authorizations-Dge9-BPU.js} +1 -1
- package/_assets/{basic-DW06A0op.js → basic-j-Y5JIO8.js} +1 -1
- package/_assets/{biconomy-B6nO3Zkg.js → biconomy-sywQv7Rk.js} +1 -1
- package/_assets/{builder-Bo-EM0RQ.js → builder-pl21oKFg.js} +1 -1
- package/_assets/{buy-P_iceS6H.js → buy-AvolTNyl.js} +1 -1
- package/_assets/{buy-gasless-CJuE25uZ.js → buy-gasless-CmyKiZii.js} +1 -1
- package/_assets/{categories-Dp28MR0O.js → categories-CsBqvArM.js} +1 -1
- package/_assets/{ccip-BwaWeiLm.js → ccip-B1ir1dk0.js} +1 -1
- package/_assets/{ccip-Bc6U1KND.js → ccip-t6sFWr80.js} +1 -1
- package/_assets/{collectionPage.styles-CmHnGfxY.js → collectionPage.styles-BdCBFsGv.js} +5 -5
- package/_assets/{controller-CWm3gowZ.js → controller-DNde5iKW.js} +2 -2
- package/_assets/{core-BWhmsygd.js → core-BySs3RVN.js} +4 -4
- package/_assets/{createSvgIcon-b1stkBYH.js → createSvgIcon-gFvd2FCs.js} +1 -1
- package/_assets/{custom-DRBIOTbP.js → custom-C6335g9Q.js} +1 -1
- package/_assets/{data-capture-CT-lqFOV.js → data-capture-eQ5NsqAI.js} +1 -1
- package/_assets/{email-CR6obY4d.js → email-BfD3HGlL.js} +1 -1
- package/_assets/{embedded-wallet-DVRatI7f.js → embedded-wallet-gF9qNEwy.js} +1 -1
- package/_assets/{emotion-styled.browser.esm-B6pcOIbM.js → emotion-styled.browser.esm-nPJqw7mn.js} +1 -1
- package/_assets/{engine-CE3TrAwc.js → engine-mV7TUuM7.js} +1 -1
- package/_assets/{errors-CUmo51Xe.js → errors-i7IRVO4d.js} +1 -1
- package/_assets/{estimate-l1-fee-BHbXIM2m.js → estimate-l1-fee-Dg4-4bu_.js} +1 -1
- package/_assets/{execute-CrlI-ZoX.js → execute-D4STlI5E.js} +2 -2
- package/_assets/{features-DHFgAFMQ.js → features-Der6G2-p.js} +1 -1
- package/_assets/{fetchTokenMetadata-B1AQEAsF.js → fetchTokenMetadata-DYDuYy-D.js} +2 -2
- package/_assets/{field.styles-CHc5xfgz.js → field.styles-D_tiVUDr.js} +1 -1
- package/_assets/{get-ecosystem-wallet-info-DfHFnl32.js → get-ecosystem-wallet-info-C3KGWwDQ.js} +1 -1
- package/_assets/{getBalance-BnbAmEdr.js → getBalance-DzJJyiOj.js} +1 -1
- package/_assets/{getNFT-0CpAOl-E.js → getNFT-Bgt8Aq0n.js} +1 -1
- package/_assets/{getNFT-D2PaeZsW.js → getNFT-ChgqHLzl.js} +1 -1
- package/_assets/{grid.styles-CrucuXuJ.js → grid.styles-GkZpb-YA.js} +1 -1
- package/_assets/{hashTypedData-BCvEU0S5.js → hashTypedData-BbII8B45.js} +1 -1
- package/_assets/{hashTypedData-B8k-gScw.js → hashTypedData-Jo4TovAi.js} +1 -1
- package/_assets/{in-app-CcIH4HM6.js → in-app-B8kujX2g.js} +1 -1
- package/_assets/{in-app-wallet-calls-CnOcHJ01.js → in-app-wallet-calls-B7txplxO.js} +1 -1
- package/_assets/{index-BCuH5vDs.js → index-2C6-RuNi.js} +1 -1
- package/_assets/{index-yM8zB6af.js → index-9a0pGAdR.js} +1 -1
- package/_assets/{index-CaGVgZr4.js → index-9fsiI1dP.js} +12 -12
- package/_assets/{index-C49WimIh.js → index-BAii_HrS.js} +1 -1
- package/_assets/{index-Cxo1Qt__.js → index-BBoR8s_p.js} +1 -1
- package/_assets/{index-qLM4Jgop.js → index-BEUF7pWH.js} +1 -1
- package/_assets/{index-D-zwysSB.js → index-BFc9QBOX.js} +1 -1
- package/_assets/{index-B7wTH-DB.js → index-BGwmGbFC.js} +1 -1
- package/_assets/{index-CONd_BVx.js → index-BH0uyXQR.js} +1 -1
- package/_assets/{index-wOCAFvTe.js → index-BIQbox-q.js} +1 -1
- package/_assets/{index-CcANwB8y.js → index-BJTaG1cJ.js} +1 -1
- package/_assets/{index--VgcQeCR.js → index-BOhYLjC3.js} +1 -1
- package/_assets/{index-DWGvhYgt.js → index-BTdh2U-c.js} +3 -3
- package/_assets/{index-C3ey0KMz.js → index-B_4ecENW.js} +1 -1
- package/_assets/{index-D1rVnf7n.js → index-B_SpMQgA.js} +1 -1
- package/_assets/{index-DcoiEdkj.js → index-BgDxkCXj.js} +3 -3
- package/_assets/{index-qJ1SpPme.js → index-BlLd8_kE.js} +2 -2
- package/_assets/{index-BWcbRKsN.js → index-BmYxE89b.js} +1 -1
- package/_assets/{index-B8vVRjFK.js → index-BoMWXzX5.js} +1 -1
- package/_assets/{index-3M42GOPZ.js → index-BzCFzqHv.js} +1 -1
- package/_assets/{index-V3x8m1-s.js → index-C6-66TBI.js} +1 -1
- package/_assets/{index-CXSMynFH.js → index-CI756Vop.js} +1 -1
- package/_assets/{index-BWnP3oRT.js → index-CJHWNPsK.js} +1 -1
- package/_assets/{index-B_tbfHPr.js → index-CNxC2eH9.js} +3 -3
- package/_assets/{index-Bge5LXXj.js → index-CPRvv8dV.js} +1 -1
- package/_assets/{index-YNiHVcjG.js → index-CW9SstXe.js} +1 -1
- package/_assets/{index-dIsHoFgJ.js → index-CdtBvk_6.js} +1 -1
- package/_assets/{index-YSlX9Bkm.js → index-Cg3mCf-z.js} +1 -1
- package/_assets/{index-C05a-Cz3.js → index-Cgd_FunJ.js} +1 -1
- package/_assets/{index-GIH-0f2z.js → index-CilIP5Db.js} +1 -1
- package/_assets/{index-B8PhacFo.js → index-CmMwEyKm.js} +1 -1
- package/_assets/{index-BX10o-2b.js → index-Cm_Vh7sp.js} +1 -1
- package/_assets/{index-CUwEs_3M.js → index-CosPU-Pz.js} +1 -1
- package/_assets/{index-oJ0V0naw.js → index-CtbulfdO.js} +1 -1
- package/_assets/{index-8B-Wb5Gs.js → index-DBMOyGsQ.js} +1 -1
- package/_assets/{index-C8Wp6BQ6.js → index-DN6oK0a_.js} +1 -1
- package/_assets/{index-D4jb9JvP.js → index-DV5krbkT.js} +1 -1
- package/_assets/{index-xwkEolrS.js → index-DdFEu3p_.js} +1 -1
- package/_assets/{index-DACSd1Ih.js → index-DhZO_7SD.js} +1 -1
- package/_assets/{index-N9ZM65Qw.js → index-DhsyG2Bx.js} +1 -1
- package/_assets/{index-DU5Y-mU3.js → index-DisPR-D1.js} +1 -1
- package/_assets/{index-DXvaEQEd.js → index-DjaVGMuG.js} +1 -1
- package/_assets/{index-6vhSQR2z.js → index-DyHpqJDr.js} +1 -1
- package/_assets/{index-CTub7-Ub.js → index-QWoFtWk4.js} +2 -2
- package/_assets/{index-DXpDmLZT.js → index-Z2CCU8JP.js} +1 -1
- package/_assets/{index-BFOZ3aLa.js → index-Zeekf47-.js} +2 -2
- package/_assets/{index-BI4j8w-k.js → index-a--tNk8b.js} +1 -1
- package/_assets/{index-DWpkVsfu.js → index-an13IKeD.js} +1 -1
- package/_assets/{index-RLkC6q3l.js → index-nkTANarg.js} +1 -1
- package/_assets/{index-DhS5vBsK.js → index-pKUeb2uA.js} +1 -1
- package/_assets/{index-CBH551Gx.js → index-yRh-9gVq.js} +1 -1
- package/_assets/{index-Dr_tDOG_.js → index-zdnZ7bAw.js} +1 -1
- package/_assets/{index.es-B28PvdoO.js → index.es-CUe7SzmV.js} +1 -1
- package/_assets/{index.es-S9JJTmrE.js → index.es-CieMPR2f.js} +4 -4
- package/_assets/{index.es-DQCMyrCJ.js → index.es-DRJn-GR3.js} +1 -1
- package/_assets/{localBatchGatewayRequest-Pb3BP9CQ.js → localBatchGatewayRequest-DwqZ_c_f.js} +1 -1
- package/_assets/{networks-BmSU0xcf.js → networks-BS86h9Lh.js} +1 -1
- package/_assets/{onramp-DfnXxsOV.js → onramp-D7D0OCk9.js} +1 -1
- package/_assets/{openzeppelin-oZ__TBbl.js → openzeppelin-CxXtbXDY.js} +1 -1
- package/_assets/{parseNft-BPR5bkzt.js → parseNft-95wNCKAi.js} +2 -2
- package/_assets/{parseSignature-C2f1qwgR.js → parseSignature-CoGmS7c0.js} +3 -3
- package/_assets/{parseSignature-Eoge2CGI.js → parseSignature-vRwiK7Zw.js} +1 -1
- package/_assets/{passkeys-BF0IbJwr.js → passkeys-BR6U3pW1.js} +1 -1
- package/_assets/{pay-with-exchange-DOwnXfO2.js → pay-with-exchange-Dw68xRlY.js} +1 -1
- package/_assets/{qr-overlay-nSSLmPST.js → qr-overlay-BaYLL_Em.js} +1 -1
- package/_assets/{receive-sixNVM8i.js → receive-sR3ESHJ5.js} +1 -1
- package/_assets/{resolveImplementation-DkMJJDI-.js → resolveImplementation-BK--s3Ec.js} +1 -1
- package/_assets/{rpc-BrCTz5Qm.js → rpc-DTlYxTMv.js} +1 -1
- package/_assets/{secp256k1-CR7oQoP9.js → secp256k1-B_4d6vom.js} +1 -1
- package/_assets/{secp256k1-C16_XTC1.js → secp256k1-CCfiCvs-.js} +1 -1
- package/_assets/{secp256k1-BdUoxiXs.js → secp256k1-D52lJTEk.js} +1 -1
- package/_assets/{send-CtHTa-Zr.js → send-BmvynCVT.js} +1 -1
- package/_assets/{send-batch-transaction-Cs3B1O70.js → send-batch-transaction-FUeKMYe6.js} +1 -1
- package/_assets/{send-eip712-transaction-DIkXnwtQ.js → send-eip712-transaction-gIXTaUO6.js} +2 -2
- package/_assets/{send-gasless-transaction-Cse8VKrG.js → send-gasless-transaction-Dffcm2AH.js} +2 -2
- package/_assets/{send-transaction-BvF4P9KI.js → send-transaction-CV0mqcuj.js} +2 -2
- package/_assets/{sendMetaTransaction-DkiH6liR.js → sendMetaTransaction-D8u324f6.js} +1 -1
- package/_assets/{sendRawTransaction-C-jKwFfH.js → sendRawTransaction-C7uGJYYZ.js} +3 -3
- package/_assets/{serializeTransaction-BuSbsw2P.js → serializeTransaction-LIoftmSp.js} +1 -1
- package/_assets/{session-proposal-kYbIH83K.js → session-proposal-FM8LmXKa.js} +1 -1
- package/_assets/{session-request-BI_hmJVZ.js → session-request-DfYm_Li8.js} +2 -2
- package/_assets/{signing-C3dpYGa5.js → signing-8yhX16bn.js} +3 -3
- package/_assets/{socials-BOiLEX6l.js → socials-BAdFtXtr.js} +1 -1
- package/_assets/{styled-DINE9MQ0.js → styled-0dpSKx8k.js} +1 -1
- package/_assets/{swaps-CECeDvBd.js → swaps-eRH3TFop.js} +1 -1
- package/_assets/{thirdweb-D2iyq9jE.js → thirdweb-JnXyMEvM.js} +3 -3
- package/_assets/{to-serializable-transaction-DwQmyJRI.js → to-serializable-transaction-DEVbteW9.js} +2 -2
- package/_assets/{transactionReceipt-B0Yyuulc.js → transactionReceipt-DRuVx5eA.js} +1 -1
- package/_assets/{transactions-CVa0yXiE.js → transactions-Cpr-9OpP.js} +1 -1
- package/_assets/{useCreditPacks-j0KzNBHB.js → useCreditPacks-CKcjDTjk.js} +1 -1
- package/_assets/{useImportable-DZHzdDAY.js → useImportable-B8kugnrY.js} +1 -1
- package/_assets/{useInfiniteGrid-DguU-cIJ.js → useInfiniteGrid-CRukdsdk.js} +1 -1
- package/_assets/{useTheme-Cs4_ikeG.js → useTheme-DT4KJhC2.js} +1 -1
- package/_assets/{verifyHash-BQDUL2qR.js → verifyHash-D3N-DpSq.js} +1 -1
- package/_assets/{w3m-modal-CdAFLwAH.js → w3m-modal-DrdMVzXu.js} +1 -1
- package/_assets/{w3m-modal-75q9wyXn.js → w3m-modal-DyhVPbkh.js} +1 -1
- package/_assets/{wait-for-tx-receipt-BcAkEAve.js → wait-for-tx-receipt-Ci6vv8Ey.js} +1 -1
- package/_assets/{wallets-CA-bESDl.js → wallets-CgJo02lh.js} +5 -5
- package/_assets/{web-connector-CkPmzzva.js → web-connector-0anvxwVt.js} +3 -3
- package/_assets/{writeContract-CK1yAi7p.js → writeContract-BdcOo3Yx.js} +1 -1
- package/_assets/{zoraTestnet-aF35aj2M.js → zoraTestnet-DE3HICyd.js} +1 -1
- package/index.html +11 -11
- package/package.json +2 -2
- package/_assets/LazyEmoteControls-YqpacGjJ.js +0 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["_assets/index
|
|
2
|
-
import{n as we,bL as je,o as q,v as I,bM as ke,s as l,t as s,w as Ie,B as Ae,x as $e,b as c,ak as Pe,I as A,bN as Y,bO as ee,bP as Le,_ as Ne,z as N,bQ as Ee,A as Te,bg as z,aD as Ce,bR as Se,E as Fe,bS as De,bT as O}from"./index-
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["_assets/index-BOhYLjC3.js","_assets/react-OEOSdkUk.js","_assets/index-9fsiI1dP.js","_assets/sentry-B60WY-np.js","_assets/dcl-schemas-CmtP3U6y.js","_assets/ethers-lk3HAbPB.js","_assets/intl-CBcMB1D2.js","_assets/index-D-NhBWWr.css","_assets/useImportable-B8kugnrY.js","_assets/buy-AvolTNyl.js","_assets/authorizations-Dge9-BPU.js","_assets/sendMetaTransaction-D8u324f6.js","_assets/ManaPricingBanner.styles-Bx_fyxrd.js","_assets/Faq-XhwmepN6.js","_assets/field.styles-D_tiVUDr.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{n as we,bL as je,o as q,v as I,bM as ke,s as l,t as s,w as Ie,B as Ae,x as $e,b as c,ak as Pe,I as A,bN as Y,bO as ee,bP as Le,_ as Ne,z as N,bQ as Ee,A as Te,bg as z,aD as Ce,bR as Se,E as Fe,bS as De,bT as O}from"./index-9fsiI1dP.js";import{r as g,u as Me,j as t,L as se,b as He}from"./react-OEOSdkUk.js";import{u as qe}from"./useImportable-B8kugnrY.js";import{L as ze}from"./LoadMore-HeeBSVXn.js";import{u as P}from"./useInfiniteGrid-CRukdsdk.js";import{m as ne}from"./mana-matic-C4e1sNO3.js";import"./sentry-B60WY-np.js";import"./dcl-schemas-CmtP3U6y.js";import"./ethers-lk3HAbPB.js";import"./intl-CBcMB1D2.js";import"./buy-AvolTNyl.js";import"./authorizations-Dge9-BPU.js";import"./sendMetaTransaction-D8u324f6.js";const Oe=15e3;function Re(e,a){return e.txHash&&a.txHash?e.txHash===a.txHash:e.txHash||a.txHash?!1:e.status===a.status&&Math.abs(e.createdAt-a.createdAt)<=Oe}function We(e){const a=[...e].sort((i,r)=>r.createdAt-i.createdAt),n=[];for(const i of a){const r=n[n.length-1];r&&Re(r[r.length-1],i)?r.push(i):n.push([i])}return n.map(i=>{var r;return{id:((r=i.find(d=>d.txHash))==null?void 0:r.txHash)??i[i.length-1].id,createdAt:Math.max(...i.map(d=>d.createdAt)),status:i.some(d=>d.status==="PENDING")?"PENDING":"SETTLED",totalCredits:i.reduce((d,u)=>d+u.credits,0),lines:i}})}function _e(e){return e.tradeId?`trade:${e.tradeId}`:e.contractAddress&&e.itemId?`item:${e.contractAddress.toLowerCase()}:${e.itemId}`:null}function Be(e){const a=[],n=new Map;for(const i of e){const r=_e(i);if(!r){a.push({key:i.id,tradeId:null,contractAddress:i.contractAddress??null,itemId:i.itemId??null,quantity:1,credits:i.credits});continue}const d=n.get(r);if(d){d.quantity+=1,d.credits+=i.credits;continue}const u={key:r,tradeId:i.tradeId,contractAddress:i.contractAddress??null,itemId:i.itemId??null,quantity:1,credits:i.credits};n.set(r,u),a.push(u)}return a}function Ge(e,a){return{id:e.id,contractAddress:e.contractAddress,tokenId:e.tokenId,itemId:e.itemId,counterparty:e.buyer,credits:a?we(e.manaWei,a):null,manaWei:e.manaWei,createdAt:e.createdAt,txHash:e.txHash}}function Ue(e){const n=We(e.purchases.filter(o=>o.status!=="EXPIRED")).map(o=>({kind:"purchase",id:`purchase:${o.id}`,createdAt:o.createdAt,order:o})),i=e.sales.map(o=>{const x=Ge(o,e.rate);return{kind:"sale",id:`sale:${x.id}`,createdAt:x.createdAt,sale:x}}),r=(e.creditOrders??[]).filter(o=>o.status!=="failed"&&o.status!=="abandoned").map(o=>({kind:"credit",id:`credit:${o.id}`,createdAt:o.createdAt,order:o})),d=new Set(e.purchases.filter(o=>o.txHash).map(o=>o.txHash.toLowerCase())),u=(e.manaPurchases??[]).filter(o=>!d.has(o.txHash.toLowerCase())).map(o=>({kind:"mana-purchase",id:`mana-purchase:${o.id}`,createdAt:o.createdAt,sale:o}));return[...n,...i,...r,...u].sort((o,x)=>x.createdAt-o.createdAt||(o.id<x.id?-1:1))}function Ke(e,a){return a==="all"?e:a==="sales"?e.filter(n=>n.kind==="sale"):e.filter(n=>n.kind==="purchase"||n.kind==="credit"||n.kind==="mana-purchase")}const re=e=>e.trim().toLowerCase();function Qe(e){const a=new Map;for(const n of e??[]){const i=re(n.txHash??"");if(!i)continue;const r=a.get(i);r?r.push(n):a.set(i,[n])}return a}function Ve(e,a,n=Date.now()){const i=a.txHash?e.get(re(a.txHash)):void 0;if(!i||i.length===0)return{kind:"direct"};const r=i.length===1?Xe(i[0].netCents):null,d=i.filter(o=>!o.available&&o.availableAt>n);if(d.length===0)return{kind:"credited",credits:r};const u=d.reduce((o,x)=>Math.max(o,x.availableAt),0);return{kind:"pending",credits:r,availableAt:u}}function Xe(e){return je(e)}function Ze(){const e=q(i=>{var r;return(r=i.session)==null?void 0:r.address}),{data:a,isLoading:n}=I({queryKey:["listing-count",e],queryFn:()=>ke({creator:e,onSale:!0,first:1}),enabled:!!e,staleTime:5*6e4});return{count:a==null?void 0:a.total,isLoading:n}}const Je="https://cdn.decentraland.org/@dcl/shop/0.10.1-31022274185.commit-4782a6d/_assets/credits-product-vs4Q6u6l.svg",R=Ie`
|
|
3
3
|
0% { background-position: 200% 0; }
|
|
4
4
|
100% { background-position: -200% 0; }
|
|
5
5
|
`,Ye=l.section`
|
|
@@ -378,4 +378,4 @@ import{n as we,bL as je,o as q,v as I,bM as ke,s as l,t as s,w as Ie,B as Ae,x a
|
|
|
378
378
|
margin: 6px 0 0;
|
|
379
379
|
`,ht=l(Ae)`
|
|
380
380
|
margin-top: 12px;
|
|
381
|
-
`,V=H.withComponent(se),ut=g.lazy(()=>Ne(()=>import("./index
|
|
381
|
+
`,V=H.withComponent(se),ut=g.lazy(()=>Ne(()=>import("./index-BOhYLjC3.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14])).then(e=>({default:e.ImportListings}))),L=24,pt=["all","purchases","sales"],ae="migrate";function k(e){try{return new Date(e).toLocaleDateString(void 0,{year:"numeric",month:"short",day:"numeric"})}catch{return""}}function he(e){return e.length>10?`${e.slice(0,6)}…${e.slice(-4)}`:e}function ue(e){const a=Number(e)/1e18;return Number.isFinite(a)?a.toLocaleString("en",{maximumFractionDigits:2}):"0"}function pe({children:e}){const a=g.useRef(null),[n,i]=g.useState(null),r=()=>{var u;const d=(u=a.current)==null?void 0:u.getBoundingClientRect();d&&i({top:d.bottom+8,left:d.left+d.width/2})};return t.jsxs(dt,{ref:a,tabIndex:0,onMouseEnter:r,onMouseLeave:()=>i(null),onFocus:r,onBlur:()=>i(null),children:[e,n?He.createPortal(t.jsx(ct,{style:{top:n.top,left:n.left},role:"tooltip",children:c("activity.polygonMana")}),document.body):null]})}function xt({item:e}){const a=!!e.contractAddress&&!!e.itemId,n=!!e.tradeId||a,{data:i,isLoading:r}=I({queryKey:["order-line-display",e.tradeId,e.contractAddress,e.itemId],queryFn:()=>e.tradeId?De(e.tradeId):O(e.contractAddress,{itemId:e.itemId}),enabled:n,staleTime:5*6e4}),d=n&&r,u=(i==null?void 0:i.name)??c("activity.itemFallback"),o=(i==null?void 0:i.thumbnail)??"",x=z({contractAddress:i==null?void 0:i.contractAddress,tokenId:i==null?void 0:i.tokenId,itemId:i==null?void 0:i.itemId})??void 0,f=t.jsxs(t.Fragment,{children:[d?t.jsx(B,{}):t.jsx(_,{children:o?t.jsx("img",{src:o,alt:u}):t.jsx(A,{name:"cart",size:20})}),t.jsxs(G,{children:[d?t.jsx(K,{}):t.jsx(U,{title:u,children:u}),e.quantity>1?t.jsx(Q,{children:c("activity.quantity",{count:e.quantity})}):null]}),t.jsxs(lt,{children:[t.jsx(N,{className:"ccy-mark"})," ",e.credits]})]});return x?t.jsx(V,{to:x,"data-link":"true",children:f}):t.jsx(H,{children:f})}function mt({order:e}){const a=Be(e.lines),n=a.reduce((i,r)=>i+r.quantity,0);return t.jsxs(E,{"data-testid":"purchase-order",children:[t.jsxs(T,{children:[t.jsxs(C,{children:[t.jsx(S,{children:k(e.createdAt)}),t.jsxs(F,{children:[c("activity.purchaseLabel")," · ",c("activity.itemCount",{count:n})]})]}),t.jsxs(D,{children:[t.jsx(M,{"data-status":e.status,children:e.status==="PENDING"?c("activity.processing"):c("activity.completed")}),t.jsxs(j,{children:[t.jsx(N,{className:"ccy-mark"})," ",e.totalCredits]})]})]}),t.jsx(W,{children:a.map(i=>t.jsx(xt,{item:i},i.key))})]})}function gt({sale:e}){const{data:a,isLoading:n}=I({queryKey:["asset-display",e.contractAddress,e.tokenId,e.itemId],queryFn:()=>O(e.contractAddress,{tokenId:e.tokenId,itemId:e.itemId}),enabled:!!e.contractAddress,staleTime:3e5}),i=(a==null?void 0:a.name)??c("activity.itemFallback"),r=(a==null?void 0:a.thumbnail)??"",d=z({contractAddress:e.contractAddress,tokenId:e.tokenId,itemId:e.itemId})??void 0,u=t.jsxs(t.Fragment,{children:[n?t.jsx(B,{}):t.jsx(_,{children:r?t.jsx("img",{src:r,alt:i}):t.jsx(A,{name:"offer",size:20})}),t.jsxs(G,{children:[n?t.jsx(K,{}):t.jsx(U,{title:i,children:i}),t.jsx(Q,{children:c("activity.boughtFrom",{account:he(e.seller)})})]})]});return t.jsxs(E,{"data-testid":"activity-mana-purchase",children:[t.jsxs(T,{children:[t.jsxs(C,{children:[t.jsx(S,{children:k(e.createdAt)}),t.jsx(F,{children:c("activity.paidWithMana")})]}),t.jsxs(D,{children:[t.jsx(M,{"data-status":"SETTLED",children:c("activity.completed")}),t.jsxs(j,{children:[ue(e.manaWei)," ",t.jsx(pe,{children:t.jsx(de,{src:ne,alt:"MANA"})})]})]})]}),t.jsx(W,{children:d?t.jsx(V,{to:d,"data-link":"true",children:u}):t.jsx(H,{children:u})})]})}function ft({sale:e,payout:a}){const{data:n,isLoading:i}=I({queryKey:["asset-display",e.contractAddress,e.tokenId,e.itemId],queryFn:()=>O(e.contractAddress,{tokenId:e.tokenId,itemId:e.itemId}),enabled:!!e.contractAddress,staleTime:3e5}),r=(n==null?void 0:n.name)??c("activity.itemFallback"),d=(n==null?void 0:n.thumbnail)??"",u=z({contractAddress:e.contractAddress,tokenId:e.tokenId,itemId:e.itemId})??void 0,o=t.jsxs(t.Fragment,{children:[i?t.jsx(B,{}):t.jsx(_,{children:d?t.jsx("img",{src:d,alt:r}):t.jsx(A,{name:"offer",size:20})}),t.jsxs(G,{children:[i?t.jsx(K,{}):t.jsx(U,{title:r,children:r}),t.jsxs(Q,{children:[c("activity.soldTo",{account:he(e.counterparty)}),a.kind==="pending"?` · ${c("activity.payoutPendingOn",{date:k(a.availableAt)})}`:""]})]})]});return t.jsxs(E,{"data-testid":"activity-sale",children:[t.jsxs(T,{children:[t.jsxs(C,{children:[t.jsx(S,{children:k(e.createdAt)}),t.jsx(F,{children:c("activity.saleLabel")})]}),t.jsxs(D,{children:[t.jsx(M,{"data-status":a.kind==="pending"?"PENDING":"SOLD",children:a.kind==="pending"?c("activity.payoutPending"):c("activity.sold")}),a.kind==="direct"?t.jsxs(j,{"data-kind":"income",children:["+",ue(e.manaWei)," ",t.jsx(pe,{children:t.jsx(de,{src:ne,alt:"MANA"})})]}):a.credits!==null?t.jsxs(j,{"data-kind":"income",children:[t.jsx(N,{className:"ccy-mark"})," +",Ce(a.credits)]}):t.jsx(j,{"data-kind":"income",children:c("activity.payoutCredited")})]})]}),t.jsx(W,{children:u?t.jsx(V,{to:u,"data-link":"true",children:o}):t.jsx(H,{children:o})})]})}function bt({order:e}){const a=`$${(e.usdCents/100).toFixed(2)}`,n=Ee(e.status),i=n==="SETTLED"?c("activity.completed"):n==="FAILED"?c("activity.failed"):n==="UNFINISHED"?c("activity.unfinished"):c("activity.processing"),r=q(p=>p.session),d=Te(),[u,o]=g.useState(!1),x=e.status==="initiated"&&!!r;async function f(){if(!(!r||u)){o(!0);try{const p=await Se(e.id,r.identity);if(p){window.location.href=p;return}Fe.info(c("activity.resumeExpired")),d.invalidateQueries({queryKey:["credit-orders"]})}finally{o(!1)}}}return t.jsx(E,{"data-testid":"credit-order",children:t.jsxs(T,{children:[t.jsx(rt,{children:t.jsx("img",{src:Je,alt:"","aria-hidden":!0})}),t.jsxs(C,{children:[t.jsx(S,{children:k(e.createdAt)}),t.jsxs(F,{children:[c("activity.creditPurchaseLabel")," · ",c("activity.creditPaid",{usd:a})]})]}),t.jsxs(D,{children:[x?t.jsx(ot,{type:"button",onClick:()=>void f(),disabled:u,"data-testid":"resume-order",children:u?c("activity.resuming"):c("activity.resume")}):null,t.jsx(M,{"data-status":n,children:i}),t.jsxs(j,{"data-kind":"income",children:["+",t.jsx(N,{className:"ccy-mark"})," ",e.credits]})]})]})})}function yt({filter:e}){const a={all:{icon:"clock",title:c("activity.emptyAllTitle"),body:c("activity.emptyAllBody")},purchases:{icon:"cart",title:c("activity.emptyPurchasesTitle"),body:c("activity.emptyPurchasesBody")},sales:{icon:"offer",title:c("activity.emptySalesTitle"),body:c("activity.emptySalesBody")}}[e];return t.jsxs(ce,{children:[t.jsx(A,{name:a.icon,size:40,color:s.colors.muted2}),t.jsx(le,{children:a.title}),t.jsx("p",{className:"muted",children:a.body}),e!=="sales"?t.jsx(ht,{as:se,to:"/items",variant:"purple",children:c("notFound.cta")}):null]})}function St(){const{session:e}=q(),[a,n]=g.useState("all"),[i,r]=Me(),d=i.get("view")===ae;$e({title:d?c("seo.import.title"):c("nav.activity"),noindex:!0});const{count:u}=qe(),{count:o}=Ze(),f=u!==void 0&&o!==void 0&&(u>0||o>0||d),p=!!e&&!d&&a!=="sales",m=!!e&&!d&&a!=="purchases",b=P(["purchases",e==null?void 0:e.address],h=>Le(e.address,e.identity,{first:L,skip:h}),{enabled:p}),y=P(["sales",e==null?void 0:e.address],h=>Y(e.address,{role:"seller",first:L,skip:h}),{enabled:m}),v=P(["credit-orders",e==null?void 0:e.address],h=>ee(e.address,e.identity,{first:L,skip:h}),{enabled:p}),w=P(["mana-purchases",e==null?void 0:e.address],h=>Y(e.address,{role:"buyer",first:L,skip:h}),{enabled:p}),{data:X}=I({queryKey:["sale-payouts",e==null?void 0:e.address],queryFn:()=>ee(e.address,e.identity,{first:200}).then(h=>h.payouts),enabled:m,staleTime:6e4}),xe=g.useMemo(()=>Qe(X),[X]),{data:me}=Pe(m);if(!e)return t.jsxs(ce,{children:[t.jsx(A,{name:"clock",size:40,color:s.colors.muted2}),t.jsx(le,{children:c("activity.signInTitle")}),t.jsx("p",{className:"muted",children:c("activity.signInBody")})]});const Z=Ke(Ue({purchases:p?b.items:[],sales:m?y.items:[],creditOrders:p?v.items:[],manaPurchases:p?w.items:[],rate:me}),a),ge=p&&(b.isLoading||v.isLoading||w.isLoading)||m&&y.isLoading,J=p&&(b.isFetchingNextPage||v.isFetchingNextPage||w.isFetchingNextPage)||m&&y.isFetchingNextPage,fe=p&&(b.hasNextPage||v.hasNextPage||w.hasNextPage)||m&&y.hasNextPage;function be(){p&&b.hasNextPage&&b.fetchNextPage(),p&&v.hasNextPage&&v.fetchNextPage(),p&&w.hasNextPage&&w.fetchNextPage(),m&&y.hasNextPage&&y.fetchNextPage()}function ye(h){if(n(h),!d)return;const $=new URLSearchParams(i);$.delete("view"),r($,{replace:!0})}function ve(){const h=new URLSearchParams(i);h.set("view",ae),r(h,{replace:!0})}return t.jsxs(Ye,{children:[t.jsx(et,{children:t.jsx(tt,{children:c("nav.activity")})}),t.jsxs(it,{role:"tablist","aria-label":c("nav.activity"),children:[pt.map(h=>t.jsx(oe,{type:"button",role:"tab","aria-selected":!d&&a===h,"data-active":!d&&a===h,"data-testid":`activity-filter-${h}`,onClick:()=>ye(h),children:c(`activity.filter.${h}`)},h)),f?t.jsxs(at,{type:"button",role:"tab","aria-selected":d,"data-active":d,"data-testid":"activity-filter-migrate","aria-label":u?c("activity.migrate.chipAria",{count:u}):void 0,onClick:ve,children:[c("activity.migrate.chip"),u?t.jsx(st,{"data-testid":"activity-migrate-count","aria-hidden":!0,children:u}):null]}):null]}),d?t.jsx(g.Suspense,{fallback:t.jsx(nt,{"aria-busy":"true"}),children:t.jsx(ut,{})}):ge?t.jsx(te,{children:Array.from({length:5}).map((h,$)=>t.jsx(ie,{},$))}):Z.length===0?t.jsx(yt,{filter:a}):t.jsxs(t.Fragment,{children:[t.jsxs(te,{children:[Z.map(h=>h.kind==="purchase"?t.jsx(mt,{order:h.order},h.id):h.kind==="credit"?t.jsx(bt,{order:h.order},h.id):h.kind==="mana-purchase"?t.jsx(gt,{sale:h.sale},h.id):t.jsx(ft,{sale:h.sale,payout:Ve(xe,h.sale)},h.id)),J?t.jsx(ie,{}):null]}),t.jsx(ze,{hasNextPage:fe,isFetching:J,onLoadMore:be})]})]})}export{St as Activity};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as l,j as v}from"./react-OEOSdkUk.js";import{s as u}from"./index-
|
|
1
|
+
import{r as l,j as v}from"./react-OEOSdkUk.js";import{s as u}from"./index-9fsiI1dP.js";import"./sentry-B60WY-np.js";import"./dcl-schemas-CmtP3U6y.js";import"./ethers-lk3HAbPB.js";import"./intl-CBcMB1D2.js";const S="https://cdn.decentraland.org/@dcl/shop/0.10.1-31022274185.commit-4782a6d/_assets/custom-welcome-background-BxlFQma9.webp",b="https://cdn.decentraland.org/@dcl/shop/0.10.1-31022274185.commit-4782a6d/_assets/DCL_LogoPattern-BryBPc3d.png",U=`
|
|
2
2
|
attribute vec2 a_position;
|
|
3
3
|
varying vec2 v_uv;
|
|
4
4
|
void main() {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{e as Ae,r as w,j as e,u as Je}from"./react-OEOSdkUk.js";import{u as Ke}from"./useUrlFilters-DABDXRpV.js";import{c as W,r as Qe,bl as Xe,bm as Ye,ay as et,a as tt,s,t,o as Me,bb as nt,A as st,aD as
|
|
1
|
+
import{e as Ae,r as w,j as e,u as Je}from"./react-OEOSdkUk.js";import{u as Ke}from"./useUrlFilters-DABDXRpV.js";import{c as W,r as Qe,bl as Xe,bm as Ye,ay as et,a as tt,s,t,o as Me,bb as nt,A as st,aD as me,b as n,y as it,I as _,z as A,bY as Y,ba as rt,V as Q,bq as ot,bp as at,x as Ne,ak as Pe,n as We,q as lt,ai as ct,am as ke,an as D,aF as dt,bJ as pt}from"./index-9fsiI1dP.js";import{g as ht,h as xt,i as mt,j as ft,k as ut,C as gt,l as bt,o as yt,m as wt,n as jt,M as vt,u as $t,E as Ct,v as kt,p as St,q as Et,r as _t,s as Tt,t as Rt}from"./Assets.styles-BYK-8Oxq.js";import{S as Se,R as zt,F as It,e as At}from"./categories-CsBqvArM.js";import{L as Mt}from"./LoadMore-HeeBSVXn.js";import{u as Nt}from"./useInfiniteGrid-CRukdsdk.js";import{E as Pt}from"./ErrorNotice-Cc1oxuPj.js";import{d as Wt}from"./dcl-schemas-CmtP3U6y.js";import{s as Bt,G as Ft,w as Lt,S as Ut}from"./buy-gasless-CmyKiZii.js";import{s as Ht,k as Ot}from"./buy-AvolTNyl.js";import{f as Dt}from"./errors-i7IRVO4d.js";import{J as Gt,C as qt,B as fe}from"./ethers-lk3HAbPB.js";import{n as Vt}from"./Tooltip-DiQRnF2Q.js";import{G as Zt}from"./grid.styles-GkZpb-YA.js";import"./sentry-B60WY-np.js";import"./intl-CBcMB1D2.js";import"./authorizations-Dge9-BPU.js";import"./sendMetaTransaction-D8u324f6.js";function G(i){const o=i.source??"item",l=i.tradeId||`${i.contractAddress}-${i.tokenId??i.itemId??""}`;return`${o}:${l}`}const B="100000000000000000000",Be=2,X=15,Jt=/^[a-zA-Z0-9]+$/;function Ee(i){const o=i.trim();return o.length===0?{ok:!1,reason:"empty"}:Jt.test(o)?o.length<Be?{ok:!1,reason:"too-short"}:o.length>X?{ok:!1,reason:"too-long"}:{ok:!0}:{ok:!1,reason:"invalid-chars"}}function Kt(i){return i.replace(/[^a-zA-Z0-9]/g,"").slice(0,X)}const Qt=["function available(string _subdomain) view returns (bool)"],_e={mainnet:{rpc:"https://rpc.decentraland.org/mainnet",address:"0x2a187453064356c898cae034eaed119e1663acb8"},sepolia:{rpc:"https://rpc.decentraland.org/sepolia",address:"0x7518456ae93eb98f3e64571b689c626616bb7f30"}};function Xt(){return W.chainId===Number(Wt.ChainId.MATIC_MAINNET)?_e.mainnet:_e.sepolia}async function Yt(i,o={}){var d;const{rpc:l,address:x}=Xt(),h=new Gt(l),c=new qt(x,Qt,h);console.info(`[names] availability check → DCLRegistrar(${x}).available("${i}") on ${l}`);const p=await c.available(i);if((d=o.signal)!=null&&d.aborted)throw new DOMException("Aborted","AbortError");return console.info(`[names] "${i}" available=${p}`),p?"available":"taken"}const en="https://app.across.to/api";class ue extends Error{constructor(){super("Name registration is temporarily unavailable due to high network costs"),this.name="NameRouteCostTooHighError"}}function tn(i){return et(B,i)}async function nn(i,o,l={}){var d;const x=l.chainId??W.chainId,h=l.provider??"across",c=`${W.creditsServerUrl}/credits-name-route?name=${encodeURIComponent(o)}&chainId=${x}&provider=${h}`,p=await tt(c,{method:"GET",identity:i,metadata:{}});if(!p.ok){let a;try{a=(d=await p.json())==null?void 0:d.code}catch{}throw a==="ROUTE_COST_TOO_HIGH"?new ue:new Error(`fetchNameCreditRoute ${p.status}`)}return p.json()}function sn(i,o){const l=fe.from(i.availableAmount),h=fe.from(B).sub(l);return{credits:[{value:i.amount,expiresAt:Number(i.expiresAt),salt:Ot(i.id)}],creditsSignatures:[i.signature],externalCall:{target:o.externalCall.target,selector:o.externalCall.selector,data:o.externalCall.data,expiresAt:o.externalCall.expiresAt,salt:o.externalCall.salt},customExternalCallSignature:o.customExternalCallSignature,maxUncreditedValue:h.isNegative()?"0":h.toString(),maxCreditedValue:B}}async function rn(i,o={}){const l=en,x=o.intervalMs??1e4,h=o.maxAttempts??60;let c={status:"pending",destinationTxHash:null,actionsSucceeded:!1};for(let p=0;p<h;p++){try{const d=await fetch(`${l}/deposit/status?originChainId=137&depositTxHash=${i}`);if(d.ok){const a=await d.json(),m=(a.status??"pending").toLowerCase(),g=a.fillTx??a.fillTxnRef??null,u=a.actionsSucceeded!==!1;if(m==="filled")return{status:"filled",destinationTxHash:g,actionsSucceeded:u};if(m==="refunded"||m==="expired")return{status:m,destinationTxHash:null,actionsSucceeded:!1};c={status:"pending",destinationTxHash:g,actionsSucceeded:u}}}catch{}p<h-1&&await new Promise(d=>setTimeout(d,x))}return c}async function on(i){const{name:o,identity:l,signer:x}=i,h=i.chainId??W.chainId,c=i.provider??"across",p=(i.beneficiary??await x.getAddress()).toLowerCase();let d=null,a=!1;console.info("[names] register start",{name:o,buyer:p,chainId:h,provider:c});try{const m=await Qe(h),g=tn(m);console.info("[names] step 1/6 sized reservation",{usdCents:g,manaRate:m});const u=await nn(l,o,{chainId:h,provider:c});console.info("[names] step 2/6 route fetched",{target:u.externalCall.target,selector:u.externalCall.selector,provider:u.provider,quoteId:u.quoteId});const v=await Xe(l,g);if(d=v.credit.id,console.info("[names] step 3/6 credit authorized",{creditId:v.credit.id,maxCreditedValue:v.maxCreditedValue}),fe.from(v.maxCreditedValue).lt(B))throw new Error("Credit under-sized for the name price");const j=sn(v.credit,u);let f;try{f=await Bt({chainId:h,buyer:p,signer:x,args:j})}catch(b){if(!(b instanceof Ft))throw b;f=await Ht(h,j,x)}if(console.info("[names] step 4/6 useCredits submitted (Polygon origin tx)",{originTxHash:f}),await Lt(f),a=!0,console.info("[names] step 5/6 origin tx confirmed",{originTxHash:f}),c==="across"){const b=await rn(f,i.acrossPoll);if(console.info("[names] step 6/6 across status",b),b.status==="pending")return{status:"pending",originTxHash:f};if(b.status!=="filled"||!b.actionsSucceeded)throw new Error("The name could not be registered on Ethereum; your funds were recovered.");return{status:"registered",originTxHash:f,destinationTxHash:b.destinationTxHash}}return{status:"pending",originTxHash:f}}catch(m){if(console.error("[names] register failed — raw error:",m,{name:o,buyer:p,originConfirmed:a}),m instanceof Ut)return{status:"pending",originTxHash:m.txHash};if(d&&!a&&await Ye(l,[d]).catch(()=>{}),m instanceof ue)throw m;const g=new Error(Dt(m,"Couldn't register the name. Please try again.",{sale:!0}));throw g.cause=m,g}}const an=s.div`
|
|
2
2
|
position: fixed;
|
|
3
3
|
inset: 0;
|
|
4
4
|
z-index: 10000;
|
|
@@ -69,11 +69,11 @@ import{e as Ae,r as w,j as e,u as Je}from"./react-OEOSdkUk.js";import{u as Ke}fr
|
|
|
69
69
|
height: 16px;
|
|
70
70
|
color: ${t.colors.brandViolet};
|
|
71
71
|
}
|
|
72
|
-
`,
|
|
72
|
+
`,ie=s.hr`
|
|
73
73
|
border: 0;
|
|
74
74
|
border-top: 1px solid ${t.colors.line};
|
|
75
75
|
margin: 16px 0;
|
|
76
|
-
`,
|
|
76
|
+
`,re=s.div`
|
|
77
77
|
display: flex;
|
|
78
78
|
align-items: center;
|
|
79
79
|
gap: 16px;
|
|
@@ -166,7 +166,7 @@ import{e as Ae,r as w,j as e,u as Je}from"./react-OEOSdkUk.js";import{u as Ke}fr
|
|
|
166
166
|
font-family: ${t.font.sans};
|
|
167
167
|
font-size: 18px;
|
|
168
168
|
color: ${t.colors.muted2};
|
|
169
|
-
`,
|
|
169
|
+
`,mn=s.input`
|
|
170
170
|
flex: 0 1 auto;
|
|
171
171
|
min-width: 0;
|
|
172
172
|
border: 0;
|
|
@@ -181,7 +181,7 @@ import{e as Ae,r as w,j as e,u as Je}from"./react-OEOSdkUk.js";import{u as Ke}fr
|
|
|
181
181
|
color: ${t.colors.muted2};
|
|
182
182
|
font-weight: 400;
|
|
183
183
|
}
|
|
184
|
-
`,
|
|
184
|
+
`,fn=s.span`
|
|
185
185
|
flex: none;
|
|
186
186
|
font-family: ${t.font.sans};
|
|
187
187
|
font-size: 16px;
|
|
@@ -379,7 +379,7 @@ import{e as Ae,r as w,j as e,u as Je}from"./react-OEOSdkUk.js";import{u as Ke}fr
|
|
|
379
379
|
color: ${t.colors.accent};
|
|
380
380
|
}
|
|
381
381
|
}
|
|
382
|
-
`;function Sn({name:
|
|
382
|
+
`;function Sn({name:i,priceCredits:o,onClose:l}){const{session:x}=Me(),{data:h,isError:c}=nt(x),p=st(),d=Ae(),[a,m]=w.useState("confirm"),[g,u]=w.useState(""),[v,j]=w.useState(null),f=w.useRef(!1),b=g.trim().toLowerCase()===i.toLowerCase(),$=a==="completing",C=o!=null?me(o):"—",k=o==null,E=h==null?void 0:h.credits,M=o!=null&&E!=null?o-E:0,S=M>0,N=k?n("names.priceUnavailable"):S?n("names.insufficientCredits",{credits:me(M)}):null;w.useEffect(()=>{const y=R=>{R.key==="Escape"&&!$&&l()};document.addEventListener("keydown",y);const T=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.removeEventListener("keydown",y),document.body.style.overflow=T}},[$,l]);async function F(){if(!(!x||!b||k||S||f.current)){f.current=!0,m("completing"),j(null);try{const y=await on({name:i,identity:x.identity,signer:x.signer});Q("Shop Completed Purchase",{purchase_type:"name",is_primary:!0,payment_type:"credits",value_credits:o??null,settlement:y.status}),p.invalidateQueries({queryKey:["usd-balance"]}),p.invalidateQueries({queryKey:["my-assets"]}),m(y.status==="registered"?"success":"pending")}catch(y){Q(at(y)?"Shop Purchase Cancelled":"Shop Purchase Failed",{step:"submit",error_code:ot(y),purchase_type:"name"}),j(y instanceof ue?n("names.errorRouteCost"):(y==null?void 0:y.message)||n("names.errorGeneric")),m("error")}finally{f.current=!1}}}const L=a!=="success"&&a!=="pending",z=it(x==null?void 0:x.providerType);return e.jsx(an,{onClick:$?void 0:l,role:"presentation",children:e.jsxs(ln,{role:"dialog","aria-modal":"true","aria-label":n("names.buyTitle"),onClick:y=>y.stopPropagation(),children:[L&&e.jsxs(e.Fragment,{children:[e.jsxs(ee,{children:[e.jsx(te,{children:a==="error"?n("names.errorTitle"):n("names.buyTitle")}),e.jsx(ne,{onClick:l,disabled:$,"aria-label":n("buyModal.close"),children:e.jsx(_,{name:"close"})})]}),e.jsxs(se,{children:[n("names.myCreditsBalance")," ",e.jsx(A,{})," ",Y(h,c)]}),e.jsx(ie,{})]}),(a==="confirm"||a==="error")&&e.jsxs(e.Fragment,{children:[e.jsxs(re,{children:[e.jsx(oe,{"aria-hidden":!0,children:"@"}),e.jsxs(ae,{children:[e.jsxs(le,{children:[i,e.jsx("span",{children:".dcl.eth"})]}),e.jsx(ce,{children:n("names.subtitle")})]}),e.jsxs(de,{children:[e.jsx(A,{}),C]})]}),a==="error"?e.jsxs(e.Fragment,{children:[e.jsxs(pe,{children:[e.jsx(_,{name:"info","aria-hidden":!0}),e.jsx("span",{children:v})]}),e.jsx(Te,{onClick:()=>m("confirm"),children:n("names.tryAgain")})]}):e.jsxs(e.Fragment,{children:[e.jsxs(cn,{children:[e.jsx(dn,{children:n("names.confirmTitle")}),e.jsx(pn,{dangerouslySetInnerHTML:{__html:n("names.confirmBody",{name:`<b>@${En(i)}</b>`})}}),e.jsxs(hn,{children:[e.jsx(xn,{"aria-hidden":!0,children:"@"}),e.jsx(mn,{value:g,onChange:y=>u(y.target.value.replace(/[^a-zA-Z0-9]/g,"")),placeholder:"yourname","aria-label":n("names.reenterAria"),autoComplete:"off",spellCheck:!1,style:{width:`${Math.max(g.length,8)}ch`}}),e.jsx(fn,{children:".dcl.eth"})]})]}),N?e.jsxs(pe,{"data-tone":"info","data-testid":"name-blocked-reason",children:[e.jsx(_,{name:"info","aria-hidden":!0}),e.jsx("span",{children:N})]}):null,e.jsx(Te,{onClick:()=>void F(),disabled:!b||!x||k||S,children:n("names.buyCta")})]})]}),a==="completing"&&e.jsxs(un,{children:[e.jsx(gn,{src:rt,alt:"",width:56,height:56}),e.jsx(bn,{children:z?n("names.confirming"):n("names.completing")}),e.jsxs(yn,{children:[e.jsx(wn,{"aria-hidden":!0,children:e.jsx("span",{})}),e.jsx(jn,{children:"1/1"})]})]}),a==="pending"&&e.jsxs(e.Fragment,{children:[e.jsxs(ee,{children:[e.jsx(te,{children:n("names.pendingHeaderTitle")}),e.jsx(ne,{onClick:l,"aria-label":n("buyModal.close"),children:e.jsx(_,{name:"close"})})]}),e.jsxs(se,{children:[n("names.myCreditsBalance")," ",e.jsx(A,{})," ",Y(h,c)]}),e.jsx(ie,{}),e.jsxs(pe,{"data-tone":"info",children:[e.jsx(_,{name:"info","aria-hidden":!0}),e.jsxs("span",{children:[e.jsx("b",{children:n("names.pendingBannerBold")})," ",n("names.pendingBannerRest")]})]}),e.jsxs(re,{style:{marginTop:20},children:[e.jsx(oe,{"aria-hidden":!0,children:"@"}),e.jsxs(ae,{children:[e.jsxs(le,{children:[i,e.jsx("span",{children:".dcl.eth"})]}),e.jsx(ce,{children:n("names.subtitle")})]}),e.jsxs(de,{children:[e.jsx(A,{}),C]})]}),e.jsx(Re,{children:e.jsx(ze,{onClick:()=>{l(),d("/my-items")},children:n("names.myItems")})})]}),a==="success"&&e.jsxs(e.Fragment,{children:[e.jsxs(ee,{children:[e.jsx(te,{children:n("names.successHeaderTitle")}),e.jsx(ne,{onClick:l,"aria-label":n("buyModal.close"),children:e.jsx(_,{name:"close"})})]}),e.jsxs(se,{children:[n("names.myCreditsBalance")," ",e.jsx(A,{})," ",Y(h,c)]}),e.jsx(ie,{}),e.jsxs(vn,{children:[e.jsx($n,{"aria-hidden":!0,children:e.jsx(_,{name:"check"})}),e.jsxs(Cn,{children:[e.jsx("b",{children:n("names.successBannerBold")})," ",n("names.successBannerRest")]})]}),e.jsxs(re,{style:{marginTop:20},children:[e.jsx(oe,{"aria-hidden":!0,children:"@"}),e.jsxs(ae,{children:[e.jsxs(le,{children:[i,e.jsx("span",{children:".dcl.eth"})]}),e.jsx(ce,{children:n("names.subtitle")})]}),e.jsxs(de,{children:[e.jsx(A,{}),C]})]}),e.jsxs(Re,{children:[e.jsx(ze,{onClick:()=>{l(),d("/my-items")},children:n("names.myItems")}),e.jsx(kn,{href:W.profileUrl,target:"_blank",rel:"noopener noreferrer",children:n("names.assignToAvatar")})]})]})]})})}function En(i){return i.replace(/[&<>"']/g,o=>({"&":"&","<":"<",">":">",'"':""","'":"'"})[o])}const _n="https://cdn.decentraland.org/@dcl/shop/0.10.1-31022274185.commit-4782a6d/_assets/identity-B4DXDuJP.webp",Tn="https://cdn.decentraland.org/@dcl/shop/0.10.1-31022274185.commit-4782a6d/_assets/world-B-9aPlxu.webp",Rn="https://cdn.decentraland.org/@dcl/shop/0.10.1-31022274185.commit-4782a6d/_assets/invite-BfwIhP2C.webp",zn="https://cdn.decentraland.org/@dcl/shop/0.10.1-31022274185.commit-4782a6d/_assets/governance-DnazlIjy.webp",In=s.div`
|
|
383
383
|
width: 100%;
|
|
384
384
|
min-width: 0;
|
|
385
385
|
`,An=s.nav`
|
|
@@ -479,11 +479,11 @@ import{e as Ae,r as w,j as e,u as Je}from"./react-OEOSdkUk.js";import{u as Ke}fr
|
|
|
479
479
|
gap: 8px;
|
|
480
480
|
padding: 8px 8px 8px 16px;
|
|
481
481
|
background: ${t.colors.softWhite};
|
|
482
|
-
border: 1.5px solid ${({invalid:
|
|
482
|
+
border: 1.5px solid ${({invalid:i})=>i?t.colors.dclRed:t.colors.line};
|
|
483
483
|
border-radius: 20px;
|
|
484
484
|
|
|
485
485
|
&:focus-within {
|
|
486
|
-
border-color: ${({invalid:
|
|
486
|
+
border-color: ${({invalid:i})=>i?t.colors.dclRed:t.colors.magenta};
|
|
487
487
|
}
|
|
488
488
|
|
|
489
489
|
${t.media.maxWidth("mobile")} {
|
|
@@ -669,8 +669,8 @@ import{e as Ae,r as w,j as e,u as Je}from"./react-OEOSdkUk.js";import{u as Ke}fr
|
|
|
669
669
|
font-weight: 500;
|
|
670
670
|
text-align: left;
|
|
671
671
|
|
|
672
|
-
background: ${({tone:
|
|
673
|
-
color: ${({tone:
|
|
672
|
+
background: ${({tone:i})=>i==="error"?"rgba(255, 45, 85, 0.12)":i==="ok"?"rgba(30, 166, 114, 0.14)":"rgba(255,255,255,0.14)"};
|
|
673
|
+
color: ${({tone:i})=>i==="error"?t.colors.dclRed:i==="ok"?"#0f7a4f":"#ecebed"};
|
|
674
674
|
|
|
675
675
|
.ico {
|
|
676
676
|
width: 16px;
|
|
@@ -717,7 +717,7 @@ import{e as Ae,r as w,j as e,u as Je}from"./react-OEOSdkUk.js";import{u as Ke}fr
|
|
|
717
717
|
${t.media.maxWidth("mobile")} {
|
|
718
718
|
font-size: 16px;
|
|
719
719
|
}
|
|
720
|
-
`,
|
|
720
|
+
`,is=s.div`
|
|
721
721
|
display: grid;
|
|
722
722
|
grid-template-columns: repeat(4, 1fr);
|
|
723
723
|
gap: 24px;
|
|
@@ -764,7 +764,7 @@ import{e as Ae,r as w,j as e,u as Je}from"./react-OEOSdkUk.js";import{u as Ke}fr
|
|
|
764
764
|
font-size: 14px;
|
|
765
765
|
line-height: 1.57;
|
|
766
766
|
color: ${t.colors.text};
|
|
767
|
-
`,
|
|
767
|
+
`,rs=s.span`
|
|
768
768
|
font-weight: 600;
|
|
769
769
|
color: ${t.colors.accent};
|
|
770
770
|
`,Ie=s.a`
|
|
@@ -798,4 +798,4 @@ import{e as Ae,r as w,j as e,u as Je}from"./react-OEOSdkUk.js";import{u as Ke}fr
|
|
|
798
798
|
clip: rect(0, 0, 0, 0);
|
|
799
799
|
white-space: nowrap;
|
|
800
800
|
border: 0;
|
|
801
|
-
`,as="https://docs.decentraland.org/creator/worlds/about/",ls="https://governance.decentraland.org";function cs(r){const o=typeof window<"u"?window.location.hostname:"";return`${o.endsWith("decentraland.org")?"https://decentraland.org":o.endsWith("decentraland.today")?"https://decentraland.today":"https://decentraland.zone"}/marketplace/names/browse?search=${encodeURIComponent(r)}`}function ds({onBack:r}){Ne({title:n("seo.names.title"),description:n("seo.names.description")});const{session:o,signIn:l}=Me(),{data:x}=Pe(),h=x?We(B,x):null,[c,p]=w.useState(""),[d,a]=w.useState("idle"),[f,g]=w.useState(!1),u=w.useRef(null),[v,j]=w.useState(void 0);w.useLayoutEffect(()=>{u.current&&j(u.current.offsetWidth)},[c]),w.useEffect(()=>{if(!Ee(c).ok){a(c.length===0?"idle":"invalid");return}a("checking");const E=new AbortController,M=setTimeout(()=>{(async()=>{try{const S=await Yt(c,{signal:E.signal});a(S)}catch(S){if((S==null?void 0:S.name)==="AbortError")return;a("error")}})()},400);return()=>{clearTimeout(M),E.abort()}},[c]);const m=Ee(c),b=m.ok&&(d==="available"||d==="error");function $(){if(b){if(!o){l();return}g(!0)}}const C=e.jsxs(e.Fragment,{children:[n("names.claim"),h!=null?e.jsxs(Yn,{children:[e.jsx(A,{}),fe(h)]}):null]});return e.jsxs(In,{"data-testid":"names-page",children:[e.jsxs(An,{"aria-label":n("names.breadcrumbAria"),children:[e.jsx(Mn,{onClick:r,children:n("names.breadcrumbCollectibles")}),e.jsx("span",{"aria-hidden":!0,children:">"}),e.jsx(Nn,{children:n("names.breadcrumbCurrent")})]}),e.jsxs(Pn,{children:[e.jsxs(Wn,{children:[e.jsxs(Bn,{children:[e.jsx(Fn,{children:n("names.heroTitle")}),e.jsx(Ln,{children:n("names.heroSubtitle")})]}),e.jsxs(Un,{children:[e.jsxs(Hn,{children:[e.jsxs(On,{invalid:d==="taken",children:[e.jsxs(Vn,{children:[e.jsx(Zn,{"aria-hidden":!0,children:"@"}),e.jsx(Jn,{value:c,onChange:k=>p(Kt(k.target.value)),placeholder:n("names.inputPlaceholder"),"aria-label":n("names.inputAria"),autoComplete:"off",spellCheck:!1,maxLength:X,style:{width:v!=null?`${v}px`:void 0}}),e.jsx(Dn,{ref:u,"aria-hidden":!0,children:c||n("names.inputPlaceholder")}),e.jsx(Kn,{children:n("names.suffix")})]}),c.length>0?e.jsxs(Qn,{"aria-hidden":!0,children:[c.length,"/",X]}):null,e.jsx(Fe,{onClick:$,disabled:!b,"data-testid":"names-claim",children:C})]}),d==="taken"?e.jsxs(Gn,{role:"status","data-testid":"names-taken",children:[e.jsx(_,{name:"info",size:16,"aria-hidden":!0}),e.jsx("span",{children:n("names.taken")}),e.jsxs(qn,{href:cs(c),target:"_blank",rel:"noopener noreferrer",children:[n("names.takenMakeOffer"),e.jsx(_,{name:"external-link",size:13,"aria-hidden":!0})]})]}):null]}),e.jsx(Xn,{onClick:$,disabled:!b,children:C}),d==="checking"?e.jsx(he,{tone:"muted",role:"status","data-testid":"names-checking",children:n("names.checking")}):d==="error"?e.jsx(he,{tone:"muted",role:"status",children:n("names.checkError")}):d==="invalid"&&!m.ok&&m.reason==="too-short"?e.jsx(he,{tone:"muted",role:"status",children:n("names.tooShort",{min:Be})}):null,e.jsx(os,{role:"status","aria-live":"polite",children:d==="available"?n("names.available",{name:c}):""})]})]}),e.jsxs(es,{children:[e.jsxs(ts,{children:[e.jsx(ns,{children:n("names.whyTitle")}),e.jsx(ss,{children:n("names.whyIntro")})]}),e.jsxs(rs,{children:[e.jsxs(q,{children:[e.jsx(V,{src:_n,alt:""}),e.jsxs(Z,{children:[e.jsx(J,{children:n("names.why1Title")}),e.jsx(K,{children:n("names.why1")})]})]}),e.jsxs(q,{children:[e.jsx(V,{src:Tn,alt:""}),e.jsxs(Z,{children:[e.jsx(J,{children:n("names.why2Title")}),e.jsxs(K,{children:[n("names.why2")," ",e.jsx(is,{children:n("names.why2Address")})]}),e.jsxs(Ie,{href:as,target:"_blank",rel:"noopener noreferrer",children:[n("names.learnMore"),e.jsx(_,{name:"external-link","aria-hidden":!0})]})]})]}),e.jsxs(q,{children:[e.jsx(V,{src:Rn,alt:""}),e.jsxs(Z,{children:[e.jsx(J,{children:n("names.why3Title")}),e.jsx(K,{children:n("names.why3")})]})]}),e.jsxs(q,{children:[e.jsx(V,{src:zn,alt:""}),e.jsxs(Z,{children:[e.jsx(J,{children:n("names.why4Title")}),e.jsx(K,{children:n("names.why4")}),e.jsxs(Ie,{href:ls,target:"_blank",rel:"noopener noreferrer",children:[n("names.learnMore"),e.jsx(_,{name:"external-link","aria-hidden":!0})]})]})]})]})]})]}),f?e.jsx(Sn,{name:c,priceCredits:h,onClose:()=>g(!1)}):null]})}const ps="data:image/svg+xml,%3csvg%20width='101'%20height='101'%20viewBox='0%200%20101%20101'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M42.4493%2040.9855L30.7394%2052.6954'%20stroke='%23FF5A57'%20stroke-width='3.15625'%20stroke-linecap='round'/%3e%3cpath%20d='M30.7391%2040.9855L42.449%2052.6954'%20stroke='%23FF5A57'%20stroke-width='3.15625'%20stroke-linecap='round'/%3e%3cpath%20d='M36.2621%2071.0604C29.6047%2071.0604%2023.9709%2068.7542%2019.3608%2064.1416C14.7507%2059.5291%2012.4445%2053.8953%2012.442%2047.2404C12.4396%2040.5854%2014.7459%2034.9516%2019.3608%2030.3391C23.9758%2025.7266%2029.6096%2023.4203%2036.2621%2023.4203C42.9146%2023.4203%2048.5496%2025.7266%2053.167%2030.3391C57.7844%2034.9516%2060.0895%2040.5854%2060.0822%2047.2404C60.0822%2049.9277%2059.6546%2052.4624%2058.7995%2054.8445C57.9445%2057.2265%2056.784%2059.3336%2055.3181%2061.1659L75.84%2081.6878C76.5119%2082.3597%2076.8478%2083.2148%2076.8478%2084.2531C76.8478%2085.2914%2076.5119%2086.1465%2075.84%2086.8183C75.1682%2087.4902%2074.3131%2087.8261%2073.2748%2087.8261C72.2365%2087.8261%2071.3814%2087.4902%2070.7096%2086.8183L50.1877%2066.2964C48.3554%2067.7623%2046.2482%2068.9227%2043.8662%2069.7778C41.4842%2070.6329%2038.9495%2071.0604%2036.2621%2071.0604ZM36.2621%2063.7312C40.8429%2063.7312%2044.7372%2062.1285%2047.9449%2058.9232C51.1527%2055.7179%2052.7554%2051.8236%2052.7529%2047.2404C52.7505%2042.6571%2051.1478%2038.7641%2047.9449%2035.5612C44.742%2032.3583%2040.8478%2030.7544%2036.2621%2030.7495C31.6764%2030.7447%2027.7834%2032.3485%2024.5829%2035.5612C21.3825%2038.7739%2019.7786%2042.6669%2019.7713%2047.2404C19.764%2051.8138%2021.3678%2055.7081%2024.5829%2058.9232C27.798%2062.1383%2031.6911%2063.7409%2036.2621%2063.7312Z'%20fill='url(%23paint0_linear_search_empty)'/%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_search_empty'%20x1='10.4127'%20y1='55.6273'%20x2='124.009'%20y2='44.925'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23FF2D55'/%3e%3cstop%20offset='1'%20stop-color='%23FFBC5B'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e",xe=48,hs=["all","on_sale","not_for_sale"];function Is(){const[r]=Je(),o=Ae(),l=(r.get("q")??"").trim().toLowerCase(),x=(r.get("q")??"").trim();Ne({title:x?n("seo.collectibles.searchTitle",{query:x}):n("seo.collectibles.title"),description:n("seo.collectibles.description")});const h=w.useMemo(()=>({category:l?"all":"wearable",status:"on_sale",subCategory:null,rarities:[],priceMin:"",priceMax:"",smart:!1,sort:"newest"}),[l]),[c,p]=Ke(h),{subCategory:d,rarities:a,priceMin:f,priceMax:g,smart:u,sort:v}=c,j=c.category,m=hs.includes(c.status)?c.status:"on_sale",[b,$]=w.useState(!1);w.useEffect(()=>{if(!b)return;const i=O=>{O.key==="Escape"&&$(!1)};document.addEventListener("keydown",i);const I=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.removeEventListener("keydown",i),document.body.style.overflow=I}},[b]);const C=m==="on_sale",k=f&&!Number.isNaN(Number(f))?Number(f):void 0,E=g&&!Number.isNaN(Number(g))?Number(g):void 0,M=lt(),S=d?At[d]:void 0,N=(Se.find(i=>i.key===v)??Se[0]).server,F={category:j,rarities:a.length?a:void 0,wearableCategories:S,minPriceCredits:k,maxPriceCredits:E,search:l||void 0,sortBy:N,isSmart:u||void 0,onSale:!0,listingType:M?void 0:"primary"},L={category:j,rarities:a.length?a:void 0,wearableCategories:S,search:l||void 0,sortBy:N,isWearableSmart:u||void 0,isOnSale:m==="not_for_sale"?!1:void 0},{items:z,total:y,isLoading:T,isPlaceholderData:R,error:ge,hasNextPage:Le,isFetchingNextPage:be,isFetchNextPageError:Ue,fetchNextPage:He}=Nt(C?["shop-items",F]:["catalog-items",L],i=>C?dt({...F,first:xe,skip:i}):pt({...L,first:xe,skip:i}),{enabled:j!=="names"}),U=y,{data:ye,isError:Oe,isPending:De}=Pe(),Ge=i=>ye&&i.manaWei?We(i.manaWei,ye):null,qe=C&&De&&z.some(i=>i.source==="legacy"),we=T||R||qe,Ve=T?15:Math.min(Math.max(z.length,1),xe),je=w.useRef(null);w.useEffect(()=>{T||R||!l||je.current===l||(je.current=l,Q("Shop Searched",{query:l,result_count:U}))},[l,T,R,U]);const H=w.useRef("__init__");w.useEffect(()=>{if(T||R)return;const i=JSON.stringify({category:j,subCategory:d,rarities:a,min:k,max:E,sort:v,status:m,smart:u});if(H.current==="__init__"||H.current===i){H.current=i;return}H.current=i,Q("Shop Applied Filter",{filters:{category:j,sub_category:d,rarities:a,min_price_credits:k??null,max_price_credits:E??null,status:m,smart:u,sort:v},result_count:U})},[j,d,a,k,E,v,m,u,T,R,U]);function ve(i){p({category:i,subCategory:null})}function $e(i){p({status:i})}function Ce(i){p({rarities:a.includes(i)?a.filter(I=>I!==i):[...a,i]})}function Ze(){p(h)}const P=[];(k!=null||E!=null)&&P.push({key:"price",label:n("filter.price"),onRemove:()=>{p({priceMin:"",priceMax:""})}});for(const i of zt)a.includes(i)&&P.push({key:`rarity-${i}`,label:ct(i),onRemove:()=>Ce(i)});return u&&P.push({key:"smart",label:n("filter.smart"),onRemove:()=>p({smart:!1})}),m!=="on_sale"&&P.push({key:"status",label:m==="all"?n("filter.statusAll"):n("filter.notForSale"),onRemove:()=>$e("on_sale")}),e.jsxs(ht,{"data-testid":"browse",children:[j!=="names"&&e.jsxs(e.Fragment,{children:[b?e.jsx(xt,{onClick:()=>$(!1),"aria-hidden":!0}):null,e.jsxs(ft,{"data-open":b||void 0,"data-testid":"browse-sidebar",children:[e.jsxs(mt,{children:[e.jsx(ut,{children:n("assets.filters")}),e.jsx(gt,{onClick:()=>$(!1),"aria-label":n("assets.closeFilters"),children:"✕"})]}),e.jsx(bt,{children:e.jsx(yt,{category:j,subCategory:d,onCategory:ve,onSub:i=>p({subCategory:i}),priceMin:f,priceMax:g,onPriceMin:i=>p({priceMin:i}),onPriceMax:i=>p({priceMax:i}),rarities:a,onToggleRarity:Ce,status:m,onStatus:$e,smart:u,onSmart:i=>p({smart:i})})}),e.jsx(wt,{children:e.jsx(jt,{type:"button",onClick:()=>$(!1),children:n("assets.showItems")})})]})]}),e.jsx(vt,{children:j==="names"?e.jsx(ds,{onBack:()=>ve("wearable")}):e.jsxs(e.Fragment,{children:[e.jsx(It,{sort:v,onSort:i=>p({sort:i}),total:y,loading:T||R,query:l,onOpenFilters:()=>$(!0),chips:P,onClearChips:Ze}),Oe&&C&&z.some(i=>i.source==="legacy")?e.jsx($t,{"data-variant":"warn",children:n("assets.marketUnavailable")}):null,ge?e.jsx(Pt,{message:n("assets.loadError"),testId:"browse-error"}):null,!we&&z.length===0&&!ge?e.jsxs(Ct,{"data-testid":"browse-empty",children:[e.jsx(kt,{src:ps,alt:""}),e.jsxs(St,{children:[e.jsx(Et,{children:n("assets.empty.title")}),e.jsx(_t,{children:x?e.jsxs(e.Fragment,{children:[n("assets.empty.searchBefore"),e.jsx("b",{children:x}),n("assets.empty.searchAfter")]}):n("assets.empty.filters")})]}),e.jsx(Tt,{children:e.jsx(Rt,{type:"button",onClick:()=>o("/overview"),children:n("assets.empty.cta")})})]}):e.jsxs(e.Fragment,{children:[e.jsx(Zt,{"data-testid":"grid",children:we?e.jsx(ke,{count:Ve}):e.jsxs(e.Fragment,{children:[z.map(i=>{if(!C)return e.jsx(D,{item:i,mode:"view"},G(i));const I=i;if(I.source!=="legacy")return e.jsx(D,{item:i},G(i));const O=Ge(I);return O==null?e.jsx(D,{item:i,mode:"view"},G(i)):e.jsx(D,{item:{...I,priceCredits:O}},G(i))}),be?e.jsx(ke,{count:6}):null]})}),e.jsx(Mt,{hasNextPage:Le,isFetching:be,isError:Ue,onLoadMore:()=>void He()})]})]})})]})}export{Is as Assets};
|
|
801
|
+
`,as="https://docs.decentraland.org/creator/worlds/about/",ls="https://governance.decentraland.org";function cs(i){const o=typeof window<"u"?window.location.hostname:"";return`${o.endsWith("decentraland.org")?"https://decentraland.org":o.endsWith("decentraland.today")?"https://decentraland.today":"https://decentraland.zone"}/marketplace/names/browse?search=${encodeURIComponent(i)}`}function ds({onBack:i}){Ne({title:n("seo.names.title"),description:n("seo.names.description")});const{session:o,signIn:l}=Me(),{data:x}=Pe(),h=x?We(B,x):null,[c,p]=w.useState(""),[d,a]=w.useState("idle"),[m,g]=w.useState(!1),u=w.useRef(null),[v,j]=w.useState(void 0);w.useLayoutEffect(()=>{u.current&&j(u.current.offsetWidth)},[c]),w.useEffect(()=>{if(!Ee(c).ok){a(c.length===0?"idle":"invalid");return}a("checking");const E=new AbortController,M=setTimeout(()=>{(async()=>{try{const S=await Yt(c,{signal:E.signal});a(S)}catch(S){if((S==null?void 0:S.name)==="AbortError")return;a("error")}})()},400);return()=>{clearTimeout(M),E.abort()}},[c]);const f=Ee(c),b=f.ok&&(d==="available"||d==="error");function $(){if(b){if(!o){l();return}g(!0)}}const C=e.jsxs(e.Fragment,{children:[n("names.claim"),h!=null?e.jsxs(Yn,{children:[e.jsx(A,{}),me(h)]}):null]});return e.jsxs(In,{"data-testid":"names-page",children:[e.jsxs(An,{"aria-label":n("names.breadcrumbAria"),children:[e.jsx(Mn,{onClick:i,children:n("names.breadcrumbCollectibles")}),e.jsx("span",{"aria-hidden":!0,children:">"}),e.jsx(Nn,{children:n("names.breadcrumbCurrent")})]}),e.jsxs(Pn,{children:[e.jsxs(Wn,{children:[e.jsxs(Bn,{children:[e.jsx(Fn,{children:n("names.heroTitle")}),e.jsx(Ln,{children:n("names.heroSubtitle")})]}),e.jsxs(Un,{children:[e.jsxs(Hn,{children:[e.jsxs(On,{invalid:d==="taken",children:[e.jsxs(Vn,{children:[e.jsx(Zn,{"aria-hidden":!0,children:"@"}),e.jsx(Jn,{value:c,onChange:k=>p(Kt(k.target.value)),placeholder:n("names.inputPlaceholder"),"aria-label":n("names.inputAria"),autoComplete:"off",spellCheck:!1,maxLength:X,style:{width:v!=null?`${v}px`:void 0}}),e.jsx(Dn,{ref:u,"aria-hidden":!0,children:c||n("names.inputPlaceholder")}),e.jsx(Kn,{children:n("names.suffix")})]}),c.length>0?e.jsxs(Qn,{"aria-hidden":!0,children:[c.length,"/",X]}):null,e.jsx(Fe,{onClick:$,disabled:!b,"data-testid":"names-claim",children:C})]}),d==="taken"?e.jsxs(Gn,{role:"status","data-testid":"names-taken",children:[e.jsx(_,{name:"info",size:16,"aria-hidden":!0}),e.jsx("span",{children:n("names.taken")}),e.jsxs(qn,{href:cs(c),target:"_blank",rel:"noopener noreferrer",children:[n("names.takenMakeOffer"),e.jsx(_,{name:"external-link",size:13,"aria-hidden":!0})]})]}):null]}),e.jsx(Xn,{onClick:$,disabled:!b,children:C}),d==="checking"?e.jsx(he,{tone:"muted",role:"status","data-testid":"names-checking",children:n("names.checking")}):d==="error"?e.jsx(he,{tone:"muted",role:"status",children:n("names.checkError")}):d==="invalid"&&!f.ok&&f.reason==="too-short"?e.jsx(he,{tone:"muted",role:"status",children:n("names.tooShort",{min:Be})}):null,e.jsx(os,{role:"status","aria-live":"polite",children:d==="available"?n("names.available",{name:c}):""})]})]}),e.jsxs(es,{children:[e.jsxs(ts,{children:[e.jsx(ns,{children:n("names.whyTitle")}),e.jsx(ss,{children:n("names.whyIntro")})]}),e.jsxs(is,{children:[e.jsxs(q,{children:[e.jsx(V,{src:_n,alt:""}),e.jsxs(Z,{children:[e.jsx(J,{children:n("names.why1Title")}),e.jsx(K,{children:n("names.why1")})]})]}),e.jsxs(q,{children:[e.jsx(V,{src:Tn,alt:""}),e.jsxs(Z,{children:[e.jsx(J,{children:n("names.why2Title")}),e.jsxs(K,{children:[n("names.why2")," ",e.jsx(rs,{children:n("names.why2Address")})]}),e.jsxs(Ie,{href:as,target:"_blank",rel:"noopener noreferrer",children:[n("names.learnMore"),e.jsx(_,{name:"external-link","aria-hidden":!0})]})]})]}),e.jsxs(q,{children:[e.jsx(V,{src:Rn,alt:""}),e.jsxs(Z,{children:[e.jsx(J,{children:n("names.why3Title")}),e.jsx(K,{children:n("names.why3")})]})]}),e.jsxs(q,{children:[e.jsx(V,{src:zn,alt:""}),e.jsxs(Z,{children:[e.jsx(J,{children:n("names.why4Title")}),e.jsx(K,{children:n("names.why4")}),e.jsxs(Ie,{href:ls,target:"_blank",rel:"noopener noreferrer",children:[n("names.learnMore"),e.jsx(_,{name:"external-link","aria-hidden":!0})]})]})]})]})]})]}),m?e.jsx(Sn,{name:c,priceCredits:h,onClose:()=>g(!1)}):null]})}const ps="data:image/svg+xml,%3csvg%20width='101'%20height='101'%20viewBox='0%200%20101%20101'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M42.4493%2040.9855L30.7394%2052.6954'%20stroke='%23FF5A57'%20stroke-width='3.15625'%20stroke-linecap='round'/%3e%3cpath%20d='M30.7391%2040.9855L42.449%2052.6954'%20stroke='%23FF5A57'%20stroke-width='3.15625'%20stroke-linecap='round'/%3e%3cpath%20d='M36.2621%2071.0604C29.6047%2071.0604%2023.9709%2068.7542%2019.3608%2064.1416C14.7507%2059.5291%2012.4445%2053.8953%2012.442%2047.2404C12.4396%2040.5854%2014.7459%2034.9516%2019.3608%2030.3391C23.9758%2025.7266%2029.6096%2023.4203%2036.2621%2023.4203C42.9146%2023.4203%2048.5496%2025.7266%2053.167%2030.3391C57.7844%2034.9516%2060.0895%2040.5854%2060.0822%2047.2404C60.0822%2049.9277%2059.6546%2052.4624%2058.7995%2054.8445C57.9445%2057.2265%2056.784%2059.3336%2055.3181%2061.1659L75.84%2081.6878C76.5119%2082.3597%2076.8478%2083.2148%2076.8478%2084.2531C76.8478%2085.2914%2076.5119%2086.1465%2075.84%2086.8183C75.1682%2087.4902%2074.3131%2087.8261%2073.2748%2087.8261C72.2365%2087.8261%2071.3814%2087.4902%2070.7096%2086.8183L50.1877%2066.2964C48.3554%2067.7623%2046.2482%2068.9227%2043.8662%2069.7778C41.4842%2070.6329%2038.9495%2071.0604%2036.2621%2071.0604ZM36.2621%2063.7312C40.8429%2063.7312%2044.7372%2062.1285%2047.9449%2058.9232C51.1527%2055.7179%2052.7554%2051.8236%2052.7529%2047.2404C52.7505%2042.6571%2051.1478%2038.7641%2047.9449%2035.5612C44.742%2032.3583%2040.8478%2030.7544%2036.2621%2030.7495C31.6764%2030.7447%2027.7834%2032.3485%2024.5829%2035.5612C21.3825%2038.7739%2019.7786%2042.6669%2019.7713%2047.2404C19.764%2051.8138%2021.3678%2055.7081%2024.5829%2058.9232C27.798%2062.1383%2031.6911%2063.7409%2036.2621%2063.7312Z'%20fill='url(%23paint0_linear_search_empty)'/%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_search_empty'%20x1='10.4127'%20y1='55.6273'%20x2='124.009'%20y2='44.925'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23FF2D55'/%3e%3cstop%20offset='1'%20stop-color='%23FFBC5B'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e",xe=48,hs=["all","on_sale","not_for_sale"];function Is(){const[i]=Je(),o=Ae(),l=(i.get("q")??"").trim().toLowerCase(),x=(i.get("q")??"").trim();Ne({title:x?n("seo.collectibles.searchTitle",{query:x}):n("seo.collectibles.title"),description:n("seo.collectibles.description")});const h=w.useMemo(()=>({category:l?"all":"wearable",status:"on_sale",subCategory:null,rarities:[],priceMin:"",priceMax:"",smart:!1,sort:"newest"}),[l]),[c,p]=Ke(h),{subCategory:d,rarities:a,priceMin:m,priceMax:g,smart:u,sort:v}=c,j=c.category,f=hs.includes(c.status)?c.status:"on_sale",[b,$]=w.useState(!1);w.useEffect(()=>{if(!b)return;const r=O=>{O.key==="Escape"&&$(!1)};document.addEventListener("keydown",r);const I=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.removeEventListener("keydown",r),document.body.style.overflow=I}},[b]);const C=f==="on_sale",k=m&&!Number.isNaN(Number(m))?Number(m):void 0,E=g&&!Number.isNaN(Number(g))?Number(g):void 0,M=lt(),S=d?At[d]:void 0,N=(Se.find(r=>r.key===v)??Se[0]).server,F={category:j,rarities:a.length?a:void 0,wearableCategories:S,minPriceCredits:k,maxPriceCredits:E,search:l||void 0,sortBy:N,isSmart:u||void 0,onSale:!0,listingType:M?void 0:"primary"},L={category:j,rarities:a.length?a:void 0,wearableCategories:S,search:l||void 0,sortBy:N,isWearableSmart:u||void 0,isOnSale:f==="not_for_sale"?!1:void 0},{items:z,total:y,isLoading:T,isPlaceholderData:R,error:ge,hasNextPage:Le,isFetchingNextPage:be,isFetchNextPageError:Ue,fetchNextPage:He}=Nt(C?["shop-items",F]:["catalog-items",L],r=>C?dt({...F,first:xe,skip:r}):pt({...L,first:xe,skip:r}),{enabled:j!=="names"}),U=y,{data:ye,isError:Oe,isPending:De}=Pe(),Ge=r=>ye&&r.manaWei?We(r.manaWei,ye):null,qe=C&&De&&z.some(r=>r.source==="legacy"),we=T||R||qe,Ve=T?15:Math.min(Math.max(z.length,1),xe),je=w.useRef(null);w.useEffect(()=>{T||R||!l||je.current===l||(je.current=l,Q("Shop Searched",{query:l,result_count:U}))},[l,T,R,U]);const H=w.useRef("__init__");w.useEffect(()=>{if(T||R)return;const r=JSON.stringify({category:j,subCategory:d,rarities:a,min:k,max:E,sort:v,status:f,smart:u});if(H.current==="__init__"||H.current===r){H.current=r;return}H.current=r,Q("Shop Applied Filter",{filters:{category:j,sub_category:d,rarities:a,min_price_credits:k??null,max_price_credits:E??null,status:f,smart:u,sort:v},result_count:U})},[j,d,a,k,E,v,f,u,T,R,U]);function ve(r){p({category:r,subCategory:null})}function $e(r){p({status:r})}function Ce(r){p({rarities:a.includes(r)?a.filter(I=>I!==r):[...a,r]})}function Ze(){p(h)}const P=[];(k!=null||E!=null)&&P.push({key:"price",label:n("filter.price"),onRemove:()=>{p({priceMin:"",priceMax:""})}});for(const r of zt)a.includes(r)&&P.push({key:`rarity-${r}`,label:ct(r),onRemove:()=>Ce(r)});return u&&P.push({key:"smart",label:n("filter.smart"),onRemove:()=>p({smart:!1})}),f!=="on_sale"&&P.push({key:"status",label:f==="all"?n("filter.statusAll"):n("filter.notForSale"),onRemove:()=>$e("on_sale")}),e.jsxs(ht,{"data-testid":"browse",children:[j!=="names"&&e.jsxs(e.Fragment,{children:[b?e.jsx(xt,{onClick:()=>$(!1),"aria-hidden":!0}):null,e.jsxs(mt,{"data-open":b||void 0,"data-testid":"browse-sidebar",children:[e.jsxs(ft,{children:[e.jsx(ut,{children:n("assets.filters")}),e.jsx(gt,{onClick:()=>$(!1),"aria-label":n("assets.closeFilters"),children:"✕"})]}),e.jsx(bt,{children:e.jsx(yt,{category:j,subCategory:d,onCategory:ve,onSub:r=>p({subCategory:r}),priceMin:m,priceMax:g,onPriceMin:r=>p({priceMin:r}),onPriceMax:r=>p({priceMax:r}),rarities:a,onToggleRarity:Ce,status:f,onStatus:$e,smart:u,onSmart:r=>p({smart:r})})}),e.jsx(wt,{children:e.jsx(jt,{type:"button",onClick:()=>$(!1),children:n("assets.showItems")})})]})]}),e.jsx(vt,{children:j==="names"?e.jsx(ds,{onBack:()=>ve("wearable")}):e.jsxs(e.Fragment,{children:[e.jsx(It,{sort:v,onSort:r=>p({sort:r}),total:y,loading:T||R,query:l,onOpenFilters:()=>$(!0),chips:P,onClearChips:Ze}),Oe&&C&&z.some(r=>r.source==="legacy")?e.jsx($t,{"data-variant":"warn",children:n("assets.marketUnavailable")}):null,ge?e.jsx(Pt,{message:n("assets.loadError"),testId:"browse-error"}):null,!we&&z.length===0&&!ge?e.jsxs(Ct,{"data-testid":"browse-empty",children:[e.jsx(kt,{src:ps,alt:""}),e.jsxs(St,{children:[e.jsx(Et,{children:n("assets.empty.title")}),e.jsx(_t,{children:x?e.jsxs(e.Fragment,{children:[n("assets.empty.searchBefore"),e.jsx("b",{children:x}),n("assets.empty.searchAfter")]}):n("assets.empty.filters")})]}),e.jsx(Tt,{children:e.jsx(Rt,{type:"button",onClick:()=>o("/overview"),children:n("assets.empty.cta")})})]}):e.jsxs(e.Fragment,{children:[e.jsx(Zt,{"data-testid":"grid",children:we?e.jsx(ke,{count:Ve}):e.jsxs(e.Fragment,{children:[z.map(r=>{if(!C)return e.jsx(D,{item:r,mode:"view"},G(r));const I=r;if(I.source!=="legacy")return e.jsx(D,{item:r},G(r));const O=Ge(I);return O==null?e.jsx(D,{item:r,mode:"view"},G(r)):e.jsx(D,{item:{...I,priceCredits:O}},G(r))}),be?e.jsx(ke,{count:6}):null]})}),e.jsx(Mt,{hasNextPage:Le,isFetching:be,isError:Ue,onLoadMore:()=>void He()})]})]})})]})}export{Is as Assets};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as $,j as t}from"./react-OEOSdkUk.js";import{R as T,C as ae,a as re,b as le}from"./categories-
|
|
1
|
+
import{r as $,j as t}from"./react-OEOSdkUk.js";import{R as T,C as ae,a as re,b as le}from"./categories-CsBqvArM.js";import{n as c,T as ce}from"./Tooltip-DiQRnF2Q.js";import{t as e,s as o,I as g,b as s,ai as W,C as v}from"./index-9fsiI1dP.js";const de=o.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
gap: 12px;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as i,L as _,r as F}from"./react-OEOSdkUk.js";import{s as n,B as G,t as a,w as D,x as P,b as e,o as W,y as O,I as z,z as B,v as w,A as K,c as H,D as Q,E as A,F as X,G as Z,H as E}from"./index-
|
|
1
|
+
import{j as i,L as _,r as F}from"./react-OEOSdkUk.js";import{s as n,B as G,t as a,w as D,x as P,b as e,o as W,y as O,I as z,z as B,v as w,A as K,c as H,D as Q,E as A,F as X,G as Z,H as E}from"./index-9fsiI1dP.js";import{c as J,d as U,b as V,e as Y,s as tt,a as it}from"./authorizations-Dge9-BPU.js";import{f as et}from"./builder-pl21oKFg.js";import{m as ot}from"./mana-matic-C4e1sNO3.js";import{f as at}from"./errors-i7IRVO4d.js";import"./sentry-B60WY-np.js";import"./dcl-schemas-CmtP3U6y.js";import"./ethers-lk3HAbPB.js";import"./intl-CBcMB1D2.js";import"./sendMetaTransaction-D8u324f6.js";const nt=D`
|
|
2
2
|
to { transform: rotate(360deg); }
|
|
3
3
|
`,st=D`
|
|
4
4
|
to { background-position: -200% 0; }
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as e,L as Se,r as P,e as Zt,d as ea}from"./react-OEOSdkUk.js";import{t as le,s as i,b as a,aD as de,ba as ta,aC as aa,I as H,z as St,ah as Ke,x as sa,S as Q,aj as ot,o as na,q as ia,v as ra,bb as oa,A as ca,bc as da,ak as la,bd as ua,be as ct,bf as ha,bg as pa,y as ga,bh as dt,V as G,bi as lt,bj as xa,F as ae,r as ma,c as ut,bk as fa,C as ya,bl as ht,bm as Be,bn as ba,bo as fe,bp as ye,bq as pt,g as be,f as va,h as Re,br as wa}from"./index-
|
|
1
|
+
import{j as e,L as Se,r as P,e as Zt,d as ea}from"./react-OEOSdkUk.js";import{t as le,s as i,b as a,aD as de,ba as ta,aC as aa,I as H,z as St,ah as Ke,x as sa,S as Q,aj as ot,o as na,q as ia,v as ra,bb as oa,A as ca,bc as da,ak as la,bd as ua,be as ct,bf as ha,bg as pa,y as ga,bh as dt,V as G,bi as lt,bj as xa,F as ae,r as ma,c as ut,bk as fa,C as ya,bl as ht,bm as Be,bn as ba,bo as fe,bp as ye,bq as pt,g as be,f as va,h as Re,br as wa}from"./index-9fsiI1dP.js";import{M as Ca,S as ja,C as ka,H as Sa,a as $a,T as Ma,X as Ta,b as Ia,B as Pa,c as za,d as gt,e as Aa,f as je,P as $t,m as Ea,g as qa,h as Ba,i as Ra,j as Mt,k as ke,L as _a,l as Wa,n as xt,o as mt,W as Fa,p as La,q as Ka,A as Ua,r as Na,s as Qa,t as Ha,u as Oa,v as Va,w as Ga,x as Da,y as Ya,z as Ja,D as Xa,E as Za,F as es,G as ts,I as as,J as ss,K as _e,N as ns,O as is,Q as rs,R as os,U as ft,V as yt,Y as cs,Z as ds,_ as ls}from"./CollectionCarousel-COl6kYhG.js";import{k as us,l as hs,a as ps,n as gs,f as xs,A as ms}from"./authorizations-Dge9-BPU.js";import{g as fs,j as We}from"./buy-AvolTNyl.js";import{b as ys,w as bs,S as bt,G as vs}from"./buy-gasless-CmyKiZii.js";import{u as ws,M as Cs,R as ve,r as js,c as ks,p as vt}from"./useCreditPacks-CKcjDTjk.js";import{i as Ss,a as $s}from"./errors-i7IRVO4d.js";import{E as Ms}from"./ErrorNotice-Cc1oxuPj.js";import"./sentry-B60WY-np.js";import"./dcl-schemas-CmtP3U6y.js";import"./ethers-lk3HAbPB.js";import"./intl-CBcMB1D2.js";import"./sendMetaTransaction-D8u324f6.js";const{colors:se,radius:Ts}=le,Is=i.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
align-items: center;
|
|
4
4
|
justify-content: center;
|
|
@@ -58,7 +58,7 @@ import{j as e,L as Se,r as P,e as Zt,d as ea}from"./react-OEOSdkUk.js";import{t
|
|
|
58
58
|
font-weight: 700;
|
|
59
59
|
color: ${se.text};
|
|
60
60
|
}
|
|
61
|
-
`,qs="https://cdn.decentraland.org/@dcl/shop/0.
|
|
61
|
+
`,qs="https://cdn.decentraland.org/@dcl/shop/0.10.1-31022274185.commit-4782a6d/_assets/buy-error-22UunaPC.png";function Bs(o){const{phase:l,balanceCredits:I,onClose:z}=o,W=l==="processing",D=l==="error"?a("cartCheckout.errorTitle"):l==="nofunds"?a("cartCheckout.titleNoFunds"):l==="choose"?a("buyModal.choosePayment"):a("cartCheckout.titleBuy"),Y=l==="processing";return e.jsxs(Ca,{role:"dialog","aria-modal":"true","aria-label":a("cartCheckout.dialogAria"),children:[e.jsx(ja,{onClick:W?void 0:z,"aria-hidden":!0}),e.jsxs(ka,{"data-tall":Y||void 0,children:[e.jsxs(Sa,{children:[e.jsxs($a,{children:[e.jsx(Ma,{children:D}),!W&&e.jsx(Ta,{onClick:z,"aria-label":a("buyModal.close"),children:e.jsx(Ia,{})})]}),e.jsxs(Pa,{children:[e.jsx(za,{children:l==="nofunds"?a("buyModal.dclBalance"):a("buyModal.myCreditsBalance")}),e.jsx(gt,{}),e.jsx(Aa,{children:de(I)})]})]}),l==="choose"&&e.jsxs(je,{children:[e.jsxs(Es,{children:[e.jsx("span",{children:a("cart.purchaseSummary")}),e.jsxs("strong",{children:[e.jsx(gt,{}),de(o.totalCredits??0)]})]}),e.jsx($t,{options:o.options??[],totalCents:o.totalCents??0,onPay:o.onPay??(()=>{}),rateNote:(()=>{const A=Ea(o.totalCents??0,o.totalManaWei??0n);return A!=null?a("buyModal.manaRate",{mana:A.toLocaleString("en",{maximumFractionDigits:2})}):null})()})]}),l==="processing"&&e.jsx(Rs,{stage:o.stage??"reserving",step:o.step??1,total:o.total??1,isSelfCustody:!!o.isSelfCustody,signatures:o.signatures}),l==="nofunds"&&e.jsx(_s,{lines:o.lines??[],shortfallCredits:o.shortfallCredits??0,packs:o.packs??[],selectedPack:o.selectedPack??"",onSelectPack:o.onSelectPack??(()=>{}),onBuyPacks:o.onBuyPacks??(()=>{}),onCancel:z}),l==="error"&&e.jsxs(je,{children:[e.jsxs(qa,{"data-testid":"buy-error",children:[e.jsx(Ba,{src:qs,alt:"",width:64,height:80}),e.jsxs(Ra,{children:[e.jsx("b",{children:a("cartCheckout.errorHeadline")})," ",o.message??a("cartCheckout.errorBody")]})]}),e.jsxs(Mt,{children:[e.jsx(ke,{"data-variant":"outline",onClick:z,children:a("buyModal.cancel")}),e.jsx(ke,{"data-variant":"purple",onClick:o.onRetry??z,children:a("cartCheckout.tryAgain")})]})]})]})]})}function Rs({stage:o,step:l,total:I,isSelfCustody:z,signatures:W}){const D=o==="reserving",Y=I>0?Math.min(100,Math.round(l/I*100)):0,A=z&&W&&W.total>1,ne=o==="awaiting-signature"?z?A?a("cartCheckout.confirmMultiple",{current:W.current,total:W.total}):a("buyModal.confirmToContinue"):a("buyModal.completingTransaction"):o==="settling"?a("buyModal.completingTransaction"):a("cartCheckout.preparing");return e.jsxs(je,{"data-processing":!0,children:[e.jsx(_a,{src:ta,alt:"",width:61,height:61}),e.jsx(Wa,{children:ne}),D?e.jsxs(Is,{children:[e.jsx(xt,{"aria-hidden":!0,children:e.jsx(mt,{"data-step":!0,style:{width:`${Y}%`}})}),I>1?e.jsxs(Ps,{children:[l,"/",I]}):null]}):e.jsx(xt,{"aria-hidden":!0,children:e.jsx(mt,{})})]})}function _s({lines:o,shortfallCredits:l,packs:I,selectedPack:z,onSelectPack:W,onBuyPacks:D,onCancel:Y}){const A=I.find(n=>n.id===z),ne=o.reduce((n,L)=>n+(L.quantity??1),0);return e.jsxs(je,{children:[e.jsxs(Fa,{"data-testid":"nofunds-warning",children:[e.jsx(La,{}),e.jsxs(Ka,{children:[e.jsx("b",{children:a("buyModal.insufficientFunds")})," ",a("buyModal.warningNeedToBuy")," ",e.jsx("b",{children:a("buyModal.warningCreditsAmount",{count:Math.max(0,l)})})," ",a("buyModal.warningToPurchase",{count:ne})]})]}),e.jsx(zs,{children:o.map(n=>{const L=n.quantity??1;return e.jsxs(Ua,{children:[e.jsx(Na,{children:n.item.thumbnail?e.jsx("img",{src:n.item.thumbnail,alt:""}):null}),e.jsxs(Qa,{children:[e.jsxs("div",{children:[e.jsxs(Ha,{title:n.item.name,children:[n.item.name||a("buyModal.itemFallback"),L>1?e.jsx(As,{children:a("cartCheckout.qty",{count:L})}):null]}),n.item.creator?e.jsx(Oa,{address:n.item.creator}):null]}),e.jsxs(Va,{children:[e.jsx(Ga,{}),e.jsx("span",{children:de(n.priceCredits*L)})]})]})]},n.item.id)})}),e.jsx(Da,{children:I.map(n=>{const L=n.id===z;return e.jsxs(Ya,{"data-testid":"credit-pack","data-on":L||void 0,onClick:()=>W(n.id),children:[e.jsx(Ja,{}),e.jsx(Xa,{children:de(n.credits)}),e.jsxs(Za,{children:["($",n.usd.toFixed(2),")"]})]},n.id)})}),e.jsxs(es,{children:[e.jsxs(ts,{children:[e.jsx(as,{}),e.jsx("span",{children:de((A==null?void 0:A.credits)??0)})]}),e.jsxs(ss,{children:["$",((A==null?void 0:A.usd)??0).toFixed(2)]})]}),e.jsxs(Mt,{children:[e.jsx(ke,{"data-variant":"outline",onClick:Y,children:a("buyModal.cancel")}),e.jsx(ke,{"data-variant":"gradient",onClick:D,children:a("buyModal.buy")})]})]})}const{colors:r,gradients:Tt,radius:Z}=le,It="@media (max-width: 1080px)",T="@media (max-width: 880px)",wt=i.div`
|
|
62
62
|
max-width: 1510px;
|
|
63
63
|
margin: 0 auto;
|
|
64
64
|
/* Grows into the page's leftover height and passes it down to Upsell, so the white cross-sell band ends at
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{ad as N,ae as w,af as o,ag as n,ah as D,w as M}from"./index-
|
|
1
|
+
import{ad as N,ae as w,af as o,ag as n,ah as D,w as M}from"./index-9fsiI1dP.js";import{r as U,j as g}from"./react-OEOSdkUk.js";import{g as z,a as E,c as I,b as F}from"./clsx-WwvpwSg0.js";import{s as v}from"./styled-0dpSKx8k.js";function K(r){return z("MuiCircularProgress",r)}E("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const W=["className","color","disableShrink","size","style","thickness","value","variant"];let l=r=>r,P,b,S,$;const t=44,B=M(P||(P=l`
|
|
2
2
|
0% {
|
|
3
3
|
transform: rotate(0deg);
|
|
4
4
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as e,r as h,a as J,e as X}from"./react-OEOSdkUk.js";import{t as b,s,bs as ee,Y as te,D as T,bt as ae,bu as oe,I as ie,b as a,c as re,F as se,v as ne,x as ce,C as le,am as z,an as de,bv as pe,bw as xe}from"./index-
|
|
1
|
+
import{j as e,r as h,a as J,e as X}from"./react-OEOSdkUk.js";import{t as b,s,bs as ee,Y as te,D as T,bt as ae,bu as oe,I as ie,b as a,c as re,F as se,v as ne,x as ce,C as le,am as z,an as de,bv as pe,bw as xe}from"./index-9fsiI1dP.js";import{E as me}from"./ErrorNotice-Cc1oxuPj.js";import{d as he,P as ue,C as ge,a as be,b as fe,A as ve}from"./collectionPage.styles-BdCBFsGv.js";import{S as L,C as je,F as ye,c as we,P as Ce,d as $e,H as ke,e as Ne}from"./categories-CsBqvArM.js";import{L as Pe}from"./LoadMore-HeeBSVXn.js";import{u as Se}from"./useInfiniteGrid-CRukdsdk.js";import{G as Ae}from"./grid.styles-GkZpb-YA.js";import"./sentry-B60WY-np.js";import"./dcl-schemas-CmtP3U6y.js";import"./ethers-lk3HAbPB.js";import"./intl-CBcMB1D2.js";const Me=s.section`
|
|
2
2
|
position: relative;
|
|
3
3
|
border-radius: ${b.radius.card};
|
|
4
4
|
overflow: hidden;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as t,r as v}from"./react-OEOSdkUk.js";import{s as e,t as o,b as f,z as k,aD as j,bV as C,C as G,w as Y,I as Q,F as X,g as W,h as B,f as Z,ap as q,a5 as J,bZ as F,an as ee}from"./index-
|
|
1
|
+
import{j as t,r as v}from"./react-OEOSdkUk.js";import{s as e,t as o,b as f,z as k,aD as j,bV as C,C as G,w as Y,I as Q,F as X,g as W,h as B,f as Z,ap as q,a5 as J,bZ as F,an as ee}from"./index-9fsiI1dP.js";import{s as te,f as U,A as H,g as D,r as ne,m as ae,i as ie,j as oe}from"./authorizations-Dge9-BPU.js";import{i as se}from"./errors-i7IRVO4d.js";import{E as re}from"./ErrorNotice-Cc1oxuPj.js";import{l as ce,m as de,n as le}from"./buy-AvolTNyl.js";import{s as pe,M as he,E as ue}from"./sendMetaTransaction-D8u324f6.js";import{I as xe,C as ge}from"./ethers-lk3HAbPB.js";const R="shop:resume_after_signin",fe=900*1e3;function ct(a){try{sessionStorage.setItem(R,JSON.stringify({...a,at:Date.now()}))}catch{}}function dt(a){let n;try{n=sessionStorage.getItem(R)}catch{return null}if(!n)return null;try{sessionStorage.removeItem(R)}catch{}let i;try{i=JSON.parse(n)}catch{return null}return!i||i.type!==a||typeof i.at!="number"||Date.now()-i.at>fe?null:i.type==="cart-checkout"?{type:"cart-checkout"}:{type:"item-buy",path:i.path}}function me(a,n){return(a+n-1n)/n}function be(a,n,i){return a<=0||n<=0?0n:a>=n?i:me(i*BigInt(a),BigInt(n))}function lt(a){var b,y,w;const n=Number.isFinite(a.priceCents)?Math.max(0,Math.trunc(a.priceCents)):0,i=Number.isFinite(a.balanceCents)?Math.max(0,Math.trunc(a.balanceCents)):0,s=a.priceManaWei>0n?a.priceManaWei:0n,l=a.manaBalanceWei>0n?a.manaBalanceWei:0n;if(n<=0)return{options:[],preferred:null,manaShortfall:null};const c=[];if(i>=n&&c.push({method:"credits",creditsCents:n,manaWei:0n}),s>0n&&i>0&&i<n){const d=n-i,m=be(d,n,s);l>=m&&c.push({method:"combined",creditsCents:i,manaWei:m})}s>0n&&l>=s&&c.push({method:"mana",creditsCents:0,manaWei:s});const p=((b=c.find(d=>d.method==="credits"))==null?void 0:b.method)??((y=c.find(d=>d.method==="combined"))==null?void 0:y.method)??((w=c.find(d=>d.method==="mana"))==null?void 0:w.method)??null,u=!c.some(d=>d.method==="mana"||d.method==="combined")&&s>0n&&l>0n?{manaWei:l,manaCents:ye(l,n,s),priceCents:n}:null;return{options:c,preferred:p,manaShortfall:u}}function ye(a,n,i){return Number(a*BigInt(n)/i)}function pt(a,n){let i=Number.isFinite(n)?Math.max(0,Math.trunc(n)):0;return a.map(s=>{const l=Number.isFinite(s)?Math.max(0,Math.trunc(s)):0,c=Math.min(l,i);return i-=c,c})}function z(a){return Number.isFinite(a)?Math.max(0,a)/10:0}function ht(a,n){return a.options.find(i=>i.method===n)??null}function ut(a,n){if(!Number.isFinite(a)||a<=0||n<=0n)return null;const i=a/10;return Number(n)/1e18/i}const T="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",we=e.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
gap: 12px;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{e as de,j as e,L as Fe,a as Le,u as Me,r as L}from"./react-OEOSdkUk.js";import{u as Ae}from"./useUrlFilters-DABDXRpV.js";import{t as he,J as Ie,L as Z,K as X,s,bF as Re,aC as _e,bG as ze,b as o,bH as Be,bI as ee,B as Te,ah as me,Y as pe,bs as We,o as De,D as ue,bz as Ge,bt as Ke,bu as Oe,I as te,c as Ue,x as He,v as qe,ai as Ve,ak as Je,al as Ye,am as M,an as oe,bJ as re,bK as Qe}from"./index-
|
|
1
|
+
import{e as de,j as e,L as Fe,a as Le,u as Me,r as L}from"./react-OEOSdkUk.js";import{u as Ae}from"./useUrlFilters-DABDXRpV.js";import{t as he,J as Ie,L as Z,K as X,s,bF as Re,aC as _e,bG as ze,b as o,bH as Be,bI as ee,B as Te,ah as me,Y as pe,bs as We,o as De,D as ue,bz as Ge,bt as Ke,bu as Oe,I as te,c as Ue,x as He,v as qe,ai as Ve,ak as Je,al as Ye,am as M,an as oe,bJ as re,bK as Qe}from"./index-9fsiI1dP.js";import{d as Ze,P as Xe,C as et,a as tt,b as ot,A as rt,c as it,e as st}from"./collectionPage.styles-BdCBFsGv.js";import{g as at,h as nt,i as lt,j as ct,k as dt,C as ht,l as mt,o as pt,m as ut,n as xt,M as gt,E as ft,p as bt,q as wt,r as vt,s as yt,t as jt}from"./Assets.styles-BYK-8Oxq.js";import{S as ie,R as Ct,F as kt,e as $t}from"./categories-CsBqvArM.js";import{L as se}from"./LoadMore-HeeBSVXn.js";import{u as ae}from"./useInfiniteGrid-CRukdsdk.js";import{E as _}from"./ErrorNotice-Cc1oxuPj.js";import{G as ne}from"./grid.styles-GkZpb-YA.js";import"./sentry-B60WY-np.js";import"./dcl-schemas-CmtP3U6y.js";import"./ethers-lk3HAbPB.js";import"./intl-CBcMB1D2.js";import"./Tooltip-DiQRnF2Q.js";function St(r){const{gridLoading:i,gridError:a,gridCount:l,baselinePending:c,baselineError:d,baselineCount:g}=r;return i?"skeletons":a?"error":l>0?"items":c?"skeletons":d?"error":g===0?"no-creations":"filters"}const{colors:b,radius:xe,media:Nt}=he,Et=s.article`
|
|
2
2
|
height: 300px;
|
|
3
3
|
background: ${b.bg};
|
|
4
4
|
border-radius: ${xe.card};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as r}from"./react-OEOSdkUk.js";import{I as i}from"./index-
|
|
1
|
+
import{j as r}from"./react-OEOSdkUk.js";import{I as i}from"./index-9fsiI1dP.js";function a({message:e,className:o,testId:t}){return e?r.jsxs("p",{className:o?`error-notice ${o}`:"error-notice","data-testid":t,role:"alert",children:[r.jsx(i,{name:"alert",className:"error-notice__ico",size:18}),r.jsx("span",{className:"error-notice__msg",children:e})]}):null}export{a as E};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{C as l,E as w,b as E,S as A,d as k,O as U,N as P,g as f,B as x,e as N,i as I,p as L}from"./W3MFrameProviderSingleton-
|
|
1
|
+
import{C as l,E as w,b as E,S as A,d as k,O as U,N as P,g as f,B as x,e as N,i as I,p as L}from"./W3MFrameProviderSingleton-KqjOf7qE.js";import{g as T,a as W,f as b,b as _,c as v}from"./index-CNxC2eH9.js";const D=0,C={paymentAsset:null,amount:null,tokenAmount:0,priceLoading:!1,error:null,exchanges:[],isLoading:!1,currentPayment:void 0,isPaymentInProgress:!1,paymentId:"",assets:[]},e=L(C),m={state:e,subscribe(t){return I(e,()=>t(e))},subscribeKey(t,n){return N(e,t,n)},resetState(){Object.assign(e,{...C})},async getAssetsForNetwork(t){const n=v(t),s=await m.getAssetsImageAndPrice(n),r=n.map(a=>{var c,o,p,y;const u=a.asset==="native"?f():`${a.network}:${a.asset}`,i=s.find(S=>{var g,d,h;return((h=(d=(g=S.fungibles)==null?void 0:g[0])==null?void 0:d.address)==null?void 0:h.toLowerCase())===u.toLowerCase()});return{...a,price:((o=(c=i==null?void 0:i.fungibles)==null?void 0:c[0])==null?void 0:o.price)||1,metadata:{...a.metadata,iconUrl:(y=(p=i==null?void 0:i.fungibles)==null?void 0:p[0])==null?void 0:y.iconUrl}}});return e.assets=r,r},async getAssetsImageAndPrice(t){const n=t.map(r=>r.asset==="native"?f():`${r.network}:${r.asset}`);return await Promise.all(n.map(r=>x.fetchTokenPrice({addresses:[r]})))},getTokenAmount(){var s;if(!((s=e==null?void 0:e.paymentAsset)!=null&&s.price))throw new Error("Cannot get token price");const t=P.bigNumber(e.amount??0).round(8),n=P.bigNumber(e.paymentAsset.price).round(8);return t.div(n).round(8).toNumber()},setAmount(t){var n;e.amount=t,(n=e.paymentAsset)!=null&&n.price&&(e.tokenAmount=m.getTokenAmount())},setPaymentAsset(t){e.paymentAsset=t},isPayWithExchangeEnabled(){var t;return(t=U.state.remoteFeatures)==null?void 0:t.payWithExchange},isPayWithExchangeSupported(){return m.isPayWithExchangeEnabled()&&l.state.activeCaipNetwork&&k.PAY_WITH_EXCHANGE_SUPPORTED_CHAIN_NAMESPACES.includes(l.state.activeCaipNetwork.chainNamespace)},async fetchExchanges(){var t;try{const n=m.isPayWithExchangeSupported();if(!e.paymentAsset||!n){e.exchanges=[],e.isLoading=!1;return}e.isLoading=!0;const s=await _({page:D,asset:b(e.paymentAsset.network,e.paymentAsset.asset),amount:((t=e.amount)==null?void 0:t.toString())??"0"});e.exchanges=s.exchanges.slice(0,2)}catch{throw A.showError("Unable to get exchanges"),new Error("Unable to get exchanges")}finally{e.isLoading=!1}},async getPayUrl(t,n){try{const s=Number(n.amount),r=await W({exchangeId:t,asset:b(n.network,n.asset),amount:s.toString(),recipient:`${n.network}:${n.recipient}`});return w.sendEvent({type:"track",event:"PAY_EXCHANGE_SELECTED",properties:{exchange:{id:t},configuration:{network:n.network,asset:n.asset,recipient:n.recipient,amount:s},currentPayment:{type:"exchange",exchangeId:t},source:"fund-from-exchange",headless:!1}}),r}catch(s){throw s instanceof Error&&s.message.includes("is not supported")?new Error("Asset not supported"):new Error(s.message)}},async handlePayWithExchange(t){var n;try{const s=(n=l.getAccountData())==null?void 0:n.address;if(!s)throw new Error("No account connected");if(!e.paymentAsset)throw new Error("No payment asset selected");const r=E.returnOpenHref("","popupWindow","scrollbar=yes,width=480,height=720");if(!r)throw new Error("Could not create popup window");e.isPaymentInProgress=!0,e.paymentId=crypto.randomUUID(),e.currentPayment={type:"exchange",exchangeId:t};const{network:a,asset:u}=e.paymentAsset,i={network:a,asset:u,amount:e.tokenAmount,recipient:s},c=await m.getPayUrl(t,i);if(!c){try{r.close()}catch(o){console.error("Unable to close popup window",o)}throw new Error("Unable to initiate payment")}e.currentPayment.sessionId=c.sessionId,e.currentPayment.status="IN_PROGRESS",e.currentPayment.exchangeId=t,r.location.href=c.url}catch{e.error="Unable to initiate payment",A.showError(e.error)}},async waitUntilComplete({exchangeId:t,sessionId:n,paymentId:s,retries:r=20}){const a=await m.getBuyStatus(t,n,s);if(a.status==="SUCCESS"||a.status==="FAILED")return a;if(r===0)throw new Error("Unable to get deposit status");return await new Promise(u=>{setTimeout(u,5e3)}),m.waitUntilComplete({exchangeId:t,sessionId:n,paymentId:s,retries:r-1})},async getBuyStatus(t,n,s){var r,a,u,i,c;try{if(!e.currentPayment)throw new Error("No current payment");const o=await T({sessionId:n,exchangeId:t});if(e.currentPayment.status=o.status,o.status==="SUCCESS"||o.status==="FAILED"){const p=(r=l.getAccountData())==null?void 0:r.address;e.currentPayment.result=o.txHash,e.isPaymentInProgress=!1,w.sendEvent({type:"track",event:o.status==="SUCCESS"?"PAY_SUCCESS":"PAY_ERROR",properties:{message:o.status==="FAILED"?E.parseError(e.error):void 0,source:"fund-from-exchange",paymentId:s,configuration:{network:((a=e.paymentAsset)==null?void 0:a.network)||"",asset:((u=e.paymentAsset)==null?void 0:u.asset)||"",recipient:p||"",amount:e.amount??0},currentPayment:{type:"exchange",exchangeId:(i=e.currentPayment)==null?void 0:i.exchangeId,sessionId:(c=e.currentPayment)==null?void 0:c.sessionId,result:o.txHash}}})}return o}catch{return{status:"UNKNOWN",txHash:""}}},reset(){e.currentPayment=void 0,e.isPaymentInProgress=!1,e.paymentId="",e.paymentAsset=null,e.amount=0,e.tokenAmount=0,e.priceLoading=!1,e.error=null,e.exchanges=[],e.isLoading=!1}};export{m as E};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as h,j as o}from"./react-OEOSdkUk.js";import{t as e,s as a,b as r,I as f}from"./index-
|
|
1
|
+
import{r as h,j as o}from"./react-OEOSdkUk.js";import{t as e,s as a,b as r,I as f}from"./index-9fsiI1dP.js";const w=a.section`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
gap: 36px;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{e as ue,u as xe,r as l,j as t}from"./react-OEOSdkUk.js";import{s as i,t as e,w as F,x as ge,b as n,C as h,o as fe,A as me,V as g,bg as be,F as G,bq as N,bW as we,ba as H,z as re,I as ye,bX as Q}from"./index-
|
|
1
|
+
import{e as ue,u as xe,r as l,j as t}from"./react-OEOSdkUk.js";import{s as i,t as e,w as F,x as ge,b as n,C as h,o as fe,A as me,V as g,bg as be,F as G,bq as N,bW as we,ba as H,z as re,I as ye,bX as Q}from"./index-9fsiI1dP.js";import{F as ke}from"./Faq-XhwmepN6.js";import{R as D}from"./resume-buy-Bf0zIH7y.js";import{u as ve,a as Ce,R as $e,c as je,i as Se,b as Ae}from"./useCreditPacks-CKcjDTjk.js";import"./sentry-B60WY-np.js";import"./dcl-schemas-CmtP3U6y.js";import"./ethers-lk3HAbPB.js";import"./intl-CBcMB1D2.js";const A="https://cdn.decentraland.org/@dcl/shop/0.10.1-31022274185.commit-4782a6d/_assets/pack-coins-BDh1ZDbh.webp",ne="https://cdn.decentraland.org/@dcl/shop/0.10.1-31022274185.commit-4782a6d/_assets/pack-stacks-D-V2jSHW.webp",se="https://cdn.decentraland.org/@dcl/shop/0.10.1-31022274185.commit-4782a6d/_assets/pack-chest-BX_j84xW.webp",Pe="https://cdn.decentraland.org/@dcl/shop/0.10.1-31022274185.commit-4782a6d/_assets/credit-coin-CmcTCd5i.webp",Re="data:image/svg+xml,%3csvg%20width='60'%20height='60'%20viewBox='0%200%2060%2060'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20width='60'%20height='60'%20rx='30'%20fill='%2334CE77'/%3e%3cpath%20d='M21.6583%2046.1067L11.4656%2036.0591C10.1688%2034.829%2010.1905%2032.7207%2011.4769%2031.4622L13.6868%2029.3591C14.9732%2028.1006%2017.1615%2028.1058%2018.4582%2029.3359L23.8747%2034.6197L41.9704%2015.6527C43.2568%2014.3942%2045.4291%2014.2093%2046.7258%2015.4394L48.8765%2017.3628C50.1732%2018.5929%2050.3491%2020.6844%2049.0626%2021.9429L26.6112%2045.8766C25.1433%2047.342%2022.955%2047.3368%2021.6583%2046.1067Z'%20fill='%23FCFCFC'/%3e%3c/svg%3e",Te="https://cdn.decentraland.org/@dcl/shop/0.10.1-31022274185.commit-4782a6d/_assets/packs-backdrop-BcXiUPeP.webp",K="linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0)",_e=i.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
gap: 24px;
|