@dcl/shop 0.1.0-30794926068.commit-4278f4b → 0.1.0-30813458527.commit-cc499d5
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-DXZWPl9B.js → Activity-CxsvBN20.js} +1 -1
- package/_assets/{AnimatedBackground-BWDZS3ys.js → AnimatedBackground-D0y72t9M.js} +2 -2
- package/_assets/{Assets-03rZvozv.js → Assets-D8si3sZ5.js} +2 -2
- package/_assets/{Assets.styles-Bj5TNZMl.js → Assets.styles-AEPf2r3Y.js} +1 -1
- package/_assets/{Authorizations-DiDDWPyP.js → Authorizations-DSO6XBbd.js} +1 -1
- package/_assets/{Cart-DHKUyct-.js → Cart-DJqc4G2j.js} +2 -2
- package/_assets/{CircularProgress-BkSPSlqx.js → CircularProgress-C13MShjX.js} +1 -1
- package/_assets/{Collection-DoUiXWmW.js → Collection-BJmkOAmz.js} +1 -1
- package/_assets/{CollectionCarousel-CjQdetDR.js → CollectionCarousel-DtJfS8l_.js} +13 -13
- package/_assets/{Creator-C0jlL2IB.js → Creator-imxcySRU.js} +1 -1
- package/_assets/{ErrorNotice-ywRx-RWM.js → ErrorNotice-B3GGjAal.js} +1 -1
- package/_assets/{ExchangeController-CSEcVdqM.js → ExchangeController-Deb6Cqkk.js} +1 -1
- package/_assets/{GetCredits-DsBNpqYQ.js → GetCredits-3iJxbIXL.js} +1 -1
- package/_assets/{HelpersUtil-BXjHyjST.js → HelpersUtil-Ct71ylaH.js} +1 -1
- package/_assets/{ImportListings-DKkQIcpB.js → ImportListings-CysVo_C5.js} +1 -1
- package/_assets/ItemDetail-qSRZvylV.js +3354 -0
- package/_assets/{LoadMore-BHGUNaFh.js → LoadMore-iCZq5YhT.js} +1 -1
- package/_assets/{MenuList-Yv4Jv_Qf.js → MenuList-D-wj9iyq.js} +1 -1
- package/_assets/{MyAssets-B046I-i6.js → MyAssets-BGJes9K7.js} +1 -1
- package/_assets/{MyFavorites-CXiamV3w.js → MyFavorites-D0LdtkVP.js} +1 -1
- package/_assets/{NotFound-DgHF--ht.js → NotFound-hugEC97o.js} +1 -1
- package/_assets/{NotificationsBell-BUkucKTr.js → NotificationsBell-BHorDEGF.js} +1 -1
- package/_assets/{StoreSettings-Cx-gTS2G.js → StoreSettings-CMHSUr42.js} +1 -1
- package/_assets/{Success-ewg-Qef0.js → Success-CY8hl7ch.js} +1 -1
- package/_assets/{SwapController-9xF497bi.js → SwapController-qVB0S25h.js} +1 -1
- package/_assets/{Tooltip-HkGmvhK_.js → Tooltip-b-BExcRW.js} +1 -1
- package/_assets/{TradeService-mtpqKEPH.js → TradeService-BPEZVNU6.js} +1 -1
- package/_assets/{W3MFrameProviderSingleton-CkqX3tlx.js → W3MFrameProviderSingleton-Dtr756Hr.js} +3 -3
- package/_assets/{WebCryptoP256-D7Kv_ZpD.js → WebCryptoP256-BhKakaeM.js} +1 -1
- package/_assets/{authorizations-Ddpm2M8G.js → authorizations-Dx2NKBb5.js} +1 -1
- package/_assets/{basic-DwiWthIO.js → basic-CJt0jDmr.js} +1 -1
- package/_assets/{biconomy-F_R4R3yX.js → biconomy-T7JumC4_.js} +1 -1
- package/_assets/{browseLayout.styles-Bk0I8jml.js → browseLayout.styles-tmq9_vR5.js} +1 -1
- package/_assets/{builder-D1DE-Vei.js → builder-CFZdgSZs.js} +1 -1
- package/_assets/buy-DuTWH65R.js +1 -0
- package/_assets/buy-gasless-wHq51ZTc.js +1 -0
- package/_assets/{categories-C97zRl8h.js → categories-CD-OSEZt.js} +1 -1
- package/_assets/{ccip-EOlhJy2u.js → ccip-BivLB9gG.js} +1 -1
- package/_assets/{ccip-3yUaU8or.js → ccip-DoaE0hOT.js} +1 -1
- package/_assets/{clsx-CV3G3zJW.js → clsx-0LWWP5i_.js} +1 -1
- package/_assets/{controller-DNCB3ArR.js → controller-9PVjfba2.js} +2 -2
- package/_assets/{core-z1-KcJjy.js → core-BTdjkFch.js} +4 -4
- package/_assets/{createSvgIcon-CsatjOvg.js → createSvgIcon-D9jHPdux.js} +1 -1
- package/_assets/{custom-bVCwTEFJ.js → custom-BKNS6gp3.js} +1 -1
- package/_assets/{data-capture-BU7NLSzn.js → data-capture-DdQ8dCzE.js} +1 -1
- package/_assets/{email-4YXoDaVA.js → email-CjtheE2y.js} +1 -1
- package/_assets/{embedded-wallet-Byk6TthZ.js → embedded-wallet-DkeYFyRc.js} +1 -1
- package/_assets/{emotion-styled.browser.esm-BW4blsXx.js → emotion-styled.browser.esm-3fzuzAPq.js} +1 -1
- package/_assets/{engine-CzK5RkY8.js → engine-CFcm3NIk.js} +1 -1
- package/_assets/{errors-U58AY0Yd.js → errors-DJf-Qylg.js} +1 -1
- package/_assets/{estimate-l1-fee-BLVsM0ax.js → estimate-l1-fee-BarRwb0r.js} +1 -1
- package/_assets/{execute-CGiJRjAx.js → execute-DYPmuasH.js} +2 -2
- package/_assets/{features-CMNrwDkC.js → features-CfNCL2bw.js} +1 -1
- package/_assets/{fetchTokenMetadata-BzJBMoSn.js → fetchTokenMetadata-CTkyzdct.js} +2 -2
- package/_assets/{get-ecosystem-wallet-info-DcvHDTU9.js → get-ecosystem-wallet-info-A7ytxF-D.js} +1 -1
- package/_assets/{getBalance-MRPvNYTT.js → getBalance-aghcyelp.js} +1 -1
- package/_assets/{getNFT-dUB_FDA7.js → getNFT-CIWLFkZu.js} +1 -1
- package/_assets/{getNFT-D256tpMr.js → getNFT-DMOn73ka.js} +1 -1
- package/_assets/{getThemeProps-Dff8F334.js → getThemeProps-DVQeV25q.js} +1 -1
- package/_assets/{grid.styles-Bkrb-TkJ.js → grid.styles-BpZ1817m.js} +1 -1
- package/_assets/{hashTypedData-D0hXyQHj.js → hashTypedData-SkVaYhyw.js} +1 -1
- package/_assets/{hashTypedData-DZPOImvl.js → hashTypedData-YPZ9IlSb.js} +1 -1
- package/_assets/{import-Qlyp1LqH.js → import-qCSkBOj-.js} +1 -1
- package/_assets/{in-app-B53cTEVa.js → in-app-C4noNECc.js} +1 -1
- package/_assets/{in-app-wallet-calls-Yv_RGnEZ.js → in-app-wallet-calls-VPdGHVW8.js} +1 -1
- package/_assets/{index-MJUUYcbS.js → index-2Cw0hroC.js} +1 -1
- package/_assets/{index-BTTaQio9.js → index-6uqi5KHx.js} +1 -1
- package/_assets/{index-3nuVfpg8.js → index-B1aInHpy.js} +1 -1
- package/_assets/{index-Cc7k7lcX.js → index-B1rDTheF.js} +1 -1
- package/_assets/{index-Be_RivG2.js → index-B39CZSuL.js} +1 -1
- package/_assets/{index-DuwRBVLG.js → index-B6S_KzsR.js} +1 -1
- package/_assets/{index-BGfExzZ-.js → index-BFGbpWph.js} +1 -1
- package/_assets/{index-2kKv26Uu.js → index-BKSlJ9ei.js} +1 -1
- package/_assets/{index-4LQsBWAZ.js → index-Bevf2eJE.js} +3 -3
- package/_assets/{index-D0e4t4iy.js → index-Bhr-PItW.js} +3 -3
- package/_assets/{index-DHzHpUq2.js → index-BjPp8NbJ.js} +1 -1
- package/_assets/{index-CDTZrjVv.js → index-BmAak5JD.js} +47 -47
- package/_assets/{index-DKA4OOZR.js → index-Br7jQo8P.js} +1 -1
- package/_assets/{index-3h1FAg4f.js → index-CGQR-fvo.js} +1 -1
- package/_assets/{index-dxyBU-xj.js → index-CGxXsjoZ.js} +1 -1
- package/_assets/{index-DA_8FjFL.js → index-CPWA15u_.js} +2 -2
- package/_assets/{index-B9zDCgz_.js → index-CPxcnhQK.js} +3 -3
- package/_assets/{index-MgSjuVcg.js → index-CWyW5j0v.js} +1 -1
- package/_assets/{index-CESfD7Dn.js → index-CZDSKoAd.js} +1 -1
- package/_assets/{index-C5idlRRq.js → index-CaFi06o5.js} +2 -2
- package/_assets/{index-DtxCOCkJ.js → index-CeVlwuRc.js} +1 -1
- package/_assets/{index-C8M0XjhY.js → index-ChZJN6r2.js} +1 -1
- package/_assets/{index-DB_jtsXB.js → index-Cj0f9SlS.js} +1 -1
- package/_assets/{index-BXiHdpt2.js → index-Cs0yydjd.js} +1 -1
- package/_assets/{index-BH0lM38j.js → index-Cu2xiB_L.js} +1 -1
- package/_assets/{index-vY6OD_yK.js → index-Cw5lanrG.js} +1 -1
- package/_assets/{index-Cs3rNUrn.js → index-D9YmxVig.js} +1 -1
- package/_assets/{index-B8MLW5XL.js → index-DD1za60t.js} +2 -2
- package/_assets/{index-Dopwj4pW.js → index-DIPhoGHC.js} +1 -1
- package/_assets/{index-Dav9leOl.js → index-DKcWksMi.js} +1 -1
- package/_assets/{index-iucHa4qn.js → index-DQn2arYs.js} +1 -1
- package/_assets/{index-BHPM_7yO.js → index-DVJEm8La.js} +1 -1
- package/_assets/{index-UUDeK9Tc.js → index-Da9WMHI9.js} +1 -1
- package/_assets/{index-DYfrIa97.js → index-DhbvVVkn.js} +1 -1
- package/_assets/{index-DDV_SI2L.js → index-DjQhBcgA.js} +1 -1
- package/_assets/{index-DE9ye2m3.js → index-DoKC2wXS.js} +1 -1
- package/_assets/{index-IMevtkMq.js → index-DpO3OIoY.js} +1 -1
- package/_assets/{index-Z_py68_F.js → index-Dsjm8ZvE.js} +1 -1
- package/_assets/{index-BcKoddCZ.js → index-Dvn2AsC7.js} +1 -1
- package/_assets/{index-D_VPd8qA.js → index-Gj0KHkh8.js} +1 -1
- package/_assets/{index-prNIRcX2.js → index-MGn_OYs-.js} +1 -1
- package/_assets/{index-ys3DhS5o.js → index-ML0Uo63p.js} +1 -1
- package/_assets/{index-BGhoTuLp.js → index-NXA2flcd.js} +1 -1
- package/_assets/{index-B0loSmeS.js → index-PYF9Izzb.js} +1 -1
- package/_assets/{index-DRB4qK4L.js → index-Stuzjahu.js} +1 -1
- package/_assets/{index-DQypozl5.js → index-T5-4jvLa.js} +1 -1
- package/_assets/{index-B257Cwnk.js → index-WQ1OIVhO.js} +1 -1
- package/_assets/{index-DhM5fiak.js → index-o7eGe_sS.js} +1 -1
- package/_assets/{index-B0k9pgJu.js → index-quy3RQHq.js} +1 -1
- package/_assets/{index-Qfv0FX9U.js → index-sPwhXcpA.js} +1 -1
- package/_assets/{index-4vOWHL3E.js → index-vki2Q3KP.js} +1 -1
- package/_assets/{index.es-SLOw0jdd.js → index.es-1u3hWCh1.js} +1 -1
- package/_assets/{index.es-CEkZSNvF.js → index.es-45WMhDAo.js} +4 -4
- package/_assets/{index.es-0Dt_gFeq.js → index.es-f_s7qfMx.js} +1 -1
- package/_assets/{localBatchGatewayRequest-C5pz9SPP.js → localBatchGatewayRequest-CCYFUgFc.js} +1 -1
- package/_assets/{mana-convert-BlqE8P46.js → mana-convert-Crnirov_.js} +1 -1
- package/_assets/{mana-rate-Dky_ftDN.js → mana-rate-CRle9ZrD.js} +1 -1
- package/_assets/{networks-G5OypEK5.js → networks-BqFUuZ0w.js} +1 -1
- package/_assets/{onramp-_kisBKVp.js → onramp-C6iSoSVx.js} +1 -1
- package/_assets/{openzeppelin-Br7hJD4f.js → openzeppelin-BiDlqy0y.js} +1 -1
- package/_assets/{parseNft-DIvUUE9T.js → parseNft-DulTk-x_.js} +2 -2
- package/_assets/{parseSignature-Dr3EWiGQ.js → parseSignature-BdLRJSJg.js} +3 -3
- package/_assets/{parseSignature-DRo9AMPl.js → parseSignature-D96sIiVZ.js} +1 -1
- package/_assets/{passkeys-O7iCWWpc.js → passkeys-BHvyIG4Q.js} +1 -1
- package/_assets/{pay-with-exchange-DIRym2b2.js → pay-with-exchange-BIqlqVPK.js} +1 -1
- package/_assets/{qr-overlay-Dm3RN-Y9.js → qr-overlay-loC-oU5o.js} +1 -1
- package/_assets/{receive-CkPIf7UU.js → receive-CtP3DJf1.js} +1 -1
- package/_assets/{resolveImplementation-t6n-CETb.js → resolveImplementation-DdFj9QtK.js} +1 -1
- package/_assets/{rpc-4mpit2wU.js → rpc-CNMxnegl.js} +1 -1
- package/_assets/{secp256k1-DDy8BVBT.js → secp256k1-BFoTwxK4.js} +1 -1
- package/_assets/{secp256k1-Dozw6gaZ.js → secp256k1-C34V2wdj.js} +1 -1
- package/_assets/{secp256k1-B97D-L_p.js → secp256k1-vV9g-lSn.js} +1 -1
- package/_assets/{send-CvVqkxnN.js → send-D4iuSnyw.js} +1 -1
- package/_assets/{send-batch-transaction-CTHFijvg.js → send-batch-transaction-DanFhYcq.js} +1 -1
- package/_assets/{send-eip712-transaction-DT8a5DJ9.js → send-eip712-transaction-C2YSdo9z.js} +2 -2
- package/_assets/{send-gasless-transaction-Bl3Tj5g8.js → send-gasless-transaction-DtIueys-.js} +2 -2
- package/_assets/{send-transaction-WleFGuB4.js → send-transaction-CsWJUB7a.js} +2 -2
- package/_assets/{sendMetaTransaction-DxIpBQwQ.js → sendMetaTransaction-3Pxc3l1u.js} +1 -1
- package/_assets/{sendRawTransaction-B0cfd9MO.js → sendRawTransaction-CJTB4v_A.js} +3 -3
- package/_assets/{serializeTransaction-DQIf7uW6.js → serializeTransaction-agVq1pAS.js} +1 -1
- package/_assets/{session-proposal-BtAUF-RM.js → session-proposal-CyeWkfv2.js} +1 -1
- package/_assets/{session-request-Bd3kENH6.js → session-request-CAevl0WJ.js} +2 -2
- package/_assets/{signing-pcd4qnft.js → signing-CPZ1tYFI.js} +3 -3
- package/_assets/{socials-Bcqeka-k.js → socials-TA-JHdLu.js} +1 -1
- package/_assets/{swaps-CGY6gELc.js → swaps-Bmal1Fs1.js} +1 -1
- package/_assets/{thirdweb-D-klkEeA.js → thirdweb-CjjslBds.js} +3 -3
- package/_assets/{to-serializable-transaction-CXyiyWtq.js → to-serializable-transaction-DTT2fMSp.js} +2 -2
- package/_assets/{trade-encoding-xmHYQml9.js → trade-encoding-DWLcKMhp.js} +1 -1
- package/_assets/{transactionReceipt-D-88nnil.js → transactionReceipt-DyOSb2PB.js} +1 -1
- package/_assets/{transactions-Bhpxeo2U.js → transactions-B3Y9zh32.js} +1 -1
- package/_assets/{useCreditPacks-CAlG07hz.js → useCreditPacks-DTrrpAKh.js} +1 -1
- package/_assets/{useInfiniteGrid-DjT7_CqC.js → useInfiniteGrid-DRcJ2aXq.js} +1 -1
- package/_assets/useManaRate-mPMFXrOq.js +1 -0
- package/_assets/{useSecondarySales-B4UlHMlc.js → useSecondarySales-BDv0sALu.js} +1 -1
- package/_assets/{useStore-DXCX4jx9.js → useStore-yvEEJYst.js} +1 -1
- package/_assets/{useTheme-pPLZq-Tt.js → useTheme-BIyMXd6y.js} +1 -1
- package/_assets/{verifyHash-BH1rw6RI.js → verifyHash-0hAKs_aC.js} +1 -1
- package/_assets/{w3m-modal-Br0_E_DK.js → w3m-modal-BTpGO70G.js} +1 -1
- package/_assets/{w3m-modal-CqRk4_Iz.js → w3m-modal-CT07sCv-.js} +1 -1
- package/_assets/{wait-for-tx-receipt-BMNHoTAt.js → wait-for-tx-receipt-2h3sZmZD.js} +1 -1
- package/_assets/{wallets-D1pAqaBf.js → wallets-CkmaxCIF.js} +5 -5
- package/_assets/{web-connector-BmiVZ0GM.js → web-connector-Da9LUqmR.js} +3 -3
- package/_assets/{writeContract-C69hgKKU.js → writeContract-BAk3UVhy.js} +1 -1
- package/_assets/{zoraTestnet-DOlLNZN4.js → zoraTestnet-ClUl2HjD.js} +1 -1
- package/index.html +11 -11
- package/package.json +2 -2
- package/_assets/ItemDetail-D9gJm74l.js +0 -3354
- package/_assets/buy-DcduCRwT.js +0 -1
- package/_assets/buy-gasless-BGKNIV53.js +0 -1
- package/_assets/useManaRate-BwucLRUa.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
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-
|
|
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-BmAak5JD.js";import{m as bt}from"./mana-convert-Crnirov_.js";import{u as jt}from"./useManaRate-mPMFXrOq.js";import{L as vt}from"./LoadMore-iCZq5YhT.js";import{u as y}from"./useInfiniteGrid-DRcJ2aXq.js";import"./sentry-B35L1FdR.js";import"./dcl-schemas-BICTSpB5.js";import"./ethers-CXBJm_wN.js";import"./intl-CBcMB1D2.js";import"./mana-rate-CRle9ZrD.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-30813458527.commit-cc499d5/_assets/credits-product-vs4Q6u6l.svg",F=ut`
|
|
2
2
|
0% { background-position: 200% 0; }
|
|
3
3
|
100% { background-position: -200% 0; }
|
|
4
4
|
`,St=l.section`
|
|
@@ -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-BmAak5JD.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-30813458527.commit-cc499d5/_assets/custom-welcome-background-BxlFQma9.webp",b="https://cdn.decentraland.org/@dcl/shop/0.1.0-30813458527.commit-cc499d5/_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"),_=e.getUniformLocation(a,"u_resolution"),y=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(_,r.width,r.height),e.activeTexture(e.TEXTURE0),e.bindTexture(e.TEXTURE_2D,f),e.uniform1i(y,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 _,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 _,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-BmAak5JD.js";import{u as rt}from"./useSecondarySales-BDv0sALu.js";import{a as at,m as Me}from"./mana-convert-Crnirov_.js";import{u as Pe}from"./useManaRate-mPMFXrOq.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-AEPf2r3Y.js";import{c as me,R as Et,F as _t,S as Tt}from"./categories-CD-OSEZt.js";import{L as Rt}from"./LoadMore-iCZq5YhT.js";import{u as zt}from"./useInfiniteGrid-DRcJ2aXq.js";import{E as It}from"./ErrorNotice-B3GGjAal.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-wHq51ZTc.js";import{s as Bt}from"./buy-DuTWH65R.js";import{i as Ft}from"./trade-encoding-DWLcKMhp.js";import{r as Lt}from"./mana-rate-CRle9ZrD.js";import{f as Ut}from"./errors-DJf-Qylg.js";import{J as Ht,C as Ot,B as ee}from"./ethers-CXBJm_wN.js";import{n as Gt}from"./Tooltip-b-BExcRW.js";import{G as Dt}from"./grid.styles-BpZ1817m.js";import"./sentry-B35L1FdR.js";import"./intl-CBcMB1D2.js";import"./authorizations-Dx2NKBb5.js";import"./sendMetaTransaction-3Pxc3l1u.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=T=>{T.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(_,{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(_e,{children:[e.jsx(W,{}),k]})]}),a==="error"?e.jsxs(e.Fragment,{children:[e.jsxs(kn,{children:[e.jsx(_,{name:"info","aria-hidden":!0}),e.jsx("span",{children:j})]}),e.jsx(Te,{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(Te,{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(_,{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(_,{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(_e,{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 _n="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=T=>{T.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(_,{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(_e,{children:[e.jsx(W,{}),k]})]}),a==="error"?e.jsxs(e.Fragment,{children:[e.jsxs(kn,{children:[e.jsx(_,{name:"info","aria-hidden":!0}),e.jsx("span",{children:j})]}),e.jsx(Te,{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(Te,{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(_,{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(_,{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(_e,{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 _n="https://cdn.decentraland.org/@dcl/shop/0.1.0-30813458527.commit-cc499d5/_assets/identity-B4DXDuJP.webp",Tn="https://cdn.decentraland.org/@dcl/shop/0.1.0-30813458527.commit-cc499d5/_assets/world-B-9aPlxu.webp",Rn="https://cdn.decentraland.org/@dcl/shop/0.1.0-30813458527.commit-cc499d5/_assets/invite-BfwIhP2C.webp",zn="https://cdn.decentraland.org/@dcl/shop/0.1.0-30813458527.commit-cc499d5/_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-CD-OSEZt.js";import{n as c,T as se}from"./Tooltip-b-BExcRW.js";import{t as e,s as o,I as g,e as s,o as ae,h as v}from"./index-BmAak5JD.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-BmAak5JD.js";import{a as O,b as _,c as X,d as J,s as U,f as V}from"./authorizations-Dx2NKBb5.js";import{a as Y}from"./builder-CFZdgSZs.js";import{f as Z}from"./errors-DJf-Qylg.js";import"./sentry-B35L1FdR.js";import"./dcl-schemas-BICTSpB5.js";import"./ethers-CXBJm_wN.js";import"./intl-CBcMB1D2.js";import"./sendMetaTransaction-3Pxc3l1u.js";const tt=I`
|
|
2
2
|
to { transform: rotate(360deg); }
|
|
3
3
|
`,it=I`
|
|
4
4
|
to { background-position: -200% 0; }
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as e,L as Se,r as P,b as ea,a as ta}from"./react-vyZjIDcS.js";import{t as le,s as i,e as s,J as de,aj as aa,G as sa,I as H,z as Mt,H as Qe,m as na,ak as U,Q as dt,n as ia,u as ra,al as oa,E as ca,am as da,an as la,ao as ua,ap as ha,y as pa,aq as lt,ar as G,as as ut,at as ga,l as ae,c as ht,au as xa,h as ma,av as pt,aw as _e,ax as ye,ay as be,az as gt,a as ve,b as fa,C as We,aA as ya}from"./index-
|
|
1
|
+
import{j as e,L as Se,r as P,b as ea,a as ta}from"./react-vyZjIDcS.js";import{t as le,s as i,e as s,J as de,aj as aa,G as sa,I as H,z as Mt,H as Qe,m as na,ak as U,Q as dt,n as ia,u as ra,al as oa,E as ca,am as da,an as la,ao as ua,ap as ha,y as pa,aq as lt,ar as G,as as ut,at as ga,l as ae,c as ht,au as xa,h as ma,av as pt,aw as _e,ax as ye,ay as be,az as gt,a as ve,b as fa,C as We,aA as ya}from"./index-BmAak5JD.js";import{M as ba,S as va,C as wa,H as Ca,a as ja,T as ka,X as $a,b as Sa,B as Ma,c as Ta,d as xt,e as Ia,f as ke,P as Tt,m as Pa,g as za,h as Aa,i as Ea,j as It,k as $e,L as qa,l as Ba,n as mt,o as ft,W as Ra,p as _a,q as Wa,A as Fa,r as La,s as Ka,t as Na,u as Qa,v as Ua,w as Ha,x as Oa,y as Va,z as Ga,D as Da,E as Ya,F as Ja,G as Xa,I as Za,J as es,K as Fe,N as ts,O as as,Q as ss,R as ns,U as yt,V as bt,Y as is,Z as rs,_ as os}from"./CollectionCarousel-DtJfS8l_.js";import{u as cs}from"./useManaRate-mPMFXrOq.js";import{r as ds}from"./mana-rate-CRle9ZrD.js";import{i as ls,j as us,f as hs,n as ps,h as gs,A as xs}from"./authorizations-Dx2NKBb5.js";import{g as ms,b as Le}from"./buy-DuTWH65R.js";import{b as fs,w as ys,S as vt,G as bs}from"./buy-gasless-wHq51ZTc.js";import{u as vs,M as ws,R as we,r as Cs,c as js,p as wt}from"./useCreditPacks-DTrrpAKh.js";import{i as ks,a as $s}from"./errors-DJf-Qylg.js";import{E as Ss}from"./ErrorNotice-B3GGjAal.js";import{u as Ct}from"./mana-convert-Crnirov_.js";import"./sentry-B35L1FdR.js";import"./dcl-schemas-BICTSpB5.js";import"./ethers-CXBJm_wN.js";import"./intl-CBcMB1D2.js";import"./trade-encoding-DWLcKMhp.js";import"./sendMetaTransaction-3Pxc3l1u.js";const{colors:se,radius:Ms}=le,Ts=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,b as ea,a as ta}from"./react-vyZjIDcS.js";import{t
|
|
|
58
58
|
font-weight: 700;
|
|
59
59
|
color: ${se.text};
|
|
60
60
|
}
|
|
61
|
-
`,Es="https://cdn.decentraland.org/@dcl/shop/0.1.0-
|
|
61
|
+
`,Es="https://cdn.decentraland.org/@dcl/shop/0.1.0-30813458527.commit-cc499d5/_assets/buy-error-22UunaPC.png";function qs(o){const{phase:l,balanceCredits:I,onClose:z}=o,W=l==="processing",D=l==="error"?s("cartCheckout.errorTitle"):l==="nofunds"?s("cartCheckout.titleNoFunds"):l==="choose"?s("buyModal.choosePayment"):s("cartCheckout.titleBuy"),Y=l==="processing";return e.jsxs(ba,{role:"dialog","aria-modal":"true","aria-label":s("cartCheckout.dialogAria"),children:[e.jsx(va,{onClick:W?void 0:z,"aria-hidden":!0}),e.jsxs(wa,{"data-tall":Y||void 0,children:[e.jsxs(Ca,{children:[e.jsxs(ja,{children:[e.jsx(ka,{children:D}),!W&&e.jsx($a,{onClick:z,"aria-label":s("buyModal.close"),children:e.jsx(Sa,{})})]}),e.jsxs(Ma,{children:[e.jsx(Ta,{children:l==="nofunds"?s("buyModal.dclBalance"):s("buyModal.myCreditsBalance")}),e.jsx(xt,{}),e.jsx(Ia,{children:de(I)})]})]}),l==="choose"&&e.jsxs(ke,{children:[e.jsxs(As,{children:[e.jsx("span",{children:s("cart.purchaseSummary")}),e.jsxs("strong",{children:[e.jsx(xt,{}),de(o.totalCredits??0)]})]}),e.jsx(Tt,{options:o.options??[],totalCents:o.totalCents??0,onPay:o.onPay??(()=>{}),rateNote:(()=>{const A=Pa(o.totalCents??0,o.totalManaWei??0n);return A!=null?s("buyModal.manaRate",{mana:A.toLocaleString("en",{maximumFractionDigits:2})}):null})()})]}),l==="processing"&&e.jsx(Bs,{stage:o.stage??"reserving",step:o.step??1,total:o.total??1,isSelfCustody:!!o.isSelfCustody,signatures:o.signatures}),l==="nofunds"&&e.jsx(Rs,{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(ke,{children:[e.jsxs(za,{"data-testid":"buy-error",children:[e.jsx(Aa,{src:Es,alt:"",width:64,height:80}),e.jsxs(Ea,{children:[e.jsx("b",{children:s("cartCheckout.errorHeadline")})," ",o.message??s("cartCheckout.errorBody")]})]}),e.jsxs(It,{children:[e.jsx($e,{"data-variant":"outline",onClick:z,children:s("buyModal.cancel")}),e.jsx($e,{"data-variant":"purple",onClick:o.onRetry??z,children:s("cartCheckout.tryAgain")})]})]})]})]})}function Bs({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?s("cartCheckout.confirmMultiple",{current:W.current,total:W.total}):s("buyModal.confirmToContinue"):s("buyModal.completingTransaction"):o==="settling"?s("buyModal.completingTransaction"):s("cartCheckout.preparing");return e.jsxs(ke,{"data-processing":!0,children:[e.jsx(qa,{src:aa,alt:"",width:61,height:61}),e.jsx(Ba,{children:ne}),D?e.jsxs(Ts,{children:[e.jsx(mt,{"aria-hidden":!0,children:e.jsx(ft,{"data-step":!0,style:{width:`${Y}%`}})}),I>1?e.jsxs(Is,{children:[l,"/",I]}):null]}):e.jsx(mt,{"aria-hidden":!0,children:e.jsx(ft,{})})]})}function Rs({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(ke,{children:[e.jsxs(Ra,{"data-testid":"nofunds-warning",children:[e.jsx(_a,{}),e.jsxs(Wa,{children:[e.jsx("b",{children:s("buyModal.insufficientFunds")})," ",s("buyModal.warningNeedToBuy")," ",e.jsx("b",{children:s("buyModal.warningCreditsAmount",{count:Math.max(0,l)})})," ",s("buyModal.warningToPurchase",{count:ne})]})]}),e.jsx(Ps,{children:o.map(n=>{const L=n.quantity??1;return e.jsxs(Fa,{children:[e.jsx(La,{children:n.item.thumbnail?e.jsx("img",{src:n.item.thumbnail,alt:""}):null}),e.jsxs(Ka,{children:[e.jsxs("div",{children:[e.jsxs(Na,{title:n.item.name,children:[n.item.name||s("buyModal.itemFallback"),L>1?e.jsx(zs,{children:s("cartCheckout.qty",{count:L})}):null]}),n.item.creator?e.jsx(Qa,{address:n.item.creator}):null]}),e.jsxs(Ua,{children:[e.jsx(Ha,{}),e.jsx("span",{children:de(n.priceCredits*L)})]})]})]},n.item.id)})}),e.jsx(Oa,{children:I.map(n=>{const L=n.id===z;return e.jsxs(Va,{"data-testid":"credit-pack","data-on":L||void 0,onClick:()=>W(n.id),children:[e.jsx(Ga,{}),e.jsx(Da,{children:de(n.credits)}),e.jsxs(Ya,{children:["($",n.usd.toFixed(2),")"]})]},n.id)})}),e.jsxs(Ja,{children:[e.jsxs(Xa,{children:[e.jsx(Za,{}),e.jsx("span",{children:de((A==null?void 0:A.credits)??0)})]}),e.jsxs(es,{children:["$",((A==null?void 0:A.usd)??0).toFixed(2)]})]}),e.jsxs(It,{children:[e.jsx($e,{"data-variant":"outline",onClick:Y,children:s("buyModal.cancel")}),e.jsx($e,{"data-variant":"gradient",onClick:D,children:s("buyModal.buy")})]})]})}const{colors:r,gradients:Pt,radius:Z}=le,zt="@media (max-width: 1080px)",T="@media (max-width: 880px)",jt=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{M as N,N as U,O as o,P as n,H as D,x as M}from"./index-
|
|
1
|
+
import{M as N,N as U,O as o,P as n,H as D,x as M}from"./index-BmAak5JD.js";import{r as w,j as g}from"./react-vyZjIDcS.js";import{g as z,a as E,c as I,b as F,s as v}from"./clsx-0LWWP5i_.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 m,e as Y,b as Z}from"./react-vyZjIDcS.js";import{t as v,s as c,af as J,ag as z,I as X,e as a,c as ee,l as te,u as ae,m as re,h as oe,S as E,A as ie,ah as se,ai as ne}from"./index-
|
|
1
|
+
import{j as e,r as m,e as Y,b as Z}from"./react-vyZjIDcS.js";import{t as v,s as c,af as J,ag as z,I as X,e as a,c as ee,l as te,u as ae,m as re,h as oe,S as E,A as ie,ah as se,ai as ne}from"./index-BmAak5JD.js";import{E as ce}from"./ErrorNotice-B3GGjAal.js";import{d as le,g as de,a as pe,P as xe,C as ue,b as me,c as ge,B as he,S as be,M as fe,A as je}from"./browseLayout.styles-tmq9_vR5.js";import{u as ve}from"./useStore-yvEEJYst.js";import{c as F,a as ye,F as Ce,d as we,P as Se,e as ke,H as Ae,S as Ne}from"./categories-CD-OSEZt.js";import{L as $e}from"./LoadMore-iCZq5YhT.js";import{u as Pe}from"./useInfiniteGrid-DRcJ2aXq.js";import{G as Me}from"./grid.styles-BpZ1817m.js";import"./sentry-B35L1FdR.js";import"./dcl-schemas-BICTSpB5.js";import"./ethers-CXBJm_wN.js";import"./intl-CBcMB1D2.js";const Re=c.section`
|
|
2
2
|
position: relative;
|
|
3
3
|
border-radius: ${v.radius.card};
|
|
4
4
|
overflow: hidden;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as t,r as v}from"./react-vyZjIDcS.js";import{s as e,t as o,e as g,z as k,J as j,bd as C,h as G,x as Y,I as Q,l as X,a as W,C as
|
|
1
|
+
import{j as t,r as v}from"./react-vyZjIDcS.js";import{s as e,t as o,e as g,z as k,J as j,bd as C,h as G,x as Y,I as Q,l as X,a as W,C as E,b as J,be as Z,bf as F,A as q}from"./index-BmAak5JD.js";import{s as ee,h as U,A as H,g as K,r as te,m as ne,e as ae}from"./authorizations-Dx2NKBb5.js";import{i as ie}from"./errors-DJf-Qylg.js";import{E as oe}from"./ErrorNotice-B3GGjAal.js";import{a as se}from"./buy-DuTWH65R.js";import{g as re,d as ce}from"./trade-encoding-DWLcKMhp.js";import{s as de,M as le,E as pe}from"./sendMetaTransaction-3Pxc3l1u.js";import{I as he,C as ue}from"./ethers-CXBJm_wN.js";const R="shop:resume_after_signin",xe=900*1e3;function rt(a){try{sessionStorage.setItem(R,JSON.stringify({...a,at:Date.now()}))}catch{}}function ct(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>xe?null:i.type==="cart-checkout"?{type:"cart-checkout"}:{type:"item-buy",path:i.path}}function ge(a,n){return(a+n-1n)/n}function fe(a,n,i){return a<=0||n<=0?0n:a>=n?i:ge(i*BigInt(a),BigInt(n))}function dt(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,d=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 l=n-i,f=fe(l,n,s);d>=f&&c.push({method:"combined",creditsCents:i,manaWei:f})}s>0n&&d>=s&&c.push({method:"mana",creditsCents:0,manaWei:s});const p=((b=c.find(l=>l.method==="credits"))==null?void 0:b.method)??((y=c.find(l=>l.method==="combined"))==null?void 0:y.method)??((w=c.find(l=>l.method==="mana"))==null?void 0:w.method)??null,m=!c.some(l=>l.method==="mana"||l.method==="combined")&&s>0n&&d>0n?{manaWei:d,manaCents:me(d,n,s),priceCents:n}:null;return{options:c,preferred:p,manaShortfall:m}}function me(a,n,i){return Number(a*BigInt(n)/i)}function lt(a,n){let i=Number.isFinite(n)?Math.max(0,Math.trunc(n)):0;return a.map(s=>{const d=Number.isFinite(s)?Math.max(0,Math.trunc(s)):0,c=Math.min(d,i);return i-=c,c})}function z(a){return Number.isFinite(a)?Math.max(0,a)/10:0}function pt(a,n){return a.options.find(i=>i.method===n)??null}function ht(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",be=e.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
gap: 12px;
|
|
@@ -66,7 +66,7 @@ import{j as t,r as v}from"./react-vyZjIDcS.js";import{s as e,t as o,e as g,z as
|
|
|
66
66
|
height: 24px;
|
|
67
67
|
background: ${o.colors.softWhite};
|
|
68
68
|
}
|
|
69
|
-
`,
|
|
69
|
+
`,B=e.span`
|
|
70
70
|
position: relative;
|
|
71
71
|
display: block;
|
|
72
72
|
width: 30px;
|
|
@@ -109,7 +109,7 @@ import{j as t,r as v}from"./react-vyZjIDcS.js";import{s as e,t as o,e as g,z as
|
|
|
109
109
|
line-height: 1.4;
|
|
110
110
|
color: ${o.colors.muted};
|
|
111
111
|
text-align: center;
|
|
112
|
-
`;function ut({options:a,totalCents:n,onPay:i,busy:s=!1,rateNote:d,creditsLabel:c,shortfall:p}){return t.jsxs(be,{children:[a.map(h=>h.method==="credits"?t.jsxs(ye,{type:"button","data-testid":"pay-with-credits",onClick:()=>i("credits"),disabled:s,children:[t.jsx("span",{children:c??g("buyModal.buy")}),t.jsxs(M,{children:[t.jsx(k,{}),t.jsx("span",{children:j(z(h.creditsCents))})]})]},"credits"):h.method==="mana"?t.jsxs(N,{type:"button","data-testid":"pay-with-mana",onClick:()=>i("mana"),disabled:s,children:[t.jsx("span",{children:g("buyModal.buyWithMana")}),t.jsxs(M,{children:[t.jsx(
|
|
112
|
+
`;function ut({options:a,totalCents:n,onPay:i,busy:s=!1,rateNote:d,creditsLabel:c,shortfall:p}){return t.jsxs(be,{children:[a.map(h=>h.method==="credits"?t.jsxs(ye,{type:"button","data-testid":"pay-with-credits",onClick:()=>i("credits"),disabled:s,children:[t.jsx("span",{children:c??g("buyModal.buy")}),t.jsxs(M,{children:[t.jsx(k,{}),t.jsx("span",{children:j(z(h.creditsCents))})]})]},"credits"):h.method==="mana"?t.jsxs(N,{type:"button","data-testid":"pay-with-mana",onClick:()=>i("mana"),disabled:s,children:[t.jsx("span",{children:g("buyModal.buyWithMana")}),t.jsxs(M,{children:[t.jsx(B,{children:t.jsx("img",{src:T,alt:"","aria-hidden":!0})}),t.jsx("span",{children:C(h.manaWei)})]})]},"mana"):t.jsxs(N,{type:"button","data-testid":"pay-with-combined",onClick:()=>i("combined"),disabled:s,children:[t.jsx("span",{children:g("buyModal.buyWith")}),t.jsxs(M,{children:[t.jsx(k,{}),t.jsx("span",{children:j(z(h.creditsCents))}),t.jsx(ve,{children:"+"}),t.jsx(B,{children:t.jsx("img",{src:T,alt:"","aria-hidden":!0})}),t.jsx("span",{children:C(h.manaWei)}),t.jsx(we,{children:"MANA"})]})]},"combined")),p?t.jsxs(t.Fragment,{children:[t.jsxs(N,{type:"button","data-testid":"pay-with-mana-disabled",disabled:!0,children:[t.jsx("span",{children:g("buyModal.buyWithMana")}),t.jsxs(M,{children:[t.jsx(B,{children:t.jsx("img",{src:T,alt:"","aria-hidden":!0})}),t.jsx("span",{children:C(p.manaWei)})]})]},"mana-short"),t.jsx($e,{"data-testid":"mana-shortfall-note",children:g("buyModal.manaWorth",{mana:C(p.manaWei),credits:j(z(p.manaCents)),price:j(z(p.priceCents)),currency:G.name})})]}):null,d?t.jsx(ke,{"data-testid":"mana-rate-note",children:d}):null,t.jsx("span",{hidden:!0,"data-testid":"pay-total-cents",children:n})]})}function xt(a,n){const i=(s,...d)=>void a.invalidateQueries({queryKey:n?[s,...d]:[s]});a.invalidateQueries({queryKey:["usd-balance"]}),a.invalidateQueries({queryKey:["detail-trade"]}),a.invalidateQueries({queryKey:["shop-item"]}),i("owned-token",n==null?void 0:n.contractAddress,n==null?void 0:n.tokenId),i("public-token",n==null?void 0:n.contractAddress,n==null?void 0:n.tokenId),i("item-resales",n==null?void 0:n.contractAddress,n==null?void 0:n.itemId),a.invalidateQueries({queryKey:["shop-items"]}),a.invalidateQueries({queryKey:["catalog-items"]}),a.invalidateQueries({queryKey:["overview-listings"]}),a.invalidateQueries({queryKey:["upsell-listings"]}),a.invalidateQueries({queryKey:["my-assets"]}),a.invalidateQueries({queryKey:["purchases"]}),a.invalidateQueries({queryKey:["owned-item-count"]})}const je=Y`
|
|
113
113
|
to { transform: rotate(360deg); }
|
|
114
114
|
`,Ce=e.div`
|
|
115
115
|
position: fixed;
|
|
@@ -206,23 +206,23 @@ import{j as t,r as v}from"./react-vyZjIDcS.js";import{s as e,t as o,e as g,z as
|
|
|
206
206
|
`,Ne=e.span`
|
|
207
207
|
font-weight: 700;
|
|
208
208
|
color: ${o.colors.text};
|
|
209
|
-
`,
|
|
209
|
+
`,Be=e.span`
|
|
210
210
|
font-size: 13px;
|
|
211
211
|
line-height: 1.45;
|
|
212
212
|
color: ${o.colors.muted};
|
|
213
|
-
`,
|
|
213
|
+
`,Ee=e.p`
|
|
214
214
|
margin: 0;
|
|
215
215
|
font-size: 12px;
|
|
216
216
|
line-height: 1.5;
|
|
217
217
|
color: ${o.colors.muted2};
|
|
218
|
-
`,
|
|
218
|
+
`,Re=e.div`
|
|
219
219
|
display: flex;
|
|
220
220
|
gap: 12px;
|
|
221
221
|
|
|
222
222
|
${o.media.maxWidth("mobile")} {
|
|
223
223
|
flex-direction: column-reverse;
|
|
224
224
|
}
|
|
225
|
-
`,
|
|
225
|
+
`,Le=e.button`
|
|
226
226
|
flex: 1 1 0;
|
|
227
227
|
height: 48px;
|
|
228
228
|
border: 2px solid ${o.colors.accent};
|
|
@@ -289,7 +289,7 @@ import{j as t,r as v}from"./react-vyZjIDcS.js";import{s as e,t as o,e as g,z as
|
|
|
289
289
|
@media (prefers-reduced-motion: reduce) {
|
|
290
290
|
animation: none;
|
|
291
291
|
}
|
|
292
|
-
`;function gt({auth:a,signer:n,title:i,reason:s,name:d,image:c,icon:p,onAuthorized:h,onCancel:
|
|
292
|
+
`;function gt({auth:a,signer:n,title:i,reason:s,name:d,image:c,icon:p,onAuthorized:h,onCancel:m,onClose:b}){const[y,w]=v.useState(!1),[l,f]=v.useState(null);async function $(){w(!0),f(null);try{await ee({auth:a,signer:n,active:!0}),h()}catch(u){ie(u)?f(g("authorizeStep.errorRejected")):(X(u,{flow:"authorize_step",kind:a.kind}),f(g("authorizeStep.errorGeneric"))),w(!1)}}return t.jsx(Ce,{onClick:y?void 0:b,role:"presentation",children:t.jsxs(ze,{onClick:u=>u.stopPropagation(),role:"dialog","aria-modal":"true","aria-label":i,children:[t.jsxs(Me,{children:[t.jsx(Ae,{children:i}),t.jsx(We,{onClick:b,disabled:y,"aria-label":g("authorizeStep.close"),children:t.jsx(Q,{name:"close",className:"ico"})})]}),t.jsxs(Ie,{"data-testid":"authorize-step-row",children:[t.jsx(Se,{children:c?t.jsx("img",{src:c,alt:""}):p}),t.jsxs(Te,{children:[t.jsx(Ne,{title:d,children:d}),t.jsx(Be,{children:s})]})]}),t.jsx(Ee,{children:g("authorizeStep.note")}),t.jsx(oe,{message:l}),t.jsxs(Re,{children:[t.jsx(Le,{type:"button",onClick:m,disabled:y,children:g("authorizeStep.cancel")}),t.jsx(Pe,{type:"button","data-testid":"authorize-step-action",onClick:()=>void $(),disabled:y,children:y?t.jsxs(t.Fragment,{children:[t.jsx(Fe,{"aria-hidden":!0}),g("authorizeStep.authorizing")]}):g("authorizeStep.authorize")})]})]})})}async function ft(a){const[n]=await Ke({...a,trades:[a.trade]});return n}async function Ke(a){const{trades:n,buyer:i,signer:s,onSigned:d}=a;if(n.length===0)throw new Error("No items to buy");const c=new Map;for(const h of n){const m=`${h.chainId}:${h.contract.toLowerCase()}`,b=c.get(m);b?b.push(h):c.set(m,[h])}const p=[];for(const h of c.values())p.push(await De({trades:h,buyer:i,signer:s,onSigned:d}));return p}async function De(a){const{trades:n,buyer:i,signer:s,onSigned:d}=a,c=n[0],p=W(J(c.contract),c.chainId),h=W(E.MANAToken,c.chainId);await U({auth:{kind:H.Allowance,contractAddress:h.address,spenderAddress:p.address,chainId:c.chainId},signer:s});const m=n.map(l=>re(l,i));if(K.enabled)try{const l=new he(p.abi).encodeFunctionData("accept",[m]),f=te(),$=ne(s.provider,f),u=await de($,f,l,p,{serverURL:K.relayerUrl});return d==null||d(),await f.waitForTransaction(u,1,12e4),u}catch(l){if(l instanceof le&&l.code===pe.USER_DENIED)throw l;console.warn("[buyWithMana] gasless meta-tx failed, falling back to a direct tx:",l)}await ae(s.provider,c.chainId);const y=await new ue(p.address,p.abi,s).accept(m,ce(c.chainId));return d==null||d(),(await y.wait()).transactionHash}async function mt(a){const{trade:n,buyer:i,signer:s,credits:d,manaGapWei:c,onBroadcast:p,onReverted:h}=a;if(d.length===0)throw new Error("No credits to spend — use buyWithMana for a MANA-only purchase");if(c<=0n)throw new Error("No MANA gap to cover — use buyWithCredits for a credits-only purchase");const m=W(E.MANAToken,n.chainId),b=W(E.CreditsManager,n.chainId);await U({auth:{kind:H.Allowance,contractAddress:m.address,spenderAddress:b.address,chainId:n.chainId},signer:s});const w=(d.reduce((l,f)=>l+BigInt(f.availableAmount),0n)+c).toString();return se({trade:n,buyer:i,signer:s,credits:d,maxCreditedValue:w,onBroadcast:p,onReverted:h})}function bt(a){return t.jsx("svg",{viewBox:"0 0 18 18",width:"18",height:"18","aria-hidden":!0,...a,children:t.jsx("path",{d:"M4 4l10 10M14 4L4 14",stroke:"#161518",strokeWidth:"1.8",strokeLinecap:"round"})})}function yt(a){return t.jsxs("svg",{viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":!0,...a,children:[t.jsx("path",{d:"M12 3L2 20h20L12 3z",fill:"none",stroke:"#691fa9",strokeWidth:"1.8",strokeLinejoin:"round"}),t.jsx("path",{d:"M12 9v5",stroke:"#691fa9",strokeWidth:"1.8",strokeLinecap:"round"}),t.jsx("circle",{cx:"12",cy:"17",r:"1.1",fill:"#691fa9"})]})}const{colors:r,gradients:O,radius:V,z:Qe}=o,wt=e.div`
|
|
293
293
|
position: fixed;
|
|
294
294
|
inset: 0;
|
|
295
295
|
z-index: ${Qe.overlay};
|
|
@@ -408,25 +408,25 @@ import{j as t,r as v}from"./react-vyZjIDcS.js";import{s as e,t as o,e as g,z as
|
|
|
408
408
|
object-fit: contain;
|
|
409
409
|
filter: drop-shadow(0.7px 2.9px 3.7px rgba(0, 0, 0, 0.1));
|
|
410
410
|
}
|
|
411
|
-
`,
|
|
411
|
+
`,Bt=e.div`
|
|
412
412
|
flex: 1;
|
|
413
413
|
min-width: 0;
|
|
414
414
|
display: flex;
|
|
415
415
|
flex-direction: column;
|
|
416
416
|
gap: 32px;
|
|
417
417
|
padding: 8px;
|
|
418
|
-
`,
|
|
418
|
+
`,Et=e.div`
|
|
419
419
|
font-size: 20px;
|
|
420
420
|
font-weight: 600;
|
|
421
421
|
line-height: 1.57;
|
|
422
422
|
color: ${r.text};
|
|
423
423
|
overflow: hidden;
|
|
424
424
|
text-overflow: ellipsis;
|
|
425
|
-
`,
|
|
425
|
+
`,Rt=e(Z)`
|
|
426
426
|
font-size: 10px;
|
|
427
427
|
line-height: 1.43;
|
|
428
428
|
color: ${r.muted};
|
|
429
|
-
`,
|
|
429
|
+
`,Lt=e.div`
|
|
430
430
|
display: flex;
|
|
431
431
|
align-items: center;
|
|
432
432
|
gap: 4px;
|
|
@@ -801,4 +801,4 @@ import{j as t,r as v}from"./react-vyZjIDcS.js";import{s as e,t as o,e as g,z as
|
|
|
801
801
|
opacity: 1;
|
|
802
802
|
transform: scale(1.1);
|
|
803
803
|
}
|
|
804
|
-
`;function cn({title:a,items:n,onViewAll:i}){const s=v.useRef(null),[d,c]=v.useState(1),[p,h]=v.useState(0),[
|
|
804
|
+
`;function cn({title:a,items:n,onViewAll:i}){const s=v.useRef(null),[d,c]=v.useState(1),[p,h]=v.useState(0),[m,b]=v.useState(!0),[y,w]=v.useState(!1),l=v.useCallback(()=>{const u=s.current;if(!u)return;const{scrollLeft:x,scrollWidth:L,clientWidth:S}=u,P=Math.max(1,Math.ceil(L/S));c(P),h(Math.min(P-1,Math.round(x/S))),b(x<=1),w(x+S>=L-1)},[]);if(v.useEffect(()=>{l();const u=s.current;if(u)return u.addEventListener("scroll",l,{passive:!0}),window.addEventListener("resize",l),()=>{u.removeEventListener("scroll",l),window.removeEventListener("resize",l)}},[l,n.length]),n.length===0)return null;function f(u){const x=s.current;x&&x.scrollBy({left:u*x.clientWidth,behavior:"smooth"})}function $(u){const x=s.current;x&&x.scrollTo({left:u*x.clientWidth,behavior:"smooth"})}return t.jsxs(Ue,{children:[t.jsxs(He,{children:[t.jsx(_e,{children:a}),i?t.jsxs(Oe,{onClick:i,children:[g("collectionCarousel.viewAll"),t.jsx(Ve,{name:"chevron-down",size:16})]}):null]}),t.jsxs(Ge,{children:[t.jsx(D,{"data-side":"left",onClick:()=>f(-1),"aria-label":g("collectionCarousel.scrollLeft"),disabled:m,children:t.jsx("img",{src:F,alt:"","aria-hidden":!0})}),t.jsx(Ye,{ref:s,children:n.map(u=>t.jsx(q,{item:u},u.id))}),t.jsx(D,{"data-side":"right",onClick:()=>f(1),"aria-label":g("collectionCarousel.scrollRight"),disabled:y,children:t.jsx("img",{src:F,alt:"","aria-hidden":!0})})]}),d>1?t.jsx(Xe,{"aria-label":g("collectionCarousel.pages"),children:Array.from({length:d}).map((u,x)=>t.jsx(Je,{"data-active":x===p||void 0,"aria-label":g("collectionCarousel.goToPage",{page:x+1}),"aria-current":x===p?"true":void 0,onClick:()=>$(x)},x))}):null]})}export{z as $,Tt as A,Mt as B,kt as C,Ht as D,_t as E,Ot as F,Vt as G,$t as H,Gt as I,Yt as J,dt as K,Zt as L,wt as M,ct as N,cn as O,ut as P,gt as Q,T as R,vt as S,Ct as T,rt as U,xt as V,Ft as W,zt as X,Ke as Y,lt as Z,fe as _,jt as a,sn as a0,rn as a1,ft as a2,pt as a3,mt as a4,bt as b,At as c,Wt as d,It as e,St as f,qt as g,en as h,tn as i,Xt as j,Jt as k,nn as l,ht as m,an as n,on as o,yt as p,Kt as q,Nt as r,Bt as s,Et as t,Rt as u,Lt as v,Pt as w,Dt as x,Qt as y,Ut as z};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{b as Y,j as e,L as ue,e as fe,u as be,r as y}from"./react-vyZjIDcS.js";import{t as Z,aB as we,aC as R,aD as _,s as a,aE as je,G as ve,aF as Ce,e as t,aG as W,B as ye,H as q,af as J,n as $e,ag as Q,I as T,c as ke,m as Ne,S,h as Pe,A as Se,aA as Le,aH as Ae}from"./index-
|
|
1
|
+
import{b as Y,j as e,L as ue,e as fe,u as be,r as y}from"./react-vyZjIDcS.js";import{t as Z,aB as we,aC as R,aD as _,s as a,aE as je,G as ve,aF as Ce,e as t,aG as W,B as ye,H as q,af as J,n as $e,ag as Q,I as T,c as ke,m as Ne,S,h as Pe,A as Se,aA as Le,aH as Ae}from"./index-BmAak5JD.js";import{d as Me,g as Fe,a as ze,P as Be,C as Ee,b as Ie,c as Re,A as _e,B as We,S as Te,M as He,e as Ge,f as Ue}from"./browseLayout.styles-tmq9_vR5.js";import{u as De,L as Ke}from"./useStore-yvEEJYst.js";import{c as H,a as Oe,F as Ve,d as Ye,P as Ze,e as qe,H as Je,S as Qe}from"./categories-CD-OSEZt.js";import{L as G}from"./LoadMore-iCZq5YhT.js";import{u as U}from"./useInfiniteGrid-DRcJ2aXq.js";import{E as D}from"./ErrorNotice-B3GGjAal.js";import{G as K}from"./grid.styles-BpZ1817m.js";import"./sentry-B35L1FdR.js";import"./dcl-schemas-BICTSpB5.js";import"./ethers-CXBJm_wN.js";import"./intl-CBcMB1D2.js";const{colors:m,radius:X,media:Xe}=Z,et=a.article`
|
|
2
2
|
height: 300px;
|
|
3
3
|
background: ${m.bg};
|
|
4
4
|
border-radius: ${X.card};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as r}from"./react-vyZjIDcS.js";import{I as i}from"./index-
|
|
1
|
+
import{j as r}from"./react-vyZjIDcS.js";import{I as i}from"./index-BmAak5JD.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-Dtr756Hr.js";import{g as T,a as W,f as b,b as _,c as v}from"./index-CPxcnhQK.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{b as xe,u as ue,r as l,j as t}from"./react-vyZjIDcS.js";import{s as i,t as e,x as T,m as he,e as r,h as p,n as ge,E as fe,ar as f,ap as me,l as N,az as H,I as re,aj as K,z as E,aR as D}from"./index-
|
|
1
|
+
import{b as xe,u as ue,r as l,j as t}from"./react-vyZjIDcS.js";import{s as i,t as e,x as T,m as he,e as r,h as p,n as ge,E as fe,ar as f,ap as me,l as N,az as H,I as re,aj as K,z as E,aR as D}from"./index-BmAak5JD.js";import{R as O}from"./resume-buy-Bf0zIH7y.js";import{u as be,a as we,R as ye,c as ke,i as Ce,b as je}from"./useCreditPacks-DTrrpAKh.js";import"./sentry-B35L1FdR.js";import"./dcl-schemas-BICTSpB5.js";import"./ethers-CXBJm_wN.js";import"./intl-CBcMB1D2.js";import"./mana-convert-Crnirov_.js";const P="https://cdn.decentraland.org/@dcl/shop/0.1.0-30813458527.commit-cc499d5/_assets/pack-coins-BDh1ZDbh.webp",ne="https://cdn.decentraland.org/@dcl/shop/0.1.0-30813458527.commit-cc499d5/_assets/pack-stacks-D-V2jSHW.webp",se="https://cdn.decentraland.org/@dcl/shop/0.1.0-30813458527.commit-cc499d5/_assets/pack-chest-BX_j84xW.webp",$e="https://cdn.decentraland.org/@dcl/shop/0.1.0-30813458527.commit-cc499d5/_assets/credit-coin-CmcTCd5i.webp",ve="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",Se="https://cdn.decentraland.org/@dcl/shop/0.1.0-30813458527.commit-cc499d5/_assets/packs-backdrop-BcXiUPeP.webp",Y="linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0)",Pe=i.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
gap: 24px;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{i as f,b as h}from"./lit-element-B3y9oplH.js";import{n as m}from"./class-map-CxwNmq0D.js";import{c as p}from"./index-
|
|
1
|
+
import{i as f,b as h}from"./lit-element-B3y9oplH.js";import{n as m}from"./class-map-CxwNmq0D.js";import{c as p}from"./index-BKSlJ9ei.js";import{d as g,r as v}from"./index-CPxcnhQK.js";import{C as c}from"./ConstantsUtil-Dfwpy1eP.js";import{R as $,O as u}from"./W3MFrameProviderSingleton-Dtr756Hr.js";import{au as y}from"./NetworkUtil-HlUKXKcF.js";const b=g`
|
|
2
2
|
:host {
|
|
3
3
|
display: flex;
|
|
4
4
|
justify-content: center;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as e,b as ee,r as h,L as te}from"./react-vyZjIDcS.js";import{t as S,s as t,x as ie,y as se,e as i,h as Q,B as I,z,ar as ne,aQ as K,l as W,m as re,n as oe,E as ae,u as de,F as ce}from"./index-
|
|
1
|
+
import{j as e,b as ee,r as h,L as te}from"./react-vyZjIDcS.js";import{t as S,s as t,x as ie,y as se,e as i,h as Q,B as I,z,ar as ne,aQ as K,l as W,m as re,n as oe,E as ae,u as de,F as ce}from"./index-BmAak5JD.js";import{i as le,R as pe,f as ge}from"./import-qCSkBOj-.js";import{u as xe}from"./useSecondarySales-BDv0sALu.js";import"./sentry-B35L1FdR.js";import"./dcl-schemas-BICTSpB5.js";import"./ethers-CXBJm_wN.js";import"./intl-CBcMB1D2.js";import"./buy-DuTWH65R.js";import"./authorizations-Dx2NKBb5.js";import"./sendMetaTransaction-3Pxc3l1u.js";import"./trade-encoding-DWLcKMhp.js";import"./mana-rate-CRle9ZrD.js";import"./mana-convert-Crnirov_.js";function U({size:o=12,...w}){return e.jsx("svg",{viewBox:"0 0 20 20",width:o,height:o,fill:"none","aria-hidden":!0,focusable:"false",...w,children:e.jsx("path",{d:"M5 10.5l3 3 7-7.5",stroke:"#fff",strokeWidth:"2.4",strokeLinecap:"round",strokeLinejoin:"round"})})}const{colors:M,radius:me,z:ue}=S,he=ie`
|
|
2
2
|
0% {
|
|
3
3
|
transform: scale(0);
|
|
4
4
|
opacity: 0;
|