@dcl/shop 1.9.3-32728272723.commit-675c39d → 1.9.3-32743160136.commit-b84a6df
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-wiQBOvJZ.js → Activity-QAKKW4Vj.js} +9 -9
- package/_assets/{AnimatedBackground-RthAgKMY.js → AnimatedBackground-RzTR5pnn.js} +6 -6
- package/_assets/{Assets-Cn69OQsu.js → Assets-DL6YgWYt.js} +21 -21
- package/_assets/{Authorizations-DQkwMniZ.js → Authorizations-fcwMQvEN.js} +2 -2
- package/_assets/Cart-D2KxXi3r.js +748 -0
- package/_assets/{Collection-DQS4BBsd.js → Collection-BbupMgKn.js} +9 -9
- package/_assets/CollectionCarousel-KtrjUFTp.js +834 -0
- package/_assets/{Confetti-CnwifU5L.js → Confetti-B_SGZDIW.js} +4 -4
- package/_assets/{ConstantsUtil-Cnnb7DY5.js → ConstantsUtil-BUQvDf5H.js} +2 -2
- package/_assets/{ContentClient-Z56PWhtK.js → ContentClient-BAcYQSIO.js} +2 -2
- package/_assets/{Creator-Z-kdGyX0.js → Creator-B02TUwGa.js} +11 -11
- package/_assets/{DeploymentBuilder-C1TR_QtL.js → DeploymentBuilder-B77L0L_H.js} +2 -2
- package/_assets/{EmotePlaybackBar-B4bFL84Q.js → EmotePlaybackBar-6-X8QjVO.js} +4 -4
- package/_assets/{ErrorNotice-DB0NutQX.js → ErrorNotice-BVVq2BBw.js} +2 -2
- package/_assets/{ExchangeController-DQsWu6kG.js → ExchangeController-BKu6gC8H.js} +2 -2
- package/_assets/{Faq-B-KjBhpt.js → Faq-D9k3ABvT.js} +2 -2
- package/_assets/{GetCredits-B7o-ahFl.js → GetCredits-Dpn8gB9T.js} +79 -34
- package/_assets/Grow-tHCcyL-r.js +2 -0
- package/_assets/{HelpersUtil-CDlApuwl.js → HelpersUtil-zX6_tyAi.js} +2 -2
- package/_assets/ItemDetail-D4i816QV.js +3671 -0
- package/_assets/{LoadMore-yHCzMVX9.js → LoadMore-BrnolAMt.js} +2 -2
- package/_assets/{ManaPricingBanner.styles-Bkk6IoAa.js → ManaPricingBanner.styles-CLIn26ZQ.js} +9 -9
- package/_assets/{MyAssets-DPBr4EqO.js → MyAssets-0hzzKkK-.js} +4 -4
- package/_assets/{MyFavorites-DIh3AJ72.js → MyFavorites-DI52kW4T.js} +6 -6
- package/_assets/{NetworkUtil-YfaeL3XJ.js → NetworkUtil-B_9c-U8Q.js} +2 -2
- package/_assets/{NotFound-EGQC517r.js → NotFound-OU0x4dCG.js} +2 -2
- package/_assets/NotificationsBell-B31uvOC8.js +142 -0
- package/_assets/{OutfitDetail-D2gRsLmD.js → OutfitDetail-U5OMt9MB.js} +10 -10
- package/_assets/{OutfitPreview-CFbrD7aI.js → OutfitPreview-fsnJyCY_.js} +3 -3
- package/_assets/{OutfitStudio-BkXEDStE.js → OutfitStudio-1fjhOirp.js} +10 -10
- package/_assets/{StoreSettings-BTzgYL0y.js → StoreSettings-Dtc2cFNu.js} +2 -2
- package/_assets/{Success-x2GWyHwZ.js → Success-DmniYPt7.js} +2 -2
- package/_assets/{SwapController-CmNQixyT.js → SwapController-DAEACGPq.js} +2 -2
- package/_assets/{TradeService-DNGia0OJ.js → TradeService-BcpRovgR.js} +2 -2
- package/_assets/{W3MFrameProviderSingleton-BT9sgsfW.js → W3MFrameProviderSingleton-BClgaXM6.js} +4 -4
- package/_assets/{WebCryptoP256-V66v1WyH.js → WebCryptoP256-Bzqct4AR.js} +2 -2
- package/_assets/authorizations-Bq00FRrP.js +2 -0
- package/_assets/{basic-S2U2MIXo.js → basic-v2yN93R9.js} +2 -2
- package/_assets/{biconomy-B3GclgM5.js → biconomy-BbyLh2rY.js} +2 -2
- package/_assets/{browseLayout.styles-DdoX94ao.js → browseLayout.styles-DsbssS1X.js} +8 -8
- package/_assets/{browser-Yr5YHIXb.js → browser-B3a9BIYV.js} +2 -2
- package/_assets/{browser-ponyfill-7e35X2wE.js → browser-ponyfill-Dukw0TjS.js} +2 -2
- package/_assets/{builder-ZuQFtHN7.js → builder-DysINipi.js} +2 -2
- package/_assets/buy-DZz-IuoV.js +2 -0
- package/_assets/{buy-gasless-C-8JY4JE.js → buy-gasless-B29llLau.js} +2 -2
- package/_assets/{categories-orB_QPDP.js → categories-ByT980ve.js} +2 -2
- package/_assets/{ccip-GIdsv8rm.js → ccip-BRPx_ZlG.js} +2 -2
- package/_assets/{ccip-BmDS_bTy.js → ccip-DYkZfgm6.js} +2 -2
- package/_assets/{chains-Ca51A7Ks.js → chains-DZroLyZV.js} +2 -2
- package/_assets/{collectionPage.styles-Dh90G62H.js → collectionPage.styles-Djchm0Nm.js} +6 -6
- package/_assets/{common-DQUwV3Gu.js → common-DYJHHIB9.js} +2 -2
- package/_assets/{controller-BJsJcDQe.js → controller-BOWAb87t.js} +3 -3
- package/_assets/{core-Ctn9qkOR.js → core-Bw4v_vQY.js} +5 -5
- package/_assets/createSvgIcon-CaKhLrQG.js +75 -0
- package/_assets/{custom-Do5QPS7e.js → custom-BzZXMtsn.js} +2 -2
- package/_assets/{data-capture-CgHHR5Aj.js → data-capture-BRuFpOfW.js} +2 -2
- package/_assets/{dcl-schemas-BrhDU8Ob.js → dcl-schemas-CN-1-wGb.js} +2 -2
- package/_assets/{decimals-CnKheYha.js → decimals-BPF9JuRG.js} +2 -2
- package/_assets/{decimals-BW_s4s-s.js → decimals-BlaBlIXg.js} +2 -2
- package/_assets/{detectExtension-Bfwwsutx.js → detectExtension-Cpjv7w9d.js} +2 -2
- package/_assets/{disposePreview-DqlQXFBW.js → disposePreview-DvbibLHk.js} +2 -2
- package/_assets/{email-DUmzs_tF.js → email-DRfEf-Gg.js} +2 -2
- package/_assets/{embedded-wallet-Bv1KSoBX.js → embedded-wallet-k-rK_Tzp.js} +2 -2
- package/_assets/emotion-styled.browser.esm-7mw60jip.js +2 -0
- package/_assets/{engine-DEYwEW_p.js → engine-Ds8WBhQq.js} +2 -2
- package/_assets/{errors-CHeQ52EG.js → errors-DUsd8eGX.js} +2 -2
- package/_assets/{estimate-l1-fee-DtiVNA82.js → estimate-l1-fee-BqWlqB6P.js} +2 -2
- package/_assets/{eth_estimateGas-C0J4pFj3.js → eth_estimateGas-Dj0RarmM.js} +2 -2
- package/_assets/{eth_getStorageAt-D_VuzNfo.js → eth_getStorageAt-C2kSbou7.js} +2 -2
- package/_assets/{eth_getTransactionCount-C9QdrrgN.js → eth_getTransactionCount-DxqQ7LF-.js} +2 -2
- package/_assets/{ethereum-D98YbqZW.js → ethereum-CMQLQ53m.js} +2 -2
- package/_assets/{ethers-13WTbgZT.js → ethers-3hUTVH_L.js} +2 -2
- package/_assets/{events-Bfmg7Rrt.js → events-BAvGtdFA.js} +2 -2
- package/_assets/{execute-BKduu7xa.js → execute-B-kQuKck.js} +3 -3
- package/_assets/{extractIPFS-BoSTMqtl.js → extractIPFS-C9V9S9Vx.js} +2 -2
- package/_assets/{features-CiOwD_FL.js → features-D9eM9k8d.js} +2 -2
- package/_assets/{fetchTokenMetadata-CYea_Ae0.js → fetchTokenMetadata-1AbceoZv.js} +3 -3
- package/_assets/{field.styles-1ph2By3r.js → field.styles-DwpKCezV.js} +2 -2
- package/_assets/{fortmatic-FXRUPZdn.js → fortmatic-CeTGzQ72.js} +2 -2
- package/_assets/{get-bytecode-DsFs5fZG.js → get-bytecode-B4ZUFLU7.js} +2 -2
- package/_assets/{get-ecosystem-wallet-info-CrXYfBwJ.js → get-ecosystem-wallet-info-Da9XiCOd.js} +2 -2
- package/_assets/{getBalance-CkyNP7Sk.js → getBalance-CJap-JGo.js} +3 -3
- package/_assets/{getInstalledModules-BJjlqPjw.js → getInstalledModules-Do6d5mXY.js} +2 -2
- package/_assets/getNFT-CAMw_8Xw.js +3 -0
- package/_assets/getNFT-CLshkBBY.js +2 -0
- package/_assets/{grid.styles-xN-7VEdz.js → grid.styles-C5Gu9fMU.js} +2 -2
- package/_assets/{hashTypedData-DKoi13N6.js → hashTypedData-BUtmFCdm.js} +2 -2
- package/_assets/{hashTypedData-Csm33HiU.js → hashTypedData-Vr7bI_tu.js} +2 -2
- package/_assets/{in-app-DiZ1z2bU.js → in-app-nwWqF9c8.js} +2 -2
- package/_assets/{in-app-wallet-calls-D_BXC_ak.js → in-app-wallet-calls-N7orXys6.js} +2 -2
- package/_assets/{index-_QehBQtS.js → index-7V82xXhB.js} +2 -2
- package/_assets/{index-BMZPGByj.js → index-8nD-GtHU.js} +2 -2
- package/_assets/{index-CONlhNBW.js → index-9Kw5Rztb.js} +2 -2
- package/_assets/{index-CjDgPW_g.js → index-Ardj6yky.js} +2 -2
- package/_assets/{index-D_MyRErw.js → index-B-dIqjhn.js} +13 -13
- package/_assets/{index-Lagqhz0D.js → index-B5BlLi8g.js} +2 -2
- package/_assets/{index-C66Uqb3h.js → index-BASnFl3W.js} +4 -4
- package/_assets/{index-BbfrgiQ2.js → index-BMDWzXEE.js} +3 -3
- package/_assets/{index-z50ayPbm.js → index-BQ9y6ZaA.js} +2 -2
- package/_assets/{index-FVl1HwRo.js → index-BQb3Wk5r.js} +2 -2
- package/_assets/index-BRQaaXvE.js +29 -0
- package/_assets/{index-DnFe-nlA.js → index-BRZfndrv.js} +5 -5
- package/_assets/{index-BvWdVY3S.js → index-BV9RyOEp.js} +2 -2
- package/_assets/{index-C1mRjPET.js → index-BYVFrjrb.js} +3 -3
- package/_assets/{index-CE_9QqpM.js → index-BaO4bMuZ.js} +2 -2
- package/_assets/{index-CoGsK86G.js → index-BdeCgajO.js} +2 -2
- package/_assets/{index-Ceh2dU74.js → index-Bk-sREBo.js} +3 -3
- package/_assets/{index-D3G8Fdkz.js → index-Bl1ek_ne.js} +8 -8
- package/_assets/{index-YXtOvMCg.js → index-BmpxmYmS.js} +6 -6
- package/_assets/{index-D12w4DAh.js → index-C24_ekJb.js} +3 -3
- package/_assets/{index-pU44WsoO.js → index-C5IAd4qq.js} +2 -2
- package/_assets/{index-FoEkr-Gx.js → index-C5ykZ17C.js} +4 -4
- package/_assets/{index-B-VnvrXk.js → index-C6yqnRel.js} +2 -2
- package/_assets/{index-BLCZsXPx.js → index-C7ZiEK10.js} +5 -5
- package/_assets/index-C7dG5MlC.js +2 -0
- package/_assets/{index-CaUZtRY4.js → index-C8CrTE0H.js} +4 -4
- package/_assets/{index-DK3Qx85d.js → index-CIonCZaH.js} +2 -2
- package/_assets/{index-DoiWiVM0.js → index-CKPrX-hd.js} +2 -2
- package/_assets/{index-1fc9icEt.js → index-CLkhQUQ6.js} +2 -2
- package/_assets/{index-jlD47_Vi.js → index-CPFt5W7a.js} +2 -2
- package/_assets/index-CTkFcWFW.js +31 -0
- package/_assets/{index-BiOg6MaL.js → index-CU8_wCvl.js} +2 -2
- package/_assets/{index-DHZrYG6U.js → index-CW_28RYg.js} +2 -2
- package/_assets/{index-ClWm5BzQ.js → index-Casvq6JB.js} +5 -5
- package/_assets/{index-C0UpQJ3R.js → index-CeMUz1Vt.js} +2 -2
- package/_assets/index-CoOoDCex.js +3 -0
- package/_assets/{index-Dnn6D-aI.js → index-CqtWNRv-.js} +4 -4
- package/_assets/{index-Cw7Ynnas.js → index-CyD5pQGT.js} +6 -6
- package/_assets/{index-CwJ5xwPT.js → index-CyMO1hqV.js} +2 -2
- package/_assets/{index-B9dxuRhp.js → index-CzJG485v.js} +4 -4
- package/_assets/index-D165_lhw.js +2 -0
- package/_assets/{index-Ch6rsL_B.js → index-D7jo6ksh.js} +3 -3
- package/_assets/{index-BIH4pLmB.js → index-DL9BGlLg.js} +9 -9
- package/_assets/{index-sUOR8hyr.js → index-DN4pkOIt.js} +2 -2
- package/_assets/{index-UB89SKfu.js → index-DUZQbok2.js} +2 -2
- package/_assets/{index-BIuwf8hd.js → index-DUiscdsk.js} +2 -2
- package/_assets/{index-C_ZwEBoo.js → index-DaYk4f8v.js} +4 -4
- package/_assets/{index-3lrmnEWw.js → index-DcHviZ_A.js} +2 -2
- package/_assets/{index-CWGgaCTU.js → index-DrBZNwIH.js} +9 -9
- package/_assets/{index-B_ujx6Xm.js → index-DxNecTCT.js} +3 -3
- package/_assets/{index-DOlrtt3M.js → index-DxcjAnEQ.js} +6 -6
- package/_assets/{index-BW-svIkd.js → index-DyxdGNpO.js} +2 -2
- package/_assets/{index-CHQCW37d.js → index-FcM585jS.js} +2 -2
- package/_assets/{index-Clnwiuqm.js → index-GpII3RQe.js} +7 -7
- package/_assets/{index-D3e9i18Z.js → index-N6bLRe9n.js} +2 -2
- package/_assets/{index-nbIX4Ytl.js → index-NxvojHai.js} +3 -3
- package/_assets/{index-Iy_1muGf.js → index-PD4xoiKM.js} +2 -2
- package/_assets/{index-DbYBtUCy.js → index-ZsDPPnJO.js} +2 -2
- package/_assets/{index-8ghXpAgH.js → index-_r_ufyIV.js} +5 -5
- package/_assets/{index-BurKCVaZ.js → index-arksk5Cj.js} +3 -3
- package/_assets/{index-VFfx8OgX.js → index-eBmw3fXZ.js} +3 -3
- package/_assets/{index-D7I_eFC7.js → index-eN8iGXCt.js} +2 -2
- package/_assets/{index-BBW9JwC1.js → index-hVKWyt40.js} +2 -2
- package/_assets/{index-DHDyWXF3.js → index-j4G49haZ.js} +2 -2
- package/_assets/{index-C4ca7Vt-.js → index-mJBnQ2Dj.js} +2 -2
- package/_assets/{index-crQcv9Ov.js → index-o602nshH.js} +2 -2
- package/_assets/{index-BqvS0YcJ.js → index-otS3prm0.js} +2 -2
- package/_assets/{index.es-CgnmJs4M.js → index.es-BYlgbFaR.js} +5 -5
- package/_assets/{index.es-BEhJZqhV.js → index.es-Cv5GXMGv.js} +2 -2
- package/_assets/{index.es-ro7appUX.js → index.es-D6r5jb9y.js} +2 -2
- package/_assets/{index.es-eBlnNE_8.js → index.es-N9rocrKW.js} +2 -2
- package/_assets/{items-empty-DO2UT8K2.js → items-empty-DHu8EAf0.js} +2 -2
- package/_assets/{jump-Bhj8Kohh.js → jump-CZr_KgFH.js} +2 -2
- package/_assets/{linkAccount-BRQ8Ev1P.js → linkAccount-DDn4BnMD.js} +2 -2
- package/_assets/{localBatchGatewayRequest-B4LC5KML.js → localBatchGatewayRequest-D-Y_ipMD.js} +2 -2
- package/_assets/{native-Bvt0W0jA.js → native-EhJtXu3y.js} +2 -2
- package/_assets/{networks-CaAL5XAk.js → networks-Bu5S3nZh.js} +2 -2
- package/_assets/{onramp-Cp8_0NX3.js → onramp-DafTmJEE.js} +2 -2
- package/_assets/{openzeppelin-DW0vhDwF.js → openzeppelin-DrjFStIu.js} +2 -2
- package/_assets/{ownerOf-DHZ-ngeW.js → ownerOf-C6L3B_bp.js} +2 -2
- package/_assets/{parseNft-CEwkovMr.js → parseNft-Blq_Sjtq.js} +3 -3
- package/_assets/{parseSignature-ifLHrMWV.js → parseSignature-GSnulywH.js} +4 -4
- package/_assets/{parseSignature-Duwa-2pX.js → parseSignature-Q7C9dXBW.js} +2 -2
- package/_assets/passkeys-BKUjWMsd.js +2 -0
- package/_assets/{pay-with-exchange-Yn92eb0n.js → pay-with-exchange-ChWZJZmh.js} +2 -2
- package/_assets/{prepare-contract-call-BZBDdYDD.js → prepare-contract-call-B2J2TZU4.js} +2 -2
- package/_assets/{qr-overlay-8DGBc2-N.js → qr-overlay-Dp5EKTi4.js} +4 -4
- package/_assets/{react-DjOKjwAj.js → react-DcSw8tCD.js} +2 -2
- package/_assets/{receive-CN3FejJq.js → receive-jGBB6R5D.js} +2 -2
- package/_assets/{resolveImplementation-Ckhnk_N2.js → resolveImplementation-mqgPq49O.js} +2 -2
- package/_assets/{resume-buy--hmhwjSU.js → resume-buy-CEzVJZQm.js} +2 -2
- package/_assets/{rpc-C6etA5rL.js → rpc-DYUIG9Ju.js} +2 -2
- package/_assets/{sales-empty-C0l-l75T.js → sales-empty-Vn4xVfP7.js} +2 -2
- package/_assets/{search-empty-BhlZHJF-.js → search-empty-PfWp7qfl.js} +2 -2
- package/_assets/{secp256k1-C4HGjRo8.js → secp256k1-Bh8CfHpQ.js} +2 -2
- package/_assets/{secp256k1-BvDOJrZj.js → secp256k1-Dse58ee0.js} +2 -2
- package/_assets/{secp256k1-BAAt2AsC.js → secp256k1-N8bNn80H.js} +2 -2
- package/_assets/{send-batch-transaction-0FOgO-ET.js → send-batch-transaction-BpqXJtGJ.js} +2 -2
- package/_assets/{send-eip712-transaction-BOK7YDZz.js → send-eip712-transaction-D2-3cTz5.js} +3 -3
- package/_assets/{send-gasless-transaction-Cu--gdaY.js → send-gasless-transaction-DvU-irYQ.js} +3 -3
- package/_assets/{send-BI0btOc6.js → send-h29mxUrF.js} +2 -2
- package/_assets/send-transaction-FUszabPU.js +3 -0
- package/_assets/sendMetaTransaction-CcfiyKVp.js +2 -0
- package/_assets/{sendRawTransaction-C3ZoitjG.js → sendRawTransaction-BQgltNSJ.js} +4 -4
- package/_assets/{sentry-BxdwO3pv.js → sentry-CAS3BNIy.js} +3 -3
- package/_assets/{serializeTransaction-pYtrV7RU.js → serializeTransaction-__k14-5R.js} +2 -2
- package/_assets/{session-proposal-Db_N4_Gn.js → session-proposal-C3dOHBpp.js} +2 -2
- package/_assets/{session-request-B7eT8WJX.js → session-request-La1Lz5pY.js} +3 -3
- package/_assets/{sha256-3PO3xhiT.js → sha256-CLzVl0-i.js} +2 -2
- package/_assets/{signing-wiPQ7Wvz.js → signing-ClZDdyWr.js} +4 -4
- package/_assets/{skeleton.styles-DTnZygMc.js → skeleton.styles-BideLusx.js} +2 -2
- package/_assets/{socials-bRUEtmju.js → socials-DU6TufzI.js} +2 -2
- package/_assets/{styled-DV3ca-sF.js → styled-lv29vbU7.js} +3 -3
- package/_assets/{swaps-B-elkyix.js → swaps-DsEkYfnN.js} +8 -8
- package/_assets/{thirdweb-U2M04SJR.js → thirdweb-ByxuX0DY.js} +4 -4
- package/_assets/{to-serializable-transaction-C460Jpwk.js → to-serializable-transaction-B9MSl050.js} +3 -3
- package/_assets/{totalSupply-Go9y-Ilv.js → totalSupply-DOU8z336.js} +2 -2
- package/_assets/{transaction-Dh6qJ7PN.js → transaction-CuK5IUGr.js} +2 -2
- package/_assets/{transactionReceipt-MlvCCpAz.js → transactionReceipt-jeQgFWvn.js} +2 -2
- package/_assets/transactions-C5_JA1NE.js +17 -0
- package/_assets/{useCreditPacks-CsOWjtuZ.js → useCreditPacks-CU0lRdPq.js} +2 -2
- package/_assets/{useInfiniteGrid-BRJtiYn-.js → useInfiniteGrid-BPtTRHIB.js} +2 -2
- package/_assets/{useStore-DvwWBFUP.js → useStore-rPC8Gwuv.js} +3 -3
- package/_assets/{useTheme-Clcy27dj.js → useTheme-C_44BN3j.js} +2 -2
- package/_assets/{utils-C47sFUWS.js → utils-BV4hvYlV.js} +2 -2
- package/_assets/{verifyHash-CgNpRrLI.js → verifyHash-qwpY3McX.js} +2 -2
- package/_assets/{w3m-modal-CsqnZdOv.js → w3m-modal-IH0P0x8g.js} +2 -2
- package/_assets/{w3m-modal-iB_Jyio2.js → w3m-modal-RWmLMEhq.js} +2 -2
- package/_assets/{wait-for-tx-receipt-CZmHSBIy.js → wait-for-tx-receipt-CfUmETfV.js} +2 -2
- package/_assets/{wallets-D0ayx2Ud.js → wallets-DBFKTZVz.js} +6 -6
- package/_assets/{web-connector-CoAY_9Ez.js → web-connector-5O3sqPuw.js} +4 -4
- package/_assets/{writeContract-CAHluxuL.js → writeContract-CwGPT4Iu.js} +2 -2
- package/_assets/{zora-sepolia-CwYmHh_e.js → zora-sepolia-CLbV2B8e.js} +2 -2
- package/_assets/{zoraTestnet-CYFRaB4W.js → zoraTestnet-wnoXWuLz.js} +2 -2
- package/index.html +11 -11
- package/package.json +2 -2
- package/_assets/Cart-BzK8CObO.js +0 -645
- package/_assets/CircularProgress-vVxuKRO3.js +0 -29
- package/_assets/CollectionCarousel-BAdWBmbr.js +0 -937
- package/_assets/Grow-CiHUKYJJ.js +0 -2
- package/_assets/ItemDetail-CnsFOTP0.js +0 -3655
- package/_assets/NotificationsBell-cEMFVXUQ.js +0 -142
- package/_assets/app-store-4P6uzW8u.svg +0 -34
- package/_assets/authorizations-DbYL1SFo.js +0 -2
- package/_assets/buy-VoaFL0gA.js +0 -2
- package/_assets/clsx-BEtG4eYu.js +0 -2
- package/_assets/createSvgIcon-DuQr81Ef.js +0 -75
- package/_assets/download-on-the-app-store-D7CmsZZO.svg +0 -25
- package/_assets/emotion-styled.browser.esm-Bmaw-B0u.js +0 -2
- package/_assets/get-in-on-google-play-Cqt13Ucn.svg +0 -23
- package/_assets/get-in-on-play-store-button-49Za7I2x.svg +0 -11
- package/_assets/getNFT-BK80hZpF.js +0 -3
- package/_assets/getNFT-CaFBE3dG.js +0 -2
- package/_assets/index-B6Acsbwr.js +0 -2
- package/_assets/index-CyPssfNz.js +0 -2
- package/_assets/index-D0CrRpvU.js +0 -3
- package/_assets/index-DM273JHq.js +0 -31
- package/_assets/index-DaMpIpZ6.js +0 -2
- package/_assets/logo-pattern-D4X-bvlg.webp +0 -0
- package/_assets/man-default1-BEO13leF.png +0 -0
- package/_assets/passkeys-FupWf6Qe.js +0 -2
- package/_assets/qr-android-MBrMPexN.svg +0 -1
- package/_assets/send-transaction-BRv4xPkp.js +0 -3
- package/_assets/sendMetaTransaction-kIltSLeV.js +0 -2
- package/_assets/transactions-Bkojvbe9.js +0 -17
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["_assets/index-
|
|
2
|
-
import{
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["_assets/index-Bl1ek_ne.js","_assets/react-DcSw8tCD.js","_assets/index-B-dIqjhn.js","_assets/dcl-schemas-CN-1-wGb.js","_assets/sentry-CAS3BNIy.js","_assets/ethers-3hUTVH_L.js","_assets/intl-AKLEHPeO.js","_assets/index-CKGO8NWe.css","_assets/sales-empty-Vn4xVfP7.js","_assets/buy-DZz-IuoV.js","_assets/authorizations-Bq00FRrP.js","_assets/sendMetaTransaction-CcfiyKVp.js","_assets/ManaPricingBanner.styles-CLIn26ZQ.js","_assets/Faq-D9k3ABvT.js","_assets/field.styles-DwpKCezV.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{U as we,bF as Ie,o as U,l as A,bG as Ae,t as o,s as l,m as Ee,n as Le,b as r,J as Ne,I as T,bH as se,bI as ne,bJ as $e,_ as Pe,L as Te,q as E,ao as K,bK as Se,r as Ce,bl as B,E as Fe,bL as De,w as N,bM as Me,bN as Q}from"./index-B-dIqjhn.js";import{r as g,u as He,j as t,e as qe,L as Re}from"./react-DcSw8tCD.js";import{u as Oe,s as _e}from"./sales-empty-Vn4xVfP7.js";import{L as ze}from"./LoadMore-BrnolAMt.js";import{u as $}from"./useInfiniteGrid-BPtTRHIB.js";import{m as de}from"./mana-matic-CEqvSwrJ.js";import{n as We}from"./name-glyph-aUugT8vq.js";import"./dcl-schemas-CN-1-wGb.js";import"./sentry-CAS3BNIy.js";import"./ethers-3hUTVH_L.js";import"./intl-AKLEHPeO.js";import"./buy-DZz-IuoV.js";import"./authorizations-Bq00FRrP.js";import"./sendMetaTransaction-CcfiyKVp.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},s=new e.Error().stack;s&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[s]="ac8b660f-7a75-491a-bfb8-72482b26a661",e._sentryDebugIdIdentifier="sentry-dbid-ac8b660f-7a75-491a-bfb8-72482b26a661")}catch{}})();const Ge=15e3;function Ue(e,s){return e.txHash&&s.txHash?e.txHash===s.txHash:e.txHash||s.txHash?!1:e.status===s.status&&Math.abs(e.createdAt-s.createdAt)<=Ge}function Ke(e){const s=[...e].sort((i,d)=>d.createdAt-i.createdAt),n=[];for(const i of s){const d=n[n.length-1];d&&Ue(d[d.length-1],i)?d.push(i):n.push([i])}return n.map(i=>{var d;return{id:((d=i.find(a=>a.txHash))==null?void 0:d.txHash)??i[i.length-1].id,createdAt:Math.max(...i.map(a=>a.createdAt)),status:Be(i),totalCredits:i.reduce((a,h)=>a+h.credits,0),lines:i}})}function Be(e){return e.some(s=>s.status==="PENDING")?"PENDING":e.some(s=>s.status==="SETTLED")?"SETTLED":"EXPIRED"}function Qe(e){return e==="SETTLED"?"SETTLED":e==="EXPIRED"?"FAILED":"PENDING"}function Xe(e){return e.tradeId?`trade:${e.tradeId}`:e.contractAddress&&e.itemId?`item:${e.contractAddress.toLowerCase()}:${e.itemId}`:null}function Ve(e){const s=[],n=new Map;for(const i of e){const d=Xe(i);if(!d){s.push({key:i.id,tradeId:null,contractAddress:i.contractAddress??null,itemId:i.itemId??null,registeredName:i.registeredName??null,quantity:1,credits:i.credits});continue}const a=n.get(d);if(a){a.quantity+=1,a.credits+=i.credits;continue}const h={key:d,tradeId:i.tradeId,contractAddress:i.contractAddress??null,itemId:i.itemId??null,registeredName:i.registeredName??null,quantity:1,credits:i.credits};n.set(d,h),s.push(h)}return s}function Je(e,s){return{id:e.id,contractAddress:e.contractAddress,tokenId:e.tokenId,itemId:e.itemId,counterparty:e.buyer,credits:s?we(e.manaWei,s):null,manaWei:e.manaWei,createdAt:e.createdAt,txHash:e.txHash}}function Ye(e){return e.status!=="EXPIRED"||!!e.submittedTxHash}function Ze(e){const n=Ke(e.purchases.filter(Ye)).map(c=>({kind:"purchase",id:`purchase:${c.id}`,createdAt:c.createdAt,order:c})),i=e.sales.map(c=>{const m=Je(c,e.rate);return{kind:"sale",id:`sale:${m.id}`,createdAt:m.createdAt,sale:m}}),d=(e.creditOrders??[]).filter(c=>c.status!=="failed"&&c.status!=="abandoned").map(c=>({kind:"credit",id:`credit:${c.id}`,createdAt:c.createdAt,order:c})),a=new Set(e.purchases.filter(c=>c.txHash).map(c=>c.txHash.toLowerCase())),h=(e.manaPurchases??[]).filter(c=>!a.has(c.txHash.toLowerCase())).map(c=>({kind:"mana-purchase",id:`mana-purchase:${c.id}`,createdAt:c.createdAt,sale:c}));return[...n,...i,...d,...h].sort((c,m)=>m.createdAt-c.createdAt||(c.id<m.id?-1:1))}function et(e,s){return s==="all"?e:s==="sales"?e.filter(n=>n.kind==="sale"):e.filter(n=>n.kind==="purchase"||n.kind==="credit"||n.kind==="mana-purchase")}const ce=e=>e.trim().toLowerCase();function tt(e){const s=new Map;for(const n of e??[]){const i=ce(n.txHash??"");if(!i)continue;const d=s.get(i);d?d.push(n):s.set(i,[n])}return s}function it(e,s,n=Date.now()){const i=s.txHash?e.get(ce(s.txHash)):void 0;if(!i||i.length===0)return{kind:"direct"};const d=i.length===1?st(i[0].netCents):null,a=i.filter(c=>!c.available&&c.availableAt>n);if(a.length===0)return{kind:"credited",credits:d};const h=a.reduce((c,m)=>Math.max(c,m.availableAt),0);return{kind:"pending",credits:d,availableAt:h}}function st(e){return Ie(e)}function nt(){const e=U(i=>{var d;return(d=i.session)==null?void 0:d.address}),{data:s,isLoading:n}=A({queryKey:["listing-count",e],queryFn:()=>Ae({creator:e,onSale:!0,first:1}),enabled:!!e,staleTime:5*6e4});return{count:s==null?void 0:s.total,isLoading:n}}const at="https://cdn.decentraland.org/@dcl/shop/1.9.3-32743160136.commit-b84a6df/_assets/credits-product-vs4Q6u6l.svg",X=Ee`
|
|
3
3
|
0% { background-position: 200% 0; }
|
|
4
4
|
100% { background-position: -200% 0; }
|
|
5
5
|
`,rt=l.section`
|
|
@@ -157,7 +157,7 @@ import{Y as we,bQ as Ie,o as U,l as A,bR as Ae,t as o,s as l,m as Ee,n as Le,b a
|
|
|
157
157
|
height: 30px;
|
|
158
158
|
display: block;
|
|
159
159
|
}
|
|
160
|
-
`,
|
|
160
|
+
`,q=l.span`
|
|
161
161
|
font-size: 11px;
|
|
162
162
|
font-weight: 700;
|
|
163
163
|
text-transform: uppercase;
|
|
@@ -281,7 +281,7 @@ import{Y as we,bQ as Ie,o as U,l as A,bR as Ae,t as o,s as l,m as Ee,n as Le,b a
|
|
|
281
281
|
outline: 2px solid ${o.colors.accent};
|
|
282
282
|
outline-offset: -2px;
|
|
283
283
|
}
|
|
284
|
-
`,
|
|
284
|
+
`,R=l.div`
|
|
285
285
|
width: 52px;
|
|
286
286
|
height: 52px;
|
|
287
287
|
border-radius: 10px;
|
|
@@ -297,7 +297,7 @@ import{Y as we,bQ as Ie,o as U,l as A,bR as Ae,t as o,s as l,m as Ee,n as Le,b a
|
|
|
297
297
|
height: 100%;
|
|
298
298
|
object-fit: contain;
|
|
299
299
|
}
|
|
300
|
-
`,
|
|
300
|
+
`,J=l.div`
|
|
301
301
|
width: 52px;
|
|
302
302
|
height: 52px;
|
|
303
303
|
border-radius: 10px;
|
|
@@ -318,7 +318,7 @@ import{Y as we,bQ as Ie,o as U,l as A,bR as Ae,t as o,s as l,m as Ee,n as Le,b a
|
|
|
318
318
|
white-space: nowrap;
|
|
319
319
|
overflow: hidden;
|
|
320
320
|
text-overflow: ellipsis;
|
|
321
|
-
`,
|
|
321
|
+
`,Y=l.span`
|
|
322
322
|
display: inline-block;
|
|
323
323
|
width: 140px;
|
|
324
324
|
max-width: 60%;
|
|
@@ -377,7 +377,7 @@ import{Y as we,bQ as Ie,o as U,l as A,bR as Ae,t as o,s as l,m as Ee,n as Le,b a
|
|
|
377
377
|
`,jt=l.p`
|
|
378
378
|
margin: 0;
|
|
379
379
|
color: ${o.colors.softWhite};
|
|
380
|
-
`,kt=l(
|
|
380
|
+
`,kt=l(R)`
|
|
381
381
|
background: ${o.gradients.amethyst};
|
|
382
382
|
|
|
383
383
|
img {
|
|
@@ -385,5 +385,5 @@ import{Y as we,bQ as Ie,o as U,l as A,bR as Ae,t as o,s as l,m as Ee,n as Le,b a
|
|
|
385
385
|
height: 26px;
|
|
386
386
|
object-fit: contain;
|
|
387
387
|
}
|
|
388
|
-
`,J=L.withComponent(qe),wt=g.lazy(()=>Pe(()=>import("./index-D3G8Fdkz.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14])).then(e=>({default:e.ImportListings}))),P=24,It=["all","purchases","sales"],W="section",oe="listings",G="view",At="migrate";function I(e){try{return new Date(e).toLocaleDateString(void 0,{year:"numeric",month:"short",day:"numeric"})}catch{return""}}function pe(e){return e.length>10?`${e.slice(0,6)}…${e.slice(-4)}`:e}function me(e){const s=Number(e)/1e18;return Number.isFinite(s)?s.toLocaleString("en",{maximumFractionDigits:2}):"0"}function xe({children:e}){const s=g.useRef(null),[n,i]=g.useState(null),d=()=>{var h;const a=(h=s.current)==null?void 0:h.getBoundingClientRect();a&&i({top:a.bottom+8,left:a.left+a.width/2})};return t.jsxs(xt,{ref:s,tabIndex:0,onMouseEnter:d,onMouseLeave:()=>i(null),onFocus:d,onBlur:()=>i(null),children:[e,n?Re.createPortal(t.jsx(gt,{style:{top:n.top,left:n.left},role:"tooltip",children:r("activity.polygonMana")}),document.body):null]})}function Et({item:e}){const s=!!e.contractAddress&&!!e.itemId,n=!!e.tradeId||s,{data:i,isLoading:d}=A({queryKey:["order-line-display",e.tradeId,e.contractAddress,e.itemId],queryFn:()=>e.tradeId?Me(e.tradeId):Q(e.contractAddress,{itemId:e.itemId}),enabled:n,staleTime:5*6e4}),a=n&&d,h=(i==null?void 0:i.name)??r("activity.itemFallback"),c=(i==null?void 0:i.thumbnail)??"",m=B({contractAddress:i==null?void 0:i.contractAddress,tokenId:i==null?void 0:i.tokenId,itemId:i==null?void 0:i.itemId})??void 0,f=t.jsxs(t.Fragment,{children:[a?t.jsx(Y,{}):t.jsx(q,{children:c?t.jsx("img",{src:c,alt:h}):t.jsx(T,{name:"cart",size:20})}),t.jsxs(O,{children:[a?t.jsx(Z,{}):t.jsx(_,{title:h,children:h}),e.quantity>1?t.jsx(z,{children:r("activity.quantity",{count:e.quantity})}):null]}),t.jsxs(he,{children:[t.jsx(E,{className:"ccy-mark"})," ",t.jsx(K,{credits:e.credits})]})]});return m?t.jsx(J,{to:m,"data-link":"true",children:f}):t.jsx(L,{children:f})}function Lt({item:e}){const s=`@${e.registeredName}`;return t.jsxs(L,{"data-testid":"activity-name-line",children:[t.jsx(kt,{children:t.jsx("img",{src:We,alt:""})}),t.jsxs(O,{children:[t.jsx(_,{title:s,children:s}),t.jsx(z,{children:r("activity.nameRegistration")})]}),t.jsxs(he,{children:[t.jsx(E,{className:"ccy-mark"})," ",e.credits]})]})}function Nt({order:e}){const s=Ve(e.lines),n=s.reduce((a,h)=>a+h.quantity,0),i=Qe(e.status),d=i==="SETTLED"?r("activity.completed"):i==="FAILED"?r("activity.failed"):r("activity.processing");return t.jsxs(S,{"data-testid":"purchase-order",children:[t.jsxs(C,{children:[t.jsxs(F,{children:[t.jsx(D,{children:I(e.createdAt)}),t.jsxs(M,{children:[r("activity.purchaseLabel")," · ",r("activity.itemCount",{count:n})]})]}),t.jsxs(H,{children:[t.jsx(R,{"data-status":i,children:d}),t.jsxs(k,{children:[t.jsx(E,{className:"ccy-mark"})," ",t.jsx(K,{credits:e.totalCredits})]})]})]}),i==="FAILED"?t.jsx(ft,{children:r("activity.purchaseFailedNote")}):null,t.jsx(V,{children:s.map(a=>a.registeredName?t.jsx(Lt,{item:a},a.key):t.jsx(Et,{item:a},a.key))})]})}function $t({sale:e}){const{data:s,isLoading:n}=A({queryKey:["asset-display",e.contractAddress,e.tokenId,e.itemId],queryFn:()=>Q(e.contractAddress,{tokenId:e.tokenId,itemId:e.itemId}),enabled:!!e.contractAddress,staleTime:3e5}),i=(s==null?void 0:s.name)??r("activity.itemFallback"),d=(s==null?void 0:s.thumbnail)??"",a=B({contractAddress:e.contractAddress,tokenId:e.tokenId,itemId:e.itemId})??void 0,h=t.jsxs(t.Fragment,{children:[n?t.jsx(Y,{}):t.jsx(q,{children:d?t.jsx("img",{src:d,alt:i}):t.jsx(T,{name:"offer",size:20})}),t.jsxs(O,{children:[n?t.jsx(Z,{}):t.jsx(_,{title:i,children:i}),t.jsx(z,{children:r("activity.boughtFrom",{account:pe(e.seller)})})]})]});return t.jsxs(S,{"data-testid":"activity-mana-purchase",children:[t.jsxs(C,{children:[t.jsxs(F,{children:[t.jsx(D,{children:I(e.createdAt)}),t.jsx(M,{children:r("activity.paidWithMana")})]}),t.jsxs(H,{children:[t.jsx(R,{"data-status":"SETTLED",children:r("activity.completed")}),t.jsxs(k,{children:[me(e.manaWei)," ",t.jsx(xe,{children:t.jsx(ue,{src:de,alt:"MANA"})})]})]})]}),t.jsx(V,{children:a?t.jsx(J,{to:a,"data-link":"true",children:h}):t.jsx(L,{children:h})})]})}function Pt({sale:e,payout:s}){const{data:n,isLoading:i}=A({queryKey:["asset-display",e.contractAddress,e.tokenId,e.itemId],queryFn:()=>Q(e.contractAddress,{tokenId:e.tokenId,itemId:e.itemId}),enabled:!!e.contractAddress,staleTime:3e5}),d=(n==null?void 0:n.name)??r("activity.itemFallback"),a=(n==null?void 0:n.thumbnail)??"",h=B({contractAddress:e.contractAddress,tokenId:e.tokenId,itemId:e.itemId})??void 0,c=t.jsxs(t.Fragment,{children:[i?t.jsx(Y,{}):t.jsx(q,{children:a?t.jsx("img",{src:a,alt:d}):t.jsx(T,{name:"offer",size:20})}),t.jsxs(O,{children:[i?t.jsx(Z,{}):t.jsx(_,{title:d,children:d}),t.jsxs(z,{children:[r("activity.soldTo",{account:pe(e.counterparty)}),s.kind==="pending"?` · ${r("activity.payoutPendingOn",{date:I(s.availableAt)})}`:""]})]})]});return t.jsxs(S,{"data-testid":"activity-sale",children:[t.jsxs(C,{children:[t.jsxs(F,{children:[t.jsx(D,{children:I(e.createdAt)}),t.jsx(M,{children:r("activity.saleLabel")})]}),t.jsxs(H,{children:[t.jsx(R,{"data-status":s.kind==="pending"?"PENDING":"SOLD",children:s.kind==="pending"?r("activity.payoutPending"):r("activity.sold")}),s.kind==="direct"?t.jsxs(k,{"data-kind":"income",children:["+",me(e.manaWei)," ",t.jsx(xe,{children:t.jsx(ue,{src:de,alt:"MANA"})})]}):s.credits!==null?t.jsxs(k,{"data-kind":"income",children:[t.jsx(E,{className:"ccy-mark"})," +",Fe(s.credits)]}):t.jsx(k,{"data-kind":"income",children:r("activity.payoutCredited")})]})]}),t.jsx(V,{children:h?t.jsx(J,{to:h,"data-link":"true",children:c}):t.jsx(L,{children:c})})]})}function Tt({order:e}){const s=`$${(e.usdCents/100).toFixed(2)}`,n=Se(e.status),i=n==="SETTLED"?r("activity.completed"):n==="FAILED"?r("activity.failed"):n==="UNFINISHED"?r("activity.unfinished"):r("activity.processing"),d=U(p=>p.session),a=Ce(),[h,c]=g.useState(!1),m=e.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 De(e.id,d.identity);if(p.kind==="url"){if(/^https:\/\/([a-z0-9-]+\.)*stripe\.com\//i.test(p.url)){window.location.href=p.url;return}N.error(r("activity.resumeUnavailable"))}else p.kind==="expired"?(N.info(r("activity.resumeExpired")),a.invalidateQueries({queryKey:["credit-orders"]})):p.kind==="paid"?(N.success(r("activity.resumePaid")),a.invalidateQueries({queryKey:["credit-orders"]})):N.error(r("activity.resumeUnavailable"));c(!1)}catch{c(!1)}}}return t.jsx(S,{"data-testid":"credit-order",children:t.jsxs(C,{children:[t.jsx(pt,{children:t.jsx("img",{src:at,alt:"","aria-hidden":!0})}),t.jsxs(F,{children:[t.jsx(D,{children:I(e.createdAt)}),t.jsxs(M,{children:[r("activity.creditPurchaseLabel")," · ",r("activity.creditPaid",{usd:s})]})]}),t.jsxs(H,{children:[m?t.jsx(mt,{type:"button",onClick:()=>void f(),disabled:h,"data-testid":"resume-order",children:h?r("activity.resuming"):r("activity.resume")}):null,t.jsx(R,{"data-status":n,children:i}),t.jsxs(k,{"data-kind":n==="UNFINISHED"?void 0:"income",children:[n==="UNFINISHED"?"":"+",t.jsx(E,{className:"ccy-mark"})," ",t.jsx(K,{credits:e.credits})]})]})]})})}function St({filter:e}){const s={all:r("activity.emptyAllBody"),purchases:r("activity.emptyPurchasesBody"),sales:r("activity.emptySalesBody")}[e];return t.jsx(bt,{children:t.jsx(Te,{testId:`activity-empty-${e}`,icon:_e,title:r("activity.emptyTitle"),body:s,cta:{label:r("assets.empty.cta"),to:"/items"}})})}function Bt(){const{session:e}=U(),[s,n]=g.useState("all"),[i,d]=He(),a=i.get(W)===oe||i.get(G)===At;Le({title:a?r("seo.import.title"):r("nav.activity"),noindex:!0});const{count:h}=Oe(),{count:c}=nt(),f=h!==void 0&&c!==void 0&&(h>0||c>0||a),p=!!e&&!a&&s!=="sales",x=!!e&&!a&&s!=="purchases",b=$(["purchases",e==null?void 0:e.address],u=>$e(e.address,e.identity,{first:P,skip:u}),{enabled:p}),y=$(["sales",e==null?void 0:e.address],u=>se(e.address,{role:"seller",first:P,skip:u}),{enabled:x}),v=$(["credit-orders",e==null?void 0:e.address],u=>ne(e.address,e.identity,{first:P,skip:u}),{enabled:p}),j=$(["mana-purchases",e==null?void 0:e.address],u=>se(e.address,{role:"buyer",first:P,skip:u}),{enabled:p}),{data:ee}=A({queryKey:["sale-payouts",e==null?void 0:e.address],queryFn:()=>ne(e.address,e.identity,{first:200}).then(u=>u.payouts),enabled:x,staleTime:6e4}),ge=g.useMemo(()=>tt(ee),[ee]),{data:fe}=Ne(x);if(!e)return t.jsxs(yt,{children:[t.jsx(T,{name:"clock",size:40,color:o.colors.muted2}),t.jsx(vt,{children:r("activity.signInTitle")}),t.jsx(jt,{children:r("activity.signInBody")})]});const te=et(Je({purchases:p?b.items:[],sales:x?y.items:[],creditOrders:p?v.items:[],manaPurchases:p?j.items:[],rate:fe}),s),be=p&&(b.isLoading||v.isLoading||j.isLoading)||x&&y.isLoading,ie=p&&(b.isFetchingNextPage||v.isFetchingNextPage||j.isFetchingNextPage)||x&&y.isFetchingNextPage,ye=p&&(b.hasNextPage||v.hasNextPage||j.hasNextPage)||x&&y.hasNextPage;function ve(){p&&b.hasNextPage&&b.fetchNextPage(),p&&v.hasNextPage&&v.fetchNextPage(),p&&j.hasNextPage&&j.fetchNextPage(),x&&y.hasNextPage&&y.fetchNextPage()}function je(u){if(n(u),!a)return;const w=new URLSearchParams(i);w.delete(W),w.delete(G),d(w,{replace:!0})}function ke(){const u=new URLSearchParams(i);u.set(W,oe),u.delete(G),d(u,{replace:!0})}return t.jsxs(rt,{children:[t.jsx(ot,{children:t.jsx(dt,{children:r("nav.activity")})}),t.jsxs(ct,{role:"tablist","aria-label":r("nav.activity"),children:[It.map(u=>t.jsx(le,{type:"button",role:"tab","aria-selected":!a&&s===u,"data-active":!a&&s===u,"data-testid":`activity-filter-${u}`,onClick:()=>je(u),children:r(`activity.filter.${u}`)},u)),f?t.jsxs(lt,{type:"button",role:"tab","aria-selected":a,"data-active":a,"data-testid":"activity-filter-migrate","aria-label":h?r("activity.migrate.chipAria",{count:h}):void 0,onClick:ke,children:[r("activity.migrate.chip"),h?t.jsx(ut,{"data-testid":"activity-migrate-count","aria-hidden":!0,children:h}):null]}):null]}),a?t.jsx(g.Suspense,{fallback:t.jsx(ht,{"aria-busy":"true"}),children:t.jsx(wt,{})}):be?t.jsx(ae,{children:Array.from({length:5}).map((u,w)=>t.jsx(re,{},w))}):te.length===0?t.jsx(St,{filter:s}):t.jsxs(t.Fragment,{children:[t.jsxs(ae,{children:[te.map(u=>u.kind==="purchase"?t.jsx(Nt,{order:u.order},u.id):u.kind==="credit"?t.jsx(Tt,{order:u.order},u.id):u.kind==="mana-purchase"?t.jsx($t,{sale:u.sale},u.id):t.jsx(Pt,{sale:u.sale,payout:it(ge,u.sale)},u.id)),ie?t.jsx(re,{}):null]}),t.jsx(ze,{hasNextPage:ye,isFetching:ie,onLoadMore:ve})]})]})}export{Bt as Activity};
|
|
389
|
-
//# sourceMappingURL=Activity-
|
|
388
|
+
`,Z=L.withComponent(Re),wt=g.lazy(()=>Pe(()=>import("./index-Bl1ek_ne.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14])).then(e=>({default:e.ImportListings}))),P=24,It=["all","purchases","sales"],W="section",oe="listings",G="view",At="migrate";function I(e){try{return new Date(e).toLocaleDateString(void 0,{year:"numeric",month:"short",day:"numeric"})}catch{return""}}function pe(e){return e.length>10?`${e.slice(0,6)}…${e.slice(-4)}`:e}function me(e){const s=Number(e)/1e18;return Number.isFinite(s)?s.toLocaleString("en",{maximumFractionDigits:2}):"0"}function xe({children:e}){const s=g.useRef(null),[n,i]=g.useState(null),d=()=>{var h;const a=(h=s.current)==null?void 0:h.getBoundingClientRect();a&&i({top:a.bottom+8,left:a.left+a.width/2})};return t.jsxs(xt,{ref:s,tabIndex:0,onMouseEnter:d,onMouseLeave:()=>i(null),onFocus:d,onBlur:()=>i(null),children:[e,n?qe.createPortal(t.jsx(gt,{style:{top:n.top,left:n.left},role:"tooltip",children:r("activity.polygonMana")}),document.body):null]})}function Et({item:e}){const s=!!e.contractAddress&&!!e.itemId,n=!!e.tradeId||s,{data:i,isLoading:d}=A({queryKey:["order-line-display",e.tradeId,e.contractAddress,e.itemId],queryFn:()=>e.tradeId?Me(e.tradeId):Q(e.contractAddress,{itemId:e.itemId}),enabled:n,staleTime:5*6e4}),a=n&&d,h=(i==null?void 0:i.name)??r("activity.itemFallback"),c=(i==null?void 0:i.thumbnail)??"",m=B({contractAddress:i==null?void 0:i.contractAddress,tokenId:i==null?void 0:i.tokenId,itemId:i==null?void 0:i.itemId})??void 0,f=t.jsxs(t.Fragment,{children:[a?t.jsx(J,{}):t.jsx(R,{children:c?t.jsx("img",{src:c,alt:h}):t.jsx(T,{name:"cart",size:20})}),t.jsxs(O,{children:[a?t.jsx(Y,{}):t.jsx(_,{title:h,children:h}),e.quantity>1?t.jsx(z,{children:r("activity.quantity",{count:e.quantity})}):null]}),t.jsxs(he,{children:[t.jsx(E,{className:"ccy-mark"})," ",t.jsx(K,{credits:e.credits})]})]});return m?t.jsx(Z,{to:m,"data-link":"true",children:f}):t.jsx(L,{children:f})}function Lt({item:e}){const s=`@${e.registeredName}`;return t.jsxs(L,{"data-testid":"activity-name-line",children:[t.jsx(kt,{children:t.jsx("img",{src:We,alt:""})}),t.jsxs(O,{children:[t.jsx(_,{title:s,children:s}),t.jsx(z,{children:r("activity.nameRegistration")})]}),t.jsxs(he,{children:[t.jsx(E,{className:"ccy-mark"})," ",e.credits]})]})}function Nt({order:e}){const s=Ve(e.lines),n=s.reduce((a,h)=>a+h.quantity,0),i=Qe(e.status),d=i==="SETTLED"?r("activity.completed"):i==="FAILED"?r("activity.failed"):r("activity.processing");return t.jsxs(S,{"data-testid":"purchase-order",children:[t.jsxs(C,{children:[t.jsxs(F,{children:[t.jsx(D,{children:I(e.createdAt)}),t.jsxs(M,{children:[r("activity.purchaseLabel")," · ",r("activity.itemCount",{count:n})]})]}),t.jsxs(H,{children:[t.jsx(q,{"data-status":i,children:d}),t.jsxs(k,{children:[t.jsx(E,{className:"ccy-mark"})," ",t.jsx(K,{credits:e.totalCredits})]})]})]}),i==="FAILED"?t.jsx(ft,{children:r("activity.purchaseFailedNote")}):null,t.jsx(V,{children:s.map(a=>a.registeredName?t.jsx(Lt,{item:a},a.key):t.jsx(Et,{item:a},a.key))})]})}function $t({sale:e}){const{data:s,isLoading:n}=A({queryKey:["asset-display",e.contractAddress,e.tokenId,e.itemId],queryFn:()=>Q(e.contractAddress,{tokenId:e.tokenId,itemId:e.itemId}),enabled:!!e.contractAddress,staleTime:3e5}),i=(s==null?void 0:s.name)??r("activity.itemFallback"),d=(s==null?void 0:s.thumbnail)??"",a=B({contractAddress:e.contractAddress,tokenId:e.tokenId,itemId:e.itemId})??void 0,h=t.jsxs(t.Fragment,{children:[n?t.jsx(J,{}):t.jsx(R,{children:d?t.jsx("img",{src:d,alt:i}):t.jsx(T,{name:"offer",size:20})}),t.jsxs(O,{children:[n?t.jsx(Y,{}):t.jsx(_,{title:i,children:i}),t.jsx(z,{children:r("activity.boughtFrom",{account:pe(e.seller)})})]})]});return t.jsxs(S,{"data-testid":"activity-mana-purchase",children:[t.jsxs(C,{children:[t.jsxs(F,{children:[t.jsx(D,{children:I(e.createdAt)}),t.jsx(M,{children:r("activity.paidWithMana")})]}),t.jsxs(H,{children:[t.jsx(q,{"data-status":"SETTLED",children:r("activity.completed")}),t.jsxs(k,{children:[me(e.manaWei)," ",t.jsx(xe,{children:t.jsx(ue,{src:de,alt:"MANA"})})]})]})]}),t.jsx(V,{children:a?t.jsx(Z,{to:a,"data-link":"true",children:h}):t.jsx(L,{children:h})})]})}function Pt({sale:e,payout:s}){const{data:n,isLoading:i}=A({queryKey:["asset-display",e.contractAddress,e.tokenId,e.itemId],queryFn:()=>Q(e.contractAddress,{tokenId:e.tokenId,itemId:e.itemId}),enabled:!!e.contractAddress,staleTime:3e5}),d=(n==null?void 0:n.name)??r("activity.itemFallback"),a=(n==null?void 0:n.thumbnail)??"",h=B({contractAddress:e.contractAddress,tokenId:e.tokenId,itemId:e.itemId})??void 0,c=t.jsxs(t.Fragment,{children:[i?t.jsx(J,{}):t.jsx(R,{children:a?t.jsx("img",{src:a,alt:d}):t.jsx(T,{name:"offer",size:20})}),t.jsxs(O,{children:[i?t.jsx(Y,{}):t.jsx(_,{title:d,children:d}),t.jsxs(z,{children:[r("activity.soldTo",{account:pe(e.counterparty)}),s.kind==="pending"?` · ${r("activity.payoutPendingOn",{date:I(s.availableAt)})}`:""]})]})]});return t.jsxs(S,{"data-testid":"activity-sale",children:[t.jsxs(C,{children:[t.jsxs(F,{children:[t.jsx(D,{children:I(e.createdAt)}),t.jsx(M,{children:r("activity.saleLabel")})]}),t.jsxs(H,{children:[t.jsx(q,{"data-status":s.kind==="pending"?"PENDING":"SOLD",children:s.kind==="pending"?r("activity.payoutPending"):r("activity.sold")}),s.kind==="direct"?t.jsxs(k,{"data-kind":"income",children:["+",me(e.manaWei)," ",t.jsx(xe,{children:t.jsx(ue,{src:de,alt:"MANA"})})]}):s.credits!==null?t.jsxs(k,{"data-kind":"income",children:[t.jsx(E,{className:"ccy-mark"})," +",Fe(s.credits)]}):t.jsx(k,{"data-kind":"income",children:r("activity.payoutCredited")})]})]}),t.jsx(V,{children:h?t.jsx(Z,{to:h,"data-link":"true",children:c}):t.jsx(L,{children:c})})]})}function Tt({order:e}){const s=`$${(e.usdCents/100).toFixed(2)}`,n=Se(e.status),i=n==="SETTLED"?r("activity.completed"):n==="FAILED"?r("activity.failed"):n==="UNFINISHED"?r("activity.unfinished"):r("activity.processing"),d=U(p=>p.session),a=Ce(),[h,c]=g.useState(!1),m=e.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 De(e.id,d.identity);if(p.kind==="url"){if(/^https:\/\/([a-z0-9-]+\.)*stripe\.com\//i.test(p.url)){window.location.href=p.url;return}N.error(r("activity.resumeUnavailable"))}else p.kind==="expired"?(N.info(r("activity.resumeExpired")),a.invalidateQueries({queryKey:["credit-orders"]})):p.kind==="paid"?(N.success(r("activity.resumePaid")),a.invalidateQueries({queryKey:["credit-orders"]})):N.error(r("activity.resumeUnavailable"));c(!1)}catch{c(!1)}}}return t.jsx(S,{"data-testid":"credit-order",children:t.jsxs(C,{children:[t.jsx(pt,{children:t.jsx("img",{src:at,alt:"","aria-hidden":!0})}),t.jsxs(F,{children:[t.jsx(D,{children:I(e.createdAt)}),t.jsxs(M,{children:[r("activity.creditPurchaseLabel")," · ",r("activity.creditPaid",{usd:s})]})]}),t.jsxs(H,{children:[m?t.jsx(mt,{type:"button",onClick:()=>void f(),disabled:h,"data-testid":"resume-order",children:h?r("activity.resuming"):r("activity.resume")}):null,t.jsx(q,{"data-status":n,children:i}),t.jsxs(k,{"data-kind":n==="UNFINISHED"?void 0:"income",children:[n==="UNFINISHED"?"":"+",t.jsx(E,{className:"ccy-mark"})," ",t.jsx(K,{credits:e.credits})]})]})]})})}function St({filter:e}){const s={all:r("activity.emptyAllBody"),purchases:r("activity.emptyPurchasesBody"),sales:r("activity.emptySalesBody")}[e];return t.jsx(bt,{children:t.jsx(Te,{testId:`activity-empty-${e}`,icon:_e,title:r("activity.emptyTitle"),body:s,cta:{label:r("assets.empty.cta"),to:"/items"}})})}function Bt(){const{session:e}=U(),[s,n]=g.useState("all"),[i,d]=He(),a=i.get(W)===oe||i.get(G)===At;Le({title:a?r("seo.import.title"):r("nav.activity"),noindex:!0});const{count:h}=Oe(),{count:c}=nt(),f=h!==void 0&&c!==void 0&&(h>0||c>0||a),p=!!e&&!a&&s!=="sales",x=!!e&&!a&&s!=="purchases",b=$(["purchases",e==null?void 0:e.address],u=>$e(e.address,e.identity,{first:P,skip:u}),{enabled:p}),y=$(["sales",e==null?void 0:e.address],u=>se(e.address,{role:"seller",first:P,skip:u}),{enabled:x}),v=$(["credit-orders",e==null?void 0:e.address],u=>ne(e.address,e.identity,{first:P,skip:u}),{enabled:p}),j=$(["mana-purchases",e==null?void 0:e.address],u=>se(e.address,{role:"buyer",first:P,skip:u}),{enabled:p}),{data:ee}=A({queryKey:["sale-payouts",e==null?void 0:e.address],queryFn:()=>ne(e.address,e.identity,{first:200}).then(u=>u.payouts),enabled:x,staleTime:6e4}),ge=g.useMemo(()=>tt(ee),[ee]),{data:fe}=Ne(x);if(!e)return t.jsxs(yt,{children:[t.jsx(T,{name:"clock",size:40,color:o.colors.muted2}),t.jsx(vt,{children:r("activity.signInTitle")}),t.jsx(jt,{children:r("activity.signInBody")})]});const te=et(Ze({purchases:p?b.items:[],sales:x?y.items:[],creditOrders:p?v.items:[],manaPurchases:p?j.items:[],rate:fe}),s),be=p&&(b.isLoading||v.isLoading||j.isLoading)||x&&y.isLoading,ie=p&&(b.isFetchingNextPage||v.isFetchingNextPage||j.isFetchingNextPage)||x&&y.isFetchingNextPage,ye=p&&(b.hasNextPage||v.hasNextPage||j.hasNextPage)||x&&y.hasNextPage;function ve(){p&&b.hasNextPage&&b.fetchNextPage(),p&&v.hasNextPage&&v.fetchNextPage(),p&&j.hasNextPage&&j.fetchNextPage(),x&&y.hasNextPage&&y.fetchNextPage()}function je(u){if(n(u),!a)return;const w=new URLSearchParams(i);w.delete(W),w.delete(G),d(w,{replace:!0})}function ke(){const u=new URLSearchParams(i);u.set(W,oe),u.delete(G),d(u,{replace:!0})}return t.jsxs(rt,{children:[t.jsx(ot,{children:t.jsx(dt,{children:r("nav.activity")})}),t.jsxs(ct,{role:"tablist","aria-label":r("nav.activity"),children:[It.map(u=>t.jsx(le,{type:"button",role:"tab","aria-selected":!a&&s===u,"data-active":!a&&s===u,"data-testid":`activity-filter-${u}`,onClick:()=>je(u),children:r(`activity.filter.${u}`)},u)),f?t.jsxs(lt,{type:"button",role:"tab","aria-selected":a,"data-active":a,"data-testid":"activity-filter-migrate","aria-label":h?r("activity.migrate.chipAria",{count:h}):void 0,onClick:ke,children:[r("activity.migrate.chip"),h?t.jsx(ut,{"data-testid":"activity-migrate-count","aria-hidden":!0,children:h}):null]}):null]}),a?t.jsx(g.Suspense,{fallback:t.jsx(ht,{"aria-busy":"true"}),children:t.jsx(wt,{})}):be?t.jsx(ae,{children:Array.from({length:5}).map((u,w)=>t.jsx(re,{},w))}):te.length===0?t.jsx(St,{filter:s}):t.jsxs(t.Fragment,{children:[t.jsxs(ae,{children:[te.map(u=>u.kind==="purchase"?t.jsx(Nt,{order:u.order},u.id):u.kind==="credit"?t.jsx(Tt,{order:u.order},u.id):u.kind==="mana-purchase"?t.jsx($t,{sale:u.sale},u.id):t.jsx(Pt,{sale:u.sale,payout:it(ge,u.sale)},u.id)),ie?t.jsx(re,{}):null]}),t.jsx(ze,{hasNextPage:ye,isFetching:ie,onLoadMore:ve})]})]})}export{Bt as Activity};
|
|
389
|
+
//# sourceMappingURL=Activity-QAKKW4Vj.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as u,j as d}from"./react-
|
|
1
|
+
import{r as u,j as d}from"./react-DcSw8tCD.js";import{s as f}from"./index-B-dIqjhn.js";import"./dcl-schemas-CN-1-wGb.js";import"./sentry-CAS3BNIy.js";import"./ethers-3hUTVH_L.js";import"./intl-AKLEHPeO.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},a=new e.Error().stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="7a663bac-d4c7-4b19-9310-ac921ef98463",e._sentryDebugIdIdentifier="sentry-dbid-7a663bac-d4c7-4b19-9310-ac921ef98463")}catch{}})();const D="https://cdn.decentraland.org/@dcl/shop/1.9.3-32743160136.commit-b84a6df/_assets/custom-welcome-background-BxlFQma9.webp",P="https://cdn.decentraland.org/@dcl/shop/1.9.3-32743160136.commit-b84a6df/_assets/DCL_LogoPattern-BryBPc3d.png",L=`
|
|
2
2
|
attribute vec2 a_position;
|
|
3
3
|
varying vec2 v_uv;
|
|
4
4
|
void main() {
|
|
@@ -77,11 +77,11 @@ void main() {
|
|
|
77
77
|
|
|
78
78
|
gl_FragColor = result;
|
|
79
79
|
}
|
|
80
|
-
`;function p(e,a,n){const r=e.createShader(a);return r?(e.shaderSource(r,n),e.compileShader(r),e.getShaderParameter(r,e.COMPILE_STATUS)?r:(console.error("Shader compile error:",e.getShaderInfoLog(r)),e.deleteShader(r),null)):null}function B(e,a,n){const r=e.createProgram();return r?(e.attachShader(r,a),e.attachShader(r,n),e.linkProgram(r),e.getProgramParameter(r,e.LINK_STATUS)?r:(console.error("Program link error:",e.getProgramInfoLog(r)),e.deleteProgram(r),null)):null}function F(e,a,n){const r=e.createTexture();if(!r)return null;e.bindTexture(e.TEXTURE_2D,r),e.texImage2D(e.TEXTURE_2D,0,e.RGBA,1,1,0,e.RGBA,e.UNSIGNED_BYTE,new Uint8Array([128,128,128,255]));const o=new Image;return o.crossOrigin="anonymous",o.onload=()=>{n!=null&&n()||(e.bindTexture(e.TEXTURE_2D,r),e.pixelStorei(e.UNPACK_FLIP_Y_WEBGL,!0),e.texImage2D(e.TEXTURE_2D,0,e.RGBA,e.RGBA,e.UNSIGNED_BYTE,o),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.REPEAT),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.REPEAT),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.LINEAR_MIPMAP_LINEAR),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,e.LINEAR),e.generateMipmap(e.TEXTURE_2D))},o.src=a,r}const C=
|
|
80
|
+
`;function p(e,a,n){const r=e.createShader(a);return r?(e.shaderSource(r,n),e.compileShader(r),e.getShaderParameter(r,e.COMPILE_STATUS)?r:(console.error("Shader compile error:",e.getShaderInfoLog(r)),e.deleteShader(r),null)):null}function B(e,a,n){const r=e.createProgram();return r?(e.attachShader(r,a),e.attachShader(r,n),e.linkProgram(r),e.getProgramParameter(r,e.LINK_STATUS)?r:(console.error("Program link error:",e.getProgramInfoLog(r)),e.deleteProgram(r),null)):null}function F(e,a,n){const r=e.createTexture();if(!r)return null;e.bindTexture(e.TEXTURE_2D,r),e.texImage2D(e.TEXTURE_2D,0,e.RGBA,1,1,0,e.RGBA,e.UNSIGNED_BYTE,new Uint8Array([128,128,128,255]));const o=new Image;return o.crossOrigin="anonymous",o.onload=()=>{n!=null&&n()||(e.bindTexture(e.TEXTURE_2D,r),e.pixelStorei(e.UNPACK_FLIP_Y_WEBGL,!0),e.texImage2D(e.TEXTURE_2D,0,e.RGBA,e.RGBA,e.UNSIGNED_BYTE,o),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.REPEAT),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.REPEAT),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.LINEAR_MIPMAP_LINEAR),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,e.LINEAR),e.generateMipmap(e.TEXTURE_2D))},o.src=a,r}const C=f.div`
|
|
81
81
|
position: absolute;
|
|
82
82
|
inset: 0;
|
|
83
83
|
overflow: hidden;
|
|
84
|
-
`,k=
|
|
84
|
+
`,k=f.div`
|
|
85
85
|
position: absolute;
|
|
86
86
|
inset: 0;
|
|
87
87
|
width: 100%;
|
|
@@ -89,10 +89,10 @@ void main() {
|
|
|
89
89
|
background-size: cover;
|
|
90
90
|
background-position: center;
|
|
91
91
|
background-repeat: no-repeat;
|
|
92
|
-
`,V=
|
|
92
|
+
`,V=f.canvas`
|
|
93
93
|
position: absolute;
|
|
94
94
|
inset: 0;
|
|
95
95
|
width: 100%;
|
|
96
96
|
height: 100%;
|
|
97
|
-
`;function K({patternTiling:e=1.66}){const a=u.useRef(null),n=u.useRef(0),r=u.useRef(e);return r.current=e,u.useEffect(()=>{var _;const o=a.current;if(!o||(_=window.matchMedia)!=null&&_.call(window,"(prefers-reduced-motion: reduce)").matches)return;const t=o.getContext("webgl",{alpha:!1,antialias:!1});if(!t)return;const c=p(t,t.VERTEX_SHADER,L),s=p(t,t.FRAGMENT_SHADER,I);if(!c||!s){c&&t.deleteShader(c),s&&t.deleteShader(s);return}const i=B(t,c,s);if(!i){t.deleteShader(c),t.deleteShader(s);return}const
|
|
98
|
-
//# sourceMappingURL=AnimatedBackground-
|
|
97
|
+
`;function K({patternTiling:e=1.66}){const a=u.useRef(null),n=u.useRef(0),r=u.useRef(e);return r.current=e,u.useEffect(()=>{var _;const o=a.current;if(!o||(_=window.matchMedia)!=null&&_.call(window,"(prefers-reduced-motion: reduce)").matches)return;const t=o.getContext("webgl",{alpha:!1,antialias:!1});if(!t)return;const c=p(t,t.VERTEX_SHADER,L),s=p(t,t.FRAGMENT_SHADER,I);if(!c||!s){c&&t.deleteShader(c),s&&t.deleteShader(s);return}const i=B(t,c,s);if(!i){t.deleteShader(c),t.deleteShader(s);return}const m=t.getAttribLocation(i,"a_position"),R=t.getUniformLocation(i,"u_time"),w=t.getUniformLocation(i,"u_resolution"),b=t.getUniformLocation(i,"u_overlayTex"),A=t.getUniformLocation(i,"u_overlayTiling"),v=t.createBuffer();t.bindBuffer(t.ARRAY_BUFFER,v),t.bufferData(t.ARRAY_BUFFER,new Float32Array([-1,-1,1,-1,-1,1,-1,1,1,-1,1,1]),t.STATIC_DRAW);let g=!1;const h=F(t,P,()=>g),S=()=>{const l=window.devicePixelRatio||1,E=o.clientWidth*l,x=o.clientHeight*l;(o.width!==E||o.height!==x)&&(o.width=E,o.height=x)},U=performance.now()/1e3,y=()=>{S(),t.viewport(0,0,o.width,o.height),t.useProgram(i),t.uniform1f(R,performance.now()/1e3-U),t.uniform2f(w,o.width,o.height),t.uniform1f(A,r.current),t.activeTexture(t.TEXTURE0),t.bindTexture(t.TEXTURE_2D,h),t.uniform1i(b,0),t.enableVertexAttribArray(m),t.bindBuffer(t.ARRAY_BUFFER,v),t.vertexAttribPointer(m,2,t.FLOAT,!1,0,0),t.drawArrays(t.TRIANGLES,0,6),n.current=requestAnimationFrame(y)},T=l=>{l.preventDefault(),cancelAnimationFrame(n.current),o.style.opacity="0"};return o.addEventListener("webglcontextlost",T,!1),n.current=requestAnimationFrame(y),()=>{g=!0,cancelAnimationFrame(n.current),o.removeEventListener("webglcontextlost",T),t.deleteProgram(i),t.deleteShader(c),t.deleteShader(s),t.deleteBuffer(v),t.deleteTexture(h)}},[]),d.jsxs(C,{"aria-hidden":!0,children:[d.jsx(k,{style:{backgroundImage:`url(${D})`}}),d.jsx(V,{ref:a})]})}export{K as default};
|
|
98
|
+
//# sourceMappingURL=AnimatedBackground-RzTR5pnn.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as u,b as
|
|
1
|
+
import{r as u,b as He,j as e,u as et}from"./react-DcSw8tCD.js";import{u as tt,s as nt}from"./search-empty-PfWp7qfl.js";import{u as st,t as Ie,R as it,j as ot,k as rt,l as at,m as lt,n as ct,o as dt,p as ht,v as pt,q as ut,r as ft,M as mt,s as xt}from"./browseLayout.styles-DsbssS1X.js";import{c as V,R as gt,bq as bt,br as yt,aA as wt,a as vt,l as jt,cu as Ct,cv as $t,s as i,t,o as Oe,bf as kt,r as St,E as ve,b as n,p as Et,I as E,q as O,cw as le,bd as Tt,ad as oe,bn as Le,bu as Rt,bt as _t,n as De,J as Ge,U as qe,V as It,ar as Lt,L as Nt,S as Ne,M as J,aI as At,bD as zt}from"./index-B-dIqjhn.js";import{L as Mt}from"./LoadMore-BrnolAMt.js";import{u as Wt}from"./useInfiniteGrid-BPtTRHIB.js";import{n as Bt,S as Pt}from"./categories-ByT980ve.js";import{E as Ft}from"./ErrorNotice-BVVq2BBw.js";import{d as Ut}from"./dcl-schemas-CN-1-wGb.js";import{s as Ht,G as Ot,w as Dt,S as Gt}from"./buy-gasless-B29llLau.js";import{s as qt,o as Vt}from"./buy-DZz-IuoV.js";import{f as Zt}from"./errors-DUsd8eGX.js";import{J as Qt,C as Kt,B as je}from"./ethers-3hUTVH_L.js";import{n as Jt}from"./name-glyph-aUugT8vq.js";import{G as Xt}from"./grid.styles-C5Gu9fMU.js";import"./skeleton.styles-BideLusx.js";import"./sentry-CAS3BNIy.js";import"./intl-AKLEHPeO.js";import"./authorizations-Bq00FRrP.js";import"./sendMetaTransaction-CcfiyKVp.js";(function(){try{var s=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},o=new s.Error().stack;o&&(s._sentryDebugIds=s._sentryDebugIds||{},s._sentryDebugIds[o]="903c97b2-f4ce-4e5f-9ed1-fe3d411b8334",s._sentryDebugIdIdentifier="sentry-dbid-903c97b2-f4ce-4e5f-9ed1-fe3d411b8334")}catch{}})();function X(s){const o=s.source??"item",r=s.tradeId||`${s.contractAddress}-${s.tokenId??s.itemId??""}`;return`${o}:${r}`}const Z="100000000000000000000",Ve=2,re=15,Yt=/^[a-zA-Z0-9]+$/;function Ae(s){const o=s.trim();return o.length===0?{ok:!1,reason:"empty"}:Yt.test(o)?o.length<Ve?{ok:!1,reason:"too-short"}:o.length>re?{ok:!1,reason:"too-long"}:{ok:!0}:{ok:!1,reason:"invalid-chars"}}function en(s){return s.replace(/[^a-zA-Z0-9]/g,"").slice(0,re)}const tn=["function available(string _subdomain) view returns (bool)"],ze={mainnet:{rpc:"https://rpc.decentraland.org/mainnet",address:"0x2a187453064356c898cae034eaed119e1663acb8"},sepolia:{rpc:"https://rpc.decentraland.org/sepolia",address:"0x7518456ae93eb98f3e64571b689c626616bb7f30"}};function nn(){return V.chainId===Number(Ut.ChainId.MATIC_MAINNET)?ze.mainnet:ze.sepolia}async function sn(s,o={}){var m;const{rpc:r,address:d}=nn(),h=new Qt(r),f=new Kt(d,tn,h);console.info(`[names] availability check → DCLRegistrar(${d}).available("${s}") on ${r}`);const l=await f.available(s);if((m=o.signal)!=null&&m.aborted)throw new DOMException("Aborted","AbortError");return console.info(`[names] "${s}" available=${l}`),l?"available":"taken"}const on="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 Ce 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 rn(s){return wt(Z,s)}async function an(s,o,r={}){var m;const d=r.chainId??V.chainId,h=r.provider??"across",f=`${V.creditsServerUrl}/credits-name-route?name=${encodeURIComponent(o)}&chainId=${d}&provider=${h}`,l=await vt(f,{method:"GET",identity:s,metadata:{}});if(!l.ok){let c;try{c=(m=await l.json())==null?void 0:m.code}catch{}throw c==="ROUTE_COST_TOO_HIGH"?new ke:new Error(`fetchNameCreditRoute ${l.status}`)}return l.json()}function ln(s,o){const r=je.from(s.availableAmount),h=je.from(Z).sub(r);return{credits:[{value:s.amount,expiresAt:Number(s.expiresAt),salt:Vt(s.id)}],creditsSignatures:[s.signature],externalCall:{target:o.externalCall.target,selector:o.externalCall.selector,data:o.externalCall.data,expiresAt:o.externalCall.expiresAt,salt:o.externalCall.salt},customExternalCallSignature:o.customExternalCallSignature,maxUncreditedValue:h.isNegative()?"0":h.toString(),maxCreditedValue:Z}}async function cn(s,o={}){const r=on,d=o.intervalMs??1e4,h=o.maxAttempts??60;let f={status:"pending",destinationTxHash:null,actionsSucceeded:null};for(let l=0;l<h;l++){try{const m=await fetch(`${r}/deposit/status?originChainId=137&depositTxHash=${s}`);if(m.ok){const c=await m.json(),g=(c.status??"pending").toLowerCase(),p=c.fillTx??c.fillTxnRef??null,b=typeof c.actionsSucceeded=="boolean"?c.actionsSucceeded:null;if(g==="filled")return{status:"filled",destinationTxHash:p,actionsSucceeded:b};if(g==="refunded"||g==="expired")return{status:g,destinationTxHash:null,actionsSucceeded:!1};f={status:"pending",destinationTxHash:p,actionsSucceeded:b}}}catch{}l<h-1&&await new Promise(m=>setTimeout(m,d))}return f}async function dn(s){const{name:o,identity:r,signer:d}=s,h=p=>{var b;try{(b=s.onProgress)==null||b.call(s,p)}catch{}},f=s.chainId??V.chainId,l=s.provider??"across",m=(s.beneficiary??await d.getAddress()).toLowerCase();let c=null,g="unconfirmed";console.info("[names] register start",{name:o,buyer:m,chainId:f,provider:l}),h("preparing");try{const p=await gt(f),b=rn(p);console.info("[names] step 1/6 sized reservation",{usdCents:b,manaRate:p});const C=await an(r,o,{chainId:f,provider:l});console.info("[names] step 2/6 route fetched",{target:C.externalCall.target,selector:C.externalCall.selector,provider:C.provider,quoteId:C.quoteId});const w=await bt(r,b,void 0,void 0,o);if(c=w.credit.id,console.info("[names] step 3/6 credit authorized",{creditId:w.credit.id,maxCreditedValue:w.maxCreditedValue}),je.from(w.maxCreditedValue).lt(Z))throw new Error("Credit under-sized for the name price");h("awaiting-confirmation");const $=ln(w.credit,C);let v;try{v=await Ht({chainId:f,buyer:m,signer:d,args:$})}catch(x){if(!(x instanceof Ot))throw x;if(x.reason==="relayer-unreachable"){g="unobservable";const k=new $e;throw k.cause=x,k}v=await qt(f,$,d)}if(console.info("[names] step 4/6 useCredits submitted (Polygon origin tx)",{originTxHash:v}),h("confirming"),await Dt(v),g="confirmed",console.info("[names] step 5/6 origin tx confirmed",{originTxHash:v}),l==="across"){h("registering");const x=await cn(v,s.acrossPoll);if(console.info("[names] step 6/6 across status",x),x.status==="pending")return{status:"pending",originTxHash:v};if(x.status==="filled"&&x.actionsSucceeded===null)return console.warn("[names] across filled without reporting actionsSucceeded — reporting pending",{originTxHash:v}),{status:"pending",originTxHash:v};if(x.status!=="filled"||x.actionsSucceeded!==!0)throw new Ce;return{status:"registered",originTxHash:v,destinationTxHash:x.destinationTxHash}}return{status:"pending",originTxHash:v}}catch(p){if(console.error("[names] register failed — raw error:",p,{name:o,buyer:m,originState:g}),p instanceof Gt)return{status:"pending",originTxHash:p.txHash};if(c&&g==="unconfirmed"&&await yt(r,[c]).catch(()=>{}),p instanceof ke||p instanceof Ce||p instanceof $e)throw p;const b=new Error(Zt(p,"Couldn't register the name. Please try again.",{sale:!0}));throw b.cause=p,b}}function hn(){const{data:s}=jt({queryKey:["feature-flag","shop-names"],queryFn:()=>Ct($t.SHOP_NAMES),staleTime:6e4,refetchOnWindowFocus:!0,retry:1});return s===!0}const pn=60,un=700,fn=25;function mn(s){if(!s)return[];const o=[];for(let r=1;r<=s.length;r++)o.push({text:s.slice(0,r),delay:pn});o[o.length-1]={text:s,delay:un};for(let r=s.length-1;r>=1;r--)o.push({text:s.slice(0,r),delay:fn});return o}function xn(s){return s.flatMap(mn)}function gn(s,o){const r=u.useMemo(()=>xn(s),[s]),[d,h]=u.useState(0);return u.useEffect(()=>{if(!o||r.length===0)return;const f=setTimeout(()=>h(l=>(l+1)%r.length),r[d%r.length].delay);return()=>clearTimeout(f)},[d,o,r]),!o||r.length===0?"":r[d%r.length].text}const bn="https://cdn.decentraland.org/@dcl/shop/1.9.3-32743160136.commit-b84a6df/_assets/name-verified-oGwQ3ntb.svg",yn="#34fee6",wn=i.div`
|
|
2
2
|
position: fixed;
|
|
3
3
|
inset: 0;
|
|
4
4
|
z-index: 10000;
|
|
@@ -7,7 +7,7 @@ import{r as u,b as Oe,j as e,u as et}from"./react-DjOKjwAj.js";import{u as tt,s
|
|
|
7
7
|
justify-content: center;
|
|
8
8
|
padding: 16px;
|
|
9
9
|
background: rgba(22, 21, 24, 0.55);
|
|
10
|
-
`,
|
|
10
|
+
`,vn=i.div`
|
|
11
11
|
width: 560px;
|
|
12
12
|
max-width: 100%;
|
|
13
13
|
max-height: 92vh;
|
|
@@ -77,7 +77,7 @@ import{r as u,b as Oe,j as e,u as et}from"./react-DjOKjwAj.js";import{u as tt,s
|
|
|
77
77
|
display: flex;
|
|
78
78
|
align-items: center;
|
|
79
79
|
gap: 16px;
|
|
80
|
-
`,
|
|
80
|
+
`,jn=i.div`
|
|
81
81
|
flex: none;
|
|
82
82
|
display: flex;
|
|
83
83
|
flex-direction: column;
|
|
@@ -231,7 +231,7 @@ import{r as u,b as Oe,j as e,u as et}from"./react-DjOKjwAj.js";import{u as tt,s
|
|
|
231
231
|
color: ${t.colors.muted2};
|
|
232
232
|
font-weight: 400;
|
|
233
233
|
}
|
|
234
|
-
`,
|
|
234
|
+
`,Ln=i.span`
|
|
235
235
|
flex: none;
|
|
236
236
|
font-family: ${t.font.sans};
|
|
237
237
|
font-size: 16px;
|
|
@@ -266,7 +266,7 @@ import{r as u,b as Oe,j as e,u as et}from"./react-DjOKjwAj.js";import{u as tt,s
|
|
|
266
266
|
cursor: not-allowed;
|
|
267
267
|
opacity: 0.5;
|
|
268
268
|
}
|
|
269
|
-
`,
|
|
269
|
+
`,Nn=i.div`
|
|
270
270
|
display: flex;
|
|
271
271
|
flex: 1;
|
|
272
272
|
flex-direction: column;
|
|
@@ -274,10 +274,10 @@ import{r as u,b as Oe,j as e,u as et}from"./react-DjOKjwAj.js";import{u as tt,s
|
|
|
274
274
|
justify-content: center;
|
|
275
275
|
gap: 32px;
|
|
276
276
|
padding: 32px 0 8px;
|
|
277
|
-
`,
|
|
277
|
+
`,An=i.img`
|
|
278
278
|
width: 61px;
|
|
279
279
|
height: 61px;
|
|
280
|
-
`,
|
|
280
|
+
`,zn=i.div`
|
|
281
281
|
display: flex;
|
|
282
282
|
flex-direction: column;
|
|
283
283
|
align-items: center;
|
|
@@ -297,13 +297,13 @@ import{r as u,b as Oe,j as e,u as et}from"./react-DjOKjwAj.js";import{u as tt,s
|
|
|
297
297
|
line-height: 1.57;
|
|
298
298
|
color: ${t.colors.muted};
|
|
299
299
|
text-align: center;
|
|
300
|
-
`,
|
|
300
|
+
`,Bn=i.div`
|
|
301
301
|
display: flex;
|
|
302
302
|
align-items: center;
|
|
303
303
|
justify-content: center;
|
|
304
304
|
gap: 8px;
|
|
305
305
|
width: 100%;
|
|
306
|
-
`,
|
|
306
|
+
`,Pn=i.div`
|
|
307
307
|
flex: 1;
|
|
308
308
|
max-width: 400px;
|
|
309
309
|
height: 10px;
|
|
@@ -350,7 +350,7 @@ import{r as u,b as Oe,j as e,u as et}from"./react-DjOKjwAj.js";import{u as tt,s
|
|
|
350
350
|
border-radius: 12px;
|
|
351
351
|
background: #e2f5ea;
|
|
352
352
|
text-align: center;
|
|
353
|
-
`,
|
|
353
|
+
`,Hn=i.div`
|
|
354
354
|
display: grid;
|
|
355
355
|
place-items: center;
|
|
356
356
|
width: 56px;
|
|
@@ -363,7 +363,7 @@ import{r as u,b as Oe,j as e,u as et}from"./react-DjOKjwAj.js";import{u as tt,s
|
|
|
363
363
|
width: 30px;
|
|
364
364
|
height: 30px;
|
|
365
365
|
}
|
|
366
|
-
`,
|
|
366
|
+
`,On=i.p`
|
|
367
367
|
margin: 0;
|
|
368
368
|
font-family: ${t.font.sans};
|
|
369
369
|
font-size: 16px;
|
|
@@ -381,7 +381,7 @@ import{r as u,b as Oe,j as e,u as et}from"./react-DjOKjwAj.js";import{u as tt,s
|
|
|
381
381
|
${t.media.maxWidth("mobile")} {
|
|
382
382
|
flex-direction: column;
|
|
383
383
|
}
|
|
384
|
-
`,
|
|
384
|
+
`,Be=i.button`
|
|
385
385
|
flex: 1;
|
|
386
386
|
height: 48px;
|
|
387
387
|
border: 1px solid ${t.colors.accent};
|
|
@@ -458,10 +458,10 @@ import{r as u,b as Oe,j as e,u as et}from"./react-DjOKjwAj.js";import{u as tt,s
|
|
|
458
458
|
color: ${t.colors.accent};
|
|
459
459
|
}
|
|
460
460
|
}
|
|
461
|
-
`;function Gn({name:s,priceCredits:o,onClose:r}){const{session:d}=He(),{data:h,isError:f}=kt(d),l=St(),m=Oe(),[c,g]=u.useState("confirm"),[p,b]=u.useState(""),[C,w]=u.useState(null),[$,j]=u.useState(!1),[x,k]=u.useState("preparing"),N=u.useRef(!1),T=p.trim().toLowerCase()===s.toLowerCase(),L=c==="completing",M=o!=null?je(o):"—",P=o==null,W=h==null?void 0:h.credits,B=o!=null&&W!=null?o-W:0,S=B>0,F=P?n("names.priceUnavailable"):S?n("names.insufficientCredits",{credits:je(B)}):null;u.useEffect(()=>{const y=G=>{G.key==="Escape"&&!L&&r()};document.addEventListener("keydown",y);const D=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.removeEventListener("keydown",y),document.body.style.overflow=D}},[L,r]);async function R(){if(!(!d||!T||P||S||N.current)){N.current=!0,g("completing"),w(null),k("preparing");try{const y=await dn({name:s,identity:d.identity,signer:d.signer,onProgress:k});oe("Shop Completed Purchase",{items:[{item_id:null,contract_address:null,token_id:null,price_usd:Ne(o??0),category:"name",is_smart:!1}],purchase_type:"name",is_primary:!0,payment_type:"credits",value_credits:o??null,value_usd:Ne(o??0),transaction_hash:y.originTxHash??null,settlement:y.status}),l.invalidateQueries({queryKey:["usd-balance"]}),l.invalidateQueries({queryKey:["my-assets"]}),g(y.status==="registered"?"success":"pending")}catch(y){oe(_t(y)?"Shop Purchase Cancelled":"Shop Purchase Failed",{step:"submit",error_code:Rt(y),purchase_type:"name"});const D=y instanceof Ce,G=y instanceof $e;w(y instanceof ke?n("names.errorRouteCost"):D?n("names.errorNotRegistered"):G?n("names.errorSettlementUnknown"):(y==null?void 0:y.message)||n("names.errorGeneric")),j(D||G),g("error")}finally{N.current=!1}}}const _=c!=="success"&&c!=="pending",v=Et(d==null?void 0:d.providerType),z=v?2:1,A=v&&(x==="preparing"||x==="awaiting-confirmation"),I=A?1:z,ae=A?n("names.confirming"):n("names.completing"),U=x==="registering"?n("names.processingRegistering"):null;return e.jsx(wn,{onClick:L?void 0:r,role:"presentation",children:e.jsxs(jn,{role:"dialog","aria-modal":"true","aria-label":n("names.buyTitle"),onClick:y=>y.stopPropagation(),children:[_&&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:r,disabled:L,"aria-label":n("buyModal.close"),children:e.jsx(E,{name:"close"})})]}),e.jsxs(pe,{children:[n("names.myCreditsBalance")," ",e.jsx(H,{})," ",le(h,f)]}),e.jsx(ue,{})]}),(c==="confirm"||c==="error")&&e.jsxs(e.Fragment,{children:[e.jsxs(fe,{children:[e.jsx(Me,{"aria-hidden":!0,children:"@"}),e.jsxs(me,{children:[e.jsxs(xe,{children:[s,e.jsx("span",{children:".dcl.eth"})]}),e.jsx(ge,{children:n("names.subtitle")})]}),e.jsxs(be,{children:[e.jsx(H,{}),M]})]}),c==="error"?e.jsxs(e.Fragment,{children:[e.jsxs(we,{children:[e.jsx(E,{name:"info","aria-hidden":!0}),e.jsx("span",{children:C})]}),$?e.jsx(ye,{onClick:r,children:n("names.errorSpentDismiss")}):e.jsx(ye,{onClick:()=>g("confirm"),children:n("names.tryAgain")})]}):e.jsxs(e.Fragment,{children:[e.jsxs(Sn,{children:[e.jsx(En,{children:n("names.confirmTitle")}),e.jsx(Tn,{dangerouslySetInnerHTML:{__html:n("names.confirmBody",{name:`<b>@${qn(s)}</b>`})}}),e.jsxs(Rn,{children:[e.jsx(_n,{"aria-hidden":!0,children:"@"}),e.jsx(In,{value:p,onChange:y=>b(y.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(Nn,{children:".dcl.eth"})]})]}),F?e.jsxs(we,{"data-tone":"info","data-testid":"name-blocked-reason",children:[e.jsx(E,{name:"info","aria-hidden":!0}),e.jsx("span",{children:F})]}):null,e.jsx(ye,{onClick:()=>void R(),disabled:!T||!d||P||S,children:n("names.buyCta")})]})]}),c==="completing"&&e.jsxs(Ln,{children:[e.jsx(zn,{src:Tt,alt:"",width:61,height:61}),e.jsxs(An,{children:[e.jsx(Mn,{children:ae}),e.jsxs(Pn,{children:[e.jsx(Bn,{"aria-hidden":!0,children:e.jsx("span",{})}),e.jsx(Fn,{"data-testid":"name-progress-count",children:`${I}/${z}`})]}),U?e.jsx(Wn,{children:U}):null]})]}),c==="pending"&&e.jsxs(e.Fragment,{children:[e.jsxs(ce,{children:[e.jsx(de,{children:n("names.pendingHeaderTitle")}),e.jsx(he,{onClick:r,"aria-label":n("buyModal.close"),children:e.jsx(E,{name:"close"})})]}),e.jsxs(pe,{children:[n("names.myCreditsBalance")," ",e.jsx(H,{})," ",le(h,f)]}),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(fe,{style:{marginTop:20},children:[e.jsx(Me,{"aria-hidden":!0,children:"@"}),e.jsxs(me,{children:[e.jsxs(xe,{children:[s,e.jsx("span",{children:".dcl.eth"})]}),e.jsx(ge,{children:n("names.subtitle")})]}),e.jsxs(be,{children:[e.jsx(H,{}),M]})]}),e.jsx(We,{children:e.jsx(Pe,{onClick:()=>{r(),m("/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:r,"aria-label":n("buyModal.close"),children:e.jsx(E,{name:"close"})})]}),e.jsxs(pe,{children:[n("names.myCreditsBalance")," ",e.jsx(H,{})," ",le(h,f)]}),e.jsx(ue,{}),e.jsxs(Un,{children:[e.jsx(On,{"aria-hidden":!0,children:e.jsx(E,{name:"check"})}),e.jsxs(Hn,{children:[e.jsx("b",{children:n("names.successBannerBold")})," ",n("names.successBannerRest")]})]}),e.jsxs(fe,{style:{marginTop:20},children:[e.jsxs(vn,{"data-testid":"name-success-tile",children:[e.jsx(Cn,{src:Xt,alt:"","aria-hidden":!0,width:47,height:47}),e.jsxs($n,{children:[e.jsx("span",{"aria-hidden":!0,children:s}),e.jsx(kn,{src:bn,alt:"","aria-hidden":!0,width:14,height:14})]})]}),e.jsxs(me,{children:[e.jsxs(xe,{children:[s,e.jsx("span",{children:".dcl.eth"})]}),e.jsx(ge,{children:n("names.subtitle")})]}),e.jsxs(be,{children:[e.jsx(H,{}),M]})]}),e.jsxs(We,{children:[e.jsx(Pe,{onClick:()=>{r(),m("/my-items")},children:n("names.myItems")}),e.jsx(Dn,{href:V.profileUrl,target:"_blank",rel:"noopener noreferrer",children:n("names.assignToAvatar")})]})]})]})})}function qn(s){return s.replace(/[&<>"']/g,o=>({"&":"&","<":"<",">":">",'"':""","'":"'"})[o])}const Vn="https://cdn.decentraland.org/@dcl/shop/1.9.3-32728272723.commit-675c39d/_assets/identity-icon-C8yAW_Gq.svg",Zn="https://cdn.decentraland.org/@dcl/shop/1.9.3-32728272723.commit-675c39d/_assets/world-icon-6xQ-PmmW.svg",Qn="https://cdn.decentraland.org/@dcl/shop/1.9.3-32728272723.commit-675c39d/_assets/invite-icon-Bz6lCTuB.svg",Kn="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",Xn=i.div`
|
|
461
|
+
`;function Gn({name:s,priceCredits:o,onClose:r}){const{session:d}=Oe(),{data:h,isError:f}=kt(d),l=St(),m=He(),[c,g]=u.useState("confirm"),[p,b]=u.useState(""),[C,w]=u.useState(null),[$,v]=u.useState(!1),[x,k]=u.useState("preparing"),L=u.useRef(!1),T=p.trim().toLowerCase()===s.toLowerCase(),N=c==="completing",M=o!=null?ve(o):"—",B=o==null,W=h==null?void 0:h.credits,P=o!=null&&W!=null?o-W:0,S=P>0,F=B?n("names.priceUnavailable"):S?n("names.insufficientCredits",{credits:ve(P)}):null;u.useEffect(()=>{const y=G=>{G.key==="Escape"&&!N&&r()};document.addEventListener("keydown",y);const D=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.removeEventListener("keydown",y),document.body.style.overflow=D}},[N,r]);async function R(){if(!(!d||!T||B||S||L.current)){L.current=!0,g("completing"),w(null),k("preparing");try{const y=await dn({name:s,identity:d.identity,signer:d.signer,onProgress:k});oe("Shop Completed Purchase",{items:[{item_id:null,contract_address:null,token_id:null,price_usd:Le(o??0),category:"name",is_smart:!1}],purchase_type:"name",is_primary:!0,payment_type:"credits",value_credits:o??null,value_usd:Le(o??0),transaction_hash:y.originTxHash??null,settlement:y.status}),l.invalidateQueries({queryKey:["usd-balance"]}),l.invalidateQueries({queryKey:["my-assets"]}),g(y.status==="registered"?"success":"pending")}catch(y){oe(_t(y)?"Shop Purchase Cancelled":"Shop Purchase Failed",{step:"submit",error_code:Rt(y),purchase_type:"name"});const D=y instanceof Ce,G=y instanceof $e;w(y instanceof ke?n("names.errorRouteCost"):D?n("names.errorNotRegistered"):G?n("names.errorSettlementUnknown"):(y==null?void 0:y.message)||n("names.errorGeneric")),v(D||G),g("error")}finally{L.current=!1}}}const _=c!=="success"&&c!=="pending",j=Et(d==null?void 0:d.providerType),A=j?2:1,z=j&&(x==="preparing"||x==="awaiting-confirmation"),I=z?1:A,ae=z?n("names.confirming"):n("names.completing"),U=x==="registering"?n("names.processingRegistering"):null;return e.jsx(wn,{onClick:N?void 0:r,role:"presentation",children:e.jsxs(vn,{role:"dialog","aria-modal":"true","aria-label":n("names.buyTitle"),onClick:y=>y.stopPropagation(),children:[_&&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:r,disabled:N,"aria-label":n("buyModal.close"),children:e.jsx(E,{name:"close"})})]}),e.jsxs(pe,{children:[n("names.myCreditsBalance")," ",e.jsx(O,{})," ",le(h,f)]}),e.jsx(ue,{})]}),(c==="confirm"||c==="error")&&e.jsxs(e.Fragment,{children:[e.jsxs(fe,{children:[e.jsx(Me,{"aria-hidden":!0,children:"@"}),e.jsxs(me,{children:[e.jsxs(xe,{children:[s,e.jsx("span",{children:".dcl.eth"})]}),e.jsx(ge,{children:n("names.subtitle")})]}),e.jsxs(be,{children:[e.jsx(O,{}),M]})]}),c==="error"?e.jsxs(e.Fragment,{children:[e.jsxs(we,{children:[e.jsx(E,{name:"info","aria-hidden":!0}),e.jsx("span",{children:C})]}),$?e.jsx(ye,{onClick:r,children:n("names.errorSpentDismiss")}):e.jsx(ye,{onClick:()=>g("confirm"),children:n("names.tryAgain")})]}):e.jsxs(e.Fragment,{children:[e.jsxs(Sn,{children:[e.jsx(En,{children:n("names.confirmTitle")}),e.jsx(Tn,{dangerouslySetInnerHTML:{__html:n("names.confirmBody",{name:`<b>@${qn(s)}</b>`})}}),e.jsxs(Rn,{children:[e.jsx(_n,{"aria-hidden":!0,children:"@"}),e.jsx(In,{value:p,onChange:y=>b(y.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(Ln,{children:".dcl.eth"})]})]}),F?e.jsxs(we,{"data-tone":"info","data-testid":"name-blocked-reason",children:[e.jsx(E,{name:"info","aria-hidden":!0}),e.jsx("span",{children:F})]}):null,e.jsx(ye,{onClick:()=>void R(),disabled:!T||!d||B||S,children:n("names.buyCta")})]})]}),c==="completing"&&e.jsxs(Nn,{children:[e.jsx(An,{src:Tt,alt:"",width:61,height:61}),e.jsxs(zn,{children:[e.jsx(Mn,{children:ae}),e.jsxs(Bn,{children:[e.jsx(Pn,{"aria-hidden":!0,children:e.jsx("span",{})}),e.jsx(Fn,{"data-testid":"name-progress-count",children:`${I}/${A}`})]}),U?e.jsx(Wn,{children:U}):null]})]}),c==="pending"&&e.jsxs(e.Fragment,{children:[e.jsxs(ce,{children:[e.jsx(de,{children:n("names.pendingHeaderTitle")}),e.jsx(he,{onClick:r,"aria-label":n("buyModal.close"),children:e.jsx(E,{name:"close"})})]}),e.jsxs(pe,{children:[n("names.myCreditsBalance")," ",e.jsx(O,{})," ",le(h,f)]}),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(fe,{style:{marginTop:20},children:[e.jsx(Me,{"aria-hidden":!0,children:"@"}),e.jsxs(me,{children:[e.jsxs(xe,{children:[s,e.jsx("span",{children:".dcl.eth"})]}),e.jsx(ge,{children:n("names.subtitle")})]}),e.jsxs(be,{children:[e.jsx(O,{}),M]})]}),e.jsx(We,{children:e.jsx(Be,{onClick:()=>{r(),m("/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:r,"aria-label":n("buyModal.close"),children:e.jsx(E,{name:"close"})})]}),e.jsxs(pe,{children:[n("names.myCreditsBalance")," ",e.jsx(O,{})," ",le(h,f)]}),e.jsx(ue,{}),e.jsxs(Un,{children:[e.jsx(Hn,{"aria-hidden":!0,children:e.jsx(E,{name:"check"})}),e.jsxs(On,{children:[e.jsx("b",{children:n("names.successBannerBold")})," ",n("names.successBannerRest")]})]}),e.jsxs(fe,{style:{marginTop:20},children:[e.jsxs(jn,{"data-testid":"name-success-tile",children:[e.jsx(Cn,{src:Jt,alt:"","aria-hidden":!0,width:47,height:47}),e.jsxs($n,{children:[e.jsx("span",{"aria-hidden":!0,children:s}),e.jsx(kn,{src:bn,alt:"","aria-hidden":!0,width:14,height:14})]})]}),e.jsxs(me,{children:[e.jsxs(xe,{children:[s,e.jsx("span",{children:".dcl.eth"})]}),e.jsx(ge,{children:n("names.subtitle")})]}),e.jsxs(be,{children:[e.jsx(O,{}),M]})]}),e.jsxs(We,{children:[e.jsx(Be,{onClick:()=>{r(),m("/my-items")},children:n("names.myItems")}),e.jsx(Dn,{href:V.profileUrl,target:"_blank",rel:"noopener noreferrer",children:n("names.assignToAvatar")})]})]})]})})}function qn(s){return s.replace(/[&<>"']/g,o=>({"&":"&","<":"<",">":">",'"':""","'":"'"})[o])}const Vn="https://cdn.decentraland.org/@dcl/shop/1.9.3-32743160136.commit-b84a6df/_assets/identity-icon-C8yAW_Gq.svg",Zn="https://cdn.decentraland.org/@dcl/shop/1.9.3-32743160136.commit-b84a6df/_assets/world-icon-6xQ-PmmW.svg",Qn="https://cdn.decentraland.org/@dcl/shop/1.9.3-32743160136.commit-b84a6df/_assets/invite-icon-Bz6lCTuB.svg",Kn="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",Jn=i.div`
|
|
462
462
|
width: 100%;
|
|
463
463
|
min-width: 0;
|
|
464
|
-
`,
|
|
464
|
+
`,Xn=i.nav`
|
|
465
465
|
display: flex;
|
|
466
466
|
align-items: center;
|
|
467
467
|
gap: 6px;
|
|
@@ -551,7 +551,7 @@ import{r as u,b as Oe,j as e,u as et}from"./react-DjOKjwAj.js";import{u as tt,s
|
|
|
551
551
|
gap: 12px;
|
|
552
552
|
`,as=i.div`
|
|
553
553
|
position: relative;
|
|
554
|
-
`,ls=i("div",
|
|
554
|
+
`,ls=i("div",Bt("invalid"))`
|
|
555
555
|
display: flex;
|
|
556
556
|
align-items: center;
|
|
557
557
|
gap: 8px;
|
|
@@ -790,7 +790,7 @@ import{r as u,b as Oe,j as e,u as et}from"./react-DjOKjwAj.js";import{u as tt,s
|
|
|
790
790
|
}
|
|
791
791
|
`,ws=i(Ze)`
|
|
792
792
|
color: inherit;
|
|
793
|
-
`,
|
|
793
|
+
`,vs=i.section`
|
|
794
794
|
display: flex;
|
|
795
795
|
flex-direction: column;
|
|
796
796
|
gap: 48px;
|
|
@@ -800,7 +800,7 @@ import{r as u,b as Oe,j as e,u as et}from"./react-DjOKjwAj.js";import{u as tt,s
|
|
|
800
800
|
gap: 32px;
|
|
801
801
|
padding: 0 20px;
|
|
802
802
|
}
|
|
803
|
-
`,
|
|
803
|
+
`,js=i.div`
|
|
804
804
|
display: flex;
|
|
805
805
|
flex-direction: column;
|
|
806
806
|
align-items: center;
|
|
@@ -887,7 +887,7 @@ import{r as u,b as Oe,j as e,u as et}from"./react-DjOKjwAj.js";import{u as tt,s
|
|
|
887
887
|
`,Ss=i.span`
|
|
888
888
|
font-weight: 700;
|
|
889
889
|
color: ${t.colors.white};
|
|
890
|
-
`,
|
|
890
|
+
`,Pe=i.a`
|
|
891
891
|
display: inline-flex;
|
|
892
892
|
align-items: center;
|
|
893
893
|
gap: 2px;
|
|
@@ -918,7 +918,7 @@ import{r as u,b as Oe,j as e,u as et}from"./react-DjOKjwAj.js";import{u as tt,s
|
|
|
918
918
|
clip: rect(0, 0, 0, 0);
|
|
919
919
|
white-space: nowrap;
|
|
920
920
|
border: 0;
|
|
921
|
-
`,Ts="https://docs.decentraland.org/creator/worlds/about/",Rs="https://governance.decentraland.org";function Fe(s){const o=typeof window<"u"?window.location.hostname:"";return`${o.endsWith("decentraland.org")?"https://decentraland.org":o.endsWith("decentraland.today")?"https://decentraland.today":"https://decentraland.zone"}/marketplace/names/browse?search=${encodeURIComponent(s)}`}function _s({onBack:s}){De({title:n("seo.names.title"),description:n("seo.names.description")});const{session:o,signIn:r}=
|
|
921
|
+
`,Ts="https://docs.decentraland.org/creator/worlds/about/",Rs="https://governance.decentraland.org";function Fe(s){const o=typeof window<"u"?window.location.hostname:"";return`${o.endsWith("decentraland.org")?"https://decentraland.org":o.endsWith("decentraland.today")?"https://decentraland.today":"https://decentraland.zone"}/marketplace/names/browse?search=${encodeURIComponent(s)}`}function _s({onBack:s}){De({title:n("seo.names.title"),description:n("seo.names.description")});const{session:o,signIn:r}=Oe(),d=hn(),{data:h}=Ge(),f=h?qe(Z,h):null,[l,m]=u.useState(""),[c,g]=u.useState("idle"),[p,b]=u.useState(!1),[C,w]=u.useState(!1),[$,v]=u.useState(()=>{var j;return typeof window<"u"&&!!((j=window.matchMedia)!=null&&j.call(window,"(prefers-reduced-motion: reduce)").matches)});u.useEffect(()=>{var z;const j=(z=window.matchMedia)==null?void 0:z.call(window,"(prefers-reduced-motion: reduce)");if(!j)return;const A=I=>v(I.matches);return j.addEventListener("change",A),()=>j.removeEventListener("change",A)},[]);const x=n("names.placeholderExamples"),k=u.useMemo(()=>x.split(",").map(j=>j.trim()).filter(Boolean),[x]),T=gn(k,!C&&!l&&!$)||n("names.inputPlaceholder"),N=u.useRef(null),[M,B]=u.useState(void 0);u.useLayoutEffect(()=>{N.current&&B(N.current.getBoundingClientRect().width)},[l,T]),u.useEffect(()=>{if(!Ae(l).ok){g(l.length===0?"idle":"invalid");return}g("checking");const A=new AbortController,z=setTimeout(()=>{(async()=>{try{const I=await sn(l,{signal:A.signal});g(I)}catch(I){if((I==null?void 0:I.name)==="AbortError")return;g("error")}})()},400);return()=>{clearTimeout(z),A.abort()}},[l]);const W=Ae(l),P=W.ok&&(c==="available"||c==="error"),S=d&&P,F=!d&&P;function R(){if(S){if(!o){r();return}b(!0)}}const _=e.jsxs(e.Fragment,{children:[n("names.claim"),f!=null?e.jsxs(bs,{children:[e.jsx(O,{}),ve(f)]}):null]});return e.jsxs(Jn,{"data-testid":"names-page",children:[e.jsxs(Xn,{"aria-label":n("names.breadcrumbAria"),children:[e.jsx(Yn,{onClick:s,children:n("names.breadcrumbCollectibles")}),e.jsx("span",{"aria-hidden":!0,children:">"}),e.jsx(es,{children:n("names.breadcrumbCurrent")})]}),e.jsxs(ts,{children:[e.jsxs(ns,{children:[e.jsxs(ss,{children:[e.jsx(is,{children:n("names.heroTitle")}),e.jsx(os,{children:n("names.heroSubtitle")})]}),e.jsxs(rs,{children:[e.jsxs(as,{"data-testid":"names-input-wrap",children:[e.jsxs(ls,{invalid:c==="taken",children:[e.jsxs(ps,{children:[e.jsx(us,{"aria-hidden":!0,children:"@"}),e.jsx(fs,{value:l,onChange:j=>m(en(j.target.value)),placeholder:T,"aria-label":n("names.inputAria"),autoComplete:"off",spellCheck:!1,maxLength:re,onFocus:()=>w(!0),style:{width:M!=null?`${M}px`:void 0}}),e.jsx(cs,{ref:N,"aria-hidden":!0,"data-placeholder":!l||void 0,children:l||T}),e.jsx(ms,{children:n("names.suffix")})]}),l.length>0?e.jsxs(xs,{"aria-hidden":!0,children:[l.length,"/",re]}):null,e.jsx(Qe,{onClick:R,disabled:!S,"data-testid":"names-claim",children:_})]}),c==="taken"?e.jsxs(ds,{role:"status","data-testid":"names-taken",children:[e.jsx(E,{name:"info",size:16,"aria-hidden":!0}),e.jsx("span",{children:n("names.taken")}),e.jsxs(hs,{href:Fe(l),target:"_blank",rel:"noopener noreferrer",children:[n("names.takenMakeOffer"),e.jsx(E,{name:"external-link",size:13,"aria-hidden":!0})]})]}):null,c==="checking"?e.jsx(Y,{tone:"muted",role:"status","data-testid":"names-checking",children:n("names.checking")}):F?e.jsxs(Y,{tone:"muted",role:"status","data-testid":"names-disabled",children:[e.jsx(E,{name:"info",size:16,"aria-hidden":!0}),e.jsx("span",{children:n("names.registrationDisabled")}),e.jsxs(ws,{href:Fe(l),target:"_blank",rel:"noopener noreferrer",children:[n("names.registrationDisabledLink"),e.jsx(E,{name:"external-link",size:13,"aria-hidden":!0})]})]}):c==="error"?e.jsx(Y,{tone:"muted",role:"status",children:n("names.checkError")}):c==="invalid"&&!W.ok&&W.reason==="too-short"?e.jsx(Y,{tone:"muted",role:"status",children:n("names.tooShort",{min:Ve})}):null]}),e.jsx(gs,{onClick:R,disabled:!S,children:_}),e.jsx(Es,{role:"status","aria-live":"polite",children:c==="available"?n("names.available",{name:l}):""})]})]}),e.jsxs(vs,{children:[e.jsxs(js,{children:[e.jsx(Cs,{children:n("names.whyTitle")}),e.jsx($s,{children:n("names.whyIntro")})]}),e.jsxs(ks,{children:[e.jsxs(ee,{children:[e.jsx(te,{src:Vn,alt:""}),e.jsxs(ne,{children:[e.jsx(se,{children:n("names.why1Title")}),e.jsx(ie,{children:n("names.why1")})]})]}),e.jsxs(ee,{children:[e.jsx(te,{src:Zn,alt:""}),e.jsxs(ne,{children:[e.jsx(se,{children:n("names.why2Title")}),e.jsxs(ie,{children:[n("names.why2")," ",e.jsx(Ss,{children:n("names.why2Address")})]}),e.jsxs(Pe,{href:Ts,target:"_blank",rel:"noopener noreferrer",children:[n("names.learnMore"),e.jsx(E,{name:"external-link","aria-hidden":!0})]})]})]}),e.jsxs(ee,{children:[e.jsx(te,{src:Qn,alt:""}),e.jsxs(ne,{children:[e.jsx(se,{children:n("names.why3Title")}),e.jsx(ie,{children:n("names.why3")})]})]}),e.jsxs(ee,{children:[e.jsx(te,{src:Kn,alt:""}),e.jsxs(ne,{children:[e.jsx(se,{children:n("names.why4Title")}),e.jsx(ie,{children:n("names.why4")}),e.jsxs(Pe,{href:Rs,target:"_blank",rel:"noopener noreferrer",children:[n("names.learnMore"),e.jsx(E,{name:"external-link","aria-hidden":!0})]})]})]})]})]})]}),p?e.jsx(Gn,{name:l,priceCredits:f,onClose:()=>b(!1)}):null]})}const Is=i.p`
|
|
922
922
|
display: flex;
|
|
923
923
|
align-items: center;
|
|
924
924
|
gap: 10px;
|
|
@@ -934,5 +934,5 @@ import{r as u,b as Oe,j as e,u as et}from"./react-DjOKjwAj.js";import{u as tt,s
|
|
|
934
934
|
background: rgba(211, 51, 51, 0.1);
|
|
935
935
|
color: ${t.colors.err};
|
|
936
936
|
}
|
|
937
|
-
`,Ue=48,
|
|
938
|
-
//# sourceMappingURL=Assets-
|
|
937
|
+
`,Ue=48,Ls=["all","on_sale","not_for_sale"];function Ys(){const[s]=et(),o=He(),r=(s.get("q")??"").trim().toLowerCase(),d=(s.get("q")??"").trim();De({title:d?n("seo.collectibles.searchTitle",{query:d}):n("seo.collectibles.title"),description:n("seo.collectibles.description")});const h=u.useMemo(()=>({category:"all",status:"on_sale",subCategory:null,rarities:[],priceMin:"",priceMax:"",smart:!1,sort:"newest"}),[]),[f,l]=tt(h),{subCategory:m,rarities:c,priceMin:g,priceMax:p,smart:b,sort:C}=f,w=f.category,$=Ls.includes(f.status)?f.status:"on_sale";st(`${w}:${m??""}`);const[v,x]=u.useState(!1);u.useEffect(()=>{if(!v)return;const a=K=>{K.key==="Escape"&&x(!1)};document.addEventListener("keydown",a);const H=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.removeEventListener("keydown",a),document.body.style.overflow=H}},[v]);const k=$==="on_sale",L=g&&!Number.isNaN(Number(g))?Number(g):void 0,T=p&&!Number.isNaN(Number(p))?Number(p):void 0,N=It(),M=m?Pt[m]:void 0,B=(Ie.find(a=>a.key===C)??Ie[0]).server,W={category:w,rarities:c.length?c:void 0,wearableCategories:M,minPriceCredits:L,maxPriceCredits:T,search:r||void 0,sortBy:B,isSmart:b||void 0,onSale:!0,listingType:N?void 0:"primary"},P={category:w,rarities:c.length?c:void 0,wearableCategories:M,search:r||void 0,sortBy:B,isWearableSmart:b||void 0,isOnSale:$==="not_for_sale"?!1:void 0},{items:S,total:F,isLoading:R,isPlaceholderData:_,error:j,hasNextPage:A,isFetchingNextPage:z,isFetchNextPageError:I,fetchNextPage:ae}=Wt(k?["shop-items",W]:["catalog-items",P],a=>k?At({...W,first:Ue,skip:a}):zt({...P,first:Ue,skip:a}),{enabled:w!=="names"}),U=F,{data:y,isError:D,isPending:G}=Ge(),Ke=a=>y&&a.manaWei?qe(a.manaWei,y):null,Je=k&&G&&S.some(a=>a.source==="legacy"),Se=R||_||Je,Xe=R?15:Math.max(S.length,1),Ee=u.useRef(null);u.useEffect(()=>{R||_||!r||Ee.current===r||(Ee.current=r,oe("Shop Searched",{query:r,result_count:U}))},[r,R,_,U]);const Q=u.useRef("__init__");u.useEffect(()=>{if(R||_)return;const a=JSON.stringify({category:w,subCategory:m,rarities:c,min:L,max:T,sort:C,status:$,smart:b});if(Q.current==="__init__"||Q.current===a){Q.current=a;return}Q.current=a,oe("Shop Applied Filter",{filters:{category:w,sub_category:m,rarities:c,min_price_credits:L??null,max_price_credits:T??null,status:$,smart:b,sort:C},result_count:U})},[w,m,c,L,T,C,$,b,R,_,U]);function Te(a){l({category:a,subCategory:null})}function Re(a){l({status:a})}function _e(a){l({rarities:c.includes(a)?c.filter(H=>H!==a):[...c,a]})}function Ye(){l(h)}const q=[];(L!=null||T!=null)&&q.push({key:"price",label:n("filter.price"),onRemove:()=>{l({priceMin:"",priceMax:""})}});for(const a of it)c.includes(a)&&q.push({key:`rarity-${a}`,label:Lt(a),onRemove:()=>_e(a)});return b&&q.push({key:"smart",label:n("filter.smart"),onRemove:()=>l({smart:!1})}),$!=="on_sale"&&q.push({key:"status",label:$==="all"?n("filter.statusAll"):n("filter.notForSale"),onRemove:()=>Re("on_sale")}),e.jsxs(ot,{"data-testid":"browse",children:[w!=="names"&&e.jsxs(e.Fragment,{children:[v?e.jsx(rt,{onClick:()=>x(!1),"aria-hidden":!0}):null,e.jsxs(at,{"data-open":v||void 0,"data-testid":"browse-sidebar",children:[e.jsxs(lt,{children:[e.jsx(ct,{children:n("assets.filters")}),e.jsx(dt,{onClick:()=>x(!1),"aria-label":n("assets.closeFilters"),children:"✕"})]}),e.jsx(ht,{children:e.jsx(pt,{category:w,subCategory:m,onCategory:Te,onSub:a=>l({subCategory:a}),priceMin:g,priceMax:p,onPriceMin:a=>l({priceMin:a}),onPriceMax:a=>l({priceMax:a}),rarities:c,onToggleRarity:_e,status:$,onStatus:Re,smart:b,onSmart:a=>l({smart:a})})}),e.jsx(ut,{children:e.jsx(ft,{type:"button",onClick:()=>x(!1),children:n("assets.showItems")})})]})]}),e.jsx(mt,{children:w==="names"?e.jsx(_s,{onBack:()=>Te("all")}):e.jsxs(e.Fragment,{children:[e.jsx(xt,{sort:C,onSort:a=>l({sort:a}),total:F,loading:R||_,query:r,onOpenFilters:()=>x(!0),chips:q,onClearChips:Ye}),D&&k&&S.some(a=>a.source==="legacy")?e.jsx(Is,{"data-variant":"warn",children:n("assets.marketUnavailable")}):null,j?e.jsx(Ft,{message:n("assets.loadError"),testId:"browse-error"}):null,!Se&&S.length===0&&!j?e.jsx(Nt,{testId:"browse-empty",icon:nt,title:n("assets.empty.title"),body:d?e.jsxs(e.Fragment,{children:[n("assets.empty.searchBefore"),e.jsx("b",{children:d}),n("assets.empty.searchAfter")]}):n("assets.empty.filters"),cta:{label:n("assets.empty.cta"),onClick:()=>o("/overview")}}):e.jsxs(e.Fragment,{children:[e.jsx(Xt,{"data-testid":"grid",children:Se?e.jsx(Ne,{count:Xe}):e.jsxs(e.Fragment,{children:[S.map(a=>{if(!k)return e.jsx(J,{item:a,mode:"view"},X(a));const H=a;if(H.source!=="legacy")return e.jsx(J,{item:a},X(a));const K=Ke(H);return K==null?e.jsx(J,{item:a,mode:"view"},X(a)):e.jsx(J,{item:{...H,priceCredits:K}},X(a))}),z?e.jsx(Ne,{count:6}):null]})}),e.jsx(Mt,{hasNextPage:A,isFetching:z,isError:I,onLoadMore:()=>void ae()})]})]})})]})}export{Ys as Assets};
|
|
938
|
+
//# sourceMappingURL=Assets-DL6YgWYt.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as e,L as W,r as P}from"./react-
|
|
1
|
+
import{j as e,L as W,r as P}from"./react-DcSw8tCD.js";import{t as o,s as n,B,m as R,n as F,b as i,o as G,p as O,I as z,q as K,l as w,r as Q,c as H,v as X,w as A,h as Z,x as J,y as I}from"./index-B-dIqjhn.js";import{a as U,b as V,c as Y,d as tt,s as et,e as it}from"./authorizations-Bq00FRrP.js";import{f as ot}from"./builder-DysINipi.js";import{m as at}from"./mana-matic-CEqvSwrJ.js";import{f as nt}from"./errors-DUsd8eGX.js";import"./dcl-schemas-CN-1-wGb.js";import"./sentry-CAS3BNIy.js";import"./ethers-3hUTVH_L.js";import"./intl-AKLEHPeO.js";import"./sendMetaTransaction-CcfiyKVp.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},s=new t.Error().stack;s&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[s]="c2ec6301-beed-4385-8d18-7f5357a4a2c4",t._sentryDebugIdIdentifier="sentry-dbid-c2ec6301-beed-4385-8d18-7f5357a4a2c4")}catch{}})();const st=R`
|
|
2
2
|
to { transform: rotate(360deg); }
|
|
3
3
|
`,rt=R`
|
|
4
4
|
to { background-position: -200% 0; }
|
|
@@ -189,4 +189,4 @@ import{j as e,L as W,r as P}from"./react-DjOKjwAj.js";import{t as o,s as n,B,m a
|
|
|
189
189
|
`,M=n(B)`
|
|
190
190
|
margin-top: 12px;
|
|
191
191
|
`;function j({descriptor:t,owner:s,signer:r,name:a,description:c,image:l,icon:p}){const v=Q(),[h,y]=P.useState(!1),{data:u,isLoading:g,refetch:d}=w({queryKey:["authorization",t.id,s],queryFn:()=>it(t,s),staleTime:3e4});async function m(){if(h||g)return;const b=!u;y(!0);try{await et({auth:t,signer:r,active:b}),await d(),v.setQueryData(["authorization",t.id,s],b),A.success(b?i("authorizations.toastActivated",{name:a}):i("authorizations.toastDeactivated",{name:a}))}catch(C){Z(C,{flow:"authorizations",step:b?"grant":"revoke"}),A.error(nt(C,i("authorizations.errorGeneric")))}finally{y(!1)}}const N=g?i("authorizations.checking"):u?i("authorizations.active"):i("authorizations.inactive");return e.jsxs(ht,{"data-testid":`authorization-${t.id}`,"data-active":!!u,children:[e.jsx(gt,{children:l?e.jsx("img",{src:l,alt:""}):p}),e.jsxs(mt,{children:[e.jsx(ft,{title:a,children:a}),e.jsx(xt,{children:c})]}),e.jsxs(bt,{children:[e.jsx(yt,{"data-active":!!u,children:N}),h?e.jsx(jt,{"aria-label":i("authorizations.working")}):e.jsx(zt,{type:"button","data-testid":`authorization-toggle-${t.id}`,"data-active":!!u,role:"switch","aria-checked":!!u,"aria-label":u?i("authorizations.deactivateAria",{name:a}):i("authorizations.activateAria",{name:a}),disabled:g,onClick:()=>void m()})]})]})}const x=500,q=10,vt=x*q;async function _(t,s){const r=await I(t,{category:s,first:x}),a=Math.min(Math.ceil(r.total/x),q),c=await Promise.all(Array.from({length:Math.max(0,a-1)},(l,p)=>I(t,{category:s,first:x,skip:(p+1)*x})));return{assets:[...r.assets,...c.flatMap(l=>l.assets)],truncated:r.total>vt}}function kt(t){return w({queryKey:["owned-collections",t],enabled:!!t,staleTime:6e4,queryFn:async()=>{const[s,r]=await Promise.all([_(t,"wearable"),_(t,"emote")]),a=new Map;for(const c of[...s.assets,...r.assets]){const l=c.contractAddress.toLowerCase();a.has(l)||a.set(l,c)}return{collections:[...a.values()],truncated:s.truncated||r.truncated,scanned:s.assets.length+r.assets.length}}})}function $t(t){return w({queryKey:["contract-registry"],enabled:t,staleTime:1/0,gcTime:1/0,queryFn:J})}function Ct(t,s){const r=s==null?void 0:s.get(t.toLowerCase());if(r)return r;const a=X(t);return a===t?i("authorizations.collectionFallback"):a}function At(t,s){return w({queryKey:["creator-collections",t],enabled:!!t&&!!s,staleTime:6e4,queryFn:async()=>{const r=await ot(t,s),a=new Map;for(const c of r){const l=c.contractAddress.toLowerCase();a.has(l)||a.set(l,c)}return[...a.values()]}})}function Wt(){F({title:i("authorizations.title"),noindex:!0});const{session:t,signIn:s}=G(),r=H.chainId,a=O(t==null?void 0:t.providerType),{data:c,isLoading:l}=kt(a?t==null?void 0:t.address:void 0),{data:p,isLoading:v}=$t(!!a&&!!(t!=null&&t.address)),{data:h,isLoading:y}=At(a?t==null?void 0:t.address:void 0,a?t==null?void 0:t.identity:void 0);if(!t)return e.jsxs(D,{children:[e.jsx(z,{name:"info",size:40,color:o.colors.muted2}),e.jsx(S,{children:i("authorizations.signInTitle")}),e.jsx(L,{children:i("authorizations.signInBody")}),e.jsx(M,{variant:"white",onClick:()=>s(),children:i("storeSettings.signIn")})]});if(!a)return e.jsxs(D,{children:[e.jsx(z,{name:"check",size:40,color:o.colors.ok}),e.jsx(S,{children:i("authorizations.managedTitle")}),e.jsx(L,{children:i("authorizations.managedBody")}),e.jsx(M,{as:W,to:"/items",variant:"white",children:i("authorizations.managedCta")})]});const u=U(r),g=V(r);return e.jsxs(ct,{children:[e.jsxs(lt,{children:[e.jsx(dt,{children:i("authorizations.title")}),e.jsx(ut,{children:i("authorizations.intro")})]}),e.jsxs(k,{children:[e.jsx($,{children:i("authorizations.buyingTitle")}),e.jsxs(f,{children:[e.jsx(j,{descriptor:u,owner:t.address,signer:t.signer,name:i("authorizations.creditsName"),description:i("authorizations.creditsDesc"),icon:e.jsx(K,{className:"ccy-mark"})}),e.jsx(j,{descriptor:g,owner:t.address,signer:t.signer,name:i("authorizations.manaName"),description:i("authorizations.manaDesc"),icon:e.jsx(pt,{src:at,alt:"","aria-hidden":!0})})]})]}),e.jsxs(k,{children:[e.jsx($,{children:i("authorizations.sellingTitle")}),c!=null&&c.truncated?e.jsx(wt,{"data-testid":"authorizations-selling-truncated",children:i("authorizations.sellingTruncated",{count:c.scanned})}):null,l||v?e.jsx(f,{"aria-busy":"true","aria-label":i("authorizations.checking"),children:Array.from({length:3}).map((d,m)=>e.jsx(E,{"aria-hidden":!0},m))}):c&&c.collections.length>0?e.jsx(f,{children:c.collections.map(d=>e.jsx(j,{descriptor:Y(d.contractAddress,r),owner:t.address,signer:t.signer,name:Ct(d.contractAddress,p),description:i("authorizations.sellingDesc"),image:d.image,icon:e.jsx(z,{name:"pen",size:18})},d.contractAddress))}):e.jsx(T,{children:i("authorizations.sellingEmpty")})]}),e.jsxs(k,{children:[e.jsx($,{children:i("authorizations.mintingTitle")}),y?e.jsx(f,{"aria-busy":"true","aria-label":i("authorizations.checking"),children:Array.from({length:3}).map((d,m)=>e.jsx(E,{"aria-hidden":!0},m))}):h&&h.length>0?e.jsx(f,{children:h.map(d=>e.jsx(j,{descriptor:tt(d.contractAddress,r),owner:t.address,signer:t.signer,name:d.name||i("authorizations.collectionFallback"),description:i("authorizations.mintingDesc"),icon:e.jsx(z,{name:"pen",size:18})},d.contractAddress))}):e.jsx(T,{children:i("authorizations.mintingEmpty")})]})]})}export{Wt as Authorizations};
|
|
192
|
-
//# sourceMappingURL=Authorizations-
|
|
192
|
+
//# sourceMappingURL=Authorizations-fcwMQvEN.js.map
|