@dcl/shop 0.1.1-30909439604.commit-4721d83 → 0.1.1-30910936579.commit-bb58bbb
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-CiQm3fPZ.js → Activity-BFxuJO2y.js} +11 -11
- package/_assets/{AnimatedBackground-BFRTkuDo.js → AnimatedBackground-VQDTmdjQ.js} +2 -2
- package/_assets/{Assets--cn5UbRN.js → Assets-BikrL8IX.js} +3 -3
- package/_assets/{Assets.styles-CkJWzjdk.js → Assets.styles-Cxk14RF3.js} +1 -1
- package/_assets/{Authorizations-Cqqxn9wD.js → Authorizations-BtKTUS-9.js} +1 -1
- package/_assets/{Cart-ByLo0Q5U.js → Cart-BTqp0FRv.js} +11 -11
- package/_assets/{CircularProgress-Cv24wKWu.js → CircularProgress-17SCzKSq.js} +5 -5
- package/_assets/{Collection-DbZpN_eH.js → Collection-CYIm3Htv.js} +7 -7
- package/_assets/{CollectionCarousel-DKVvizGs.js → CollectionCarousel-C0LgFQAu.js} +1 -1
- package/_assets/{ConstantsUtil-CNJ3pGKv.js → ConstantsUtil-Di3dRDAF.js} +1 -1
- package/_assets/{ContentClient-BJFWm8Bs.js → ContentClient-Bv-dXg1a.js} +1 -1
- package/_assets/{Creator-CtdwyJXl.js → Creator-DVEvwEf2.js} +32 -32
- package/_assets/{DeploymentBuilder-CXBC22K0.js → DeploymentBuilder-DbR23a3M.js} +1 -1
- package/_assets/{ErrorNotice-51eOicue.js → ErrorNotice-D6-7YD_C.js} +1 -1
- package/_assets/{ExchangeController--vn2md5b.js → ExchangeController-DjKSc6Rd.js} +1 -1
- package/_assets/{GetCredits-CnE9Mkj3.js → GetCredits-B3XWTumM.js} +9 -9
- package/_assets/{HelpersUtil-Dg90boC1.js → HelpersUtil-iIr5k8S3.js} +1 -1
- package/_assets/{ImportListings-BxeqcxAE.js → ImportListings-ZrRXROSR.js} +21 -21
- package/_assets/{ItemDetail-CqkeMLxu.js → ItemDetail-KjO5zo9p.js} +326 -491
- package/_assets/ItemPreview.styles-Cb0L-oUy.js +166 -0
- package/_assets/LoadMore-CUa0BsTv.js +7 -0
- package/_assets/ManaPricingBanner.styles-D8qXS7kM.js +74 -0
- package/_assets/{MenuList-D4kLbIwO.js → MenuList-BrAB8iKy.js} +2 -2
- package/_assets/{MyAssets-v3gryjCk.js → MyAssets-BOrcLKie.js} +2 -2
- package/_assets/{MyFavorites-Bg2hc3VG.js → MyFavorites-D9J7HO-j.js} +3 -3
- package/_assets/{NetworkUtil-Dh3JWXso.js → NetworkUtil-EoWQDMpU.js} +1 -1
- package/_assets/{NotFound-R9sTwMQk.js → NotFound-DOxwZxko.js} +1 -1
- package/_assets/NotificationsBell-DRP3FzbO.js +34 -0
- package/_assets/OutfitDetail-C5eyGpEA.js +357 -0
- package/_assets/OutfitPreview-BL8cCtEn.js +6 -0
- package/_assets/OutfitStudio-D_CB2QVA.js +500 -0
- package/_assets/{StoreSettings-GYoZCBBR.js → StoreSettings-B6o_W0eW.js} +1 -1
- package/_assets/{Success-CGQGJeM-.js → Success-CXS2Dcqd.js} +5 -5
- package/_assets/{SwapController-BcfprLwB.js → SwapController-B4ZfPAwx.js} +1 -1
- package/_assets/{Tooltip-CoMCVLgL.js → Tooltip-bl4-JEoI.js} +1 -1
- package/_assets/{TradeService-Be5Jm26-.js → TradeService-DDRO-auD.js} +1 -1
- package/_assets/{W3MFrameProviderSingleton-BLAdE798.js → W3MFrameProviderSingleton-CNMm9yRj.js} +3 -3
- package/_assets/{WebCryptoP256-B2g3GckQ.js → WebCryptoP256-B6pqCsYE.js} +1 -1
- package/_assets/{authorizations-FkFZVBeE.js → authorizations-CYYNI-9S.js} +1 -1
- package/_assets/{basic-DEelCa7C.js → basic-C44jT8B4.js} +1 -1
- package/_assets/{biconomy-BuAmKMqp.js → biconomy-eZih2UZJ.js} +1 -1
- package/_assets/browseLayout.styles-CrLB3Lke.js +91 -0
- package/_assets/{browser-CMge1DAk.js → browser-CqsLPmeb.js} +1 -1
- package/_assets/{browser-ponyfill-DdemUjDS.js → browser-ponyfill-I5CKtKME.js} +1 -1
- package/_assets/{builder-Z4iUHEpn.js → builder-WW8inl03.js} +1 -1
- package/_assets/{buy-DiLzTHFT.js → buy-D9SdPT0I.js} +1 -1
- package/_assets/{buy-gasless-Cn4_YLUa.js → buy-gasless-ByVYfkrv.js} +1 -1
- package/_assets/{categories-Byz019bF.js → categories-koDpxIGQ.js} +3 -3
- package/_assets/{ccip-DUqe0wPP.js → ccip-BpZ0kBt9.js} +1 -1
- package/_assets/{ccip-CCZIckpG.js → ccip-DecJozf8.js} +1 -1
- package/_assets/{chains-DwiEm2Ny.js → chains-DPlhC0Sw.js} +1 -1
- package/_assets/{clsx-sy6nSRXN.js → clsx-_vaSICRo.js} +2 -2
- package/_assets/{common-ChK99Sbg.js → common-CNwVQ4p9.js} +1 -1
- package/_assets/{controller-D2U901D4.js → controller-CiF4NSKd.js} +2 -2
- package/_assets/{core-BqndrHwC.js → core-DH1NTGuy.js} +4 -4
- package/_assets/{createSvgIcon-nAlfqqgf.js → createSvgIcon-CUzS88Su.js} +3 -3
- package/_assets/{custom-DJvYgxJy.js → custom-CuL2B_VD.js} +1 -1
- package/_assets/{data-capture-CLOU8jih.js → data-capture-BbHnyf8W.js} +1 -1
- package/_assets/{dcl-schemas-BICTSpB5.js → dcl-schemas-Dr9BTjb7.js} +1 -1
- package/_assets/{decimals-C49MnWnC.js → decimals-B3pg7hp8.js} +1 -1
- package/_assets/decimals-BpjIyOut.js +1 -0
- package/_assets/{detectExtension-Bs6N_T7E.js → detectExtension-DEjVJeUh.js} +1 -1
- package/_assets/disposePreview-DIA1G1eQ.js +1 -0
- package/_assets/{email-BxF_EMmd.js → email-D8w7eAFp.js} +1 -1
- package/_assets/{embedded-wallet-6IYwV5B_.js → embedded-wallet-DGxnQp0J.js} +1 -1
- package/_assets/emotion-styled.browser.esm-COxDrE1C.js +1 -0
- package/_assets/{engine-CDTFOGA6.js → engine-B5M1X4Zk.js} +1 -1
- package/_assets/{errors-sJnX14Ki.js → errors-boW7-tfx.js} +1 -1
- package/_assets/estimate-l1-fee-Zly2VYMS.js +1 -0
- package/_assets/eth_estimateGas-BmR_JMy9.js +1 -0
- package/_assets/{eth_getStorageAt-g-V8ByC9.js → eth_getStorageAt-BUYdIAYw.js} +1 -1
- package/_assets/eth_getTransactionCount-riJ8hG2K.js +1 -0
- package/_assets/{ethereum-DdnrEX6r.js → ethereum-CliiIOgc.js} +1 -1
- package/_assets/{ethers-rFeF6PNV.js → ethers-CtNGBird.js} +1 -1
- package/_assets/{execute-D8YtDqpj.js → execute-BTxBSnXr.js} +2 -2
- package/_assets/{extractIPFS-DiQ3ktqZ.js → extractIPFS-CUaS-9Rs.js} +1 -1
- package/_assets/{features-B8MZg8q9.js → features-DqfGz-fi.js} +1 -1
- package/_assets/{fetchTokenMetadata-Cn6UkNbd.js → fetchTokenMetadata-CGRbolN0.js} +2 -2
- package/_assets/{field.styles-o0yoMx97.js → field.styles-icpuqiLd.js} +1 -1
- package/_assets/{fortmatic-ZrVXe0if.js → fortmatic-EI5cNLV0.js} +1 -1
- package/_assets/{get-bytecode-B5xpAv7a.js → get-bytecode-knYex1Eu.js} +1 -1
- package/_assets/get-ecosystem-wallet-info-zJw2ag43.js +1 -0
- package/_assets/{getBalance-pdi104jy.js → getBalance-CykzuUJG.js} +2 -2
- package/_assets/{getInstalledModules-vRyVzBkY.js → getInstalledModules-tywfzr6y.js} +1 -1
- package/_assets/{getNFT-ChdTpPL_.js → getNFT-DIQvefS-.js} +2 -2
- package/_assets/getNFT-DvHzzPp2.js +1 -0
- package/_assets/{getThemeProps-CFDZlxj4.js → getThemeProps-B3ytv_sA.js} +1 -1
- package/_assets/{grid.styles-DVBPQuRz.js → grid.styles-DY-TUpQG.js} +1 -1
- package/_assets/{hashTypedData-DP9JOjjX.js → hashTypedData-KiRlt_KE.js} +1 -1
- package/_assets/{hashTypedData-2Z2_gEL6.js → hashTypedData-hmAiNCzj.js} +1 -1
- package/_assets/{in-app-CRH3jQep.js → in-app-DwX-TQ4J.js} +1 -1
- package/_assets/{in-app-wallet-calls-Dp9TxCgN.js → in-app-wallet-calls-CeJWzRpW.js} +1 -1
- package/_assets/{index-DaBMwl5V.js → index-0hJ-EeUf.js} +1 -1
- package/_assets/{index-BaUli81x.js → index-2HjgvGE0.js} +1 -1
- package/_assets/{index-Det24uTr.js → index-5hmoUi31.js} +3 -3
- package/_assets/{index-ClSZl7Vh.js → index-707cZyU3.js} +1 -1
- package/_assets/{index-CwLvQ9MJ.js → index-8_Ez2ez1.js} +1 -1
- package/_assets/{index-Csd0nRMS.js → index-8kcK18dY.js} +2 -2
- package/_assets/{index-BRGDK96N.js → index-B8qNqBrK.js} +1 -1
- package/_assets/{index-Dhe2yejG.js → index-BFGZVce1.js} +1 -1
- package/_assets/{index-5o0_4PJn.js → index-BGDkYZ9X.js} +1 -1
- package/_assets/{index-klYUwFTu.js → index-BKiicFqW.js} +1 -1
- package/_assets/{index-B1YUW9FQ.js → index-BZDHc6sA.js} +2 -2
- package/_assets/{index-BWXsvDqD.js → index-BbJIcREt.js} +1 -1
- package/_assets/{index-DDqqXhJL.js → index-BeZANkpU.js} +3 -3
- package/_assets/index-Bg-QKz9Z.js +4 -0
- package/_assets/{index-D29EUWHC.js → index-BxIPGFn3.js} +1 -1
- package/_assets/{index-PfgUlDb3.js → index-BznO72_i.js} +1 -1
- package/_assets/{index-Dz7l4WRb.js → index-CJDQqTIn.js} +1 -1
- package/_assets/{index-BGPVOBHa.js → index-CNepofQh.js} +1 -1
- package/_assets/{index-BZWNTqaV.js → index-CPEUTeuP.js} +1 -1
- package/_assets/{index-jDLQZQqn.js → index-CSlo2BeJ.js} +1 -1
- package/_assets/{index-CJ03r2wd.js → index-CSsIBkjj.js} +1 -1
- package/_assets/{index-DGuNIM9a.js → index-CThPTHFI.js} +1 -1
- package/_assets/{index-6_pDklk8.js → index-CTpdUOYC.js} +1 -1
- package/_assets/{index-Bu5mtkuE.js → index-CUAlYj50.js} +1 -1
- package/_assets/{index-B8_IX_3e.js → index-CXnd9PaX.js} +1 -1
- package/_assets/index-CYA8v3ru.js +2 -0
- package/_assets/{index-BLpG8mks.js → index-C_J3Tg-X.js} +1 -1
- package/_assets/{index-DHFAjoyI.js → index-C_k6QnYS.js} +1 -1
- package/_assets/index-CcbRdBPP.js +1 -0
- package/_assets/{index-DkdxS38k.js → index-CjpWKs8Q.js} +1 -1
- package/_assets/{index-DquJiMJI.js → index-ClhaoFwr.js} +1 -1
- package/_assets/{index-Duy_bLYT.js → index-CljY6PrF.js} +1 -1
- package/_assets/{index-CY1VUN_S.js → index-CrudFoei.js} +1 -1
- package/_assets/{index-DXe1QzPN.js → index-Cz8ctv2n.js} +1 -1
- package/_assets/{index-D3OKsJLK.js → index-D5pWb9fn.js} +1 -1
- package/_assets/{index-BUbZ4ieP.js → index-DG6oakSS.js} +1 -1
- package/_assets/{index-CCoJpS6M.js → index-DI-3MKLG.js} +1 -1
- package/_assets/{index-D0JhTMR7.js → index-DM4q9M_E.js} +1 -1
- package/_assets/{index-DkmumT6q.js → index-DMpkdgJ2.js} +1 -1
- package/_assets/{index-DitauyL5.js → index-DQRRTksr.js} +1 -1
- package/_assets/{index-Rjrwrr8k.js → index-DQvmiIO9.js} +1 -1
- package/_assets/{index-hBIDXrfA.js → index-DRYUJJ5d.js} +1 -1
- package/_assets/{index-C4AfvPtb.js → index-Db8XAM6H.js} +1 -1
- package/_assets/{index-DbyPzhzJ.js → index-DdyXqr-l.js} +1 -1
- package/_assets/{index-BszwI7-F.js → index-DftqIOqz.js} +1 -1
- package/_assets/{index-BtkxBg3h.js → index-DhNBmPpe.js} +2 -2
- package/_assets/{index-D9Dv7ZRq.js → index-DrLsGQFY.js} +1 -1
- package/_assets/index-DubLtINT.js +3260 -0
- package/_assets/{index-CsEaqK5K.js → index-L36hhrTC.js} +1 -1
- package/_assets/{index-efx_UGwj.js → index-OzGvz8K0.js} +3 -3
- package/_assets/{index-C-E_Jk-6.js → index-PWgePIOy.js} +1 -1
- package/_assets/index-RLaXeWRK.js +1 -0
- package/_assets/{index-CDCj0Qak.js → index-_H6tRTcn.js} +2 -2
- package/_assets/{index-CyyhNrl2.js → index-bMsIU7Dw.js} +1 -1
- package/_assets/{index-72R1sLRe.js → index-dG4ogQCm.js} +1 -1
- package/_assets/{index-CYEynknO.js → index-kUOBQ2KK.js} +1 -1
- package/_assets/{index-UOQDoXBN.js → index-kibPayQR.js} +1 -1
- package/_assets/{index-BtLL7F-4.js → index-l92NuJVf.js} +1 -1
- package/_assets/{index-BkP6Akod.js → index-lSNqSHBI.js} +1 -1
- package/_assets/{index-CZQ-Avg8.js → index-ocDIHs1j.js} +1 -1
- package/_assets/{index-BHMMC_4O.js → index-qsorFlMF.js} +1 -1
- package/_assets/{index-ThwwXj7K.js → index-uNbynO8A.js} +1 -1
- package/_assets/{index-CBrp3dUZ.js → index-zgoTY9Mb.js} +1 -1
- package/_assets/{index.es-DWEmsLX5.js → index.es-C_UXSWig.js} +4 -4
- package/_assets/{index.es-gS9A1DPX.js → index.es-DGFKmGxx.js} +1 -1
- package/_assets/{index.es-CWcx_MPC.js → index.es-DQ3AciL_.js} +1 -1
- package/_assets/{index.es-DGdQax5Y.js → index.es-zHc4Qg3k.js} +1 -1
- package/_assets/{linkAccount-DktwtO-V.js → linkAccount-BodpWbRq.js} +1 -1
- package/_assets/{localBatchGatewayRequest-DoA6w-sg.js → localBatchGatewayRequest-CCfsw-I3.js} +1 -1
- package/_assets/{mana-convert-8bdglmK2.js → mana-convert-C1xSiqqu.js} +1 -1
- package/_assets/{mana-rate-pg062I50.js → mana-rate-BpHfe_iw.js} +1 -1
- package/_assets/{native-DUHK6GYV.js → native-DfrS-44q.js} +1 -1
- package/_assets/{networks-CS3wn-YQ.js → networks-BV-X4qTe.js} +1 -1
- package/_assets/{onramp-_fU1CUPx.js → onramp-B_uKFllv.js} +1 -1
- package/_assets/{openzeppelin-Byo7VjiL.js → openzeppelin-Cls--iTO.js} +1 -1
- package/_assets/{ownerOf-9FPRCliB.js → ownerOf-Dw2VC0ue.js} +1 -1
- package/_assets/parseNft-Bnklm1HN.js +2 -0
- package/_assets/{parseSignature-7zbxP3S5.js → parseSignature-B03xBRZR.js} +3 -3
- package/_assets/{parseSignature-B4bdR_8K.js → parseSignature-CGE07wnH.js} +1 -1
- package/_assets/{passkeys--fWD2NEw.js → passkeys-uRKe3IGl.js} +1 -1
- package/_assets/{pay-with-exchange-Dk9Xcd3H.js → pay-with-exchange-ClC7J5eZ.js} +1 -1
- package/_assets/{prepare-contract-call-CUP20AbD.js → prepare-contract-call-BnXbUbQT.js} +1 -1
- package/_assets/{qr-overlay-DkdnRl_0.js → qr-overlay-B49rbQOU.js} +3 -3
- package/_assets/{react-IQWs2nb4.js → react-DehiWSvs.js} +1 -1
- package/_assets/{receive-C29mXrSs.js → receive-D5yoBmvW.js} +1 -1
- package/_assets/{resolveImplementation-Brjkq9B3.js → resolveImplementation-zUXnrfgu.js} +1 -1
- package/_assets/{rpc-Oikc4qrs.js → rpc-D5nQZP6e.js} +1 -1
- package/_assets/{secp256k1-WT42JaIN.js → secp256k1-C--Hpe6V.js} +1 -1
- package/_assets/{secp256k1-v_OYVKpT.js → secp256k1-CeWXTOjm.js} +1 -1
- package/_assets/{secp256k1-CUWzbXuP.js → secp256k1-dQSlTzqe.js} +1 -1
- package/_assets/{send-CSdyFqol.js → send-DnOBdj_w.js} +1 -1
- package/_assets/{send-batch-transaction-BlExRlz8.js → send-batch-transaction-DcYpxyD8.js} +1 -1
- package/_assets/{send-eip712-transaction-DyfTHBv1.js → send-eip712-transaction-DEyxEhYn.js} +2 -2
- package/_assets/send-gasless-transaction-B0KoDSZI.js +2 -0
- package/_assets/{send-transaction-kmfCvyrI.js → send-transaction-DLrp33Ay.js} +2 -2
- package/_assets/{sendMetaTransaction-BA-2MGdZ.js → sendMetaTransaction-CgzqVu54.js} +1 -1
- package/_assets/{sendRawTransaction-CTjGjbSv.js → sendRawTransaction-B8yZxOzl.js} +3 -3
- package/_assets/{sentry-DvOx8Rfb.js → sentry-973sfbO9.js} +1 -1
- package/_assets/{serializeTransaction-BmaoI9rx.js → serializeTransaction-BoUYQ-jQ.js} +1 -1
- package/_assets/{session-proposal-nGkLb8fO.js → session-proposal-DMzEaWkq.js} +1 -1
- package/_assets/{session-request-QSI6Jos8.js → session-request-CtZEDQ6h.js} +2 -2
- package/_assets/{sha256-Dx4Jqb1P.js → sha256--PXCNFKm.js} +1 -1
- package/_assets/{signing-VekuwpLK.js → signing-DTUoW6Aq.js} +3 -3
- package/_assets/{socials-BkZgS9yz.js → socials-B0V1ulX-.js} +1 -1
- package/_assets/{swaps-CAZTnQ-D.js → swaps-CIG58tbY.js} +1 -1
- package/_assets/{thirdweb-Xk7WShny.js → thirdweb-CFdrUc0X.js} +3 -3
- package/_assets/{to-serializable-transaction-C5BoASVF.js → to-serializable-transaction-BzLjLX_S.js} +2 -2
- package/_assets/{totalSupply-CLQexq9U.js → totalSupply-DEpB2B-R.js} +1 -1
- package/_assets/{trade-encoding-DgV-A2zO.js → trade-encoding-BJEZpBsE.js} +1 -1
- package/_assets/{transaction-ToPxlTkC.js → transaction-BRB0QRZP.js} +1 -1
- package/_assets/{transactionReceipt-BHGI1PBX.js → transactionReceipt-BaDMkEKJ.js} +1 -1
- package/_assets/{transactions-paKZZL-W.js → transactions-DbSW24RG.js} +1 -1
- package/_assets/useCreditPacks-B9dcdQRV.js +1 -0
- package/_assets/useInfiniteGrid-DY2zLmAX.js +1 -0
- package/_assets/useManaRate-GUe-CE9q.js +1 -0
- package/_assets/{useSecondarySales-3tEx5YvY.js → useSecondarySales-T5w4v68V.js} +1 -1
- package/_assets/{useStore-ByHpJuVH.js → useStore-Br1E1f__.js} +2 -2
- package/_assets/useTheme-CwpMDe-4.js +1 -0
- package/_assets/{utils-BgbaLlfC.js → utils-B9hEgCzc.js} +1 -1
- package/_assets/{verifyHash-uE8nq1-h.js → verifyHash-B4t13z9H.js} +1 -1
- package/_assets/{w3m-modal-BWkASM7Q.js → w3m-modal-BH1vdfAR.js} +1 -1
- package/_assets/{w3m-modal-CIhzAZkD.js → w3m-modal-BqfbNw0J.js} +1 -1
- package/_assets/{wait-for-tx-receipt-Ban9Kz9f.js → wait-for-tx-receipt-mlGWyLwH.js} +1 -1
- package/_assets/{wallets-COZ4xX__.js → wallets-Ci88s6wU.js} +5 -5
- package/_assets/{web-connector-gi_cmfjU.js → web-connector-8oIz3OFz.js} +3 -3
- package/_assets/{writeContract-MVlwq6Xg.js → writeContract-f90YYlnO.js} +1 -1
- package/_assets/{zora-sepolia-BOt0KLBF.js → zora-sepolia-Dv22rzxP.js} +1 -1
- package/_assets/{zoraTestnet-BcRH2RHD.js → zoraTestnet-IkEqWruQ.js} +1 -1
- package/index.html +11 -11
- package/package.json +2 -2
- package/_assets/LoadMore-BolkAKn7.js +0 -7
- package/_assets/ManaPricingBanner.styles-DKUacHFQ.js +0 -74
- package/_assets/NotificationsBell-BoefPrvQ.js +0 -34
- package/_assets/browseLayout.styles-6Bx0cPB_.js +0 -91
- package/_assets/decimals-DenLQ0L2.js +0 -1
- package/_assets/emotion-styled.browser.esm-9O-_UQ_M.js +0 -1
- package/_assets/estimate-l1-fee-B4XbNvFY.js +0 -1
- package/_assets/eth_estimateGas-DaegCW9w.js +0 -1
- package/_assets/eth_getTransactionCount-ChnmCar0.js +0 -1
- package/_assets/get-ecosystem-wallet-info-DyEERgSx.js +0 -1
- package/_assets/getNFT-JwHQ_s5F.js +0 -1
- package/_assets/index--coIj_2Q.js +0 -4
- package/_assets/index-B2O7rGJL.js +0 -1
- package/_assets/index-Bbgy14tN.js +0 -1
- package/_assets/index-BiIZh9R9.js +0 -2820
- package/_assets/index-XMkvXJnG.js +0 -2
- package/_assets/parseNft-f2SijHni.js +0 -2
- package/_assets/send-gasless-transaction-Daukbk69.js +0 -2
- package/_assets/useCreditPacks-CaE-vAPX.js +0 -1
- package/_assets/useInfiniteGrid-CeEt3Zid.js +0 -1
- package/_assets/useManaRate-D4_9UlI5.js +0 -1
- package/_assets/useTheme-xAwBEFWH.js +0 -1
|
@@ -0,0 +1,500 @@
|
|
|
1
|
+
import{r as u,j as t,L as O,u as qt,b as Gt,d as Wt}from"./react-DehiWSvs.js";import{s as o,t as st,I as U,aq as Qt,e,p as Y,B as m,a9 as vt,n as G,G as Vt,m as Jt,q as wt,u as $t,J as Xt,P as B,ar as K,as as q,W as Yt,S as Zt,V as te,N as St,X as ee,at as Z,au as ie,av as se,aw as oe,w as F,ax as kt,ay as Tt,az as R,l as tt,aA as et,aB as ae,aC as ne,aD as re,O as de,aE as le,aF as ue,a3 as ce}from"./index-DubLtINT.js";import{E as D}from"./ErrorNotice-D6-7YD_C.js";import{L as pe}from"./LoadMore-CUa0BsTv.js";import{u as fe}from"./useInfiniteGrid-DY2zLmAX.js";import{O as he}from"./OutfitPreview-BL8cCtEn.js";import"./sentry-973sfbO9.js";import"./dcl-schemas-Dr9BTjb7.js";import"./ethers-CtNGBird.js";import"./intl-CBcMB1D2.js";import"./disposePreview-DIA1G1eQ.js";const{colors:x,radius:ot,media:me}=st,xe=o.div`
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
gap: 12px;
|
|
5
|
+
`,ge=o.div`
|
|
6
|
+
display: flex;
|
|
7
|
+
align-items: center;
|
|
8
|
+
gap: 8px;
|
|
9
|
+
border: 1px solid ${x.lineStrong};
|
|
10
|
+
border-radius: ${ot.pill};
|
|
11
|
+
padding: 0 14px;
|
|
12
|
+
height: 44px;
|
|
13
|
+
|
|
14
|
+
input {
|
|
15
|
+
flex: 1;
|
|
16
|
+
min-width: 0;
|
|
17
|
+
border: 0;
|
|
18
|
+
outline: 0;
|
|
19
|
+
background: none;
|
|
20
|
+
font: inherit;
|
|
21
|
+
color: ${x.text};
|
|
22
|
+
}
|
|
23
|
+
`,xt=o.div`
|
|
24
|
+
display: grid;
|
|
25
|
+
grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
|
|
26
|
+
gap: 10px;
|
|
27
|
+
|
|
28
|
+
${me.maxWidth("mobile")} {
|
|
29
|
+
grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
|
|
30
|
+
}
|
|
31
|
+
`,be=o.span`
|
|
32
|
+
height: 190px;
|
|
33
|
+
border-radius: ${ot.card};
|
|
34
|
+
`,ye=o.button`
|
|
35
|
+
position: relative;
|
|
36
|
+
display: flex;
|
|
37
|
+
flex-direction: column;
|
|
38
|
+
gap: 6px;
|
|
39
|
+
padding: 8px;
|
|
40
|
+
background: ${x.bg};
|
|
41
|
+
border: 1px solid ${x.line};
|
|
42
|
+
border-radius: ${ot.card};
|
|
43
|
+
text-align: left;
|
|
44
|
+
font: inherit;
|
|
45
|
+
color: ${x.text};
|
|
46
|
+
cursor: pointer;
|
|
47
|
+
|
|
48
|
+
&:hover:not(:disabled) {
|
|
49
|
+
border-color: ${x.magenta};
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
&[data-selected] {
|
|
53
|
+
border-color: ${x.accent};
|
|
54
|
+
box-shadow: 0 0 0 1px ${x.accent};
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
&:disabled {
|
|
58
|
+
opacity: 0.5;
|
|
59
|
+
cursor: default;
|
|
60
|
+
}
|
|
61
|
+
`,je=o.img`
|
|
62
|
+
width: 100%;
|
|
63
|
+
aspect-ratio: 1;
|
|
64
|
+
object-fit: cover;
|
|
65
|
+
border-radius: 8px;
|
|
66
|
+
background: ${x.media};
|
|
67
|
+
`,ve=o.span`
|
|
68
|
+
font-size: 13px;
|
|
69
|
+
font-weight: 600;
|
|
70
|
+
white-space: nowrap;
|
|
71
|
+
overflow: hidden;
|
|
72
|
+
text-overflow: ellipsis;
|
|
73
|
+
`,we=o.span`
|
|
74
|
+
display: inline-flex;
|
|
75
|
+
align-items: center;
|
|
76
|
+
gap: 4px;
|
|
77
|
+
font-size: 12px;
|
|
78
|
+
color: ${x.muted};
|
|
79
|
+
`,$e=o(U)`
|
|
80
|
+
position: absolute;
|
|
81
|
+
top: 12px;
|
|
82
|
+
right: 12px;
|
|
83
|
+
color: ${x.accent};
|
|
84
|
+
background: ${x.bg};
|
|
85
|
+
border-radius: 50%;
|
|
86
|
+
`;function Se({selectedKeys:r,onPick:h,canPick:f}){const[p,g]=u.useState(""),[j,b]=u.useState("");u.useEffect(()=>{const d=setTimeout(()=>b(p.trim()),300);return()=>clearTimeout(d)},[p]);const{items:s,isLoading:k,isPlaceholderData:w,isError:T,hasNextPage:l,isFetchingNextPage:C,fetchNextPage:E}=fe(["outfit-picker",j],d=>Qt({search:j||void 0,category:"wearable",onSale:!0,listingType:"primary",first:24,skip:d,sortBy:"cheapest"})),H=new Set,y=s.filter(d=>{if(!d.itemId)return!1;const $=`${d.contractAddress.toLowerCase()}-${d.itemId}`;return H.has($)?!1:(H.add($),!0)});return t.jsxs(xe,{"data-testid":"outfit-picker",children:[t.jsxs(ge,{children:[t.jsx(U,{name:"search",color:st.colors.muted}),t.jsx("input",{value:p,placeholder:e("outfits.studio.searchPlaceholder"),"aria-label":e("outfits.studio.searchPlaceholder"),onChange:d=>g(d.target.value),"data-testid":"outfit-picker-search"})]}),T?t.jsx("p",{className:"muted small",children:e("outfits.errors.generic")}):k||w?t.jsx(xt,{"aria-busy":"true",children:Array.from({length:8},(d,$)=>t.jsx(be,{className:"skeleton","aria-hidden":!0},$))}):y.length===0?t.jsx("p",{className:"muted small",children:e("outfits.studio.noResults")}):t.jsx(xt,{children:y.map(d=>{const $=`${d.contractAddress.toLowerCase()}-${d.itemId}`,P=r.has($);return t.jsxs(ye,{type:"button","data-testid":"outfit-picker-item","data-selected":P||void 0,disabled:!P&&!f(d),onClick:()=>h(d),title:d.name,children:[t.jsx(je,{src:d.thumbnail,alt:"",loading:"lazy"}),t.jsx(ve,{children:d.name}),t.jsxs(we,{children:[t.jsx(Y,{size:12}),d.priceCredits.toLocaleString()]}),P?t.jsx($e,{name:"check-rounded",size:18}):null]},$)})}),!T&&!k&&!w?t.jsx(pe,{auto:!1,hasNextPage:!!l,isFetching:C,onLoadMore:()=>void E()}):null]})}const{colors:a,radius:v,media:W,z:ke}=st,Ct=o.div`
|
|
87
|
+
max-width: 1200px;
|
|
88
|
+
margin: 0 auto;
|
|
89
|
+
display: flex;
|
|
90
|
+
flex-direction: column;
|
|
91
|
+
gap: 20px;
|
|
92
|
+
`,z=o.div`
|
|
93
|
+
min-height: 52vh;
|
|
94
|
+
display: flex;
|
|
95
|
+
flex-direction: column;
|
|
96
|
+
align-items: center;
|
|
97
|
+
justify-content: center;
|
|
98
|
+
text-align: center;
|
|
99
|
+
gap: 14px;
|
|
100
|
+
`,gt=o.h1`
|
|
101
|
+
font-size: 24px;
|
|
102
|
+
`,Et=o.div`
|
|
103
|
+
display: flex;
|
|
104
|
+
align-items: center;
|
|
105
|
+
gap: 12px;
|
|
106
|
+
`,It=o.h1`
|
|
107
|
+
font-size: 24px;
|
|
108
|
+
font-weight: 800;
|
|
109
|
+
margin-right: auto;
|
|
110
|
+
`,Te=o(O)`
|
|
111
|
+
display: inline-flex;
|
|
112
|
+
align-items: center;
|
|
113
|
+
justify-content: center;
|
|
114
|
+
width: 44px;
|
|
115
|
+
height: 44px;
|
|
116
|
+
border-radius: 50%;
|
|
117
|
+
color: ${a.text};
|
|
118
|
+
|
|
119
|
+
&:hover {
|
|
120
|
+
background: ${a.panel};
|
|
121
|
+
}
|
|
122
|
+
`,Lt=o.span`
|
|
123
|
+
font-size: 12px;
|
|
124
|
+
font-weight: 700;
|
|
125
|
+
text-transform: uppercase;
|
|
126
|
+
letter-spacing: 0.03em;
|
|
127
|
+
padding: 3px 10px;
|
|
128
|
+
border-radius: ${v.pill};
|
|
129
|
+
background: ${a.chip};
|
|
130
|
+
color: ${a.muted1};
|
|
131
|
+
|
|
132
|
+
&[data-state='published'] {
|
|
133
|
+
background: rgba(30, 166, 114, 0.14);
|
|
134
|
+
color: ${a.okStrong};
|
|
135
|
+
}
|
|
136
|
+
`,bt=o.div`
|
|
137
|
+
display: flex;
|
|
138
|
+
flex-direction: column;
|
|
139
|
+
gap: 10px;
|
|
140
|
+
`,Ce=o.span`
|
|
141
|
+
height: 76px;
|
|
142
|
+
border-radius: ${v.card};
|
|
143
|
+
`,Ee=o.div`
|
|
144
|
+
display: flex;
|
|
145
|
+
align-items: center;
|
|
146
|
+
gap: 14px;
|
|
147
|
+
padding: 12px;
|
|
148
|
+
border: 1px solid ${a.line};
|
|
149
|
+
border-radius: ${v.card};
|
|
150
|
+
|
|
151
|
+
${W.maxWidth("mobile")} {
|
|
152
|
+
flex-wrap: wrap;
|
|
153
|
+
}
|
|
154
|
+
`,Nt=vt`
|
|
155
|
+
width: 52px;
|
|
156
|
+
height: 52px;
|
|
157
|
+
border-radius: 8px;
|
|
158
|
+
background: ${a.media};
|
|
159
|
+
flex-shrink: 0;
|
|
160
|
+
`,Ie=o.div`
|
|
161
|
+
${Nt};
|
|
162
|
+
overflow: hidden;
|
|
163
|
+
|
|
164
|
+
img {
|
|
165
|
+
width: 100%;
|
|
166
|
+
height: 100%;
|
|
167
|
+
object-fit: cover;
|
|
168
|
+
display: block;
|
|
169
|
+
}
|
|
170
|
+
`,Le=o.span`
|
|
171
|
+
${Nt};
|
|
172
|
+
display: inline-block;
|
|
173
|
+
`,Ne=o.div`
|
|
174
|
+
flex: 1;
|
|
175
|
+
min-width: 0;
|
|
176
|
+
display: flex;
|
|
177
|
+
flex-direction: column;
|
|
178
|
+
gap: 4px;
|
|
179
|
+
`,ze=o.span`
|
|
180
|
+
font-size: 15px;
|
|
181
|
+
font-weight: 700;
|
|
182
|
+
white-space: nowrap;
|
|
183
|
+
overflow: hidden;
|
|
184
|
+
text-overflow: ellipsis;
|
|
185
|
+
`,Pe=o.span`
|
|
186
|
+
display: inline-flex;
|
|
187
|
+
align-items: center;
|
|
188
|
+
gap: 8px;
|
|
189
|
+
font-size: 13px;
|
|
190
|
+
color: ${a.muted};
|
|
191
|
+
`,Re=o.div`
|
|
192
|
+
display: flex;
|
|
193
|
+
align-items: center;
|
|
194
|
+
gap: 8px;
|
|
195
|
+
|
|
196
|
+
${W.maxWidth("mobile")} {
|
|
197
|
+
width: 100%;
|
|
198
|
+
justify-content: flex-end;
|
|
199
|
+
}
|
|
200
|
+
`,Oe=o.button`
|
|
201
|
+
display: inline-flex;
|
|
202
|
+
align-items: center;
|
|
203
|
+
justify-content: center;
|
|
204
|
+
width: 44px;
|
|
205
|
+
height: 44px;
|
|
206
|
+
border: 0;
|
|
207
|
+
background: none;
|
|
208
|
+
border-radius: 50%;
|
|
209
|
+
color: ${a.muted};
|
|
210
|
+
cursor: pointer;
|
|
211
|
+
|
|
212
|
+
&:hover {
|
|
213
|
+
color: ${a.errStrong};
|
|
214
|
+
background: ${a.panel};
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
&:disabled {
|
|
218
|
+
opacity: 0.5;
|
|
219
|
+
cursor: default;
|
|
220
|
+
}
|
|
221
|
+
`,Fe=o.div`
|
|
222
|
+
position: fixed;
|
|
223
|
+
inset: 0;
|
|
224
|
+
z-index: ${ke.overlay};
|
|
225
|
+
display: grid;
|
|
226
|
+
place-items: center;
|
|
227
|
+
padding: 16px;
|
|
228
|
+
`,Ae=o.div`
|
|
229
|
+
position: absolute;
|
|
230
|
+
inset: 0;
|
|
231
|
+
background: rgba(22, 21, 24, 0.5);
|
|
232
|
+
`,Be=o.div`
|
|
233
|
+
position: relative;
|
|
234
|
+
background: ${a.bg};
|
|
235
|
+
border-radius: ${v.card};
|
|
236
|
+
padding: 24px;
|
|
237
|
+
max-width: 420px;
|
|
238
|
+
width: 100%;
|
|
239
|
+
display: flex;
|
|
240
|
+
flex-direction: column;
|
|
241
|
+
gap: 12px;
|
|
242
|
+
`,De=o.h2`
|
|
243
|
+
font-size: 18px;
|
|
244
|
+
font-weight: 800;
|
|
245
|
+
`,Ue=o.div`
|
|
246
|
+
display: flex;
|
|
247
|
+
flex-wrap: wrap;
|
|
248
|
+
gap: 10px;
|
|
249
|
+
margin-top: 6px;
|
|
250
|
+
`,He=o.div`
|
|
251
|
+
display: grid;
|
|
252
|
+
grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
|
|
253
|
+
gap: 32px;
|
|
254
|
+
align-items: start;
|
|
255
|
+
|
|
256
|
+
${W.maxWidth("mobile")} {
|
|
257
|
+
grid-template-columns: 1fr;
|
|
258
|
+
gap: 20px;
|
|
259
|
+
}
|
|
260
|
+
`,Me=o.div`
|
|
261
|
+
display: flex;
|
|
262
|
+
flex-direction: column;
|
|
263
|
+
gap: 18px;
|
|
264
|
+
`,_e=o.div`
|
|
265
|
+
display: flex;
|
|
266
|
+
flex-direction: column;
|
|
267
|
+
gap: 18px;
|
|
268
|
+
`,Ke=o.div`
|
|
269
|
+
position: relative;
|
|
270
|
+
aspect-ratio: 3 / 4;
|
|
271
|
+
border-radius: 16px;
|
|
272
|
+
overflow: hidden;
|
|
273
|
+
background: ${a.media};
|
|
274
|
+
|
|
275
|
+
${W.maxWidth("mobile")} {
|
|
276
|
+
aspect-ratio: 1 / 1;
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
& iframe {
|
|
280
|
+
width: 100%;
|
|
281
|
+
height: 100%;
|
|
282
|
+
border: 0;
|
|
283
|
+
display: block;
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
[data-preview-viewport] {
|
|
287
|
+
position: absolute;
|
|
288
|
+
inset: 0;
|
|
289
|
+
pointer-events: none;
|
|
290
|
+
}
|
|
291
|
+
`,qe=o.p`
|
|
292
|
+
position: absolute;
|
|
293
|
+
inset: 0;
|
|
294
|
+
display: grid;
|
|
295
|
+
place-items: center;
|
|
296
|
+
padding: 24px;
|
|
297
|
+
text-align: center;
|
|
298
|
+
`,L=o.div`
|
|
299
|
+
display: flex;
|
|
300
|
+
flex-direction: column;
|
|
301
|
+
gap: 8px;
|
|
302
|
+
`,N=o.label`
|
|
303
|
+
font-size: 13px;
|
|
304
|
+
font-weight: 700;
|
|
305
|
+
letter-spacing: 0.04em;
|
|
306
|
+
text-transform: uppercase;
|
|
307
|
+
color: ${a.muted1};
|
|
308
|
+
`,Ge=o.div`
|
|
309
|
+
display: flex;
|
|
310
|
+
gap: 8px;
|
|
311
|
+
`,We=o.button`
|
|
312
|
+
min-height: 44px;
|
|
313
|
+
padding: 0 16px;
|
|
314
|
+
border-radius: ${v.pill};
|
|
315
|
+
border: 1px solid ${a.lineStrong};
|
|
316
|
+
background: none;
|
|
317
|
+
font: inherit;
|
|
318
|
+
font-weight: 600;
|
|
319
|
+
color: ${a.text};
|
|
320
|
+
cursor: pointer;
|
|
321
|
+
|
|
322
|
+
&[data-selected] {
|
|
323
|
+
border-color: ${a.accent};
|
|
324
|
+
background: ${a.accent};
|
|
325
|
+
color: ${a.white};
|
|
326
|
+
}
|
|
327
|
+
`,Qe=o.div`
|
|
328
|
+
width: 240px;
|
|
329
|
+
aspect-ratio: 3 / 4;
|
|
330
|
+
border-radius: ${v.card};
|
|
331
|
+
overflow: hidden;
|
|
332
|
+
background: ${a.media};
|
|
333
|
+
|
|
334
|
+
&[data-busy] {
|
|
335
|
+
opacity: 0.6;
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
img {
|
|
339
|
+
width: 100%;
|
|
340
|
+
height: 100%;
|
|
341
|
+
object-fit: cover;
|
|
342
|
+
display: block;
|
|
343
|
+
}
|
|
344
|
+
`,Ve=o.div`
|
|
345
|
+
display: flex;
|
|
346
|
+
align-items: center;
|
|
347
|
+
gap: 12px;
|
|
348
|
+
flex-wrap: wrap;
|
|
349
|
+
`,Je=o.div`
|
|
350
|
+
display: flex;
|
|
351
|
+
align-items: center;
|
|
352
|
+
gap: 8px;
|
|
353
|
+
`,Xe=o.input`
|
|
354
|
+
width: 44px;
|
|
355
|
+
height: 44px;
|
|
356
|
+
padding: 2px;
|
|
357
|
+
border: 1px solid ${a.lineStrong};
|
|
358
|
+
border-radius: ${v.btn};
|
|
359
|
+
background: none;
|
|
360
|
+
cursor: pointer;
|
|
361
|
+
|
|
362
|
+
&::-webkit-color-swatch-wrapper {
|
|
363
|
+
padding: 0;
|
|
364
|
+
}
|
|
365
|
+
&::-webkit-color-swatch {
|
|
366
|
+
border: 0;
|
|
367
|
+
border-radius: 4px;
|
|
368
|
+
}
|
|
369
|
+
`,Ye=o.div`
|
|
370
|
+
display: flex;
|
|
371
|
+
flex-direction: column;
|
|
372
|
+
gap: 2px;
|
|
373
|
+
font-size: 12px;
|
|
374
|
+
color: ${a.muted};
|
|
375
|
+
`,Ze=o.input`
|
|
376
|
+
width: 88px;
|
|
377
|
+
height: 26px;
|
|
378
|
+
padding: 0 6px;
|
|
379
|
+
border: 1px solid ${a.line};
|
|
380
|
+
border-radius: ${v.chip};
|
|
381
|
+
font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
|
|
382
|
+
font-size: 12px;
|
|
383
|
+
color: ${a.text};
|
|
384
|
+
text-transform: lowercase;
|
|
385
|
+
|
|
386
|
+
&[data-invalid] {
|
|
387
|
+
border-color: ${a.errStrong};
|
|
388
|
+
}
|
|
389
|
+
`,ti=o.div`
|
|
390
|
+
width: 281px;
|
|
391
|
+
max-width: 100%;
|
|
392
|
+
`,ei=o(m)`
|
|
393
|
+
align-self: flex-start;
|
|
394
|
+
`,ii=o.div`
|
|
395
|
+
display: flex;
|
|
396
|
+
align-items: stretch;
|
|
397
|
+
gap: 8px;
|
|
398
|
+
|
|
399
|
+
input {
|
|
400
|
+
flex: 1;
|
|
401
|
+
min-width: 0;
|
|
402
|
+
}
|
|
403
|
+
`,yt=o.input`
|
|
404
|
+
height: 44px;
|
|
405
|
+
padding: 0 14px;
|
|
406
|
+
border: 1px solid ${a.lineStrong};
|
|
407
|
+
border-radius: ${v.btn};
|
|
408
|
+
font: inherit;
|
|
409
|
+
color: ${a.text};
|
|
410
|
+
|
|
411
|
+
&:focus {
|
|
412
|
+
outline: 2px solid ${a.accent};
|
|
413
|
+
outline-offset: -1px;
|
|
414
|
+
}
|
|
415
|
+
`,si=o.ul`
|
|
416
|
+
list-style: none;
|
|
417
|
+
margin: 0;
|
|
418
|
+
padding: 0;
|
|
419
|
+
display: flex;
|
|
420
|
+
flex-direction: column;
|
|
421
|
+
gap: 6px;
|
|
422
|
+
`,oi=o.li`
|
|
423
|
+
display: flex;
|
|
424
|
+
align-items: center;
|
|
425
|
+
gap: 10px;
|
|
426
|
+
padding: 6px 8px;
|
|
427
|
+
border: 1px solid ${a.line};
|
|
428
|
+
border-radius: ${v.card};
|
|
429
|
+
|
|
430
|
+
&[data-missing] {
|
|
431
|
+
opacity: 0.6;
|
|
432
|
+
}
|
|
433
|
+
`,zt=vt`
|
|
434
|
+
width: 40px;
|
|
435
|
+
height: 40px;
|
|
436
|
+
border-radius: 8px;
|
|
437
|
+
background: ${a.media};
|
|
438
|
+
flex-shrink: 0;
|
|
439
|
+
`,ai=o.img`
|
|
440
|
+
${zt};
|
|
441
|
+
object-fit: cover;
|
|
442
|
+
`,ni=o.span`
|
|
443
|
+
${zt};
|
|
444
|
+
display: inline-block;
|
|
445
|
+
`,ri=o.span`
|
|
446
|
+
flex: 1;
|
|
447
|
+
min-width: 0;
|
|
448
|
+
font-size: 14px;
|
|
449
|
+
font-weight: 600;
|
|
450
|
+
white-space: nowrap;
|
|
451
|
+
overflow: hidden;
|
|
452
|
+
text-overflow: ellipsis;
|
|
453
|
+
`,di=o.span`
|
|
454
|
+
display: inline-flex;
|
|
455
|
+
align-items: center;
|
|
456
|
+
gap: 4px;
|
|
457
|
+
font-size: 13px;
|
|
458
|
+
color: ${a.muted};
|
|
459
|
+
white-space: nowrap;
|
|
460
|
+
`,li=o.div`
|
|
461
|
+
display: flex;
|
|
462
|
+
align-items: center;
|
|
463
|
+
justify-content: space-between;
|
|
464
|
+
padding-top: 10px;
|
|
465
|
+
border-top: 1px solid ${a.line};
|
|
466
|
+
font-size: 13px;
|
|
467
|
+
font-weight: 700;
|
|
468
|
+
`,ui=o.span`
|
|
469
|
+
display: inline-flex;
|
|
470
|
+
align-items: center;
|
|
471
|
+
gap: 4px;
|
|
472
|
+
font-size: 15px;
|
|
473
|
+
font-weight: 700;
|
|
474
|
+
`,ci=o.button`
|
|
475
|
+
display: inline-flex;
|
|
476
|
+
align-items: center;
|
|
477
|
+
justify-content: center;
|
|
478
|
+
width: 40px;
|
|
479
|
+
height: 40px;
|
|
480
|
+
border: 0;
|
|
481
|
+
background: none;
|
|
482
|
+
border-radius: 50%;
|
|
483
|
+
color: ${a.muted};
|
|
484
|
+
cursor: pointer;
|
|
485
|
+
|
|
486
|
+
&:hover {
|
|
487
|
+
color: ${a.errStrong};
|
|
488
|
+
background: ${a.panel};
|
|
489
|
+
}
|
|
490
|
+
`,pi=o.div`
|
|
491
|
+
display: flex;
|
|
492
|
+
flex-direction: column;
|
|
493
|
+
gap: 8px;
|
|
494
|
+
padding-top: 16px;
|
|
495
|
+
border-top: 1px solid ${a.line};
|
|
496
|
+
`,fi=o.div`
|
|
497
|
+
display: flex;
|
|
498
|
+
flex-wrap: wrap;
|
|
499
|
+
gap: 10px;
|
|
500
|
+
`;function Li(){const{id:r}=qt(),{pathname:h}=Gt(),f=G(b=>b.session),p=G(b=>b.signIn),g=Vt();Jt({title:e("outfits.studio.title"),noindex:!0});const j=h.endsWith("/new")?"new":r?"edit":"list";return g==="pending"?t.jsx(z,{"aria-busy":"true","data-testid":"outfit-studio-loading",children:t.jsx("span",{className:"spinner","aria-hidden":!0})}):f?g!=="creator"?t.jsxs(z,{"data-testid":"outfit-studio-unavailable",children:[t.jsx(gt,{children:e("outfits.studio.title")}),t.jsx("p",{className:"muted",children:e("outfits.studio.notAvailable")}),t.jsx(m,{as:O,to:"/overview",variant:"purple",children:e("outfits.studio.backToShop")})]}):j==="list"?t.jsx(mi,{}):t.jsx(bi,{outfitId:j==="edit"?r:null},r??"new"):t.jsxs(z,{"data-testid":"outfit-studio-signin",children:[t.jsx(gt,{children:e("outfits.studio.title")}),t.jsx("p",{className:"muted",children:e("outfits.studio.signInPrompt")}),t.jsx(m,{variant:"purple",onClick:()=>p(),children:e("outfits.studio.signIn")})]})}function hi({outfit:r}){const h=St(r.thumbnailHash);return h?t.jsx(Ie,{style:{background:se(r)},children:t.jsx("img",{src:h,alt:"",loading:"lazy"})}):t.jsx(Le,{"aria-hidden":!0})}function mi(){const r=G(l=>l.session),h=wt(),[f,p]=u.useState(null),[g,j]=u.useState(null),{data:b=[],isLoading:s,isError:k,refetch:w}=$t({queryKey:["outfits-all"],enabled:!!r,staleTime:3e4,queryFn:()=>ue(r.identity)});async function T(l,C){if(r){j(l.id);try{C==="delete"?(await oe(l.id,r.identity),F.success(e("outfits.studio.deleted"))):(await kt({...it(l),published:!1},r.identity,"update"),F.success(e("outfits.studio.unpublished"))),Tt(h)}catch(E){E instanceof R||tt(E,{flow:`outfit-${C}`}),F.error(e(E instanceof R?et(E.code):"outfits.errors.generic"))}finally{j(null),p(null)}}}return t.jsxs(Ct,{"data-testid":"outfit-studio-list",children:[t.jsxs(Et,{children:[t.jsx(It,{children:e("outfits.studio.myOutfits")}),t.jsx(m,{as:O,to:"/outfits/new",variant:"purple","data-testid":"outfit-studio-new",children:e("outfits.studio.new")})]}),s?t.jsx(bt,{"aria-busy":"true",children:Array.from({length:3},(l,C)=>t.jsx(Ce,{className:"skeleton","aria-hidden":!0},C))}):k?t.jsxs(z,{children:[t.jsx(D,{message:e("outfits.errors.generic")}),t.jsx(m,{variant:"purple",onClick:()=>void w(),children:e("outfits.detail.retry")})]}):b.length===0?t.jsx("p",{className:"muted",children:e("outfits.studio.empty")}):t.jsx(bt,{children:b.map(l=>t.jsxs(Ee,{"data-testid":"outfit-studio-row","data-published":l.published||void 0,children:[t.jsx(hi,{outfit:l}),t.jsxs(Ne,{children:[t.jsx(ze,{children:l.name||e("outfits.studio.untitled")}),t.jsxs(Pe,{children:[t.jsx(Lt,{"data-state":l.published?"published":"draft",children:l.published?e("outfits.studio.publishedState"):e("outfits.studio.draft")}),e("outfits.card.items",{count:l.items.length})]})]}),t.jsxs(Re,{children:[l.published?t.jsx(m,{as:O,to:`/assets/outfits/${l.id}`,variant:"ghost",size:"sm",children:e("outfits.studio.view")}):null,t.jsx(m,{as:O,to:`/outfits/${l.id}/edit`,variant:"outline",size:"sm","data-testid":"outfit-studio-edit",children:e("outfits.studio.edit")}),t.jsx(Oe,{type:"button","data-testid":"outfit-studio-delete","aria-label":e("outfits.studio.confirmDelete"),disabled:g===l.id,onClick:()=>p(l),children:t.jsx(U,{name:"trash",size:18})})]})]},l.id))}),f?t.jsxs(Fe,{role:"dialog","aria-modal":"true","aria-label":e("outfits.studio.deleteTitle"),"data-testid":"outfit-studio-confirm",children:[t.jsx(Ae,{onClick:()=>p(null)}),t.jsxs(Be,{children:[t.jsx(De,{children:e("outfits.studio.deleteTitle")}),t.jsx("p",{className:"muted",children:e("outfits.studio.deleteBody")}),t.jsxs(Ue,{children:[f.published?t.jsx(m,{variant:"purple","data-testid":"outfit-studio-confirm-unpublish",disabled:g===f.id,onClick:()=>void T(f,"unpublish"),children:e("outfits.studio.unpublish")}):null,t.jsx(m,{variant:f.published?"outline":"purple","data-testid":"outfit-studio-confirm-delete",disabled:g===f.id,onClick:()=>void T(f,"delete"),children:e("outfits.studio.confirmDelete")}),t.jsx(m,{variant:"ghost",onClick:()=>p(null),children:e("outfits.studio.cancel")})]})]})]}):null]})}const jt=["image/png","image/jpeg","image/webp"];function xi(){return{id:crypto.randomUUID(),name:"",thumbnailHash:"",items:[],bodyShape:"unisex",gradientFrom:Z.from,gradientTo:Z.to,published:!1}}function it(r){return{id:r.id,name:r.name,thumbnailHash:r.thumbnailHash,items:r.items,bodyShape:r.bodyShape,gradientFrom:r.gradientFrom,gradientTo:r.gradientTo,published:r.published}}function gi(r){try{const h=sessionStorage.getItem(r);return h?JSON.parse(h):null}catch{return null}}function bi({outfitId:r}){const h=r===null,f=`outfit-draft:${r??"new"}`,p=G(i=>i.session),g=wt(),j=Wt(),[b]=u.useState(()=>gi(f)),[s,k]=u.useState(()=>b??(h?xi():null)),[w,T]=u.useState(!!b),{data:l,isLoading:C,isError:E,refetch:H}=$t({queryKey:["outfit",r,!0],enabled:!h&&!!p,staleTime:0,queryFn:()=>ce(r,p.identity)});u.useEffect(()=>{l&&k(i=>i??it(l))},[l]);function y(i){k(n=>n&&{...n,...i}),T(!0)}u.useEffect(()=>{if(!(!s||!w))try{sessionStorage.setItem(f,JSON.stringify(s))}catch{}},[s,w,f]),u.useEffect(()=>{if(!w)return;const i=n=>n.preventDefault();return window.addEventListener("beforeunload",i),()=>window.removeEventListener("beforeunload",i)},[w]),u.useEffect(()=>()=>sessionStorage.removeItem(f),[f]);const d=Xt(s??void 0),$=u.useMemo(()=>new Set(((s==null?void 0:s.items)??[]).map(B)),[s]),P=i=>le((s==null?void 0:s.items)??[],i,d.byKey),at=i=>!!i.itemId&&P(i).length<=q;function Pt(i){!s||!at(i)||y({items:P(i)})}const[Rt,nt]=u.useState(null),I=u.useRef(null),Q=u.useRef(!0);u.useEffect(()=>(Q.current=!0,()=>{Q.current=!1}),[]);const[M,rt]=u.useState(!1),[Ot,_]=u.useState(null),[V,dt]=u.useState(""),[Ft,lt]=u.useState(null),[S,At]=u.useState();u.useEffect(()=>()=>{I.current&&URL.revokeObjectURL(I.current)},[]);function ut(){const i=re(V);if(!i){lt(e("outfits.studio.importError"));return}lt(null),dt(""),At(i.colors),y({items:i.items,...i.bodyShape?{bodyShape:i.bodyShape}:{}}),F.success(e("outfits.studio.importSuccess",{count:i.items.length}))}async function Bt(i){if(!i||!p)return;if(_(null),!jt.includes(i.type)){_(e("outfits.errors.unsupportedType"));return}if(i.size>ae){_(e("outfits.errors.tooLarge"));return}I.current&&URL.revokeObjectURL(I.current);const n=URL.createObjectURL(i);I.current=n,nt(n),rt(!0);try{const c=await ne(i,p.identity);y({thumbnailHash:c})}catch(c){c instanceof R||tt(c,{flow:"outfit-thumbnail"}),_(e(c instanceof R?et(c.code):"outfits.errors.generic")),I.current&&(URL.revokeObjectURL(I.current),I.current=null),nt(null)}finally{rt(!1)}}const[A,ct]=u.useState(!1),[Dt,pt]=u.useState(null),J=!!s&&s.name.trim().length>0&&s.name.length<=60,Ut=!!s&&K(s.gradientFrom)&&K(s.gradientTo),ft=!!s&&J&&!!s.thumbnailHash&&Ut&&s.items.length>=2&&s.items.length<=q;async function X(i){if(!(!p||!s||A)){ct(!0),pt(null);try{const n=await kt({...s,published:i},p.identity,h?"create":"update");if(!Q.current)return;sessionStorage.removeItem(f),k(it(n)),T(!1),Tt(g),i&&!s.published?(de("Shop Outfit Published",{outfit_id:n.id,item_count:n.items.length}),F.success(e("outfits.studio.publishedToast"))):F.success(e("outfits.studio.saved")),h&&(g.setQueryData(["outfit",n.id,!0],n),j(`/outfits/${n.id}/edit`,{replace:!0}))}catch(n){n instanceof R||tt(n,{flow:"outfit-save"}),pt(e(n instanceof R?et(n.code):"outfits.errors.generic"))}finally{ct(!1)}}}const ht=u.useMemo(()=>((s==null?void 0:s.items)??[]).map(i=>d.byKey.get(B(i))).map(i=>i?Yt(i):null).filter(i=>!!i),[s,d.byKey]),Ht=(s==null?void 0:s.bodyShape)==="female"?Zt:(s==null?void 0:s.bodyShape)==="male"?te:void 0;if(!p)return null;if(!s)return E?t.jsxs(z,{children:[t.jsx(D,{message:e("outfits.errors.generic")}),t.jsx(m,{variant:"purple",onClick:()=>void H(),children:e("outfits.detail.retry")})]}):!C&&l===null?t.jsxs(z,{"data-testid":"outfit-studio-missing",children:[t.jsx("p",{className:"muted",children:e("outfits.errors.notFound")}),t.jsx(m,{as:O,to:"/outfits/manage",variant:"purple",children:e("outfits.studio.myOutfits")})]}):t.jsx(z,{"aria-busy":"true",children:t.jsx("span",{className:"spinner","aria-hidden":!0})});const mt=Rt??St(s.thumbnailHash),Mt={...s,authorAddress:(p==null?void 0:p.address)??"",createdAt:0,updatedAt:0},_t=s.items.reduce((i,n)=>{var c;return i+(((c=d.byKey.get(B(n)))==null?void 0:c.priceCredits)??0)},0);return t.jsxs(Ct,{"data-testid":"outfit-studio-editor",children:[t.jsxs(Et,{children:[t.jsx(Te,{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(It,{children:h?e("outfits.studio.new"):e("outfits.studio.editTitle")}),t.jsx(Lt,{"data-state":s.published?"published":"draft",children:s.published?e("outfits.studio.publishedState"):e("outfits.studio.draft")})]}),t.jsxs(He,{children:[t.jsxs(Me,{children:[t.jsxs(Ke,{"data-testid":"outfit-studio-preview",style:{background:ee(s)},children:[t.jsx(he,{id:"outfit-studio-preview-frame",profile:"default",bodyShape:Ht,urns:ht,skin:S==null?void 0:S.skin,hair:S==null?void 0:S.hair,eyes:S==null?void 0:S.eyes,enabled:!d.isLoading}),ht.length===0&&!d.isLoading?t.jsx(qe,{className:"muted",children:e("outfits.studio.previewEmpty")}):null]}),t.jsxs(L,{children:[t.jsx(N,{as:"span",children:e("outfits.studio.bodyShape")}),t.jsx(Ge,{role:"group","aria-label":e("outfits.studio.bodyShape"),children:["unisex","male","female"].map(i=>t.jsx(We,{type:"button","data-selected":s.bodyShape===i||void 0,onClick:()=>y({bodyShape:i}),children:e(`outfits.studio.shape.${i}`)},i))})]}),t.jsxs(L,{children:[t.jsx(N,{as:"span",children:e("outfits.studio.gradient")}),t.jsx(Ve,{children:["gradientFrom","gradientTo"].map(i=>t.jsxs(Je,{children:[t.jsx(Xe,{type:"color",value:K(s[i])?s[i]:Z.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:n=>y({[i]:n.target.value.toLowerCase()})}),t.jsxs(Ye,{children:[t.jsx("span",{children:e(i==="gradientFrom"?"outfits.studio.gradientTop":"outfits.studio.gradientBottom")}),t.jsx(Ze,{value:s[i],maxLength:7,spellCheck:!1,placeholder:"#000000","aria-label":e(i==="gradientFrom"?"outfits.studio.gradientTopHex":"outfits.studio.gradientBottomHex"),"data-invalid":!K(s[i])||void 0,onChange:n=>{const c=n.target.value.trim().toLowerCase();y({[i]:c.startsWith("#")||c===""?c:`#${c}`})}})]})]},i))}),t.jsx("p",{className:"muted small",children:e("outfits.studio.gradientHint")})]}),t.jsxs(L,{children:[t.jsx(N,{as:"span",children:e("outfits.studio.thumbnail")}),mt?t.jsx(Qe,{"data-busy":M||void 0,children:t.jsx("img",{src:mt,alt:""})}):null,t.jsxs(ei,{as:"label",variant:"outline",size:"sm","data-busy":M||void 0,children:[M?e("outfits.studio.uploading"):e("outfits.studio.upload"),t.jsx("input",{type:"file",accept:jt.join(","),hidden:!0,disabled:M,onChange:i=>{var n;return void Bt((n=i.target.files)==null?void 0:n[0])},"data-testid":"outfit-studio-thumb-input"})]}),t.jsx("p",{className:"muted small",children:e("outfits.studio.thumbnailHint")}),t.jsx(D,{message:Ot,testId:"outfit-studio-thumb-error"})]}),t.jsxs(L,{children:[t.jsx(N,{as:"span",children:e("outfits.studio.cardPreview")}),t.jsx(ti,{"data-testid":"outfit-studio-card-preview",onClickCapture:i=>{i.preventDefault(),i.stopPropagation()},children:t.jsx(ie,{outfit:Mt,resolution:d})})]})]}),t.jsxs(_e,{children:[t.jsxs(L,{children:[t.jsx(N,{htmlFor:"outfit-import",children:e("outfits.studio.import")}),t.jsxs(ii,{children:[t.jsx(yt,{id:"outfit-import",value:V,spellCheck:!1,placeholder:e("outfits.studio.importPlaceholder"),onChange:i=>dt(i.target.value),onKeyDown:i=>{i.key==="Enter"&&ut()},"data-testid":"outfit-studio-import"}),t.jsx(m,{variant:"outline",size:"sm",onClick:ut,disabled:V.trim()==="","data-testid":"outfit-studio-import-apply",children:e("outfits.studio.importApply")})]}),t.jsx("p",{className:"muted small",children:e("outfits.studio.importHint")}),t.jsx(D,{message:Ft,testId:"outfit-studio-import-error"})]}),t.jsxs(L,{children:[t.jsx(N,{htmlFor:"outfit-name",children:e("outfits.studio.name")}),t.jsx(yt,{id:"outfit-name",value:s.name,maxLength:60,placeholder:e("outfits.studio.namePlaceholder"),onChange:i=>y({name:i.target.value}),"data-testid":"outfit-studio-name"})]}),t.jsxs(L,{children:[t.jsxs(N,{as:"span",children:[e("outfits.studio.items")," (",s.items.length,"/",q,")"]}),s.items.length===0?t.jsx("p",{className:"muted small",children:e("outfits.studio.noItems")}):t.jsx(si,{children:s.items.map(i=>{const n=B(i),c=d.byKey.get(n);return t.jsxs(oi,{"data-testid":"outfit-studio-selected","data-missing":!c||void 0,children:[c?t.jsx(ai,{src:c.thumbnail,alt:""}):t.jsx(ni,{className:d.isLoading?"skeleton":void 0,"aria-hidden":!0}),t.jsx(ri,{className:c?void 0:"muted",children:c?c.name:d.isLoading?"…":e("outfits.card.unavailable")}),c?t.jsxs(di,{children:[t.jsx(Y,{size:12}),c.priceCredits.toLocaleString()]}):null,t.jsx(ci,{type:"button","aria-label":e("outfits.studio.remove"),title:e("outfits.studio.remove"),onClick:()=>y({items:s.items.filter(Kt=>B(Kt)!==n)}),children:t.jsx(U,{name:"trash",size:16})})]},n)})}),s.items.length>0?t.jsxs(li,{"data-testid":"outfit-studio-total",children:[t.jsx("span",{children:e("outfits.detail.totalPrice")}),t.jsxs(ui,{children:[t.jsx(Y,{size:14}),_t.toLocaleString()]})]}):null,s.items.length>=q?t.jsx("p",{className:"muted small",children:e("outfits.studio.maxItems")}):null]}),t.jsx(Se,{selectedKeys:$,onPick:Pt,canPick:at})]})]}),t.jsxs(pi,{"data-testid":"outfit-studio-savebar",children:[t.jsx(D,{message:Dt,testId:"outfit-studio-save-error"}),J?!ft&&!s.published?t.jsx("p",{className:"muted small",children:e("outfits.errors.notPublishable")}):null:t.jsx("p",{className:"muted small",children:e("outfits.studio.needName")}),t.jsxs(fi,{children:[t.jsx(m,{variant:"outline","data-testid":"outfit-studio-save",disabled:A||!J,onClick:()=>void X(s.published),children:A?e("outfits.studio.saving"):e("outfits.studio.saveDraft")}),s.published?t.jsx(m,{variant:"purple","data-testid":"outfit-studio-unpublish",disabled:A,onClick:()=>void X(!1),children:e("outfits.studio.unpublish")}):t.jsx(m,{variant:"purple","data-testid":"outfit-studio-publish",disabled:A||!ft,onClick:()=>void X(!0),children:e("outfits.studio.publish")})]})]})]})}export{Li as OutfitStudio,Li as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as t,L as oe,
|
|
1
|
+
import{j as t,L as oe,d as le,r as l}from"./react-DehiWSvs.js";import{e as s,t as j,s as n,k as ce,B as q,m as de,n as pe,q as ue,I as z,w as F}from"./index-DubLtINT.js";import{u as ge,d as me,t as xe,L as he,i as A,a as f,s as fe}from"./useStore-Br1E1f__.js";import{E as M}from"./ErrorNotice-D6-7YD_C.js";import{F as w}from"./field.styles-icpuqiLd.js";import"./sentry-973sfbO9.js";import"./dcl-schemas-Dr9BTjb7.js";import"./ethers-CtNGBird.js";import"./intl-CBcMB1D2.js";const ve="https://cdn.decentraland.org/@dcl/shop/0.1.1-30910936579.commit-bb58bbb/_assets/template-cover-1-BETekfHg.jpeg",be="https://cdn.decentraland.org/@dcl/shop/0.1.1-30910936579.commit-bb58bbb/_assets/template-cover-2-Dni9s0i_.jpeg",we=Object.assign({"../assets/creator-covers/template-cover-1.jpeg":ve,"../assets/creator-covers/template-cover-2.jpeg":be}),v=Object.entries(we).sort(([r],[u])=>r.localeCompare(u)).map(([r,u])=>({name:r.split("/").pop(),url:u})),je=ce`
|
|
2
2
|
to {
|
|
3
3
|
transform: rotate(360deg);
|
|
4
4
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["_assets/index.es-
|
|
2
|
-
import{r as g,j as e,
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["_assets/index.es-DQ3AciL_.js","_assets/react-DehiWSvs.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{r as g,j as e,b as P,d as N,N as M}from"./react-DehiWSvs.js";import{s as t,_ as I,t as F,p as _,an as O,a9 as W,n as D,m as q,e as n,o as U,f as V,ao as H,c as B,B as J,ap as X}from"./index-DubLtINT.js";import{w as G,S as K}from"./buy-gasless-ByVYfkrv.js";import"./sentry-973sfbO9.js";import"./dcl-schemas-Dr9BTjb7.js";import"./ethers-CtNGBird.js";import"./intl-CBcMB1D2.js";import"./authorizations-CYYNI-9S.js";import"./sendMetaTransaction-CgzqVu54.js";import"./trade-encoding-BJEZpBsE.js";const Q=t.div`
|
|
3
3
|
position: fixed;
|
|
4
4
|
inset: 0;
|
|
5
5
|
/**
|
|
@@ -14,7 +14,7 @@ import{r as g,j as e,u as P,b as N,N as M}from"./react-IQWs2nb4.js";import{s as
|
|
|
14
14
|
*/
|
|
15
15
|
z-index: -1;
|
|
16
16
|
pointer-events: none;
|
|
17
|
-
`,
|
|
17
|
+
`,Y=g.lazy(async()=>{const[{default:c},{default:r}]=await Promise.all([I(()=>import("./index.es-DQ3AciL_.js"),__vite__mapDeps([0,1])),I(()=>import("./confettiAnimation-BpyTLLuX.js"),[])]);return{default:()=>e.jsx(c,{animationData:r,loop:1})}});function Z(){const[c]=g.useState(()=>{var r;return!((r=window.matchMedia)!=null&&r.call(window,"(prefers-reduced-motion: reduce)").matches)});return c?e.jsx(Q,{"aria-hidden":!0,"data-testid":"confetti",children:e.jsx(g.Suspense,{fallback:null,children:e.jsx(Y,{})})}):null}const{colors:s,radius:m}=F,j="@media (max-width: 600px)",L=t.div`
|
|
18
18
|
/* Its own stacking context, above the confetti layer (z-index 0). Needed because z-index is inert without
|
|
19
19
|
a position, so the content would otherwise sit below the burst regardless of order. */
|
|
20
20
|
position: relative;
|
|
@@ -290,7 +290,7 @@ import{r as g,j as e,u as P,b as N,N as M}from"./react-IQWs2nb4.js";import{s as
|
|
|
290
290
|
border: 2.5px solid rgba(252, 252, 252, 0.5);
|
|
291
291
|
border-radius: ${m.btn};
|
|
292
292
|
line-height: 0;
|
|
293
|
-
`,R=t(
|
|
293
|
+
`,R=t(J)`
|
|
294
294
|
min-width: 160px;
|
|
295
295
|
text-align: center;
|
|
296
|
-
`;function Ae(c){return null}const Se=c=>new Promise(r=>setTimeout(r,c));function Ie(c,r){const[i,a]=g.useState(c?"pending":"confirmed"),x=r?`${r.owner}-${r.contractAddress}-${r.itemId}`:"";return g.useEffect(()=>{if(!c)return;let l=!1;return(async()=>{let f=!1;for(let o=0;o<20&&!l;o++)try{await
|
|
296
|
+
`;function Ae(c){return null}const Se=c=>new Promise(r=>setTimeout(r,c));function Ie(c,r){const[i,a]=g.useState(c?"pending":"confirmed"),x=r?`${r.owner}-${r.contractAddress}-${r.itemId}`:"";return g.useEffect(()=>{if(!c)return;let l=!1;return(async()=>{let f=!1;for(let o=0;o<20&&!l;o++)try{await G(c,{timeoutMs:15e3}),f=!0;break}catch(v){if(v instanceof K)continue;l||a("failed");return}if(!l){if(!f){a("timed-out");return}if(!r){a("confirmed");return}a("indexing");for(let o=0;o<40&&!l;o++){if(await X(r.owner,r.contractAddress,r.itemId)){l||a("confirmed");return}await Se(3e3)}l||a("timed-out")}})(),()=>{l=!0}},[c,x]),i}const Le=B.chainId===80002?"https://decentraland.zone/jump":"https://decentraland.org/jump",Te=B.chainId===80002?"https://amoy.polygonscan.com/tx/":"https://polygonscan.com/tx/";function Ue(){var S;const{state:c,search:r}=P(),i=c??Ae(),a=N(),{session:x}=D(),l=i==null?void 0:i.txHash,b=(i==null?void 0:i.items)??[],f=i!=null&&i.creditsAdded&&i.creditsAdded>0?i.creditsAdded:null,o=b[0],v=x!=null&&x.address&&(o!=null&&o.contractAddress)&&(o!=null&&o.itemId)?{owner:x.address,contractAddress:o.contractAddress,itemId:o.itemId}:null,u=Ie(i!=null&&i.settled?void 0:l,v);q({title:n("seo.success.title"),noindex:!0});const h=b;if(h.length===0)return e.jsx(M,{to:"/assets",replace:!0});const A=h[0],w=(S=i==null?void 0:i.txHashes)!=null&&S.length?i.txHashes:l?[l]:[],p=w.length>0&&U(x==null?void 0:x.providerType)?w.map((d,k)=>e.jsx(ne,{href:`${Te}${d}`,target:"_blank",rel:"noreferrer",children:w.length>1?n("success.viewTransactionNumbered",{n:k+1,total:w.length}):n("success.viewTransaction")},d)):null;return u!=="confirmed"?e.jsx(L,{children:e.jsx(ee,{children:u==="pending"||u==="indexing"?e.jsxs(e.Fragment,{children:[e.jsx(te,{className:"spinner","aria-hidden":!0}),e.jsx(C,{children:u==="indexing"?n("success.finalizing"):n("success.processing")}),e.jsx(z,{children:u==="indexing"?e.jsxs(e.Fragment,{children:[n("success.indexingBefore")," ",h.length===1?e.jsx("strong",{children:A.name}):n("success.itemCount",{count:h.length})," ",n("success.indexingAfter")]}):e.jsxs(e.Fragment,{children:[n("success.confirmingBefore")," ",h.length===1?e.jsx("strong",{children:A.name}):n("success.itemCount",{count:h.length})," ",n("success.confirmingAfter")]})}),p?e.jsx(y,{children:p}):null]}):u==="timed-out"?e.jsxs(e.Fragment,{children:[e.jsx(C,{children:n("success.stillProcessingTitle")}),e.jsxs(z,{children:[n("success.timedOutBefore")," ",e.jsx("button",{className:"link",onClick:()=>a("/activity"),children:n("nav.activity")})," ",n("success.timedOutAfter")]}),p?e.jsx(y,{children:p}):null,e.jsxs(T,{children:[e.jsx(R,{variant:"purple",onClick:()=>a("/activity"),children:n("success.viewActivity")}),e.jsx(R,{variant:"ghost",onClick:()=>a("/assets"),children:n("success.keepShopping")})]})]}):e.jsxs(e.Fragment,{children:[e.jsx(C,{children:n("success.failedTitle")}),e.jsx(z,{children:n("success.failedBody")}),p?e.jsx(y,{children:p}):null,e.jsx(T,{children:e.jsx(R,{variant:"purple",onClick:()=>a("/assets"),children:n("success.backToShop")})})]})})}):e.jsxs(L,{children:[e.jsx(Z,{}),e.jsxs(ie,{children:[e.jsxs(se,{role:"status",children:[e.jsx(re,{"aria-hidden":!0,children:e.jsxs("svg",{viewBox:"0 0 60 60",width:"60",height:"60",children:[e.jsx("circle",{cx:"30",cy:"30",r:"30",fill:"#34ce77"}),e.jsx("path",{d:"M18 31l8 8 16-18",fill:"none",stroke:"#fff",strokeWidth:"4.5",strokeLinecap:"round",strokeLinejoin:"round"})]})}),e.jsxs(oe,{children:[e.jsx("b",{children:n("success.bannerTitle")})," ",n("success.bannerBody")]})]}),e.jsxs(ce,{children:[f?e.jsxs(le,{"data-testid":"success-credits",children:[e.jsx(xe,{}),e.jsxs(pe,{children:[e.jsx(he,{children:n("getCredits.creditsAmount",{credits:f,currency:V.name})})," ",e.jsx(ue,{children:n("getCredits.creditsAdded")})]})]}):null,h.map((d,k)=>{const $=d.quantity??1;return e.jsxs(ae,{children:[k>0?e.jsx(de,{"aria-hidden":!0}):null,e.jsxs(fe,{children:[e.jsxs(ge,{children:[d.thumbnail?e.jsx("img",{src:d.thumbnail,alt:""}):null,e.jsx(me,{"aria-hidden":!0,children:e.jsx("svg",{viewBox:"0 0 18 18",width:"12",height:"12",children:e.jsx("path",{d:"M4 9l3.5 3.5L14 5",fill:"none",stroke:"#fff",strokeWidth:"2.4",strokeLinecap:"round",strokeLinejoin:"round"})})})]}),e.jsxs(je,{children:[e.jsxs(we,{title:d.name,children:[d.name||n("buyModal.itemFallback"),$>1?e.jsx(ye,{children:n("cartCheckout.qty",{count:$})}):null]}),d.creator?e.jsx(be,{address:d.creator,linkToProfile:!0}):null]}),e.jsxs(ve,{children:[e.jsx(ke,{}),e.jsx("span",{children:H(d.priceCredits*$)})]})]})]},d.id)})]}),p?e.jsx(y,{"data-receipt":!0,children:p}):null,e.jsxs($e,{children:[e.jsx(Ce,{"data-variant":"ghost",onClick:()=>a("/my-assets"),children:n("success.myAssets")}),e.jsxs(ze,{"data-variant":"ruby",href:Le,target:"_blank",rel:"noreferrer",children:[n("success.tryInWorld"),e.jsx(Re,{"aria-hidden":!0,children:e.jsx("svg",{viewBox:"0 0 24 24",width:"20",height:"20",children:e.jsx("path",{d:"M5 12h12M13 7l5 5-5 5",fill:"none",stroke:"#fcfcfc",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})})]})]})]})]})}export{Ue as Success,Ue as default};
|