@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,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-BQKh49D5.js";import{n as c,T as le}from"./Tooltip-ySlzdfvH.js";import{t as e,s as o,I as g,d as s,ae as ce,e as v}from"./index-DaQaTpvn.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
|
|
1
|
+
import{j as i,L as _,r as F}from"./react-DehiWSvs.js";import{s as n,B as P,t as a,q as D,v as W,d as e,l as G,w as O,I as b,x as B,o as w,y as K,c as Q,z as H,A,D as X,E as Z,F as E}from"./index-DaQaTpvn.js";import{d as J,f as U,b as V,h as Y,s as tt,a as it}from"./authorizations-D7XuRQgn.js";import{f as et}from"./builder-MQPY8ChB.js";import{m as ot}from"./mana-matic-C4e1sNO3.js";import{f as at}from"./errors-Wm6SH4-v.js";import"./sentry-973sfbO9.js";import"./dcl-schemas-Dr9BTjb7.js";import"./ethers-CtNGBird.js";import"./intl-CBcMB1D2.js";import"./sendMetaTransaction-ef-RXWfu.js";const nt=D`
|
|
2
2
|
to { transform: rotate(360deg); }
|
|
3
|
-
`,st=
|
|
3
|
+
`,st=D`
|
|
4
4
|
to { background-position: -200% 0; }
|
|
5
5
|
`,rt=n.section`
|
|
6
6
|
width: 100%;
|
|
@@ -48,7 +48,7 @@ import{j as i,L as _,r as P}from"./react-DehiWSvs.js";import{s as n,B as W,t as
|
|
|
48
48
|
grid-template-columns: 44px 1fr;
|
|
49
49
|
grid-row-gap: 10px;
|
|
50
50
|
}
|
|
51
|
-
`,
|
|
51
|
+
`,T=n.div`
|
|
52
52
|
height: 74px;
|
|
53
53
|
border-radius: 16px;
|
|
54
54
|
background: linear-gradient(100deg, #efeef2 30%, #e2e0e7 50%, #efeef2 70%);
|
|
@@ -110,7 +110,7 @@ import{j as i,L as _,r as P}from"./react-DehiWSvs.js";import{s as n,B as W,t as
|
|
|
110
110
|
grid-column: 1 / -1;
|
|
111
111
|
justify-self: start;
|
|
112
112
|
}
|
|
113
|
-
`,
|
|
113
|
+
`,zt=n.button`
|
|
114
114
|
position: relative;
|
|
115
115
|
width: 46px;
|
|
116
116
|
height: 26px;
|
|
@@ -150,7 +150,7 @@ import{j as i,L as _,r as P}from"./react-DehiWSvs.js";import{s as n,B as W,t as
|
|
|
150
150
|
outline: 2px solid ${a.colors.accent};
|
|
151
151
|
outline-offset: 2px;
|
|
152
152
|
}
|
|
153
|
-
`,
|
|
153
|
+
`,bt=n.span`
|
|
154
154
|
width: 16px;
|
|
155
155
|
height: 16px;
|
|
156
156
|
border-radius: 50%;
|
|
@@ -181,6 +181,6 @@ import{j as i,L as _,r as P}from"./react-DehiWSvs.js";import{s as n,B as W,t as
|
|
|
181
181
|
font-size: 22px;
|
|
182
182
|
font-weight: 700;
|
|
183
183
|
margin: 6px 0 0;
|
|
184
|
-
`,M=n(
|
|
184
|
+
`,M=n(P)`
|
|
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]=
|
|
186
|
+
`;function j({descriptor:t,owner:s,signer:r,name:o,description:c,image:l,icon:p}){const v=K(),[h,y]=F.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 z=!u;y(!0);try{await tt({auth:t,signer:r,active:z}),await d(),v.setQueryData(["authorization",t.id,s],z),A.success(z?e("authorizations.toastActivated",{name:o}):e("authorizations.toastDeactivated",{name:o}))}catch($){X($,{flow:"authorizations",step:z?"grant":"revoke"}),A.error(at($,e("authorizations.errorGeneric")))}finally{y(!1)}}const q=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:q}),h?i.jsx(bt,{"aria-label":e("authorizations.working")}):i.jsx(zt,{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,R=10,wt=f*R;async function N(t,s){const r=await E(t,{category:s,first:f}),o=Math.min(Math.ceil(r.total/f),R),c=await Promise.all(Array.from({length:Math.max(0,o-1)},(l,p)=>E(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(){W({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(b,{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(b,{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(T,{"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(b,{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(T,{"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(b,{name:"pen",size:18})},d.contractAddress))}):i.jsx(I,{children:e("authorizations.mintingEmpty")})]})]})}export{_t as Authorizations};
|