@dcl/shop 1.6.4-31393274893.commit-fe5b3e4 → 1.6.4-31478985898.commit-31fbca5
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-DVeOPtLf.js +389 -0
- package/_assets/{AnimatedBackground-DJZ3oWg6.js → AnimatedBackground-uc285a1z.js} +3 -3
- package/_assets/{Assets-B_TvQj33.js → Assets-BxVtKqBD.js} +79 -63
- package/_assets/{Authorizations-DpEs1Zai.js → Authorizations-wlFFAYck.js} +5 -5
- package/_assets/Cart-Cvb-mLkq.js +645 -0
- package/_assets/{CircularProgress-C3Yyc5Yo.js → CircularProgress-B42WjiMu.js} +6 -6
- package/_assets/Collection-CePSkIc7.js +134 -0
- package/_assets/{CollectionCarousel-QRFPfObA.js → CollectionCarousel-DekM0Fbc.js} +64 -64
- package/_assets/Confetti-DyEmp5aX.js +18 -0
- package/_assets/{ConstantsUtil-D_iBbL7x.js → ConstantsUtil-Cv0P8XJd.js} +2 -2
- package/_assets/{ContentClient-DiDjVJwL.js → ContentClient-DeOOQcyg.js} +2 -2
- package/_assets/Creator-DZqtuM7q.js +308 -0
- package/_assets/DeploymentBuilder-Du6kFotx.js +4 -0
- package/_assets/{ErrorNotice-DQptpq6K.js → ErrorNotice-O5DWS_gB.js} +2 -2
- package/_assets/{ExchangeController-p9L9WaNh.js → ExchangeController-C7RzKdOT.js} +2 -2
- package/_assets/{Faq-DlYPNDnc.js → Faq-BlFxXYzr.js} +2 -2
- package/_assets/{GetCredits-BZNqYH3K.js → GetCredits-B9CV0EDm.js} +58 -58
- package/_assets/{Grow-CvueDEs_.js → Grow-DyAIXXvH.js} +2 -2
- package/_assets/{HelpersUtil-BGtdVBL6.js → HelpersUtil-W6HAeXTg.js} +3 -3
- package/_assets/{ItemDetail-CYWB8kES.js → ItemDetail-BHJZT0cj.js} +343 -343
- package/_assets/{JumpInIcon-CrVimOD7.js → JumpInIcon-CFdWShnC.js} +2 -2
- package/_assets/LazyEmoteControls-DXGDL3dL.js +3 -0
- package/_assets/{LoadMore-D3YXgx9b.js → LoadMore-Dh1voaGI.js} +2 -2
- package/_assets/{ManaPricingBanner.styles-hNSmGhtq.js → ManaPricingBanner.styles-DUiuySqa.js} +4 -4
- package/_assets/MyAssets-D30SC0fa.js +331 -0
- package/_assets/MyFavorites-CfcjuE_v.js +55 -0
- package/_assets/{NetworkUtil-C6HCpbc0.js → NetworkUtil-Dk9MYhv-.js} +2 -2
- package/_assets/{NotFound-Cj-uAW5f.js → NotFound-DkFkk_mt.js} +4 -4
- package/_assets/{NotificationsBell-CFcKqvoI.js → NotificationsBell-D8pVTaBp.js} +2 -2
- package/_assets/{OutfitDetail-BrhrFR4H.js → OutfitDetail-DL9KkMIP.js} +31 -31
- package/_assets/OutfitPreview-DPkjJ61X.js +7 -0
- package/_assets/{OutfitStudio-DMJOOr-W.js → OutfitStudio-DNQsP0eA.js} +108 -108
- package/_assets/{PhArrowCircleDown-CxXOHVgE.js → PhArrowCircleDown-LMy4WE7D.js} +5 -5
- package/_assets/{PhArrowClockwise-DnJiMYnu.js → PhArrowClockwise-B7efjCn9.js} +4 -4
- package/_assets/{PhArrowDown-DgwtGa9-.js → PhArrowDown-Bwdqa9_E.js} +2 -2
- package/_assets/{PhArrowLeft-FYCUZwtI.js → PhArrowLeft-DuBXpz8N.js} +3 -3
- package/_assets/{PhArrowRight-DwxhqEA5.js → PhArrowRight-z9Dl361F.js} +4 -4
- package/_assets/{PhArrowSquareOut-Dv6DZZoQ.js → PhArrowSquareOut-B8fjTbIa.js} +4 -4
- package/_assets/{PhArrowUp-DWFqIiTC.js → PhArrowUp-DkrWYIAz.js} +2 -2
- package/_assets/{PhArrowUpRight-CQEJmSv1.js → PhArrowUpRight-BmMKHv_H.js} +4 -4
- package/_assets/{PhArrowsClockwise-DTxnxbQZ.js → PhArrowsClockwise-CvNc1TwT.js} +3 -3
- package/_assets/{PhArrowsDownUp-CCBXGhZw.js → PhArrowsDownUp-sU4tJwkL.js} +5 -5
- package/_assets/{PhArrowsLeftRight-Bj_-312C.js → PhArrowsLeftRight-Inahzprd.js} +4 -4
- package/_assets/{PhBank-48j7J7qv.js → PhBank-BD-K_cfz.js} +5 -5
- package/_assets/{PhBrowser-D6hf1rGc.js → PhBrowser-DVRvcu4M.js} +2 -2
- package/_assets/{PhCaretDown-CFoksgPQ.js → PhCaretDown-G6ZOf3Jn.js} +2 -2
- package/_assets/PhCaretLeft-pF_g8dOz.js +15 -0
- package/_assets/{PhCaretRight-CEhVINfR.js → PhCaretRight-Dl0sRgp0.js} +2 -2
- package/_assets/PhCaretUp-CuwUNUkq.js +15 -0
- package/_assets/{PhCheck-Bc77OWMn.js → PhCheck-D5l8KeSX.js} +4 -4
- package/_assets/{PhCircleHalf-Bnh5uFUV.js → PhCircleHalf-BvUuifqe.js} +5 -5
- package/_assets/{PhClock-SbADPZJ3.js → PhClock-BgqN1MJg.js} +2 -2
- package/_assets/{PhCompass-B_gDBZwD.js → PhCompass-Dptb6Trt.js} +4 -4
- package/_assets/{PhCopy-YSlpVHFy.js → PhCopy-of33PGSB.js} +2 -2
- package/_assets/{PhCreditCard-C63_x52r.js → PhCreditCard-cGVosjKz.js} +3 -3
- package/_assets/{PhCurrencyDollar-C8G9LLOC.js → PhCurrencyDollar-PwdaRdae.js} +4 -4
- package/_assets/{PhDesktop-C4gDVEQW.js → PhDesktop-Bhi2QPLf.js} +2 -2
- package/_assets/{PhDeviceMobile-DFhF9vWl.js → PhDeviceMobile-CmgmYUdD.js} +3 -3
- package/_assets/{PhDotsThree-D1w7CJil.js → PhDotsThree-Bp1v1FK6.js} +4 -4
- package/_assets/{PhEnvelope-Bl2H5nh4.js → PhEnvelope-D6Hu8w_1.js} +4 -4
- package/_assets/{PhFunnelSimple-BgMk7oAm.js → PhFunnelSimple-DKlL8A4i.js} +2 -2
- package/_assets/{PhGlobe-DogsrQP0.js → PhGlobe-7uylPeNu.js} +3 -3
- package/_assets/{PhIdentificationCard-Q31-09T1.js → PhIdentificationCard-BED247mY.js} +3 -3
- package/_assets/{PhImage-CSp7hEF0.js → PhImage-FOrY1Sk8.js} +3 -3
- package/_assets/{PhInfo-Dpk9jfsi.js → PhInfo-CaWDFvIR.js} +5 -5
- package/_assets/{PhLightbulb-BeQsp-tS.js → PhLightbulb-B75QV9EL.js} +4 -4
- package/_assets/{PhMagnifyingGlass-BTIpv1o6.js → PhMagnifyingGlass-adS5yhrC.js} +2 -2
- package/_assets/{PhPaperPlaneRight-Djt1jrci.js → PhPaperPlaneRight-BbRgMArn.js} +4 -4
- package/_assets/{PhPlus-7X_1vaxY.js → PhPlus-Bl3EEBwL.js} +5 -5
- package/_assets/{PhPower-DKdnamzj.js → PhPower-GunSTWQq.js} +5 -5
- package/_assets/{PhPuzzlePiece-Dn0glh9o.js → PhPuzzlePiece-BWgi2L03.js} +4 -4
- package/_assets/{PhQrCode-BUDersHS.js → PhQrCode-D0-Wqehu.js} +3 -3
- package/_assets/{PhQuestion-DVQPWaWL.js → PhQuestion-DwVCTKdM.js} +3 -3
- package/_assets/{PhQuestionMark-BrFvM_Em.js → PhQuestionMark-CgTbmVtJ.js} +3 -3
- package/_assets/{PhSealCheck-NWQrD4Wo.js → PhSealCheck-Dk3N_Xq2.js} +3 -3
- package/_assets/{PhSignOut-BAEsXApA.js → PhSignOut-BvXl5dyB.js} +4 -4
- package/_assets/{PhSpinner-DnTTHmGi.js → PhSpinner-DzLQccU8.js} +3 -3
- package/_assets/{PhTrash-CfPgy1g-.js → PhTrash-TPE0FvJz.js} +2 -2
- package/_assets/{PhUser-BE2oflin.js → PhUser-D1oy0lLc.js} +5 -5
- package/_assets/{PhVault-DO_gHFrt.js → PhVault-ByF05VqU.js} +2 -2
- package/_assets/{PhWallet-COcpB5cL.js → PhWallet-D75iTvtf.js} +2 -2
- package/_assets/{PhWarning-CZn1p4rU.js → PhWarning-Jaj21PeP.js} +3 -3
- package/_assets/{PhWarningCircle-Q1TpUKlh.js → PhWarningCircle-DBt_0tnC.js} +4 -4
- package/_assets/{PhX-DtPiLwA0.js → PhX-DZ578mpg.js} +5 -5
- package/_assets/{StoreSettings-IgrX_tLG.js → StoreSettings-Db0uvaPg.js} +22 -22
- package/_assets/{Success-BS0Z1RAV.js → Success-BV7pp9BJ.js} +7 -7
- package/_assets/{SwapController-DxegJiXK.js → SwapController-Dea0YNZV.js} +2 -2
- package/_assets/{Tooltip-CnaT1qo6.js → Tooltip-dXqttMoC.js} +2 -2
- package/_assets/{TradeService-BpKdPYLA.js → TradeService-CiF_cbGA.js} +2 -2
- package/_assets/{W3MFrameProviderSingleton-6RT8kETO.js → W3MFrameProviderSingleton-ogn_NV29.js} +4 -4
- package/_assets/{WebCryptoP256-BPPn0xWu.js → WebCryptoP256-KcgFdR3n.js} +2 -2
- package/_assets/{add-DTV9RnbB.js → add-tNqIWcMg.js} +3 -3
- package/_assets/{all-wallets-CoF5vdo1.js → all-wallets-B8nlg7MV.js} +2 -2
- package/_assets/{app-store-Bk83nseb.js → app-store-9-kKdmJ6.js} +2 -2
- package/_assets/{apple-C0JnL12G.js → apple-DvojoPdF.js} +2 -2
- package/_assets/{arrow-bottom-DTtWhfqu.js → arrow-bottom--df_76nG.js} +2 -2
- package/_assets/{arrow-bottom-circle-2iA-pjWb.js → arrow-bottom-circle-B2DyGh2W.js} +2 -2
- package/_assets/{arrow-left-CSHwe13T.js → arrow-left-Fb0mZ7Y-.js} +3 -3
- package/_assets/{arrow-right-D0OnS_Dt.js → arrow-right-BixOWpB1.js} +2 -2
- package/_assets/arrow-top-X36TCUPc.js +9 -0
- package/_assets/async-directive-DVKyJ8n3.js +10 -0
- package/_assets/{authorizations-BDMsJXSs.js → authorizations-CMvgyyUD.js} +2 -2
- package/_assets/{bank-BEXUgR-O.js → bank-CMW6OQj8.js} +3 -3
- package/_assets/{basic-CGUUnNV6.js → basic-BdsPj4SA.js} +2 -2
- package/_assets/{biconomy-AS28IDeM.js → biconomy-ekjRN8Rx.js} +2 -2
- package/_assets/browseLayout.styles-CEp4MDDk.js +1050 -0
- package/_assets/{browser-CKajL20L.js → browser-DFE3CTqg.js} +3 -3
- package/_assets/{browser-CpV7JK0d.js → browser-DkZP29Je.js} +2 -2
- package/_assets/{browser-ponyfill-iYteNcNL.js → browser-ponyfill-CtL8GT9R.js} +2 -2
- package/_assets/{builder-C_mpoG0k.js → builder-Bz1fAUOf.js} +2 -2
- package/_assets/{buy-gasless-y9ZhCZwt.js → buy-gasless-DGSUe6ir.js} +2 -2
- package/_assets/buy-wfLbpSzF.js +2 -0
- package/_assets/{card-BZJQ3LQE.js → card-BVdWO709.js} +2 -2
- package/_assets/{ccip-jfjEbu6Q.js → ccip-CF8WPBkz.js} +2 -2
- package/_assets/{ccip-BdNcR3B3.js → ccip-DROOg7Sw.js} +2 -2
- package/_assets/{chains-CK0_Sefk.js → chains-C2NUxzBf.js} +2 -2
- package/_assets/{checkmark-bG2V1tQe.js → checkmark-DjsMr40Z.js} +2 -2
- package/_assets/{checkmark-bold-C_Lw0--T.js → checkmark-bold-DCuG-0NX.js} +3 -3
- package/_assets/{chevron-bottom-DWmnxlzP.js → chevron-bottom-D8_GkQ-J.js} +2 -2
- package/_assets/chevron-left-9Zv2sApZ.js +9 -0
- package/_assets/chevron-right-Bqz0HIJD.js +9 -0
- package/_assets/chevron-top-Ce8rthjR.js +9 -0
- package/_assets/{chrome-store-DPBMc1IQ.js → chrome-store-CWYMTzwh.js} +2 -2
- package/_assets/{class-map-TfwPuvlt.js → class-map-HS20q_81.js} +2 -2
- package/_assets/{clock-vfy-xAtz.js → clock-DNaUSRmN.js} +3 -3
- package/_assets/close-Va7Wt97F.js +9 -0
- package/_assets/{coinPlaceholder-DlsoU9ps.js → coinPlaceholder-QyY4J5WZ.js} +2 -2
- package/_assets/collectionPage.styles-dCa1qivP.js +40 -0
- package/_assets/collections-empty-5cIoxSYD.svg +9 -0
- package/_assets/common-BuITO6vc.js +2 -0
- package/_assets/{compass-YIBj_s9P.js → compass-gauDPeQF.js} +2 -2
- package/_assets/controller-DZ9hs146.js +3 -0
- package/_assets/{copy-DCWgzfm7.js → copy-Cfnp8Gxd.js} +2 -2
- package/_assets/{core-CcFOln3F.js → core-BNITS073.js} +5 -5
- package/_assets/{createSvgIcon-CzAghIxs.js → createSvgIcon-kwj-xCck.js} +5 -5
- package/_assets/cursor-bva6Zsy2.js +4 -0
- package/_assets/{cursor-transparent-BOQm83CH.js → cursor-transparent-wEHWEbGv.js} +3 -3
- package/_assets/{custom-DZLhV8pi.js → custom-B62cLRsz.js} +2 -2
- package/_assets/{data-capture-Dp0gEOyC.js → data-capture-CYUDrcxg.js} +2 -2
- package/_assets/{dcl-schemas-DCCxcBd_.js → dcl-schemas-BUryvO70.js} +2 -2
- package/_assets/decimals-sMSiFRNg.js +2 -0
- package/_assets/decimals-xKUe12oD.js +2 -0
- package/_assets/{desktop-C2phimOe.js → desktop-wmxiQg3x.js} +2 -2
- package/_assets/detectExtension-CD9G4Gli.js +2 -0
- package/_assets/{disconnect-BKsaehlj.js → disconnect-CW0SedIh.js} +3 -3
- package/_assets/{discord-Bl2BanWC.js → discord-r-2ftUs2.js} +3 -3
- package/_assets/{disposePreview-Bt1zthb-.js → disposePreview-D2GvvC0L.js} +2 -2
- package/_assets/{email-DKuNrUGz.js → email-B29w2LoR.js} +2 -2
- package/_assets/{embedded-wallet-DiAi5juK.js → embedded-wallet-bBwdHdK8.js} +2 -2
- package/_assets/{emotion-styled.browser.esm-BNYrrR-n.js → emotion-styled.browser.esm-DGympv_c.js} +2 -2
- package/_assets/{engine-DO9rzejh.js → engine-DhNHSBL6.js} +2 -2
- package/_assets/{errors-BR2DYlkN.js → errors-C_vPWg1W.js} +2 -2
- package/_assets/estimate-l1-fee-uGZjwLef.js +2 -0
- package/_assets/eth_estimateGas-6lbcdN1r.js +2 -0
- package/_assets/eth_getStorageAt-TRGXKtot.js +2 -0
- package/_assets/eth_getTransactionCount-DBzJycS6.js +2 -0
- package/_assets/ethereum-COFYAd6O.js +2 -0
- package/_assets/{ethers-DL8HYBD1.js → ethers-CRWPmA0X.js} +2 -2
- package/_assets/{etherscan-58Ubzxkw.js → etherscan-DJ0SXy-j.js} +2 -2
- package/_assets/{events-A3DTBRoM.js → events-BZ-pVC1L.js} +2 -2
- package/_assets/{exclamation-triangle-BcBquNLN.js → exclamation-triangle-Cx-Rg-Q1.js} +2 -2
- package/_assets/{execute-Cg_f99mG.js → execute-DnK9v44q.js} +3 -3
- package/_assets/{extension-6fxxVDb8.js → extension-f7z5q8eX.js} +3 -3
- package/_assets/external-link-DP_pNrc3.js +9 -0
- package/_assets/extractIPFS-B7M3UGIo.js +2 -0
- package/_assets/{facebook-BT044Rud.js → facebook-CGRggpq_.js} +3 -3
- package/_assets/{farcaster-D7r3h2iA.js → farcaster-BDJUKKnv.js} +2 -2
- package/_assets/{features-S-juYOc8.js → features-CO_OuV9E.js} +2 -2
- package/_assets/fetchTokenMetadata-CqABkJEe.js +3 -0
- package/_assets/{field.styles-DwY6mA5k.js → field.styles-SEH7hwZF.js} +2 -2
- package/_assets/{filters-DLU5iOv-.js → filters-CC5vo2yt.js} +2 -2
- package/_assets/{fortmatic-DZMFvRSy.js → fortmatic-D-RZAjM7.js} +2 -2
- package/_assets/{get-bytecode-BdNScxcm.js → get-bytecode-f2xYFEz3.js} +2 -2
- package/_assets/get-ecosystem-wallet-info-BAS2mjuz.js +2 -0
- package/_assets/{getBalance-5pMK97xn.js → getBalance-BYXHWklf.js} +3 -3
- package/_assets/getInstalledModules-BZv1uFUK.js +2 -0
- package/_assets/getNFT-Ca7RzhHw.js +3 -0
- package/_assets/getNFT-DtnerbZ-.js +2 -0
- package/_assets/{github-Dyr1FwtF.js → github-EOSVHy2c.js} +3 -3
- package/_assets/{google-kZUZGkPo.js → google-B7KfKj7W.js} +3 -3
- package/_assets/{grid.styles-CBj7OPqs.js → grid.styles-BI20Xc9c.js} +2 -2
- package/_assets/{hashTypedData-BViBbI7d.js → hashTypedData-BGuNkVCC.js} +2 -2
- package/_assets/{hashTypedData-C8wYkClG.js → hashTypedData-DRAgUpH6.js} +2 -2
- package/_assets/{help-circle-kQ2IMNaP.js → help-circle-BN_J5ISd.js} +3 -3
- package/_assets/{id-BnCg6CDn.js → id-Be22hW3B.js} +2 -2
- package/_assets/{image-BljvVi7U.js → image-Cn3EeNg1.js} +3 -3
- package/_assets/{in-app-DEdRzocq.js → in-app-CdEM3J_F.js} +2 -2
- package/_assets/{in-app-wallet-calls-Dm5qX8uR.js → in-app-wallet-calls-C_06Xgr2.js} +2 -2
- package/_assets/{index-DOhvvJ34.js → index-4qiISaCi.js} +4 -4
- package/_assets/{index-BUQCEt3k.js → index-6lxGroUL.js} +2 -2
- package/_assets/{index-BghqWn9P.js → index-B1tqp8mp.js} +3 -3
- package/_assets/{index-BrSYC0hv.js → index-B6AQvxjh.js} +7 -7
- package/_assets/{index-CPpZVAuH.js → index-B9iqXPZP.js} +64 -64
- package/_assets/{index-DVIuZ9BZ.js → index-BYO8wHKO.js} +2 -2
- package/_assets/{index-BGLfJJYt.js → index-BcRw5b4o.js} +3 -3
- package/_assets/{index-CcqheoI1.js → index-BiLWobv8.js} +4 -4
- package/_assets/index-Bk8wrgLD.js +3 -0
- package/_assets/{index-B2Gc_mC-.js → index-BlJuRPvz.js} +2 -2
- package/_assets/{index-B1Gb-3R6.js → index-BvVJEZcA.js} +3 -3
- package/_assets/{index-C6kT6Sfn.js → index-BxNzm2wN.js} +4 -4
- package/_assets/{index-MczJraXL.js → index-BziOkvVE.js} +2 -2
- package/_assets/{index-CryD9VW4.js → index-C5E1bgq2.js} +5 -5
- package/_assets/{index-DgTbZQPd.js → index-C6chrdS2.js} +2 -2
- package/_assets/{index-C0GVN_h_.js → index-CCCb1GG0.js} +3 -3
- package/_assets/{index-BTFjwtxS.js → index-CDtrCfgI.js} +3 -3
- package/_assets/{index-DPNFV3D8.js → index-CFpZ07WR.js} +2 -2
- package/_assets/{index-WYDHmNZm.js → index-CGfpmkR6.js} +2 -2
- package/_assets/{index-DRG2oQIV.js → index-CHUfGH6w.js} +7 -7
- package/_assets/{index-B80yNe_h.js → index-CIBYB4zB.js} +2 -2
- package/_assets/{index-Dr5zktOL.js → index-CQ5qEN2n.js} +4 -4
- package/_assets/index-CQDgvknI.js +2 -0
- package/_assets/{index-CzSsPS4z.js → index-CQza4zuC.js} +2 -2
- package/_assets/{index-BPbDwpBU.js → index-CVw7w72L.js} +9 -9
- package/_assets/{index-DxnJl2WJ.js → index-CZCKf2Ul.js} +2 -2
- package/_assets/{index-HgN3VEFi.js → index-Cb_9pwPk.js} +13 -13
- package/_assets/{index-D87-9MZR.js → index-CcilsUDs.js} +5 -5
- package/_assets/{index-CrT_4JW8.js → index-CeGjDTdH.js} +3 -3
- package/_assets/{index-3m-YEpVY.js → index-Ck3jUyHs.js} +2 -2
- package/_assets/{index-DWKIvGEP.js → index-ClCN70OC.js} +2 -2
- package/_assets/{index-CU2qo9Jz.js → index-Cn1gm1Ym.js} +3 -3
- package/_assets/{index-Hws6c9HG.js → index-Co8HzLJz.js} +3 -3
- package/_assets/{index-C27SJIy7.js → index-Cp0o35ah.js} +2 -2
- package/_assets/{index-7tUSX8Sg.js → index-Cp6MZoQt.js} +6 -6
- package/_assets/{index-BtUfxv0D.js → index-CwyXNm4D.js} +2 -2
- package/_assets/{index-B2D616zz.js → index-Cx3kPoCi.js} +2 -2
- package/_assets/{index-DqmXHGE-.js → index-Cyf77meS.js} +2 -2
- package/_assets/{index-DmWruJR2.js → index-Cz0qQOE1.js} +709 -644
- package/_assets/{index-DsM3TTlU.js → index-D58MXeIs.js} +5 -5
- package/_assets/{index-BJ0DfYhI.js → index-D5_fPVsN.js} +5 -5
- package/_assets/{index-3px6dAqb.js → index-DG-qr12v.js} +2 -2
- package/_assets/{index-BGUD_ZL2.js → index-DI5BdeNe.js} +3 -3
- package/_assets/{index-BHaToJQ0.js → index-DIAzCxP5.js} +2 -2
- package/_assets/{index-DQUXVV0m.js → index-DJrGAvLX.js} +4 -4
- package/_assets/{index-C8aCwT--.js → index-DOK9QzKz.js} +3 -3
- package/_assets/{index-BcOfOkoI.js → index-DSd3E_98.js} +2 -2
- package/_assets/{index-D8xHDDES.js → index-DVTD3AUQ.js} +2 -2
- package/_assets/{index-CNrbvWPD.js → index-Devjdp12.js} +2 -2
- package/_assets/{index-24uRB0LZ.js → index-DkvemK3W.js} +2 -2
- package/_assets/{index-BLGDIibw.js → index-DoZwh81D.js} +2 -2
- package/_assets/{index-0NORQtpG.js → index-DrJvzp_6.js} +4 -4
- package/_assets/{index-7LXzQmHE.js → index-DsUnb8HI.js} +4 -4
- package/_assets/{index-BAXWOcsc.js → index-Duxp543S.js} +2 -2
- package/_assets/{index-C5Cfgzxe.js → index-QKH5zWvb.js} +2 -2
- package/_assets/{index-onWOn2Lw.js → index-VDE_kROn.js} +2 -2
- package/_assets/{index-B7Gu3ukM.js → index-WdqO9Tkd.js} +2 -2
- package/_assets/{index-CPhvWWd4.js → index-Xly-UBRa.js} +2 -2
- package/_assets/{index-BWDlDT5x.js → index-enqpoQZg.js} +2 -2
- package/_assets/{index-m9VghriX.js → index-hi5HC9v9.js} +4 -4
- package/_assets/{index-C2Y-GwnE.js → index-k8uxRcKj.js} +2 -2
- package/_assets/{index-BceNINUN.js → index-kwR044iF.js} +2 -2
- package/_assets/{index-F-FNlGTD.js → index-qwuSUSEd.js} +2 -2
- package/_assets/{index-DhUS7AJF.js → index-r2YK9u0Z.js} +2 -2
- package/_assets/{index-Dz4lLVRy.js → index-r5KrxblH.js} +2 -2
- package/_assets/index-rN70zLJH.js +2 -0
- package/_assets/{index-Dq5wfttg.js → index-shiAYG1_.js} +2 -2
- package/_assets/{index.es-B_XjuOVV.js → index.es-C3BJn6UF.js} +2 -2
- package/_assets/{index.es-CMgDBoSg.js → index.es-CPt4V6aJ.js} +5 -5
- package/_assets/{index.es-4edd-nyK.js → index.es-D_vtHMYt.js} +2 -2
- package/_assets/{index.es-_w4ghWbW.js → index.es-NClsdIFf.js} +2 -2
- package/_assets/{info-NffTejk2.js → info-CwfqZ_F5.js} +2 -2
- package/_assets/{info-circle-Bkfa-zTK.js → info-circle-DulYFvYW.js} +2 -2
- package/_assets/items-empty-DFeUTHZo.js +2 -0
- package/_assets/{jsxRuntime.module-CWoDbr3a.js → jsxRuntime.module-hV4zW-M8.js} +2 -2
- package/_assets/{lightbulb-DJyI23gZ.js → lightbulb-CE_dw_oh.js} +3 -3
- package/_assets/{linkAccount-DLtl2O7g.js → linkAccount-CKB3ZaS5.js} +2 -2
- package/_assets/{localBatchGatewayRequest-C8Gkji-1.js → localBatchGatewayRequest-ZBtklTXW.js} +2 -2
- package/_assets/{mail-ByjbM98V.js → mail-DJ6kL25J.js} +3 -3
- package/_assets/{mobile-DRtsSoQQ.js → mobile-fDCl_uHz.js} +2 -2
- package/_assets/{more-7mTLBDMC.js → more-C7_Whde7.js} +2 -2
- package/_assets/{native-CnjXMM-C.js → native-Kg14VA_4.js} +2 -2
- package/_assets/{network-placeholder-BLIeJdXr.js → network-placeholder-Cz4dQYwV.js} +2 -2
- package/_assets/{networks-BOXvdbA_.js → networks-60sp_NgH.js} +2 -2
- package/_assets/{nftPlaceholder-BkPrsl1V.js → nftPlaceholder-BihS-dFi.js} +2 -2
- package/_assets/{off-D5nJR6cf.js → off-txTunFjX.js} +3 -3
- package/_assets/{onramp-C3ZcVb03.js → onramp-CELHtmtZ.js} +2 -2
- package/_assets/{openzeppelin-0ZRk_M0i.js → openzeppelin-cf4VvTc8.js} +2 -2
- package/_assets/ownerOf-BhcGEc-I.js +2 -0
- package/_assets/parseNft-LIdDVhDS.js +3 -0
- package/_assets/{parseSignature-Eowa2tdA.js → parseSignature-1aExBqV4.js} +2 -2
- package/_assets/{parseSignature-BmGcXvXm.js → parseSignature-CJMtiIwp.js} +4 -4
- package/_assets/{passkeys-aXr9fPLE.js → passkeys-nhhAU60J.js} +2 -2
- package/_assets/{pay-with-exchange-lrWwqmcS.js → pay-with-exchange-DgeyGPVn.js} +2 -2
- package/_assets/{play-store-DkQb-7TK.js → play-store-BoegC4yH.js} +3 -3
- package/_assets/{plus-QEqsA4LH.js → plus-CGZQ4v4u.js} +2 -2
- package/_assets/{prepare-contract-call-DB8CLypS.js → prepare-contract-call-BbEg4n8j.js} +2 -2
- package/_assets/{qr-code-DUGI4hfn.js → qr-code-D4FwFoJ2.js} +2 -2
- package/_assets/{qr-overlay-iQN1dD-Z.js → qr-overlay-HbGsO4Z5.js} +4 -4
- package/_assets/{react-DjYfJ2MV.js → react-D4a12AOU.js} +2 -2
- package/_assets/{receive-BM9-ydQE.js → receive-BCrE03-Z.js} +7 -7
- package/_assets/{recycle-horizontal-4LA4SYxV.js → recycle-horizontal-BQghFdmJ.js} +3 -3
- package/_assets/{ref-SeW674D4.js → ref-CRG-0jL7.js} +3 -3
- package/_assets/{refresh-CfbVwjMK.js → refresh-BeYZoKSh.js} +2 -2
- package/_assets/{reown-logo-CXdwCM5S.js → reown-logo-BUmcB6sW.js} +2 -2
- package/_assets/{resolveImplementation-BvPO9AxE.js → resolveImplementation-C5sqvijE.js} +2 -2
- package/_assets/{resume-buy-DMj0gsv3.js → resume-buy-CHwHfFfB.js} +2 -2
- package/_assets/{rpc-CWwF5Q0O.js → rpc-C7WeNti2.js} +2 -2
- package/_assets/sales-empty-CJxxUih1.js +2 -0
- package/_assets/{search-BxoBdLKX.js → search-b1pLcQ0Q.js} +3 -3
- package/_assets/search-empty-DPwDXNY4.js +2 -0
- package/_assets/{secp256k1-DaUYZoDM.js → secp256k1-BSnPfa7U.js} +2 -2
- package/_assets/{secp256k1-v7SFjvoR.js → secp256k1-Bx3LBAeO.js} +2 -2
- package/_assets/{secp256k1-DbiormCe.js → secp256k1-DC-G0tgu.js} +2 -2
- package/_assets/{send-BEWpjUYC.js → send-CgleiSpE.js} +2 -2
- package/_assets/send-batch-transaction-cYIkyvAw.js +2 -0
- package/_assets/{send-eip712-transaction-CX0SS_Fj.js → send-eip712-transaction-BxZIvVqr.js} +3 -3
- package/_assets/send-gasless-transaction-AJDfVbJ4.js +3 -0
- package/_assets/{send-DADQg5Xo.js → send-lC4ra6w3.js} +2 -2
- package/_assets/send-transaction-BoDsRVsN.js +3 -0
- package/_assets/{sendMetaTransaction-ogjnebbT.js → sendMetaTransaction-de0lLWkt.js} +2 -2
- package/_assets/{sendRawTransaction-DeqJeesd.js → sendRawTransaction-C1ZY7G1i.js} +4 -4
- package/_assets/{sentry-D5pxZjEX.js → sentry-BtNPB732.js} +3 -3
- package/_assets/{serializeTransaction-BAb9fRza.js → serializeTransaction-aJNSlVZ6.js} +2 -2
- package/_assets/{session-proposal-BE3cA9V2.js → session-proposal-Bbb5UBSn.js} +2 -2
- package/_assets/{session-request-BSBr8dIr.js → session-request-BfOWY71p.js} +3 -3
- package/_assets/{sha256-LzeRV9fa.js → sha256-EKFH5bRv.js} +2 -2
- package/_assets/{signing-SvumIwtH.js → signing-Dpnklb6L.js} +4 -4
- package/_assets/{skeleton.styles-C4DJ2NzO.js → skeleton.styles-BL4LJ9kq.js} +2 -2
- package/_assets/{socials-BAM25AoB.js → socials-DSQSzS2Q.js} +2 -2
- package/_assets/{styled-D8T13S5T.js → styled-CYOyCcUc.js} +2 -2
- package/_assets/{swapHorizontal-DqWxuLkY.js → swapHorizontal-B917A7vy.js} +3 -3
- package/_assets/{swapHorizontalBold-OjAKKa_s.js → swapHorizontalBold-BXr9TuPL.js} +3 -3
- package/_assets/{swapHorizontalMedium-DMCaBXhn.js → swapHorizontalMedium-BK00_YJ-.js} +2 -2
- package/_assets/{swapHorizontalRoundedBold-MdL2nIUy.js → swapHorizontalRoundedBold-Bi8rzI9h.js} +2 -2
- package/_assets/{swapVertical-DqfBjHDL.js → swapVertical-Cw3vad0G.js} +2 -2
- package/_assets/{swaps-E7VYTCbf.js → swaps-BUpcbYAs.js} +2 -2
- package/_assets/{telegram-BUfF9lU-.js → telegram-BddjnyZB.js} +2 -2
- package/_assets/{thirdweb-BCm_1-hP.js → thirdweb-X_F9t3tR.js} +4 -4
- package/_assets/{three-dots-Dtx7YFPp.js → three-dots-C6jZ-WFx.js} +3 -3
- package/_assets/{to-serializable-transaction-fh2ZuQ0z.js → to-serializable-transaction-DKGuimc2.js} +3 -3
- package/_assets/totalSupply-CxFOFC8z.js +2 -0
- package/_assets/{transaction-BW1kcJaw.js → transaction-rj-Pg9to.js} +2 -2
- package/_assets/transactionReceipt-CY_RewkL.js +2 -0
- package/_assets/transactions-B9vcPjQ7.js +17 -0
- package/_assets/{twitch-CcAxNwZd.js → twitch-D8WrDbmL.js} +3 -3
- package/_assets/{twitterIcon-DGWTzzDP.js → twitterIcon-DlYypBM9.js} +3 -3
- package/_assets/{useCreditPacks-vVF3Ex0A.js → useCreditPacks-Bp1eg_w0.js} +2 -2
- package/_assets/useInfiniteGrid-M4PKTc7a.js +2 -0
- package/_assets/{useStore-CrhXQmD7.js → useStore-B36FT3vD.js} +3 -3
- package/_assets/{useTheme-eJCE5OaO.js → useTheme-JAlwl5Yc.js} +2 -2
- package/_assets/{utils-tA63y0WB.js → utils-B5_GBgrt.js} +2 -2
- package/_assets/{verify-BUPUcH1A.js → verify-DkJJJlPs.js} +2 -2
- package/_assets/{verify-filled-B_M_NM6T.js → verify-filled-Cu34rKfG.js} +3 -3
- package/_assets/{verifyHash-Dueob_vw.js → verifyHash-CUIwmQhj.js} +2 -2
- package/_assets/{w3m-modal-D2yJcCzj.js → w3m-modal-C0ut0dVU.js} +2 -2
- package/_assets/{w3m-modal-COWN4Tmk.js → w3m-modal-CoWmp_Gq.js} +2 -2
- package/_assets/wait-for-tx-receipt-CUutkyU_.js +2 -0
- package/_assets/{wallet-DivYo3rT.js → wallet-C65hLKu5.js} +3 -3
- package/_assets/{wallet-placeholder-CROmPhTi.js → wallet-placeholder-Bdb-3o1I.js} +3 -3
- package/_assets/{walletconnect-CLYhTmzw.js → walletconnect-DadsNaAD.js} +5 -5
- package/_assets/{wallets-B2GGvPeb.js → wallets-Ce1PXa5T.js} +6 -6
- package/_assets/{warning-circle-BeIqoE5O.js → warning-circle-DE3Cl0f1.js} +3 -3
- package/_assets/{web-connector-DUnHYoQL.js → web-connector-BzUsckyf.js} +4 -4
- package/_assets/{writeContract-CROXe9Nv.js → writeContract-BK7D3bgA.js} +2 -2
- package/_assets/x-C7WtQF7V.js +13 -0
- package/_assets/{zora-sepolia-BXeIud_y.js → zora-sepolia-B1bVixk1.js} +2 -2
- package/_assets/{zoraTestnet-CNt5diBi.js → zoraTestnet-CRvf7ato.js} +2 -2
- package/index.html +11 -11
- package/package.json +2 -2
- package/_assets/Activity-BijJpTkD.js +0 -387
- package/_assets/Assets.styles-DyGkSQg3.js +0 -652
- package/_assets/Cart-C1RD0sE7.js +0 -706
- package/_assets/Collection-BfsXJWYr.js +0 -163
- package/_assets/Confetti-jrBYWQ4j.js +0 -18
- package/_assets/Creator-oLOu2_6o.js +0 -308
- package/_assets/DeploymentBuilder-B5Xzrege.js +0 -4
- package/_assets/LazyEmoteControls-D1j7i1Dx.js +0 -3
- package/_assets/MyAssets-DBFhcvr_.js +0 -407
- package/_assets/MyFavorites-DZPKWQIG.js +0 -110
- package/_assets/OutfitPreview-DKF6z0YR.js +0 -7
- package/_assets/PhCaretLeft-Biye6fMa.js +0 -15
- package/_assets/PhCaretUp-DG-v6SHg.js +0 -15
- package/_assets/arrow-top-B6q7bINf.js +0 -9
- package/_assets/async-directive-C4ERI4pC.js +0 -10
- package/_assets/buy-CravDqC4.js +0 -2
- package/_assets/categories-Df30N9ir.js +0 -487
- package/_assets/chevron-left-D4XfciEr.js +0 -9
- package/_assets/chevron-right-YDjwU6mj.js +0 -9
- package/_assets/chevron-top-CKP62nIc.js +0 -9
- package/_assets/close-CDjRP7el.js +0 -9
- package/_assets/collectionPage.styles-CJpk15Nl.js +0 -33
- package/_assets/common-CmMaqO41.js +0 -2
- package/_assets/controller-BzM17fun.js +0 -3
- package/_assets/creations-empty-Dg6T0dZl.svg +0 -11
- package/_assets/cursor-BmxC6Z2v.js +0 -4
- package/_assets/decimals-99pVte4v.js +0 -2
- package/_assets/decimals-BzDaRYK5.js +0 -2
- package/_assets/detectExtension-BDdQYFaF.js +0 -2
- package/_assets/estimate-l1-fee-BnreVrAO.js +0 -2
- package/_assets/eth_estimateGas-CFBHrWQo.js +0 -2
- package/_assets/eth_getStorageAt-CjWXP0_z.js +0 -2
- package/_assets/eth_getTransactionCount-DulleRzE.js +0 -2
- package/_assets/ethereum-DHUC2DG3.js +0 -2
- package/_assets/external-link-Brktcqz2.js +0 -9
- package/_assets/extractIPFS-qSJovz3Y.js +0 -2
- package/_assets/fetchTokenMetadata-DiGdQTFR.js +0 -3
- package/_assets/get-ecosystem-wallet-info-B1hD9oCl.js +0 -2
- package/_assets/getInstalledModules-Dy8beckb.js +0 -2
- package/_assets/getNFT-B-N-0TyH.js +0 -2
- package/_assets/getNFT-Dtz3_t30.js +0 -3
- package/_assets/index-BKmuXR89.js +0 -3
- package/_assets/index-DSpipQd9.js +0 -2
- package/_assets/index-FjcL2PZF.js +0 -2
- package/_assets/ownerOf-B0L_lvHO.js +0 -2
- package/_assets/parseNft-Dk8hPccx.js +0 -3
- package/_assets/send-batch-transaction-Byu6-BlM.js +0 -2
- package/_assets/send-gasless-transaction-p0wtOOIx.js +0 -3
- package/_assets/send-transaction-DVDWbxYg.js +0 -3
- package/_assets/totalSupply-B9x6jcRS.js +0 -2
- package/_assets/transactionReceipt-DAtMflrB.js +0 -2
- package/_assets/transactions-DBTQsKX-.js +0 -17
- package/_assets/useImportable-BX2HdxhB.js +0 -2
- package/_assets/useInfiniteGrid-Bf39OwzL.js +0 -2
- package/_assets/useUrlFilters-NjZZWX7X.js +0 -2
- package/_assets/wait-for-tx-receipt-CV2fOMXx.js +0 -2
- package/_assets/x-Cb8Nxlfd.js +0 -13
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import{r as d,j as t,L as F,d as
|
|
1
|
+
import{r as d,j as t,L as F,d as Yt,a as Jt,b as Zt}from"./react-D4a12AOU.js";import{s,t as ut,I as _,b0 as te,b as e,q as ot,a3 as rt,B as x,A as Ct,o as Y,K as ee,n as ie,r as Et,l as Lt,N as se,S as z,b1 as V,b2 as oe,b3 as re,b4 as X,Y as ne,Z as ae,W as de,X as le,L as Rt,a1 as ue,b5 as nt,b6 as ce,b7 as pe,b8 as fe,w as N,b9 as zt,ba as Pt,bb as A,h as at,bc as dt,bd as he,be as xe,bf as me,R as ge,bg as be,bh as ye,a9 as je}from"./index-Cz0qQOE1.js";import{E as U}from"./ErrorNotice-O5DWS_gB.js";import{L as ve}from"./LoadMore-Dh1voaGI.js";import{u as we}from"./useInfiniteGrid-M4PKTc7a.js";import{O as $e}from"./OutfitPreview-DPkjJ61X.js";import{T as ke}from"./skeleton.styles-BL4LJ9kq.js";import"./dcl-schemas-BUryvO70.js";import"./sentry-BtNPB732.js";import"./ethers-CRWPmA0X.js";import"./intl-AKLEHPeO.js";import"./disposePreview-D2GvvC0L.js";(function(){try{var n=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},f=new n.Error().stack;f&&(n._sentryDebugIds=n._sentryDebugIds||{},n._sentryDebugIds[f]="a40e483b-55ad-414d-9524-0d8d647fc9a5",n._sentryDebugIdIdentifier="sentry-dbid-a40e483b-55ad-414d-9524-0d8d647fc9a5")}catch{}})();const{colors:m,radius:J,media:Se}=ut,Ie=s.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
gap: 12px;
|
|
5
|
-
`,
|
|
5
|
+
`,Te=s.div`
|
|
6
6
|
display: flex;
|
|
7
7
|
align-items: center;
|
|
8
8
|
gap: 8px;
|
|
9
9
|
border: 1px solid rgba(255, 255, 255, 0.45);
|
|
10
|
-
border-radius: ${
|
|
10
|
+
border-radius: ${J.pill};
|
|
11
11
|
padding: 0 14px;
|
|
12
12
|
height: 44px;
|
|
13
13
|
background: rgba(0, 0, 0, 0.25);
|
|
@@ -25,17 +25,17 @@ import{r as d,j as t,L as F,d as Jt,a as Xt,b as Yt}from"./react-DjYfJ2MV.js";im
|
|
|
25
25
|
input::placeholder {
|
|
26
26
|
color: ${m.muted2};
|
|
27
27
|
}
|
|
28
|
-
`,
|
|
28
|
+
`,wt=s.p`
|
|
29
29
|
margin: 0;
|
|
30
30
|
font-size: 13px;
|
|
31
31
|
color: ${m.gray4};
|
|
32
|
-
`,
|
|
32
|
+
`,Ce=s.div`
|
|
33
33
|
display: flex;
|
|
34
34
|
gap: 8px;
|
|
35
|
-
`,
|
|
35
|
+
`,Ee=s.button`
|
|
36
36
|
min-height: 44px;
|
|
37
37
|
padding: 0 16px;
|
|
38
|
-
border-radius: ${
|
|
38
|
+
border-radius: ${J.pill};
|
|
39
39
|
border: 1px solid rgba(255, 255, 255, 0.45);
|
|
40
40
|
background: none;
|
|
41
41
|
font: inherit;
|
|
@@ -48,18 +48,18 @@ import{r as d,j as t,L as F,d as Jt,a as Xt,b as Yt}from"./react-DjYfJ2MV.js";im
|
|
|
48
48
|
background: ${m.softWhite};
|
|
49
49
|
color: ${m.text};
|
|
50
50
|
}
|
|
51
|
-
|
|
51
|
+
`,$t=s.div`
|
|
52
52
|
display: grid;
|
|
53
53
|
grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
|
|
54
54
|
gap: 10px;
|
|
55
55
|
|
|
56
|
-
${
|
|
56
|
+
${Se.maxWidth("mobile")} {
|
|
57
57
|
grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
|
|
58
58
|
}
|
|
59
|
-
`,
|
|
59
|
+
`,Le=s.span`
|
|
60
60
|
height: 190px;
|
|
61
|
-
border-radius: ${
|
|
62
|
-
`,
|
|
61
|
+
border-radius: ${J.card};
|
|
62
|
+
`,Re=s.button`
|
|
63
63
|
position: relative;
|
|
64
64
|
display: flex;
|
|
65
65
|
flex-direction: column;
|
|
@@ -67,7 +67,7 @@ import{r as d,j as t,L as F,d as Jt,a as Xt,b as Yt}from"./react-DjYfJ2MV.js";im
|
|
|
67
67
|
padding: 8px;
|
|
68
68
|
background: rgba(0, 0, 0, 0.4);
|
|
69
69
|
border: 1px solid transparent;
|
|
70
|
-
border-radius: ${
|
|
70
|
+
border-radius: ${J.card};
|
|
71
71
|
text-align: left;
|
|
72
72
|
font: inherit;
|
|
73
73
|
color: ${m.softWhite};
|
|
@@ -86,38 +86,38 @@ import{r as d,j as t,L as F,d as Jt,a as Xt,b as Yt}from"./react-DjYfJ2MV.js";im
|
|
|
86
86
|
opacity: 0.5;
|
|
87
87
|
cursor: default;
|
|
88
88
|
}
|
|
89
|
-
`,
|
|
89
|
+
`,ze=s.img`
|
|
90
90
|
width: 100%;
|
|
91
91
|
aspect-ratio: 1;
|
|
92
92
|
object-fit: cover;
|
|
93
93
|
border-radius: 8px;
|
|
94
94
|
background: ${m.media};
|
|
95
|
-
`,
|
|
95
|
+
`,Pe=s.span`
|
|
96
96
|
font-size: 13px;
|
|
97
97
|
font-weight: 600;
|
|
98
98
|
white-space: nowrap;
|
|
99
99
|
overflow: hidden;
|
|
100
100
|
text-overflow: ellipsis;
|
|
101
|
-
`,
|
|
101
|
+
`,We=s.span`
|
|
102
102
|
display: inline-flex;
|
|
103
103
|
align-items: center;
|
|
104
104
|
gap: 4px;
|
|
105
105
|
font-size: 12px;
|
|
106
106
|
color: ${m.gray4};
|
|
107
|
-
`,
|
|
107
|
+
`,Oe=s(_)`
|
|
108
108
|
position: absolute;
|
|
109
109
|
top: 12px;
|
|
110
110
|
right: 12px;
|
|
111
111
|
color: ${m.accent};
|
|
112
112
|
background: ${m.white};
|
|
113
113
|
border-radius: 50%;
|
|
114
|
-
`,
|
|
114
|
+
`,Ae=[{key:"wearable",labelKey:"categories.wearables"},{key:"emote",labelKey:"categories.emotes"}];function Fe({selectedKeys:n,onPick:f,canPick:h}){const[c,y]=d.useState("wearable"),[j,b]=d.useState(""),[o,R]=d.useState("");d.useEffect(()=>{const l=setTimeout(()=>R(j.trim()),300);return()=>clearTimeout(l)},[j]);const{items:T,isLoading:C,isPlaceholderData:u,isError:S,hasNextPage:E,isFetchingNextPage:Z,fetchNextPage:k}=we(["outfit-picker",c,o],l=>te({search:o||void 0,category:c,onSale:!0,listingType:"primary",first:24,skip:l,sortBy:"cheapest"})),g=e(c==="emote"?"outfits.studio.searchEmotes":"outfits.studio.searchWearables"),K=new Set,B=T.filter(l=>{if(!l.itemId)return!1;const v=`${l.contractAddress.toLowerCase()}-${l.itemId}`;return K.has(v)?!1:(K.add(v),!0)});return t.jsxs(Ie,{"data-testid":"outfit-picker",children:[t.jsx(Ce,{role:"group","aria-label":e("outfits.studio.pickerCategory"),"data-testid":"outfit-picker-category",children:Ae.map(({key:l,labelKey:v})=>t.jsx(Ee,{type:"button","data-category":l,"data-selected":c===l||void 0,"aria-pressed":c===l,onClick:()=>{y(l),b("")},children:e(v)},l))}),t.jsxs(Te,{children:[t.jsx(_,{name:"search",color:ut.colors.muted}),t.jsx("input",{value:j,placeholder:g,"aria-label":g,onChange:l=>b(l.target.value),"data-testid":"outfit-picker-search"})]}),S?t.jsx(wt,{children:e("outfits.errors.generic")}):C||u?t.jsx($t,{"aria-busy":"true",children:Array.from({length:8},(l,v)=>t.jsx(Le,{className:"skeleton","aria-hidden":!0},v))}):B.length===0?t.jsx(wt,{children:e("outfits.studio.noResults")}):t.jsx($t,{children:B.map(l=>{const v=`${l.contractAddress.toLowerCase()}-${l.itemId}`,H=n.has(v);return t.jsxs(Re,{type:"button","data-testid":"outfit-picker-item","data-selected":H||void 0,disabled:!H&&!h(l),onClick:()=>f(l),title:l.name,children:[t.jsx(ze,{src:l.thumbnail,alt:"",loading:"lazy"}),t.jsx(Pe,{children:l.name}),t.jsxs(We,{children:[t.jsx(ot,{size:12}),t.jsx(rt,{credits:l.priceCredits})]}),H?t.jsx(Oe,{name:"check-rounded",size:18}):null]},v)})}),!S&&!C&&!u?t.jsx(ve,{auto:!1,hasNextPage:!!E,isFetching:Z,onLoadMore:()=>void k()}):null]})}const{colors:a,radius:$,media:D,z:Ne}=ut,Wt=s.div`
|
|
115
115
|
max-width: 1200px;
|
|
116
116
|
margin: 0 auto;
|
|
117
117
|
display: flex;
|
|
118
118
|
flex-direction: column;
|
|
119
119
|
gap: 20px;
|
|
120
|
-
color: ${
|
|
120
|
+
color: ${a.softWhite};
|
|
121
121
|
`,O=s.div`
|
|
122
122
|
min-height: 52vh;
|
|
123
123
|
display: flex;
|
|
@@ -126,34 +126,34 @@ import{r as d,j as t,L as F,d as Jt,a as Xt,b as Yt}from"./react-DjYfJ2MV.js";im
|
|
|
126
126
|
justify-content: center;
|
|
127
127
|
text-align: center;
|
|
128
128
|
gap: 14px;
|
|
129
|
-
color: ${
|
|
130
|
-
|
|
129
|
+
color: ${a.softWhite};
|
|
130
|
+
`,kt=s.h1`
|
|
131
131
|
font-size: 24px;
|
|
132
132
|
`,w=s.p`
|
|
133
133
|
margin: 0;
|
|
134
134
|
font-size: 13px;
|
|
135
|
-
color: ${
|
|
136
|
-
`,
|
|
135
|
+
color: ${a.gray4};
|
|
136
|
+
`,Ot=s.div`
|
|
137
137
|
display: flex;
|
|
138
138
|
align-items: center;
|
|
139
139
|
gap: 12px;
|
|
140
|
-
`,
|
|
140
|
+
`,At=s.h1`
|
|
141
141
|
font-size: 24px;
|
|
142
142
|
font-weight: 800;
|
|
143
143
|
margin-right: auto;
|
|
144
|
-
`,
|
|
144
|
+
`,De=s(F)`
|
|
145
145
|
display: inline-flex;
|
|
146
146
|
align-items: center;
|
|
147
147
|
justify-content: center;
|
|
148
148
|
width: 44px;
|
|
149
149
|
height: 44px;
|
|
150
150
|
border-radius: 50%;
|
|
151
|
-
color: ${
|
|
151
|
+
color: ${a.softWhite};
|
|
152
152
|
|
|
153
153
|
&:hover {
|
|
154
154
|
background: rgba(255, 255, 255, 0.14);
|
|
155
155
|
}
|
|
156
|
-
`,
|
|
156
|
+
`,Ft=s.span`
|
|
157
157
|
font-size: 12px;
|
|
158
158
|
font-weight: 700;
|
|
159
159
|
text-transform: uppercase;
|
|
@@ -161,20 +161,20 @@ import{r as d,j as t,L as F,d as Jt,a as Xt,b as Yt}from"./react-DjYfJ2MV.js";im
|
|
|
161
161
|
padding: 3px 10px;
|
|
162
162
|
border-radius: ${$.pill};
|
|
163
163
|
background: rgba(255, 255, 255, 0.16);
|
|
164
|
-
color: ${
|
|
164
|
+
color: ${a.softWhite};
|
|
165
165
|
|
|
166
166
|
&[data-state='published'] {
|
|
167
167
|
background: rgba(30, 166, 114, 0.35);
|
|
168
|
-
color: ${
|
|
168
|
+
color: ${a.white};
|
|
169
169
|
}
|
|
170
|
-
`,
|
|
170
|
+
`,St=s.div`
|
|
171
171
|
display: flex;
|
|
172
172
|
flex-direction: column;
|
|
173
173
|
gap: 10px;
|
|
174
|
-
`,
|
|
174
|
+
`,Be=s.span`
|
|
175
175
|
height: 76px;
|
|
176
176
|
border-radius: ${$.card};
|
|
177
|
-
`,
|
|
177
|
+
`,He=s.div`
|
|
178
178
|
display: flex;
|
|
179
179
|
align-items: center;
|
|
180
180
|
gap: 14px;
|
|
@@ -185,14 +185,14 @@ import{r as d,j as t,L as F,d as Jt,a as Xt,b as Yt}from"./react-DjYfJ2MV.js";im
|
|
|
185
185
|
${D.maxWidth("mobile")} {
|
|
186
186
|
flex-wrap: wrap;
|
|
187
187
|
}
|
|
188
|
-
`,
|
|
188
|
+
`,Nt=Ct`
|
|
189
189
|
width: 52px;
|
|
190
190
|
height: 52px;
|
|
191
191
|
border-radius: 8px;
|
|
192
|
-
background: ${
|
|
192
|
+
background: ${a.media};
|
|
193
193
|
flex-shrink: 0;
|
|
194
|
-
`,
|
|
195
|
-
${
|
|
194
|
+
`,Me=s.div`
|
|
195
|
+
${Nt};
|
|
196
196
|
overflow: hidden;
|
|
197
197
|
|
|
198
198
|
img {
|
|
@@ -201,8 +201,8 @@ import{r as d,j as t,L as F,d as Jt,a as Xt,b as Yt}from"./react-DjYfJ2MV.js";im
|
|
|
201
201
|
object-fit: cover;
|
|
202
202
|
display: block;
|
|
203
203
|
}
|
|
204
|
-
`,
|
|
205
|
-
${
|
|
204
|
+
`,Ue=s.span`
|
|
205
|
+
${Nt};
|
|
206
206
|
display: inline-block;
|
|
207
207
|
`,_e=s.div`
|
|
208
208
|
flex: 1;
|
|
@@ -210,19 +210,19 @@ import{r as d,j as t,L as F,d as Jt,a as Xt,b as Yt}from"./react-DjYfJ2MV.js";im
|
|
|
210
210
|
display: flex;
|
|
211
211
|
flex-direction: column;
|
|
212
212
|
gap: 4px;
|
|
213
|
-
`,
|
|
213
|
+
`,Ke=s.span`
|
|
214
214
|
font-size: 15px;
|
|
215
215
|
font-weight: 700;
|
|
216
216
|
white-space: nowrap;
|
|
217
217
|
overflow: hidden;
|
|
218
218
|
text-overflow: ellipsis;
|
|
219
|
-
`,
|
|
219
|
+
`,Ge=s.span`
|
|
220
220
|
display: inline-flex;
|
|
221
221
|
align-items: center;
|
|
222
222
|
gap: 8px;
|
|
223
223
|
font-size: 13px;
|
|
224
|
-
color: ${
|
|
225
|
-
`,
|
|
224
|
+
color: ${a.gray4};
|
|
225
|
+
`,qe=s.div`
|
|
226
226
|
display: flex;
|
|
227
227
|
align-items: center;
|
|
228
228
|
gap: 8px;
|
|
@@ -231,7 +231,7 @@ import{r as d,j as t,L as F,d as Jt,a as Xt,b as Yt}from"./react-DjYfJ2MV.js";im
|
|
|
231
231
|
width: 100%;
|
|
232
232
|
justify-content: flex-end;
|
|
233
233
|
}
|
|
234
|
-
`,
|
|
234
|
+
`,Qe=s.button`
|
|
235
235
|
display: inline-flex;
|
|
236
236
|
align-items: center;
|
|
237
237
|
justify-content: center;
|
|
@@ -240,11 +240,11 @@ import{r as d,j as t,L as F,d as Jt,a as Xt,b as Yt}from"./react-DjYfJ2MV.js";im
|
|
|
240
240
|
border: 0;
|
|
241
241
|
background: none;
|
|
242
242
|
border-radius: 50%;
|
|
243
|
-
color: ${
|
|
243
|
+
color: ${a.gray4};
|
|
244
244
|
cursor: pointer;
|
|
245
245
|
|
|
246
246
|
&:hover {
|
|
247
|
-
color: ${
|
|
247
|
+
color: ${a.dclRed};
|
|
248
248
|
background: rgba(255, 255, 255, 0.14);
|
|
249
249
|
}
|
|
250
250
|
|
|
@@ -252,20 +252,20 @@ import{r as d,j as t,L as F,d as Jt,a as Xt,b as Yt}from"./react-DjYfJ2MV.js";im
|
|
|
252
252
|
opacity: 0.5;
|
|
253
253
|
cursor: default;
|
|
254
254
|
}
|
|
255
|
-
`,
|
|
255
|
+
`,Ve=s.div`
|
|
256
256
|
position: fixed;
|
|
257
257
|
inset: 0;
|
|
258
|
-
z-index: ${
|
|
258
|
+
z-index: ${Ne.overlay};
|
|
259
259
|
display: grid;
|
|
260
260
|
place-items: center;
|
|
261
261
|
padding: 16px;
|
|
262
|
-
`,
|
|
262
|
+
`,Xe=s.div`
|
|
263
263
|
position: absolute;
|
|
264
264
|
inset: 0;
|
|
265
265
|
background: rgba(22, 21, 24, 0.5);
|
|
266
|
-
`,
|
|
266
|
+
`,Ye=s.div`
|
|
267
267
|
position: relative;
|
|
268
|
-
background: ${
|
|
268
|
+
background: ${a.bg};
|
|
269
269
|
border-radius: ${$.card};
|
|
270
270
|
padding: 24px;
|
|
271
271
|
max-width: 420px;
|
|
@@ -273,15 +273,15 @@ import{r as d,j as t,L as F,d as Jt,a as Xt,b as Yt}from"./react-DjYfJ2MV.js";im
|
|
|
273
273
|
display: flex;
|
|
274
274
|
flex-direction: column;
|
|
275
275
|
gap: 12px;
|
|
276
|
-
`,
|
|
276
|
+
`,Je=s.h2`
|
|
277
277
|
font-size: 18px;
|
|
278
278
|
font-weight: 800;
|
|
279
|
-
`,
|
|
279
|
+
`,Ze=s.div`
|
|
280
280
|
display: flex;
|
|
281
281
|
flex-wrap: wrap;
|
|
282
282
|
gap: 10px;
|
|
283
283
|
margin-top: 6px;
|
|
284
|
-
`,
|
|
284
|
+
`,ti=s.div`
|
|
285
285
|
display: grid;
|
|
286
286
|
grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
|
|
287
287
|
gap: 32px;
|
|
@@ -291,20 +291,20 @@ import{r as d,j as t,L as F,d as Jt,a as Xt,b as Yt}from"./react-DjYfJ2MV.js";im
|
|
|
291
291
|
grid-template-columns: 1fr;
|
|
292
292
|
gap: 20px;
|
|
293
293
|
}
|
|
294
|
-
`,
|
|
294
|
+
`,ei=s.div`
|
|
295
295
|
display: flex;
|
|
296
296
|
flex-direction: column;
|
|
297
297
|
gap: 18px;
|
|
298
|
-
`,
|
|
298
|
+
`,ii=s.div`
|
|
299
299
|
display: flex;
|
|
300
300
|
flex-direction: column;
|
|
301
301
|
gap: 18px;
|
|
302
|
-
`,
|
|
302
|
+
`,si=s.div`
|
|
303
303
|
position: relative;
|
|
304
304
|
aspect-ratio: 3 / 4;
|
|
305
305
|
border-radius: 16px;
|
|
306
306
|
overflow: hidden;
|
|
307
|
-
background: ${
|
|
307
|
+
background: ${a.media};
|
|
308
308
|
|
|
309
309
|
${D.maxWidth("mobile")} {
|
|
310
310
|
aspect-ratio: 1 / 1;
|
|
@@ -322,14 +322,14 @@ import{r as d,j as t,L as F,d as Jt,a as Xt,b as Yt}from"./react-DjYfJ2MV.js";im
|
|
|
322
322
|
inset: 0;
|
|
323
323
|
pointer-events: none;
|
|
324
324
|
}
|
|
325
|
-
`,
|
|
325
|
+
`,oi=s.p`
|
|
326
326
|
position: absolute;
|
|
327
327
|
inset: 0;
|
|
328
328
|
display: grid;
|
|
329
329
|
place-items: center;
|
|
330
330
|
padding: 24px;
|
|
331
331
|
text-align: center;
|
|
332
|
-
color: ${
|
|
332
|
+
color: ${a.softWhite};
|
|
333
333
|
text-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
|
|
334
334
|
`,P=s.div`
|
|
335
335
|
display: flex;
|
|
@@ -340,11 +340,11 @@ import{r as d,j as t,L as F,d as Jt,a as Xt,b as Yt}from"./react-DjYfJ2MV.js";im
|
|
|
340
340
|
font-weight: 700;
|
|
341
341
|
letter-spacing: 0.04em;
|
|
342
342
|
text-transform: uppercase;
|
|
343
|
-
color: ${
|
|
344
|
-
`,
|
|
343
|
+
color: ${a.gray4};
|
|
344
|
+
`,ri=s.div`
|
|
345
345
|
display: flex;
|
|
346
346
|
gap: 8px;
|
|
347
|
-
`,
|
|
347
|
+
`,ni=s.button`
|
|
348
348
|
min-height: 44px;
|
|
349
349
|
padding: 0 16px;
|
|
350
350
|
border-radius: ${$.pill};
|
|
@@ -352,20 +352,20 @@ import{r as d,j as t,L as F,d as Jt,a as Xt,b as Yt}from"./react-DjYfJ2MV.js";im
|
|
|
352
352
|
background: none;
|
|
353
353
|
font: inherit;
|
|
354
354
|
font-weight: 600;
|
|
355
|
-
color: ${
|
|
355
|
+
color: ${a.softWhite};
|
|
356
356
|
cursor: pointer;
|
|
357
357
|
|
|
358
358
|
&[data-selected] {
|
|
359
|
-
border-color: ${
|
|
360
|
-
background: ${
|
|
361
|
-
color: ${
|
|
359
|
+
border-color: ${a.softWhite};
|
|
360
|
+
background: ${a.softWhite};
|
|
361
|
+
color: ${a.text};
|
|
362
362
|
}
|
|
363
363
|
`,ai=s.div`
|
|
364
364
|
width: 240px;
|
|
365
365
|
aspect-ratio: 3 / 4;
|
|
366
366
|
border-radius: ${$.card};
|
|
367
367
|
overflow: hidden;
|
|
368
|
-
background: ${
|
|
368
|
+
background: ${a.media};
|
|
369
369
|
|
|
370
370
|
&[data-busy] {
|
|
371
371
|
opacity: 0.6;
|
|
@@ -377,20 +377,20 @@ import{r as d,j as t,L as F,d as Jt,a as Xt,b as Yt}from"./react-DjYfJ2MV.js";im
|
|
|
377
377
|
object-fit: cover;
|
|
378
378
|
display: block;
|
|
379
379
|
}
|
|
380
|
-
`,
|
|
380
|
+
`,di=s.div`
|
|
381
381
|
display: flex;
|
|
382
382
|
align-items: center;
|
|
383
383
|
gap: 12px;
|
|
384
384
|
flex-wrap: wrap;
|
|
385
|
-
`,
|
|
385
|
+
`,li=s.div`
|
|
386
386
|
display: flex;
|
|
387
387
|
align-items: center;
|
|
388
388
|
gap: 8px;
|
|
389
|
-
`,
|
|
389
|
+
`,ui=s.input`
|
|
390
390
|
width: 44px;
|
|
391
391
|
height: 44px;
|
|
392
392
|
padding: 2px;
|
|
393
|
-
border: 1px solid ${
|
|
393
|
+
border: 1px solid ${a.lineStrong};
|
|
394
394
|
border-radius: ${$.btn};
|
|
395
395
|
background: none;
|
|
396
396
|
cursor: pointer;
|
|
@@ -402,33 +402,33 @@ import{r as d,j as t,L as F,d as Jt,a as Xt,b as Yt}from"./react-DjYfJ2MV.js";im
|
|
|
402
402
|
border: 0;
|
|
403
403
|
border-radius: 4px;
|
|
404
404
|
}
|
|
405
|
-
`,
|
|
405
|
+
`,ci=s.div`
|
|
406
406
|
display: flex;
|
|
407
407
|
flex-direction: column;
|
|
408
408
|
gap: 2px;
|
|
409
409
|
font-size: 12px;
|
|
410
|
-
color: ${
|
|
411
|
-
`,
|
|
410
|
+
color: ${a.gray4};
|
|
411
|
+
`,pi=s.input`
|
|
412
412
|
width: 88px;
|
|
413
413
|
height: 26px;
|
|
414
414
|
padding: 0 6px;
|
|
415
|
-
border: 1px solid ${
|
|
415
|
+
border: 1px solid ${a.lineStrong};
|
|
416
416
|
border-radius: ${$.chip};
|
|
417
|
-
background: ${
|
|
417
|
+
background: ${a.white};
|
|
418
418
|
font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
|
|
419
419
|
font-size: 12px;
|
|
420
|
-
color: ${
|
|
420
|
+
color: ${a.text};
|
|
421
421
|
text-transform: lowercase;
|
|
422
422
|
|
|
423
423
|
&[data-invalid] {
|
|
424
|
-
border-color: ${
|
|
424
|
+
border-color: ${a.errStrong};
|
|
425
425
|
}
|
|
426
|
-
`,
|
|
426
|
+
`,fi=s.div`
|
|
427
427
|
width: 281px;
|
|
428
428
|
max-width: 100%;
|
|
429
|
-
`,
|
|
429
|
+
`,hi=s(x)`
|
|
430
430
|
align-self: flex-start;
|
|
431
|
-
`,
|
|
431
|
+
`,xi=s.div`
|
|
432
432
|
display: flex;
|
|
433
433
|
align-items: stretch;
|
|
434
434
|
gap: 8px;
|
|
@@ -437,27 +437,27 @@ import{r as d,j as t,L as F,d as Jt,a as Xt,b as Yt}from"./react-DjYfJ2MV.js";im
|
|
|
437
437
|
flex: 1;
|
|
438
438
|
min-width: 0;
|
|
439
439
|
}
|
|
440
|
-
`,
|
|
440
|
+
`,It=s.input`
|
|
441
441
|
height: 44px;
|
|
442
442
|
padding: 0 14px;
|
|
443
|
-
border: 1px solid ${
|
|
443
|
+
border: 1px solid ${a.lineStrong};
|
|
444
444
|
border-radius: ${$.btn};
|
|
445
|
-
background: ${
|
|
445
|
+
background: ${a.white};
|
|
446
446
|
font: inherit;
|
|
447
|
-
color: ${
|
|
447
|
+
color: ${a.text};
|
|
448
448
|
|
|
449
449
|
&:focus {
|
|
450
|
-
outline: 2px solid ${
|
|
450
|
+
outline: 2px solid ${a.accent};
|
|
451
451
|
outline-offset: -1px;
|
|
452
452
|
}
|
|
453
|
-
`,
|
|
453
|
+
`,mi=s.ul`
|
|
454
454
|
list-style: none;
|
|
455
455
|
margin: 0;
|
|
456
456
|
padding: 0;
|
|
457
457
|
display: flex;
|
|
458
458
|
flex-direction: column;
|
|
459
459
|
gap: 6px;
|
|
460
|
-
`,
|
|
460
|
+
`,gi=s.li`
|
|
461
461
|
display: flex;
|
|
462
462
|
align-items: center;
|
|
463
463
|
gap: 10px;
|
|
@@ -472,19 +472,19 @@ import{r as d,j as t,L as F,d as Jt,a as Xt,b as Yt}from"./react-DjYfJ2MV.js";im
|
|
|
472
472
|
&[data-missing] {
|
|
473
473
|
opacity: 0.6;
|
|
474
474
|
}
|
|
475
|
-
`,
|
|
475
|
+
`,Dt=Ct`
|
|
476
476
|
width: 40px;
|
|
477
477
|
height: 40px;
|
|
478
478
|
border-radius: 8px;
|
|
479
|
-
background: ${
|
|
479
|
+
background: ${a.media};
|
|
480
480
|
flex-shrink: 0;
|
|
481
|
-
`,
|
|
482
|
-
${
|
|
481
|
+
`,bi=s.img`
|
|
482
|
+
${Dt};
|
|
483
483
|
object-fit: cover;
|
|
484
|
-
`,bi=s.span`
|
|
485
|
-
${Nt};
|
|
486
|
-
display: inline-block;
|
|
487
484
|
`,yi=s.span`
|
|
485
|
+
${Dt};
|
|
486
|
+
display: inline-block;
|
|
487
|
+
`,ji=s.span`
|
|
488
488
|
flex: 1;
|
|
489
489
|
min-width: 0;
|
|
490
490
|
font-size: 14px;
|
|
@@ -492,28 +492,28 @@ import{r as d,j as t,L as F,d as Jt,a as Xt,b as Yt}from"./react-DjYfJ2MV.js";im
|
|
|
492
492
|
white-space: nowrap;
|
|
493
493
|
overflow: hidden;
|
|
494
494
|
text-overflow: ellipsis;
|
|
495
|
-
`,
|
|
495
|
+
`,vi=s.span`
|
|
496
496
|
flex: none;
|
|
497
497
|
padding: 2px 8px;
|
|
498
498
|
border-radius: ${$.pill};
|
|
499
499
|
border: 1px solid rgba(255, 255, 255, 0.45);
|
|
500
500
|
font-size: 11px;
|
|
501
501
|
font-weight: 600;
|
|
502
|
-
color: ${
|
|
502
|
+
color: ${a.softWhite};
|
|
503
503
|
white-space: nowrap;
|
|
504
504
|
|
|
505
505
|
${D.maxWidth("mobile")} {
|
|
506
506
|
order: 1;
|
|
507
507
|
margin-left: 50px;
|
|
508
508
|
}
|
|
509
|
-
`,
|
|
509
|
+
`,wi=s.span`
|
|
510
510
|
display: inline-flex;
|
|
511
511
|
align-items: center;
|
|
512
512
|
gap: 4px;
|
|
513
513
|
font-size: 13px;
|
|
514
|
-
color: ${
|
|
514
|
+
color: ${a.gray4};
|
|
515
515
|
white-space: nowrap;
|
|
516
|
-
|
|
516
|
+
`,$i=s.div`
|
|
517
517
|
display: flex;
|
|
518
518
|
align-items: center;
|
|
519
519
|
justify-content: space-between;
|
|
@@ -521,13 +521,13 @@ import{r as d,j as t,L as F,d as Jt,a as Xt,b as Yt}from"./react-DjYfJ2MV.js";im
|
|
|
521
521
|
border-top: 1px solid rgba(255, 255, 255, 0.3);
|
|
522
522
|
font-size: 13px;
|
|
523
523
|
font-weight: 700;
|
|
524
|
-
|
|
524
|
+
`,ki=s.span`
|
|
525
525
|
display: inline-flex;
|
|
526
526
|
align-items: center;
|
|
527
527
|
gap: 4px;
|
|
528
528
|
font-size: 15px;
|
|
529
529
|
font-weight: 700;
|
|
530
|
-
`,
|
|
530
|
+
`,Si=s.button`
|
|
531
531
|
display: inline-flex;
|
|
532
532
|
align-items: center;
|
|
533
533
|
justify-content: center;
|
|
@@ -536,22 +536,22 @@ import{r as d,j as t,L as F,d as Jt,a as Xt,b as Yt}from"./react-DjYfJ2MV.js";im
|
|
|
536
536
|
border: 0;
|
|
537
537
|
background: none;
|
|
538
538
|
border-radius: 50%;
|
|
539
|
-
color: ${
|
|
539
|
+
color: ${a.gray4};
|
|
540
540
|
cursor: pointer;
|
|
541
541
|
|
|
542
542
|
&:hover {
|
|
543
|
-
color: ${
|
|
543
|
+
color: ${a.dclRed};
|
|
544
544
|
background: rgba(255, 255, 255, 0.14);
|
|
545
545
|
}
|
|
546
|
-
`,
|
|
546
|
+
`,Ii=s.div`
|
|
547
547
|
display: flex;
|
|
548
548
|
flex-direction: column;
|
|
549
549
|
gap: 8px;
|
|
550
550
|
padding-top: 16px;
|
|
551
551
|
border-top: 1px solid rgba(255, 255, 255, 0.3);
|
|
552
|
-
`,
|
|
552
|
+
`,Ti=s.div`
|
|
553
553
|
display: flex;
|
|
554
554
|
flex-wrap: wrap;
|
|
555
555
|
gap: 10px;
|
|
556
|
-
`;function Ui(){const{id:a}=Jt(),{pathname:f}=Xt(),h=X(b=>b.session),c=X(b=>b.signIn),y=te();ee({title:e("outfits.studio.title"),noindex:!0});const j=f.endsWith("/new")?"new":a?"edit":"list";return y==="pending"?t.jsx(O,{"aria-busy":"true","data-testid":"outfit-studio-loading",children:t.jsx("span",{className:"spinner","aria-hidden":!0})}):h?y!=="creator"?t.jsxs(O,{"data-testid":"outfit-studio-unavailable",children:[t.jsx($t,{children:e("outfits.studio.title")}),t.jsx(w,{children:e("outfits.studio.notAvailable")}),t.jsx(x,{as:F,to:"/overview",variant:"white",children:e("outfits.studio.backToShop")})]}):j==="list"?t.jsx(Ci,{}):t.jsx(Ri,{outfitId:j==="edit"?a:null},a??"new"):t.jsxs(O,{"data-testid":"outfit-studio-signin",children:[t.jsx($t,{children:e("outfits.studio.title")}),t.jsx(w,{children:e("outfits.studio.signInPrompt")}),t.jsx(x,{variant:"white",onClick:()=>c(),children:e("outfits.studio.signIn")})]})}function Ti({outfit:a}){const f=Lt(a.thumbnailHash);return f?t.jsx(He,{style:{background:ce(a)},children:t.jsx("img",{src:f,alt:"",loading:"lazy"})}):t.jsx(Me,{"aria-hidden":!0})}function Ci(){const a=X(u=>u.session),f=Ct(),[h,c]=d.useState(null),[y,j]=d.useState(null),{data:b=[],isLoading:o,isError:R,refetch:T}=Et({queryKey:["outfits-all"],enabled:!!a,staleTime:3e4,queryFn:()=>be(a.identity)});async function C(u,S){if(a){j(u.id);try{S==="delete"?(await pe(u.id,a.identity),N.success(e("outfits.studio.deleted"))):(await Rt({...dt(u),published:!1},a.identity,"update"),N.success(e("outfits.studio.unpublished"))),zt(f)}catch(E){E instanceof A||at(E,{flow:`outfit-${S}`}),N.error(e(E instanceof A?nt(E.code):"outfits.errors.generic"))}finally{j(null),c(null)}}}return t.jsxs(Pt,{"data-testid":"outfit-studio-list",children:[t.jsxs(Wt,{children:[t.jsx(Ot,{children:e("outfits.studio.myOutfits")}),t.jsx(x,{as:F,to:"/outfits/new",variant:"white","data-testid":"outfit-studio-new",children:e("outfits.studio.new")})]}),o?t.jsx(kt,{"aria-busy":"true",children:Array.from({length:3},(u,S)=>t.jsx(De,{className:"skeleton","aria-hidden":!0},S))}):R?t.jsxs(O,{children:[t.jsx(_,{message:e("outfits.errors.generic")}),t.jsx(x,{variant:"white",onClick:()=>void T(),children:e("outfits.detail.retry")})]}):b.length===0?t.jsx(w,{children:e("outfits.studio.empty")}):t.jsx(kt,{children:b.map(u=>t.jsxs(Be,{"data-testid":"outfit-studio-row","data-published":u.published||void 0,children:[t.jsx(Ti,{outfit:u}),t.jsxs(_e,{children:[t.jsx(Ue,{children:u.name||e("outfits.studio.untitled")}),t.jsxs(Ke,{children:[t.jsx(At,{"data-state":u.published?"published":"draft",children:u.published?e("outfits.studio.publishedState"):e("outfits.studio.draft")}),e("outfits.card.items",{count:u.items.length})]})]}),t.jsxs(Ge,{children:[u.published?t.jsx(x,{as:F,to:`/items/outfits/${u.id}`,variant:"ghost",size:"sm",children:e("outfits.studio.view")}):null,t.jsx(x,{as:F,to:`/outfits/${u.id}/edit`,variant:"outline",size:"sm","data-testid":"outfit-studio-edit",children:e("outfits.studio.edit")}),t.jsx(qe,{type:"button","data-testid":"outfit-studio-delete","aria-label":e("outfits.studio.confirmDelete"),disabled:y===u.id,onClick:()=>c(u),children:t.jsx(U,{name:"trash",size:18})})]})]},u.id))}),h?t.jsxs(Qe,{role:"dialog","aria-modal":"true","aria-label":e("outfits.studio.deleteTitle"),"data-testid":"outfit-studio-confirm",children:[t.jsx(Ve,{onClick:()=>c(null)}),t.jsxs(Je,{children:[t.jsx(Xe,{children:e("outfits.studio.deleteTitle")}),t.jsx("p",{className:"muted",children:e("outfits.studio.deleteBody")}),t.jsxs(Ye,{children:[h.published?t.jsx(x,{variant:"purple","data-testid":"outfit-studio-confirm-unpublish",disabled:y===h.id,onClick:()=>void C(h,"unpublish"),children:e("outfits.studio.unpublish")}):null,t.jsx(x,{variant:h.published?"outline":"purple","data-testid":"outfit-studio-confirm-delete",disabled:y===h.id,onClick:()=>void C(h,"delete"),children:e("outfits.studio.confirmDelete")}),t.jsx(x,{variant:"ghost",onClick:()=>c(null),children:e("outfits.studio.cancel")})]})]})]}):null]})}const It=["image/png","image/jpeg","image/webp"];function Ei(){return{id:crypto.randomUUID(),name:"",thumbnailHash:"",items:[],bodyShape:"unisex",gradientFrom:rt.from,gradientTo:rt.to,published:!1}}function dt(a){return{id:a.id,name:a.name,thumbnailHash:a.thumbnailHash,items:a.items,bodyShape:a.bodyShape,gradientFrom:a.gradientFrom,gradientTo:a.gradientTo,published:a.published}}function Li(a){try{const f=sessionStorage.getItem(a);return f?JSON.parse(f):null}catch{return null}}function Ri({outfitId:a}){const f=a===null,h=`outfit-draft:${a??"new"}`,c=X(i=>i.session),y=Ct(),j=Yt(),[b]=d.useState(()=>Li(h)),[o,R]=d.useState(()=>b??(f?Ei():null)),[T,C]=d.useState(!!b),{data:u,isLoading:S,isError:E,refetch:Z}=Et({queryKey:["outfit",a,!0],enabled:!f&&!!c,staleTime:0,queryFn:()=>ye(a,c.identity)});d.useEffect(()=>{u&&R(i=>i??dt(u))},[u]);function k(i){R(r=>r&&{...r,...i}),C(!0)}d.useEffect(()=>{if(!(!o||!T))try{sessionStorage.setItem(h,JSON.stringify(o))}catch{}},[o,T,h]),d.useEffect(()=>{if(!T)return;const i=r=>r.preventDefault();return window.addEventListener("beforeunload",i),()=>window.removeEventListener("beforeunload",i)},[T]),d.useEffect(()=>()=>sessionStorage.removeItem(h),[h]);const g=ie(o??void 0),K=d.useMemo(()=>new Set(((o==null?void 0:o.items)??[]).map(z)),[o]),B=i=>ge((o==null?void 0:o.items)??[],i,g.byKey),l=i=>!!i.itemId&&B(i).length<=J;function v(i){!o||!l(i)||k({items:B(i)})}const[H,ut]=d.useState(null),L=d.useRef(null),tt=d.useRef(!0);d.useEffect(()=>(tt.current=!0,()=>{tt.current=!1}),[]);const[G,ct]=d.useState(!1),[Dt,q]=d.useState(null),[et,pt]=d.useState(""),[Bt,ft]=d.useState(null),[I,Ht]=d.useState();d.useEffect(()=>()=>{L.current&&URL.revokeObjectURL(L.current)},[]);function ht(){const i=xe(et);if(!i){ft(e("outfits.studio.importError"));return}ft(null),pt(""),Ht(i.colors),k({items:i.items,...i.bodyShape?{bodyShape:i.bodyShape}:{}}),N.success(e("outfits.studio.importSuccess",{count:i.items.length}))}async function Mt(i){if(!i||!c)return;if(q(null),!It.includes(i.type)){q(e("outfits.errors.unsupportedType"));return}if(i.size>fe){q(e("outfits.errors.tooLarge"));return}L.current&&URL.revokeObjectURL(L.current);const r=URL.createObjectURL(i);L.current=r,ut(r),ct(!0);try{const p=await he(i,c.identity);k({thumbnailHash:p})}catch(p){p instanceof A||at(p,{flow:"outfit-thumbnail"}),q(e(p instanceof A?nt(p.code):"outfits.errors.generic")),L.current&&(URL.revokeObjectURL(L.current),L.current=null),ut(null)}finally{ct(!1)}}const[M,xt]=d.useState(!1),[_t,mt]=d.useState(null),it=!!o&&o.name.trim().length>0&&o.name.length<=60,Ut=!!o&&V(o.gradientFrom)&&V(o.gradientTo),gt=!!o&&o.items.some(i=>{const r=g.byKey.get(z(i));return!r||se(r)}),bt=!!o&&it&&!!o.thumbnailHash&&Ut&>&&o.items.length>=oe&&o.items.length<=J;async function st(i){if(!(!c||!o||M)){xt(!0),mt(null);try{const r=await Rt({...o,published:i},c.identity,f?"create":"update");if(!tt.current)return;sessionStorage.removeItem(h),R(dt(r)),C(!1),zt(y),i&&!o.published?(me("Shop Outfit Published",{outfit_id:r.id,item_count:r.items.length}),N.success(e("outfits.studio.publishedToast"))):N.success(e("outfits.studio.saved")),f&&(y.setQueryData(["outfit",r.id,!0],r),j(`/outfits/${r.id}/edit`,{replace:!0}))}catch(r){r instanceof A||at(r,{flow:"outfit-save"}),mt(e(r instanceof A?nt(r.code):"outfits.errors.generic"))}finally{xt(!1)}}}const Q=d.useMemo(()=>((o==null?void 0:o.items)??[]).map(i=>g.byKey.get(z(i))).filter(i=>!!i),[o,g.byKey]),yt=d.useMemo(()=>re(Q),[Q]),Kt=d.useMemo(()=>{const i=ae(Q);return i!=null&&i.itemId?z({contractAddress:i.contractAddress,itemId:i.itemId}):null},[Q]),Gt=(o==null?void 0:o.bodyShape)==="female"?ne:(o==null?void 0:o.bodyShape)==="male"?de:void 0;if(!c)return null;if(!o)return E?t.jsxs(O,{children:[t.jsx(_,{message:e("outfits.errors.generic")}),t.jsx(x,{variant:"white",onClick:()=>void Z(),children:e("outfits.detail.retry")})]}):!S&&u===null?t.jsxs(O,{"data-testid":"outfit-studio-missing",children:[t.jsx(w,{children:e("outfits.errors.notFound")}),t.jsx(x,{as:F,to:"/outfits/manage",variant:"white",children:e("outfits.studio.myOutfits")})]}):t.jsx(O,{"aria-busy":"true",children:t.jsx("span",{className:"spinner","aria-hidden":!0})});const jt=H??Lt(o.thumbnailHash),qt={...o,authorAddress:(c==null?void 0:c.address)??"",createdAt:0,updatedAt:0},Qt=o.items.reduce((i,r)=>{var p;return i+(((p=g.byKey.get(z(r)))==null?void 0:p.priceCredits)??0)},0);return t.jsxs(Pt,{"data-testid":"outfit-studio-editor",children:[t.jsxs(Wt,{children:[t.jsx(Ne,{to:"/outfits/manage","aria-label":e("outfits.studio.myOutfits"),"data-testid":"outfit-studio-back",children:t.jsx(U,{name:"arrow-left",size:18})}),t.jsx(Ot,{children:f?e("outfits.studio.new"):e("outfits.studio.editTitle")}),t.jsx(At,{"data-state":o.published?"published":"draft",children:o.published?e("outfits.studio.publishedState"):e("outfits.studio.draft")})]}),t.jsxs(Ze,{children:[t.jsxs(ti,{children:[t.jsxs(ii,{"data-testid":"outfit-studio-preview",style:{background:le(o)},children:[t.jsx(we,{id:"outfit-studio-preview-frame",profile:"default",bodyShape:Gt,urns:yt,skin:I==null?void 0:I.skin,hair:I==null?void 0:I.hair,eyes:I==null?void 0:I.eyes,enabled:!g.isLoading}),yt.length===0&&!g.isLoading?t.jsx(si,{children:e("outfits.studio.previewEmpty")}):null]}),t.jsxs(P,{children:[t.jsx(W,{as:"span",children:e("outfits.studio.bodyShape")}),t.jsx(oi,{role:"group","aria-label":e("outfits.studio.bodyShape"),children:["unisex","male","female"].map(i=>t.jsx(ri,{type:"button","data-selected":o.bodyShape===i||void 0,onClick:()=>k({bodyShape:i}),children:e(`outfits.studio.shape.${i}`)},i))})]}),t.jsxs(P,{children:[t.jsx(W,{as:"span",children:e("outfits.studio.gradient")}),t.jsx(ni,{children:["gradientFrom","gradientTo"].map(i=>t.jsxs(di,{children:[t.jsx(li,{type:"color",value:V(o[i])?o[i]:rt.from,"aria-label":e(i==="gradientFrom"?"outfits.studio.gradientTop":"outfits.studio.gradientBottom"),"data-testid":i==="gradientFrom"?"outfit-studio-gradient-from":"outfit-studio-gradient-to",onChange:r=>k({[i]:r.target.value.toLowerCase()})}),t.jsxs(ui,{children:[t.jsx("span",{children:e(i==="gradientFrom"?"outfits.studio.gradientTop":"outfits.studio.gradientBottom")}),t.jsx(ci,{value:o[i],maxLength:7,spellCheck:!1,placeholder:"#000000","aria-label":e(i==="gradientFrom"?"outfits.studio.gradientTopHex":"outfits.studio.gradientBottomHex"),"data-invalid":!V(o[i])||void 0,onChange:r=>{const p=r.target.value.trim().toLowerCase();k({[i]:p.startsWith("#")||p===""?p:`#${p}`})}})]})]},i))}),t.jsx(w,{children:e("outfits.studio.gradientHint")})]}),t.jsxs(P,{children:[t.jsx(W,{as:"span",children:e("outfits.studio.thumbnail")}),jt?t.jsx(ai,{"data-busy":G||void 0,children:t.jsx("img",{src:jt,alt:""})}):null,t.jsxs(fi,{as:"label",variant:"outline",size:"sm","data-busy":G||void 0,children:[G?e("outfits.studio.uploading"):e("outfits.studio.upload"),t.jsx("input",{type:"file",accept:It.join(","),hidden:!0,disabled:G,onChange:i=>{var r;return void Mt((r=i.target.files)==null?void 0:r[0])},"data-testid":"outfit-studio-thumb-input"})]}),t.jsx(w,{children:e("outfits.studio.thumbnailHint")}),t.jsx(_,{message:Dt,testId:"outfit-studio-thumb-error"})]}),t.jsxs(P,{children:[t.jsx(W,{as:"span",children:e("outfits.studio.cardPreview")}),t.jsx(pi,{"data-testid":"outfit-studio-card-preview",onClickCapture:i=>{i.preventDefault(),i.stopPropagation()},children:t.jsx(ue,{outfit:qt,resolution:g})})]})]}),t.jsxs(ei,{children:[t.jsxs(P,{children:[t.jsx(W,{htmlFor:"outfit-import",children:e("outfits.studio.import")}),t.jsxs(hi,{children:[t.jsx(St,{id:"outfit-import",value:et,spellCheck:!1,placeholder:e("outfits.studio.importPlaceholder"),onChange:i=>pt(i.target.value),onKeyDown:i=>{i.key==="Enter"&&ht()},"data-testid":"outfit-studio-import"}),t.jsx(x,{variant:"outline",size:"sm",onClick:ht,disabled:et.trim()==="","data-testid":"outfit-studio-import-apply",children:e("outfits.studio.importApply")})]}),t.jsx(w,{children:e("outfits.studio.importHint")}),t.jsx(_,{message:Bt,testId:"outfit-studio-import-error"})]}),t.jsxs(P,{children:[t.jsx(W,{htmlFor:"outfit-name",children:e("outfits.studio.name")}),t.jsx(St,{id:"outfit-name",value:o.name,maxLength:60,placeholder:e("outfits.studio.namePlaceholder"),onChange:i=>k({name:i.target.value}),"data-testid":"outfit-studio-name"})]}),t.jsxs(P,{children:[t.jsxs(W,{as:"span",children:[e("outfits.studio.items")," (",o.items.length,"/",J,")"]}),o.items.length===0?t.jsx(w,{children:e("outfits.studio.noItems")}):t.jsx(xi,{children:o.items.map(i=>{const r=z(i),p=g.byKey.get(r);return t.jsxs(mi,{"data-testid":"outfit-studio-selected","data-missing":!p||void 0,children:[p?t.jsx(gi,{src:p.thumbnail,alt:""}):t.jsx(bi,{className:g.isLoading?"skeleton":void 0,"aria-hidden":!0}),t.jsx(yi,{className:p?void 0:"muted",children:p?p.name:g.isLoading?t.jsx($e,{className:"skeleton",width:96,"aria-hidden":!0}):e("outfits.card.unavailable")}),r===Kt?t.jsx(ji,{"data-testid":"outfit-studio-plays-in-preview",children:e("outfits.studio.playsInPreview")}):null,p?t.jsxs(vi,{children:[t.jsx(ot,{size:12}),p.priceCredits.toLocaleString()]}):null,t.jsx(ki,{type:"button","aria-label":e("outfits.studio.remove"),title:e("outfits.studio.remove"),onClick:()=>k({items:o.items.filter(Vt=>z(Vt)!==r)}),children:t.jsx(U,{name:"trash",size:16})})]},r)})}),o.items.length>0?t.jsxs(wi,{"data-testid":"outfit-studio-total",children:[t.jsx("span",{children:e("outfits.detail.totalPrice")}),t.jsxs($i,{children:[t.jsx(ot,{size:14}),Qt.toLocaleString()]})]}):null,o.items.length>=J?t.jsx(w,{children:e("outfits.studio.maxItems")}):null]}),t.jsx(Ae,{selectedKeys:K,onPick:v,canPick:l})]})]}),t.jsxs(Si,{"data-testid":"outfit-studio-savebar",children:[t.jsx(_,{message:_t,testId:"outfit-studio-save-error"}),it?!bt&&!o.published?t.jsx(w,{"data-testid":"outfit-studio-publish-hint",children:!gt&&o.items.length>0?e("outfits.studio.needsWearable"):e("outfits.errors.notPublishable")}):null:t.jsx(w,{children:e("outfits.studio.needName")}),t.jsxs(Ii,{children:[t.jsx(x,{variant:"outline","data-testid":"outfit-studio-save",disabled:M||!it,onClick:()=>void st(o.published),children:M?e("outfits.studio.saving"):e("outfits.studio.saveDraft")}),o.published?t.jsx(x,{variant:"white","data-testid":"outfit-studio-unpublish",disabled:M,onClick:()=>void st(!1),children:e("outfits.studio.unpublish")}):t.jsx(x,{variant:"white","data-testid":"outfit-studio-publish",disabled:M||!bt,onClick:()=>void st(!0),children:e("outfits.studio.publish")})]})]})]})}export{Ui as OutfitStudio,Ui as default};
|
|
557
|
-
//# sourceMappingURL=OutfitStudio-
|
|
556
|
+
`;function Ki(){const{id:n}=Yt(),{pathname:f}=Jt(),h=Y(b=>b.session),c=Y(b=>b.signIn),y=ee();ie({title:e("outfits.studio.title"),noindex:!0});const j=f.endsWith("/new")?"new":n?"edit":"list";return y==="pending"?t.jsx(O,{"aria-busy":"true","data-testid":"outfit-studio-loading",children:t.jsx("span",{className:"spinner","aria-hidden":!0})}):h?y!=="creator"?t.jsxs(O,{"data-testid":"outfit-studio-unavailable",children:[t.jsx(kt,{children:e("outfits.studio.title")}),t.jsx(w,{children:e("outfits.studio.notAvailable")}),t.jsx(x,{as:F,to:"/overview",variant:"white",children:e("outfits.studio.backToShop")})]}):j==="list"?t.jsx(Ei,{}):t.jsx(zi,{outfitId:j==="edit"?n:null},n??"new"):t.jsxs(O,{"data-testid":"outfit-studio-signin",children:[t.jsx(kt,{children:e("outfits.studio.title")}),t.jsx(w,{children:e("outfits.studio.signInPrompt")}),t.jsx(x,{variant:"white",onClick:()=>c(),children:e("outfits.studio.signIn")})]})}function Ci({outfit:n}){const f=Rt(n.thumbnailHash);return f?t.jsx(Me,{style:{background:pe(n)},children:t.jsx("img",{src:f,alt:"",loading:"lazy"})}):t.jsx(Ue,{"aria-hidden":!0})}function Ei(){const n=Y(u=>u.session),f=Et(),[h,c]=d.useState(null),[y,j]=d.useState(null),{data:b=[],isLoading:o,isError:R,refetch:T}=Lt({queryKey:["outfits-all"],enabled:!!n,staleTime:3e4,queryFn:()=>ye(n.identity)});async function C(u,S){if(n){j(u.id);try{S==="delete"?(await fe(u.id,n.identity),N.success(e("outfits.studio.deleted"))):(await zt({...lt(u),published:!1},n.identity,"update"),N.success(e("outfits.studio.unpublished"))),Pt(f)}catch(E){E instanceof A||at(E,{flow:`outfit-${S}`}),N.error(e(E instanceof A?dt(E.code):"outfits.errors.generic"))}finally{j(null),c(null)}}}return t.jsxs(Wt,{"data-testid":"outfit-studio-list",children:[t.jsxs(Ot,{children:[t.jsx(At,{children:e("outfits.studio.myOutfits")}),t.jsx(x,{as:F,to:"/outfits/new",variant:"white","data-testid":"outfit-studio-new",children:e("outfits.studio.new")})]}),o?t.jsx(St,{"aria-busy":"true",children:Array.from({length:3},(u,S)=>t.jsx(Be,{className:"skeleton","aria-hidden":!0},S))}):R?t.jsxs(O,{children:[t.jsx(U,{message:e("outfits.errors.generic")}),t.jsx(x,{variant:"white",onClick:()=>void T(),children:e("outfits.detail.retry")})]}):b.length===0?t.jsx(w,{children:e("outfits.studio.empty")}):t.jsx(St,{children:b.map(u=>t.jsxs(He,{"data-testid":"outfit-studio-row","data-published":u.published||void 0,children:[t.jsx(Ci,{outfit:u}),t.jsxs(_e,{children:[t.jsx(Ke,{children:u.name||e("outfits.studio.untitled")}),t.jsxs(Ge,{children:[t.jsx(Ft,{"data-state":u.published?"published":"draft",children:u.published?e("outfits.studio.publishedState"):e("outfits.studio.draft")}),e("outfits.card.items",{count:u.items.length})]})]}),t.jsxs(qe,{children:[u.published?t.jsx(x,{as:F,to:`/items/outfits/${u.id}`,variant:"ghost",size:"sm",children:e("outfits.studio.view")}):null,t.jsx(x,{as:F,to:`/outfits/${u.id}/edit`,variant:"outline",size:"sm","data-testid":"outfit-studio-edit",children:e("outfits.studio.edit")}),t.jsx(Qe,{type:"button","data-testid":"outfit-studio-delete","aria-label":e("outfits.studio.confirmDelete"),disabled:y===u.id,onClick:()=>c(u),children:t.jsx(_,{name:"trash",size:18})})]})]},u.id))}),h?t.jsxs(Ve,{role:"dialog","aria-modal":"true","aria-label":e("outfits.studio.deleteTitle"),"data-testid":"outfit-studio-confirm",children:[t.jsx(Xe,{onClick:()=>c(null)}),t.jsxs(Ye,{children:[t.jsx(Je,{children:e("outfits.studio.deleteTitle")}),t.jsx("p",{className:"muted",children:e("outfits.studio.deleteBody")}),t.jsxs(Ze,{children:[h.published?t.jsx(x,{variant:"purple","data-testid":"outfit-studio-confirm-unpublish",disabled:y===h.id,onClick:()=>void C(h,"unpublish"),children:e("outfits.studio.unpublish")}):null,t.jsx(x,{variant:h.published?"outline":"purple","data-testid":"outfit-studio-confirm-delete",disabled:y===h.id,onClick:()=>void C(h,"delete"),children:e("outfits.studio.confirmDelete")}),t.jsx(x,{variant:"ghost",onClick:()=>c(null),children:e("outfits.studio.cancel")})]})]})]}):null]})}const Tt=["image/png","image/jpeg","image/webp"];function Li(){return{id:crypto.randomUUID(),name:"",thumbnailHash:"",items:[],bodyShape:"unisex",gradientFrom:nt.from,gradientTo:nt.to,published:!1}}function lt(n){return{id:n.id,name:n.name,thumbnailHash:n.thumbnailHash,items:n.items,bodyShape:n.bodyShape,gradientFrom:n.gradientFrom,gradientTo:n.gradientTo,published:n.published}}function Ri(n){try{const f=sessionStorage.getItem(n);return f?JSON.parse(f):null}catch{return null}}function zi({outfitId:n}){const f=n===null,h=`outfit-draft:${n??"new"}`,c=Y(i=>i.session),y=Et(),j=Zt(),[b]=d.useState(()=>Ri(h)),[o,R]=d.useState(()=>b??(f?Li():null)),[T,C]=d.useState(!!b),{data:u,isLoading:S,isError:E,refetch:Z}=Lt({queryKey:["outfit",n,!0],enabled:!f&&!!c,staleTime:0,queryFn:()=>je(n,c.identity)});d.useEffect(()=>{u&&R(i=>i??lt(u))},[u]);function k(i){R(r=>r&&{...r,...i}),C(!0)}d.useEffect(()=>{if(!(!o||!T))try{sessionStorage.setItem(h,JSON.stringify(o))}catch{}},[o,T,h]),d.useEffect(()=>{if(!T)return;const i=r=>r.preventDefault();return window.addEventListener("beforeunload",i),()=>window.removeEventListener("beforeunload",i)},[T]),d.useEffect(()=>()=>sessionStorage.removeItem(h),[h]);const g=se(o??void 0),K=d.useMemo(()=>new Set(((o==null?void 0:o.items)??[]).map(z)),[o]),B=i=>be((o==null?void 0:o.items)??[],i,g.byKey),l=i=>!!i.itemId&&B(i).length<=X;function v(i){!o||!l(i)||k({items:B(i)})}const[H,ct]=d.useState(null),L=d.useRef(null),tt=d.useRef(!0);d.useEffect(()=>(tt.current=!0,()=>{tt.current=!1}),[]);const[G,pt]=d.useState(!1),[Bt,q]=d.useState(null),[et,ft]=d.useState(""),[Ht,ht]=d.useState(null),[I,Mt]=d.useState();d.useEffect(()=>()=>{L.current&&URL.revokeObjectURL(L.current)},[]);function xt(){const i=me(et);if(!i){ht(e("outfits.studio.importError"));return}ht(null),ft(""),Mt(i.colors),k({items:i.items,...i.bodyShape?{bodyShape:i.bodyShape}:{}}),N.success(e("outfits.studio.importSuccess",{count:i.items.length}))}async function Ut(i){if(!i||!c)return;if(q(null),!Tt.includes(i.type)){q(e("outfits.errors.unsupportedType"));return}if(i.size>he){q(e("outfits.errors.tooLarge"));return}L.current&&URL.revokeObjectURL(L.current);const r=URL.createObjectURL(i);L.current=r,ct(r),pt(!0);try{const p=await xe(i,c.identity);k({thumbnailHash:p})}catch(p){p instanceof A||at(p,{flow:"outfit-thumbnail"}),q(e(p instanceof A?dt(p.code):"outfits.errors.generic")),L.current&&(URL.revokeObjectURL(L.current),L.current=null),ct(null)}finally{pt(!1)}}const[M,mt]=d.useState(!1),[_t,gt]=d.useState(null),it=!!o&&o.name.trim().length>0&&o.name.length<=60,Kt=!!o&&V(o.gradientFrom)&&V(o.gradientTo),bt=!!o&&o.items.some(i=>{const r=g.byKey.get(z(i));return!r||oe(r)}),yt=!!o&&it&&!!o.thumbnailHash&&Kt&&bt&&o.items.length>=re&&o.items.length<=X;async function st(i){if(!(!c||!o||M)){mt(!0),gt(null);try{const r=await zt({...o,published:i},c.identity,f?"create":"update");if(!tt.current)return;sessionStorage.removeItem(h),R(lt(r)),C(!1),Pt(y),i&&!o.published?(ge("Shop Outfit Published",{outfit_id:r.id,item_count:r.items.length}),N.success(e("outfits.studio.publishedToast"))):N.success(e("outfits.studio.saved")),f&&(y.setQueryData(["outfit",r.id,!0],r),j(`/outfits/${r.id}/edit`,{replace:!0}))}catch(r){r instanceof A||at(r,{flow:"outfit-save"}),gt(e(r instanceof A?dt(r.code):"outfits.errors.generic"))}finally{mt(!1)}}}const Q=d.useMemo(()=>((o==null?void 0:o.items)??[]).map(i=>g.byKey.get(z(i))).filter(i=>!!i),[o,g.byKey]),jt=d.useMemo(()=>ne(Q),[Q]),Gt=d.useMemo(()=>{const i=ae(Q);return i!=null&&i.itemId?z({contractAddress:i.contractAddress,itemId:i.itemId}):null},[Q]),qt=(o==null?void 0:o.bodyShape)==="female"?de:(o==null?void 0:o.bodyShape)==="male"?le:void 0;if(!c)return null;if(!o)return E?t.jsxs(O,{children:[t.jsx(U,{message:e("outfits.errors.generic")}),t.jsx(x,{variant:"white",onClick:()=>void Z(),children:e("outfits.detail.retry")})]}):!S&&u===null?t.jsxs(O,{"data-testid":"outfit-studio-missing",children:[t.jsx(w,{children:e("outfits.errors.notFound")}),t.jsx(x,{as:F,to:"/outfits/manage",variant:"white",children:e("outfits.studio.myOutfits")})]}):t.jsx(O,{"aria-busy":"true",children:t.jsx("span",{className:"spinner","aria-hidden":!0})});const vt=H??Rt(o.thumbnailHash),Qt={...o,authorAddress:(c==null?void 0:c.address)??"",createdAt:0,updatedAt:0},Vt=o.items.reduce((i,r)=>{var p;return i+(((p=g.byKey.get(z(r)))==null?void 0:p.priceCredits)??0)},0);return t.jsxs(Wt,{"data-testid":"outfit-studio-editor",children:[t.jsxs(Ot,{children:[t.jsx(De,{to:"/outfits/manage","aria-label":e("outfits.studio.myOutfits"),"data-testid":"outfit-studio-back",children:t.jsx(_,{name:"arrow-left",size:18})}),t.jsx(At,{children:f?e("outfits.studio.new"):e("outfits.studio.editTitle")}),t.jsx(Ft,{"data-state":o.published?"published":"draft",children:o.published?e("outfits.studio.publishedState"):e("outfits.studio.draft")})]}),t.jsxs(ti,{children:[t.jsxs(ei,{children:[t.jsxs(si,{"data-testid":"outfit-studio-preview",style:{background:ue(o)},children:[t.jsx($e,{id:"outfit-studio-preview-frame",profile:"default",bodyShape:qt,urns:jt,skin:I==null?void 0:I.skin,hair:I==null?void 0:I.hair,eyes:I==null?void 0:I.eyes,enabled:!g.isLoading}),jt.length===0&&!g.isLoading?t.jsx(oi,{children:e("outfits.studio.previewEmpty")}):null]}),t.jsxs(P,{children:[t.jsx(W,{as:"span",children:e("outfits.studio.bodyShape")}),t.jsx(ri,{role:"group","aria-label":e("outfits.studio.bodyShape"),children:["unisex","male","female"].map(i=>t.jsx(ni,{type:"button","data-selected":o.bodyShape===i||void 0,onClick:()=>k({bodyShape:i}),children:e(`outfits.studio.shape.${i}`)},i))})]}),t.jsxs(P,{children:[t.jsx(W,{as:"span",children:e("outfits.studio.gradient")}),t.jsx(di,{children:["gradientFrom","gradientTo"].map(i=>t.jsxs(li,{children:[t.jsx(ui,{type:"color",value:V(o[i])?o[i]:nt.from,"aria-label":e(i==="gradientFrom"?"outfits.studio.gradientTop":"outfits.studio.gradientBottom"),"data-testid":i==="gradientFrom"?"outfit-studio-gradient-from":"outfit-studio-gradient-to",onChange:r=>k({[i]:r.target.value.toLowerCase()})}),t.jsxs(ci,{children:[t.jsx("span",{children:e(i==="gradientFrom"?"outfits.studio.gradientTop":"outfits.studio.gradientBottom")}),t.jsx(pi,{value:o[i],maxLength:7,spellCheck:!1,placeholder:"#000000","aria-label":e(i==="gradientFrom"?"outfits.studio.gradientTopHex":"outfits.studio.gradientBottomHex"),"data-invalid":!V(o[i])||void 0,onChange:r=>{const p=r.target.value.trim().toLowerCase();k({[i]:p.startsWith("#")||p===""?p:`#${p}`})}})]})]},i))}),t.jsx(w,{children:e("outfits.studio.gradientHint")})]}),t.jsxs(P,{children:[t.jsx(W,{as:"span",children:e("outfits.studio.thumbnail")}),vt?t.jsx(ai,{"data-busy":G||void 0,children:t.jsx("img",{src:vt,alt:""})}):null,t.jsxs(hi,{as:"label",variant:"outline",size:"sm","data-busy":G||void 0,children:[G?e("outfits.studio.uploading"):e("outfits.studio.upload"),t.jsx("input",{type:"file",accept:Tt.join(","),hidden:!0,disabled:G,onChange:i=>{var r;return void Ut((r=i.target.files)==null?void 0:r[0])},"data-testid":"outfit-studio-thumb-input"})]}),t.jsx(w,{children:e("outfits.studio.thumbnailHint")}),t.jsx(U,{message:Bt,testId:"outfit-studio-thumb-error"})]}),t.jsxs(P,{children:[t.jsx(W,{as:"span",children:e("outfits.studio.cardPreview")}),t.jsx(fi,{"data-testid":"outfit-studio-card-preview",onClickCapture:i=>{i.preventDefault(),i.stopPropagation()},children:t.jsx(ce,{outfit:Qt,resolution:g})})]})]}),t.jsxs(ii,{children:[t.jsxs(P,{children:[t.jsx(W,{htmlFor:"outfit-import",children:e("outfits.studio.import")}),t.jsxs(xi,{children:[t.jsx(It,{id:"outfit-import",value:et,spellCheck:!1,placeholder:e("outfits.studio.importPlaceholder"),onChange:i=>ft(i.target.value),onKeyDown:i=>{i.key==="Enter"&&xt()},"data-testid":"outfit-studio-import"}),t.jsx(x,{variant:"outline",size:"sm",onClick:xt,disabled:et.trim()==="","data-testid":"outfit-studio-import-apply",children:e("outfits.studio.importApply")})]}),t.jsx(w,{children:e("outfits.studio.importHint")}),t.jsx(U,{message:Ht,testId:"outfit-studio-import-error"})]}),t.jsxs(P,{children:[t.jsx(W,{htmlFor:"outfit-name",children:e("outfits.studio.name")}),t.jsx(It,{id:"outfit-name",value:o.name,maxLength:60,placeholder:e("outfits.studio.namePlaceholder"),onChange:i=>k({name:i.target.value}),"data-testid":"outfit-studio-name"})]}),t.jsxs(P,{children:[t.jsxs(W,{as:"span",children:[e("outfits.studio.items")," (",o.items.length,"/",X,")"]}),o.items.length===0?t.jsx(w,{children:e("outfits.studio.noItems")}):t.jsx(mi,{children:o.items.map(i=>{const r=z(i),p=g.byKey.get(r);return t.jsxs(gi,{"data-testid":"outfit-studio-selected","data-missing":!p||void 0,children:[p?t.jsx(bi,{src:p.thumbnail,alt:""}):t.jsx(yi,{className:g.isLoading?"skeleton":void 0,"aria-hidden":!0}),t.jsx(ji,{className:p?void 0:"muted",children:p?p.name:g.isLoading?t.jsx(ke,{className:"skeleton",width:96,"aria-hidden":!0}):e("outfits.card.unavailable")}),r===Gt?t.jsx(vi,{"data-testid":"outfit-studio-plays-in-preview",children:e("outfits.studio.playsInPreview")}):null,p?t.jsxs(wi,{children:[t.jsx(ot,{size:12}),t.jsx(rt,{credits:p.priceCredits})]}):null,t.jsx(Si,{type:"button","aria-label":e("outfits.studio.remove"),title:e("outfits.studio.remove"),onClick:()=>k({items:o.items.filter(Xt=>z(Xt)!==r)}),children:t.jsx(_,{name:"trash",size:16})})]},r)})}),o.items.length>0?t.jsxs($i,{"data-testid":"outfit-studio-total",children:[t.jsx("span",{children:e("outfits.detail.totalPrice")}),t.jsxs(ki,{children:[t.jsx(ot,{size:14}),t.jsx(rt,{credits:Vt})]})]}):null,o.items.length>=X?t.jsx(w,{children:e("outfits.studio.maxItems")}):null]}),t.jsx(Fe,{selectedKeys:K,onPick:v,canPick:l})]})]}),t.jsxs(Ii,{"data-testid":"outfit-studio-savebar",children:[t.jsx(U,{message:_t,testId:"outfit-studio-save-error"}),it?!yt&&!o.published?t.jsx(w,{"data-testid":"outfit-studio-publish-hint",children:!bt&&o.items.length>0?e("outfits.studio.needsWearable"):e("outfits.errors.notPublishable")}):null:t.jsx(w,{children:e("outfits.studio.needName")}),t.jsxs(Ti,{children:[t.jsx(x,{variant:"outline","data-testid":"outfit-studio-save",disabled:M||!it,onClick:()=>void st(o.published),children:M?e("outfits.studio.saving"):e("outfits.studio.saveDraft")}),o.published?t.jsx(x,{variant:"white","data-testid":"outfit-studio-unpublish",disabled:M,onClick:()=>void st(!1),children:e("outfits.studio.unpublish")}):t.jsx(x,{variant:"white","data-testid":"outfit-studio-publish",disabled:M||!yt,onClick:()=>void st(!0),children:e("outfits.studio.publish")})]})]})]})}export{Ki as OutfitStudio,Ki as default};
|
|
557
|
+
//# sourceMappingURL=OutfitStudio-DNQsP0eA.js.map
|