@dcl/shop 1.4.2-31322494096.commit-984acea → 1.4.2-31322819328.commit-403d972
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-CKFTYaBs.js +378 -0
- package/_assets/{AnimatedBackground-yDJGFuXs.js → AnimatedBackground-B0x7_N1H.js} +1 -1
- package/_assets/{Assets-DNZmp0kB.js → Assets-BPR-1a4W.js} +2 -2
- package/_assets/{Assets.styles-BOAoaKYw.js → Assets.styles-C7r_ZJhU.js} +1 -1
- package/_assets/{Authorizations-BjZqkvFP.js → Authorizations-DugmrT1Q.js} +1 -1
- package/_assets/Cart-BLezijep.js +705 -0
- package/_assets/{CircularProgress-CP3qplJi.js → CircularProgress-C8nyeKvZ.js} +1 -1
- package/_assets/{Collection-Ct93QOl7.js → Collection-BI3Qt_bN.js} +1 -1
- package/_assets/{CollectionCarousel-BBYLCc51.js → CollectionCarousel-Di0TwYMB.js} +119 -113
- package/_assets/{Confetti-CSSh6Q3n.js → Confetti-BvITTGYi.js} +1 -1
- package/_assets/{ConstantsUtil-DU-HtIqA.js → ConstantsUtil-yKI-3mdC.js} +1 -1
- package/_assets/{ContentClient-Br0TlHB0.js → ContentClient-JPjz7pkw.js} +1 -1
- package/_assets/{Creator-CZ-u7pJQ.js → Creator-DYdDR06n.js} +1 -1
- package/_assets/{DeploymentBuilder-B9ep1TYQ.js → DeploymentBuilder-D8Fp_Wpd.js} +1 -1
- package/_assets/{ErrorNotice-D_pEmaKa.js → ErrorNotice-Bx0TFK67.js} +1 -1
- package/_assets/{ExchangeController-BMOFU2Yk.js → ExchangeController-DhSbvjye.js} +1 -1
- package/_assets/{Faq-SyWZBPv3.js → Faq-CX0NuYp9.js} +1 -1
- package/_assets/{GetCredits-Cj0sC8-8.js → GetCredits-Rremt2I1.js} +1 -1
- package/_assets/{Grow-BvQyOM08.js → Grow-LTpUAnhv.js} +1 -1
- package/_assets/{HelpersUtil-DA7I_LJN.js → HelpersUtil-CzJt3zKg.js} +1 -1
- package/_assets/{ItemDetail-Aw5EeYPI.js → ItemDetail-BV4sONxK.js} +1 -1
- package/_assets/LazyEmoteControls-HUINIOWX.js +2 -0
- package/_assets/{LoadMore-CWOcL7-R.js → LoadMore-VDZeuABQ.js} +1 -1
- package/_assets/{ManaPricingBanner.styles-9rG2J5jf.js → ManaPricingBanner.styles-P45QsV85.js} +1 -1
- package/_assets/{MyAssets-BUD8t5K1.js → MyAssets-DcczsFFh.js} +2 -2
- package/_assets/{MyFavorites-C4-JhNjZ.js → MyFavorites-DQXL_PLr.js} +1 -1
- package/_assets/{NetworkUtil-Bj4dy73o.js → NetworkUtil-wKfGQm77.js} +1 -1
- package/_assets/{NotFound-CG1KO7xT.js → NotFound-zfDQh5PT.js} +1 -1
- package/_assets/{NotificationsBell-BsUCxrEm.js → NotificationsBell-3gAYVg8C.js} +1 -1
- package/_assets/{OutfitDetail-uGWxg-j2.js → OutfitDetail-DVAkyalp.js} +1 -1
- package/_assets/{OutfitPreview-D2fEID3k.js → OutfitPreview-C_I21E1H.js} +1 -1
- package/_assets/{OutfitStudio-BtcNDXsS.js → OutfitStudio-DpmY5qla.js} +1 -1
- package/_assets/{StoreSettings-DgR8kapL.js → StoreSettings-BxBZVoTo.js} +21 -21
- package/_assets/{Success-D2k8YVGQ.js → Success-m6Pz5SLi.js} +1 -1
- package/_assets/{SwapController-Cugeklr7.js → SwapController-DC6FV64H.js} +1 -1
- package/_assets/{Tooltip-Crq74Yk1.js → Tooltip-7RBgiOhJ.js} +1 -1
- package/_assets/{TradeService-BF-TBU32.js → TradeService-D7iERxs7.js} +1 -1
- package/_assets/{W3MFrameProviderSingleton-B32zOdWK.js → W3MFrameProviderSingleton-BX5i5zB5.js} +3 -3
- package/_assets/{WebCryptoP256-BCgTqIAD.js → WebCryptoP256-CswFThLL.js} +1 -1
- package/_assets/{authorizations-hJkxcnlY.js → authorizations-xMkPvvjF.js} +1 -1
- package/_assets/{basic-Q439CW_S.js → basic-Ds0dGCa2.js} +1 -1
- package/_assets/{biconomy-BsrQT-jW.js → biconomy-BJusvAnA.js} +1 -1
- package/_assets/{builder-CwiQ4DZP.js → builder-9e7esvMB.js} +1 -1
- package/_assets/{buy-gasless-Ce4W7rkQ.js → buy-gasless-Upx9mueH.js} +1 -1
- package/_assets/{buy-BufCe-jB.js → buy-kraR4aMZ.js} +1 -1
- package/_assets/{categories-Daeah9jY.js → categories-BfA8_KJ7.js} +1 -1
- package/_assets/{ccip-Bjd61y2d.js → ccip-CfYrZarP.js} +1 -1
- package/_assets/{ccip-CkvN4cy3.js → ccip-yqY6BD2O.js} +1 -1
- package/_assets/{chains-CT4rY2Dl.js → chains-6Ifznsas.js} +1 -1
- package/_assets/{collectionPage.styles-c51u5sBI.js → collectionPage.styles-C9j7wSby.js} +6 -6
- package/_assets/{common-CBJkiZuG.js → common--ChyYHZo.js} +1 -1
- package/_assets/{controller-Drr-zqI0.js → controller-DiMfykYk.js} +2 -2
- package/_assets/{core-T9VWkzal.js → core-SmBUByfu.js} +4 -4
- package/_assets/{createSvgIcon-BUNycQ7O.js → createSvgIcon-AK8piVy_.js} +1 -1
- package/_assets/{custom-B-yfwqNO.js → custom-BBBbWLeL.js} +1 -1
- package/_assets/{data-capture-CnAKe3GD.js → data-capture-B2_tGgB7.js} +1 -1
- package/_assets/{decimals-D78gtlm7.js → decimals-DkevB2WX.js} +1 -1
- package/_assets/decimals-G-JtEu1Q.js +1 -0
- package/_assets/{detectExtension-DdzKJuxz.js → detectExtension-COhMq9sE.js} +1 -1
- package/_assets/{email-Dh44BYbJ.js → email-CRUx9Can.js} +1 -1
- package/_assets/{embedded-wallet-K1rjcsUE.js → embedded-wallet-D7X3A62W.js} +1 -1
- package/_assets/{emotion-styled.browser.esm-BB594k_t.js → emotion-styled.browser.esm-Co12iU6P.js} +1 -1
- package/_assets/{engine-DLlN9N1e.js → engine-Cd0RjI4B.js} +1 -1
- package/_assets/{errors-X12fPjsF.js → errors-DGBfq9F-.js} +1 -1
- package/_assets/{estimate-l1-fee-DQEWUbn7.js → estimate-l1-fee-BeOXoT2T.js} +1 -1
- package/_assets/{eth_estimateGas-BlvaHHP6.js → eth_estimateGas-YshWewsW.js} +1 -1
- package/_assets/{eth_getStorageAt-BnlbpEeM.js → eth_getStorageAt-vWdlTg_C.js} +1 -1
- package/_assets/{eth_getTransactionCount-wa7Lg-Bw.js → eth_getTransactionCount-BJDSuFpI.js} +1 -1
- package/_assets/{ethereum-D6hcrVKr.js → ethereum-DwkEraTN.js} +1 -1
- package/_assets/{ethers-BW12Sk6C.js → ethers-CFWbjvmu.js} +1 -1
- package/_assets/{execute-CnzbuAor.js → execute-MyT55RH7.js} +2 -2
- package/_assets/{extractIPFS-DZpRWJUo.js → extractIPFS-Du-gmjy5.js} +1 -1
- package/_assets/{features-CVWY4Y16.js → features-DpeURfEv.js} +1 -1
- package/_assets/{fetchTokenMetadata-Cv4i3eUm.js → fetchTokenMetadata-qf4awNO0.js} +2 -2
- package/_assets/{field.styles-C4ptqp5d.js → field.styles-CLkA7aXy.js} +1 -1
- package/_assets/{get-bytecode-CJQVu_Sy.js → get-bytecode-D0Y5xfwK.js} +1 -1
- package/_assets/get-ecosystem-wallet-info-BSwGvk5S.js +1 -0
- package/_assets/{getBalance-DFbuu6jU.js → getBalance-BZHQLuI9.js} +2 -2
- package/_assets/{getInstalledModules-DELpVjJN.js → getInstalledModules-gU0ZuL3I.js} +1 -1
- package/_assets/{getNFT-C_gk9oBP.js → getNFT-ChoI1pvl.js} +2 -2
- package/_assets/getNFT-Drl9pNtz.js +1 -0
- package/_assets/{grid.styles-rSbKZ0v1.js → grid.styles-6Swsp3t3.js} +1 -1
- package/_assets/{hashTypedData-BcHyl6VZ.js → hashTypedData-C6DKF7hk.js} +1 -1
- package/_assets/{hashTypedData-DsCdFFSj.js → hashTypedData-LqqzK45m.js} +1 -1
- package/_assets/{in-app-ASu9R97D.js → in-app-CkFPTg7k.js} +1 -1
- package/_assets/{in-app-wallet-calls-DZ3CNvzA.js → in-app-wallet-calls-BnM7OkWB.js} +1 -1
- package/_assets/{index-BDQl0sBK.js → index--0Z6_zp8.js} +1 -1
- package/_assets/{index-CYr5viwL.js → index--bI9GPO2.js} +1 -1
- package/_assets/{index-ou7_MVjV.js → index-8uMNLy-o.js} +1 -1
- package/_assets/{index-C42GIhEX.js → index-B7YMZ6Ym.js} +1 -1
- package/_assets/{index-tgZAnVTI.js → index-BBFVDtfR.js} +1 -1
- package/_assets/{index-DjZaFE0D.js → index-BKk3uJR7.js} +1 -1
- package/_assets/{index-B5HKp0Vi.js → index-BL_JhI8B.js} +1 -1
- package/_assets/{index-wPcVB-NE.js → index-BSUeL-nt.js} +2 -2
- package/_assets/{index-B4j4OZHM.js → index-BUuJYPHR.js} +1 -1
- package/_assets/{index-Bey_ceBS.js → index-BbDNwMJ5.js} +1 -1
- package/_assets/{index-DCUosWWt.js → index-BmjCQO-4.js} +1 -1
- package/_assets/{index-j-I68K_j.js → index-Bo6A_sYw.js} +1 -1
- package/_assets/{index-Br_8qIDa.js → index-Br7Yze9C.js} +1 -1
- package/_assets/{index-CW4tU326.js → index-BuEByVaA.js} +1 -1
- package/_assets/{index-BM1ICnW9.js → index-BwoeM8sn.js} +1 -1
- package/_assets/{index-VoG2nd6o.js → index-ByqY4FwM.js} +1 -1
- package/_assets/{index-l-kM20sQ.js → index-C2er2WPk.js} +1 -1
- package/_assets/{index-BT9sShn9.js → index-C9H380nx.js} +1 -1
- package/_assets/{index-GyBz3V-v.js → index-CAIqRpnz.js} +1 -1
- package/_assets/{index-BY2CCydA.js → index-CAnHijD-.js} +2 -2
- package/_assets/{index-4l5lQG6P.js → index-CFS2vjXp.js} +12 -12
- package/_assets/{index-C4q1AOAT.js → index-CMDNqOvK.js} +1 -1
- package/_assets/{index-6xyHFGDx.js → index-CWol5wN7.js} +1 -1
- package/_assets/{index-D-o8XxwM.js → index-C_CYYu7f.js} +1 -1
- package/_assets/{index-CBUEDYhH.js → index-CajVN0yY.js} +1 -1
- package/_assets/{index-DwgAiRxn.js → index-Cbiugi30.js} +1 -1
- package/_assets/{index-DPp-ESea.js → index-CfAOFjSl.js} +1 -1
- package/_assets/{index-BpBNDR7U.js → index-Ck4AIO_P.js} +1 -1
- package/_assets/{index-BtA0WZKk.js → index-CkUWZPNB.js} +1 -1
- package/_assets/{index-B7MTfURE.js → index-Cmn5nrw7.js} +1 -1
- package/_assets/{index-smN0JdKJ.js → index-CoR4vPFU.js} +1 -1
- package/_assets/{index-DFub6yV4.js → index-CrWnxBYL.js} +1 -1
- package/_assets/{index-Cbkq3v8Q.js → index-CwmFt9PN.js} +1 -1
- package/_assets/{index-Dd_cpmzS.js → index-D0GrKU0x.js} +3 -3
- package/_assets/{index-D61v6G1k.js → index-D2MuA3CK.js} +1 -1
- package/_assets/{index-DzXDBt2v.js → index-D3sAnLsf.js} +1 -1
- package/_assets/{index-DvIRIwYS.js → index-D4GSAwab.js} +1 -1
- package/_assets/{index-Bd_k4IIg.js → index-DAHoW_y1.js} +1 -1
- package/_assets/{index-BrMDkuYR.js → index-DFVt1AdC.js} +1 -1
- package/_assets/{index-Bm4ND0ad.js → index-DLKLxvW_.js} +1 -1
- package/_assets/{index-CFa_f09j.js → index-DTKLOkHB.js} +1 -1
- package/_assets/{index-DtKJjd3G.js → index-DVZX_gjd.js} +1 -1
- package/_assets/{index-V1R0ZrK8.js → index-Dd4uk9U8.js} +1 -1
- package/_assets/{index-ClPGOmky.js → index-Ddxekr4f.js} +2 -2
- package/_assets/{index-gKCSgSoz.js → index-Di534FL9.js} +1 -1
- package/_assets/{index-DNsqNhGy.js → index-Dm2buwQD.js} +1 -1
- package/_assets/{index-CvtTLzrw.js → index-DsuP5G5w.js} +1 -1
- package/_assets/{index-BAaRF1Kt.js → index-Dvlzhr1J.js} +3 -3
- package/_assets/{index-DG5pCQ1l.js → index-Dwu4qBLC.js} +2 -2
- package/_assets/{index-B3t0Akyi.js → index-I2JVBcar.js} +1 -1
- package/_assets/{index-C90fpqFv.js → index-RCawaz2-.js} +1 -1
- package/_assets/{index-CpstG8j_.js → index-Ud3y_NvU.js} +1 -1
- package/_assets/{index-OnR82uEt.js → index-X-ZabhTM.js} +1 -1
- package/_assets/{index-BTLnCH8f.js → index-ZBsQBJN0.js} +1 -1
- package/_assets/{index-BST4drMR.js → index-cUcyE7jy.js} +1 -1
- package/_assets/{index-iA_-wyby.js → index-d4jfsTKe.js} +1 -1
- package/_assets/{index-CZynYiAt.js → index-fixOjPYd.js} +1 -1
- package/_assets/{index-N3BoWSGy.js → index-hvg5vVrJ.js} +1 -1
- package/_assets/{index-BAq41SqM.js → index-ilWcbkqI.js} +1 -1
- package/_assets/{index-DHimBJeb.js → index-k-j1bELr.js} +3 -3
- package/_assets/{index-BuhEnsVy.js → index-qnAZZfkH.js} +1 -1
- package/_assets/{index-Bsu-4fMn.js → index-y3SpZLfc.js} +1 -1
- package/_assets/{index.es-B_FpSEI8.js → index.es-A50BSm7x.js} +1 -1
- package/_assets/{index.es-9addtGV6.js → index.es-CVnMIH4S.js} +4 -4
- package/_assets/{index.es-o1twLNBp.js → index.es-Cm-4-zUk.js} +1 -1
- package/_assets/{linkAccount-DbSkR5qI.js → linkAccount-NmFxiPPR.js} +1 -1
- package/_assets/{localBatchGatewayRequest-Ce2qdeYU.js → localBatchGatewayRequest-DhHc8Vrr.js} +1 -1
- package/_assets/{native-DP1zuDzq.js → native-2gXXvJVn.js} +1 -1
- package/_assets/{networks-GHAOIb1u.js → networks-cDO6eERp.js} +1 -1
- package/_assets/{onramp-ChGRuE_I.js → onramp-BnqF4EGs.js} +1 -1
- package/_assets/{openzeppelin-BpVt2ax-.js → openzeppelin-CsMwzBJR.js} +1 -1
- package/_assets/{ownerOf-D3oh4dw9.js → ownerOf-DpCf2F7F.js} +1 -1
- package/_assets/{parseNft-CpHXr1f9.js → parseNft-B-t2mQ4R.js} +2 -2
- package/_assets/{parseSignature-Biy-M_Ls.js → parseSignature-BVzpg-v_.js} +3 -3
- package/_assets/{parseSignature-CkpIuMXG.js → parseSignature-COpZXTjT.js} +1 -1
- package/_assets/{passkeys-Bzya5Xwz.js → passkeys-B9lzQRWH.js} +1 -1
- package/_assets/{pay-with-exchange-DJvHsdHS.js → pay-with-exchange-DE0dnRUc.js} +1 -1
- package/_assets/{prepare-contract-call-CCknEo7R.js → prepare-contract-call-D5d4zOA2.js} +1 -1
- package/_assets/{qr-overlay-CiuMbJzl.js → qr-overlay-pg0BNduP.js} +1 -1
- package/_assets/{receive-BUDrQ_j7.js → receive-CblBJppO.js} +1 -1
- package/_assets/{resolveImplementation-CmrD7-Qy.js → resolveImplementation-B-hz-9Uc.js} +1 -1
- package/_assets/{rpc-BuSBKN7B.js → rpc-DkX1UUTP.js} +1 -1
- package/_assets/{secp256k1-C7HcLsFI.js → secp256k1-CxenCQb0.js} +1 -1
- package/_assets/{secp256k1-Bgx_ahIh.js → secp256k1-Dpno3_Km.js} +1 -1
- package/_assets/{secp256k1-DqvSFleR.js → secp256k1-Dw3YB3q9.js} +1 -1
- package/_assets/{send-BH9IbnPj.js → send-BOKqFIEn.js} +1 -1
- package/_assets/{send-batch-transaction-C8_wxAl6.js → send-batch-transaction-iSv6ZMsV.js} +1 -1
- package/_assets/{send-eip712-transaction-DTqP7bXj.js → send-eip712-transaction-BqWfh1rK.js} +2 -2
- package/_assets/send-gasless-transaction-DTZLcnjw.js +2 -0
- package/_assets/{send-transaction-CBeHX_MY.js → send-transaction-BKIxumNA.js} +2 -2
- package/_assets/{sendMetaTransaction-CAjsqDgk.js → sendMetaTransaction-Clf7D2IU.js} +1 -1
- package/_assets/{sendRawTransaction-B1_XLL_b.js → sendRawTransaction-BMOBsy0b.js} +3 -3
- package/_assets/{sentry-CSXKq8As.js → sentry-DfofRafD.js} +1 -1
- package/_assets/{serializeTransaction-Cy2l29rW.js → serializeTransaction-BipaBHsG.js} +1 -1
- package/_assets/{session-proposal-CQXFswbd.js → session-proposal-D0HzdF_d.js} +1 -1
- package/_assets/{session-request-D1aaTCYR.js → session-request-B2Z9A_3c.js} +2 -2
- package/_assets/{sha256-BSj1fVMj.js → sha256-ByLhf2PT.js} +1 -1
- package/_assets/{signing-CjfMxOl5.js → signing-CvylLaqM.js} +3 -3
- package/_assets/{skeleton.styles-aYFCDYET.js → skeleton.styles-fSgRe9xD.js} +1 -1
- package/_assets/{socials-D6cE3xEM.js → socials-Ca42o6Qq.js} +1 -1
- package/_assets/{styled-BG3p97YR.js → styled-A45sAn4i.js} +1 -1
- package/_assets/{swaps-CHmAzwqq.js → swaps-BSg8WlDN.js} +1 -1
- package/_assets/{thirdweb-DnrIo8LX.js → thirdweb-421iVdzN.js} +3 -3
- package/_assets/{to-serializable-transaction-BJo6e6cC.js → to-serializable-transaction-DZlbgvvK.js} +2 -2
- package/_assets/{totalSupply-BHy3jN3T.js → totalSupply-CT13XPT-.js} +1 -1
- package/_assets/{transaction-EJzw2A1o.js → transaction-CnQEpfjA.js} +1 -1
- package/_assets/{transactionReceipt-Bgj48RCD.js → transactionReceipt-EO6z8fAI.js} +1 -1
- package/_assets/{transactions-B9e1qYux.js → transactions-B2W6rIJ6.js} +1 -1
- package/_assets/{useCreditPacks-DWPKNzJV.js → useCreditPacks-JmRRPKzu.js} +1 -1
- package/_assets/{useImportable-BA7ZiV_e.js → useImportable-DOUlkSU5.js} +1 -1
- package/_assets/{useInfiniteGrid-C2jLQlnX.js → useInfiniteGrid-Bg-uRUOo.js} +1 -1
- package/_assets/{useStore-Bcu8D3OM.js → useStore-CjD-7LST.js} +2 -2
- package/_assets/{useTheme-DwmRtz-q.js → useTheme-CKG4BvQX.js} +1 -1
- package/_assets/{utils-CrzpKf7A.js → utils-CpbSECBR.js} +1 -1
- package/_assets/{verifyHash-B457rphK.js → verifyHash-BYWAcNEm.js} +1 -1
- package/_assets/{w3m-modal-jpev0Y86.js → w3m-modal-BWYhTTZn.js} +1 -1
- package/_assets/{w3m-modal-Bk3PvXDz.js → w3m-modal-CEXcWnfq.js} +1 -1
- package/_assets/{wait-for-tx-receipt-B46W8tR-.js → wait-for-tx-receipt-CeC1uuWr.js} +1 -1
- package/_assets/{wallets-CAbZ_EVb.js → wallets-BWgSA3Xm.js} +5 -5
- package/_assets/{web-connector-BAFqrIFK.js → web-connector-Ct1Kzumc.js} +3 -3
- package/_assets/{writeContract-CVV87MRB.js → writeContract-BrlM0Dw_.js} +1 -1
- package/_assets/{zora-sepolia-F6QrxqAf.js → zora-sepolia-lIjvO21R.js} +1 -1
- package/_assets/{zoraTestnet-BOKqoV8O.js → zoraTestnet-C-KnQ85q.js} +1 -1
- package/index.html +11 -11
- package/package.json +2 -2
- package/_assets/Activity-DH3M_bvV.js +0 -378
- package/_assets/Cart-18jfr2ZI.js +0 -705
- package/_assets/LazyEmoteControls-BonklT4k.js +0 -2
- package/_assets/decimals-BXz32UcZ.js +0 -1
- package/_assets/get-ecosystem-wallet-info-BmsGe2JV.js +0 -1
- package/_assets/getNFT-D3eoxL4a.js +0 -1
- package/_assets/send-gasless-transaction-BYT_cS3b.js +0 -2
|
@@ -0,0 +1,378 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["_assets/index-CajVN0yY.js","_assets/react-BYHuwl8r.js","_assets/index-CFS2vjXp.js","_assets/dcl-schemas-CmtP3U6y.js","_assets/sentry-DfofRafD.js","_assets/ethers-CFWbjvmu.js","_assets/intl-CBcMB1D2.js","_assets/index-l2QjlKjX.css","_assets/useImportable-DOUlkSU5.js","_assets/buy-kraR4aMZ.js","_assets/authorizations-xMkPvvjF.js","_assets/sendMetaTransaction-Clf7D2IU.js","_assets/ManaPricingBanner.styles-P45QsV85.js","_assets/Faq-CX0NuYp9.js","_assets/field.styles-CLkA7aXy.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{q as At,bF as Et,v as O,l as A,bG as $t,t as n,s as l,x as Lt,B as Pt,y as Nt,b as r,an as Tt,I as E,bH as it,bI as st,bJ as St,_ as Ft,A as N,bK as Ct,D as Dt,aF as W,L as Mt,bL as Ht,F as $,bM as qt,bN as _}from"./index-CFS2vjXp.js";import{r as g,u as zt,j as e,L as ot,e as Rt}from"./react-BYHuwl8r.js";import{u as Ot}from"./useImportable-DOUlkSU5.js";import{L as Wt}from"./LoadMore-VDZeuABQ.js";import{u as L}from"./useInfiniteGrid-Bg-uRUOo.js";import{m as dt}from"./mana-matic-C4e1sNO3.js";import"./dcl-schemas-CmtP3U6y.js";import"./sentry-DfofRafD.js";import"./ethers-CFWbjvmu.js";import"./intl-CBcMB1D2.js";import"./buy-kraR4aMZ.js";import"./authorizations-xMkPvvjF.js";import"./sendMetaTransaction-Clf7D2IU.js";const _t=15e3;function Gt(t,s){return t.txHash&&s.txHash?t.txHash===s.txHash:t.txHash||s.txHash?!1:t.status===s.status&&Math.abs(t.createdAt-s.createdAt)<=_t}function Ut(t){const s=[...t].sort((i,d)=>d.createdAt-i.createdAt),a=[];for(const i of s){const d=a[a.length-1];d&&Gt(d[d.length-1],i)?d.push(i):a.push([i])}return a.map(i=>{var d;return{id:((d=i.find(o=>o.txHash))==null?void 0:d.txHash)??i[i.length-1].id,createdAt:Math.max(...i.map(o=>o.createdAt)),status:Bt(i),totalCredits:i.reduce((o,h)=>o+h.credits,0),lines:i}})}function Bt(t){return t.some(s=>s.status==="PENDING")?"PENDING":t.some(s=>s.status==="SETTLED")?"SETTLED":"EXPIRED"}function Kt(t){return t==="SETTLED"?"SETTLED":t==="EXPIRED"?"FAILED":"PENDING"}function Qt(t){return t.tradeId?`trade:${t.tradeId}`:t.contractAddress&&t.itemId?`item:${t.contractAddress.toLowerCase()}:${t.itemId}`:null}function Xt(t){const s=[],a=new Map;for(const i of t){const d=Qt(i);if(!d){s.push({key:i.id,tradeId:null,contractAddress:i.contractAddress??null,itemId:i.itemId??null,quantity:1,credits:i.credits});continue}const o=a.get(d);if(o){o.quantity+=1,o.credits+=i.credits;continue}const h={key:d,tradeId:i.tradeId,contractAddress:i.contractAddress??null,itemId:i.itemId??null,quantity:1,credits:i.credits};a.set(d,h),s.push(h)}return s}function Vt(t,s){return{id:t.id,contractAddress:t.contractAddress,tokenId:t.tokenId,itemId:t.itemId,counterparty:t.buyer,credits:s?At(t.manaWei,s):null,manaWei:t.manaWei,createdAt:t.createdAt,txHash:t.txHash}}function Yt(t){return t.status!=="EXPIRED"||!!t.submittedTxHash}function Jt(t){const a=Ut(t.purchases.filter(Yt)).map(c=>({kind:"purchase",id:`purchase:${c.id}`,createdAt:c.createdAt,order:c})),i=t.sales.map(c=>{const m=Vt(c,t.rate);return{kind:"sale",id:`sale:${m.id}`,createdAt:m.createdAt,sale:m}}),d=(t.creditOrders??[]).filter(c=>c.status!=="failed"&&c.status!=="abandoned").map(c=>({kind:"credit",id:`credit:${c.id}`,createdAt:c.createdAt,order:c})),o=new Set(t.purchases.filter(c=>c.txHash).map(c=>c.txHash.toLowerCase())),h=(t.manaPurchases??[]).filter(c=>!o.has(c.txHash.toLowerCase())).map(c=>({kind:"mana-purchase",id:`mana-purchase:${c.id}`,createdAt:c.createdAt,sale:c}));return[...a,...i,...d,...h].sort((c,m)=>m.createdAt-c.createdAt||(c.id<m.id?-1:1))}function Zt(t,s){return s==="all"?t:s==="sales"?t.filter(a=>a.kind==="sale"):t.filter(a=>a.kind==="purchase"||a.kind==="credit"||a.kind==="mana-purchase")}const ct=t=>t.trim().toLowerCase();function te(t){const s=new Map;for(const a of t??[]){const i=ct(a.txHash??"");if(!i)continue;const d=s.get(i);d?d.push(a):s.set(i,[a])}return s}function ee(t,s,a=Date.now()){const i=s.txHash?t.get(ct(s.txHash)):void 0;if(!i||i.length===0)return{kind:"direct"};const d=i.length===1?ie(i[0].netCents):null,o=i.filter(c=>!c.available&&c.availableAt>a);if(o.length===0)return{kind:"credited",credits:d};const h=o.reduce((c,m)=>Math.max(c,m.availableAt),0);return{kind:"pending",credits:d,availableAt:h}}function ie(t){return Et(t)}function se(){const t=O(i=>{var d;return(d=i.session)==null?void 0:d.address}),{data:s,isLoading:a}=A({queryKey:["listing-count",t],queryFn:()=>$t({creator:t,onSale:!0,first:1}),enabled:!!t,staleTime:5*6e4});return{count:s==null?void 0:s.total,isLoading:a}}const ne="https://cdn.decentraland.org/@dcl/shop/1.4.2-31322819328.commit-403d972/_assets/credits-product-vs4Q6u6l.svg",G=Lt`
|
|
3
|
+
0% { background-position: 200% 0; }
|
|
4
|
+
100% { background-position: -200% 0; }
|
|
5
|
+
`,ae=l.section`
|
|
6
|
+
width: 100%;
|
|
7
|
+
min-width: 0;
|
|
8
|
+
min-height: 60vh;
|
|
9
|
+
/* Centre the whole column — heading, tabs and cards as ONE block — so the feed isn't parked against
|
|
10
|
+
the left edge of a wide page. Centring only the list would leave the heading orphaned from it.
|
|
11
|
+
|
|
12
|
+
ONE width for every view. The migration tool needs 1003px (its row is a thumbnail, a name and a
|
|
13
|
+
144px price field; narrower, the price field drops to its own line on a desktop), and the feed used
|
|
14
|
+
to sit at 760px — so switching chips resized the heading and the whole column under it, which reads
|
|
15
|
+
as the page reloading rather than as a filter changing. */
|
|
16
|
+
max-width: 1003px;
|
|
17
|
+
margin-inline: auto;
|
|
18
|
+
`,re=l.div`
|
|
19
|
+
display: flex;
|
|
20
|
+
align-items: baseline;
|
|
21
|
+
gap: 12px;
|
|
22
|
+
margin-bottom: 20px;
|
|
23
|
+
`,oe=l.h1`
|
|
24
|
+
font-family: ${n.font.sans};
|
|
25
|
+
margin: 0;
|
|
26
|
+
color: ${n.colors.softWhite};
|
|
27
|
+
`;l.span`
|
|
28
|
+
color: ${n.colors.gray4};
|
|
29
|
+
font-size: 14px;
|
|
30
|
+
`;const de=l.div`
|
|
31
|
+
display: flex;
|
|
32
|
+
gap: 8px;
|
|
33
|
+
margin-bottom: 20px;
|
|
34
|
+
flex-wrap: wrap;
|
|
35
|
+
`,lt=l.button`
|
|
36
|
+
appearance: none;
|
|
37
|
+
/* Figma 2275:294685 / 294707: a translucent white pill that fills SOFT-WHITE when it is the one you
|
|
38
|
+
are on, with no border in either state — the outline this used to carry made the selected chip read
|
|
39
|
+
as a control with a stuck focus ring on it. */
|
|
40
|
+
border: 0;
|
|
41
|
+
background: ${n.colors.glass};
|
|
42
|
+
color: ${n.colors.white};
|
|
43
|
+
font-family: ${n.font.sans};
|
|
44
|
+
font-size: 13px;
|
|
45
|
+
font-weight: 600;
|
|
46
|
+
line-height: 24px;
|
|
47
|
+
letter-spacing: 0.46px;
|
|
48
|
+
/* The design gives the pill a flat 40px and no vertical padding, centring the 24px line box inside
|
|
49
|
+
it — so the height is the 40 it draws rather than the sum of a line box, padding and a border. */
|
|
50
|
+
display: inline-flex;
|
|
51
|
+
align-items: center;
|
|
52
|
+
justify-content: center;
|
|
53
|
+
padding: 0 16px;
|
|
54
|
+
min-height: 40px;
|
|
55
|
+
border-radius: ${n.radius.pill};
|
|
56
|
+
cursor: pointer;
|
|
57
|
+
transition:
|
|
58
|
+
background 0.15s,
|
|
59
|
+
color 0.15s;
|
|
60
|
+
|
|
61
|
+
&:hover {
|
|
62
|
+
background: ${n.colors.glassHover};
|
|
63
|
+
}
|
|
64
|
+
/* Inset, so a keyboard ring never reads as part of the pill's own shape the way an offset one did. */
|
|
65
|
+
&:focus-visible {
|
|
66
|
+
outline: 2px solid ${n.colors.white};
|
|
67
|
+
outline-offset: -2px;
|
|
68
|
+
}
|
|
69
|
+
&[data-active='true'] {
|
|
70
|
+
background: ${n.colors.softWhite};
|
|
71
|
+
color: ${n.colors.text};
|
|
72
|
+
}
|
|
73
|
+
&[data-active='true']:hover {
|
|
74
|
+
background: ${n.colors.white};
|
|
75
|
+
}
|
|
76
|
+
&[data-active='true']:focus-visible {
|
|
77
|
+
outline-color: ${n.colors.text};
|
|
78
|
+
}
|
|
79
|
+
`,ce=l(lt)`
|
|
80
|
+
position: relative;
|
|
81
|
+
`,le=l.span`
|
|
82
|
+
position: absolute;
|
|
83
|
+
/* The 5.5 / 2.5 the design measures from the pill's outer edge. The chip has no border now, so its
|
|
84
|
+
padding box IS that edge and the offsets no longer carry a hairline's worth on top. */
|
|
85
|
+
top: -5.5px;
|
|
86
|
+
right: -2.5px;
|
|
87
|
+
display: grid;
|
|
88
|
+
place-items: center;
|
|
89
|
+
/* The chip's tracking would otherwise widen the disc off its 20px. */
|
|
90
|
+
letter-spacing: normal;
|
|
91
|
+
/* Figma only ever draws a single digit, as a fixed 20px disc. The padding is what lets a two- or
|
|
92
|
+
three-figure count grow leftwards out of the corner instead of spilling out of the circle. */
|
|
93
|
+
min-width: 20px;
|
|
94
|
+
height: 20px;
|
|
95
|
+
padding: 0 6px;
|
|
96
|
+
border-radius: ${n.radius.pill};
|
|
97
|
+
background: ${n.colors.dclRed};
|
|
98
|
+
/* No ring: the red separates itself from both surfaces the disc straddles (the chip and the page), and
|
|
99
|
+
the design draws the circle bare. */
|
|
100
|
+
font-weight: 600;
|
|
101
|
+
font-size: 12px;
|
|
102
|
+
line-height: 1.6;
|
|
103
|
+
color: ${n.colors.white};
|
|
104
|
+
`,ue=l.div`
|
|
105
|
+
min-height: 60vh;
|
|
106
|
+
`,nt=l.div`
|
|
107
|
+
display: flex;
|
|
108
|
+
flex-direction: column;
|
|
109
|
+
gap: 16px;
|
|
110
|
+
`,T=l.div`
|
|
111
|
+
background: ${n.colors.white};
|
|
112
|
+
border: 1px solid ${n.colors.line};
|
|
113
|
+
border-radius: 16px;
|
|
114
|
+
overflow: hidden;
|
|
115
|
+
`,S=l.div`
|
|
116
|
+
display: flex;
|
|
117
|
+
align-items: center;
|
|
118
|
+
justify-content: space-between;
|
|
119
|
+
gap: 12px;
|
|
120
|
+
padding: 14px 18px;
|
|
121
|
+
background: ${n.colors.softWhite};
|
|
122
|
+
border-bottom: 1px solid ${n.colors.line};
|
|
123
|
+
|
|
124
|
+
${n.media.maxWidth("mobile")} {
|
|
125
|
+
flex-wrap: wrap;
|
|
126
|
+
}
|
|
127
|
+
`,F=l.div`
|
|
128
|
+
display: flex;
|
|
129
|
+
flex-direction: column;
|
|
130
|
+
gap: 2px;
|
|
131
|
+
min-width: 0;
|
|
132
|
+
`,C=l.span`
|
|
133
|
+
font-weight: 700;
|
|
134
|
+
color: ${n.colors.text};
|
|
135
|
+
`,D=l.span`
|
|
136
|
+
font-size: 13px;
|
|
137
|
+
color: ${n.colors.muted};
|
|
138
|
+
`,M=l.div`
|
|
139
|
+
display: flex;
|
|
140
|
+
align-items: center;
|
|
141
|
+
gap: 14px;
|
|
142
|
+
/* Pin to the right regardless of how many elements sit on the left (the credit-purchase card adds a
|
|
143
|
+
leading thumbnail, giving the head three children instead of two). */
|
|
144
|
+
margin-left: auto;
|
|
145
|
+
`,he=l.div`
|
|
146
|
+
flex: 0 0 auto;
|
|
147
|
+
width: 52px;
|
|
148
|
+
height: 52px;
|
|
149
|
+
border-radius: 10px;
|
|
150
|
+
background: ${n.colors.media};
|
|
151
|
+
display: flex;
|
|
152
|
+
align-items: center;
|
|
153
|
+
justify-content: center;
|
|
154
|
+
|
|
155
|
+
img {
|
|
156
|
+
width: 30px;
|
|
157
|
+
height: 30px;
|
|
158
|
+
display: block;
|
|
159
|
+
}
|
|
160
|
+
`,H=l.span`
|
|
161
|
+
font-size: 11px;
|
|
162
|
+
font-weight: 700;
|
|
163
|
+
text-transform: uppercase;
|
|
164
|
+
letter-spacing: 0.03em;
|
|
165
|
+
padding: 4px 10px;
|
|
166
|
+
border-radius: ${n.radius.pill};
|
|
167
|
+
white-space: nowrap;
|
|
168
|
+
|
|
169
|
+
&[data-status='SETTLED'] {
|
|
170
|
+
background: rgba(30, 166, 114, 0.14);
|
|
171
|
+
color: ${n.colors.okStrong};
|
|
172
|
+
}
|
|
173
|
+
&[data-status='PENDING'] {
|
|
174
|
+
background: rgba(245, 166, 35, 0.16);
|
|
175
|
+
color: #b5790a;
|
|
176
|
+
}
|
|
177
|
+
&[data-status='SOLD'] {
|
|
178
|
+
background: rgba(103, 58, 183, 0.14);
|
|
179
|
+
color: ${n.colors.accent};
|
|
180
|
+
}
|
|
181
|
+
&[data-status='FAILED'] {
|
|
182
|
+
background: rgba(214, 61, 61, 0.14);
|
|
183
|
+
color: #b02a2a;
|
|
184
|
+
}
|
|
185
|
+
/* Nobody paid and nobody is owed anything — deliberately the quietest of the four. Reusing PENDING's
|
|
186
|
+
amber here is what made an abandoned checkout look like money on its way. */
|
|
187
|
+
&[data-status='UNFINISHED'] {
|
|
188
|
+
background: ${n.colors.line};
|
|
189
|
+
color: ${n.colors.muted};
|
|
190
|
+
}
|
|
191
|
+
`,pe=l.button`
|
|
192
|
+
font-size: 11px;
|
|
193
|
+
font-weight: 700;
|
|
194
|
+
text-transform: uppercase;
|
|
195
|
+
letter-spacing: 0.03em;
|
|
196
|
+
padding: 4px 10px;
|
|
197
|
+
border-radius: ${n.radius.pill};
|
|
198
|
+
white-space: nowrap;
|
|
199
|
+
border: 1px solid ${n.colors.accent};
|
|
200
|
+
background: transparent;
|
|
201
|
+
color: ${n.colors.accent};
|
|
202
|
+
cursor: pointer;
|
|
203
|
+
transition: background 0.15s ease;
|
|
204
|
+
|
|
205
|
+
&:hover:not(:disabled) {
|
|
206
|
+
background: rgba(103, 58, 183, 0.08);
|
|
207
|
+
}
|
|
208
|
+
&:disabled {
|
|
209
|
+
opacity: 0.6;
|
|
210
|
+
cursor: default;
|
|
211
|
+
}
|
|
212
|
+
`,w=l.div`
|
|
213
|
+
display: flex;
|
|
214
|
+
align-items: center;
|
|
215
|
+
gap: 5px;
|
|
216
|
+
font-weight: 800;
|
|
217
|
+
color: ${n.colors.text};
|
|
218
|
+
white-space: nowrap;
|
|
219
|
+
|
|
220
|
+
.ccy-mark {
|
|
221
|
+
width: 16px;
|
|
222
|
+
height: 16px;
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
// Money received (a sale) reads as income in the shop's success green.
|
|
226
|
+
&[data-kind='income'] {
|
|
227
|
+
color: ${n.colors.okStrong};
|
|
228
|
+
}
|
|
229
|
+
`,ut=l.img`
|
|
230
|
+
width: 16px;
|
|
231
|
+
height: 16px;
|
|
232
|
+
vertical-align: -0.15em;
|
|
233
|
+
`,me=l.span`
|
|
234
|
+
display: inline-flex;
|
|
235
|
+
align-items: center;
|
|
236
|
+
cursor: pointer;
|
|
237
|
+
`,xe=l.span`
|
|
238
|
+
position: fixed;
|
|
239
|
+
transform: translateX(-50%);
|
|
240
|
+
padding: 6px 8px;
|
|
241
|
+
border-radius: 6px;
|
|
242
|
+
background: #16141a;
|
|
243
|
+
color: ${n.colors.white};
|
|
244
|
+
font-size: 12px;
|
|
245
|
+
font-weight: 600;
|
|
246
|
+
line-height: 1;
|
|
247
|
+
white-space: nowrap;
|
|
248
|
+
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
|
|
249
|
+
pointer-events: none;
|
|
250
|
+
z-index: 9999;
|
|
251
|
+
`,ge=l.p`
|
|
252
|
+
margin: 0;
|
|
253
|
+
/* 18px sides to sit on the same rail as CardHead and Line; no bottom, since Line brings its own 12px. */
|
|
254
|
+
padding: 12px 18px 0;
|
|
255
|
+
font-size: 13px;
|
|
256
|
+
line-height: 1.45;
|
|
257
|
+
color: ${n.colors.muted};
|
|
258
|
+
`,U=l.div`
|
|
259
|
+
display: flex;
|
|
260
|
+
flex-direction: column;
|
|
261
|
+
`,q=l.div`
|
|
262
|
+
display: grid;
|
|
263
|
+
grid-template-columns: 52px 1fr auto;
|
|
264
|
+
align-items: center;
|
|
265
|
+
gap: 14px;
|
|
266
|
+
padding: 12px 18px;
|
|
267
|
+
text-decoration: none;
|
|
268
|
+
color: inherit;
|
|
269
|
+
|
|
270
|
+
& + & {
|
|
271
|
+
border-top: 1px solid ${n.colors.line};
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
&[data-link='true'] {
|
|
275
|
+
transition: background 0.15s;
|
|
276
|
+
}
|
|
277
|
+
&[data-link='true']:hover {
|
|
278
|
+
background: ${n.colors.media};
|
|
279
|
+
}
|
|
280
|
+
&[data-link='true']:focus-visible {
|
|
281
|
+
outline: 2px solid ${n.colors.accent};
|
|
282
|
+
outline-offset: -2px;
|
|
283
|
+
}
|
|
284
|
+
`,B=l.div`
|
|
285
|
+
width: 52px;
|
|
286
|
+
height: 52px;
|
|
287
|
+
border-radius: 10px;
|
|
288
|
+
background: ${n.colors.media};
|
|
289
|
+
overflow: hidden;
|
|
290
|
+
display: flex;
|
|
291
|
+
align-items: center;
|
|
292
|
+
justify-content: center;
|
|
293
|
+
color: ${n.colors.muted2};
|
|
294
|
+
|
|
295
|
+
img {
|
|
296
|
+
width: 100%;
|
|
297
|
+
height: 100%;
|
|
298
|
+
object-fit: contain;
|
|
299
|
+
}
|
|
300
|
+
`,K=l.div`
|
|
301
|
+
width: 52px;
|
|
302
|
+
height: 52px;
|
|
303
|
+
border-radius: 10px;
|
|
304
|
+
background: linear-gradient(100deg, ${n.colors.media} 30%, ${n.colors.panel} 50%, ${n.colors.media} 70%);
|
|
305
|
+
background-size: 200% 100%;
|
|
306
|
+
animation: ${G} 1.3s infinite linear;
|
|
307
|
+
|
|
308
|
+
@media (prefers-reduced-motion: reduce) {
|
|
309
|
+
animation: none;
|
|
310
|
+
}
|
|
311
|
+
`,Q=l.div`
|
|
312
|
+
min-width: 0;
|
|
313
|
+
display: flex;
|
|
314
|
+
flex-direction: column;
|
|
315
|
+
gap: 2px;
|
|
316
|
+
`,X=l.span`
|
|
317
|
+
font-weight: 700;
|
|
318
|
+
white-space: nowrap;
|
|
319
|
+
overflow: hidden;
|
|
320
|
+
text-overflow: ellipsis;
|
|
321
|
+
`,V=l.span`
|
|
322
|
+
display: inline-block;
|
|
323
|
+
width: 140px;
|
|
324
|
+
max-width: 60%;
|
|
325
|
+
height: 12px;
|
|
326
|
+
border-radius: 6px;
|
|
327
|
+
background: linear-gradient(100deg, ${n.colors.media} 30%, ${n.colors.panel} 50%, ${n.colors.media} 70%);
|
|
328
|
+
background-size: 200% 100%;
|
|
329
|
+
animation: ${G} 1.3s infinite linear;
|
|
330
|
+
|
|
331
|
+
@media (prefers-reduced-motion: reduce) {
|
|
332
|
+
animation: none;
|
|
333
|
+
}
|
|
334
|
+
`,Y=l.span`
|
|
335
|
+
font-size: 13px;
|
|
336
|
+
color: ${n.colors.muted};
|
|
337
|
+
`,fe=l.div`
|
|
338
|
+
display: flex;
|
|
339
|
+
align-items: center;
|
|
340
|
+
gap: 4px;
|
|
341
|
+
font-weight: 700;
|
|
342
|
+
color: ${n.colors.text};
|
|
343
|
+
white-space: nowrap;
|
|
344
|
+
|
|
345
|
+
.ccy-mark {
|
|
346
|
+
width: 14px;
|
|
347
|
+
height: 14px;
|
|
348
|
+
}
|
|
349
|
+
`,at=l.div`
|
|
350
|
+
height: 132px;
|
|
351
|
+
border-radius: 16px;
|
|
352
|
+
border: 1px solid transparent;
|
|
353
|
+
background: linear-gradient(100deg, ${n.colors.media} 30%, ${n.colors.panel} 50%, ${n.colors.media} 70%);
|
|
354
|
+
background-size: 200% 100%;
|
|
355
|
+
animation: ${G} 1.3s infinite linear;
|
|
356
|
+
|
|
357
|
+
@media (prefers-reduced-motion: reduce) {
|
|
358
|
+
animation: none;
|
|
359
|
+
}
|
|
360
|
+
`,ht=l.div`
|
|
361
|
+
display: flex;
|
|
362
|
+
flex-direction: column;
|
|
363
|
+
align-items: center;
|
|
364
|
+
gap: 8px;
|
|
365
|
+
text-align: center;
|
|
366
|
+
padding: 90px 20px;
|
|
367
|
+
min-height: 50vh;
|
|
368
|
+
color: ${n.colors.softWhite};
|
|
369
|
+
`,pt=l.p`
|
|
370
|
+
font-size: 22px;
|
|
371
|
+
font-weight: 700;
|
|
372
|
+
margin: 6px 0 0;
|
|
373
|
+
`,mt=l.p`
|
|
374
|
+
margin: 0;
|
|
375
|
+
color: ${n.colors.softWhite};
|
|
376
|
+
`,ye=l(Pt)`
|
|
377
|
+
margin-top: 12px;
|
|
378
|
+
`,J=q.withComponent(ot),be=g.lazy(()=>Ft(()=>import("./index-CajVN0yY.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14])).then(t=>({default:t.ImportListings}))),P=24,ve=["all","purchases","sales"],z="section",rt="listings",R="view",je="migrate";function I(t){try{return new Date(t).toLocaleDateString(void 0,{year:"numeric",month:"short",day:"numeric"})}catch{return""}}function xt(t){return t.length>10?`${t.slice(0,6)}…${t.slice(-4)}`:t}function gt(t){const s=Number(t)/1e18;return Number.isFinite(s)?s.toLocaleString("en",{maximumFractionDigits:2}):"0"}function ft({children:t}){const s=g.useRef(null),[a,i]=g.useState(null),d=()=>{var h;const o=(h=s.current)==null?void 0:h.getBoundingClientRect();o&&i({top:o.bottom+8,left:o.left+o.width/2})};return e.jsxs(me,{ref:s,tabIndex:0,onMouseEnter:d,onMouseLeave:()=>i(null),onFocus:d,onBlur:()=>i(null),children:[t,a?Rt.createPortal(e.jsx(xe,{style:{top:a.top,left:a.left},role:"tooltip",children:r("activity.polygonMana")}),document.body):null]})}function we({item:t}){const s=!!t.contractAddress&&!!t.itemId,a=!!t.tradeId||s,{data:i,isLoading:d}=A({queryKey:["order-line-display",t.tradeId,t.contractAddress,t.itemId],queryFn:()=>t.tradeId?qt(t.tradeId):_(t.contractAddress,{itemId:t.itemId}),enabled:a,staleTime:5*6e4}),o=a&&d,h=(i==null?void 0:i.name)??r("activity.itemFallback"),c=(i==null?void 0:i.thumbnail)??"",m=W({contractAddress:i==null?void 0:i.contractAddress,tokenId:i==null?void 0:i.tokenId,itemId:i==null?void 0:i.itemId})??void 0,f=e.jsxs(e.Fragment,{children:[o?e.jsx(K,{}):e.jsx(B,{children:c?e.jsx("img",{src:c,alt:h}):e.jsx(E,{name:"cart",size:20})}),e.jsxs(Q,{children:[o?e.jsx(V,{}):e.jsx(X,{title:h,children:h}),t.quantity>1?e.jsx(Y,{children:r("activity.quantity",{count:t.quantity})}):null]}),e.jsxs(fe,{children:[e.jsx(N,{className:"ccy-mark"})," ",t.credits]})]});return m?e.jsx(J,{to:m,"data-link":"true",children:f}):e.jsx(q,{children:f})}function ke({order:t}){const s=Xt(t.lines),a=s.reduce((o,h)=>o+h.quantity,0),i=Kt(t.status),d=i==="SETTLED"?r("activity.completed"):i==="FAILED"?r("activity.failed"):r("activity.processing");return e.jsxs(T,{"data-testid":"purchase-order",children:[e.jsxs(S,{children:[e.jsxs(F,{children:[e.jsx(C,{children:I(t.createdAt)}),e.jsxs(D,{children:[r("activity.purchaseLabel")," · ",r("activity.itemCount",{count:a})]})]}),e.jsxs(M,{children:[e.jsx(H,{"data-status":i,children:d}),e.jsxs(w,{children:[e.jsx(N,{className:"ccy-mark"})," ",t.totalCredits]})]})]}),i==="FAILED"?e.jsx(ge,{children:r("activity.purchaseFailedNote")}):null,e.jsx(U,{children:s.map(o=>e.jsx(we,{item:o},o.key))})]})}function Ie({sale:t}){const{data:s,isLoading:a}=A({queryKey:["asset-display",t.contractAddress,t.tokenId,t.itemId],queryFn:()=>_(t.contractAddress,{tokenId:t.tokenId,itemId:t.itemId}),enabled:!!t.contractAddress,staleTime:3e5}),i=(s==null?void 0:s.name)??r("activity.itemFallback"),d=(s==null?void 0:s.thumbnail)??"",o=W({contractAddress:t.contractAddress,tokenId:t.tokenId,itemId:t.itemId})??void 0,h=e.jsxs(e.Fragment,{children:[a?e.jsx(K,{}):e.jsx(B,{children:d?e.jsx("img",{src:d,alt:i}):e.jsx(E,{name:"offer",size:20})}),e.jsxs(Q,{children:[a?e.jsx(V,{}):e.jsx(X,{title:i,children:i}),e.jsx(Y,{children:r("activity.boughtFrom",{account:xt(t.seller)})})]})]});return e.jsxs(T,{"data-testid":"activity-mana-purchase",children:[e.jsxs(S,{children:[e.jsxs(F,{children:[e.jsx(C,{children:I(t.createdAt)}),e.jsx(D,{children:r("activity.paidWithMana")})]}),e.jsxs(M,{children:[e.jsx(H,{"data-status":"SETTLED",children:r("activity.completed")}),e.jsxs(w,{children:[gt(t.manaWei)," ",e.jsx(ft,{children:e.jsx(ut,{src:dt,alt:"MANA"})})]})]})]}),e.jsx(U,{children:o?e.jsx(J,{to:o,"data-link":"true",children:h}):e.jsx(q,{children:h})})]})}function Ae({sale:t,payout:s}){const{data:a,isLoading:i}=A({queryKey:["asset-display",t.contractAddress,t.tokenId,t.itemId],queryFn:()=>_(t.contractAddress,{tokenId:t.tokenId,itemId:t.itemId}),enabled:!!t.contractAddress,staleTime:3e5}),d=(a==null?void 0:a.name)??r("activity.itemFallback"),o=(a==null?void 0:a.thumbnail)??"",h=W({contractAddress:t.contractAddress,tokenId:t.tokenId,itemId:t.itemId})??void 0,c=e.jsxs(e.Fragment,{children:[i?e.jsx(K,{}):e.jsx(B,{children:o?e.jsx("img",{src:o,alt:d}):e.jsx(E,{name:"offer",size:20})}),e.jsxs(Q,{children:[i?e.jsx(V,{}):e.jsx(X,{title:d,children:d}),e.jsxs(Y,{children:[r("activity.soldTo",{account:xt(t.counterparty)}),s.kind==="pending"?` · ${r("activity.payoutPendingOn",{date:I(s.availableAt)})}`:""]})]})]});return e.jsxs(T,{"data-testid":"activity-sale",children:[e.jsxs(S,{children:[e.jsxs(F,{children:[e.jsx(C,{children:I(t.createdAt)}),e.jsx(D,{children:r("activity.saleLabel")})]}),e.jsxs(M,{children:[e.jsx(H,{"data-status":s.kind==="pending"?"PENDING":"SOLD",children:s.kind==="pending"?r("activity.payoutPending"):r("activity.sold")}),s.kind==="direct"?e.jsxs(w,{"data-kind":"income",children:["+",gt(t.manaWei)," ",e.jsx(ft,{children:e.jsx(ut,{src:dt,alt:"MANA"})})]}):s.credits!==null?e.jsxs(w,{"data-kind":"income",children:[e.jsx(N,{className:"ccy-mark"})," +",Mt(s.credits)]}):e.jsx(w,{"data-kind":"income",children:r("activity.payoutCredited")})]})]}),e.jsx(U,{children:h?e.jsx(J,{to:h,"data-link":"true",children:c}):e.jsx(q,{children:c})})]})}function Ee({order:t}){const s=`$${(t.usdCents/100).toFixed(2)}`,a=Ct(t.status),i=a==="SETTLED"?r("activity.completed"):a==="FAILED"?r("activity.failed"):a==="UNFINISHED"?r("activity.unfinished"):r("activity.processing"),d=O(p=>p.session),o=Dt(),[h,c]=g.useState(!1),m=t.status==="initiated"&&!!d;g.useEffect(()=>{const p=()=>c(!1);return window.addEventListener("pageshow",p),()=>window.removeEventListener("pageshow",p)},[]);async function f(){if(!(!d||h)){c(!0);try{const p=await Ht(t.id,d.identity);if(p.kind==="url"){if(/^https:\/\/([a-z0-9-]+\.)*stripe\.com\//i.test(p.url)){window.location.href=p.url;return}$.error(r("activity.resumeUnavailable"))}else p.kind==="expired"?($.info(r("activity.resumeExpired")),o.invalidateQueries({queryKey:["credit-orders"]})):p.kind==="paid"?($.success(r("activity.resumePaid")),o.invalidateQueries({queryKey:["credit-orders"]})):$.error(r("activity.resumeUnavailable"));c(!1)}catch{c(!1)}}}return e.jsx(T,{"data-testid":"credit-order",children:e.jsxs(S,{children:[e.jsx(he,{children:e.jsx("img",{src:ne,alt:"","aria-hidden":!0})}),e.jsxs(F,{children:[e.jsx(C,{children:I(t.createdAt)}),e.jsxs(D,{children:[r("activity.creditPurchaseLabel")," · ",r("activity.creditPaid",{usd:s})]})]}),e.jsxs(M,{children:[m?e.jsx(pe,{type:"button",onClick:()=>void f(),disabled:h,"data-testid":"resume-order",children:h?r("activity.resuming"):r("activity.resume")}):null,e.jsx(H,{"data-status":a,children:i}),e.jsxs(w,{"data-kind":a==="UNFINISHED"?void 0:"income",children:[a==="UNFINISHED"?"":"+",e.jsx(N,{className:"ccy-mark"})," ",t.credits]})]})]})})}function $e({filter:t}){const s={all:{icon:"clock",title:r("activity.emptyAllTitle"),body:r("activity.emptyAllBody")},purchases:{icon:"cart",title:r("activity.emptyPurchasesTitle"),body:r("activity.emptyPurchasesBody")},sales:{icon:"offer",title:r("activity.emptySalesTitle"),body:r("activity.emptySalesBody")}}[t];return e.jsxs(ht,{children:[e.jsx(E,{name:s.icon,size:40,color:n.colors.muted2}),e.jsx(pt,{children:s.title}),e.jsx(mt,{children:s.body}),t!=="sales"?e.jsx(ye,{as:ot,to:"/items",variant:"white",children:r("notFound.cta")}):null]})}function Oe(){const{session:t}=O(),[s,a]=g.useState("all"),[i,d]=zt(),o=i.get(z)===rt||i.get(R)===je;Nt({title:o?r("seo.import.title"):r("nav.activity"),noindex:!0});const{count:h}=Ot(),{count:c}=se(),f=h!==void 0&&c!==void 0&&(h>0||c>0||o),p=!!t&&!o&&s!=="sales",x=!!t&&!o&&s!=="purchases",y=L(["purchases",t==null?void 0:t.address],u=>St(t.address,t.identity,{first:P,skip:u}),{enabled:p}),b=L(["sales",t==null?void 0:t.address],u=>it(t.address,{role:"seller",first:P,skip:u}),{enabled:x}),v=L(["credit-orders",t==null?void 0:t.address],u=>st(t.address,t.identity,{first:P,skip:u}),{enabled:p}),j=L(["mana-purchases",t==null?void 0:t.address],u=>it(t.address,{role:"buyer",first:P,skip:u}),{enabled:p}),{data:Z}=A({queryKey:["sale-payouts",t==null?void 0:t.address],queryFn:()=>st(t.address,t.identity,{first:200}).then(u=>u.payouts),enabled:x,staleTime:6e4}),yt=g.useMemo(()=>te(Z),[Z]),{data:bt}=Tt(x);if(!t)return e.jsxs(ht,{children:[e.jsx(E,{name:"clock",size:40,color:n.colors.muted2}),e.jsx(pt,{children:r("activity.signInTitle")}),e.jsx(mt,{children:r("activity.signInBody")})]});const tt=Zt(Jt({purchases:p?y.items:[],sales:x?b.items:[],creditOrders:p?v.items:[],manaPurchases:p?j.items:[],rate:bt}),s),vt=p&&(y.isLoading||v.isLoading||j.isLoading)||x&&b.isLoading,et=p&&(y.isFetchingNextPage||v.isFetchingNextPage||j.isFetchingNextPage)||x&&b.isFetchingNextPage,jt=p&&(y.hasNextPage||v.hasNextPage||j.hasNextPage)||x&&b.hasNextPage;function wt(){p&&y.hasNextPage&&y.fetchNextPage(),p&&v.hasNextPage&&v.fetchNextPage(),p&&j.hasNextPage&&j.fetchNextPage(),x&&b.hasNextPage&&b.fetchNextPage()}function kt(u){if(a(u),!o)return;const k=new URLSearchParams(i);k.delete(z),k.delete(R),d(k,{replace:!0})}function It(){const u=new URLSearchParams(i);u.set(z,rt),u.delete(R),d(u,{replace:!0})}return e.jsxs(ae,{children:[e.jsx(re,{children:e.jsx(oe,{children:r("nav.activity")})}),e.jsxs(de,{role:"tablist","aria-label":r("nav.activity"),children:[ve.map(u=>e.jsx(lt,{type:"button",role:"tab","aria-selected":!o&&s===u,"data-active":!o&&s===u,"data-testid":`activity-filter-${u}`,onClick:()=>kt(u),children:r(`activity.filter.${u}`)},u)),f?e.jsxs(ce,{type:"button",role:"tab","aria-selected":o,"data-active":o,"data-testid":"activity-filter-migrate","aria-label":h?r("activity.migrate.chipAria",{count:h}):void 0,onClick:It,children:[r("activity.migrate.chip"),h?e.jsx(le,{"data-testid":"activity-migrate-count","aria-hidden":!0,children:h}):null]}):null]}),o?e.jsx(g.Suspense,{fallback:e.jsx(ue,{"aria-busy":"true"}),children:e.jsx(be,{})}):vt?e.jsx(nt,{children:Array.from({length:5}).map((u,k)=>e.jsx(at,{},k))}):tt.length===0?e.jsx($e,{filter:s}):e.jsxs(e.Fragment,{children:[e.jsxs(nt,{children:[tt.map(u=>u.kind==="purchase"?e.jsx(ke,{order:u.order},u.id):u.kind==="credit"?e.jsx(Ee,{order:u.order},u.id):u.kind==="mana-purchase"?e.jsx(Ie,{sale:u.sale},u.id):e.jsx(Ae,{sale:u.sale,payout:ee(yt,u.sale)},u.id)),et?e.jsx(at,{}):null]}),e.jsx(Wt,{hasNextPage:jt,isFetching:et,onLoadMore:wt})]})]})}export{Oe as Activity};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as u,j as m}from"./react-BYHuwl8r.js";import{s as d}from"./index-
|
|
1
|
+
import{r as u,j as m}from"./react-BYHuwl8r.js";import{s as d}from"./index-CFS2vjXp.js";import"./dcl-schemas-CmtP3U6y.js";import"./sentry-DfofRafD.js";import"./ethers-CFWbjvmu.js";import"./intl-CBcMB1D2.js";const P="https://cdn.decentraland.org/@dcl/shop/1.4.2-31322819328.commit-403d972/_assets/custom-welcome-background-BxlFQma9.webp",L="https://cdn.decentraland.org/@dcl/shop/1.4.2-31322819328.commit-403d972/_assets/DCL_LogoPattern-BryBPc3d.png",D=`
|
|
2
2
|
attribute vec2 a_position;
|
|
3
3
|
varying vec2 v_uv;
|
|
4
4
|
void main() {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as u,b as Ue,j as e,u as et}from"./react-BYHuwl8r.js";import{u as tt}from"./useUrlFilters-DH-gxdfV.js";import{u as nt,S as _e,R as st,F as it,e as ot}from"./categories-
|
|
1
|
+
import{r as u,b as Ue,j as e,u as et}from"./react-BYHuwl8r.js";import{u as tt}from"./useUrlFilters-DH-gxdfV.js";import{u as nt,S as _e,R as st,F as it,e as ot}from"./categories-BfA8_KJ7.js";import{c as q,r as at,aK as rt,aL as lt,aR as ct,a as dt,l as ht,ch as pt,ci as ut,s,t,v as Oe,aA as mt,D as ft,L as Ce,b as n,z as xt,I as E,A as O,cj as le,ax as gt,Z as oe,aH as Me,aP as yt,aO as bt,y as Ge,an as De,q as Ze,w as wt,ac as Ct,ap as Fe,aq as J,aZ as vt,bD as jt}from"./index-CFS2vjXp.js";import{R as $t,S as kt,a as St,D as Et,b as Tt,C as Lt,c as Rt,F as _t,d as Mt,e as Ft,M as Nt,u as At,g as It,v as zt,E as Bt,h as Wt,f as Pt,i as Ht,j as Ut}from"./Assets.styles-C7r_ZJhU.js";import{L as Ot}from"./LoadMore-VDZeuABQ.js";import{u as Gt}from"./useInfiniteGrid-Bg-uRUOo.js";import{E as Dt}from"./ErrorNotice-Bx0TFK67.js";import{d as Zt}from"./dcl-schemas-CmtP3U6y.js";import{s as qt,G as Vt,w as Kt,S as Qt}from"./buy-gasless-Upx9mueH.js";import{s as Jt,j as Xt}from"./buy-kraR4aMZ.js";import{f as Yt}from"./errors-DGBfq9F-.js";import{J as en,C as tn,B as ve}from"./ethers-CFWbjvmu.js";import{n as nn}from"./Tooltip-7RBgiOhJ.js";import{G as sn}from"./grid.styles-6Swsp3t3.js";import"./skeleton.styles-fSgRe9xD.js";import"./sentry-DfofRafD.js";import"./intl-CBcMB1D2.js";import"./authorizations-xMkPvvjF.js";import"./sendMetaTransaction-Clf7D2IU.js";function X(i){const a=i.source??"item",o=i.tradeId||`${i.contractAddress}-${i.tokenId??i.itemId??""}`;return`${a}:${o}`}const V="100000000000000000000",qe=2,ae=15,on=/^[a-zA-Z0-9]+$/;function Ne(i){const a=i.trim();return a.length===0?{ok:!1,reason:"empty"}:on.test(a)?a.length<qe?{ok:!1,reason:"too-short"}:a.length>ae?{ok:!1,reason:"too-long"}:{ok:!0}:{ok:!1,reason:"invalid-chars"}}function an(i){return i.replace(/[^a-zA-Z0-9]/g,"").slice(0,ae)}const rn=["function available(string _subdomain) view returns (bool)"],Ae={mainnet:{rpc:"https://rpc.decentraland.org/mainnet",address:"0x2a187453064356c898cae034eaed119e1663acb8"},sepolia:{rpc:"https://rpc.decentraland.org/sepolia",address:"0x7518456ae93eb98f3e64571b689c626616bb7f30"}};function ln(){return q.chainId===Number(Zt.ChainId.MATIC_MAINNET)?Ae.mainnet:Ae.sepolia}async function cn(i,a={}){var f;const{rpc:o,address:d}=ln(),h=new en(o),m=new tn(d,rn,h);console.info(`[names] availability check → DCLRegistrar(${d}).available("${i}") on ${o}`);const l=await m.available(i);if((f=a.signal)!=null&&f.aborted)throw new DOMException("Aborted","AbortError");return console.info(`[names] "${i}" available=${l}`),l?"available":"taken"}const dn="https://app.across.to/api";class ke extends Error{constructor(){super("Name registration is temporarily unavailable due to high network costs"),this.name="NameRouteCostTooHighError"}}class je extends Error{constructor(){super("The name could not be registered on Ethereum; your funds were recovered."),this.name="NameNotRegisteredError"}}class $e extends Error{constructor(){super("We couldn't confirm whether the purchase went through."),this.name="NameSettlementUnknownError"}}function hn(i){return ct(V,i)}async function pn(i,a,o={}){var f;const d=o.chainId??q.chainId,h=o.provider??"across",m=`${q.creditsServerUrl}/credits-name-route?name=${encodeURIComponent(a)}&chainId=${d}&provider=${h}`,l=await dt(m,{method:"GET",identity:i,metadata:{}});if(!l.ok){let c;try{c=(f=await l.json())==null?void 0:f.code}catch{}throw c==="ROUTE_COST_TOO_HIGH"?new ke:new Error(`fetchNameCreditRoute ${l.status}`)}return l.json()}function un(i,a){const o=ve.from(i.availableAmount),h=ve.from(V).sub(o);return{credits:[{value:i.amount,expiresAt:Number(i.expiresAt),salt:Xt(i.id)}],creditsSignatures:[i.signature],externalCall:{target:a.externalCall.target,selector:a.externalCall.selector,data:a.externalCall.data,expiresAt:a.externalCall.expiresAt,salt:a.externalCall.salt},customExternalCallSignature:a.customExternalCallSignature,maxUncreditedValue:h.isNegative()?"0":h.toString(),maxCreditedValue:V}}async function mn(i,a={}){const o=dn,d=a.intervalMs??1e4,h=a.maxAttempts??60;let m={status:"pending",destinationTxHash:null,actionsSucceeded:null};for(let l=0;l<h;l++){try{const f=await fetch(`${o}/deposit/status?originChainId=137&depositTxHash=${i}`);if(f.ok){const c=await f.json(),g=(c.status??"pending").toLowerCase(),p=c.fillTx??c.fillTxnRef??null,y=typeof c.actionsSucceeded=="boolean"?c.actionsSucceeded:null;if(g==="filled")return{status:"filled",destinationTxHash:p,actionsSucceeded:y};if(g==="refunded"||g==="expired")return{status:g,destinationTxHash:null,actionsSucceeded:!1};m={status:"pending",destinationTxHash:p,actionsSucceeded:y}}}catch{}l<h-1&&await new Promise(f=>setTimeout(f,d))}return m}async function fn(i){const{name:a,identity:o,signer:d}=i,h=p=>{var y;try{(y=i.onProgress)==null||y.call(i,p)}catch{}},m=i.chainId??q.chainId,l=i.provider??"across",f=(i.beneficiary??await d.getAddress()).toLowerCase();let c=null,g="unconfirmed";console.info("[names] register start",{name:a,buyer:f,chainId:m,provider:l}),h("preparing");try{const p=await at(m),y=hn(p);console.info("[names] step 1/6 sized reservation",{usdCents:y,manaRate:p});const j=await pn(o,a,{chainId:m,provider:l});console.info("[names] step 2/6 route fetched",{target:j.externalCall.target,selector:j.externalCall.selector,provider:j.provider,quoteId:j.quoteId});const w=await rt(o,y);if(c=w.credit.id,console.info("[names] step 3/6 credit authorized",{creditId:w.credit.id,maxCreditedValue:w.maxCreditedValue}),ve.from(w.maxCreditedValue).lt(V))throw new Error("Credit under-sized for the name price");h("awaiting-confirmation");const $=un(w.credit,j);let C;try{C=await qt({chainId:m,buyer:f,signer:d,args:$})}catch(x){if(!(x instanceof Vt))throw x;if(x.reason==="relayer-unreachable"){g="unobservable";const k=new $e;throw k.cause=x,k}C=await Jt(m,$,d)}if(console.info("[names] step 4/6 useCredits submitted (Polygon origin tx)",{originTxHash:C}),h("confirming"),await Kt(C),g="confirmed",console.info("[names] step 5/6 origin tx confirmed",{originTxHash:C}),l==="across"){h("registering");const x=await mn(C,i.acrossPoll);if(console.info("[names] step 6/6 across status",x),x.status==="pending")return{status:"pending",originTxHash:C};if(x.status==="filled"&&x.actionsSucceeded===null)return console.warn("[names] across filled without reporting actionsSucceeded — reporting pending",{originTxHash:C}),{status:"pending",originTxHash:C};if(x.status!=="filled"||x.actionsSucceeded!==!0)throw new je;return{status:"registered",originTxHash:C,destinationTxHash:x.destinationTxHash}}return{status:"pending",originTxHash:C}}catch(p){if(console.error("[names] register failed — raw error:",p,{name:a,buyer:f,originState:g}),p instanceof Qt)return{status:"pending",originTxHash:p.txHash};if(c&&g==="unconfirmed"&&await lt(o,[c]).catch(()=>{}),p instanceof ke||p instanceof je||p instanceof $e)throw p;const y=new Error(Yt(p,"Couldn't register the name. Please try again.",{sale:!0}));throw y.cause=p,y}}function xn(){const{data:i}=ht({queryKey:["feature-flag","shop-names"],queryFn:()=>pt(ut.SHOP_NAMES),staleTime:6e4,refetchOnWindowFocus:!0,retry:1});return i===!0}const gn=60,yn=700,bn=25;function wn(i){if(!i)return[];const a=[];for(let o=1;o<=i.length;o++)a.push({text:i.slice(0,o),delay:gn});a[a.length-1]={text:i,delay:yn};for(let o=i.length-1;o>=1;o--)a.push({text:i.slice(0,o),delay:bn});return a}function Cn(i){return i.flatMap(wn)}function vn(i,a){const o=u.useMemo(()=>Cn(i),[i]),[d,h]=u.useState(0);return u.useEffect(()=>{if(!a||o.length===0)return;const m=setTimeout(()=>h(l=>(l+1)%o.length),o[d%o.length].delay);return()=>clearTimeout(m)},[d,a,o]),!a||o.length===0?"":o[d%o.length].text}const jn="data:image/svg+xml,%3csvg%20preserveAspectRatio='none'%20overflow='visible'%20style='display:%20block;'%20width='46.999'%20height='46.999'%20viewBox='0%200%2046.999%2046.999'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Vector'%3e%3cpath%20d='M23.5861%2046.999C27.4441%2046.999%2031.1266%2046.1286%2034.3708%2044.475H12.8014C16.0456%2046.1286%2019.6405%2046.999%2023.5861%2046.999Z'%20fill='%23FCFCFC'%20fill-opacity='0.6'/%3e%3cpath%20d='M8.76807%2041.9509H38.1411C39.1056%2041.1676%2040.1577%2040.2102%2040.7715%2039.514H6.13765C7.01445%2040.3843%207.89126%2041.2547%208.76807%2041.9509Z'%20fill='%23FCFCFC'%20fill-opacity='0.6'/%3e%3cpath%20d='M25.0767%2034.0307H2.2797C2.80578%2035.0752%203.41955%2036.0326%204.03331%2036.9899H22.5339L25.0767%2034.0307Z'%20fill='%23FCFCFC'%20fill-opacity='0.6'/%3e%3cpath%20d='M23.5861%200C10.6094%200%200%2010.4442%200%2023.4125C0%2026.2846%200.526084%2029.0697%201.49057%2031.5938L10.6094%2020.7144L15.8702%2014.3608L28.6716%2029.679L32.3542%2025.2402L41.999%2036.7288H42.7882C45.5063%2032.8993%2046.9968%2028.2864%2046.9968%2023.3254C47.1722%2010.4442%2036.5628%200%2023.5861%200ZM15.7825%2012.272C13.9412%2012.272%2012.5383%2010.7924%2012.5383%209.05166C12.5383%207.31095%2014.0289%205.83136%2015.7825%205.83136C17.6238%205.83136%2019.0267%207.31095%2019.0267%209.05166C19.0267%2010.7924%2017.6238%2012.272%2015.7825%2012.272ZM32.8803%2022.8032C29.2853%2022.8032%2026.3919%2019.931%2026.3919%2016.3626C26.3919%2012.7942%2029.2853%209.92201%2032.8803%209.92201C36.4752%209.92201%2039.3686%2012.7942%2039.3686%2016.3626C39.4563%2019.931%2036.4752%2022.8032%2032.8803%2022.8032Z'%20fill='%23FCFCFC'%20fill-opacity='0.6'/%3e%3cpath%20d='M16.484%2018.7126V31.6808H27.2687L16.484%2018.7126Z'%20fill='%23FCFCFC'%20fill-opacity='0.6'/%3e%3cpath%20d='M33.1433%2037.164H39.2809L33.1433%2029.766V37.164Z'%20fill='%23FCFCFC'%20fill-opacity='0.6'/%3e%3c/g%3e%3c/svg%3e",$n="https://cdn.decentraland.org/@dcl/shop/1.4.2-31322819328.commit-403d972/_assets/name-verified-oGwQ3ntb.svg",kn="#34fee6",Sn=s.div`
|
|
2
2
|
position: fixed;
|
|
3
3
|
inset: 0;
|
|
4
4
|
z-index: 10000;
|
|
@@ -458,7 +458,7 @@ import{r as u,b as Ue,j as e,u as et}from"./react-BYHuwl8r.js";import{u as tt}fr
|
|
|
458
458
|
color: ${t.colors.accent};
|
|
459
459
|
}
|
|
460
460
|
}
|
|
461
|
-
`;function Jn({name:i,priceCredits:a,onClose:o}){const{session:d}=Oe(),{data:h,isError:m}=mt(d),l=ft(),f=Ue(),[c,g]=u.useState("confirm"),[p,y]=u.useState(""),[j,w]=u.useState(null),[$,C]=u.useState(!1),[x,k]=u.useState("preparing"),M=u.useRef(!1),T=p.trim().toLowerCase()===i.toLowerCase(),F=c==="completing",I=a!=null?Ce(a):"—",B=a==null,z=h==null?void 0:h.credits,W=a!=null&&z!=null?a-z:0,S=W>0,P=B?n("names.priceUnavailable"):S?n("names.insufficientCredits",{credits:Ce(W)}):null;u.useEffect(()=>{const b=D=>{D.key==="Escape"&&!F&&o()};document.addEventListener("keydown",b);const G=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.removeEventListener("keydown",b),document.body.style.overflow=G}},[F,o]);async function L(){if(!(!d||!T||B||S||M.current)){M.current=!0,g("completing"),w(null),k("preparing");try{const b=await fn({name:i,identity:d.identity,signer:d.signer,onProgress:k});oe("Shop Completed Purchase",{items:[{item_id:null,contract_address:null,token_id:null,price_usd:Me(a??0),category:"name",is_smart:!1}],purchase_type:"name",is_primary:!0,payment_type:"credits",value_credits:a??null,value_usd:Me(a??0),transaction_hash:b.originTxHash??null,settlement:b.status}),l.invalidateQueries({queryKey:["usd-balance"]}),l.invalidateQueries({queryKey:["my-assets"]}),g(b.status==="registered"?"success":"pending")}catch(b){oe(bt(b)?"Shop Purchase Cancelled":"Shop Purchase Failed",{step:"submit",error_code:yt(b),purchase_type:"name"});const G=b instanceof je,D=b instanceof $e;w(b instanceof ke?n("names.errorRouteCost"):G?n("names.errorNotRegistered"):D?n("names.errorSettlementUnknown"):(b==null?void 0:b.message)||n("names.errorGeneric")),C(G||D),g("error")}finally{M.current=!1}}}const R=c!=="success"&&c!=="pending",v=xt(d==null?void 0:d.providerType),N=v?2:1,A=v&&(x==="preparing"||x==="awaiting-confirmation"),_=A?1:N,re=A?n("names.confirming"):n("names.completing"),H=x==="registering"?n("names.processingRegistering"):null;return e.jsx(Sn,{onClick:F?void 0:o,role:"presentation",children:e.jsxs(En,{role:"dialog","aria-modal":"true","aria-label":n("names.buyTitle"),onClick:b=>b.stopPropagation(),children:[R&&e.jsxs(e.Fragment,{children:[e.jsxs(ce,{children:[e.jsx(de,{children:c==="error"?n("names.errorTitle"):n("names.buyTitle")}),e.jsx(he,{onClick:o,disabled:F,"aria-label":n("buyModal.close"),children:e.jsx(E,{name:"close"})})]}),e.jsxs(pe,{children:[n("names.myCreditsBalance")," ",e.jsx(O,{})," ",le(h,m)]}),e.jsx(ue,{})]}),(c==="confirm"||c==="error")&&e.jsxs(e.Fragment,{children:[e.jsxs(me,{children:[e.jsx(Ie,{"aria-hidden":!0,children:"@"}),e.jsxs(fe,{children:[e.jsxs(xe,{children:[i,e.jsx("span",{children:".dcl.eth"})]}),e.jsx(ge,{children:n("names.subtitle")})]}),e.jsxs(ye,{children:[e.jsx(O,{}),I]})]}),c==="error"?e.jsxs(e.Fragment,{children:[e.jsxs(we,{children:[e.jsx(E,{name:"info","aria-hidden":!0}),e.jsx("span",{children:j})]}),$?e.jsx(be,{onClick:o,children:n("names.errorSpentDismiss")}):e.jsx(be,{onClick:()=>g("confirm"),children:n("names.tryAgain")})]}):e.jsxs(e.Fragment,{children:[e.jsxs(Mn,{children:[e.jsx(Fn,{children:n("names.confirmTitle")}),e.jsx(Nn,{dangerouslySetInnerHTML:{__html:n("names.confirmBody",{name:`<b>@${Xn(i)}</b>`})}}),e.jsxs(An,{children:[e.jsx(In,{"aria-hidden":!0,children:"@"}),e.jsx(zn,{value:p,onChange:b=>y(b.target.value.replace(/[^a-zA-Z0-9]/g,"")),placeholder:"yourname","aria-label":n("names.reenterAria"),autoComplete:"off",spellCheck:!1,style:{width:`${Math.max(p.length,8)}ch`}}),e.jsx(Bn,{children:".dcl.eth"})]})]}),P?e.jsxs(we,{"data-tone":"info","data-testid":"name-blocked-reason",children:[e.jsx(E,{name:"info","aria-hidden":!0}),e.jsx("span",{children:P})]}):null,e.jsx(be,{onClick:()=>void L(),disabled:!T||!d||B||S,children:n("names.buyCta")})]})]}),c==="completing"&&e.jsxs(Wn,{children:[e.jsx(Pn,{src:gt,alt:"",width:61,height:61}),e.jsxs(Hn,{children:[e.jsx(Un,{children:re}),e.jsxs(Gn,{children:[e.jsx(Dn,{"aria-hidden":!0,children:e.jsx("span",{})}),e.jsx(Zn,{"data-testid":"name-progress-count",children:`${_}/${N}`})]}),H?e.jsx(On,{children:H}):null]})]}),c==="pending"&&e.jsxs(e.Fragment,{children:[e.jsxs(ce,{children:[e.jsx(de,{children:n("names.pendingHeaderTitle")}),e.jsx(he,{onClick:o,"aria-label":n("buyModal.close"),children:e.jsx(E,{name:"close"})})]}),e.jsxs(pe,{children:[n("names.myCreditsBalance")," ",e.jsx(O,{})," ",le(h,m)]}),e.jsx(ue,{}),e.jsxs(we,{"data-tone":"info",children:[e.jsx(E,{name:"info","aria-hidden":!0}),e.jsxs("span",{children:[e.jsx("b",{children:n("names.pendingBannerBold")})," ",n("names.pendingBannerRest")]})]}),e.jsxs(me,{style:{marginTop:20},children:[e.jsx(Ie,{"aria-hidden":!0,children:"@"}),e.jsxs(fe,{children:[e.jsxs(xe,{children:[i,e.jsx("span",{children:".dcl.eth"})]}),e.jsx(ge,{children:n("names.subtitle")})]}),e.jsxs(ye,{children:[e.jsx(O,{}),I]})]}),e.jsx(ze,{children:e.jsx(Be,{onClick:()=>{o(),f("/my-items")},children:n("names.myItems")})})]}),c==="success"&&e.jsxs(e.Fragment,{children:[e.jsxs(ce,{children:[e.jsx(de,{children:n("names.successHeaderTitle")}),e.jsx(he,{onClick:o,"aria-label":n("buyModal.close"),children:e.jsx(E,{name:"close"})})]}),e.jsxs(pe,{children:[n("names.myCreditsBalance")," ",e.jsx(O,{})," ",le(h,m)]}),e.jsx(ue,{}),e.jsxs(qn,{children:[e.jsx(Vn,{"aria-hidden":!0,children:e.jsx(E,{name:"check"})}),e.jsxs(Kn,{children:[e.jsx("b",{children:n("names.successBannerBold")})," ",n("names.successBannerRest")]})]}),e.jsxs(me,{style:{marginTop:20},children:[e.jsxs(Tn,{"data-testid":"name-success-tile",children:[e.jsx(Ln,{src:jn,alt:"","aria-hidden":!0,width:47,height:47}),e.jsxs(Rn,{children:[e.jsx("span",{"aria-hidden":!0,children:i}),e.jsx(_n,{src:$n,alt:"","aria-hidden":!0,width:14,height:14})]})]}),e.jsxs(fe,{children:[e.jsxs(xe,{children:[i,e.jsx("span",{children:".dcl.eth"})]}),e.jsx(ge,{children:n("names.subtitle")})]}),e.jsxs(ye,{children:[e.jsx(O,{}),I]})]}),e.jsxs(ze,{children:[e.jsx(Be,{onClick:()=>{o(),f("/my-items")},children:n("names.myItems")}),e.jsx(Qn,{href:q.profileUrl,target:"_blank",rel:"noopener noreferrer",children:n("names.assignToAvatar")})]})]})]})})}function Xn(i){return i.replace(/[&<>"']/g,a=>({"&":"&","<":"<",">":">",'"':""","'":"'"})[a])}const Yn="https://cdn.decentraland.org/@dcl/shop/1.4.2-31322494096.commit-984acea/_assets/identity-icon-C8yAW_Gq.svg",es="https://cdn.decentraland.org/@dcl/shop/1.4.2-31322494096.commit-984acea/_assets/world-icon-6xQ-PmmW.svg",ts="https://cdn.decentraland.org/@dcl/shop/1.4.2-31322494096.commit-984acea/_assets/invite-icon-Bz6lCTuB.svg",ns="data:image/svg+xml,%3csvg%20width='55.6797'%20height='63.6174'%20viewBox='0%200%2055.6797%2063.6174'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Vote'%3e%3cpath%20id='Vector'%20d='M0.055012%2039.1045C1.61191%2039.4989%202.83757%2039.3938%204.4307%2039.392L8.27108%2039.3878L20.7762%2039.3883L42.8819%2039.3904L50.0954%2039.3907C51.793%2039.3907%2054.0562%2039.5509%2055.6466%2039.0843C55.5909%2040.7931%2055.647%2042.8581%2055.6469%2044.5864L55.6479%2055.616L55.6559%2059.5618C55.6583%2060.6219%2055.8213%2061.9838%2055.261%2062.8837C55.2205%2062.9265%2055.1794%2062.9688%2055.1377%2063.0104C54.7986%2063.3482%2054.3791%2063.5594%2053.9021%2063.5761C52.0714%2063.642%2050.1544%2063.6097%2048.3241%2063.6078L37.4452%2063.6066L2.97352%2063.6103C2.2022%2063.6084%201.15943%2063.6718%200.589171%2063.0576C-0.204857%2062.2037%200.0327979%2060.3244%200.0349529%2059.1687L0.0414734%2054.3929C0.0413119%2049.3191%20-0.00749456%2044.1727%200.055012%2039.1045Z'%20fill='white'%20fill-opacity='0.8'/%3e%3cpath%20id='Subtract'%20d='M37.1168%200.00495927C38.1773%200.00461149%2039.2888%20-0.0284991%2040.3433%200.0811311C41.0714%200.15695%2041.7266%200.914583%2041.7857%201.63484C41.853%202.45491%2041.8268%203.31926%2041.8258%204.15144L41.8189%208.70418L41.8199%2023.9639L40.1099%2023.9659L13.8726%2023.963L13.8678%209.0909L13.8648%204.29793C13.8644%202.52652%2013.3942%200.34203%2015.6754%200.0342561C15.8907%200.016712%2016.237%200.0120998%2016.4557%200.0117952C21.6059%200.00480262%2026.761%200.0117634%2031.9107%200.00788896L37.1168%200.00495927ZM33.3834%206.17293C32.439%206.55612%2031.0531%208.12922%2030.3014%208.88191L25.8297%2013.3634C25.3537%2012.824%2023.3455%2010.7605%2022.8209%2010.4239C22.5581%2010.2549%2022.2566%2010.1546%2021.9449%2010.1329C21.4563%2010.1008%2020.9754%2010.2879%2020.6139%2010.6134C20.2442%2010.9428%2020.0227%2011.4077%2020.0006%2011.9024C19.9561%2013.0748%2021.3406%2014.1198%2022.1256%2014.8868C22.9429%2015.714%2024.1669%2017.1028%2025.1168%2017.67C26.1632%2018.2949%2027.3471%2017.2145%2027.9723%2016.4942C30.25%2014.2025%2032.5393%2011.9456%2034.8101%209.64949C35.2937%209.16062%2035.7138%208.69126%2035.6851%207.96199C35.6419%206.86558%2034.7821%206.09682%2033.6959%206.14656C33.5914%206.15085%2033.4872%206.16001%2033.3834%206.17293Z'%20fill='%23FF7439'/%3e%3cpath%20id='Vector_2'%20d='M45.5498%2015.976C46.6399%2015.986%2049.9504%2015.7705%2050.7361%2016.241C51.0104%2016.4053%2051.2831%2016.6446%2051.4181%2016.9397C51.892%2017.9763%2052.1015%2019.357%2052.3802%2020.4819L54.0582%2027.2308C54.5046%2028.9073%2054.9023%2030.6043%2055.3338%2032.2824C55.6029%2033.329%2055.9417%2034.4293%2054.9705%2035.2255C54.8158%2035.359%2054.4427%2035.5934%2054.2329%2035.6091C52.7731%2035.7184%2051.1693%2035.6701%2049.7108%2035.6679L39.4635%2035.6649L14.5239%2035.6632C10.471%2035.6631%206.41808%2035.6665%202.36531%2035.6698C1.79359%2035.6657%201.33794%2035.6604%200.844568%2035.337C-0.57365%2034.4073%200.381076%2032.2112%200.72189%2030.8501L1.93462%2025.9936L3.28579%2020.566C3.53371%2019.5688%203.77194%2018.5694%204.04289%2017.5781C4.30559%2016.6172%204.74298%2016.1492%205.73966%2015.9892C7.15095%2015.9419%208.72017%2015.9778%2010.1434%2015.9809L10.1451%2023.9585C7.37011%2024.097%207.74242%2027.5535%209.84963%2027.6469C11.6268%2027.7258%2013.6164%2027.6909%2015.4098%2027.691L26.229%2027.6915L39.1339%2027.691L43.273%2027.6909C44.748%2027.6909%2047.2174%2028.0848%2047.3773%2025.9908C47.4212%2025.4807%2047.2565%2024.9745%2046.9209%2024.5879C46.5265%2024.141%2046.1143%2024.0046%2045.5418%2023.9673L45.5498%2015.976Z'%20fill='white'/%3e%3c/g%3e%3c/svg%3e",ss=s.div`
|
|
461
|
+
`;function Jn({name:i,priceCredits:a,onClose:o}){const{session:d}=Oe(),{data:h,isError:m}=mt(d),l=ft(),f=Ue(),[c,g]=u.useState("confirm"),[p,y]=u.useState(""),[j,w]=u.useState(null),[$,C]=u.useState(!1),[x,k]=u.useState("preparing"),M=u.useRef(!1),T=p.trim().toLowerCase()===i.toLowerCase(),F=c==="completing",I=a!=null?Ce(a):"—",B=a==null,z=h==null?void 0:h.credits,W=a!=null&&z!=null?a-z:0,S=W>0,P=B?n("names.priceUnavailable"):S?n("names.insufficientCredits",{credits:Ce(W)}):null;u.useEffect(()=>{const b=D=>{D.key==="Escape"&&!F&&o()};document.addEventListener("keydown",b);const G=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.removeEventListener("keydown",b),document.body.style.overflow=G}},[F,o]);async function L(){if(!(!d||!T||B||S||M.current)){M.current=!0,g("completing"),w(null),k("preparing");try{const b=await fn({name:i,identity:d.identity,signer:d.signer,onProgress:k});oe("Shop Completed Purchase",{items:[{item_id:null,contract_address:null,token_id:null,price_usd:Me(a??0),category:"name",is_smart:!1}],purchase_type:"name",is_primary:!0,payment_type:"credits",value_credits:a??null,value_usd:Me(a??0),transaction_hash:b.originTxHash??null,settlement:b.status}),l.invalidateQueries({queryKey:["usd-balance"]}),l.invalidateQueries({queryKey:["my-assets"]}),g(b.status==="registered"?"success":"pending")}catch(b){oe(bt(b)?"Shop Purchase Cancelled":"Shop Purchase Failed",{step:"submit",error_code:yt(b),purchase_type:"name"});const G=b instanceof je,D=b instanceof $e;w(b instanceof ke?n("names.errorRouteCost"):G?n("names.errorNotRegistered"):D?n("names.errorSettlementUnknown"):(b==null?void 0:b.message)||n("names.errorGeneric")),C(G||D),g("error")}finally{M.current=!1}}}const R=c!=="success"&&c!=="pending",v=xt(d==null?void 0:d.providerType),N=v?2:1,A=v&&(x==="preparing"||x==="awaiting-confirmation"),_=A?1:N,re=A?n("names.confirming"):n("names.completing"),H=x==="registering"?n("names.processingRegistering"):null;return e.jsx(Sn,{onClick:F?void 0:o,role:"presentation",children:e.jsxs(En,{role:"dialog","aria-modal":"true","aria-label":n("names.buyTitle"),onClick:b=>b.stopPropagation(),children:[R&&e.jsxs(e.Fragment,{children:[e.jsxs(ce,{children:[e.jsx(de,{children:c==="error"?n("names.errorTitle"):n("names.buyTitle")}),e.jsx(he,{onClick:o,disabled:F,"aria-label":n("buyModal.close"),children:e.jsx(E,{name:"close"})})]}),e.jsxs(pe,{children:[n("names.myCreditsBalance")," ",e.jsx(O,{})," ",le(h,m)]}),e.jsx(ue,{})]}),(c==="confirm"||c==="error")&&e.jsxs(e.Fragment,{children:[e.jsxs(me,{children:[e.jsx(Ie,{"aria-hidden":!0,children:"@"}),e.jsxs(fe,{children:[e.jsxs(xe,{children:[i,e.jsx("span",{children:".dcl.eth"})]}),e.jsx(ge,{children:n("names.subtitle")})]}),e.jsxs(ye,{children:[e.jsx(O,{}),I]})]}),c==="error"?e.jsxs(e.Fragment,{children:[e.jsxs(we,{children:[e.jsx(E,{name:"info","aria-hidden":!0}),e.jsx("span",{children:j})]}),$?e.jsx(be,{onClick:o,children:n("names.errorSpentDismiss")}):e.jsx(be,{onClick:()=>g("confirm"),children:n("names.tryAgain")})]}):e.jsxs(e.Fragment,{children:[e.jsxs(Mn,{children:[e.jsx(Fn,{children:n("names.confirmTitle")}),e.jsx(Nn,{dangerouslySetInnerHTML:{__html:n("names.confirmBody",{name:`<b>@${Xn(i)}</b>`})}}),e.jsxs(An,{children:[e.jsx(In,{"aria-hidden":!0,children:"@"}),e.jsx(zn,{value:p,onChange:b=>y(b.target.value.replace(/[^a-zA-Z0-9]/g,"")),placeholder:"yourname","aria-label":n("names.reenterAria"),autoComplete:"off",spellCheck:!1,style:{width:`${Math.max(p.length,8)}ch`}}),e.jsx(Bn,{children:".dcl.eth"})]})]}),P?e.jsxs(we,{"data-tone":"info","data-testid":"name-blocked-reason",children:[e.jsx(E,{name:"info","aria-hidden":!0}),e.jsx("span",{children:P})]}):null,e.jsx(be,{onClick:()=>void L(),disabled:!T||!d||B||S,children:n("names.buyCta")})]})]}),c==="completing"&&e.jsxs(Wn,{children:[e.jsx(Pn,{src:gt,alt:"",width:61,height:61}),e.jsxs(Hn,{children:[e.jsx(Un,{children:re}),e.jsxs(Gn,{children:[e.jsx(Dn,{"aria-hidden":!0,children:e.jsx("span",{})}),e.jsx(Zn,{"data-testid":"name-progress-count",children:`${_}/${N}`})]}),H?e.jsx(On,{children:H}):null]})]}),c==="pending"&&e.jsxs(e.Fragment,{children:[e.jsxs(ce,{children:[e.jsx(de,{children:n("names.pendingHeaderTitle")}),e.jsx(he,{onClick:o,"aria-label":n("buyModal.close"),children:e.jsx(E,{name:"close"})})]}),e.jsxs(pe,{children:[n("names.myCreditsBalance")," ",e.jsx(O,{})," ",le(h,m)]}),e.jsx(ue,{}),e.jsxs(we,{"data-tone":"info",children:[e.jsx(E,{name:"info","aria-hidden":!0}),e.jsxs("span",{children:[e.jsx("b",{children:n("names.pendingBannerBold")})," ",n("names.pendingBannerRest")]})]}),e.jsxs(me,{style:{marginTop:20},children:[e.jsx(Ie,{"aria-hidden":!0,children:"@"}),e.jsxs(fe,{children:[e.jsxs(xe,{children:[i,e.jsx("span",{children:".dcl.eth"})]}),e.jsx(ge,{children:n("names.subtitle")})]}),e.jsxs(ye,{children:[e.jsx(O,{}),I]})]}),e.jsx(ze,{children:e.jsx(Be,{onClick:()=>{o(),f("/my-items")},children:n("names.myItems")})})]}),c==="success"&&e.jsxs(e.Fragment,{children:[e.jsxs(ce,{children:[e.jsx(de,{children:n("names.successHeaderTitle")}),e.jsx(he,{onClick:o,"aria-label":n("buyModal.close"),children:e.jsx(E,{name:"close"})})]}),e.jsxs(pe,{children:[n("names.myCreditsBalance")," ",e.jsx(O,{})," ",le(h,m)]}),e.jsx(ue,{}),e.jsxs(qn,{children:[e.jsx(Vn,{"aria-hidden":!0,children:e.jsx(E,{name:"check"})}),e.jsxs(Kn,{children:[e.jsx("b",{children:n("names.successBannerBold")})," ",n("names.successBannerRest")]})]}),e.jsxs(me,{style:{marginTop:20},children:[e.jsxs(Tn,{"data-testid":"name-success-tile",children:[e.jsx(Ln,{src:jn,alt:"","aria-hidden":!0,width:47,height:47}),e.jsxs(Rn,{children:[e.jsx("span",{"aria-hidden":!0,children:i}),e.jsx(_n,{src:$n,alt:"","aria-hidden":!0,width:14,height:14})]})]}),e.jsxs(fe,{children:[e.jsxs(xe,{children:[i,e.jsx("span",{children:".dcl.eth"})]}),e.jsx(ge,{children:n("names.subtitle")})]}),e.jsxs(ye,{children:[e.jsx(O,{}),I]})]}),e.jsxs(ze,{children:[e.jsx(Be,{onClick:()=>{o(),f("/my-items")},children:n("names.myItems")}),e.jsx(Qn,{href:q.profileUrl,target:"_blank",rel:"noopener noreferrer",children:n("names.assignToAvatar")})]})]})]})})}function Xn(i){return i.replace(/[&<>"']/g,a=>({"&":"&","<":"<",">":">",'"':""","'":"'"})[a])}const Yn="https://cdn.decentraland.org/@dcl/shop/1.4.2-31322819328.commit-403d972/_assets/identity-icon-C8yAW_Gq.svg",es="https://cdn.decentraland.org/@dcl/shop/1.4.2-31322819328.commit-403d972/_assets/world-icon-6xQ-PmmW.svg",ts="https://cdn.decentraland.org/@dcl/shop/1.4.2-31322819328.commit-403d972/_assets/invite-icon-Bz6lCTuB.svg",ns="data:image/svg+xml,%3csvg%20width='55.6797'%20height='63.6174'%20viewBox='0%200%2055.6797%2063.6174'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Vote'%3e%3cpath%20id='Vector'%20d='M0.055012%2039.1045C1.61191%2039.4989%202.83757%2039.3938%204.4307%2039.392L8.27108%2039.3878L20.7762%2039.3883L42.8819%2039.3904L50.0954%2039.3907C51.793%2039.3907%2054.0562%2039.5509%2055.6466%2039.0843C55.5909%2040.7931%2055.647%2042.8581%2055.6469%2044.5864L55.6479%2055.616L55.6559%2059.5618C55.6583%2060.6219%2055.8213%2061.9838%2055.261%2062.8837C55.2205%2062.9265%2055.1794%2062.9688%2055.1377%2063.0104C54.7986%2063.3482%2054.3791%2063.5594%2053.9021%2063.5761C52.0714%2063.642%2050.1544%2063.6097%2048.3241%2063.6078L37.4452%2063.6066L2.97352%2063.6103C2.2022%2063.6084%201.15943%2063.6718%200.589171%2063.0576C-0.204857%2062.2037%200.0327979%2060.3244%200.0349529%2059.1687L0.0414734%2054.3929C0.0413119%2049.3191%20-0.00749456%2044.1727%200.055012%2039.1045Z'%20fill='white'%20fill-opacity='0.8'/%3e%3cpath%20id='Subtract'%20d='M37.1168%200.00495927C38.1773%200.00461149%2039.2888%20-0.0284991%2040.3433%200.0811311C41.0714%200.15695%2041.7266%200.914583%2041.7857%201.63484C41.853%202.45491%2041.8268%203.31926%2041.8258%204.15144L41.8189%208.70418L41.8199%2023.9639L40.1099%2023.9659L13.8726%2023.963L13.8678%209.0909L13.8648%204.29793C13.8644%202.52652%2013.3942%200.34203%2015.6754%200.0342561C15.8907%200.016712%2016.237%200.0120998%2016.4557%200.0117952C21.6059%200.00480262%2026.761%200.0117634%2031.9107%200.00788896L37.1168%200.00495927ZM33.3834%206.17293C32.439%206.55612%2031.0531%208.12922%2030.3014%208.88191L25.8297%2013.3634C25.3537%2012.824%2023.3455%2010.7605%2022.8209%2010.4239C22.5581%2010.2549%2022.2566%2010.1546%2021.9449%2010.1329C21.4563%2010.1008%2020.9754%2010.2879%2020.6139%2010.6134C20.2442%2010.9428%2020.0227%2011.4077%2020.0006%2011.9024C19.9561%2013.0748%2021.3406%2014.1198%2022.1256%2014.8868C22.9429%2015.714%2024.1669%2017.1028%2025.1168%2017.67C26.1632%2018.2949%2027.3471%2017.2145%2027.9723%2016.4942C30.25%2014.2025%2032.5393%2011.9456%2034.8101%209.64949C35.2937%209.16062%2035.7138%208.69126%2035.6851%207.96199C35.6419%206.86558%2034.7821%206.09682%2033.6959%206.14656C33.5914%206.15085%2033.4872%206.16001%2033.3834%206.17293Z'%20fill='%23FF7439'/%3e%3cpath%20id='Vector_2'%20d='M45.5498%2015.976C46.6399%2015.986%2049.9504%2015.7705%2050.7361%2016.241C51.0104%2016.4053%2051.2831%2016.6446%2051.4181%2016.9397C51.892%2017.9763%2052.1015%2019.357%2052.3802%2020.4819L54.0582%2027.2308C54.5046%2028.9073%2054.9023%2030.6043%2055.3338%2032.2824C55.6029%2033.329%2055.9417%2034.4293%2054.9705%2035.2255C54.8158%2035.359%2054.4427%2035.5934%2054.2329%2035.6091C52.7731%2035.7184%2051.1693%2035.6701%2049.7108%2035.6679L39.4635%2035.6649L14.5239%2035.6632C10.471%2035.6631%206.41808%2035.6665%202.36531%2035.6698C1.79359%2035.6657%201.33794%2035.6604%200.844568%2035.337C-0.57365%2034.4073%200.381076%2032.2112%200.72189%2030.8501L1.93462%2025.9936L3.28579%2020.566C3.53371%2019.5688%203.77194%2018.5694%204.04289%2017.5781C4.30559%2016.6172%204.74298%2016.1492%205.73966%2015.9892C7.15095%2015.9419%208.72017%2015.9778%2010.1434%2015.9809L10.1451%2023.9585C7.37011%2024.097%207.74242%2027.5535%209.84963%2027.6469C11.6268%2027.7258%2013.6164%2027.6909%2015.4098%2027.691L26.229%2027.6915L39.1339%2027.691L43.273%2027.6909C44.748%2027.6909%2047.2174%2028.0848%2047.3773%2025.9908C47.4212%2025.4807%2047.2565%2024.9745%2046.9209%2024.5879C46.5265%2024.141%2046.1143%2024.0046%2045.5418%2023.9673L45.5498%2015.976Z'%20fill='white'/%3e%3c/g%3e%3c/svg%3e",ss=s.div`
|
|
462
462
|
width: 100%;
|
|
463
463
|
min-width: 0;
|
|
464
464
|
`,is=s.nav`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as b,j as o}from"./react-BYHuwl8r.js";import{C as oe,R as B,a as je,b as We}from"./categories-
|
|
1
|
+
import{r as b,j as o}from"./react-BYHuwl8r.js";import{C as oe,R as B,a as je,b as We}from"./categories-BfA8_KJ7.js";import{n as c,T as Re}from"./Tooltip-7RBgiOhJ.js";import{s as t,t as e,I as T,b as a,ac as K,C as U}from"./index-CFS2vjXp.js";const f=1e5,y=900,g=90,R=g*2,ie=y/g,ne=f-y,Y=100;function G(i){const s=Math.max(0,Math.min(Math.round(i),R));if(s<=g)return s*ie;const p=y+(s-g)/g*ne;return Math.round(p/Y)*Y}function M(i){const s=Math.max(0,Math.min(i,f));return s<=y?Math.round(s/ie):g+Math.round((s-y)/ne*g)}function q(i){return M(i)/R*100}const Te=t.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
gap: 12px;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as i,L as _,r as F}from"./react-BYHuwl8r.js";import{t as o,s as n,B as G,x as N,y as P,b as e,v as B,z as O,I as z,A as K,l as w,D as H,c as Q,E as X,F as A,h as Z,G as J,H as E}from"./index-
|
|
1
|
+
import{j as i,L as _,r as F}from"./react-BYHuwl8r.js";import{t as o,s as n,B as G,x as N,y as P,b as e,v as B,z as O,I as z,A as K,l as w,D as H,c as Q,E as X,F as A,h as Z,G as J,H as E}from"./index-CFS2vjXp.js";import{c as U,d as V,b as Y,e as tt,s as it,a as et}from"./authorizations-xMkPvvjF.js";import{f as ot}from"./builder-9e7esvMB.js";import{m as at}from"./mana-matic-C4e1sNO3.js";import{f as nt}from"./errors-DGBfq9F-.js";import"./dcl-schemas-CmtP3U6y.js";import"./sentry-DfofRafD.js";import"./ethers-CFWbjvmu.js";import"./intl-CBcMB1D2.js";import"./sendMetaTransaction-Clf7D2IU.js";const st=N`
|
|
2
2
|
to { transform: rotate(360deg); }
|
|
3
3
|
`,rt=N`
|
|
4
4
|
to { background-position: -200% 0; }
|