@dcl/shop 0.5.1-30941423866.commit-16bb43e → 0.5.1-30942936446.commit-2065145
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-D6HGEkBY.js → Activity-DKyyVjF3.js} +3 -3
- package/_assets/{AnimatedBackground-Bz6-eXM-.js → AnimatedBackground-D_NOZUsv.js} +2 -2
- package/_assets/{Assets-91-VU1Yf.js → Assets-B-QxXzVp.js} +7 -7
- package/_assets/{Assets.styles-nkCcUHhi.js → Assets.styles-Dwkb-T-5.js} +56 -56
- package/_assets/{Authorizations-CEIgVod3.js → Authorizations-CwdWUCCN.js} +3 -3
- package/_assets/{Cart-bL5VUwar.js → Cart-DJd7mRPw.js} +15 -15
- package/_assets/{CircularProgress-t5C2xMSa.js → CircularProgress-QCFQ5Q0T.js} +3 -3
- package/_assets/Collection-Du05-cah.js +162 -0
- package/_assets/{CollectionCarousel-BofN3PUd.js → CollectionCarousel-CzK6Sr6O.js} +15 -15
- package/_assets/Creator-9YR9zS8U.js +306 -0
- package/_assets/{ErrorNotice-SoCdrSmZ.js → ErrorNotice-B-k-8lgH.js} +1 -1
- package/_assets/{ExchangeController-CfUvjqK_.js → ExchangeController-CgsMU6Of.js} +1 -1
- package/_assets/{GetCredits-DoaG2_0N.js → GetCredits-BWKjSlQH.js} +7 -7
- package/_assets/{HelpersUtil-BMGSbn7T.js → HelpersUtil-C9JEsHd1.js} +1 -1
- package/_assets/{ItemDetail-DgqMo17C.js → ItemDetail-ByJH66Dr.js} +3 -3
- package/_assets/{LoadMore-QZxbtyl3.js → LoadMore-CDsECC_S.js} +1 -1
- package/_assets/{ManaPricingBanner.styles-CfeNfvcw.js → ManaPricingBanner.styles-CBM3_pCR.js} +3 -3
- package/_assets/{MenuList-3Ove0Kax.js → MenuList-DniyjKZf.js} +1 -1
- package/_assets/{MyAssets-Dfi9GJY7.js → MyAssets-Cn5OcKcq.js} +1 -1
- package/_assets/{MyFavorites-4NZPS72p.js → MyFavorites-Dh3ERS1g.js} +1 -1
- package/_assets/NotFound-BLRVVTj-.js +13 -0
- package/_assets/{NotificationsBell-C3ZVZms3.js → NotificationsBell-BWFTNvfH.js} +1 -1
- package/_assets/{OutfitDetail-BnpYR8Sn.js → OutfitDetail-C-O6ZG_T.js} +4 -4
- package/_assets/{OutfitPreview-Ds73Fyio.js → OutfitPreview-3ZYOvLqd.js} +2 -2
- package/_assets/{OutfitStudio-BcZDs5Sw.js → OutfitStudio-CdH7v1-f.js} +13 -13
- package/_assets/{StoreSettings-DgkB-s8z.js → StoreSettings-ZBAETVqr.js} +11 -11
- package/_assets/{Success-CFrayKii.js → Success-Dcdg4j1H.js} +4 -4
- package/_assets/{SwapController-B0I2SBMi.js → SwapController-CJCQ0dFg.js} +1 -1
- package/_assets/{Tooltip-DrwaXxlg.js → Tooltip-POp1BJ4y.js} +1 -1
- package/_assets/{TradeService-wTgWWF_f.js → TradeService-CQMOkya7.js} +1 -1
- package/_assets/{W3MFrameProviderSingleton-DmUcIZ1-.js → W3MFrameProviderSingleton-kdy7Kyep.js} +3 -3
- package/_assets/{WebCryptoP256-Bh90kMb3.js → WebCryptoP256-CmT290Aw.js} +1 -1
- package/_assets/{authorizations-LULzuipv.js → authorizations-CWm7pvjk.js} +1 -1
- package/_assets/{basic-BJTMzaq4.js → basic-2wXayEjj.js} +1 -1
- package/_assets/{biconomy-DwCfSXz5.js → biconomy-CrUwmLLN.js} +1 -1
- package/_assets/{builder-CsWf7X7a.js → builder-D3s6Xcg_.js} +1 -1
- package/_assets/{buy-Cs1e8dwt.js → buy-DH_c8xtw.js} +1 -1
- package/_assets/{buy-gasless-nMph8utE.js → buy-gasless-D2u0Cuie.js} +1 -1
- package/_assets/{categories-Al7TFiZ3.js → categories-CD0l2-IJ.js} +32 -32
- package/_assets/{ccip-D1z2vDZ1.js → ccip-Bq7op_u4.js} +1 -1
- package/_assets/{ccip-BwXOtHnt.js → ccip-Dt-VmUCH.js} +1 -1
- package/_assets/{clsx-CF2rJgou.js → clsx-BZmZfIZ7.js} +2 -2
- package/_assets/collectionPage.styles-DnFAUb4Q.js +48 -0
- package/_assets/{controller-Dd98YdMj.js → controller-DAvNn45R.js} +2 -2
- package/_assets/{core-D1SojbPa.js → core-UWabPMJx.js} +4 -4
- package/_assets/{createSvgIcon-BD9EM61r.js → createSvgIcon-B4LAM6aP.js} +3 -3
- package/_assets/{custom-COzYkjQL.js → custom-BjZ8TeJA.js} +1 -1
- package/_assets/{data-capture-BjEF_GLG.js → data-capture-CJaTah4x.js} +1 -1
- package/_assets/{email-ps4Ivz5i.js → email-nvRgEzbl.js} +1 -1
- package/_assets/{embedded-wallet-CVLG0kXZ.js → embedded-wallet-m5nVefBN.js} +1 -1
- package/_assets/{emotion-styled.browser.esm-CDuZD50Q.js → emotion-styled.browser.esm-SPt1g8r5.js} +1 -1
- package/_assets/{engine-pr6_tb_z.js → engine-BQ30rMc_.js} +1 -1
- package/_assets/{errors-5vlAB2Zg.js → errors-sEfj_aGG.js} +1 -1
- package/_assets/{estimate-l1-fee-B3g-FnFs.js → estimate-l1-fee-D55ttM53.js} +1 -1
- package/_assets/{execute-Cel7d92K.js → execute-20WfUFta.js} +2 -2
- package/_assets/{features-D5rLpDoE.js → features-B3g5o6I9.js} +1 -1
- package/_assets/{fetchTokenMetadata-DryrCOLG.js → fetchTokenMetadata-C3taocSg.js} +2 -2
- package/_assets/{field.styles-C90By0S4.js → field.styles-Cv8EF1LN.js} +1 -1
- package/_assets/{get-ecosystem-wallet-info-DS2uBDFK.js → get-ecosystem-wallet-info-C87cJBZ0.js} +1 -1
- package/_assets/{getBalance-DzSIaYv8.js → getBalance-DJFj4nll.js} +1 -1
- package/_assets/{getNFT-B_38vu3d.js → getNFT-Db40YAe5.js} +1 -1
- package/_assets/{getNFT-BYs-Lc0M.js → getNFT-n1rLq0y8.js} +1 -1
- package/_assets/{getThemeProps-CMN_iN9O.js → getThemeProps-qixq943T.js} +1 -1
- package/_assets/{grid.styles-_dq0Z7zy.js → grid.styles-V4B-yWuT.js} +1 -1
- package/_assets/{hashTypedData-U2WpRL9J.js → hashTypedData-Cph7l-wN.js} +1 -1
- package/_assets/{hashTypedData-nZ5SahOR.js → hashTypedData-DmKA2WyG.js} +1 -1
- package/_assets/{in-app-CrkxD8Cc.js → in-app-BrwiASGV.js} +1 -1
- package/_assets/{in-app-wallet-calls-Li6zp_GH.js → in-app-wallet-calls-Cdw4VCOK.js} +1 -1
- package/_assets/{index-BZWjyqNw.js → index-B0GXKjok.js} +1 -1
- package/_assets/{index-Bie49yv7.js → index-B1ZZ9eYb.js} +2 -2
- package/_assets/{index-ChlDHmTZ.js → index-B3dN6jXl.js} +1 -1
- package/_assets/{index-Z5BMZOu5.js → index-BEHNdwPO.js} +11 -11
- package/_assets/{index-BXLMe2R7.js → index-BG81Ew07.js} +1 -1
- package/_assets/{index-DptqVcuN.js → index-BKV20Nhl.js} +2 -2
- package/_assets/{index-BfJ9y_zu.js → index-BN6xB09s.js} +1 -1
- package/_assets/{index-3swvxeAv.js → index-BSYdl9Ph.js} +1 -1
- package/_assets/{index-T4DelPen.js → index-BZJRlKJd.js} +1 -1
- package/_assets/{index-C9YePsjK.js → index-BfbRuC2a.js} +1 -1
- package/_assets/index-BmdBaCyf.js +3315 -0
- package/_assets/{index-BpktVBiY.js → index-BqZsCXiJ.js} +1 -1
- package/_assets/{index-DNQcT8i8.js → index-BuxC7_jg.js} +3 -3
- package/_assets/{index-DI5MJwtI.js → index-Bvu9JQbk.js} +1 -1
- package/_assets/{index-DfH6m-Ar.js → index-BvvXUkGO.js} +1 -1
- package/_assets/{index-CycLf6t0.js → index-BwJOXIY2.js} +1 -1
- package/_assets/{index-YQoU1Oij.js → index-BzlgQIWc.js} +1 -1
- package/_assets/{index-CPEW56oC.js → index-CMIeiz8J.js} +1 -1
- package/_assets/{index-B-cFSgSm.js → index-C_tTx02v.js} +1 -1
- package/_assets/{index-BRUTO6r3.js → index-CfQEZ4_J.js} +1 -1
- package/_assets/{index-CIJrlsx5.js → index-CoJ4w6mI.js} +1 -1
- package/_assets/{index-uA72jFdu.js → index-CpvNbkCX.js} +1 -1
- package/_assets/{index-DhVlJ1ll.js → index-CuRsH7Jr.js} +1 -1
- package/_assets/{index-BB2cIvLa.js → index-CwkhI0tX.js} +1 -1
- package/_assets/{index-CkDVG_a0.js → index-D8CMDKuk.js} +1 -1
- package/_assets/{index-DqDSn6aV.js → index-D90TiSbn.js} +1 -1
- package/_assets/{index-CtSdDkYg.js → index-DHvFGs-V.js} +2 -2
- package/_assets/{index-CroRq_48.js → index-DI6lxGl3.js} +1 -1
- package/_assets/{index-Crfc7kEB.js → index-DQzoGDIO.js} +2 -2
- package/_assets/{index-3p-1HM0o.js → index-DSgPAG74.js} +1 -1
- package/_assets/{index-BzJy8rqx.js → index-Db25kjW1.js} +1 -1
- package/_assets/{index-Cl61ltQF.js → index-DfEcY6V7.js} +1 -1
- package/_assets/{index-onFl5MgF.js → index-Dfq9MSrW.js} +3 -3
- package/_assets/{index-C6vWyFJn.js → index-DjwAceSs.js} +2 -2
- package/_assets/{index-Ccc-pGrt.js → index-DmqmHJz0.js} +1 -1
- package/_assets/{index-Dy8SH7iw.js → index-DtXZOCTH.js} +1 -1
- package/_assets/{index-CZ-oyr8d.js → index-DtpiUbDD.js} +1 -1
- package/_assets/{index-voVSpMmf.js → index-Dvh_4N8m.js} +1 -1
- package/_assets/{index-CVaetlkF.js → index-DxNuVfUW.js} +1 -1
- package/_assets/{index-BjGq2FUA.js → index-NZryii06.js} +1 -1
- package/_assets/{index-B7jpRyRq.js → index-OIDpRQ7d.js} +1 -1
- package/_assets/{index-EbRcCO2e.js → index-Pc_h8OVk.js} +1 -1
- package/_assets/{index-18uEK4oZ.js → index-TLObYCeZ.js} +1 -1
- package/_assets/{index-Dl3xGhv0.js → index-aOM-5o2s.js} +1 -1
- package/_assets/{index-BzjKhN7Z.js → index-dV4DRjLe.js} +1 -1
- package/_assets/{index-1geQS8z5.js → index-fLV7Ojeb.js} +1 -1
- package/_assets/{index-B5d3bUu8.js → index-fTx5OxT5.js} +3 -3
- package/_assets/{index-AnVlYA8W.js → index-gMS2owiI.js} +1 -1
- package/_assets/{index-DxPgc0KP.js → index-jUw3qf0Z.js} +1 -1
- package/_assets/{index-C23YPWAe.js → index-qh5KEihJ.js} +1 -1
- package/_assets/{index-CbbOEMBd.js → index-sBdhGti_.js} +1 -1
- package/_assets/{index-Cnjifnkg.js → index-tRBG96tO.js} +1 -1
- package/_assets/{index.es-CvbAgxyC.js → index.es-CX9AxHdS.js} +1 -1
- package/_assets/{index.es-CToxxyBw.js → index.es-J0I60DQn.js} +1 -1
- package/_assets/{index.es-DRByKX1-.js → index.es-Pw8SRe4y.js} +4 -4
- package/_assets/{localBatchGatewayRequest-DTJgI3xj.js → localBatchGatewayRequest-CprCDfDl.js} +1 -1
- package/_assets/{mana-convert-BvzeO7sG.js → mana-convert-DjCFeoQ3.js} +1 -1
- package/_assets/{networks-CFK3bJYy.js → networks-BR41WM8b.js} +1 -1
- package/_assets/{onramp-okVUuWV0.js → onramp-BHoU1j8h.js} +1 -1
- package/_assets/{openzeppelin-De_HqqIc.js → openzeppelin-C3R3Ow9P.js} +1 -1
- package/_assets/{parseNft-q8FmdH8G.js → parseNft-HXsYyGMT.js} +2 -2
- package/_assets/{parseSignature-CqPrGTDR.js → parseSignature-B55K-BHw.js} +3 -3
- package/_assets/{parseSignature-B5R6ASNp.js → parseSignature-CfegJHxn.js} +1 -1
- package/_assets/{passkeys-DSnfSnMU.js → passkeys-BLEVv9is.js} +1 -1
- package/_assets/{pay-with-exchange-W6o_xhiT.js → pay-with-exchange-BDPb0fmB.js} +1 -1
- package/_assets/{qr-overlay-yLQ0IoEW.js → qr-overlay-Bn5u1TXh.js} +1 -1
- package/_assets/{receive-B1if_96A.js → receive-DdEXjtdG.js} +1 -1
- package/_assets/{resolveImplementation-DO2_Regw.js → resolveImplementation-BTny85ZN.js} +1 -1
- package/_assets/{rpc-Byx0dACz.js → rpc-C1vRekft.js} +1 -1
- package/_assets/{secp256k1-DZugY34I.js → secp256k1-BS_DtXn_.js} +1 -1
- package/_assets/{secp256k1-qgQXh0MJ.js → secp256k1-DSewH7p4.js} +1 -1
- package/_assets/{secp256k1-DdXA0G93.js → secp256k1-DjcGt-hf.js} +1 -1
- package/_assets/{send-DtosPy0k.js → send-D36Kc8ar.js} +1 -1
- package/_assets/{send-batch-transaction-_L7mjvMY.js → send-batch-transaction-9UPtmXhF.js} +1 -1
- package/_assets/{send-eip712-transaction-DurwgWTK.js → send-eip712-transaction-C-DlyYI4.js} +2 -2
- package/_assets/{send-gasless-transaction-B3bmXUxJ.js → send-gasless-transaction-Clkbkp81.js} +2 -2
- package/_assets/{send-transaction-CZKkuF5l.js → send-transaction-ac0pElET.js} +2 -2
- package/_assets/{sendMetaTransaction-4my7kZiF.js → sendMetaTransaction-3Orn7mPE.js} +1 -1
- package/_assets/{sendRawTransaction-BwVANbYg.js → sendRawTransaction-Bd_d0DGd.js} +3 -3
- package/_assets/{serializeTransaction-cVp_FJox.js → serializeTransaction-tReIGWJj.js} +1 -1
- package/_assets/{session-proposal-CYvptxU7.js → session-proposal-BGjlVk7r.js} +1 -1
- package/_assets/{session-request-Bn37Dem4.js → session-request-BAHn4jIb.js} +2 -2
- package/_assets/{signing-DEItZ-F3.js → signing-BO2fbGm6.js} +3 -3
- package/_assets/{socials-CdpDKKrQ.js → socials-rfvGwJ98.js} +1 -1
- package/_assets/{swaps-DnenFD5w.js → swaps-D7QVUfQw.js} +1 -1
- package/_assets/{thirdweb-Bp130Dcj.js → thirdweb-BdoDApEi.js} +3 -3
- package/_assets/{to-serializable-transaction-CcF0iJ96.js → to-serializable-transaction-DJoSj0cy.js} +2 -2
- package/_assets/{trade-encoding-BRe43PSw.js → trade-encoding-CitD9riU.js} +1 -1
- package/_assets/{transactionReceipt-lMu7BRwr.js → transactionReceipt-CFvIhGab.js} +1 -1
- package/_assets/{transactions-B14lINkM.js → transactions-BCaw00-L.js} +1 -1
- package/_assets/{useCreditPacks-C5VR3CBS.js → useCreditPacks-DI0sJyEs.js} +1 -1
- package/_assets/{useImportable-B5bQ22LQ.js → useImportable-B6LfqPpp.js} +1 -1
- package/_assets/{useInfiniteGrid-eJ_aRWUt.js → useInfiniteGrid-Crt1jGuz.js} +1 -1
- package/_assets/useManaRate-CVF6TzHy.js +1 -0
- package/_assets/{useTheme--KekSHIk.js → useTheme-DDT9I-Gr.js} +1 -1
- package/_assets/{verifyHash-Bt7jFOSN.js → verifyHash-CONBvy81.js} +1 -1
- package/_assets/{w3m-modal-Dn7of9MZ.js → w3m-modal-CmgRQ0lu.js} +1 -1
- package/_assets/{w3m-modal-CDIk6daa.js → w3m-modal-DTboZx41.js} +1 -1
- package/_assets/{wait-for-tx-receipt-BUw9UtP4.js → wait-for-tx-receipt-IG8mDnzG.js} +1 -1
- package/_assets/{wallets-A7pRwPiu.js → wallets-YFeaNJbJ.js} +5 -5
- package/_assets/{web-connector-P4z47D9H.js → web-connector-CnAC5kme.js} +3 -3
- package/_assets/{writeContract-Bx4xVEvO.js → writeContract-C-4vi3wG.js} +1 -1
- package/_assets/{zoraTestnet-CuzBONzv.js → zoraTestnet-BAdd9yw6.js} +1 -1
- package/index.html +11 -11
- package/package.json +2 -2
- package/_assets/Collection-B3QlNwPP.js +0 -119
- package/_assets/Creator-BvEpySRn.js +0 -306
- package/_assets/NotFound-BJON5Kwq.js +0 -13
- package/_assets/browseLayout.styles-Cb1bSjYL.js +0 -91
- package/_assets/index-CqLzAYYu.js +0 -3482
- package/_assets/useManaRate-CEsFS4D7.js +0 -1
- package/_assets/useStore-BZhz06Vz.js +0 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as $,j as t}from"./react-DehiWSvs.js";import{R as
|
|
1
|
+
import{r as $,j as t}from"./react-DehiWSvs.js";import{R as T,C as se,a as ae,b as re}from"./categories-CD0l2-IJ.js";import{n as c,T as le}from"./Tooltip-POp1BJ4y.js";import{t as e,s as o,I as g,b as s,ac as ce,C as v}from"./index-BmdBaCyf.js";const de=o.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
gap: 12px;
|
|
@@ -7,11 +7,11 @@ import{r as $,j as t}from"./react-DehiWSvs.js";import{R as C,C as oe,a as ie,b a
|
|
|
7
7
|
height: 1px;
|
|
8
8
|
background: ${e.colors.media};
|
|
9
9
|
width: 100%;
|
|
10
|
-
`,
|
|
10
|
+
`,pe=o.div`
|
|
11
11
|
display: flex;
|
|
12
12
|
flex-direction: column;
|
|
13
13
|
width: 100%;
|
|
14
|
-
`,
|
|
14
|
+
`,xe=o("button",c("desktopStatic"))`
|
|
15
15
|
display: flex;
|
|
16
16
|
align-items: center;
|
|
17
17
|
justify-content: space-between;
|
|
@@ -44,7 +44,7 @@ import{r as $,j as t}from"./react-DehiWSvs.js";import{R as C,C as oe,a as ie,b a
|
|
|
44
44
|
cursor: default;
|
|
45
45
|
&:hover { background: transparent; }
|
|
46
46
|
}`:""}
|
|
47
|
-
`,
|
|
47
|
+
`,he=o.span`
|
|
48
48
|
font-family: ${e.font.sans};
|
|
49
49
|
font-weight: 600;
|
|
50
50
|
font-size: 14px;
|
|
@@ -54,12 +54,12 @@ import{r as $,j as t}from"./react-DehiWSvs.js";import{R as C,C as oe,a as ie,b a
|
|
|
54
54
|
${e.media.maxWidth("lg")} {
|
|
55
55
|
font-size: 16px;
|
|
56
56
|
}
|
|
57
|
-
`,
|
|
57
|
+
`,me=o.span`
|
|
58
58
|
display: inline-flex;
|
|
59
59
|
${e.media.minWidth("lg")} {
|
|
60
60
|
display: none;
|
|
61
61
|
}
|
|
62
|
-
`,
|
|
62
|
+
`,ge=o("p",c("desktopHidden"))`
|
|
63
63
|
margin: 0;
|
|
64
64
|
padding: 0 4px 4px;
|
|
65
65
|
font-family: ${e.font.sans};
|
|
@@ -70,7 +70,7 @@ import{r as $,j as t}from"./react-DehiWSvs.js";import{R as C,C as oe,a as ie,b a
|
|
|
70
70
|
text-transform: capitalize;
|
|
71
71
|
|
|
72
72
|
${({desktopHidden:i})=>i?`${e.media.minWidth("lg")} { display: none; }`:""}
|
|
73
|
-
`,
|
|
73
|
+
`,fe=o("div",c("open","desktopStatic"))`
|
|
74
74
|
display: grid;
|
|
75
75
|
grid-template-rows: ${({open:i})=>i?"1fr":"0fr"};
|
|
76
76
|
transition: grid-template-rows 0.22s ease;
|
|
@@ -80,27 +80,27 @@ import{r as $,j as t}from"./react-DehiWSvs.js";import{R as C,C as oe,a as ie,b a
|
|
|
80
80
|
@media (prefers-reduced-motion: reduce) {
|
|
81
81
|
transition: none;
|
|
82
82
|
}
|
|
83
|
-
`,
|
|
83
|
+
`,ue=o.div`
|
|
84
84
|
overflow: hidden;
|
|
85
85
|
min-height: 0;
|
|
86
|
-
`,
|
|
86
|
+
`,be=o.div`
|
|
87
87
|
display: flex;
|
|
88
88
|
align-items: flex-end;
|
|
89
89
|
justify-content: center;
|
|
90
90
|
gap: 6px;
|
|
91
91
|
padding: 8px 4px 0;
|
|
92
|
-
`,
|
|
92
|
+
`,W=o.label`
|
|
93
93
|
display: flex;
|
|
94
94
|
flex: 1;
|
|
95
95
|
min-width: 0;
|
|
96
96
|
flex-direction: column;
|
|
97
97
|
gap: 4px;
|
|
98
|
-
`,
|
|
98
|
+
`,N=o.span`
|
|
99
99
|
font-family: ${e.font.sans};
|
|
100
100
|
font-weight: 400;
|
|
101
101
|
font-size: 12px;
|
|
102
102
|
color: ${e.colors.muted};
|
|
103
|
-
`,
|
|
103
|
+
`,P=o.span`
|
|
104
104
|
display: flex;
|
|
105
105
|
align-items: center;
|
|
106
106
|
gap: 4px;
|
|
@@ -113,11 +113,11 @@ import{r as $,j as t}from"./react-DehiWSvs.js";import{R as C,C as oe,a as ie,b a
|
|
|
113
113
|
&:focus-within {
|
|
114
114
|
border-color: ${e.rarities.epic};
|
|
115
115
|
}
|
|
116
|
-
`,
|
|
116
|
+
`,F=o(g)`
|
|
117
117
|
width: 16px;
|
|
118
118
|
height: 16px;
|
|
119
119
|
color: ${e.colors.text};
|
|
120
|
-
`,
|
|
120
|
+
`,E=o.input`
|
|
121
121
|
width: 100%;
|
|
122
122
|
min-width: 0;
|
|
123
123
|
border: 0;
|
|
@@ -135,16 +135,16 @@ import{r as $,j as t}from"./react-DehiWSvs.js";import{R as C,C as oe,a as ie,b a
|
|
|
135
135
|
-webkit-appearance: none;
|
|
136
136
|
margin: 0;
|
|
137
137
|
}
|
|
138
|
-
`,
|
|
138
|
+
`,we=o.span`
|
|
139
139
|
padding-bottom: 12px;
|
|
140
140
|
color: ${e.colors.text};
|
|
141
141
|
font-family: ${e.font.sans};
|
|
142
142
|
font-size: 13px;
|
|
143
|
-
`,
|
|
143
|
+
`,ye=o.div`
|
|
144
144
|
position: relative;
|
|
145
145
|
height: 20px;
|
|
146
146
|
margin: 24px 4px 0;
|
|
147
|
-
|
|
147
|
+
`,$e=o.div`
|
|
148
148
|
position: absolute;
|
|
149
149
|
top: 50%;
|
|
150
150
|
left: 0;
|
|
@@ -153,7 +153,7 @@ import{r as $,j as t}from"./react-DehiWSvs.js";import{R as C,C as oe,a as ie,b a
|
|
|
153
153
|
transform: translateY(-50%);
|
|
154
154
|
background: ${e.colors.media};
|
|
155
155
|
border-radius: 2px;
|
|
156
|
-
`,
|
|
156
|
+
`,ve=o("div",c("minPct","maxPct"))`
|
|
157
157
|
position: absolute;
|
|
158
158
|
top: 50%;
|
|
159
159
|
height: 2px;
|
|
@@ -162,7 +162,7 @@ import{r as $,j as t}from"./react-DehiWSvs.js";import{R as C,C as oe,a as ie,b a
|
|
|
162
162
|
right: ${({maxPct:i})=>`${100-i}%`};
|
|
163
163
|
background: ${e.colors.rarity};
|
|
164
164
|
border-radius: 2px;
|
|
165
|
-
`,
|
|
165
|
+
`,I=o.input`
|
|
166
166
|
position: absolute;
|
|
167
167
|
top: 0;
|
|
168
168
|
left: 0;
|
|
@@ -196,23 +196,23 @@ import{r as $,j as t}from"./react-DehiWSvs.js";import{R as C,C as oe,a as ie,b a
|
|
|
196
196
|
box-shadow: 0 1px 3px rgba(22, 21, 24, 0.25);
|
|
197
197
|
cursor: pointer;
|
|
198
198
|
}
|
|
199
|
-
`,
|
|
199
|
+
`,ke=o.div`
|
|
200
200
|
display: flex;
|
|
201
201
|
align-items: center;
|
|
202
202
|
justify-content: space-between;
|
|
203
203
|
padding: 12px 4px 0;
|
|
204
|
-
`,
|
|
204
|
+
`,A=o.span`
|
|
205
205
|
display: inline-flex;
|
|
206
206
|
align-items: center;
|
|
207
207
|
gap: 2px;
|
|
208
208
|
font-family: ${e.font.sans};
|
|
209
209
|
font-size: 13px;
|
|
210
210
|
color: ${e.colors.text};
|
|
211
|
-
`,
|
|
211
|
+
`,H=o(g)`
|
|
212
212
|
width: 16px;
|
|
213
213
|
height: 16px;
|
|
214
214
|
color: ${e.colors.text};
|
|
215
|
-
|
|
215
|
+
`,je=o.div`
|
|
216
216
|
display: flex;
|
|
217
217
|
flex-wrap: wrap;
|
|
218
218
|
gap: 12px;
|
|
@@ -221,7 +221,7 @@ import{r as $,j as t}from"./react-DehiWSvs.js";import{R as C,C as oe,a as ie,b a
|
|
|
221
221
|
${e.media.maxWidth("lg")} {
|
|
222
222
|
gap: 12px 16px;
|
|
223
223
|
}
|
|
224
|
-
`,
|
|
224
|
+
`,Se=o("button",c("selected"))`
|
|
225
225
|
display: inline-flex;
|
|
226
226
|
align-items: center;
|
|
227
227
|
gap: 4px;
|
|
@@ -238,20 +238,20 @@ import{r as $,j as t}from"./react-DehiWSvs.js";import{R as C,C as oe,a as ie,b a
|
|
|
238
238
|
outline: 2px solid ${e.colors.accent};
|
|
239
239
|
outline-offset: 2px;
|
|
240
240
|
}
|
|
241
|
-
`,
|
|
241
|
+
`,Re=o("span",c("color"))`
|
|
242
242
|
position: relative;
|
|
243
243
|
width: 16px;
|
|
244
244
|
height: 16px;
|
|
245
245
|
border-radius: 4px;
|
|
246
246
|
background: ${({color:i})=>i};
|
|
247
247
|
flex: none;
|
|
248
|
-
`,
|
|
248
|
+
`,ze=o(g)`
|
|
249
249
|
position: absolute;
|
|
250
250
|
inset: 0;
|
|
251
251
|
width: 16px;
|
|
252
252
|
height: 16px;
|
|
253
253
|
color: ${e.colors.white};
|
|
254
|
-
`,
|
|
254
|
+
`,Ce=o("span",c("selected"))`
|
|
255
255
|
font-family: ${e.font.sans};
|
|
256
256
|
font-weight: ${({selected:i})=>i?600:400};
|
|
257
257
|
font-size: 12px;
|
|
@@ -262,27 +262,27 @@ import{r as $,j as t}from"./react-DehiWSvs.js";import{R as C,C as oe,a as ie,b a
|
|
|
262
262
|
${e.media.maxWidth("lg")} {
|
|
263
263
|
font-size: 14px;
|
|
264
264
|
}
|
|
265
|
-
`,
|
|
265
|
+
`,Te=o.label`
|
|
266
266
|
display: flex;
|
|
267
267
|
align-items: center;
|
|
268
268
|
gap: 8px;
|
|
269
269
|
height: 40px;
|
|
270
270
|
padding: 4px 4px 4px 24px;
|
|
271
271
|
cursor: pointer;
|
|
272
|
-
`,
|
|
272
|
+
`,We=o.input`
|
|
273
273
|
width: 18px;
|
|
274
274
|
height: 18px;
|
|
275
275
|
margin: 0;
|
|
276
276
|
accent-color: ${e.colors.accent};
|
|
277
277
|
cursor: pointer;
|
|
278
278
|
flex: none;
|
|
279
|
-
`,
|
|
279
|
+
`,Ne=o.span`
|
|
280
280
|
font-family: ${e.font.sans};
|
|
281
281
|
font-weight: 400;
|
|
282
282
|
font-size: 14px;
|
|
283
283
|
line-height: 1.43;
|
|
284
284
|
color: ${e.colors.gray0};
|
|
285
|
-
`,
|
|
285
|
+
`,Pe=o.div`
|
|
286
286
|
display: flex;
|
|
287
287
|
align-items: center;
|
|
288
288
|
justify-content: space-between;
|
|
@@ -296,11 +296,11 @@ import{r as $,j as t}from"./react-DehiWSvs.js";import{R as C,C as oe,a as ie,b a
|
|
|
296
296
|
${e.media.maxWidth("lg")} {
|
|
297
297
|
height: 52px;
|
|
298
298
|
}
|
|
299
|
-
`,
|
|
299
|
+
`,Fe=o.div`
|
|
300
300
|
display: flex;
|
|
301
301
|
align-items: center;
|
|
302
302
|
gap: 6px;
|
|
303
|
-
`,
|
|
303
|
+
`,Ee=o(g)`
|
|
304
304
|
width: 14px;
|
|
305
305
|
height: 14px;
|
|
306
306
|
color: ${e.colors.text};
|
|
@@ -309,7 +309,7 @@ import{r as $,j as t}from"./react-DehiWSvs.js";import{R as C,C as oe,a as ie,b a
|
|
|
309
309
|
width: 16px;
|
|
310
310
|
height: 16px;
|
|
311
311
|
}
|
|
312
|
-
`,
|
|
312
|
+
`,Ie=o.span`
|
|
313
313
|
font-family: ${e.font.sans};
|
|
314
314
|
font-weight: 600;
|
|
315
315
|
font-size: 14px;
|
|
@@ -322,11 +322,11 @@ import{r as $,j as t}from"./react-DehiWSvs.js";import{R as C,C as oe,a as ie,b a
|
|
|
322
322
|
${e.media.maxWidth("lg")} {
|
|
323
323
|
font-size: 16px;
|
|
324
324
|
}
|
|
325
|
-
`,
|
|
325
|
+
`,Ae=o(g)`
|
|
326
326
|
width: 12px;
|
|
327
327
|
height: 12px;
|
|
328
328
|
color: ${e.colors.muted2};
|
|
329
|
-
`,
|
|
329
|
+
`,He=o("button",c("on"))`
|
|
330
330
|
position: relative;
|
|
331
331
|
width: 24px;
|
|
332
332
|
height: 14px;
|
|
@@ -350,7 +350,7 @@ import{r as $,j as t}from"./react-DehiWSvs.js";import{R as C,C as oe,a as ie,b a
|
|
|
350
350
|
width: 40px;
|
|
351
351
|
height: 22px;
|
|
352
352
|
}
|
|
353
|
-
`,
|
|
353
|
+
`,Be=o("span",c("on"))`
|
|
354
354
|
position: absolute;
|
|
355
355
|
top: 50%;
|
|
356
356
|
left: ${({on:i})=>i?"calc(100% - 12px)":"0px"};
|
|
@@ -367,7 +367,7 @@ import{r as $,j as t}from"./react-DehiWSvs.js";import{R as C,C as oe,a as ie,b a
|
|
|
367
367
|
height: 18px;
|
|
368
368
|
left: ${({on:i})=>i?"calc(100% - 18px)":"2px"};
|
|
369
369
|
}
|
|
370
|
-
`,d=1e5;function
|
|
370
|
+
`,d=1e5;function De(i){var l;for(const h of ae){const p=(l=h.subs)==null?void 0:l.find(a=>a.key===i);if(p)return s(p.labelKey)}return i}function j({title:i,open:l,onToggle:h,summary:p,desktopStatic:a,headerTestId:x,headerAria:f,children:u}){const m=t.jsx(re,{up:l,size:24,color:e.colors.text});return t.jsxs(pe,{children:[t.jsxs(xe,{type:"button",desktopStatic:a,onClick:h,"aria-expanded":l,"aria-label":f,"data-testid":x,children:[t.jsx(he,{children:i}),a?t.jsx(me,{children:m}):m]}),!l&&p?t.jsx(ge,{desktopHidden:a,children:p}):null,t.jsx(fe,{open:l,desktopStatic:a,children:t.jsx(ue,{children:u})})]})}function Ye({category:i,subCategory:l,onCategory:h,onSub:p,priceMin:a,priceMax:x,onPriceMin:f,onPriceMax:u,rarities:m,onToggleRarity:B,status:S,onStatus:D,smart:b,onSmart:L,hideNames:O=!1,collections:C=!1,onCollections:_}){const[M,Y]=$.useState(!0),[K,U]=$.useState(!0),[q,G]=$.useState(!1),[V,X]=$.useState(!0),R=a&&!Number.isNaN(Number(a))?Number(a):void 0,z=x&&!Number.isNaN(Number(x))?Number(x):void 0,w=R!=null?Math.min(R,d):0,y=z!=null?Math.min(z,d):d,J=w/d*100,Q=y/d*100;function Z(n){const r=Math.min(n,y);f(r<=0?"":String(r))}function ee(n){const r=Math.max(n,w);u(r>=d?"":String(r))}const te=C?s("categories.collections"):l?De(l):i!=="wearable"?s(`categories.${i==="emote"?"emotes":i==="all"?"shopAll":i}`):"",oe=R!=null||z!=null?`${a||"0"}-${x||"∞"}`:"",ie=T.filter(n=>m.includes(n)).map(ce).join(", "),ne=S==="on_sale"?s("filter.onSale"):S==="not_for_sale"?s("filter.notForSale"):"";return t.jsxs(de,{children:[t.jsx(j,{title:s("assets.category"),open:M,onToggle:()=>Y(n=>!n),summary:te,desktopStatic:!0,children:t.jsx(se,{category:i,subCategory:l,onCategory:h,onSub:p,hideNames:O,collections:C,onCollections:_})}),t.jsx(k,{}),t.jsxs(j,{title:s("filter.price"),open:K,onToggle:()=>U(n=>!n),summary:oe,desktopStatic:!0,children:[t.jsxs(be,{children:[t.jsxs(W,{children:[t.jsx(N,{children:s("assets.min")}),t.jsxs(P,{children:[t.jsx(F,{name:v.iconName,"aria-hidden":!0}),t.jsx(E,{type:"number",min:"0","aria-label":s("assets.minPriceAria"),placeholder:"0",value:a,onChange:n=>f(n.target.value)})]})]}),t.jsx(we,{children:s("assets.priceTo")}),t.jsxs(W,{children:[t.jsx(N,{children:s("assets.max")}),t.jsxs(P,{children:[t.jsx(F,{name:v.iconName,"aria-hidden":!0}),t.jsx(E,{type:"number",min:"0","aria-label":s("assets.maxPriceAria"),placeholder:"0",value:x,onChange:n=>u(n.target.value)})]})]})]}),t.jsxs(ye,{children:[t.jsx($e,{"aria-hidden":!0}),t.jsx(ve,{minPct:J,maxPct:Q,"aria-hidden":!0}),t.jsx(I,{type:"range",min:0,max:d,value:w,"aria-label":s("assets.minPriceSliderAria"),onChange:n=>Z(Number(n.target.value))}),t.jsx(I,{type:"range",min:0,max:d,value:y,"aria-label":s("assets.maxPriceSliderAria"),onChange:n=>ee(Number(n.target.value))})]}),t.jsxs(ke,{children:[t.jsxs(A,{children:[t.jsx(H,{name:v.iconName,"aria-hidden":!0}),w.toLocaleString()]}),t.jsxs(A,{children:[t.jsx(H,{name:v.iconName,"aria-hidden":!0}),y.toLocaleString()]})]})]}),t.jsx(k,{}),t.jsx(j,{title:s("assets.rarity"),open:q,onToggle:()=>G(n=>!n),summary:ie,headerTestId:"sidebar-section-toggle",children:t.jsx(je,{"data-testid":"rarity-filter",children:T.map(n=>{const r=m.includes(n);return t.jsxs(Se,{type:"button",selected:r,"aria-pressed":r,onClick:()=>B(n),"data-testid":"rarity-filter-check",children:[t.jsx(Re,{color:e.rarities[n],children:r?t.jsx(ze,{name:"check","aria-hidden":!0}):null}),t.jsx(Ce,{selected:r,children:n})]},n)})})}),t.jsx(k,{}),t.jsx(j,{title:s("filter.status"),open:V,onToggle:()=>X(n=>!n),summary:ne,children:[["all",s("filter.statusAll")],["on_sale",s("filter.onSale")],["not_for_sale",s("filter.notForSale")]].map(([n,r])=>t.jsxs(Te,{children:[t.jsx(We,{type:"radio",name:"shop-status",checked:S===n,onChange:()=>D(n)}),t.jsx(Ne,{children:r})]},n))}),t.jsx(k,{}),t.jsxs(Pe,{children:[t.jsxs(Fe,{children:[t.jsx(Ee,{name:"smart","aria-hidden":!0}),t.jsx(Ie,{children:s("filter.smart")}),t.jsx(le,{content:s("filter.smartHint"),placement:"bottom",children:t.jsx(Ae,{name:"info",role:"img","aria-label":s("filter.smartHint"),tabIndex:0,"data-testid":"smart-hint"})})]}),t.jsx(He,{type:"button",role:"switch",on:b,"aria-checked":b,"aria-label":s("filter.smart"),onClick:()=>L(!b),children:t.jsx(Be,{on:b})})]})]})}const Ke=o.div`
|
|
371
371
|
position: relative;
|
|
372
372
|
display: flex;
|
|
373
373
|
gap: 32px;
|
|
@@ -376,14 +376,14 @@ import{r as $,j as t}from"./react-DehiWSvs.js";import{R as C,C as oe,a as ie,b a
|
|
|
376
376
|
${e.media.maxWidth("lg")} {
|
|
377
377
|
display: block;
|
|
378
378
|
}
|
|
379
|
-
`,
|
|
379
|
+
`,Ue=o.div`
|
|
380
380
|
flex: 1;
|
|
381
381
|
min-width: 0;
|
|
382
382
|
|
|
383
383
|
${e.media.maxWidth("lg")} {
|
|
384
384
|
width: 100%;
|
|
385
385
|
}
|
|
386
|
-
`,
|
|
386
|
+
`,qe=o.aside`
|
|
387
387
|
flex: none;
|
|
388
388
|
width: 265px;
|
|
389
389
|
|
|
@@ -454,7 +454,7 @@ import{r as $,j as t}from"./react-DehiWSvs.js";import{R as C,C as oe,a as ie,b a
|
|
|
454
454
|
visibility: visible;
|
|
455
455
|
}
|
|
456
456
|
}
|
|
457
|
-
`,
|
|
457
|
+
`,Ge=o.div`
|
|
458
458
|
${e.media.maxWidth("lg")} {
|
|
459
459
|
flex: 1;
|
|
460
460
|
min-height: 0;
|
|
@@ -462,12 +462,12 @@ import{r as $,j as t}from"./react-DehiWSvs.js";import{R as C,C as oe,a as ie,b a
|
|
|
462
462
|
/* Room so the last filter row clears the sticky "Show items" bar (Figma bottom bar). */
|
|
463
463
|
padding-bottom: 24px;
|
|
464
464
|
}
|
|
465
|
-
`,
|
|
465
|
+
`,Ve=o.div`
|
|
466
466
|
position: fixed;
|
|
467
467
|
inset: 0;
|
|
468
468
|
z-index: 9998;
|
|
469
469
|
background: rgba(0, 0, 0, 0.4);
|
|
470
|
-
`,
|
|
470
|
+
`,Xe=o.div`
|
|
471
471
|
display: none;
|
|
472
472
|
|
|
473
473
|
${e.media.maxWidth("lg")} {
|
|
@@ -482,14 +482,14 @@ import{r as $,j as t}from"./react-DehiWSvs.js";import{R as C,C as oe,a as ie,b a
|
|
|
482
482
|
padding: 16px 16px 12px;
|
|
483
483
|
border-radius: 16px 16px 0 0;
|
|
484
484
|
}
|
|
485
|
-
`,
|
|
485
|
+
`,Je=o.span`
|
|
486
486
|
font-family: ${e.font.sans};
|
|
487
487
|
font-weight: 700;
|
|
488
488
|
font-size: 15px;
|
|
489
489
|
letter-spacing: 0.46px;
|
|
490
490
|
text-transform: uppercase;
|
|
491
491
|
color: ${e.colors.text};
|
|
492
|
-
`,
|
|
492
|
+
`,Qe=o.button`
|
|
493
493
|
display: grid;
|
|
494
494
|
place-items: center;
|
|
495
495
|
width: 32px;
|
|
@@ -506,7 +506,7 @@ import{r as $,j as t}from"./react-DehiWSvs.js";import{R as C,C as oe,a as ie,b a
|
|
|
506
506
|
outline: 2px solid ${e.colors.accent};
|
|
507
507
|
outline-offset: 2px;
|
|
508
508
|
}
|
|
509
|
-
`,
|
|
509
|
+
`,Ze=o.div`
|
|
510
510
|
display: none;
|
|
511
511
|
|
|
512
512
|
${e.media.maxWidth("lg")} {
|
|
@@ -521,7 +521,7 @@ import{r as $,j as t}from"./react-DehiWSvs.js";import{R as C,C as oe,a as ie,b a
|
|
|
521
521
|
box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.25);
|
|
522
522
|
z-index: 1;
|
|
523
523
|
}
|
|
524
|
-
`,
|
|
524
|
+
`,et=o.button`
|
|
525
525
|
flex: 1;
|
|
526
526
|
height: 40px;
|
|
527
527
|
border: 0;
|
|
@@ -543,7 +543,7 @@ import{r as $,j as t}from"./react-DehiWSvs.js";import{R as C,C as oe,a as ie,b a
|
|
|
543
543
|
outline: 2px solid ${e.colors.accent};
|
|
544
544
|
outline-offset: 2px;
|
|
545
545
|
}
|
|
546
|
-
`,
|
|
546
|
+
`,tt=o.p`
|
|
547
547
|
display: flex;
|
|
548
548
|
align-items: center;
|
|
549
549
|
gap: 10px;
|
|
@@ -559,7 +559,7 @@ import{r as $,j as t}from"./react-DehiWSvs.js";import{R as C,C as oe,a as ie,b a
|
|
|
559
559
|
background: rgba(211, 51, 51, 0.1);
|
|
560
560
|
color: ${e.colors.err};
|
|
561
561
|
}
|
|
562
|
-
`,
|
|
562
|
+
`,ot=o.div`
|
|
563
563
|
display: flex;
|
|
564
564
|
flex-direction: column;
|
|
565
565
|
align-items: center;
|
|
@@ -569,23 +569,23 @@ import{r as $,j as t}from"./react-DehiWSvs.js";import{R as C,C as oe,a as ie,b a
|
|
|
569
569
|
border-radius: 16px;
|
|
570
570
|
background: ${e.colors.white};
|
|
571
571
|
text-align: center;
|
|
572
|
-
`,
|
|
572
|
+
`,it=o.img`
|
|
573
573
|
width: 101px;
|
|
574
574
|
height: 101px;
|
|
575
|
-
`,
|
|
575
|
+
`,nt=o.div`
|
|
576
576
|
display: flex;
|
|
577
577
|
flex-direction: column;
|
|
578
578
|
align-items: center;
|
|
579
579
|
gap: 12px;
|
|
580
580
|
padding-bottom: 16px;
|
|
581
581
|
color: ${e.colors.text};
|
|
582
|
-
`,
|
|
582
|
+
`,st=o.p`
|
|
583
583
|
margin: 0;
|
|
584
584
|
font-family: ${e.font.sans};
|
|
585
585
|
font-weight: 700;
|
|
586
586
|
font-size: 20px;
|
|
587
587
|
line-height: 1.6;
|
|
588
|
-
`,
|
|
588
|
+
`,at=o.p`
|
|
589
589
|
margin: 0;
|
|
590
590
|
max-width: 520px;
|
|
591
591
|
font-family: ${e.font.sans};
|
|
@@ -596,13 +596,13 @@ import{r as $,j as t}from"./react-DehiWSvs.js";import{R as C,C as oe,a as ie,b a
|
|
|
596
596
|
b {
|
|
597
597
|
font-weight: 600;
|
|
598
598
|
}
|
|
599
|
-
`,
|
|
599
|
+
`,rt=o.div`
|
|
600
600
|
display: flex;
|
|
601
601
|
flex-direction: column;
|
|
602
602
|
width: 310px;
|
|
603
603
|
max-width: 100%;
|
|
604
604
|
padding-bottom: 16px;
|
|
605
|
-
`,
|
|
605
|
+
`,lt=o.button`
|
|
606
606
|
display: flex;
|
|
607
607
|
align-items: center;
|
|
608
608
|
justify-content: center;
|
|
@@ -632,4 +632,4 @@ import{r as $,j as t}from"./react-DehiWSvs.js";import{R as C,C as oe,a as ie,b a
|
|
|
632
632
|
outline: 2px solid ${e.colors.accent};
|
|
633
633
|
outline-offset: 2px;
|
|
634
634
|
}
|
|
635
|
-
`;export{
|
|
635
|
+
`;export{Qe as C,k as D,ot as E,j as F,Ue as M,je as R,Te as S,Se as a,Re as b,ze as c,Ce as d,We as e,Ne as f,Ke as g,Ve as h,qe as i,Xe as j,Je as k,Ge as l,Ze as m,et as n,Ye as o,nt as p,st as q,at as r,rt as s,lt as t,tt as u,it as v};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import{j as i,L as _,r as P}from"./react-DehiWSvs.js";import{s as n,B as W,t as a,
|
|
1
|
+
import{j as i,L as _,r as P}from"./react-DehiWSvs.js";import{s as n,B as W,t as a,m as R,n as F,b as e,l as G,o as O,I as z,q as B,u as w,v as K,c as Q,w as H,x as A,y as X,z as Z,A as T}from"./index-BmdBaCyf.js";import{c as J,d as U,b as V,e as Y,s as tt,a as it}from"./authorizations-CWm7pvjk.js";import{f as et}from"./builder-D3s6Xcg_.js";import{m as ot}from"./mana-matic-C4e1sNO3.js";import{f as at}from"./errors-sEfj_aGG.js";import"./sentry-973sfbO9.js";import"./dcl-schemas-Dr9BTjb7.js";import"./ethers-CtNGBird.js";import"./intl-CBcMB1D2.js";import"./sendMetaTransaction-3Orn7mPE.js";const nt=R`
|
|
2
2
|
to { transform: rotate(360deg); }
|
|
3
|
-
`,st=
|
|
3
|
+
`,st=R`
|
|
4
4
|
to { background-position: -200% 0; }
|
|
5
5
|
`,rt=n.section`
|
|
6
6
|
width: 100%;
|
|
@@ -183,4 +183,4 @@ import{j as i,L as _,r as P}from"./react-DehiWSvs.js";import{s as n,B as W,t as
|
|
|
183
183
|
margin: 6px 0 0;
|
|
184
184
|
`,M=n(W)`
|
|
185
185
|
margin-top: 12px;
|
|
186
|
-
`;function j({descriptor:t,owner:s,signer:r,name:o,description:c,image:l,icon:p}){const v=K(),[h,y]=P.useState(!1),{data:u,isLoading:m,refetch:d}=w({queryKey:["authorization",t.id,s],queryFn:()=>it(t,s),staleTime:3e4});async function g(){if(h||m)return;const b=!u;y(!0);try{await tt({auth:t,signer:r,active:b}),await d(),v.setQueryData(["authorization",t.id,s],b),A.success(b?e("authorizations.toastActivated",{name:o}):e("authorizations.toastDeactivated",{name:o}))}catch($){X($,{flow:"authorizations",step:b?"grant":"revoke"}),A.error(at($,e("authorizations.errorGeneric")))}finally{y(!1)}}const
|
|
186
|
+
`;function j({descriptor:t,owner:s,signer:r,name:o,description:c,image:l,icon:p}){const v=K(),[h,y]=P.useState(!1),{data:u,isLoading:m,refetch:d}=w({queryKey:["authorization",t.id,s],queryFn:()=>it(t,s),staleTime:3e4});async function g(){if(h||m)return;const b=!u;y(!0);try{await tt({auth:t,signer:r,active:b}),await d(),v.setQueryData(["authorization",t.id,s],b),A.success(b?e("authorizations.toastActivated",{name:o}):e("authorizations.toastDeactivated",{name:o}))}catch($){X($,{flow:"authorizations",step:b?"grant":"revoke"}),A.error(at($,e("authorizations.errorGeneric")))}finally{y(!1)}}const D=m?e("authorizations.checking"):u?e("authorizations.active"):e("authorizations.inactive");return i.jsxs(ut,{"data-testid":`authorization-${t.id}`,"data-active":!!u,children:[i.jsx(pt,{children:l?i.jsx("img",{src:l,alt:""}):p}),i.jsxs(mt,{children:[i.jsx(gt,{title:o,children:o}),i.jsx(xt,{children:c})]}),i.jsxs(yt,{children:[i.jsx(ft,{"data-active":!!u,children:D}),h?i.jsx(zt,{"aria-label":e("authorizations.working")}):i.jsx(bt,{type:"button","data-testid":`authorization-toggle-${t.id}`,"data-active":!!u,role:"switch","aria-checked":!!u,"aria-label":u?e("authorizations.deactivateAria",{name:o}):e("authorizations.activateAria",{name:o}),disabled:m,onClick:()=>void g()})]})]})}const f=500,q=10,wt=f*q;async function N(t,s){const r=await T(t,{category:s,first:f}),o=Math.min(Math.ceil(r.total/f),q),c=await Promise.all(Array.from({length:Math.max(0,o-1)},(l,p)=>T(t,{category:s,first:f,skip:(p+1)*f})));return{assets:[...r.assets,...c.flatMap(l=>l.assets)],truncated:r.total>wt}}function vt(t){return w({queryKey:["owned-collections",t],enabled:!!t,staleTime:6e4,queryFn:async()=>{const[s,r]=await Promise.all([N(t,"wearable"),N(t,"emote")]),o=new Map;for(const c of[...s.assets,...r.assets]){const l=c.contractAddress.toLowerCase();o.has(l)||o.set(l,c)}return{collections:[...o.values()],truncated:s.truncated||r.truncated,scanned:s.assets.length+r.assets.length}}})}function kt(t){return w({queryKey:["contract-registry"],enabled:t,staleTime:1/0,gcTime:1/0,queryFn:Z})}function Ct(t,s){const r=s==null?void 0:s.get(t.toLowerCase());if(r)return r;const o=H(t);return o===t?e("authorizations.collectionFallback"):o}function $t(t,s){return w({queryKey:["creator-collections",t],enabled:!!t&&!!s,staleTime:6e4,queryFn:async()=>{const r=await et(t,s),o=new Map;for(const c of r){const l=c.contractAddress.toLowerCase();o.has(l)||o.set(l,c)}return[...o.values()]}})}function _t(){F({title:e("authorizations.title"),noindex:!0});const{session:t,signIn:s}=G(),r=Q.chainId,o=O(t==null?void 0:t.providerType),{data:c,isLoading:l}=vt(o?t==null?void 0:t.address:void 0),{data:p,isLoading:v}=kt(!!o&&!!(t!=null&&t.address)),{data:h,isLoading:y}=$t(o?t==null?void 0:t.address:void 0,o?t==null?void 0:t.identity:void 0);if(!t)return i.jsxs(S,{children:[i.jsx(z,{name:"info",size:40,color:a.colors.muted2}),i.jsx(L,{children:e("authorizations.signInTitle")}),i.jsx("p",{className:"muted",children:e("authorizations.signInBody")}),i.jsx(M,{variant:"purple",onClick:()=>s(),children:e("storeSettings.signIn")})]});if(!o)return i.jsxs(S,{children:[i.jsx(z,{name:"check",size:40,color:a.colors.ok}),i.jsx(L,{children:e("authorizations.managedTitle")}),i.jsx("p",{className:"muted",children:e("authorizations.managedBody")}),i.jsx(M,{as:_,to:"/items",variant:"purple",children:e("authorizations.managedCta")})]});const u=J(r),m=U(r);return i.jsxs(rt,{children:[i.jsxs(ct,{children:[i.jsx(lt,{children:e("authorizations.title")}),i.jsx(dt,{children:e("authorizations.intro")})]}),i.jsxs(k,{children:[i.jsx(C,{children:e("authorizations.buyingTitle")}),i.jsxs(x,{children:[i.jsx(j,{descriptor:u,owner:t.address,signer:t.signer,name:e("authorizations.creditsName"),description:e("authorizations.creditsDesc"),icon:i.jsx(B,{className:"ccy-mark"})}),i.jsx(j,{descriptor:m,owner:t.address,signer:t.signer,name:e("authorizations.manaName"),description:e("authorizations.manaDesc"),icon:i.jsx(ht,{src:ot,alt:"","aria-hidden":!0})})]})]}),i.jsxs(k,{children:[i.jsx(C,{children:e("authorizations.sellingTitle")}),c!=null&&c.truncated?i.jsx(jt,{"data-testid":"authorizations-selling-truncated",children:e("authorizations.sellingTruncated",{count:c.scanned})}):null,l||v?i.jsx(x,{"aria-busy":"true","aria-label":e("authorizations.checking"),children:Array.from({length:3}).map((d,g)=>i.jsx(E,{"aria-hidden":!0},g))}):c&&c.collections.length>0?i.jsx(x,{children:c.collections.map(d=>i.jsx(j,{descriptor:V(d.contractAddress,r),owner:t.address,signer:t.signer,name:Ct(d.contractAddress,p),description:e("authorizations.sellingDesc"),image:d.image,icon:i.jsx(z,{name:"pen",size:18})},d.contractAddress))}):i.jsx(I,{children:e("authorizations.sellingEmpty")})]}),i.jsxs(k,{children:[i.jsx(C,{children:e("authorizations.mintingTitle")}),y?i.jsx(x,{"aria-busy":"true","aria-label":e("authorizations.checking"),children:Array.from({length:3}).map((d,g)=>i.jsx(E,{"aria-hidden":!0},g))}):h&&h.length>0?i.jsx(x,{children:h.map(d=>i.jsx(j,{descriptor:Y(d.contractAddress,r),owner:t.address,signer:t.signer,name:d.name||e("authorizations.collectionFallback"),description:e("authorizations.mintingDesc"),icon:i.jsx(z,{name:"pen",size:18})},d.contractAddress))}):i.jsx(I,{children:e("authorizations.mintingEmpty")})]})]})}export{_t as Authorizations};
|