@dcl/shop 1.2.1-31142410827.commit-447715b → 1.3.0
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-CxjV6VXk.js → Activity-ew3XpoT3.js} +4 -4
- package/_assets/{AnimatedBackground-BiXIwT8i.js → AnimatedBackground-D_nEuM-e.js} +1 -1
- package/_assets/{Assets-DVK807CG.js → Assets-cBlMqNjz.js} +18 -18
- package/_assets/{Assets.styles-A3yRI2MU.js → Assets.styles-CLwfDCDf.js} +1 -1
- package/_assets/{Authorizations-D1FoQR5j.js → Authorizations-Cs0nL4Oz.js} +3 -3
- package/_assets/Cart-BO4t_lkf.js +696 -0
- package/_assets/{CircularProgress-D5sNhvlC.js → CircularProgress-GqV7M35A.js} +4 -4
- package/_assets/{Collection-Bqw8AoVr.js → Collection-dJYcennk.js} +7 -7
- package/_assets/CollectionCarousel-uJ5UjL8j.js +872 -0
- package/_assets/{Confetti-CDwPqeLK.js → Confetti-CFn9Pw72.js} +1 -1
- package/_assets/{Creator-6eREKFWS.js → Creator-CuGxdrmY.js} +23 -23
- package/_assets/{ErrorNotice-BQwK_TDE.js → ErrorNotice-CJ7LbSaM.js} +1 -1
- package/_assets/{ExchangeController-BX6K_R7F.js → ExchangeController-CwGAtelJ.js} +1 -1
- package/_assets/{Faq-D_JBmT_h.js → Faq-CDhDmUOq.js} +1 -1
- package/_assets/{GetCredits-Q0Mgpypn.js → GetCredits-1I-xEtGF.js} +18 -18
- package/_assets/{Grow-DXIhfb0h.js → Grow-CVnVH5HV.js} +1 -1
- package/_assets/{HelpersUtil-BTJgul2J.js → HelpersUtil-DeEtn4Uv.js} +1 -1
- package/_assets/ItemDetail-R2KchS-D.js +3577 -0
- package/_assets/LazyEmoteControls-C8q58ZLn.js +2 -0
- package/_assets/{LoadMore-D20OD6Vd.js → LoadMore-CRwBs35r.js} +1 -1
- package/_assets/{ManaPricingBanner.styles-DGbgCot9.js → ManaPricingBanner.styles-BlUs3NYz.js} +1 -1
- package/_assets/{MyAssets-D-pR6nEY.js → MyAssets-Crv1OZqH.js} +5 -5
- package/_assets/{MyFavorites-BZJTE-15.js → MyFavorites-BsDoGy_0.js} +1 -1
- package/_assets/{NotFound-CY50b1nf.js → NotFound-CTrYO3ch.js} +1 -1
- package/_assets/{NotificationsBell-B4g5IIot.js → NotificationsBell-DRGgz2iS.js} +1 -1
- package/_assets/{OutfitDetail-BVF3gVX4.js → OutfitDetail-PIgUTZD2.js} +13 -13
- package/_assets/{OutfitPreview-BH8Vtdqe.js → OutfitPreview-B7Y1-68b.js} +2 -2
- package/_assets/{OutfitStudio-CkkYfM7v.js → OutfitStudio-Bsv8_JeA.js} +11 -11
- package/_assets/{StoreSettings-ByjR6E4Q.js → StoreSettings-BH1LqeM8.js} +5 -5
- package/_assets/{Success-ChdN3XnW.js → Success-C0JqrNNn.js} +4 -4
- package/_assets/{SwapController-BSn7c8IX.js → SwapController-B403gwlM.js} +1 -1
- package/_assets/{Tooltip-C20chtvP.js → Tooltip-Bb6q6TxX.js} +1 -1
- package/_assets/TradeService-BsjSuIVy.js +1 -0
- package/_assets/{W3MFrameProviderSingleton-DM1LkzC3.js → W3MFrameProviderSingleton-B6S06Y_H.js} +3 -3
- package/_assets/{WebCryptoP256-DtXjN3TD.js → WebCryptoP256-CI6-qWGK.js} +1 -1
- package/_assets/authorizations-CRcoV7f0.js +1 -0
- package/_assets/{basic-CKrSeG36.js → basic-DEn_IlUm.js} +1 -1
- package/_assets/{biconomy-CraeH257.js → biconomy-DvPM-XBT.js} +1 -1
- package/_assets/{builder-C8bXNaZ5.js → builder-Npez-0pQ.js} +1 -1
- package/_assets/buy-CRR9-X2w.js +1 -0
- package/_assets/buy-gasless-Cj1VGZpP.js +1 -0
- package/_assets/{categories-C5jojgbc.js → categories-CMYRFP-3.js} +4 -4
- package/_assets/{ccip-BTuFCSPg.js → ccip-Bvp_nKL6.js} +1 -1
- package/_assets/{ccip-Bb0XTJKs.js → ccip-DFr4gxX6.js} +1 -1
- package/_assets/{collectionPage.styles-BQBK8RFg.js → collectionPage.styles-B4iEFMy_.js} +1 -1
- package/_assets/{controller-BslzK_oR.js → controller-CgyRh-Bw.js} +2 -2
- package/_assets/{core-A4i7e9_h.js → core-B7wRtbuZ.js} +4 -4
- package/_assets/{createSvgIcon-DtyE83ul.js → createSvgIcon-Bo9WJgq_.js} +4 -4
- package/_assets/{custom-IpjkpKYP.js → custom-CH6sSlIL.js} +1 -1
- package/_assets/{data-capture-BylIfDOD.js → data-capture-DreW3nks.js} +1 -1
- package/_assets/{email-C_gUvpJ8.js → email-pIKOIyQR.js} +1 -1
- package/_assets/{embedded-wallet-BZVHH3C_.js → embedded-wallet-CLmF0Kdd.js} +1 -1
- package/_assets/{emotion-styled.browser.esm-BvfQxvDt.js → emotion-styled.browser.esm-BqTQ5SYv.js} +1 -1
- package/_assets/{engine-B73Qkzgt.js → engine-D64OXa1r.js} +1 -1
- package/_assets/{errors-CX9EJ2UZ.js → errors-BbwwHm_0.js} +1 -1
- package/_assets/{estimate-l1-fee-Bjxio48q.js → estimate-l1-fee-BU85AjOG.js} +1 -1
- package/_assets/{execute-BR9GMA2A.js → execute-BozDg2yb.js} +2 -2
- package/_assets/{features-CoryLSMJ.js → features-BDTF_ohu.js} +1 -1
- package/_assets/{fetchTokenMetadata-BcVWHlEL.js → fetchTokenMetadata-BT4wvs8u.js} +2 -2
- package/_assets/{field.styles-BX2ce_24.js → field.styles-C3qh-tZ2.js} +1 -1
- package/_assets/{get-ecosystem-wallet-info-BFR9-DCg.js → get-ecosystem-wallet-info-BlqgcGd0.js} +1 -1
- package/_assets/{getBalance-OP0XWTi2.js → getBalance-B89LWv-k.js} +1 -1
- package/_assets/{getNFT-BsALO_-5.js → getNFT-CMlAXi2W.js} +1 -1
- package/_assets/{getNFT--XquMmAd.js → getNFT-Cy5QJvSJ.js} +1 -1
- package/_assets/{grid.styles-D3oxiL_A.js → grid.styles-B2Eu32l1.js} +1 -1
- package/_assets/{hashTypedData-BZTDP8kP.js → hashTypedData-5hKkNljV.js} +1 -1
- package/_assets/{hashTypedData-CJy6tOpf.js → hashTypedData-CVMcc6Hz.js} +1 -1
- package/_assets/{in-app-bTj5LvvL.js → in-app-BiD_q7tQ.js} +1 -1
- package/_assets/{in-app-wallet-calls-V54KdLrU.js → in-app-wallet-calls-BxK-hX9G.js} +1 -1
- package/_assets/{index-D-JDvnI6.js → index-2KdRKXEu.js} +1 -1
- package/_assets/{index-B6qDcfLC.js → index-69aWe7LF.js} +1 -1
- package/_assets/{index-YzDw7lnB.js → index-BCSwRUu3.js} +1 -1
- package/_assets/{index-PfvTvnFS.js → index-BLQrxn9F.js} +1 -1
- package/_assets/{index-UKtYEQEQ.js → index-BNtwDdqR.js} +1 -1
- package/_assets/{index-DV6xJ5R3.js → index-BS9mRV4X.js} +1 -1
- package/_assets/{index-C8Kc50nN.js → index-BU93X1R1.js} +1 -1
- package/_assets/{index-zp7bpiif.js → index-Baqe51s4.js} +1 -1
- package/_assets/{index-Bs-rgt8S.js → index-BawFzGfz.js} +1 -1
- package/_assets/{index-Ceqm243m.js → index-BbAhN-VL.js} +1 -1
- package/_assets/{index-gDU5HG0M.js → index-BfrZo6vI.js} +1 -1
- package/_assets/{index-C8xBYuq6.js → index-Bj_Y4oBT.js} +1 -1
- package/_assets/{index-BfDKCK-b.js → index-Brr2CMye.js} +1 -1
- package/_assets/{index-CEAo9zba.js → index-BvQGZppV.js} +1 -1
- package/_assets/{index-CfuAIPVB.js → index-BwVlQTGw.js} +1 -1
- package/_assets/{index-CWbpUhbz.js → index-ByMxSKoO.js} +1 -1
- package/_assets/{index-DSeFRPGN.js → index-C0Tjm6c2.js} +2 -2
- package/_assets/{index-D8uCQOfi.js → index-C54j1-wd.js} +1 -1
- package/_assets/{index-BzlJrLzv.js → index-CD88wagS.js} +1 -1
- package/_assets/{index-CLKNbQ2Y.js → index-CGyHa-8V.js} +1 -1
- package/_assets/{index-0lnGEb9H.js → index-CKJapgfm.js} +1 -1
- package/_assets/{index-B2t9sa1E.js → index-CKK-zMqi.js} +72 -72
- package/_assets/{index-Bam-2vzo.js → index-CL_zZiR1.js} +1 -1
- package/_assets/{index-md2wV3Vc.js → index-COl_MS2X.js} +1 -1
- package/_assets/{index-DReHody5.js → index-CRNF_QU5.js} +1 -1
- package/_assets/{index-Tv4r9Lwx.js → index-CU54HyHs.js} +1 -1
- package/_assets/{index-w6ENWwBi.js → index-CdmghwAv.js} +1 -1
- package/_assets/{index-rkAdeG6n.js → index-CgPj91Wh.js} +1 -1
- package/_assets/{index-Bi2VdHZq.js → index-CoC4ZTSB.js} +3 -3
- package/_assets/{index-Cf_haBRI.js → index-D2gLfWlc.js} +1 -1
- package/_assets/{index-CNeTXjRv.js → index-D4mfZpjO.js} +2 -2
- package/_assets/{index-BFqY25SM.js → index-D6N8FICT.js} +2 -2
- package/_assets/{index-CJKoD8At.js → index-D7-5iUKs.js} +1 -1
- package/_assets/{index-BhMQwy2J.js → index-DKDGLsyf.js} +1 -1
- package/_assets/{index-Bu1qaX74.js → index-DQT21rdJ.js} +1 -1
- package/_assets/{index-DVvKTSOr.js → index-DRZIPiLU.js} +11 -11
- package/_assets/{index-2eCGZaTL.js → index-DRwratoB.js} +1 -1
- package/_assets/{index-D9DKKnsH.js → index-DmJfaFSK.js} +1 -1
- package/_assets/{index-Brb4suFu.js → index-DnZSYmpU.js} +1 -1
- package/_assets/{index-Bc5nlTSa.js → index-DnhjRPd0.js} +1 -1
- package/_assets/{index-iQ7iCCBF.js → index-DnlLS_ys.js} +1 -1
- package/_assets/{index-lkLKW4IC.js → index-DsKwbNYL.js} +1 -1
- package/_assets/{index-Coc88CNs.js → index-DxKuqcFg.js} +1 -1
- package/_assets/{index-BQGrMQAe.js → index-Dy-uR3t4.js} +1 -1
- package/_assets/{index-BTO7S5s4.js → index-E4Z_g959.js} +3 -3
- package/_assets/{index-BsvoYnWP.js → index-Eas9yoRi.js} +1 -1
- package/_assets/{index-BAAdKhhE.js → index-GomvWLkv.js} +1 -1
- package/_assets/{index-CNfRDyX8.js → index-UWPTFHML.js} +1 -1
- package/_assets/{index-CoZGIPvy.js → index-Xe0zG67j.js} +2 -2
- package/_assets/{index-Dz2XpmN8.js → index-bVwIZVq2.js} +1 -1
- package/_assets/{index-CD7rVCS9.js → index-hnGTtZoN.js} +3 -3
- package/_assets/{index-CVzFwkR2.js → index-tt5vpwow.js} +1 -1
- package/_assets/{index.es-Cf1qw100.js → index.es-BYW_XSuo.js} +4 -4
- package/_assets/{index.es-D8QRPbHG.js → index.es-D0J6Rjn_.js} +1 -1
- package/_assets/{index.es-D-iJF_vP.js → index.es-wL4nLZcl.js} +1 -1
- package/_assets/{localBatchGatewayRequest-mmyGx97_.js → localBatchGatewayRequest-CBnpaR4-.js} +1 -1
- package/_assets/{networks-auA2rGBi.js → networks-D41xdN6D.js} +1 -1
- package/_assets/{onramp-DnEfmJx7.js → onramp-DR5Lm3nA.js} +1 -1
- package/_assets/{openzeppelin-IGdhY6bS.js → openzeppelin-B19X12pO.js} +1 -1
- package/_assets/{parseNft-BiFdLjSe.js → parseNft-BHr3f8D7.js} +2 -2
- package/_assets/{parseSignature-J8MdklGZ.js → parseSignature-CRruTE7l.js} +1 -1
- package/_assets/{parseSignature-QJftY_rY.js → parseSignature-Cz1WFGnm.js} +3 -3
- package/_assets/{passkeys-D2Xshh23.js → passkeys-BAR54cJC.js} +1 -1
- package/_assets/{pay-with-exchange-Cu035sqT.js → pay-with-exchange-zDCz8UbG.js} +1 -1
- package/_assets/{qr-overlay-DYgMyv1Q.js → qr-overlay-DXWbTjg8.js} +1 -1
- package/_assets/{receive-CsNpdfnW.js → receive-B3ivhPV_.js} +1 -1
- package/_assets/{resolveImplementation-DTQI53AV.js → resolveImplementation-ASrjiSw-.js} +1 -1
- package/_assets/{rpc-KnP3VACd.js → rpc-r3GlqTct.js} +1 -1
- package/_assets/{secp256k1-CNuJw6t5.js → secp256k1-B5NNIaFX.js} +1 -1
- package/_assets/{secp256k1-D9mIimtB.js → secp256k1-Ch2QO1Jw.js} +1 -1
- package/_assets/{secp256k1-HByYfqH7.js → secp256k1-ChcROQU5.js} +1 -1
- package/_assets/{send-CMCnYIdY.js → send-6dgb2b7F.js} +1 -1
- package/_assets/{send-batch-transaction-C1sbN2my.js → send-batch-transaction-D_JGI6Rn.js} +1 -1
- package/_assets/{send-eip712-transaction-BAJeY5fb.js → send-eip712-transaction-BAt6mbHJ.js} +2 -2
- package/_assets/{send-gasless-transaction-B44KlVWh.js → send-gasless-transaction-B6-du22J.js} +2 -2
- package/_assets/{send-transaction-DT0LgivN.js → send-transaction-CWeSxAY3.js} +2 -2
- package/_assets/{sendMetaTransaction-etVFqqtW.js → sendMetaTransaction-Ds4_qSVu.js} +1 -1
- package/_assets/{sendRawTransaction-CP59S8fY.js → sendRawTransaction-lB8XtpQV.js} +3 -3
- package/_assets/{serializeTransaction-D82eIJpu.js → serializeTransaction-sBiqyBXY.js} +1 -1
- package/_assets/{session-proposal-CTk25Dr-.js → session-proposal-CtX3xmD3.js} +1 -1
- package/_assets/{session-request-C1qUxOZG.js → session-request-TgRSx-rm.js} +2 -2
- package/_assets/{signing-D2OJn6T_.js → signing-BLltMKaw.js} +3 -3
- package/_assets/{skeleton.styles-CEQXSxcg.js → skeleton.styles-CHtcYOO2.js} +1 -1
- package/_assets/{socials-Clt3JNMD.js → socials-C-PWl5ol.js} +1 -1
- package/_assets/{styled-DRUYplNz.js → styled-ByfFVW_J.js} +1 -1
- package/_assets/{swaps-hOclSX6h.js → swaps-cy6g7st6.js} +1 -1
- package/_assets/{thirdweb-DH3-POmB.js → thirdweb-Dw1AnBJt.js} +3 -3
- package/_assets/{to-serializable-transaction-CTdC8nHQ.js → to-serializable-transaction-BYNNGJgk.js} +2 -2
- package/_assets/{transactionReceipt-u3fxiMLd.js → transactionReceipt-D3t9P89G.js} +1 -1
- package/_assets/{transactions-CrPkr7No.js → transactions-Ci41fiMj.js} +1 -1
- package/_assets/useCreditPacks-DnkAdSB8.js +1 -0
- package/_assets/useImportable-DTHq6mob.js +1 -0
- package/_assets/{useInfiniteGrid-BJjThIIr.js → useInfiniteGrid-C5_gVX8O.js} +1 -1
- package/_assets/useTheme-pA484HjF.js +1 -0
- package/_assets/{verifyHash-GC24awPW.js → verifyHash-Bwromxoc.js} +1 -1
- package/_assets/{w3m-modal-D8ODxmhx.js → w3m-modal-JLRA_T5o.js} +1 -1
- package/_assets/{w3m-modal-C_4LJHJd.js → w3m-modal-yFiS_Jze.js} +1 -1
- package/_assets/{wait-for-tx-receipt-DxjVHpLa.js → wait-for-tx-receipt-BXBtEFR-.js} +1 -1
- package/_assets/{wallets-CLONLSgR.js → wallets-DB4fTO2e.js} +5 -5
- package/_assets/{web-connector-Bg3R-MOR.js → web-connector-CwHeziUM.js} +3 -3
- package/_assets/{writeContract-B0hqGC9P.js → writeContract-lzu9ejzj.js} +1 -1
- package/_assets/{zoraTestnet-BrHNrHjI.js → zoraTestnet-Bhmm9a22.js} +1 -1
- package/index.html +11 -11
- package/package.json +2 -2
- package/_assets/Cart-CMAKp-wK.js +0 -696
- package/_assets/CollectionCarousel-DMTJO3vn.js +0 -872
- package/_assets/ItemDetail--g9bExAk.js +0 -3577
- package/_assets/LazyEmoteControls-DLE3wPcI.js +0 -2
- package/_assets/TradeService-C1HwlfJG.js +0 -1
- package/_assets/authorizations-BIUtCNZm.js +0 -1
- package/_assets/buy-Dvc_dX-A.js +0 -1
- package/_assets/buy-gasless-C2CSfMz_.js +0 -1
- package/_assets/useCreditPacks-BKNj_K3V.js +0 -1
- package/_assets/useImportable-Dxzd_Mzq.js +0 -1
- package/_assets/useTheme-Rk_Pnmot.js +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["_assets/index.es-C4oAOZ2V.js","_assets/react-BYHuwl8r.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{s as o,_ as a}from"./index-
|
|
2
|
+
import{s as o,_ as a}from"./index-CKK-zMqi.js";import{r as n,j as e}from"./react-BYHuwl8r.js";const s=o.div`
|
|
3
3
|
position: fixed;
|
|
4
4
|
inset: 0;
|
|
5
5
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{b as ce,j as e,L as Me,d as Ie,u as
|
|
1
|
+
import{b as ce,j as e,L as Me,d as Ie,u as Ae,r as L}from"./react-BYHuwl8r.js";import{u as Re}from"./useUrlFilters-DH-gxdfV.js";import{u as Be,S as Y,R as Te,F as _e,e as ze}from"./categories-CMYRFP-3.js";import{t as de,bE as We,O as Z,N as X,s,bF as De,H as Oe,bG as Ge,b as o,bH as Ke,bI as ee,B as Ue,J as he,a0 as ue,bt as He,n as qe,A as pe,bA as Ve,bu as Je,bv as Qe,I as te,c as Ye,w as Ze,q as Xe,ab as et,am as tt,an as ot,ao as M,ap as oe,bJ as re,bK as rt}from"./index-CKK-zMqi.js";import{T as xe}from"./skeleton.styles-CHtcYOO2.js";import{d as it,P as st,C as at,a as nt,b as lt,c as ct,e as dt}from"./collectionPage.styles-B4iEFMy_.js";import{R as ht,S as ut,a as pt,D as xt,b as mt,C as gt,c as ft,F as bt,d as wt,e as yt,M as vt,E as R,f as B,g as jt,h as Ct,i as kt,j as $t}from"./Assets.styles-CLwfDCDf.js";import{L as ie}from"./LoadMore-CRwBs35r.js";import{u as se}from"./useInfiniteGrid-C5_gVX8O.js";import{E as T}from"./ErrorNotice-CJ7LbSaM.js";import{G as ae}from"./grid.styles-B2Eu32l1.js";import"./dcl-schemas-CmtP3U6y.js";import"./sentry-Dx-KuLV3.js";import"./ethers-BDpbhgX6.js";import"./intl-CBcMB1D2.js";import"./Tooltip-Bb6q6TxX.js";function St(r){const{gridLoading:i,gridError:a,gridCount:l,baselinePending:c,baselineError:d,baselineCount:b}=r;return i?"skeletons":a?"error":l>0?"items":c?"skeletons":d?"error":b===0?"no-creations":"filters"}const{colors:w,radius:me,media:Nt}=de,Et=s.article`
|
|
2
2
|
height: 300px;
|
|
3
3
|
/* No fill of its own (Figma 922:183803): the mosaic covers the top and the footer paints its own
|
|
4
4
|
translucent black, so the page field is what shows through the corners. */
|
|
@@ -77,7 +77,7 @@ import{b as ce,j as e,L as Me,d as Ie,u as Re,r as L}from"./react-BYHuwl8r.js";i
|
|
|
77
77
|
${Nt.maxWidth("mobile")} {
|
|
78
78
|
font-size: 16px;
|
|
79
79
|
}
|
|
80
|
-
`,
|
|
80
|
+
`,At=s.div`
|
|
81
81
|
flex: 1;
|
|
82
82
|
min-height: 0;
|
|
83
83
|
display: grid;
|
|
@@ -87,7 +87,7 @@ import{b as ce,j as e,L as Me,d as Ie,u as Re,r as L}from"./react-BYHuwl8r.js";i
|
|
|
87
87
|
& > * {
|
|
88
88
|
grid-area: stack;
|
|
89
89
|
}
|
|
90
|
-
`,
|
|
90
|
+
`,Rt=s.div`
|
|
91
91
|
display: flex;
|
|
92
92
|
align-items: center;
|
|
93
93
|
justify-content: space-between;
|
|
@@ -137,7 +137,7 @@ import{b as ce,j as e,L as Me,d as Ie,u as Re,r as L}from"./react-BYHuwl8r.js";i
|
|
|
137
137
|
&:active {
|
|
138
138
|
background: ${w.text2};
|
|
139
139
|
}
|
|
140
|
-
`;function Wt({collection:r,cover:i,itemCount:a}){const l=ce(),{contractAddress:c,name:d,creator:b}=r,j=i==null||a==null,{data:n}=
|
|
140
|
+
`;function Wt({collection:r,cover:i,itemCount:a}){const l=ce(),{contractAddress:c,name:d,creator:b}=r,j=i==null||a==null,{data:n}=Ge(c,j),g=i==null?(n==null?void 0:n.items)??[]:[],f=a??(n==null?void 0:n.total);function h(){l(`/collection/${c}`)}return e.jsxs(Et,{"data-testid":"coll-card",role:"link",tabIndex:0,onClick:h,onKeyDown:p=>{(p.key==="Enter"||p.key===" ")&&(p.preventDefault(),h())},children:[e.jsx(Pt,{children:i?e.jsx(Ft,{"data-testid":"coll-card-img",src:i,alt:"",loading:"lazy"}):g.length>0?e.jsx(Lt,{items:g,tinted:!1}):null}),e.jsxs(Mt,{children:[e.jsx(It,{title:d,children:d}),e.jsxs(At,{children:[e.jsxs(Rt,{"data-meta":!0,"data-testid":"coll-card-meta",children:[b?e.jsx(Bt,{address:b,linkToProfile:!0}):e.jsx(Tt,{children:" "}),e.jsx(_t,{"data-testid":"coll-card-count","aria-busy":f==null||void 0,children:f==null?e.jsx(xe,{className:"skeleton",width:54,"data-testid":"coll-card-count-skeleton","aria-hidden":!0}):o("collectionCard.itemCount",{count:f})})]}),e.jsx(zt,{"data-view":!0,"data-testid":"coll-card-view",onClick:p=>{p.stopPropagation(),h()},tabIndex:-1,children:o("collectionCard.viewCollection")})]})]})]})}function Dt({address:r,className:i=""}){const a=Ke(),l=ee(d=>d.followed.includes(r.toLowerCase())),c=ee(d=>d.toggle);return!a||!r?null:e.jsx(Ue,{type:"button",size:"sm",variant:l?"ghost":"outline",className:i||void 0,"data-testid":"follow-button","aria-pressed":l,title:l?o("creator.unfollowTitle"):o("creator.followTitle"),onClick:()=>c(r),children:l?o("creator.following"):o("creator.follow")})}const{colors:y,radius:ge,media:v}=de,fe=he`
|
|
141
141
|
display: inline-flex;
|
|
142
142
|
align-items: center;
|
|
143
143
|
justify-content: center;
|
|
@@ -145,7 +145,7 @@ import{b as ce,j as e,L as Me,d as Ie,u as Re,r as L}from"./react-BYHuwl8r.js";i
|
|
|
145
145
|
padding: 0 28px;
|
|
146
146
|
border-radius: ${ge.btn};
|
|
147
147
|
background: rgba(0, 0, 0, 0.5);
|
|
148
|
-
color: ${
|
|
148
|
+
color: ${y.white};
|
|
149
149
|
font-weight: 600;
|
|
150
150
|
font-size: 13px;
|
|
151
151
|
text-transform: uppercase;
|
|
@@ -165,17 +165,17 @@ import{b as ce,j as e,L as Me,d as Ie,u as Re,r as L}from"./react-BYHuwl8r.js";i
|
|
|
165
165
|
${fe};
|
|
166
166
|
}
|
|
167
167
|
&& .creator-hero__follow:hover:not(:disabled) {
|
|
168
|
-
background: ${
|
|
168
|
+
background: ${y.blackBtn};
|
|
169
169
|
}
|
|
170
170
|
|
|
171
|
-
${
|
|
171
|
+
${v.maxWidth("mobile")} {
|
|
172
172
|
min-height: 260px;
|
|
173
173
|
}
|
|
174
|
-
`,
|
|
174
|
+
`,Gt=s.div`
|
|
175
175
|
position: absolute;
|
|
176
176
|
inset: 0;
|
|
177
177
|
z-index: 0;
|
|
178
|
-
`,
|
|
178
|
+
`,Kt=s.img`
|
|
179
179
|
width: 100%;
|
|
180
180
|
height: 100%;
|
|
181
181
|
object-fit: cover;
|
|
@@ -193,7 +193,7 @@ import{b as ce,j as e,L as Me,d as Ie,u as Re,r as L}from"./react-BYHuwl8r.js";i
|
|
|
193
193
|
align-items: center;
|
|
194
194
|
gap: 8px;
|
|
195
195
|
|
|
196
|
-
${
|
|
196
|
+
${v.maxWidth("mobile")} {
|
|
197
197
|
top: 12px;
|
|
198
198
|
right: 12px;
|
|
199
199
|
gap: 6px;
|
|
@@ -202,7 +202,7 @@ import{b as ce,j as e,L as Me,d as Ie,u as Re,r as L}from"./react-BYHuwl8r.js";i
|
|
|
202
202
|
display: flex;
|
|
203
203
|
align-items: center;
|
|
204
204
|
justify-content: center;
|
|
205
|
-
color: ${
|
|
205
|
+
color: ${y.white};
|
|
206
206
|
transition: opacity 0.15s linear;
|
|
207
207
|
|
|
208
208
|
&:hover {
|
|
@@ -212,7 +212,7 @@ import{b as ce,j as e,L as Me,d as Ie,u as Re,r as L}from"./react-BYHuwl8r.js";i
|
|
|
212
212
|
width: 36px;
|
|
213
213
|
height: 36px;
|
|
214
214
|
}
|
|
215
|
-
${
|
|
215
|
+
${v.maxWidth("mobile")} {
|
|
216
216
|
& .ico {
|
|
217
217
|
width: 30px;
|
|
218
218
|
height: 30px;
|
|
@@ -225,7 +225,7 @@ import{b as ce,j as e,L as Me,d as Ie,u as Re,r as L}from"./react-BYHuwl8r.js";i
|
|
|
225
225
|
width: 32px;
|
|
226
226
|
height: 32px;
|
|
227
227
|
border-radius: 50%;
|
|
228
|
-
border: 2px solid ${
|
|
228
|
+
border: 2px solid ${y.white};
|
|
229
229
|
transition: background-color 0.15s linear;
|
|
230
230
|
|
|
231
231
|
&:hover {
|
|
@@ -236,7 +236,7 @@ import{b as ce,j as e,L as Me,d as Ie,u as Re,r as L}from"./react-BYHuwl8r.js";i
|
|
|
236
236
|
width: 16px;
|
|
237
237
|
height: 16px;
|
|
238
238
|
}
|
|
239
|
-
${
|
|
239
|
+
${v.maxWidth("mobile")} {
|
|
240
240
|
width: 28px;
|
|
241
241
|
height: 28px;
|
|
242
242
|
& .ico {
|
|
@@ -254,7 +254,7 @@ import{b as ce,j as e,L as Me,d as Ie,u as Re,r as L}from"./react-BYHuwl8r.js";i
|
|
|
254
254
|
gap: 24px;
|
|
255
255
|
padding: 40px 20px;
|
|
256
256
|
|
|
257
|
-
${
|
|
257
|
+
${v.maxWidth("mobile")} {
|
|
258
258
|
padding: 56px 16px 24px;
|
|
259
259
|
}
|
|
260
260
|
`,ne=s.img`
|
|
@@ -263,11 +263,11 @@ import{b as ce,j as e,L as Me,d as Ie,u as Re,r as L}from"./react-BYHuwl8r.js";i
|
|
|
263
263
|
height: 112px;
|
|
264
264
|
border-radius: 50%;
|
|
265
265
|
object-fit: cover;
|
|
266
|
-
border: 4px solid ${
|
|
266
|
+
border: 4px solid ${y.white};
|
|
267
267
|
box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
|
|
268
268
|
background: #ff4bed;
|
|
269
269
|
|
|
270
|
-
${
|
|
270
|
+
${v.maxWidth("mobile")} {
|
|
271
271
|
width: 88px;
|
|
272
272
|
height: 88px;
|
|
273
273
|
}
|
|
@@ -275,20 +275,20 @@ import{b as ce,j as e,L as Me,d as Ie,u as Re,r as L}from"./react-BYHuwl8r.js";i
|
|
|
275
275
|
margin: 0;
|
|
276
276
|
font-size: 18px;
|
|
277
277
|
font-weight: 700;
|
|
278
|
-
color: ${
|
|
278
|
+
color: ${y.white};
|
|
279
279
|
line-height: 1.6;
|
|
280
280
|
|
|
281
|
-
${
|
|
281
|
+
${v.maxWidth("mobile")} {
|
|
282
282
|
font-size: 16px;
|
|
283
283
|
}
|
|
284
284
|
`,Yt=s.p`
|
|
285
285
|
margin: 0;
|
|
286
286
|
font-size: 15px;
|
|
287
|
-
color: ${
|
|
287
|
+
color: ${y.white};
|
|
288
288
|
line-height: 1.6;
|
|
289
289
|
max-width: 520px;
|
|
290
290
|
|
|
291
|
-
${
|
|
291
|
+
${v.maxWidth("mobile")} {
|
|
292
292
|
font-size: 14px;
|
|
293
293
|
}
|
|
294
294
|
`,Zt=s.div`
|
|
@@ -302,6 +302,6 @@ import{b as ce,j as e,L as Me,d as Ie,u as Re,r as L}from"./react-BYHuwl8r.js";i
|
|
|
302
302
|
transition: background 0.15s ease;
|
|
303
303
|
|
|
304
304
|
&:hover {
|
|
305
|
-
background: ${
|
|
305
|
+
background: ${y.blackBtn};
|
|
306
306
|
}
|
|
307
|
-
`,eo={website:"website",twitter:"twitter",discord:"discord",facebook:"facebook"};function to({address:r}){var p,C;const{data:i}=ue(r),{data:a}=He(r),l=qe(x=>{var $;return($=x.session)==null?void 0:$.address}),c=!!l&&l.toLowerCase()===r.toLowerCase(),d=(i==null?void 0:i.name)||pe(r),b=(C=(p=i==null?void 0:i.avatar)==null?void 0:p.snapshots)==null?void 0:C.face256,j=(a==null?void 0:a.cover)||it,n=a==null?void 0:a.description,g=`${Ye.profileUrl}/${r}`,f=Ve.filter(x=>a==null?void 0:a.links[x]),h=Je(Qe({name:i==null?void 0:i.name,hasClaimedName:i==null?void 0:i.hasClaimedName,ethAddress:(i==null?void 0:i.ethAddress)??r}));return e.jsxs(Ot,{"aria-label":`${d} storefront`,children:[e.jsxs(
|
|
307
|
+
`,eo={website:"website",twitter:"twitter",discord:"discord",facebook:"facebook"};function to({address:r}){var p,C;const{data:i}=ue(r),{data:a}=He(r),l=qe(x=>{var $;return($=x.session)==null?void 0:$.address}),c=!!l&&l.toLowerCase()===r.toLowerCase(),d=(i==null?void 0:i.name)||pe(r),b=(C=(p=i==null?void 0:i.avatar)==null?void 0:p.snapshots)==null?void 0:C.face256,j=(a==null?void 0:a.cover)||it,n=a==null?void 0:a.description,g=`${Ye.profileUrl}/${r}`,f=Ve.filter(x=>a==null?void 0:a.links[x]),h=Je(Qe({name:i==null?void 0:i.name,hasClaimedName:i==null?void 0:i.hasClaimedName,ethAddress:(i==null?void 0:i.ethAddress)??r}));return e.jsxs(Ot,{"aria-label":`${d} storefront`,children:[e.jsxs(Gt,{children:[e.jsx(Kt,{src:j,alt:"",loading:"eager"}),e.jsx(Ut,{"aria-hidden":!0})]}),(f.length>0||c)&&e.jsxs(Ht,{children:[f.map(x=>e.jsx(qt,{"data-testid":"creator-hero-link",href:(a==null?void 0:a.links[x])??"",target:"_blank",rel:"noopener noreferrer",title:o(`creator.link.${x}`),"aria-label":o(`creator.link.${x}`),children:e.jsx(te,{name:eo[x]})},x)),c&&e.jsx(Vt,{to:"/store-settings",title:o("creator.editStore"),"aria-label":o("creator.editStore"),children:e.jsx(te,{name:"pen"})})]}),e.jsxs(Jt,{children:[b?e.jsx(ne,{src:b,alt:"",loading:"eager",style:{backgroundColor:h}}):e.jsx(ne,{as:"span","aria-hidden":!0,style:{backgroundColor:h}}),e.jsxs("div",{children:[e.jsx(Qt,{children:d}),n?e.jsx(Yt,{children:n}):null]}),e.jsxs(Zt,{children:[e.jsx(Xt,{"data-testid":"creator-hero-view",href:g,target:"_blank",rel:"noopener noreferrer",children:o("creator.viewProfile")}),e.jsx(Dt,{address:r,className:"creator-hero__follow"})]})]})]})}const oo=["all","on_sale","not_for_sale"],le=48;function yo(){var J,Q;const{address:r}=Ie(),i=ce(),[a]=Ae(),l=a.has("collections"),{data:c}=ue(r),d=(c==null?void 0:c.name)||(r?pe(r):o("creator.fallbackName"));Ze({title:d,description:o("seo.creator.description",{name:d}),image:(Q=(J=c==null?void 0:c.avatar)==null?void 0:J.snapshots)==null?void 0:Q.face256});const b=L.useMemo(()=>({category:"all",status:"all",subCategory:null,rarities:[],priceMin:"",priceMax:"",smart:!1,sort:"newest"}),[]),[j,n]=Re(b),{category:g,subCategory:f,rarities:h,priceMin:p,priceMax:C,smart:x,sort:$}=j,S=oo.includes(j.status)?j.status:"all",_=t=>n({status:t});Be(`${l}:${g}:${f??""}`);const[E,N]=L.useState(!1);L.useEffect(()=>{if(!E)return;const t=Le=>{Le.key==="Escape"&&N(!1)};document.addEventListener("keydown",t);const m=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.removeEventListener("keydown",t),document.body.style.overflow=m}},[E]);const z=p&&!Number.isNaN(Number(p))?Number(p):void 0,W=C&&!Number.isNaN(Number(C))?Number(C):void 0,we=f?ze[f]:void 0,ye=(Y.find(t=>t.key===$)??Y[0]).server,D={creator:r,category:g,rarities:h.length?h:void 0,wearableCategories:we,minPriceCredits:z,maxPriceCredits:W,isWearableSmart:x||void 0,isOnSale:S==="all"?void 0:S==="on_sale",sortBy:ye},{items:I,total:ve,isLoading:je,isPlaceholderData:Ce,error:O,hasNextPage:ke,isFetchingNextPage:G,isFetchNextPageError:$e,fetchNextPage:Se}=se(["creator-items",D],t=>re({...D,first:le,skip:t}),{enabled:!!r&&!l}),P=Xe({queryKey:["creator-item-count",r],queryFn:()=>re({creator:r,first:1}).then(t=>t.total),enabled:!!r}),u=se(["creator-collections",r],t=>rt(r,{first:le,skip:t}).then(m=>({items:m.collections,total:m.total})),{enabled:!!r&&l});function K(t){n({category:t,subCategory:null},{drop:l?["collections"]:void 0})}function Ne(){const t=new URLSearchParams(a);t.delete("collections");const m=t.toString();i({search:m?`?${m}`:""},{replace:!0})}function Ee(){if(l){Ne();return}const t=new URLSearchParams(a);t.delete("collections");const m=t.toString();i({search:m?`?${m}&collections`:"?collections"},{replace:!0})}function U(t){n({rarities:h.includes(t)?h.filter(m=>m!==t):[...h,t]})}function H(){n(b)}const k=[];(g==="wearable"||g==="emote")&&k.push({key:"category",label:o(g==="emote"?"categories.emotes":"categories.wearables"),onRemove:()=>K("all")}),(z!=null||W!=null)&&k.push({key:"price",label:o("filter.price"),onRemove:()=>{n({priceMin:"",priceMax:""})}});for(const t of Te)h.includes(t)&&k.push({key:`rarity-${t}`,label:et(t),onRemove:()=>U(t)});x&&k.push({key:"smart",label:o("filter.smart"),onRemove:()=>n({smart:!1})}),S!=="all"&&k.push({key:"status",label:S==="on_sale"?o("filter.onSale"):o("filter.notForSale"),onRemove:()=>_("all")});const F=St({gridLoading:je||Ce,gridError:!!O,gridCount:I.length,baselinePending:P.isPending,baselineError:P.isError,baselineCount:P.data}),q=F==="skeletons",{data:V}=tt(),Pe=L.useMemo(()=>I.map(t=>({...t,priceCredits:ot(t,V)})),[I,V]),Fe=t=>t.priceCredits>0||!!t.manaWei,A=F==="items"||F==="skeletons"?null:F;return e.jsxs(st,{children:[e.jsxs(at,{"aria-label":o("creator.breadcrumbAria"),children:[e.jsx(nt,{onClick:()=>i("/items"),children:o("creator.breadcrumb")}),e.jsx("span",{children:"/"}),e.jsx(lt,{children:d})]}),r?e.jsx(to,{address:r}):null,e.jsxs(ht,{children:[E?e.jsx(ut,{onClick:()=>N(!1),"aria-hidden":!0}):null,e.jsxs(pt,{"data-open":E||void 0,"data-testid":"creator-sidebar",children:[e.jsxs(xt,{children:[e.jsx(mt,{children:o("assets.filters")}),e.jsx(gt,{onClick:()=>N(!1),"aria-label":o("assets.closeFilters"),children:"✕"})]}),e.jsx(ft,{children:e.jsx(bt,{category:g,subCategory:f,onCategory:K,onSub:t=>n({subCategory:t}),priceMin:p,priceMax:C,onPriceMin:t=>n({priceMin:t}),onPriceMax:t=>n({priceMax:t}),rarities:h,onToggleRarity:U,status:S,onStatus:_,smart:x,onSmart:t=>n({smart:t}),hideNames:!0,collections:l,onCollections:Ee})}),e.jsx(wt,{children:e.jsx(yt,{type:"button",onClick:()=>N(!1),children:o("assets.showItems")})})]}),e.jsx(vt,{children:l?e.jsxs(e.Fragment,{children:[e.jsx(ct,{children:e.jsx(dt,{"data-testid":"creator-collections-count","aria-busy":u.isLoading||void 0,children:u.isLoading?e.jsx(xe,{className:"skeleton",width:72,"data-testid":"creator-collections-count-skeleton","aria-hidden":!0}):o("creator.collectionsCount",{count:u.total})})}),u.error?e.jsx(T,{message:o("creator.error")}):null,e.jsx(ae,{"data-variant":"collections",children:u.isLoading?e.jsx(M,{count:9}):e.jsxs(e.Fragment,{children:[u.items.map(t=>e.jsx(Wt,{collection:t,itemCount:t.itemCount},t.contractAddress)),u.isFetchingNextPage?e.jsx(M,{count:6}):null]})}),e.jsx(ie,{hasNextPage:u.hasNextPage,isFetching:u.isFetchingNextPage,isError:u.isFetchNextPageError,onLoadMore:()=>void u.fetchNextPage()}),!u.isLoading&&!u.error&&u.items.length===0?e.jsx(R,{children:e.jsx(B,{children:o("creator.collectionsEmpty")})}):null]}):e.jsxs(e.Fragment,{children:[e.jsx(_e,{sort:$,onSort:t=>n({sort:t}),total:ve,loading:q,onOpenFilters:()=>N(!0),chips:k,onClearChips:H}),O?e.jsx(T,{message:o("creator.error"),testId:"creator-error"}):null,e.jsx(ae,{"data-testid":"creator-grid",children:q?e.jsx(M,{count:15}):e.jsxs(e.Fragment,{children:[Pe.map(t=>Fe(t)?e.jsx(oe,{item:t},t.id):e.jsx(oe,{item:t,mode:"view"},t.id)),G?e.jsx(M,{count:6}):null]})}),e.jsx(ie,{hasNextPage:ke,isFetching:G,isError:$e,onLoadMore:()=>void Se()}),A==="error"?e.jsx(T,{message:o("creator.error"),testId:"creator-empty-error"}):A==="no-creations"?e.jsx(R,{children:e.jsx(B,{"data-testid":"creator-empty-none",children:o("creator.emptyNoCreations")})}):A==="filters"?e.jsxs(jt,{"data-testid":"creator-empty-filters",children:[e.jsxs(R,{children:[e.jsx(Ct,{children:o("creator.emptyFilters.title")}),e.jsx(B,{children:o("creator.emptyFilters.body",{count:P.data??0})})]}),e.jsx(kt,{children:e.jsx($t,{type:"button",onClick:H,children:o("filterBar.clearAll")})})]}):null]})})]})]})}export{yo as Creator,yo as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as r}from"./react-BYHuwl8r.js";import{I as i}from"./index-
|
|
1
|
+
import{j as r}from"./react-BYHuwl8r.js";import{I as i}from"./index-CKK-zMqi.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-B6S06Y_H.js";import{g as T,a as W,f as b,b as _,c as v}from"./index-hnGTtZoN.js";const D=0,C={paymentAsset:null,amount:null,tokenAmount:0,priceLoading:!1,error:null,exchanges:[],isLoading:!1,currentPayment:void 0,isPaymentInProgress:!1,paymentId:"",assets:[]},e=L(C),m={state:e,subscribe(t){return I(e,()=>t(e))},subscribeKey(t,n){return N(e,t,n)},resetState(){Object.assign(e,{...C})},async getAssetsForNetwork(t){const n=v(t),s=await m.getAssetsImageAndPrice(n),r=n.map(a=>{var c,o,p,y;const u=a.asset==="native"?f():`${a.network}:${a.asset}`,i=s.find(S=>{var g,d,h;return((h=(d=(g=S.fungibles)==null?void 0:g[0])==null?void 0:d.address)==null?void 0:h.toLowerCase())===u.toLowerCase()});return{...a,price:((o=(c=i==null?void 0:i.fungibles)==null?void 0:c[0])==null?void 0:o.price)||1,metadata:{...a.metadata,iconUrl:(y=(p=i==null?void 0:i.fungibles)==null?void 0:p[0])==null?void 0:y.iconUrl}}});return e.assets=r,r},async getAssetsImageAndPrice(t){const n=t.map(r=>r.asset==="native"?f():`${r.network}:${r.asset}`);return await Promise.all(n.map(r=>x.fetchTokenPrice({addresses:[r]})))},getTokenAmount(){var s;if(!((s=e==null?void 0:e.paymentAsset)!=null&&s.price))throw new Error("Cannot get token price");const t=P.bigNumber(e.amount??0).round(8),n=P.bigNumber(e.paymentAsset.price).round(8);return t.div(n).round(8).toNumber()},setAmount(t){var n;e.amount=t,(n=e.paymentAsset)!=null&&n.price&&(e.tokenAmount=m.getTokenAmount())},setPaymentAsset(t){e.paymentAsset=t},isPayWithExchangeEnabled(){var t;return(t=U.state.remoteFeatures)==null?void 0:t.payWithExchange},isPayWithExchangeSupported(){return m.isPayWithExchangeEnabled()&&l.state.activeCaipNetwork&&k.PAY_WITH_EXCHANGE_SUPPORTED_CHAIN_NAMESPACES.includes(l.state.activeCaipNetwork.chainNamespace)},async fetchExchanges(){var t;try{const n=m.isPayWithExchangeSupported();if(!e.paymentAsset||!n){e.exchanges=[],e.isLoading=!1;return}e.isLoading=!0;const s=await _({page:D,asset:b(e.paymentAsset.network,e.paymentAsset.asset),amount:((t=e.amount)==null?void 0:t.toString())??"0"});e.exchanges=s.exchanges.slice(0,2)}catch{throw A.showError("Unable to get exchanges"),new Error("Unable to get exchanges")}finally{e.isLoading=!1}},async getPayUrl(t,n){try{const s=Number(n.amount),r=await W({exchangeId:t,asset:b(n.network,n.asset),amount:s.toString(),recipient:`${n.network}:${n.recipient}`});return w.sendEvent({type:"track",event:"PAY_EXCHANGE_SELECTED",properties:{exchange:{id:t},configuration:{network:n.network,asset:n.asset,recipient:n.recipient,amount:s},currentPayment:{type:"exchange",exchangeId:t},source:"fund-from-exchange",headless:!1}}),r}catch(s){throw s instanceof Error&&s.message.includes("is not supported")?new Error("Asset not supported"):new Error(s.message)}},async handlePayWithExchange(t){var n;try{const s=(n=l.getAccountData())==null?void 0:n.address;if(!s)throw new Error("No account connected");if(!e.paymentAsset)throw new Error("No payment asset selected");const r=E.returnOpenHref("","popupWindow","scrollbar=yes,width=480,height=720");if(!r)throw new Error("Could not create popup window");e.isPaymentInProgress=!0,e.paymentId=crypto.randomUUID(),e.currentPayment={type:"exchange",exchangeId:t};const{network:a,asset:u}=e.paymentAsset,i={network:a,asset:u,amount:e.tokenAmount,recipient:s},c=await m.getPayUrl(t,i);if(!c){try{r.close()}catch(o){console.error("Unable to close popup window",o)}throw new Error("Unable to initiate payment")}e.currentPayment.sessionId=c.sessionId,e.currentPayment.status="IN_PROGRESS",e.currentPayment.exchangeId=t,r.location.href=c.url}catch{e.error="Unable to initiate payment",A.showError(e.error)}},async waitUntilComplete({exchangeId:t,sessionId:n,paymentId:s,retries:r=20}){const a=await m.getBuyStatus(t,n,s);if(a.status==="SUCCESS"||a.status==="FAILED")return a;if(r===0)throw new Error("Unable to get deposit status");return await new Promise(u=>{setTimeout(u,5e3)}),m.waitUntilComplete({exchangeId:t,sessionId:n,paymentId:s,retries:r-1})},async getBuyStatus(t,n,s){var r,a,u,i,c;try{if(!e.currentPayment)throw new Error("No current payment");const o=await T({sessionId:n,exchangeId:t});if(e.currentPayment.status=o.status,o.status==="SUCCESS"||o.status==="FAILED"){const p=(r=l.getAccountData())==null?void 0:r.address;e.currentPayment.result=o.txHash,e.isPaymentInProgress=!1,w.sendEvent({type:"track",event:o.status==="SUCCESS"?"PAY_SUCCESS":"PAY_ERROR",properties:{message:o.status==="FAILED"?E.parseError(e.error):void 0,source:"fund-from-exchange",paymentId:s,configuration:{network:((a=e.paymentAsset)==null?void 0:a.network)||"",asset:((u=e.paymentAsset)==null?void 0:u.asset)||"",recipient:p||"",amount:e.amount??0},currentPayment:{type:"exchange",exchangeId:(i=e.currentPayment)==null?void 0:i.exchangeId,sessionId:(c=e.currentPayment)==null?void 0:c.sessionId,result:o.txHash}}})}return o}catch{return{status:"UNKNOWN",txHash:""}}},reset(){e.currentPayment=void 0,e.isPaymentInProgress=!1,e.paymentId="",e.paymentAsset=null,e.amount=0,e.tokenAmount=0,e.priceLoading=!1,e.error=null,e.exchanges=[],e.isLoading=!1}};export{m as E};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as l,j as o}from"./react-BYHuwl8r.js";import{t as e,s as a,b as s,I as w}from"./index-
|
|
1
|
+
import{r as l,j as o}from"./react-BYHuwl8r.js";import{t as e,s as a,b as s,I as w}from"./index-CKK-zMqi.js";const m=a.section`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
gap: 36px;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{b as ue,u as xe,r as l,j as t}from"./react-BYHuwl8r.js";import{s as i,t as e,
|
|
1
|
+
import{b as ue,u as xe,r as l,j as t}from"./react-BYHuwl8r.js";import{s as i,t as e,v as F,w as ge,b as n,C as h,n as fe,z as me,Y as g,aE as be,E as G,aO as N,bU as we,aw as Q,y as re,I as ye,bV as H}from"./index-CKK-zMqi.js";import{C as ke}from"./Confetti-CFn9Pw72.js";import{F as ve}from"./Faq-CDhDmUOq.js";import{R as D}from"./resume-buy-Bf0zIH7y.js";import{u as Ce,b as $e,R as je,c as Se,i as Ae,d as Pe}from"./useCreditPacks-DnkAdSB8.js";import"./dcl-schemas-CmtP3U6y.js";import"./sentry-Dx-KuLV3.js";import"./ethers-BDpbhgX6.js";import"./intl-CBcMB1D2.js";const A="https://cdn.decentraland.org/@dcl/shop/1.3.0/_assets/pack-coins-BDh1ZDbh.webp",ne="https://cdn.decentraland.org/@dcl/shop/1.3.0/_assets/pack-stacks-D-V2jSHW.webp",se="https://cdn.decentraland.org/@dcl/shop/1.3.0/_assets/pack-chest-BX_j84xW.webp",Re="https://cdn.decentraland.org/@dcl/shop/1.3.0/_assets/credit-coin-CmcTCd5i.webp",Te="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",O="linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0)",_e=i.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
gap: 24px;
|
|
@@ -34,12 +34,12 @@ import{b as ue,u as xe,r as l,j as t}from"./react-BYHuwl8r.js";import{s as i,t a
|
|
|
34
34
|
top: -16px;
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
|
-
`,
|
|
37
|
+
`,Be=i.div`
|
|
38
38
|
position: relative;
|
|
39
39
|
width: 100%;
|
|
40
40
|
display: flex;
|
|
41
41
|
justify-content: center;
|
|
42
|
-
`,
|
|
42
|
+
`,Fe=i.div`
|
|
43
43
|
width: 100%;
|
|
44
44
|
max-width: 1478px;
|
|
45
45
|
margin: 0 auto;
|
|
@@ -55,7 +55,7 @@ import{b as ue,u as xe,r as l,j as t}from"./react-BYHuwl8r.js";import{s as i,t a
|
|
|
55
55
|
${e.media.maxWidth("mobile")} {
|
|
56
56
|
margin-top: 8px;
|
|
57
57
|
}
|
|
58
|
-
`,
|
|
58
|
+
`,Ee=i.div`
|
|
59
59
|
width: 100%;
|
|
60
60
|
max-width: 1478px;
|
|
61
61
|
display: flex;
|
|
@@ -67,7 +67,7 @@ import{b as ue,u as xe,r as l,j as t}from"./react-BYHuwl8r.js";import{s as i,t a
|
|
|
67
67
|
${e.media.maxWidth("lg")} {
|
|
68
68
|
gap: 32px;
|
|
69
69
|
}
|
|
70
|
-
`,
|
|
70
|
+
`,qe=i.header`
|
|
71
71
|
display: flex;
|
|
72
72
|
flex-direction: column;
|
|
73
73
|
align-items: center;
|
|
@@ -150,7 +150,7 @@ import{b as ue,u as xe,r as l,j as t}from"./react-BYHuwl8r.js";import{s as i,t a
|
|
|
150
150
|
line-height: 1.6;
|
|
151
151
|
color: ${e.colors.media};
|
|
152
152
|
text-align: center;
|
|
153
|
-
`,
|
|
153
|
+
`,Y=i.div`
|
|
154
154
|
display: grid;
|
|
155
155
|
grid-template-columns: repeat(4, minmax(0, 1fr));
|
|
156
156
|
gap: 24px;
|
|
@@ -166,7 +166,7 @@ import{b as ue,u as xe,r as l,j as t}from"./react-BYHuwl8r.js";import{s as i,t a
|
|
|
166
166
|
gap: 12px;
|
|
167
167
|
row-gap: 24px;
|
|
168
168
|
}
|
|
169
|
-
`,
|
|
169
|
+
`,K=i.button`
|
|
170
170
|
position: relative;
|
|
171
171
|
display: flex;
|
|
172
172
|
flex-direction: column;
|
|
@@ -205,9 +205,9 @@ import{b as ue,u as xe,r as l,j as t}from"./react-BYHuwl8r.js";import{s as i,t a
|
|
|
205
205
|
inset: 0;
|
|
206
206
|
border-radius: inherit;
|
|
207
207
|
pointer-events: none;
|
|
208
|
-
-webkit-mask: ${
|
|
208
|
+
-webkit-mask: ${O};
|
|
209
209
|
-webkit-mask-composite: xor;
|
|
210
|
-
mask: ${
|
|
210
|
+
mask: ${O};
|
|
211
211
|
mask-composite: exclude;
|
|
212
212
|
transition: opacity 0.15s ease;
|
|
213
213
|
}
|
|
@@ -303,7 +303,7 @@ import{b as ue,u as xe,r as l,j as t}from"./react-BYHuwl8r.js";import{s as i,t a
|
|
|
303
303
|
height: 18px;
|
|
304
304
|
}
|
|
305
305
|
}
|
|
306
|
-
`,
|
|
306
|
+
`,V=i.span`
|
|
307
307
|
align-self: stretch;
|
|
308
308
|
display: flex;
|
|
309
309
|
flex-direction: column;
|
|
@@ -389,7 +389,7 @@ import{b as ue,u as xe,r as l,j as t}from"./react-BYHuwl8r.js";import{s as i,t a
|
|
|
389
389
|
transform: none;
|
|
390
390
|
}
|
|
391
391
|
}
|
|
392
|
-
`,
|
|
392
|
+
`,Oe=i.span`
|
|
393
393
|
display: flex;
|
|
394
394
|
align-items: center;
|
|
395
395
|
justify-content: center;
|
|
@@ -434,7 +434,7 @@ import{b as ue,u as xe,r as l,j as t}from"./react-BYHuwl8r.js";import{s as i,t a
|
|
|
434
434
|
font-size: 16px;
|
|
435
435
|
font-weight: 800;
|
|
436
436
|
}
|
|
437
|
-
`,
|
|
437
|
+
`,Ye=F`
|
|
438
438
|
to {
|
|
439
439
|
background-position: -200% 0;
|
|
440
440
|
}
|
|
@@ -447,12 +447,12 @@ import{b as ue,u as xe,r as l,j as t}from"./react-BYHuwl8r.js";import{s as i,t a
|
|
|
447
447
|
rgba(255, 255, 255, 0.08) 70%
|
|
448
448
|
);
|
|
449
449
|
background-size: 200% 100%;
|
|
450
|
-
animation: ${
|
|
450
|
+
animation: ${Ye} 1.4s infinite linear;
|
|
451
451
|
|
|
452
452
|
@media (prefers-reduced-motion: reduce) {
|
|
453
453
|
animation: none;
|
|
454
454
|
}
|
|
455
|
-
`,
|
|
455
|
+
`,Ke=i(P)`
|
|
456
456
|
width: 60%;
|
|
457
457
|
height: 30px;
|
|
458
458
|
border-radius: ${e.radius.chip};
|
|
@@ -460,7 +460,7 @@ import{b as ue,u as xe,r as l,j as t}from"./react-BYHuwl8r.js";import{s as i,t a
|
|
|
460
460
|
${e.media.maxWidth("mobile")} {
|
|
461
461
|
height: 24px;
|
|
462
462
|
}
|
|
463
|
-
`,
|
|
463
|
+
`,Ve=i(P)`
|
|
464
464
|
width: 36%;
|
|
465
465
|
height: 15px;
|
|
466
466
|
border-radius: ${e.radius.chip};
|
|
@@ -497,7 +497,7 @@ import{b as ue,u as xe,r as l,j as t}from"./react-BYHuwl8r.js";import{s as i,t a
|
|
|
497
497
|
font-size: 16px;
|
|
498
498
|
line-height: 1.4;
|
|
499
499
|
color: rgba(255, 255, 255, 0.88);
|
|
500
|
-
`,it=
|
|
500
|
+
`,it=F`
|
|
501
501
|
0%, 100% {
|
|
502
502
|
transform: scale(1);
|
|
503
503
|
opacity: 1;
|
|
@@ -544,7 +544,7 @@ import{b as ue,u as xe,r as l,j as t}from"./react-BYHuwl8r.js";import{s as i,t a
|
|
|
544
544
|
display: flex;
|
|
545
545
|
align-items: center;
|
|
546
546
|
gap: 8px;
|
|
547
|
-
`,dt=
|
|
547
|
+
`,dt=F`
|
|
548
548
|
0% {
|
|
549
549
|
left: -40%;
|
|
550
550
|
}
|
|
@@ -753,4 +753,4 @@ import{b as ue,u as xe,r as l,j as t}from"./react-BYHuwl8r.js";import{s as i,t a
|
|
|
753
753
|
margin: 0;
|
|
754
754
|
font-family: ${e.font.sans};
|
|
755
755
|
color: ${e.colors.err};
|
|
756
|
-
`,C=Ae()?"mock":"stripe",te=[A,A,ne,se],$t={pack_5:A,pack_10:A,pack_25:ne,pack_50:se};function ae(d,s){return $t[d.id]??te[s%te.length]}function jt(d,s){return d.artUrl??ae(d,s)}const St=[{question:"faq.buyers.whatAreQ",answer:"faq.buyers.whatAreA"},{question:"faq.buyers.whatCanIBuyQ",answer:"faq.buyers.whatCanIBuyA"},{question:"faq.buyers.whereBuyQ",answer:"faq.buyers.whereBuyA"},{question:"faq.buyers.whereUseQ",answer:"faq.buyers.whereUseA"},{question:"faq.buyers.expireQ",answer:"faq.buyers.expireA"},{question:"faq.buyers.transferQ",answer:"faq.buyers.transferA"}];function ie(d){const s=d;if((s==null?void 0:s.name)==="AbortError")return n("getCredits.errorCanceled");const f=((s==null?void 0:s.message)??"").toLowerCase();return f.includes("sign in")?n("getCredits.errorSignIn",{currency:h.name}):f.includes("timed out")?n("getCredits.errorTimeout",{currency:h.name}):n("getCredits.errorGeneric")}function Wt(){var L;ge({title:n("nav.getCredits",{currency:h.name}),noindex:!0});const d=ue(),{session:s,signIn:f}=fe(),o=me(),[m,b]=xe(),{packs:$,isLoading:y}=Ce(),[u,p]=l.useState("select"),[c,
|
|
756
|
+
`,C=Ae()?"mock":"stripe",te=[A,A,ne,se],$t={pack_5:A,pack_10:A,pack_25:ne,pack_50:se};function ae(d,s){return $t[d.id]??te[s%te.length]}function jt(d,s){return d.artUrl??ae(d,s)}const St=[{question:"faq.buyers.whatAreQ",answer:"faq.buyers.whatAreA"},{question:"faq.buyers.whatCanIBuyQ",answer:"faq.buyers.whatCanIBuyA"},{question:"faq.buyers.whereBuyQ",answer:"faq.buyers.whereBuyA"},{question:"faq.buyers.whereUseQ",answer:"faq.buyers.whereUseA"},{question:"faq.buyers.expireQ",answer:"faq.buyers.expireA"},{question:"faq.buyers.transferQ",answer:"faq.buyers.transferA"}];function ie(d){const s=d;if((s==null?void 0:s.name)==="AbortError")return n("getCredits.errorCanceled");const f=((s==null?void 0:s.message)??"").toLowerCase();return f.includes("sign in")?n("getCredits.errorSignIn",{currency:h.name}):f.includes("timed out")?n("getCredits.errorTimeout",{currency:h.name}):n("getCredits.errorGeneric")}function Wt(){var L;ge({title:n("nav.getCredits",{currency:h.name}),noindex:!0});const d=ue(),{session:s,signIn:f}=fe(),o=me(),[m,b]=xe(),{packs:$,isLoading:y}=Ce(),[u,p]=l.useState("select"),[c,E]=l.useState(null),[j,q]=l.useState(null),de=(j!=null?(L=$.find(r=>r.credits===j))==null?void 0:L.artUrl:void 0)??Re,[ce,k]=l.useState(null),[le,R]=l.useState(!1),T=l.useRef(null);l.useEffect(()=>()=>{var r;return(r=T.current)==null?void 0:r.abort()},[]);const I=l.useCallback(()=>{b(r=>{const a=new URLSearchParams(r);return a.delete("order"),a.delete("canceled"),a},{replace:!0})},[b]),_=l.useCallback(async r=>{p("processing");const a=new AbortController;T.current=a;try{const x=await $e(r,{signal:a.signal,address:s==null?void 0:s.address,identity:s==null?void 0:s.identity});if(x.status==="credited"){const w=x.creditsGranted??(c==null?void 0:c.credits)??0;q(w>0?w:null),p("success"),g("Shop Completed Buy Credits",{order_id:r,pack_usd:(c==null?void 0:c.usd)??null,credits:w>0?w:null,provider:C}),o.invalidateQueries({queryKey:["usd-balance"]});try{if(sessionStorage.getItem(je)){const S={resumeCheckout:!0,...w>0?{creditsAdded:w}:{}};d("/cart",{state:S});return}}catch{}try{const S=sessionStorage.getItem(D);if(S){sessionStorage.removeItem(D);const M=JSON.parse(S),U=be(M);if(U){d(U,{state:{item:M,resumeBuy:!0}});return}}}catch{}}else x.status==="pending"?(g("Shop Buy Credits Pending",{step:"grant",pack_usd:(c==null?void 0:c.usd)??null}),o.invalidateQueries({queryKey:["usd-balance"]}),p("pending")):(g("Shop Buy Credits Failed",{step:"grant",error_code:"grant_failed",pack_usd:(c==null?void 0:c.usd)??null}),k(x.error??n("getCredits.errorGrant",{currency:h.name})),p("error"))}catch(x){G(x,{flow:"get_credits",step:"grant",order_id:r}),g("Shop Buy Credits Failed",{step:"grant",error_code:N(x),pack_usd:(c==null?void 0:c.usd)??null}),k(ie(x)),p("error")}},[c,s,o,d]),pe=l.useCallback(async r=>{if(!s){f();return}k(null),R(!1),E(r),p(C==="mock"?"processing":"redirecting"),g("Shop Started Buy Credits",{pack_usd:r.usd,credits:r.credits,provider:C});try{const a=await Se(r.id,{address:s.address,identity:s.identity});if(a.mock)_(a.orderId);else if(a.url)g("Shop Redirected To Stripe",{order_id:a.orderId,pack_usd:r.usd,credits:r.credits}),window.location.href=a.url;else throw new Error("Checkout did not return a redirect url")}catch(a){G(a,{flow:"get_credits",step:"checkout",provider:C}),g("Shop Buy Credits Failed",{step:"checkout",error_code:N(a),pack_usd:r.usd}),k(ie(a)),p("error")}},[s,f,_]),z=l.useRef(!1),W=l.useRef(null);l.useEffect(()=>{if(z.current)return;const r=m.get("order");if(m.get("canceled")!=null){z.current=!0,g("Shop Buy Credits Cancelled",{order_id:r,provider:C}),r&&s&&we(r,s.identity),I(),R(!0),p("select");return}r&&(p("processing"),s&&(z.current=!0,I(),_(r)))},[m,s]);function B(){var r;(r=T.current)==null||r.abort(),p("select"),E(null),q(null),k(null),R(!1)}function he(){const r=W.current;if(!r)return;const a=window.matchMedia("(prefers-reduced-motion: reduce)").matches;r.scrollIntoView({behavior:a?"auto":"smooth",block:"center"}),r.focus({preventScroll:!0})}return t.jsxs(_e,{children:[(u==="select"||u==="redirecting")&&t.jsxs(t.Fragment,{children:[t.jsx(ze,{"data-testid":"credits-hero",children:t.jsxs(Be,{children:[t.jsxs(Ee,{$hidden:u==="redirecting",children:[t.jsxs(qe,{children:[t.jsx(Ie,{children:n("getCredits.title")}),t.jsxs(We,{children:[t.jsx(Le,{children:n("getCredits.subtitle")}),t.jsx(Me,{type:"button",onClick:he,"data-testid":"credits-learn-more",children:n("getCredits.learnMore")})]})]}),le&&t.jsx(Ue,{role:"status",children:n("getCredits.canceledNote")}),t.jsx(At,{packs:$,loading:y,onSelect:r=>void pe(r)})]}),u==="redirecting"&&t.jsxs(et,{role:"status","aria-live":"polite",children:[t.jsx(nt,{src:Q,alt:"",width:72,height:72}),t.jsx(tt,{children:n("getCredits.redirecting")})]})]})}),t.jsx(Fe,{ref:W,tabIndex:-1,"data-testid":"credits-faq",children:t.jsx(ve,{title:"faq.title",entries:St,tone:"on-dark"})})]}),u==="processing"&&t.jsxs(rt,{role:"status","aria-live":"polite",children:[t.jsx(oe,{src:Q,alt:"",width:61,height:61}),t.jsxs(st,{children:[t.jsxs(ot,{children:[t.jsx("strong",{children:n("getCredits.processing")}),"…"]}),t.jsxs(at,{"aria-hidden":!0,children:[t.jsx(ct,{children:t.jsx(lt,{})}),t.jsx(pt,{children:"1/1"})]})]})]}),u==="success"&&t.jsxs(ht,{role:"status","aria-live":"polite",children:[t.jsx(ke,{}),t.jsxs(ut,{children:[t.jsx(xt,{src:Te,alt:"",width:60,height:60}),t.jsxs(gt,{children:[t.jsx("strong",{children:n("getCredits.successTitle")})," ",n("getCredits.successBody",{currency:h.name})]})]}),j!=null&&t.jsx(ft,{children:t.jsxs(mt,{children:[t.jsx(bt,{src:de,alt:"",width:93,height:93}),t.jsxs(wt,{children:[t.jsx(re,{}),t.jsxs("span",{children:[t.jsx(yt,{children:n("getCredits.creditsAmount",{credits:j,currency:h.name})})," ",t.jsx(kt,{children:n("getCredits.creditsAdded")})]})]})]})}),t.jsxs(vt,{children:[t.jsx(v,{"data-variant":"outline",onClick:B,children:n("getCredits.buyMore",{currency:h.name})}),t.jsx(v,{onClick:()=>d("/items"),children:n("getCredits.startShopping")})]})]}),u==="pending"&&t.jsxs(Z,{role:"status","aria-live":"polite",children:[t.jsx(J,{children:n("getCredits.pendingTitle",{currency:h.name})}),t.jsx(Je,{children:n("getCredits.pendingBody")}),t.jsxs(ee,{children:[t.jsx(v,{onClick:()=>d("/items"),children:n("getCredits.startShopping")}),t.jsx(v,{"data-variant":"outline",onClick:B,children:n("getCredits.done")})]})]}),u==="error"&&t.jsxs(Z,{role:"alert",children:[t.jsx(J,{"data-tone":"error",children:n("getCredits.errorTitle")}),t.jsx(Ct,{children:ce}),t.jsx(ee,{children:t.jsx(v,{onClick:B,children:n("getCredits.tryAgain")})})]})]})}function At({packs:d,loading:s,onSelect:f}){return s?t.jsx(Y,{"aria-busy":"true","aria-label":n("getCredits.packsLoading",{currency:h.name}),children:[0,1,2,3].map(o=>t.jsxs(K,{as:"div","data-skeleton":"true","data-testid":"pack-skeleton","aria-hidden":!0,children:[t.jsxs(V,{children:[t.jsxs(X,{children:[t.jsx(Ke,{}),t.jsx(Ve,{})]}),t.jsx(Xe,{})]}),t.jsx(Ze,{})]},o))}):t.jsx(Y,{children:d.map((o,m)=>{const b=Pe(o,d);return t.jsxs(K,{type:"button","data-testid":"pack","data-best":o.bestValue?"true":void 0,onClick:()=>f(o),"aria-label":b?n("getCredits.packAriaBonus",{amount:H(o.credits),usd:o.usd,bonus:b.bonus,baseline:b.baseline}):n("getCredits.packAria",{amount:H(o.credits),usd:o.usd}),children:[o.bestValue&&t.jsxs(Ge,{children:[t.jsx(ye,{name:"star-rounded"}),n("getCredits.packBadge")]}),t.jsxs(V,{children:[t.jsxs(X,{children:[t.jsxs(Ne,{children:[t.jsx(re,{}),t.jsx(Qe,{children:o.credits})]}),t.jsx(He,{children:n("getCredits.packUnit",{currency:h.name})})]}),t.jsx(De,{children:t.jsx("img",{src:jt(o,m),alt:"",loading:"lazy",width:507,height:507,onError:$=>{const y=$.currentTarget;y.dataset.artFallback||(y.dataset.artFallback="done",y.src=ae(o,m))}})})]}),t.jsxs(Oe,{children:["$",o.usd.toFixed(2)]})]},o.id)})})}export{Wt as GetCredits,Wt as default};
|