@dcl/shop 0.5.1-30942080363.commit-5a008a2 → 0.5.1-30944558724.commit-19fdddf
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-tm1GZBBE.js +357 -0
- package/_assets/{AnimatedBackground-gpCse7EH.js → AnimatedBackground-PdNi-WfR.js} +2 -2
- package/_assets/Assets-DzU3XKtW.js +800 -0
- package/_assets/{Assets.styles-DU_WP2lv.js → Assets.styles-ZM8Q2cFA.js} +56 -56
- package/_assets/{Authorizations-DgmmTCT_.js → Authorizations-BxBoJzQm.js} +7 -7
- package/_assets/{Cart-gTkEGP_-.js → Cart-CoA_J4Zn.js} +6 -6
- package/_assets/{CircularProgress-1fPr054_.js → CircularProgress-iDUU-7Dd.js} +5 -5
- package/_assets/Collection-DUnvQ9xs.js +162 -0
- package/_assets/{CollectionCarousel-CMmb6-ne.js → CollectionCarousel-nQamkKEm.js} +20 -20
- package/_assets/Creator-Dgszo59r.js +306 -0
- package/_assets/{ErrorNotice-D6PKmOXM.js → ErrorNotice-CfA5EQ3B.js} +1 -1
- package/_assets/{ExchangeController-DrcHwQX8.js → ExchangeController-CdHvmoRP.js} +1 -1
- package/_assets/{GetCredits-X1fDrfGZ.js → GetCredits-Dv4OnlPr.js} +11 -11
- package/_assets/{HelpersUtil-JE28M1o7.js → HelpersUtil-DL3ySOBk.js} +1 -1
- package/_assets/{ItemDetail-DeXvVWPr.js → ItemDetail-B2_NA3qK.js} +15 -15
- package/_assets/{LoadMore-B2K4UDfe.js → LoadMore-TnqPM5W_.js} +2 -2
- package/_assets/ManaPricingBanner.styles-C7faS-HZ.js +74 -0
- package/_assets/{MenuList-CnBRd37k.js → MenuList-DLBo9vKa.js} +1 -1
- package/_assets/{MyAssets-DdRWkVS3.js → MyAssets-D-1HxNtf.js} +2 -2
- package/_assets/{MyFavorites-BlGmxMaR.js → MyFavorites-27Kg0fu-.js} +1 -1
- package/_assets/NotFound-CF-eOmVc.js +13 -0
- package/_assets/{NotificationsBell-BrZbQAvI.js → NotificationsBell-BADWC1wN.js} +1 -1
- package/_assets/{OutfitDetail-B249K3hQ.js → OutfitDetail-CdadHpaC.js} +10 -10
- package/_assets/{OutfitPreview-Cdl7SceL.js → OutfitPreview-JIaMYiWg.js} +2 -2
- package/_assets/{OutfitStudio-YxiNgnnh.js → OutfitStudio-D-Tn3MZ0.js} +17 -17
- package/_assets/{StoreSettings-DopfDTeB.js → StoreSettings-5uZXoOvP.js} +43 -43
- package/_assets/{Success-C5omXUBX.js → Success-C4laQ6DO.js} +7 -7
- package/_assets/{SwapController-Bjmuyz_j.js → SwapController-h8IVGbcS.js} +1 -1
- package/_assets/{Tooltip-D3wp0OFx.js → Tooltip-ySlzdfvH.js} +1 -1
- package/_assets/{TradeService-1mcj7EiB.js → TradeService-C_mQXbkZ.js} +1 -1
- package/_assets/{W3MFrameProviderSingleton-DHrNy8cB.js → W3MFrameProviderSingleton-Be2imJ8Z.js} +3 -3
- package/_assets/{WebCryptoP256-D9oW_qyA.js → WebCryptoP256-I4V1QbUv.js} +1 -1
- package/_assets/{authorizations-Bx-uumVM.js → authorizations-D7XuRQgn.js} +1 -1
- package/_assets/{basic-B39QAUZJ.js → basic-Cue7GVXe.js} +1 -1
- package/_assets/{biconomy-Bx6Ho69d.js → biconomy-C-omatJP.js} +1 -1
- package/_assets/{builder-Czq1-krd.js → builder-MQPY8ChB.js} +1 -1
- package/_assets/buy-DGpUz8hz.js +1 -0
- package/_assets/{buy-gasless-CXKZGuta.js → buy-gasless-Bl-OulBV.js} +1 -1
- package/_assets/{categories-3pKh51AH.js → categories-BQKh49D5.js} +32 -32
- package/_assets/{ccip-Co2XroO9.js → ccip-BC-JPxWw.js} +1 -1
- package/_assets/{ccip-BDfDn3iK.js → ccip-Yik4EQGY.js} +1 -1
- package/_assets/{clsx-FFNUV-WB.js → clsx-Df3CFyaE.js} +2 -2
- package/_assets/collectionPage.styles-vmTcFGbQ.js +48 -0
- package/_assets/{controller-Bpa17ZZP.js → controller-Bq2L0AX1.js} +2 -2
- package/_assets/{core-BAfyWlVX.js → core-lz2OIs0H.js} +4 -4
- package/_assets/{createSvgIcon-B10djVRg.js → createSvgIcon-bfaHZSjd.js} +3 -3
- package/_assets/{custom-B06rMK4w.js → custom-DYDi3MJe.js} +1 -1
- package/_assets/{data-capture-BkYxbz02.js → data-capture-Y8xGExqA.js} +1 -1
- package/_assets/{email-Bknt0jHD.js → email-UTvBfzjL.js} +1 -1
- package/_assets/{embedded-wallet-o7x5DbDu.js → embedded-wallet-hF59IEhH.js} +1 -1
- package/_assets/{emotion-styled.browser.esm-Dpa1iAyn.js → emotion-styled.browser.esm-D23S089l.js} +1 -1
- package/_assets/{engine-BNOXJug7.js → engine-CgRM_THA.js} +1 -1
- package/_assets/{errors-Cg4Fnsf8.js → errors-Wm6SH4-v.js} +1 -1
- package/_assets/{estimate-l1-fee-DXNJIfzL.js → estimate-l1-fee-DZHVdg7h.js} +1 -1
- package/_assets/{execute-BFeK7M_Y.js → execute-BPgoblAE.js} +2 -2
- package/_assets/{features-DCfBaiy_.js → features-DYTS35jX.js} +1 -1
- package/_assets/{fetchTokenMetadata-aKrX_QaT.js → fetchTokenMetadata-BxGNbM_2.js} +2 -2
- package/_assets/{field.styles-tnDxAMEw.js → field.styles-Bys6wE0V.js} +1 -1
- package/_assets/{get-ecosystem-wallet-info-CCTUHx5Y.js → get-ecosystem-wallet-info-xvSXu74j.js} +1 -1
- package/_assets/{getBalance-CxkeTHxS.js → getBalance-DLxh2RuD.js} +1 -1
- package/_assets/{getNFT-CYunBlyN.js → getNFT-BOSh5H84.js} +1 -1
- package/_assets/{getNFT-Dy6NXKIb.js → getNFT-K4qjxWNY.js} +1 -1
- package/_assets/{getThemeProps-Bz6-UTTf.js → getThemeProps-mxNIag6l.js} +1 -1
- package/_assets/{grid.styles-BjSrL-3s.js → grid.styles-BaFKxOV8.js} +1 -1
- package/_assets/{hashTypedData-jiOsNHGE.js → hashTypedData-Bje_1GNe.js} +1 -1
- package/_assets/{hashTypedData-Ckb55FUP.js → hashTypedData-CCvvyerQ.js} +1 -1
- package/_assets/{in-app-CBFCQ5yP.js → in-app-DBzemWmV.js} +1 -1
- package/_assets/{in-app-wallet-calls-Buf5QRM_.js → in-app-wallet-calls-CeM3dz7A.js} +1 -1
- package/_assets/{index-DUecvlpK.js → index--BUBq145.js} +1 -1
- package/_assets/{index-qGfC-M8O.js → index-9pYsulOA.js} +1 -1
- package/_assets/{index-nuT17Odj.js → index-B-PyHfEF.js} +1 -1
- package/_assets/{index-BoBgM1AD.js → index-B1WnOG_n.js} +3 -3
- package/_assets/{index-9iEI2jn0.js → index-B4iL_Vxm.js} +1 -1
- package/_assets/{index-Dt_NBFaG.js → index-BCyVn8MQ.js} +1 -1
- package/_assets/{index-RDFBoQxi.js → index-BIXkfL0f.js} +1 -1
- package/_assets/{index-DHfu_49i.js → index-BKSx9kmy.js} +1 -1
- package/_assets/{index-DinK4F_L.js → index-BNbfWSl_.js} +3 -3
- package/_assets/{index-Dokx6uQZ.js → index-BT9bqwmo.js} +1 -1
- package/_assets/{index-_RCROc0P.js → index-BW-7rl1w.js} +1 -1
- package/_assets/{index-nI7p19n6.js → index-BY-2ttcm.js} +1 -1
- package/_assets/{index-DG0maXsi.js → index-BgL4tnd6.js} +1 -1
- package/_assets/{index-DI8pHoj5.js → index-BhRssk62.js} +1 -1
- package/_assets/{index-CWsWvJQR.js → index-BwBZg-Cg.js} +1 -1
- package/_assets/{index-DzJCqD2K.js → index-C1hTWDfF.js} +1 -1
- package/_assets/{index-BWaeHJs2.js → index-C6jx_7vf.js} +1 -1
- package/_assets/{index-CXO-pG6w.js → index-C8VruoUX.js} +1 -1
- package/_assets/{index-ChdOnCl5.js → index-CFUHl0Ma.js} +1 -1
- package/_assets/{index-CpshLABR.js → index-CJWQK5Lk.js} +1 -1
- package/_assets/{index-Bc5IBzFc.js → index-CNwyt0TH.js} +1 -1
- package/_assets/{index-D7Ov3BOT.js → index-COC826L7.js} +1 -1
- package/_assets/{index-CfiJexEY.js → index-CTSAk3HZ.js} +1 -1
- package/_assets/{index-STO6kbYe.js → index-CW0DN1u5.js} +1 -1
- package/_assets/{index-CAP79hiU.js → index-C_KycN_b.js} +1 -1
- package/_assets/{index-CcfifGLA.js → index-Cdnlri5M.js} +1 -1
- package/_assets/{index-Cab_9Z0c.js → index-Cj0IFSYI.js} +1 -1
- package/_assets/{index-Dl80d6_E.js → index-Cx-FPP2C.js} +1 -1
- package/_assets/{index-B4h2Nw0d.js → index-D1ncAmsg.js} +1 -1
- package/_assets/{index-CtMN6sQa.js → index-D3a3O8EH.js} +1 -1
- package/_assets/{index-DmwDbAPX.js → index-D5drugU6.js} +1 -1
- package/_assets/{index-DcGjcsc6.js → index-D7A-L9p9.js} +1 -1
- package/_assets/{index-wxVvLfDd.js → index-DCdXL8QX.js} +2 -2
- package/_assets/{index-DvFfsS8l.js → index-DFaB3PXW.js} +1 -1
- package/_assets/{index-BzOyUlEA.js → index-DGDemPnB.js} +1 -1
- package/_assets/{index-C4PvJvch.js → index-DKr33OKQ.js} +1 -1
- package/_assets/{index-SERS6_dB.js → index-DMSY746R.js} +1 -1
- package/_assets/{index-B14yGzKq.js → index-DRJlDsJB.js} +1 -1
- package/_assets/{index-CWKNVQns.js → index-DZrXtOiH.js} +1 -1
- package/_assets/{index-DxEYKwRl.js → index-D_9mpAb0.js} +2 -2
- package/_assets/index-DaQaTpvn.js +3315 -0
- package/_assets/{index-BUelAUn3.js → index-DvkKq-3d.js} +1 -1
- package/_assets/{index-sItL3uzy.js → index-Iqpx-phg.js} +8 -8
- package/_assets/{index-RQ6uZEar.js → index-MZdslMn6.js} +1 -1
- package/_assets/{index-D2bvSzer.js → index-TvUj9AoT.js} +1 -1
- package/_assets/{index-C3IX0bEG.js → index-VpH-lUJq.js} +1 -1
- package/_assets/{index-BYy-feq3.js → index-WvEbTnHu.js} +1 -1
- package/_assets/{index-B0lN-Mk6.js → index-Ypo9phAp.js} +2 -2
- package/_assets/{index-DZq6_deL.js → index-cFnHRMx4.js} +2 -2
- package/_assets/{index-CMaqcpip.js → index-fzBQEY_W.js} +1 -1
- package/_assets/{index-he_m0Fl-.js → index-sofR0AzT.js} +1 -1
- package/_assets/{index-BUTTEIUm.js → index-vt25O9Am.js} +3 -3
- package/_assets/{index.es-MdcUrD81.js → index.es-B9ErMvUj.js} +4 -4
- package/_assets/{index.es-v1HXELTh.js → index.es-DuthVFnh.js} +1 -1
- package/_assets/{index.es-DThH2vFQ.js → index.es-rx-DH5wv.js} +1 -1
- package/_assets/{localBatchGatewayRequest-CgJUOzba.js → localBatchGatewayRequest-D_WhElUc.js} +1 -1
- package/_assets/{networks-D-bNskAV.js → networks-CjrnWm_p.js} +1 -1
- package/_assets/{onramp-B_PP9t-6.js → onramp-DTvBwKCe.js} +1 -1
- package/_assets/{openzeppelin-CP5bQyOk.js → openzeppelin-C06zmVod.js} +1 -1
- package/_assets/{parseNft-Dj-N28Ic.js → parseNft-CWL0AW1h.js} +2 -2
- package/_assets/{parseSignature-Dp9TGASb.js → parseSignature-5VH_Alnl.js} +1 -1
- package/_assets/{parseSignature-DlXx8lne.js → parseSignature-C5YgXtpR.js} +3 -3
- package/_assets/{passkeys-D4vOQZOp.js → passkeys-DiZlNP-q.js} +1 -1
- package/_assets/{pay-with-exchange-BlkoZTrJ.js → pay-with-exchange-CNm1xvZ5.js} +1 -1
- package/_assets/{qr-overlay-B77wg9uX.js → qr-overlay-CpgjTugW.js} +1 -1
- package/_assets/{receive-fChjzOcU.js → receive-CV4TgE-L.js} +1 -1
- package/_assets/{resolveImplementation-DB1To9fC.js → resolveImplementation-XYPJYD3T.js} +1 -1
- package/_assets/{rpc-Dtph7Sn-.js → rpc-tLuHrGBn.js} +1 -1
- package/_assets/{secp256k1-B54M-EJX.js → secp256k1-CDI-iBc2.js} +1 -1
- package/_assets/{secp256k1-7hf5kymY.js → secp256k1-CYEZP9R3.js} +1 -1
- package/_assets/{secp256k1-RKrSZRhb.js → secp256k1-CpiwnyMt.js} +1 -1
- package/_assets/{send-ekbhdMTX.js → send-D5VuBzPD.js} +1 -1
- package/_assets/{send-batch-transaction-Dsnq3698.js → send-batch-transaction-BfHXn227.js} +1 -1
- package/_assets/{send-eip712-transaction-Bk870_4c.js → send-eip712-transaction-t0wYgXj7.js} +2 -2
- package/_assets/{send-gasless-transaction-mhZcHIOy.js → send-gasless-transaction-CgmsaSdY.js} +2 -2
- package/_assets/{send-transaction-DLfuM_nJ.js → send-transaction-CrLGC-De.js} +2 -2
- package/_assets/{sendMetaTransaction-CbxpNfVY.js → sendMetaTransaction-ef-RXWfu.js} +1 -1
- package/_assets/{sendRawTransaction-Dq6iLNOF.js → sendRawTransaction-pS6CHcTu.js} +3 -3
- package/_assets/{serializeTransaction-D0Ct49e0.js → serializeTransaction-KCGr6qFd.js} +1 -1
- package/_assets/{session-proposal-C_FAURhx.js → session-proposal-sRmaUsXb.js} +1 -1
- package/_assets/{session-request-Bdn2jF6v.js → session-request-CfwKiBxF.js} +2 -2
- package/_assets/{signing-BKBKIDWR.js → signing-DBbUwPle.js} +3 -3
- package/_assets/{socials-DDmkzfIp.js → socials-MOf37RiI.js} +1 -1
- package/_assets/{swaps-BZjTE4Lo.js → swaps-bmMgRWV4.js} +1 -1
- package/_assets/{thirdweb-BRgX__sH.js → thirdweb--zGmSCRq.js} +3 -3
- package/_assets/{to-serializable-transaction-D0EMGY08.js → to-serializable-transaction-DjbT77eY.js} +2 -2
- package/_assets/{trade-encoding-Dw1x271X.js → trade-encoding-wpCgB2Av.js} +1 -1
- package/_assets/{transactionReceipt-MJ3mbhdi.js → transactionReceipt-CweRPSQa.js} +1 -1
- package/_assets/{transactions-DaDqXmUP.js → transactions-dtEdgAGt.js} +1 -1
- package/_assets/useCreditPacks-CzOCruPU.js +1 -0
- package/_assets/useImportable-rrKOGrr4.js +1 -0
- package/_assets/{useInfiniteGrid-7hiVU_K4.js → useInfiniteGrid-XDOQyPRq.js} +1 -1
- package/_assets/useTheme-DGv_oEh8.js +1 -0
- package/_assets/{verifyHash-DcTMzSLu.js → verifyHash-CvfcirkG.js} +1 -1
- package/_assets/{w3m-modal-Qporq01P.js → w3m-modal-BGA4lQKq.js} +1 -1
- package/_assets/{w3m-modal-gRdkhlg8.js → w3m-modal-PufzUctO.js} +1 -1
- package/_assets/{wait-for-tx-receipt-Zm4DabEW.js → wait-for-tx-receipt-0VbbjxzA.js} +1 -1
- package/_assets/{wallets-vgey4Pk4.js → wallets-BopYfWq7.js} +5 -5
- package/_assets/{web-connector-DkrfZGZ4.js → web-connector-BSV6ourQ.js} +3 -3
- package/_assets/{writeContract-CYVoU1GT.js → writeContract-CCNcKbN2.js} +1 -1
- package/_assets/{zoraTestnet-B5TlluZS.js → zoraTestnet-DJdUGbFi.js} +1 -1
- package/index.html +11 -11
- package/package.json +2 -2
- package/_assets/Activity-CfohBp0y.js +0 -357
- package/_assets/Assets-IY2PmVDp.js +0 -800
- package/_assets/Collection-BRcUPhzB.js +0 -119
- package/_assets/Creator-CFYVnbbD.js +0 -306
- package/_assets/ManaPricingBanner.styles-eLx-8UKH.js +0 -74
- package/_assets/NotFound-Bz-rDcjH.js +0 -13
- package/_assets/browseLayout.styles-DXLz-YlY.js +0 -91
- package/_assets/buy-BDTufK8m.js +0 -1
- package/_assets/index-UGlpWu7U.js +0 -3306
- package/_assets/mana-convert-C0Bze7yJ.js +0 -1
- package/_assets/useCreditPacks-CPOVN7Gq.js +0 -1
- package/_assets/useImportable-BElQRFOW.js +0 -1
- package/_assets/useManaRate-bDKCffp4.js +0 -1
- package/_assets/useTheme-C7dqsuDI.js +0 -1
|
@@ -1,119 +0,0 @@
|
|
|
1
|
-
import{j as e,r as m,u as Q,d as X}from"./react-DehiWSvs.js";import{t as v,s as c,aX as J,V as ee,w as T,aY as te,aZ as ae,I as re,b as a,c as oe,y as ie,u as se,n as ne,C as ce,ae as F,af as le,a_ as de,a$ as pe}from"./index-UGlpWu7U.js";import{E as xe}from"./ErrorNotice-D6PKmOXM.js";import{d as ue,P as me,C as ge,a as he,b as be,B as fe,S as je,M as ve,A as ye}from"./browseLayout.styles-DXLz-YlY.js";import{S as z,C as Ce,F as we,c as Ne,P as Se,d as $e,H as ke,e as Pe}from"./categories-3pKh51AH.js";import{L as Ae}from"./LoadMore-B2K4UDfe.js";import{u as Me}from"./useInfiniteGrid-7hiVU_K4.js";import{G as Ee}from"./grid.styles-BjSrL-3s.js";import"./sentry-973sfbO9.js";import"./dcl-schemas-Dr9BTjb7.js";import"./ethers-CtNGBird.js";import"./intl-CBcMB1D2.js";const Re=c.section`
|
|
2
|
-
position: relative;
|
|
3
|
-
border-radius: ${v.radius.card};
|
|
4
|
-
overflow: hidden;
|
|
5
|
-
margin-bottom: 24px;
|
|
6
|
-
min-height: 200px;
|
|
7
|
-
display: flex;
|
|
8
|
-
align-items: center;
|
|
9
|
-
justify-content: center;
|
|
10
|
-
|
|
11
|
-
${v.media.maxWidth("mobile")} {
|
|
12
|
-
min-height: 140px;
|
|
13
|
-
}
|
|
14
|
-
`,Te=c.div`
|
|
15
|
-
position: absolute;
|
|
16
|
-
inset: 0;
|
|
17
|
-
z-index: 0;
|
|
18
|
-
`,Fe=c.img`
|
|
19
|
-
width: 100%;
|
|
20
|
-
height: 100%;
|
|
21
|
-
object-fit: cover;
|
|
22
|
-
display: block;
|
|
23
|
-
`,ze=c.div`
|
|
24
|
-
position: absolute;
|
|
25
|
-
inset: 0;
|
|
26
|
-
background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.55) 100%);
|
|
27
|
-
`,Be=c.h1`
|
|
28
|
-
position: relative;
|
|
29
|
-
z-index: 1;
|
|
30
|
-
margin: 0;
|
|
31
|
-
padding: 32px 24px;
|
|
32
|
-
text-align: center;
|
|
33
|
-
color: ${v.colors.white};
|
|
34
|
-
font-size: 40px;
|
|
35
|
-
font-weight: 800;
|
|
36
|
-
line-height: 1.2;
|
|
37
|
-
letter-spacing: 0.02em;
|
|
38
|
-
text-transform: uppercase;
|
|
39
|
-
text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
|
|
40
|
-
|
|
41
|
-
${v.media.maxWidth("mobile")} {
|
|
42
|
-
padding: 24px 16px;
|
|
43
|
-
font-size: 26px;
|
|
44
|
-
}
|
|
45
|
-
`;function Le({name:r,creator:t}){const{data:s}=J(t),d=(s==null?void 0:s.cover)||ue;return e.jsxs(Re,{"data-testid":"collection-hero","aria-label":r,children:[e.jsxs(Te,{children:[e.jsx(Fe,{src:d,alt:"",loading:"eager"}),e.jsx(ze,{"aria-hidden":!0})]}),e.jsx(Be,{"data-testid":"collection-hero-title",children:r})]})}const{colors:n,radius:L}=v,Ie=c.div`
|
|
46
|
-
display: flex;
|
|
47
|
-
flex-direction: column;
|
|
48
|
-
align-items: center;
|
|
49
|
-
text-align: center;
|
|
50
|
-
gap: 12px;
|
|
51
|
-
padding-bottom: 24px;
|
|
52
|
-
/* Lift so the avatar half-overlaps the 24px-below cover hero (24px + half the 110px avatar). */
|
|
53
|
-
margin-top: -79px;
|
|
54
|
-
margin-bottom: 8px;
|
|
55
|
-
border-bottom: 1px solid ${n.line};
|
|
56
|
-
`,B=c.img`
|
|
57
|
-
display: block;
|
|
58
|
-
width: 110px;
|
|
59
|
-
height: 110px;
|
|
60
|
-
border-radius: 50%;
|
|
61
|
-
object-fit: cover;
|
|
62
|
-
border: 5px solid ${n.white};
|
|
63
|
-
box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
|
|
64
|
-
background: #ff4bed;
|
|
65
|
-
`,_e=c.h2`
|
|
66
|
-
margin: 0;
|
|
67
|
-
font-size: 20px;
|
|
68
|
-
font-weight: 700;
|
|
69
|
-
line-height: 1.3;
|
|
70
|
-
color: ${n.text};
|
|
71
|
-
max-width: 100%;
|
|
72
|
-
overflow: hidden;
|
|
73
|
-
text-overflow: ellipsis;
|
|
74
|
-
white-space: nowrap;
|
|
75
|
-
`,Ge=c.button`
|
|
76
|
-
display: inline-flex;
|
|
77
|
-
align-items: center;
|
|
78
|
-
gap: 8px;
|
|
79
|
-
padding: 4px 8px;
|
|
80
|
-
border: 0;
|
|
81
|
-
border-radius: ${L.btn};
|
|
82
|
-
background: none;
|
|
83
|
-
color: ${n.muted};
|
|
84
|
-
font: inherit;
|
|
85
|
-
font-size: 14px;
|
|
86
|
-
cursor: pointer;
|
|
87
|
-
transition:
|
|
88
|
-
color 0.15s ease,
|
|
89
|
-
background 0.15s ease;
|
|
90
|
-
|
|
91
|
-
&:hover {
|
|
92
|
-
color: ${n.text};
|
|
93
|
-
background: ${n.media};
|
|
94
|
-
}
|
|
95
|
-
`,He=c.a`
|
|
96
|
-
display: inline-flex;
|
|
97
|
-
align-items: center;
|
|
98
|
-
justify-content: center;
|
|
99
|
-
width: 100%;
|
|
100
|
-
height: 44px;
|
|
101
|
-
padding: 0 20px;
|
|
102
|
-
border: 2px solid ${n.accent};
|
|
103
|
-
border-radius: ${L.btn};
|
|
104
|
-
background: transparent;
|
|
105
|
-
color: ${n.accent};
|
|
106
|
-
font-weight: 600;
|
|
107
|
-
font-size: 13px;
|
|
108
|
-
text-transform: uppercase;
|
|
109
|
-
letter-spacing: 0.046em;
|
|
110
|
-
text-decoration: none;
|
|
111
|
-
transition:
|
|
112
|
-
background 0.15s ease,
|
|
113
|
-
color 0.15s ease;
|
|
114
|
-
|
|
115
|
-
&:hover {
|
|
116
|
-
background: ${n.accent};
|
|
117
|
-
color: ${n.white};
|
|
118
|
-
}
|
|
119
|
-
`;function Ue({address:r}){var f,l;const{data:t}=ee(r),[s,d]=m.useState(!1);if(!r)return null;const p=(t==null?void 0:t.name)||T(r),g=(l=(f=t==null?void 0:t.avatar)==null?void 0:f.snapshots)==null?void 0:l.face256,h=`${oe.profileUrl}/${r}`,b=te(ae({name:t==null?void 0:t.name,hasClaimedName:t==null?void 0:t.hasClaimedName,ethAddress:(t==null?void 0:t.ethAddress)??r}));async function x(){try{await navigator.clipboard.writeText(r),d(!0),window.setTimeout(()=>d(!1),1500)}catch(y){ie(y,{flow:"copy_creator_address"})}}return e.jsxs(Ie,{"data-testid":"creator-card",children:[g?e.jsx(B,{src:g,alt:"",loading:"eager",style:{backgroundColor:b}}):e.jsx(B,{as:"span","aria-hidden":!0,style:{backgroundColor:b}}),e.jsx(_e,{title:p,children:p}),e.jsxs(Ge,{type:"button",onClick:()=>void x(),title:s?a("collection.copied"):a("collection.copyAddress"),"aria-label":s?a("collection.copied"):a("collection.copyAddress"),children:[e.jsx("span",{children:T(r)}),e.jsx(re,{name:"copy",size:16})]}),e.jsx(He,{"data-testid":"creator-card-view",href:h,target:"_blank",rel:"noopener noreferrer",children:a("collection.viewProfile")})]})}const qe=48;function at(){var R;const{contractAddress:r}=Q(),t=X(),[s,d]=m.useState("wearable"),[p,g]=m.useState(null),[h,b]=m.useState([]),[x,f]=m.useState(""),[l,y]=m.useState(""),[N,I]=m.useState("newest"),S=x&&!Number.isNaN(Number(x))?Number(x):void 0,$=l&&!Number.isNaN(Number(l))?Number(l):void 0,_=p?Pe[p]:void 0,G=(z.find(o=>o.key===N)??z[0]).server,k={category:s,rarities:h.length?h:void 0,wearableCategories:_,minPriceCredits:S,maxPriceCredits:$,sortBy:G},{items:j,total:H,isLoading:C,error:P,hasNextPage:U,isFetchingNextPage:A,isFetchNextPageError:q,fetchNextPage:K}=Me(["collection-page",r,k],o=>de(r,{...k,first:qe,skip:o}),{enabled:!!r}),{data:i}=se({queryKey:["collection-meta",r],queryFn:()=>pe(r),enabled:!!r,staleTime:5*6e4}),M=(i==null?void 0:i.name)||a("collection.fallbackTitle");ne({title:i==null?void 0:i.name,description:i!=null&&i.name?a("seo.collection.description",{name:i.name}):void 0});const E=(i==null?void 0:i.creator)||((R=j[0])==null?void 0:R.creator);function V(o){d(o),g(null)}function W(o){b(u=>u.includes(o)?u.filter(O=>O!==o):[...u,o])}function Y(){d("wearable"),g(null),b([]),f(""),y("")}const w=!!(S||$),Z=w?`${x||"0"}–${l||"∞"}`:a("filter.price"),D=s!=="wearable"||!!p||h.length>0||w;return e.jsxs(me,{"data-testid":"collection-page",children:[e.jsxs(ge,{"aria-label":a("collection.breadcrumbAria"),children:[e.jsx(he,{onClick:()=>t("/items"),children:a("collection.breadcrumb")}),e.jsx("span",{children:"/"}),e.jsx(be,{children:M})]}),e.jsx(Le,{name:M,creator:E}),e.jsxs(fe,{"data-testid":"browse",children:[e.jsxs(je,{"data-testid":"browse-sidebar",children:[e.jsx(Ue,{address:E}),e.jsx(Ce,{category:s,subCategory:p,onCategory:V,onSub:g,title:a("collection.category"),flat:!0})]}),e.jsxs(ve,{children:[!C&&j.length>0?e.jsx(ye,{items:j,source:"collection"}):null,e.jsx(we,{rarities:h,onToggleRarity:W,sort:N,onSort:I,total:H,loading:C,anyActive:D,onClear:Y,renderTrailing:o=>e.jsx(Ne,{panelKey:"price",label:Z,active:w,panel:o,children:e.jsxs(Se,{"data-variant":"price",children:[e.jsxs($e,{children:[e.jsx("input",{type:"number",min:"0","aria-label":a("collection.priceMin"),placeholder:a("collection.priceMinPlaceholder"),value:x,onChange:u=>f(u.target.value)}),e.jsx("span",{children:"–"}),e.jsx("input",{type:"number",min:"0","aria-label":a("collection.priceMax"),placeholder:a("collection.priceMaxPlaceholder"),value:l,onChange:u=>y(u.target.value)})]}),e.jsx(ke,{children:a("collection.priceHint",{currency:ce.name})})]})})}),P?e.jsx(xe,{message:a("collection.error")}):null,e.jsx(Ee,{"data-testid":"grid",children:C?e.jsx(F,{count:15}):e.jsxs(e.Fragment,{children:[j.map(o=>e.jsx(le,{item:o},o.id)),A?e.jsx(F,{count:6}):null]})}),e.jsx(Ae,{hasNextPage:U,isFetching:A,isError:q,onLoadMore:()=>void K()}),!C&&!P&&j.length===0?e.jsx("p",{className:"muted",children:a("collection.empty")}):null]})]})]})}export{at as Collection,at as default};
|
|
@@ -1,306 +0,0 @@
|
|
|
1
|
-
import{d as Y,j as e,L as be,u as fe,e as we,r as y}from"./react-DehiWSvs.js";import{t as Z,E as je,G as R,F as _,s as r,bi as ve,ap as Ce,bj as ye,b as t,bk as $e,bl as W,B as ke,ab as X,V as q,aX as Ne,l as Pe,w as J,bm as Se,aY as Le,aZ as Ae,I as T,c as Ee,n as Fe,ae as S,C as Me,af as ze,bh as Be,bn as Ie}from"./index-UGlpWu7U.js";import{d as Re,P as _e,C as We,a as Te,b as Ge,A as He,B as Ue,S as De,M as Ke,c as Oe,e as Ve}from"./browseLayout.styles-DXLz-YlY.js";import{S as G,C as Ye,F as Ze,c as Xe,P as qe,d as Je,H as Qe,e as et}from"./categories-3pKh51AH.js";import{L as H}from"./LoadMore-B2K4UDfe.js";import{u as U}from"./useInfiniteGrid-7hiVU_K4.js";import{E as D}from"./ErrorNotice-D6PKmOXM.js";import{G as K}from"./grid.styles-BjSrL-3s.js";import"./sentry-973sfbO9.js";import"./dcl-schemas-Dr9BTjb7.js";import"./ethers-CtNGBird.js";import"./intl-CBcMB1D2.js";const{colors:u,radius:Q,media:tt}=Z,it=r.article`
|
|
2
|
-
height: 300px;
|
|
3
|
-
background: ${u.bg};
|
|
4
|
-
border-radius: ${Q.card};
|
|
5
|
-
overflow: hidden;
|
|
6
|
-
position: relative;
|
|
7
|
-
isolation: isolate;
|
|
8
|
-
display: flex;
|
|
9
|
-
flex-direction: column;
|
|
10
|
-
cursor: pointer;
|
|
11
|
-
transition: box-shadow 0.15s ease;
|
|
12
|
-
|
|
13
|
-
&::after {
|
|
14
|
-
${je};
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
&:focus-visible {
|
|
18
|
-
${R};
|
|
19
|
-
}
|
|
20
|
-
&:focus-visible::after {
|
|
21
|
-
${_};
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
// The swap is a pointer affordance only: keyboard focus must not hide the creator row, whose profile
|
|
25
|
-
// link is focusable (visibility: hidden would drop it from the tab order). Enter/Space on the card
|
|
26
|
-
// already opens the collection.
|
|
27
|
-
@media (hover: hover) {
|
|
28
|
-
&:hover {
|
|
29
|
-
${R};
|
|
30
|
-
}
|
|
31
|
-
&:hover::after {
|
|
32
|
-
${_};
|
|
33
|
-
}
|
|
34
|
-
&:hover [data-view] {
|
|
35
|
-
visibility: visible;
|
|
36
|
-
}
|
|
37
|
-
&:hover [data-meta] {
|
|
38
|
-
visibility: hidden;
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
`,ot=r.div`
|
|
42
|
-
position: relative;
|
|
43
|
-
flex: 1;
|
|
44
|
-
min-height: 0;
|
|
45
|
-
background: ${u.media};
|
|
46
|
-
overflow: hidden;
|
|
47
|
-
`,rt=r.img`
|
|
48
|
-
width: 100%;
|
|
49
|
-
height: 100%;
|
|
50
|
-
object-fit: cover;
|
|
51
|
-
display: block;
|
|
52
|
-
`,at=r(ve)`
|
|
53
|
-
& [data-testid='coll-thumb-cell'] img {
|
|
54
|
-
object-fit: contain;
|
|
55
|
-
padding: 10px;
|
|
56
|
-
}
|
|
57
|
-
`,st=r.div`
|
|
58
|
-
flex: 0 0 102px;
|
|
59
|
-
height: 102px;
|
|
60
|
-
padding: 12px 14px;
|
|
61
|
-
display: flex;
|
|
62
|
-
flex-direction: column;
|
|
63
|
-
gap: 8px;
|
|
64
|
-
`,nt=r.h3`
|
|
65
|
-
margin: 0;
|
|
66
|
-
font-weight: 700;
|
|
67
|
-
font-size: 18px;
|
|
68
|
-
line-height: 1.3;
|
|
69
|
-
color: ${u.text};
|
|
70
|
-
white-space: nowrap;
|
|
71
|
-
overflow: hidden;
|
|
72
|
-
text-overflow: ellipsis;
|
|
73
|
-
|
|
74
|
-
${tt.maxWidth("mobile")} {
|
|
75
|
-
font-size: 16px;
|
|
76
|
-
}
|
|
77
|
-
`,ct=r.div`
|
|
78
|
-
flex: 1;
|
|
79
|
-
min-height: 0;
|
|
80
|
-
display: grid;
|
|
81
|
-
grid-template-areas: 'stack';
|
|
82
|
-
align-items: center;
|
|
83
|
-
|
|
84
|
-
& > * {
|
|
85
|
-
grid-area: stack;
|
|
86
|
-
}
|
|
87
|
-
`,lt=r.div`
|
|
88
|
-
display: flex;
|
|
89
|
-
align-items: center;
|
|
90
|
-
justify-content: space-between;
|
|
91
|
-
gap: 10px;
|
|
92
|
-
`,dt=r(Ce)`
|
|
93
|
-
min-width: 0;
|
|
94
|
-
color: ${u.muted};
|
|
95
|
-
|
|
96
|
-
& [data-avatar] {
|
|
97
|
-
width: 24px;
|
|
98
|
-
height: 24px;
|
|
99
|
-
}
|
|
100
|
-
& [data-testid='creator-name'] {
|
|
101
|
-
font-size: 14px;
|
|
102
|
-
}
|
|
103
|
-
& [data-testid='creator-display'] {
|
|
104
|
-
color: ${u.dclRed};
|
|
105
|
-
font-weight: 700;
|
|
106
|
-
}
|
|
107
|
-
`,ht=r.span`
|
|
108
|
-
min-width: 0;
|
|
109
|
-
`,xt=r.span`
|
|
110
|
-
flex: none;
|
|
111
|
-
color: ${u.text};
|
|
112
|
-
font-weight: 600;
|
|
113
|
-
font-size: 14px;
|
|
114
|
-
white-space: nowrap;
|
|
115
|
-
`,pt=r.button`
|
|
116
|
-
visibility: hidden;
|
|
117
|
-
width: 100%;
|
|
118
|
-
height: 44px;
|
|
119
|
-
display: flex;
|
|
120
|
-
align-items: center;
|
|
121
|
-
justify-content: center;
|
|
122
|
-
background: ${u.accent};
|
|
123
|
-
color: ${u.softWhite};
|
|
124
|
-
border: 0;
|
|
125
|
-
border-radius: ${Q.btn};
|
|
126
|
-
font-weight: 700;
|
|
127
|
-
font-size: 13px;
|
|
128
|
-
text-transform: uppercase;
|
|
129
|
-
letter-spacing: 0.046em;
|
|
130
|
-
transition: background 0.15s ease;
|
|
131
|
-
|
|
132
|
-
&:hover {
|
|
133
|
-
background: ${u.accentHover};
|
|
134
|
-
}
|
|
135
|
-
&:active {
|
|
136
|
-
background: ${u.accentActive};
|
|
137
|
-
}
|
|
138
|
-
`;function gt({collection:a,cover:i,itemCount:s}){const n=Y(),{contractAddress:g,name:x,creator:b}=a,C=i==null||s==null,{data:d}=ye(g,C),w=i==null?(d==null?void 0:d.items)??[]:[],m=s??(d==null?void 0:d.total);function f(){n(`/collection/${g}`)}return e.jsxs(it,{"data-testid":"coll-card",role:"link",tabIndex:0,onClick:f,onKeyDown:h=>{(h.key==="Enter"||h.key===" ")&&(h.preventDefault(),f())},children:[e.jsx(ot,{children:i?e.jsx(rt,{"data-testid":"coll-card-img",src:i,alt:"",loading:"lazy"}):w.length>0?e.jsx(at,{items:w,tinted:!1}):null}),e.jsxs(st,{children:[e.jsx(nt,{title:x,children:x}),e.jsxs(ct,{children:[e.jsxs(lt,{"data-meta":!0,"data-testid":"coll-card-meta",children:[b?e.jsx(dt,{address:b,linkToProfile:!0}):e.jsx(ht,{children:" "}),e.jsx(xt,{children:m==null?"…":t("collectionCard.itemCount",{count:m})})]}),e.jsx(pt,{"data-view":!0,"data-testid":"coll-card-view",onClick:h=>{h.stopPropagation(),f()},tabIndex:-1,children:t("collectionCard.viewCollection")})]})]})]})}function mt({address:a,className:i=""}){const s=$e(),n=W(x=>x.followed.includes(a.toLowerCase())),g=W(x=>x.toggle);return!s||!a?null:e.jsx(ke,{type:"button",size:"sm",variant:n?"ghost":"outline",className:i||void 0,"aria-pressed":n,title:n?t("creator.unfollowTitle"):t("creator.followTitle"),onClick:()=>g(a),children:n?t("creator.following"):t("creator.follow")})}const{colors:v,radius:ee,media:j}=Z,te=X`
|
|
139
|
-
display: inline-flex;
|
|
140
|
-
align-items: center;
|
|
141
|
-
justify-content: center;
|
|
142
|
-
height: 44px;
|
|
143
|
-
padding: 0 28px;
|
|
144
|
-
border: 2px solid ${v.white};
|
|
145
|
-
border-radius: ${ee.btn};
|
|
146
|
-
background: transparent;
|
|
147
|
-
color: ${v.white};
|
|
148
|
-
font-weight: 600;
|
|
149
|
-
font-size: 13px;
|
|
150
|
-
text-transform: uppercase;
|
|
151
|
-
letter-spacing: 0.046em;
|
|
152
|
-
text-decoration: none;
|
|
153
|
-
`,ut=r.section`
|
|
154
|
-
position: relative;
|
|
155
|
-
border-radius: ${ee.card};
|
|
156
|
-
overflow: hidden;
|
|
157
|
-
margin-bottom: 24px;
|
|
158
|
-
min-height: 360px;
|
|
159
|
-
display: flex;
|
|
160
|
-
align-items: center;
|
|
161
|
-
justify-content: center;
|
|
162
|
-
|
|
163
|
-
&& .creator-hero__follow {
|
|
164
|
-
${te};
|
|
165
|
-
}
|
|
166
|
-
&& .creator-hero__follow:hover:not(:disabled) {
|
|
167
|
-
background: rgba(255, 255, 255, 0.14);
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
${j.maxWidth("mobile")} {
|
|
171
|
-
min-height: 260px;
|
|
172
|
-
}
|
|
173
|
-
`,bt=r.div`
|
|
174
|
-
position: absolute;
|
|
175
|
-
inset: 0;
|
|
176
|
-
z-index: 0;
|
|
177
|
-
`,ft=r.img`
|
|
178
|
-
width: 100%;
|
|
179
|
-
height: 100%;
|
|
180
|
-
object-fit: cover;
|
|
181
|
-
display: block;
|
|
182
|
-
`,wt=r.div`
|
|
183
|
-
position: absolute;
|
|
184
|
-
inset: 0;
|
|
185
|
-
background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.55) 100%);
|
|
186
|
-
`,jt=r.div`
|
|
187
|
-
position: absolute;
|
|
188
|
-
top: 16px;
|
|
189
|
-
right: 16px;
|
|
190
|
-
z-index: 2;
|
|
191
|
-
display: flex;
|
|
192
|
-
align-items: center;
|
|
193
|
-
gap: 8px;
|
|
194
|
-
|
|
195
|
-
${j.maxWidth("mobile")} {
|
|
196
|
-
top: 12px;
|
|
197
|
-
right: 12px;
|
|
198
|
-
gap: 6px;
|
|
199
|
-
}
|
|
200
|
-
`,ie=X`
|
|
201
|
-
display: flex;
|
|
202
|
-
align-items: center;
|
|
203
|
-
justify-content: center;
|
|
204
|
-
color: ${v.white};
|
|
205
|
-
transition: opacity 0.15s linear;
|
|
206
|
-
|
|
207
|
-
&:hover {
|
|
208
|
-
opacity: 0.8;
|
|
209
|
-
}
|
|
210
|
-
& .ico {
|
|
211
|
-
width: 36px;
|
|
212
|
-
height: 36px;
|
|
213
|
-
}
|
|
214
|
-
${j.maxWidth("mobile")} {
|
|
215
|
-
& .ico {
|
|
216
|
-
width: 30px;
|
|
217
|
-
height: 30px;
|
|
218
|
-
}
|
|
219
|
-
}
|
|
220
|
-
`,vt=r.a`
|
|
221
|
-
${ie};
|
|
222
|
-
`,Ct=r(be)`
|
|
223
|
-
${ie};
|
|
224
|
-
width: 32px;
|
|
225
|
-
height: 32px;
|
|
226
|
-
border-radius: 50%;
|
|
227
|
-
border: 2px solid ${v.white};
|
|
228
|
-
transition: background-color 0.15s linear;
|
|
229
|
-
|
|
230
|
-
&:hover {
|
|
231
|
-
opacity: 1;
|
|
232
|
-
background: rgba(255, 255, 255, 0.24);
|
|
233
|
-
}
|
|
234
|
-
& .ico {
|
|
235
|
-
width: 16px;
|
|
236
|
-
height: 16px;
|
|
237
|
-
}
|
|
238
|
-
${j.maxWidth("mobile")} {
|
|
239
|
-
width: 28px;
|
|
240
|
-
height: 28px;
|
|
241
|
-
& .ico {
|
|
242
|
-
width: 14px;
|
|
243
|
-
height: 14px;
|
|
244
|
-
}
|
|
245
|
-
}
|
|
246
|
-
`,yt=r.div`
|
|
247
|
-
position: relative;
|
|
248
|
-
z-index: 1;
|
|
249
|
-
display: flex;
|
|
250
|
-
flex-direction: column;
|
|
251
|
-
align-items: center;
|
|
252
|
-
text-align: center;
|
|
253
|
-
gap: 24px;
|
|
254
|
-
padding: 32px 20px;
|
|
255
|
-
|
|
256
|
-
${j.maxWidth("mobile")} {
|
|
257
|
-
padding: 56px 16px 24px;
|
|
258
|
-
}
|
|
259
|
-
`,O=r.img`
|
|
260
|
-
display: block;
|
|
261
|
-
width: 112px;
|
|
262
|
-
height: 112px;
|
|
263
|
-
border-radius: 50%;
|
|
264
|
-
object-fit: cover;
|
|
265
|
-
border: 4px solid ${v.white};
|
|
266
|
-
box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
|
|
267
|
-
background: #ff4bed;
|
|
268
|
-
|
|
269
|
-
${j.maxWidth("mobile")} {
|
|
270
|
-
width: 88px;
|
|
271
|
-
height: 88px;
|
|
272
|
-
}
|
|
273
|
-
`,$t=r.h2`
|
|
274
|
-
margin: 0;
|
|
275
|
-
font-size: 18px;
|
|
276
|
-
font-weight: 700;
|
|
277
|
-
color: ${v.white};
|
|
278
|
-
line-height: 1.6;
|
|
279
|
-
|
|
280
|
-
${j.maxWidth("mobile")} {
|
|
281
|
-
font-size: 16px;
|
|
282
|
-
}
|
|
283
|
-
`,kt=r.p`
|
|
284
|
-
margin: 0;
|
|
285
|
-
font-size: 15px;
|
|
286
|
-
color: ${v.white};
|
|
287
|
-
line-height: 1.6;
|
|
288
|
-
max-width: 520px;
|
|
289
|
-
|
|
290
|
-
${j.maxWidth("mobile")} {
|
|
291
|
-
font-size: 14px;
|
|
292
|
-
}
|
|
293
|
-
`,Nt=r.div`
|
|
294
|
-
display: flex;
|
|
295
|
-
align-items: center;
|
|
296
|
-
gap: 12px;
|
|
297
|
-
flex-wrap: wrap;
|
|
298
|
-
justify-content: center;
|
|
299
|
-
`,Pt=r.a`
|
|
300
|
-
${te};
|
|
301
|
-
transition: background 0.15s ease;
|
|
302
|
-
|
|
303
|
-
&:hover {
|
|
304
|
-
background: rgba(255, 255, 255, 0.14);
|
|
305
|
-
}
|
|
306
|
-
`,St={website:"website",twitter:"twitter",discord:"discord",facebook:"facebook"};function Lt({address:a}){var h,$;const{data:i}=q(a),{data:s}=Ne(a),n=Pe(l=>{var k;return(k=l.session)==null?void 0:k.address}),g=!!n&&n.toLowerCase()===a.toLowerCase(),x=(i==null?void 0:i.name)||J(a),b=($=(h=i==null?void 0:i.avatar)==null?void 0:h.snapshots)==null?void 0:$.face256,C=(s==null?void 0:s.cover)||Re,d=s==null?void 0:s.description,w=`${Ee.profileUrl}/${a}`,m=Se.filter(l=>s==null?void 0:s.links[l]),f=Le(Ae({name:i==null?void 0:i.name,hasClaimedName:i==null?void 0:i.hasClaimedName,ethAddress:(i==null?void 0:i.ethAddress)??a}));return e.jsxs(ut,{"aria-label":`${x} storefront`,children:[e.jsxs(bt,{children:[e.jsx(ft,{src:C,alt:"",loading:"eager"}),e.jsx(wt,{"aria-hidden":!0})]}),(m.length>0||g)&&e.jsxs(jt,{children:[m.map(l=>e.jsx(vt,{"data-testid":"creator-hero-link",href:(s==null?void 0:s.links[l])??"",target:"_blank",rel:"noopener noreferrer",title:t(`creator.link.${l}`),"aria-label":t(`creator.link.${l}`),children:e.jsx(T,{name:St[l]})},l)),g&&e.jsx(Ct,{to:"/store-settings",title:t("creator.editStore"),"aria-label":t("creator.editStore"),children:e.jsx(T,{name:"pen"})})]}),e.jsxs(yt,{children:[b?e.jsx(O,{src:b,alt:"",loading:"eager",style:{backgroundColor:f}}):e.jsx(O,{as:"span","aria-hidden":!0,style:{backgroundColor:f}}),e.jsxs("div",{children:[e.jsx($t,{children:x}),d?e.jsx(kt,{children:d}):null]}),e.jsxs(Nt,{children:[e.jsx(Pt,{"data-testid":"creator-hero-view",href:w,target:"_blank",rel:"noopener noreferrer",children:t("creator.viewProfile")}),e.jsx(mt,{address:a,className:"creator-hero__follow"})]})]})]})}const V=48;function Ht(){const{address:a}=fe(),i=Y(),[s]=we(),n=s.has("collections"),{data:g}=q(a),x=(g==null?void 0:g.name)||(a?J(a):t("creator.fallbackName"));Fe({title:x,description:t("seo.creator.description",{name:x})});const[b,C]=y.useState("wearable"),[d,w]=y.useState(null),[m,f]=y.useState([]),[h,$]=y.useState(""),[l,k]=y.useState(""),[A,oe]=y.useState("newest"),E=h&&!Number.isNaN(Number(h))?Number(h):void 0,F=l&&!Number.isNaN(Number(l))?Number(l):void 0,re=d?et[d]:void 0,ae=(G.find(o=>o.key===A)??G[0]).server,M={creator:a,category:b,rarities:m.length?m:void 0,wearableCategories:re,minPriceCredits:E,maxPriceCredits:F,sortBy:ae},{items:N,total:se,isLoading:P,error:z,hasNextPage:ne,isFetchingNextPage:B,isFetchNextPageError:ce,fetchNextPage:le}=U(["creator-listings",M],o=>Be({...M,first:V,skip:o}),{enabled:!!a&&!n}),p=U(["creator-collections",a],o=>Ie(a,{first:V,skip:o}).then(c=>({items:c.collections,total:c.total})),{enabled:!!a&&n});function de(o){C(o),w(null),n&&I()}function I(){const o=new URLSearchParams(s);o.delete("collections");const c=o.toString();i({search:c?`?${c}`:""},{replace:!0})}function he(){if(n){I();return}const o=new URLSearchParams(s);o.delete("collections");const c=o.toString();i({search:c?`?${c}&collections`:"?collections"},{replace:!0})}function xe(o){f(c=>c.includes(o)?c.filter(ue=>ue!==o):[...c,o])}function pe(){C("wearable"),w(null),f([]),$(""),k("")}const L=!!(E||F),ge=L?`${h||"0"}–${l||"∞"}`:t("filter.price"),me=b!=="wearable"||!!d||m.length>0||L;return e.jsxs(_e,{children:[e.jsxs(We,{"aria-label":t("creator.breadcrumbAria"),children:[e.jsx(Te,{onClick:()=>i("/items"),children:t("creator.breadcrumb")}),e.jsx("span",{children:"/"}),e.jsx(Ge,{children:x})]}),a?e.jsx(Lt,{address:a}):null,!n&&!P&&N.length>0?e.jsx(He,{items:N,source:"creator"}):null,e.jsxs(Ue,{children:[e.jsx(De,{children:e.jsx(Ye,{category:b,subCategory:d,onCategory:de,onSub:w,title:t("creator.category"),flat:!0,collections:n,onCollections:he})}),e.jsx(Ke,{children:n?e.jsxs(e.Fragment,{children:[e.jsx(Oe,{children:e.jsx(Ve,{children:p.isLoading?"…":t("creator.collectionsCount",{count:p.total})})}),p.error?e.jsx(D,{message:t("creator.error")}):null,e.jsx(K,{"data-variant":"collections",children:p.isLoading?e.jsx(S,{count:9}):e.jsxs(e.Fragment,{children:[p.items.map(o=>e.jsx(gt,{collection:o,itemCount:o.itemCount},o.contractAddress)),p.isFetchingNextPage?e.jsx(S,{count:6}):null]})}),e.jsx(H,{hasNextPage:p.hasNextPage,isFetching:p.isFetchingNextPage,isError:p.isFetchNextPageError,onLoadMore:()=>void p.fetchNextPage()}),!p.isLoading&&!p.error&&p.items.length===0?e.jsx("p",{className:"muted",children:t("creator.collectionsEmpty")}):null]}):e.jsxs(e.Fragment,{children:[e.jsx(Ze,{rarities:m,onToggleRarity:xe,sort:A,onSort:oe,total:se,loading:P,anyActive:me,onClear:pe,renderTrailing:o=>e.jsx(Xe,{panelKey:"price",label:ge,active:L,panel:o,children:e.jsxs(qe,{"data-variant":"price",children:[e.jsxs(Je,{children:[e.jsx("input",{type:"number",min:"0","aria-label":t("creator.priceMin"),placeholder:t("creator.priceMinPlaceholder"),value:h,onChange:c=>$(c.target.value)}),e.jsx("span",{children:"–"}),e.jsx("input",{type:"number",min:"0","aria-label":t("creator.priceMax"),placeholder:t("creator.priceMaxPlaceholder"),value:l,onChange:c=>k(c.target.value)})]}),e.jsx(Qe,{children:t("creator.priceHint",{currency:Me.name})})]})})}),z?e.jsx(D,{message:t("creator.error")}):null,e.jsx(K,{children:P?e.jsx(S,{count:15}):e.jsxs(e.Fragment,{children:[N.map(o=>e.jsx(ze,{item:o},o.id)),B?e.jsx(S,{count:6}):null]})}),e.jsx(H,{hasNextPage:ne,isFetching:B,isError:ce,onLoadMore:()=>void le()}),!P&&!z&&N.length===0?e.jsx("p",{className:"muted",children:t("creator.empty")}):null]})})]})]})}export{Ht as Creator,Ht as default};
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
import{r as h,j as t,L as u}from"./react-DehiWSvs.js";import{t as n,s as e,ac as g,C,aW as m,b as r}from"./index-UGlpWu7U.js";function j({size:a=17,...o}){const s=`credit-mark-${h.useId()}`;return t.jsxs("svg",{viewBox:"0 0 16.9985 16.9985",width:a,height:a,fill:"none","aria-hidden":!0,focusable:"false",...o,children:[t.jsx("defs",{children:t.jsxs("linearGradient",{id:s,x1:"-0.513692",y1:"8.51179",x2:"29.4301",y2:"5.69069",gradientUnits:"userSpaceOnUse",children:[t.jsx("stop",{stopColor:n.colors.dclRed}),t.jsx("stop",{offset:"1",stopColor:n.colors.flareAmber})]})}),t.jsx("path",{d:"M11.866 0.605075L16.4734 5.29355L16.4148 11.8658L11.7253 16.4742L5.15405 16.4156L0.545653 11.7271L0.604247 5.1539L5.29175 0.546481L11.866 0.605075Z",fill:`url(#${s})`,stroke:`url(#${s})`,strokeWidth:"1.04738"}),t.jsx("path",{d:"M9.14405 10.9365C9.51965 10.9365 9.87384 10.8794 10.2067 10.7653C10.5395 10.6512 10.7938 10.5371 10.9697 10.423L11.4975 11.4749L12.0252 12.5268C11.8017 12.717 11.4166 12.9095 10.8699 13.1045C10.3279 13.2994 9.68605 13.3969 8.94437 13.3969C8.25023 13.3969 7.59651 13.2756 6.98319 13.0332C6.36988 12.7907 5.82551 12.4507 5.35007 12.0133C4.87939 11.5759 4.51093 11.0625 4.24468 10.4729C3.97844 9.87864 3.84532 9.23205 3.84532 8.53316C3.84532 7.83427 3.97844 7.18767 4.24468 6.59338C4.51093 5.99433 4.87939 5.4761 5.35007 5.0387C5.82075 4.59655 6.36275 4.25423 6.97606 4.01176C7.59413 3.76453 8.25023 3.64092 8.94437 3.64092C9.68605 3.64092 10.3279 3.73838 10.8699 3.93331C11.4166 4.12824 11.8017 4.32079 12.0252 4.51097L10.9697 6.61477C10.7938 6.50067 10.5395 6.38656 10.2067 6.27246C9.87384 6.15835 9.51965 6.1013 9.14405 6.1013C8.67812 6.1013 8.27876 6.17024 7.94595 6.30812C7.6179 6.44599 7.34928 6.63141 7.14009 6.86438C6.9309 7.09734 6.77638 7.35645 6.67654 7.64171C6.58145 7.92698 6.53391 8.21699 6.53391 8.51176C6.53391 8.81129 6.58145 9.10606 6.67654 9.39607C6.77638 9.68133 6.9309 9.94045 7.14009 10.1734C7.34928 10.4064 7.6179 10.5918 7.94595 10.7297C8.27876 10.8675 8.67812 10.9365 9.14405 10.9365Z",fill:n.colors.white})]})}const{colors:p,font:$}=n,b=e.p`
|
|
2
|
-
display: flex;
|
|
3
|
-
align-items: center;
|
|
4
|
-
gap: 4px;
|
|
5
|
-
margin: 0;
|
|
6
|
-
font-family: ${$.sans};
|
|
7
|
-
font-size: 16px;
|
|
8
|
-
line-height: normal;
|
|
9
|
-
color: ${p.text};
|
|
10
|
-
|
|
11
|
-
&[data-align='center'] {
|
|
12
|
-
justify-content: center;
|
|
13
|
-
}
|
|
14
|
-
`,l=e.span`
|
|
15
|
-
font-weight: 600;
|
|
16
|
-
`,d=e.span`
|
|
17
|
-
font-weight: 400;
|
|
18
|
-
`,L=e.span`
|
|
19
|
-
font-size: 14px;
|
|
20
|
-
font-weight: 600;
|
|
21
|
-
line-height: 1.57;
|
|
22
|
-
color: ${p.muted1};
|
|
23
|
-
`;function S({align:a,className:o}){const s=g(C.nameSingular),c=m(1).toFixed(2),f=r("creditRate.usdLabel");return t.jsxs(b,{className:o,"data-align":a,"data-testid":"credit-rate","aria-label":r("creditRate.aria",{unit:s,usd:c}),children:[t.jsx(j,{}),t.jsxs("span",{children:[t.jsx(l,{children:"1"})," ",t.jsx(d,{children:s})]}),t.jsx(L,{"aria-hidden":!0,children:r("creditRate.equals")}),t.jsxs("span",{children:[t.jsx(d,{children:f})," ",t.jsx(l,{children:c})]})]})}const{colors:i,font:y,media:w,radius:x}=n,R=e.div`
|
|
24
|
-
display: flex;
|
|
25
|
-
align-items: center;
|
|
26
|
-
gap: 8px;
|
|
27
|
-
padding: 12px 8px 12px 16px;
|
|
28
|
-
border-radius: ${x.btn};
|
|
29
|
-
background: ${i.promptLilac};
|
|
30
|
-
font-family: ${y.sans};
|
|
31
|
-
`,U=e(R)`
|
|
32
|
-
justify-content: space-between;
|
|
33
|
-
|
|
34
|
-
/* Side by side the sentence and the cta can't both fit a phone, so the cta drops to its own line. */
|
|
35
|
-
${w.maxWidth("mobile")} {
|
|
36
|
-
flex-direction: column;
|
|
37
|
-
align-items: flex-start;
|
|
38
|
-
}
|
|
39
|
-
`,z=e.div`
|
|
40
|
-
display: flex;
|
|
41
|
-
align-items: center;
|
|
42
|
-
gap: 8px;
|
|
43
|
-
`,E=e.p`
|
|
44
|
-
margin: 0;
|
|
45
|
-
font-size: 14px;
|
|
46
|
-
font-weight: 400;
|
|
47
|
-
line-height: 1.334;
|
|
48
|
-
color: ${i.text2};
|
|
49
|
-
`,A=e.strong`
|
|
50
|
-
font-weight: 700;
|
|
51
|
-
`,B=e(u)`
|
|
52
|
-
flex: none;
|
|
53
|
-
display: inline-flex;
|
|
54
|
-
align-items: center;
|
|
55
|
-
justify-content: center;
|
|
56
|
-
height: 40px;
|
|
57
|
-
padding: 0 12px;
|
|
58
|
-
border-radius: ${x.card};
|
|
59
|
-
font-size: 13px;
|
|
60
|
-
font-weight: 600;
|
|
61
|
-
line-height: 24px;
|
|
62
|
-
letter-spacing: 0.46px;
|
|
63
|
-
text-transform: uppercase;
|
|
64
|
-
text-decoration: underline;
|
|
65
|
-
color: ${i.accent};
|
|
66
|
-
|
|
67
|
-
&:hover {
|
|
68
|
-
color: ${i.accentHover};
|
|
69
|
-
}
|
|
70
|
-
&:focus-visible {
|
|
71
|
-
outline: 2px solid ${i.accent};
|
|
72
|
-
outline-offset: 2px;
|
|
73
|
-
}
|
|
74
|
-
`;export{A,z as B,S as C,U as R,R as S,E as T,B as a,j as b};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import{j as t,L as e}from"./react-DehiWSvs.js";import{s as o,I as i,n as s,b as n,B as a}from"./index-UGlpWu7U.js";import"./sentry-973sfbO9.js";import"./dcl-schemas-Dr9BTjb7.js";import"./ethers-CtNGBird.js";import"./intl-CBcMB1D2.js";const r=o.div`
|
|
2
|
-
min-height: 52vh;
|
|
3
|
-
display: flex;
|
|
4
|
-
flex-direction: column;
|
|
5
|
-
align-items: center;
|
|
6
|
-
justify-content: center;
|
|
7
|
-
text-align: center;
|
|
8
|
-
gap: 14px;
|
|
9
|
-
`,c=o(i)`
|
|
10
|
-
opacity: 0.4;
|
|
11
|
-
`,d=o.h1`
|
|
12
|
-
font-size: 24px;
|
|
13
|
-
`;function h(){return s({title:n("seo.notFound.title"),noindex:!0}),t.jsxs(r,{"data-testid":"notfound",children:[t.jsx(c,{name:"cart",size:44}),t.jsx(d,{children:n("notFound.title")}),t.jsx("p",{className:"muted",children:n("notFound.body")}),t.jsx(a,{as:e,to:"/items",variant:"purple",children:n("notFound.cta")})]})}export{h as NotFound,h as default};
|
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
import{j as i}from"./react-DehiWSvs.js";import{t as l,s,N as p,l as w,b0 as C,b1 as $,b as r,q as y,B as A,x as j}from"./index-UGlpWu7U.js";const E="https://cdn.decentraland.org/@dcl/shop/0.5.1-30942080363.commit-5a008a2/_assets/default-cover-7vUE644d.jpeg",{colors:d,radius:k}=l,S=s.div`
|
|
2
|
-
display: flex;
|
|
3
|
-
align-items: center;
|
|
4
|
-
justify-content: space-between;
|
|
5
|
-
gap: 16px;
|
|
6
|
-
flex-wrap: wrap;
|
|
7
|
-
padding: 12px 16px;
|
|
8
|
-
margin-bottom: 20px;
|
|
9
|
-
border: 1px solid ${d.line};
|
|
10
|
-
border-radius: ${k.card};
|
|
11
|
-
background: ${d.media};
|
|
12
|
-
`,B=s.span`
|
|
13
|
-
display: inline-flex;
|
|
14
|
-
align-items: center;
|
|
15
|
-
gap: 6px;
|
|
16
|
-
font-weight: 600;
|
|
17
|
-
color: ${d.text};
|
|
18
|
-
`;function I({items:x,source:m}){const g=p(t=>t.add),u=p(t=>t.items.map(a=>a.id)),h=w(t=>{var a;return(a=t.session)==null?void 0:a.address}),n=x.filter(t=>!C(t)&&!$(t,h));if(n.length===0)return null;const b=new Set(u),o=n.filter(t=>!b.has(t.id)),f=n.reduce((t,a)=>t+a.priceCredits,0);function v(){o.forEach(t=>g(t,m)),j.success(r("addAll.added",{count:o.length}))}return i.jsxs(S,{children:[i.jsxs(B,{children:[r("addAll.forSale",{count:n.length})," · ",i.jsx(y,{size:16})," ",f.toLocaleString()]}),i.jsx(A,{variant:"purple",size:"sm",onClick:v,disabled:o.length===0,children:o.length===0?r("addAll.allInCart"):r("addAll.addAll",{count:o.length})})]})}const{colors:e}=l,M=s.div`
|
|
19
|
-
max-width: 1721px;
|
|
20
|
-
margin: 0 auto;
|
|
21
|
-
`,P=s.nav`
|
|
22
|
-
display: flex;
|
|
23
|
-
align-items: center;
|
|
24
|
-
gap: 8px;
|
|
25
|
-
font-size: 13px;
|
|
26
|
-
color: ${e.muted};
|
|
27
|
-
margin-bottom: 18px;
|
|
28
|
-
`,R=s.button`
|
|
29
|
-
background: none;
|
|
30
|
-
border: 0;
|
|
31
|
-
padding: 0;
|
|
32
|
-
color: ${e.muted};
|
|
33
|
-
cursor: pointer;
|
|
34
|
-
|
|
35
|
-
&:hover {
|
|
36
|
-
color: ${e.text};
|
|
37
|
-
}
|
|
38
|
-
`,U=s.span`
|
|
39
|
-
color: ${e.text};
|
|
40
|
-
`,Y=s.div`
|
|
41
|
-
display: flex;
|
|
42
|
-
align-items: center;
|
|
43
|
-
min-height: 44px;
|
|
44
|
-
margin-bottom: 16px;
|
|
45
|
-
`,q=s.span`
|
|
46
|
-
color: ${e.muted};
|
|
47
|
-
font-weight: 600;
|
|
48
|
-
`,{colors:z,media:c}=l,N=s.div`
|
|
49
|
-
position: relative;
|
|
50
|
-
display: flex;
|
|
51
|
-
gap: 32px;
|
|
52
|
-
align-items: flex-start;
|
|
53
|
-
|
|
54
|
-
${c.maxWidth("lg")} {
|
|
55
|
-
display: block;
|
|
56
|
-
}
|
|
57
|
-
`,O=s.div`
|
|
58
|
-
flex: 1;
|
|
59
|
-
min-width: 0;
|
|
60
|
-
|
|
61
|
-
${c.maxWidth("lg")} {
|
|
62
|
-
width: 100%;
|
|
63
|
-
}
|
|
64
|
-
`,T=s.aside`
|
|
65
|
-
flex: none;
|
|
66
|
-
width: 265px;
|
|
67
|
-
|
|
68
|
-
${c.maxWidth("lg")} {
|
|
69
|
-
position: fixed;
|
|
70
|
-
left: 0;
|
|
71
|
-
right: 0;
|
|
72
|
-
bottom: 0;
|
|
73
|
-
top: auto;
|
|
74
|
-
z-index: 9999;
|
|
75
|
-
width: 100%;
|
|
76
|
-
max-height: 88vh;
|
|
77
|
-
border-radius: 16px 16px 0 0;
|
|
78
|
-
background: ${z.white};
|
|
79
|
-
padding: 0 16px;
|
|
80
|
-
overflow-y: auto;
|
|
81
|
-
box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.18);
|
|
82
|
-
transform: translateY(100%);
|
|
83
|
-
transition: transform 0.26s ease;
|
|
84
|
-
visibility: hidden;
|
|
85
|
-
|
|
86
|
-
&[data-open] {
|
|
87
|
-
transform: translateY(0);
|
|
88
|
-
visibility: visible;
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
`;export{I as A,N as B,P as C,O as M,M as P,T as S,R as a,U as b,Y as c,E as d,q as e};
|
package/_assets/buy-BDTufK8m.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{u as O,i as $,c as k,g as f,e as p,d as w}from"./index-UGlpWu7U.js";import"./mana-convert-C0Bze7yJ.js";import{J as E,C as m,I as A,B as g}from"./ethers-CtNGBird.js";import{d as B}from"./dcl-schemas-Dr9BTjb7.js";import{g as y,h as v,r as S,m as M,i as T,M as G}from"./authorizations-Bx-uumVM.js";import{g as U,f as x,b as D,h as q}from"./trade-encoding-Dw1x271X.js";import{M as N,E as R,s as F}from"./sendMetaTransaction-CbxpNfVY.js";function ot(){const{data:a}=O({queryKey:["feature-flag","shop-secondary-sales"],queryFn:$,staleTime:6e4,refetchOnWindowFocus:!0,retry:1});return a===!0}const J=9e4;async function ct(a=k.chainId){const t=f(p.OffChainMarketplaceV2,a),e=new E(k.rpcUrl),s=await new m(t.address,["function manaUsdAggregator() view returns (address)"],e).manaUsdAggregator(),n=new m(s,["function decimals() view returns (uint8)","function latestRoundData() view returns (uint80,int256,uint256,uint256,uint80)"],e),c=await n.decimals(),i=await n.latestRoundData(),u=BigInt(i[1].toString());if(u<=0n)throw new Error("mana rate unavailable");if(BigInt(i[4].toString())<BigInt(i[0].toString()))throw new Error("mana rate incomplete");const d=Number(i[3].toString()),r=Math.floor(Date.now()/1e3)-d;if(!Number.isFinite(d)||d<=0||r>J)throw new Error("mana rate stale");return{rate:u,decimals:Number(c)}}function z(a){const t=new Map;for(const e of H(a)){if(e.kind==="store"){const c=`store:${e.chainId}`,i=t.get(c);i&&i.kind==="store"?i.purchases.push(e):t.set(c,{kind:"store",chainId:e.chainId,purchases:[e]});continue}const o=e.trade.contract.toLowerCase(),s=`trade:${e.trade.chainId}:${o}`,n=t.get(s);n&&n.kind==="trade"?n.purchases.push(e):t.set(s,{kind:"trade",chainId:e.trade.chainId,marketplace:o,purchases:[e]})}return[...t.values()]}function H(a){return a.map(t=>"kind"in t?t:{kind:"trade",...t})}function K(a){return a.reduce((t,e)=>t.add(g.from(e.maxCreditedValue)),g.from(0)).toString()}async function Q(a){const t=a.received[0],e=t.amount??"0";if(t.assetType!==Number(B.TradeAssetType.USD_PEGGED_MANA))return e;const o=f(w(a.contract),a.chainId),s=new E(k.rpcUrl),c=await new m(o.address,["function manaUsdAggregator() view returns (address)"],s).manaUsdAggregator(),i=new m(c,["function decimals() view returns (uint8)","function latestRoundData() view returns (uint80,int256,uint256,uint256,uint80)"],s),u=await i.decimals(),d=await i.latestRoundData(),r=g.from(d[1]);return g.from(e).mul(g.from(10).pow(u)).div(r).mul(102).div(100).toString()}async function V(a,t,e,o){const s=e.provider;await v(s,a);const n=await s.getNetwork();if(n.chainId!==a)throw new Error(`Wrong network: wallet is on chain ${n.chainId}, expected ${a}. Switch networks and try again.`);const c=f(p.CreditsManager,a),u=await new m(c.address,c.abi,e).useCredits(t,x(a));return o==null||o(u.hash),(await u.wait()).transactionHash}async function X(a,t,e){const o=f(w(a.contract),a.chainId),s=U(a,e),n=new A(o.abi).encodeFunctionData("cancelSignature",[[s]]),c=S(),i=M(t.provider,c),u=await F(i,c,n,o,{serverURL:y.relayerUrl});return await T(u,"the listing cancellation"),u}const L=["function transferFrom(address from, address to, uint256 tokenId)"];async function j(a){const{contractAddress:t,chainId:e,from:o,to:s,tokenId:n,signer:c}=a,i={...f(p.ERC721CollectionV2,e),address:t},u=new A(L).encodeFunctionData("transferFrom",[o,s,n]),d=S(),r=M(c.provider,d),h=await F(r,d,u,i,{serverURL:y.relayerUrl});return await T(h,"the transfer"),h}async function it(a){const{contractAddress:t,chainId:e,tokenId:o,to:s,signer:n}=a,c=(await n.getAddress()).toLowerCase();if(y.enabled)try{return await j({contractAddress:t,chainId:e,from:c,to:s,tokenId:o,signer:n})}catch(r){if(r instanceof N&&r.code===R.USER_DENIED||r instanceof G)throw r;console.warn("[transferItem] gasless meta-tx failed, falling back to a direct tx:",r)}return await v(n.provider,e),(await(await new m(t,L,n).transferFrom(c,s,o,x(e))).wait()).transactionHash}async function dt(a){const{trade:t,signer:e}=a,o=(await e.getAddress()).toLowerCase();if(y.enabled)try{return await X(t,e,o)}catch(d){if(d instanceof N&&d.code===R.USER_DENIED)throw d;console.warn("[cancelListing] gasless meta-tx failed, falling back to a direct tx:",d)}await v(e.provider,t.chainId);const s=f(w(t.contract),t.chainId),n=U(t,o);return(await(await new m(s.address,s.abi,e).cancelSignature([n],x(t.chainId))).wait()).transactionHash}async function ut(a){const{trade:t,buyer:e,signer:o,credits:s,onBroadcast:n,onReverted:c}=a;if(s.length===0)throw new Error("No credits to spend");const i=f(w(t.contract),t.chainId),u=a.maxCreditedValue??await Q(t),d=D(i.address,i.abi,[t],e,s,u);try{return await V(t.chainId,d,o,r=>n==null?void 0:n({txHash:r}))}catch(r){throw P(r)&&(c==null||c({txHash:Y(r)})),r}}function P(a){var t;return((t=_(a))==null?void 0:t.status)===0}function Y(a){var t;return((t=_(a))==null?void 0:t.transactionHash)??null}function _(a){return a==null?void 0:a.receipt}async function lt(a){const{buyer:t,signer:e,onSigned:o,onBroadcast:s,onSettled:n,onReverted:c}=a,i=H(a.purchases);if(i.length===0)throw new Error("No items to buy");const u=z(i),d=[];for(const r of u){const h=r.purchases.flatMap(l=>l.credits),b=K(r.purchases),W=r.kind==="store"?q(f(p.CollectionStore,r.chainId).address,f(p.CollectionStore,r.chainId).abi,r.purchases.map(l=>l.item),t,h,b):D(f(w(r.marketplace),r.chainId).address,f(w(r.marketplace),r.chainId).abi,r.purchases.map(l=>l.trade),t,h,b),C=h.map(l=>l.id);let I;try{I=await V(r.chainId,W,e,l=>{o==null||o(d.length+1,u.length),s==null||s({txHash:l,salts:C})})}catch(l){throw P(l)&&(c==null||c({salts:C})),l}d.push(I),n==null||n({txHash:I,salts:C})}return d}export{ut as a,lt as b,dt as c,z as g,ct as r,V as s,it as t,ot as u};
|