@dcl/shop 0.1.0-30846189899.commit-4a8ddfb → 0.1.0-30899665061.commit-1b24fc1
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--xIML69z.js → Activity-BwRuAtsY.js} +1 -1
- package/_assets/{AnimatedBackground-COxl8338.js → AnimatedBackground-DpDWmXkp.js} +1 -1
- package/_assets/Assets-yv8WFBZp.js +800 -0
- package/_assets/{Assets.styles-C4uc13ku.js → Assets.styles-CcXkHdtd.js} +1 -1
- package/_assets/{Authorizations-BNvzVxCi.js → Authorizations-D6TSOm_U.js} +1 -1
- package/_assets/{Cart-0pIyJIoa.js → Cart-B9edxxfj.js} +2 -2
- package/_assets/{CircularProgress-BtTBZv-J.js → CircularProgress-C2itNids.js} +1 -1
- package/_assets/{Collection-CoFyHo3H.js → Collection-B5OQgj7k.js} +1 -1
- package/_assets/{CollectionCarousel-D_-sxfGs.js → CollectionCarousel-DR_oOtY4.js} +1 -1
- package/_assets/{Creator-Bz_W5s1y.js → Creator-D6d-h_TF.js} +1 -1
- package/_assets/{ErrorNotice-Cx0COdAr.js → ErrorNotice-DGuLXeIv.js} +1 -1
- package/_assets/{ExchangeController-DmhQDrPJ.js → ExchangeController-DkLOPrk9.js} +1 -1
- package/_assets/{GetCredits-DoV0Rnfd.js → GetCredits-DYM9_ers.js} +60 -24
- package/_assets/{HelpersUtil-CPZu5R17.js → HelpersUtil-CRv8BPg6.js} +1 -1
- package/_assets/{ImportListings-ev2izkxg.js → ImportListings-DtydWyHI.js} +1 -1
- package/_assets/{ItemDetail-C2cicWV9.js → ItemDetail-DC7O-ukn.js} +3 -3
- package/_assets/{LoadMore-ConDrtOT.js → LoadMore-Dk5M2hq5.js} +1 -1
- package/_assets/{MenuList-DlDqrk3u.js → MenuList-D4KXnVyi.js} +1 -1
- package/_assets/{MyAssets-DkOhTUsa.js → MyAssets-BdhPscDr.js} +1 -1
- package/_assets/{MyFavorites-Ckuq227S.js → MyFavorites-eoMBSI8r.js} +1 -1
- package/_assets/{NotFound-B9xruk4f.js → NotFound-DUoqXqyX.js} +1 -1
- package/_assets/{NotificationsBell-CtRATM4e.js → NotificationsBell-DWlObWVt.js} +1 -1
- package/_assets/{StoreSettings-CjoFpkP5.js → StoreSettings-jXaZBeTd.js} +1 -1
- package/_assets/{Success-BacGrGKk.js → Success-3c4u8piN.js} +1 -1
- package/_assets/{SwapController-BHGG_Epq.js → SwapController-CAyGlSuC.js} +1 -1
- package/_assets/{Tooltip-DWPneKP_.js → Tooltip-BnF_g9Fh.js} +1 -1
- package/_assets/{TradeService-Cgcgxq0A.js → TradeService-dF93r4a6.js} +1 -1
- package/_assets/{W3MFrameProviderSingleton-w-RSM5AL.js → W3MFrameProviderSingleton-F1I1n7Y4.js} +3 -3
- package/_assets/{WebCryptoP256-CLVtgMXf.js → WebCryptoP256-Bbbf_Tng.js} +1 -1
- package/_assets/{authorizations-epxR5pjl.js → authorizations-jJOlu1Ed.js} +1 -1
- package/_assets/{basic-BgrqP-TA.js → basic-BBekYcI3.js} +1 -1
- package/_assets/{biconomy-Bv1UCxcF.js → biconomy--wxlh6-3.js} +1 -1
- package/_assets/{browseLayout.styles-ChD_QYf4.js → browseLayout.styles-ARN43Pu4.js} +1 -1
- package/_assets/{builder-BY1-lATK.js → builder-DEjVOqhG.js} +1 -1
- package/_assets/{buy-BI5VTk92.js → buy-CrrU1s75.js} +1 -1
- package/_assets/{buy-gasless-CwH-UbWq.js → buy-gasless-7aOeG2kn.js} +1 -1
- package/_assets/{categories-CeBHtq1-.js → categories-DtcFYgQc.js} +1 -1
- package/_assets/{ccip-Bm7ioRrH.js → ccip-BMW2vf-g.js} +1 -1
- package/_assets/{ccip-DILsZUfP.js → ccip-CN0HwdXM.js} +1 -1
- package/_assets/{clsx-BcR9gED7.js → clsx-EdCkmBRk.js} +1 -1
- package/_assets/{controller-D3R-xyiE.js → controller-C6Pz_8Yh.js} +2 -2
- package/_assets/{core-Ce4ORvRb.js → core-CbqCr-7a.js} +4 -4
- package/_assets/{createSvgIcon-CIqvD8A3.js → createSvgIcon-SNsvZR6p.js} +1 -1
- package/_assets/{custom-J02AwXNB.js → custom-Crhye3H5.js} +1 -1
- package/_assets/{data-capture-98wGTR7Y.js → data-capture-Di1Xfdam.js} +1 -1
- package/_assets/{email-AkcBNJmx.js → email-5xvRUoQq.js} +1 -1
- package/_assets/{embedded-wallet-C1FwO5au.js → embedded-wallet-3VlkN_0N.js} +1 -1
- package/_assets/{emotion-styled.browser.esm-Bk3DOklv.js → emotion-styled.browser.esm-BBaaVBsB.js} +1 -1
- package/_assets/{engine-CpeXNQNG.js → engine-DEeo7XqG.js} +1 -1
- package/_assets/{errors-CQ3rltSg.js → errors-7y1PkYCN.js} +1 -1
- package/_assets/{estimate-l1-fee-D4EobY0t.js → estimate-l1-fee-KWDCSP_c.js} +1 -1
- package/_assets/{execute-CoTzdWPI.js → execute-jkE66wAM.js} +2 -2
- package/_assets/{features-BwG-URCN.js → features-CdzAPfxo.js} +1 -1
- package/_assets/{fetchTokenMetadata-BkvrDuzW.js → fetchTokenMetadata-ir9KKMDV.js} +2 -2
- package/_assets/{get-ecosystem-wallet-info-DBSebSs5.js → get-ecosystem-wallet-info-6CgLqwCe.js} +1 -1
- package/_assets/{getBalance-W1kDcffZ.js → getBalance-tmRV5h4R.js} +1 -1
- package/_assets/{getNFT-BgKBStfZ.js → getNFT-05cALjqV.js} +1 -1
- package/_assets/{getNFT-B5NiXJ-r.js → getNFT-BNfu_JPT.js} +1 -1
- package/_assets/{getThemeProps-D9MV0ore.js → getThemeProps-BLAEanJz.js} +1 -1
- package/_assets/{grid.styles-BdBYqxJR.js → grid.styles-DXIJxeae.js} +1 -1
- package/_assets/{hashTypedData-Cm-awrYD.js → hashTypedData-DfECpzWE.js} +1 -1
- package/_assets/{hashTypedData-BxxK8aGQ.js → hashTypedData-DzHrlLkN.js} +1 -1
- package/_assets/{import-B25CKzlS.js → import-PlMjKnQA.js} +1 -1
- package/_assets/{in-app-NAdj5lCP.js → in-app-CkaQVdl_.js} +1 -1
- package/_assets/{in-app-wallet-calls-CpzGycsr.js → in-app-wallet-calls-CaGDfCcy.js} +1 -1
- package/_assets/{index-9v3H5hPY.js → index-1KV9shTG.js} +1 -1
- package/_assets/{index-D16mzzVn.js → index-3TJs9PVt.js} +1 -1
- package/_assets/{index-DKk1pc3n.js → index-9gaBHA8b.js} +1 -1
- package/_assets/{index-C3O2judC.js → index-AXHOn6gg.js} +2 -2
- package/_assets/{index-BLbPcDXT.js → index-B6Qqo-ev.js} +1 -1
- package/_assets/{index-NyoHQ3Hg.js → index-B8uOyLGO.js} +3 -3
- package/_assets/{index-ChmcTLu_.js → index-BBv-MDAN.js} +1 -1
- package/_assets/{index-C532fyTR.js → index-BDlIpJlR.js} +1 -1
- package/_assets/{index-DPLsz-9z.js → index-BETE7ATW.js} +1 -1
- package/_assets/{index-FuqC8LCi.js → index-BG-T936T.js} +1 -1
- package/_assets/{index-Dz1OuWp5.js → index-BL7nNPuw.js} +1 -1
- package/_assets/{index-DwQ9zfke.js → index-BSnhnOt_.js} +1 -1
- package/_assets/{index-BVrE4quq.js → index-BmvxK2M_.js} +1 -1
- package/_assets/{index-CQUKp9s3.js → index-Brt2EP6Z.js} +1 -1
- package/_assets/{index-EiC_Szof.js → index-Bs1YlKhk.js} +1 -1
- package/_assets/{index-BDNkhDJO.js → index-CBGYn_rZ.js} +1 -1
- package/_assets/{index-CZuVkoLd.js → index-CBUBoOA_.js} +1 -1
- package/_assets/{index-DKPPTRpY.js → index-CBWhmdy-.js} +1 -1
- package/_assets/{index-CHT5h1YD.js → index-CDy02jmb.js} +3 -3
- package/_assets/{index-C1yjSclR.js → index-CGrMmrgT.js} +1 -1
- package/_assets/{index-CFIryEo0.js → index-CHBPBv4T.js} +1 -1
- package/_assets/{index-B0tCillH.js → index-CIg2eoi7.js} +2 -2
- package/_assets/{index-CjYcxJyk.js → index-CSFXIkPh.js} +1 -1
- package/_assets/{index-6hzc-GnS.js → index-CUDqoAra.js} +2 -2
- package/_assets/{index-Du4gkBvR.js → index-CWBmwcpN.js} +1 -1
- package/_assets/{index-BKSkru-M.js → index-CYljI_zV.js} +1 -1
- package/_assets/{index-BKc1lwsO.js → index-CYzDcF1_.js} +1 -1
- package/_assets/{index-BQ9B8U3w.js → index-Can04bqZ.js} +1 -1
- package/_assets/{index-DrnGHRKJ.js → index-CeRU7SYu.js} +1 -1
- package/_assets/{index-CS5vL3nz.js → index-Cl6r4wL6.js} +1 -1
- package/_assets/{index-DpTSanxf.js → index-CmAdxyP9.js} +1 -1
- package/_assets/{index-K3GpFcMv.js → index-CrSx-vZF.js} +1 -1
- package/_assets/{index-B9MT_MB9.js → index-CsrvcF8Q.js} +1 -1
- package/_assets/{index-B6PcqfHB.js → index-Ct-lqjo4.js} +1 -1
- package/_assets/{index-BKICMIZT.js → index-CwzUpfV4.js} +1 -1
- package/_assets/{index-AqK03-LB.js → index-DBn4XfAb.js} +1 -1
- package/_assets/{index-DgX6c0uG.js → index-DDaKGm1c.js} +3 -3
- package/_assets/{index-CTdrJ4oL.js → index-DHHQeDsD.js} +1 -1
- package/_assets/{index-CA1pdiTI.js → index-DZAyIOYB.js} +1 -1
- package/_assets/{index-DC1fq39A.js → index-DdAbyfCl.js} +1 -1
- package/_assets/{index-Dy2g978X.js → index-DqkFQPk0.js} +1 -1
- package/_assets/{index-BtwgxwHq.js → index-DySxG6FY.js} +1 -1
- package/_assets/{index-wz8PBj21.js → index-H02kDdkw.js} +1 -1
- package/_assets/{index-CVd-CvyB.js → index-IsJBW6Y_.js} +1 -1
- package/_assets/{index-BxqE_v_k.js → index-j-oL3azJ.js} +1 -1
- package/_assets/{index-BHI32oX_.js → index-jZpMyZOx.js} +1 -1
- package/_assets/{index-CF64rl6y.js → index-kOKsqcI_.js} +1 -1
- package/_assets/{index-kSY8zCTD.js → index-m51i3AZT.js} +186 -136
- package/_assets/{index-DRU29mYR.js → index-mv2MdKGR.js} +1 -1
- package/_assets/{index-HY0POgHw.js → index-os4Y2K3U.js} +1 -1
- package/_assets/{index-D8iklv7s.js → index-wkoUE7hM.js} +1 -1
- package/_assets/{index.es-Da5RZk4t.js → index.es-C7rPckl3.js} +1 -1
- package/_assets/{index.es-DiRhFFGQ.js → index.es-CN2AGkrO.js} +1 -1
- package/_assets/{index.es-BBVPisv6.js → index.es-DgAz840q.js} +4 -4
- package/_assets/{localBatchGatewayRequest-C-p2tm05.js → localBatchGatewayRequest-C3Ep911Y.js} +1 -1
- package/_assets/{mana-convert-D1hsZ2E6.js → mana-convert-Cd7kvBur.js} +1 -1
- package/_assets/{mana-rate-Bnci-S8V.js → mana-rate-gXYtgf0O.js} +1 -1
- package/_assets/{networks-BJU6f_cY.js → networks-C-s6ydFT.js} +1 -1
- package/_assets/{onramp-Bzzm06hv.js → onramp-C6YlrECS.js} +1 -1
- package/_assets/{openzeppelin-DFiLpFgH.js → openzeppelin-BUiulnW7.js} +1 -1
- package/_assets/{parseNft-CCbTEGwV.js → parseNft-BKe93Oku.js} +2 -2
- package/_assets/{parseSignature-BOSKOro2.js → parseSignature-B_hns6cg.js} +1 -1
- package/_assets/{parseSignature-DD99BMNb.js → parseSignature-s64e_OoC.js} +3 -3
- package/_assets/{passkeys-92GO4_AS.js → passkeys-qrBCIMQg.js} +1 -1
- package/_assets/{pay-with-exchange-DX-xSLr7.js → pay-with-exchange-BV9iB9_U.js} +1 -1
- package/_assets/{qr-overlay-eh8MTm5X.js → qr-overlay-Ip0gCm9s.js} +1 -1
- package/_assets/{receive-gG18LKlB.js → receive-BnEMGvnZ.js} +1 -1
- package/_assets/{resolveImplementation-D1geF9pd.js → resolveImplementation-CmvgnlB0.js} +1 -1
- package/_assets/{rpc-BrRB7NAj.js → rpc-Caqug6JP.js} +1 -1
- package/_assets/{secp256k1-DX1MiMfj.js → secp256k1-BlnpukLT.js} +1 -1
- package/_assets/{secp256k1-BG1vt8D2.js → secp256k1-CzvUKUCV.js} +1 -1
- package/_assets/{secp256k1-C_5KB_ss.js → secp256k1-zfZW0jB6.js} +1 -1
- package/_assets/{send-batch-transaction--UYo-MfS.js → send-batch-transaction-DgxlVGje.js} +1 -1
- package/_assets/{send-HdWX4Vf8.js → send-cK_qdUM8.js} +1 -1
- package/_assets/{send-eip712-transaction-ylAy9C9V.js → send-eip712-transaction-B-qlgmg-.js} +2 -2
- package/_assets/{send-gasless-transaction-D8jV3JY1.js → send-gasless-transaction-D3682yIy.js} +2 -2
- package/_assets/{send-transaction-A8da-F-0.js → send-transaction-BvC0etDQ.js} +2 -2
- package/_assets/{sendMetaTransaction-DwwWcytG.js → sendMetaTransaction-CFDvKTuB.js} +1 -1
- package/_assets/{sendRawTransaction-CRteP_VF.js → sendRawTransaction-CGdbhYCE.js} +3 -3
- package/_assets/{serializeTransaction-CP2suneH.js → serializeTransaction-CT7vYhqq.js} +1 -1
- package/_assets/{session-proposal-BEwyn_1a.js → session-proposal-DtBNSVcw.js} +1 -1
- package/_assets/{session-request-D98_vJeF.js → session-request-BrgUiZxO.js} +2 -2
- package/_assets/{signing-ByWEzda7.js → signing-B2qn-j24.js} +3 -3
- package/_assets/{socials-Dw9x9jIa.js → socials-BY_ffOND.js} +1 -1
- package/_assets/{swaps-Cg4ubSW8.js → swaps-BqpYn432.js} +1 -1
- package/_assets/{thirdweb-B5eOPxT2.js → thirdweb-CFgRnUEM.js} +3 -3
- package/_assets/{to-serializable-transaction-Bug9hdHL.js → to-serializable-transaction-Bi5BtRqk.js} +2 -2
- package/_assets/{trade-encoding-D1HYs4M1.js → trade-encoding-UwGYHoHb.js} +1 -1
- package/_assets/{transactionReceipt-BCGTxm9P.js → transactionReceipt-BKtLwNo4.js} +1 -1
- package/_assets/{transactions-BjCUlQJE.js → transactions-BUuDzP7G.js} +1 -1
- package/_assets/{useCreditPacks-DGRmK8hf.js → useCreditPacks-BuijyOTT.js} +1 -1
- package/_assets/{useInfiniteGrid-CY-Kev2J.js → useInfiniteGrid-CRuR3ymb.js} +1 -1
- package/_assets/useManaRate-sm_S6dbG.js +1 -0
- package/_assets/{useSecondarySales-CiIhx9_Z.js → useSecondarySales-DVyFDuTY.js} +1 -1
- package/_assets/{useStore-DUeF63tD.js → useStore-ZfdxkL23.js} +1 -1
- package/_assets/{useTheme-Cvhw021z.js → useTheme-DE_Y-CUn.js} +1 -1
- package/_assets/{verifyHash-C9OKo_wr.js → verifyHash-CajwlBtp.js} +1 -1
- package/_assets/{w3m-modal-CPyeblNY.js → w3m-modal-DaYHHfoD.js} +1 -1
- package/_assets/{w3m-modal-Du_9ZBUK.js → w3m-modal-GWJRXPdr.js} +1 -1
- package/_assets/{wait-for-tx-receipt-DpR9zAvK.js → wait-for-tx-receipt-CnsN9H2W.js} +1 -1
- package/_assets/{wallets-BrL616p3.js → wallets-BMyZ2ZUd.js} +5 -5
- package/_assets/{web-connector-RgfFD4s5.js → web-connector-BQM0VKdf.js} +3 -3
- package/_assets/{writeContract-BndPP9zt.js → writeContract-DopIPBMb.js} +1 -1
- package/_assets/{zoraTestnet-Dfh7-p3m.js → zoraTestnet-CKNOF2te.js} +1 -1
- package/dcl-mark.png +0 -0
- package/index.html +15 -15
- package/package.json +2 -2
- package/site.webmanifest +11 -22
- package/_assets/Assets-DeYwJmco.js +0 -787
- package/_assets/useManaRate-CXdHjXW7.js +0 -1
- package/apple-touch-icon.png +0 -0
- package/favicon-maskable.svg +0 -17
- package/favicon.svg +0 -17
- package/icon-192.png +0 -0
- package/icon-512.png +0 -0
- package/icon-maskable-512.png +0 -0
|
@@ -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-DtcFYgQc.js";import{n as c,T as se}from"./Tooltip-BnF_g9Fh.js";import{t as e,s as o,I as g,e as s,o as ae,h as v}from"./index-m51i3AZT.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 i,L as _,r as F}from"./react-vyZjIDcS.js";import{s as n,B as G,t as a,x as D,m as P,e,n as W,y as O,I as b,z as B,u as w,D as K,c as Q,E as H,F as A,l as X,G as Z,q as E}from"./index-
|
|
1
|
+
import{j as i,L as _,r as F}from"./react-vyZjIDcS.js";import{s as n,B as G,t as a,x as D,m as P,e,n as W,y as O,I as b,z as B,u as w,D as K,c as Q,E as H,F as A,l as X,G as Z,q as E}from"./index-m51i3AZT.js";import{a as J,b as U,c as V,d as Y,s as tt,f as it}from"./authorizations-jJOlu1Ed.js";import{a as et}from"./builder-DEjVOqhG.js";import{m as ot}from"./mana-matic-C4e1sNO3.js";import{f as at}from"./errors-7y1PkYCN.js";import"./sentry-B35L1FdR.js";import"./dcl-schemas-BICTSpB5.js";import"./ethers-CXBJm_wN.js";import"./intl-CBcMB1D2.js";import"./sendMetaTransaction-CFDvKTuB.js";const nt=D`
|
|
2
2
|
to { transform: rotate(360deg); }
|
|
3
3
|
`,st=D`
|
|
4
4
|
to { background-position: -200% 0; }
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as e,L as Se,r as P,b as ea,a as ta}from"./react-vyZjIDcS.js";import{t as le,s as i,e as s,K as de,aj as aa,H as sa,I as H,z as Mt,J as Ue,m as na,ak as Q,R as dt,n as ia,u as ra,al as oa,D 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,K as de,aj as aa,H as sa,I as H,z as Mt,J as Ue,m as na,ak as Q,R as dt,n as ia,u as ra,al as oa,D 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-m51i3AZT.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 Ra,n as mt,o as ft,W as Ba,p as _a,q as Wa,A as Fa,r as La,s as Ka,t as Na,u as Ua,v as Qa,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-DR_oOtY4.js";import{u as cs}from"./useManaRate-sm_S6dbG.js";import{r as ds}from"./mana-rate-gXYtgf0O.js";import{i as ls,j as us,f as hs,n as ps,h as gs,A as xs}from"./authorizations-jJOlu1Ed.js";import{g as ms,b as Le}from"./buy-CrrU1s75.js";import{b as fs,w as ys,S as vt,G as bs}from"./buy-gasless-7aOeG2kn.js";import{u as vs,M as ws,R as we,r as Cs,c as js,p as wt}from"./useCreditPacks-BuijyOTT.js";import{i as ks,a as $s}from"./errors-7y1PkYCN.js";import{E as Ss}from"./ErrorNotice-DGuLXeIv.js";import{u as Ct}from"./mana-convert-Cd7kvBur.js";import"./sentry-B35L1FdR.js";import"./dcl-schemas-BICTSpB5.js";import"./ethers-CXBJm_wN.js";import"./intl-CBcMB1D2.js";import"./trade-encoding-UwGYHoHb.js";import"./sendMetaTransaction-CFDvKTuB.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-30899665061.commit-1b24fc1/_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(Rs,{stage:o.stage??"reserving",step:o.step??1,total:o.total??1,isSelfCustody:!!o.isSelfCustody,signatures:o.signatures}),l==="nofunds"&&e.jsx(Bs,{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 Rs({stage:o,step:l,total:I,isSelfCustody:z,signatures:W}){const D=o==="reserving",Y=I>0?Math.min(100,Math.round(l/I*100)):0,A=z&&W&&W.total>1,ne=o==="awaiting-signature"?z?A?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(Ra,{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 Bs({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(Ba,{"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(Ua,{address:n.item.creator}):null]}),e.jsxs(Qa,{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{N,O as U,P as o,Q as n,J as D,x as M}from"./index-
|
|
1
|
+
import{N,O as U,P as o,Q as n,J as D,x as M}from"./index-m51i3AZT.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-EdCkmBRk.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,ag as J,E,I as X,e as a,c as ee,l as te,u as ae,m as re,h as oe,S as z,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,ag as J,E,I as X,e as a,c as ee,l as te,u as ae,m as re,h as oe,S as z,A as ie,ah as se,ai as ne}from"./index-m51i3AZT.js";import{E as ce}from"./ErrorNotice-DGuLXeIv.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-ARN43Pu4.js";import{u as ve}from"./useStore-ZfdxkL23.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-DtcFYgQc.js";import{L as $e}from"./LoadMore-Dk5M2hq5.js";import{u as Pe}from"./useInfiniteGrid-CRuR3ymb.js";import{G as Me}from"./grid.styles-DXIJxeae.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,K as j,be as C,h as G,x as Y,I as Q,l as X,a as W,C as E,b as Z,bf as J,bg as F,A as q}from"./index-
|
|
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,K as j,be as C,h as G,x as Y,I as Q,l as X,a as W,C as E,b as Z,bf as J,bg as F,A as q}from"./index-m51i3AZT.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-jJOlu1Ed.js";import{i as ie}from"./errors-7y1PkYCN.js";import{E as oe}from"./ErrorNotice-DGuLXeIv.js";import{a as se}from"./buy-CrrU1s75.js";import{g as re,d as ce}from"./trade-encoding-UwGYHoHb.js";import{s as de,M as le,E as pe}from"./sendMetaTransaction-CFDvKTuB.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;
|
|
@@ -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 J,aB as we,aC as R,aD as _,s as a,aE as je,H as ve,aF as Ce,e as t,aG as ye,aH as W,B as $e,J as Z,ag as q,n as ke,E as Q,I as T,c as Ne,m as Pe,S,h as Se,A as Le,aA as Ae,aI as Me}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 J,aB as we,aC as R,aD as _,s as a,aE as je,H as ve,aF as Ce,e as t,aG as ye,aH as W,B as $e,J as Z,ag as q,n as ke,E as Q,I as T,c as Ne,m as Pe,S,h as Se,A as Le,aA as Ae,aI as Me}from"./index-m51i3AZT.js";import{d as Fe,g as Ee,a as ze,P as Be,C as Ie,b as Re,c as _e,A as We,B as Te,S as He,M as Ge,e as Ue,f as De}from"./browseLayout.styles-ARN43Pu4.js";import{u as Ke,L as Oe}from"./useStore-ZfdxkL23.js";import{c as H,a as Ve,F as Ye,d as Je,P as Ze,e as qe,H as Qe,S as Xe}from"./categories-DtcFYgQc.js";import{L as G}from"./LoadMore-Dk5M2hq5.js";import{u as U}from"./useInfiniteGrid-CRuR3ymb.js";import{E as D}from"./ErrorNotice-DGuLXeIv.js";import{G as K}from"./grid.styles-DXIJxeae.js";import"./sentry-B35L1FdR.js";import"./dcl-schemas-BICTSpB5.js";import"./ethers-CXBJm_wN.js";import"./intl-CBcMB1D2.js";const{colors:u,radius:X,media:et}=J,tt=a.article`
|
|
2
2
|
height: 300px;
|
|
3
3
|
background: ${u.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-m51i3AZT.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-F1I1n7Y4.js";import{g as T,a as W,f as b,b as _,c as v}from"./index-CDy02jmb.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
|
|
1
|
+
import{b as he,u as xe,r as l,j as t}from"./react-vyZjIDcS.js";import{s as i,t as e,x as E,m as ue,e as r,h as p,n as ge,D as fe,ar as f,ap as me,l as H,az as N,I as re,aj as D,z as B,aS as K}from"./index-m51i3AZT.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 ve}from"./useCreditPacks-BuijyOTT.js";import"./sentry-B35L1FdR.js";import"./dcl-schemas-BICTSpB5.js";import"./ethers-CXBJm_wN.js";import"./intl-CBcMB1D2.js";import"./mana-convert-Cd7kvBur.js";const P="https://cdn.decentraland.org/@dcl/shop/0.1.0-30899665061.commit-1b24fc1/_assets/pack-coins-BDh1ZDbh.webp",ne="https://cdn.decentraland.org/@dcl/shop/0.1.0-30899665061.commit-1b24fc1/_assets/pack-stacks-D-V2jSHW.webp",oe="https://cdn.decentraland.org/@dcl/shop/0.1.0-30899665061.commit-1b24fc1/_assets/pack-chest-BX_j84xW.webp",je="https://cdn.decentraland.org/@dcl/shop/0.1.0-30899665061.commit-1b24fc1/_assets/credit-coin-CmcTCd5i.webp",$e="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-30899665061.commit-1b24fc1/_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;
|
|
@@ -40,14 +40,14 @@ import{b as xe,u as ue,r as l,j as t}from"./react-vyZjIDcS.js";import{s as i,t a
|
|
|
40
40
|
${e.media.maxWidth("lg")} {
|
|
41
41
|
gap: 32px;
|
|
42
42
|
}
|
|
43
|
-
`,
|
|
43
|
+
`,Te=i.header`
|
|
44
44
|
display: flex;
|
|
45
45
|
flex-direction: column;
|
|
46
46
|
align-items: center;
|
|
47
47
|
gap: 12px;
|
|
48
48
|
width: 100%;
|
|
49
49
|
text-align: center;
|
|
50
|
-
`,
|
|
50
|
+
`,Ae=i.h1`
|
|
51
51
|
margin: 0;
|
|
52
52
|
font-family: ${e.font.sans};
|
|
53
53
|
font-size: 40px;
|
|
@@ -59,13 +59,13 @@ import{b as xe,u as ue,r as l,j as t}from"./react-vyZjIDcS.js";import{s as i,t a
|
|
|
59
59
|
${e.media.maxWidth("mobile")} {
|
|
60
60
|
font-size: 28px;
|
|
61
61
|
}
|
|
62
|
-
`,
|
|
62
|
+
`,Be=i.div`
|
|
63
63
|
display: flex;
|
|
64
64
|
flex-wrap: wrap;
|
|
65
65
|
align-items: center;
|
|
66
66
|
justify-content: center;
|
|
67
67
|
gap: 8px;
|
|
68
|
-
`,
|
|
68
|
+
`,Ee=i.p`
|
|
69
69
|
margin: 0;
|
|
70
70
|
font-family: ${e.font.sans};
|
|
71
71
|
font-size: 24px;
|
|
@@ -221,7 +221,7 @@ import{b as xe,u as ue,r as l,j as t}from"./react-vyZjIDcS.js";import{s as i,t a
|
|
|
221
221
|
${e.media.maxWidth("mobile")} {
|
|
222
222
|
gap: 24px;
|
|
223
223
|
}
|
|
224
|
-
`,
|
|
224
|
+
`,Ie=i.span`
|
|
225
225
|
position: absolute;
|
|
226
226
|
top: -18px;
|
|
227
227
|
left: 50%;
|
|
@@ -272,7 +272,7 @@ import{b as xe,u as ue,r as l,j as t}from"./react-vyZjIDcS.js";import{s as i,t a
|
|
|
272
272
|
align-items: center;
|
|
273
273
|
gap: 12px;
|
|
274
274
|
width: 100%;
|
|
275
|
-
`,
|
|
275
|
+
`,We=i.span`
|
|
276
276
|
display: flex;
|
|
277
277
|
align-items: center;
|
|
278
278
|
gap: 8px;
|
|
@@ -288,18 +288,23 @@ import{b as xe,u as ue,r as l,j as t}from"./react-vyZjIDcS.js";import{s as i,t a
|
|
|
288
288
|
font-weight: 800;
|
|
289
289
|
line-height: 30px;
|
|
290
290
|
color: ${e.colors.white};
|
|
291
|
-
`,
|
|
291
|
+
`,Ue=i.span`
|
|
292
292
|
font-family: ${e.font.sans};
|
|
293
293
|
font-size: 20px;
|
|
294
294
|
font-weight: 500;
|
|
295
295
|
line-height: 15px;
|
|
296
296
|
color: ${e.colors.media};
|
|
297
297
|
text-transform: uppercase;
|
|
298
|
-
`,
|
|
298
|
+
`,Ge=i.span`
|
|
299
299
|
display: flex;
|
|
300
300
|
align-items: center;
|
|
301
301
|
justify-content: center;
|
|
302
302
|
gap: 8px;
|
|
303
|
+
/* The bonus pill is nowrap and this row holds it beside the struck-through amount. At two cards per row on
|
|
304
|
+
a phone that is ~118px of content, which the pair exceeds by 8-12px (measured) — so let it wrap rather
|
|
305
|
+
than push out of the card. It only ever wraps at the narrowest widths. */
|
|
306
|
+
flex-wrap: wrap;
|
|
307
|
+
max-width: 100%;
|
|
303
308
|
|
|
304
309
|
&[data-empty='true'] {
|
|
305
310
|
visibility: hidden;
|
|
@@ -311,7 +316,7 @@ import{b as xe,u as ue,r as l,j as t}from"./react-vyZjIDcS.js";import{s as i,t a
|
|
|
311
316
|
color: ${e.colors.softWhite};
|
|
312
317
|
opacity: 0.55;
|
|
313
318
|
}
|
|
314
|
-
`,
|
|
319
|
+
`,He=i.span`
|
|
315
320
|
font-family: ${e.font.sans};
|
|
316
321
|
font-size: 22px;
|
|
317
322
|
font-weight: 600;
|
|
@@ -319,7 +324,7 @@ import{b as xe,u as ue,r as l,j as t}from"./react-vyZjIDcS.js";import{s as i,t a
|
|
|
319
324
|
color: rgba(255, 255, 255, 0.55);
|
|
320
325
|
text-decoration: line-through;
|
|
321
326
|
text-decoration-thickness: 2px;
|
|
322
|
-
`,
|
|
327
|
+
`,Ne=i.span`
|
|
323
328
|
display: inline-flex;
|
|
324
329
|
align-items: center;
|
|
325
330
|
padding: 3px 10px;
|
|
@@ -345,14 +350,45 @@ import{b as xe,u as ue,r as l,j as t}from"./react-vyZjIDcS.js";import{s as i,t a
|
|
|
345
350
|
object-fit: contain;
|
|
346
351
|
}
|
|
347
352
|
|
|
348
|
-
|
|
353
|
+
/**
|
|
354
|
+
* FLUID, capped — not a fixed 200px.
|
|
355
|
+
*
|
|
356
|
+
* The fixed width overflowed its card: measured at a 375px viewport the artwork rendered 200px inside a
|
|
357
|
+
* 150px parent, spilling 25px out of each side of the card (the max-width above did not hold it,
|
|
358
|
+
* which is why this restates the intent as a width rather than relying on a cap). Two per row means the
|
|
359
|
+
* cell is whatever half the viewport minus gaps happens to be, so the art has to follow it.
|
|
360
|
+
*/
|
|
349
361
|
@media (max-width: 520px) {
|
|
350
|
-
|
|
362
|
+
/**
|
|
363
|
+
* STRETCHED to the card's content box, not sized by its own content.
|
|
364
|
+
*
|
|
365
|
+
* The card is a column flex with align-items: center, so its children are shrink-to-fit — which let each
|
|
366
|
+
* pack's artwork take a different width (measured 118px and 152px in two identical 150px cards) and let
|
|
367
|
+
* the wider one spill 2px out of each side. Stretching makes every card's art box exactly the content
|
|
368
|
+
* width, so all four are identical and none can exceed it.
|
|
369
|
+
*/
|
|
370
|
+
align-self: stretch;
|
|
371
|
+
width: auto;
|
|
372
|
+
max-width: none;
|
|
373
|
+
|
|
374
|
+
/* The wrapper alone is not enough: whatever sits inside it (picture/img) must be capped too, or it
|
|
375
|
+
reintroduces the same overflow one level down. */
|
|
376
|
+
> * {
|
|
377
|
+
max-width: 100%;
|
|
378
|
+
}
|
|
351
379
|
}
|
|
352
380
|
`,Ke=i.span`
|
|
353
381
|
display: flex;
|
|
354
382
|
align-items: center;
|
|
355
383
|
justify-content: center;
|
|
384
|
+
/**
|
|
385
|
+
* Pinned to the BOTTOM of the card.
|
|
386
|
+
*
|
|
387
|
+
* The artwork above it is not the same height in every pack, so laying the price out in flow put the four
|
|
388
|
+
* buy buttons at different heights within one row (measured 36px apart). Pushing it down means the buttons
|
|
389
|
+
* line up whatever the art does.
|
|
390
|
+
*/
|
|
391
|
+
margin-top: auto;
|
|
356
392
|
width: 100%;
|
|
357
393
|
height: 48px;
|
|
358
394
|
padding: 0 12px;
|
|
@@ -365,7 +401,7 @@ import{b as xe,u as ue,r as l,j as t}from"./react-vyZjIDcS.js";import{s as i,t a
|
|
|
365
401
|
letter-spacing: 0.46px;
|
|
366
402
|
color: ${e.colors.text2};
|
|
367
403
|
text-transform: uppercase;
|
|
368
|
-
`,Oe=
|
|
404
|
+
`,Oe=E`
|
|
369
405
|
to {
|
|
370
406
|
background-position: -200% 0;
|
|
371
407
|
}
|
|
@@ -417,7 +453,7 @@ import{b as xe,u as ue,r as l,j as t}from"./react-vyZjIDcS.js";import{s as i,t a
|
|
|
417
453
|
font-size: 16px;
|
|
418
454
|
line-height: 1.4;
|
|
419
455
|
color: rgba(255, 255, 255, 0.88);
|
|
420
|
-
`,Je=
|
|
456
|
+
`,Je=E`
|
|
421
457
|
0%, 100% {
|
|
422
458
|
transform: scale(1);
|
|
423
459
|
opacity: 1;
|
|
@@ -434,7 +470,7 @@ import{b as xe,u as ue,r as l,j as t}from"./react-vyZjIDcS.js";import{s as i,t a
|
|
|
434
470
|
gap: 32px;
|
|
435
471
|
padding: 64px 24px;
|
|
436
472
|
min-height: 42vh;
|
|
437
|
-
`,
|
|
473
|
+
`,se=i.img`
|
|
438
474
|
width: 61px;
|
|
439
475
|
height: 61px;
|
|
440
476
|
animation: ${Je} 1.2s ease-in-out infinite;
|
|
@@ -442,7 +478,7 @@ import{b as xe,u as ue,r as l,j as t}from"./react-vyZjIDcS.js";import{s as i,t a
|
|
|
442
478
|
@media (prefers-reduced-motion: reduce) {
|
|
443
479
|
animation: none;
|
|
444
480
|
}
|
|
445
|
-
`,tt=i(
|
|
481
|
+
`,tt=i(se)`
|
|
446
482
|
width: 72px;
|
|
447
483
|
height: 72px;
|
|
448
484
|
`,it=i.div`
|
|
@@ -464,14 +500,14 @@ import{b as xe,u as ue,r as l,j as t}from"./react-vyZjIDcS.js";import{s as i,t a
|
|
|
464
500
|
display: flex;
|
|
465
501
|
align-items: center;
|
|
466
502
|
gap: 8px;
|
|
467
|
-
`,
|
|
503
|
+
`,ot=E`
|
|
468
504
|
0% {
|
|
469
505
|
left: -40%;
|
|
470
506
|
}
|
|
471
507
|
100% {
|
|
472
508
|
left: 100%;
|
|
473
509
|
}
|
|
474
|
-
`,
|
|
510
|
+
`,st=i.span`
|
|
475
511
|
position: relative;
|
|
476
512
|
width: 456px;
|
|
477
513
|
max-width: 60vw;
|
|
@@ -487,7 +523,7 @@ import{b as xe,u as ue,r as l,j as t}from"./react-vyZjIDcS.js";import{s as i,t a
|
|
|
487
523
|
height: 100%;
|
|
488
524
|
border-radius: ${e.radius.pill};
|
|
489
525
|
background: ${e.gradients.amethyst};
|
|
490
|
-
animation: ${
|
|
526
|
+
animation: ${ot} 1.4s ease-in-out infinite;
|
|
491
527
|
|
|
492
528
|
@media (prefers-reduced-motion: reduce) {
|
|
493
529
|
left: 0;
|
|
@@ -522,7 +558,7 @@ import{b as xe,u as ue,r as l,j as t}from"./react-vyZjIDcS.js";import{s as i,t a
|
|
|
522
558
|
flex: none;
|
|
523
559
|
width: 60px;
|
|
524
560
|
height: 60px;
|
|
525
|
-
`,
|
|
561
|
+
`,ht=i.p`
|
|
526
562
|
flex: 1;
|
|
527
563
|
margin: 0;
|
|
528
564
|
font-family: ${e.font.sans};
|
|
@@ -534,12 +570,12 @@ import{b as xe,u as ue,r as l,j as t}from"./react-vyZjIDcS.js";import{s as i,t a
|
|
|
534
570
|
strong {
|
|
535
571
|
font-weight: 700;
|
|
536
572
|
}
|
|
537
|
-
`,
|
|
573
|
+
`,xt=i.div`
|
|
538
574
|
padding: 24px;
|
|
539
575
|
border-radius: 16px;
|
|
540
576
|
background: ${e.colors.white};
|
|
541
577
|
border: 1px solid ${e.colors.gray4};
|
|
542
|
-
`,
|
|
578
|
+
`,ut=i.div`
|
|
543
579
|
position: relative;
|
|
544
580
|
display: flex;
|
|
545
581
|
align-items: center;
|
|
@@ -668,4 +704,4 @@ import{b as xe,u as ue,r as l,j as t}from"./react-vyZjIDcS.js";import{s as i,t a
|
|
|
668
704
|
margin: 0;
|
|
669
705
|
font-family: ${e.font.sans};
|
|
670
706
|
color: ${e.colors.err};
|
|
671
|
-
`,
|
|
707
|
+
`,v=Ce()?"mock":"stripe",te=[P,P,ne,oe],kt={pack_5:P,pack_10:P,pack_25:ne,pack_50:oe};function ae(a,o){return kt[a.id]??te[o%te.length]}function Ct(a,o){return a.artUrl??ae(a,o)}const vt="https://docs.decentraland.org";function ie(a){const o=a;if((o==null?void 0:o.name)==="AbortError")return r("getCredits.errorCanceled");const m=((o==null?void 0:o.message)??"").toLowerCase();return m.includes("sign in")?r("getCredits.errorSignIn",{currency:p.name}):m.includes("timed out")?r("getCredits.errorTimeout",{currency:p.name}):r("getCredits.errorGeneric")}function Et(){var M;ue({title:r("nav.getCredits",{currency:p.name}),noindex:!0});const a=he(),{session:o,signIn:m}=ge(),s=fe(),[b,h]=xe(),{packs:j,isLoading:y}=be(),[u,x]=l.useState("select"),[c,L]=l.useState(null),[$,I]=l.useState(null),de=($!=null?(M=j.find(n=>n.credits===$))==null?void 0:M.artUrl:void 0)??je,[ce,k]=l.useState(null),[le,_]=l.useState(!1),R=l.useRef(null);l.useEffect(()=>()=>{var n;return(n=R.current)==null?void 0:n.abort()},[]);const W=l.useCallback(()=>{h(n=>{const d=new URLSearchParams(n);return d.delete("order"),d.delete("canceled"),d},{replace:!0})},[h]),z=l.useCallback(async n=>{x("processing");const d=new AbortController;R.current=d;try{const g=await we(n,{signal:d.signal,address:o==null?void 0:o.address,identity:o==null?void 0:o.identity});if(g.status==="credited"){const w=g.creditsGranted??(c==null?void 0:c.credits)??0;I(w>0?w:null),x("success"),f("Shop Completed Buy Credits",{order_id:n,pack_usd:(c==null?void 0:c.usd)??null,credits:w>0?w:null,provider:v}),s.invalidateQueries({queryKey:["usd-balance"]});try{if(sessionStorage.getItem(ye)){const S={resumeCheckout:!0,...w>0?{creditsAdded:w}:{}};a("/cart",{state:S});return}}catch{}try{const S=sessionStorage.getItem(O);if(S){sessionStorage.removeItem(O);const U=JSON.parse(S),G=me(U);if(G){a(G,{state:{item:U,resumeBuy:!0}});return}}}catch{}}else g.status==="pending"?(f("Shop Buy Credits Pending",{step:"grant",pack_usd:(c==null?void 0:c.usd)??null}),s.invalidateQueries({queryKey:["usd-balance"]}),x("pending")):(f("Shop Buy Credits Failed",{step:"grant",error_code:"grant_failed",pack_usd:(c==null?void 0:c.usd)??null}),k(g.error??r("getCredits.errorGrant",{currency:p.name})),x("error"))}catch(g){H(g,{flow:"get_credits",step:"grant",order_id:n}),f("Shop Buy Credits Failed",{step:"grant",error_code:N(g),pack_usd:(c==null?void 0:c.usd)??null}),k(ie(g)),x("error")}},[c,o,s,a]),pe=l.useCallback(async n=>{if(!o){m();return}k(null),_(!1),L(n),x(v==="mock"?"processing":"redirecting"),f("Shop Started Buy Credits",{pack_usd:n.usd,credits:n.credits,provider:v});try{const d=await ke(n.id,{address:o.address,identity:o.identity});if(d.mock)z(d.orderId);else if(d.url)f("Shop Redirected To Stripe",{order_id:d.orderId,pack_usd:n.usd,credits:n.credits}),window.location.href=d.url;else throw new Error("Checkout did not return a redirect url")}catch(d){H(d,{flow:"get_credits",step:"checkout",provider:v}),f("Shop Buy Credits Failed",{step:"checkout",error_code:N(d),pack_usd:n.usd}),k(ie(d)),x("error")}},[o,m,z]),T=l.useRef(!1);l.useEffect(()=>{if(T.current)return;const n=b.get("order");if(b.get("canceled")!=null){T.current=!0,f("Shop Buy Credits Cancelled",{order_id:n,provider:v}),W(),_(!0),x("select");return}n&&(x("processing"),o&&(T.current=!0,W(),z(n)))},[b,o]);function A(){var n;(n=R.current)==null||n.abort(),x("select"),L(null),I(null),k(null),_(!1)}return t.jsxs(Pe,{children:[(u==="select"||u==="redirecting")&&t.jsxs(_e,{"data-testid":"credits-hero",children:[t.jsx(Re,{"aria-hidden":!0}),t.jsxs(ze,{$hidden:u==="redirecting",children:[t.jsxs(Te,{children:[t.jsx(Ae,{children:r("getCredits.title",{currency:p.name})}),t.jsxs(Be,{children:[t.jsx(Ee,{children:r("getCredits.subtitle",{currency:p.nameSingular})}),t.jsxs(Fe,{href:vt,target:"_blank",rel:"noreferrer",children:[r("getCredits.learnMore"),t.jsx(re,{name:"link-out"})]})]})]}),le&&t.jsx(Le,{role:"status",children:r("getCredits.canceledNote")}),t.jsx(jt,{packs:j,loading:y,onSelect:n=>void pe(n)})]}),u==="redirecting"&&t.jsxs(Qe,{role:"status","aria-live":"polite",children:[t.jsx(tt,{src:D,alt:"",width:72,height:72}),t.jsx(Ze,{children:r("getCredits.redirecting")})]})]}),u==="processing"&&t.jsxs(et,{role:"status","aria-live":"polite",children:[t.jsx(se,{src:D,alt:"",width:61,height:61}),t.jsxs(it,{children:[t.jsxs(rt,{children:[t.jsx("strong",{children:r("getCredits.processing")}),"…"]}),t.jsxs(nt,{"aria-hidden":!0,children:[t.jsx(st,{children:t.jsx(at,{})}),t.jsx(dt,{children:"1/1"})]})]})]}),u==="success"&&t.jsxs(ct,{role:"status","aria-live":"polite",children:[t.jsxs(lt,{children:[t.jsx(pt,{src:$e,alt:"",width:60,height:60}),t.jsxs(ht,{children:[t.jsx("strong",{children:r("getCredits.successTitle")})," ",r("getCredits.successBody",{currency:p.name})]})]}),$!=null&&t.jsx(xt,{children:t.jsxs(ut,{children:[t.jsx(gt,{src:de,alt:"",width:93,height:93}),t.jsxs(ft,{children:[t.jsx(B,{}),t.jsxs("span",{children:[t.jsx(mt,{children:r("getCredits.creditsAmount",{credits:$,currency:p.name})})," ",t.jsx(bt,{children:r("getCredits.creditsAdded")})]})]})]})}),t.jsxs(wt,{children:[t.jsx(C,{"data-variant":"outline",onClick:A,children:r("getCredits.buyMore",{currency:p.name})}),t.jsx(C,{onClick:()=>a("/assets"),children:r("getCredits.startShopping")})]})]}),u==="pending"&&t.jsxs(Z,{role:"status","aria-live":"polite",children:[t.jsx(J,{children:r("getCredits.pendingTitle",{currency:p.name})}),t.jsx(qe,{children:r("getCredits.pendingBody")}),t.jsxs(ee,{children:[t.jsx(C,{onClick:()=>a("/assets"),children:r("getCredits.startShopping")}),t.jsx(C,{"data-variant":"outline",onClick:A,children:r("getCredits.done")})]})]}),u==="error"&&t.jsxs(Z,{role:"alert",children:[t.jsx(J,{"data-tone":"error",children:r("getCredits.errorTitle")}),t.jsx(yt,{children:ce}),t.jsx(ee,{children:t.jsx(C,{onClick:A,children:r("getCredits.tryAgain")})})]})]})}function jt({packs:a,loading:o,onSelect:m}){return o?t.jsx(V,{"aria-busy":"true","aria-label":r("getCredits.packsLoading",{currency:p.name}),children:[0,1,2,3].map(s=>t.jsxs(X,{as:"div","data-skeleton":"true","data-testid":"pack-skeleton","aria-hidden":!0,children:[t.jsxs(q,{children:[t.jsx(Q,{children:t.jsx(Ye,{})}),t.jsx(Ve,{})]}),t.jsx(Xe,{})]},s))}):t.jsx(V,{children:a.map((s,b)=>{const h=ve(s,a);return t.jsxs(X,{type:"button","data-testid":"pack","data-best":s.bestValue?"true":void 0,onClick:()=>m(s),"aria-label":h?r("getCredits.packAriaBonus",{amount:K(s.credits),usd:s.usd,bonus:h.bonus,baseline:h.baseline}):r("getCredits.packAria",{amount:K(s.credits),usd:s.usd}),children:[s.bestValue&&t.jsxs(Ie,{children:[t.jsx(re,{name:"star-rounded"}),r("getCredits.packBadge")]}),t.jsxs(q,{children:[t.jsxs(Q,{children:[t.jsxs(We,{children:[t.jsx(B,{}),t.jsx(Me,{children:s.credits})]}),t.jsx(Ue,{children:r("getCredits.packUnit",{currency:p.name})}),t.jsxs(Ge,{"data-empty":h?void 0:"true","aria-hidden":!0,children:[t.jsx(B,{}),t.jsx(He,{children:h?h.baseline:0}),h&&t.jsx(Ne,{children:r("getCredits.packBonus",{bonus:h.bonus})})]})]}),t.jsx(De,{children:t.jsx("img",{src:Ct(s,b),alt:"",loading:"lazy",width:507,height:507,onError:j=>{const y=j.currentTarget;y.dataset.artFallback||(y.dataset.artFallback="done",y.src=ae(s,b))}})})]}),t.jsxs(Ke,{children:["$",s.usd.toFixed(2)]})]},s.id)})})}export{Et as GetCredits,Et as default};
|
|
@@ -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-DqkFQPk0.js";import{d as g,r as v}from"./index-CDy02jmb.js";import{C as c}from"./ConstantsUtil-Dfwpy1eP.js";import{R as $,O as u}from"./W3MFrameProviderSingleton-F1I1n7Y4.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 B,B as I,z,ar as ne,aR as K,l as W,m as re,n as oe,D 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 B,B as I,z,ar as ne,aR as K,l as W,m as re,n as oe,D as ae,u as de,F as ce}from"./index-m51i3AZT.js";import{i as le,R as pe,f as ge}from"./import-PlMjKnQA.js";import{u as xe}from"./useSecondarySales-DVyFDuTY.js";import"./sentry-B35L1FdR.js";import"./dcl-schemas-BICTSpB5.js";import"./ethers-CXBJm_wN.js";import"./intl-CBcMB1D2.js";import"./buy-CrrU1s75.js";import"./authorizations-jJOlu1Ed.js";import"./sendMetaTransaction-CFDvKTuB.js";import"./trade-encoding-UwGYHoHb.js";import"./mana-rate-gXYtgf0O.js";import"./mana-convert-Cd7kvBur.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;
|