@dcl/shop 1.2.1-31141894504.commit-b6f2fa5 → 1.2.1-31142439693.commit-a969523
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-CM1koIWA.js → Activity-DtAgXXCT.js} +6 -6
- package/_assets/{AnimatedBackground-Dq4kMaMJ.js → AnimatedBackground-CnnsXeoK.js} +1 -1
- package/_assets/{Assets-CrYK64oM.js → Assets-hx7JMCN0.js} +14 -14
- package/_assets/{Assets.styles-DQJDvpwk.js → Assets.styles-DtgnO29f.js} +1 -1
- package/_assets/{Authorizations-CLlifjsF.js → Authorizations-DzTKBSVf.js} +3 -3
- package/_assets/Cart-BqUoFGZz.js +696 -0
- package/_assets/{CircularProgress-5u3Axs4r.js → CircularProgress-Bt02mjw_.js} +4 -4
- package/_assets/{Collection-CrmOtKVR.js → Collection-CSymTeiW.js} +7 -7
- package/_assets/CollectionCarousel-BHi1lOAm.js +872 -0
- package/_assets/{Confetti-CcphdN06.js → Confetti-CSaXhKTq.js} +1 -1
- package/_assets/{Creator-Cpmty4q3.js → Creator-2cfgxPtY.js} +23 -23
- package/_assets/{ErrorNotice-DcMjmsY0.js → ErrorNotice-0NvsaYP0.js} +1 -1
- package/_assets/{ExchangeController-DuNjedyi.js → ExchangeController-B0-44Nrf.js} +1 -1
- package/_assets/{Faq-BZT-Tuv2.js → Faq-mzdsoq0B.js} +1 -1
- package/_assets/{GetCredits-CQ4C143X.js → GetCredits-BSJYerKi.js} +18 -18
- package/_assets/{Grow-C1qF8Gbp.js → Grow-Da4gzbLC.js} +1 -1
- package/_assets/{HelpersUtil-YUnnMEbv.js → HelpersUtil-BLIxVj9G.js} +1 -1
- package/_assets/ItemDetail-kGFBR3jS.js +3577 -0
- package/_assets/LazyEmoteControls-BnECp0aE.js +2 -0
- package/_assets/{LoadMore-ChE3Ywf2.js → LoadMore-BfbFOkVA.js} +1 -1
- package/_assets/{ManaPricingBanner.styles-YQt9G2FY.js → ManaPricingBanner.styles-eTz7141b.js} +1 -1
- package/_assets/{MyAssets-g4TFZ7e2.js → MyAssets-BQBGBYJ4.js} +5 -5
- package/_assets/{MyFavorites-BHIx442Q.js → MyFavorites-itVWbQyG.js} +1 -1
- package/_assets/{NotFound-Mnz4Ucj1.js → NotFound-ClcitxX9.js} +1 -1
- package/_assets/{NotificationsBell-Cfum40NV.js → NotificationsBell-DYyz5Z30.js} +1 -1
- package/_assets/{OutfitDetail-DYlB-_2t.js → OutfitDetail-rhuHdZzd.js} +13 -13
- package/_assets/{OutfitPreview-CKBV79hH.js → OutfitPreview-xwSnAhYs.js} +2 -2
- package/_assets/{OutfitStudio-D5ASiVh6.js → OutfitStudio-DWy69hUm.js} +11 -11
- package/_assets/{StoreSettings-EwiANufQ.js → StoreSettings-DsGSXrBp.js} +5 -5
- package/_assets/{Success-DEpy1BVd.js → Success-G5l6QxgG.js} +4 -4
- package/_assets/{SwapController-CoZyRCI2.js → SwapController-hERckBOO.js} +1 -1
- package/_assets/{Tooltip-bEqHt7Cn.js → Tooltip-s0TNYj5M.js} +1 -1
- package/_assets/TradeService-Deg8nYhU.js +1 -0
- package/_assets/{W3MFrameProviderSingleton-DUGxXY3k.js → W3MFrameProviderSingleton-D_Fx5Qnc.js} +3 -3
- package/_assets/{WebCryptoP256-D8VfrUWY.js → WebCryptoP256-DQLZJbaq.js} +1 -1
- package/_assets/authorizations-wKbFlO5x.js +1 -0
- package/_assets/{basic-C5bTQfXn.js → basic-Bpe6qcyh.js} +1 -1
- package/_assets/{biconomy-DMDUbT_l.js → biconomy-BTJZXNhm.js} +1 -1
- package/_assets/{builder-J1muoe18.js → builder-BS9Rx5sx.js} +1 -1
- package/_assets/buy-UqWzJLrd.js +1 -0
- package/_assets/buy-gasless-Bd8h9qj8.js +1 -0
- package/_assets/{categories-BvYy29PG.js → categories-_W94SZgq.js} +4 -4
- package/_assets/{ccip-Be222yLp.js → ccip-02nRZYa-.js} +1 -1
- package/_assets/{ccip-nElUyFDJ.js → ccip-BiSZjZqZ.js} +1 -1
- package/_assets/{collectionPage.styles-BbghKEPw.js → collectionPage.styles-DhEeJdUw.js} +1 -1
- package/_assets/{controller-C2j748IT.js → controller-CggAxrrE.js} +2 -2
- package/_assets/{core-f097495A.js → core-CZyP8iSR.js} +4 -4
- package/_assets/{createSvgIcon-BPThy2SY.js → createSvgIcon-BtYVYbOo.js} +4 -4
- package/_assets/{custom-Gy3d1Q7v.js → custom-kCagVi4J.js} +1 -1
- package/_assets/{data-capture-UKTvYwdc.js → data-capture-DHwSNcSI.js} +1 -1
- package/_assets/{email-DvKEgj9J.js → email-DiYf0nSr.js} +1 -1
- package/_assets/{embedded-wallet-_WiZLd4T.js → embedded-wallet-C1yc5YyF.js} +1 -1
- package/_assets/{emotion-styled.browser.esm-D9bzEYCr.js → emotion-styled.browser.esm-CAcmb0zG.js} +1 -1
- package/_assets/{engine-6_t87ask.js → engine-DRKb0ESa.js} +1 -1
- package/_assets/{errors-Cpi20Vs-.js → errors-6i2tBDe2.js} +1 -1
- package/_assets/{estimate-l1-fee-DU4tQjK9.js → estimate-l1-fee-CbMRkZFx.js} +1 -1
- package/_assets/{execute-BQ_MXUy5.js → execute-DeKFAmT2.js} +2 -2
- package/_assets/{features-CK3qf9ZN.js → features-Df09iw3V.js} +1 -1
- package/_assets/{fetchTokenMetadata-BDm74qDJ.js → fetchTokenMetadata-CkFILxzR.js} +2 -2
- package/_assets/{field.styles-C157dq4J.js → field.styles-DgkVbXZK.js} +1 -1
- package/_assets/{get-ecosystem-wallet-info-B6cEjh69.js → get-ecosystem-wallet-info-06X4fJ1f.js} +1 -1
- package/_assets/{getBalance-7z75fs4x.js → getBalance-QURTYeZM.js} +1 -1
- package/_assets/{getNFT-kDrfcrTP.js → getNFT-BpsWGLZ0.js} +1 -1
- package/_assets/{getNFT-DHw--2hM.js → getNFT-n4tZruUk.js} +1 -1
- package/_assets/{grid.styles-BH-KolVj.js → grid.styles-DIsQjilj.js} +1 -1
- package/_assets/{hashTypedData-CaDI86G1.js → hashTypedData-C3bdM-ed.js} +1 -1
- package/_assets/{hashTypedData-BGaOoxNv.js → hashTypedData-hmrLDeWw.js} +1 -1
- package/_assets/{in-app-DrqEBa0Y.js → in-app-Dop16F3m.js} +1 -1
- package/_assets/{in-app-wallet-calls-BAuhvyqE.js → in-app-wallet-calls-qrIakhGH.js} +1 -1
- package/_assets/{index-DrKpI5CV.js → index--pbtXnHr.js} +1 -1
- package/_assets/{index-CkMBkM8p.js → index-1UvbgdV7.js} +1 -1
- package/_assets/{index-9sMHHA07.js → index-B24uRN2L.js} +1 -1
- package/_assets/{index-D5jn8moe.js → index-B63wWKv3.js} +1 -1
- package/_assets/{index-C54FYEkY.js → index-BIT2fuop.js} +1 -1
- package/_assets/{index-DYmMl9gi.js → index-BTpOCv_G.js} +2 -2
- package/_assets/{index-DmNnfRqv.js → index-Ba5mX7GE.js} +1 -1
- package/_assets/{index-CHtt63_F.js → index-BaV7GHs7.js} +1 -1
- package/_assets/{index-CZ3-3d7g.js → index-BcIU81N1.js} +1 -1
- package/_assets/{index-BUVnfVaQ.js → index-BqnKsNGN.js} +11 -11
- package/_assets/{index-B8eN0pGm.js → index-Bu_nC2zh.js} +1 -1
- package/_assets/{index-Belqsjsz.js → index-C1M1vpF2.js} +2 -2
- package/_assets/{index-I5oIRknD.js → index-C3Qst7_u.js} +1 -1
- package/_assets/{index-SOqtqcZc.js → index-CDWYqM-R.js} +1 -1
- package/_assets/{index-BcqoTa3F.js → index-CMpfyfVH.js} +1 -1
- package/_assets/{index-Cw_lQM7v.js → index-CRM0tQuJ.js} +3 -3
- package/_assets/{index-xKy8W33s.js → index-CYXkwKDK.js} +1 -1
- package/_assets/{index-SJTLPDcF.js → index-CaxXXe8a.js} +1 -1
- package/_assets/{index-NZ2EL1Va.js → index-CbnwOaSO.js} +1 -1
- package/_assets/{index--uqlDZSN.js → index-Ch8RmoYB.js} +3 -3
- package/_assets/{index-BRyz9uc0.js → index-CrnN4D6t.js} +1 -1
- package/_assets/{index-Z9Zfp-cE.js → index-CsWQDO0p.js} +1 -1
- package/_assets/{index-CvCTehG1.js → index-D0HBofqu.js} +1 -1
- package/_assets/{index-DdAqmPp5.js → index-D1jSn17G.js} +1 -1
- package/_assets/{index-B2SrFRWu.js → index-D6W-ssbk.js} +1 -1
- package/_assets/{index-weRQS8GT.js → index-D90XRm-b.js} +2 -2
- package/_assets/{index-BvWni_zR.js → index-DA3RHBR9.js} +1 -1
- package/_assets/{index-nfyZZM7e.js → index-DKeNYaIv.js} +1 -1
- package/_assets/{index-BNYb6-ew.js → index-DLLMEbOW.js} +1 -1
- package/_assets/{index-ltLkjfx-.js → index-DO6dqxin.js} +1 -1
- package/_assets/{index-BjuwD4ba.js → index-DPgJwAOQ.js} +1 -1
- package/_assets/{index-BOFN8WyJ.js → index-DRGYHCXS.js} +1 -1
- package/_assets/{index-CgxH7rfI.js → index-DTvpdZer.js} +1 -1
- package/_assets/{index-D5G95QTd.js → index-DcZ5vB6B.js} +1 -1
- package/_assets/{index-wq8907gu.js → index-DjINSqpE.js} +1 -1
- package/_assets/{index-C83EM4_2.js → index-DkWl1-aW.js} +1 -1
- package/_assets/{index-sl5wwK2w.js → index-DlEvJaCI.js} +1 -1
- package/_assets/{index-DQABJ8K0.js → index-DpGCSQLE.js} +15 -15
- package/_assets/{index-DuI636q2.js → index-DrDh6kJD.js} +1 -1
- package/_assets/{index-DFA-jQh0.js → index-Dy6UVXdT.js} +1 -1
- package/_assets/{index-Bn_uaVAp.js → index-Gh2kxtZ1.js} +1 -1
- package/_assets/{index-Dl52ODHX.js → index-Hj_qmrz7.js} +1 -1
- package/_assets/{index-eTdhHjMt.js → index-OjaAcTcB.js} +1 -1
- package/_assets/{index-dkB19blA.js → index-hzSqXU_z.js} +1 -1
- package/_assets/{index-Bi66sVRq.js → index-m_WXdpSW.js} +1 -1
- package/_assets/{index-BO1L1qum.js → index-neSmYai8.js} +1 -1
- package/_assets/{index-BiduFohT.js → index-p3jzX3Dp.js} +1 -1
- package/_assets/{index-D-gAiVLP.js → index-pLQZDPby.js} +1 -1
- package/_assets/{index-B1zKymDP.js → index-uw4A4GZs.js} +1 -1
- package/_assets/{index-BXKEFlSU.js → index-vluHWSLX.js} +1 -1
- package/_assets/{index-C5p9LpAs.js → index-xzlBx1sl.js} +3 -3
- package/_assets/{index-jVj4M1cT.js → index-zVh5mssM.js} +2 -2
- package/_assets/{index.es-CEBpPlnr.js → index.es-BbmCqadP.js} +1 -1
- package/_assets/{index.es-x1vwNVlm.js → index.es-BeBKvNCp.js} +4 -4
- package/_assets/{index.es-DNO5glcp.js → index.es-GKA-mQNj.js} +1 -1
- package/_assets/{localBatchGatewayRequest-BBjlnRHt.js → localBatchGatewayRequest-pu8z2ERk.js} +1 -1
- package/_assets/{networks-C13WwFhP.js → networks-DH7iisn_.js} +1 -1
- package/_assets/{onramp-CT1_T902.js → onramp-CO5njnwi.js} +1 -1
- package/_assets/{openzeppelin-RUjzfcX-.js → openzeppelin-DCWYE1qx.js} +1 -1
- package/_assets/{parseNft-BAvhvBPX.js → parseNft-z460Co-M.js} +2 -2
- package/_assets/{parseSignature-Czi9dqhR.js → parseSignature-Cu26nEOr.js} +1 -1
- package/_assets/{parseSignature-BEQJi4cu.js → parseSignature-mSTxabCk.js} +3 -3
- package/_assets/{passkeys-Du42r5sF.js → passkeys-DEfVOHaG.js} +1 -1
- package/_assets/{pay-with-exchange-CrTCM_iG.js → pay-with-exchange-LJPmHLUo.js} +1 -1
- package/_assets/{qr-overlay-CG31oj34.js → qr-overlay-WuQCOEnK.js} +1 -1
- package/_assets/{receive-DGKxxBjv.js → receive-CZY82LDL.js} +1 -1
- package/_assets/{resolveImplementation-8tujOofo.js → resolveImplementation-Br9IvPvw.js} +1 -1
- package/_assets/{rpc-sUrtbSyk.js → rpc-BuUGT4bd.js} +1 -1
- package/_assets/{secp256k1-CvuUaHW6.js → secp256k1-C8sSBqLR.js} +1 -1
- package/_assets/{secp256k1-DgwVchLn.js → secp256k1-D5Uouftx.js} +1 -1
- package/_assets/{secp256k1-ilN5uvc6.js → secp256k1-xdcv-1Zc.js} +1 -1
- package/_assets/{send-OsD6mp8d.js → send-DASjwbkR.js} +1 -1
- package/_assets/{send-batch-transaction-Dv9gFlBz.js → send-batch-transaction-Bkd7YxmR.js} +1 -1
- package/_assets/{send-eip712-transaction-CInEXRsx.js → send-eip712-transaction-lClcIpxR.js} +2 -2
- package/_assets/{send-gasless-transaction-XefHv_Ab.js → send-gasless-transaction-DiXCfoWk.js} +2 -2
- package/_assets/{send-transaction-DxKCtc6J.js → send-transaction-DBwREW4f.js} +2 -2
- package/_assets/{sendMetaTransaction-DeQMn9dR.js → sendMetaTransaction-DpQSFeja.js} +1 -1
- package/_assets/{sendRawTransaction-CcN1UESp.js → sendRawTransaction-QjR7Mrk5.js} +3 -3
- package/_assets/{serializeTransaction-LQsz0xpR.js → serializeTransaction-3ucIMkUg.js} +1 -1
- package/_assets/{session-proposal-3C-xhn_b.js → session-proposal-Dxff0Akg.js} +1 -1
- package/_assets/{session-request-Bi-TCd-V.js → session-request-ssiJ7nbB.js} +2 -2
- package/_assets/{signing-DTvtfW1Y.js → signing-E5Tx4fnq.js} +3 -3
- package/_assets/{skeleton.styles-BvHHSxH_.js → skeleton.styles-DSss7Hvt.js} +1 -1
- package/_assets/{socials-EGhIb5vA.js → socials-CZtXsWFj.js} +1 -1
- package/_assets/{styled-Dsdo2L_S.js → styled-mpKAKymu.js} +1 -1
- package/_assets/{swaps-BWOQdX7L.js → swaps-DhqmU1zN.js} +1 -1
- package/_assets/{thirdweb-Bq55eHvp.js → thirdweb-C9XFAOy-.js} +3 -3
- package/_assets/{to-serializable-transaction-BdqklZjW.js → to-serializable-transaction-B1znWVBM.js} +2 -2
- package/_assets/{transactionReceipt-C327RjFG.js → transactionReceipt-AJBmmU6y.js} +1 -1
- package/_assets/{transactions-DH_45ulx.js → transactions-C7NN4Hbg.js} +1 -1
- package/_assets/useCreditPacks-Xxhfshoe.js +1 -0
- package/_assets/useImportable-L61GtYLe.js +1 -0
- package/_assets/{useInfiniteGrid-aYtSr9OS.js → useInfiniteGrid-BpmrN-OG.js} +1 -1
- package/_assets/useTheme-CS8bbfCV.js +1 -0
- package/_assets/{verifyHash-Dmswiq1P.js → verifyHash-y4_EC9ki.js} +1 -1
- package/_assets/{w3m-modal-zYlOO-nX.js → w3m-modal-DMYEmTSP.js} +1 -1
- package/_assets/{w3m-modal-CSxNzBHa.js → w3m-modal-ioH5fU7r.js} +1 -1
- package/_assets/{wait-for-tx-receipt-DUa6TPtN.js → wait-for-tx-receipt--im-EDrb.js} +1 -1
- package/_assets/{wallets-D4CLBrkx.js → wallets-Bw_sdm6c.js} +5 -5
- package/_assets/{web-connector-DfuXXolQ.js → web-connector-BPwfErmk.js} +3 -3
- package/_assets/{writeContract-CuhRFcNu.js → writeContract-DPM8gJaJ.js} +1 -1
- package/_assets/{zoraTestnet-j-CjVgGQ.js → zoraTestnet-DglcCRA9.js} +1 -1
- package/index.html +11 -11
- package/package.json +2 -2
- package/_assets/Cart-BTdBdLSV.js +0 -696
- package/_assets/CollectionCarousel-BNRsg5LI.js +0 -872
- package/_assets/ItemDetail-DIJVogYi.js +0 -3577
- package/_assets/LazyEmoteControls-B9ed76Uk.js +0 -2
- package/_assets/TradeService-zAix_pZH.js +0 -1
- package/_assets/authorizations-BG0JBYIM.js +0 -1
- package/_assets/buy-C7GNfKVo.js +0 -1
- package/_assets/buy-gasless-CGeRTZTF.js +0 -1
- package/_assets/useCreditPacks-ohAn5pNf.js +0 -1
- package/_assets/useImportable-CTHYEKOm.js +0 -1
- package/_assets/useTheme-DErq2cgw.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-DpGCSQLE.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-_W94SZgq.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-DpGCSQLE.js";import{T as xe}from"./skeleton.styles-DSss7Hvt.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-DhEeJdUw.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-DtgnO29f.js";import{L as ie}from"./LoadMore-BfbFOkVA.js";import{u as se}from"./useInfiniteGrid-BpmrN-OG.js";import{E as T}from"./ErrorNotice-0NvsaYP0.js";import{G as ae}from"./grid.styles-DIsQjilj.js";import"./dcl-schemas-CmtP3U6y.js";import"./sentry-Dx-KuLV3.js";import"./ethers-BDpbhgX6.js";import"./intl-CBcMB1D2.js";import"./Tooltip-s0TNYj5M.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-DpGCSQLE.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-D_Fx5Qnc.js";import{g as T,a as W,f as b,b as _,c as v}from"./index-xzlBx1sl.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-DpGCSQLE.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-DpGCSQLE.js";import{C as ke}from"./Confetti-CSaXhKTq.js";import{F as ve}from"./Faq-mzdsoq0B.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-Xxhfshoe.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.2.1-31142439693.commit-a969523/_assets/pack-coins-BDh1ZDbh.webp",ne="https://cdn.decentraland.org/@dcl/shop/1.2.1-31142439693.commit-a969523/_assets/pack-stacks-D-V2jSHW.webp",se="https://cdn.decentraland.org/@dcl/shop/1.2.1-31142439693.commit-a969523/_assets/pack-chest-BX_j84xW.webp",Re="https://cdn.decentraland.org/@dcl/shop/1.2.1-31142439693.commit-a969523/_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};
|