@dcl/shop 0.1.0-30631213700.commit-6a36b1d → 0.1.0-30633401379.commit-5cd1c31
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-BHKoZZp5.js +291 -0
- package/assets/{AnimatedBackground-Dl4OPt3I.js → AnimatedBackground-BlD5oHcR.js} +2 -2
- package/assets/{Assets-hIVs4QX5.js → Assets-DUKvbfgo.js} +2 -2
- package/assets/{Assets.styles-DxYgoIuy.js → Assets.styles-BLCNmjO6.js} +1 -1
- package/assets/{Authorizations-7_r3pX8t.js → Authorizations-6n5FWz0U.js} +1 -1
- package/assets/Cart-D7ktjzZK.js +695 -0
- package/assets/{CircularProgress-4d3-DQmu.js → CircularProgress-CMZVAt1l.js} +1 -1
- package/assets/{Collection-jJGlXbaI.js → Collection-CQps3SAa.js} +1 -1
- package/assets/{CollectionCarousel-Cf-VTi1F.js → CollectionCarousel-CrTrsXB-.js} +1 -1
- package/assets/{Creator-C7C3IC7M.js → Creator-DeBO0_hP.js} +1 -1
- package/assets/{ErrorNotice-B02EvdVc.js → ErrorNotice-DwhdhAu6.js} +1 -1
- package/assets/{ExchangeController-_mEAVfMP.js → ExchangeController-DFaPYxag.js} +1 -1
- package/assets/{GetCredits-DATwdND2.js → GetCredits-CH0SxGoe.js} +1 -1
- package/assets/{HelpersUtil-B9-8MjrT.js → HelpersUtil-CGxvruiS.js} +1 -1
- package/assets/{ImportListings-Brvy0E2Q.js → ImportListings-D3Q-MYHt.js} +1 -1
- package/assets/{ItemDetail-iIR1rraN.js → ItemDetail-grsXVByw.js} +3 -3
- package/assets/{LoadMore-DmJy1HhZ.js → LoadMore-CVBNO6CV.js} +1 -1
- package/assets/{MenuList-DaaQcK3Y.js → MenuList-D5vC383J.js} +1 -1
- package/assets/{MyAssets-BNDWBTvM.js → MyAssets-B4-suVif.js} +1 -1
- package/assets/{MyFavorites-DsQJRQwa.js → MyFavorites-rQde9LEq.js} +1 -1
- package/assets/{NotFound-DLfA3_kx.js → NotFound-CICAlcY2.js} +1 -1
- package/assets/{NotificationsBell-BFpFtQ3R.js → NotificationsBell-BcUtKYE_.js} +1 -1
- package/assets/{StoreSettings-g8hG7Zop.js → StoreSettings-D-p-KMUm.js} +1 -1
- package/assets/{Success-MIHHTcKK.js → Success-CKUShs2s.js} +1 -1
- package/assets/{SwapController-DR2uYAaA.js → SwapController-BqpEkXCy.js} +1 -1
- package/assets/{Tooltip-gJZXgo0b.js → Tooltip-v8d4_GhH.js} +1 -1
- package/assets/{TradeService-CY3xpaff.js → TradeService-CMvEMasH.js} +1 -1
- package/assets/{W3MFrameProviderSingleton-DSb_b_EZ.js → W3MFrameProviderSingleton-MrB8u6EW.js} +3 -3
- package/assets/{WebCryptoP256-CDxnkGVK.js → WebCryptoP256-CP0xBKi2.js} +1 -1
- package/assets/{authorizations-BPcNtN-P.js → authorizations-uQp0Tner.js} +1 -1
- package/assets/{basic-C5_ZcnK9.js → basic-B_OSMlWi.js} +1 -1
- package/assets/{biconomy-CvmOdG97.js → biconomy-DrNdbDOV.js} +1 -1
- package/assets/{browseLayout.styles-C9FVX_ZJ.js → browseLayout.styles-B5gAAnD7.js} +1 -1
- package/assets/{builder-CLIpwOL9.js → builder-BH8bW8w3.js} +1 -1
- package/assets/{buy-B0vN0t4_.js → buy-DI2htlf2.js} +1 -1
- package/assets/{buy-gasless-DLYP_J55.js → buy-gasless-D3ucK012.js} +1 -1
- package/assets/{categories-Ci0NfrXM.js → categories-CUWn-vWY.js} +1 -1
- package/assets/{ccip-EF1o04u9.js → ccip-D4QJIvrM.js} +1 -1
- package/assets/{ccip-kyPwi4iD.js → ccip-zHeTh1U3.js} +1 -1
- package/assets/{clsx-CPW1aX4x.js → clsx-C78Se7VZ.js} +1 -1
- package/assets/{controller-DC-xBsw3.js → controller-BICwQmay.js} +2 -2
- package/assets/{core-C7azBZfw.js → core-BpePoapT.js} +4 -4
- package/assets/{createSvgIcon-CE_QXUPt.js → createSvgIcon-D6bh0MrS.js} +1 -1
- package/assets/{custom-C7OSaKW8.js → custom-DIlU15wg.js} +1 -1
- package/assets/{data-capture-D90UA04z.js → data-capture-DF5W_J8T.js} +1 -1
- package/assets/{email-DdwMxrSu.js → email-CLMX01kZ.js} +1 -1
- package/assets/{embedded-wallet-CLTSxZAJ.js → embedded-wallet-CbYQTubx.js} +1 -1
- package/assets/{emotion-styled.browser.esm-C4PVOCRF.js → emotion-styled.browser.esm-uimCutsp.js} +1 -1
- package/assets/{engine-D-dAvXbf.js → engine-Bobn5NnI.js} +1 -1
- package/assets/{errors-BSoF7pTC.js → errors-BHapDldI.js} +1 -1
- package/assets/{estimate-l1-fee-Cw86yh3k.js → estimate-l1-fee-Zo4D8zNV.js} +1 -1
- package/assets/{execute-CiNfIIwI.js → execute-B3koRsQT.js} +2 -2
- package/assets/{features-CrsLW0vi.js → features-29eUittk.js} +1 -1
- package/assets/{fetchTokenMetadata-DdYtEXX-.js → fetchTokenMetadata-BVVFFsly.js} +2 -2
- package/assets/{get-ecosystem-wallet-info-B9Lyre9K.js → get-ecosystem-wallet-info-Fbs6oNmw.js} +1 -1
- package/assets/{getBalance-C-EmBEJE.js → getBalance-BynOYuPH.js} +1 -1
- package/assets/{getNFT-BQlxSGM2.js → getNFT-C7BU-05F.js} +1 -1
- package/assets/{getNFT-ytL1936_.js → getNFT-CHPhy1te.js} +1 -1
- package/assets/{getThemeProps-BGg8uFXd.js → getThemeProps-BCb3jyqf.js} +1 -1
- package/assets/{grid.styles-DMgsxY7L.js → grid.styles-CFlLjGWA.js} +1 -1
- package/assets/{hashTypedData-BasXuEvC.js → hashTypedData-BmEKHoZL.js} +1 -1
- package/assets/{hashTypedData-j5fdDs4Y.js → hashTypedData-CixGH523.js} +1 -1
- package/assets/{import-Dm0CsIi0.js → import-xE4hDmDm.js} +1 -1
- package/assets/{in-app-BEVydnuY.js → in-app-BcKmOV8m.js} +1 -1
- package/assets/{in-app-wallet-calls-BY3W5GQ0.js → in-app-wallet-calls-BI1PaW_x.js} +1 -1
- package/assets/{index-BUmLgBCF.js → index-9WfG_CLW.js} +1 -1
- package/assets/{index-DjDUzcsH.js → index-ASq7s2Iv.js} +1 -1
- package/assets/{index-BgUZsiWa.js → index-B0eTctvC.js} +1 -1
- package/assets/{index-1J_FpndO.js → index-B439DG-9.js} +2 -2
- package/assets/{index-CQm9diQZ.js → index-BAORCNZn.js} +1 -1
- package/assets/{index-B3KRDhro.js → index-BFzvJeyM.js} +1 -1
- package/assets/{index-CYLjPyy6.js → index-BHVh9ZD-.js} +1 -1
- package/assets/{index-DzVTWEvS.js → index-BMIuNfCB.js} +11 -11
- package/assets/{index-C1XoasUk.js → index-BTOrBWcS.js} +1 -1
- package/assets/{index-DCNmX8Jr.js → index-BUo3wAlN.js} +3 -3
- package/assets/{index-C9UOpi9s.js → index-Bb9TuCMN.js} +1 -1
- package/assets/{index-I1HziGSE.js → index-BdDw5syJ.js} +1 -1
- package/assets/{index-t2owpKkf.js → index-Bdx6vg6T.js} +1 -1
- package/assets/{index-CaRubzmQ.js → index-Bler0kM4.js} +1 -1
- package/assets/{index-CcaSnuYK.js → index-C7EZCMfv.js} +1 -1
- package/assets/{index-BLchEKaw.js → index-CG3EVA6i.js} +1 -1
- package/assets/{index-DCMoy5ft.js → index-CP0MJS3n.js} +1 -1
- package/assets/{index-D8fCyz4G.js → index-CSzz0-yL.js} +1 -1
- package/assets/{index-Cm1rAYH-.js → index-CY9EBgzo.js} +1 -1
- package/assets/{index-Ce4-q8Tn.js → index-CgOcSf2Q.js} +1 -1
- package/assets/{index-BwKYmXD4.js → index-CkfB4xYf.js} +1 -1
- package/assets/{index-B7JR23Ob.js → index-CpKxcKSt.js} +1 -1
- package/assets/{index-8VXxtKF1.js → index-CsCFxm9l.js} +1 -1
- package/assets/{index-Be7WGkuv.js → index-CugdcJ5p.js} +1 -1
- package/assets/{index-uOJSYwZG.js → index-CvuWb2er.js} +1 -1
- package/assets/{index-CBgMGilO.js → index-D-jdrajA.js} +1 -1
- package/assets/{index-BO8tonq1.js → index-D6z3Iok7.js} +1 -1
- package/assets/{index-ChgR_gSr.js → index-DA1IdQid.js} +1 -1
- package/assets/{index-BOKR1ZSE.js → index-DCUYsq3Z.js} +1 -1
- package/assets/{index-CqHixIDx.js → index-DI-G5L8D.js} +1 -1
- package/assets/{index-BRa-XcLg.js → index-DJGQazF5.js} +1 -1
- package/assets/{index-BO95Zc7f.js → index-DNLfbOQJ.js} +1 -1
- package/assets/{index-B_OIhLt0.js → index-DfVobYmm.js} +1 -1
- package/assets/{index-O4GwlnrF.js → index-DmnyvmGd.js} +1 -1
- package/assets/{index-RrRV6pR_.js → index-DpjOr79p.js} +1 -1
- package/assets/{index-BE79xpUL.js → index-DzCJVhsv.js} +1 -1
- package/assets/{index-BFDvoquz.js → index-Eco3bQ72.js} +2 -2
- package/assets/{index-DSjn_4OZ.js → index-FvB9JTSh.js} +1 -1
- package/assets/{index-BAljEUxu.js → index-H02HAhZo.js} +1 -1
- package/assets/{index-B1aFfP1l.js → index-LL0BV6rh.js} +1 -1
- package/assets/{index-BSBIVFxM.js → index-MsJgZMgr.js} +3 -3
- package/assets/{index-Df6G0l6L.js → index-R3pS6x6y.js} +3 -3
- package/assets/{index-CVglB0vh.js → index-dXYc2QRl.js} +1 -1
- package/assets/{index-g7wbqJm1.js → index-hwCoxi9L.js} +1 -1
- package/assets/{index-BkTT5bsx.js → index-ldblNYIT.js} +1 -1
- package/assets/{index-B13XAdNZ.js → index-n-ShiY2h.js} +1 -1
- package/assets/{index-S4WGeB0l.js → index-oFYHMIzO.js} +1 -1
- package/assets/{index-CtyORnm3.js → index-rFh28dtY.js} +1 -1
- package/assets/{index-D4au8-Sv.js → index-wfubccp5.js} +1 -1
- package/assets/{index-NfzBgkBr.js → index-wnx7vlu-.js} +2 -2
- package/assets/{index-D_M6bHMQ.js → index-xk15qzPN.js} +1 -1
- package/assets/{index.es-B3rSZSDt.js → index.es-BEVmNmLD.js} +4 -4
- package/assets/{index.es-DM2qW0lw.js → index.es-BPA6fTzR.js} +1 -1
- package/assets/{index.es-Dienktq9.js → index.es-BW6RduBG.js} +1 -1
- package/assets/{localBatchGatewayRequest-DuHrf2MN.js → localBatchGatewayRequest-C2eNLm--.js} +1 -1
- package/assets/{mana-convert-CHkCsdrS.js → mana-convert-C341n1xm.js} +1 -1
- package/assets/{mana-rate-Dt1fufbZ.js → mana-rate-BAPBwbaG.js} +1 -1
- package/assets/{networks-KCk_6KCy.js → networks-gEGHz8eL.js} +1 -1
- package/assets/{onramp-DIsBeuYv.js → onramp-DHcILVIp.js} +1 -1
- package/assets/{openzeppelin-DNjbwrBL.js → openzeppelin-BvSgRich.js} +1 -1
- package/assets/{parseNft-BftD-FxK.js → parseNft-DrAu-xVe.js} +2 -2
- package/assets/{parseSignature-BWVrkDRs.js → parseSignature--WNVOXAe.js} +3 -3
- package/assets/{parseSignature-znC0lvc7.js → parseSignature-BlmIeeL7.js} +1 -1
- package/assets/{passkeys-BJPRW0V_.js → passkeys-BD41PpMD.js} +1 -1
- package/assets/{pay-with-exchange-oV9YjYRd.js → pay-with-exchange-DCmtfnr1.js} +1 -1
- package/assets/{qr-overlay-BYTSXp-R.js → qr-overlay-DYViFXBB.js} +1 -1
- package/assets/{receive-DWXEUP1p.js → receive-LPMbYHZa.js} +1 -1
- package/assets/{resolveImplementation-D6NoPFBv.js → resolveImplementation-CdVPuboc.js} +1 -1
- package/assets/{rpc-BRol_aMy.js → rpc-D2C2velX.js} +1 -1
- package/assets/{secp256k1-BIRnWaVR.js → secp256k1-DLPIWcy9.js} +1 -1
- package/assets/{secp256k1-DnitHy6K.js → secp256k1-DtCfsIY0.js} +1 -1
- package/assets/{secp256k1-xEJ152PU.js → secp256k1-KqMjq-B-.js} +1 -1
- package/assets/{send-IjXisfbb.js → send-BYANl3m1.js} +1 -1
- package/assets/{send-batch-transaction-DPQqc2pa.js → send-batch-transaction-BHqPVqqQ.js} +1 -1
- package/assets/{send-eip712-transaction-D0KKXrDM.js → send-eip712-transaction-D3zsFnZJ.js} +2 -2
- package/assets/{send-gasless-transaction-DEZ5jsUe.js → send-gasless-transaction-Db4a0n6K.js} +2 -2
- package/assets/{send-transaction-DSWW1MHr.js → send-transaction-0fPTuVE4.js} +2 -2
- package/assets/{sendMetaTransaction-Ci7WU1n2.js → sendMetaTransaction-DAsHliEn.js} +1 -1
- package/assets/{sendRawTransaction-BhLbtdw6.js → sendRawTransaction-B5IMe5Y5.js} +3 -3
- package/assets/{serializeTransaction-BpvjoWlt.js → serializeTransaction-BT9LeH0D.js} +1 -1
- package/assets/{session-proposal-CySo5Ayx.js → session-proposal-plO_EjqI.js} +1 -1
- package/assets/{session-request-CcKMNi2Y.js → session-request-DTauixOT.js} +2 -2
- package/assets/{signing-1MEhDZTe.js → signing-BKT41maQ.js} +3 -3
- package/assets/{socials-BxeqgBhJ.js → socials-BPcwRKMp.js} +1 -1
- package/assets/{swaps-gmJBWPLn.js → swaps-DddX0hWZ.js} +1 -1
- package/assets/{thirdweb-D1mOG5l6.js → thirdweb-DI1D_9ce.js} +3 -3
- package/assets/{to-serializable-transaction-B0ueqSml.js → to-serializable-transaction-BZX746C8.js} +2 -2
- package/assets/{trade-encoding-8_nNixrP.js → trade-encoding-CK5EArKF.js} +1 -1
- package/assets/{transactionReceipt-C4bedM4w.js → transactionReceipt-2D5Q3zvv.js} +1 -1
- package/assets/{transactions-OfZRD4zD.js → transactions-DtbDwrsO.js} +1 -1
- package/assets/{useCreditPacks-By64V7Im.js → useCreditPacks-Dw0jIjQE.js} +1 -1
- package/assets/{useInfiniteGrid-BRS4FUdG.js → useInfiniteGrid-Xjfvrq_T.js} +1 -1
- package/assets/useManaRate-BEVwu7Q9.js +1 -0
- package/assets/{useSecondarySales-DvaILn1P.js → useSecondarySales-bajhgse5.js} +1 -1
- package/assets/{useStore-DT6_uEJ5.js → useStore-CIqjcPjh.js} +1 -1
- package/assets/{useTheme-DxD5b5GX.js → useTheme-DVSXpYGO.js} +1 -1
- package/assets/{verifyHash-B6ZBhWEY.js → verifyHash-DmL5gbPk.js} +1 -1
- package/assets/{w3m-modal-cY_JeRk0.js → w3m-modal-B2N-eyv6.js} +1 -1
- package/assets/{w3m-modal-BDgG1mEs.js → w3m-modal-CfZXCvPG.js} +1 -1
- package/assets/{wait-for-tx-receipt-BtuweTJB.js → wait-for-tx-receipt-BEDrW5cD.js} +1 -1
- package/assets/{wallets-7MiPMysL.js → wallets-DQk0dtw_.js} +5 -5
- package/assets/{web-connector-UMu-oPn4.js → web-connector-2N1NjIJ4.js} +3 -3
- package/assets/{writeContract-Byuqugox.js → writeContract-BZemjhP4.js} +1 -1
- package/assets/{zoraTestnet-CkN0XqkJ.js → zoraTestnet-BK5x9nJO.js} +1 -1
- package/index.html +11 -11
- package/package.json +2 -2
- package/assets/Activity-9H_Nw9g2.js +0 -291
- package/assets/Cart-D0AduPfq.js +0 -695
- package/assets/useManaRate-B_yvKRm8.js +0 -1
|
@@ -0,0 +1,291 @@
|
|
|
1
|
+
import{r as j,j as e,L as J,d as dt}from"./react-vyZjIDcS.js";import{aJ as lt,s as l,t as o,x as ut,B as ht,m as xt,e as d,n as mt,u as v,I as f,aK as G,aL as K,aM as pt,z as k,aN as gt,ap as T,D as Q,J as ft,aO as yt,aP as C}from"./index-BMIuNfCB.js";import{m as bt}from"./mana-convert-C341n1xm.js";import{u as jt}from"./useManaRate-BEVwu7Q9.js";import{L as vt}from"./LoadMore-CVBNO6CV.js";import{u as y}from"./useInfiniteGrid-Xjfvrq_T.js";import"./sentry-B35L1FdR.js";import"./dcl-schemas-BICTSpB5.js";import"./ethers-CXBJm_wN.js";import"./intl-CBcMB1D2.js";import"./mana-rate-BAPBwbaG.js";const kt=15e3;function It(t,n){return t.txHash&&n.txHash?t.txHash===n.txHash:t.txHash||n.txHash?!1:t.status===n.status&&Math.abs(t.createdAt-n.createdAt)<=kt}function At(t){const n=[...t].sort((i,a)=>a.createdAt-i.createdAt),s=[];for(const i of n){const a=s[s.length-1];a&&It(a[a.length-1],i)?a.push(i):s.push([i])}return s.map(i=>{var a;return{id:((a=i.find(c=>c.txHash))==null?void 0:a.txHash)??i[i.length-1].id,createdAt:Math.max(...i.map(c=>c.createdAt)),status:i.some(c=>c.status==="PENDING")?"PENDING":"SETTLED",totalCredits:i.reduce((c,h)=>c+h.credits,0),lines:i}})}function wt(t){return t.tradeId?`trade:${t.tradeId}`:t.contractAddress&&t.itemId?`item:${t.contractAddress.toLowerCase()}:${t.itemId}`:null}function $t(t){const n=[],s=new Map;for(const i of t){const a=wt(i);if(!a){n.push({key:i.id,tradeId:null,contractAddress:i.contractAddress??null,itemId:i.itemId??null,quantity:1,credits:i.credits});continue}const c=s.get(a);if(c){c.quantity+=1,c.credits+=i.credits;continue}const h={key:a,tradeId:i.tradeId,contractAddress:i.contractAddress??null,itemId:i.itemId??null,quantity:1,credits:i.credits};s.set(a,h),n.push(h)}return n}function Pt(t,n){return{id:t.id,contractAddress:t.contractAddress,tokenId:t.tokenId,itemId:t.itemId,counterparty:t.buyer,credits:n?bt(t.manaWei,n):null,manaWei:t.manaWei,createdAt:t.createdAt,txHash:t.txHash}}function Lt(t){const s=At(t.purchases.filter(r=>r.status!=="EXPIRED")).map(r=>({kind:"purchase",id:`purchase:${r.id}`,createdAt:r.createdAt,order:r})),i=t.sales.map(r=>{const x=Pt(r,t.rate);return{kind:"sale",id:`sale:${x.id}`,createdAt:x.createdAt,sale:x}}),a=(t.creditOrders??[]).filter(r=>r.status!=="failed"&&r.status!=="abandoned").map(r=>({kind:"credit",id:`credit:${r.id}`,createdAt:r.createdAt,order:r})),c=new Set(t.purchases.filter(r=>r.txHash).map(r=>r.txHash.toLowerCase())),h=(t.manaPurchases??[]).filter(r=>!c.has(r.txHash.toLowerCase())).map(r=>({kind:"mana-purchase",id:`mana-purchase:${r.id}`,createdAt:r.createdAt,sale:r}));return[...s,...i,...a,...h].sort((r,x)=>x.createdAt-r.createdAt||(r.id<x.id?-1:1))}function Nt(t,n){return n==="all"?t:n==="sales"?t.filter(s=>s.kind==="sale"):t.filter(s=>s.kind==="purchase"||s.kind==="credit"||s.kind==="mana-purchase")}const X=t=>t.trim().toLowerCase();function Et(t){const n=new Map;for(const s of t??[]){const i=X(s.txHash??"");if(!i)continue;const a=n.get(i);a?a.push(s):n.set(i,[s])}return n}function Tt(t,n,s=Date.now()){const i=n.txHash?t.get(X(n.txHash)):void 0;if(!i||i.length===0)return{kind:"direct"};const a=i.length===1?Ct(i[0].netCents):null,c=i.filter(r=>!r.available&&r.availableAt>s);if(c.length===0)return{kind:"credited",credits:a};const h=c.reduce((r,x)=>Math.max(r,x.availableAt),0);return{kind:"pending",credits:a,availableAt:h}}function Ct(t){return lt(t)}const Ft="https://cdn.decentraland.org/@dcl/shop/0.1.0-30633401379.commit-5cd1c31/assets/credits-product-vs4Q6u6l.svg",F=ut`
|
|
2
|
+
0% { background-position: 200% 0; }
|
|
3
|
+
100% { background-position: -200% 0; }
|
|
4
|
+
`,St=l.section`
|
|
5
|
+
width: 100%;
|
|
6
|
+
min-width: 0;
|
|
7
|
+
min-height: 60vh;
|
|
8
|
+
/* Centre the whole column — heading, tabs and cards as ONE block — so the feed isn't parked against
|
|
9
|
+
the left edge of a wide page. Centring only the list would leave the heading orphaned from it. */
|
|
10
|
+
max-width: 760px;
|
|
11
|
+
margin-inline: auto;
|
|
12
|
+
`,Mt=l.div`
|
|
13
|
+
display: flex;
|
|
14
|
+
align-items: baseline;
|
|
15
|
+
gap: 12px;
|
|
16
|
+
margin-bottom: 20px;
|
|
17
|
+
`,Dt=l.h1`
|
|
18
|
+
font-family: ${o.font.sans};
|
|
19
|
+
margin: 0;
|
|
20
|
+
`;l.span`
|
|
21
|
+
color: ${o.colors.muted};
|
|
22
|
+
font-size: 14px;
|
|
23
|
+
`;const Ht=l.div`
|
|
24
|
+
display: flex;
|
|
25
|
+
gap: 8px;
|
|
26
|
+
margin-bottom: 20px;
|
|
27
|
+
flex-wrap: wrap;
|
|
28
|
+
`,zt=l.button`
|
|
29
|
+
appearance: none;
|
|
30
|
+
border: 1px solid ${o.colors.line};
|
|
31
|
+
background: ${o.colors.white};
|
|
32
|
+
color: ${o.colors.text};
|
|
33
|
+
font-family: ${o.font.sans};
|
|
34
|
+
font-size: 14px;
|
|
35
|
+
font-weight: 600;
|
|
36
|
+
padding: 8px 16px;
|
|
37
|
+
min-height: 40px;
|
|
38
|
+
border-radius: ${o.radius.pill};
|
|
39
|
+
cursor: pointer;
|
|
40
|
+
transition:
|
|
41
|
+
background 0.15s,
|
|
42
|
+
border-color 0.15s,
|
|
43
|
+
color 0.15s;
|
|
44
|
+
|
|
45
|
+
&:hover {
|
|
46
|
+
background: ${o.colors.media};
|
|
47
|
+
}
|
|
48
|
+
&:focus-visible {
|
|
49
|
+
outline: 2px solid ${o.colors.accent};
|
|
50
|
+
outline-offset: 2px;
|
|
51
|
+
}
|
|
52
|
+
&[data-active='true'] {
|
|
53
|
+
background: ${o.colors.accent};
|
|
54
|
+
border-color: ${o.colors.accent};
|
|
55
|
+
color: ${o.colors.white};
|
|
56
|
+
}
|
|
57
|
+
`,U=l.div`
|
|
58
|
+
display: flex;
|
|
59
|
+
flex-direction: column;
|
|
60
|
+
gap: 16px;
|
|
61
|
+
`,I=l.div`
|
|
62
|
+
background: ${o.colors.white};
|
|
63
|
+
border: 1px solid ${o.colors.line};
|
|
64
|
+
border-radius: 16px;
|
|
65
|
+
overflow: hidden;
|
|
66
|
+
`,A=l.div`
|
|
67
|
+
display: flex;
|
|
68
|
+
align-items: center;
|
|
69
|
+
justify-content: space-between;
|
|
70
|
+
gap: 12px;
|
|
71
|
+
padding: 14px 18px;
|
|
72
|
+
background: ${o.colors.softWhite};
|
|
73
|
+
border-bottom: 1px solid ${o.colors.line};
|
|
74
|
+
|
|
75
|
+
${o.media.maxWidth("mobile")} {
|
|
76
|
+
flex-wrap: wrap;
|
|
77
|
+
}
|
|
78
|
+
`,w=l.div`
|
|
79
|
+
display: flex;
|
|
80
|
+
flex-direction: column;
|
|
81
|
+
gap: 2px;
|
|
82
|
+
min-width: 0;
|
|
83
|
+
`,$=l.span`
|
|
84
|
+
font-weight: 700;
|
|
85
|
+
color: ${o.colors.text};
|
|
86
|
+
`,P=l.span`
|
|
87
|
+
font-size: 13px;
|
|
88
|
+
color: ${o.colors.muted};
|
|
89
|
+
`,L=l.div`
|
|
90
|
+
display: flex;
|
|
91
|
+
align-items: center;
|
|
92
|
+
gap: 14px;
|
|
93
|
+
/* Pin to the right regardless of how many elements sit on the left (the credit-purchase card adds a
|
|
94
|
+
leading thumbnail, giving the head three children instead of two). */
|
|
95
|
+
margin-left: auto;
|
|
96
|
+
`,Ot=l.div`
|
|
97
|
+
flex: 0 0 auto;
|
|
98
|
+
width: 52px;
|
|
99
|
+
height: 52px;
|
|
100
|
+
border-radius: 10px;
|
|
101
|
+
background: ${o.colors.media};
|
|
102
|
+
display: flex;
|
|
103
|
+
align-items: center;
|
|
104
|
+
justify-content: center;
|
|
105
|
+
|
|
106
|
+
img {
|
|
107
|
+
width: 30px;
|
|
108
|
+
height: 30px;
|
|
109
|
+
display: block;
|
|
110
|
+
}
|
|
111
|
+
`,N=l.span`
|
|
112
|
+
font-size: 11px;
|
|
113
|
+
font-weight: 700;
|
|
114
|
+
text-transform: uppercase;
|
|
115
|
+
letter-spacing: 0.03em;
|
|
116
|
+
padding: 4px 10px;
|
|
117
|
+
border-radius: ${o.radius.pill};
|
|
118
|
+
white-space: nowrap;
|
|
119
|
+
|
|
120
|
+
&[data-status='SETTLED'] {
|
|
121
|
+
background: rgba(30, 166, 114, 0.14);
|
|
122
|
+
color: ${o.colors.okStrong};
|
|
123
|
+
}
|
|
124
|
+
&[data-status='PENDING'] {
|
|
125
|
+
background: rgba(245, 166, 35, 0.16);
|
|
126
|
+
color: #b5790a;
|
|
127
|
+
}
|
|
128
|
+
&[data-status='SOLD'] {
|
|
129
|
+
background: rgba(103, 58, 183, 0.14);
|
|
130
|
+
color: ${o.colors.accent};
|
|
131
|
+
}
|
|
132
|
+
&[data-status='FAILED'] {
|
|
133
|
+
background: rgba(214, 61, 61, 0.14);
|
|
134
|
+
color: #b02a2a;
|
|
135
|
+
}
|
|
136
|
+
`,m=l.div`
|
|
137
|
+
display: flex;
|
|
138
|
+
align-items: center;
|
|
139
|
+
gap: 5px;
|
|
140
|
+
font-weight: 800;
|
|
141
|
+
color: ${o.colors.text};
|
|
142
|
+
white-space: nowrap;
|
|
143
|
+
|
|
144
|
+
.ccy-mark {
|
|
145
|
+
width: 16px;
|
|
146
|
+
height: 16px;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
// Money received (a sale) reads as income in the shop's success green.
|
|
150
|
+
&[data-kind='income'] {
|
|
151
|
+
color: ${o.colors.okStrong};
|
|
152
|
+
}
|
|
153
|
+
`,Z=l.img`
|
|
154
|
+
width: 16px;
|
|
155
|
+
height: 16px;
|
|
156
|
+
vertical-align: -0.15em;
|
|
157
|
+
`,qt=l.span`
|
|
158
|
+
display: inline-flex;
|
|
159
|
+
align-items: center;
|
|
160
|
+
cursor: pointer;
|
|
161
|
+
`,Wt=l.span`
|
|
162
|
+
position: fixed;
|
|
163
|
+
transform: translateX(-50%);
|
|
164
|
+
padding: 6px 8px;
|
|
165
|
+
border-radius: 6px;
|
|
166
|
+
background: #16141a;
|
|
167
|
+
color: ${o.colors.white};
|
|
168
|
+
font-size: 12px;
|
|
169
|
+
font-weight: 600;
|
|
170
|
+
line-height: 1;
|
|
171
|
+
white-space: nowrap;
|
|
172
|
+
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
|
|
173
|
+
pointer-events: none;
|
|
174
|
+
z-index: 9999;
|
|
175
|
+
`,S=l.div`
|
|
176
|
+
display: flex;
|
|
177
|
+
flex-direction: column;
|
|
178
|
+
`,E=l.div`
|
|
179
|
+
display: grid;
|
|
180
|
+
grid-template-columns: 52px 1fr auto;
|
|
181
|
+
align-items: center;
|
|
182
|
+
gap: 14px;
|
|
183
|
+
padding: 12px 18px;
|
|
184
|
+
text-decoration: none;
|
|
185
|
+
color: inherit;
|
|
186
|
+
|
|
187
|
+
& + & {
|
|
188
|
+
border-top: 1px solid ${o.colors.line};
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
&[data-link='true'] {
|
|
192
|
+
transition: background 0.15s;
|
|
193
|
+
}
|
|
194
|
+
&[data-link='true']:hover {
|
|
195
|
+
background: ${o.colors.media};
|
|
196
|
+
}
|
|
197
|
+
&[data-link='true']:focus-visible {
|
|
198
|
+
outline: 2px solid ${o.colors.accent};
|
|
199
|
+
outline-offset: -2px;
|
|
200
|
+
}
|
|
201
|
+
`,M=l.div`
|
|
202
|
+
width: 52px;
|
|
203
|
+
height: 52px;
|
|
204
|
+
border-radius: 10px;
|
|
205
|
+
background: ${o.colors.media};
|
|
206
|
+
overflow: hidden;
|
|
207
|
+
display: flex;
|
|
208
|
+
align-items: center;
|
|
209
|
+
justify-content: center;
|
|
210
|
+
color: ${o.colors.muted2};
|
|
211
|
+
|
|
212
|
+
img {
|
|
213
|
+
width: 100%;
|
|
214
|
+
height: 100%;
|
|
215
|
+
object-fit: contain;
|
|
216
|
+
}
|
|
217
|
+
`,D=l.div`
|
|
218
|
+
width: 52px;
|
|
219
|
+
height: 52px;
|
|
220
|
+
border-radius: 10px;
|
|
221
|
+
background: linear-gradient(100deg, ${o.colors.media} 30%, ${o.colors.panel} 50%, ${o.colors.media} 70%);
|
|
222
|
+
background-size: 200% 100%;
|
|
223
|
+
animation: ${F} 1.3s infinite linear;
|
|
224
|
+
|
|
225
|
+
@media (prefers-reduced-motion: reduce) {
|
|
226
|
+
animation: none;
|
|
227
|
+
}
|
|
228
|
+
`,H=l.div`
|
|
229
|
+
min-width: 0;
|
|
230
|
+
display: flex;
|
|
231
|
+
flex-direction: column;
|
|
232
|
+
gap: 2px;
|
|
233
|
+
`,z=l.span`
|
|
234
|
+
font-weight: 700;
|
|
235
|
+
white-space: nowrap;
|
|
236
|
+
overflow: hidden;
|
|
237
|
+
text-overflow: ellipsis;
|
|
238
|
+
`,O=l.span`
|
|
239
|
+
display: inline-block;
|
|
240
|
+
width: 140px;
|
|
241
|
+
max-width: 60%;
|
|
242
|
+
height: 12px;
|
|
243
|
+
border-radius: 6px;
|
|
244
|
+
background: linear-gradient(100deg, ${o.colors.media} 30%, ${o.colors.panel} 50%, ${o.colors.media} 70%);
|
|
245
|
+
background-size: 200% 100%;
|
|
246
|
+
animation: ${F} 1.3s infinite linear;
|
|
247
|
+
|
|
248
|
+
@media (prefers-reduced-motion: reduce) {
|
|
249
|
+
animation: none;
|
|
250
|
+
}
|
|
251
|
+
`,q=l.span`
|
|
252
|
+
font-size: 13px;
|
|
253
|
+
color: ${o.colors.muted};
|
|
254
|
+
`,Bt=l.div`
|
|
255
|
+
display: flex;
|
|
256
|
+
align-items: center;
|
|
257
|
+
gap: 4px;
|
|
258
|
+
font-weight: 700;
|
|
259
|
+
color: ${o.colors.text};
|
|
260
|
+
white-space: nowrap;
|
|
261
|
+
|
|
262
|
+
.ccy-mark {
|
|
263
|
+
width: 14px;
|
|
264
|
+
height: 14px;
|
|
265
|
+
}
|
|
266
|
+
`,_=l.div`
|
|
267
|
+
height: 132px;
|
|
268
|
+
border-radius: 16px;
|
|
269
|
+
border: 1px solid transparent;
|
|
270
|
+
background: linear-gradient(100deg, ${o.colors.media} 30%, ${o.colors.panel} 50%, ${o.colors.media} 70%);
|
|
271
|
+
background-size: 200% 100%;
|
|
272
|
+
animation: ${F} 1.3s infinite linear;
|
|
273
|
+
|
|
274
|
+
@media (prefers-reduced-motion: reduce) {
|
|
275
|
+
animation: none;
|
|
276
|
+
}
|
|
277
|
+
`,V=l.div`
|
|
278
|
+
display: flex;
|
|
279
|
+
flex-direction: column;
|
|
280
|
+
align-items: center;
|
|
281
|
+
gap: 8px;
|
|
282
|
+
text-align: center;
|
|
283
|
+
padding: 90px 20px;
|
|
284
|
+
min-height: 50vh;
|
|
285
|
+
`,Y=l.p`
|
|
286
|
+
font-size: 22px;
|
|
287
|
+
font-weight: 700;
|
|
288
|
+
margin: 6px 0 0;
|
|
289
|
+
`,Rt=l(ht)`
|
|
290
|
+
margin-top: 12px;
|
|
291
|
+
`,W=E.withComponent(J),b=24,Gt=["all","purchases","sales"];function g(t){try{return new Date(t).toLocaleDateString(void 0,{year:"numeric",month:"short",day:"numeric"})}catch{return""}}function tt(t){return t.length>10?`${t.slice(0,6)}…${t.slice(-4)}`:t}function et(t){const n=Number(t)/1e18;return Number.isFinite(n)?n.toLocaleString("en",{maximumFractionDigits:2}):"0"}function it({children:t}){const n=j.useRef(null),[s,i]=j.useState(null),a=()=>{var h;const c=(h=n.current)==null?void 0:h.getBoundingClientRect();c&&i({top:c.bottom+8,left:c.left+c.width/2})};return e.jsxs(qt,{ref:n,tabIndex:0,onMouseEnter:a,onMouseLeave:()=>i(null),onFocus:a,onBlur:()=>i(null),children:[t,s?dt.createPortal(e.jsx(Wt,{style:{top:s.top,left:s.left},role:"tooltip",children:d("activity.polygonMana")}),document.body):null]})}function Kt({item:t}){const n=!!t.contractAddress&&!!t.itemId,s=!!t.tradeId||n,{data:i,isLoading:a}=v({queryKey:["order-line-display",t.tradeId,t.contractAddress,t.itemId],queryFn:()=>t.tradeId?yt(t.tradeId):C(t.contractAddress,{itemId:t.itemId}),enabled:s,staleTime:5*6e4}),c=s&&a,h=(i==null?void 0:i.name)??d("activity.itemFallback"),r=(i==null?void 0:i.thumbnail)??"",x=T({contractAddress:i==null?void 0:i.contractAddress,tokenId:i==null?void 0:i.tokenId,itemId:i==null?void 0:i.itemId})??void 0,p=e.jsxs(e.Fragment,{children:[c?e.jsx(D,{}):e.jsx(M,{children:r?e.jsx("img",{src:r,alt:h}):e.jsx(f,{name:"cart",size:20})}),e.jsxs(H,{children:[c?e.jsx(O,{}):e.jsx(z,{title:h,children:h}),t.quantity>1?e.jsx(q,{children:d("activity.quantity",{count:t.quantity})}):null]}),e.jsxs(Bt,{children:[e.jsx(k,{className:"ccy-mark"})," ",t.credits]})]});return x?e.jsx(W,{to:x,"data-link":"true",children:p}):e.jsx(E,{children:p})}function Ut({order:t}){const n=$t(t.lines),s=n.reduce((i,a)=>i+a.quantity,0);return e.jsxs(I,{"data-testid":"purchase-order",children:[e.jsxs(A,{children:[e.jsxs(w,{children:[e.jsx($,{children:g(t.createdAt)}),e.jsxs(P,{children:[d("activity.purchaseLabel")," · ",d("activity.itemCount",{count:s})]})]}),e.jsxs(L,{children:[e.jsx(N,{"data-status":t.status,children:t.status==="PENDING"?d("activity.processing"):d("activity.completed")}),e.jsxs(m,{children:[e.jsx(k,{className:"ccy-mark"})," ",t.totalCredits]})]})]}),e.jsx(S,{children:n.map(i=>e.jsx(Kt,{item:i},i.key))})]})}function _t({sale:t}){const{data:n,isLoading:s}=v({queryKey:["asset-display",t.contractAddress,t.tokenId,t.itemId],queryFn:()=>C(t.contractAddress,{tokenId:t.tokenId,itemId:t.itemId}),enabled:!!t.contractAddress,staleTime:3e5}),i=(n==null?void 0:n.name)??d("activity.itemFallback"),a=(n==null?void 0:n.thumbnail)??"",c=T({contractAddress:t.contractAddress,tokenId:t.tokenId,itemId:t.itemId})??void 0,h=e.jsxs(e.Fragment,{children:[s?e.jsx(D,{}):e.jsx(M,{children:a?e.jsx("img",{src:a,alt:i}):e.jsx(f,{name:"offer",size:20})}),e.jsxs(H,{children:[s?e.jsx(O,{}):e.jsx(z,{title:i,children:i}),e.jsx(q,{children:d("activity.boughtFrom",{account:tt(t.seller)})})]})]});return e.jsxs(I,{"data-testid":"activity-mana-purchase",children:[e.jsxs(A,{children:[e.jsxs(w,{children:[e.jsx($,{children:g(t.createdAt)}),e.jsx(P,{children:d("activity.paidWithMana")})]}),e.jsxs(L,{children:[e.jsx(N,{"data-status":"SETTLED",children:d("activity.completed")}),e.jsxs(m,{children:[et(t.manaWei)," ",e.jsx(it,{children:e.jsx(Z,{src:Q,alt:"MANA"})})]})]})]}),e.jsx(S,{children:c?e.jsx(W,{to:c,"data-link":"true",children:h}):e.jsx(E,{children:h})})]})}function Jt({sale:t,payout:n}){const{data:s,isLoading:i}=v({queryKey:["asset-display",t.contractAddress,t.tokenId,t.itemId],queryFn:()=>C(t.contractAddress,{tokenId:t.tokenId,itemId:t.itemId}),enabled:!!t.contractAddress,staleTime:3e5}),a=(s==null?void 0:s.name)??d("activity.itemFallback"),c=(s==null?void 0:s.thumbnail)??"",h=T({contractAddress:t.contractAddress,tokenId:t.tokenId,itemId:t.itemId})??void 0,r=e.jsxs(e.Fragment,{children:[i?e.jsx(D,{}):e.jsx(M,{children:c?e.jsx("img",{src:c,alt:a}):e.jsx(f,{name:"offer",size:20})}),e.jsxs(H,{children:[i?e.jsx(O,{}):e.jsx(z,{title:a,children:a}),e.jsxs(q,{children:[d("activity.soldTo",{account:tt(t.counterparty)}),n.kind==="pending"?` · ${d("activity.payoutPendingOn",{date:g(n.availableAt)})}`:""]})]})]});return e.jsxs(I,{"data-testid":"activity-sale",children:[e.jsxs(A,{children:[e.jsxs(w,{children:[e.jsx($,{children:g(t.createdAt)}),e.jsx(P,{children:d("activity.saleLabel")})]}),e.jsxs(L,{children:[e.jsx(N,{"data-status":n.kind==="pending"?"PENDING":"SOLD",children:n.kind==="pending"?d("activity.payoutPending"):d("activity.sold")}),n.kind==="direct"?e.jsxs(m,{"data-kind":"income",children:["+",et(t.manaWei)," ",e.jsx(it,{children:e.jsx(Z,{src:Q,alt:"MANA"})})]}):n.credits!==null?e.jsxs(m,{"data-kind":"income",children:[e.jsx(k,{className:"ccy-mark"})," +",ft(n.credits)]}):e.jsx(m,{"data-kind":"income",children:d("activity.payoutCredited")})]})]}),e.jsx(S,{children:h?e.jsx(W,{to:h,"data-link":"true",children:r}):e.jsx(E,{children:r})})]})}function Qt({order:t}){const n=`$${(t.usdCents/100).toFixed(2)}`,s=gt(t.status),i=s==="SETTLED"?d("activity.completed"):s==="FAILED"?d("activity.failed"):d("activity.processing");return e.jsx(I,{"data-testid":"credit-order",children:e.jsxs(A,{children:[e.jsx(Ot,{children:e.jsx("img",{src:Ft,alt:"","aria-hidden":!0})}),e.jsxs(w,{children:[e.jsx($,{children:g(t.createdAt)}),e.jsxs(P,{children:[d("activity.creditPurchaseLabel")," · ",d("activity.creditPaid",{usd:n})]})]}),e.jsxs(L,{children:[e.jsx(N,{"data-status":s,children:i}),e.jsxs(m,{"data-kind":"income",children:["+",e.jsx(k,{className:"ccy-mark"})," ",t.credits]})]})]})})}function Xt({filter:t}){const n={all:{icon:"clock",title:d("activity.emptyAllTitle"),body:d("activity.emptyAllBody")},purchases:{icon:"cart",title:d("activity.emptyPurchasesTitle"),body:d("activity.emptyPurchasesBody")},sales:{icon:"offer",title:d("activity.emptySalesTitle"),body:d("activity.emptySalesBody")}}[t];return e.jsxs(V,{children:[e.jsx(f,{name:n.icon,size:40,color:o.colors.muted2}),e.jsx(Y,{children:n.title}),e.jsx("p",{className:"muted",children:n.body}),t!=="sales"?e.jsx(Rt,{as:J,to:"/assets",variant:"purple",children:d("notFound.cta")}):null]})}function ce(){xt({title:d("nav.activity"),noindex:!0});const{session:t}=mt(),[n,s]=j.useState("all"),i=!!t&&n!=="sales",a=!!t&&n!=="purchases",c=y(["purchases",t==null?void 0:t.address],u=>pt(t.address,t.identity,{first:b,skip:u}),{enabled:i}),h=y(["sales",t==null?void 0:t.address],u=>G(t.address,{role:"seller",first:b,skip:u}),{enabled:a}),r=y(["credit-orders",t==null?void 0:t.address],u=>K(t.address,t.identity,{first:b,skip:u}),{enabled:i}),x=y(["mana-purchases",t==null?void 0:t.address],u=>G(t.address,{role:"buyer",first:b,skip:u}),{enabled:i}),{data:p}=v({queryKey:["sale-payouts",t==null?void 0:t.address],queryFn:()=>K(t.address,t.identity,{first:200}).then(u=>u.payouts),enabled:a,staleTime:6e4}),nt=j.useMemo(()=>Et(p),[p]),{data:st}=jt(a);if(!t)return e.jsxs(V,{children:[e.jsx(f,{name:"clock",size:40,color:o.colors.muted2}),e.jsx(Y,{children:d("activity.signInTitle")}),e.jsx("p",{className:"muted",children:d("activity.signInBody")})]});const B=Nt(Lt({purchases:i?c.items:[],sales:a?h.items:[],creditOrders:i?r.items:[],manaPurchases:i?x.items:[],rate:st}),n),at=i&&(c.isLoading||r.isLoading||x.isLoading)||a&&h.isLoading,R=i&&(c.isFetchingNextPage||r.isFetchingNextPage||x.isFetchingNextPage)||a&&h.isFetchingNextPage,rt=i&&(c.hasNextPage||r.hasNextPage||x.hasNextPage)||a&&h.hasNextPage;function ot(){i&&c.hasNextPage&&c.fetchNextPage(),i&&r.hasNextPage&&r.fetchNextPage(),i&&x.hasNextPage&&x.fetchNextPage(),a&&h.hasNextPage&&h.fetchNextPage()}return e.jsxs(St,{children:[e.jsx(Mt,{children:e.jsx(Dt,{children:d("nav.activity")})}),e.jsx(Ht,{role:"tablist","aria-label":d("nav.activity"),children:Gt.map(u=>e.jsx(zt,{type:"button",role:"tab","aria-selected":n===u,"data-active":n===u,"data-testid":`activity-filter-${u}`,onClick:()=>s(u),children:d(`activity.filter.${u}`)},u))}),at?e.jsx(U,{children:Array.from({length:5}).map((u,ct)=>e.jsx(_,{},ct))}):B.length===0?e.jsx(Xt,{filter:n}):e.jsxs(e.Fragment,{children:[e.jsxs(U,{children:[B.map(u=>u.kind==="purchase"?e.jsx(Ut,{order:u.order},u.id):u.kind==="credit"?e.jsx(Qt,{order:u.order},u.id):u.kind==="mana-purchase"?e.jsx(_t,{sale:u.sale},u.id):e.jsx(Jt,{sale:u.sale,payout:Tt(nt,u.sale)},u.id)),R?e.jsx(_,{}):null]}),e.jsx(vt,{hasNextPage:rt,isFetching:R,onLoadMore:ot})]})]})}export{ce as Activity};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as l,j as v}from"./react-vyZjIDcS.js";import{s as u}from"./index-
|
|
1
|
+
import{r as l,j as v}from"./react-vyZjIDcS.js";import{s as u}from"./index-BMIuNfCB.js";import"./sentry-B35L1FdR.js";import"./dcl-schemas-BICTSpB5.js";import"./ethers-CXBJm_wN.js";import"./intl-CBcMB1D2.js";const S="https://cdn.decentraland.org/@dcl/shop/0.1.0-30633401379.commit-5cd1c31/assets/custom-welcome-background-BxlFQma9.webp",b="https://cdn.decentraland.org/@dcl/shop/0.1.0-30633401379.commit-5cd1c31/assets/DCL_LogoPattern-BryBPc3d.png",U=`
|
|
2
2
|
attribute vec2 a_position;
|
|
3
3
|
varying vec2 v_uv;
|
|
4
4
|
void main() {
|
|
@@ -94,4 +94,4 @@ void main() {
|
|
|
94
94
|
inset: 0;
|
|
95
95
|
width: 100%;
|
|
96
96
|
height: 100%;
|
|
97
|
-
`;function G(){const t=l.useRef(null),n=l.useRef(0);return l.useEffect(()=>{var x;const r=t.current;if(!r||(x=window.matchMedia)!=null&&x.call(window,"(prefers-reduced-motion: reduce)").matches)return;const e=r.getContext("webgl",{alpha:!1,antialias:!1});if(!e)return;const o=p(e,e.VERTEX_SHADER,U),
|
|
97
|
+
`;function G(){const t=l.useRef(null),n=l.useRef(0);return l.useEffect(()=>{var x;const r=t.current;if(!r||(x=window.matchMedia)!=null&&x.call(window,"(prefers-reduced-motion: reduce)").matches)return;const e=r.getContext("webgl",{alpha:!1,antialias:!1});if(!e)return;const o=p(e,e.VERTEX_SHADER,U),c=p(e,e.FRAGMENT_SHADER,P);if(!o||!c){o&&e.deleteShader(o),c&&e.deleteShader(c);return}const a=D(e,o,c);if(!a){e.deleteShader(o),e.deleteShader(c);return}const m=e.getAttribLocation(a,"a_position"),R=e.getUniformLocation(a,"u_time"),y=e.getUniformLocation(a,"u_resolution"),_=e.getUniformLocation(a,"u_overlayTex"),s=e.createBuffer();e.bindBuffer(e.ARRAY_BUFFER,s),e.bufferData(e.ARRAY_BUFFER,new Float32Array([-1,-1,1,-1,-1,1,-1,1,1,-1,1,1]),e.STATIC_DRAW);let d=!1;const f=L(e,b,()=>d),w=()=>{const i=window.devicePixelRatio||1,E=r.clientWidth*i,g=r.clientHeight*i;(r.width!==E||r.height!==g)&&(r.width=E,r.height=g)},A=performance.now()/1e3,h=()=>{w(),e.viewport(0,0,r.width,r.height),e.useProgram(a),e.uniform1f(R,performance.now()/1e3-A),e.uniform2f(y,r.width,r.height),e.activeTexture(e.TEXTURE0),e.bindTexture(e.TEXTURE_2D,f),e.uniform1i(_,0),e.enableVertexAttribArray(m),e.bindBuffer(e.ARRAY_BUFFER,s),e.vertexAttribPointer(m,2,e.FLOAT,!1,0,0),e.drawArrays(e.TRIANGLES,0,6),n.current=requestAnimationFrame(h)},T=i=>{i.preventDefault(),cancelAnimationFrame(n.current),r.style.opacity="0"};return r.addEventListener("webglcontextlost",T,!1),n.current=requestAnimationFrame(h),()=>{d=!0,cancelAnimationFrame(n.current),r.removeEventListener("webglcontextlost",T),e.deleteProgram(a),e.deleteShader(o),e.deleteShader(c),e.deleteBuffer(s),e.deleteTexture(f)}},[]),v.jsxs(B,{"aria-hidden":!0,children:[v.jsx(F,{style:{backgroundImage:`url(${S})`}}),v.jsx(I,{ref:t})]})}export{G as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{b as ze,r as m,j as e,u as Ve}from"./react-vyZjIDcS.js";import{c as B,av as Ze,aw as Je,d as Ke,s as n,t,n as Ie,al as Qe,E as Xe,J as Ae,y as Ye,e as s,I as T,z as W,aS as he,aj as et,ar as K,az as tt,ay as nt,m as Ne,o as st,S as fe,A as O,aT as ot,aU as it}from"./index-
|
|
1
|
+
import{b as ze,r as m,j as e,u as Ve}from"./react-vyZjIDcS.js";import{c as B,av as Ze,aw as Je,d as Ke,s as n,t,n as Ie,al as Qe,E as Xe,J as Ae,y as Ye,e as s,I as T,z as W,aS as he,aj as et,ar as K,az as tt,ay as nt,m as Ne,o as st,S as fe,A as O,aT as ot,aU as it}from"./index-BMIuNfCB.js";import{u as rt}from"./useSecondarySales-bajhgse5.js";import{a as at,m as Me}from"./mana-convert-C341n1xm.js";import{u as Pe}from"./useManaRate-BEVwu7Q9.js";import{g as lt,h as ct,i as dt,j as pt,k as xt,C as ht,l as ft,o as mt,m as ut,n as gt,M as bt,p as yt,E as wt,q as jt,r as vt,s as $t,t as Ct,u as kt,v as St}from"./Assets.styles-BLCNmjO6.js";import{c as me,R as Et,F as Tt,S as Rt}from"./categories-CUWn-vWY.js";import{L as _t}from"./LoadMore-CVBNO6CV.js";import{u as zt}from"./useInfiniteGrid-Xjfvrq_T.js";import{E as It}from"./ErrorNotice-DwhdhAu6.js";import{d as At}from"./dcl-schemas-BICTSpB5.js";import{s as Nt,G as Mt,w as Pt,S as Wt}from"./buy-gasless-D3ucK012.js";import{s as Bt}from"./buy-DI2htlf2.js";import{i as Ft}from"./trade-encoding-CK5EArKF.js";import{r as Lt}from"./mana-rate-BAPBwbaG.js";import{f as Ut}from"./errors-BHapDldI.js";import{J as Ht,C as Ot,B as ee}from"./ethers-CXBJm_wN.js";import{n as Gt}from"./Tooltip-v8d4_GhH.js";import{G as Dt}from"./grid.styles-CFlLjGWA.js";import"./sentry-B35L1FdR.js";import"./intl-CBcMB1D2.js";import"./authorizations-uQp0Tner.js";import"./sendMetaTransaction-DAsHliEn.js";function G(o){const i=o.source??"item",l=o.tradeId||`${o.contractAddress}-${o.tokenId??o.itemId??""}`;return`${i}:${l}`}const F="100000000000000000000",We=2,Q=15,qt=/^[a-zA-Z0-9]+$/;function ue(o){const i=o.trim();return i.length===0?{ok:!1,reason:"empty"}:qt.test(i)?i.length<We?{ok:!1,reason:"too-short"}:i.length>Q?{ok:!1,reason:"too-long"}:{ok:!0}:{ok:!1,reason:"invalid-chars"}}function Vt(o){return o.replace(/[^a-zA-Z0-9]/g,"").slice(0,Q)}const Zt=["function available(string _subdomain) view returns (bool)"],ge={mainnet:{rpc:"https://rpc.decentraland.org/mainnet",address:"0x2a187453064356c898cae034eaed119e1663acb8"},sepolia:{rpc:"https://rpc.decentraland.org/sepolia",address:"0x7518456ae93eb98f3e64571b689c626616bb7f30"}};function Jt(){return B.chainId===Number(At.ChainId.MATIC_MAINNET)?ge.mainnet:ge.sepolia}async function Kt(o,i={}){var p;const{rpc:l,address:x}=Jt(),c=new Ht(l),d=new Ot(x,Zt,c);console.info(`[names] availability check → DCLRegistrar(${x}).available("${o}") on ${l}`);const h=await d.available(o);if((p=i.signal)!=null&&p.aborted)throw new DOMException("Aborted","AbortError");return console.info(`[names] "${o}" available=${h}`),h?"available":"taken"}const Qt="https://app.across.to/api";class Be extends Error{constructor(){super("Name registration is temporarily unavailable due to high network costs"),this.name="NameRouteCostTooHighError"}}function Xt(o){return at(F,o)}async function Yt(o,i,l={}){var p;const x=l.chainId??B.chainId,c=l.provider??"across",d=`${B.creditsServerUrl}/credits-name-route?name=${encodeURIComponent(i)}&chainId=${x}&provider=${c}`,h=await Ke(d,{method:"GET",identity:o,metadata:{}});if(!h.ok){let a;try{a=(p=await h.json())==null?void 0:p.code}catch{}throw a==="ROUTE_COST_TOO_HIGH"?new Be:new Error(`fetchNameCreditRoute ${h.status}`)}return h.json()}function en(o,i){const l=ee.from(o.availableAmount),c=ee.from(F).sub(l);return{credits:[{value:o.amount,expiresAt:Number(o.expiresAt),salt:Ft(o.id)}],creditsSignatures:[o.signature],externalCall:{target:i.externalCall.target,selector:i.externalCall.selector,data:i.externalCall.data,expiresAt:i.externalCall.expiresAt,salt:i.externalCall.salt},customExternalCallSignature:i.customExternalCallSignature,maxUncreditedValue:c.isNegative()?"0":c.toString(),maxCreditedValue:F}}async function tn(o,i={}){const l=Qt,x=i.intervalMs??1e4,c=i.maxAttempts??60;let d={status:"pending",destinationTxHash:null,actionsSucceeded:!1};for(let h=0;h<c;h++){try{const p=await fetch(`${l}/deposit/status?originChainId=137&depositTxHash=${o}`);if(p.ok){const a=await p.json(),u=(a.status??"pending").toLowerCase(),b=a.fillTx??a.fillTxnRef??null,w=a.actionsSucceeded!==!1;if(u==="filled")return{status:"filled",destinationTxHash:b,actionsSucceeded:w};if(u==="refunded"||u==="expired")return{status:u,destinationTxHash:null,actionsSucceeded:!1};d={status:"pending",destinationTxHash:b,actionsSucceeded:w}}}catch{}h<c-1&&await new Promise(p=>setTimeout(p,x))}return d}async function nn(o){const{name:i,identity:l,signer:x}=o,c=o.chainId??B.chainId,d=o.provider??"across",h=(o.beneficiary??await x.getAddress()).toLowerCase();let p=null,a=!1;console.info("[names] register start",{name:i,buyer:h,chainId:c,provider:d});try{const u=await Lt(c),b=Xt(u);console.info("[names] step 1/6 sized reservation",{usdCents:b,manaRate:u});const w=await Yt(l,i,{chainId:c,provider:d});console.info("[names] step 2/6 route fetched",{target:w.externalCall.target,selector:w.externalCall.selector,provider:w.provider,quoteId:w.quoteId});const j=await Ze(l,b);if(p=j.credit.id,console.info("[names] step 3/6 credit authorized",{creditId:j.credit.id,maxCreditedValue:j.maxCreditedValue}),ee.from(j.maxCreditedValue).lt(F))throw new Error("Credit under-sized for the name price");const $=en(j.credit,w);let f;try{f=await Nt({chainId:c,buyer:h,signer:x,args:$})}catch(y){if(!(y instanceof Mt))throw y;f=await Bt(c,$,x)}if(console.info("[names] step 4/6 useCredits submitted (Polygon origin tx)",{originTxHash:f}),await Pt(f),a=!0,console.info("[names] step 5/6 origin tx confirmed",{originTxHash:f}),d==="across"){const y=await tn(f,o.acrossPoll);if(console.info("[names] step 6/6 across status",y),y.status==="pending")return{status:"pending",originTxHash:f};if(y.status!=="filled"||!y.actionsSucceeded)throw new Error("The name could not be registered on Ethereum; your funds were recovered.");return{status:"registered",originTxHash:f,destinationTxHash:y.destinationTxHash}}return{status:"pending",originTxHash:f}}catch(u){if(console.error("[names] register failed — raw error:",u,{name:i,buyer:h,originConfirmed:a}),u instanceof Wt)return{status:"pending",originTxHash:u.txHash};if(p&&!a&&await Je(l,[p]).catch(()=>{}),u instanceof Be)throw u;const b=new Error(Ut(u,"Couldn't register the name. Please try again.",{sale:!0}));throw b.cause=u,b}}const sn=n.div`
|
|
2
2
|
position: fixed;
|
|
3
3
|
inset: 0;
|
|
4
4
|
z-index: 10000;
|
|
@@ -366,7 +366,7 @@ import{b as ze,r as m,j as e,u as Ve}from"./react-vyZjIDcS.js";import{c as B,av
|
|
|
366
366
|
flex: none;
|
|
367
367
|
color: ${t.colors.dclRed};
|
|
368
368
|
}
|
|
369
|
-
`;function Sn({name:o,priceCredits:i,onClose:l}){const{session:x}=Ie(),{data:c,isError:d}=Qe(x),h=Xe(),p=ze(),[a,u]=m.useState("confirm"),[b,w]=m.useState(""),[j,$]=m.useState(null),f=m.useRef(!1),y=b.trim().toLowerCase()===o.toLowerCase(),v=a==="completing",k=i!=null?Ae(i):"—";m.useEffect(()=>{const g=R=>{R.key==="Escape"&&!v&&l()};document.addEventListener("keydown",g);const I=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.removeEventListener("keydown",g),document.body.style.overflow=I}},[v,l]);async function C(){if(!(!x||!y||f.current)){f.current=!0,u("completing"),$(null);try{await nn({name:o,identity:x.identity,signer:x.signer}),K("Shop Completed Purchase",{purchase_type:"name",is_primary:!0,payment_type:"credits",value_credits:i??null}),h.invalidateQueries({queryKey:["usd-balance"]}),h.invalidateQueries({queryKey:["my-assets"]}),u("success")}catch(g){K(nt(g)?"Shop Purchase Cancelled":"Shop Purchase Failed",{step:"submit",error_code:tt(g),purchase_type:"name"}),$((g==null?void 0:g.message)||s("names.errorGeneric")),u("error")}finally{f.current=!1}}}const z=a!=="success",E=Ye(x==null?void 0:x.providerType);return e.jsx(sn,{onClick:v?void 0:l,role:"presentation",children:e.jsxs(on,{role:"dialog","aria-modal":"true","aria-label":s("names.buyTitle"),onClick:g=>g.stopPropagation(),children:[z&&e.jsxs(e.Fragment,{children:[e.jsxs(be,{children:[e.jsx(ye,{children:a==="error"?s("names.errorTitle"):s("names.buyTitle")}),e.jsx(we,{onClick:l,disabled:v,"aria-label":s("buyModal.close"),children:e.jsx(T,{name:"close"})})]}),e.jsxs(je,{children:[s("names.myCreditsBalance")," ",e.jsx(W,{})," ",he(c,d)]}),e.jsx(ve,{})]}),(a==="confirm"||a==="error")&&e.jsxs(e.Fragment,{children:[e.jsxs($e,{children:[e.jsx(Ce,{"aria-hidden":!0,children:"@"}),e.jsxs(ke,{children:[e.jsxs(Se,{children:[o,e.jsx("span",{children:".dcl.eth"})]}),e.jsx(Ee,{children:s("names.subtitle")})]}),e.jsxs(Te,{children:[e.jsx(W,{}),k]})]}),a==="error"?e.jsxs(e.Fragment,{children:[e.jsxs(kn,{children:[e.jsx(T,{name:"info","aria-hidden":!0}),e.jsx("span",{children:j})]}),e.jsx(Re,{onClick:()=>u("confirm"),children:s("names.tryAgain")})]}):e.jsxs(e.Fragment,{children:[e.jsxs(rn,{children:[e.jsx(an,{children:s("names.confirmTitle")}),e.jsx(ln,{dangerouslySetInnerHTML:{__html:s("names.confirmBody",{name:`<b>@${En(o)}</b>`})}}),e.jsxs(cn,{children:[e.jsx(dn,{"aria-hidden":!0,children:"@"}),e.jsx(pn,{value:b,onChange:g=>w(g.target.value.replace(/[^a-zA-Z0-9]/g,"")),placeholder:"yourname","aria-label":s("names.reenterAria"),autoComplete:"off",spellCheck:!1,style:{width:`${Math.max(b.length,8)}ch`}}),e.jsx(xn,{children:".dcl.eth"})]})]}),e.jsx(Re,{onClick:()=>void C(),disabled:!y||!x,children:s("names.buyCta")})]})]}),a==="completing"&&e.jsxs(hn,{children:[e.jsx(fn,{src:et,alt:"",width:56,height:56}),e.jsx(mn,{children:E?s("names.confirming"):s("names.completing")}),e.jsxs(un,{children:[e.jsx(gn,{"aria-hidden":!0,children:e.jsx("span",{})}),e.jsx(bn,{children:"1/1"})]})]}),a==="success"&&e.jsxs(e.Fragment,{children:[e.jsxs(be,{children:[e.jsx(ye,{children:s("names.successHeaderTitle")}),e.jsx(we,{onClick:l,"aria-label":s("buyModal.close"),children:e.jsx(T,{name:"close"})})]}),e.jsxs(je,{children:[s("names.myCreditsBalance")," ",e.jsx(W,{})," ",he(c,d)]}),e.jsx(ve,{}),e.jsxs(yn,{children:[e.jsx(wn,{"aria-hidden":!0,children:e.jsx(T,{name:"check"})}),e.jsxs(jn,{children:[e.jsx("b",{children:s("names.successBannerBold")})," ",s("names.successBannerRest")]})]}),e.jsxs($e,{style:{marginTop:20},children:[e.jsx(Ce,{"aria-hidden":!0,children:"@"}),e.jsxs(ke,{children:[e.jsxs(Se,{children:[o,e.jsx("span",{children:".dcl.eth"})]}),e.jsx(Ee,{children:s("names.subtitle")})]}),e.jsxs(Te,{children:[e.jsx(W,{}),k]})]}),e.jsxs(vn,{children:[e.jsx($n,{onClick:()=>{l(),p("/my-assets")},children:s("names.myItems")}),e.jsx(Cn,{href:B.profileUrl,target:"_blank",rel:"noopener noreferrer",children:s("names.assignToAvatar")})]})]})]})})}function En(o){return o.replace(/[&<>"']/g,i=>({"&":"&","<":"<",">":">",'"':""","'":"'"})[i])}const Tn="https://cdn.decentraland.org/@dcl/shop/0.1.0-
|
|
369
|
+
`;function Sn({name:o,priceCredits:i,onClose:l}){const{session:x}=Ie(),{data:c,isError:d}=Qe(x),h=Xe(),p=ze(),[a,u]=m.useState("confirm"),[b,w]=m.useState(""),[j,$]=m.useState(null),f=m.useRef(!1),y=b.trim().toLowerCase()===o.toLowerCase(),v=a==="completing",k=i!=null?Ae(i):"—";m.useEffect(()=>{const g=R=>{R.key==="Escape"&&!v&&l()};document.addEventListener("keydown",g);const I=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.removeEventListener("keydown",g),document.body.style.overflow=I}},[v,l]);async function C(){if(!(!x||!y||f.current)){f.current=!0,u("completing"),$(null);try{await nn({name:o,identity:x.identity,signer:x.signer}),K("Shop Completed Purchase",{purchase_type:"name",is_primary:!0,payment_type:"credits",value_credits:i??null}),h.invalidateQueries({queryKey:["usd-balance"]}),h.invalidateQueries({queryKey:["my-assets"]}),u("success")}catch(g){K(nt(g)?"Shop Purchase Cancelled":"Shop Purchase Failed",{step:"submit",error_code:tt(g),purchase_type:"name"}),$((g==null?void 0:g.message)||s("names.errorGeneric")),u("error")}finally{f.current=!1}}}const z=a!=="success",E=Ye(x==null?void 0:x.providerType);return e.jsx(sn,{onClick:v?void 0:l,role:"presentation",children:e.jsxs(on,{role:"dialog","aria-modal":"true","aria-label":s("names.buyTitle"),onClick:g=>g.stopPropagation(),children:[z&&e.jsxs(e.Fragment,{children:[e.jsxs(be,{children:[e.jsx(ye,{children:a==="error"?s("names.errorTitle"):s("names.buyTitle")}),e.jsx(we,{onClick:l,disabled:v,"aria-label":s("buyModal.close"),children:e.jsx(T,{name:"close"})})]}),e.jsxs(je,{children:[s("names.myCreditsBalance")," ",e.jsx(W,{})," ",he(c,d)]}),e.jsx(ve,{})]}),(a==="confirm"||a==="error")&&e.jsxs(e.Fragment,{children:[e.jsxs($e,{children:[e.jsx(Ce,{"aria-hidden":!0,children:"@"}),e.jsxs(ke,{children:[e.jsxs(Se,{children:[o,e.jsx("span",{children:".dcl.eth"})]}),e.jsx(Ee,{children:s("names.subtitle")})]}),e.jsxs(Te,{children:[e.jsx(W,{}),k]})]}),a==="error"?e.jsxs(e.Fragment,{children:[e.jsxs(kn,{children:[e.jsx(T,{name:"info","aria-hidden":!0}),e.jsx("span",{children:j})]}),e.jsx(Re,{onClick:()=>u("confirm"),children:s("names.tryAgain")})]}):e.jsxs(e.Fragment,{children:[e.jsxs(rn,{children:[e.jsx(an,{children:s("names.confirmTitle")}),e.jsx(ln,{dangerouslySetInnerHTML:{__html:s("names.confirmBody",{name:`<b>@${En(o)}</b>`})}}),e.jsxs(cn,{children:[e.jsx(dn,{"aria-hidden":!0,children:"@"}),e.jsx(pn,{value:b,onChange:g=>w(g.target.value.replace(/[^a-zA-Z0-9]/g,"")),placeholder:"yourname","aria-label":s("names.reenterAria"),autoComplete:"off",spellCheck:!1,style:{width:`${Math.max(b.length,8)}ch`}}),e.jsx(xn,{children:".dcl.eth"})]})]}),e.jsx(Re,{onClick:()=>void C(),disabled:!y||!x,children:s("names.buyCta")})]})]}),a==="completing"&&e.jsxs(hn,{children:[e.jsx(fn,{src:et,alt:"",width:56,height:56}),e.jsx(mn,{children:E?s("names.confirming"):s("names.completing")}),e.jsxs(un,{children:[e.jsx(gn,{"aria-hidden":!0,children:e.jsx("span",{})}),e.jsx(bn,{children:"1/1"})]})]}),a==="success"&&e.jsxs(e.Fragment,{children:[e.jsxs(be,{children:[e.jsx(ye,{children:s("names.successHeaderTitle")}),e.jsx(we,{onClick:l,"aria-label":s("buyModal.close"),children:e.jsx(T,{name:"close"})})]}),e.jsxs(je,{children:[s("names.myCreditsBalance")," ",e.jsx(W,{})," ",he(c,d)]}),e.jsx(ve,{}),e.jsxs(yn,{children:[e.jsx(wn,{"aria-hidden":!0,children:e.jsx(T,{name:"check"})}),e.jsxs(jn,{children:[e.jsx("b",{children:s("names.successBannerBold")})," ",s("names.successBannerRest")]})]}),e.jsxs($e,{style:{marginTop:20},children:[e.jsx(Ce,{"aria-hidden":!0,children:"@"}),e.jsxs(ke,{children:[e.jsxs(Se,{children:[o,e.jsx("span",{children:".dcl.eth"})]}),e.jsx(Ee,{children:s("names.subtitle")})]}),e.jsxs(Te,{children:[e.jsx(W,{}),k]})]}),e.jsxs(vn,{children:[e.jsx($n,{onClick:()=>{l(),p("/my-assets")},children:s("names.myItems")}),e.jsx(Cn,{href:B.profileUrl,target:"_blank",rel:"noopener noreferrer",children:s("names.assignToAvatar")})]})]})]})})}function En(o){return o.replace(/[&<>"']/g,i=>({"&":"&","<":"<",">":">",'"':""","'":"'"})[i])}const Tn="https://cdn.decentraland.org/@dcl/shop/0.1.0-30633401379.commit-5cd1c31/assets/identity-B4DXDuJP.webp",Rn="https://cdn.decentraland.org/@dcl/shop/0.1.0-30633401379.commit-5cd1c31/assets/world-B-9aPlxu.webp",_n="https://cdn.decentraland.org/@dcl/shop/0.1.0-30633401379.commit-5cd1c31/assets/invite-BfwIhP2C.webp",zn="https://cdn.decentraland.org/@dcl/shop/0.1.0-30633401379.commit-5cd1c31/assets/governance-DnazlIjy.webp",In=n.div`
|
|
370
370
|
width: 100%;
|
|
371
371
|
min-width: 0;
|
|
372
372
|
`,An=n.nav`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as $,j as t}from"./react-vyZjIDcS.js";import{R as C,a as oe,C as ie,b as ne}from"./categories-
|
|
1
|
+
import{r as $,j as t}from"./react-vyZjIDcS.js";import{R as C,a as oe,C as ie,b as ne}from"./categories-CUWn-vWY.js";import{n as c,T as se}from"./Tooltip-v8d4_GhH.js";import{t as e,s as o,I as g,e as s,o as ae,h as v}from"./index-BMIuNfCB.js";const re=o.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
gap: 12px;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as t,L as R,r as M}from"./react-vyZjIDcS.js";import{s as a,B as N,t as o,x as I,m as F,e,n as B,y as W,I as f,z as G,D as K,u as w,E as P,c as Q,F as k,l as H,q as $}from"./index-
|
|
1
|
+
import{j as t,L as R,r as M}from"./react-vyZjIDcS.js";import{s as a,B as N,t as o,x as I,m as F,e,n as B,y as W,I as f,z as G,D as K,u as w,E as P,c as Q,F as k,l as H,q as $}from"./index-BMIuNfCB.js";import{a as O,b as _,c as X,d as J,s as U,f as V}from"./authorizations-uQp0Tner.js";import{a as Y}from"./builder-BH8bW8w3.js";import{f as Z}from"./errors-BHapDldI.js";import"./sentry-B35L1FdR.js";import"./dcl-schemas-BICTSpB5.js";import"./ethers-CXBJm_wN.js";import"./intl-CBcMB1D2.js";import"./sendMetaTransaction-DAsHliEn.js";const tt=I`
|
|
2
2
|
to { transform: rotate(360deg); }
|
|
3
3
|
`,it=I`
|
|
4
4
|
to { background-position: -200% 0; }
|